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.18.7"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:booksprout-reviewer-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="facb705c-cca9-4fb5-9da8-1b5d54dbfee7",e._sentryDebugIdIdentifier="sentry-dbid-facb705c-cca9-4fb5-9da8-1b5d54dbfee7")}catch(e){}}(),function(e){function t(t){for(var i,a,s=t[0],l=t[1],d=t[2],c=0,u=[];c<s.length;c++)a=s[c],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&u.push(r[a][0]),r[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);p&&p(t);while(u.length)u.shift()();return n.push.apply(n,d||[]),o()}function o(){for(var e,t=0;t<n.length;t++){for(var o=n[t],i=!0,a=1;a<o.length;a++){var s=o[a];0!==r[s]&&(i=!1)}i&&(n.splice(t--,1),e=l(l.s=o[0]))}return e}var i={},a={19:0},r={19:0},n=[];function s(e){return l.p+"js/"+({0:"chunk-common",11:"reviewer-app.components.pdf-reader-dialog",20:"common-app.layouts.not-logged-in",21:"common-app.pages.error-403",22:"common-app.pages.error-404",23:"common-app.pages.login",24:"common-app.pages.logout",25:"common-app.pages.request-password",26:"common-app.pages.sign-up",27:"common-app.pages.unsubscribe",28:"reviewer-app.layouts.logged-in",29:"reviewer-app.pages.book-claim",30:"reviewer-app.pages.list0",31:"reviewer-app.pages.list1",32:"reviewer-app.pages.list2",33:"reviewer-app.pages.list3",34:"reviewer-app.pages.maintenance",35:"reviewer-app.pages.my-review-copies",36:"reviewer-app.pages.notifications",37:"reviewer-app.pages.review-copy-cancel-claim",38:"reviewer-app.pages.review-copy-claim",39:"reviewer-app.pages.review-copy-review",40:"reviewer-app.pages.settings",41:"reviewer-app.pages.view0",42:"reviewer-app.pages.view2",43:"reviewer-app.pages.view3"}[e]||e)+"."+{0:"cfb70299",2:"788760db",3:"13781700",4:"134cb308",5:"f511bfa8",6:"5730217e",7:"8fcb87c9",8:"720148bc",9:"f2ceb80e",10:"bf935934",11:"46fcb78e",12:"c432b939",13:"f119c49d",14:"96d12ce9",15:"61895a79",16:"5f8e6a04",17:"ff431abd",18:"9b723bbf",20:"1a405ba7",21:"2aafcbfa",22:"17a21a26",23:"a820b5c1",24:"2046d459",25:"a0a9e606",26:"b0f4dde3",27:"0f06ebae",28:"dca14fb9",29:"b0b1ea08",30:"02e372b7",31:"849472e8",32:"91ed6432",33:"d2c5b0e8",34:"f0f81a56",35:"ab5dfdfa",36:"0dc9f489",37:"e1ab8e27",38:"9efb09f9",39:"dd814d63",40:"166b8ea6",41:"713dc3d0",42:"40c1ac8a",43:"59b7587a",44:"2775b4bf",45:"73a1b647",46:"a4801b71",47:"046ce857",48:"43cd4b27",49:"d9e45b34",50:"e411e7cd",51:"3ef9faa8",52:"99080a35",53:"3a48abc3",54:"7533977c",55:"3277ad2e",56:"c4ef942a",57:"4026456e",58:"8a8b31ec",59:"c07ba1f2",60:"b6d49dda",61:"28768479",62:"0ac6b045",63:"8c80d79d",64:"cb5a05b9",65:"869a46c8",66:"f240adf0",67:"b777ccdc",68:"051f0577",69:"6ae29ca4",70:"d958e51c",71:"9e52ede9",72:"d0639081",73:"402e2e2d",74:"0209d2f2",75:"9c2e037f",76:"6512b7e6",77:"c8cde20a",78:"8b67d91c",79:"82ec8d83",80:"34b3d5c0",81:"dca2e510",82:"97ea7765",83:"35dc7e54",84:"43fa060f",85:"976f8fb8",86:"d830117b",87:"69f30e95",88:"20861355",89:"8cb614a7",90:"0a48f4e
11",91:"e61857ed"}[e]+".js"}function l(t){if(i[t])return i[t].exports;var o=i[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,l),o.l=!0,o.exports}l.e=function(e){var t=[],o={0:1,2:1,7:1,8:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,20:1,23:1,26:1,28:1,29:1,30:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,62:1,63:1,64:1,65:1,66:1,67:1,68:1};a[e]?t.push(a[e]):0!==a[e]&&o[e]&&t.push(a[e]=new Promise(function(t,o){for(var i="css/"+({0:"chunk-common",11:"reviewer-app.components.pdf-reader-dialog",20:"common-app.layouts.not-logged-in",21:"common-app.pages.error-403",22:"common-app.pages.error-404",23:"common-app.pages.login",24:"common-app.pages.logout",25:"common-app.pages.request-password",26:"common-app.pages.sign-up",27:"common-app.pages.unsubscribe",28:"reviewer-app.layouts.logged-in",29:"reviewer-app.pages.book-claim",30:"reviewer-app.pages.list0",31:"reviewer-app.pages.list1",32:"reviewer-app.pages.list2",33:"reviewer-app.pages.list3",34:"reviewer-app.pages.maintenance",35:"reviewer-app.pages.my-review-copies",36:"reviewer-app.pages.notifications",37:"reviewer-app.pages.review-copy-cancel-claim",38:"reviewer-app.pages.review-copy-claim",39:"reviewer-app.pages.review-copy-review",40:"reviewer-app.pages.settings",41:"reviewer-app.pages.view0",42:"reviewer-app.pages.view2",43:"reviewer-app.pages.view3"}[e]||e)+"."+{0:"5b39788c",2:"88b1b98b",3:"31d6cfe0",4:"31d6cfe0",5:"31d6cfe0",6:"31d6cfe0",7:"db1ddc0b",8:"a0fb186d",9:"31d6cfe0",10:"31d6cfe0",11:"b9514546",12:"4a076661",13:"f9aa7961",14:"06c1ee84",15:"e4d2deb1",16:"a4797a5d",17:"2e04ca23",18:"31d6cfe0",20:"a6aa4f44",21:"31d6cfe0",22:"31d6cfe0",23:"248cb1e9",24:"31d6cfe0",25:"31d6cfe0",26:"d3caede8",27:"31d6cfe0",28:"929a8e90",29:"a46c41d1",30:"0c5b7e57",31:"915afce9",32:"79476b76",33:"754106d1",34:"8346ce54",35:"bd1f9f5a",36:"fabcb606",37:"cc1100e2",38:"bacfcdc7",39:"1ab62896",40:"df2445fd",41:"bdcf5b02",42:"52c3e96b",43:"97844917",44:"82e628a7",45:"5f5a69c9",46:"db8171c3",47:"f0340d79",48:"c76b2d08",49:"ee6c8a51",50:"afdabfb8",51:"639de296",52:"cb232844",53:"13c191be",54:"ba2ace10",55:"825bdc96",56:"3b926379",57:"1a502c72",58:"360316d8",59:"d677a9de",60:"296b39b4",61:"e29bc9b5",62:"61d0a6a0",63:"373116af",64:"f60ec28a",65:"085cf5dd",66:"297fb6b8",67:"d3526ad1",68:"805b2393",69:"31d6cfe0",70:"31d6cfe0",71:"31d6cfe0",72:"31d6cfe0",73:"31d6cfe0",74:"31d6cfe0",75:"31d6cfe0",76:"31d6cfe0",77:"31d6cfe0",78:"31d6cfe0",79:"31d6cfe0",80:"31d6cfe0",81:"31d6cfe0",82:"31d6cfe0",83:"31d6cfe0",84:"31d6cfe0",85:"31d6cfe0",86:"31d6cfe0",87:"31d6cfe0",88:"31d6cfe0",89:"31d6cfe0",90:"31d6cfe0",91:"31d6cfe0"}[e]+".css",r=l.p+i,n=document.getElementsByTagName("link"),s=0;s<n.length;s++){var d=n[s],c=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===i||c===r))return t()}var u=document.getElementsByTagName("style");for(s=0;s<u.length;s++){d=u[s],c=d.getAttribute("data-href");if(c===i||c===r)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var i=t&&t.target&&t.target.src||r,n=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");n.code="CSS_CHUNK_LOAD_FAILED",n.request=i,delete a[e],p.parentNode.removeChild(p),o(n)},p.href=r;var b=document.getElementsByTagName("head")[0];b.appendChild(p)}).then(function(){a[e]=0}));var i=r[e];if(0!==i)if(i)t.push(i[2]);else{var n=new Promise(function(t,o){i=r[e]=[t,o]});t.push(i[2]=n);var d,c=document.createElement("script");c.charset="utf-8",c.timeout=120,l.nc&&c.setAttribute("nonce",l.nc),c.src=s(e);var u=new Error;d=function(t){c.onerror=c.onload=null,clearTimeout(p);var o=r[e];if(0!==o){if(o){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}r[e]=void 0}};var p=setTimeout(function(){d({type:"timeout",target:c})},12e4);c.onerror=c.onload=d,document.head.appendChild(c)}return Promise.all(t)},l.m=e,l.c=i,l.d=function(e,t,o){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)l.d(o,i,function(t){return e[t]}.bind(null,i));return o},l.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/reviewer/",l.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],c=d.push.bind(d);d.push=t,d=d.slice();for(var u=0;u<d.length;u++)t(d[u]);var p=c;n.push([0,1]),o()}({0:function(e,t,o){e.exports=o("2f39")},"0047":function(e,t,o){},"0088":function(e,t,o){"use strict";o.d(t,"a",function(){return n});var i=o("d4c2");function a(e,t,o){var a,r;return(null!==(a=e.sortOrder)&&void 0!==a?a:0)-(null!==(r=t.sortOrder)&&void 0!==r?r:0)||Object(i["a"])(e,o).localeCompare(Object(i["a"])(t,o),o||void 0)||e.id-t.id}function r(e,t){return[...e].sort((e,o)=>a(e,o,t))}function n(e,t){return r(e,t).map(e=>Object.assign(Object.assign({},e),{childCategories:e.childCategories?n(e.childCategories,t):e.childCategories}))}},"049c":function(e,t,o){"use strict";o.d(t,"a",function(){return y});var i=o("4800"),a=o("e7c1"),r=o("9b23"),n=o("940e"),s=o("a065"),l=o("6d03"),d=o("adf0"),c=o("3059");let u,p=!0;const b="__bsLoaderPending",v=e=>{e&&(e[b]=!1),a["a"].hide()},m=e=>new Promise((t,o)=>{var i,a,r,n,s,l,u;if(Object(c["d"])(e)){Object(d["d"])(!0);const e=new Error(Object(c["c"])("invalidLogin").message);return e.isAuthExpired=!0,o(e)}if(Object(c["e"])(e)){if("string"===typeof e.response.data.message)return o(new Error(e.response.data.message));try{const t=e.response.data.message[0];return void 0!==t&&void 0!==t.constraints?o(new Error(Object(c["a"])(t.constraints).message)):o(void 0!==t?new Error(t.message):new Error(Object(c["c"])(e.response.data.message.errorCode).message))}catch(p){return o(new Error(Object(c["c"])("somethingWentWrong").message))}}return(null===(r=null===(a=null===(i=null===e||void 0===e?void 0:e.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.message)||void 0===r?void 0:r.errorCode)?o(new Error(Object(c["c"])(e.response.data.message.errorCode).message)):o(new Error(null!==(u=null!==(l=null===(s=null===(n=null===e||void 0===e?void 0:e.response)||void 0===n?void 0:n.data)||void 0===s?void 0:s.message)&&void 0!==l?l:null===e||void 0===e?void 0:e.message)&&void 0!==u?u:"Request failed"))}),f=()=>{const e=i["a"].create({baseURL:Object(s["a"])().config().axios.url,timeout:6e4,withCredentials:!0});return e.interceptors.request.use(e=>(p&&(e[b]=!0,setTimeout(()=>{e[b]&&(a["a"].setDefaults({spinner:r["f"]}),a["a"].show())},200)),e.headers=Object.assign(Object.assign({},e.headers),{Authorization:"bearer "+l["a"].authToken,"CSRF-Token":l["a"].csrfToken,"Referring-App":Object(n["a"])()?"reviewer":"publisher"}),e),e=>(v(null===e||void 0===e?void 0:e.config),m(e))),e.interceptors.response.use(e=>{var t;return v(e.config),(null===(t=e.data)||void 0===t?void 0:t.offline)&&(window.location.href="/#/maintenance"),e},e=>(v(null===e||void 0===e?void 0:e.config),m(e))),e},y=()=>{const e=()=>(u||(u=f()),u),t=e=>(p=e,y()),o=t=>e().post("auth/live",{},{timeout:5e3}).then(e=>!!e.data.offline&&(!t||t.push("maintenance"))),i=()=>{u=void 0,p=!0};return{axios:e,globalLoader:t,redirectIfOffline:o,reset:i,handleErrorResponse:m}}},"06f7":function(e,t,o){"use strict";o.d(t,"a",function(){return O});var i=o("1b59"),a=o("a3b6"),r=o("8b32"),n=o("a256"),s=o("f431"),l={get state(){return Object(r["readonly"])(Object(n["a"])())},getters:s["a"]},d=o("7d8d");function c(e){const t=Object(n["a"])();if(void 0===t.notifications.find(t=>t.message===e)){const o={type:d["a"].Error,message:e};t.notifications.push(o)}}function u(){Object(n["a"])().notifications=Object(n["c"])()}function p(e){Object(n["a"])().unreadMessageCount=e}function b(e){Object(n["a"])().unreadNotificationCount=e}function v(e){Object(n["a"])().redirect=e}function m(e){const t=Object(n["a"])();t.triggerLoginNotification=e.show,t.loginForwardUrl=e.show?e.forwardUrl:""}function f(e){const t=Object(n["a"])();t.showMessageDialog=e,e.show||(t.showMessageDialog.message="",t.showMessageDialog.optionalParams=[])}function y(e){Object(n["a"])().userStats=e}function g(e){Object(n["a"])().isReadyToRender=e}function h(e){Object(n["a"])().lastError=e}const O=()=>{const e=e=>{c(e)},t=()=>{u()},o=e=>{Object(i["T"])(null===e||void 0===e?void 0:e.forwardUrl)&&localStorage.setItem(a["a"],e.forwardUrl);const t=e?encodeURIComponent(e.forwardUrl):"undefined",o="undefined"!==t?"/login?forward="+t:"";if(null===e||void 0===e?void 0:e.router)return e.router.push(o);m({show:!0,forwardUrl:o})},r=()=>{m({show:!1,forwardUrl:""})},n=e=>{c(e.message)},s=e=>{p(e)},d=e=>{b(e)},O=e=>{v(e)},w=e=>{f(Object.assign(Object.assign({},e),{show:!0}))},j=()=>{f({show:!1})},I=e=>{y(e)},A=e=>{g(e)},R=e=>{h("string"===typeof e?e:String(e))};return{ui:{store:l,notifyError:e,clearNotifications:t,authRequired:o,clearAuthRequired:r,errorGeneric:n,setUnreadMessageCount:s,setUnreadNotificationCount:d,redirectTo:O,showMessageDialog:w,clearMessageDialog:j,setUserStats:I,setReadyToRender:A,setLastError:R}}}},"0bd8":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("8b32");function a(){const e=Object(i["getCurrentInstance"])();if(null===e)throw new Error("useVm: no current component instance. It has to be called synchronously inside setup(), not from a computed, a watcher or an event handler.");return e.proxy}},"114c":function(e,t,o){var i={"./arc-teams/pages/Index.vue":["ae59",1,0,30],"./arcs/pages/Index.vue":["0c3b",1,0,31],"./authors/pages/Index.vue":["47d3",1,0,32],"./gamification/pages/Index.vue":["6f42",1,33]};function a(e){if(!o.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return Promise.all(t.slice(1).map(o.e)).then(function(){return o(a)})}a.keys=function(){return Object.keys(i)},a.id="114c",e.exports=a},"13a7":function(e,t,o){"use strict";o.d(t,"b",function(){return a}),o.d(t,"c",function(){return r}),o.d(t,"a",function(){return n});var i=o("1b59");const a=e=>{var t,o;return void 0===e||null===e?null:Object.assign(Object.assign({},e),{bookId:null===(t=e.book)||void 0===t?void 0:t.id,arcTeamId:null===(o=e.arcTeam)||void 0===o?void 0:o.id,book:e.book,arcTeam:e.arcTeam,liveDate:e.liveDateStr?Object(i["Q"])(e.liveDateStr+""):void 0,stopDownloadDate:e.stopDownloadDateStr?Object(i["Q"])(e.stopDownloadDateStr+""):void 0,dueDate:e.dueDateStr?Object(i["Q"])(e.dueDateStr+""):void 0,dueCutOffDate:e.dueCutOffDateStr?Object(i["Q"])(e.dueCutOffDateStr+""):void 0})},r=e=>{if(void 0!==e&&null!==e)return Object.assign(Object.assign({},e),{stopDownloadDate:e.stopDownloadDate?Object(i["Q"])(e.stopDownloadDate+""):void 0,dueDate:Object(i["Q"])(e.dueDate+"")})},n=e=>e?e.toString(2).replace(/0/g,"").length:0},1517:function(e,t,o){"use strict";o.d(t,"a",function(){return q});var i=o("0e19"),a=o("d07d"),r=o("d997"),n=o("da07"),s=(o("8a06"),o("300a")),l=o("c2d6"),d=o("e7c1"),c=o("9873"),u=o("bb36"),p=o("2dd7"),b=o("b8bd"),v=e=>new b["a"](t=>{e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e))}),m=o("940e"),f=o("a065"),y=o("06f7"),g=o("049c"),h=o("6d03"),O=o("adf0"),w=o("3059"),j=function(e,t,o,i){function a(e){return e instanceof o?e:ne
1w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};let I,A,R=!0;const k=e=>{var t,o,i,a;return(null===(o=null===(t=null===e||void 0===e?void 0:e.extensions)||void 0===t?void 0:t.exception)||void 0===o?void 0:o.response)||(null===(i=null===e||void 0===e?void 0:e.extensions)||void 0===i?void 0:i.response)||(null===(a=null===e||void 0===e?void 0:e.extensions)||void 0===a?void 0:a.originalError)||e},S=e=>{var t,o,i;if("string"===typeof e)return Object(w["b"])(e);const a=Array.isArray(null===e||void 0===e?void 0:e.message)&&e.message.length>0&&void 0!==(null===(t=e.message[0])||void 0===t?void 0:t.constraints);return void 0!==(null===e||void 0===e?void 0:e.statusCode)?void 0!==(null===(o=e.message)||void 0===o?void 0:o.errorCode)?Object(w["c"])(e.message.errorCode):"string"===typeof e.message&&e.message?Object(w["b"])(e.message):a?Object(w["a"])(e.message[0].constraints):Object(w["b"])(e.error||e.message):a?Object(w["a"])(e.message[0].constraints):void 0!==(null===(i=null===e||void 0===e?void 0:e.message)||void 0===i?void 0:i.errorCode)?Object(w["c"])(e.message.errorCode):void 0!==(null===e||void 0===e?void 0:e.message)?Object(w["b"])(e.message):Object(w["c"])("somethingWentWrong")},T=e=>new Promise((t,o)=>{var i;const a=(null===e||void 0===e?void 0:e.errors)||(null===(i=null===e||void 0===e?void 0:e.error)||void 0===i?void 0:i.graphQLErrors);if(a&&a.length)return o(S(k(a[0])));if(e.networkError)return o(Object(w["b"])(e.networkError.result.errors));const r=Object.keys(e.data);if(!e||!e.data||0===r.length)return t(null);const n=e.data[r[0]];return Array.isArray(n)?t(n.map(e=>Object.assign({},e))):t("object"===typeof n?null===n?null:JSON.parse(JSON.stringify(n)):n)}),F=()=>j(void 0,void 0,void 0,function*(){if(!h["a"].isAuthenticated)return;const e=yield Object(g["a"])().axios().get("auth/getCsrfToken",{withCredentials:!0});Object(O["g"])(e.data)}),C=()=>h["a"].isAuthenticated?`Bearer ${h["a"].authToken}`:"",E=e=>{const{graphQLErrors:t,networkError:o,operation:i}=e;u["g"](e=>{e.setTransactionName(i.operationName),e.setContext("apolloGraphQLOperation",{operationName:i.operationName,variables:i.variables,extensions:i.extensions}),null===t||void 0===t||t.forEach(e=>{p["c"](e.message,{fingerprint:["{{ default }}","{{ transaction }}"],contexts:{apolloGraphQLError:{error:e,message:e.message,extensions:e.extensions}}})}),o&&p["c"](o.message,{contexts:{apolloNetworkError:{error:o,extensions:o.extensions}}})})},D=5e3,P=5e3,$=2;let N,L;const B=e=>{var t,o;return!0===(null===(o=null===(t=e.query)||void 0===t?void 0:t.definitions)||void 0===o?void 0:o.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))},x=()=>{void 0!==L&&(clearInterval(L),L=void 0),N=void 0},_=()=>(void 0!==N||(I=c["a"].create({type:"ongoing",message:"Connecting ..."}),N=new Promise(e=>{let t=!1;L=setInterval(()=>{t||(t=!0,Object(g["a"])().axios().post("auth/live",{},{timeout:P}).then(()=>{x(),I&&I({type:"positive",message:"Connected",icon:"app:check",timeout:2e3}),I=void 0,e()}).catch(()=>{t=!1}))},D)})),N),U=()=>Object(s["a"])(e=>{var t;const{response:o,networkError:i,operation:a,forward:r}=e;if(E(e),i){if(null===(t=null===i||void 0===i?void 0:i.result)||void 0===t?void 0:t.offline)return void Object(y["a"])().ui.redirectTo({url:"maintenance"});if(!i.result){const e=_();if(B(a))return;const t=a.getContext().reconnectReplays||0;if(t>=$)return;return v(e).flatMap(()=>(a.setContext(({headers:e={}})=>({reconnectReplays:t+1,headers:Object.assign(Object.assign({},e),{authorization:h["a"].isAuthenticated?`Bearer ${h["a"].authToken}`:""})})),r(a)))}return"invalid csrfToken"===i.result.message?v(F()).flatMap(()=>(a.setContext(({headers:e={}})=>({headers:Object.assign(Object.assign({},e),{"CSRF-Token":h["a"].csrfToken})})),r(a))):void 0}if(void 0!==o){const e=o.errors;if(e&&e.length&&e[0].extensions){const t=k(e[0]);if(void 0!==t&&t.statusCode)switch(t.statusCode){case 401:Object(O["d"])(!0);break;case 403:Object(y["a"])().ui.redirectTo({name:"login"});break;case 404:Object(y["a"])().ui.redirectTo({name:"404"});break}}}}),M=()=>{const e=new l["a"]({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:3,retryIf:e=>!!e}});return new i["a"]({link:Object(a["a"])([U(),e,new r["a"]({uri:Object(f["a"])().config().apolloClient.url,credentials:"include",headers:{"CSRF-Token":h["a"].csrfToken,authorization:C(),"Referring-App":Object(m["a"])()?"reviewer":"publisher"}})]),cache:new n["a"]({typePolicies:{BaseThreadUserDto:{keyFields:["modelKey"]}}}),devtools:{enabled:!1},defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"},mutate:{errorPolicy:"all"}}})},G=e=>{let t=!0;return R&&setTimeout(()=>{t&&d["a"].show()},200),e().finally(()=>{t=!1,d["a"].hide()})},q=()=>{const e=()=>(A||(A=M()),A),t=t=>G(()=>e().query(t).then(T)),o=t=>G(()=>e().mutate(t).then(T)),i=e=>(R=e,q()),a=()=>R,r=()=>{A=void 0,R=!0,I=void 0,x()};return{apolloClient:e,query:t,mutate:o,globalLoader:i,isGlobalLoaderEnabled:a,refreshToken:F,handleResponse:T,reset:r}}},"154e":function(e,t,o){var i={"./arc-teams/pages/View.vue":["c225",1,41],"./arcs/pages/View.vue":["10ce",1,0],"./authors/pages/View.vue":["e9b1",1,42],"./books/pages/View.vue":["49c0",1,43]};function a(e){if(!o.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return Promise.all(t.slice(1).map(o.e)).then(function(){return o(a)})}a.keys=function(){return Object.keys(i)},a.id="154e",e.exports=a},1754:function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("7aa8"),a=function(e,t,o,i){function a(e){return e instanceof o?e:ne
1w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};function r(e){const t=()=>{if(void 0===e)throw new Error("useCrud: tab registration needs $tc and $tcD.");return e},o=e=>e.indexOf("/update/")>-1,r=e=>Object.assign({},e),n=e=>Object.assign(Object.assign({},e),{id:e.id||0}),s=()=>({name:"",heading:"",description:"",hint:"",actionHint:"",i18nKey:""}),l=(e,o)=>{const{tcD:i}=t();return{name:i(e+".name",""),heading:i(e+".heading",""),description:i(e+".description",""),hint:i(e+".hint",""),actionHint:i(e+".actionHint",""),i18nKey:o.i18nKey}},d=(e,o,a)=>{const{tc:r,tcD:n}=t();return Object.assign(Object.assign(Object.assign({},new i["a"](e,r(o+".name"))),a),{actionHint:n(o+".actionHint",""),slotKey:a.i18nKey})},c=(e,t)=>`modules.${e}.formFields.tabs.${t.i18nKey}`,u=e=>{if(!e.linkService||!e.urlModelName||!e.router)return;const t=e.linkService.adminUpdate(e.urlModelName,e.id);window.history.replaceState(null,"",e.router.resolve(t).href+window.location.hash)},p=e=>a(this,void 0,void 0,function*(){yield e.doBeforeSave();const t=e.crudModel();if(void 0===t.id){const t=yield e.crudService.create(e.getCreateModel());return e.doAfterSave(t),t}const o=yield e.crudService.update(e.getUpdateModel());return e.doAfterSave(o),o}),b=e=>a(this,void 0,void 0,function*(){return e.autoSaveValid()?e.save().then(t=>{const o=e.crudModel();void 0===o.id&&(o.id=t.id,o.createdDate=t.createdDate,u({linkService:e.linkService,urlModelName:e.urlModelName,router:e.router,id:t.id}))}).catch(e=>Promise.reject(e)):Promise.resolve(void 0)});return{isEditPath:o,createModelFrom:r,updateModelFrom:n,emptyTabTracker:s,tabTrackerFrom:l,tabDefinitionFrom:d,tabI18nRoot:c,swapCreateUrlForUpdate:u,save:p,autoSave:b}}},"1a68":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("1b59"),a=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};function r(){const e=(e,t,o)=>{var a;const r=i["s"].APP.HELP_HERO_STOP_HELP>=Object(i["K"])()||0===e.arcCount||0===e.penNameCount||0===e.bookCount||0===e.arcTeamCount||0===e.reviewsCount||0===e.completeArcCount||0===e.newReviewCount||0===e.pendingTeamMembers||!1===e.anyArcHasParticipant||!1===e.anyPenNameHasFollower||!1===e.anyTeamHasMember||!1===e.hasHadTeamMemberForOneMonth||!1===e.hasReviewOlderThanOneMonth,n=i["s"].APP.HELP_HERE_COMPLETE_ON_TOURS.sort().join(",")===(null===(a=t.completedTours)||void 0===a?void 0:a.split(",").sort().join(","));return r&&!n&&Object(i["T"])(t.authorRole)&&!1===o},t=e=>!!e&&!e.isAdmin,o=(e,t)=>{const o=e?e.split(","):[];return-1===o.indexOf(t)&&o.push(t),o.join(",")},r=e=>{const t=e,{__typename:o}=t,i=a(t,["__typename"]);return i},n=()=>!["build","master"].includes("testing"),s=e=>e!==i["s"].APP.VERSION,l=e=>"ECONNABORTED"===(null===e||void 0===e?void 0:e.code),d=(e,t)=>o=>{const i=e[o];return void 0!==i?{icon:t+i}:void 0};return{shouldSendHelpHeroData:e,isHelpHeroEnabled:t,completedToursWith:o,statsForHelpHero:r,shouldRunIntervalRoutines:n,isVersionMismatch:s,isTimeoutError:l,iconMapFn:d}}},"1b59":function(e,t,o){"use strict";o.d(t,"g",function(){return r}),o.d(t,"s",function(){return s}),o.d(t,"T",function(){return d}),o.d(t,"S",function(){return c}),o.d(t,"H",function(){return u}),o.d(t,"v",function(){return p}),o.d(t,"t",function(){return b}),o.d(t,"u",function(){return v}),o.d(t,"w",function(){return m}),o.d(t,"L",function(){return f}),o.d(t,"K",function(){return y}),o.d(t,"Q",function(){return g}),o.d(t,"O",function(){return h}),o.d(t,"R",function(){return O}),o.d(t,"F",function(){return w}),o.d(t,"N",function(){return j}),o.d(t,"J",function(){return I}),o.d(t,"P",function(){return A}),o.d(t,"x",function(){return R}),o.d(t,"M",function(){return k}),o.d(t,"D",function(){return Y}),o.d(t,"r",function(){return D}),o.d(t,"i",function(){return E}),o.d(t,"m",function(){return P}),o.d(t,"l",function(){return G}),o.d(t,"j",function(){return Fe}),o.d(t,"e",function(){return mt}),o.d(t,"d",function(){return Pr}),o.d(t,"n",function(){return ui}),o.d(t,"h",function(){return Ai}),o.d(t,"C",function(){return Ri}),o.d(t,"q",function(){return Ei}),o.d(t,"o",function(){return Ni}),o.d(t,"B",function(){return yr}),o.d(t,"E",function(){return gr}),o.d(t,"y",function(){return hr}),o.d(t,"b",function(){return Ea}),o.d(t,"a",function(){return Eo}),o.d(t,"z",function(){return Za}),o.d(t,"A",function(){return er}),o.d(t,"G",function(){return or}),o.d(t,"I",function(){return ir}),o.d(t,"p",function(){return Ks}),o.d(t,"f",function(){return ol}),o.d(t,"k",function(){return Qs}),o.d(t,"c",function(){return vl});var i=o("b8d9"),a=o.n(i);
1class r{constructor(e=!0){this.scopeToReviewer=e}slugify(e){return a()(e,{strict:!0})}adminLink(...e){return"/"+e.join("/")}adminList(e){const t=this.translateModule(e+"s");return this.adminLink(t)}adminUpdate(e,t){const o=this.translateModule(e);return this.adminLink(o,"update",t)}adminView(e,t){const o=this.translateModule(e);return this.adminLink(o,"view",t)}adminDelete(e,t){return this.adminLink(e,"delete",t)}adminCreate(e){const t=this.translateModule(e);return this.adminLink(t,"create")}translateModule(e,...t){switch(e){case"arc":return this.scopeToReviewer?"review-copy":"review-campaign";case"arcs":return this.scopeToReviewer?"review-copies":"review-campaigns";case"arc-team":return"team";case"arc-teams":return"teams";case"your-arcs":return"my-review-copies";default:return e}}frontEndRelative(e,...t){const o=this.translateModule(e,t);return["",o].concat(t.map(e=>this.slugify(e.toString().toLowerCase()))).join("/")}addSearch(e,t){return`${e}#?needle=${encodeURIComponent(t)}`}addAnchor(e,t){const o=e.substring(0,e.indexOf("#"))||e;return`${o}#${t}`}}const n={FREE:"free",GROWING:"growing",PRO:"pro",BEST_SELLING:"bestSelling",PUBLISHER:"publisher"},s={APP:{VERSION:"2.18.7",SOURCE:{REVIEWER:"reviewerApp"},HOME_URLS:{PUBLISHER:"/review-campaigns",REVIEWER:"/review-copies",ADMIN:"/dashboard",WEBSITE:"/authors"},HELP_HERO_STOP_HELP:new Date(2022,3,7),HELP_HERO_MAX_TOURS:2,HELP_HERE_COMPLETE_ON_TOURS:["TENO5HCzfsS","xgfHLNijbxb"],LIVE_DATE:new Date(2022,2,7),NEW_CATEGORIES_LIVE_DATE:new Date(2026,2,11),NEW_BOOK_FIELDS_LIVE_DATE:new Date(2026,3,21)},I18N:{DEFAULT_LOCALE:"en-US",COOKIE_NAME:"bs-locale",COOKIE_MAX_AGE_DAYS:365,LOCALES:[{CODE:"en-US",NATIVE_NAME:"English",LANGUAGE_FLAG:1},{CODE:"es-ES",NATIVE_NAME:"Español",LANGUAGE_FLAG:2},{CODE:"de-DE",NATIVE_NAME:"Deutsch",LANGUAGE_FLAG:4},{CODE:"fr-FR",NATIVE_NAME:"Français",LANGUAGE_FLAG:8},{CODE:"it-IT",NATIVE_NAME:"Italiano",LANGUAGE_FLAG:16},{CODE:"pt-BR",NATIVE_NAME:"Português",LANGUAGE_FLAG:32}]},USER:{ROLES:{APPLICATION:{STATUS:{NONE:0,APPLIED:1,DECLINED:2,APPROVED:3}},TYPE:{AUTHOR:0,REVIEWER:1,ADMIN:2},REVIEWER:{UNSET:"unset",NEW:"new",VALUED:"valued",TOP:"top",DEV:"dev"},AUTHOR:n},CONSENT_METHOD:{NONE:0,PRE_GDPR:1,SIGN_UP_PAGE:2,SOCIAL_POPUP:3,RECONSENT:4},EMAILS:{STATUS:{VERIFIED:0,UNVERIFIED:1,BLOCKED:2},SOFT_BOUNCE_CODE:"4096",TRANSIENT_BOUNCE_CODE:"2",DNS_ERROR:"256"},PASSWORDS:{MIN_LENGTH:8,MAX_LENGTH:65},ROLE_SELECTION:{READER:1,AUTHOR:2,PUBLISHER:3,VA:{READER:4,AUTHOR:5}},REVIEWER_APPLICATION:{STATUS:{NONE:0,APPLIED:1,DECLINED:2,REDACTED:3,APPROVED:4}}
1,USER_STATUS:{NONE:0,PREVENT_ARC_DOWNLOADS:1,SHADOW_BAN:2,LOCKED:3,INELIGIBLE_REASON_CODE:4,SUSPECTED_SPAM:5,PREVENT_AMAZON_REVIEWS:6},USER_STATUS_KEYS:{[0]:"none",[1]:"preventArcDownloads",[2]:"shadowBan",[3]:"locked",[4]:"ineligibleReasonCode",[5]:"suspectedSpam",[6]:"preventAmazonReviews"},REPORT_TYPE:{NONE:0,REVIEW:1,CANCELLATION:2,MESSAGE:3,GENERIC:4,SYSTEM:5},REPORT_TYPE_KEYS:{[0]:"none",[1]:"review",[2]:"cancellation",[3]:"message",[4]:"generic",[5]:"system"},BREVO_LISTS:{NONE:0,ALL:1,LIMITED:2}},ARC_TEAMS:{NAME:{MAX_CHARS:191},DESCRIPTION:{MAX_BYTES:65535},AUTO_ACTION:{EMAIL:{MAX_CHARS:191},TYPE:{APPROVE:1,VIP:2,BLOCK:3}},MEMBERS:{STATUS_LOG:{TYPE:{LEFT:0,CANCELLED:1,REQUESTED_JOIN:2}},TYPE:{REGULAR:1,VIP:2,NONE:3},STATUS:{AWAITING:1,ACTIVE:2,BLOCKED:4,REJECTED:5,INVITED:6,ACCEPTED_INVITE:7,NOT_MEMBER:8},STATUS_REASON_TYPE:{NONE:0,GENERIC:1,LIED:2,CANCELLED:3,NO_INTEREST:4,LOW_RATING:5,HARASSMENT:6,OTHER:7},BLOCK_STATUS_REASON_KEYS:{[0]:"generic",[1]:"lied",[2]:"cancelled",[3]:"notInterested",[4]:"lowRating",[5]:"lowRatingHint",[6]:"harassment",[7]:"other"}},DISCLAIMERS:{FREE_VIA_BS:1,FREE:2,VIA_ARC:3},REVIEW_USER:{FILTER:{ALL_BS:-1,ALL_TEAM:-2}}},ARCS:{PIRATE:{STATE:{REPORTED:0,HANDLED:1}},FILTER_GROUP:{ALL:1,AUTHOR_TEAM:2,SAVED:3},RELEASE_DATE_TYPE:{UNRELEASED:1,RELEASED:2},STATUS:{NONE:0,ACTIVE:1,SCHEDULED:2,FINISHED:3},STATUS_KEYS:{[0]:"draft",[1]:"active",[2]:"scheduled",[3]:"finished"},CLAIMS:{GROUP_COUNT:{ACTIVE:"active",DUE:"due",DELAYED:"delayed",PENDING:"pending",COMPLETE:"complete",CANCELLED:"cancelled"},FILTER_GROUP:{NONE:0,ACTIVE:1,DUE:2,DELAYED:3,PENDING_PUBLISH:4,COMPLETE:5,CANCELLED:6},INELIGIBLE_REASONS:{NONE:0,DOWNLOAD_LOCK:1,TOO_MANY_DUE_REVIEWS:2,ARC_DUE_FOR_TOO_LONG:3,WEEKLY_CLAIM_LIMIT_REACHED:4,TOP_REVIEWERS_ONLY:5,PRIVATE_ARC:6,SERIES_READING_REQUIRED:7,OUTSTANDING_REVIEW_FOR_THIS_TEAM:8,STORE_REQUIREMENTS_NOT_MET:9,ALREADY_REVIEWED:10,NO_COPIES_LEFT:11,EMAIL_NOT_VERIFIED:12,NOT_PAID_ACCOUNT:13,TOO_MANY_WITHDRAWALS:14},INELIGIBLE_REASON_KEYS:{[0]:"none",[1]:"downloadLock",[2]:"tooManyDueReviews",[3]:"arcDueForTooLong",[4]:"weeklyClaimLimitReached",[5]:"topReviewersOnly",[6]:"privateArc",[7]:"seriesReadingRequired",[8]:"outstandingReviewForThisTeam",[9]:"storeRequirementsNotMet",[10]:"alreadyReviewed",[11]:"noCopiesLeft",[12]:"emailNotVerified",[13]:"notPaidAccount",[14]:"tooManyWithdrawals"},STATUS:{CLAIMED:0,CANCELLED:1,COMPLETE:2,IN_PROGRESS:3},REVIEWER_STATUS:{ACTIVE:0,DUE:1,DELAYED:2,PENDING_PUBLISHER:3,COMPLETE:4,WITHDRAWN:5},STATE:{NEW:0,READ:1,NEW_ACTIVITY:2,NONE:3},STATUS_KEYS:{[0]:"claimed",[1]:"cancelled",[2]:"complete",[3]:"inProgress"},CANCELLATION_TYPE:{POORLY_EDITED:0,STORY:1,PERSONAL:2,BAD_DESCRIPTION:3,BAD_FIT:4,COULD_NOT_REVIEW:5,OTHER:6},CANCELLATION_TYPE_KEYS:{[0]:"poorlyEdited",[1]:"story",[2]:"personal",[3]:"badDescription",[4]:"badFit",[5]:"couldNotReview",[6]:"other"},DOWNLOAD_TYPE:{NONE:0,KINDLE:1,EMAIL:2,DOWNLOAD:3,AUDIO_BOOK:4,READ_HERE:5},FILE_TYPE:{NONE:0,EPUB:1,PDF:2}},REVIEWS:{FILTER:{ALL_BOOKS:-1,ALL_PEN_NAMES:-1},AUDIO_FLAGS:[256,512,1024,2048,4096,8192,16384,32768,65536,262144],ALL_FLAGS:458751,FLAGS:{NONE:0,AMAZON:1,GOOGLE:2,GOOD_READS:4,KOBO:8,BOOK_BUB:16,ITUNES:32,BARNES:64,SMASH_WORDS:128,AUDIBLE_US:256,AUDIBLE_UK:512,AUDIBLE:768,AUDIO_BOOK_BUB:1024,AUDIO_KOBO:2048,AUDIO_GOOGLE:4096,AUDIO_ITUNES:8192,AUDIO_BARNES:16384,AUDIO_GOODREADS:32768,AUDIO_AUTHORS_DIRECT:65536,STORY_GRAPH:131072,AUDIO_STORY_GRAPH:262144},FLAG_BOOK_KEYS:{NONE:"",AMAZON:"linkAmazonAsin",GOOGLE:"linkGoogle",GOOD_READS:"linkGoodreads",KOBO:"linkKobo",BOOK_BUB:"linkBookbub",ITUNES:"linkITunes",BARNES:"linkBarnes",SMASH_WORDS:"linkSmashwords",AUDIBLE_US:"linkAudibleUs",AUDIBLE_UK:"linkAudibleUk",AUDIO_BOOK_BUB:"linkBookbubAudio",AUDIO_KOBO:"linkKoboAudio",AUDIO_GOOGLE:"linkGoogleAudio",AUDIO_ITUNES:"linkITunesAudio",AUDIO_BARNES:"linkBarnesAudio",AUDIO_GOODREADS:"linkGoodreadsAudio",AUDIO_AUTHORS_DIRECT:"linkAuthorsDirect",STORY_GRAPH:"linkStoryGraph",AUDIO_STORY_GRAPH:"linkStoryGraphAudio"},FLAG_BOOK_KEYS_SITE:{[0]:"",[1]:"linkAmazonAsin",[2]:"linkGoogle",[4]:"linkGoodreads",[8]:"linkKobo",[16]:"linkBookbub",[32]:"linkITunes",[64]:"linkBarnes",[128]:"linkSmashwords",[256]:"linkAudibleUs",[512]:"linkAudibleUk",[1024]:"linkBookbubAudio",[2048]:"linkKoboAudio",[4096]:"linkGoogleAudio",[8192]:"linkITunesAudio",[16384]:"linkBarnesAudio",[32768]:"linkGoodreadsAudio",[65536]:"linkAuthorsDirect",[131072]:"linkStoryGraph",[262144]:"linkStoryGraphAudio"},FLAG_DESCRIPTIONS:{[0]:"None",[1]:"Amazon",[2]:"Google Play",[4]:"Goodreads",[8]:"Kobo",[16]:"Bookbub",[32]:"Apple Books",[64]:"Barnes & Noble",[128]:"Smashwords",[256]:"Audible US",[512]:"Audible UK",[768]:"Audible",[1024]:"Bookbub (Audio)",[2048]:"Kobo (Audio)",[4096]:"Google (Audio)",[8192]:"Apple Books (Audio)",[16384]:"Barnes & Noble (Audio)",[32768]:"Goodreads (Audio)",[65536]:"Authors Direct",[131072]:"StoryGraph",[262144]:"StoryGraph (Audio)"},FLAG_ICONS:{[0]:"",[1]:"amazon",[2]:"google-play",[4]:"goodreads",[8]:"kobo",[16]:"bookbub",[32]:"itunes",[64]:"barnes",[128]:"smashwords",[256]:"audible",[512]:"audible",[768]:"audible",[1024]:"bookbub",[2048]:"kobo",[4096]:"google-play",[8192]:"itunes",[16384]:"barnes",[32768]:"goodreads",[65536]:"authors-direct",[131072]:"storygraph",[262144]:"storygraph"},SITE:{STATUS:{NONE:0,COMPLETE:1,DELAYED:2,REJECTED:8},STATE:{NEW_LINK:0,NONE:1,READ:2}}},TYPE:{EBOOK:1,AUDIO_BOOK:2},DISCOVERABLE_TYPE:{PUBLIC:1,TEAM_ONLY:2},PARTICIPATION_TYPE:{PUBLIC:1,TOP_REVIEWERS:2,ANYONE_WITH_LINK:3,ON_TEAM:4},PARTICIPATION_PREVENTION_TYPE:{OUTSTANDING:1,NONE:2},SITE_WIDE_PARTICIPATION_PREVENTION_TYPE:{NONE:1,LIMITED:2},COPY_COUNT_TYPE:{ALL:1,LIMITED:2},SERIES_LIMIT_TYPE:{ANYONE:1,PREVIOUS_REVIEWERS:2},NEVER_ENDING_PRIVATE_TYPE:{NEVER_ENDING:1,LIMITED:2},YOUR_ARCS:{SORTING:{DUE_DESC:0,DUE_ASC:1,CLAIM_DESC:2,CLAIM_ASC:3,RECENT_ACTIVITY:4}},ALERT_FLAGS:{NONE:0,PEN_NAME_FOLLOWERS:1,TEAM_FOLLOWERS:2,TEAM_MEMBERS:4}
1,AUDIOBOOK_VENDOR:{NONE:0,AUDIBLE:1,AUTHORS_DIRECT:2,KOBO:3},PEN_NAME_FILTER_TYPE:{ALL:0,FOUR_STARS_AND_ABOVE:1,THREE_STARS_AND_ABOVE:2,NOT_READ:3},SORTING:{NEW:0,RECOMMENDED:3},RETIRED_SORTING:[1,2],QUALITY_SCORE:{K:50,GRAVITY:1,GLOBAL_CPI:.025,CAT_CPI:{8:.0336,1:.0162,32:.0155,23:.0114,36:.0093,48:.0086,19:.007,28:.0064},MIN_REAL_PAGE_COUNT:4,PAGE_PENALTY:.8,AUTHOR_FLOOD:{LIVE_WINDOW_DAYS:30,RECENT_PUB_DAYS:90,THRESHOLD:10,MIN_FACTOR:.2}}},PEN_NAME:{TYPE:{MY_BOOK:1,PUBLISHING:2,TYPE_CLIENT:3},FILTER_GROUP:{ALL:0,FOLLOWING:1},BIO:{MAX_BYTES:65535}},NOTIFICATIONS:{UNSUB_PREFERENCE_KEYS:{1:"alertNewArc",2:"alertTimeToPublish",3:"alertReviewDueIn2Days",4:"alertReadyToReview",5:"alertFinalFollowUp",6:"alertDelayExpiring",7:"alertDelayExpired",8:"newArcParticipant",9:"newReview",10:"arcCancellation",11:"reviewRejected",12:"newExternalReview",13:"freeText",14:"invitedToTeam",15:"arcCannotActivate",16:"alertNewTeamApplicant",17:"alertBookFileUpdated",18:"alertSavedArcEndingOrLowCopies",19:"alertSavedArcEndingOrLowCopies",101:"alertTimeToPublish",102:"dailyUpdatesOnFollowCount",200:"alertReviewDueIn2Days"},FLAGS:{EMAIL:1,APP:2,MOBILE_APP:4},STATUS:{AWAITING:1,COMPLETE:2,CANCELLED:3,FAILED:4,SENT:5,DELIVERED:6,READ:7,OPTED_OUT:8,TO_BE_GENERATED:9},STATE:{UNREAD:0,READ:1},NOTIFIERS:{NEW_ARC:{CODE:"newArcAlert",TEMPLATE_ID:"new-arc-alert"},TIME_TO_PUBLISH:{CODE:"timeToPublish",TEMPLATE_ID:"time-to-publish"},REVIEW_DUE_SOON:{CODE:"reviewsDueSoon",TEMPLATE_ID:"reviews-due-soon"},READY_TO_REVIEW:{CODE:"readyToReview",TEMPLATE_ID:"ready-to-review"},FINAL_FOLLOW_UP:{CODE:"finalFollowUp",TEMPLATE_ID:"final-follow-up"},DELAY_EXPIRING:{CODE:"delayExpiring",TEMPLATE_ID:"delay-expiring"},DELAY_EXPIRED:{CODE:"delayExpired",TEMPLATE_ID:"delay-expired"},NEW_ARC_PARTICIPANT:{CODE:"newArcParticipant",TEMPLATE_ID:"new-arc-participant"},NEW_REVIEW:{CODE:"newReview",TEMPLATE_ID:"new-review"},ARC_CANCELLATION:{CODE:"arcCancellation",TEMPLATE_ID:"arc-cancellation"},REVIEW_REJECTED:{CODE:"reviewRejected",TEMPLATE_ID:"review-rejected"},NEW_EXTERNAL_REVIEW:{CODE:"newExternalReview",TEMPLATE_ID:"new-external-review"},FREE_TEXT:{CODE:"freeText",TEMPLATE_ID:"free-text-notifier"},INVITED_TO_TEAM:{CODE:"invitedToTeam",TEMPLATE_ID:"invited-to-team"},ARC_CANNOT_ACTIVATE:{CODE:"arcCannotActivate",TEMPLATE_ID:"arc-cannot-activate"},NEW_TEAM_APPLICANT:{CODE:"newTeamApplicant",TEMPLATE_ID:"new-team-applicant"},BOOK_FILE_UPDATED:{CODE:"bookFileUpdated",TEMPLATE_ID:"book-file-updated"},SAVED_ARC_ENDING_SOON:{CODE:"savedArcEndingSoon",TEMPLATE_ID:"saved-arc-ending-soon"},SAVED_ARC_LOW_COPIES:{CODE:"savedArcLowCopies",TEMPLATE_ID:"saved-arc-low-copies"}},AUTHOR_NOTIFIERS:["timeToPublish","newArcParticipant","reviewRejected","newReview","newExternalReview","arcCancellation","arcCannotActivate","newTeamApplicant"]},MESSAGES:{STATE:{NEW:0,READ:1,BLOCKED:2,DELETED:3,FLAGGED:4}},UPLOADS:{MAX_SIZE_MB:500},BOOKS:{TITLE:{MAX_CHARS:190},SERIES_NAME:{MAX_CHARS:190},PEN_NAME:{MAX_CHARS:191},BOOK_COVER:{MAX_CHARS:191},APPLE_BOOKS_CODE:{MAX_CHARS:191},KEYWORDS:{MAX_CHARS:500},DESCRIPTION:{MAX_BYTES:65535},AUDIENCE_TYPE:{GENERAL:1,TAME:2,MATURE:3,EXPLICIT:4},AUDIENCE_TYPE_KEYS:{1:"general",2:"tame",3:"mature",4:"explicit"},FILE_UPDATE_REASON:{UPLOADED_WRONG_FILE:0,CHANGED_SIGNIFICANT:1,CHANGED_SMALL:2,FIXED_TYPOS:3},FILE_UPDATE_REASON_KEYS:{[0]:"uploadedWrongFile",[1]:"changedSignificant",[2]:"changedSmall",[3]:"fixedTypos"},LANGUAGE_KEYS:{1:"english",2:"spanish",4:"german",8:"french",16:"italian",32:"portuguese",64:"other"},LANGUAGE_FLAGS:{ALL_FLAGS:127,FLAGS:{NONE:0,ENGLISH:1,SPANISH:2,GERMAN:4,FRENCH:8,ITALIAN:16,PORTUGUESE:32,OTHER:64}},WORD_COUNT:{SHORT:1,NOVELLA:2,NOVEL:3},WORD_COUNT_RANGE:{MIN:0,MAX:2e3},SOURCE:{BS:0,IMPORTED:1},FILTER:{ALPHA:0,DATE_CREATED:1,LAST_ARC:2,REVIEWS_ASC:3,REVIEWS_DESC:4},AWAITING_BOOK_FILES:{NOT_SET:0,NOT_ALLOWED:1,ALLOW_EPUB:2,ALLOW_EPUB_PREVIEW:4,ALLOW_PDF:8,ALLOW_ALL:14}},AUTH:{LOGIN_TYPE:{DEFAULT:0,FACEBOOK:1,AMAZON:2,APPLE:3}},SUBSCRIPTIONS:{DISCOUNTS:{END_DATE:new Date(2022,2,22),MONTH:25,YEAR:35},PLANS:{FREE:{PRICES:{MONTH:0,YEAR:0},KEY:n.FREE},GROWING:{PRICES:{MONTH:9,YEAR:90},KEY:n.GROWING},PRO:{PRICES:{MONTH:19,YEAR:190},KEY:n.PRO},BEST_SELLER:{PRICES:{MONTH:29,YEAR:290},KEY:n.BEST_SELLING},PUBLISHER:{PRICES:{MONTH:59,YEAR:590},KEY:n.PUBLISHER}},CANCELLATION_TYPE:{TEMPORARY:0,DIFFICULT_FOR_READERS:1,DIFFICULT_FOR_ME:2,NOT_WORKING:3,LACKING_SUPPORT:4,COST:5,OTHER:6,NOT_ENOUGH_REVIEWS:7},CANCELLATION_TYPE_KEYS:{0:"temporary",1:"difficultForReaders",2:"difficultForMe",3:"notWorking",4:"lackingSupport",5:"cost",6:"other",7:"notEnoughReviews"}},METRIC_TRACKER:{TYPES:{FEED_ENTER:"feed.enter",FEED_CLAIM:"feed.claim",BOOK_FILE_UPDATE_OFFERED:"bookFileUpdate.offered",BOOK_FILE_UPDATE_SHOWN:"bookFileUpdate.shown",BOOK_FILE_UPDATE_DISMISSED:"bookFileUpdate.dismissed",BOOK_FILE_UPDATE_SENT:"bookFileUpdate.sent",DELIVERY_SELECTED:"delivery.selected"},FEED_SESSION_STORAGE_KEY:"bsFeedSession"}},l=o("1b6c"),d=e=>null!==e&&void 0!==e&&""!==e,c=e=>{if(null==e||void 0==e)return!1;let t=e;try{t=parseInt(e.toString())}catch(o){return!1}return!isNaN(parseInt(t.toString()))},u=e=>{if(!e)return!1;const t=new RegExp(/^(http|https):\/\/[^ "]+$/gi);return t.test(e)},p=(e,t=y())=>{const o=new Date(t);return o.setDate(t.getDate()-e),o},b=(e,t=y())=>{const o=new Date(t);return o.setDate(t.getDate()+e),o},v=(e,t=y())=>{const o=new Date(t);return new Date(o.setMonth(o.getMonth()+e))},m=(e,t)=>
1{const o=e.getTime()-t.getTime(),i=o/864e5;return Math.round(i)},f=e=>e?20:150,y=e=>{e&&c(e)&&e.toString().length>10&&(e=Math.floor(e/1e3));const t=e?new Date(e):new Date;return t},g=e=>{const t=new Date(e).getTimezoneOffset()/60;return new Date(Date.parse(new Date(e).toUTCString())+60*t*60*1e3)},h=e=>new Date(e.setUTCHours(0,0,0,0)),O=(e,t,o="#")=>{if("object"===typeof e){let t="?";const i=[];for(const o of Object.keys(e))void 0!==e[o]&&i.push(`${o}=${e[o]}`);t+=i.join("&"),O(t,void 0,o)}else if(history.pushState){const i=t||l.location.href,a=i.indexOf(o),r=-1===a?i:i.substr(0,a);history.pushState(null,"",r+`${o}${e}`)}},w=(e="#")=>{if(!l.location)return;const t=l.location.href.indexOf(e);if(t>-1){const o="#"!==e?t:t+1,i=l.location.href.substring(o);if(i.startsWith("?")){const e=i.substring(1).split("&"),t={};for(const o of e){const e=o.split("=");t[e[0]]="null"===e[1]?"":decodeURIComponent(e[1])}return t}return"null"===i?"":i}},j=(e,t)=>{const o=Math.pow(10,t||0);return Math.round(e*o)/o},I=()=>{let e;switch("master"){case"alpha":e="https://alpha.booksprout.co";break;case"beta":e="https://beta.booksprout.co";break;case"sandbox":e="https://sandbox.booksprout.co";break;case"master":e="https://booksprout.co";break;default:e="https://16e3-82-8-149-134.ngrok.io";break}return e},A=e=>e.replace(/-./g,e=>e[1].toUpperCase()),R=(e,t,o="...",i=void 0)=>e?("function"===typeof i&&i(),e.length>t-o.length?e.substring(0,t-o.length)+o:e):"",k=(e,t,o)=>{null==o&&(o="");const i=new RegExp("\\b("+t+"=).*?(&|#|$)");return e.search(i)>=0?e.replace(i,"$1"+o+"$2"):(e=e.replace(/[?#]$/,""),e+(e.indexOf("?")>0?"&":"?")+t+"="+o)};const S={MysteryThrillersAction:{id:1,name:"Mystery, Thrillers, Action",parentId:null},MysteryThrillersAction_CrimeFiction:{id:2,name:"Crime Fiction",parentId:1},MysteryThrillersAction_PsychologicalThrillers:{id:3,name:"Psychological Thrillers",parentId:1},MysteryThrillersAction_CozyMysteries:{id:4,name:"Cozy Mysteries",parentId:1},MysteryThrillersAction_HistoricalMysteries:{id:5,name:"Historical Mysteries",parentId:1},MysteryThrillersAction_Thrillers:{id:6,name:"Thrillers",parentId:1},MysteryThrillersAction_ActionAndAdventure:{id:7,name:"Action and Adventure",parentId:1},Romance:{id:8,name:"Romance",parentId:null},Romance_ContemporaryRomance:{id:9,name:"Contemporary Romance",parentId:8},Romance_RomCom:{id:10,name:"Rom-Com",parentId:8},Romance_HistoricalRomance:{id:11,name:"Historical Romance",parentId:8},Romance_RomanticSuspense:{id:12,name:"Romantic Suspense",parentId:8},Romance_YoungAdultNewAdultRomance:{id:13,name:"Young Adult / New Adult Romance",parentId:8},Romance_Romantasy:{id:14,name:"Romantasy",parentId:8},Romance_ParanormalRomance:{id:15,name:"Paranormal Romance",parentId:8},Romance_Erotica:{id:16,name:"Erotica",parentId:8},Romance_DarkRomance:{id:17,name:"Dark Romance",parentId:8},Romance_TimeTravelRomance:{id:18,name:"Time Travel Romance",parentId:8},Romance_SportsRomance:{id:58,name:"Sports Romance",parentId:8},Romance_SciFiRomance:{id:59,name:"Sci-Fi Romance",parentId:8},Romance_InspiredRomance:{id:66,name:"Inspired Romance",parentId:8},Fiction:{id:19,name:"Fiction",parentId:null},Fiction_HistoricalFiction:{id:20,name:"Historical Fiction",parentId:19},Fiction_WomensFiction:{id:21,name:"Women's Fiction",parentId:19},Fiction_LiteraryFiction:{id:22,name:"Literary Fiction",parentId:19},SpeculativeFiction:{id:23,name:"Speculative Fiction",parentId:null},SpeculativeFiction_ScienceFiction:{id:24,name:"Science Fiction",parentId:23},SpeculativeFiction_Fantasy:{id:25,name:"Fantasy",parentId:23},SpeculativeFiction_Horror:{id:26,name:"Horror",parentId:23},SpeculativeFiction_SupernaturalSuspense:{id:27,name:"Supernatural Suspense",parentId:23},SpeculativeFiction_AlternateHistory:{id:60,name:"Alternate History",parentId:23},SpeculativeFiction_PostApocalyptic:{id:61,name:"Post-Apocalyptic",parentId:23},SpeculativeFiction_Dystopia:{id:62,name:"Dystopia",parentId:23},SpeculativeFiction_ParallelUniverse:{id:63,name:"Parallel Universe",parentId:23},TeenAndYoungReaders:{id:28,name:"Teen & Young Readers",parentId:null},TeenAndYoungReaders_TeenAndYoungAdult:{id:29,name:"Teen and Young Adult",parentId:28},TeenAndYoungReaders_ChildrensPictureBook:{id:30,name:"Children's Picture Book",parentId:28},TeenAndYoungReaders_MiddleGrade:{id:31,name:"Middle Grade",parentId:28},TeenAndYoungReaders_ChildrensFiction:{id:64,name:"Children's Fiction",parentId:28},ReligionAndSpirituality:{id:32,name:"Religion & Spirituality",parentId:null},ReligionAndSpirituality_ChristianNonfiction:{id:33,name:"Christian Nonfiction",parentId:32},ReligionAndSpirituality_ChristianFiction:{id:34,name:"Christian Fiction",parentId:32},ReligionAndSpirituality_ReligionAndSpirituality:{id:35,name:"Religion and Spirituality",parentId:32},Nonfiction:{id:36,name:"Nonfiction",parentId:null},Nonfiction_AdviceAndHowTo:{id:37,name:"Advice and How-To",parentId:36},Nonfiction_BiographiesAndMemoirs:{id:38,name:"Biographies and Memoirs",parentId:36},Nonfiction_History:{id:39,name:"History",parentId:36}
1,Nonfiction_GeneralNonfiction:{id:40,name:"General Nonfiction",parentId:36},Nonfiction_Science:{id:41,name:"Science",parentId:36},Nonfiction_PoliticsAndCurrentEvents:{id:42,name:"Politics and Current Events",parentId:36},Nonfiction_Cooking:{id:43,name:"Cooking",parentId:36},Nonfiction_Parenting:{id:44,name:"Parenting",parentId:36},Nonfiction_TrueCrime:{id:45,name:"True Crime",parentId:36},Nonfiction_Business:{id:46,name:"Business",parentId:36},Nonfiction_Humor:{id:47,name:"Humor",parentId:36},LGBTQPlus:{id:48,name:"LGBTQ+",parentId:null},LGBTQPlus_GayMM:{id:49,name:"Gay (MM)",parentId:48},LGBTQPlus_LesbianFF:{id:50,name:"Lesbian (FF)",parentId:48},LGBTQPlus_TransAndNonbinary:{id:51,name:"Trans and Nonbinary",parentId:48},LGBTQPlus_QueerFiction:{id:52,name:"Queer Fiction",parentId:48},DiverseVoices:{id:53,name:"Diverse Voices",parentId:null},DiverseVoices_BlackAfricanDiaspora:{id:54,name:"Black / African Diaspora",parentId:53},DiverseVoices_AsianPacificIslander:{id:55,name:"Asian / Pacific Islander",parentId:53},DiverseVoices_LatinxHispanic:{id:56,name:"Latinx / Hispanic",parentId:53},DiverseVoices_Indigenous:{id:57,name:"Indigenous",parentId:53},DiverseVoices_MiddleEasternNorthAfrican:{id:65,name:"Middle Eastern / North African",parentId:53}},T={active:!0,typeFlags:s.NOTIFICATIONS.FLAGS.EMAIL|s.NOTIFICATIONS.FLAGS.APP|s.NOTIFICATIONS.FLAGS.MOBILE_APP},F=(Object.assign(Object.assign({},T),{id:1,code:s.NOTIFICATIONS.NOTIFIERS.NEW_ARC.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.NEW_ARC.TEMPLATE_ID,permissionPreferenceKey:"alertNewArc"}),Object.assign(Object.assign({},T),{id:2,code:s.NOTIFICATIONS.NOTIFIERS.TIME_TO_PUBLISH.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.TIME_TO_PUBLISH.TEMPLATE_ID,permissionPreferenceKey:"alertTimeToPublish"}),Object.assign(Object.assign({},T),{id:3,code:s.NOTIFICATIONS.NOTIFIERS.REVIEW_DUE_SOON.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.REVIEW_DUE_SOON.TEMPLATE_ID,permissionPreferenceKey:"alertReviewDueIn2Days"}),Object.assign(Object.assign({},T),{id:4,code:s.NOTIFICATIONS.NOTIFIERS.READY_TO_REVIEW.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.READY_TO_REVIEW.TEMPLATE_ID,permissionPreferenceKey:"alertReadyToReview"}),Object.assign(Object.assign({},T),{id:5,code:s.NOTIFICATIONS.NOTIFIERS.FINAL_FOLLOW_UP.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.FINAL_FOLLOW_UP.TEMPLATE_ID,permissionPreferenceKey:"alertFinalFollowUp"}),Object.assign(Object.assign({},T),{id:6,code:s.NOTIFICATIONS.NOTIFIERS.DELAY_EXPIRING.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.DELAY_EXPIRING.TEMPLATE_ID,permissionPreferenceKey:"alertDelayExpiring"}),Object.assign(Object.assign({},T),{id:7,code:s.NOTIFICATIONS.NOTIFIERS.DELAY_EXPIRED.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.DELAY_EXPIRED.TEMPLATE_ID,permissionPreferenceKey:"alertDelayExpired"}),Object.assign(Object.assign({},T),{id:8,code:s.NOTIFICATIONS.NOTIFIERS.NEW_ARC_PARTICIPANT.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.NEW_ARC_PARTICIPANT.TEMPLATE_ID,permissionPreferenceKey:"newArcParticipant"}),Object.assign(Object.assign({},T),{id:9,code:s.NOTIFICATIONS.NOTIFIERS.NEW_REVIEW.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.NEW_REVIEW.TEMPLATE_ID,permissionPreferenceKey:"newReview"}),Object.assign(Object.assign({},T),{id:10,code:s.NOTIFICATIONS.NOTIFIERS.ARC_CANCELLATION.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.ARC_CANCELLATION.TEMPLATE_ID,permissionPreferenceKey:"arcCancellation"}),Object.assign(Object.assign({},T),{id:11,code:s.NOTIFICATIONS.NOTIFIERS.REVIEW_REJECTED.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.REVIEW_REJECTED.TEMPLATE_ID,permissionPreferenceKey:"reviewRejected"}),Object.assign(Object.assign({},T),{id:12,code:s.NOTIFICATIONS.NOTIFIERS.NEW_EXTERNAL_REVIEW.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.NEW_EXTERNAL_REVIEW.TEMPLATE_ID,permissionPreferenceKey:"newExternalReview"}),Object.assign(Object.assign({},T),{id:13,code:s.NOTIFICATIONS.NOTIFIERS.FREE_TEXT.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.FREE_TEXT.TEMPLATE_ID,permissionPreferenceKey:"freeText"}),Object.assign(Object.assign({},T),{id:14,code:s.NOTIFICATIONS.NOTIFIERS.INVITED_TO_TEAM.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.INVITED_TO_TEAM.TEMPLATE_ID,permissionPreferenceKey:"invitedToTeam"}),Object.assign(Object.assign({},T),{id:15,code:s.NOTIFICATIONS.NOTIFIERS.ARC_CANNOT_ACTIVATE.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.ARC_CANNOT_ACTIVATE.TEMPLATE_ID,permissionPreferenceKey:"arcCannotActivate"}),Object.assign(Object.assign({},T),{id:17,code:s.NOTIFICATIONS.NOTIFIERS.BOOK_FILE_UPDATED.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.BOOK_FILE_UPDATED.TEMPLATE_ID,permissionPreferenceKey:"alertBookFileUpdated"}),Object.assign(Object.assign({},T),{id:18,code:s.NOTIFICATIONS.NOTIFIERS.SAVED_ARC_ENDING_SOON.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.SAVED_ARC_ENDING_SOON.TEMPLATE_ID,permissionPreferenceKey:"alertSavedArcEndingOrLowCopies"}
1),Object.assign(Object.assign({},T),{id:19,code:s.NOTIFICATIONS.NOTIFIERS.SAVED_ARC_LOW_COPIES.CODE,lastQueuedDate:y(0),templateId:s.NOTIFICATIONS.NOTIFIERS.SAVED_ARC_LOW_COPIES.TEMPLATE_ID,permissionPreferenceKey:"alertSavedArcEndingOrLowCopies"}),["authors","view-author","message","teams","view-team","arc-teams","view-arc-team","arcs","view-arc","cancel-arc-claim","claim-arc","review-arc","your-arcs","books","view-book","gamification","rank"]);class C{constructor(){this.read=F,this.arcDownloadsPerWeek=3,this.totalClaimOverdueDayAllowance=10,this.arcMaxDownloads=10,this.requiredReviewsForTier=0,this.requiredReviewRateForTier=30,this.canMessageAuthor=!1,this.canDownloadAudioBookArcs=!0}}class E extends C{}class D extends C{constructor(){super(...arguments),this.arcDownloadsPerWeek=10,this.totalClaimOverdueDayAllowance=150,this.arcMaxDownloads=-1,this.requiredReviewsForTier=1,this.canMessageAuthor=!0,this.canDownloadAudioBookArcs=!0}}class P extends C{constructor(){super(...arguments),this.arcDownloadsPerWeek=50,this.totalClaimOverdueDayAllowance=150,this.arcMaxDownloads=-1,this.requiredReviewsForTier=30,this.requiredReviewRateForTier=70,this.canMessageAuthor=!0,this.canDownloadAudioBookArcs=!0}}class $ extends C{constructor(){super(...arguments),this.arcDownloadsPerWeek=-1,this.totalClaimOverdueDayAllowance=-1,this.arcMaxDownloads=-1,this.requiredReviewsForTier=1e5,this.requiredReviewRateForTier=101}}const N=["pen-name","book","arc-team","arc","review","category","message"];class L{constructor(){this.create=N,this.read=N.concat(["billing"]),this.update=N,this.delete=N,this.maxParticipantsPerArc=0,this.maxRunningArcs=0,this.canCreatePrivateArcs=!1,this.canHaveVIPTeamMembers=!1,this.canCreateAudioBookArcs=!1,this.canScheduleArcs=!1,this.canLimitReviewersToAllOnSeries=!1,this.canIdentifyPiracy=!1,this.canRequireReviewOnPreviousBooksInSeries=!1,this.canShowSocialLinksOnAuthorPages=!1,this.canLimitReviewersToTopReviewersOnly=!1,this.canAccessPremiumSupport=!1,this.canUseAdvancedReviewIssueDetection=!1,this.canAddVirtualAssistants=!1,this.canViewExtendedReviewerInformation=!1,this.canHaveNeverEndingArcs=!1,this.canChooseDefaultReviewDisclaimer=!1,this.canFreeTypePenNames=!1,this.canChooseBrandedDefaultReviewDisclaimer=!1,this.canHaveTeamFollowers=!1}}class B extends L{constructor(){super(...arguments),this.create=["pen-name","book","arc-team","arc","review","category"]}}class x extends L{constructor(){super(...arguments),this.maxParticipantsPerArc=50,this.maxRunningArcs=3,this.canCreatePrivateArcs=!0,this.canHaveVIPTeamMembers=!0,this.canCreateAudioBookArcs=!0,this.canScheduleArcs=!0,this.canLimitReviewersToAllOnSeries=!0,this.canIdentifyPiracy=!0,this.canRequireReviewOnPreviousBooksInSeries=!0,this.canShowSocialLinksOnAuthorPages=!0}}class _ extends x{constructor(){super(...arguments),this.maxParticipantsPerArc=-1,this.maxRunningArcs=10,this.canLimitReviewersToTopReviewersOnly=!0,this.canAccessPremiumSupport=!0,this.canUseAdvancedReviewIssueDetection=!0,this.canAddVirtualAssistants=!0,this.canViewExtendedReviewerInformation=!0,this.canHaveNeverEndingArcs=!0,this.canChooseDefaultReviewDisclaimer=!0}}class U extends _{constructor(){super(...arguments),this.maxRunningArcs=-1,this.canFreeTypePenNames=!0,this.canChooseBrandedDefaultReviewDisclaimer=!0,this.canHaveTeamFollowers=!0}}class M extends C{constructor(){super(...arguments),this.arcDownloadsPerWeek=0,this.totalClaimOverdueDayAllowance=0,this.arcMaxDownloads=0}}class G{get isOnPaidPlan(){return this.user&&this.user.authorRole&&this.user.authorRole!==s.USER.ROLES.AUTHOR.FREE}get isDemoFeature(){var e;return["sandbox"].includes("master")&&!["[email protected]","[email protected]","[email protected]"].includes((null===(e=this.user)||void 0===e?void 0:e.emailAddress)||"")}get isPublisher(){return this.roleName===s.USER.ROLES.AUTHOR.PUBLISHER}get roleName(){return this.user?this.user.authorRole?this.user.authorRole:this.user.reviewerRole:""}configure(e,t){return void 0===this.permissions||t?(void 0!==e&&(this.user=e,this.permissions=Y(this.user.reviewerRole,this.user.authorRole)),this):this}create(e,t){return this.can("create",e,t)}read(e,t){return this.can("read",e,t)}update(e,t){return this.can("update",e,t)}delete(e,t){return this.can("delete",e,t)}can(e,t,o){if(!this.user)return!1;if(this.user.isAdmin)return!0;
1if(o===s.USER.ROLES.TYPE.AUTHOR)return void 0!==this.permissions.authorPerms&&this.permissions.authorPerms[e].includes(t);if(o===s.USER.ROLES.TYPE.REVIEWER){const o=this.permissions.reviewerPerms[e];if(o)return o.includes(t)}else if(o===s.USER.ROLES.TYPE.ADMIN){const o=this.permissions.authorPerms[e];if(o)return o.includes(t)}return!1}effectiveLimit(e){var t,o;if("maxRunningArcs"===e&&(null===(t=this.user)||void 0===t?void 0:t.legacyBestsellingArcs)&&(null===(o=this.user)||void 0===o?void 0:o.authorRole)===s.USER.ROLES.AUTHOR.BEST_SELLING)return-1;const i=this.permissions.reviewerPerms[e];return i||(void 0===this.permissions.authorPerms?0:this.permissions.authorPerms[e]||0)}withinLimit(e,t){const o=this.effectiveLimit(e);return-1===o||t<o}hasTieredPermission(e,t){if(e){const t={[s.USER.ROLES.AUTHOR.FREE]:[s.USER.ROLES.AUTHOR.FREE],[s.USER.ROLES.AUTHOR.GROWING]:[s.USER.ROLES.AUTHOR.FREE,s.USER.ROLES.AUTHOR.GROWING],[s.USER.ROLES.AUTHOR.PRO]:[s.USER.ROLES.AUTHOR.FREE,s.USER.ROLES.AUTHOR.GROWING,s.USER.ROLES.AUTHOR.PRO],[s.USER.ROLES.AUTHOR.BEST_SELLING]:[s.USER.ROLES.AUTHOR.FREE,s.USER.ROLES.AUTHOR.GROWING,s.USER.ROLES.AUTHOR.PRO,s.USER.ROLES.AUTHOR.BEST_SELLING],[s.USER.ROLES.AUTHOR.PUBLISHER]:[s.USER.ROLES.AUTHOR.FREE,s.USER.ROLES.AUTHOR.GROWING,s.USER.ROLES.AUTHOR.PRO,s.USER.ROLES.AUTHOR.BEST_SELLING,s.USER.ROLES.AUTHOR.PUBLISHER]},o=t[this.user.authorRole||""];return void 0!==o&&o.includes(e)}if(t){const e={[s.USER.ROLES.REVIEWER.NEW]:[s.USER.ROLES.REVIEWER.NEW],[s.USER.ROLES.REVIEWER.VALUED]:[s.USER.ROLES.REVIEWER.NEW,s.USER.ROLES.REVIEWER.VALUED],[s.USER.ROLES.REVIEWER.TOP]:[s.USER.ROLES.REVIEWER.NEW,s.USER.ROLES.REVIEWER.VALUED,s.USER.ROLES.REVIEWER.TOP]},o=e[this.user.reviewerRole||""];return void 0!==o&&o.includes(t)}return!1}}class q extends L{constructor(){super(...arguments),this.maxParticipantsPerArc=25,this.maxRunningArcs=1}}const V={[s.USER.ROLES.REVIEWER.UNSET]:new M,[s.USER.ROLES.REVIEWER.NEW]:new E,[s.USER.ROLES.REVIEWER.VALUED]:new D,[s.USER.ROLES.REVIEWER.TOP]:new P,[s.USER.ROLES.REVIEWER.DEV]:new $},W={free:new B,pro:new x,growing:new q,bestSelling:new _,publisher:new U},Y=(e,t)=>{const o={reviewerPerms:V[e||s.USER.ROLES.REVIEWER.NEW]||V[s.USER.ROLES.REVIEWER.NEW]};return t&&(o.authorPerms=t?W[t]:{}),o};var H=o("dbad"),K=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let z=class{};K([Object(H["Field"])(e=>H["Int"])],z.prototype,"id",void 0),z=K([Object(H["ObjectType"])()],z);var X=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Q=class extends z{};X([Object(H["Field"])()],Q.prototype,"createdDate",void 0),X([Object(H["Field"])({nullable:!0})],Q.prototype,"updatedDate",void 0),Q=X([Object(H["ObjectType"])()],Q);var J=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Z=class extends Q{};J([Object(H["Field"])(e=>H["Int"])],Z.prototype,"userId",void 0),Z=J([Object(H["ObjectType"])()],Z);var ee=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let te=class{};ee([Object(H["Field"])()],te.prototype,"id",void 0),ee([Object(H["Field"])()],te.prototype,"fileName",void 0),te=ee([Object(H["ArgsType"])()],te);var oe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};function ie(e){let t=class{};return oe([Object(H["Field"])(t=>[e])],t.prototype,"items",void 0),oe([Object(H["Field"])(e=>H["Int"])],t.prototype,"totalRows",void 0),t=oe([Object(H["ObjectType"])({isAbstract:!0})],t),t}var ae=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let re=class{};ae([Object(H["Field"])(e=>H["Int"])],re.prototype,"id",void 0),re=ae([Object(H["ArgsType"])()],re);var ne=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let se=class{};ne([Object(H["Field"])(e=>String)],se.prototype,"key",void 0),ne([Object(H["Field"])(e=>String)],se.prototype,"value",void 0),se=ne([Object(H["ObjectType"])()],se);var le=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let de=class{};le([Object(H["Field"])(e=>Date,{nullable:!0})],de.prototype,"date",void 0),de=le([Object(H["ArgsType"])()],de);var ce=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ue=class{constructor(e){Object.assign(this,e)}};ue=ce([Object(H["ArgsType"])()],ue);var pe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let be=class extends ue{};pe([Object(H["Field"])(e=>String)],be.prototype,"name",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"bio",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"image",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"facebookLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"bookbubLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"twitterLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"instagramLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"websiteLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"newsletterLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"tiktokLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"amazonLink",void 0),pe([Object(H["Field"])({nullable:!0})],be.prototype,"goodreadsLink",void 0),be=pe([Object(H["ArgsType"])()],be);var ve=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let me=class{constructor(e){Object.assign(this,e)}};ve([Object(H["Field"])(e=>H["Int"])],me.prototype,"id",void 0),me=ve([Object(H["ArgsType"])()],me);var fe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ye=class extends me{};ye=fe([Object(H["ArgsType"])()],ye);var ge=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let he=class{constructor(e){Object.assign(this,e)}};ge([Object(H["Field"])(e=>H["Int"],{nullable:!0})],he.prototype,"skip",void 0),ge([Object(H["Field"])(e=>H["Int"],{nullable:!0})],he.prototype,"take",void 0),ge([Object(H["Field"])({nullable:!0})],he.prototype,"sortBy",void 0),ge([Object(H["Field"])(e=>Boolean,{nullable:!0})],he.prototype,"descending",void 0),ge([Object(H["Field"])(e=>Boolean,{nullable:!0})],he.prototype,"genericSearch",void 0),ge([Object(H["Field"])({nullable:!0})],he.prototype,"genericSearchTerm",void 0),ge([Object(H["Field"])(e=>H["Int"],{nullable:!0})],he.prototype,"forUserId",void 0),he=ge([Object(H["ArgsType"])()],he);var Oe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let we=class extends he{};Oe([Object(H["Field"])(e=>Boolean,{nullable:!0})],we.prototype,"following",void 0),we=Oe([Object(H["ArgsType"])()],we);var je=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ie=class{constructor(e){Object.assign(this,e)}};je([Object(H["Field"])(e=>H["Int"])],Ie.prototype,"id",void 0),je([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ie.prototype,"forUserId",void 0),je([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],Ie.prototype,"ids",void 0),je([Object(H["Field"])(e=>Boolean,{nullable:!0})],Ie.prototype,"genericSearch",void 0),Ie=je([Object(H["ArgsType"])()],Ie);var Ae=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Re=class extends Ie{};Ae([Object(H["Field"])(e=>Boolean,{nullable:!0})],Re.prototype,"getAverageRating",void 0),Re=Ae([Object(H["ArgsType"])()],Re);var ke=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Se=class{};ke([Object(H["Field"])(e=>H["Int"])],Se.prototype,"id",void 0),Se=ke([Object(H["ObjectType"])()],Se);var Te=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fe=class extends Z{};Te([Object(H["Field"])(e=>String)],Fe.prototype,"name",void 0),Te([Object(H["Field"])(e=>String)],Fe.prototype,"firstName",void 0),Te([Object(H["Field"])(e=>String,{nullable:!0})],Fe.prototype,"lastName",void 0),Te([Object(H["Field"])(e=>[Se],{nullable:!0})],Fe.prototype,"followers",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"bio",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"image",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"facebookLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"bookbubLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"twitterLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"instagramLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"websiteLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"newsletterLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"tiktokLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"amazonLink",void 0),Te([Object(H["Field"])({nullable:!0})],Fe.prototype,"goodreadsLink",void 0),Te([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fe.prototype,"followerCount",void 0),Te([Object(H["Field"])(e=>H["Float"],{nullable:!0})],Fe.prototype,"averageRating",void 0),Te([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fe.prototype,"reviewCount",void 0),Te([Object(H["Field"])()],Fe.prototype,"isDraft",void 0),Fe=Te([Object(H["ObjectType"])()],Fe);var Ce=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ee=class{constructor(e){Object.assign(this,e)}};Ce([Object(H["Field"])(e=>H["Int"])],Ee.prototype,"id",void 0),Ce([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ee.prototype,"adminForId",void 0),Ee=Ce([Object(H["ArgsType"])()],Ee);var De=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let Pe=class extends Ee{};De([Object(H["Field"])(e=>String,{nullable:!0})],Pe.prototype,"name",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"bio",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"image",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"facebookLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"bookbubLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"twitterLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"instagramLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"websiteLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"newsletterLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"tiktokLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"amazonLink",void 0),De([Object(H["Field"])({nullable:!0})],Pe.prototype,"goodreadsLink",void 0),Pe=De([Object(H["ArgsType"])()],Pe);var $e=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ne=class extends te{};Ne=$e([Object(H["ArgsType"])()],Ne);var Le=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Be=class extends(ie(Fe)){};Be=Le([Object(H["ObjectType"])()],Be);var xe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _e=class extends ue{};xe([Object(H["Field"])()],_e.prototype,"name",void 0),xe([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_e.prototype,"parentCategoryId",void 0),xe([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_e.prototype,"sortOrder",void 0),_e=xe([Object(H["ArgsType"])()],_e);var Ue=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Me=class{};Ue([Object(H["Field"])(e=>H["Int"])],Me.prototype,"id",void 0),Me=Ue([Object(H["InputType"])()],Me);var Ge=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qe=class extends me{};qe=Ge([Object(H["ArgsType"])()],qe);var Ve=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let We=class extends he{};We=Ve([Object(H["ArgsType"])()],We);var Ye=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let He=class extends Ie{};He=Ye([Object(H["ArgsType"])()],He);var Ke=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ze=class{};Ke([Object(H["Field"])()],ze.prototype,"locale",void 0),Ke([Object(H["Field"])()],ze.prototype,"name",void 0),ze=Ke([Object(H["ObjectType"])()],ze);var Xe=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qe=class extends Q{};Xe([Object(H["Field"])()],Qe.prototype,"name",void 0),Xe([Object(H["Field"])(e=>H["Int"])],Qe.prototype,"sortOrder",void 0),Xe([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qe.prototype,"parentCategoryId",void 0),Xe([Object(H["Field"])(e=>Qe,{nullable:!0})],Qe.prototype,"parentCategory",void 0),Xe([Object(H["Field"])(e=>[Qe],{nullable:!0})],Qe.prototype,"childCategories",void 0),Xe([Object(H["Field"])(e=>[ze],{nullable:!0})],Qe.prototype,"translations",void 0),Qe=Xe([Object(H["ObjectType"])()],Qe);var Je=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ze=class{};Je([Object(H["Field"])(e=>H["Int"])],Ze.prototype,"id",void 0),Je([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ze.prototype,"parentCategoryId",void 0),Je([Object(H["Field"])(e=>H["Int"])],Ze.prototype,"sortOrder",void 0),Ze=Je([Object(H["InputType"])()],Ze);var et=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let tt=class{};et([Object(H["Field"])(()=>[Ze])],tt.prototype,"items",void 0),tt=et([Object(H["ArgsType"])()],tt);var ot=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let it=class extends Ee{};ot([Object(H["Field"])({nullable:!0})],it.prototype,"name",void 0),ot([Object(H["Field"])(e=>H["Int"],{nullable:!0})],it.prototype,"parentCategoryId",void 0),ot([Object(H["Field"])(e=>H["Int"],{nullable:!0})],it.prototype,"sortOrder",void 0),it=ot([Object(H["ArgsType"])()],it);var at=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let rt=class extends(ie(Qe)){};rt=at([Object(H["ObjectType"])()],rt);var nt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let st=class extends ue{constructor(){super(...arguments),this.penNameType=0}};nt([Object(H["Field"])(e=>String)],st.prototype,"title",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"description",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"penName",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"authorPenNameId",void 0),nt([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],st.prototype,"penNameType",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"bookCover",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"releaseDate",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"seriesName",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"seriesNumber",void 0),nt([Object(H["Field"])(e=>[Me],{nullable:!0})],st.prototype,"categories",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"keywords",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"wordCount",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"audience",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"language",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkAmazonAsin",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkAmazonAsinPrint",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkGoodreads",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkBookbub",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkBarnes",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkGoogle",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkKobo",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkSmashwords",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"smashwordsCouponCode",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkITunes",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkAudibleUs",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkAudibleUk",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkITunesAudio",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkBarnesAudio",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkGoogleAudio",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkGoodreadsAudio",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"linkKoboAudio",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"linkBookbubAudio",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"linkStoryGraph",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"linkStoryGraphAudio",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"source",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"pdfFile",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"pdfFileSizeBytes",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"pdfSystemGenerated",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"pdfFileDate",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"epubFile",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"epubFileSizeBytes",void 0),nt([Object(H["Field"])(e=>String,{nullable:!0})],st.prototype,"epubPreviewFile",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"epubSystemGenerated",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"epubFileDate",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"epubFileFriendlyName",void 0),nt([Object(H["Field"])({nullable:!0})],st.prototype,"pdfFileFriendlyName",void 0),nt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],st.prototype,"awaitingBookFileFlag",void 0),st=nt([Object(H["ArgsType"])()],st);var lt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let dt=class extends me{};dt=lt([Object(H["ArgsType"])()],dt);var ct=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ut=class extends he{};ct([Object(H["Field"])({nullable:!0})],ut.prototype,"needle",void 0),ct([Object(H["Field"])({nullable:!0})],ut.prototype,"isDraft",void 0),ct([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ut.prototype,"penNameId",void 0),ct([Object(H["Field"])({nullable:!0})],ut.prototype,"seriesName",void 0),ct([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ut.prototype,"beforeSeriesNumber",void 0),ct([Object(H["Field"])({nullable:!0})],ut.prototype,"allowImportedDrafts",void 0),ct([Object(H["Field"])({nullable:!0})],ut.prototype,"hasReviews",void 0),ct([Object(H["Field"])({nullable:!0})],ut.prototype,"missingPreview",void 0),ut=ct([Object(H["ArgsType"])()],ut);var pt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let bt=class extends Ie{};bt=pt([Object(H["ArgsType"])()],bt);var vt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let mt=class extends Z{constructor(){super(...arguments),this.penNameType=s.PEN_NAME.TYPE.MY_BOOK}};vt([Object(H["Field"])({nullable:!0})],mt.prototype,"title",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"description",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"penName",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"authorPenNameId",void 0),vt([Object(H["Field"])(e=>H["Int"],{defaultValue:s.PEN_NAME.TYPE.MY_BOOK})],mt.prototype,"penNameType",void 0),vt([Object(H["Field"])(e=>Fe,{nullable:!0})],mt.prototype,"authorPenName",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"bookCover",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"releaseDate",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"seriesName",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"seriesNumber",void 0),vt([Object(H["Field"])(e=>[Qe],{nullable:!0})],mt.prototype,"categories",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"keywords",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"wordCount",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"audience",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"language",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkAmazonAsin",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkAmazonAsinPrint",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkGoodreads",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkBookbub",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkBarnes",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkGoogle",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkKobo",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkSmashwords",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"smashwordsCouponCode",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkITunes",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkAudibleUs",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkAudibleUk",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkITunesAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkBarnesAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkGoogleAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkGoodreadsAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkKoboAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkBookbubAudio",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkStoryGraph",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"linkStoryGraphAudio",void 0),vt([Object(H["Field"])(e=>H["Float"],{nullable:!0})],mt.prototype,"averageRating",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"reviewCount",void 0),vt([Object(H["Field"])()],mt.prototype,"isDraft",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"lastArcOn",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"newReviewCount",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"updatedReviewCount",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"importedId",void 0),vt([Object(H["Field"])(e=>String,{nullable:!0})],mt.prototype,"pdfFile",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"pdfFileSizeBytes",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"pdfSystemGenerated",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"pdfFileDate",void 0),vt([Object(H["Field"])(e=>String,{nullable:!0})],mt.prototype,"epubFile",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"epubFileSizeBytes",void 0),vt([Object(H["Field"])(e=>String,{nullable:!0})],mt.prototype,"epubPreviewFile",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"epubSystemGenerated",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"epubFileDate",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"epubFileFriendlyName",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"pdfFileFriendlyName",void 0),vt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mt.prototype,"awaitingBookFileFlag",void 0),vt([Object(H["Field"])({nullable:!0})],mt.prototype,"iTunesDownloadCodes",void 0),mt=vt([Object(H["ObjectType"])()],mt);var ft=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let yt=class extends Ee{constructor(){super(...arguments),this.penNameType=0}};ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"title",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"description",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"penName",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"authorPenNameId",void 0),ft([Object(H["Field"])(e=>H["Int"],{defaultValue:0,nullable:!0})],yt.prototype,"penNameType",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"bookCover",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"releaseDate",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"seriesName",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"seriesNumber",void 0),ft([Object(H["Field"])(e=>[Me],{nullable:!0})],yt.prototype,"categories",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"keywords",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"wordCount",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"audience",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"language",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkAmazonAsin",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkAmazonAsinPrint",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkGoodreads",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkBookbub",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkBarnes",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkGoogle",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkKobo",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkSmashwords",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"smashwordsCouponCode",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkITunes",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkAudibleUs",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkAudibleUk",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkITunesAudio",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkBarnesAudio",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkGoogleAudio",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkGoodreadsAudio",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"linkKoboAudio",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"linkBookbubAudio",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"linkStoryGraph",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"linkStoryGraphAudio",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"source",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"pdfFile",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"pdfFileSizeBytes",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"pdfSystemGenerated",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"pdfFileDate",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"epubFile",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"epubFileSizeBytes",void 0),ft([Object(H["Field"])(e=>String,{nullable:!0})],yt.prototype,"epubPreviewFile",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"epubSystemGenerated",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"epubFileDate",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"generatedNewEpub",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"epubFileFriendlyName",void 0),ft([Object(H["Field"])({nullable:!0})],yt.prototype,"pdfFileFriendlyName",void 0),ft([Object(H["Field"])(e=>H["Int"],{nullable:!0})],yt.prototype,"awaitingBookFileFlag",void 0),yt=ft([Object(H["ArgsType"])()],yt);var gt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ht=class extends te{};ht=gt([Object(H["ArgsType"])()],ht);var Ot=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let wt=class{};Ot([Object(H["Field"])()],wt.prototype,"penName",void 0),Ot([Object(H["Field"])({nullable:!0})],wt.prototype,"needle",void 0),wt=Ot([Object(H["ArgsType"])()],wt);var jt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let It=class extends(ie(mt)){};It=jt([Object(H["ObjectType"])()],It);var At=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Rt=class{};At([Object(H["Field"])()],Rt.prototype,"name",void 0),At([Object(H["Field"])(e=>H["Int"])],Rt.prototype,"count",void 0),Rt=At([Object(H["ObjectType"])()],Rt);var kt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let St=class{};kt([Object(H["Field"])(e=>H["Int"])],St.prototype,"id",void 0),kt([Object(H["Field"])()],St.prototype,"code",void 0),kt([Object(H["Field"])({nullable:!0})],St.prototype,"expirationDate",void 0),kt([Object(H["Field"])()],St.prototype,"claimed",void 0),St=kt([Object(H["ObjectType"])()],St);var Tt=o("0fae"),Ft=o("14fd"),Ct=o("db21"),Et=o("b386"),Dt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Pt=class{};Dt([Object(H["Field"])(e=>H["Int"])],Pt.prototype,"bookId",void 0),Pt=Dt([Object(H["ArgsType"])()],Pt);let $t=class{};Dt([Object(H["Field"])(e=>H["Int"])],$t.prototype,"bookId",void 0),Dt([Object(H["Field"])(e=>
1[String]),Object(Tt["a"])(),Object(Ft["a"])()],$t.prototype,"codes",void 0),Dt([Object(H["Field"])({nullable:!0}),Object(Ct["a"])(),Object(Et["a"])(/^\d{4}-\d{2}-\d{2}$/,{message:"expirationDate must be YYYY-MM-DD"})],$t.prototype,"expirationDate",void 0),$t=Dt([Object(H["ArgsType"])()],$t);let Nt=class{};Dt([Object(H["Field"])(e=>H["Int"])],Nt.prototype,"bookId",void 0),Dt([Object(H["Field"])(e=>H["Int"])],Nt.prototype,"id",void 0),Nt=Dt([Object(H["ArgsType"])()],Nt);var Lt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Bt=class{};Lt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bt.prototype,"categoryId",void 0),Lt([Object(H["Field"])({nullable:!0})],Bt.prototype,"searchValue",void 0),Lt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bt.prototype,"take",void 0),Lt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bt.prototype,"skip",void 0),Bt=Lt([Object(H["ArgsType"])()],Bt);var xt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _t=class extends te{};xt([Object(H["Field"])()],_t.prototype,"sourceFilePath",void 0),xt([Object(H["Field"])()],_t.prototype,"convertIntoFileExt",void 0),xt([Object(H["Field"])()],_t.prototype,"convertFromLocalFile",void 0),_t=xt([Object(H["ArgsType"])()],_t);var Ut=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Mt=class{};Ut([Object(H["Field"])()],Mt.prototype,"filePath",void 0),Ut([Object(H["Field"])()],Mt.prototype,"fileName",void 0),Ut([Object(H["Field"])(e=>H["Int"])],Mt.prototype,"fileSize",void 0),Mt=Ut([Object(H["ArgsType"])()],Mt);var Gt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qt=class{};Gt([Object(H["Field"])()],qt.prototype,"epubFileName",void 0),Gt([Object(H["Field"])(e=>H["Int"])],qt.prototype,"bookId",void 0),Gt([Object(H["Field"])()],qt.prototype,"cutAtCfi",void 0),Gt([Object(H["Field"])()],qt.prototype,"lastPageBodyHtml",void 0),Gt([Object(H["Field"])()],qt.prototype,"lastPageUrl",void 0),Gt([Object(H["Field"])()],qt.prototype,"convertFromLocalFile",void 0),qt=Gt([Object(H["ArgsType"])()],qt);var Vt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wt=class{};Vt([Object(H["Field"])()],Wt.prototype,"url",void 0),Wt=Vt([Object(H["ObjectType"])()],Wt);var Yt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ht=class extends ue{};Yt([Object(H["Field"])(e=>String)],Ht.prototype,"name",void 0),Yt([Object(H["Field"])(e=>String,{nullable:!0})],Ht.prototype,"image",void 0),Yt([Object(H["Field"])(e=>String,{nullable:!0})],Ht.prototype,"description",void 0),Yt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ht.prototype,"defaultDisclaimer",void 0),Yt([Object(H["Field"])(e=>[String],{nullable:!0})],Ht.prototype,"autoApproveEmailAddresses",void 0),Yt([Object(H["Field"])(e=>[String],{nullable:!0})],Ht.prototype,"autoBlockEmailAddresses",void 0),Yt([Object(H["Field"])(e=>[String],{nullable:!0})],Ht.prototype,"autoVipEmailAddresses",void 0),Ht=Yt([Object(H["ArgsType"])()],Ht);var Kt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let zt=class extends me{};zt=Kt([Object(H["ArgsType"])()],zt);var Xt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qt=class extends he{};Xt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qt.prototype,"teamMemberId",void 0),Xt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qt.prototype,"status",void 0),Xt([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qt.prototype,"excludeTeamsUserIsAMemberOf",void 0),Qt=Xt([Object(H["ArgsType"])()],Qt);var Jt=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Zt=class extends Ie{};Jt([Object(H["Field"])(e=>Boolean,{nullable:!0})],Zt.prototype,"getAverageRating",void 0),Zt=Jt([Object(H["ArgsType"])()],Zt);var eo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let to=class{};eo([Object(H["Field"])(e=>H["Int"])],to.prototype,"id",void 0),eo([Object(H["Field"])()],to.prototype,"emailAddress",void 0),eo([Object(H["Field"])(e=>H["Int"])],to.prototype,"type",void 0),to=eo([Object(H["ObjectType"])()],to);var oo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let io=class extends ue{};oo([Object(H["Field"])()],io.prototype,"emailAddress",void 0),oo([Object(H["Field"])(e=>H["Int"])],io.prototype,"consentMethod",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"name",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"image",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"kindleEmail",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"verifiedKindleEmail",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"amazonProfileLink",void 0),oo([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],io.prototype,"canActAs",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"lockRoles",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"notificationRegistrationToken",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"completedTours",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"authorRole",void 0),oo([Object(H["Field"])({nullable:!0})],io.prototype,"ipAddress",void 0),io=oo([Object(H["ArgsType"])()],io);var ao=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ro=class extends me{};ro=ao([Object(H["ArgsType"])()],ro);var no=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let so=class extends he{};no([Object(H["Field"])({nullable:!0})],so.prototype,"needle",void 0),no([Object(H["Field"])({nullable:!0})],so.prototype,"reported",void 0),no([Object(H["Field"])({nullable:!0})],so.prototype,"topReviewerApplicants",void 0),so=no([Object(H["ArgsType"])()],so);var lo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let co=class extends Ie{};co=lo([Object(H["ArgsType"])()],co);var uo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let po=class{constructor(e){Object.assign(this,e)}};uo([Object(H["Field"])(e=>H["Int"])],po.prototype,"id",void 0),uo([Object(H["Field"])()],po.prototype,"emailAddress",void 0),uo([Object(H["Field"])(e=>H["Int"])],po.prototype,"status",void 0),uo([Object(H["Field"])()],po.prototype,"isDefault",void 0),uo([Object(H["Field"])(e=>String,{nullable:!0})],po.prototype,"postmarkBounceCode",void 0),uo([Object(H["Field"])(e=>String,{nullable:!0})],po.prototype,"postmarkBounceName",void 0),uo([Object(H["Field"])(e=>String,{nullable:!0})],po.prototype,"postmarkBounceDescription",void 0),uo([Object(H["Field"])({nullable:!0})],po.prototype,"postmarkBounceDate",void 0),uo([Object(H["Field"])(e=>H["Int"])],po.prototype,"postmarkBounceCount",void 0),po=uo([Object(H["ObjectType"])()],po);var bo=o("ea8d"),vo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let mo=class{constructor(e){this.penNameLimit=bo.penNameLimit,this.reminderBookLinks=bo.reminderBookLinks,this.dailyUpdatesOnFollowCount=bo.dailyUpdatesOnFollowCount,this.alertTimeToPublish=bo.alertTimeToPublish,this.alertNewArcParticipant=bo.alertNewArcParticipant,this.alertNewReview=bo.alertNewReview,this.alertArcCancellation=bo.alertArcCancellation,this.alertReviewRejected=bo.alertReviewRejected,this.alertNewExternalReview=bo.alertNewExternalReview,this.alertNewArc=bo.alertNewArc,this.alertNewArcOtherLanguages=bo.alertNewArcOtherLanguages,this.alertReviewDueIn2Days=bo.alertReviewDueIn2Days,this.reviewSitesFlag=bo.reviewSitesFlag,this.reviewLanguagesFlag=bo.reviewLanguagesFlag,this.alertReadyToReview=bo.alertReadyToReview,this.alertFinalFollowup=bo.alertFinalFollowup,this.alertDelayExpiring=bo.alertDelayExpiring,this.alertDelayExpired=bo.alertDelayExpired,this.alertBookFileUpdated=bo.alertBookFileUpdated,this.emailOnMessage=bo.emailOnMessage,this.alertNewTeamApplicant=bo.alertNewTeamApplicant,this.invitedToTeam=bo.invitedToTeam,this.freeText=bo.freeText,this.alertSavedArcEndingOrLowCopies=bo.alertSavedArcEndingOrLowCopies,this.findArcFilters=bo.findArcFilters,this.brevoLists=bo.brevoLists,this.uiLocale=bo.uiLocale,Object.assign(this,e)}};vo([Object(H["Field"])(e=>H["Int"],{defaultValue:bo.penNameLimit})],mo.prototype,"penNameLimit",void 0),vo([Object(H["Field"])({defaultValue:bo.reminderBookLinks})],mo.prototype,"reminderBookLinks",void 0),vo([Object(H["Field"])({defaultValue:bo.dailyUpdatesOnFollowCount})],mo.prototype,"dailyUpdatesOnFollowCount",void 0),vo([Object(H["Field"])({defaultValue:bo.alertTimeToPublish})],mo.prototype,"alertTimeToPublish",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewArcParticipant})],mo.prototype,"alertNewArcParticipant",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewReview})],mo.prototype,"alertNewReview",void 0),vo([Object(H["Field"])({defaultValue:bo.alertArcCancellation})],mo.prototype,"alertArcCancellation",void 0),vo([Object(H["Field"])({defaultValue:bo.alertReviewRejected})],mo.prototype,"alertReviewRejected",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewExternalReview})],mo.prototype,"alertNewExternalReview",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewArc})],mo.prototype,"alertNewArc",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewArcOtherLanguages})],mo.prototype,"alertNewArcOtherLanguages",void 0),vo([Object(H["Field"])({defaultValue:bo.alertReviewDueIn2Days})],mo.prototype,"alertReviewDueIn2Days",void 0),vo([Object(H["Field"])(e=>H["Int"],{defaultValue:bo.reviewSitesFlag})],mo.prototype,"reviewSitesFlag",void 0),vo([Object(H["Field"])(e=>H["Int"],{defaultValue:bo.reviewLanguagesFlag})],mo.prototype,"reviewLanguagesFlag",void 0),vo([Object(H["Field"])({nullable:!0})],mo.prototype,"hasAmazonReviewRestriction",void 0),vo([Object(H["Field"])({defaultValue:bo.alertReadyToReview})],mo.prototype,"alertReadyToReview",void 0),vo([Object(H["Field"])({defaultValue:bo.alertFinalFollowup})],mo.prototype,"alertFinalFollowup",void 0),vo([Object(H["Field"])({defaultValue:bo.alertDelayExpiring})],mo.prototype,"alertDelayExpiring",void 0),vo([Object(H["Field"])({defaultValue:bo.alertDelayExpired})],mo.prototype,"alertDelayExpired",void 0),vo([Object(H["Field"])({defaultValue:bo.alertBookFileUpdated})],mo.prototype,"alertBookFileUpdated",void 0),vo([Object(H["Field"])({defaultValue:bo.emailOnMessage})],mo.prototype,"emailOnMessage",void 0),vo([Object(H["Field"])({defaultValue:bo.alertNewTeamApplicant})],mo.prototype,"alertNewTeamApplicant",void 0),vo([Object(H["Field"])({defaultValue:bo.invitedToTeam})],mo.prototype,"invitedToTeam",void 0),vo([Object(H["Field"])({defaultValue:bo.freeText})],mo.prototype,"freeText",void 0),vo([Object(H["Field"])({defaultValue:bo.alertSavedArcEndingOrLowCopies})],mo.prototype,"alertSavedArcEndingOrLowCopies",void 0),vo([Object(H["Field"])({defaultValue:bo.findArcFilters})],mo.prototype,"findArcFilters",void 0),vo([Object(H["Field"])(e=>String,{defaultValue:bo.brevoLists})],mo.prototype,"brevoLists",void 0),vo([Object(H["Field"])(e=>String,{defaultValue:bo.uiLocale})],mo.prototype,"uiLocale",void 0),mo=vo([Object(H["ObjectType"])()],mo);var fo=o("980e"),yo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};const go=s.I18N.LOCALES.map(e=>e.CODE);let ho=class{};yo([Object(H["Field"])({nullable:!0})],ho.prototype,"reminderBookLinks",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"dailyUpdatesOnFollowCount",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertTimeToPublish",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewArcParticipant",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewReview",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertArcCancellation",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertReviewRejected",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewExternalReview",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewArc",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewArcOtherLanguages",void 0),yo([Object(H["Field"])({nul
1lable:!0})],ho.prototype,"alertReviewDueIn2Days",void 0),yo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ho.prototype,"reviewSitesFlag",void 0),yo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ho.prototype,"reviewLanguagesFlag",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertReadyToReview",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertFinalFollowup",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertDelayExpiring",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertDelayExpired",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertBookFileUpdated",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertSavedArcEndingOrLowCopies",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"emailOnMessage",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"alertNewTeamApplicant",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"invitedToTeam",void 0),yo([Object(H["Field"])({nullable:!0})],ho.prototype,"freeText",void 0),yo([Object(H["Field"])(e=>String,{nullable:!0})],ho.prototype,"findArcFilters",void 0),yo([Object(H["Field"])(e=>String,{nullable:!0})],ho.prototype,"brevoLists",void 0),yo([Object(H["Field"])(e=>String,{nullable:!0}),Object(Ct["a"])(),Object(fo["a"])(go)],ho.prototype,"uiLocale",void 0),ho=yo([Object(H["InputType"])()],ho);var Oo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let wo=class extends Z{};Oo([Object(H["Field"])(e=>Io,{nullable:!0})],wo.prototype,"review",void 0),Oo([Object(H["Field"])(e=>H["Int"])],wo.prototype,"reviewId",void 0),Oo([Object(H["Field"])(e=>H["Int"])],wo.prototype,"status",void 0),Oo([Object(H["Field"])()],wo.prototype,"statusDate",void 0),Oo([Object(H["Field"])()],wo.prototype,"state",void 0),Oo([Object(H["Field"])(e=>H["Int"])],wo.prototype,"site",void 0),Oo([Object(H["Field"])({nullable:!0})],wo.prototype,"link",void 0),Oo([Object(H["Field"])({nullable:!0})],wo.prototype,"statusReason",void 0),Oo([Object(H["Field"])({nullable:!0})],wo.prototype,"exempt",void 0),wo=Oo([Object(H["ObjectType"])()],wo);var jo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Io=class extends Z{};jo([Object(H["Field"])(e=>Eo,{nullable:!0})],Io.prototype,"claim",void 0),jo([Object(H["Field"])(e=>H["Int"])],Io.prototype,"claimId",void 0),jo([Object(H["Field"])()],Io.prototype,"title",void 0),jo([Object(H["Field"])()],Io.prototype,"review",void 0),jo([Object(H["Field"])({nullable:!0})],Io.prototype,"reviewLanguage",void 0),jo([Object(H["Field"])({nullable:!0})],Io.prototype,"translatedReview",void 0),jo([Object(H["Field"])()],Io.prototype,"rating",void 0),jo([Object(H["Field"])({nullable:!0})],Io.prototype,"privateFeedback",void 0),jo([Object(H["Field"])({nullable:!0})],Io.prototype,"disclaimer",void 0),jo([Object(H["Field"])(e=>[wo],{nullable:!0})],Io.prototype,"sites",void 0),Io=jo([Object(H["ObjectType"])()],Io);var Ao=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ro=class{constructor(e){Object.assign(this,e)}};Ao([Object(H["Field"])(e=>H["Int"])],Ro.prototype,"claimId",void 0),Ao([Object(H["Field"])()],Ro.prototype,"title",void 0),Ao([Object(H["Field"])()],Ro.prototype,"review",void 0),Ao([Object(H["Field"])()],Ro.prototype,"privateFeedback",void 0),Ao([Object(H["Field"])()],Ro.prototype,"disclaimer",void 0),Ao([Object(H["Field"])(e=>H["Int"])],Ro.prototype,"rating",void 0),Ro=Ao([Object(H["ArgsType"])()],Ro);var ko=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let So=class{constructor(e){Object.assign(this,e)}};ko([Object(H["Field"])(e=>H["Int"])],So.prototype,"reviewId",void 0),ko([Object(H["Field"])(e=>H["Int"])],So.prototype,"userId",void 0),ko([Object(H["Field"])(e=>H["Int"],{nullable:!0})],So.prototype,"site",void 0),ko([Object(H["Field"])({nullable:!0})],So.prototype,"state",void 0),ko([Object(H["Field"])({nullable:!0})],So.prototype,"link",void 0),ko([Object(H["Field"])({nullable:!0})],So.prototype,"statusReason",void 0),ko([Object(H["Field"])(e=>H["Int"],{nullable:!0})],So.prototype,"status",void 0),So=ko([Object(H["ArgsType"])()],So);var To=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fo=class{};To([Object(H["Field"])(e=>H["Int"])],Fo.prototype,"claimId",void 0),To([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],Fo.prototype,"grantSites",void 0),To([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],Fo.prototype,"revokeSites",void 0),Fo=To([Object(H["ArgsType"])()],Fo);var Co=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Eo=class extends Z{constructor(){super(...arguments),this.reviewDays=0,this.vipExclusiveAccessDays=0}};Co([Object(H["Field"])(e=>Ea,{nullable:!0})],Eo.prototype,"arc",void 0),Co([Object(H["Field"])(e=>H["Int"])],Eo.prototype,"status",void 0),Co([Object(H["Field"])()],Eo.prototype,"state",void 0),Co([Object(H["Field"])()],Eo.prototype,"statusDate",void 0),Co([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Eo.prototype,"cancellationType",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"cancellationReason",void 0),Co([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],Eo.prototype,"reviewFlags",void 0),Co([Object(H["Field"])(e=>H["Int"],{defaultValue:0,nullable:!0})],Eo.prototype,"optionalReviewFlags",void 0),Co([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Eo.prototype,"requiredReviewCount",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"stopDownloadDate",void 0),Co([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],Eo.prototype,"reviewDays",void 0),Co([Object(H["Field"])(e=>Io,{nullable:!0})],Eo.prototype,"review",void 0),Co([Object(H["Field"])(e=>H["Int"])],Eo.prototype,"reviewId",void 0),Co([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],Eo.prototype,"vipExclusiveAccessDays",void 0),Co([Object(H["Field"])()],Eo.prototype,"dueDate",void 0),Co([Object(H["Field"])(e=>ui,{nullable:!0})],Eo.prototype,"user",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"additionalInformation",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"downloadCode",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"downloadCodeExpirationDate",void 0),Co([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Eo.prototype,"selectedAudioSiteFlag",void 0),Co([Object(H["Field"])(e=>Boolean,{nullable:!0})],Eo.prototype,"authorOwnsArc",void 0),Co([Object(H["Field"])({nullable:!0})],Eo.prototype,"lastReadCfi",void 0),Co([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Eo.prototype,"overdueDays",void 0),Co([Object(H["Field"])(e=>Boolean,{nullable:!0})],Eo.prototype,"canFollowTeam",void 0),Co([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Eo.prototype,"reviewerStatus",void 0),Eo=Co([Object(H["ObjectType"])()],Eo);var Do=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Po=class{constructor(e){Object.assign(this,e)}};Do([Object(H["Field"])(e=>H["Int"])],Po.prototype,"claimId",void 0),Do([Object(H["Field"])(e=>H["Int"])],Po.prototype,"type",void 0),Do([Object(H["Field"])({nullable:!0})],Po.prototype,"reason",void 0),Do([Object(H["Field"])({nullable:!0})],Po.prototype,"additionalInformation",void 0),Po=Do([Object(H["ArgsType"])()],Po);var $o=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let No=class{constructor(e){Object.assign(this,e)}};$o([Object(H["Field"])(e=>H["Int"])],No.prototype,"arcId",void 0),$o([Object(H["Field"])(e=>H["Int"])],No.prototype,"userId",void 0),$o([Object(H["Field"])(e=>H["Int"],{nullable:!0})],No.prototype,"selectedAudioSiteFlag",void 0),No=$o([Object(H["ArgsType"])()],No);var Lo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Bo=class{constructor(e){Object.assign(this,e)}};Lo([Object(H["Field"])(e=>H["Int"])],Bo.prototype,"claimId",void 0),Bo=Lo([Object(H["ArgsType"])()],Bo);var xo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _o=class extends he{};xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"userId",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"arcId",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"bookId",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"status",void 0),xo([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],_o.prototype,"statuses",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"claimId",void 0),xo([Object(H["Field"])({nullable:!0})],_o.prototype,"userSearchNeedle",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"type",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"reviewSiteStatus",void 0),xo([Object(H["Field"])({nullable:!0})],_o.prototype,"forAuthenticatedUser",void 0),xo([Object(H["Field"])({nullable:!0})],_o.prototype,"mustHaveReviews",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"groupByStatus",void 0),xo([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],_o.prototype,"audienceTypes",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"categoryId",void 0),xo([Object(H["Field"])({nullable:!0})],_o.prototype,"isDue",void 0),xo([Object(H["Field"])({nullable:!0})],_o.prototype,"countOnly",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"arcTeamId",void 0),xo([Object(H["Field"])(e=>H["Int"],{nullable:!0})],_o.prototype,"authorPenNameId",void 0),_o=xo([Object(H["ArgsType"])()],_o);var Uo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Mo=class extends Ie{};Uo([Object(H["Field"])(e=>H["Int"])],Mo.prototype,"userId",void 0),Mo=Uo([Object(H["ArgsType"])()],Mo);var Go=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qo=class{};Go([Object(H["Field"])(e=>H["Int"])],qo.prototype,"claimId",void 0),Go([Object(H["Field"])(e=>H["Int"])],qo.prototype,"downloadType",void 0),Go([Object(H["Field"])(e=>H["Int"])],qo.prototype,"fileType",void 0),Go([Object(H["Field"])({nullable:!0})],qo.prototype,"emailTo",void 0),qo=Go([Object(H["ArgsType"])()],qo);var Vo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wo=class{};Vo([Object(H["Field"])(e=>H["Int"])],Wo.prototype,"claimId",void 0),Wo=Vo([Object(H["ArgsType"])()],Wo);var Yo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ho=class{};Yo([Object(H["Field"])(e=>H["Int"])],Ho.prototype,"ineligibleReason",void 0),Yo([Object(H["Field"])({nullable:!0})],Ho.prototype,"reasonDate",void 0),Yo([Object(H["Field"])({nullable:!0})],Ho.prototype,"reasonDescription",void 0),Yo([Object(H["Field"])(e=>Ea,{nullable:!0})],Ho.prototype,"suggestedArc",void 0),Yo([Object(H["Field"])(e=>[mt],{nullable:!0})],Ho.prototype,"suggestedBooks",void 0),Yo([Object(H["Field"])(e=>Eo,{nullable:!0}
1)],Ho.prototype,"existingClaim",void 0),Ho=Yo([Object(H["ObjectType"])()],Ho);var Ko=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let zo=class{};Ko([Object(H["Field"])(e=>H["Int"])],zo.prototype,"arcId",void 0),Ko([Object(H["Field"])(e=>Boolean)],zo.prototype,"suggestArc",void 0),zo=Ko([Object(H["ArgsType"])()],zo);var Xo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qo=class extends(ie(Eo)){};Qo=Xo([Object(H["ObjectType"])()],Qo);var Jo=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Zo=class{};Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"activeCount",void 0),Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"dueCount",void 0),Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"delayedCount",void 0),Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"pendingPublishingCount",void 0),Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"completeCount",void 0),Jo([Object(H["Field"])(e=>H["Int"])],Zo.prototype,"cancelledCount",void 0),Jo([Object(H["Field"])(e=>Qo)],Zo.prototype,"result",void 0),Zo=Jo([Object(H["ObjectType"])()],Zo);var ei=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ti=class{};ei([Object(H["Field"])(e=>H["Int"])],ti.prototype,"claimId",void 0),ei([Object(H["Field"])(e=>H["Int"])],ti.prototype,"state",void 0),ti=ei([Object(H["ArgsType"])()],ti);var oi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ii=class{};oi([Object(H["Field"])(e=>H["Int"])],ii.prototype,"site",void 0),oi([Object(H["Field"])(e=>H["Int"])],ii.prototype,"count",void 0),ii=oi([Object(H["ObjectType"])()],ii);var ai=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ri=class{};ai([Object(H["Field"])()],ri.prototype,"code",void 0),ri=ai([Object(H["ObjectType"])()],ri);var ni=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let si=class{};ni([Object(H["Field"])(e=>H["Int"])],si.prototype,"claimId",void 0),ni([Object(H["Field"])(e=>H["Int"])],si.prototype,"userId",void 0),ni([Object(H["Field"])()],si.prototype,"cfi",void 0),si=ni([Object(H["ArgsType"])()],si);var li=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let di=class extends Q{};li([Object(H["Field"])()],di.prototype,"emailAddress",void 0),li([Object(H["Field"])(e=>String,{nullable:!0})],di.prototype,"name",void 0),li([Object(H["Field"])(e=>String,{nullable:!0})],di.prototype,"image",void 0),di=li([Object(H["ObjectType"])()],di);var ci=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ui=class extends Q{};ci([Object(H["Field"])({nullable:!0})],ui.prototype,"emailAddress",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"termsConsentDate",void 0),ci([Object(H["Field"])(e=>mo,{nullable:!0})],ui.prototype,"preferences",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"consentMethod",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"termsConsentRevokedDate",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"reviewerRole",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"authorRole",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"selectedPrimaryRole",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"name",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"image",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"kindleEmail",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"verifiedKindleEmail",void 0),ci([Object(H["Field"])(e=>String,{nullable:!0})],ui.prototype,"amazonProfileLink",void 0),ci([Object(H["Field"])(e=>[po],{nullable:!0})],ui.prototype,"userEmails",void 0),ci([Object(H["Field"])(e=>[ui],{nullable:!0})],ui.prototype,"following",void 0),ci([Object(H["Field"])(e=>[di],{nullable:!0})],ui.prototype,"canActAs",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"hasActingAs",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"status",void 0),ci([Object(H["Field"])(e=>[Eo],{nullable:!0})],ui.prototype,"arcClaims",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"topReviewerAppStatusDate",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"topReviewerAppStatus",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"topReviewerAppStatusReason",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"isAdmin",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"pirateReportCount",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"unsubId",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"stripeCustomerId",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"isLocked",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"completedTours",void 0),ci([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ui.prototype,"cancelReason",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"cancelReasonDescription",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"forceLoyaltyDiscountView",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"countryCode",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"lastLoginDate",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"usedCouponCodes",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"phoneNumber",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"phoneVerified",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"legacyBestsellingArcs",void 0),ci([Object(H["Field"])({nullable:!0})],ui.prototype,"requiresPhoneVerification",void 0),ui=ci([Object(H["ObjectType"])()],ui);var pi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let bi=class extends Ee{};pi([Object(H["Field"])({nullable:!0})],bi.prototype,"name",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"image",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"kindleEmail",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"verifiedKindleEmail",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"amazonProfileLink",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"notificationRegistrationToken",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"preferences",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"skipThirdPartySync",void 0),pi([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],bi.prototype,"canActAs",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"completedTours",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"authorRole",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"lastLoginDate",void 0),pi([Object(H["Field"])({nullable:!0})],bi.prototype,"usedCouponCodes",void 0),bi=pi([Object(H["ArgsType"])()],bi);var vi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let mi=class extends te{};mi=vi([Object(H["ArgsType"])()],mi);var fi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let yi=class{};fi([Object(H["Field"])()],yi.prototype,"emailAddress",void 0),yi=fi([Object(H["ArgsType"])()],yi);var gi=o("53d4"),hi=o("82d1"),Oi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let wi=class{};Oi([Object(gi["a"])(s.USER.PASSWORDS.MIN_LENGTH,{message:"minPasswordLength"}),Object(hi["a"])(s.USER.PASSWORDS.MAX_LENGTH,{message:"maxPasswordLength"})],wi.prototype,"newPassword",void 0),wi=Oi([Object(H["ArgsType"])()],wi);var ji=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ii=class{};ji([Object(H["Field"])()],Ii.prototype,"emailAddress",void 0),ji([Object(H["Field"])(),Object(gi["a"])(s.USER.PASSWORDS.MIN_LENGTH,{message:"minPasswordLength"}),Object(hi["a"])(s.USER.PASSWORDS.MAX_LENGTH,{message:"maxPasswordLength"})],Ii.prototype,"password",void 0),ji([Object(H["Field"])(e=>H["Int"])],Ii.prototype,"role",void 0),Ii=ji([Object(H["ArgsType"])()],Ii);class Ai{}function Ri(e){const{MIN_LENGTH:t,MAX_LENGTH:o}=s.USER.PASSWORDS;return e.length<t?"minPasswordLength":e.length>o?"maxPasswordLength":null}var ki=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Si=class extends(ie(ui)){};Si=ki([Object(H["ObjectType"])()],Si);var Ti=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fi=class extends ue{};Ti([Object(H["Field"])()],Fi.prototype,"emailAddress",void 0),Fi=Ti([Object(H["ArgsType"])()],Fi);
1var Ci=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ei=class{};Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"completeArcCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"pendingTeamMembers",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"newReviewCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"arcCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"bookCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"penNameCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"arcTeamCount",void 0),Ci([Object(H["Field"])(e=>H["Int"])],Ei.prototype,"reviewsCount",void 0),Ci([Object(H["Field"])()],Ei.prototype,"anyTeamHasMember",void 0),Ci([Object(H["Field"])()],Ei.prototype,"anyArcHasParticipant",void 0),Ci([Object(H["Field"])()],Ei.prototype,"anyPenNameHasFollower",void 0),Ci([Object(H["Field"])()],Ei.prototype,"hasReviewOlderThanOneMonth",void 0),Ci([Object(H["Field"])()],Ei.prototype,"hasHadTeamMemberForOneMonth",void 0),Ei=Ci([Object(H["ObjectType"])()],Ei);var Di=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Pi=class{};Di([Object(H["Field"])(e=>H["Int"])],Pi.prototype,"lateCount",void 0),Di([Object(H["Field"])(e=>H["Int"])],Pi.prototype,"allClaimsCount",void 0),Di([Object(H["Field"])(e=>H["Int"])],Pi.prototype,"pcOfLateClaims",void 0),Di([Object(H["Field"])(e=>H["Int"])],Pi.prototype,"onTimeReviewRate",void 0),Pi=Di([Object(H["ObjectType"])()],Pi);var $i=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ni=class{};$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"arcsDownloadedThisWeek",void 0),$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"arcTotalOverdueDays",void 0),$i([Object(H["Field"])(e=>Pi)],Ni.prototype,"onTimeReviewRateStats",void 0),$i([Object(H["Field"])(e=>Boolean)],Ni.prototype,"isTrustedReviewer",void 0),$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"totalReviewCount",void 0),$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"dueReviewCount",void 0),$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"cancelledReviewCount",void 0),$i([Object(H["Field"])(e=>H["Float"])],Ni.prototype,"averageRating",void 0),$i([Object(H["Field"])(e=>H["Int"])],Ni.prototype,"activeArcCount",void 0),$i([Object(H["Field"])({nullable:!0})],Ni.prototype,"earliestNextClaimDate",void 0),Ni=$i([Object(H["ObjectType"])()],Ni);var Li=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Bi=class{};Li([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bi.prototype,"topReviewerApplicantCount",void 0),Li([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bi.prototype,"reportedCount",void 0),Bi=Li([Object(H["ObjectType"])()],Bi);var xi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _i=class{};xi([Object(H["Field"])(e=>H["Int"])],_i.prototype,"userId",void 0),xi([Object(H["Field"])(e=>H["Int"])],_i.prototype,"newStatus",void 0),xi([Object(H["Field"])({nullable:!0})],_i.prototype,"statusReason",void 0),_i=xi([Object(H["ArgsType"])()],_i);var Ui=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Mi=class extends Z{};Ui([Object(H["Field"])(e=>di,{nullable:!0})],Mi.prototype,"adminUser",void 0),Ui([Object(H["Field"])(e=>H["Int"])],Mi.prototype,"adminUserId",void 0),Ui([Object(H["Field"])(e=>H["Int"])],Mi.prototype,"type",void 0),Ui([Object(H["Field"])()],Mi.prototype,"active",void 0),Ui([Object(H["Field"])()],Mi.prototype,"isRestriction",void 0),Ui([Object(H["Field"])({nullable:!0})],Mi.prototype,"additionalInformation",void 0),Ui([Object(H["Field"])({nullable:!0})],Mi.prototype,"expiryDate",void 0),Ui([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Mi.prototype,"ineligibleReason",void 0),Mi=Ui([Object(H["ObjectType"])()],Mi);var Gi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qi=class extends ue{};Gi([Object(H["Field"])(e=>H["Int"])],qi.prototype,"userId",void 0),Gi([Object(H["Field"])(e=>H["Int"])],qi.prototype,"type",void 0),Gi([Object(H["Field"])()],qi.prototype,"active",void 0),Gi([Object(H["Field"])()],qi.prototype,"isRestriction",void 0),Gi([Object(H["Field"])({nullable:!0})],qi.prototype,"additionalInformation",void 0),Gi([Object(H["Field"])({nullable:!0})],qi.prototype,"expiryDate",void 0),Gi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],qi.prototype,"ineligibleReason",void 0),qi=Gi([Object(H["ArgsType"])()],qi);var Vi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wi=class extends he{};Vi([Object(H["Field"])(e=>H["Int"])],Wi.prototype,"userId",void 0),Vi([Object(H["Field"])({nullable:!0})],Wi.prototype,"needle",void 0),Vi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wi.prototype,"adminUserId",void 0),Vi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wi.prototype,"type",void 0),Vi([Object(H["Field"])({nullable:!0})],Wi.prototype,"active",void 0),Vi([Object(H["Field"])({nullable:!0})],Wi.prototype,"isRestriction",void 0),Wi=Vi([Object(H["ArgsType"])()],Wi);var Yi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let Hi=class extends Ee{};Yi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hi.prototype,"type",void 0),Yi([Object(H["Field"])({nullable:!0})],Hi.prototype,"active",void 0),Yi([Object(H["Field"])({nullable:!0})],Hi.prototype,"isRestriction",void 0),Yi([Object(H["Field"])({nullable:!0})],Hi.prototype,"expiryDate",void 0),Yi([Object(H["Field"])({nullable:!0})],Hi.prototype,"additionalInformation",void 0),Yi([Object(H["Field"])(e=>H["Int"])],Hi.prototype,"userId",void 0),Yi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hi.prototype,"ineligibleReason",void 0),Hi=Yi([Object(H["ArgsType"])()],Hi);var Ki=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let zi=class extends he{};Ki([Object(H["Field"])(e=>H["Int"])],zi.prototype,"userId",void 0),Ki([Object(H["Field"])({nullable:!0})],zi.prototype,"sinceLastRestriction",void 0),Ki([Object(H["Field"])({nullable:!0})],zi.prototype,"ignored",void 0),Ki([Object(H["Field"])({nullable:!0})],zi.prototype,"system",void 0),zi=Ki([Object(H["ArgsType"])()],zi);var Xi=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qi=class extends ue{};Xi([Object(H["Field"])(e=>H["Int"])],Qi.prototype,"bookId",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"arcTeamId",void 0),Xi([Object(H["Field"])({nullable:!0}),Object(Ct["a"])(),Object(hi["a"])(500,{message:"maxLength"})],Qi.prototype,"specialInformation",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"arcType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"discoverableType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"participationType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"participationPreventionType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"siteWideParticipationPreventionType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"copyCountType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"copyCount",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"seriesLimitType",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"reviewFlags",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"optionalReviewFlags",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"requiredReviewCount",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"liveDate",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"reviewDays",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"stopDownloadDate",void 0),Xi([Object(H["Field"])(e=>Boolean,{nullable:!0})],Qi.prototype,"neverEndingPrivate",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"usDownloadCodes",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"ukDownloadCodes",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"authorsDirectDownloadCodes",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"koboDownloadCodes",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"vipExclusiveAccessDays",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"dueDate",void 0),Xi([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Qi.prototype,"alertFlags",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"liveDateStr",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"stopDownloadDateStr",void 0),Xi([Object(H["Field"])({nullable:!0})],Qi.prototype,"dueDateStr",void 0),Xi([Object(H["Field"])({nullable:!0}
1)],Qi.prototype,"dueCutOffDateStr",void 0),Qi=Xi([Object(H["ArgsType"])()],Qi);var Ji=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Zi=class extends me{};Zi=Ji([Object(H["ArgsType"])()],Zi);var ea=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ta=class extends he{constructor(){super(...arguments),this.needle=""}};ea([Object(H["Field"])(e=>String,{defaultValue:""})],ta.prototype,"needle",void 0),ea([Object(H["Field"])(e=>Boolean,{nullable:!0})],ta.prototype,"activeOnly",void 0),ea([Object(H["Field"])(e=>Boolean,{nullable:!0})],ta.prototype,"scheduledOnly",void 0),ea([Object(H["Field"])(e=>Boolean,{nullable:!0})],ta.prototype,"finishedOnly",void 0),ea([Object(H["Field"])(e=>Boolean,{nullable:!0})],ta.prototype,"draftOnly",void 0),ea([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ta.prototype,"arcType",void 0),ea([Object(H["Field"])(e=>Boolean,{nullable:!0})],ta.prototype,"withNewReviewActivityStatus",void 0),ta=ea([Object(H["ArgsType"])()],ta);var oa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ia=class extends he{};oa([Object(H["Field"])({nullable:!0})],ia.prototype,"needle",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"penNameId",void 0),oa([Object(H["Field"])({nullable:!0})],ia.prototype,"penName",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"arcTeamId",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"arcId",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"hasComeViaLink",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"activeOnly",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"pastOnly",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"savedOnly",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"arcType",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"sites",void 0),oa([Object(H["Field"])(e=>[String],{nullable:!0})],ia.prototype,"tags",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"minLength",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"maxLength",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"audiences",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"languages",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"canReviewInDays",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"categoryId",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"categoryIds",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"groupByStatus",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"allUserOwned",void 0),oa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ia.prototype,"allowOwnClaim",void 0),oa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ia.prototype,"excludeArcId",void 0),oa([Object(H["Field"])({nullable:!0})],ia.prototype,"countOnly",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"participationTypes",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"releaseDateTypes",void 0),oa([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],ia.prototype,"authors",void 0),ia=oa([Object(H["ArgsType"])()],ia);var aa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ra=class extends Ie{};aa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ra.prototype,"allowOwnClaim",void 0),aa([Object(H["Field"])(e=>Boolean,{nullable:!0})],ra.prototype,"skipEligibleCheck",void 0),ra=aa([Object(H["ArgsType"])()],ra);var na=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let sa=class extends ue{constructor(){super(...arguments),this.active=!0}};na([Object(H["Field"])({defaultValue:!0})],sa.prototype,"active",void 0),na([Object(H["Field"])(e=>H["Int"])],sa.prototype,"typeFlags",void 0),na([Object(H["Field"])()],sa.prototype,"code",void 0),na([Object(H["Field"])()],sa.prototype,"permissionPreferenceKey",void 0),na([Object(H["Field"])({nullable:!0})],sa.prototype,"templateId",void 0),na([Object(H["Field"])(e=>Date,{nullable:!0})],sa.prototype,"lastQueuedDate",void 0),sa=na([Object(H["ArgsType"])()],sa
1);var la=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let da=class extends me{};da=la([Object(H["ArgsType"])()],da);var ca=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ua=class extends he{};ca([Object(H["Field"])(e=>[String],{nullable:!0})],ua.prototype,"notificationCodes",void 0),ca([Object(H["Field"])({nullable:!0})],ua.prototype,"unread",void 0),ua=ca([Object(H["ArgsType"])()],ua);var pa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ba=class extends Ie{};ba=pa([Object(H["ArgsType"])()],ba);var va=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ma=class extends Q{};va([Object(H["Field"])()],ma.prototype,"code",void 0),va([Object(H["Field"])()],ma.prototype,"permissionPreferenceKey",void 0),va([Object(H["Field"])(e=>H["Int"])],ma.prototype,"typeFlags",void 0),va([Object(H["Field"])()],ma.prototype,"active",void 0),va([Object(H["Field"])()],ma.prototype,"lastQueuedDate",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"userAwaitingNotificationCount",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"userNotificationCount",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"status",void 0),va([Object(H["Field"])({nullable:!0})],ma.prototype,"statusDate",void 0),va([Object(H["Field"])({nullable:!0})],ma.prototype,"templateId",void 0),va([Object(H["Field"])(e=>Ea,{nullable:!0})],ma.prototype,"arc",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"arcId",void 0),va([Object(H["Field"])(e=>Eo,{nullable:!0})],ma.prototype,"arcClaim",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"arcClaimId",void 0),va([Object(H["Field"])(e=>Io,{nullable:!0})],ma.prototype,"arcReview",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"arcReviewId",void 0),va([Object(H["Field"])(e=>wo,{nullable:!0})],ma.prototype,"arcReviewSite",void 0),va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ma.prototype,"arcReviewSiteId",void 0),ma=va([Object(H["ObjectType"])()],ma);var fa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ya=class extends Ee{};fa([Object(H["Field"])({nullable:!0})],ya.prototype,"active",void 0),fa([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ya.prototype,"typeFlags",void 0),fa([Object(H["Field"])({nullable:!0})],ya.prototype,"code",void 0),fa([Object(H["Field"])({nullable:!0})],ya.prototype,"permissionPreferenceKey",void 0),fa([Object(H["Field"])({nullable:!0})],ya.prototype,"templateId",void 0),fa([Object(H["Field"])(e=>Date,{nullable:!0})],ya.prototype,"lastQueuedDate",void 0),ya=fa([Object(H["ArgsType"])()],ya);var ga=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ha=class extends(ie(ma)){};ha=ga([Object(H["ObjectType"])()],ha);var Oa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let wa=class extends Z{};Oa([Object(H["Field"])(e=>H["Int"])],wa.prototype,"status",void 0),Oa([Object(H["Field"])()],wa.prototype,"statusDate",void 0),Oa([Object(H["Field"])(e=>H["Int"])],wa.prototype,"state",void 0),Oa([Object(H["Field"])()],wa.prototype,"statusMessage",void 0),Oa([Object(H["Field"])(e=>ma)],wa.prototype,"notification",void 0),Oa([Object(H["Field"])(e=>mt,{nullable:!0})],wa.prototype,"book",void 0),Oa([Object(H["Field"])({nullable:!0})],wa.prototype,"nameOfInstigator",void 0),Oa([Object(H["Field"])(e=>Ea,{nullable:!0})],wa.prototype,"arc",void 0),Oa([Object(H["Field"])(e=>Eo,{nullable:!0})],wa.prototype,"arcClaim",void 0),Oa([Object(H["Field"])(e=>Io,{nullable:!0})],wa.prototype,"arcReview",void 0),Oa([Object(H["Field"])(e=>wo,{nullable:!0})],wa.prototype,"arcReviewSite",void 0),Oa([Object(H["Field"])(e=>Pr,{nullable:!0})],wa.prototype,"arcTeam",void 0),Oa([Object(H["Field"])(e=>Er,{nullable:!0})],wa.prototype,"arcTeamMember",void 0),Oa([Object(H["Field"])(e=>[String])],wa.prototype,"params",void 0),Oa([Object(H["Field"])()],wa.prototype,"parsedMessage",void 0),Oa([Object(H["Field"])()],wa.prototype,"parsedDescription",void 0),Oa([Object(H["Field"])()],wa.prototype,"to",void 0),wa=Oa([Object(H["ObjectType"])()],wa);var ja=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ia=class{};ja([Object(H["Field"])()],Ia.prototype,"unsubId",void 0),ja([Object(H["Field"])()],Ia.prototype,"key",void 0),Ia=ja([Object(H["ArgsType"])()],Ia);var Aa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ra=class{};Aa([Object(H["Field"])(e=>H["Int"])],Ra.prototype,"author",void 0),Aa([Object(H["Field"])(e=>H["Int"])],Ra.prototype,"reviewer",void 0),Ra=Aa([Object(H["ObjectType"])()],Ra);var ka=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Sa=class extends(ie(wa)){};ka([Object(H["Field"])(e=>H["Int"])],Sa.prototype,"unreadNotificationCount",void 0),Sa=ka([Object(H["ObjectType"])()],Sa);var Ta=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fa=class{};Ta([Object(H["Field"])(e=>H["Float"],{nullable:!0})],Fa.prototype,"averageRating",void 0),Ta([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fa.prototype,"delayedClaimed",void 0),Ta([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fa.prototype,"newReviewCount",void 0),Ta([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fa.prototype,"newReviewActivityCount",void 0),Ta([Object(H["Field"])(e=>ma,{nullable:!0})],Fa.prototype,"nextNotification",void 0),Ta([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fa.prototype,"reviewCount",void 0),Ta([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Fa.prototype,"cancelledCount",void 0),Fa=Ta([Object(H["ObjectType"])()],Fa);var Ca=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ea=class extends Z{constructor(){super(...arguments),this.arcType=s.ARCS.TYPE.EBOOK,this.discoverableType=s.ARCS.DISCOVERABLE_TYPE.PUBLIC,this.participationType=s.ARCS.PARTICIPATION_TYPE.PUBLIC,this.participationPreventionType=s.ARCS.PARTICIPATION_PREVENTION_TYPE.OUTSTANDING,this.siteWideParticipationPreventionType=s.ARCS.SITE_WIDE_PARTICIPATION_PREVENTION_TYPE.NONE,this.copyCountType=s.ARCS.COPY_COUNT_TYPE.ALL,this.seriesLimitType=s.ARCS.SERIES_LIMIT_TYPE.ANYONE,this.reviewFlags=0,this.optionalReviewFlags=0,this.requiredReviewCount=1,this.optionalReviewCount=0,this.reviewDays=0,this.vipExclusiveAccessDays=0}};Ca([Object(H["Field"])(e=>mt,{nullable:!0})],Ea.prototype,"book",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"bookId",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"status",void 0),Ca([Object(H["Field"])(e=>Pr,{nullable:!0})],Ea.prototype,"arcTeam",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"arcTeamId",void 0),Ca([Object(H["Field"])(e=>Boolean,{nullable:!0})],Ea.prototype,"canClaim",void 0),Ca([Object(H["Field"])(e=>Boolean,{nullable:!0})],Ea.prototype,"isSaved",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"saveCount",void 0),Ca([Object(H["Field"])(e=>String,{nullable:!0})],Ea.prototype,"specialInformation",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.TYPE.EBOOK})],Ea.prototype,"arcType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.DISCOVERABLE_TYPE.PUBLIC})],Ea.prototype,"discoverableType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.PARTICIPATION_TYPE.PUBLIC})],Ea.prototype,"participationType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.PARTICIPATION_PREVENTION_TYPE.OUTSTANDING})],Ea.prototype,"participationPreventionType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.SITE_WIDE_PARTICIPATION_PREVENTION_TYPE.NONE})],Ea.prototype,"siteWideParticipationPreventionType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.COPY_COUNT_TYPE.ALL})],Ea.prototype,"copyCountType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"copyCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:s.ARCS.SERIES_LIMIT_TYPE.ANYONE})],Ea.prototype,"seriesLimitType",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"reviewFlags",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"optionalReviewFlags",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:1})],Ea.prototype,"requiredReviewCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"optionalReviewCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"calculatedReviewFlags",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"calculatedOptionalReviewFlags",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"calculatedRequiredReviewCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"calculatedOptionalReviewCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Ea.prototype,"calculatedRequiredSitesCount",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"liveDate",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],Ea.prototype,"reviewDays",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"stopDownloadDate",void 0),Ca([Object(H["Field"])(e=>Boolean,{nullable:!0})],Ea.prototype,"neverEndingPrivate",void 0),Ca([Object(H["Field"])(e=>[Eo],{nullable:!0})],Ea.prototype,"claims",void 0),Ca([Object(H["Field"])()],Ea.prototype,"isDraft",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"usDownloadCodes",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"ukDownloadCodes",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"authorsDirectDownloadCodes",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"koboDownloadCodes",void 0),Ca([Object(H["Field"])(e=>H["Int"],{defaultValue:0})],Ea.prototype,"vipExclusiveAccessDays",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"dueDate",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"dueCutOffDate",void 0),Ca([Object(H["Field"])(e=>Fa,{nullable:!0})],Ea.prototype,"stats",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"importedId",void 0),Ca([Object(H["Field"])(e=>H["Int"])],Ea.prototype,"alertFlags",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"liveDateStr",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"stopDownloadDateStr",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"dueDateStr",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"dueCutOffDateStr",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"viewCount",void 0),Ca([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ea.prototype,"impressionCount",void 0),Ca([Object(H["Field"])({nullable:!0})],Ea.prototype,"fileUpdateNotificationSentDate",void 0),Ea=Ca([Object(H["ObjectType"])()],Ea);var Da=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let Pa=class extends Ee{};Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"bookId",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"arcTeamId",void 0),Da([Object(H["Field"])({nullable:!0}),Object(Ct["a"])(),Object(hi["a"])(500,{message:"maxLength"})],Pa.prototype,"specialInformation",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"arcType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"discoverableType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"participationType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"participationPreventionType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"siteWideParticipationPreventionType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"copyCountType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"copyCount",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"seriesLimitType",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"reviewFlags",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"optionalReviewFlags",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"requiredReviewCount",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"liveDate",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"reviewDays",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"stopDownloadDate",void 0),Da([Object(H["Field"])(e=>Boolean,{nullable:!0})],Pa.prototype,"neverEndingPrivate",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"usDownloadCodes",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"ukDownloadCodes",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"authorsDirectDownloadCodes",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"koboDownloadCodes",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"vipExclusiveAccessDays",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"dueDate",void 0),Da([Object(H["Field"])(e=>Boolean,{nullable:!0})],Pa.prototype,"reviewLinksCompleted",void 0),Da([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pa.prototype,"alertFlags",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"liveDateStr",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"stopDownloadDateStr",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"dueDateStr",void 0),Da([Object(H["Field"])({nullable:!0})],Pa.prototype,"dueCutOffDateStr",void 0),Pa=Da([Object(H["ArgsType"])()],Pa);var $a=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Na=class{};$a([Object(H["Field"])(e=>H["Int"])],Na.prototype,"userId",void 0),$a([Object(H["Field"])(e=>H["Int"])],Na.prototype,"arcCount",void 0),Na=$a([Object(H["ArgsType"])()],Na);var La=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ba=class extends te{};Ba=La([Object(H["ArgsType"])()],Ba);var xa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _a=class extends(ie(Ea)){};_a=xa([Object(H["ObjectType"])()],_a);var Ua=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ma=class{};Ua([Object(H["Field"])(e=>Ea,{nullable:!0})],Ma.prototype,"arc",void 0),Ua([Object(H["Field"])(e=>Boolean)],Ma.prototype,"isEligible",void 0),Ma=Ua([Object(H["ObjectType"])()],Ma);var Ga=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qa=class{};Ga([Object(H["Field"])(e=>H["Int"])],qa.prototype,"authorTeamCount",void 0),Ga([Object(H["Field"])(e=>H["Int"])],qa.prototype,"allCount",void 0),Ga([Object(H["Field"])(e=>H["Int"])],qa.prototype,"savedCount",void 0),Ga([Object(H["Field"])(e=>_a)],qa.prototype,"result",void 0),qa=Ga([Object(H["ObjectType"])()],qa);var Va=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wa=class{};Va([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wa.prototype,"excludeArcId",void 0),Wa=Va([Object(H["ArgsType"])()],Wa);var Ya=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ha=class{};Ya([Object(H["Field"])(e=>H["Int"])],Ha.prototype,"penNameFollowerCount",void 0),Ya([Object(H["Field"])(e=>H["Int"])],Ha.prototype,"arcTeamFollowerCount",void 0),Ya([Object(H["Field"])(e=>
1H["Int"])],Ha.prototype,"arcTeamMemberCount",void 0),Ha=Ya([Object(H["ObjectType"])()],Ha);var Ka=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let za=class{};Ka([Object(H["Field"])(e=>ma)],za.prototype,"notification",void 0),Ka([Object(H["Field"])(e=>H["Int"])],za.prototype,"sentCount",void 0),Ka([Object(H["Field"])(e=>H["Int"])],za.prototype,"totalCount",void 0),za=Ka([Object(H["ObjectType"])()],za);var Xa=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qa=class{};Xa([Object(H["Field"])(e=>H["Int"])],Qa.prototype,"id",void 0),Xa([Object(H["Field"])(e=>[String])],Qa.prototype,"notificationCodes",void 0),Qa=Xa([Object(H["ArgsType"])()],Qa);var Ja=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const Za=(e,t)=>{const o={[s.ARCS.REVIEWS.FLAGS.AMAZON]:/^[A-Z0-9]{10}$/gm,[s.ARCS.REVIEWS.FLAGS.GOOGLE]:/^((http|https):\/\/)?(www\.)?(play\.google)\.com/gm,[s.ARCS.REVIEWS.FLAGS.GOOD_READS]:/^((http|https):\/\/)?(www\.)?(goodreads)\.com/gm,[s.ARCS.REVIEWS.FLAGS.KOBO]:/^((http|https):\/\/)?(www\.)?((store\.)?kobo)\.com/gm,[s.ARCS.REVIEWS.FLAGS.BOOK_BUB]:/^((http|https):\/\/)?(www\.)?(bookbub)\.com/gm,[s.ARCS.REVIEWS.FLAGS.ITUNES]:/^((http|https):\/\/)?(www\.)?((itunes|books)?\.apple)\.com/gm,[s.ARCS.REVIEWS.FLAGS.BARNES]:/^((http|https):\/\/)?(www\.)?(barnes|barnesandnoble)\.com/gm,[s.ARCS.REVIEWS.FLAGS.SMASH_WORDS]:/^((http|https):\/\/)?(www\.)?(smashwords)\.com/gm,[s.ARCS.REVIEWS.FLAGS.STORY_GRAPH]:/^((http|https):\/\/)?((www|app)\.)?(thestorygraph)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_STORY_GRAPH]:/^((http|https):\/\/)?((www|app)\.)?(thestorygraph)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIBLE_US]:void 0,[s.ARCS.REVIEWS.FLAGS.AUDIBLE_UK]:void 0,[s.ARCS.REVIEWS.FLAGS.AUDIBLE]:void 0,[s.ARCS.REVIEWS.FLAGS.AUDIO_GOOGLE]:/^((http|https):\/\/)?(www\.)?(play\.google)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_GOODREADS]:/^((http|https):\/\/)?(www\.)?(goodreads)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_KOBO]:/^((http|https):\/\/)?(www\.)?((store\.)?kobo)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_BOOK_BUB]:/^((http|https):\/\/)?(www\.)?(bookbub)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_ITUNES]:/^((http|https):\/\/)?(www\.)?((itunes|books)?\.apple)\.com/gm,[s.ARCS.REVIEWS.FLAGS.AUDIO_BARNES]:/^((http|https):\/\/)?(www\.)?(barnes|barnesandnoble)\.com/gm},i={requiredCount:0,sites:[]};for(const a in s.ARCS.REVIEWS.FLAGS){const r=s.ARCS.REVIEWS.FLAGS[a];if(0===r||r===s.ARCS.REVIEWS.FLAGS.AUDIO_AUTHORS_DIRECT)continue;const n=s.ARCS.REVIEWS.FLAG_BOOK_KEYS[a],l="function"!==typeof t||t(n,r);if(l||e){const t=o[r],a=[];void 0!==t&&(r===s.ARCS.REVIEWS.FLAGS.AMAZON?a.push(e=>e&&e.match(t)||!e||"ASINs must be 10 characters in length."):a.push(e=>e&&e.match(t)||!e||"Invalid Link for this site.")),i.sites.push({description:s.ARCS.REVIEWS.FLAG_DESCRIPTIONS[r.toString()],fieldName:n,site:r,rules:a}),e&&r===s.ARCS.REVIEWS.FLAGS.AMAZON&&i.sites.push({description:"Amazon (Print)",fieldName:"linkAmazonAsinPrint",site:s.ARCS.REVIEWS.FLAGS.AMAZON,rules:a}),l&&i.requiredCount++}}return i.sites=i.sites.sort((e,t)=>e.fieldName===t.fieldName?0:e.fieldName<t.fieldName?-1:1),i},er=(e,t)=>{const o=[];for(const i in s.ARCS.REVIEWS.FLAGS){const a=s.ARCS.REVIEWS.FLAGS[i];0===a||t&&(t&a)===a||(a&e)===a&&o.push({description:s.ARCS.REVIEWS.FLAG_DESCRIPTIONS[a.toString()],fieldName:s.ARCS.REVIEWS.FLAG_BOOK_KEYS[i],site:a,rules:[]})}return o},tr=["a.co","amzn.to","amzn.eu","amzn.asia","amzn.com"],or=e=>!!e&&tr.some(t=>e.startsWith(`https://${t}/`)||e.startsWith(`http://${t}/`)),ir=(e,t)=>
1{const o=Ja(s.ARCS.REVIEWS.FLAGS,[]);let i;switch(e){case o.AMAZON:if(or(t))return!0;i=new RegExp(/\/((review(s?)\/|customer\-review(s?)\/|product-review(s?)\/)*(R[a-zA-Z0-9]{10,14}))|((u=http)(.*)(review(s?)%2F|customer\-review(s?)%2F|product-review(s?)%2F)*(R[a-zA-Z0-9]{10,14}))/gi);break;case o.BOOK_BUB:i=new RegExp(/^((http|https):\/\/)?(((www\.)?bookbub\.com\/reviews\/\d+))/gi);break;case o.GOOD_READS:i=new RegExp(/^((http|https):\/\/)?(((www\.)?goodreads\.com\/review\/show\/\d+))/gi);break;case o.STORY_GRAPH:case o.AUDIO_STORY_GRAPH:i=new RegExp(/^((http|https):\/\/)?(((www|app)\.)?thestorygraph\.com\/reviews\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi);break;default:return!0}return i.test(t)};var ar=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let rr=class{};ar([Object(H["Field"])()],rr.prototype,"fileName",void 0),ar([Object(H["Field"])(e=>H["Int"])],rr.prototype,"bookId",void 0),ar([Object(H["Field"])()],rr.prototype,"link",void 0),rr=ar([Object(H["ArgsType"])()],rr);var nr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let sr=class extends Ea{};nr([Object(H["Field"])(e=>H["Int"])],sr.prototype,"daysLeft",void 0),nr([Object(H["Field"])(e=>H["Int"])],sr.prototype,"totalClaims",void 0),sr=nr([Object(H["ObjectType"])()],sr);var lr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let dr=class{};lr([Object(H["Field"])(e=>H["Int"])],dr.prototype,"arcReviewCount",void 0),lr([Object(H["Field"])(e=>H["Int"])],dr.prototype,"arcReviewUserCount",void 0),lr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],dr.prototype,"userCount",void 0),lr([Object(H["Field"])(e=>H["Int"])],dr.prototype,"arcLiveCount",void 0),lr([Object(H["Field"])(e=>H["Int"])],dr.prototype,"arcActiveCount",void 0),lr([Object(H["Field"])(e=>H["Int"])],dr.prototype,"authorCount",void 0),lr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],dr.prototype,"totalArcCount",void 0),lr([Object(H["Field"])(e=>sr)],dr.prototype,"topArc",void 0),dr=lr([Object(H["ObjectType"])()],dr);var cr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ur=class extends Q{};cr([Object(H["Field"])(e=>H["Int"])],ur.prototype,"type",void 0),cr([Object(H["Field"])(e=>H["Int"])],ur.prototype,"reportedDocumentId",void 0),cr([Object(H["Field"])({nullable:!0})],ur.prototype,"reasonType",void 0),cr([Object(H["Field"])({nullable:!0})],ur.prototype,"extendedReason",void 0),cr([Object(H["Field"])(e=>di)],ur.prototype,"reportedByUser",void 0),cr([Object(H["Field"])({nullable:!0})],ur.prototype,"ignored",void 0),cr([Object(H["Field"])()],ur.prototype,"date",void 0),cr([Object(H["Field"])(e=>Eo,{nullable:!0})],ur.prototype,"claim",void 0),ur=cr([Object(H["ObjectType"])()],ur);var pr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let br=class{};pr([Object(H["Field"])(e=>H["Int"])],br.prototype,"docId",void 0),pr([Object(H["Field"])(e=>H["Int"])],br.prototype,"type",void 0),pr([Object(H["Field"])()],br.prototype,"ignore",void 0),br=pr([Object(H["ArgsType"])()],br);var vr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let mr=class{};vr([Object(H["Field"])(e=>ui)],mr.prototype,"user",void 0),vr([Object(H["Field"])(e=>ui,{nullable:!0})],mr.prototype,"mimicUser",void 0),vr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],mr.prototype,"tokenExpires",void 0),mr=vr([Object(H["ObjectType"])()],mr);var fr=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const yr=e=>{const t=fr(s.USER.ROLES.AUTHOR,[]);switch(e){case t.FREE:return"Free Plan";case t.GROWING:return"Growing Author";case t.PRO:return"Pro Author";case t.BEST_SELLING:return"Bestselling Author";case t.PUBLISHER:return"Publisher or ARC Service";default:return""}},gr=e=>e?`https://dashboard.stripe.com/customers/${e}`:"",hr=(e,t)=>
1{const o=a()(t+"",{strict:!0});return`https://booksprout.co/admin/user/${e}/${o}`};var Or=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let wr=class{};Or([Object(H["Field"])()],wr.prototype,"title",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"description",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"keywords",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"ogTitle",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"ogImage",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"ogUrl",void 0),Or([Object(H["Field"])({nullable:!0})],wr.prototype,"canonicalUrl",void 0),wr=Or([Object(H["ObjectType"])()],wr);var jr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ir=class{};jr([Object(H["Field"])({nullable:!0})],Ir.prototype,"fromDate",void 0),jr([Object(H["Field"])({nullable:!0})],Ir.prototype,"toDate",void 0),Ir=jr([Object(H["ArgsType"])()],Ir);var Ar=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Rr=class{};Ar([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Rr.prototype,"month",void 0),Ar([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Rr.prototype,"year",void 0),Ar([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Rr.prototype,"day",void 0),Ar([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Rr.prototype,"entityId",void 0),Ar([Object(H["Field"])(e=>H["Int"])],Rr.prototype,"count",void 0),Rr=Ar([Object(H["ObjectType"])()],Rr);var kr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Sr=class{};kr([Object(H["Field"])()],Sr.prototype,"emailAddress",void 0),Sr=kr([Object(H["ArgsType"])()],Sr);var Tr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fr=class{};Tr([Object(H["Field"])(e=>H["Int"])],Fr.prototype,"userId",void 0),Tr([Object(H["Field"])(e=>H["Int"])],Fr.prototype,"accountType",void 0),Fr=Tr([Object(H["ArgsType"])()],Fr);var Cr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Er=class extends Z{constructor(){super(...arguments),this.isDraft=!1,this.activeArcCount=0,this.reviewedArcCount=0,this.cancelledArcCount=0,this.pastDueArcCount=0,this.averageRating=0}};Cr([Object(H["Field"])(e=>Boolean,{defaultValue:!1})],Er.prototype,"isDraft",void 0),Cr([Object(H["Field"])(e=>H["Int"])],Er.prototype,"status",void 0),Cr([Object(H["Field"])(e=>H["Int"])],Er.prototype,"type",void 0),Cr([Object(H["Field"])({nullable:!0})],Er.prototype,"user",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Er.prototype,"activeArcCount",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Er.prototype,"reviewedArcCount",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Er.prototype,"cancelledArcCount",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0,defaultValue:0})],Er.prototype,"pastDueArcCount",void 0),Cr([Object(H["Field"])(e=>H["Float"],{nullable:!0,defaultValue:0})],Er.prototype,"averageRating",void 0),Cr([Object(H["Field"])(e=>Pr,{nullable:!0})],Er.prototype,"arcTeam",void 0),Cr([Object(H["Field"])(e=>H["Int"])],Er.prototype,"arcTeamId",void 0),Cr([Object(H["Field"])({nullable:!0})],Er.prototype,"statusReasonType",void 0),Cr([Object(H["Field"])({nullable:!0})],Er.prototype,"statusReason",void 0),Cr([Object(H["Field"])({nullable:!0})],Er.prototype,"reportedDate",void 0),Cr([Object(H["Field"])({nullable:!0})],Er.prototype,"statusDate",void 0),Cr([Object(H["Field"])(e=>po,{nullable:!0})],Er.prototype,"userEmail",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Er.prototype,"previousStatus",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Er.prototype,"previousType",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Er.prototype,"reviewerStatus",void 0),Cr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Er.prototype,"reviewerLogType",void 0),Er=Cr([Object(H["ObjectType"])()],Er);var Dr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Pr=class extends Z{};Dr([Object(H["Field"])({nullable:!0})],Pr.prototype,"name",void 0),Dr([Object(H["Field"])({nullable:!0})],Pr.prototype,"image",void 0),Dr([Object(H["Field"])({nullable:!0})],Pr.prototype,"description",void 0),Dr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pr.prototype,"defaultDisclaimer",void 0),Dr([Object(H["Field"])(e=>[to],{nullable:!0})],Pr.prototype,"autoActionEmailAddresses",void 0),Dr([Object(H["Field"])(e=>[Er],{nullable:!0})],Pr.prototype,"arcTeamMembers",void 0),Dr([Object(H["Field"])(e=>[Ea],{nullable:!0})],Pr.prototype,"arcs",void 0),Dr([Object(H["Field"])(e=>Er,{nullable:!0})],Pr.prototype,"clientUserTeamMember",void 0),Dr([Object(H["Field"])()],Pr.prototype,"isDraft",void 0),Dr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pr.prototype,"applicantCount",void 0),Dr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pr.prototype,"followerCount",void 0),Dr([Object(H["Field"])({nullable:!0})],Pr.prototype,"isActivePublisherTeam",void 0),Dr([Object(H["Field"])({nullable:!0})],Pr.prototype,"userIsFollowing",void 0),Dr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pr.prototype,"reviewCount",void 0),Dr([Object(H["Field"])(e=>H["Float"],{nullable:!0})],Pr.prototype,"averageRating",void 0),Pr=Dr([Object(H["ObjectType"])()],Pr);var $r=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};
1let Nr=class extends Ee{};$r([Object(H["Field"])(e=>String,{nullable:!0})],Nr.prototype,"name",void 0),$r([Object(H["Field"])(e=>String,{nullable:!0})],Nr.prototype,"image",void 0),$r([Object(H["Field"])(e=>String,{nullable:!0})],Nr.prototype,"description",void 0),$r([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Nr.prototype,"defaultDisclaimer",void 0),$r([Object(H["Field"])(e=>[String],{nullable:!0})],Nr.prototype,"autoApproveEmailAddresses",void 0),$r([Object(H["Field"])(e=>[String],{nullable:!0})],Nr.prototype,"autoBlockEmailAddresses",void 0),$r([Object(H["Field"])(e=>[String],{nullable:!0})],Nr.prototype,"autoVipEmailAddresses",void 0),Nr=$r([Object(H["ArgsType"])()],Nr);var Lr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Br=class extends te{};Br=Lr([Object(H["ArgsType"])()],Br);var xr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _r=class extends he{constructor(){super(...arguments),this.status=-1,this.type=-1,this.needle=""}};xr([Object(H["Field"])(e=>H["Int"])],_r.prototype,"teamId",void 0),xr([Object(H["Field"])(e=>H["Int"])],_r.prototype,"status",void 0),xr([Object(H["Field"])(e=>H["Int"])],_r.prototype,"type",void 0),xr([Object(H["Field"])()],_r.prototype,"needle",void 0),_r=xr([Object(H["ArgsType"])()],_r);var Ur=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Mr=class{constructor(e){Object.assign(this,e)}};Ur([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Mr.prototype,"id",void 0),Ur([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Mr.prototype,"teamId",void 0),Ur([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Mr.prototype,"userId",void 0),Mr=Ur([Object(H["ArgsType"])()],Mr);var Gr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qr=class extends Ee{};Gr([Object(H["Field"])(e=>H["Int"])],qr.prototype,"teamId",void 0),Gr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],qr.prototype,"status",void 0),Gr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],qr.prototype,"reviewerStatus",void 0),Gr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],qr.prototype,"type",void 0),Gr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],qr.prototype,"statusReasonType",void 0),Gr([Object(H["Field"])({nullable:!0})],qr.prototype,"statusReason",void 0),Gr([Object(H["Field"])(e=>Boolean,{nullable:!0})],qr.prototype,"report",void 0),qr=Gr([Object(H["ArgsType"])()],qr);var Vr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wr=class{};Vr([Object(H["Field"])(e=>H["Int"])],Wr.prototype,"teamId",void 0),Vr([Object(H["Field"])(e=>H["Int"])],Wr.prototype,"memberUserId",void 0),Vr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wr.prototype,"status",void 0),Vr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wr.prototype,"reviewerStatus",void 0),Vr([Object(H["Field"])({nullable:!0})],Wr.prototype,"userRequested",void 0),Vr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Wr.prototype,"userEmailId",void 0),Wr=Vr([Object(H["ArgsType"])()],Wr);var Yr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Hr=class{};Yr([Object(H["Field"])(e=>H["Int"])],Hr.prototype,"statusReasonType",void 0),Yr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hr.prototype,"userId",void 0),Yr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hr.prototype,"memberId",void 0),Yr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hr.prototype,"arcId",void 0),Yr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hr.prototype,"arcTeamId",void 0),Yr([Object(H["Field"])({nullable:!0}),Object(hi["a"])(300,{message:"maxLength"})],Hr.prototype,"statusReason",void 0),Yr([Object(H["Field"])({nullable:!0})],Hr.prototype,"report",void 0),Yr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Hr.prototype,"claimId",void 0),Hr=Yr([Object(H["ArgsType"])()],Hr);var Kr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let zr=class{};Kr([Object(H["Field"])(e=>H["Int"])],zr.prototype,"teamId",void 0),Kr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],zr.prototype,"userEmailId",void 0),zr=Kr([Object(H["ArgsType"])()],zr);var Xr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qr=class{};Xr([Object(H["Field"])(e=>H["Int"])],Qr.prototype,"complete",void 0),Xr([Object(H["Field"])(e=>H["Int"])],Qr.prototype,"cancelled",void 0),Xr([Object(H["Field"])(e=>H["Int"])],Qr.prototype,"pastDue",void 0),Xr([Object(H["Field"])(e=>H["Int"])],Qr.prototype,"active",void 0),Xr([Object(H["Field"])(e=>H["Float"])],Qr.prototype,"averageRating",void 0),Xr([Object(H["Field"])(e=>H["Int"])],Qr.prototype,"reviewCount",void 0),Qr=Xr([Object(H["ObjectType"])()],Qr);var Jr=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Zr=class extends z{};Jr([Object(H["Field"])()],Zr.prototype,"name",void 0),Jr([Object(H["Field"])()],Zr.prototype,"image",void 0),Jr([Object(H["Field"])(e=>H["Int"])],Zr.prototype,"memberType",void 0),Jr([Object(H["Field"])(e=>H["Int"])],Zr.prototype,"memberStatus",void 0),Jr([Object(H["Field"])(e=>H["Int"])],Zr.prototype,"memberId",void 0),Jr([Object(H["Field"])(e=>H["Int"])],Zr.prototype,"memberUserId",void 0),Jr([Object(H["Field"])({nullable:!0})],Zr.prototype,"memberStatusReason",void 0),Jr([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Zr.prototype,"memberStatusReasonType",void 0),Zr=Jr([Object(H["ObjectType"])()],Zr);var en=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let tn=class{};en([Object(H["Field"])(e=>ui)],tn.prototype,"user",void 0),en([Object(H["Field"])(e=>Qr)],tn.prototype,"stats",void 0),en([Object(H["Field"])(e=>[Zr])],tn.prototype,"teams",void 0),tn=en([Object(H["ObjectType"])()],tn);var on=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let an=class{};on([Object(H["Field"])(e=>H["Int"])],an.prototype,"userId",void 0),on([Object(H["Field"])({nullable:!0})],an.prototype,"teamOnly",void 0),on([Object(H["Field"])(e=>H["Int"],{nullable:!0})],an.prototype,"teamId",void 0),on([Object(H["Field"])({nullable:!0})],an.prototype,"includeCancelled",void 0),on([Object(H["Field"])({nullable:!0})],an.prototype,"includeReviews",void 0),on([Object(H["Field"])(e=>H["Int"],{nullable:!0})],an.prototype,"skip",void 0),on([Object(H["Field"])(e=>H["Int"],{nullable:!0})],an.prototype,"take",void 0),an=on([Object(H["ArgsType"])()],an);var rn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let nn=class extends(ie(Pr)){};nn=rn([Object(H["ObjectType"])()],nn);var sn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ln=class{};sn([Object(H["Field"])({nullable:!0})],ln.prototype,"date",void 0),sn([Object(H["Field"])(e=>H["Int"])],ln.prototype,"type",void 0),ln=sn([Object(H["ObjectType"])()],ln);var dn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let cn=class{};dn([Object(H["Field"])(e=>H["Int"])],cn.prototype,"awaiting",void 0),dn([Object(H["Field"])(e=>H["Int"])],cn.prototype,"active",void 0),dn([Object(H["Field"])(e=>H["Int"])],cn.prototype,"invited",void 0),dn([Object(H["Field"])(e=>H["Int"])],cn.prototype,"rejected",void 0),dn([Object(H["Field"])(e=>H["Int"])],cn.prototype,"blocked",void 0),cn=dn([Object(H["ObjectType"])()],cn);var un=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let pn=class extends ue{};un([Object(H["Field"])(e=>H["Int"])],pn.prototype,"arcId",void 0),un([Object(H["Field"])(e=>H["Int"])],pn.prototype,"reviewUserId",void 0),pn=un([Object(H["ArgsType"])()],pn);var bn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let vn=class extends me{};vn=bn([Object(H["ArgsType"])()],vn);var mn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let fn=class extends he{};mn([Object(H["Field"])(e=>H["Int"],{nullable:!0})],fn.prototype,"state",void 0),mn([Object(H["Field"])({nullable:!0})],fn.prototype,"needle",void 0),mn([Object(H["Field"])(e=>H["Int"],{nullable:!0})],fn.prototype,"reviewUserId",void 0),fn=mn([Object(H["ArgsType"])()],fn);var yn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let gn=class extends Ie{};gn=yn([Object(H["ArgsType"])()],gn);var hn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let On=class extends z{};
1hn([Object(H["Field"])()],On.prototype,"existingThreadCount",void 0),hn([Object(H["Field"])(e=>H["Int"],{nullable:!0})],On.prototype,"userId",void 0),hn([Object(H["Field"])({nullable:!0})],On.prototype,"modelKey",void 0),hn([Object(H["Field"])({nullable:!0})],On.prototype,"name",void 0),hn([Object(H["Field"])({nullable:!0})],On.prototype,"image",void 0),On=hn([Object(H["ObjectType"])()],On);var wn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let jn=class extends z{};wn([Object(H["Field"])({nullable:!0})],jn.prototype,"modelKey",void 0),wn([Object(H["Field"])({nullable:!0})],jn.prototype,"name",void 0),wn([Object(H["Field"])({nullable:!0})],jn.prototype,"image",void 0),wn([Object(H["Field"])()],jn.prototype,"existingThreadCount",void 0),jn=wn([Object(H["ObjectType"])()],jn);var In=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let An=class extends jn{};In([Object(H["Field"])(e=>H["Int"],{nullable:!0})],An.prototype,"arcTeamId",void 0),In([Object(H["Field"])(e=>H["Int"],{nullable:!0})],An.prototype,"penNameId",void 0),In([Object(H["Field"])(e=>Boolean)],An.prototype,"canAcceptMessages",void 0),In([Object(H["Field"])(e=>Boolean)],An.prototype,"canSendMessages",void 0),An=In([Object(H["ObjectType"])()],An);var Rn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let kn=class extends Z{};Rn([Object(H["Field"])(e=>H["Int"])],kn.prototype,"state",void 0),Rn([Object(H["Field"])()],kn.prototype,"stateDate",void 0),Rn([Object(H["Field"])(e=>H["Int"])],kn.prototype,"arcId",void 0),Rn([Object(H["Field"])(e=>H["Int"])],kn.prototype,"reviewerUserId",void 0),Rn([Object(H["Field"])(e=>Ea)],kn.prototype,"arc",void 0),Rn([Object(H["Field"])(e=>An)],kn.prototype,"authorUser",void 0),Rn([Object(H["Field"])(e=>On)],kn.prototype,"reviewerUser",void 0),Rn([Object(H["Field"])(e=>H["Int"])],kn.prototype,"messageCount",void 0),Rn([Object(H["Field"])(e=>H["Int"])],kn.prototype,"unreadMessageCount",void 0),Rn([Object(H["Field"])()],kn.prototype,"lastMessageDate",void 0),Rn([Object(H["Field"])()],kn.prototype,"lastMessageText",void 0),Rn([Object(H["Field"])()],kn.prototype,"blocked",void 0),kn=Rn([Object(H["ObjectType"])()],kn);var Sn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Tn=class extends Ee{};Sn([Object(H["Field"])(e=>H["Int"])],Tn.prototype,"state",void 0),Tn=Sn([Object(H["ArgsType"])()],Tn);var Fn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Cn=class{};Fn([Object(H["Field"])(e=>H["Int"])],Cn.prototype,"userId",void 0),Fn([Object(H["Field"])()],Cn.prototype,"reportUser",void 0),Cn=Fn([Object(H["ArgsType"])()],Cn);let En=class{};Fn([Object(H["Field"])(e=>H["Int"])],En.prototype,"userId",void 0),En=Fn([Object(H["ArgsType"])()],En);var Dn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Pn=class{};Dn([Object(H["Field"])(e=>
1H["Int"])],Pn.prototype,"threadId",void 0),Dn([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pn.prototype,"arcTeamId",void 0),Dn([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Pn.prototype,"penNameId",void 0),Pn=Dn([Object(H["ArgsType"])()],Pn);var $n=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Nn=class extends(ie(kn)){};Nn=$n([Object(H["ObjectType"])()],Nn);var Ln=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Bn=class extends ue{};Ln([Object(H["Field"])(e=>H["Int"])],Bn.prototype,"threadId",void 0),Ln([Object(H["Field"])()],Bn.prototype,"message",void 0),Ln([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bn.prototype,"penNameId",void 0),Ln([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Bn.prototype,"arcTeamId",void 0),Bn=Ln([Object(H["ArgsType"])()],Bn);var xn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _n=class extends me{};_n=xn([Object(H["ArgsType"])()],_n);var Un=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Mn=class extends he{};Un([Object(H["Field"])(e=>H["Int"])],Mn.prototype,"threadId",void 0),Un([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Mn.prototype,"state",void 0),Un([Object(H["Field"])({nullable:!0})],Mn.prototype,"needle",void 0),Mn=Un([Object(H["ArgsType"])()],Mn);var Gn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qn=class extends Ie{};qn=Gn([Object(H["ArgsType"])()],qn);var Vn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Wn=class extends Z{};Vn([Object(H["Field"])(e=>H["Int"])],Wn.prototype,"state",void 0),Vn([Object(H["Field"])()],Wn.prototype,"stateDate",void 0),Vn([Object(H["Field"])()],Wn.prototype,"message",void 0),Vn([Object(H["Field"])(e=>H["Int"])],Wn.prototype,"threadId",void 0),Vn([Object(H["Field"])(e=>jn)],Wn.prototype,"sender",void 0),Wn=Vn([Object(H["ObjectType"])()],Wn);var Yn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Hn=class extends Ee{};Yn([Object(H["Field"])(e=>H["Int"])],Hn.prototype,"state",void 0),Hn=Yn([Object(H["ArgsType"])()],Hn);var Kn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let zn=class extends(ie(Wn)){};zn=Kn([Object(H["ObjectType"])()],zn);var Xn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Qn=class{};Xn([Object(H["Field"])()],Qn.prototype,"dtoTypeName",void 0),Xn([Object(H["Field"])(e=>H["Int"])],Qn.prototype,"count",void 0),Xn([Object(H["Field"])(e=>[H["Int"]],{nullable:!0})],Qn.prototype,"ids",void 0),Qn=Xn([Object(H["ObjectType"])()],Qn);var Jn=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Zn=class{};Jn([Object(H["Field"])()],Zn.prototype,"token",void 0),Jn([Object(H["Field"])()],Zn.prototype,"taxCode",void 0),Jn([Object(H["Field"])()],Zn.prototype,"cardId",void 0),Jn([Object(H["Field"])()],Zn.prototype,"cardLast4",void 0),Jn([Object(H["Field"])()],Zn.prototype,"cardBrand",void 0),Jn([Object(H["Field"])(e=>H["Int"])],Zn.prototype,"cardExpMonth",void 0),Jn([Object(H["Field"])(e=>H["Int"])],Zn.prototype,"cardExpYear",void 0),Jn([Object(H["Field"])()],Zn.prototype,"cardCountry",void 0),Jn([Object(H["Field"])(e=>H["Float"])],Zn.prototype,"total",void 0),Jn([Object(H["Field"])(e=>H["Float"])],Zn.prototype,"taxRate",void 0),Jn([Object(H["Field"])(e=>H["Float"],{nullable:!0})],Zn.prototype,"extraTaxRate",void 0),Jn([Object(H["Field"])(e=>H["Float"])],Zn.prototype,"taxAmount",void 0),Jn([Object(H["Field"])(e=>H["Float"])],Zn.prototype,"subtotal",void 0),Jn([Object(H["Field"])()],Zn.prototype,"taxCountryCode",void 0),Jn([Object(H["Field"])()],Zn.prototype,"taxName",void 0),Jn([Object(H["Field"])({nullable:!0})],Zn.prototype,"extraTaxName",void 0),Jn([Object(H["Field"])()],Zn.prototype,"postalCode",void 0),Jn([Object(H["Field"])()],Zn.prototype,"plan",void 0),Jn([Object(H["Field"])()],Zn.prototype,"planCycle",void 0),Jn([Object(H["Field"])({nullable:!0})],Zn.prototype,"ipAddress",void 0),Zn=Jn([Object(H["ArgsType"])()],Zn);var es=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ts=class{};es([Object(H["Field"])()],ts.prototype,"id",void 0),es([Object(H["Field"])()],ts.prototype,"description",void 0),es([Object(H["Field"])(e=>Date)],ts.prototype,"paidOn",void 0),es([Object(H["Field"])()],ts.prototype,"cardLast4",void 0),es([Object(H["Field"])({nullable:!0})],ts.prototype,"cardType",void 0),es([Object(H["Field"])()],ts.prototype,"downloadLink",void 0),es([Object(H["Field"])()],ts.prototype,"status",void 0),es([Object(H["Field"])({nullable:!0})],ts.prototype,"paymentFailedReason",void 0),es([Object(H["Field"])({nullable:!0})],ts.prototype,"paymentFailedDescription",void 0),es([Object(H["Field"])({nullable:!0})],ts.prototype,"paymentFailedType",void 0),ts=es([Object(H["ObjectType"])()],ts);var os=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let is=class{};os([Object(H["Field"])({nullable:!0})],is.prototype,"plan",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"stripeCustomerId",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"stripeSubscriptionId",void 0),os([Object(H["Field"])(e=>H["Float"],{nullable:!0})],is.prototype,"price",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"cycle",void 0),os([Object(H["Field"])(e=>Date,{nullable:!0})],is.prototype,"cancelAt",void 0),os([Object(H["Field"])(e=>Date,{nullable:!0})],is.prototype,"nextBillDue",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"cardLast4",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"cardExpiry",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"cardType",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"taxCountry",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"taxCountryCode",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"postalCode",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"taxCode",void 0),os([Object(H["Field"])(e=>H["Int"],{nullable:!0})],is.prototype,"discountPcApplied",void 0),os([Object(H["Field"])(e=>H["Int"],{nullable:!0})],is.prototype,"discountAmountApplied",void 0),os([Object(H["Field"])(e=>[ts],{nullable:!0})],is.prototype,"invoices",void 0),os([Object(H["Field"])({nullable:!0})],is.prototype,"lastFailedPaymentId",void 0),is=os([Object(H["ObjectType"])()],is);var as=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let rs=class{};as([Object(H["Field"])(e=>H["Float"])],rs.prototype,"subtotal",void 0),as([Object(H["Field"])(e=>H["Float"])],rs.prototype,"tax",void 0),as([Object(H["Field"])(e=>H["Float"])],rs.prototype,"total",void 0),as([Object(H["Field"])(e=>H["Float"])],rs.prototype,"credit",void 0),as([Object(H["Field"])()],rs.prototype,"taxCountryCode",void 0),as([Object(H["Field"])()],rs.prototype,"taxCode",void 0),as([Object(H["Field"])()],rs.prototype,"postalCode",void 0),as([Object(H["Field"])(e=>H["Int"],{nullable:!0})],rs.prototype,"proratedDate",void 0),rs=as([Object(H["ObjectType"])()],rs);var ns=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ss=class{};ns([Object(H["Field"])()],ss.prototype,"newPlan",void 0),ns([Object(H["Field"])()],ss.prototype,"oldPlan",void 0),ns([Object(H["Field"])()],ss.prototype,"newCycle",void 0),ns([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ss.prototype,"proratedDate",void 0),ns([Object(H["Field"])({nullable:!0})],ss.prototype,"ipAddress",void 0),ss=ns([Object(H["ArgsType"])()],ss);var ls=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ds=class{};ls([Object(H["Field"])()],ds.prototype,"status",void 0),ls([Object(H["Field"])({nullable:!0})],ds.prototype,"clientSecret",void 0),ls([Object(H["Field"])({nullable:!0})],ds.prototype,"actionUrl",void 0),ls([Object(H["Field"])({nullable:!0})],ds.prototype,"actionUrlType",void 0),ds=ls([Object(H["ObjectType"])()],ds);var cs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let us=class{};cs([Object(H["Field"])(e=>H["Int"],{nullable:!0})],us.prototype,"forUserId",void 0),cs([Object(H["Field"])({nullable:!0}
1)],us.prototype,"skipInvoices",void 0),us=cs([Object(H["ArgsType"])()],us);var ps=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let bs=class{};ps([Object(H["Field"])(e=>H["Int"],{nullable:!0})],bs.prototype,"reason",void 0),ps([Object(H["Field"])({nullable:!0})],bs.prototype,"reasonDescription",void 0),bs=ps([Object(H["ArgsType"])()],bs);var vs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ms=class{};vs([Object(H["Field"])(e=>H["Float"])],ms.prototype,"taxRate",void 0),vs([Object(H["Field"])(e=>H["Float"],{nullable:!0})],ms.prototype,"extraTaxRate",void 0),vs([Object(H["Field"])()],ms.prototype,"taxCountryCode",void 0),vs([Object(H["Field"])()],ms.prototype,"postalCode",void 0),vs([Object(H["Field"])()],ms.prototype,"taxCode",void 0),vs([Object(H["Field"])({nullable:!0})],ms.prototype,"ipAddress",void 0),vs([Object(H["Field"])()],ms.prototype,"taxName",void 0),vs([Object(H["Field"])({nullable:!0})],ms.prototype,"extraTaxName",void 0),ms=vs([Object(H["ArgsType"])()],ms);var fs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ys=class{};fs([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ys.prototype,"cancelReason",void 0),fs([Object(H["Field"])({nullable:!0})],ys.prototype,"fromDate",void 0),fs([Object(H["Field"])({nullable:!0})],ys.prototype,"toDate",void 0),fs([Object(H["Field"])({nullable:!0})],ys.prototype,"groupByMonth",void 0),ys=fs([Object(H["ArgsType"])()],ys);var gs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let hs=class{};gs([Object(H["Field"])(e=>H["Int"])],hs.prototype,"month",void 0),gs([Object(H["Field"])(e=>H["Int"])],hs.prototype,"year",void 0),gs([Object(H["Field"])(e=>H["Int"])],hs.prototype,"count",void 0),hs=gs([Object(H["ObjectType"])()],hs);var Os=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let ws=class extends ui{};Os([Object(H["Field"])(e=>H["Int"],{nullable:!0})],ws.prototype,"monthsPaid",void 0),Os([Object(H["Field"])({nullable:!0})],ws.prototype,"cancellationDate",void 0),ws=Os([Object(H["ObjectType"])()],ws);var js=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Is=class{};js([Object(H["Field"])()],Is.prototype,"invoiceId",void 0),Is=js([Object(H["ArgsType"])()],Is);var As=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Rs=class{};As([Object(H["Field"])({nullable:!0})],Rs.prototype,"forFp",void 0),As([Object(H["Field"])({nullable:!0})],Rs.prototype,"cycle",void 0),As([Object(H["Field"])({nullable:!0})],Rs.prototype,"plan",void 0),Rs=As([Object(H["ArgsType"])()],Rs);var ks=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ss=class{};ks([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ss.prototype,"forUserId",void 0),ks([Object(H["Field"])(e=>H["Int"],{nullable:!0})],Ss.prototype,"limit",void 0),ks([Object(H["Field"])({nullable:!0}
1)],Ss.prototype,"startingAfter",void 0),Ss=ks([Object(H["ArgsType"])()],Ss);var Ts=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Fs=class{};Ts([Object(H["Field"])(e=>[ts])],Fs.prototype,"invoices",void 0),Ts([Object(H["Field"])()],Fs.prototype,"hasMore",void 0),Ts([Object(H["Field"])({nullable:!0})],Fs.prototype,"nextStartingAfter",void 0),Fs=Ts([Object(H["ObjectType"])()],Fs);var Cs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Es=class{};Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"monthlyRevenue",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"payingCustomerCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"totalUserCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"reviewerCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"authorCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"growingCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"proCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"bestSellerCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"publisherCount",void 0),Cs([Object(H["Field"])(e=>H["Int"])],Es.prototype,"newReviewerCount",void 0),Es=Cs([Object(H["ObjectType"])()],Es);var Ds=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ps=class{};Ds([Object(H["Field"])(e=>[String])],Ps.prototype,"models",void 0),Ds([Object(H["Field"])(e=>
1[H["Int"]])],Ps.prototype,"values",void 0),Ds([Object(H["Field"])(e=>H["Int"])],Ps.prototype,"total",void 0),Ps=Ds([Object(H["ObjectType"])()],Ps);var $s=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ns=class{};$s([Object(H["Field"])()],Ns.prototype,"plan",void 0),$s([Object(H["Field"])(e=>[H["Int"]])],Ns.prototype,"durationCounts",void 0),Ns=$s([Object(H["ObjectType"])()],Ns);var Ls=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Bs=class{};Ls([Object(H["Field"])({nullable:!0})],Bs.prototype,"fromDate",void 0),Ls([Object(H["Field"])({nullable:!0})],Bs.prototype,"toDate",void 0),Ls([Object(H["Field"])({nullable:!0})],Bs.prototype,"type",void 0),Bs=Ls([Object(H["ArgsType"])()],Bs);var xs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let _s=class{};xs([Object(H["Field"])(e=>H["Int"])],_s.prototype,"fromId",void 0),xs([Object(H["Field"])(e=>H["Int"])],_s.prototype,"toId",void 0),xs([Object(H["Field"])()],_s.prototype,"type",void 0),_s=xs([Object(H["ArgsType"])()],_s);var Us=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ms=class{};Us([Object(H["Field"])()],Ms.prototype,"success",void 0),Ms=Us([Object(H["ObjectType"])()],Ms);var Gs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let qs=class{};Gs([Object(H["Field"])()],qs.prototype,"type",void 0),Gs([Object(H["Field"])({nullable:!0})],qs.prototype,"metaData",void 0),qs=Gs([Object(H["ArgsType"])()],qs);var Vs=function(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};let Ws=class{};Vs([Object(H["Field"])()],Ws.prototype,"date",void 0),Vs([Object(H["Field"])(e=>H["Int"])],Ws.prototype,"totalUsers",void 0),Vs([Object(H["Field"])(e=>H["Int"])],Ws.prototype,"recommendedUsers",void 0),Vs([Object(H["Field"])(e=>H["Int"])],Ws.prototype,"newUsers",void 0),Ws=Vs([Object(H["ObjectType"])()],Ws);const Ys=o("1e01");class Hs{constructor(){this.nextId=1;const e=this.getLiveSeed()||[];this.nextId=e.length+1,this.faker={name:{firstName:()=>"",lastName:()=>""},internet:{email:()=>""},lorem:{paragraph:()=>""}}}getFakeSeed(e){}getLiveSeed(){return this.flattenSeedDataObject(this.getLiveDataObject())}getTestSeed(){return this.faker=Ys,this.flattenSeedDataObject(this.getTestDataObject())}getNextId(){return this.nextId++}generateRandomData(){const e=[];let t=this.getNextId();while(t<=this.maxModelCount){const o=this.getFakeSeed(t);void 0!==o&&(e.push(o),t=this.getNextId())}return e}getSeedWithId(e,t){for(const o in e)if(e.hasOwnProperty(o)){const i=e[o];if(i.id===t)return i}}flattenSeedDataObject(e){if(!e)return[];let t=[];for(const o in e){const i=e[o];Array.isArray(i)?t=t.concat(i):t.push(i)}return t}}class Ks extends Hs{constructor(){super(...arguments),this.type="user",this.maxMo
1delCount=100,this.base={password:"123",reviewerRole:s.USER.ROLES.REVIEWER.NEW,authorRole:s.USER.ROLES.AUTHOR.GROWING,consentMethod:s.USER.CONSENT_METHOD.SIGN_UP_PAGE,image:"FakeUser.png",preferences:Object.assign(Object.assign({},bo),{reviewSitesFlag:s.ARCS.REVIEWS.ALL_FLAGS,reviewLanguagesFlag:s.BOOKS.LANGUAGE_FLAGS.ALL_FLAGS}),confirmEmail:!0}}getFakeSeed(e){return Object.assign(Object.assign({id:e},this.base),{emailAddress:this.faker.internet.email(),name:this.faker.name.firstName()+" "+this.faker.name.lastName()})}getLiveDataObject(){return{BooksproutSupport:Object.assign(Object.assign({id:1},this.base),{emailAddress:"[email protected]",name:"Booksprout Support",image:"booksprout-admin.svg",isAdmin:!0,password:"$2b$13$uDYxj2boi7AmImwIlc.ySOuJ0hGbBI7SAd26PRWds.W4CKzfW9nIW"}),DeletedUser:Object.assign(Object.assign({id:2},this.base),{emailAddress:"N/A",name:"[Deleted User]",image:"booksprout-admin.svg",password:"-1"})}}getTestDataObject(){return{}}}const zs=new Ks,Xs=Object.assign(Object.assign({},zs.getLiveDataObject()),zs.getTestDataObject());class Qs extends Hs{constructor(){super(...arguments),this.type="penName",this.maxModelCount=40,this.base={categoryId:S.SpeculativeFiction_ScienceFiction.id,wordCount:1,audience:1,preview:"A long time ago in a galaxy far far away ...",penNameType:s.PEN_NAME.TYPE.PUBLISHING}}getLiveDataObject(){return{DeletedPenName:{id:1,name:"[Deleted Author]",image:"",userId:Xs.DeletedUser.id}}}getTestDataObject(){return{}}}const Js=new Ks,Zs=Object.assign(Object.assign({},Js.getLiveDataObject()),Js.getTestDataObject()),el=new Qs,tl=Object.assign(Object.assign({},el.getLiveDataObject()),el.getTestDataObject());class ol extends Hs{constructor(){super(...arguments),this.type="book",this.maxModelCount=100,this.base={categories:[{id:S.SpeculativeFiction_ScienceFiction.id}],wordCount:200,audience:s.BOOKS.AUDIENCE_TYPE.GENERAL,language:s.BOOKS.LANGUAGE_FLAGS.FLAGS.ENGLISH,penNameType:s.PEN_NAME.TYPE.PUBLISHING,epubFile:"testFile.epub",pdfFile:"testFile.pdf",epubFileSizeBytes:387019,pdfFileSizeBytes:1132931,awaitingBookFileFlag:s.BOOKS.AWAITING_BOOK_FILES.ALLOW_ALL}}getGeneralTestBook(e,t,o){return Object.assign(Object.assign({},this.base),{id:e,title:t,description:t+" - Desc",penNameType:s.PEN_NAME.TYPE.MY_BOOK,authorPenNameId:tl.GeneralAuthor.id,bookCover:"test.png",releaseDate:p(14),userId:Zs.Me.id,linkAmazonAsin:o,keywords:"General Keyword, "+t+" Keyword"})}complexOverdueBook(){return Object.assign(Object.assign({},this.getGeneralTestBook(this.getNextId(),"Complex Overdue","asin56")),{linkGoodreads:"https://www.goodreads.com/book/show/2429135.The_Girl_with_the_Dragon_Tattoo",linkBookbub:"https://www.bookbub.com/books/the-boat-of-a-million-years-by-poul-anderson-2019-04-03?ebook_deal",linkBarnes:"https://www.barnesandnoble.com/w/adventures-of-huckleberry-finn-barnes-noble-classics-series-mark-twain/1106017531?ean=9781593081126#/",linkGoogle:"https://play.google.com/books/edition/Heir_to_the_Empire/mIssn64dImoC?hl=en",linkKobo:"",linkSmashwords:"https://www.smashwords.com/books/view/1082816",smashwordsCouponCode:"",linkITunes:"https://books.apple.com/gb/book/heir-to-the-empire-star-wars-the-thrawn-trilogy/id438095653",linkAudibleUs:"https://www.audible.com/pd/Star-Wars-Heir-to-the-Empire-20th-Anniversary-Edition-The-Thrawn-Trilogy-Book-1-Audiobook/B005IHB0OA?qid=1620646506&sr=1-1&ref=a_search_c3_lProduct_1_1&pf_rd_p=c6e316b8-14da-418d-8f91-b3cad83c5183&pf_rd_r=NREC5JDAWZ9X3QZDJJMX",linkAudibleUk:"https://www.audible.co.uk/pd/Star-Wars-Heir-to-the-Empire-20th-Anniversary-Edition-The-Thrawn-Trilogy-Book-1-Audiobook/B005IHB0OA?qid=1620646506&sr=1-1&ref=a_search_c3_lProduct_1_1&pf_rd_p=c6e316b8-14da-418d-8f91-b3cad83c5183&pf_rd_r=NREC5JDAWZ9X3QZDJJMX"})}getLiveDataObject(){return{DeletedBook:Object.assign(Object.assign({},this.base),{id:1,title:"[Deleted Book]",description:"[Deleted Book]",authorPenNameId:tl.DeletedPenName.id,userId:Zs.DeletedUser.id,bookCover:"awaiting-image.png",categories:[{id:1}],releaseDate:y(0)})}}getTestDataObject(){return{}}}const il=new Ks,al=Object.assign(Object.assign({},il.getLiveDataObject()),il.getTestDataObject());class rl extends Hs{constructor(){super(...arguments),this.type="arcTeam",this.maxMo
1delCount=40}getLiveDataObject(){return{DeletedTeam:{id:1,name:"[Deleted Team]",image:"",description:"Deleted Team Placeholder",userId:al.DeletedUser.id}}}getTestDataObject(){return{}}}var nl=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const sl=nl(s.ARCS.REVIEWS.FLAGS,[]),ll=new Ks,dl=Object.assign(Object.assign({},ll.getLiveDataObject()),ll.getTestDataObject()),cl=new ol,ul=Object.assign(Object.assign({},cl.getLiveDataObject()),cl.getTestDataObject()),pl=new rl,bl=Object.assign(Object.assign({},pl.getLiveDataObject()),pl.getTestDataObject());["Nuo pirmųjų puslapių Å¡i knyga mane įtraukÄ ne triukÅ¡mingu veiksmu, o labai tiksliu emociniu tonu. AutorÄ iÅ¡ karto sukuria jausmÄ
, kad veikÄjai gyvena tikrame, kvÄpuojanÄiame pasaulyje, kuriame kiekvienas sprendimas turi kainÄ
, o kiekviena tyla tarp dialogų slepia daugiau nei ilgi paaiÅ¡kinimai. Man labai patiko, kad istorija nebandÄ skubÄti vien tam, kad kuo greiÄiau pasiektų didžiuosius siužeto posÅ«kius. Vietoje to ji leido santykiams brÄsti natÅ«raliai, o įtampai kilti iÅ¡ charakterių pasirinkimų, vidinių baimių ir to, ko jie vieni kitiems nepasako.","DidžiausiÄ
įspÅ«dį paliko pagrindinis veikÄjas, kuris paraÅ¡ytas ne kaip tobulas herojus, o kaip žmogus, nuolat svyruojantis tarp pareigos, kaltÄs ir noro pagaliau gyventi dÄl savÄs. Jo abejonÄs atrodÄ labai žmogiÅ¡kos, todÄl net tada, kai jis klydo, norÄjosi jį suprasti, o ne smerkti. Ne mažiau stiprus buvo ir antraeilis veikÄjų sluoksnis. Dažnai tokio tipo istorijose Å¡alutiniai veikÄjai bÅ«na skirti tik tam, kad pastumtų siužetÄ
, bet Äia jie turi savo balsÄ
, savo motyvus ir savo emocinį svorį. Kai kurie jų pasirodo trumpam, taÄiau vis tiek palieka aiÅ¡kų pÄdsakÄ
.","RaÅ¡ymo stilius labai sklandus ir vizualus. ApraÅ¡ymai pakankamai sodrÅ«s, kad matyÄiau aplinkÄ
, bet niekada netapo sunkÅ«s ar perdÄtai puoÅ¡nÅ«s. YpaÄ patiko tai, kaip autorÄ kuria nuotaikÄ
per detales: trumpÄ
gestÄ
, ne iki galo užbaigtÄ
sakinį, pakitusį kambario garsÄ
ar beveik nepastebimÄ
kÅ«no reakcijÄ
. Tokios smulkmenos ne tik pagyvina scenas, bet ir sukuria stiprų artumo jausmÄ
. Dialogai taip pat skambÄjo natÅ«raliai. VeikÄjai kalba skirtingai, todÄl lengva pajusti jų charakterį, socialinÄ padÄtį ir emocinÄ bÅ«senÄ
net tada, kai tekstas tiesiogiai to neiÅ¡aiÅ¡kina.","Siužeto struktÅ«ra iÅ¡laiko dÄmesį beveik visÄ
laikÄ
. Knygoje netrÅ«ksta įtampos, taÄiau ji kyla ne vien iÅ¡ iÅ¡orinių pavojų, bet ir iÅ¡ to, kad skaitytojas nuolat jauÄia artÄjanÄių pasekmių svorį. Man labai patiko, kad keli siužeto vingiai buvo užuominomis ruoÅ¡iami gerokai anksÄiau, todÄl atÄjus svarbiems momentams jie atrodÄ pelnyti, o ne iÅ¡traukti vien tam, kad nustebintų. Kartu istorija sugeba iÅ¡laikyti ir jautrumÄ
. Kai kurie tylÅ«s, intymÅ«s skyriai man paliko dar didesnį įspÅ«dį nei dramatiÅ¡kiausios scenos, nes juose veikÄjai pagaliau leidžia sau bÅ«ti pažeidžiami.","Jeigu reikÄtų iÅ¡skirti tai, kas man kliuvo, paminÄÄiau tik kelis smulkesnius dalykus. VidurinÄje dalyje buvo pora epizodų, kurie galÄjo bÅ«ti Å¡iek tiek trumpesni, nes tuo metu pasakojimas trumpam prarado ankstesnį ritmÄ
. Taip pat vieno antagonisto motyvacija pradžioje atrodÄ miglota, nors vÄliau ji paaiÅ¡kinama kur kas geriau. Vis dÄlto Å¡ie trÅ«kumai bendro įspÅ«džio beveik nesumenkino, nes emocinÄ istorijos aÅ¡is iÅ¡liko stipri nuo pradžios iki pabaigos. O finalas, mano nuomone, buvo labai gerai subalansuotas: pakankamai užbaigtas, kad suteiktų pasitenkinimÄ
, bet palikÄs erdvÄs ilgesniam apmÄ
stymui.","Labiausiai vertinu tai, kad Å¡i knyga nebando bÅ«ti vien tik âįtemptaâ ar vien tik âjautriâ. Ji sugeba bÅ«ti abu dalykus vienu metu. Joje yra ir įsimenanÄių scenų, ir prasmingų pokalbių, ir emocinių susidÅ«rimų, kurie atrodo tikri, nes kyla iÅ¡ veikÄjų istorijos, o ne iÅ¡ autoriaus noro dirbtinai sustiprinti dramÄ
. PerskaitÄs jauÄiau ne tik smalsumÄ
dÄl tolimesnio pasaulio likimo, bet ir tÄ
retÄ
melancholiÅ¡kÄ
jausmÄ
, kuris atsiranda tik po stiprios istorijos, kai dar kurį laikÄ
gyveni jos nuotaika. Tikrai rekomenduoÄiau Å¡iÄ
knygÄ
skaitytojams, kurie mÄgsta charakteriais grįstÄ
, atmosferiÅ¡kÄ
ir emociÅ¡kai brandų pasakojimÄ
."].join("\n\n");class vl extends Hs{constructor(){super(...arguments),this.type="arc",this.maxMo
1delCount=300,this.processedFakeArcs=0,this.base={discoverableType:s.ARCS.DISCOVERABLE_TYPE.PUBLIC,participationType:s.ARCS.PARTICIPATION_TYPE.PUBLIC,participationPreventionType:s.ARCS.PARTICIPATION_PREVENTION_TYPE.OUTSTANDING,siteWideParticipationPreventionType:s.ARCS.SITE_WIDE_PARTICIPATION_PREVENTION_TYPE.NONE,copyCountType:s.ARCS.COPY_COUNT_TYPE.ALL,seriesLimitType:s.ARCS.SERIES_LIMIT_TYPE.ANYONE,neverEndingPrivate:!1,reviewFlags:sl.AMAZON|sl.GOOD_READS,requiredReviewCount:2,stopDownloadDate:b(30),dueDate:b(30),liveDate:b(14),reviewDays:10,arcType:s.ARCS.TYPE.EBOOK},this.baseReviewDto={claimId:-1,userId:-1,disclaimer:"Disclaimer ...",title:"Title"},this.baseSiteDto={userId:-1,reviewId:-1,link:"www.google.com"}}getLiveDataObject(){return{DeletedArc:Object.assign(Object.assign({},this.base),{id:1,specialInformation:"[Deleted ARC]",userId:dl.DeletedUser.id,bookId:ul.DeletedBook.id,arcTeamId:bl.DeletedTeam.id})}}getTestDataObject(){return{}}generateAudioBookTestData(e){const t={};for(const o of Object.keys(e)){const i=e[o];if(!i||Array.isArray(i)||i.skipAudioBookCreation)continue;const a=o+"_Audio";t[a]=Object.assign(Object.assign({},i),{id:this.getNextId(),arcType:s.ARCS.TYPE.AUDIO_BOOK,specialInformation:`AudioBook: ${i.specialInformation}`})}return t}genericApprovedReview(){return{dto:Object.assign(Object.assign({},this.baseReviewDto),{rating:5,review:"A 5 star review: "+this.faker.lorem.paragraph().substring(0,150),privateFeedback:"Some private feedback"}),sites:[Object.assign(Object.assign({},this.baseSiteDto),{site:sl.AMAZON,status:s.ARCS.REVIEWS.SITE.STATUS.COMPLETE})]}}genericArc(e,t,o){return o||(o=bl.StanRegular),Object.assign(Object.assign({},this.base),{id:e,bookId:t.id,userId:o.userId,arcTeamId:o.id,specialInformation:t.title+" - ARC",reviewFlags:sl.AMAZON,requiredReviewCount:1,liveDate:p(21),neverEndingPrivate:!1,stopDownloadDate:b(21),dueDate:b(28),discoverableType:s.ARCS.DISCOVERABLE_TYPE.PUBLIC})}getFakeSeed(e){const t=Object.assign(Object.assign({},this.genericArc(e,ul.BookForRandomArcs,bl.TeamForRandomArcs)),{discoverableType:s.ARCS.DISCOVERABLE_TYPE.TEAM_ONLY,skipAudioBookCreation:!0});return t.userClaims=[],this.processedFakeArcs<=3&&t.userClaims.push({userId:dl.ClaimNonMemberWeeklyLimitReached.id,createdDate:p(4),skipEligibleCheck:!0}),this.processedFakeArcs<=30&&t.userClaims.push({userId:dl.ClaimNonMemberWeeklyLimitReachedValued.id,createdDate:p(5),review:this.genericApprovedReview(),skipEligibleCheck:!0},{userId:dl.TopReviewerApplicationRejected.id,createdDate:p(9),skipEligibleCheck:!0,review:{dto:Object.assign(Object.assign({},this.baseReviewDto),{rating:5,review:"A 5 star review: "+this.faker.lorem.paragraph().substring(0,150),privateFeedback:"Some private feedback top"}),sites:[Object.assign(Object.assign({},this.baseSiteDto),{site:sl.AMAZON,status:s.ARCS.REVIEWS.SITE.STATUS.COMPLETE})]}}),this.processedFakeArcs+=1,t}}},"1bb5":function(e,t,o){"use strict";o.d(t,"a",function(){return n});var i=o("1b59"),a=o("600e"),r=o("e78f");function n(e){const t=Object(a["a"])().link(),o=()=>"function"===typeof e.urlModelName?e.urlModelName():e.urlModelName,n=t=>{var o;const i=null===(o=e.router)||void 0===o?void 0:o.push(t);i&&"function"===typeof i.catch&&i.catch(()=>{})},s={get returnLocation(){return Object(r["a"])().system.store.getters.returnLocation},get attachModelId(){return Object(r["a"])().system.store.getters.attachModelId},get stateReturnLabel(){return Object(r["a"])().system.store.getters.returnLabel},get stateCompleteLabel(){return Object(r["a"])().system.store.getters.completeLabel},createUrl:()=>t.adminCreate(o()),editUrl:e=>t.adminUpdate(o(),e),deleteUrl:e=>t.adminDelete(o(),e),listUrl:()=>t.adminList(o()),viewUrl:e=>t.adminView(o(),e),goBack(t){var o;if(Object(i["T"])(s.returnLocation)){const e=new URL("https://booksprout.co"+s.returnLocation),t=s.attachModelId?`?attachModelId=${s.attachModelId}`:"";n(`${e.pathname}${t}${e.hash}`),Object(r["a"])().system.service.clearReturnLocation()}else void 0!==t&&Object(i["T"])(t)?n(t):null===(o=e.router)||void 0===o||o.go(-1)},returnLabel:e=>Object(i["T"])(s.stateReturnLabel)?s.stateReturnLabel:e,doneLabel:e=>Object(i["T"])(s.stateCompleteLabel)?s.stateCompleteLabel:e};return s}},"1bc9":function(e,t,o){"use strict";o.d(t,"a",function(){return f});var i=o("3691"),a=o("1517"),r=o("cb78");const n={MessagePost:i["a"]` 2 fragment MessagePostFragment on MessagePostDto { 3 id, 4 createdDate, 5 userId, 6 state, 7 message, 8 sender { 9 modelKey, 10 id, 11 name, 12 image 13 } 14 } 15 `},s=Object(r["a"])(""),l=e=>Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]`
16 query GetMessagePosts ( 17 $threadId: Int! 18 $state: Int 19 $forUserId: Int 20 ) { 21 messagePosts ( 22 threadId: $threadId, 23 state: $state, 24 forUserId: $forUserId 25 ) { 26 ...MessagePostFragment 27 } 28 } 29 ${n.MessagePost} 30 `}),d=e=>void 0===e?Promise.reject(new Error("Missing id.")):Object(a["a"])().query({variables:{id:e},query:i["a"]` 31 query GetMessagePost ( 32 $id: Int! 33 ) { 34 messagePost (id: $id) { 35 ...MessagePostFragment 36 } 37 } 38 ${n.MessagePost} 39 `}),c=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 40 mutation CreateMessagePost ( 41 $message: String! 42 $threadId: Int! 43 $penNameId: Int 44 $arcTeamId: Int 45 ) { 46 createMessagePost ( 47 threadId: $threadId, 48 message: $message 49 penNameId: $penNameId, 50 arcTeamId: $arcTeamId 51 ) { 52 ...MessagePostFragment 53 } 54 } 55 ${n.MessagePost} 56 `}),u=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 57 mutation UpdateMessagePost ( 58 $id: Int! 59 $state: Int! 60 ) { 61 updateMessagePost ( 62 id: $id, 63 state: $state 64 ) { 65 ...MessagePostFragment 66 } 67 } 68 ${n.MessagePost} 69 `}),p=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 70 mutation DeleteMessagePost ( 71 $id: Int! 72 ) { 73 deleteMessagePost(id: $id) { 74 id 75 } 76 } 77 `}),b=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 78 mutation MarkAllPostsAsRead ( 79 $id: Int! 80 ) { 81 markAllPostsAsRead(id: $id) 82 } 83 `}),v=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 84 mutation FlagPost ( 85 $id: Int! 86 ) { 87 flagPost(id: $id) { 88 ...MessagePostFragment 89 } 90 } 91 ${n.MessagePost} 92 `}),m=Object.assign(Object.assign({},s),{get:l,getById:d,create:c,update:u,delete:p,markAllAsRead:b,flag:v,globalLoader(e){return s.setGlobalLoader(e),m}});function f(){return m}},"1c82":function(e,t,o){var i={"./en-US.json":"a1eb"};function a(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="1c82"},"1e01":function(e,t){e.exports={}},2121:function(e,t,o){"use strict";o.d(t,"a",function(){return s});var i=o("6db9"),a=o("2907"),r=o("8f92");const n=Object.assign(Object.assign(Object.assign(Object.assign({},Object(i["a"])()),Object(a["a"])()),Object(r["a"])()),{globalLoader(e){return Object(i["a"])().globalLoader(e),n}}),s=()=>({arc:{service:n}})},"23a9":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var i=o("1b59"),a=(o("2cd6"),o("82d9")),r=o("2ac6");let n;const s=()=>{const e=()=>n,t=e=>{n=e},o=()=>e(),s=()=>{const e=void 0;return Object(a["e"])({cookieLocale:Object(r["a"])().get(i["s"].I18N.COOKIE_NAME),acceptLanguage:Array.isArray(e)?e[0]:e})},l=(t,...o)=>{const i=e();return i?i.tc(t,...o):t},d=(t,...o)=>{const i=e();return i?i.t(t,...o):t},c=()=>{n=void 0};return{init:t,i18n:o,initialLocale:s,t:d,tc:l,reset:c}}},"25f1":function(e,t,o){"use strict";o.d(t,"a",function(){return l});var i=o("6610");function a(){Object.assign(Object(i["a"])(),Object.assign({},Object(i["b"])()))}function r(e){var t,o;const a=Object(i["a"])();a.returnCrudModel=e.crudModel,a.returnLocation=e.from,a.returnLabel=null!==(t=e.returnLabel)&&void 0!==t?t:"",a.completeLabel=null!==(o=e.completeLabel)&&void 0!==o?o:"",a.attachModelId=e.attachModelId}function n(){const e=Object(i["a"])();e.returnLocation="",e.returnLabel="",e.completeLabel="",e.returnCrudModel=void 0,e.attachModelId=void 0}function s(e){Object(i["a"])().meta=Object.assign(Object.assign({},Object(i["a"])().meta),e)}function l(){function e(e){r(e)}function t(){n()}function o(e){s(e)}function i(){a()}return{setReturnModel:e,clearReturnLocation:t,setMeta:o,resetState:i}}},2755:function(e,t,o){"use strict";o.d(t,"a",function(){return d});var i=o("dffb"),a=o("2858"),r=o("1b59"),n=o("b4f0"),s=o("940e");const{formatDate:l}=i["b"];function d(e){const t=(e,t,o="...",i=void 0)=>Object(s["b"])(e,t,o,i),o=(t,o=n["a"])=>t?("number"===typeof t&&Object(r["S"])(t)&&10===t.toString().length&&(t*=1e3),l(new Date(t).toUTCString(),o)):e("system.labels.unknownDate"),i=(t,o=n["a"])=>{const i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(null!==t&&void 0!==t?t:"");return null===i?e("system.labels.unknownDate"):l(new Date(Number(i[1]),Number(i[2])-1,Number(i[3])),o)},d=t=>t&&t.trim()?t:e("system.labels.anonymous"),c=(e,o)=>{const i=e.authorPenName?e.authorPenName[o]:e.penName;return t(i,50)},u=e=>e.endsWith("(Audio)")?e.replace("(Audio)","").trim():e,p=e=>a["validate"](e),b=(e,t)=>Object(r["N"])(e*((100-t)/100),2),v=(e,t,o)=>o&&Object(r["K"])()<=o?b(e,t):e,m=(e,t="month")=>v(e,"month"===t?r["s"].SUBSCRIPTIONS.DISCOUNTS.MONTH:r["s"].SUBSCRIPTIONS.DISCOUNTS.YEAR,r["s"].SUBSCRIPTIONS.DISCOUNTS.END_DATE),f=(e,t="month")=>b(e,"month"===t?r["s"].SUBSCRIPTIONS.DISCOUNTS.MONTH:r["s"].SUBSCRIPTIONS.DISCOUNTS.YEAR);return{ellipsis:t,formatDate:o,formatCalendarDay:i,getDisplayName:d,getPenNameName:c,userFriendlySiteDescription:u,validEmail:p,minusDiscount:v,minusDiscountNoDate:b,minusSubDiscount:m,minusSubDiscountNoDate:f}}},2907:function(e,t,o){"use strict";o.d(t,"a",function(){return W});var i=o("6d03"),a=o("bb36"),r=o("2dd7"),n=o("3691"),s=o("1b59"),l=o("9176"),d=o("f782"),c=o("13a7"),u=o("1517"),p=o("049c"),b=o("cb78"),v=function(e,t,o,i){function a(e){return e instanceof o?e:ne
92w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},m=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const f=o("1f87"),y=(e,t)=>{var o;return Object(u["a"])().mutate({variables:{userId:null===(o=e.user)||void 0===o?void 0:o.id,claimId:e.id,cfi:t},mutation:n["a"]` 93 mutation UpdateClaimReadLocation ( 94 $userId: Int! 95 $claimId: Int! 96 $cfi: String! 97 ) { 98 updateClaimReadLocation( 99 userId: $userId, 100 claimId: $claimId, 101 cfi: $cfi 102 ) { 103 ...ArcClaimFragment 104 } 105 }, 106 ${l["a"].claim} 107 `})},g=(e,t)=>Object(u["a"])().query({variables:{arcId:e,userId:t},query:n["a"]` 108 query GetArcClaim ( 109 $arcId: Int, 110 $userId: Int 111 ) { 112 arcUserClaim (arcId: $arcId, userId: $userId) { 113 ...ArcClaimFragment, 114 arc { 115 ...ArcFragment 116 } 117 } 118 }, 119 ${l["a"].claim}, 120 ${l["a"].arc} 121 `}).then(e=>Object(c["c"])(e)),h=(e,t)=>Object(u["a"])().query({variables:{arcId:e,userId:t},query:n["a"]` 122 query GetArcClaim ( 123 $arcId: Int, 124 $userId: Int 125 ) { 126 arcUserClaim (arcId: $arcId, userId: $userId) { 127 id, 128 createdDate, 129 status, 130 statusDate, 131 cancellationReason, 132 cancellationType, 133 downloadCode, 134 downloadCodeExpirationDate, 135 reviewFlags, 136 optionalReviewFlags, 137 requiredReviewCount, 138 selectedAudioSiteFlag, 139 canFollowTeam, 140 dueDate, 141 review { 142 id, 143 rating, 144 title, 145 review, 146 reviewLanguage, 147 translatedReview, 148 privateFeedback, 149 disclaimer, 150 createdDate, 151 updatedDate 152 sites { 153 id, 154 link, 155 site, 156 status, 157 statusDate, 158 statusReason, 159 exempt 160 } 161 }, 162 arc { 163 id, 164 isDraft, 165 status, 166 book { 167 id, 168 bookCover, 169 title, 170 seriesName, 171 seriesNumber, 172 penName, 173 wordCount, 174 authorPenName { 175 id, 176 name, 177 image, 178 firstName, 179 averageRating, 180 followers { 181 id 182 } 183 }, 184 linkAmazonAsin, 185 linkAmazonAsinPrint, 186 linkAudibleUs, 187 linkAudibleUk, 188 linkBarnes, 189 linkBookbub, 190 linkGoodreads, 191 linkGoogle, 192 linkSmashwords, 193 linkKobo, 194 linkITunes, 195 smashwordsCouponCode, 196 linkITunesAudio, 197 linkBarnesAudio, 198 linkGoogleAudio, 199 linkGoodreadsAudio, 200 linkKoboAudio, 201 linkBookbubAudio, 202 linkStoryGraph, 203 linkStoryGraphAudio, 204 description, 205 audience, 206 keywords, 207 releaseDate, 208 categories { 209 id, 210 name, 211 translations { 212 locale 213 name 214 } 215 }, 216 pdfFile, 217 pdfFileSizeBytes, 218 pdfSystemGenerated, 219 epubFile, 220 epubFileSizeBytes, 221 epubPreviewFile, 222 epubSystemGenerated 223 }, 224 arcTeam { 225 id, 226 name, 227 defaultDisclaimer 228 } 229 specialInformation, 230 arcType, 231 discoverableType, 232 participationType, 233 copyCountType, 234 copyCount, 235 seriesLimitType, 236 reviewFlags, 237 optionalReviewFlags, 238 requiredReviewCount, 239 optionalReviewCount, 240 liveDate, 241 reviewDays, 242 stopDownloadDate, 243 neverEndingPrivate, 244 usDownloadCodes, 245 ukDownloadCodes, 246 authorsDirectDownloadCodes, 247 koboDownloadCodes, 248 participationPreventionType, 249 siteWideParticipationPreventionType, 250 dueDate, 251 dueCutOffDate, 252 vipExclusiveAccessDays 253 } 254 } 255 } 256 `}).then(e=>Object(c["c"])(e)),O=e=>Object(u["a"])().query({variables:Object.assign({},e),query:n["a"]` 257 query GetArcClaims ( 258 $arcId: Int, 259 $status: Int, 260 $userSearchNeedle: String, 261 $type: Int, 262 $forAuthenticatedUser: Boolean, 263 $reviewSiteStatus: Int, 264 $mustHaveReviews: Boolean, 265 $claimId: Int, 266 $userId: Int, 267 $statuses: [Int!], 268 $isDue: Boolean, 269 $sortBy: String, 270 $genericSearchTerm: String, 271 $skip: Int, 272 $take: Int, 273 $bookId: Int, 274 $authorPenNameId: Int 275 ) { 276 arcClaims ( 277 arcId: $arcId, 278 status: $status, 279 userSearchNeedle: $userSearchNeedle, 280 type: $type, 281 forAuthenticatedUser: $forAuthenticatedUser, 282 reviewSiteStatus: $reviewSiteStatus, 283 mustHaveReviews: $mustHaveReviews, 284 claimId: $claimId, 285 userId: $userId, 286 statuses: $statuses, 287 isDue: $isDue, 288 sortBy: $sortBy, 289 genericSearchTerm: $genericSearchTerm, 290 skip: $skip, 291 take: $take, 292 bookId: $bookId, 293 authorPenNameId: $authorPenNameId 294 ) { 295 ...ArcReviewClaimFragment 296 } 297 }, 298 ${l["b"].reviewClaim} 299 `}).then(e=>e.map(e=>Object(c["c"])(e))),w=e=>Object(u["a"])().query({variables:Object.assign({},e),query:n["a"]` 300 query GetGroupedArcClaimsCount ( 301 $arcId: Int, 302 $status: Int, 303 $userSearchNeedle: String, 304 $type: Int, 305 $forAuthenticatedUser: Boolean, 306 $reviewSiteStatus: Int, 307 $mustHaveReviews: Boolean, 308 $claimId: Int, 309 $userId: Int, 310 $groupByStatus: Int, 311 $genericSearchTerm: String, 312 $audienceTypes: [Int!], 313 $categoryId: Int, 314 $sortBy: String, 315 $skip: Int, 316 $take: Int, 317 $countOnly: String, 318 ) { 319 groupedArcClaimsCount ( 320 arcId: $arcId, 321 status: $status, 322 userSearchNeedle: $userSearchNeedle, 323 type: $type, 324 forAuthenticatedUser: $forAuthenticatedUser, 325 reviewSiteStatus: $reviewSiteStatus, 326 mustHaveReviews: $mustHaveReviews, 327 claimId: $claimId, 328 userId: $userId, 329 groupByStatus: $groupByStatus, 330 genericSearchTerm: $genericSearchTerm, 331 categoryId: $categoryId, 332 audienceTypes: $audienceTypes, 333 sortBy: $sortBy, 334 skip: $skip, 335 take: $take, 336 countOnly: $countOnly, 337 ) { 338 activeCount, 339 cancelledCount, 340 completeCount, 341 delayedCount, 342 dueCount, 343 pendingPublishingCount, 344 } 345 } 346 `}),j=e=>Object(u["a"])().query({variables:Object.assign({},e),query:n["a"]` 347 query GetGroupedArcClaims ( 348 $arcId: Int, 349 $status: Int, 350 $userSearchNeedle: String, 351 $type: Int, 352 $forAuthenticatedUser: Boolean, 353 $reviewSiteStatus: Int, 354 $mustHaveReviews: Boolean, 355 $claimId: Int, 356 $userId: Int, 357 $groupByStatus: Int, 358 $genericSearchTerm: String, 359 $audienceTypes: [Int!], 360 $categoryId: Int, 361 $sortBy: String, 362 $skip: Int, 363 $take: Int 364 ) { 365 groupedArcClaims ( 366 arcId: $arcId, 367 status: $status, 368 userSearchNeedle: $userSearchNeedle, 369 type: $type, 370 forAuthenticatedUser: $forAuthenticatedUser, 371 reviewSiteStatus: $reviewSiteStatus, 372 mustHaveReviews: $mustHaveReviews, 373 claimId: $claimId, 374 userId: $userId, 375 groupByStatus: $groupByStatus, 376 genericSearchTerm: $genericSearchTerm, 377 categoryId: $categoryId, 378 audienceTypes: $audienceTypes, 379 sortBy: $sortBy, 380 skip: $skip, 381 take: $take 382 ) { 383 activeCount, 384 cancelledCount, 385 completeCount, 386 delayedCount, 387 dueCount, 388 pendingPublishingCount, 389 result { 390 totalRows, 391 items { 392 ...ArcClaimFragment, 393 arc { 394 id, 395 dueDate, 396 dueCutOffDate, 397 arcType, 398 book { 399 id, 400 title, 401 penName, 402 authorPenName { 403 id, 404 name, 405 image, 406 followers { 407 id 408 } 409 }, 410 bookCover, 411 description, 412 keywords, 413 epubFile, 414 epubPreviewFile, 415 pdfFile 416 }, 417 arcTeam { 418 id, 419 arcTeamMembers { 420 id 421 status, 422 arcTeamId, 423 user { 424 id 425 } 426 } 427 } 428 } 429 } 430 } 431 } 432 }, 433 ${l["a"].claim} 434 `}).then(e=>Object.assign(Object.assign({},e),{result:{totalRows:e.result.totalRows,items:e.result.items.map(e=>Object.assign(Object.assign({},Object(c["c"])(e)),{arc:Object(c["b"])(e.arc)}
434))}})),I=e=>Object(u["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 435 mutation GrantReviewExemption ( 436 $claimId: Int!, 437 $grantSites: [Int!] 438 ) { 439 grantReviewExemption (claimId: $claimId, grantSites: $grantSites) { 440 id 441 } 442 } 443 `}),A=e=>Object(u["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 444 mutation RevokeReviewExemption ( 445 $claimId: Int!, 446 $revokeSites: [Int!] 447 ) { 448 revokeReviewExemption (claimId: $claimId, revokeSites: $revokeSites) { 449 id 450 } 451 } 452 `}),R=e=>Object(u["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 453 mutation ClaimArc ( 454 $arcId: Int!, 455 $userId: Int!, 456 $selectedAudioSiteFlag: Int 457 ) { 458 claimArc ( 459 arcId: $arcId, 460 userId: $userId, 461 selectedAudioSiteFlag: $selectedAudioSiteFlag 462 ) { 463 id 464 } 465 } 466 `}),k=(e,t)=>v(void 0,void 0,void 0,function*(){if(i["a"].isAuthenticated)try{yield Object(u["a"])().mutate({variables:{type:e,metaData:void 0!==t?JSON.stringify(t):void 0},mutation:n["a"]` 467 mutation TrackMetric ( 468 $type: String!, 469 $metaData: String 470 ) { 471 trackMetric ( 472 type: $type, 473 metaData: $metaData 474 ) 475 } 476 `})}catch(o){console.error("[trackMetric] failed",o)}}),S=(e,t=f)=>Object(p["a"])().axios().post("arc/download-claim",e,{responseType:"blob",timeout:6e5}).then(e=>{var o;const i=null===(o=e.headers["content-disposition"])||void 0===o?void 0:o.split("filename=")[1];return t(e.data,i)}),T=e=>Object(p["a"])().axios().post("arc/email-claim",e).then(e=>{}),F=e=>Object(u["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 477 mutation CancelClaim ( 478 $additionalInformation: String, 479 $claimId: Int!, 480 $reason: String, 481 $type: Int! 482 ) { 483 cancelArcClaim ( 484 additionalInformation: $additionalInformation, 485 claimId: $claimId, 486 reason: $reason, 487 type: $type 488 ) { 489 id 490 } 491 } 492 `}),C=e=>Object(u["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 493 mutation UnCancelClaim ( 494 $claimId: Int! 495 ) { 496 unCancelArcClaim ( 497 claimId: $claimId 498 ) { 499 id 500 } 501 } 502 `}),E=(e,t)=>{const o=new Date(new Date(e).getTime()+6e4*t).getTime();return o>(new Date).getTime()},D=()=>Object(u["a"])().query({query:n["a"]` 503 query GetNextArcToReview { 504 getNextArcToReview { 505 ...ArcFragment 506 } 507 } 508 ${l["a"].arc} 509 `}).then(e=>Object(c["b"])(e)),P=(e,t)=>v(void 0,void 0,void 0,function*(){var o;const i=m(s["s"].ARCS.CLAIMS.INELIGIBLE_REASONS,[]);return void 0===(null===(o=t.userEmails)||void 0===o?void 0:o.find(e=>e.status===s["s"].USER.EMAILS.STATUS.VERIFIED))?{ineligibleReason:i.EMAIL_NOT_VERIFIED}:$({arcId:e.id,suggestArc:!0})}),$=e=>v(void 0,void 0,void 0,function*(){return Object(u["a"])().query({variables:Object.assign({},e),query:n["a"]` 510 query GetClaimEligibilityForUser ( 511 $arcId: Int!, 512 $suggestArc: Boolean! 513 ) { 514 getClaimEligibilityForUser ( 515 arcId: $arcId, 516 suggestArc: $suggestArc 517 ) { 518 ineligibleReason, 519 reasonDate, 520 reasonDescription, 521 existingClaim { 522 ...ArcClaimFragment 523 }, 524 suggestedArc { 525 ...ArcFragment 526 }, 527 suggestedBooks { 528 ...BookFragment 529 } 530 } 531 } 532 ${l["a"].claim} 533 ${l["a"].arc}, 534 ${d["a"].book} 535 `}).then(e=>Object.assign(Object.assign({},e),{suggestedArc:Object(c["b"])(e.suggestedArc)}))}),N=e=>{if(!e.bookId){const t=new Error("UpdateDueCutOffDate called without bookId");return a["g"](o=>{o.setTag("operation","UpdateDueCutOffDate"),o.setContext("arc",{id:e.id,bookId:e.bookId}),r["c"](t)}),Promise.reject(t)}return Object(u["a"])().mutate({variables:{id:e.id,bookId:e.bookId},mutation:n["a"]` 536 mutation UpdateDueCutOffDate ( 537 $id: Int!, 538 $bookId: Int! 539 ) { 540 updateDueCutOffDate ( 541 id: $id, 542 bookId: $bookId 543 ) { 544 ...ArcFragment 545 } 546 } 547 ${l["a"].arc} 548 `})},L=e=>{var t,o;const i=[];if(!(null===(t=null===e||void 0===e?void 0:e.review)||void 0===t?void 0:t.sites))return i;const a=[s["s"].ARCS.REVIEWS.FLAGS.AMAZON,s["s"].ARCS.REVIEWS.FLAGS.BOOK_BUB,s["s"].ARCS.REVIEWS.FLAGS.AUDIO_BOOK_BUB,s["s"].ARCS.REVIEWS.FLAGS.GOOD_READS,s["s"].ARCS.REVIEWS.FLAGS.AUDIO_GOODREADS,s["s"].ARCS.REVIEWS.FLAGS.STORY_GRAPH,s["s"].ARCS.REVIEWS.FLAGS.AUDIO_STORY_GRAPH];for(const r of e.review.sites.filter(e=>e.status!==s["s"].ARCS.REVIEWS.SITE.STATUS.NONE||e.exempt)){const t=Object.assign({},r);if(!a.includes(t.site)){const i=s["s"].ARCS.REVIEWS.FLAG_BOOK_KEYS_SITE[r.site],a=(null===(o=null===e||void 0===e?void 0:e.arc)||void 0===o?void 0:o.book)?e.arc.book[i]:"";a&&(t.link=a)}i.push(t)}return i},B=e=>{var t,o;
548const i=[],{SMASH_WORDS:a,KOBO:r,BARNES:n,GOOGLE:l,ITUNES:d,AUDIBLE_UK:u,AUDIBLE_US:p,AUDIBLE:b}=s["s"].ARCS.REVIEWS.FLAGS,v=a|r|n|l|d|u|p|b;let m=Object(s["A"])(e.reviewFlags,v);const f=Object(c["a"])(e.reviewFlags);(e.requiredReviewCount||0>f)&&(m=m.concat(Object(s["A"])(e.optionalReviewFlags||0,v)));for(const c of m){const a=null===(o=null===(t=e.review)||void 0===t?void 0:t.sites)||void 0===o?void 0:o.find(e=>e.site===c.site),r=!(!a||!a.exempt),n=!!a&&Object(s["I"])(a.site,a.link||""),l=!!a&&a.status===s["s"].ARCS.REVIEWS.SITE.STATUS.DELAYED;i.push({name:c.description,site:c.site,selected:r,disabled:n&&!l})}return i},x=e=>M(e,s["s"].ARCS.CLAIMS.STATE.READ),_=e=>M(e,s["s"].ARCS.CLAIMS.STATE.NEW),U=e=>M(e,s["s"].ARCS.CLAIMS.STATE.NEW_ACTIVITY),M=(e,t)=>Object(u["a"])().mutate({variables:{claimId:e,state:t},mutation:n["a"]` 549 mutation UpdateClaimState ( 550 $claimId: Int!, 551 $state: Int! 552 ) { 553 updateClaimState ( 554 claimId: $claimId, 555 state: $state 556 ) 557 } 558 `}),G=e=>Object(u["a"])().mutate({variables:{id:e},mutation:n["a"]` 559 mutation MarkReviewSiteAsSeen ( 560 $id: Int! 561 ) { 562 markReviewSiteAsSeen ( 563 id: $id 564 ) { 565 id, 566 link, 567 site, 568 status, 569 statusDate, 570 statusReason, 571 exempt, 572 state 573 } 574 } 575 `}),q=Object(b["a"])("arc"),V=Object.assign(Object.assign({},q),{claimArc:R,getClaim:g,getClaimToReview:h,getClaims:O,getGroupedClaimsCount:w,getGroupedClaims:j,updateClaimReadLocation:y,cancelClaim:F,unCancelClaim:C,markClaimAsRead:x,markClaimAsUnRead:_,markClaimAsNewActivity:U,updateClaimState:M,getClaimEligibility:P,getClaimEligibilityForUser:$,getNextArcToReview:D,downloadClaim:S,emailClaim:T,getClaimSites:L,getAllowedExemptSitesForClaim:B,claimDateWithinMinutes:E,updateDueCutOffDate:N,trackMetric:k,markReviewSiteAsSeen:G,grantReviewExemption:I,revokeReviewExemption:A,globalLoader(e){return q.setGlobalLoader(e),V}});function W(){return V}},"2ac6":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("265b");o("2cd6");const a=()=>i["a"],r=()=>{const e=e=>a().get(e),t=(e,t,o)=>{a().set(e,t,o)},o=e=>a().has(e),i=(e,t)=>{a().remove(e,t)};return{cookies:a,get:e,set:t,has:o,remove:i}}},"2ad4":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("b9bf");const a=()=>({messageThread:{service:Object(i["a"])()}})},"2c8f":function(e,t,o){},"2cd6":function(e,t,o){"use strict";o.d(t,"a",function(){return i});const i=e=>{}},"2f39":function(e,t,o){"use strict";o.r(t);o("dea0"),o("2274"),o("9ff2"),o("0047");var i=o("8b32"),a=o("4877"),r=o("265b"),n=o("9873"),s=o("b364"),l=o("e7c1"),d=o("788b"),c=o("a19a");i["default"].use(a["a"],{config:{},plugins:{Cookies:r["a"],Notify:n["a"],Dialog:s["a"],Loading:l["a"],LocalStorage:d["a"],Meta:c["a"]}});var u=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{attrs:{id:"q-app"}},[e.isReadyToRender?t("router-view",{key:e.routerViewKey}):t("div",{staticClass:"fullscreen bg-primary flex items-center q-pa-lg"},[t("div",{staticClass:"full-width text-center"},[t("q-img",{attrs:{src:"https://booksprout.co/cdn/logo-w.svg"}}),t("div",{staticClass:"text-white q-mt-md"},[e._v(e._s(e.$tc("system.labels.loading")))])],1)])],1)},p=[],b=o("1b59"),v=o("2dd6"),m=o("f725"),f=o("fb0b"),y=o("5326"),g=o("ed66"),h=o.n(g),O=o("9b23"),w=o("6d03"),j=o("a1dc"),I=o("049c"),A=o("2ad4"),R=o("e6f1"),k=o("06f7"),S=o("58ab"),T=o("1a68");const F={"app:active":"#bs-active","app:active-arcs":"#bs-active-arcs","app:all-authors":"#bs-all-authors","app:amazon":"#bs-amazon","app:amazon-original":"#bs-amazon-original","app:american-express":"#bs-american-express","app:apple":"#bs-apple","app:arcs":"#bs-arcs","app:arrow-down":"#bs-arrow-down","app:arrow-left":"#bs-arrow-left","app:arrow-left-slim":"#bs-arrow-left-slim","app:arrow-right":"#bs-arrow-right","app:arrow-right-slim":"#bs-arrow-right-slim","app:arrow-right-alt":"#bs-arrow-right-alt","app:arrow-up":"#bs-arrow-up","app:audible":"#bs-audible","app:audiobook":"#bs-audiobook","app:audiobook-alt":"#bs-audiobook-alt","app:author-role":"#bs-author-role","app:authors-direct":"#bs-authors-direct","app:award":"#bs-award","app:back":"#bs-back","app:badge-filled":"#bs-badge-filled","app:badge-new-reviewer":"#bs-badge-new-reviewer","app:badge-outline":"#bs-badge-outline","app:badge-valued-reviewer":"#bs-badge-valued-reviewer","app:badge-top-reviewer":"#bs-badge-top-reviewer","app:ban":"#bs-ban","app:barnes":"#bs-barnes","app:billing":"#bs-billing","app:bin":"#bs-bin","app:block":"#bs-block","app:book":"#bs-book","app:book-file-updated":"#bs-book-file-updated","app:bookbub":"#bs-bookbub","app:bookmark":"#bs-bookmark","app:books":"#bs-books","app:booksprout":"#bs-booksprout","app:booksprout-dense":"#bs-booksprout-dense","app:booksprout-leaf":"#bs-booksprout-leaf","app:browse":"#bs-browse","app:categories":"#bs-categories","app:calendar":"#bs-calendar","app:calendar-next":"#bs-calendar-next","app:calendar-prev":"#bs-calendar-prev","app:cancel-filled":"#bs-cancel-filled","app:cancelled-arcs":"#bs-cancelled-arcs","app:cancelled-review":"#bs-cancelled-review","app:check":"#bs-check","app:check-dense":"#bs-check-dense","app:check-filled":"#bs-check-filled","app:check-round":"#bs-check-round","app:check-round-thin":"#bs-check-round-thin","app:check-thin":"#bs-check-thin","app:close":"#bs-close","app:close-circle":"#bs-close-circle","app:close-fat":"#bs-close-fat","app:complete-arcs":"#bs-complete-arcs","app:copy":"#bs-copy","app:dashboard":"#bs-dashboard","app:date":"#bs-date","app:date-picker":"#bs-date-picker","app:delayed":"#bs-delayed","app:delayed-arcs":"#bs-delayed-arcs","app:delete":"#bs-delete","app:discount":"#bs-discount","app:discover":"#bs-discover","app:done":"#bs-done","app:dots-filled":"#bs-dots-filled","app:double-arrow":"#bs-double-arrow","app:download":"#bs-download","app:download-solid":"#bs-download-solid","app:due-arcs":"#bs-due-arcs","app:ebook":"#bs-ebook","app:ebook-alt":"#bs-ebook-alt","app:ellipse":"#bs-ellipse","app:ellipse-horizontal":"#bs-ellipse-horizontal","app:email":"#bs-email","app:email-alt":"#bs-email-alt","app:epub-preview":"#bs-epub-preview","app:equalizer":"#bs-equalizer","app:error":"#bs-error","app:exclamation":"#bs-exclamation","app:excluded":"#bs-excluded","app:external-review":"#bs-external-review","app:facebook":"#bs-facebook","app:facebook-small":"#bs-facebook-small","app:filter":"#bs-filter","app:flag":"#bs-flag","app:flag-filled":"#bs-flag-filled","app:flag-point":"#bs-flag-point","app:globe":"#bs-globe","app:following":"#bs-following|0 0 30 16","app:following-authors":"#bs-following-authors","app:forward":"#bs-forward","app:glasses":"#bs-glasses","app:goodreads":"#bs-goodreads","app:google-play":"#bs-google-play","app:head-phones":"#bs-head-phones","app:inactive":"#bs-inactive","app:inbox":"#bs-inbox","app:info":"#bs-info","app:instagram":"#bs-instagram","app:itunes":"#bs-itunes","app:jcb":"#bs-jcb","app:kindle":"#bs-kindle","app:kobo":"#bs-kobo","app:lightning":"#bs-lightning","app:lightning-solid":"#bs-lightning-solid","app:link":"#bs-link","app:lock":"#bs-lock","app:logout":"#bs-logout","app:logout-alt":"#bs-logout-alt","app:magnifier":"#bs-magnifier","app:magnifier-dense":"#bs-magnifier-dense","app:maintenance":"#bs-maintenance","app:mastercard":"#bs-mastercard","app:message-filled":"#bs-message-filled","app:messages":"#bs-messages","app:messages-no-unread":"#bs-messages-no-unread","app:minus":"#bs-minus","app:mobile-menu":"#bs-mobile-menu","a
575pp:mobile-menu-close":"#bs-mobile-menu-close","app:mobile-next":"#bs-mobile-next","app:new-arc-participant":"#bs-new-arc-participant","app:new-review":"#bs-new-review","app:notifications":"#bs-notifications","app:notifications-no-unread":"#bs-notifications-no-unread","app:offline":"#bs-offline","app:open-mail":"#bs-open-mail","app:open-mail-alt":"#bs-open-mail-alt","app:padlock":"#bs-padlock","app:padlock-circle":"#bs-padlock-circle","app:password-hidden":"#bs-password-hidden","app:password-visible":"#bs-password-visible","app:pen-names":"#bs-pen-names","app:pen-names-alt":"#bs-pen-names-alt","app:pen-names-alt-no-unread":"#bs-pen-names-alt-no-unread","app:pencil":"#bs-pencil","app:pending":"#bs-pending","app:pending-arcs":"#bs-pending-arcs","app:pending-dots":"#bs-pending-dots","app:people":"#bs-people","app:plug-female":"#bs-plug-female","app:plug-male":"#bs-plug-male","app:plus":"#bs-plus","app:plus-rounded":"#bs-plus-rounded","app:publisher-role":"#bs-publisher-role","app:question-circle":"#bs-question-circle","app:reader":"#bs-reader","app:reader-no-unread":"#bs-reader-no-unread","app:reader-role":"#bs-reader-role","app:recycle":"#bs-recycle","app:recycle-vertical":"#bs-recycle-vertical","app:rejected-review":"#bs-rejected-review","app:report-pirate":"#bs-report-pirate","app:reviewer":"#bs-reviewer","app:reviews":"#bs-reviews","app:ribbon":"#bs-ribbon","app:saved-arc-ending-soon":"#bs-saved-arc-ending-soon","app:saved-arc-low-copies":"#bs-saved-arc-low-copies","app:sent":"#bs-sent","app:settings":"#bs-settings","app:share":"#bs-share","app:sheet":"#bs-sheet","app:smashwords":"#bs-smashwords","app:social-share":"#bs-social-share","app:sort":"#bs-sort","app:star":"#bs-star","app:storygraph":"#bs-storygraph","app:star-empty":"#bs-star-empty","app:star-full":"#bs-star-full","app:star-half":"#bs-star-half","app:star-outline":"#bs-star-outline","app:star-tick":"#bs-star-tick","app:stop":"#bs-stop","app:stop-alt":"#bs-stop-alt","app:stop-thin":"#bs-stop-thin","app:support":"#bs-support","app:tada-l":"#bs-tada-l","app:tada-r":"#bs-tada-r","app:tag-valued-reviewer":"#bs-tag-valued-reviewer","app:tag-top-reviewer":"#bs-tag-top-reviewer","app:team-members":"#bs-team-members","app:teams":"#bs-teams","app:teams-person":"#bs-teams-person","app:tiktok":"#bs-tiktok","app:time-to-publish":"#bs-time-to-publish","app:times-circle":"#bs-times-circle","app:trash":"#bs-trash","app:twitter":"#bs-twitter","app:unread":"#bs-unread","app:upgrade":"#bs-upgrade","app:va-role":"#bs-va-role","app:vertical-dots":"#bs-vertical-dots","app:visa":"#bs-visa","app:visit-link":"#bs-visit-link","app:website":"#bs-website","app:your-teams":"#bs-your-teams","app:x":"#bs-x"};var C=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};let E;function D(e){const{host:t}=e,o=Object(T["a"])(),a=Object(i["markRaw"])(Object(A["a"])().messageThread.service),r=Object(i["markRaw"])(Object(j["a"])()),n=Object(i["markRaw"])(Object(S["a"])().user.service),s=Object(i["markRaw"])(Object(R["a"])().notification.service),c=Object(i["markRaw"])(Object(I["a"])());let u;const p=t=>o.shouldSendHelpHeroData(t,e.mimicOrAuthenticatedUser(),e.isReviewerApp()),b=()=>{if(void 0===e.mimicOrAuthenticatedUser().id)return;s.globalLoader(!1),n.globalLoader(!1),c.globalLoader(!1),a.globalLoader(!1);const i=n.getById(e.mimicOrAuthenticatedUser().id).then(i=>C(this,void 0,void 0,function*(){var r;if(null===i||void 0===i?void 0:i.isLocked)return t.$router.push("/logout");if(!i)return;Object(j["a"])().setUser(i);const l=yield a.getUnreadThreadCount();Object(k["a"])().ui.setUnreadMessageCount(l);const d=yield n.getUserStats();yield Object(k["a"])().ui.setUserStats(d);const c=null!==(r=e.shouldSendHelpHeroData)&&void 0!==r?r:p;c(d)&&o.isHelpHeroEnabled(e.authenticatedUser())&&E.identify(e.mimicOrAuthenticatedUser().id,Object.assign({name:e.mimicOrAuthenticatedUser().name,email:e.mimicOrAuthenticatedUser().emailAddress},o.statsForHelpHero(d)));const u=yield s.getUnreadNotificationCount();Object(k["a"])().ui.setUnreadNotificationCount(u)})).catch(e=>{if(!w["a"].isAuthExpired)throw e}).finally(()=>{s.globalLoader(!0),n.globalLoader(!0),a.globalLoader(!0)});if(e.isMobileApp())return{account:i,liveness:void 0};const r=c.axios().post("auth/live",{},{timeout:5e3}).then(i=>{o.isVersionMismatch(i.data.version)&&t.$q.dialog({component:t.$bs.confirmDialog,parent:e.dialogParent,heading:"Ap
575plication Updated",bodyHtml:'This application has been updated, please confirm to reload the page. If you have any unsaved changes, please select "No", save your changes then reload manually.'}).onOk(()=>{document.location.reload()})}).catch(e=>{if(!o.isTimeoutError(e))throw e;console.log(e)}).finally(()=>{c.globalLoader(!0)});return{account:i,liveness:r}},v=()=>{l["a"].setDefaults({spinner:O["f"]})},m=()=>{t.$q.iconSet.datetime.arrowLeft="app:calendar-prev",t.$q.iconSet.datetime.arrowRight="app:calendar-next"},f=(t,i)=>n.update({id:e.mimicOrAuthenticatedUser().id,completedTours:o.completedToursWith(e.mimicOrAuthenticatedUser().completedTours,i.checklist.name)}).then(e=>Object(j["a"])().setUser(e)),y=()=>{t.$q.iconMapFn=o.iconMapFn(F,"svguse:/cdn/app-icon-sprite.svg")},g=t=>{o.isHelpHeroEnabled(e.authenticatedUser())&&(E=h()("rJcQnSjtzVY"),E.on("checklist_completed",t))},D=t=>{o.isHelpHeroEnabled(e.authenticatedUser())&&E.off("checklist_completed",t)},P=e=>{e(),o.shouldRunIntervalRoutines()&&(u=setInterval(e,6e4))},$=()=>{clearInterval(u)},N=()=>{var e;(null===(e=t.$route.query)||void 0===e?void 0:e.ref)&&d["a"].set("fp_ref",t.$route.query.ref)};return{messageThreadService:a,authService:r,userService:n,notificationService:s,axiosService:c,shouldSendHelpHeroData:p,intervalRoutines:b,configureLoading:v,configureCalendar:m,configureIcons:y,onChecklistCompleted:f,startHelpHero:g,stopHelpHero:D,startPolling:P,stopPolling:$,captureReferral:N}}var P=o("4e03"),$=o("ea91"),N=o("5e43"),L=o("80e0"),B=o("ed33"),x=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("q-dialog",{ref:"mobileAppOnboardingDialog",attrs:{"content-class":"bs-mobile-app-onboarding","transition-show":"slide-right","transition-hide":"slide-left",maximized:"",persistent:""},on:{hide:e.onDialogHide}},[t("div",{staticClass:"bs-m-a-o-content"},[t("q-tab-panels",{attrs:{swipeable:"",animated:""},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("q-tab-panel",{staticClass:"bs-m-a-o-c-step",attrs:{name:"step-1"}},[t("div",{staticClass:"row justify-end"},[t("bs-btn",{attrs:{"text-color":"bs-grey-m","as-link":""},on:{click:e.onboardingDone}},[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.actions.skip"))+"\n ")])],1),t("figure",{staticClass:"column"},[t("img",{attrs:{src:"/cdn/author-reviewer.png",alt:"Booksprout",width:"308",height:"303"}}),t("figcaption",[t("h1",{staticClass:"bs-h1--mobile"},[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.labels.community"))+"\n ")]),t("p",{staticClass:"column"},[t("strong",{staticClass:"p-small__bold"},[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.labels.reviewers"))+"\n ")]),t("span",[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.labels.advancedReviewCopies"))+"\n ")])]),t("p",{staticClass:"column"},[t("strong",{staticClass:"p-small__bold"},[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.labels.authors"))+"\n ")]),t("span",[e._v("\n "+e._s(e.$t("system.mobileAppOnboardingDialog.labels.booksReadAndReviewed"))+"\n ")])])])])]),t("q-tab-panel",{staticClass:"bs-m-a-o-c-step",attrs:{name:"step-2"}},[t("img",{attrs:{src:"/cdn/logo-nb.svg",alt:"Booksprout logo"}}),t("method-selection",{on:{click:e.hide}})],1)],1),t("q-tabs",{attrs:{"active-color":"bs-nb",align:"left","narrow-indicator":"",shrink:"",dense:""},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("q-tab",{attrs:{name:"step-1",label:e.$tc("system.mobileAppOnboardingDialog.labels.stepX",void 0,[1]),ripple:!1}}),t("q-tab",{attrs:{name:"step-2",label:e.$tc("system.mobileAppOnboardingDialog.labels.stepX",void 0,[2]),ripple:!1}})],1)],1)])},_=[],U=o("f9cd"),M=Object(i["defineComponent"])({name:"MobileAppOnboardingDialog",components:{MethodSelection:()=>Promise.all([o.e(1),o.e(0)]).then(o.bind(null,"f29f"))},setup(e,{emit:t}){const o=Object(y["z"])(),{setLocalStorage:a}=Object(L["a"])(),r=Object(i["ref"])("step-1"),n=Object(U["a"])({dialogRef:"mobileAp
575pOnboardingDialog",vm:o,emit:t}),s=()=>{a("mobileAppOnboardingDone",!0),n.hide()};return Object.assign(Object.assign({},n),{tab:r,onboardingDone:s})}}),G=M,q=(o("889d"),o("89ad")),V=o("d8e4"),W=o("5700"),Y=o("6f14"),H=o("9d6c"),K=o("fecf"),z=o("491d"),X=o.n(z),Q=Object(q["a"])(G,x,_,!1,null,null,null),J=Q.exports;X()(Q,"components",{QDialog:V["a"],QTabPanels:W["a"],QTabPanel:Y["a"],QTabs:H["a"],QTab:K["a"]});var Z=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};o("7926").shim();var ee=Object(i["defineComponent"])({name:"AppComponent",meta(){return Object($["a"])().documentMeta()},setup(){const e=Object(y["z"])(),t=Object(B["a"])(),{showError:a,showMessage:r}=Object(P["a"])(e),{getLocalStorage:n}=Object(L["a"])(),s=Object(N["a"])(e),l=Object(i["markRaw"])(Object(y["p"])()),d=Object(i["markRaw"])(Object(y["y"])().user.service),c=Object(i["markRaw"])(Object(y["e"])()),u=()=>s.isMobileApp(),p=D({host:e,mimicOrAuthenticatedUser:()=>t.mimicOrAuthenticatedUser,authenticatedUser:()=>t.authenticatedUser,isMobileApp:u,isReviewerApp:()=>!0,dialogParent:e}),g=Object(i["computed"])(()=>Object(k["a"])().ui.store.getters.isReadyToRender),h=Object(i["ref"])(!1),O=Object(i["ref"])(void 0),w=Object(i["computed"])(()=>e.$route.params.id||""),j=Object(i["computed"])(()=>Object(k["a"])().ui.store.getters.redirectData),I=t=>{t.name?e.$router.push({name:t.name}).catch(()=>{}):t.url&&e.$router.push(t.url).catch(()=>{})},A=Object(i["computed"])(()=>Object(k["a"])().ui.store.getters.showMessageDialog),R=t=>{var o;t.show&&(e.$q.dialog({component:e.$bs.dialogComponent,parent:e,error:t.error,heading:t.error?e.$tc("system.actions.errorDialogHeading"):e.$tc("system.actions.messageDialogHeading"),message:null===(o=t.message)||void 0===o?void 0:o.toString().concat((t.optionalParams||[]).join(" "))}),Object(k["a"])().ui.clearMessageDialog())},S=Object(i["computed"])(()=>Object(k["a"])().ui.store.getters.triggerLoginNotification),T=t=>{t&&(Object(k["a"])().ui.clearAuthRequired(),e.$router.push(Object(k["a"])().ui.store.getters.loginForwardUrl))},F=Object(i["computed"])(()=>y["d"].isAuthExpired),C=t=>{var i,a;t&&(null===(a=null===(i=e.$route)||void 0===i?void 0:i.meta)||void 0===a?void 0:a.requiresAuth)?O.value=e.$q.dialog({component:()=>Promise.all([o.e(1),o.e(0),o.e(63)]).then(o.bind(null,"ca08")),parent:e}):O.value&&O.value.hide()},E=()=>{u()&&(m["a"].requestPermissions().then(e=>{"granted"===e.receive?m["a"].register().catch(()=>{}):console.warn("Error registering user token",e)}).catch(()=>{}),m["a"].addListener("registration",o=>{y["d"].isAuthenticated?d.globalLoader(!1).update({id:t.mimicOrAuthenticatedUser.id,notificationRegistrationToken:o.value}):e.$q.localStorage.set("notificationRegistrationToken",o.value)}),m["a"].addListener("registrationError",e=>{console.error(e)}),m["a"].addListener("pushNotificationActionPerformed",t=>{const o=t.notification.data;o.route&&e.$router.push(o.route),o.showMessage?r(o.showMessage):o.showError&&a(o.showError),m["a"].removeAllDeliveredNotifications()}))},$=()=>{const t=n("mobileAppOnboardingDone");u()&&!t&&e.$q.dialog({component:J,parent:e})},x=()=>Z(this,void 0,void 0,function*(){if(!h.value){h.value=!0;try{let o;try{o=yield c.checkForUpdate(b["s"].APP.VERSION,e.$q.platform.is.android?"android":"ios","master")}catch(t){return void console.error("Error checking for update",t)}if(!o.hasUpdate)return;try{const e=yield f["a"].getNextBundle();if(e&&e.version===o.version)return;const t=yield f["a"].download({url:o.downloadUrl,version:o.version});yield f["a"].next({id:t.id})}catch(t){console.error("Error staging update",t)}}finally{h.value=!1}}}),_=()=>Z(this,void 0,void 0,function*(){yield x(),v["a"].addListener("appStateChange",e=>Z(this,void 0,void 0,function*(){e.isActive&&(yield x())}))});return Object(i["watch"])(j,I),Object(i["watch"])(A,R),Object(i["watch"])(S,T),Object(i["watch"])(F,C),p.configureIcons(),Object(i["onMounted"])(()=>Z(this,void 0,void 0,function*(){p.startPolling(()=>
575p.intervalRoutines()),p.configureLoading(),p.configureCalendar(),p.startHelpHero(p.onChecklistCompleted),Object(k["a"])().ui.setReadyToRender(!0),u()&&(yield l.redirectIfOffline(e.$router),yield _(),E()),$()})),Object(i["onUpdated"])(()=>{p.captureReferral()}),Object(i["onBeforeUnmount"])(()=>{p.stopPolling(),p.stopHelpHero(p.onChecklistCompleted),m["a"].removeAllListeners(),v["a"].removeAllListeners()}),{axiosService:l,userService:d,authService:c,isReadyToRender:g,isCheckingForUpdate:h,authExpiredDialog:O,routerViewKey:w,redirectData:j,showMessageDialog:A,triggerLoginNotification:S,isAuthExpired:F,onRedirectDataChanged:I,onShowMessageDialog:R,onTriggerLoginNotification:T,onIsAuthExpired:C,registerForNotifications:E,showAppOnboarding:$,getLatestUpdate:x,checkForUpdates:_,intervalRoutines:p.intervalRoutines,onChecklistCompleted:p.onChecklistCompleted}}}),te=ee,oe=o("26ad"),ie=Object(q["a"])(te,u,p,!1,null,null,null),ae=ie.exports;X()(ie,"components",{QImg:oe["a"]});var re=function({ssrContext:e}){return Object(y["j"])(void 0,e)},ne=o("dad3");function se(e){switch(e){case"arc":return"review-copy";case"arcs":return"review-copies";case"arc-team":return"team";case"arc-teams":return"teams";case"gamification":return"rank";default:return e}}const le=[{name:"author",requiresAuth:!1},{name:"arc-team",requiresAuth:!1},{name:"arc",requiresAuth:!1},{name:"gamification",requiresAuth:!0,isPlural:!0},{name:"book",requiresAuth:!1}];let de=[],ce=[];for(const Qt of le){const e=Qt.name,t=Qt.isPlural?e:e+"s",i=[],a=["arc","book","author"].includes(e),r=se(t),n=se(e);i.push({name:r,meta:{role:{action:"read"},requiresAuth:"review-copies"!==r,metaInstructions:{module:t}},path:r,component:()=>o("114c")("./"+t+"/pages/Index.vue")}),r!==t&&i.push({name:t,meta:{role:{action:"read"},requiresAuth:"arcs"!==t,metaInstructions:{module:t}},path:t,component:()=>o("114c")("./"+t+"/pages/Index.vue")}),i.push({name:`view-${n}`,meta:{role:{action:"read"},metaInstructions:{module:e}},path:`${n}${a?"/view":""}/:id/:name`,component:()=>o("154e")("./"+t+"/pages/View.vue")}),n!==e&&i.push({name:`view-${e}`,meta:{role:{action:"read"},metaInstructions:{module:e}},path:`${e}${a?"/view":""}/:id/:name`,component:()=>o("154e")("./"+t+"/pages/View.vue")}),Qt.requiresAuth?de=de.concat(i):ce=ce.concat(i)}const ue=[...y["l"],{path:"/maintenance",name:"maintenance",component:()=>Promise.all([o.e(1),o.e(34)]).then(o.bind(null,"1c61"))},{name:"default",path:"/",meta:{requiresAuth:!0},component:()=>Promise.all([o.e(1),o.e(0),o.e(28)]).then(o.bind(null,"ab0a")),children:de.concat([{name:"redirect-to-claim-from-book-preview",path:"book/:id/:title/claim",component:()=>o.e(29).then(o.bind(null,"a008"))},{name:"cancel-arc-claim",meta:{role:{action:"read"},requiresAuth:!0,metaInstructions:{module:"cancelArc"}},path:"review-copy/:id/:name/claim/cancel",component:()=>Promise.all([o.e(1),o.e(37)]).then(o.bind(null,"88ef"))},{name:"claim-arc",meta:{role:{action:"read"},requiresAuth:!0,metaInstructions:{module:"claimArc"}},path:"review-copy/:id/:name/claim/:stage?/:mode?/:forceSite?",component:()=>Promise.all([o.e(1),o.e(38)]).then(o.bind(null,"1ae1"))},{name:"review-arc",meta:{role:{action:"read"},requiresAuth:!0,metaInstructions:{module:"reviewArc"}},path:"review-copy/:id/:name/review/:siteName?",component:()=>Promise.all([o.e(1),o.e(0),o.e(39)]).then(o.bind(null,"6c00"))},{name:"your-arcs",path:"my-review-copies",meta:{requiresAuth:!0,metaInstructions:{module:"your-arcs"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(35)]).then(o.bind(null,"b68b"))},{name:"notifications",path:"notifications",meta:{metaInstructions:{module:"notifications"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(36)]).then(o.bind(null,"b7df"))},{name:"settings",path:"settings",meta:{metaInstructions:{module:"settings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"dfd3")),children:[{name:"account-settings",path:"account",meta:{metaInstructions:{module:"accountSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"a097"))},{name:"author-settings",path:"author",meta:{metaInstructions:{module:"authorSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"f3e9"))},{name:"reviewer-settings",path:"reviewer",meta:{metaInstructions:{module:"reviewerSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"ede3"))},{name:"billing-settings",path:"billing",meta:{metaInstructions:{module:"billingSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"35a0"))}
575,{name:"email-settings",path:"email",meta:{metaInstructions:{module:"emailSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"b37a"))},{name:"categories-settings",path:"categories",meta:{metaInstructions:{module:"categoriesSettings"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(40)]).then(o.bind(null,"a9cd"))}]}]).concat(y["f"])},{name:"default-no-auth",path:"/",meta:{requiresAuth:!1},component:()=>Promise.all([o.e(1),o.e(0),o.e(28)]).then(o.bind(null,"ab0a")),children:ce.concat([])}];var pe=ue;i["default"].use(ne["a"]);var be=function(){const e=new ne["a"]({scrollBehavior:()=>({x:0,y:0}),routes:pe,mode:"history",base:"/reviewer/"});return e},ve=async function(e){const t="function"===typeof re?await re({Vue:i["default"],ssrContext:e}):re,o="function"===typeof be?await be({Vue:i["default"],ssrContext:e,store:t}):be;t.$router=o;const r={router:o,store:t,render:e=>e(ae)};return a["a"].ssrUpdate({app:r,ssr:e}),{app:r,store:t,router:o}},me=o("87a9"),fe=Object(me["boot"])(({router:e})=>{Object(y["s"])().initFromEnv(),Object(y["t"])().init(Object(y["h"])()),Object(y["u"])().init(b["s"].APP.HOME_URLS.REVIEWER),Object(y["x"])().init(e)}),ye=o("d2c2"),ge=Object(me["boot"])(()=>{ye["b"].is.capacitor&&f["a"].notifyAppReady()}),he=o("03e2"),Oe=o("0145"),we=o("1660"),je=o("a09c"),Ie=o("cff4"),Ae=o("bb36"),Re=o("2dd7"),ke=o("faa8");const Se=[/Invalid call to runtime\.sendMessage\(\)\. Tab not found\./i,/feature named `hover` was not found/i,/feature named `pageObserver` was not found/i,/Encountered %o when trying/i,/Load config error: %O SyntaxError: Unexpected end of JSON input/i,/\[Termly\] error fetching configuration/i,/UnhandledRejection: Non-Error promise rejection captured with value: Object Not Found Matching Id/i,/Prettify fetch failed:/i,/SyntaxError: The string did not match the expected pattern\./i,/Event `[^`]+` \(type=[^)]+\) captured as promise rejection/i,/(?:Non-Error|Object) captured as promise rejection with keys: message/i,/Navigation (cancelled|aborted|redirected) from "[^"]+" to "[^"]+"/i,/^Unauthorized$/,/^Token has been invalidated$/,/^Network Error$/,/^Request aborted$/],Te=[/^(user-script|chrome-extension|moz-extension|safari-web-extension|safari-extension):/i,/extension:\/\//i],Fe=/Cannot read properties of null \(reading 'classList'\)/i,Ce=/\bat after-leave\b/i,Ee=/Cannot read properties of null \(reading 'appendChild'\)/i,De=/quasar\/src\/plugins\/Loading/i;function Pe(e){var t;return(null===(t=e.exception)||void 0===t?void 0:t.values)||[]}function $e(e){return Pe(e).reduce((e,t)=>{var o;return e.concat((null===(o=t.stacktrace)||void 0===o?void 0:o.frames)||[])},[])}function Ne(e){var t;const o=null===(t=e.extra)||void 0===t?void 0:t.arguments;if(!Array.isArray(o))return[];const i=[];for(const a of o)a&&"object"===typeof a&&"string"===typeof a.stack&&i.push(a.stack);return i}function Le(e){var t,o;const i=new Set;return e.message&&i.add(e.message),(null===(t=e.logentry)||void 0===t?void 0:t.message)&&i.add(e.logentry.message),(null===(o=e.logentry)||void 0===o?void 0:o.formatted)&&i.add(e.logentry.formatted),Pe(e).forEach(e=>{e.value&&i.add(e.value),e.type&&e.value&&i.add(`${e.type}: ${e.value}`)}),[...i]}function Be(e){const t=Le(e);return t.some(e=>Se.some(t=>t.test(e)))}function xe(e){const t=Le(e);return!!t.some(e=>Fe.test(e))&&Ne(e).some(e=>Ce.test(e))}function _e(e){const t=Le(e);return!!t.some(e=>Ee.test(e))&&$e(e).some(e=>"string"===typeof e.filename&&De.test(e.filename))}function Ue(e){const t=$e(e).some(e=>{const t=e.filename;return"string"===typeof t&&Te.some(e=>e.test(t))});return!!t||Ne(e).some(e=>Te.some(t=>t.test(e)))}function Me(e){var t,o,i;const a=Pe(e),r=Le(e),n=$e(e).length>0,s=/(booksprout\.co|localhost)/i.test(`${(null===(t=e.request)||void 0===t?void 0:t.url)||e.culprit||""}`),l=a.some(e=>{var t;return"onunhandledrejection"===(null===(t=e.mechanism)||void 0===t?void 0:t.type)}),d=r.some(e=>/^AxiosError:/i.test(e));return(null===(o=e.tags)||void 0===o?void 0:o.noise_candidate)?e:(null===(i=e.tags)||void 0===i?void 0:i.third_party_code)?(e.tags=Object.assign(Object.assign({},e.tags),{noise_candidate:"third-party-stack"}),e):(n||e.crashFile||!l||!s||d||(e.tags=Object.assign(Object.assign({},e.tags),{noise_candidate:"stackless-unhandled-rejection"})),e)}const Ge=[/downloadable font: download failed/i,/Error: event capacitorDidRegisterForRemoteNotifications not called/i,/Error registering user token \(Android/i,/CapgoUpdater\s*:\s*Semaphore wait timed out/i],qe=[/AxiosError: Network Error/i,/AxiosError: timeout exceeded/i,/AxiosError: Request aborted/i];var Ve=({router:e,Vue:t})=>{["dev","sandbox"].includes("master")||he["a"]({Vue:t,dsn:"https://78bf4bdb9a0642c0a0ea01ffa6067cc0@o4504832385613824.ingest.sentry.io/4504835368615936",replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,integrations:[Oe["a"]({router:e}),we["a"]({levels:["error"]}),je["a"]({filterKeys:[ke["sentryApplicationKeys"].reviewerApp],behaviour:"apply-tag-if-exclusively-contains-third-party-frames"}),Ie["a"]({networkDetailAllowUrls:["https://booksprout.co","https://localhost:49506"]})],tracePropagationTargets:["localhost","booksprout.co",/^\//],tracesSampleRate:.2,logErrors:!0,environment:"master",ignoreErrors:["ResizeObserver","DataCloneError","Termly",/The user aborted a request./,"User cancelled.","Beacon","NavigationDupl
575icated",/timeout of 5000ms exceeded/,"@webkit-masked-url","Loading chunk","Loading CSS chunk","window.webkit.messageHandlers"],trackComponents:!0,release:b["s"].APP.VERSION,attachStacktrace:!0,denyUrls:[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/chrome-extension:/i,/safari-extension:/i,/safari-web-extension:/i,/moz-extension:/i,/^user-script:/i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,/app.termly.io/i,/beacon-v2.helpscout.net/i,/.maze.co/i,/.adblockultimate.net/i,/c.amazon-adsystem.com/i,/anonymous/i,/webkit-masked-url/i,/updateAndCleanExtractedContent@/i,/Extract@/i,/w88p9x.com/i,/google-analytics.com/i],beforeSend(e){var t,o,i,a,r;const n=null===(o=null===(t=e.request)||void 0===t?void 0:t.headers)||void 0===o?void 0:o["User-Agent"],s=null===(i=e.exception)||void 0===i?void 0:i.values,l=Le(e);if((null===n||void 0===n?void 0:n.includes("BingPreview"))||(null===n||void 0===n?void 0:n.includes("facebook")))return null;if(Be(e))return null;if(Ue(e))return null;if(xe(e))return null;if(_e(e))return null;if(e=Me(e),null===s||void 0===s?void 0:s.some(e=>"NavigationDuplicated"===e.type))return null;if(null===(r=null===(a=e.request)||void 0===a?void 0:a.url)||void 0===r?void 0:r.includes("maintenance"))return null;if(null===s||void 0===s?void 0:s.some(e=>{var t,o;return null===(o=null===(t=e.stacktrace)||void 0===t?void 0:t.frames)||void 0===o?void 0:o.some(e=>"<anonymous>"===e.filename)}))return null;if(null===s||void 0===s?void 0:s.some(e=>{var t,o;return null===(o=null===(t=e.stacktrace)||void 0===t?void 0:t.frames)||void 0===o?void 0:o.some(e=>{var t;return null===(t=e.filename)||void 0===t?void 0:t.includes("quasar/src/mixins/prevent-scroll")})}))return null;if(l.some(e=>Ge.some(t=>t.test(e))))return null;if(l.some(e=>qe.some(t=>t.test(e)))||(null===s||void 0===s?void 0:s.some(e=>"AxiosError"===e.type&&("Network Error"===e.value||"timeout exceeded"===e.value||"Request aborted"===e.value))))return null;if(null===s||void 0===s?void 0:s.some(e=>{var t;return null===(t=e.mechanism)||void 0===t?void 0:t.handled}))return null;if(null===s||void 0===s?void 0:s.some(e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.includes("timeout of 5000ms exceeded")})){let e=!0,t=!0;fetch("https://www.google.com").then(t=>{t.ok||(e=!1)}).catch(()=>{e=!1}),fetch("https://booksprout.co").then(e=>{e.ok||(t=!1)}).catch(()=>{t=!1}),Ae["g"](function(o){o.setTag("axios-timeout","do ping"),o.setLevel("error"),Re["c"](new Error(`Google available: ${e}, Booksprout available: ${t}`))})}return e},beforeSendTransaction(e){var t,o;return(null===(o=null===(t=e.contexts)||void 0===t?void 0:t.trace)||void 0===o?void 0:o.status)?e:null}})},We=o("3aaf");const Ye=16,He=16,Ke=["sm","md","lg","xl"],ze=Object.assign({},We["a"].sizes),Xe=()=>{},Qe=/^[\d.]+(px)?$/,Je=e=>!Number.isNaN(e)&&e>0,Ze=e=>{const t=e.trim();return Qe.test(t)?parseFloat(t):NaN},et=()=>"undefined"!==typeof window&&"function"===typeof window.getComputedStyle,tt=()=>window.getComputedStyle(document.documentElement),ot=e=>{const t=Object.assign({},ze);for(const o of Ke){const i=Ze(e.getPropertyValue(`--q-size-${o}`));Je(i)&&(t[o]=i)}return t},it=e=>{const t=parseFloat(e.fontSize);return Je(t)?t:He},at=e=>{const t=ot(e),o=it(e),i={};for(const a of Ke)i[a]=t[a]/Ye*o;return i},rt=(e,t)=>"function"===typeof e.addEventListener?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t)),nt=()=>{et()&&We["a"].setSizes(at(tt()))},st=()=>{if(nt(),!et()||"function"!==typeof window.matchMedia)return Xe;const e=ot(tt()),t=Ke.map(t=>rt(window.matchMedia(`(min-width: ${e[t]/Ye}rem)`),nt));return()=>t.forEach(e=>e())};var lt=Object(me["boot"])(()=>{st()}),dt=o("480c"),ct=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};i["default"].use(dt["a"]);var ut=Object(me["boot"])(e=>ct(void 0,[e],void 0,function*({app:e,Vue:t}){const o=Object(y["t"])().i18n();yield Object(y["c"])(o,Object(y["t"])().initialLocale()),Object(y["g"])(o,e,t)})),pt=o("4800");i["default"].prototype.$axios=pt["a"];var bt=o("ee44"),vt=o("322b"),mt=function(e,t,o,i){function a(e){return e instanceof o?e:ne
575w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const ft=new Set,yt=e=>"SUPERVISED_APPROVAL_PENDING"===e.androidUserStatus||("SUPERVISED_APPROVAL_DENIED"===e.androidUserStatus||"SHARING"===e.status&&"number"===typeof e.ageUpper&&e.ageUpper<18),gt=e=>mt(void 0,void 0,void 0,function*(){if(!vt["a"].isNativePlatform())return{blocked:!1};if(ft.has(e))return{blocked:!1};ft.add(e);try{const e=yield bt["a"].requestAgeRange({ageGates:[18]});return{blocked:yt(e)}}catch(t){return{blocked:!1}}}),ht=()=>{ft.clear()};var Ot=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},wt=Object(me["boot"])(e=>Ot(void 0,[e],void 0,function*({router:e}){var t;try{yield Object(y["e"])().load(),Re["i"]({email:null===(t=y["d"].authenticatedUser)||void 0===t?void 0:t.emailAddress}),e.beforeEach((t,o,i)=>Ot(void 0,void 0,void 0,function*(){var a,r,s,l;const{isAuthenticated:d}=y["d"],c=y["d"].authenticatedUser,u=(null===c||void 0===c?void 0:c.reviewerRole)!==b["s"].USER.ROLES.REVIEWER.UNSET;if(d&&(null===c||void 0===c?void 0:c.id)){const e=yield gt(c.id);
575if(e.blocked)return yield Object(y["e"])().logoutRequest(),ht(),n["a"].create({type:"negative",message:"Error 417: Please contact our support team for assistance",timeout:5e3}),i("/login"),!1}if(o.query.forward&&(t.query.forward=o.query.forward),t.matched.some(e=>e.meta.requiresAuth)){if(!0!==d)return Object(y["e"])().authRequired({forwardUrl:t.fullPath,router:e});const r=y["d"].mimicUser,n=r||c,s=!!(null===(a=null===c||void 0===c?void 0:c.userEmails)||void 0===a?void 0:a.some(e=>e.status===b["s"].USER.EMAILS.STATUS.VERIFIED));if(!Object(b["T"])(c.emailAddress)||!s)return i("/sign-up/verify-email"),!1;if(!u)return!0!==(null===c||void 0===c?void 0:c.phoneVerified)&&(null===c||void 0===c?void 0:c.requiresPhoneVerification)?(i("/sign-up/verify-phone"),!1):(i("/sign-up/select-role"),!1);let l=!0;for(const e of t.matched)void 0!==e.meta.role&&(l=l&&n.permissionQuery.can(e.meta.role.action,e.name||"",b["s"].USER.ROLES.TYPE.REVIEWER));l?i():(Object(y["e"])().invalid(),i(!o.matched.length&&"/"))}else{if("login"===(null===(s=null===(r=t.meta)||void 0===r?void 0:r.metaInstructions)||void 0===s?void 0:s.module)&&d){const e=!!(null===(l=null===c||void 0===c?void 0:c.userEmails)||void 0===l?void 0:l.some(e=>e.status===b["s"].USER.EMAILS.STATUS.VERIFIED));return e?u?i("/review-copies"):!0!==(null===c||void 0===c?void 0:c.phoneVerified)&&(null===c||void 0===c?void 0:c.requiresPhoneVerification)?i("/sign-up/verify-phone"):i("/sign-up/select-role"):i("/sign-up/verify-email"),!1}if(d&&!u&&"/sign-up/select-role"!==t.fullPath&&-1===t.fullPath.indexOf("/sign-up/verify-phone")&&-1===o.fullPath.indexOf("login")&&-1===o.fullPath.indexOf("sign-up")&&"/review-copies"!==t.fullPath&&-1===t.fullPath.indexOf("/author/view")&&-1===t.fullPath.indexOf("/review-copy/view")&&-1===t.fullPath.indexOf("/book/view"))return i("/sign-up/select-role"),!1;i()}}))}catch(o){}})),jt=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},It=Object(me["boot"])(e=>jt(void 0,[e],void 0,function*({router:e}){e.beforeEach((e,t,o)=>{o(e=>{e.$router&&(e.$router.referer=t)})}),e.beforeResolve((t,o,i)=>{e&&(e.referer=o),i()})})),At=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("q-dialog",{ref:"thisDialog",attrs:{"data-cy":e.error?"errorMessageDialog":"successMessageDialog","content-class":e.isContentScrolled?"bs-message-dialog bs-message-dialog__top":"bs-message-dialog",seamless:""},on:{"before-show":e.onBeforeShow,hide:e.onDialogHide}},[t("div",{staticClass:"bs-m-d-content",class:{"bs-m-d-content__error":e.error,"bs-m-d-content__success":!e.error}},[t("div",{staticClass:"bs-m-d-icon flex justify-center items-center",class:{"bg-bs-r":e.error,"bg-bs-g":!e.error}},[e.error?[t("div",{staticClass:"full-width flex justify-center"},[t("q-icon",{attrs:{name:"app:lightning-solid",size:".75rem"}})],1),t("div",{staticClass:"flex"},[t("q-icon",{staticClass:"on-left-xs",attrs:{name:"app:plug-female",size:"1.25rem"}}),t("q-icon",{attrs:{name:"app:plug-male",size:"1.25rem"}})],1),t("div",{staticClass:"full-width flex justify-center"},[t("q-icon",{attrs:{name:"app:lightning-solid",size:".75rem"}})],1)]:t("q-icon",{staticClass:"text-white",attrs:{name:"app:check-thin",size:"1.5rem"}})],2),t("div",{staticClass:"bs-m-d-message column"},[t("h2",{staticClass:"bs-h4--mobile"},[e._v(e._s(e.heading))]),t("p",[e._v(e._s(e.message))])]),t("bs-btn",{staticClass:"bs-message-dialog__close",attrs:{color:"transparent","text-color":"bs-grey-m","icon-only":""},on:{click:e.hide}},[t("span",{staticClass:"sr-only"},[e._v(e._s(e.$t("system.actions.closeDialog")))]),t("q-icon",{attrs:{name:"app:times-circle",size:"1rem"}})],1)],1)])},Rt=[],kt=o("0bd8"),St=Object(i["defineComponent"])({name:"ShowMessageDialog",props:{error:{type:Boolean,default:!1},heading:{type:String,default:void 0},message:{type:String,default:void 0}},setup(e,{emit:t}){const o=Object(kt["a"])(),a=Object(U["a"])({vm:o,dialogRef:"thisDialog",emit:t}),r=Object(i["ref"])(!1),n=()=>{const e=parseFloat(document.body.style.top);r.value=e<-72};return Object(i["onMounted"])(()=>{setTimeout(()=>a.hide(),1e4)}),Object.assign(Object.assign({},a),{isContentScrolled:r,onBeforeShow:n})}}),Tt=St,Ft=(o("dfc8"),o("b189")),Ct=Object(q["a"])(Tt,At,Rt,!1,null,null,null),Et=Ct.exports;X()(Ct,"components",{QDialog:V["a"],QIcon:Ft["a"]});var Dt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("q-dialog",{ref:"confirmDialog",attrs:{"content-class":{"bs-modal":!0,[e.additionalContentCssClass]:!!e.additionalContentCssClass},position:e.$q.screen.gt.sm?void 0:"bottom",maximized:e.$q.screen.xs,persistent:""},on:{hide:e.onDialogHide}},[t("div",{staticClass:"bs-confirm-dialog"},[t("div",{staticClass:"bs-modal__header"},[t("h2",[e._v(e._s(e.heading))]),t("bs-btn",{staticClass:"bs-modal__close",attrs:{color:"transparent","text-color":"bs-g","icon-only":""},on:{click:e.hide}},[t("span",{staticClass:"sr-only"},[e._v(e._s(e.$t("system.actions.closeDialog")))]),t("q-icon",{attrs:{name:"app:times-circle",size:"1rem"}})],1)],1),e.bodyHtml?t("p",{domProps:{innerHTML:e._s(e.bodyHtml)}}
575):e._e(),e.modelName?t("div",{staticClass:"full-width text-center"},[t("q-avatar",{staticClass:"on-left",attrs:{size:"3rem"}},[e.modelImage?t("bs-img",{attrs:{"placeholder-src":"/cdn/no-image.png",ratio:"1",src:e.modelImage,contain:""}}):e._e()],1),t("strong",[e._v(e._s(e.modelName))])],1):e._e(),t("div",{staticClass:"bs-modal__footer"},[t("bs-btn",{attrs:{warning:!e.invertColors,large:"",secondary:!e.invertColors},on:{click:e.no}},[e._v("\n "+e._s(e.noLabel)+"\n ")]),t("bs-btn",{attrs:{warning:e.invertColors,large:"",secondary:""},on:{click:e.yes}},[e._v("\n "+e._s(e.yesLabel)+"\n ")])],1)])])},Pt=[];const $t={heading:{type:String,default:""},bodyHtml:{type:String,default:""},yesText:{type:String,default:""},noText:{type:String,default:""},invertColors:{type:Boolean,default:!1},modelName:{type:String,default:""},modelImage:{type:String,default:""},additionalContentCssClass:{type:String,default:""}};function Nt(e,t){const o=Object(kt["a"])(),a=Object(U["a"])({vm:o,dialogRef:"confirmDialog",emit:t});return Object.assign(Object.assign({},a),{yes:a.confirm,no:a.cancel,yesLabel:Object(i["computed"])(()=>e.yesText||o.$tc("system.actions.yes")),noLabel:Object(i["computed"])(()=>e.noText||o.$tc("system.actions.no"))})}var Lt=Object(i["defineComponent"])({name:"ConfirmDialog",props:$t,setup(e,{emit:t}){return Object.assign({},Nt(e,t))}}),Bt=Lt,xt=(o("3ca9"),o("840e")),_t=Object(q["a"])(Bt,Dt,Pt,!1,null,null,null),Ut=_t.exports;X()(_t,"components",{QDialog:V["a"],QIcon:Ft["a"],QAvatar:xt["a"]});var Mt=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},Gt=Object(me["boot"])(e=>Mt(void 0,[e],void 0,function*({Vue:e}){e.use(y["a"]),e.prototype.$bs={dialogComponent:Et,confirmDialog:Ut}})),qt=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},Vt=Object(me["boot"])(e=>qt(void 0,[e],void 0,function*({Vue:e}){e.directive("can",Object(y["i"])(b["s"].USER.ROLES.TYPE.REVIEWER))}));function Wt(e,t){const o=e?e.matched?e:t.resolve(e).route:t.currentRoute;if(!o)return[];const i=o.matched.filter(e=>void 0!==e.components);return 0===i.length?[]:Array.prototype.concat.apply([],i.map(e=>Object.keys(e.components).map(t=>{const o=e.components[t];return{path:e.path,c:o.options||o}})))}function Yt(e,t,o){e.beforeResolve((i,a,r)=>{const n=window.location.href.replace(window.location.origin,""),s=Wt(i,e),l=Wt(a,e);let d=!1;const c=s.filter((e,t)=>d||(d=!l[t]||l[t].c!==e.c||e.path.indexOf("/:")>-1)).filter(e=>e.c&&"function"===typeof e.c.preFetch).map(e=>e.c.preFetch);if(0===c.length)return r();let u=!1;const p=e=>{u=!0,r(e)},b=()=>{!1===u&&r()};c.reduce((e,r)=>e.then(()=>!1===u&&r({store:t,currentRoute:i,previousRoute:a,redirect:p,urlPath:n,publicPath:o})),Promise.resolve()).then(b).catch(e=>{console.error(e),b()})})}const Ht="/reviewer/",Kt=/\/\//,zt=e=>(Ht+e).replace(Kt,"/");async function Xt(){const{app:e,store:t,router:o}=await ve();window.__INITIAL_STATE__&&t.replaceState(window.__INITIAL_STATE__);let a=!1;const r=e=>{a=!0;const t=Object(e)===e?zt(o.resolve(e).route.fullPath):e;window.location.href=t},n=window.location.href.replace(window.location.origin,""),s=[fe,ge,Ve,lt,ut,void 0,wt,It,Gt,Vt];for(let c=0;!1===a&&c<s.length;c++)if("function"===typeof s[c])try{await s[c]({app:e,router:o,store:t,Vue:i["default"],ssrContext:null,redirect:r,urlPath:n,publicPath:Ht})}catch(d){return d&&d.url?void(window.location.href=d.url):void console.error("[Quasar] boot error:",d)}if(!0===a)return;const l=new i["default"](e);o.onReady(()=>{Yt(o,t,Ht),l.$mount("#q-app")})}Xt()},3059:function(e,t,o){"use strict";o.d(t,"b",function(){return a}),o.d(t,"c",function(){return r}),o.d(t,"e",function(){return n}),o.d(t,"d",function(){return s}),o.d(t,"a",function(){return l});var i=o("23a9");const a=e=>({message:e}),r=e=>a(Object(i["a"])().tc("system.errors."+e)),n=e=>!!e&&void 0!==e.response&&400===e.response.status,s=e=>!!e&&void 0!==e.response&&(403===e.response.status||401===e.response.status),l=e=>{const t=Object.keys(e)[0],o=e[t];return t.indexOf(" ")>-1?a(o):r(o)}},"382d":function(e,t,o){var i={"./de-DE.json":["e38d",87],"./es-ES.json":["1120",88],"./fr-FR.json":["64ed",89],"./it-IT.json":["e62b",90],"./pt-BR.json":["fea0",91]};function a(e){if(!o.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return o.e(t[1]).then(function(){return o(a)})}a.keys=function(){return Object.keys(i)},a.id="382d",e.exports=a},"3be5":function(e,t,o){var i={"./de-DE.json":["2727",82],"./es-ES.json":["961d",83],"./fr-FR.json":["3354",84],"./it-IT.json":["6d2f",85],"./pt-BR.json":["c823",86]};function a(e){if(!o.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return o.e(t[1]).then(function(){return o(a)})}a.keys=function(){return Object.keys(i)},a.id="3be5",e.exports=a},"3ca9":function(e,t,o){"use strict";o("5d50")},"3d04":function(e){e.exports=JSON.parse('{"modules":{"authors":{"actions":{"viewAuthor":"View Author","backToAuthors":"Back to Author List"},"labels":{"authors":"Authors","viewAuthor":"View Author","fromXReviews":"from {0} reviews received on Booksprout","followXOn":"Follow {0} on","xNoArcs":"{0} doesn\'t have any review copies available","xNoOtherArcs":"{0} doesn\'t have any other review copies available","xNoBooks":"{0} doesn\'t have any published books","xPublishedBooks":"{0}\'s published books","publishedOnX":"Released {date}","publishingOnX":"Releasing on {date}","xActiveArcs":"{0} has other review copies available","xPastArcs":"{0} has previous review copies","reviewByX":"Review by {date}","endedOnX":"Ended on {date}","dueToday":"Review due today","dueYesterday":"Review due yesterday","xDaysOverdue":"{0}
575 days overdue","delayedGracePeriod":"Delayed review grace period","noLongerFollowingX":"You are no longer following {0}","stoppedFollowingMessage":"We will no longer send you any alerts when they have a new review copies available.","oldBooksproutLink":"You\'ve followed a link from the old version of Booksprout.","oldBooksproutLinkMessage":"You can unfollow this author below if you no longer wish to hear about their new review copies, or if you\'d like to turn off all new review copies email alerts you can do so in your {settingsLink}.","emailSettings":"email settings"},"formFields":{"search":{"label":"Search Authors","placeholder":"Search for an author by name","noResults":"We couldn\'t find any authors by the name of <strong>\\"{0}\\"</strong>"}}},"books":{"labels":{"buyOnX":"Buy on {0}","audienceTypes":{"general":"General","teen":"Tame","mature":"Mature","explicit":"Explicit","tame":"Tame"},"arrivedInError":"Oops. You have arrived here in error. Please use the navigation to find review copies."}},"arcs":{"buttons":{"back":"Back","review":"Review","readSample":"Read Sample","downloadReviewCopy":"Download Review Copy","agree":"I agree","disagree":"I don\'t agree","findAnotherArc":"Find another review copy","tryAgain":"Try Again","selectAnotherWay":"Select another way to get this review copy","selectAnotherEmail":"Click here to select another","addNew":"Add a new one","download":"Download","downloadAgain":"Download Again","iCanReviewOnX":"I can review on {0}","buy":"Buy"},"save":{"save":"Save","saved":"Saved","saveForLater":"Save for later","savedForLater":"Saved for later"},"labels":{"arcs":"Discover Great Books To Review","arcsSubtitle":"Check back daily for the latest review copies!","arcsGuestTitle":"Download Free Review Copies From Indie Authors","arcsGuestSubtitle":"Browse thousands of upcoming releases from our indie authors. Just claim an advance review copy (ARC), read it early, and share your honest feedback!","findArcs":"Find Review Copies","filterArcs":"Filters","singleArc":"Review Copy","reviewBy":"Review by","noteFromTheAuthor":"Note from the Author","mustReviewOn":"Must review on:","reviewOnAtLeastOne":"Optionally review on: | Review on at least 1: | Review on at least {n}:","filesAvailable":"File(s) available:","mustReviewAudioDesc":"Youâll be asked to review on the store you download the audiobook from.","downloadCodeAvailable":"Download codes available:","xCodesLeft":"{n} codes left | {n} code left | {n} codes left","messageTheAuthor":"Message the author","messageTheTeamOwner":"Message the team owner","moreAboutTheAuthor":"More about the Author","authorHasOtherActiveArcs":"{0} has other review copies available","reviewCopyDetails":"Review Copy Details","exclusive":"Exclusive","bookPreview":"Book Preview","reviews":"Reviews","yourReview":"Your Review","continueYourReview":"Continue Your Review","thanksMessage":"Thanks for helping make {0}\'s launch a success!","arcType":{"title":"Is this a review campaign for an audiobook or ebook?","options":{"eBook":"eBook","audioBook":"Audiobook"}},"cancellationSuccess":"Your review promise has been withdrawn.","whichStoreClaimAudioDownload":"Which store would you like to claim a download code for?","whichStoreClaimAudioDownloadDesc":"Keep in mind that whichever store you claim a code for is the store you will be asked to review this audiobook on.","reviewIn":"I can review in","reviewOn":"I can review on","allArcs":"You\'re seeing all review copies.","allArcsMessage":"To get more relevant results, edit your settings to choose where you want to review books.","availableOnX":"Available on {0}","xPages":"{count} page | {count} pages","dontSeeEmail":"Don\'t see your email address?","groupByStatus":{"authorAndTeam":"My Authors & Teams","all":"All","saved":"Saved"},"arcHostedBy":"Review copy hosted by","privateArcMessage":"This ARC is for members of a private ARC team only. Please contact the team owner for how to join","formatAvailability":{"downloadOnly":"Download only","emailAndDownload":"Send via email & download"},"overdueDays":{"title":"Overdue Days","good":{"title":"Youâre all good"},"toImprove":{"title":"Near the limit"},"low":{"title":"Too many overdue"}
575,"role":{"new":{"tooltip":"Reviews that are due for more than two days count towards this total. Complete one review to have access to more overdue days and claim more review copies."},"valued":{"tooltip":"Reviews that are due for more than two days count towards this total. If you have too many overdue days, youâll need to complete some overdue reviews before you can claim more review copies. If you need more overdue days, you can {topReviewerLinkText}.","topReviewerLinkText":"apply to become a top reviewer"},"top":{"tooltip":"Reviews that are due for more than two days count towards this total. If you have too many overdue days, youâll need to complete some overdue reviews before you can claim more review copies."}}},"displayResultsAsList":"Display results as list","displayResultsAsGrid":"Display results as grid","foundXReviewCopies":"We found {count} review copies","foundXReviewCopiesForY":"We found {count} review copies for {search}","tutorialForXOpensNewWindow":"Tutorial for {0} (opens in new window/tab)","claimAudiobook":"Claim audiobook","xReview":"{0} review"},"formFields":{"search":{"placeholder":"Search by title, team, author or series","listingPlaceholder":"Search by title, author, series, or genre","noResults":"We couldn\'t find any review copy by the name of <strong>\\"{0}\\"</strong>","noResultsGeneric":"We couldn\'t find any review copies"}},"filters":{"labels":{"categories":"Categories","authors":"Authors","formats":"Formats","language":"Language","releaseDate":"Release Date","availability":"Availability","audience":"Audience","length":"Length","timeToReview":"Time to Review","addNewCategories":"Add new categories","loginToSeeMore":"{loginLink} to access all options","withCount":"{label} ({selected}/{total})"},"formFields":{"allAuthors":"All authors","fourStarsPlusAuthors":"Authors I\'ve given 4+ stars to","threeStarsPlusAuthors":"Authors I\'ve given 3+ stars to","notReadAuthors":"Authors I\'ve not read yet","unreleased":"Unreleased (ARC)","alreadyReleased":"Already Released","participationTypes":{"topReviewers":{"title":"Exclusive copies","tooltip":"These review copies are only available to Top Reviewers."},"public":{"title":"Regular copies","tooltip":"These review copies are available to all Booksprout reviewers."}},"releaseDateTypes":{"unreleased":{"title":"Unreleased (ARC)"},"released":{"title":"Already released"}},"generalAudience":{"title":"General","tooltip":"Nothing sexual, no sexual references, no violence."},"matureAudience":{"title":"Mature","tooltip":"May contain few non-detailed \\"onscreen\\" sex scenes that are not long or graphic. May contain some violence or sexual violence that is not overly graphic."},"tameAudience":{"title":"Tame","tooltip":"May contain implied intimacy, closed-door, or fade-out. Can contain mild, nonsexual violence."},"explicitAudience":{"title":"Explicit","tooltip":"May contain numerous or highly detailed sex scenes or erotica. May contain gruesome or extended violence."},"format":{"ebook":"eBooks","audioBook":"Audiobooks"},"sortBy":{"new":"New","recommended":"Recommended"}},"actions":{"addCategories":"Add Categories","reviewersRankLink":"Check your reviewer rank."},"reviewInDays":{"append":"days | day | days"},"genre":{"any":"Any genre"},"wordCount":{"short":"Short Story","novella":"Novella","novel":"Novel"},"lengthRange":{"from":"From","to":"to","pages":"pages"},"audienceType":{"any":"Any audience","general":"General","teen":"Tame","mature":"Mature","explicit":"Explicit"},"popularTags":{"title":"Popular","none":"No popular tags found"},"arcType":{"any":"Any format","ebook":"eBooks","audiobook":"Audiobooks"}},"claims":{"buttons":{"showArcs":"Show me review copies"},"labels":{"srReviewCopy":"Your Review Copy","cancelPromise":"Withdraw Review Promise"},"agreement":{"labels":{"requirements":"Before you claim a review copy of this book you need to <strong>agree to the following requirements</strong>","reviewBy":"I will review this book by","willReview":"I will review this book on all of these stores:","willReviewOptional":"I will review this book on at least {0} of the following stores:","mustAgree":"You need to agree with all the requirements in order to claim a review copy.","willNotShare":"I will not share my copy of this book in any way. I will also not upload the book or its details to AI for any reason.","cantAgreeToAll":"If you can\'t agree to everything the author requires, ","srAgreement":"Agreement"},"buttons":{"findSuitableArc":"let\'s find you a more suitable review copy"}},"reviewCopyOf":"Claiming a review copy of:","findSuitableArc":"Okay, let\'s find a review copy that suits you better!","findSuitableArcSubTitle":"Which stores can you review on?","congratsTitle":"Congratulations!","congratsMessage":"You\'ve been approved to receive a copy!","audiobook":{"copyCode":"Copy your {site} download code then redeem it:","copyCodeLabel":"{site} code","codeCopied":"{site} code has been copied to the clipboard","actions":{"redeem":"Redeem on {site}"},"kobo":{"step1":"Open the book on Kobo.","step2":"Add the book to your cart.","step3":"Go to the checkout page.","step4":"On the checkout page, enter the code under \\"Promo Code\\".","step5":"The book should now be free. Click \\"Save and Continue\\".","step6":"Review that the audiobook is free and click on \\"Complete Purchase\\".","step7":"Open the audiobook on the Kobo App."}},"ebook":{"labels":{"srSelectAWay":"Select a way to download ebook"},"selectAWay":"How would you like to get your review copy?","epubExplanationText":"(Best for Kindle and most e-reader apps)","download":{"labels":{"srDownload":"Download the review copy"},"sendToKindle":"Send to Kindle","readEpub":"Read on Booksprout","email":"Email me a copy","emailUnavailable":"File too large for email. Please use an alternate method.","downloadCopy":"Download copy","whichFileType":"Which filetype would you like to download?","downloadCompleteBody":"Saved to your Downloads folder","downloadChannelName":"Review copy downloads","downloadNotAvailableHere":"This device can\'t save downloads yet. Select another way to get this review copy."},"kindle":{"labels":{"ourEmail":"Once you receive the email from us, youâll just need to forward it to your Kindle email address. Please make sure that the book file is still attached when forwarding.","weWillUseThisEmail":"We\'ll send it to this kindle address","ourEmailChanged":"<strong>Note:</strong> Amazon has removed our ability to send books directly to your Kindle. Instead, weâll send you an email that you will then need to forward to your Kindle email address.","chooseEmail":"Choose which email address we should send the book file to."},"actions":{"send":"Send email to forward"}},"email":{"weWillSendToThisAddress":"We\'ll send the file to this email address","whichFileType":"Which filetype would you like us to send?"}},"confirmation":{"writeReviewMessage":"When you\'re ready to write your review, you\'ll find it in {yourArcsSlot}!","needAudibleCode":"Need your Audible code again?","sentToEmail":"Your review copy has been sent to {0}","sentToDevice":"Your review copy will download to this device shortly","waitTime":"Please allow up to 15 minutes for it to show up","havingTrouble":"Having trouble getting your review copy?","labels":{"srConfirmation":"Claim confirmation","lookingForAnother":"Looking for another book to review? Weâve got plenty more where this one came from."}},"cancel":{"labels":{"cancelPromise":"Withdraw review promise for:","letXKnow":"Let {0} know why you can\'t review their book","reason":"Pick a reason you can\'t review","otherDetails":"Any other details you\'d like to share?","anythingToShare":"Anything you\'d like to share?"},"buttons":{"cancelPromise":"Withdraw review promise"}},"issues":{"labels":{"requiredReviewsCount":"Complete 30 reviews","requiredReviewRate":"Maintain an on-time review rate of 70% for 30 days","highQualityReviews":"Write high quality reviews that follow our guidelines (Manual approval needed)","applyAgainInXDays":"You can apply to be a Top Reviewer again in {0} days","requiredReviews":"Required reviews","optionalReviews":"Optional reviews (must review on {0}
575)","topReviewerAppReceived":"Your Top Reviewer application has been received!","topReviewerAppDesc":"Thanks for applying to become a Booksprout Top Reviewer. We will manually review your account to ensure that it meets our criteria. This usually takes a few days."},"actions":{"selectDifferentArc":"Select a different due review copy to review","topReviewerProgram":"Top Reviewer Program","findAnotherArc":"Find a different book to review","updateStores":"Update the stores that you can review on","acceptsSeries":"Yes, I have read these books and would like to continue the series"},"reasons":{"permanent":": This is a permanent restriction","reasonHeading":"The reason given is:","downloadLock":{"title":"Your account has been restricted","subTitle":"You cannot claim any new review copies until {restrictionEndDate}.","messageTitle":"The reason given is:","suggestionTitle":"Are you ready to review this book?","suggestionSubTitle":"Completing more reviews will help improve your reviewer score so that this doesn\'t happen again."},"tooManyDueReviews":{"title":"Letâs complete some due reviews first","subTitle":"Looks like youâve got too many outstanding due reviews. Letâs clear some of those out first before claiming more review copies.","suggestionTitle":"Are you able to review this one?","suggestionSubTitle":""},"arcDueForTooLong":{"title":"Letâs complete your overdue review first","subTitle":"Looks like youâve got a review thatâs been due for over two weeks. Letâs finish that one up first before claiming any more review copies.","suggestionTitle":"Can you complete this overdue review?","suggestionSubTitle":""},"weeklyClaimLimitReached":{"title":"Your weekly limit has been reached","subTitle_valued":"Looks like youâve claimed all the review copies you can this week. Want to claim more? Apply to our {topReviewerDocLink} and get 50 weekly downloads!","subTitle_new":"Looks like youâve claimed all the review copies you can this week. Want to claim more? Hit the goal below for an automatic upgrade!","subTitle_top":"Looks like youâve claimed all 50 review copies you can this week. Come back next week to claim more!","messageTitle":"The reason given is:","suggestionTitle":"In the meantime, can you review this one?","suggestionSubTitle":""},"topReviewersOnly":{"title":"This review copy is exclusive to Booksprout\'s Top Reviewers","subTitle":"Want to participate claim review copies like this? Apply to be a Top Reviewer!","suggestionTitle":"In the meantime, can you review this one?","suggestionSubTitle":""},"privateArc":{"title":"This review copy is for members of a private review team","subTitle":"The creator of this review opportunity has restricted it to their private review team."},"seriesReadingRequired":{"title":"This review copy requires previous reading","subTitle":"This book is part of a series and requires that youâve read the rest of the series first. Check the list below and make sure that youâre up to date on this series before proceeding.","suggestionTitle":"Have you read these books?","suggestionSubTitle":""},"outstandingReviewForThisTeam":{"title":"Thereâs an outstanding review blocking the way","subTitle":"You have an outstanding review due for the team hosting this review copy. Let\'s complete it before claiming this one.","suggestionTitle":"Do you want to continue your outstanding review for this team?","suggestionSubTitle":""},"storeRequirementsNotMet":{"title":"This review copy has special requirements","subTitle":"The creator of this review copy has required a review for a store you donât review on. They require the following reviews:","suggestionTitle":"Do you want to continue your outstanding review for this team?","suggestionSubTitle":""},"alreadyReviewed":{"title":"Youâve already reviewed this book","subTitle":"Our records indicate that youâve already claimed a review copy of this book. Letâs leave it for others to enjoy!","suggestionTitle":"You can check your review here:","suggestionSubTitle":""},"noCopiesLeft":{"title":"Thereâs no more review copies left!","subTitle":"The creator of this book has limited the number of review copies available. Unfortunately, theyâve already all been claimed.","suggestionTitle":"Never miss another review copy by this author. Get alerts as soon as they publish another one!","suggestionSubTitle":""},"topReviewerApplied":{"suggestionTitle":"While you wait, do you want to review this review copy?","suggestionSubTitle":""},"notPaidAccount":{"title":"We\'re all out of copies!","subTitle":"The creator of this review opportunity has limited the number of review copies available. Unfortunately, theyâve already all been claimed.","suggestionTitle":"Never miss another review copy by this author. Get alerts as soon as they create another one!"},"tooManyWithdrawals":{"title":"You can\'t claim this<br/>
575review copy right now","subTitle":"Booksprout is all about writing reviews on great books. We\'ve noticed that you\'ve downloaded a few review copies already, but haven\'t yet completed a review. <br /><br />To ensure the integrity of our reviewer community, we ask that you complete some reviews before you download any more review copies. <strong>Please go to your withdrawn review copies or your past due review copies and complete some reviews.</strong><br /><br/>If there\'s any reason you haven\'t been able to do this, please get in touch with our support team at <a href=\'mailto:[email protected]\'><span class=\'text-bs-g\'>[email protected]</span></a> - we\'re here to help!","suggestionTitle":"Are you ready to review this book?","suggestionSubTitle":"Completing more reviews will help improve your reviewer score so that this doesn\'t happen again."}}}},"reviews":{"labels":{"leavingReviewForAuthor":"Leaving a review for {0}","reviewerName":"Public Reviewer Name","chooseName":"Choose a name that you would like to display publicly alongside your reviews on Booksprout","selectRating":"Select your star rating","rating1":"This book wasn\'t for me at all","rating2":"I didn\'t like it","rating3":"It was okay","rating4":"I liked it","rating5":"I loved it!","xStarsRating":"{n} star - {rating} | {n} stars - {rating}","selectedRatingIsXStars":"Selected rating is {n} star | Selected rating is {n} stars","review":"Review","reviewTitle":"Review Title","writeReview":"Your public review for this book. {reviewTipsLink}","disclaimer":"Disclaimer","feedbackThoughts":"This feedback will not be displayed publicly. Only the author will be able to see it.","yourRating":"Your rating","copyReview":"Copy your review","copyReviewSub":"Copy your review below","disclosure":"In order to keep Booksprout free for reviewers we use affiliate links, {linkSlot} to see our full affiliate link disclosure.","reviewOnX":"Review on {0}","isReviewCompleteOnX":"Have you completed the review on {0}?","cannotReviewYet":"It\'s too early to do this. Please check back later!","whereCanReview":"Where are you able to review books?","betterRecommendations":"This will help us provide better review copy recommendations","reviewLinkNoteForX":"Please copy and paste the direct URL of your review for this book on {0}","markAsReadOnStoryGraph":"Make sure to mark the book as \\"Read\\" to be able to leave a review."},"buttons":{"needToCancel":"Need to withdraw your promise to review?","repromiseReview":"Re-promise to review","reviewOnX":"Review on {0}"},"formFields":{"reviewPlaceholder":"Did you think it was charming, suspenseful, a page turner? Were the characters romantic, heroic, complex? Who would you recommend this book to? Someone looking for a sweet romance or a page-turning thriller?","reviewTitlePlaceholder":"Insert review title here","disclaimer":"I received a free copy of this book via Booksprout in exchange for an honest review.","feedback":"Find any typos? Anything you\'d like to suggest?","followX":"Follow {0} to hear about their next review copies"},"selectStore":{"labels":{"reviewComplete":"Review complete","reviewCompleteMessage":"Your review is complete! You can update any review below or continue reviewing on optional stores.","reviewIncomplete":"Review incomplete","reviewIncompleteMessage":"Your review is incomplete.","reviewIncompleteXNextMessage":"Review on {0}","reviewIncompleteXNextMessageAfter":"next, or select a store below to complete the review process there.","reviewDelayed":"Review delayed","reviewDelayedMessage":"Weâre just waiting on your {0} review. Once itâs live on the {0} website, make sure to come back and complete it here!","reviewPromiseCancelled":"Review promise withdrawn","reviewPromiseCancelledMessage":"You have withdrawn your promise to review this book. If youâve changed your mind, continue reviewing below!","reviewPendingAuthorAction":"Pending author action","reviewPendingAuthorActionMessage":"You\'ve done all you can for now. We\'re just waiting on the author to finish publishing their book and to supply the links to it on all stores. We\'ll let you know
575when it\'s time to come back and finish your review!","reviewPendingAuthorActionMessageBookNotReleased":"You\'ve done all you can for now. We\'re waiting for the book to be released on {releaseDate} before you can complete your review. We\'ll let you know when you can finish your review!","BooksproutReview":"Your Booksprout review:","requiredReviews":"Your required reviews (must review on all):","optionalReviews":"Your optional reviews (must review on {0} more):"}},"amazonStore":{"labels":{"reviewOnAmazonSub":"Click on the button to review on Amazon.com, or select your preferred store from the dropdown","pasteXReviewLink":"Paste {0} review link","invalidLink":"Invalid review link.","whyXDeclined":"Has {0} rejected your review?","explanationText":"If Amazon has rejected your review from their website, you can ask them to manually approve it by sending them an email at {appealEmail}","lastResort":"Use this form only as a last resort. If we see that too many of your reviews are being rejected by Amazon we may prevent you from claiming future review copies on Booksprout."},"buttons":{"xReviewNotPosted":"{0} hasn\'t posted my review yet.","xReviewNotAccepted":"{0} won\'t accept my review","submit":"Submit"},"formFields":{"whyXDeclinedPlaceholder":"Tell us why {0} wonât accept your review","whyDeclinedValidation":"Please provide a reason","confirmContactedAmazon":"I have contacted Amazon and they refuse to accept my review","whyRejected":"Why has Amazon rejected your review?"},"tooltips":{"cannotMarkAsDelayed":"You can only delay an Amazon review for 30 days. Since you are outside of that window, it\'s not possible to mark this review as delayed anymore."}},"smashwordsStore":{"labels":{"copyCoupon":"Copy Coupon","copyCouponSub":"Copy the coupon code to download the book","downloadBook":"Download book","downloadBookSub":"Click on the button below to download","reviewOnSmashwordsSub":"Click on the button to review"},"buttons":{"downloadBook":"Download book"}},"appleBooksStore":{"labels":{"copyCoupon":"Copy Coupon","copyCouponSub":"Copy the coupon code to download the book","downloadBook":"Download book","downloadBookHowDoI":"(How do I do it?)","downloadBookSub":"Click on the button to download the book on Apple Books.","reviewOnAppleBooksSub":"Click on the button to review","enterClaimCode":"Enter the claim code","codeTermsTitle":"Code Terms & Expiration Date","codeTermsWithExpiry":"Code expires on {date} and is redeemable only on the iTunes Store for United States. Requires an iTunes account, subject to prior acceptance of license and usage terms.","codeTerms":"This code is redeemable only on the iTunes Store for United States. Requires an iTunes account, subject to prior acceptance of license and usage terms.","codeTermsRest":"Compatible software and hardware, and internet access (fees may apply) required. Not for resale. Full terms apply; see www.apple.com/legal/internet-services/itunes/us/terms.html. For more information, see www.apple.com/support/.","codeTermsProvidedBy":"This eBook is provided to you by {author}"},"buttons":{"downloadBook":"Download book","openAppleBooks":"OPEN APPLE BOOKS","claimCode":"Claim code","claimCodeDone":"Claimed"}},"appleBooksDownloadDialog":{"labels":{"title":"How do I download on Apple Books?"},"steps":{"step1":"Within Apple Books, go to your account.","step2":"Tap Redeem Gift Card or Code.","step3":"Tap \\"You can also enter your code manually.\\"","step4":"Enter the promo code and tap Redeem found in the top right corner of your screen."},"actions":{"openAppleBooks":"OPEN APPLE BOOKS"}},"noLinksStore":{"labels":{"reviewOnXSub":"Click on the button to review"}},"confirmation":{"reviewComplete":"Your review is complete!","followX":"Follow {0}","getNotified":"Get notified whenever they publish review copies on Booksprout.","findAnotherArc":"Find another review copy","readyToReview":"Ready to review another book? Letâs go find one!"},"actions":{"doLater":"I\'ll do this later","backToStores":"Back to stores to review on","reviewTipsLink":"See our tips on writing a great review."}},"yourArcs":{"errors":{"countsUnavailable":"We could not load the counts for your review copies just now. Refresh the page to try again."},"labels":{"leaveReviewForX":"Leave a review for {0}","finishReviewForX":"Finish your review for {0}","xReviewsDue":"You have {0} reviews due soon!","groupByStatus":{"active":"Active","due":"Due","delayedRejected":"Delayed / Rejected","pendingPublishing":"Pending Publishing","complete":"Complete","withdrawn":"Withdrawn"}},"buttons":{"cantReview":"Can\'t review?"},"formFields":{"sortByDueDateDesc":"Sort by due date (newest first)","sortByDueDateAsc":"Sort by due date (oldest first)","sortByDateClaimedDesc":"Sort by date claimed (nearest first)","sortByDateClaimedAsc":"Sort by date claimed (furthest first)","sortByRecentActivity":"Sort by my recent activity"}},"actions":{"download":"Download","viewCancellation":"View Withdrawal","read":"Read","listen":"Listen","startReview":"Start Review","continueReview":"Continue Review","viewReview":"View Review","searchAndFilters":"Search & Filters","advancedFilters":"Advanced Filters","closeAdvancedFilters":"Close Advanced Filters","backToArc":"Back to review copy details","backToArcs":"Find a different book to review","backToYourArcs":"Back to My review copies","followTeam":"Follow Team","unfollowTeam":"Unfollow Team","viewTeam":"View Team"}},"arcTeams":{"labels":{"yourTeams":"My Teams","xNoXArcs":"{0} doesn\'t have any {1} review copies","member":"Member","vip":"VIP","pending":"Pending approval","invited":"Invited by author","viewTeam":"View Team","teamDescHeading":"Team Description","xTeamMembers":"{count} Member | {count} Members","xFollowers":"{count} Follower | {count} Followers","confirmCancelApplication":"Are you sure you want to cancel your application to join this team?","confirmLeaveTeam":"Are you sure you want to leave this team?","joinTeam":"Join team","joinTeamDesc":"Build a relationship with the team leader and get special perks!"},"formFields":{"filterStatus":{"options":{"all":"All","member":"Member","invited":"Invited by Author","pending":"Pending Approval","following":"Following"}},"search":{"label":"Search Teams","placeholder":"Search for a team by name","noResults":"We couldn\'t find any teams by the name of <strong>\\"{0}\\"</strong>
575","noResultsGeneral":"We couldn\'t find any teams"},"membership":{"notMember":{"hint":"You aren\'t a member of this review team","label":"Apply"},"requested":{"hint":"You requested to be a member on {0}","label":"Cancel Application"},"member":{"hint":"Member since {0}","label":"Leave Team"},"vip":{"hint":"You are a VIP member of this team since {0}","label":"Leave Team"},"disbanded":{"hint":"You left this team on {0}","label":"Rejoin team"},"cancelled":{"hint":"You cancelled your request to join on {0}","label":"Re-apply"},"invited":{"hint":"You\'ve been invited to join this team","label":"Accept"}}},"acceptInviteDialog":{"joiningTeam":"Joining the team below","selectEmail":"Email to share with the team owner (optional)","selectEmailPlaceHolder":"Please select email","toolTip":"If you have a past relationship with the owner of this team, you can share your email address with them so they can remember you.","remainAnonymous":"Remain Anonymous","join":"Join","apply":"Apply"},"actions":{"backToTeams":"Back to team list","decline":"Decline"}},"gamification":{"labels":{"currentlyXReviewer":"You are currently a {0} Reviewer","myStats":"My stats","yourStatus":"Your reviewer status","yourLevel":"Your level","perks":"Perks","yourStats":"Your Stats","downloadedThisWeek":"Review copies downloaded in the last 7 days","earliestNextClaimDate":"You will be able to claim more review copies on {date}","arcTotalOverdueDays":"Total overdue days","reviewRate":"On-time review rate","nextLevel":"Next level","howToBecomeValuedReviewer":"How do I become a Reviewer?","valuedReviewerTask":"Fully complete one review on Booksprout","exclusiveAccess":"Access to exclusive \\"Top Reviewer\\" review copies","howToBecomeTopReviewer":"How do I become a Top Reviewer?","topReviewerTask":"Top reviewers are the best of the best on Booksprout. You\'ll need to fully review 30 review copies and have an on-time review rate of at least 70% in order to apply. Weâll then manually review your account according to our {linkSlot}.","applicationReceived":"Your application has been received! Weâll let you know if youâve been accepted within a day or two.","notEligibleMoreReview":"To be eligible for this program, please write {0} more reviews.","notEligibleMoreOnTimeReviewRate":"To be eligible for this program, please maintain a 70% on-time review rate.","notEligible":"To be eligible for this program, please write {0} more reviews and maintain a 70% on-time review rate.","applicationRejected":"Unfortunately, youâve not been accepted as a Top Reviewer at this time. You can apply again on {0} provided you fix the following:","reviewerHeading":"{0} Reviewer","reviewerDownloadLimit":"Download up to {0} review copies per week","reviewerDueArcs":"Up to {n} total overdue days for all claimed review copies | {n} total overdue days for all claimed review copies | Up to {n} total overdue days for all claimed review copies","roles":{"new":{"type":"New","description":"Welcome to Booksprout! As a New Reviewer, you can download up to 3 review copies per week and have 1 due review at any time."},"valued":{"type":"Reviewer","description":"As a Reviewer, you can download up to 10 review copies per week and have up to 5 due reviews at any time."},"top":{"type":"Top","description":"As a Top Reviewer, you can download up to 50 review copies per week and have up to 10 due reviews at any time."}},"onTimeReviewRate":{"fantastic":"Fantastic","great":"Great","low":"Low","toImprove":"Needs improvement","none":"No reviews in the last 90 days"},"topReviewerBadge":"Top Reviewer Badge","copyBadgeCode":"Copy the code"},"buttons":{"showStats":"Show my stats"},"actions":{"reviewerGuidelines":"Reviewer Guidelines","apply":"Apply to be a Top Reviewer"}}},"system":{"labels":{"authorDashboard":"Author Area","booksproutForAuthors":"Booksprout for Authors"},"errors":{"topReviewerApplicationTooEarly":"It is too early for you to apply to be a Top Reviewer.","tooMainClaimsThisWeek":"You have already downloaded the maximum amount of review copies allowed for your tier.","tooMainClaims":"Your tier doesn\'t allow any more review copies to be downloaded.","tooManyArcsDue":"You have too many outstanding reviews to claim another.","topReviewersOnly":"This review copy is limited to our Top Reviewer tier only.","messageSelf":"Sorry, you can\'t message yourself!","ratingRequired":"Please select your rating.","claimNotFound":"You must claim the review copy before reviewing.","reviewNotFound":"We couldn\'t find your review for this review copy. Please refresh the page and try again.","reviewBelongsToAnotherAccount":"There is a problem with your review. Please contact support."}
575,"mobileAppOnboardingDialog":{"labels":{"community":"A community of authors and reviewers","reviewers":"Reviewers","advancedReviewCopies":"Get free review copies straight from their favorite authors.","authors":"Authors","booksReadAndReviewed":"Get their books read and reviewed by our vast reviewer community. It\'s a win-win!","stepX":"Step {0}"},"actions":{"skip":"Skip"}}},"meta":{"module":{"arcTeams":{"title":"My Teams"},"arcTeam":{"title":"Viewing {0} Team"},"arcs":{"title":"Find Review Copies"},"arc":{"title":"Viewing {0} Review Copy"},"claimArc":{"title":"Claiming {0} Review Copy"},"reviewArc":{"title":"Reviewing {0} Review Copy"},"cancelArc":{"title":"Withdrawing {0} Review Copy"},"yourArcs":{"title":"My Review Copies"},"authors":{"title":"Authors"},"author":{"title":"Viewing {0} Author"},"book":{"title":"Viewing {0} Book"},"gamification":{"title":"Reviewer Rank"}}}}')},4364:function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("5ab2");const a=()=>({payment:{service:Object(i["a"])()}})},4677:function(e,t,o){"use strict";o.d(t,"a",function(){return n});var i=o("6af1"),a=o("1b59"),r=o("940e");class n extends a["g"]{constructor(){super(),this.homeUrl="",this.scopeToReviewer=Object(r["a"])()}configure(e){this.homeUrl=e}goBack(e){let t=Object(a["T"])(e);window.addEventListener("beforeunload",function(){t=!1}),window.history.back(),setTimeout(()=>{t&&(window.location.href=e)},200)}openUrl(e){e&&Object(i["a"])(e)}}},4708:function(e,t,o){"use strict";function i(e,t,o){return void 0!==e.$scopedSlots[t]?e.$scopedSlots[t]():o}o.d(t,"a",function(){return i})},"4c7d":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("fc00");const a=()=>({category:{service:Object(i["a"])()}})},"4d84":function(e,t,o){var i={"./config.build.beta.js":"b941","./config.build.master.js":"6419","./config.build.sandbox.js":"aca2","./config.build.staging.js":"c74e","./config.dev.js":"aafd","./config.testing.js":"f9c8"};function a(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="4d84"},"4e03":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("be32"),a=o("06f7");function r(e){const t=(t,...o)=>{e.$q.dialog({component:e.$bs.dialogComponent,parent:e,heading:e.$tc("system.actions.messageDialogHeading"),message:t.toString().concat(o.join(" "))})},o=(t,...o)=>{"Unauthorized"!==t&&Object(a["a"])().ui.store.getters.lastError!==t&&(Object(a["a"])().ui.setLastError(t),e.$q.dialog({component:e.$bs.dialogComponent,parent:e,error:!0,heading:e.$tc("system.actions.errorDialogHeading"),message:null===t||void 0===t?void 0:t.toString().concat(o.join(" "))}),setTimeout(()=>{Object(a["a"])().ui.setLastError("")},2e3))},r=a=>{Object(i["a"])(a).then(()=>{t(e.$t("system.labels.copiedToClipboard"))}).catch(()=>{o(e.$t("system.labels.couldNotCopyToClipboard"))})},n=e=>{e.target.focus(),e.target.select()};return{showMessage:t,showError:o,toClipboard:r,selectInput:n}}},5326:function(e,t,o){"use strict";o.d(t,"g",function(){return i["b"]}),o.d(t,"h",function(){return i["c"]}),o.d(t,"c",function(){return i["a"]}),o.d(t,"i",function(){return n}),o.d(t,"d",function(){return r["a"]}),o.d(t,"e",function(){return d["a"]}),o.d(t,"y",function(){return u["a"]}),o.d(t,"z",function(){return b["a"]}),o.d(t,"p",function(){return v["a"]}),o.d(t,"s",function(){return m["a"]}),o.d(t,"t",function(){return f["a"]}),o.d(t,"u",function(){return y["a"]}),o.d(t,"x",function(){return h}),o.d(t,"j",function(){return I}),o.d(t,"a",function(){return a["h"]}),o.d(t,"b",function(){return R["b"]}),o.d(t,"l",function(){return k}),o.d(t,"f",function(){return S}),o.d(t,"v",function(){return T["a"]}),o.d(t,"q",function(){return C}),o.d(t,"w",function(){return H}),o.d(t,"r",function(){return K["a"]}),o.d(t,"m",function(){return z["a"]}),o.d(t,"n",function(){return be}),o.d(t,"o",function(){return Le}),o.d(t,"k",function(){return Be["c"]});var i=o("82d9");o("4677");var a=o("9b23"),r=o("6d03");const n=e=>{const t={inserted:(t,o,i)=>{if(""===o.value)return;const a=r["a"].authenticatedUser,n=r["a"].mimicUser,s=n||a,l=void 0!==o.arg&&s.permissionQuery.can(o.arg,o.value,e);l||i&&i.elm&&i.elm.parentElement&&i.elm.parentElement.removeChild(i.elm)}};return t};o("e78f"),o("25f1"),o("3059");var s=o("8b32"),l=o("b8db"),d=(r["a"],o("a1dc"));o("e742");var c=o("1517"),u=(o("06f7"),o("f431"),o("58ab")),p=(o("edfd"),o("cb78")),b=(o("b766"),o("1a68"),o("1754"),o("f9cd"),o("4e03"),o("2755"),o("1bb5"),o("8caf"),o("ea91"),o("5e43"),o("80e0"),o("64c4"),o("ed33"),o("cdc7"),o("0bd8")),v=o("049c"),m=o("a065"),f=(o("2ac6"),o("23a9")),y=o("600e");let g;const h=()=>{const e=e=>{g=e},t=()=>g,o=()=>null===g||void 0===g?void 0:g.currentRoute,i=e=>g?g.push(e).then(()=>{}).catch(()=>{}):Promise.resolve(),a=(e,t)=>i({name:e,params:t}),r=()=>{g=void 0};return{init:e,router:t,currentRoute:o,push:i,pushToName:a,reset:r}};o("7aa7");var O=o("2cd6"),w=o("58da");const j="__migrated";function I(e,t){var o;return Object(O["a"])(t),"undefined"!==typeof window&&Object(w["b"])(null===(o=window.__INITIAL_STATE__)||void 0===o?void 0:o[j]),A(
575)}const A=()=>({replaceState:e=>{Object(w["b"])(null===e||void 0===e?void 0:e[j])}});o("7d8d"),o("a3b6");var R=o("7aa8");const k=[{path:"",meta:{requiresAuth:!1},component:()=>Promise.all([o.e(1),o.e(20)]).then(o.bind(null,"a924")),children:[{path:"",meta:{metaInstructions:{module:"login"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(23)]).then(o.bind(null,"e1aa"))},{path:"logout",component:()=>Promise.all([o.e(1),o.e(24)]).then(o.bind(null,"2ffd"))},{path:"login",name:"login",meta:{metaInstructions:{module:"login"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(23)]).then(o.bind(null,"e1aa"))},{path:"sign-up/:stage?/:tab?",name:"sign-up",meta:{metaInstructions:{module:"signUp"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(26)]).then(o.bind(null,"909e"))},{path:"request-password-reset",meta:{metaInstructions:{module:"requestPasswordReset"}},component:()=>Promise.all([o.e(1),o.e(25)]).then(o.bind(null,"811b"))},{path:"complete-password-reset/:token",meta:{metaInstructions:{module:"completePasswordReset"}},component:()=>Promise.all([o.e(1),o.e(25)]).then(o.bind(null,"811b"))},{path:"site/verify-email",redirect:e=>`sign-up/verify-email/${e.query.key}`},{path:"site/verify-phone",redirect:e=>`sign-up/verify-phone/${e.query.key}`},{path:"site/email-unsubscribe",component:()=>Promise.all([o.e(1),o.e(27)]).then(o.bind(null,"bd6a"))},{path:"403",meta:{metaInstructions:{module:"403"}},name:"403",component:()=>Promise.all([o.e(1),o.e(0),o.e(21)]).then(o.bind(null,"b5bc"))},{path:"404",meta:{metaInstructions:{module:"404"}},name:"404",component:()=>Promise.all([o.e(1),o.e(0),o.e(22)]).then(o.bind(null,"a20a"))}]}];const S=[{name:"message",path:"messages",meta:{requiresAuth:!0,role:{action:"read",module:"message"},metaInstructions:{module:"messages"}},component:()=>Promise.all([o.e(1),o.e(0),o.e(7)]).then(o.bind(null,"2d0e")),children:[{path:"thread/:id",meta:{requiresAuth:!0},component:()=>Promise.all([o.e(1),o.e(0),o.e(7)]).then(o.bind(null,"2d0e"))},{path:":state/:userId?",meta:{requiresAuth:!0},component:()=>Promise.all([o.e(1),o.e(0),o.e(7)]).then(o.bind(null,"2d0e"))}]}];o("1bc9"),o("8f7b");var T=o("2ad4"),F=(o("b9bf"),o("4364"),o("5ab2"),o("e6f1"),o("87eb"),o("f782"));const C=()=>({book:{service:Object(F["b"])()}});var E=o("3691"),D=o("b8d9"),P=o.n(D);const $=Object(p["a"])("penName"),N={penName:E["a"]` 576 fragment PenNameFragment on PenNameDto { 577 id, 578 name, 579 firstName, 580 lastName, 581 bio, 582 image, 583 facebookLink, 584 bookbubLink, 585 twitterLink, 586 instagramLink, 587 websiteLink, 588 newsletterLink, 589 tiktokLink, 590 amazonLink, 591 goodreadsLink, 592 isDraft, 593 followerCount, 594 averageRating, 595 reviewCount, 596 followers { 597 id 598 } 599 } 600 `},L=e=>Object(c["a"])().query({variables:Object.assign({},e),query:E["a"]` 601 query GetPenNames ( 602 $genericSearchTerm: String, 603 $genericSearch: Boolean, 604 $skip: Int, 605 $take: Int, 606 $sortBy: String, 607 $descending: Boolean, 608 $following: Boolean 609 $forUserId: Int 610 ) { 611 penNames ( 612 genericSearchTerm: $genericSearchTerm, 613 genericSearch: $genericSearch, 614 skip: $skip, 615 take: $take, 616 sortBy: $sortBy, 617 descending: $descending, 618 following: $following 619 forUserId: $forUserId 620 ) { 621 totalRows, 622 items { 623 ...PenNameFragment 624 } 625 } 626 } 627 ${N.penName} 628 `}),B=(e,t)=>void 0===e?Promise.reject(new Error("Missing id.")):Object(c["a"])().query({variables:Object.assign({id:e},t),query:E["a"]` 629 query GetPenName ( 630 $id: Int!, 631 $getAverageRating: Boolean, 632 $genericSearch: Boolean 633 ) { 634 penName (id: $id, getAverageRating: $getAverageRating, genericSearch: $genericSearch) { 635 ...PenNameFragment 636 } 637 } 638 ${N.penName} 639 `}),x=e=>Object(c["a"])().mutate({variables:{name:e.name,bio:e.bio,image:e.image,facebookLink:e.facebookLink,bookbubLink:e.bookbubLink,twitterLink:e.twitterLink,instagramLink:e.instagramLink,websiteLink:e.websiteLink,newsletterLink:e.newsletterLink,tiktokLink:e.tiktokLink,amazonLink:e.amazonLink,goodreadsLink:e.goodreadsLink},mutation:E["a"]` 640 mutation CreatePenName ( 641 $name: String!, 642 $bio: String, 643 $image: String, 644 $facebookLink: String, 645 $bookbubLink: String, 646 $twitterLink: String, 647 $instagramLink: String, 648 $websiteLink: String, 649 $newsletterLink: String, 650 $tiktokLink: String, 651 $amazonLink: String, 652 $goodreadsLink: String 653 ) { 654 createPenName ( 655 name: $name, 656 bio: $bio, 657 image: $image, 658 facebookLink: $facebookLink, 659 bookbubLink: $bookbubLink, 660 twitterLink: $twitterLink, 661 instagramLink: $instagramLink, 662 websiteLink: $websiteLink, 663 newsletterLink: $newsletterLink, 664 tiktokLink: $tiktokLink, 665 amazonLink: $amazonLink, 666 goodreadsLink: $goodreadsLink 667 ) { 668 ...PenNameFragment 669 } 670 } 671 ${N.penName} 672 `}),_=e=>Object(c["a"])().mutate({variables:{id:e.id,name:e.name,bio:e.bio,image:e.image,facebookLink:e.facebookLink,bookbubLink:e.bookbubLink,twitterLink:e.twitterLink,instagramLink:e.instagramLink,websiteLink:e.websiteLink,newsletterLink:e.newsletterLink,tiktokLink:e.tiktokLink,amazonLink:e.amazonLink,goodreadsLink:e.goodreadsLink},mutation:E["a"]` 673 mutation UpdatePenName ( 674 $id: Int!, 675 $name: String, 676 $bio: String, 677 $image: String, 678 $facebookLink: String, 679 $bookbubLink: String, 680 $twitterLink: String, 681 $instagramLink: String, 682 $websiteLink: String, 683 $newsletterLink: String, 684 $tiktokLink: String, 685 $amazonLink: String, 686 $goodreadsLink: String 687 ) { 688 updatePenName ( 689 id: $id, 690 name: $name, 691 bio: $bio, 692 image: $image, 693 facebookLink: $facebookLink, 694 bookbubLink: $bookbubLink, 695 twitterLink: $twitterLink, 696 instagramLink: $instagramLink, 697 websiteLink: $websiteLink, 698 newsletterLink: $newsletterLink, 699 tiktokLink: $tiktokLink, 700 amazonLink: $amazonLink, 701 goodreadsLink: $goodreadsLink 702 ) { 703 ...PenNameFragment 704 } 705 } 706 ${N.penName} 707 `}),U=e=>Object(c["a"])().query({variables:{id:e},query:E["a"]` 708 query CheckDeletePenName ($id: Int!) { 709 checkDeletePenName(id: $id) { 710 count, 711 dtoTypeName, 712 ids 713 } 714 } 715 `}),M=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 716 mutation ConfirmDeletePenName ( 717 $id: Int! 718 ) { 719 confirmDeletePenName(id: $id) { 720 id 721 } 722 } 723 `}),G=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 724 mutation FollowPenName ( 725 $id: Int! 726 ) { 727 followPenName(id: $id) { 728 ...PenNameFragment 729 } 730 } 731 ${N.penName} 732 `}),q=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 733 mutation UnfollowPenName ( 734 $id: Int! 735 ) { 736 unfollowPenName(id: $id) { 737 ...PenNameFragment 738 } 739 } 740 ${N.penName} 741 `}),V=e=>`https://booksprout.co/pen-name/${e.id}/${P()(e.name)}`,W=Object.assign(Object.assign({},$),{get:L,getById:B,create:x,update:_,checkDelete:U,delete:M,follow:G,unfollow:q,getUrl:V,globalLoader(e){return $.setGlobalLoader(e),W}});function Y(){return W}const H=()=>({penName:{service:Y()}});var K=o("4c7d"),z=(o("fc00"),o("d4c2"),o("0088"),o("2121")),X=(o("6db9"),o("2907"),o("8f92"),o("13a7"),o("1b59")),Q=function(e,t,o,i){function a(e){return e instanceof o?e:ne
741w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const J=Object(p["a"])("arcTeam"),Z={arcTeam:E["a"]` 742 fragment ArcTeamFragment on ArcTeamDto { 743 id, 744 name, 745 description, 746 image, 747 defaultDisclaimer, 748 applicantCount, 749 autoActionEmailAddresses { 750 emailAddress, 751 type 752 }, 753 arcTeamMembers { 754 id, 755 status, 756 statusDate, 757 reviewerStatus, 758 type, 759 userId 760 }, 761 isDraft, 762 followerCount, 763 isActivePublisherTeam, 764 userIsFollowing, 765 averageRating, 766 reviewCount 767 } 768 `},ee=e=>Q(void 0,void 0,void 0,function*(){return Object(c["a"])().query({variables:Object.assign({},e),query:E["a"]` 769 query GetArcTeams ( 770 $genericSearchTerm: String, 771 $genericSearch: Boolean, 772 $teamMemberId: Int, 773 $skip: Int, 774 $take: Int, 775 $sortBy: String 776 $status: Int 777 $excludeTeamsUserIsAMemberOf: Int 778 $forUserId: Int 779 ) { 780 arcTeams ( 781 genericSearchTerm: $genericSearchTerm, 782 genericSearch: $genericSearch, 783 teamMemberId: $teamMemberId, 784 skip: $skip, 785 take: $take, 786 sortBy: $sortBy 787 status: $status 788 excludeTeamsUserIsAMemberOf: $excludeTeamsUserIsAMemberOf 789 forUserId: $forUserId 790 ) { 791 totalRows, 792 items { 793 ...ArcTeamFragment 794 } 795 } 796 } 797 ${Z.arcTeam} 798 `}).then(e=>({items:e.items,totalRows:e.totalRows}))}),te=(e,t)=>void 0===e?Promise.reject(new Error("Missing id.")):Object(c["a"])().query({variables:Object.assign({id:e},t),query:E["a"]` 799 query GetArcTeam ( 800 $id: Int!, 801 $genericSearch: Boolean, 802 $getAverageRating: Boolean 803 ) { 804 arcTeam ( 805 id: $id, 806 genericSearch: $genericSearch, 807 getAverageRating: $getAverageRating 808 ) { 809 ...ArcTeamFragment 810 } 811 } 812 ${Z.arcTeam} 813 `}),oe=e=>Object(c["a"])().mutate({variables:{name:e.name,description:e.description,image:e.image,defaultDisclaimer:e.defaultDisclaimer,autoApproveEmailAddresses:e.autoApproveEmailAddresses,autoVipEmailAddresses:e.autoVipEmailAddresses,autoBlockEmailAddresses:e.autoBlockEmailAddresses},mutation:E["a"]` 814 mutation CreateArcTeam ( 815 $name: String!, 816 $description: String, 817 $image: String, 818 $defaultDisclaimer: Int, 819 $autoApproveEmailAddresses: [String!], 820 $autoVipEmailAddresses: [String!], 821 $autoBlockEmailAddresses: [String!] 822 ) { 823 createArcTeam ( 824 name: $name, 825 description: $description, 826 image: $image, 827 defaultDisclaimer: $defaultDisclaimer, 828 autoApproveEmailAddresses: $autoApproveEmailAddresses, 829 autoVipEmailAddresses: $autoVipEmailAddresses, 830 autoBlockEmailAddresses: $autoBlockEmailAddresses 831 ) { 832 ...ArcTeamFragment 833 } 834 } 835 ${Z.arcTeam} 836 `}),ie=e=>Object(c["a"])().mutate({variables:{id:e.id,name:e.name,description:e.description,image:e.image,defaultDisclaimer:e.defaultDisclaimer,autoApproveEmailAddresses:e.autoApproveEmailAddresses,autoVipEmailAddresses:e.autoVipEmailAddresses,autoBlockEmailAddresses:e.autoBlockEmailAddresses},mutation:E["a"]` 837 mutation UpdateArcTeam ( 838 $id: Int!, 839 $name: String, 840 $description: String, 841 $image: String, 842 $defaultDisclaimer: Int, 843 $autoApproveEmailAddresses: [String!], 844 $autoVipEmailAddresses: [String!], 845 $autoBlockEmailAddresses: [String!] 846 ) { 847 updateArcTeam ( 848 id: $id, 849 name: $name, 850 description: $description, 851 image: $image, 852 defaultDisclaimer: $defaultDisclaimer, 853 autoApproveEmailAddresses: $autoApproveEmailAddresses, 854 autoVipEmailAddresses: $autoVipEmailAddresses, 855 autoBlockEmailAddresses: $autoBlockEmailAddresses 856 ) { 857 ...ArcTeamFragment 858 } 859 } 860 ${Z.arcTeam} 861 `}),ae=e=>Object(c["a"])().query({variables:{id:e},query:E["a"]` 862 query CheckDeleteArcTeam ($id: Int!) { 863 checkDeleteArcTeam (id: $id) { 864 count, 865 dtoTypeName, 866 ids 867 } 868 } 869 `}),re=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 870 mutation ConfirmDeleteArcTeam ( 871 $id: Int! 872 ) { 873 confirmDeleteArcTeam(id: $id) { 874 id 875 } 876 } 877 `}),ne=e=>se(e)+((null===e||void 0===e?void 0:e.followerCount)||0),se=e=>e&&(null===e||void 0===e?void 0:e.arcTeamMembers)&&0!==e.arcTeamMembers.length?e.arcTeamMembers.filter(e=>[X["s"].ARC_TEAMS.MEMBERS.STATUS.ACTIVE].includes(e.status)).length:0,le=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 878 mutation FollowTeam ( 879 $id: Int! 880 ) { 881 followTeam (id: $id) { 882 id 883 } 884 } 885 `}),de=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 886 mutation UnfollowTeam ( 887 $id: Int! 888 ) { 889 unfollowTeam (id: $id) { 890 id 891 } 892 } 893 `}),ce=e=>Q(void 0,void 0,void 0,function*(){return Object(c["a"])().query({variables:{id:e.id},query:E["a"]` 894 query GetTeamMemberStatusCounts ($id: Int!) { 895 getTeamMemberStatusCounts (id: $id) { 896 awaiting, 897 active, 898 invited, 899 rejected, 900 blocked 901 } 902 } 903 `})}),ue=Object.assign(Object.assign({},J),{get:ee,getById:te,create:oe,update:ie,checkDelete:ae,delete:re,countFollowers:ne,countMembers:se,follow:le,unfollow:de,getTeamMemberStatusCounts:ce,globalLoader(e){return J.setGlobalLoader(e),ue}});function pe(){return ue}const be=()=>({arcTeam:{service:pe()}});var ve=o("9176");const me=Object(p["a"])("arcTeam"),fe=e=>{throw new Error("Method not implemented.")},ye=e=>{throw new Error("Method not implemented.")},ge=e=>{throw new Error("Method not implemented.")},he=e=>{const t=void 0===e.status?-1:e.status,o=void 0===e.type?-1:e.type;return Object(c["a"])().query({variables:{teamId:e.teamId,status:t,type:o,needle:e.needle},query:E["a"]` 904 query GetArcTeamMembers ( 905 $teamId: Int!, 906 $status: Int, 907 $type: Int, 908 $needle: String 909 ) { 910 arcTeamMembers (teamId: $teamId, status: $status, type: $type, needle: $needle) { 911 id, 912 arcTeamId, 913 userEmail { 914 emailAddress 915 }, 916 user { 917 id, 918 image, 919 name 920 }, 921 status, 922 type, 923 statusReasonType, 924 statusReason, 925 reportedDate, 926 statusDate, 927 createdDate, 928 activeArcCount, 929 cancelledArcCount, 930 reviewedArcCount, 931 pastDueArcCount, 932 averageRating 933 } 934 } 935 `})},Oe=e=>{throw new Error("Method not implemented.")},we=e=>Object(c["a"])().query({variables:{userId:e.userId,teamId:e.teamId},query:E["a"]` 936 query GetArcTeamMembers ( 937 $userId: Int, 938 $teamId: Int 939 ) { 940 arcTeamMember (userId: $userId, teamId: $teamId) { 941 id, 942 userEmail { 943 emailAddress 944 }, 945 user { 946 id, 947 image, 948 name, 949 arcClaims { 950 id, 951 status, 952 statusDate, 953 arc { 954 id, 955 book { 956 id, 957 title, 958 bookCover, 959 penNameType, 960 penName, 961 authorPenName { 962 id, 963 name 964 } 965 } 966 }, 967 review { 968 id, 969 rating, 970 privateFeedback, 971 review, 972 sites { 973 id, 974 link, 975 status, 976 statusDate 977 }, 978 disclaimer, 979 createdDate 980 } 981 } 982 }, 983 status, 984 type, 985 statusReasonType, 986 statusReason, 987 reportedDate, 988 statusDate, 989 createdDate, 990 activeArcCount, 991 cancelledArcCount, 992 reviewedArcCount, 993 pastDueArcCount, 994 averageRating, 995 arcTeamId 996 } 997 } 998 `}),je=e=>Object(c["a"])().query({variables:Object.assign({},e),query:E["a"]` 999 query GetUserAnalysis ( 1000 $userId: Int! 1001 $includeCancelled: Boolean, 1002 $includeReviews: Boolean, 1003 $teamId: Int, 1004 $teamOnly: Boolean, 1005 ) { 1006 userAnalysis ( 1007 includeCancelled: $includeCancelled, 1008 includeReviews: $includeReviews, 1009 teamId: $teamId, 1010 teamOnly: $teamOnly, 1011 userId: $userId 1012 ) { 1013 user { 1014 id, 1015 name, 1016 emailAddress, 1017 image, 1018 reviewerRole 1019 }, 1020 stats { 1021 active, 1022 averageRating, 1023 cancelled, 1024 complete, 1025 pastDue, 1026 reviewCount 1027 }, 1028 teams { 1029 id, 1030 name, 1031 image, 1032 memberStatus, 1033 memberType, 1034 memberId, 1035 memberUserId, 1036 memberStatusReasonType, 1037 memberStatusReason 1038 } 1039 } 1040 } 1041 `}),Ie=e=>Object(c["a"])().query({variables:Object.assign({},e),query:E["a"]` 1042 query GetUserAnalysisClaims ( 1043 $userId: Int! 1044 $includeCancelled: Boolean, 1045 $includeReviews: Boolean, 1046 $teamId: Int, 1047 $teamOnly: Boolean, 1048 $take: Int, 1049 $skip: Int 1050 ) { 1051 userAnalysisClaims ( 1052 includeCancelled: $includeCancelled, 1053 includeReviews: $includeReviews, 1054 teamId: $teamId, 1055 teamOnly: $teamOnly, 1056 userId: $userId, 1057 skip: $skip, 1058 take: $take 1059 ) { 1060 ...ArcClaimFragment, 1061 arc { 1062 ...ArcFragment 1063 } 1064 } 1065 } 1066 ${ve["a"].claim}, 1067 ${ve["a"].arc}, 1068 `}),Ae=e=>Object(c["a"])().query({variables:{teamMemberId:e},query:E["a"]` 1069 query GetArcTeams ( 1070 $teamMemberId: Int 1071 ) { 1072 arcTeams ( 1073 teamMemberId: $teamMemberId 1074 ) { 1075 id, 1076 name, 1077 description, 1078 image, 1079 defaultDisclaimer, 1080 arcTeamMembers { 1081 id, 1082 user { 1083 id 1084 } 1085 } 1086 } 1087 } 1088 `}),Re=(e,t,o)=>Object(c["a"])().mutate({variables:{type:o,memberId:e,teamId:t},mutation:E["a"]` 1089 mutation SetArcTeamMemberType ( 1090 $memberId: Int!, 1091 $teamId: Int!, 1092 $type: Int 1093 ) { 1094 setArcTeamMemberType ( 1095 id: $memberId, 1096 teamId: $teamId, 1097 type: $type 1098 ) { 1099 id 1100 } 1101 } 1102 `}),ke=(e,t,o,i,a,r)=>Object(c["a"])().mutate({variables:{status:o,memberId:e,teamId:t,statusReason:i,statusReasonType:a,report:r},mutation:E["a"]` 1103 mutation SetArcTeamMemberStatus ( 1104 $memberId: Int!, 1105 $teamId: Int!, 1106 $status: Int, 1107 $statusReason: String, 1108 $statusReasonType: Int, 1109 $report: Boolean 1110 ) { 1111 setArcTeamMemberStatus ( 1112 id: $memberId, 1113 teamId: $teamId, 1114 status: $status, 1115 statusReason: $statusReason, 1116 statusReasonType: $statusReasonType, 1117 report: $report 1118 ) { 1119 id 1120 } 1121 } 1122 `}),Se=e=>Object(c["a"])().mutate({variables:Object.assign({},e),mutation:E["a"]` 1123 mutation JoinArcTeam ( 1124 $memberUserId: Int!, 1125 $teamId: Int! 1126 $status: Int 1127 ) { 1128 joinTeam ( 1129 memberUserId: $memberUserId, 1130 teamId: $teamId, 1131 status: $status 1132 ) { 1133 id 1134 } 1135 } 1136 `}),Te=e=>Object(c["a"])().mutate({variables:Object.assign({},e),mutation:E["a"]` 1137 mutation BlockMember ( 1138 $userId: Int! 1139 $statusReasonType: Int!, 1140 $arcId: Int, 1141 $arcTeamId: Int, 1142 $report: Boolean, 1143 $statusReason: String, 1144 $memberId: Int, 1145 $claimId: Int 1146 ) { 1147 blockMember ( 1148 userId: $userId, 1149 statusReasonType: $statusReasonType, 1150 arcId: $arcId, 1151 arcTeamId: $arcTeamId, 1152 report: $report, 1153 statusReason: $statusReason, 1154 memberId: $memberId, 1155 claimId: $claimId 1156 ) { 1157 id 1158 } 1159 } 1160 `}),Fe=e=>Object(c["a"])().mutate({variables:{teamId:e.teamId,memberUserId:e.memberUserId},mutation:E["a"]` 1161 mutation RemoveFromArcTeam ( 1162 $memberUserId: Int!, 1163 $teamId: Int! 1164 ) {
1165 removeFromTeam ( 1166 memberUserId: $memberUserId, 1167 teamId: $teamId 1168 ) { 1169 id 1170 } 1171 } 1172 `}),Ce=e=>Object(c["a"])().mutate({variables:Object.assign({},e),mutation:E["a"]` 1173 mutation RequestToJoinTeam ( 1174 $teamId: Int! 1175 $userEmailId: Int 1176 ) { 1177 requestToJoinTeam ( 1178 teamId: $teamId 1179 userEmailId: $userEmailId 1180 ) { 1181 id 1182 } 1183 } 1184 `}),Ee=e=>Object(c["a"])().mutate({variables:{id:e},mutation:E["a"]` 1185 mutation LeaveTeam ( 1186 $id: Int! 1187 ) { 1188 leaveTeam ( 1189 id: $id 1190 ) { 1191 id 1192 } 1193 } 1194 `}),De=e=>Object(c["a"])().query({variables:{id:e},query:E["a"]` 1195 query TeamUserStatusLog ( 1196 $id: Int! 1197 ) { 1198 teamUserStatusLog ( 1199 id: $id 1200 ) { 1201 date, 1202 type 1203 } 1204 } 1205 `}).then(e=>Object.assign(Object.assign({},e),{date:new Date(null===e||void 0===e?void 0:e.date)})),Pe=e=>Object(c["a"])().mutate({variables:Object.assign({},e),mutation:E["a"]` 1206 mutation AcceptTeamInvitation ( 1207 $teamId: Int!, 1208 $userEmailId: Int 1209 ) { 1210 acceptTeamInvitation ( 1211 teamId: $teamId, 1212 userEmailId: $userEmailId 1213 ) { 1214 id, 1215 type, 1216 status, 1217 userEmail { 1218 emailAddress 1219 } 1220 } 1221 } 1222 `}),$e=Object.assign(Object.assign({},me),{get:he,getById:Oe,getMember:we,getTeams:Ae,getUserAnalysis:je,getUserAnalysisClaims:Ie,setType:Re,setStatus:ke,joinTeam:Se,removeFromTeam:Fe,blockMember:Te,requestToJoin:Ce,leaveTeam:Ee,teamUserStatusLog:De,acceptInvitation:Pe,create:fe,update:ge,delete:ye,globalLoader(e){return me.setGlobalLoader(e),$e}});function Ne(){return $e}const Le=()=>({arcTeamMember:{service:Ne()}});var Be=o("940e");o("b4f0")},5628:function(e,t,o){var i={"./en-US.json":"3d04"};function a(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="5628"},"58ab":function(e,t,o){"use strict";o.d(t,"a",function(){return c});var i=o("8b32"),a=o("7aa7");const r=()=>({});var n=Object(a["a"])("user",r),s={},l={get state(){return Object(i["readonly"])(n())},getters:s},d=o("edfd");const c=()=>({user:{store:l,service:Object(d["a"])()}})},"58da":function(e,t,o){"use strict";o.d(t,"a",function(){return a}),o.d(t,"b",function(){return r});const i=[],a=e=>{if(i.some(t=>t.name===e.name))throw new Error(`[store] Duplicate store name "${e.name}".`);i.push(e)},r=e=>{if(e)for(const t of i){const o=e[t.name];void 0!==o&&Object.assign(t.get(),o)}}},"5ab2":function(e,t,o){"use strict";o.d(t,"a",function(){return T});var i=o("3691"),a=o("1517"),r=o("a065"),n=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const s={planInfo:i["a"]` 1223 fragment PlanInfoFragment on PaymentDto { 1224 stripeCustomerId, 1225 stripeSubscriptionId, 1226 plan, 1227 price, 1228 cycle, 1229 nextBillDue, 1230 cardLast4, 1231 cardExpiry, 1232 taxCountry, 1233 taxCountryCode, 1234 taxCode, 1235 postalCode, 1236 cardType, 1237 cancelAt, 1238 discountPcApplied, 1239 discountAmountApplied, 1240 lastFailedPaymentId 1241 invoices { 1242 id, 1243 description, 1244 paidOn, 1245 cardLast4, 1246 downloadLink, 1247 cardType, 1248 status, 1249 paymentFailedReason, 1250 paymentFailedDescription, 1251 paymentFailedType 1252 } 1253 } 1254 `},l=()=>Object(r["a"])().config().stripeApiKey,d=()=>({year:"year",month:"month"}),c=e=>(Object(a["a"])().globalLoader(e),S),u=()=>n(void 0,void 0,void 0,function*(){if("undefined"===typeof Quaderno)return console.error("quadernoInitError"),Promise.reject("quadernoInitError");Quaderno.initialized||(yield Quaderno.init(Object(r["a"])().config().quadernoApiKey).then(()=>{Quaderno.initialized=!0}).catch(e=>(console.log(e.description,e.messages),Promise.reject(e.messages))))}),p=(e,t,o,i)=>n(void 0,void 0,void 0,function*(){return yield u(),Quaderno.calculateTaxes({country:t,businessNumber:i,postalCode:o}).then(o=>{const i=Quaderno.calculatePrice({amount:100*e,quantity:1,taxType:"excluded"});return{rate:o.rate,countryCode:t,name:o.name,extraName:o.extraName,extraRate:o.extraRate,price:{total:i.total/100,taxes:i.taxes/100}}})}),b=(e,t)=>n(void 0,void 0,void 0,function*(){return yield u(),Quaderno.validateBusinessNumber(e,t.toUpperCase()).then(e=>e.valid).catch(e=>!1)}),v=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().mutate({variables:{cardBrand:e.tokenData.card.brand,cardCountry:e.tokenData.card.country,cardId:e.tokenData.card.id,cardExpMonth:e.tokenData.card.expMonth,cardExpYear:e.tokenData.card.expYear,cardLast4:e.tokenData.card.last4,taxRate:e.tokenData.amount.rate,extraTaxRate:e.tokenData.amount.extraRate,subtotal:e.tokenData.amount.subtotal,taxCountryCode:e.tokenData.amount.taxCountryCode,taxAmount:e.tokenData.amount.taxes,total:e.tokenData.amount.total,token:e.tokenData.token,postalCode:e.tokenData.address.postalCode,plan:e.plan,planCycle:e.planCycle,taxCode:e.tokenData.taxCode,taxName:e.tokenData.taxName,extraTaxName:e.tokenData.extraTaxName,ipAddress:e.ipAddress},mutation:i["a"]` 1255 mutation CreateSubscription ( 1256 $cardBrand: String! 1257 $cardCountry: String! 1258 $cardId: String! 1259 $cardExpMonth: Int! 1260 $cardExpYear: Int! 1261 $cardLast4: String! 1262 $taxRate: Float! 1263 $extraTaxRate: Float 1264 $subtotal: Float! 1265 $taxCountryCode: String! 1266 $taxAmount: Float! 1267 $token: String! 1268 $total: Float! 1269 $postalCode: String! 1270 $plan: String! 1271 $planCycle: String! 1272 $taxCode: String! 1273 $taxName: String! 1274 $extraTaxName: String 1275 $ipAddress: String 1276 ) { 1277 createSubscription ( 1278 cardBrand: $cardBrand 1279 cardCountry: $cardCountry 1280 cardId: $cardId 1281 cardExpMonth: $cardExpMonth 1282 cardExpYear: $cardExpYear 1283 cardLast4: $cardLast4 1284 taxRate: $taxRate 1285 extraTaxRate: $extraTaxRate 1286 subtotal: $subtotal 1287 taxCountryCode: $taxCountryCode 1288 taxAmount: $taxAmount 1289 token: $token 1290 total: $total 1291 postalCode: $postalCode 1292 plan: $plan 1293 planCycle: $planCycle 1294 taxCode: $taxCode, 1295 taxName: $taxName, 1296 extraTaxName: $extraTaxName, 1297 ipAddress: $ipAddress 1298 ) { 1299 actionUrl, 1300 actionUrlType, 1301 clientSecret, 1302 status 1303 } 1304 } 1305 `}).then(e=>e)}),m=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1306 query GetPlanInfo ( 1307 $forUserId: Int, 1308 $skipInvoices: Boolean 1309 ) { 1310 planInfo ( 1311 skipInvoices: $skipInvoices, 1312 forUserId: $forUserId 1313 ) { 1314 ...PlanInfoFragment 1315 } 1316 } 1317 ${s.planInfo} 1318 `})}),f=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1319 query GetInvoices ( 1320 $forUserId: Int, 1321 $limit: Int, 1322 $startingAfter: String 1323 ) { 1324 invoices ( 1325 forUserId: $forUserId, 1326 limit: $limit, 1327 startingAfter: $startingAfter 1328 ) { 1329 invoices { 1330 id, 1331 description, 1332 paidOn, 1333 cardLast4, 1334 downloadLink, 1335 cardType, 1336 status, 1337 paymentFailedReason, 1338 paymentFailedDescription, 1339 paymentFailedType 1340 }, 1341 hasMore, 1342 nextStartingAfter 1343 } 1344 } 1345 `})}),y=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1346 query ChangeSubscriptionSummary ( 1347 $newPlan: String! 1348 $oldPlan: String! 1349 $newCycle: String! 1350 $proratedDate: Int 1351 ) { 1352 changeSubscriptionSummary ( 1353 newPlan: $newPlan, 1354 newCycle: $newCycle, 1355 oldPlan: $oldPlan, 1356 proratedDate: $proratedDate 1357 ) { 1358 subtotal, 1359 tax, 1360 total, 1361 credit, 1362 taxCountryCode, 1363 proratedDate, 1364 taxCode, 1365 postalCode 1366 } 1367 } 1368 `})}),g=()=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().query({query:i["a"]` 1369 query HasPastDueInvoice { 1370 hasPastDueInvoice 1371 } 1372 `})}),h=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 1373 mutation changeSubscription ( 1374 $newPlan: String! 1375 $oldPlan: String! 1376 $newCycle: String! 1377 $proratedDate: Int 1378 $ipAddress: String 1379 ) { 1380 changeSubscription ( 1381 newPlan: $newPlan, 1382 newCycle: $newCycle, 1383 oldPlan: $oldPlan, 1384 proratedDate: $proratedDate, 1385 ipAddress: $ipAddress 1386 ) { 1387 actionUrl, 1388 actionUrlType, 1389 clientSecret, 1390 status 1391 } 1392 } 1393 `})}),O=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 1394 mutation CancelSubscription ( 1395 $reason: Int, 1396 $reasonDescription: String 1397 ) { 1398 cancelSubscription ( 1399 reason: $reason, 1400 reasonDescription: $reasonDescription 1401 ) { 1402 ...PlanInfoFragment 1403 } 1404 } 1405 ${s.planInfo} 1406 `})}),w=()=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().mutate({mutation:i["a"]` 1407 mutation RemoveCreditCard { 1408 removeCreditCard { 1409 ...PlanInfoFragment 1410 } 1411 } 1412 ${s.planInfo} 1413 `})}),j=e=>Object(a["a"])().mutate({variables:{cardBrand:e.card.brand,cardCountry:e.card.country,cardId:e.card.id,cardExpMonth:e.card.expMonth,cardExpYear:e.card.expYear,cardLast4:e.card.last4,taxRate:0,subtotal:0,taxCountryCode:"",taxAmount:0,total:0,token:e.token,postalCode:e.address.postalCode,plan:"",planCycle:"",taxCode:"",taxName:""},mutation:i["a"]` 1414 mutation AddCreditCard ( 1415 $cardBrand: String! 1416 $cardCountry: String! 1417 $cardId: String! 1418 $cardExpMonth: Int! 1419 $cardExpYear: Int! 1420 $cardLast4: String! 1421 $taxRate: Float! 1422 $subtotal: Float! 1423 $taxCountryCode: String! 1424 $taxAmount: Float! 1425 $token: String! 1426 $total: Float! 1427 $postalCode: String! 1428 $plan: String! 1429 $planCycle: String! 1430 $taxCode: String! 1431 $taxName: String! 1432 ) { 1433 addCreditCard ( 1434 cardBrand: $cardBrand 1435 cardCountry: $cardCountry 1436 cardId: $cardId 1437 cardExpMonth: $cardExpMonth 1438 cardExpYear: $cardExpYear 1439 cardLast4: $cardLast4 1440 taxRate: $taxRate 1441 subtotal: $subtotal 1442 taxCountryCode: $taxCountryCode 1443 taxAmount: $taxAmount 1444 token: $token 1445 total: $total 1446 postalCode: $postalCode 1447 plan: $plan 1448 planCycle: $planCycle 1449 taxCode: $taxCode, 1450 taxName: $taxName 1451 ) { 1452 ...PlanInfoFragment 1453 } 1454 } 1455 ${s.planInfo} 1456 `}).then(e=>e),I=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 1457 mutation CreateSubscription ( 1458 $taxRate: Float! 1459 $extraTaxRate: Float 1460 $taxCountryCode: String! 1461 $postalCode: String! 1462 $taxCode: String! 1463 $taxName: String! 1464 $extraTaxName: String 1465 ) { 1466 updateTaxInfo ( 1467 taxRate: $taxRate 1468 extraTaxRate: $extraTaxRate 1469 taxCountryCode: $taxCountryCode 1470 postalCode: $postalCode 1471 taxCode: $taxCode 1472 taxName: $taxName 1473 extraTaxName: $extraTaxName 1474 ) { 1475 subtotal, 1476 tax, 1477 total, 1478 credit, 1479 taxCountryCode, 1480 taxCode, 1481 postalCode 1482 } 1483 } 1484 `}).then(e=>e),A=()=>Object(a["a"])().mutate({mutation:i["a"]` 1485 mutation ReactivateCurrentPlan { 1486 reactivateCurrentPlan { 1487 ...PlanInfoFragment 1488 } 1489 } 1490 ${s.planInfo} 1491 `}).then(e=>e),R=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 1492 mutation RetryPayment ( 1493 $invoiceId: String! 1494 ) { 1495 retryPayment ( 1496 invoiceId: $invoiceId 1497 ) { 1498 ...PlanInfoFragment 1499 } 1500 } 1501 ${s.planInfo} 1502 `}).then(e=>e),k=e=>n(void 0,void 0,void 0,function*(){return Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1503 query GetCouponDiscount ( 1504 $forFp: Boolean 1505 $cycle: String 1506 $plan: String 1507 ) { 1508 getCouponDiscount ( 1509 forFp: $forFp, 1510 cycle: $cycle 1511 plan: $plan 1512 ) 1513 } 1514 `}).then(e=>e)}),S={get stripeKey(){return l()},get cycles(){return d()},initQuaderno:u,calculateTaxes:p,isValidTaxNumber:b,subscribe:v,getPlanInfo:m,getInvoices:f,changeSubscriptionSummary:y,hasPastDueInvoice:g,changeSubscription:h,cancelSubscription:O,removeCreditCard:w,addCreditCard:j,updateTaxInformation:I,reactivateCurrentPlan:A,retryPayment:R,getCouponDiscount:k,globalLoader:c};function T(){return S}},"5d50":function(e,t,o){},"5e43":function(e,t,o){"use strict";function i(e){const t=()=>{var t;return!!(null===(t=null===e||void 0===e?void 0:e.$q)||void 0===t?void 0:t.capacitor)},o=(e,t,o)=>0===t&&e>0&&!o;return{isMobileApp:t,isFirstClientRender:o}}o.d(t,"a",function(){return i})},"600e":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("4677");let a;const r=()=>{const e=()=>(a||(a=new i["a"]),a),t=t=>{e().configure(t)},o=()=>{a=void 0};return{init:t,link:e,reset:o}}},6419:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://booksprout.co/api/"},apolloClient:{url:"https://booksprout.co/api/graphql"},quadernoApiKey:"pk_live_UMHswonDASRsoxBWxNgq",stripeApiKey:"pk_live_vfxh23gdLToJz5E3cRUsXlHD"}},"64c4":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("1b59");function a(e=!1){const t=(e,t,o,a="string")=>{switch(a){case"string":Object(i["T"])(o)&&(e[t]=o.toString());break;case"intArray":Object(i["T"])(o)&&"undefined"!==o&&(e[t]=o.split(",").map(e=>parseInt(e.trim())));break;case"array":Object(i["T"])(o)&&"undefined"!==o&&(e[t]=o.split(",").map(e=>e.trim()));break;case"int":Object(i["S"])(o)&&(e[t]=parseInt(o))}},o=t=>{Object(i["R"])(t,void 0,e?"?":void 0)};return{applyUrlFilterParam:t,setUrlFilterParams:o}}},6610:function(e,t,o){"use strict";o.d(t,"b",function(){return r});var i=o("7aa7");const a=()=>({returnCrudModel:void 0,returnLocation:"",returnLabel:"",completeLabel:"",attachModelId:void 0,meta:{title:"",description:"",keywords:"",ogTitle:"",ogImage:"",ogUrl:"",canonicalUrl:""}}),r=()=>a();t["a"]=Object(i["a"])("system",a)},"6afb":function(e,t,o){var i={"./de-DE.json":["b6fb",77],"./es-ES.json":["f51c",78],"./fr-FR.json":["7344",79],"./it-IT.json":["f9cb",80],"./pt-BR.json":["544e",81]};function a(e){if(!o.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return o.e(t[1]).then(function(){return o(a)})}a.keys=function(){return Object.keys(i)},a.id="6afb",e.exports=a},"6d03":function(e,t,o){"use strict";var i=o("1b59"),a=o("b8db");t["a"]={get isAuthenticated(){var e;const t=Object(a["a"])();return!!(null===(e=t.user)||void 0===e?void 0:e.id)&&!!t.token.expires&&t.token.expires>Object(i["K"])().getTime()/1e3},get authToken(){return Object(a["a"])().token.data},get authenticatedUser(){const e=Object(a["a"])().user;return null===e?null:Object.assign(Object.assign({},e),{permissionQuery:(new i["l"]).configure(e)})},get mimicUser(){const e=Object(a["a"])().mimicUser;return Object(i["S"])(null===e||void 0===e?void 0:e.id)?Object.assign(Object.assign({},e),{permissionQuery:(new i["l"]).configure(e)}):null},get termsConsentNeeded(){return Object(a["a"])().termsConsentNeeded},get termsConsentFailed(
1514){return Object(a["a"])().termsConsentFailed},get termsConsentData(){return Object(a["a"])().termsConsentData},get csrfToken(){return Object(a["a"])().csrfToken},get isAuthExpired(){return Object(a["a"])().authExpired}}},"6db9":function(e,t,o){"use strict";o.d(t,"a",function(){return N});var i=o("6d03"),a=o("bb36"),r=o("2dd7"),n=o("3691"),s=o("1b59"),l=o("9176"),d=o("13a7"),c=o("1517"),u=o("049c"),p=o("cb78"),b=o("8f92"),v=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const m=e=>Object(c["a"])().query({variables:Object.assign({},e),query:n["a"]` 1515 query GetArcs ( 1516 $needle: String, 1517 $activeOnly: Boolean, 1518 $scheduledOnly: Boolean, 1519 $finishedOnly: Boolean, 1520 $draftOnly: Boolean, 1521 $skip: Int, 1522 $take: Int, 1523 $sortBy: String, 1524 $descending: Boolean, 1525 $arcType: Int, 1526 $withNewReviewActivityStatus: Boolean, 1527 $forUserId: Int 1528 ) { 1529 arcs ( 1530 needle: $needle, 1531 activeOnly: $activeOnly, 1532 scheduledOnly: $scheduledOnly, 1533 finishedOnly: $finishedOnly, 1534 draftOnly: $draftOnly, 1535 skip: $skip, 1536 take: $take, 1537 sortBy: $sortBy, 1538 descending: $descending, 1539 arcType: $arcType, 1540 withNewReviewActivityStatus: $withNewReviewActivityStatus, 1541 forUserId: $forUserId 1542 ) { 1543 totalRows, 1544 items { 1545 ...ArcFragment 1546 } 1547 } 1548 } 1549 ${l["a"].arc} 1550 `}).then(e=>({totalRows:e.totalRows,items:e.items.map(d["b"])})),f=(e,t)=>void 0===e?Promise.reject(new Error("Missing id.")):Object(c["a"])().query({variables:Object.assign({id:e},t),query:n["a"]` 1551 query GetArc ( 1552 $id: Int!, 1553 $genericSearch: Boolean, 1554 $allowOwnClaim: Boolean, 1555 $skipEligibleCheck: Boolean 1556 ) { 1557 arc (id: $id, genericSearch: $genericSearch, allowOwnClaim: $allowOwnClaim, skipEligibleCheck: $skipEligibleCheck) { 1558 ...ArcFragment 1559 } 1560 } 1561 ${l["a"].arc} 1562 `}).then(e=>Object(d["b"])(e)),y=(e,t)=>Object(c["a"])().query({variables:Object.assign({id:e},t),query:n["a"]` 1563 query GetEligibleArc ( 1564 $id: Int!, 1565 $genericSearch: Boolean 1566 ) { 1567 eligibleArc (id: $id, genericSearch: $genericSearch) { 1568 isEligible, 1569 arc { 1570 ...ArcFragment 1571 } 1572 } 1573 } 1574 ${l["a"].arc} 1575 `}).then(e=>({isEligible:e.isEligible,arc:Object(d["b"])(e.arc)})),g=e=>({specialInformation:e.specialInformation,arcType:e.arcType,discoverableType:e.discoverableType,participationType:e.participationType,participationPreventionType:e.participationPreventionType,siteWideParticipationPreventionType:e.siteWideParticipationPreventionType,copyCountType:e.copyCountType,copyCount:e.copyCount,seriesLimitType:e.seriesLimitType,reviewFlags:e.reviewFlags,optionalReviewFlags:e.optionalReviewFlags,requiredReviewCount:e.requiredReviewCount,liveDate:e.liveDate,reviewDays:e.reviewDays,stopDownloadDate:e.stopDownloadDate,neverEndingPrivate:e.neverEndingPrivate,bookId:e.bookId,arcTeamId:e.arcTeamId,usDownloadCodes:e.usDownloadCodes,ukDownloadCodes:e.ukDownloadCodes,authorsDirectDownloadCodes:e.authorsDirectDownloadCodes,koboDownloadCodes:e.koboDownloadCodes,vipExclusiveAccessDays:e.vipExclusiveAccessDays,dueDate:e.dueDate,alertFlags:e.alertFlags,liveDateStr:e.liveDateStr,stopDownloadDateStr:e.stopDownloadDateStr,dueDateStr:e.dueDateStr}),h=e=>{if(!e.bookId){const t=new Error("CreateArc called without bookId");return a["g"](o=>{o.setTag("operation","CreateArc"),o.setContext("arcModel",{bookId:e.bookId,arcType:e.arcType,arcTeamId:e.arcTeamId}),r["c"](t)}),Promise.reject(t)}return Object(c["a"])().mutate({variables:Object.assign({},g(e)),mutation:n["a"]` 1576 mutation CreateArc ( 1577 $specialInformation: String, 1578 $arcType: Int, 1579 $discoverableType: Int, 1580 $participationType: Int, 1581 $participationPreventionType: Int, 1582 $siteWideParticipationPreventionType: Int, 1583 $copyCountType: Int, 1584 $copyCount: Int, 1585 $seriesLimitType: Int, 1586 $reviewFlags: Int, 1587 $optionalReviewFlags: Int, 1588 $requiredReviewCount: Int, 1589 $liveDate: DateTime, 1590 $reviewDays: Int, 1591 $stopDownloadDate: DateTime, 1592 $neverEndingPrivate: Boolean, 1593 $bookId: Int!, 1594 $arcTeamId: Int, 1595 $usDownloadCodes: String, 1596 $ukDownloadCodes: String, 1597 $authorsDirectDownloadCodes: String, 1598 $koboDownloadCodes: String, 1599 $vipExclusiveAccessDays: Int, 1600 $dueDate: DateTime, 1601 $alertFlags: Int, 1602 $liveDateStr: String, 1603 $stopDownloadDateStr: String, 1604 $dueDateStr: String 1605 ) { 1606 createArc ( 1607 specialInformation: $specialInformation, 1608 arcType: $arcType, 1609 discoverableType: $discoverableType, 1610 participationType: $participationType, 1611 participationPreventionType: $participationPreventionType, 1612 siteWideParticipationPreventionType: $siteWideParticipationPreventionType, 1613 copyCountType: $copyCountType, 1614 copyCount: $copyCount, 1615 seriesLimitType: $seriesLimitType, 1616 reviewFlags: $reviewFlags, 1617 optionalReviewFlags: $optionalReviewFlags, 1618 requiredReviewCount: $requiredReviewCount, 1619 liveDate: $liveDate, 1620 reviewDays: $reviewDays, 1621 stopDownloadDate: $stopDownloadDate, 1622 neverEndingPrivate: $neverEndingPrivate, 1623 bookId: $bookId, 1624 arcTeamId: $arcTeamId, 1625 usDownloadCodes: $usDownloadCodes, 1626 ukDownloadCodes: $ukDownloadCodes, 1627 authorsDirectDownloadCodes: $authorsDirectDownloadCodes, 1628 koboDownloadCodes: $koboDownloadCodes, 1629 vipExclusiveAccessDays: $vipExclusiveAccessDays, 1630 dueDate: $dueDate, 1631 alertFlags: $alertFlags, 1632 liveDateStr: $liveDateStr, 1633 stopDownloadDateStr: $stopDownloadDateStr, 1634 dueDateStr: $dueDateStr 1635 ) { 1636 ...ArcFragment 1637 } 1638 } 1639 ${l["a"].arc} 1640 `}).then(e=>Object(d["b"])(e)||new s["b"])},O=e=>{if(!e.bookId){const t=new Error("UpdateArc called without bookId");return a["g"](o=>{o.setTag("operation","UpdateArc"),o.setContext("arcModel",{id:e.id,bookId:e.bookId,arcType:e.arcType,arcTeamId:e.arcTeamId}),r["c"](t)}),Promise.reject(t)}return Object(c["a"])().mutate({variables:Object.assign({id:e.id},g(e)),mutation:n["a"]` 1641 mutation UpdateArc ( 1642 $id: Int!, 1643 $specialInformation: String, 1644 $arcType: Int, 1645 $discoverableType: Int, 1646 $participationType: Int, 1647 $participationPreventionType: Int, 1648 $siteWideParticipationPreventionType: Int, 1649 $copyCountType: Int, 1650 $copyCount: Int, 1651 $seriesLimitType: Int, 1652 $reviewFlags: Int, 1653 $optionalReviewFlags: Int, 1654 $requiredReviewCount: Int, 1655 $liveDate: DateTime, 1656 $reviewDays: Int, 1657 $stopDownloadDate: DateTime, 1658 $neverEndingPrivate: Boolean, 1659 $bookId: Int!, 1660 $arcTeamId: Int, 1661 $usDownloadCodes: String, 1662 $ukDownloadCodes: String, 1663 $authorsDirectDownloadCodes: String, 1664 $koboDownloadCodes: String, 1665 $vipExclusiveAccessDays: Int, 1666 $dueDate: DateTime, 1667 $alertFlags: Int, 1668 $liveDateStr: String, 1669 $stopDownloadDateStr: String, 1670 $dueDateStr: String 1671 ) { 1672 updateArc ( 1673 id: $id, 1674 specialInformation: $specialInformation, 1675 arcType: $arcType, 1676 discoverableType: $discoverableType, 1677 participationType: $participationType, 1678 participationPreventionType: $participationPreventionType, 1679 siteWideParticipationPreventionType: $siteWideParticipationPreventionType, 1680 copyCountType: $copyCountType, 1681 copyCount: $copyCount, 1682 seriesLimitType: $seriesLimitType, 1683 reviewFlags: $reviewFlags, 1684 optionalReviewFlags: $optionalReviewFlags, 1685 requiredReviewCount: $requiredReviewCount, 1686 liveDate: $liveDate, 1687 reviewDays: $reviewDays, 1688 stopDownloadDate: $stopDownloadDate, 1689 neverEndingPrivate: $neverEndingPrivate, 1690 bookId: $bookId, 1691 arcTeamId: $arcTeamId, 1692 usDownloadCodes: $usDownloadCodes, 1693 ukDownloadCodes: $ukDownloadCodes, 1694 authorsDirectDownloadCodes: $authorsDirectDownloadCodes, 1695 koboDownloadCodes: $koboDownloadCodes, 1696 vipExclusiveAccessDays: $vipExclusiveAccessDays, 1697 dueDate: $dueDate, 1698 alertFlags: $alertFlags, 1699 liveDateStr: $liveDateStr, 1700 stopDownloadDateStr: $stopDownloadDateStr, 1701 dueDateStr: $dueDateStr 1702 ) { 1703 ...ArcFragment 1704 } 1705 } 1706 ${l["a"].arc} 1707 `}).then(e=>Object(d["b"])(e)||new s["b"])},w=e=>Object(c["a"])().query({variables:{id:e},query:n["a"]` 1708 query CheckDeleteArc ($id: Int!) { 1709 checkDeleteArc (id: $id) { 1710 count, 1711 dtoTypeName, 1712 ids 1713 } 1714 } 1715 `}),j=e=>Object(c["a"])().mutate({variables:{id:e},mutation:n["a"]` 1716 mutation ConfirmDeleteArc ( 1717 $id: Int! 1718 ) { 1719 confirmDeleteArc(id: $id) { 1720 id 1721 } 1722 } 1723 `}),I=(e,t)=>({url:P.getApiControllerUrl("report-pirate"),withCredentials:!0,headers:[{name:"Authorization",value:`Bearer ${i["a"].authToken}`},{name:"CSRF-Token",value:i["a"].csrfToken}],formFields:[{name:"bookId",value:t.bookId},{name:"fileName",value:e[0].name},{name:"link",value:t.link}]}),A=(e,t)=>
1723Object(c["a"])().mutate({variables:{bookId:e,reason:t},mutation:n["a"]` 1724 mutation SendBookFileUpdateNotification ( 1725 $bookId: Int! 1726 $reason: Int! 1727 ) { 1728 sendBookFileUpdateNotification ( 1729 bookId: $bookId 1730 reason: $reason 1731 ) 1732 } 1733 `}),R=e=>Object(c["a"])().mutate({variables:Object.assign({},e),mutation:n["a"]` 1734 mutation EndImmediately ( 1735 $id: Int! 1736 ) { 1737 endImmediately ( 1738 id: $id 1739 ) { 1740 ...ArcFragment 1741 } 1742 }, 1743 ${l["a"].arc} 1744 `}),k=e=>Object(c["a"])().query({variables:Object.assign({},e),query:n["a"]` 1745 query GetArcNotifications ( 1746 $id: Int! 1747 $notificationCodes: [String!]! 1748 ) { 1749 arcNotifications ( 1750 id: $id 1751 notificationCodes: $notificationCodes 1752 ) { 1753 notification { 1754 id, 1755 active, 1756 code, 1757 lastQueuedDate, 1758 templateId, 1759 typeFlags, 1760 status, 1761 statusDate, 1762 userAwaitingNotificationCount, 1763 userNotificationCount 1764 }, 1765 sentCount, 1766 totalCount 1767 } 1768 } 1769 `}),S=e=>Object(c["a"])().query({variables:{id:e},query:n["a"]` 1770 query GetArcReviews ( 1771 $id: Int! 1772 ) { 1773 arcReviews (id: $id) { 1774 id, 1775 claim { 1776 id, 1777 userId, 1778 status, 1779 canFollowTeam, 1780 arc { 1781 id, 1782 book { 1783 title 1784 } 1785 }, 1786 user { 1787 id, 1788 name, 1789 image, 1790 } 1791 }, 1792 createdDate, 1793 disclaimer, 1794 privateFeedback, 1795 title, 1796 review, 1797 reviewLanguage, 1798 translatedReview, 1799 rating, 1800 sites { 1801 id, 1802 link, 1803 site, 1804 status, 1805 statusDate, 1806 statusReason, 1807 exempt 1808 }, 1809 userId 1810 } 1811 } 1812 `}),T=e=>Object(c["a"])().query({variables:Object.assign({},e),query:n["a"]` 1813 query GetDuplicateRunningOrScheduledArcs ( 1814 $bookId: Float 1815 $arcType: Float 1816 $currentArcId: Float 1817 ) { 1818 getDuplicateRunningOrScheduledArcs ( 1819 bookId: $bookId, 1820 arcType: $arcType, 1821 currentArcId: $currentArcId 1822 ) { 1823 id, 1824 bookId, 1825 arcType, 1826 liveDate, 1827 stopDownloadDate 1828 } 1829 } 1830 `}),F=e=>v(void 0,void 0,void 0,function*(){yield Object(c["a"])().mutate({variables:{id:e},mutation:n["a"]` 1831 mutation SaveArc ( 1832 $id: Int! 1833 ) { 1834 saveArc(id: $id) { 1835 id 1836 } 1837 } 1838 `})}),C=e=>v(void 0,void 0,void 0,function*(){yield Object(c["a"])().mutate({variables:{id:e},mutation:n["a"]` 1839 mutation UnsaveArc ( 1840 $id: Int! 1841 ) { 1842 unsaveArc(id: $id) { 1843 id 1844 } 1845 } 1846 `})}),E=e=>Object(u["a"])().axios().post("arc/full-url-from-short-url",{url:e}).then(e=>e.data),D=e=>v(void 0,void 0,void 0,function*(){const t=Object.assign(Object.assign({},e),{bookId:e.bookId||0});if(e.arcType===s["s"].ARCS.TYPE.AUDIO_BOOK){const o=yield Object(b["a"])().getUsedDownloadCodes(e.id);if(o){const i=e=>{if(!e)return e;const t=e.split(",").filter(Boolean),i=t.filter(e=>!o.some(t=>t.code===e));return i.length>0?i.join(","):""};t.usDownloadCodes=i(e.usDownloadCodes),t.ukDownloadCodes=i(e.ukDownloadCodes),t.authorsDirectDownloadCodes=i(e.authorsDirectDownloadCodes),t.koboDownloadCodes=i(e.koboDownloadCodes)}}const o=["liveDate","stopDownloadDate","dueDate","dueCutOffDate","liveDateStr","stopDownloadDateStr","dueDateStr","dueCutOffDateStr","createdDate","updatedDate"];return o.forEach(e=>delete t[e]),$.create(t)}),P=Object(p["a"])("arc"),$=Object.assign(Object.assign({},P),{get:m,getById:f,getEligibleById:y,createUpdateVars:g,create:h,update:O,checkDelete:w,delete:j,endImmediately:R,sendBookFileUpdateNotification:A,getNotifications:k,getReviews:S,getDuplicateRunningOrScheduledArcs:T,fullUrlFromShortUrl:E,duplicate:D,reportFileFactory:I,saveArc:F,unsaveArc:C,globalLoader(e){return P.setGlobalLoader(e),$}});function N(){return $}},7931:function(e,t,o){},"7aa7":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("8b32"),a=(o("2cd6"),o("58da"));function r(e,t){let o;const r=()=>void 0!==o,n=()=>(void 0===o&&(o=Object(i["reactive"])(t())),o);return Object(a["a"])({name:e,get:()=>n(),isCreated:r,reset:()=>Object.assign(n(),t())}),n}},"7aa8":function(e,t,o){"use strict";o.d(t,"b",function(){return i}),o.d(t,"a",function(){return a});class i{constructor(e,t,o,i){this.value=e,this.label=t,this.avatar=o,this.disable=i}}class a{constructor(e,t){this.value=e,this.label=t,this.hidden=!1,this.disable=!1,this.previousLabel="",this.nextLabel="",this.hideNext=!1,this.actionHint="",this.isEditMode=!1,this.slotKey="",this.stepComplete=void 0}}},"7d8d":function(e,t,o){"use strict";var i;o.d(t,"a",function(){return i}),function(e){e[e["Error"]=0]="Error",e[e["Standard"]=1]="Standard"}(i||(i={}))},"80e0":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("788b");function a(){const e=(e,t)=>
1846{i["a"].set(e,t)},t=e=>i["a"].getItem(e),o=e=>{i["a"].remove(e)};return{setLocalStorage:e,getLocalStorage:t,removeLocalStorage:o}}},"82d9":function(e,t,o){"use strict";o.d(t,"b",function(){return h}),o.d(t,"c",function(){return y}),o.d(t,"a",function(){return g}),o.d(t,"e",function(){return f}),o.d(t,"d",function(){return v});var i=o("480c"),a=o("1b59"),r=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const n=a["s"].I18N.DEFAULT_LOCALE,s=a["s"].I18N.LOCALES.map(e=>e.CODE),l=(e,t)=>{for(const o of Object.keys(t))t[o]instanceof Object&&o in e&&Object.assign(t[o],l(e[o],t[o]));return Object.assign(e||{},t),e};function d(e,t){t.keys().forEach(o=>{const i=o.match(/([A-Za-z0-9-_]+)\./i);if(i&&i.length>1){const a=i[1];void 0===e[a]?e[a]=t(o):l(e[a],t(o))}})}function c(){return[o("1c82"),o("c706"),o("5628")]}function u(){return[o("382d"),o("3be5"),o("6afb")]}function p(){const e={};for(const t of c())d(e,t);return e}function b(e){return r(this,void 0,void 0,function*(){const t=`./${e}.json`,o={};for(const e of u())e.keys().includes(t)&&l(o,yield e(t));return o}
1846)}const v=e=>{if(null===e||void 0===e||""===e)return;const t=e.trim(),o=s.find(e=>e.toLowerCase()===t.toLowerCase());if(void 0!==o)return o;const i=t.split("-")[0].toLowerCase();return s.find(e=>e.split("-")[0].toLowerCase()===i)},m=e=>null===e||void 0===e||""===e?[]:e.split(",").map(e=>{const[t,...o]=e.trim().split(";"),i=o.map(e=>e.trim().match(/^q=([0-9.]+)$/)).find(e=>null!==e);return{tag:t.trim(),quality:i?Number(i[1]):1}}).filter(e=>""!==e.tag&&!Number.isNaN(e.quality)).sort((e,t)=>t.quality-e.quality).map(e=>e.tag),f=({cookieLocale:e,userLocale:t,acceptLanguage:o})=>{const i=[e,t,...m(o)];for(const a of i){const e=v(a);if(void 0!==e)return e}return n},y=()=>new i["a"]({locale:n,fallbackLocale:n,messages:p(),silentTranslationWarn:!0}),g=(e,t)=>r(void 0,void 0,void 0,function*(){var o;const i=null!==(o=v(t))&&void 0!==o?o:n;return i!==n&&void 0===e.messages[i]&&e.setLocaleMessage(i,yield b(i)),e.locale=i,i}),h=(e,t,o)=>{o.prototype.$tcD=(t,o)=>{const i=e.tc(t);return t===i?"":i},t.i18n=e}},"87eb":function(e,t,o){"use strict";o.d(t,"a",function(){return h});var i=o("3691"),a=o("1517"),r=o("cb78");const n={notification:i["a"]` 1847 fragment NotificationFragment on UserNotificationDto { 1848 id, 1849 status, 1850 statusDate, 1851 state, 1852 nameOfInstigator, 1853 parsedMessage, 1854 parsedDescription, 1855 to, 1856 notification { 1857 id, 1858 code 1859 }, 1860 arc { 1861 id, 1862 claims { 1863 id 1864 } 1865 }, 1866 book { 1867 id 1868 title, 1869 bookCover 1870 }, 1871 arcClaim { 1872 id, 1873 arc { 1874 id 1875 } 1876 } 1877 arcReviewSite { 1878 id, 1879 site, 1880 review { 1881 claimId 1882 } 1883 }, 1884 arcReview { 1885 id, 1886 rating, 1887 claim { 1888 id, 1889 arc { 1890 id 1891 } 1892 } 1893 }, 1894 arcTeam { 1895 id, 1896 name 1897 }, 1898 arcTeamMember { 1899 id, 1900 arcTeam { 1901 id, 1902 name 1903 } 1904 } 1905 } 1906 `},s=Object(r["a"])("notification"),l=e=>Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1907 query GetNotifications ( 1908 $notificationCodes: [String!], 1909 $unread: Boolean, 1910 $genericSearchTerm: String, 1911 $skip: Int, 1912 $take: Int 1913 ) { 1914 notifications ( 1915 notificationCodes: $notificationCodes, 1916 unread: $unread, 1917 genericSearchTerm: $genericSearchTerm, 1918 skip: $skip, 1919 take: $take 1920 ) { 1921 totalRows, 1922 unreadNotificationCount, 1923 items { 1924 ...NotificationFragment 1925 } 1926 } 1927 } 1928 ${n.notification} 1929 `}),d=e=>void 0===e?Promise.reject(new Error("Missing id.")):Object(a["a"])().query({variables:{id:e},query:i["a"]` 1930 query GetNotification ( 1931 $id: Int! 1932 ) { 1933 notification (id: $id) { 1934 ...NotificationFragment 1935 } 1936 } 1937 ${n.notification} 1938 `}),c=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 1939 mutation MarkNotificationQueueItemAsRead ( 1940 $id: Int! 1941 ) { 1942 markNotificationAsRead(id: $id) 1943 } 1944 `}),u=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 1945 mutation Unsubscribe ( 1946 $unsubId: String!, 1947 $key: String! 1948 ) { 1949 unsubscribe (unsubId: $unsubId, key: $key) 1950 } 1951 `}),p=e=>{throw new Error("Not implemented")},b=e=>{throw new Error("Not implemented")},v=e=>{throw new Error("Not implemented")},m=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 1952 mutation DeleteNotificationQueueItem ( 1953 $id: Int! 1954 ) { 1955 deleteNotificationQueueItem (id: $id) 1956 } 1957 `}),f=()=>Object(a["a"])().mutate({mutation:i["a"]` 1958 mutation DeleteAllNotificationQueueItems { 1959 deleteAllNotificationQueueItems 1960 } 1961 `}),y=e=>Object(a["a"])().query({variables:Object.assign({},e),query:i["a"]` 1962 query GetUnreadNotificationCount ( 1963 $notificationCodes: [String!] 1964 ) { 1965 unreadNotificationCount ( 1966 notificationCodes: $notificationCodes 1967 ) { 1968 author, 1969 reviewer 1970 } 1971 } 1972 `}),g=Object.assign(Object.assign({},s),{get:l,getById:d,markAsRead:c,unsubscribe:u,create:p,update:b,delete:v,deleteNotificationQueueItem:m,deleteAllNotificationQueueItems:f,getUnreadNotificationCount:y,globalLoader(e){return s.setGlobalLoader(e),g}});function h(){return g}},"889d":function(e,t,o){"use strict";o("7931")},"8caf":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("1b59");function a(){const e=(e,t)=>
1972e*t-t,t=(e,t={},o={})=>Object.assign(Object.assign({skip:e.skip,take:e.rowsPerPage,sortBy:e.sortBy,descending:e.sortDescending,genericSearchTerm:e.genericSearchTerm},t),o),o=e=>"arrow_"+(e?"downward":void 0===e?"":"upward"),a=(e,t)=>0===e&&t,r=(e,t)=>{let o=!1,i=e.sortDescending,a=e.previousSortDescending;return e.sortBy===t?(!1===e.previousSortDescending?(i=void 0,o=!0):i=!i,a=i):i=void 0===e.sortBy||void 0,{sortBy:o?void 0:t,sortDescending:i,previousSortDescending:a}},n=(e,t,o)=>{const i=void 0!==(null===e||void 0===e?void 0:e.totalRows),a=i?e.items:e;if(!o)return{items:a,totalRows:i?e.totalRows:void 0};const r=null===t||void 0===t?void 0:t.map(e=>e.id),n=(null===a||void 0===a?void 0:a.length)?a.filter(e=>!(null===r||void 0===r?void 0:r.includes(e.id))):[];return{items:null===t||void 0===t?void 0:t.concat(n),totalRows:i?e.totalRows:void 0}},s=(t,o)=>{const a=t+"";if(!Object(i["S"])(a))return;const r=parseInt(a);return{currentPage:r,skip:e(r,o)}},l="?page=",d=e=>{const t=e.indexOf(l);return-1===t?e:e.substr(0,t)},c=e=>e.indexOf(l)>-1,u=(e,t)=>{const o=d(e),i=c(e)?t:t-1;return`${o}${l}${i}`},p=e=>{const t=e.now||new Date,o=new Date(t.getTime()-e.lastAttempt.getTime()).getMilliseconds();return e.scrollPageLoaded&&e.infiniteScroll&&(e.listLength||0)>=e.rowsPerPage&&o>e.minTimeBetweenCalls},b=e=>1===e?2:e+1;return{skipFor:e,makeGetArgs:t,sortIcon:o,showNoResults:a,nextSort:r,shapeResult:n,pageFromQuery:s,urlWithoutPage:d,hasPageInUrl:c,urlForLazyPage:u,shouldLazyLoad:p,nextLazyPage:b}}},"8f7b":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("1bc9");const a=()=>({messagePost:{service:Object(i["a"])()}})},"8f92":function(e,t,o){"use strict";o.d(t,"a",function(){return Q});var i=o("6d03"),a=o("3691"),r=o("1b59"),n=o("9176"),s=o("788b"),l=o("13a7"),d=o("1517"),c=o("049c"),u=o("cb78"),p=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},b=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const v=7444889.6,m=["arcReviewCount","arcReviewUserCount","arcLiveCount","authorCount","arcActiveCount","topArc"],f=(e,t)=>{const o=new FormData;return o.append("bookId",e.bookId.toString()),o.append("fileName",t.name),o.append("link",e.link),o.append("uploadFile",t),Object(c["a"])().axios()({method:"post",url:z.getApiControllerUrl("report-pirate"),headers:{Authorization:`Bearer ${i["a"].authToken}`,"Content-Type":"multipart/form-data","CSRF-Token":i["a"].csrfToken},data:o})},y=()=>Object(d["a"])().query({query:a["a"]` 1973 query GetReportedPirateCount { 1974 reportedPirateCount 1975 } 1976 `}).then(e=>e),g=e=>Object(d["a"])().mutate({variables:Object.assign({},e),mutation:a["a"]` 1977 mutation AddReview ( 1978 $claimId: Int!, 1979 $disclaimer: String!, 1980 $privateFeedback: String!, 1981 $rating: Int!, 1982 $review: String!, 1983 $title: String! 1984 ) { 1985 addReview ( 1986 claimId: $claimId, 1987 disclaimer: $disclaimer, 1988 privateFeedback: $privateFeedback, 1989 rating: $rating, 1990 review: $review, 1991 title: $title 1992 ) { 1993 id 1994 } 1995 } 1996 `}),h=e=>Object(d["a"])().mutate({variables:{id:e},mutation:a["a"]` 1997 mutation TranslateReview ( 1998 $id: Int! 1999 ) { 2000 translateReview (id: $id) { 2001 id 2002 reviewLanguage 2003 translatedReview 2004 } 2005 } 2006 `}),O=e=>Object(d["a"])().mutate({variables:{id:e},mutation:a["a"]` 2007 mutation DeleteReview ( 2008 $id: Int! 2009 ) { 2010 deleteReview (id: $id) 2011 } 2012 `}),w=e=>Object(d["a"])().mutate({variables:Object.assign({},e),mutation:a["a"]` 2013 mutation AddSiteReview ( 2014 $link: String, 2015 $reviewId: Int!, 2016 $site: Int, 2017 $status: Int, 2018 $userId: Int!, 2019 $statusReason: String 2020 ) { 2021 addSiteReview ( 2022 link: $link, 2023 reviewId: $reviewId, 2024 site: $site, 2025 status: $status, 2026 userId: $userId, 2027 statusReason: $statusReason 2028 ) { 2029 id 2030 } 2031 } 2032 `}),j=e=>{const t=Object(r["A"])(e),{AUDIBLE_US:o,AUDIBLE_UK:i}=r["s"].ARCS.REVIEWS.FLAGS;return t.filter(e=>![o,i].includes(e.site))},I=e=>Object(d["a"])().query({variables:Object.assign({},e),query:a["a"]` 2033 query GetGroupedEligibleArcsCount ( 2034 $needle: String, 2035 $skip: Int, 2036 $take: Int, 2037 $sortBy: String, 2038 $descending: Boolean, 2039 $penNameId: Int 2040 $hasComeViaLink: Boolean, 2041 $arcTeamId: Int, 2042 $activeOnly: Boolean, 2043 $pastOnly: Boolean, 2044 $arcType: Int, 2045 $sites: Int, 2046 $minLength: Int, 2047 $maxLength: Int, 2048 $audiences: [Int!], 2049 $languages: [Int!], 2050 $canReviewInDays: Int, 2051 $categoryId: Int, 2052 $categoryIds: [Int!], 2053 $groupByStatus: Int, 2054 $countOnly: Boolean, 2055 $participationTypes: [Int!], 2056 $releaseDateTypes: [Int!], 2057 $authors: [Int!] 2058 ) { 2059 groupedEligibleArcsCount ( 2060 needle: $needle, 2061 skip: $skip, 2062 take: $take, 2063 sortBy: $sortBy, 2064 descending: $descending, 2065 penNameId: $penNameId, 2066 hasComeViaLink: $hasComeViaLink, 2067 arcTeamId: $arcTeamId, 2068 activeOnly: $activeOnly, 2069 pastOnly: $pastOnly, 2070 arcType: $arcType, 2071 sites: $sites, 2072 minLength: $minLength, 2073 maxLength: $maxLength,
2074 audiences: $audiences, 2075 languages: $languages, 2076 canReviewInDays: $canReviewInDays, 2077 categoryId: $categoryId, 2078 categoryIds: $categoryIds, 2079 groupByStatus: $groupByStatus, 2080 countOnly: $countOnly, 2081 participationTypes: $participationTypes, 2082 releaseDateTypes: $releaseDateTypes, 2083 authors: $authors 2084 ) { 2085 authorTeamCount, 2086 allCount, 2087 savedCount 2088 } 2089 } 2090 `}),A=e=>Object(d["a"])().query({variables:Object.assign({},e),query:a["a"]` 2091 query GetGroupedEligibleArcs ( 2092 $needle: String, 2093 $skip: Int, 2094 $take: Int, 2095 $sortBy: String, 2096 $descending: Boolean, 2097 $penNameId: Int 2098 $hasComeViaLink: Boolean, 2099 $arcTeamId: Int, 2100 $activeOnly: Boolean, 2101 $pastOnly: Boolean, 2102 $arcType: Int, 2103 $sites: Int, 2104 $minLength: Int, 2105 $maxLength: Int, 2106 $audiences: [Int!], 2107 $languages: [Int!], 2108 $canReviewInDays: Int, 2109 $categoryId: Int, 2110 $categoryIds: [Int!], 2111 $groupByStatus: Int, 2112 $participationTypes: [Int!], 2113 $releaseDateTypes: [Int!], 2114 $authors: [Int!] 2115 ) { 2116 groupedEligibleArcs ( 2117 needle: $needle, 2118 skip: $skip, 2119 take: $take, 2120 sortBy: $sortBy, 2121 descending: $descending, 2122 penNameId: $penNameId, 2123 hasComeViaLink: $hasComeViaLink, 2124 arcTeamId: $arcTeamId, 2125 activeOnly: $activeOnly, 2126 pastOnly: $pastOnly, 2127 arcType: $arcType, 2128 sites: $sites, 2129 minLength: $minLength, 2130 maxLength: $maxLength, 2131 audiences: $audiences, 2132 languages: $languages, 2133 canReviewInDays: $canReviewInDays, 2134 categoryId: $categoryId, 2135 categoryIds: $categoryIds, 2136 groupByStatus: $groupByStatus, 2137 participationTypes: $participationTypes, 2138 releaseDateTypes: $releaseDateTypes, 2139 authors: $authors 2140 ) { 2141 allCount, 2142 authorTeamCount, 2143 savedCount, 2144 result { 2145 totalRows, 2146 items { 2147 ...ArcFragment 2148 } 2149 } 2150 } 2151 } 2152 ${n["a"].arc} 2153 `}).then(e=>Object.assign(Object.assign({},e),{result:{totalRows:e.result.totalRows,items:e.result.items.map(l["b"])}})),R=e=>Object(d["a"])().query({variables:Object.assign({},e),query:a["a"]` 2154 query GetEligibleArcs ( 2155 $needle: String, 2156 $skip: Int, 2157 $take: Int, 2158 $sortBy: String, 2159 $descending: Boolean, 2160 $penNameId: Int 2161 $hasComeViaLink: Boolean, 2162 $arcTeamId: Int, 2163 $activeOnly: Boolean, 2164 $pastOnly: Boolean, 2165 $arcType: Int, 2166 $sites: Int, 2167 $minLength: Int, 2168 $maxLength: Int, 2169 $audiences: [Int!], 2170 $languages: [Int!], 2171 $canReviewInDays: Int, 2172 $categoryId: Int, 2173 $categoryIds: [Int!], 2174 $allUserOwned: Boolean, 2175 $excludeArcId: Int, 2176 $allowOwnClaim: Boolean, 2177 $penName: String, 2178 $participationTypes: [Int!], 2179 $releaseDateTypes: [Int!], 2180 $authors: [Int!] 2181 ) { 2182 eligibleArcs ( 2183 needle: $needle, 2184 skip: $skip, 2185 take: $take, 2186 sortBy: $sortBy, 2187 descending: $descending, 2188 penNameId: $penNameId, 2189 hasComeViaLink: $hasComeViaLink, 2190 arcTeamId: $arcTeamId, 2191 activeOnly: $activeOnly, 2192 pastOnly: $pastOnly, 2193 arcType: $arcType, 2194 sites: $sites, 2195 minLength: $minLength, 2196 maxLength: $maxLength, 2197 audiences: $audiences, 2198 languages: $languages, 2199 canReviewInDays: $canReviewInDays, 2200 categoryId: $categoryId, 2201 categoryIds: $categoryIds, 2202 allUserOwned: $allUserOwned, 2203 excludeArcId: $excludeArcId, 2204 allowOwnClaim: $allowOwnClaim, 2205 penName: $penName, 2206 participationTypes: $participationTypes, 2207 releaseDateTypes: $releaseDateTypes, 2208 authors: $authors 2209 ) { 2210 totalRows, 2211 items { 2212 ...ArcFragment 2213 } 2214 } 2215 } 2216 ${n["a"].arc} 2217 `}).then(e=>({totalRows:e.totalRows,items:e.items.map(l["b"])})),k=(e=[])=>e.reduce((e,t)=>
2217e|t,0),S=(e=0)=>{const t=[r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.ENGLISH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.SPANISH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.GERMAN,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.FRENCH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.ITALIAN,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.PORTUGUESE,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.OTHER];return t.filter(t=>(e&t)===t)},T=()=>({selectedArcType:-1,sites:r["s"].ARCS.REVIEWS.ALL_FLAGS,reviewInDays:0,minLength:r["s"].BOOKS.WORD_COUNT_RANGE.MIN,maxLength:r["s"].BOOKS.WORD_COUNT_RANGE.MAX,audienceTypes:[1,2,3,4],languages:[r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.ENGLISH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.SPANISH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.GERMAN,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.FRENCH,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.ITALIAN,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.PORTUGUESE,r["s"].BOOKS.LANGUAGE_FLAGS.FLAGS.OTHER],searchValue:"",prependSearchValue:"",categoryId:-1,categoryIds:[],advancedFilterCall:!1,appliedCount:0,sortBy:r["s"].ARCS.SORTING.RECOMMENDED,activeFiltersString:"",currentPage:1,authors:[0],releaseDateTypes:[1,2],participationTypes:[1,2],expandedFilters:["ef:s","ef:c","ef:a","ef:lg","ef:f","ef:r","ef:av","ef:au","ef:w","ef:t"],displayResultsAs:"list"}),F=e=>{const t=T();let o=0;for(const i in e)if(e.hasOwnProperty(i)&&!["advancedFilterCall","appliedCount"].includes(i)){let a=e[i]===t[i];Array.isArray(e[i])&&(a=e[i].length===t[i].length),a||o++}return o},C=e=>{var t,o;return(null===(t=e.book)||void 0===t?void 0:t.audience)===r["s"].BOOKS.AU
2217DIENCE_TYPE.EXPLICIT||(null===(o=e.book)||void 0===o?void 0:o.audience)===r["s"].BOOKS.AUDIENCE_TYPE.MATURE},E=e=>D(r["s"].ARCS.CLAIMS.FILE_TYPE.EPUB,e)||D(r["s"].ARCS.CLAIMS.FILE_TYPE.PDF,e),D=(e,t)=>{var o,i;let a;switch(e){case r["s"].ARCS.CLAIMS.FILE_TYPE.EPUB:a=null===(o=t.book)||void 0===o?void 0:o.epubFileSizeBytes;break;case r["s"].ARCS.CLAIMS.FILE_TYPE.PDF:a=null===(i=t.book)||void 0===i?void 0:i.pdfFileSizeBytes;break}return!!a&&a<v},P=e=>{const t=Object(l["a"])(e.reviewFlags);return e.requiredReviewCount-t},$=(e,t)=>{const o=b(r["s"].ARCS.REVIEWS.FLAGS,[]),i=Object(r["A"])(e)[0],a=t[i.fieldName];switch(e){case o.BARNES:return a+"#reviews";case o.KOBO:return a+"#ratings-and-reviews";case o.GOOGLE:return a+"&showAllReviews=true";case o.AUDIBLE_US:return a+"#customer-reviews";case o.AUDIBLE_UK:return a+"#customer-reviews";default:return a}},N=(e,t,o)=>{var i;if(!t.book)return;const a=b(r["s"].ARCS.REVIEWS.FLAGS,[]);switch(e){case a.AMAZON:return Object(r["T"])(t.book.linkAmazonAsinPrint)?`https://www.amazon.com/gp/product/${t.book.linkAmazonAsinPrint}`:Object(r["T"])(t.book.linkAmazonAsin)?`https://www.amazon.com/gp/product/${t.book.linkAmazonAsin}`:"";case a.BARNES:case a.AUDIO_BARNES:{const e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkBarnes:t.book.linkBarnesAudio;return e||`https://www.barnesandnoble.com/s/${t.book.title}`}case a.KOBO:case a.AUDIO_KOBO:{let e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkKobo:t.book.linkKoboAudio;if(!e)return`https://www.kobo.com/us/en/search?query=${t.book.title}`;e+="#ratings-and-reviews";const o=/www.kobo.com(.*\/)ebook/gi,i=o.exec(e);return i?e.replace(i[1],"/"):e}case a.ITUNES:case a.AUDIO_ITUNES:{let e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkITunes:t.book.linkITunesAudio;return e?(e=e.substring(0,e.includes("?")?e.lastIndexOf("?"):e.length),e+="?at=1001l9EK",e):`https://www.apple.com/us/search/${t.book.title}`}case a.AUDIBLE_US:return t.book.linkAudibleUs?t.book.linkAudibleUs+"#customer-reviews":void 0;case a.AUDIBLE_UK:return t.book.linkAudibleUk?t.book.linkAudibleUk+"#customer-reviews":void 0;case a.AUDIBLE:return(null===o||void 0===o?void 0:o.selectedAudioSiteFlag)===r["s"].ARCS.REVIEWS.FLAGS.AUDIBLE_US&&t.book.linkAudibleUs?t.book.linkAudibleUs+"#customer-reviews":(null===o||void 0===o?void 0:o.selectedAudioSiteFlag)===r["s"].ARCS.REVIEWS.FLAGS.AUDIBLE_UK&&t.book.linkAudibleUk?t.book.linkAudibleUk+"#customer-reviews":void 0;case a.GOOD_READS:case a.AUDIO_GOODREADS:{const e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkGoodreads:t.book.linkGoodreadsAudio;return e||`https://www.goodreads.com/search?q=${t.book.title}`}case a.BOOK_BUB:case a.AUDIO_BOOK_BUB:{const e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkBookbub:t.book.linkBookbubAudio;return e||`https://www.bookbub.com/search?search=${t.book.title}`}case a.GOOGLE:case a.AUDIO_GOOGLE:{const e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkGoogle:t.book.linkGoogleAudio;return e||`https://play.google.com/store/search?q=${t.book.title}&c=books`}case a.SMASH_WORDS:return t.book.linkSmashwords?t.book.linkSmashwords:`https://www.smashwords.com/books/titles/${t.book.title}`;case a.STORY_GRAPH:case a.AUDIO_STORY_GRAPH:{const e=t.arcType===r["s"].ARCS.TYPE.EBOOK?t.book.linkStoryGraph:t.book.linkStoryGraphAudio,o=null===(i=null===e||void 0===e?void 0:e.match(/\/books\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/i))||void 0===i?void 0:i[1];return o?`https://app.thestorygraph.com/reviews/new?book_id=${o}`:`https://app.thestorygraph.com/browse?search_term=${t.book.title}`}default:return""}},L=e=>Array.from(new Set(e)).map(e=>{switch(e){case"topArc":return"\n topArc {\n id,\n totalClaims,\n daysLeft,\n book {\n title,\n bookCover,\n penName,\n authorPenName {\n name\n }\n }\n }\n ";default:return e}}).join("\n"),B=(e=m)=>{const t=L(e);return Object(d["a"])().query({query:a["a"]` 2218 query GetArcWebStats { 2219 arcWebStats { 2220 ${t} 2221 } 2222 } 2223 `})},x=()=>Object(d["a"])().query({query:a["a"]` 2224 query UserArcStats { 2225 userArcStats { 2226 arcReviewCount, 2227 arcReviewUserCount, 2228 arcLiveCount, 2229 authorCount, 2230 totalArcCount 2231 } 2232 } 2233 `}),_=e=>Object(d["a"])().query({variables:{id:e},query:a["a"]`
2234 query ArcAvailableDownloadCodeCounts ( $id: Int!) { 2235 arcAvailableDownloadCodeCounts (id: $id) { 2236 site, 2237 count 2238 } 2239 } 2240 `}),U=e=>Object(d["a"])().query({variables:{id:e},query:a["a"]` 2241 query ArcUsedDownloadCodes ( $id: Int!) { 2242 arcUsedDownloadCodes (id: $id) { 2243 code 2244 } 2245 } 2246 `}),M=e=>Object(d["a"])().mutate({variables:{id:e},mutation:a["a"]` 2247 mutation ClaimAppleBooksCode ($id: Int!) { 2248 claimAppleBooksCode (id: $id) 2249 } 2250 `}),G=e=>Object(d["a"])().query({variables:Object.assign({},e),query:a["a"]` 2251 query GetActiveArcDates ( 2252 $excludeArcId: Int 2253 ) { 2254 getActiveArcDates ( 2255 excludeArcId: $excludeArcId 2256 ) { 2257 key, 2258 value 2259 } 2260 } 2261 `}),q=e=>Object(d["a"])().query({variables:{id:e},query:a["a"]` 2262 query GetArcFollowerStats ( 2263 $id: Int! 2264 ) { 2265 getArcFollowerStats ( 2266 id: $id 2267 ) { 2268 penNameFollowerCount, 2269 arcTeamFollowerCount, 2270 arcTeamMemberCount 2271 } 2272 } 2273 `}),V=()=>Object(d["a"])().query({query:a["a"]` 2274 query GetArcTotalOverdueDays { 2275 getArcTotalOverdueDays 2276 } 2277 `}),W=(e,t)=>p(void 0,void 0,void 0,function*(){const o=JSON.parse(s["a"].getItem("view_tracker")+"");if(!o)return!1;const i=o[e]&&o[e][t]?o[e][t]:void 0;return!!(i&&i>Date.now()/1e3-3600)}),Y=(e,t)=>p(void 0,void 0,void 0,function*(){let o=JSON.parse(s["a"].getItem("view_tracker")+"");o?o[e]?o[e][t]=Date.now()/1e3:o[e]={[t]:Date.now()/1e3}:o={[e]:{[t]:Date.now()/1e3}},s["a"].set("view_tracker",JSON.stringify(o))}),H=e=>p(void 0,void 0,void 0,function*(){yield Object(d["a"])().mutate({variables:{id:e},mutation:a["a"]` 2278 mutation AddViewToArc ( 2279 $id: Int! 2280 ) { 2281 addViewToArc(id: $id) { 2282 id 2283 } 2284 } 2285 `})}),K=e=>p(void 0,void 0,void 0,function*(){yield Object(d["a"])().mutate({variables:{id:e},mutation:a["a"]` 2286 mutation AddImpressionToArc ( 2287 $id: Int! 2288 ) { 2289 addImpressionToArc(id: $id) { 2290 id 2291 } 2292 } 2293 `})}),z=Object(u["a"])("arc"),X=Object.assign(Object.assign({},z),{addReview:g,translateReview:h,deleteReview:O,addSiteReview:w,reportPirate:f,getReportedPirateCount:y,getArcSites:r["z"],getArcSitesFromFlags:r["A"],getArcSitesFromFlagsExcludingCountrySpecificAudible:j,isValidReviewLink:r["I"],countSiteFlags:l["a"],getEligibleGroupedCount:I,getEligibleGrouped:A,getEligible:R,getLanguageFlags:k,getLanguagesFromFlags:S,resetFindArcFilters:T,getFindArcFilterCount:F,shouldShowExplicitTag:C,sizeAllowsEmail:E,canEmail:D,getOptionalReviewCount:P,getAuthorReviewsLinkForSite:$,getReviewLinkForSite:N,getWebStats:B,getUserStats:x,arcAvailableDownloadCodeCounts:_,getUsedDownloadCodes:U,claimAppleBooksCode:M,getActiveArcDates:G,getArcFollowerStats:q,getArcTotalOverdueDays:V,hasAlreadyCounted:W,trackUserCounted:Y,addViewToArc:H,addImpressionToArc:K,globalLoader(e){return z.setGlobalLoader(e),X}});function Q(){return X}},9176:function(e,t,o){"use strict";o.d(t,"a",function(){return a}),o.d(t,"b",function(){return r});var i=o("3691");const a={claim:i["a"]` 2294 fragment ArcClaimFragment on ArcClaimDto { 2295 id, 2296 createdDate, 2297 status, 2298 statusDate, 2299 cancellationReason, 2300 cancellationType, 2301 downloadCode, 2302 downloadCodeExpirationDate, 2303 reviewFlags, 2304 optionalReviewFlags, 2305 requiredReviewCount, 2306 state, 2307 selectedAudioSiteFlag, 2308 authorOwnsArc, 2309 lastReadCfi, 2310 dueDate, 2311 overdueDays, 2312 canFollowTeam, 2313 reviewerStatus, 2314 user { 2315 id 2316 name, 2317 image 2318 }, 2319 review { 2320 id, 2321 rating, 2322 title, 2323 review, 2324 reviewLanguage, 2325 translatedReview, 2326 privateFeedback, 2327 disclaimer, 2328 createdDate, 2329 updatedDate 2330 sites { 2331 id, 2332 link, 2333 site, 2334 status, 2335 statusDate, 2336 statusReason, 2337 exempt, 2338 state 2339 } 2340 } 2341 } 2342 `,arc:i["a"]` 2343 fragment ArcFragment on ArcDto { 2344 id, 2345 isDraft, 2346 status, 2347 userId, 2348 book { 2349 id, 2350 bookCover, 2351 title, 2352 seriesName, 2353 seriesNumber, 2354 penName, 2355 penNameType, 2356 wordCount, 2357 authorPenName { 2358 id, 2359 name, 2360 image, 2361 firstName, 2362 averageRating, 2363 reviewCount, 2364 followers { 2365 id 2366 } 2367 }, 2368 linkAmazonAsin, 2369 linkAmazonAsinPrint, 2370 linkAudibleUs, 2371 linkAudibleUk, 2372 linkBarnes, 2373 linkBookbub, 2374 linkGoodreads, 2375 linkGoogle, 2376 linkSmashwords, 2377 linkKobo, 2378 linkITunes, 2379 smashwordsCouponCode, 2380 linkITunesAudio, 2381 linkBarnesAudio, 2382 linkGoogleAudio, 2383 linkGoodreadsAudio, 2384 linkKoboAudio, 2385 linkBookbubAudio, 2386 linkStoryGraph, 2387 linkStoryGraphAudio, 2388 description, 2389 audience, 2390 keywords, 2391 releaseDate, 2392 categories { 2393 id, 2394 name, 2395 translations { 2396 locale 2397 name 2398 } 2399 }, 2400 userId, 2401 epubFile, 2402 epubPreviewFile, 2403 epubFileSizeBytes, 2404 pdfFile, 2405 pdfFileSizeBytes, 2406 language 2407 }, 2408 arcTeam { 2409 id, 2410 name, 2411 description, 2412 defaultDisclaimer, 2413 userIsFollowing, 2414 averageRating, 2415 reviewCount, 2416 arcTeamMembers { 2417 id, 2418 userId, 2419 status 2420 } 2421 }, 2422 claims { 2423 id, 2424 review { 2425 id, 2426 rating, 2427 sites { 2428 id, 2429 status 2430 } 2431 } 2432 }, 2433 stats { 2434 reviewCount, 2435 averageRating, 2436 delayedClaimed, 2437 cancelledCount, 2438 newReviewCount, 2439 newReviewActivityCount, 2440 nextNotification { 2441 statusDate, 2442 code 2443 } 2444 } 2445 specialInformation, 2446 arcType, 2447 discoverableType, 2448 participationType, 2449 copyCountType, 2450 copyCount, 2451 seriesLimitType, 2452 reviewFlags, 2453 optionalReviewFlags, 2454 requiredReviewCount, 2455 optionalReviewCount, 2456 calculatedReviewFlags, 2457 calculatedOptionalReviewFlags, 2458 calculatedRequiredReviewCount, 2459 calculatedOptionalReviewCount, 2460 calculatedRequiredSitesCount, 2461 liveDate, 2462 liveDateStr, 2463 reviewDays, 2464 stopDownloadDate, 2465 stopDownloadDateStr, 2466 neverEndingPrivate, 2467 usDownloadCodes, 2468 ukDownloadCodes, 2469 authorsDirectDownloadCodes, 2470 koboDownloadCodes, 2471 participationPreventionType, 2472 siteWideParticipationPreventionType, 2473 dueDate, 2474 dueDateStr, 2475 dueCutOffDate, 2476 dueCutOffDateStr, 2477 vipExclusiveAccessDays, 2478 importedId, 2479 alertFlags, 2480 viewCount, 2481 impressionCount, 2482 fileUpdateNotificationSentDate, 2483 canClaim, 2484 isSaved, 2485 saveCount 2486 } 2487 `},r={reviewClaim:i["a"]` 2488 fragment ArcReviewClaimFragment on ArcClaimDto { 2489 ...ArcClaimFragment, 2490 arc { 2491 id, 2492 dueDate, 2493 dueCutOffDate, 2494 viewCount, 2495 impressionCount, 2496 book { 2497 id, 2498 title, 2499 penName, 2500 linkAmazonAsin, 2501 linkAudibleUs, 2502 linkAudibleUk, 2503 linkBarnes, 2504 linkBookbub, 2505 linkGoodreads, 2506 linkGoogle, 2507 linkSmashwords, 2508 linkKobo, 2509 linkITunes, 2510 smashwordsCouponCode, 2511 linkITunesAudio, 2512 linkBarnesAudio, 2513 linkGoogleAudio, 2514 linkGoodreadsAudio, 2515 linkKoboAudio, 2516 linkBookbubAudio, 2517 linkStoryGraph, 2518 linkStoryGraphAudio, 2519 authorPenName { 2520 id, 2521 name, 2522 image 2523 }, 2524 bookCover, 2525 description, 2526 userId, 2527 epubFile, 2528 epubPreviewFile 2529 }, 2530 arcTeam { 2531 id, 2532 arcTeamMembers { 2533 id 2534 status, 2535 arcTeamId, 2536 user { 2537 id 2538 } 2539 } 2540 } 2541 } 2542 }, 2543 ${a.claim} 2544 `}},"940e":function(e,t,o){"use strict";o.d(t,"d",function(){return r}),o.d(t,"c",function(){return n}),o.d(t,"a",function(){return s}),o.d(t,"b",function(){return l});var i=o("1b59");const a=o("1b6c"),r=e=>{const t=a.outerWidth/2-e.w/2,o=a.outerHeight/2-e.h/2,i=a.open(e.url,e.title,`\n popup=true,\n width=${e.w},\n height=${e.h},\n top=${o},\n left=${t},\n title=${e.title},\n noopener=false\n `);return null===i||void 0===i||i.focus(),i},n=()=>!(!a.Capacitor||!("function"===typeof a.Capacitor.isNativePlatform&&a.Capacitor.isNativePlatform()||a.Capacitor.isNative)),s=()=>{let e=!1;return(a.location&&a.location.pathname.startsWith("/reviewer")||n())&&(e=!0),e},l=(e,t,o="...",a=void 0)=>Object(i["x"])(e,t,o,a)},"9b23":function(e,t,o){"use strict";o.d(t,"a",function(){return c}),o.d(t,"d",function(){return y}),o.d(t,"e",function(){return k}),o.d(t,"c",function(){return D}),o.d(t,"g",function(){return I}),o.d(t,"b",function(){return be}),o.d(t,"f",function(){return _e});var i=o("8b32"),a=o("e9a2"),r=o("b189"),n=o("d77f"),s=o("0bd8");const l=Object.assign(Object.assign({},n["b"]),{secondary:{type:Boolean,default:!1},warning:{type:Boolean,default:!1},active:{type:Boolean},disable:{type:Boolean,default:!1},large:{type:Boolean,default:!1},asLink:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}});function d(e,t){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t}),r=Object(i["ref"])(0),l=Object(i["computed"])(()=>{var e;return"submit"===(null===(e=o.$vnode.data.attrs)||void 0===e?void 0:e.type)&&!a.isFormValid.value}),d=()=>a.getRenderProps({disable:e.disable,outline:!1}),c=()=>a.getClasses({"bs-btn--active":e.active,"bs-btn--secondary":e.secondary,"bs-btn--disabled":e.disable,"bs-btn--warning":e.warning,"bs-btn--large":e.large,"bs-btn--as-link":e.asLink,"bs-btn--flat":e.flat,"bs-btn--icon-only":e.iconOnly}),u=()=>({click:e=>{r.value+=1,1===r.value&&t("click",e),setTimeout(()=>{r.value=0},500)}});return Object.assign(Object.assign({},a),{clickCounter:r,isDisabled:l,getBtnProps:d,getBtnClasses:c,clickHandler:u})}var c=Object(i["defineComponent"])({name:"BsBtn",props:l,setup(e,{emit:t}){return Object.assign({},d(e,t))},methods:{renderActiveIcon(e){if(!1!==this.active)return e(r["a"],{props:{name:"icon-check"},staticClass:"bs-btn-active__icon"})}},render(e){return e(a["a"],{staticClass:"bs-btn",class:this.getBtnClasses(),props:this.getBtnProps(),on:this.getListeners(this.clickHandler()),attrs:this.getAttributes(Object.assign(Object.assign({},this.$attrs),{ripple:!this.iconOnly&&!this.asLink}))},[this.renderActiveIcon(e),this.slot(this,"default")])}}),u=o("aeba");function p(e,t,o,i){const a={borderless:!0,value:t.value,stackLabel:!0,bottomSlots:!0,hint:t.autoSaveMessage,hideBottomSpace:void 0!==t.$attrs["hide-bottom-sp
2544ace"]},r=Object.assign({},t.getScopedSlots(e));return delete r.default,e(u["a"],{staticClass:"bs-field "+o,class:t.getClasses(),props:t.getRenderProps(a),on:t.getListeners(),scopedSlots:r},[i])}var b=Object(i["defineComponent"])({name:"BsToggle",props:Object.assign(Object.assign({},n["b"]),{value:{type:[String,Number],default:void 0,validator:e=>"string"===typeof e||"number"===typeof e||null===e},options:{type:Array,default:void 0},evenSpacing:{type:Boolean,default:!0},toggleWrapperClass:{type:String,default:void 0},toggleClass:{type:String,default:void 0},navigable:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])();return Object.assign({},Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value,autoSaveMethod:""}))},methods:{updateUrl(e){if(this.navigable&&history.pushState&&void 0!==e){const t=window.location.href.indexOf("#"),o=-1===t?window.location.href:window.location.href.substr(0,window.location.href.indexOf("#"));history.pushState(null,"",o+`#${e}`)}},renderOption(e,t){return e("div",{staticClass:"bs-toggle__option col",class:[{"bs-toggle__option--active":this.value===t.value,"bs-toggle__option--even-spacing":this.evenSpacing,"bs-toggle__option--disabled":t.disable}],on:{click:()=>{t.disable||(this.$emit("input",t.value),this.updateUrl(t.value),this.doAutoSave())}},attrs:this.getAttributes()},[t.label])},renderOptions(e){return this.options.map(t=>this.renderOption(e,t))},renderToggle(e){return e("div",{staticClass:"bs-toggle row",class:this.toggleClass},this.renderOptions(e))},renderContainer(e){return e("div",{staticClass:"full-width",class:this.toggleWrapperClass},[this.renderToggle(e)])}},mounted(){if(this.navigable){const e=this.$route.hash;void 0!==e&&""!==e&&this.$emit("input",parseInt(e.replace("#","")))}},render(e){return p(e,this,"bs-toggle__container",this.renderContainer(e))}}),v=o("14f4"),m=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o},f=v["d"].stopAndPrevent,y=Object(i["defineComponent"])({name:"BsForm",props:Object.assign({},n["b"]),setup(e,{emit:t}){const o=Object(s["a"])(),i=Object(n["c"])({vm:o,props:e,emit:t}),{reset:a}=i,r=m(i,["reset"]);return Object.assign({},r)},methods:{validateForm(){const e=this.validateComponentTree(this.$children);return Promise.resolve(e)},resetComponentTree(e){for(const t of e)t.$children.length>0&&this.resetComponentTree(t.$children),void 0!==t.reset&&t.reset()},reset(){this.resetComponentTree(this.$children)}},render(e){return e("form",{staticClass:"bs-form",class:this.getClasses(),props:this.getRenderProps(),on:this.getListeners({submit:e=>{void 0!==e&&f(e),this.validateForm().then(t=>{!0===t&&(void 0!==this.$listeners.submit?this.$emit("submit",e):void 0!==e&&void 0!==e.target&&"function"===typeof e.target.submit&&e.target.submit())})}})},this.slot(this,"default"))}}),g=o("b2df"),h=o("5700"),O=o("6f14"),w=o("1b59"),j=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},I=Object(i["defineComponent"])({name:"BsTabStepper",props:Object.assign(Object.assign({},n["b"]),{value:{type:Number,default:void 0},tabs:{type:Array,default:void 0},pad:{type:Array,default:void 0},doneLabel:{type:String,default:void 0},returnLabel:{type:String,default:void 0},returnTo:{type:[String,Function],default:void 0},requiredFieldGuardSubject:{type:String,default:void 0},doBeforeNext:{type:Function,default:void 0},hideNext:{type:Boolean},hideActions:{type:Boolean},disableNext:{type:Boolean},useSlotKey:{type:Boolean},guardRequiredFields:{type:Boolean},showRequiredFieldBanner:{type:Boolean}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value}),r=Object(i["ref"])(!1),l=Object(i["ref"])(!1),d=Object(i["ref"])([]),c=Object(i["computed"])(()=>{const t=100/e.tabs.length*e.value;return`${t}%`}),u=Object(i["computed"])(()=>e.value<e.tabs.length?e.value+1:e.tabs.length),p=Object(i["computed"])(()=>e.value>1?e.value-1:e.value),b=Object(i["computed"])(()=>e.guardRequiredFields&&r.value),v=Object(i["computed"])(()=>!1!==e.showRequiredFieldBanner&&b.value),m=Object(i["computed"])(()=>Object(w["T"])(e.requiredFieldGuardSubject)?e.requiredFieldGuardSubject:"item"),f=o;return Object(i["onMounted"])(()=>{f.scheduleRequiredFieldSync()}),Object(i["onUpdated"])(()=>{f.scheduleRequiredFieldSync()}),Object(i["onBeforeUnmount"])(()=>{f.clearRequiredFieldListeners()}),Object.assign(Object.assign({},a),{hasMissingRequiredFields:r,isSyncingRequiredFields:l,requiredFieldListeners:d,loadingWidth:c,nextStep:u,previousStep:p,hasBlockingRequiredFields:b,shouldShowRequiredFieldBanner:v,requiredFieldGuardSubjectLabel:m})},methods:{getSlot(e){return this.useSlotKey?this.$scopedSlots[e.slotKey]:this.$scopedSlots[this.value]},updateUrl(e){Object(w["R"])(e)},previous(){var e;this.value===this.previousStep?void 0!==this.returnTo?"function"===typeof this.returnTo?this.returnTo():this.$router.push(this.returnTo):this.$emit("return"):(this.updateUrl(this.previousStep),null===(e=this.$refs.bsStepperTabPanels)||void 0===e||e.previous())},validateForm(){return j(this,void 0,void 0,function*(){var e,t;const o=null===(t=yield null===(e=this.getCurrentFormRef())||void 0===e?void 0:e.validateForm())||void 0===t||t,i=this.validateRequiredFieldGuard();return o&&i})}
2544,submitForm(){this.next().catch(()=>{})},next(){return j(this,void 0,void 0,function*(){var e,t,o;if(this.disableNext)return;const i=null===(t=yield null===(e=this.getCurrentFormRef())||void 0===e?void 0:e.validateForm())||void 0===t||t;if(i&&(!this.guardRequiredFields||this.validateRequiredFieldGuard())&&("function"!==typeof this.doBeforeNext||(yield this.doBeforeNext()))){const e=this.nextStep===this.value;e?this.$emit("done"):(this.updateUrl(this.nextStep),null===(o=this.$refs.bsStepperTabPanels)||void 0===o||o.next())}})},getCurrentFormRef(){const e=Array.isArray(this.$refs.bsForm)?this.$refs.bsForm:[this.$refs.bsForm];return e.find(e=>this.getFormStepValue(e)===this.value)||e.find(e=>void 0!==e)},getFormStepValue(e){var t,o,i,a,r,n,s;return(null===(i=null===(o=null===(t=null===e||void 0===e?void 0:e.$parent)||void 0===t?void 0:t.$options)||void 0===o?void 0:o.propsData)||void 0===i?void 0:i.name)||(null===(s=null===(n=null===(r=null===(a=null===e||void 0===e?void 0:e.$parent)||void 0===a?void 0:a.$vnode)||void 0===r?void 0:r.componentOptions)||void 0===n?void 0:n.propsData)||void 0===s?void 0:s.name)},getTrackedRequiredComponents(e,t){var o;void 0===e&&(e=(null===(o=this.getCurrentFormRef())||void 0===o?void 0:o.$children)||[]),void 0===t&&(t=new Set);const i=[];for(const a of e){if(this.isTrackedRequiredComponent(a)){const e=this.getRequiredComponentTrackingKey(a);t.has(e)||(t.add(e),i.push(a))}a.$children.length>0&&i.push(...this.getTrackedRequiredComponents(a.$children,t))}return i},getMissingRequiredComponents(e=this.getTrackedRequiredComponents()){return e.filter(e=>this.isMissingRequiredValue(e))},getComponentModelExpression(e){var t,o,i;const a=null===(o=null===(t=e.$vnode)||void 0===t?void 0:t.data)||void 0===o?void 0:o.model;return(null===a||void 0===a?void 0:a.expression)||(null===(i=e.$attrs)||void 0===i?void 0:i["data-model"])},getRequiredComponentTrackingKey(e){const t="function"===typeof e.requiredFieldTrackingKey?e.requiredFieldTrackingKey():void 0;return this.getComponentModelExpression(e)||t||`required-component-${e._uid}`},getComponentValue(e){var t,o,i;if(void 0!==e.componentValue)return e.componentValue;const a=null===(o=null===(t=e.$vnode)||void 0===t?void 0:t.data)||void 0===o?void 0:o.model;return void 0!==(null===a||void 0===a?void 0:a.value)?a.value:null===(i=e.$attrs)||void 0===i?void 0:i.value},isMissingRequiredValue(e){if("function"===typeof e.isRequiredValueMissing)return e.isRequiredValueMissing();const t=this.getComponentValue(e);return!("number"!==typeof t||!isNaN(t))||(Array.isArray(t)?0===t.length:"function"===typeof e.isComponentIsValid?!e.isComponentIsValid(t):null===t||""===t||void 0===t)},hasRequiredFlag(e){var t;const o=null===(t=e.$attrs)||void 0===t?void 0:t.required;return!0===e.required||""===o||!0===o||"true"===o},isTrackedRequiredComponent(e){var t;const o=null===(t=e.$attrs)||void 0===t?void 0:t.disable;return this.hasRequiredFlag(e)&&!0!==o&&("function"===typeof e.validate&&void 0!==this.getComponentModelExpression(e)||"function"===typeof e.isRequiredValueMissing)&&"true"!==o},setRequiredComponentError(e,t){"function"!==typeof e.setRequiredFieldError?(e.componentState=n["a"].Invalid,e.errorMessage=t):e.setRequiredFieldError(t)},clearRequiredComponentError(e){"function"===typeof e.clearRequiredFieldError&&e.clearRequiredFieldError()},validateRequiredFieldGuard(){if(!this.guardRequiredFields)return!0;const e=this.getTrackedRequiredComponents(),t=this.getMissingRequiredComponents(e);this.hasMissingRequiredFields=t.length>0;for(const o of e)t.includes(o)||this.clearRequiredComponentError(o);for(const o of t)this.setRequiredComponentError(o,this.$tc("system.labels.requiredField"));return 0===t.length},clearRequiredFieldListeners(){for(const{component:e,handler:t}of this.requiredFieldListeners)e.$off("input",t);this.requiredFieldListeners=[]},syncRequiredFieldState(){if(!this.guardRequiredFields)return this.hasMissingRequiredFields=!1,void this.clearRequiredFieldListeners();const e=this.getTrackedRequiredComponents(),t=this.getMissingRequiredComponents(e);this.clearRequiredFieldListeners();for(const o of e){const e=()=>this.scheduleRequiredFieldSync();o.$on("input",e),this.requiredFieldListeners.push({component:o,handler:e})}for(const o of e)t.includes(o)||this.clearRequiredComponentError(o);this.hasMissingRequiredFields=t.length>0},scheduleRequiredFieldSync(){this.guardRequiredFields&&!this.isSyncingRequiredFields&&(this.isSyncingRequiredFields=!0,this.$nextTick(()=>{this.isSyncingRequiredFields=!1,this.syncRequiredFieldState()}))},scrollToFirstMissingRequiredField(){const e=this.getMissingRequiredComponents(),t=e[0];if(void 0!==t){for(const t of e)this.setRequiredComponentError(t,this.$tc("system.labels.requiredField"));this.hasMissingRequiredFields=!0,this.$nextTick(()=>{const e=t.$el;if("function"===typeof t.scrollToRequiredField)t.scrollToRequiredField();else if(null===e||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"}),"function"===typeof t.focus)t.focus();else{const t=null===e||void 0===e?void 0:e.querySelector("input, textarea, button, [tabindex]");null===t||void 0===t||t.focus()}})}},renderLoadingBar(e){return e("div",{staticClass:"bs-stepper__loading-bar"},[e("div",{staticClass:"bs-stepper__loading-bar--progress",style:{width:this.loadingWidth}})])},renderRequiredFieldBanner(e){if(this.shouldShowRequiredFieldBanner)return e(g["a"],{staticClass:"bs-stepper__required-banner bg-bs-r-l text-bs-b",props:{rounded:!0}},[e("span",[this.$t("system.labels.requiredFieldBannerStart",[this.requiredFieldGuardSubjectLabel]).toString(),e(c,{staticClass:"text-bs-g",props:{asLink:!0},on:{click:()=>this.scrollToFirstMissingRequiredField()}},this.$t("system.actions.updateIt").toString()),this.$t("system.labels.requiredFieldBannerEnd").toString()])])},renderContent(e){const t=[];for(const o of this.tabs){const i=this.getSlot(o);t.push(e(O["a"],{staticClass:"bs-stepper__content",props:{name:o.value,disable:o.disable}},[e(y,{ref:"bsForm",on:{submit:()=>
2544this.submitForm()}},["function"===typeof i?i():void 0,this.renderActions(e)])]))}return e(h["a"],{props:{value:this.value},on:{input:e=>this.$emit("input",e)},ref:"bsStepperTabPanels"},[t])},renderDefaultActions(e){const t=this.previousStep,o=this.nextStep,i=this.tabs.find(e=>e.value===this.value),a=this.tabs.filter(e=>e.hidden||e.disable).length,r=o===this.value;if(void 0!==i){let n=a>0?(t-a).toString():t.toString(),s=a>0?(o-a).toString():o.toString();n=Object(w["T"])(i.previousLabel)?i.previousLabel:`Step ${n}`,s=Object(w["T"])(i.nextLabel)?i.nextLabel:`Step ${s}`;const l=[],d=t===this.value&&void 0!==this.returnLabel?this.returnLabel:n;if(l.push(e(c,{staticClass:"bs-stepper__actions-default--left text-bs-g",class:{invisible:t===this.value&&void 0===this.returnLabel},props:{flat:!0,icon:"app:arrow-left"},on:{click:()=>"function"===typeof i.previousAction?i.previousAction():this.previous()},attrs:{["data-model"]:`stepper_action_${d}`}},[e("span",{staticClass:"on-right"},d)])),l.push(e("div",{staticClass:"bs-step
2544per__actions-hint"},[i.actionHint,this.slot(this,"actionsHint")])),!this.hideNext&&!i.hideNext){const t="function"===typeof i.nextAction?{click:()=>{void 0!==i.nextAction&&i.nextAction()}}:void 0,o=r?this.doneLabel||"Finish":s;l.push(e(c,{staticClass:"bs-stepper__actions-default--right text-bs-g",props:{disable:this.shouldShowRequiredFieldBanner||this.disableNext,flat:!0,type:"function"===typeof i.nextAction?void 0:"submit",iconRight:r?void 0:"app:arrow-right-alt"},on:t,attrs:{["data-model"]:o}},[e("span",{staticClass:"on-left"},o)]))}return[e("div",{staticClass:"row justify-between items-center"},l)]}},renderActions(e){const t=void 0===this.$scopedSlots.actions&&!1===this.hideActions;return e("div",{staticClass:"bs-stepper__actions",class:[{"bs-stepper__actions-default":t}]},[t?this.renderDefaultActions(e):this.slot(this,"actions")])}},render(e){return e("div",{staticClass:"bs-stepper"},[this.renderLoadingBar(e),e("div",{class:[{"q-pa-md":this.pad}]},[this.slot(this,"default"),this.slot(this,"banner"),this.renderRequiredFieldBanner(e),this.renderContent(e)])])}}),A=Object(i["defineComponent"])({name:"BsTabStepperTitle",props:Object.assign(Object.assign({},n["b"]),{title:{type:String,default:void 0},description:{type:String,default:void 0},hint:{type:String,default:void 0}}),setup(e,{emit:t}){return Object.assign({},Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}))},methods:{renderTitle(e){if(Object(w["T"])(this.title))return e("h1",{staticClass:"bs-stepper-title__title",domProps:{innerHTML:this.title}})},renderDescription(e){if(Object(w["T"])(this.description))return e("div",{staticClass:"bs-stepper-title__description",domProps:{innerHTML:this.description}})},renderHint(e){if(Object(w["T"])(this.hint))return e("div",{staticClass:"bs-stepper-title__hint",domProps:{innerHTML:this.hint}})},renderTitleContainer(e){return e("div",{staticClass:"bs-stepper-title__content"},[this.renderTitle(e),this.renderDescription(e),this.renderHint(e)])}},render(e){return e("div",{staticClass:"bs-stepper-title"},[this.renderTitleContainer(e),e("div",{staticClass:"bs-stepper-title__actions"},this.slot(this,"default"))])}}),R=o("d262"),k=Object(i["defineComponent"])({name:"BsInput",props:Object.assign(Object.assign({},n["b"]),{password:{type:Boolean,default:!1},search:{type:Boolean,default:!1},hideOptional:{type:Boolean,default:!1},small:{type:Boolean,default:!1},srLabel:{type:Boolean,default:!1},trimAllSpaces:{type:Boolean,default:!1},icon:{type:String,default:void 0},append:{type:String,default:void 0},clearIcon:{type:String,default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t}),r=Object(i["ref"])(!1),l=Object(i["computed"])(()=>a.hasErrors.value?"imp-bs-r-l":o.$attrs["bg-color"]),d=Object(i["computed"])(()=>"number"===o.$attrs.type);return Object.assign(Object.assign({},a),{passwordVisible:r,backgroundColor:l,isNumericField:d})},methods:{triggerAutoSave(){return this.doAutoSave()},setValue(e){this.value=e,(Object(w["T"])(e+"")||Object(w["S"])(e))&&(this.componentState=n["a"].Valid,this.errorMessage="")},focus(){this.$refs.qInput.focus()},resetValidation(){this.$refs.qInput.resetValidation(),this.reset()},normalizeNumericValue(e){if(""===e||null===e||void 0===e)return;const t=parseInt(e);return isNaN(t)?void 0:t},ensureValidIntValue(e){if(!this.isNumericField||""===e||null===e||void 0===e)return;const t=parseInt(e),o=parseInt(this.$attrs.min),i=parseInt(this.$attrs.max);(!Object(w["S"])(e)||t<o||t>i)&&(t<o?this.$emit("input",parseInt(this.$attrs.min)):this.$emit("input",parseInt(this.$attrs.max)))},renderBeforeSlot(e){return e("div",{staticClass:"bs-input__icon"},[e(r["a"],{props:{name:this.icon}})])},renderNumberSlots(e){const t=this.componentValue,o=parseInt(t),i=o===parseInt(this.$attrs.min),a=o===parseInt(this.$attrs.max);return{before:()=>e(c,{props:{icon:"app:minus",iconOnly:!0,primary:i,secondary:!i,disable:i},on:{click:()=>{const e=isNaN(parseInt(t))?0:parseInt(t)-1;void 0!==this.$attrs.min&&e<parseInt(this.$attrs.min)||(this.validate(e),this.$emit("input",e),this.doAutoSave())}},attrs:{["data-cy"]:"decreaseValue"}}),after:()=>e(c,{props:{icon:"app:plus",iconOnly:!0,primary:a,secondary:!a,disable:a},on:{click:()=>{const e=isNaN(parseInt(t))?1:parseInt(t)+1;void 0!==this.$attrs.max&&e>parseInt(this.$attrs.max)||(this.validate(e),this.$emit("input",e),this.doAutoSave())}},attrs:{["data-cy"]:"increaseValue"}})}},renderSearchSlot(e){return{append:()=>e(a["a"],{staticClass:"bs-search-btn",class:{"bs-search-btn__focused":this.$attrs.value},on:{click:()=>this.$emit("search",this.value)},scopedSlots:{default:()=>e(r["a"],{props:{name:"app:magnifier-dense",color:this.$attrs.value?"white":"bs-grey-m",size:".75rem"}})}})}},renderScopedSlots(e){let t={};return this.password&&(t=Object.assign(Object.assign({},t),{append:()=>e(r["a"],{staticClass:"cursor-pointer",props:{name:this.passwordVisible?"app:password-visible":"app:password-hidden"},on:{click:()=>this.passwordVisible=!this.passwordVisible}})})),this.append&&(t=Object.assign(Object.assign({},t),{append:()=>e("span",{staticClass:"font-size-13 text-primary"},this.append)})),this.icon&&(t=Object.assign(Object.assign({},t),{before:()=>this.renderBeforeSlot(e)})),this.isNumericField&&(t=Object.assign(Object.assign({},t),this.renderNumberSlots(e))),this.search&&(t=Object.assign(Object.assign({},t),this.renderSearchSlot(e))),t},renderLabelSlot(e){const t=this.$attrs.label;if(void 0!==t||void 0!==this.$scopedSlots.actions)return e("div",{staticClass:"bs-input-container__label flex justify-between items-center",class:{"sr-only":this.srLabel},attrs:{["aria-hidden"]:!0}},[e("div",{staticClass:"cursor-pointer",on:{click:this.focus}},[t,this.required||this.hideOptional?void 0:e("span",{staticClass:"bs-input__optional"}," (optional)")]),this.$scopedSlots.actions&&e("div",this.slot(this,"actions"))])}},render(e){var t;this.isNumericField&&this.ensureValidIntValue(this.componentValue);const o=this.componentValue,i=this.getRenderProps({stackLabel:!0,value:o,bottomSlots:!1,noErrorIcon:!0,outlined:this.hasErrors,bgColor:this.backgroundColor,type:this.password?this.passwordVisible?"text":"password":this.$attrs.type||"text",clearable:this.search,clearIcon:this.clearIcon?this.clearIcon:"app:close-fat",readonly:this.$attrs.readonly});delete i.label;const a=Object.assign({},this.renderScopedSlots(e)),r=this.$vnode.data;return e("div",{staticClass:"bs-input-container",attrs:{id:null===(t=r.model)||void 0===t?void 0:t.expression}},[this.renderLabelSlot(e),e(R["a"],{ref:"qInput",staticClass:"textarea"===this.$attrs.type?"bs-textarea":"bs-input",class:this.getClasses({"bs-input__search":this.search,"bs-input__search--not-empty":this.search&&this.$attrs.value,"bs-input__icon":this.icon,"bs-input__small":this.small,"b
2544s-input__number":this.isNumericField}),props:i,on:this.getListeners({blur:()=>{this.validate(this.$attrs.value),this.$emit("blur")},input:e=>{!this.search||null!==e&&void 0!==e||(e=""),this.trimAllSpaces&&(e=e.replace(" ","")),this.$emit("input",this.isNumericField?this.normalizeNumericValue(e):e)},keyup:e=>{const t=e.target.value;this.ensureValidIntValue(t)},clear:()=>{this.$emit("clear",this.isNumericField?parseInt(this.$attrs.min):"")}}),attrs:this.getAttributes({["data-cy"]:this.$attrs["data-cy"],["data-hj-allow"]:this.$attrs["data-hj-allow"],inputmode:this.isNumericField?"numeric":this.$attrs.inputmode,pattern:this.isNumericField?"[0-9]+":this.$attrs.pattern}),scopedSlots:this.getScopedSlots(e,a)},[this.slot(this,"default")])])}}),S=o("dedb"),T=Object(i["defineComponent"])({name:"BsCheckbox",props:Object.assign({},n["b"]),setup(e,{emit:t}){const o=Object(s["a"])(),i=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:"",isComponentValid:e=>!0===e});return i.forceTriggerOnChange.value=!0,Object.assign({},i)},render(e){return e(u["a"],{ref:"bsCheckbox",staticClass:"bs-checkbox",class:this.getClasses({"bs-checkbox--dense":void 0!==this.$attrs.dense}),props:this.getValidationProps({borderless:!0,bottomSlots:!0,noErrorIcon:!0,dense:!0,stackLabel:!0,hideBottomSpace:void 0!==this.$attrs["hide-bottom-space"]}),scopedSlots:Object.assign({error:()=>this.renderErrorSlot(e)},this.renderAutoSaveMessage(e))},[e(S["a"],{staticClass:"flex-start",props:this.getRenderProps({keepColor:!0,color:this.$attrs.color||"bs-g"}),on:this.getListeners(),scopedSlots:this.getScopedSlots(e),attrs:this.getAttributes()})])}}),F=o("b25e"),C=o("dc60"),E=Object(i["defineComponent"])({name:"BsRadio",props:Object.assign(Object.assign({},n["b"]),{stacked:{type:Boolean,default:!1},hideBottomSpace:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])(),i=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:""});return i.stopSaveOnFirstSet.value=!0,i.forceTriggerOnChange.value=!0,Object.assign({},i)},render(e){var t;const o={type:"radio"};return(null===(t=this.$attrs)||void 0===t?void 0:t.options)?e(u["a"],{staticClass:"bs-radio-container",class:this.getClasses(),props:this.getValidationProps({borderless:!0,bottomSlots:!0,noErrorIcon:!0,dense:!0,stackLabel:!0,hideBottomSpace:this.hideBottomSpace}),scopedSlots:Object.assign({error:()=>this.renderErrorSlot(e)},this.renderAutoSaveMessage(e))},[e(F["a"],{staticClass:"bs-radio",class:this.stacked?"bs-radio__stacked":void 0,props:this.getRenderProps(o),on:this.getListeners(),attrs:this.getAttributes()},this.slot(this,"default"))]):e(C["a"],{staticClass:"bs-radio",props:Object.assign({},this.getRenderProps(o)),on:this.getListeners(),attrs:this.getAttributes()},this.slot(this,"default"))}}),D=Object(i["defineComponent"])({name:"BsClickable",props:Object.assign(Object.assign({},n["b"]),{to:{type:String,default:void 0},preventNavigation:{type:Boolean,default:!1}}),setup(e,{emit:t}){return Object.assign({},Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}))},render(e){return e(this.to?"router-link":"div",{staticClass:"bs-clickable",class:this.getClasses({"bs-clickable__navigation-prevented":this.preventNavigation}),on:this.getListeners(),attrs:{to:this.to||void 0,role:this.to?"link":"button",tabindex:0}},this.slot(this,"default"))}}),P=o("0e8e"),$=Object(i["defineComponent"])({name:"BsTooltip",props:Object.assign(Object.assign({},n["b"]),{text:{type:String,default:void 0},tooltipOffset:{type:Array,default:void 0},tooltipOffsetY:{type:Number,default:void 0},tooltipAnchor:{type:String,default:void 0},tooltipSelf:{type:String,default:void 0},tooltipHideDelay:{type:Number,default:void 0},tooltipWithPointerEvents:{type:Boolean,default:!1}}),setup(e,{emit:t}){return Object.assign({},Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}))},methods:{renderTooltip(e){return e(P["a"],{props:{contentClass:{"bs-tooltip__tip":!0,"bs-tooltip__tip--with-pointer-events":this.tooltipWithPointerEvents},offset:this.tooltipOffset||[-4,(this.tooltipOffsetY||0)+30],anchor:this.tooltipAnchor||"bottom left",self:this.tooltipSelf||"center left",hideDelay:this.tooltipHideDelay}},[this.text,this.slot(this,"default")])}},render(e){const t={icon:"app:question-circle",size:".9375rem",color:"transparent",textColor:"bs-g",iconOnly:!0},o={default:()=>this.renderTooltip(e)};return e(c,{staticClass:"bs-tooltip",props:this.getRenderProps(t),scopedSlots:this.getScopedSlots(e,o),on:this.getListeners()})}}),N=o("9597"),L=o("2858"),B=Object(i["defineComponent"])({name:"BsChipBox",props:Object.assign(Object.assign({},n["b"]),{value:{type:[String,Array],default:void 0},returnArray:{type:Boolean,default:!1},triggerChars:{type:Array,default:()=>[","]},emailInput:{type:Boolean,default:!1},readonlyValues:{type:Array,default:void 0},maxCharsPerEntry:{type:Number,default:void 0},maxEntries:{type:Number,default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=o,r=Object(i["ref"])(""),l=Object(i["ref"])([]),d=Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value,doBeforeAutoSave:()=>{Object(w["T"])(r.value)&&a.setContent(r.value)}});return Object(i["onMounted"])(()=>{o.$refs.bsChipBox.$refs.target.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("text");t.indexOf(",")>-1?a.setCsvData(t):t.indexOf("\n")>-1?a.setCsvData(t,"\n"):(a.setContent(t),o.$emit("pasteComplete"))})}),Object.assign(Object.assign({}
2544,d),{rollingChange:r,invalidValues:l})},methods:{setContent(e){const t=this.$refs.bsChipBox;t.add(e.replace("\n",""),!0),this.rollingChange=""},setCsvData(e,t=","){const o=e.split(t),i=o.map(e=>e.trim()).filter(e=>!!e);for(let a=0;a<i.length;a++){const e=i[a];e&&setTimeout(()=>{this.setContent(e),a===i.length-1&&this.$emit("pasteComplete")},50)}},renderChip(e,t){var o;const i=this.invalidValues.indexOf(t.opt)>-1,a=null===(o=this.readonlyValues)||void 0===o?void 0:o.includes(t.opt);return e(be,{staticClass:"text-bold",class:a?"bs-chip__readonly":"",props:{dense:!0,color:i?"bs-r":a?"bs-lb-r":"bs-g",textColor:a&&!i?"bs-lb":"white"}},[e("span",{staticClass:"ellipsis"},[t.opt]),!a&&e(r["a"],{staticClass:"cursor-pointer",props:{name:"app:close",size:".5rem"},on:{click:()=>t.removeAtIndex(t.index)}})])}},render(e){const t=this.value&&this.value.indexOf(",")>-1?this.value.split(",").map(e=>e.trim()).filter(e=>!!e):Array.isArray(this.value)?this.value:this.value?[this.value]:null,o={filled:!0,useInput:!0,useChips:!0,multiple:!0,hideDropdownIcon:!0,inputDebounce:"0",newValueMode:"add-unique",bottomSlots:!0,value:t,rules:[e=>{if(!e||0===e.length)return!0;let t=!1;for(const o of e)""!==o&&!L["validate"](o)&&this.emailInput?(this.invalidValues.push(o),this.componentState=n["a"].Invalid,this.errorMessage=this.$tc("system.errors.chipBox.invalidEmail
2544sDetected"),t=!0):t||(this.componentState=n["a"].Valid);return this.componentState===n["a"].Valid},e=>{if(!e||0===e.length)return!0;for(const t of e)if(void 0!==this.maxCharsPerEntry&&t&&t.length>this.maxCharsPerEntry)return this.invalidValues.push(t),this.componentState=n["a"].Invalid,this.errorMessage=this.$tc("system.errors.chipBox.maxCharsPerEntry",void 0,{userEnteredValue:t,maxCharsPerEntry:this.maxCharsPerEntry}),!1;return this.componentState===n["a"].Valid}]},i={keydown:e=>{9!==e.keyCode&&13!==e.keyCode&&9!==e.which&&13!==e.which&&"Tab"!==e.key&&"Enter"!==e.key&&"Tab"!==e.code&&"Enter"!==e.code||!Object(w["T"])(e.target.value)||(e.target.value.indexOf(",")>-1?this.setCsvData(e.target.value):this.setContent(e.target.value))},keyup:e=>{if(this.rollingChange=e.target.value,this.triggerChars.includes(e.key)){let t=e.target.value;this.triggerChars.forEach(e=>t=t.replace(e,"")),this.setContent(t)}},input:e=>{const t=e.reduce((e,t)=>t&&t.includes(",")?[...e,...t.split(",")]:[...e,t],[]),o=[...new Set(t)],i=this.returnArray?o:o.join(","),a=this.$refs.bsChipBox;void 0!==this.maxEntries&&o.length>this.maxEntries||(this.$emit("input",i),a.updateInputValue("",!0))}};return e(N["a"],{ref:"bsChipBox",staticClass:"bs-chip-box",class:this.getClasses(),props:this.getRenderProps(o),on:this.getListeners(i),attrs:this.getAttributes(),scopedSlots:this.getScopedSlots(e,{["selected-item"]:t=>this.renderChip(e,t)})},[this.slot(this,"default"),this.slot(this,"hint")])}}),x=o("dffb"),_=o("22d0"),U=o("a737"),M=o("b4f0");const{formatDate:G,extractDate:q}=x["b"];var V=Object(i["defineComponent"])({name:"BsDate",props:Object.assign(Object.assign({},n["b"]),{value:{type:[Date,String],default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value}),r=Object(i["computed"])(()=>{if(e.value)return"string"===typeof e.value?e.value:G(e.value,M["a"])}),l=Object(i["computed"])(()=>{var t;const i=e=>{if(!e)return;const t=e instanceof Date?e:new Date(e);return isNaN(t.getTime())?{label:o.$tc("system.errors.invalidDate")}:void 0};return[...null!==(t=e.validation)&&void 0!==t?t:[],i]});return Object.assign(Object.assign({},a),{dateValue:r,dateValidation:l})},methods:{renderScopedSlots(e){return{append:()=>this.$attrs.disable?void 0:e(r["a"],{props:{name:"app:date-picker",size:"1.25rem",color:"bs-g"}},[e(U["a"],{ref:"BsDateProxy"},[e(_["a"],{props:{value:this.dateValue,color:"bs-g",minimal:!0,options:this.$attrs.options},on:{input:e=>{this.$refs.BsDateProxy.hide(),this.$emit("input",q(e,M["a"])),this.doAutoSave()}}})])])}}},render(e){null===this.value&&this.$emit("input",void 0);const t={required:this.required,autoSave:this.autoSave,disable:this.$attrs.disable,mask:"date",rules:["date"],validation:this.dateValidation},o=Object.assign({},this.renderScopedSlots(e));return e(k,{staticClass:"bs-date",class:this.getClasses(),props:this.getRenderProps(t),on:this.getListeners(),attrs:this.getAttributes({value:this.dateValue}),scopedSlots:this.getScopedSlots(e,o)},this.slot(this,"default"))}}),W=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},Y=Object(i["defineComponent"])({name:"BsTabbedLayout",props:Object.assign(Object.assign({},n["b"]),{value:{type:Number,default:void 0},tabs:{type:Array,default:void 0},title:{type:String,default:void 0},nextStepNavigationOnly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},blockForwardNavigation:{type:Boolean,default:!1},stepTitle:{type:String,default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])();return Object.assign({},Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value}))},methods:{renderHeader(e){return e("h2",{staticClass:"bs-h4 bs-tabbed-layout__header"},[this.title])},onTabClick(e){return W(this,void 0,void 0,function*(){if(this.disabled)return;const t=this.tabs.find(e=>e.value===this.value);let o=!(this.blockForwardNavigation&&e.value>this.value)&&(!this.nextStepNavigationOnly||e.value<=this.value+1||(null===t||void 0===t?void 0:t.stepComplete));if(!o&&this.nextStepNavigationOnly&&e.value>this.value+1&&!(this.blockForwardNavigation&&e.value>this.value)&&(o=yield this.$refs.bsTabStepper.validateForm()),o){const t=this.value<e.value;let o=!0;if(t&&(o=yield this.$refs.bsTabStepper.validateForm()),o||!t){if(history.pushState){const t=window.location.href.indexOf("#"),o=-1===t?window.location.href:window.location.href.substr(0,window.location.href.indexOf("#"));history.pushState(null,"",o+`#${e.value}`)}this.$emit("input",e.value)}}})},renderTab(e,t){const o=e.value<this.value,i=e.value===this.value,a=e.value===this.value+1;return e.hidden?void 0:t(D,{staticClass:"bs-tabbed-layout__tab",class:[{"bs-tabbed-layout__tab--past":o,"bs-tabbed-layout__tab--active":i,"bs-tabbed-layout__tab--future":!1===o&&!i,"bs-tabbed-layout__tab--next-option":a,"bs-tabbed-layout__tab--is-edit":e.isEditMode,"cursor-pointer":e.stepComplete}],on:{click:()=>this.onTabClick(e)}}
2544,[this.renderIcon(t,e,o,i),t("span",e.label)])},renderIcon(e,t,o,i){return!1!==t.stepComplete?e("div",{staticClass:"bs-tabbed-layout__tab-count"},[e(r["a"],{props:{name:"app:check-filled",color:"bs-g",size:"1.375rem"}})]):e("div",{staticClass:"bs-tabbed-layout__tab-count"},[e(r["a"],{props:{name:i?"app:active":o?"app:check-filled":"app:inactive",color:i||!o?"bs-grey-m":"bs-g",size:"1.375rem"}})])},renderTabs(e){const t=[];for(const o of this.tabs)t.push(this.renderTab(o,e));return e("div",{staticClass:"bs-tabbed-layout__tabs"},[t])},renderContent(e){return e("div",{staticClass:"bs-tabbed-layout__content"},[this.renderTabs(e),e("div",{staticClass:"bs-tabbed-layout__inner"},[this.stepTitle&&e("h1",{staticClass:"bs-h2"},this.stepTitle),e(I,{ref:"bsTabStepper",props:Object.assign({value:this.value,tabs:this.tabs},this.$attrs),on:{input:e=>this.$emit("input",e),done:e=>this.$emit("done",e),return:()=>this.$emit("return")},scopedSlots:this.$scopedSlots},[this.slot(this,"default")])])])}},created(){const e=this.$route.hash;void 0!==e&&""!==e&&this.$emit("input",parseInt(e.replace("#","")))},render(e){return e("div",{staticClass:"bs-tabbed-layout",class:{"bs-tabbed-layout--next-only":this.nextStepNavigationOnly,"bs-tabbed-layout--disabled":this.disabled}},[this.renderHeader(e),this.renderContent(e)])}}),H=Object(i["defineComponent"])({name:"BsFormField",props:Object.assign(Object.assign({},n["b"]),{wrap:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},multiLineHint:{type:Boolean,default:!1}}),setup(e,{emit:t}){return Object.assign({},Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}))},methods:{renderTitleSection(e){if(this.$slots.title||this.$slots.hint)return e("div",{staticClass:"bs-form-field__container"},[this.$slots.title&&e("div",{staticClass:"bs-form-field__title",attrs:{"aria-hidden":!0}},this.slot(this,"title")),this.$slots.hint&&e("p",{staticClass:"bs-form-field__hint",class:this.multiLineHint?"bs-form-field__hint--multiline":void 0},this.slot(this,"hint"))])},renderWarningSection(e){if(this.$slots.warning)return e("div",{staticClass:"bs-form-field__warning"},this.slot(this,"warning"))},renderErrorSection(e){if(this.$slots.warning)return e("div",{staticClass:"bs-form-field__error"},this.slot(this,"error"))}},render(e){return e("div",{staticClass:"bs-form-field",class:{"bs-form-field--wrap":this.wrap,"bs-form-field--dense":this.dense},on:this.getListeners()},[this.renderTitleSection(e),this.renderWarningSection(e),this.renderErrorSection(e),e("div",{staticClass:"bs-form-field__content"},this.slot(this,"default"))])}}),K=o("ed33"),z=o("4708"),X=Object(i["defineComponent"])({name:"BsUpgrade",props:{role:{type:String,required:!0},permissionName:{type:String,required:!0},params:{type:Object,default:void 0},inline:{type:Boolean,default:!1}},setup(){return Object.assign({},Object(K["a"])())},methods:{renderTitle(e){var t,o;const i=`system.permissions.${this.permissionName}.title`;if(!this.$te(i))return;const a=-1===(null===(t=this.params)||void 0===t?void 0:t.copyCountLimit)?this.$tc("system.labels.unlimited"):null===(o=this.params)||void 0===o?void 0:o.copyCountLimit;return e("strong",this.$t(i,{maxParticipantCount:a}).toString())},renderContent(e,t){var o;if(void 0===this.role)return[void 0];const i=this.$tc(`system.labels.roles.author.${this.role}`),a=this.$t(`system.permissions.${this.permissionName}.explanation`,{planName:i.toLowerCase(),maxRunningArcsCount:null===(o=this.params)||void 0===o?void 0:o.maxRunningArcsCount}),r=this.authenticatedUser.permissionQuery.isOnPaidPlan?`/settings/billing/select-plan/${this.role}/month/upgrade`:"/settings/billing/select-plan";return t?Object(z["a"])(this,"default"):[this.renderTitle(e),e("span",a.toString()),e(c,{props:{to:r,label:this.$t("system.actions.upgrade")}})]}},render(e){const t=this.hasTieredPermission(this.role);return e("div",{staticClass:t?"":"bs-upgrade",class:!t&&this.inline?"bs-upgrade__inline":"",attrs:{"data-cy":!t&&this.permissionName}},this.renderContent(e,t))}}),Q=o("8e9d"),J=o("c30a"),Z=o("ec1d"),ee=o("840e"),te=o("26ad"),oe=o("940e"),ie=Object(i["defineComponent"])({name:"BsSelect",props:Object.assign(Object.assign({},n["b"]),{buttonOption:{type:Boolean,default:!1},large:{type:Boolean,default:!1},squareAvatar:{type:Boolean,default:!1},fitAvatar:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},popupContentClass:{type:String,default:void 0}
2544,ellipsisCharCount:{type:Number,default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:"input",isComponentValid:e=>null!==e&&""!==e&&void 0!==e&&e>-1}),r=Object(i["computed"])(()=>{let t="bs-select-options";return e.flat?t+="__flat":e.buttonOption&&(t+=" bs-select-options--button-enabled"),e.popupContentClass&&(t+=` ${e.popupContentClass}`),t}),l=Object(i["computed"])(()=>a.hasErrors.value?"imp-bs-r-l":o.$attrs["bg-color"]);return Object.assign(Object.assign({},a),{getPopupContentClass:r,backgroundColor:l})},methods:{renderOptions(e,t){if(e.opt.value!==this.componentValue)return t(Q["a"],{staticClass:"bs-select-option",class:{"bs-select-option--large":this.large,"bs-select-option--fit-avatar":this.fitAvatar},props:Object.assign(Object.assign({},e.props),{clickable:!0}),on:e.itemEvents},[void 0!==e.opt.avatar&&this.large?t(J["a"],{props:{avatar:!0}},[t(ee["a"],{staticClass:"on-left",props:{square:this.squareAvatar}},[t(te["a"],{props:{src:e.opt.avatar}})])]):void 0,t(J["a"],{},[t(Z["a"],[e.opt.label])])])},renderSelectedItem(e,t){return t(Q["a"],{staticClass:"bs-selected-option",props:Object.assign(Object.assign({},e.props),{clickable:!0,dense:!0}),on:e.itemEvents},[e.opt.avatar&&t(J["a"],{},[t(ee["a"],{staticClass:"on-left",props:{square:this.squareAvatar}},[t(te["a"],{props:{src:e.opt.avatar}})])]),t(J["a"],{},[t(Z["a"],[e.opt.label])])])}},render(e){var t,o;const i=Array.isArray(this.$attrs["options"])?null===(t=Array.from(this.$attrs["options"]).find(e=>e.value===this.componentValue))||void 0===t?void 0:t.label:"",a={mapOptions:!0,emitValue:!0,dropdownIcon:"app:arrow-down",popupContentClass:this.getPopupContentClass,displayValue:Object(oe["b"])(i,this.ellipsisCharCount||23),stackLabel:!0,borderless:!0,bottomSlots:!0,noErrorIcon:!0,filled:this.flat&&!this.hasErrors,outlined:this.hasErrors,bgColor:this.backgroundColor,virtualScrollSliceSize:this.$attrs["options"].length,dense:!0,behavior:"menu"};let r={};void 0===this.$scopedSlots.option&&(r={option:t=>this.renderOptions(t,e)}),void 0===this.$scopedSlots.selectedItem&&void 0===this.$scopedSlots["selected-item"]&&this.large&&(r=Object.assign(Object.assign({},r),{["selected-item"]:t=>this.renderSelectedItem(t,e)}));const n=this.$vnode.data;return e("div",{staticClass:"bs-select-container",id:null===(o=n.model)||void 0===o?void 0:o.expression},[e(N["a"],{ref:"bsSelect",staticClass:"bs-select",class:this.getClasses({"bs-select--flat":this.flat,"bs-select--flat__default-option-showing":this.flat&&-1===parseInt(this.$attrs.value),"bs-select--large":this.large,"bs-select--fit-avatar":this.fitAvatar}),props:this.getRenderProps(a),on:this.getListeners({blur:()=>this.validate(this.$attrs.value)}),attrs:this.getAttributes(),scopedSlots:this.getScopedSlots(e,r)},[Object(z["a"])(this,"default")])])}}),ae=o("9e92"),re=o("a55c"),ne=o("fc9f"),se=o("06f7"),le=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const de=o("d2cc"),ce=1024*w["s"].UPLOADS.MAX_SIZE_MB*1024,ue=15728640;var pe=Object(i["defineComponent"])({name:"BsUpload",props:Object.assign(Object.assign({},n["b"]),{value:{type:String,default:void 0},canReset:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},type:{type:String,default:void 0},label:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},square:{type:Boolean},hidePreview:{type:Boolean},hintText:{type:String,default:void 0},parseCsv:{type:Boolean,default:!1},csvNoHeader:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(i["ref"])(!1),r=Object(i["ref"])(!1),l=Object(i["ref"])(""),d=Object(i["ref"])(!1),c=Object(i["ref"])(`\n <div><strong>Drag & Drop</strong> <br /> ${e.hintText||"a image file here"}</div>\n <strong>OR</strong>\n `),u=Object(i["computed"])(()=>""!==e.value&&void 0!==e.value&&null!==e.value),p=Object(n["c"])({vm:o,props:e,emit:t,value:()=>e.value,isComponentValid:t=>""!==t&&void 0!==t&&null!==t||!1===e.autoUpload&&Object(w["T"])(l.value)}),{reset:b}=p,v=le(p,["reset"]);return Object.assign(Object.assign({},v),{hasFile:a,forceAllowDragAndDrop:r,fileName:l,isUploading:d,uploaderHtml:c,validValue:u})},methods:{reset(){const e=this.$refs.bsUpload;e.reset(),e.abort(),this.fileName="",this.hasFile=!1,this.isUploading=!1,this.$emit("input","")},rejectFile(e,t){const o=this.$refs.bsUpload;o.reset(),o.abort(),this.fileName="",this.hasFile=!1,this.isUploading=!1,this.forceAllowDragAndDrop=!0,this.componentState=n["a"].Invalid,this.errorMessage=this.$tc("system.errors."+e,void 0,t)},filesAdded(e){if(this.isUploading=!0,this.$emit("begin-processing",e),e.length){const t=new FileReader,o=e[0];if(this.hasFile=!0!==this.autoUpload||"input"===this.type,this.fileName=o.name,o.size>ce)return this.$q.loading.hide(),this.$emit("error-processing","file_size"),this.$emit("failed",this.$tc("system.errors.fileTooLarge",void 0,{size:w["s"].UPLOADS.MAX_SIZE_MB})),void this.rejectFile("fileTooLarge",{size:w["s"].UPLOADS.MAX_SIZE_MB});o.size>ue?(this.$q.loading.hide(),this.$emit("error-processing","file_size")):(t.onload=t=>{if(this.$emit("done-processing",e),"input"!==this.type){const e=t.target.result;this.parseCsv&&this.$emit("parsed",de.parse(e,{header:!this.csvNoHeader,skipEmptyLines:!0})),this.$emit("input",e)}}
2544,"input"===this.type||this.parseCsv?t.readAsText(o):t.readAsDataURL(o))}this.$emit("done-processing",e)},renderInputUpload(e){return[e(r["a"],{props:{name:this.hasFile?"icon-check":"icon-options"}}),e("div",{staticClass:"bs-upload__file col",on:{click:()=>this.$refs.bsUpload.pickFiles()}},[this.fileName||this.$attrs.placeholder,this.renderDeleteFileButton(e)]),e(c,{staticClass:"icon-bs-g",props:{icon:"app:browse",iconOnly:!0},on:{click:()=>this.$refs.bsUpload.pickFiles()}})]},renderDeleteFileButton(e){if(!1!==this.hasFile)return e(r["a"],{staticClass:"on-right",props:{name:"cancel"},on:{click:e=>{e.preventDefault(),e.stopPropagation(),this.reset(),this.$emit("remove")}}})},renderPreview(e){if(!this.hidePreview)return e("div",{staticClass:"bs-upload__before",class:[{"bs-upload__before--waiting":!this.hasFile,"bs-upload__before--has-file":this.hasFile,"bs-upload__before--has-image":this.validValue&&!this.hasFile}]},[e(ee["a"],{style:{height:this.square?this.height+"px":void 0,width:this.square?this.width+"px":void 0},props:{square:"img"===this.type||this.square}},[e(te["a"],{props:{src:this.value||"/cdn/awaiting-image.png"}})])])},renderDragAndDropUpload(e){return e("div",{staticClass:"bs-upload__drag-drop-container"},[e("div",{staticClass:"bs-upload__hint",domProps:{innerHTML:"img"===this.type?void 0:this.uploaderHtml}}),e(c,{props:{secondary:!0,label:this.label||"Browse"},on:{click:()=>this.$refs.bsUpload.pickFiles()}})])},renderResetFile(e){if(!this.canReset)return;let t="";return"img"!==this.type&&(t="Remove Image"),"file"===this.type&&(t="Remove File"),e("div",{staticClass:"bs-upload__existing-container"},[e(c,{props:{secondary:!0,label:t},on:{click:()=>{this.reset(),this.$emit("remove")}}}),"img"!==this.type?void 0:e(c,{props:{flat:!0,icon:"icon-check"},on:{click:()=>{this.$emit("done",this.value),this.hasFile=!1}}})])},renderScopedSlots(e){const t=[];"input"===this.type?t.push(this.renderInputUpload(e)):(t.push(this.renderPreview(e)),"img"===this.type&&this.validValue&&!this.hasFile||(this.forceAllowDragAndDrop||!this.hasFile&&!this.validValue?!1!==this.hasFile||void 0!==this.autoUpload&&this.validValue&&!this.forceAllowDragAndDrop||t.push(this.renderDragAndDropUpload(e)):t.push(this.renderResetFile(e))));const o={list:()=>e("div",{staticClass:"bs-upload__content"},[t])};return o},upload(){return this.$refs.bsUpload.upload()},renderProgress(e){return e(ae["a"],{props:{showing:this.isUploading}},[e(re["a"],{props:{color:"primary",size:"30px"}})])}},render(e){this.value&&(this.hasFile="input"===this.type,this.fileName=this.value);const t={flat:!0,noThumbnails:!0,color:"transparent",multiple:!1,autoUpload:this.autoUpload},o=Object.assign({},this.renderScopedSlots(e)),i={added:this.filesAdded,"factory-failed":e=>{this.rejectFile(e)},failed:e=>{var t,o;let i;this.isUploading=!1;try{i=(null===(t=e.xhr)||void 0===t?void 0:t.response)?JSON.parse(e.xhr.response):{}}catch(r){console.error("failed to parse json",r,e.xhr.response),i={}}const a=(null===(o=i.message)||void 0===o?void 0:o.errorCode)?this.$tc("system.errors."+i.message.errorCode):i.message||this.$tc("system.errors."+("file"===this.type?"fileUploadFailed":"imageUploadFailed"));this.$emit("failed",a),Object(se["a"])().ui.showMessageDialog({error:!0,message:a}),this.reset()},uploaded:e=>{this.$emit("uploaded",e)},finish:()=>{this.isUploading=!1,this.$emit("finish")}},a="input"===this.type,r="img"===this.type,n="file"===this.type,s=this.$vnode.data;return e("div",{staticClass:"bs-upload",style:{height:r||n?this.height+"px":void 0,width:r||n?this.width+"px":void 0},attrs:{["data-model"]:s.model.expression},class:this.getClasses({"bs-upload--input":a,"bs-upload--img":r,"bs-upload--inline":!a&&!r,"bs-upload--no-file":!this.hasFile,"bs-upload--has-file":this.hasFile,"bs-upload--square":this.square,"bs-upload--is-uploading":this.isUploading})},[e(u["a"],{staticClass:"bs-upload-q-field full-width",props:this.getValidationProps({borderless:!0,bottomSlots:!0,noErrorIcon:!0,dense:!0,stackLabel:!0}),scopedSlots:Object.assign({error:()=>this.renderErrorSlot(e)},this.renderAutoSaveMessage(e))},[e(ne["a"],{staticClass:"full-width",ref:"bsUpload",props:this.getRenderProps(t),on:this.getListeners(i),attrs:this.getAttributes(),scopedSlots:this.getScopedSlots(e,o)}),this.isUploading?this.renderProgress(e):void 0])])}}),be=Object(i["defineComponent"])({name:"BsChip",props:Object.assign(Object.assign({},n["b"]),{color:{type:[String,Object],default:void 0},textColor:{type:String,default:void 0}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t}),r=Object(i["computed"])(()=>{let t="";if(void 0!==e.textColor?t+=` text-${e.textColor}`:t+=" text-black",void 0!==e.color)if("object"===typeof e.color){const o=e.color,
2544i=Object.keys(o).find(e=>!0===o[e]);t+=` bg-${i}`}else t+=` bg-${e.color}`;return t});return Object.assign(Object.assign({},a),{localClasses:r})},render(e){return e("span",{staticClass:"bs-chip",class:this.localClasses,on:this.getListeners()},this.slot(this,"default"))}}),ve=o("56f9"),me=Object(i["defineComponent"])({name:"BsEditor",props:Object.assign(Object.assign({},n["b"]),{limitedToolbar:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])();return o.$q.iconSet.editor.heading1="mdi-format-header-1",o.$q.iconSet.editor.heading2="mdi-format-header-2",o.$q.iconSet.editor.heading3="mdi-format-header-3",o.$q.iconSet.editor.heading4="mdi-format-header-4",o.$q.iconSet.editor.heading5="mdi-format-header-5",o.$q.iconSet.editor.heading6="mdi-format-header-6",Object(i["onMounted"])(()=>{document.execCommand("defaultParagraphSeparator",!1,"p")}),Object.assign({},Object(n["c"])({vm:o,props:e,emit:t}))},methods:{getEditorToolbar(){const e=this.limitedToolbar?["p"]:["h1","h2","h3","h4","h5","h6","p"],t=this.limitedToolbar?[{label:this.$q.lang.editor.fontSize,icon:this.$q.iconSet.editor.fontSize,fixedLabel:!0,fixedIcon:!0,list:"no-icons",options:["size-1","size-2","size-3","size-4","size-5","size-6","size-7"]}]:void 0,o=["bold","italic","underline"],i=["unordered","ordered"],a=["hr","removeFormat"],r=["viewsource"],n=[];return n.push(e),t&&n.push(t),n.push(o),n.push(i),n.push(a),n.push(r),n},getControl(e){if(null===this.$attrs.value)return void this.$emit("input","");const t={toolbar:this.getEditorToolbar(),value:this.$attrs.value||"",paragraphTag:"p"},o={input:e=>{const t=/style=".*?"/gm;this.$emit("input",e.replace(t,""))}};return e(ve["a"],{staticClass:"bs-editor full-width",class:this.getClasses(),props:this.getRenderProps(t),on:this.getListeners(o),attrs:this.getAttributes()},this.slot(this,"default"))}},render(e){return p(e,this,"bs-editor",this.getControl(e))}}),fe=Object(i["defineComponent"])({name:"BsStatus",props:Object.assign(Object.assign({},n["b"]),{borderColor:{type:String,default:void 0},round:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draft:{type:Boolean,default:!1},finished:{type:Boolean,default:!1},scheduled:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}),a=Object(i["computed"])(()=>e.active?"Active":e.draft?"Draft":e.finished?"Finished":e.scheduled?"Scheduled":e.round?void 0:"Unknown"),r=Object(i["computed"])(()=>e.active||e.draft?"nonexistant":e.finished?"icon-check":e.scheduled?"icon-clock":e.round?void 0:"Unknown");return Object.assign(Object.assign({},o),{status:a,icon:r})},render(e){return e("div",{staticClass:"bs-status",class:this.getClasses({"bs-status--round":this.round,"bs-status--active":this.active,"bs-status--draft":this.draft,"bs-status--finished":this.finished,"bs-status--scheduled":this.scheduled}),style:void 0===this.borderColor?void 0:"border-color: "+this.borderColor,on:this.getListeners()},[e(r["a"],{props:{name:this.icon}}),e("span",[this.status,this.slot(this,"default")])])}}),ye=o("d8e4"),ge=Object(i["defineComponent"])({name:"BsModal",props:Object.assign(Object.assign({},n["b"]),{value:{type:Boolean,default:!1},title:{type:String,default:void 0},icon:{type:String,default:void 0},okText:{type:String,default:void 0},cancelText:{type:String,default:void 0},hideClose:{type:Boolean,default:!1},okButtonAsWarning:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])();return Object.assign(Object.assign({},Object(n["c"])({vm:o,props:e,emit:t})),{dialog:Object(i["computed"])(()=>o.$refs.qDialog)})},methods:{renderCloseButton(e){if(!this.hideClose)return e(r["a"],{staticClass:"bs-modal__close",on:{click:()=>{this.$emit("input",!1),this.$emit("close")}},props:{name:"app:close-circle"}})},renderTitle(e){return e("div",{staticClass:"bs-modal__title"},[this.icon&&e(r["a"],{staticClass:"on-left",props:{name:this.icon}}),this.title&&e("h2",this.title)])},renderHeader(e){return e("div",{staticClass:"bs-modal__header"},[this.renderTitle(e),this.renderCloseButton(e)])},renderOkButton(e){return e(c,{props:{large:!0,warning:this.okButtonAsWarning},on:{click:()=>{this.$emit("input",!1),this.$emit("close",!1),this.$emit("ok",!1)}},attrs:{"data-model":"btnModalOk"}},this.okText||"DONE")},renderCancelButton(e){return e(c,{props:{large:!0,secondary:!0,warning:!this.okButtonAsWarning},on:{click:()=>{this.$emit("input",!1),this.$emit("close",!1),this.$emit("cancel",!1)}},attrs:{"data-model":"btnModalCancel"}},this.cancelText)},renderFooter(e){return e("div",{staticClass:"bs-modal__footer"},[void 0===this.cancelText?void 0:this.renderCancelButton(e),this.renderOkButton(e)])},renderContent(e){return e("div",{staticClass:"bg-white"},[this.renderHeader(e),this.slot(this,"default"),this.renderFooter(e)])},renderDialog(e){const t={input:e=>{this.$emit("input",e),this.$emit("close")}};return e(ye["a"],{ref:"qDialog",props:{value:this.value,persistent:!0,contentClass:"bs-modal",maximized:this.$q.screen.xs},on:this.getListeners(t)},[this.renderContent(e)])}},render(e){return this.renderDialog(e)}}),he=Object(i["defineComponent"])({name:"BsSnippet",props:Object.assign(Object.assign({},n["b"]),{limit:{type:Number,default:void 0},text:{type:String,default:void 0},html:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}),a=Object(i["ref"])(!1);return Object.assign(Object.assign({},o),{showing:a})},methods:{renderContent(e){if(!this.text)return e("span","");const t=this.text.substring(0,this.showing?Number.MAX_SAFE_INTEGER:this.limit),o=[e("span",{domProps:{innerHTML:this.html?t:void 0}},[this.html?void 0:t])];return this.text.length>this.limit&&o.push(e("span",{staticClass:"text-secondary text-bold text-underline cursor-pointer on-right-xs",on:{click:()=>{this.showing=!this.showing}}},[!1===this.showing?"(...)":"(^--)"])),o}},render(e){return e("div",{staticClass:"bs-text-caption",class:this.getClasses(),on:this.getListeners()},[this.renderContent(e)])}}),Oe=o("1e07"),we=Object(i["defineComponent"])({name:"BsBtnDropdown",inheritAttrs:!1,props:l,setup(e,{emit:t}){return Object.assign({},d(e,t))},methods:{renderActiveIcon(e){if(!1!==this.active)return e(r["a"],{props:{name:"icon-check"},staticClass:"bs-btn-active__icon"})},getProps(){return{dropdownIcon:"app:arrow-down"}}},render(e){return e(Oe["a"],{staticClass:"bs-btn bs-btn-dropdown",class:this.getBtnClasses(),props:Object.assign(Object.assign({},this.getBtnProps()),this.getProps()),on:this.getListeners(),attrs:this.getAttributes(Object.assign({},this.$attrs))},[this.renderActiveIcon(e),this.slot(this,"default")])}});const je=w["s"].ARCS.REVIEWS;var Ie=Object(i["defineComponent"])({name:"BsSiteBtn",props:Object.assign(Object.assign({},n["b"]),{site:{type:Number,default:void 0},reviewSite:{type:Object,default:void 0},book:{type:Object,default:void 0},normal:{type:Boolean,default:!1},delayed:{type:Boolean,default:!1},rejected:{type:Boolean,default:!1},exempt:{type:Boolean,default:!1},userOwnsArc:{type:Boolean,default:!1},newReviewOverride:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t}),r=Object(i["computed"])(()=>e.exempt||void 0!==e.reviewSite&&e.reviewSite.exempt),l=Object(i["computed"])(()=>!r.value&&(e.rejected||void 0!==e.reviewSite&&e.reviewSite.status===je.SITE.STATUS.REJECTED)),d=Object(i["computed"])(()=>!r.value&&(e.delayed||void 0!==e.reviewSite&&e.reviewSite.status===je.SITE.STATUS.DELAYED)),c=Object(i["computed"])(()=>e.normal||!d.value&&!l.value&&!r.value),u=Object(i["computed"])(()=>`app:${je.FLAG_ICONS[e.site]}`),p=Object(i["computed"])(()=>{const t=je.FLAG_BOOK_KEYS_SITE[e.site];return e.site===je.FLAGS.AMAZON?e.book&&!Object(w["T"])(e.book[t])&&!Object(w["T"])(e.book.linkAmazonAsinPrint)&&e.userOwnsArc:e.site===je.FLAGS.AUDIBLE?e.book&&!Object(w["T"])(e.book.linkAudibleUs)&&!Object(w["T"])(e.book.linkAudibleUk):e.book&&!Object(w["T"])(e.book[t])&&e.userOwnsArc}),b=Object(i["computed"])(()=>{var t;return e.userOwnsArc&&(e.newReviewOverride||(null===(t=e.reviewSite)||void 0===t?void 0:t.state)===je.SITE.STATE.NEW_LINK||!1)}),v=Object(i["computed"])(()=>void 0===e.reviewSite||p.value),m=Object(i["computed"])(()=>o.$attrs.href&&!l.value&&!d.value&&!r.value);return Object.assign(Object.assign({},a),{isExempt:r,isRejected:l,isDelayed:d,isNormal:c,getIcon:u,needsSiteLink:p,newReview:b,isIncomplete:v,shouldRenderLink:m,getHasReviewAvailable:()=>!!e.reviewSite.review})},methods:{renderIcon(e){return e(r["a"],{staticClass:"font-size-20",props:{name:this.getIcon}})},renderText(e){if(this.isNormal)return;const t=this.isDelayed?"Delayed":this.isExempt?"Exempt":"Rejected";return e("span",{staticClass:"on-right bs-tag-s"},t)},renderBadge(e){return e("span",{staticClass:"bs-sb-badge",class:{"bs-sb-badge--new":this.newReview,"bs-sb-badge--slr":this.needsSiteLink}})},emitClick(e){this.isIncomplete&&!this.needsSiteLink||(this.isRejected&&!this.isNormal?this.$emit("rejected-click",this.reviewSite):this.isDelayed&&!this.isNormal?this.$emit("delayed-click",this.reviewSite):this.isExempt&&!this.isNormal?this.$emit("exempt-click",this.reviewSite):this.needsSiteLink?(e.preventDefault(),this.$emit("add-site-link",e)):this.$emit("open-site-link",e))}},render(e){const t=`bsSiteBtn_${je.FLAG_DESCRIPTIONS[this.site].toLowerCase()}`;return e(this.shouldRenderLink?"a":a["a"],{staticClass:"bs-site-btn border-radius flex q-pa-sm items-center relative-position",class:this.getClasses({"bs-site-btn__rejected":this.isRejected&&!this.isNormal,"bs-site-btn__delayed":this.isDelayed&&!this.isNormal,"bs-site-btn__exempt":this.isExempt&&!this.isNormal,"bs-site-btn__incomplete cursor-not-allowed":this.isIncomplete&&!this.needsSiteLink,"cursor-inherit":!this.isNormal}),props:{flat:!0},on:{click:this.emitClick}
2544,attrs:{["data-cy"]:t,target:this.$attrs.href?"_blank":void 0,rel:this.$attrs.href?"noopener noreferrer":void 0}},[this.renderBadge(e),this.renderIcon(e),this.renderText(e),this.slot(this,"default")])}}),Ae=o("e8b6"),Re=Object(i["defineComponent"])({name:"BsCheckToggle",props:Object.assign({},n["b"]),setup(e,{emit:t}){const o=Object(s["a"])(),i=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:"",isComponentValid:e=>!0===e});return i.forceTriggerOnChange.value=!0,Object.assign({},i)},render(e){return e(Ae["a"],{staticClass:"bs-check-toggle flex-start",props:this.getRenderProps({keepColor:!0,color:this.$attrs.color||"bs-lb-m"}),on:this.getListeners(),scopedSlots:this.getScopedSlots(e),attrs:this.getAttributes()})}}),ke=o("b77a"),Se=Object(i["defineComponent"])({name:"BsRating",props:Object.assign({},n["b"]),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:"",isComponentValid:e=>!0===e});a.forceTriggerOnChange.value=!0;const r=Object(i["computed"])(()=>{if(!a.componentValue.value)return 0;const e=Math.floor(a.componentValue.value),t=a.componentValue.value%1;return t<.25?e:t>=.25&&t<.75?e+.5:e+1});return Object.assign(Object.assign({},a),{roundedValue:r})},render(e){return e(ke["a"],{staticClass:"bs-rating",props:this.getRenderProps({color:"grey",icon:"app:star-empty",iconSelected:"app:star-full",iconHalf:"app:star-half",noDimming:!0,readonly:void 0===this.$attrs.readonly||this.$attrs.readonly,value:this.roundedValue}),on:this.getListeners(),scopedSlots:this.getScopedSlots(e),attrs:this.getAttributes()})}}),Te=Object(i["defineComponent"])({name:"BsShareBtn",props:Object.assign(Object.assign({},n["b"]),{url:{type:String,default:void 0},pinterestQuery:{type:String,default:""},facebook:{type:Boolean,default:!1},twitter:{type:Boolean,default:!1},pinterest:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(n["c"])({vm:Object(s["a"])(),props:e,emit:t}),a=Object(i["computed"])(()=>e.pinterest?{icon:"fab fa-pinterest",shareLink:`https://www.pinterest.com/pin/create/button/?url=${encodeURIComponent(e.url)}${e.pinterestQuery}`,color:"bs-pinterest-r"}:e.twitter?{icon:"app:x",shareLink:`https://x.com/intent/post?url=${encodeURIComponent(e.url)}`,color:"bs-x-b"}:{icon:"fab fa-facebook",shareLink:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e.url)}&src=sdkpreparse`,color:"bs-fb-b"});return Object.assign(Object.assign({},o),{btnData:a})},methods:{renderIcon(e){return e(r["a"],{props:{name:this.btnData.icon,size:"1.375rem"}})}},render(e){return e(a["a"],{staticClass:"bs-share-btn",props:this.getRenderProps({type:"a",color:this.btnData.color,unelevated:!0}),attrs:this.getAttributes({href:this.btnData.shareLink,target:"_blank"}),on:this.getListeners()},[this.renderIcon(e),this.slot(this,"default")])}}),Fe=o("ec40"),Ce=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const{getScrollTarget:Ee,setScrollPosition:De}=Fe["a"];var Pe=Object(i["defineComponent"])({name:"BsPaginator",props:Object.assign(Object.assign({},n["b"]),{setCurrentPage:{type:Number,default:void 0},totalRows:{type:Number,default:void 0},rowsPerPage:{type:Number,default:void 0},showMaxPages:{type:Number,default:8},updateUrl:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t}),{reset:r}=a,l=Ce(a,["reset"]),d=Object(i["ref"])(e.setCurrentPage||1),c=Object(i["computed"])(()=>Math.ceil(e.totalRows/e.rowsPerPage));return Object(i["watch"])(()=>e.setCurrentPage,e=>{d.value=e}),Object.assign(Object.assign({},l),{currentPage:d,totalPages:c})},methods:{setPage(e){this.currentPage=e,history.pushState&&this.updateUrl&&history.pushState(null,"",Object(w["M"])(window.location.href,"page",e.toString())),this.$emit("changed",{pageNumber:e,skip:e>1?e*this.rowsPerPage-this.rowsPerPage:0,take:this.rowsPerPage})},reset(){this.currentPage=1},scrollToTop(){const e=Ee(document.body),t=document.body.offsetTop,o=0;De(e,t,o)},renderBtn(e,t,o=!1,i=!1){const a=t&&1===this.currentPage||!t&&this.currentPage===this.totalPages;return e(c,{staticClass:"bs-paginator__nav-btn q-pa-none flex items-center font-size-8 justify-center",class:{"bs-paginator__nav-btn--disabled":a},props:{icon:t?o?"app:double-arrow":"app:back":i?"app:double-arrow":"app:forward",disable:a,secondary:!0},attrs:{["data-cy"]:t?o?"paginatorFirstPageBtn":"paginatorPreviousPageBtn":i?"paginatorLastPageBtn":"paginatorNextPageBtn",["aria-label"]:t?o?this.$t("system.labels.firstPage"):this.$t("system.labels.previousPage"):i?this.$t("system.labels.lastPage"):this.$t("system.labels.nextPage")},on:{click:()=>{this.setPage(t?o?1:this.currentPage-1:i?this.totalPages:this.currentPage+1),this.scrollToTop()}}},this.slot(this,"default"))},renderPageButtons(e){const t=[];return t.push(e(k,{staticClass:"bs-paginator__page-btn flex no-wrap flex-center",class:{"text-bold":!0},style:{"inline-size":this.totalPages<10?"30px":this.totalPages<100?"40px":"50px"},on:{input:e=>{setTimeout(()=>{const t=parseInt(e);t>=1&&t<=this.totalPages&&this.setPage(t)},1e3)}},attrs:{value:this.currentPage.toString(),inputMode:"numeric",pattern:"[0-9]*",min:1,max:this.totalPages}})),t.push(e("span",` of ${this.totalPages}`)),t},renderPageBtnContainer(e){return e("div",{staticClass:"bs-paginator__page-btn-container flex"},this.renderPageButtons(e))}},render(e){return e("div",{staticClass:"bs-paginator flex items-center",class:this.getClasses(),on:this.getListeners()},[this.renderBtn(e,!0,!0),this.renderBtn(e,!0),this.renderPageBtnContainer(e),this.renderBtn(e,!1),this.renderBtn(e,!1,!1,!0)])}}),$e=Object(i["defineComponent"])({name:"BsSelectBtn",props:Object.assign(Object.assign({},n["b"]),{dense:{type:Boolean,default:!1}}),setup(e,{emit:t}){const o=Object(s["a"])(),a=Object(n["c"])({vm:o,props:e,emit:t,autoSaveMethod:"input",isComponentValid:e=>null!==e&&""!==e&&void 0!==e&&e>-1}),r=Object(i["computed"])(()=>a.hasErrors.value?"imp-bs-r-l":o.$attrs["bg-color"]||"white");return Object.assign(Object.assign({},a),{backgroundColor:r})},methods:{renderOptions(e,t){if(-1!==e.opt.value)return t(Q["a"],{staticClass:"bs-select-btn-option",props:Object.assign(Object.assign({},e.props),{clickable:!0}),on:e.itemEvents},[t(J["a"],{on:{click:t=>
2544{"function"===typeof e.opt.onClick&&e.opt.onClick(e.opt.value),this.$emit("clickItem",e.opt.value),t.stopPropagation(),t.preventDefault()}}},[t(Z["a"],[e.opt.label])])])},renderSelectedItem(e,t){return t(Q["a"],{staticClass:"bs-selected-option",props:Object.assign(Object.assign({},e.props),{clickable:!1,dense:!0}),on:e.itemEvents},[t(J["a"],{on:{click:t=>{"function"===typeof e.opt.onClick&&e.opt.onClick(e.opt.value),this.$emit("clickBtn",e.opt.value),t.stopPropagation(),t.preventDefault()}}},[t(Z["a"],[e.opt.label])])])}},render(e){const t={mapOptions:void 0===this.$attrs["map-options"]||this.$attrs["map-options"],emitValue:void 0===this.$attrs["emit-value"]||this.$attrs["emit-value"],dropdownIcon:"app:arrow-down",popupContentClass:"bs-select-btn-options",stackLabel:!0,borderless:!0,bottomSlots:!1,noErrorIcon:!0,filled:!this.hasErrors,outlined:this.hasErrors,bgColor:this.backgroundColor};let o={["selected-item"]:t=>this.renderSelectedItem(t,e)};return void 0===this.$scopedSlots.option&&(o=Object.assign(Object.assign({},o),{option:t=>this.renderOptions(t,e)})),e(N["a"],{ref:"bsSelectBtn",staticClass:"bs-select-btn",class:this.getClasses({"bs-select-btn--dense":this.dense}),props:this.getRenderProps(t),on:this.getListeners({blur:()=>this.validate(this.$attrs.value)}),attrs:this.getAttributes(),scopedSlots:this.getScopedSlots(e,o)},[Object(z["a"])(this,"default")])}});const Ne=new Set(["m.media-amazon.com"]);var Le=Object(i["defineComponent"])({name:"BsImg",extends:te["a"],props:{native:{type:Boolean},large:{type:Boolean},loading:{type:String,default:"eager"}},setup(e){const t=Object(s["a"])(),o=Object(i["ref"])("lazy"!==e.loading),a=Object(i["ref"])(null);return Object(i["onMounted"])(()=>{"lazy"===e.loading&&"undefined"!==typeof IntersectionObserver&&(a.value=new IntersectionObserver(e=>{var t;e.some(e=>e.isIntersecting)&&(o.value=!0,null===(t=a.value)||void 0===t||t.disconnect(),a.value=null)},{rootMargin:"200px"}),a.value.observe(t.$el))}),Object(i["onBeforeUnmount"])(()=>{var e;null===(e=a.value)||void 0===e||e.disconnect(),a.value=null}),{bsImgVisible:o,bsImgObserver:a}},computed:{modifiedSrc(){if(!this.src)return;let e=this.src+"";const t="undefined"!==typeof window?window.Capacitor:void 0,o=!!t&&("function"===typeof t.isNativePlatform&&t.isNativePlatform()||!0===t.isNative||"function"===typeof t.getPlatform&&"web"!==t.getPlatform()),i=/^https?:\/\/([^/?#]+)([^?#]*)/i.exec(e);if(null!==i){const t=i[1].toLowerCase();if(!o&&Ne.has(t)){const e=i[2]||"/";return`/img-proxy/${t}${e}`}return e}let a;return(e.startsWith("cdn")||e.startsWith("/cdn")||e.startsWith("\\cdn"))&&(["beta"].includes("master")?a="https://beta.booksprout.co":["sandbox"].includes("master")?a="https://sandbox.booksprout.co":["master"].includes("master")&&(a="https://booksprout.co"),!a||e.startsWith("/")||e.startsWith("\\")||(a+="/"),this.large&&(e.indexOf("uploads\\book\\thumbnails\\")>-1&&(e=e.replace("uploads\\book\\thumbnails\\","uploads\\book\\thumbnails\\415\\")),e.indexOf("uploads/book/thumbnails/")>-1&&(e=e.replace("uploads/book/thumbnails/","uploads/book/thumbnails/415/")))),e=e.replace(/\\/g,"/"),a?`${a}${e}`:e},effectiveSrc(){return this.bsImgVisible?this.modifiedSrc:void 0}},render(e){if(this.native){const t=e=>{e.target.src=this.placeholderSrc,e.target.onerror=""};return e("img",{attrs:{src:this.effectiveSrc,width:this.width,height:this.height,alt:this.alt,loading:this.loading},on:{error:t}})}return e(te["a"],{props:{placeholderSrc:this.placeholderSrc,src:this.effectiveSrc,width:this.width,height:this.height,sizes:this.sizes,srcset:this.srcset,imgClass:this.imgClass,imgStyle:this.imgStyle,spinnerColor:this.spinnerColor,spinnerSize:this.spinnerSize,ratio:this.ratio,alt:this.alt,contain:this.contain}})}}),Be=o("19e5"),xe=Object(i["defineComponent"])({name:"BsTag",props:{label:{type:String,default:void 0},icon:{type:String,default:void 0},textColor:{type:String,default:void 0}},render(e){return e(Be["a"],{staticClass:"bs-tag",props:{label:this.label,icon:this.icon,square:!0,size:"8px",textColor:this.textColor}})}}),_e=Object(i["defineComponent"])({name:"BsSpinner",render(e){return e("div",{staticClass:"bs-spinner"},[e("svg",{attrs:{width:"30",height:"22",viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{fillRule:"evenodd",clipRule:"evenodd",d:"M28.5034 0.0329433L28.743 0.0487847C28.9332 0.0626821 29.1185 0.11897 29.2867 0.213943C29.4548 0.308916 29.602 0.440419 29.7185 0.599793C29.8351 0.759167 29.9183 0.942797 29.9628 1.13859C30.0072 1.33439 30.0119 1.53791 29.9765 1.73575C29.1964 6.09704 27.5199 9.40805 24.947 11.6688C22.5074 13.8125 19.6557 14.6661 16.3915 14.2305V20.812C16.3915 21.1271 16.2729 21.4292 16.0619 21.652C15.8509 21.8748 15.5647 22 15.2663 22H15.2592C14.9608 22 14.6746 21.8748 14.4636 21.652C14.2526 21.4292 14.134 21.1271 14.134 20.812V14.1499C10.6493 14.7536 7.62259 13.9264 5.05302 11.6683C2.48012 9.40805 0.803604 6.09704 0.0234815 1.73575C-0.0107286 1.54461 -0.00752848 1.3481 0.0328862 1.15831C0.073301 0.968525 0.150074 0.789479 0.258481 0.632194C0.366888 0.47491 0.504636 0.342713 0.663245 0.243742C0.821853 0.144771 0.997967 0.0811185 1.18075 0.0567037L1.25701 0.0487847L1.49663 0.0329433C5.31598 -0.198057 8.47689 0.785785 10.9789 2.98447C13.0547 4.80872 14.3924 7.21904 14.9912 10.215L15.01 10.2106L15.0004 10.2599C15.5943 7.2428 16.9349 4.81752 19.021 2.98447C21.5231 0.785785 24.684 -0.198057 28.5034 0.0329433Z",fill:"currentColor"}})])])}}),Ue=Object(i["defineComponent"])({name:"BsFilterBtn",props:Object.assign(Object.assign({},l),{filterCount:{type:Number,default:void 0},filtersShowing:{type:Boolean,default:!1}}),setup(e,{emit:t}){return Object.assign({},d(e,t))},methods:{renderIcon(e){return e(r["a"],{props:{name:"app:filter",size:"1.125rem"}})},renderText(e){const t=this.filterCount>0?this.$tc("system.actions.filtersX",void 0,[this.filterCount]):this.$tc("system.actions.filters");return e("strong",t)},getProps(){return{textColor:"black"}}},render(e){return e(c,{staticClass:"bs-filter-btn",class:{"bs-filter-btn__active":this.filtersShowing},props:Object.assign(Object.assign({},this.getBtnProps()),this.getProps()),on:this.getListeners(),attrs:this.getAttributes(Object.assign(Object.assign({},this.$attrs),{"data-cy":"btnFilters"}))},[this.renderIcon(e),this.renderText(e)])}});t["h"]={BsBtn:c,BsToggle:b,BsForm:y,BsTabStepper:I,BsTabStepperTitle:A,BsInput:k,BsCheckbox:T,BsRadio:E,BsClickable:D,BsTooltip:$,BsChipBox:B,BsDate:V,BsTabbedLayout:Y,BsFormField:H,BsUpgrade:X,BsSelect:ie,BsUpload:pe,BsChip:be,BsEditor:me,BsStatus:fe,BsModal:ge,BsSnippet:he,BsBtnDropdown:we,BsSiteBtn:Ie,BsCheckToggle:Re,BsRating:Se,BsShareBtn:Te,BsPaginator:Pe,BsSelectBtn:$e,BsImg:Le,BsTag:xe,BsSpinner:_e,BsFilterBtn:Ue,install(e){e.component("BsBtn",c),e.component("BsToggle",b),e.component("BsForm",y),e.component("BsTabStepper",I),e.component("BsTabStepperTitle",A),e.component("BsInput",k),e.component("BsCheckbox",T),e.component("BsRadio",E),e.component("BsClickable",D),e.component("BsTooltip",$),e.component("BsChipBox",B),e.component("BsDate",V),e.component("BsTabbedLayout",Y),e.component("BsFormField",H),e.component("BsUpgrade",X),e.component("BsSelect",ie),e.component("BsUpload",pe),e.component("BsChip",be),e.component("BsEditor",me),e.component("BsStatus",fe),e.component("BsModal",ge),e.component("BsSnippet",he),e.component("BsBtnDropdown",we),e.component("BsSiteBtn",Ie),e.component("BsCheckToggle",Re),e.component("BsRating",Se),e.component("BsShareBtn",Te),e.component("BsPaginator",Pe),e.component("BsSelectBtn",$e),e.component("BsImg",Le),e.component("BsTag",xe),e.component("BsSpinner",_e),e.component("BsFilterBtn",Ue)}}},a065:function(e,t,o){"use strict";o.d(t,"a",function(){return n});const i=()=>({axios:{url:""},apolloClient:{url:""},quadernoApiKey:"",stripeApiKey:""});let a=i();const r=(e="build",t="master")=>{let o,i="dev";switch(e){case"build":i="build",o=t;break;case"testing":i="testing";break}return`${i}${o?"."+o:""}`},n=()=>{const e=e=>{a=e},t=()=>{const t=o("4d84")(`./config.${r()}.js`).default;return e(t),t},n=()=>{a=i()},s=()=>a;return{init:e,initFromEnv:t,reset:n,config:s}}},a1dc:function(e,t,o){"use strict";o.d(t,"a",function(){return k});var i=o("788b"),a=o("d2c2"),r=o("1b59"),n=o("049c"),s=o("1517"),l=o("2ac6"),d=o("06f7");let c,u,p=!1;const b=()=>{if("undefined"!==typeof window)return"function"===typeof window.Beacon?window.Beacon:void 0},v=()=>{p||"undefined"===typeof window||(p=!0,window.addEventListener("load",()=>{const e=u;void 0!==e&&(u=void 0,m(e))},{once:!0}))},m=e=>{if(!Object(r["T"])(e.emailAddress))return;const t=b();if(void 0===t)return u=e,void v();const o=e.emailAddress;void 0!==c&&c!==o&&t("logout"),t("identify",Object.assign(Object.assign({},Object(r["T"])(e.name)?{name:e.name}:{}),{email:o,"admin-url":e.adminUrl,"billing-plan":e.plan,"user-since":e.userSince,"stripe-customer-page":e.stripeUrl})),c=o},f=()=>{u=void 0;const e=b();void 0!==e&&void 0!==c&&(e("logout"),c=void 0)};var y=o("e742"),g=o("6d03"),h=o("adf0"),O=function(e,t,o,i){function a(e){return e instanceof o?e:ne
2544w o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};const w="user-token",j="user-token-expires",I="userSelectedArcFilters",A={path:"/"},R=()=>a["b"].is.capacitor&&a["b"].is.ios&&"function"===typeof i["a"].getItem;function k(){const e=()=>Object(n["a"])().axios(),t=(t,o,i,a)=>e().post("auth/login",{emailAddress:t,password:o,extendLogin:i,reinstateConsent:a}).then(e=>void 0!==e&&401===e.status?null:e.data),o=()=>e().post("auth/logout"),a=t=>e().post("auth/setMimicUser",{id:t?t.id:null}).then(e=>e.data),c=(t,o,i,a)=>e().post("auth/sign-up",{emailAddress:t,password:o,agreeToMarketing:i,forward:a}),u=t=>e().post("auth/request-password-reset",{emailAddress:t}),p=(t,o)=>e().post("auth/user-password-reset",{oldPassword:t,newPassword:o}),b=(t,o)=>e().post("auth/complete-password-reset",{token:t,newPassword:o}),v=(t,o)=>e().post("auth/resend-verification-email",{emailAddress:t,forward:o}),k=(t,o,i)=>e().post("auth/update-user-email",{oldEmailAddress:t,newEmailAddress:o,forward:i}).then(e=>e.data),S=t=>e().post("auth/complete-verification-email",{token:t}).then(e=>e.data),T=t=>e().post("auth/complete-oauth-login-with-email",{emailAddress:t,source:void 0}).then(e=>e.data),F=t=>{const o=i["a"].getItem("agreeToMarketing")||!1;return e().post("auth/update-user-role",{role:t,agreedToAllMarketingUpdates:o}).then(e=>e.data)},C=()=>e().get("auth/getCsrfToken",{withCredentials:!0}).then(e=>e.data),E=(t,o,i,a)=>e().post("auth/validateToken",{token:t,loginType:o,source:i,nonce:a}).then(e=>void 0!==e&&401===e.status?null:e.data).catch(e=>(console.error("validateToken error: ",e),null)),D=()=>e().post("auth/authenticated-user").then(e=>{if(e.data.user)return{user:Object(y["a"])(e.data.user),mimicUser:e.data.mimicUser?Object(y["a"])(e.data.mimicUser):void 0,tokenExpires:e.data.tokenExpires}}),P=(t,o,i)=>e().post("auth/check-for-update",{currentVersion:t,platform:o,env:i}).then(e=>e.data),$=t=>e().post("auth/send-phone-verification",{phoneNumber:t}),N=t=>e().post("auth/complete-verification-phone",{code:t}).then(e=>e.data),L=()=>e().post("auth/resend-verification-phone"),B=()=>{},x=e=>{Object(h["h"])(e),window.GlobalUserData={name:e.name,emailAddress:e.emailAddress,image:e.image,plan:Object(r["B"])(e.authorRole),userSince:e.createdDate.slice(0,10),stripeUrl:Object(r["E"])(e.stripeCustomerId),adminUrl:Object(r["y"])(e.id,e.name||e.emailAddress)},m(window.GlobalUserData)},_=e=>{Object(h["d"])(e)},U=e=>{Object(h["e"])(e)},M=e=>{Object(h["f"])(e)},G=()=>O(this,void 0,void 0,function*(){var e;const t=R(),o=t?i["a"].getItem(w):void 0,a=t?i["a"].getItem(j):parseInt(Object(l["a"])().get(j)),n={user:new r["n"],token:{data:o,expires:a},mimicUser:new r["n"]};Object(h["a"])(n);const s=(new Date).getTime()/1e3;if((n.token.expires||0)>s){const e=yield D();e&&(n.user=e.user,e.mimicUser&&(n.mimicUser=e.mimicUser),Object(h["a"])(n))}else if(!t){const t=yield D(),o=(null===t||void 0===t?void 0:t.tokenExpires)||0;Object(r["S"])(null===(e=null===t||void 0===t?void 0:t.user)||void 0===e?void 0:e.id)&&o>s&&(n.user=null===t||void 0===t?void 0:t.user,n.token.expires=o,(null===t||void 0===t?void 0:t.mimicUser)&&(n.mimicUser=t.mimicUser),Object(h["a"])(n),Object(l["a"])().set(j,o.toString(),Object.assign(Object.assign({},A),{expires:new Date(1e3*o)})))}}),q=e=>null===e.loginResult?Promise.reject():!0===e.loginResult.termsConsentFailed?(U(e),Promise.reject()):e.loginResult.termsConsentNeeded?(M(e),Promise.reject()):(x(e.loginResult.user),R()?(i["a"].set(w,e.loginResult.token.data),i["a"].set(j,e.loginResult.token.expires)):Object(l["a"])().set(j,e.loginResult.token.expires.toString(),Object.assign(Object.assign({},A),{expires:new Date(1e3*e.loginResult.token.expires)})),Object(h["c"])(e.loginResult),_(!1),B(),Promise.resolve(e.loginResult)),V=e=>t(e.emailAddress,e.password,e.extendLogin,e.reinstateConsent).then(t=>q({loginResult:t,payload:e})),W=()=>{R()&&(i["a"].has(w)&&i["a"].remove(w),i["a"].has(j)&&i["a"].remove(j)),"function"===typeof i["a"].remove&&i["a"].has(I)&&i["a"].remove(I),f(),Object(h["b"])()},Y=()=>(W(),o()),H=e=>(W(),Object(d["a"])().ui.authRequired(e)),K=()=>{Object(d["a"])().ui.notifyError("You do not have permission to do this.")},z=e=>a(e).then(e=>q({loginResult:e})),X=()=>Object(s["a"])().refreshToken();return{login:t,logout:o,setMimicUser:a,signUp:c,resetPassword:u,userResetPassword:p,completeResetPassword:b,resendEmailVerificationEmail
2544:v,updateUserEmailAddress:k,completeVerificationEmail:S,completeOAuthSignUpWithEmail:T,updateUserSelectedRole:F,getCsrfToken:C,validateToken:E,getAuthenticatedUser:D,checkForUpdate:P,sendPhoneVerification:$,completeVerificationPhone:N,resendPhoneVerification:L,onLoggedIn:B,load:G,request:V,authSuccess:q,clearSession:W,logoutRequest:Y,authRequired:H,invalid:K,mimic:z,setUser:x,setAuthExpired:_,setConsentFailed:U,setConsentNeeded:M,refreshCsrfToken:X,get isAuthenticated(){return g["a"].isAuthenticated}}}},a1eb:function(e){e.exports=JSON.parse('{"modules":{"notifications":{"labels":{"sent":" sent","filterByType":"Filter By Type","notificationsX":"Your Notifications ({0})","noNotifications":"No notifications found","timeAgo":"{0} ago","new":"New","delete":"Delete notification"},"actions":{"deleteAllNotifications":"Delete all notifications"},"confirmDeleteAllNotificationsDialog":{"labels":{"heading":"Are you sure you want to delete all notifications?","message":"Youâll no longer have access to the notifications"},"actions":{"yes":"Yes, delete","no":"Cancel"}},"newArcAlert":{"description":"New Review Copy Available","message":"{0} just opened up a new Review Copy for {1}","hint":""},"bookFileUpdated":{"description":"Book file updated","message":"{0} just updated the file for {1}","reasons":{"uploadedWrongFile":"Uploaded the wrong file by accident.","changedSignificant":"Changed a significant portion of the book.","changedSmall":"Changed a small portion of the book.","fixedTypos":"Fixed typos."},"hint":""},"reviewsDueSoon":{"description":"Reviews Due Soon","message":"Just a heads up! Your review is due soon for {0}","hint":"Review Due Soon emails are sent two days before the review is due."},"readyToReview":{"description":"Ready to review","message":"It\'s time! You can now complete your review for {0}","hint":"Ready to Review emails are sent on the day that the review is due."}
2544,"finalFollowUp":{"description":"Review Due Now","message":"Your reviews are now due for {0}","hint":"Review Due Now emails are sent two days after the review is due and are the final reminder."},"timeToPublish":{"description":"Time To Publish","message":"{0} reviewers are waiting for you to publish {1}","hint":""},"newArcParticipant":{"description":"New Review Campaign Participant","message":"{0} is participating in your Review Campaign for {1}","hint":""},"newReview":{"description":"New Review","message":"{0} gave {1} stars to {2}","hint":""},"arcCancellation":{"description":"New Cancellation","message":"{0} has cancelled their promise to review {1}","hint":""},"reviewRejected":{"description":"New Rejected Review","message":"{0}\'s review was rejected by {1} for {2}","hint":""},"newExternalReview":{"description":"New External Review","message":"{0} wrote a review on {1} for {2}","hint":""},"delayExpiring":{"description":"Complete Your {0} Review","message":"Itâs time to complete your {0} review for {1}","hint":""},"delayExpired":{"description":"{0} Review Due Now","message":"Itâs time to complete your {0} review for {1}","hint":""},"savedArcEndingSoon":{"description":"Saved book is leaving soon","message":"{0} is only available until {1}. Claim your copy now!","hint":""},"savedArcLowCopies":{"description":"Saved book is low on copies","message":"There are limited copies of {0}. Claim your copy now!","hint":""},"freeText":{"description":"Generic","message":"When a book is deleted and does not need to be reviewed"},"invitedToTeam":{"description":"Invited to team","message":"You have been invited to join the {0} team"},"arcCannotActivate":{"description":"Cannot activate Review Campaign","message":"You have reached your active Review Campaign limit for your plan and {book} cannot go live. Upgrade your plan for more active Review Campaigns."},"newTeamApplicant":{"description":"Request to join a team","message":"{user} has requested to join {arcTeam}"}},"payment":{"cycles":{"null":"None","month":"Monthly","year":"Yearly"},"plans":{"null":{"name":"None"},"free":{"name":"Free"},"growing":{"name":"Growing"},"pro":{"name":"Pro"},"bestSelling":{"name":"Best Seller"}}},"arcs":{"cancellationReasons":{"poorlyEdited":"Book was poorly edited","story":"Couldn\'t get into the story","personal":"Personal reasons","badDescription":"Book not as described","badFit":"Not my type of book, but others may enjoy it","couldNotReview":"Could not review on all required stores","other":"Other"}},"subscriptions":{"cancellationTypes":{"notSelected":"N/A","temporary":"I\'m only cancelling temporarily","notEnoughReviews":"I did not get enough reviews","difficultForReaders":"My readers found it too difficult to use","difficultForMe":"I found it too difficult to use","notWorking":"It didn\'t work as expected","lackingSupport":"Support was lacking","cost":"I can no longer justify the cost","other":"Other"}}},"title":"Reader e-mail alerts; Email me when:","newArc":"An author or team I\'m following creates a new Review Copy","reviewDueIn2Days":"I have a review due in 2 days","reviewOverdue":"My review is overdue","alertReadyToReview":"My review is due","alertDelayExpiring":"Amazon review delay expiring","alertDelayExpired":"Amazon review delay expired","invitedToTeam":"Invited to review team","freeText":"When a book is deleted and does not need to be reviewed","meta":{"__ssrComment__":"META INFO BELOW IS ONLY FOR SSR","module":{"login":{"title":"Login","description":""},"signUp":{"title":"Sign Up","description":""},"arc":{"title":"Viewing {0} Review Copy","ogTitle":"{0}"},"arcs":{"title":"Find Review Copies","description":""},"claimArc":{"title":"Claiming {0} Review Copy"},"reviewArc":{"title":"Reviewing {0} Review Copy"},"cancelArc":{"title":"Cancelling {0} Review Copy"},"book":{"title":"Viewing {0} Book"},"arcTeam":{"title":"Viewing {0} Team","ogTitle":"Join {0} on Booksprout"},"arcTeams":{"title":"My Teams","description":""},"author":{"title":"Viewing {0} Author","ogTitle":"{0}"},"authors":{"title":"Authors","description":""},"yourArcs":{"title":"My Review Copies","description":""},"gamification":{"title":"Reviewer Rank","description":""}
2544,"messages":{"title":"Messages","description":""},"notifications":{"title":"Notifications","description":""},"settings":{"title":"Settings","description":""},"accountSettings":{"title":"Account Settings","description":""},"reviewerSettings":{"title":"Reviewer Settings","description":""},"emailSettings":{"title":"Email Settings","description":""},"authorSettings":{"title":"Author Settings","description":""},"billingSettings":{"title":"Billing Settings","description":""},"categoriesSettings":{"title":"My Categories","description":""},"websiteAuthors":{"title":"Get more book reviews","description":"Automate your ARC process and get more honest book reviews on sites like Amazon."},"websiteReaders":{"title":"An app to follow your favorite authors","description":"Stay up to date on newly released books and deals from your favorite authors!"},"websitePricing":{"title":"Pricing","description":""},"websiteAbout":{"title":"About","description":""},"websitePrivacyPolicy":{"title":"Privacy Policy","description":""},"websiteTerms":{"title":"Terms & Conditions","description":""},"websiteAffiliateDisclosure":{"title":"Affiliate Disclosure","description":""},"websiteCookiePolicy":{"title":"Cookie Policy","description":""},"websitePrivacyPolicyAllProducts":{"title":"Privacy Policies","description":""}}}}')},a256:function(e,t,o){"use strict";o.d(t,"c",function(){return r}),o.d(t,"b",function(){return n});var i=o("1b59"),a=o("7aa7");const r=()=>[],n=()=>({notifications:r(),unreadMessageCount:0,unreadNotificationCount:{author:0,reviewer:0},redirect:void 0,triggerLoginNotification:!1,loginForwardUrl:"",showMessageDialog:{show:!1,error:!1,message:"",optionalParams:[]},userStats:new i["q"],isReadyToRender:!1,lastError:""});t["a"]=Object(a["a"])("ui",n)},a3b6:function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return a});const i="bs-forward-url",a="bs-oauth-forward-url"},aafd:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://dev.booksprout.co/api/"},apolloClient:{url:"https://dev.booksprout.co/api/graphql"},quadernoApiKey:"pk_test_zVtjVCesmXZo--pT31C-",stripeApiKey:"pk_test_em1d5DZ5uSDda8RnUhRWjcAg"}},aca2:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://sandbox.booksprout.co/api/"},apolloClient:{url:"https://sandbox.booksprout.co/api/graphql"},quadernoApiKey:"pk_test_zVtjVCesmXZo--pT31C-",stripeApiKey:"pk_test_em1d5DZ5uSDda8RnUhRWjcAg"}},adf0:function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"c",function(){return s}),o.d(t,"b",function(){return l}),o.d(t,"e",function(){return d}),o.d(t,"f",function(){return c}),o.d(t,"d",function(){return u}),o.d(t,"h",function(){return p}),o.d(t,"g",function(){return b});var i=o("1b59"),a=o("d2c2"),r=o("b8db");function n(e){var t;const o=Object(r["a"])();o.user=e.user,o.token=e.token,Object(i["S"])(null===(t=e.mimicUser)||void 0===t?void 0:t.id)&&(o.mimicUser=e.mimicUser)}function s(e){var t;const o=Object(r["a"])();a["b"].is.ios?o.token=e.token:o.token={data:"",expires:e.token.expires},o.user=e.user,Object(i["S"])(null===(t=e.mimicUser)||void 0===t?void 0:t.id)?o.mimicUser=e.mimicUser:o.mimicUser=void 0}function l(){Object.assign(Object(r["a"])(),Object(r["b"])())}function d(e){if(null===e)return void Object.assign(Object(r["a"])(),Object(r["b"])());const t=Object(r["a"])();t.termsConsentFailed=e.loginResult.termsConsentFailed,t.user=e.loginResult.user,t.termsConsentData.loginResult=e.loginResult}function c(e){if(null===e)return void Object.assign(Object(r["a"])(),Object(r["b"])());const t=Object(r["a"])();t.termsConsentNeeded=e.loginResult.termsConsentNeeded,t.user=e.loginResult.user,t.termsConsentData.loginResult=e.loginResult}function u(e){Object(r["a"])().authExpired=e}function p(e){const t=Object(r["a"])();void 0!==t.user&&(t.user=e)}function b(e){Object(r["a"])().csrfToken=e}},b4f0:function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return a});const i="YYYY/MM/DD",a="/authors"},b766:function(e,t,o){"use strict";o.d(t,"a",function(){return n});var i=o("1b59"),a=o("940e"),r=o("600e");function n(e){const t=()=>Object(a["a"])(),o=(e="publisher",t=!0)=>{const o=["build","master"].includes("testing")?"testing":void 0,i={reviewer:"https://dev.booksprout.co/reviewer",admin:"https://dev.booksprout.co/admin",publisher:"https://dev.booksprout.co/publisher",website:"https://dev.booksprout.co"},a={development:i,dev:i,staging:{reviewer:"https://staging.booksprout.co/reviewer",admin:"https://staging.booksprout.co/admin",publisher:"https://staging.booksprout.co/publisher",website:"https://staging.booksprout.co"},testing:{reviewer:"https://testing.booksprout.co/reviewer",admin:"https://testing.booksprout.co/admin",publisher:"https://testing.booksprout.co/publisher",website:"https://testing.booksprout.co"}
2544,beta:{reviewer:"https://beta.booksprout.co/reviewer",admin:"https://beta.booksprout.co/admin",publisher:"https://beta.booksprout.co/publisher",website:"https://beta.booksprout.co"},sandbox:{reviewer:"https://sandbox.booksprout.co/reviewer",admin:"https://sandbox.booksprout.co/admin",publisher:"https://sandbox.booksprout.co/publisher",website:"https://sandbox.booksprout.co"},master:{reviewer:"https://booksprout.co/reviewer",admin:"https://booksprout.co/admin",publisher:"https://booksprout.co/publisher",website:"https://booksprout.co"}},r=o||"master";return a[r][e]+(t?"/":"")},n=(e,t)=>{e.startsWith("/")&&(e=e.replace("/","")),t.startsWith("/")&&(t=t.replace("/",""));const i=o(e);return i+(t||Object(r["a"])().link().homeUrl)},s=t=>{if(void 0===e)throw new Error("useAppHosts: navigateToOtherApp needs a route, a router and isMobileApp.");const{route:a,router:r,isMobileApp:n}=e,s=["admin","publisher","reviewer"],l=e=>{const l=document.location.href.split("/"),d=l[3],c=e.split("/")[0];let u=e.substring(e.indexOf("/"));c===u&&(u="");const p=c?i["s"].APP.HOME_URLS[c.toUpperCase()]:"";let b=!t.startsWith(d);if(b||d||(b=document.location.href+t!==o(e)),b&&!n)document.location.href=o(c,!1)+(u||p)+(a.query.forward?"?forward="+a.query.forward:"");else{let t=e.substring(e.indexOf("/")+1);s.forEach(e=>t=t.replace(e,""));const o=Object(i["T"])(t)?t.startsWith("/")?t:"/"+t:p,a=r.push(o);a&&"function"===typeof a.catch&&a.catch(()=>{})}};l(t)};return{isReviewerApp:t,getAppHost:o,linkToOtherApp:n,navigateToOtherApp:s}}},b8db:function(e,t,o){"use strict";o.d(t,"b",function(){return n});var i=o("1b59"),a=o("7aa7");const r=()=>({csrfToken:"",user:new i["n"],token:{data:"",expires:0},mimicUser:new i["n"],termsConsentNeeded:!1,termsConsentFailed:!1,termsConsentData:{emailAddress:"",password:"",extendLogin:!0,loginResult:void 0},authExpired:!1}),n=()=>r();t["a"]=Object(a["a"])("authentication",r)},b941:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://beta.booksprout.co/api/"},apolloClient:{url:"https://beta.booksprout.co/api/graphql"},quadernoApiKey:"pk_test_zVtjVCesmXZo--pT31C-",stripeApiKey:"pk_test_em1d5DZ5uSDda8RnUhRWjcAg"}},b9bf:function(e,t,o){"use strict";o.d(t,"a",function(){return I});var i=o("3691"),a=o("1b59"),r=o("1517"),n=o("cb78");const s=Object(n["a"])(""),l={MessageThread:i["a"]` 2545 fragment MessageThreadFragment on MessageThreadDto { 2546 id, 2547 reviewerUserId, 2548 reviewerUser { 2549 id, 2550 name, 2551 image, 2552 existingThreadCount 2553 }, 2554 authorUser { 2555 id, 2556 name, 2557 image, 2558 existingThreadCount, 2559 canAcceptMessages, 2560 canSendMessages 2561 } 2562 arc { 2563 id, 2564 book { 2565 id, 2566 bookCover, 2567 title, 2568 seriesName, 2569 seriesNumber, 2570 authorPenName { 2571 id, 2572 userId, 2573 name, 2574 image 2575 } 2576 }, 2577 arcTeam { 2578 id, 2579 name, 2580 image 2581 } 2582 }, 2583 createdDate, 2584 userId, 2585 state, 2586 lastMessageDate, 2587 lastMessageText, 2588 messageCount, 2589 unreadMessageCount, 2590 blocked 2591 } 2592 `},d=e=>Object(r["a"])().query({variables:Object.assign({},e),query:i["a"]` 2593 query GetMessageThreads ( 2594 $state: Int 2595 $needle: String 2596 $reviewUserId: Int, 2597 $sortBy: String, 2598 $descending: Boolean, 2599 $skip: Int, 2600 $take: Int 2601 ) { 2602 messageThreads ( 2603 state: $state, 2604 needle: $needle, 2605 reviewUserId: $reviewUserId, 2606 sortBy: $sortBy, 2607 descending: $descending 2608 skip: $skip, 2609 take: $take 2610 ) { 2611 totalRows, 2612 items { 2613 ...MessageThreadFragment 2614 } 2615 } 2616 } 2617 ${l.MessageThread} 2618 `}),c=e=>u(e),u=(e,t)=>void 0===e?Promise.reject(new Error("Missing id.")):Object(r["a"])().query({variables:{id:e,forUserId:t},query:i["a"]` 2619 query GetMessageThread ( 2620 $id: Int! 2621 $forUserId: Int 2622 ) { 2623 messageThread (id: $id, forUserId: $forUserId) { 2624 ...MessageThreadFragment, 2625 arc { 2626 id, 2627 userId, 2628 claims { 2629 review { 2630 id, 2631 rating, 2632 sites { 2633 site, 2634 status, 2635 link 2636 } 2637 } 2638 } 2639 } 2640 } 2641 } 2642 ${l.MessageThread} 2643 `}),p=e=>Object(r["a"])().mutate({variables:Object.assign(Object.assign({},e),{recipientUserId:e.reviewUserId}),mutation:i["a"]` 2644 mutation CreateMessageThread ( 2645 $arcId: Int! 2646 $recipientUserId: Int! 2647 ) { 2648 createMessageThread ( 2649 arcId: $arcId, 2650 reviewUserId: $recipientUserId 2651 ) { 2652 ...MessageThreadFragment 2653 } 2654 } 2655 ${l.MessageThread} 2656 `}),b=e=>Object(r["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 2657 mutation UpdateMessageThread ( 2658 $id: Int! 2659 $state: Int! 2660 ) { 2661 updateMessageThread ( 2662 id: $id, 2663 state: $state 2664 ) { 2665 ...MessageThreadFragment 2666 } 2667 } 2668 ${l.MessageThread} 2669 `}),v=e=>Object(r["a"])().mutate({variables:{id:e},mutation:i["a"]` 2670 mutation DeleteMessageThread ( 2671 $id: Int! 2672 ) { 2673 deleteMessageThread(id: $id) { 2674 id 2675 } 2676 } 2677 `}),m=e=>b({id:e,state:a["s"].MESSAGES.STATE.READ}),f=e=>b({id:e,state:a["s"].MESSAGES.STATE.NEW}),y=()=>Object(r["a"])().query({query:i["a"]` 2678 query GetUnreadThreadCount { 2679 unreadThreadCount 2680 } 2681 `}),g=(e,t)=>Object(r["a"])().mutate({variables:{userId:e,reportUser:t},mutation:i["a"]` 2682 mutation BlockUser ( 2683 $userId: Int! 2684 $reportUser: Boolean! 2685 ) {
2686 blockUser(userId: $userId, reportUser: $reportUser) 2687 } 2688 `}),h=e=>Object(r["a"])().mutate({variables:{userId:e},mutation:i["a"]` 2689 mutation UnblockUser ( 2690 $userId: Int! 2691 ) { 2692 unblockUser(userId: $userId) 2693 } 2694 `}),O=(e,t)=>e.reviewerUserId===t?e.authorUser:Object.assign({image:"",name:""},e.reviewerUser),w=e=>Object(r["a"])().mutate({variables:{threadId:e},mutation:i["a"]` 2695 mutation GetThreadHelp ( 2696 $threadId: Int! 2697 ) { 2698 getThreadHelp (threadId: $threadId) { 2699 id 2700 } 2701 } 2702 `}),j=Object.assign(Object.assign({},s),{get:d,getById:c,getByIdForUser:u,create:p,update:b,delete:v,markAsRead:m,markAsUnread:f,getUnreadThreadCount:y,blockUser:g,unblockUser:h,getOtherThreadParticipant:O,getHelp:w,globalLoader(e){return s.setGlobalLoader(e),j}});function I(){return j}},c706:function(e,t,o){var i={"./en-US.json":"e7e4"};function a(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="c706"},c74e:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://staging.booksprout.co/api/"},apolloClient:{url:"https://staging.booksprout.co/api/graphql"}}},cb78:function(e,t,o){"use strict";o.d(t,"a",function(){return l});var i=o("049c"),a=o("1517"),r=o("a065"),n=o("6d03"),s=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};function l(e,t={}){const o=t=>`${Object(r["a"])().config().axios.url}${e}/${t}`,l=(e,o)=>t.validateAddPictureFactory?t.validateAddPictureFactory(e,o):Promise.resolve(!0),d=e=>s(this,void 0,void 0,function*(){if(!e)return;const t=yield Object(i["a"])().axios().post(o("clean-files"),{fileType:"",fileName:e});return t.data}),c=(e,t)=>l(e,t).then(e=>{if(!e)return Promise.reject();let i;return t&&(i=[{name:"id",value:void 0===t.id?-1:t.id}]),{url:o("add-picture"),withCredentials:!0,headers:[{name:"Authorization",value:`Bearer ${n["a"].authToken}`},{name:"CSRF-Token",value:n["a"].csrfToken}],formFields:i}}),u=e=>{Object(a["a"])().globalLoader(e)};return{apiControllerPath:e,getApiControllerUrl:o,validateAddPictureFactory:l,cleanFiles:d,addPictureFactory:c,setGlobalLoader:u}}},cdc7:function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("1b59");function a(e){const t=()=>parseInt(e.route.params.id),o=t=>{var o;null!==t&&(e.assign(t),null===(o=e.onLoadDoc)||void 0===o||o.call(e))},a=t=>{var a,r;if(!Object(i["S"])(t))return;const n=null!==(a=e.assignLoadedDoc)&&void 0!==a?a:o;return e.crudService.getById(t,null===(r=e.getByIdArgs)||void 0===r?void 0:r.call(e)).then(e=>{n(e)}).catch(t=>{e.onError(t.message)})};return{getDocId:t,loadDoc:a,assignLoadedDoc:o}}},d110:function(e,t){class o{getStore(){}enterWith(){}run(e,t){return t()}}e.exports={AsyncLocalStorage:o}},d4c2:function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("1b59");function a(e,t){var o;if(!t||t===i["s"].I18N.DEFAULT_LOCALE)return e.name||"";const a=null===(o=e.translations)||void 0===o?void 0:o.find(e=>e.locale===t);return(null===a||void 0===a?void 0:a.name)||e.name||""}},d77f:function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return l}),o.d(t,"c",function(){return c});var i,a=o("8b32"),r=o("b189"),n=o("2858"),s=o("4708");(function(e){e[e["Valid"]=0]="Valid",e[e["Invalid"]=1]="Invalid",e[e["AutoSaving"]=2]="AutoSaving",e[e["AutoSaved"]=3]="AutoSaved",e[e["Resetting"]=4]="Resetting"})(i||(i={}));const l={autoSave:{type:Function,default:void 0},triggerOnChange:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validEmail:{type:Boolean,default:!1},validation:{type:Array,default:void 0},rules:{type:Array,default:void 0},validationResultTarget:{type:null,default:void 0},lazyValidation:{type:Boolean,default:!1},tkey:{type:String,default:void 0}},d=5e3;function c(e){var t;const{vm:o,props:l,emit:c}=e,u=null!==(t=e.autoSaveMethod)&&void 0!==t?t:"blur",p=Object(a["ref"])(""),b=Object(a["ref"])(""),v=Object(a["ref"])(i.Valid),m=Object(a["ref"])(!1),f=Object(a["ref"])(!1);let y,g,h=[];const O=Object(a["computed"])(()=>{var t,i;return(null!==(i=null===(t=e.value)||void 0===t?void 0:t.call(e))&&void 0!==i?i:void 0)||o.$attrs.value}),w=Object(a["computed"])(()=>v.value===i.Invalid),j=e=>{0},I=t=>{var o;return(null!==(o=e.isComponentValid)&&void 0!==o?o:e=>null!==e&&""!==e&&void 0!==e)(t)},A=e=>{if(e&&"string"===typeof e&&(e=e.trim()),v.value===i.Resetting)return v.value=i.Valid,b.value="",!0;const t=!1===I(e);if(v.value=l.required&&t?i.Invalid:i.Valid,v.value===i.Invalid)return b.value=o.$tc("system.labels.requiredField"),!1;if(b.value="",l.validEmail&&!n["validate"](e))return v.value=i.Invalid,b.value=o.$tc("system.errors.invalidEmail"),!1;if(void 0!==l.validation)for(const r of l.validation){let t;try{t=r(e||O.value||"")}catch(a){console.error(`A validation rule on ${o.$options.name||"a bs component"} threw; treating the value as valid.`,a);continue}void 0!==t?(b.value=t.label,v.value=i.Invalid,void 0!==t.ref&&(g=t.ref,g.componentState=i.Invalid,g.errorMessage=t.label)):void 0!==g&&(g.componentState=i.Valid,g.errorMessage="")}if(void 0!==l.rules)for(const r of l.rules){if("function"!==typeof r)continue;let t;try{t=r(e||O.value||"")}catch(a){console.error(`A rule on ${o.$options.name||"a bs component"} threw; treating the value as valid.`,a);continue}if(!1===t||"string"===typeof t){b.value="string"===typeof t?t:o.$tc("system.errors.invalidValue"),v.value=i.Invalid;break}}return v.value===i.Valid},R=()=>{void 0!==l.autoSave&&v.value!==i.Invalid&&l.autoSave().then(()=>{b.value="",p.value=o.$tc("system.labels.changesSaved"),v.value=i.AutoSaved,setTimeout(()=>{p.value="",v.value=i.Valid},d)}).catch(e=>{b.value=e.message,v.value=i.Invalid})},k=t=>{var o;null===(o=e.doBeforeAutoSave)||void 0===o||o.call(e,t)},S=()=>
2702{if(u&&v.value!==i.Invalid)return{[u]:e=>{if(k(e),A(O.value),v.value===i.Invalid)return void c(u,e);v.value=i.AutoSaving;let t=O.value,a=!1;(o.$refs.bsCheckbox||o.$refs.bsChipBox)&&(t=e,a=!0),c(u,e),y===t&&!0!==a||(y=t,R())}}},T=e=>({hint:()=>e("span",p.value)}),F=e=>{if(void 0===l.validationResultTarget)return e("div",{staticClass:"row nowrap bs-par-s-i"},[e(r["a"],{staticClass:"on-left",props:{name:"app:error"}}),e("span",{staticClass:"col"},b.value)]);l.validationResultTarget.innerText=b.value},C=e=>{let t=Object.assign(Object.assign({},o.$listeners),e);return t=void 0===l.autoSave?Object.assign(Object.assign({},t),{input:e=>{l.lazyValidation||A(e),c("input",e)}}):Object.assign(Object.assign({},t),S()),t},E=(e,t)=>{let a=Object.assign(Object.assign({},o.$scopedSlots),t);return""!==p.value&&(a=Object.assign(Object.assign({},a),T(e))),v.value===i.Invalid&&(a=Object.assign(Object.assign({},a),{error:()=>F(e)})),a},D=(e,t=!1)=>(t||void 0===o.$vnode.data||void 0===o.$vnode.data.model||(void 0===e&&(e={}),e["data-model"]=o.$vnode.data.model.expression),Object.assign({placeholder:o.$attrs.placeholder,error:""!==b.value},e)),P=e=>{var t;return Object.assign(Object.assign({},e),{color:w.value?"imp-bs-r":(null===e||void 0===e?void 0:e.color)||(null===(t=o.$attrs)||void 0===t?void 0:t.color),error:w.value})},$=e=>{var t;let i=o.$attrs;return void 0===i&&(i={}),void 0!==l.tkey&&""!==l.tkey&&(i.label=o.$tc(l.tkey)),Object.assign(Object.assign(Object.assign({},null===(t=o.$vnode.data)||void 0===t?void 0:t.props),i),P(e))},N=e=>[Object.assign({"bs-auto-saving":v.value===i.AutoSaved},e)],L=e=>{var t,o,i;let a=!0;for(const r of e){if(r.$children.length>0&&(a=L(r.$children)&&a),void 0===r.validate)continue;const e=r.validate(r.$attrs.value||(null===(i=null===(o=null===(t=r.$vnode)||void 0===t?void 0:t.data)||void 0===o?void 0:o.model)||void 0===i?void 0:i.value));a=a&&e}return a},B=Object(a["computed"])(()=>L(o.$parent.$children)),x=()=>{v.value=i.Resetting,c("input",y)};return Object(a["watch"])(O,(e,t)=>{const i=h.find(i=>i[o._uid].from===t&&i[o._uid].to===e);i?h=[]:(l.lazyValidation||A(e),(m.value||l.triggerOnChange)&&void 0!==l.autoSave&&t!==e&&(f.value&&void 0===t||(o._uid&&h.push({[o._uid]:{from:t,to:e}}),R())))}),Object(a["watch"])(b,e=>{!e&&l.validationResultTarget&&(l.validationResultTarget.innerText="")}),Object(a["onMounted"])(()=>{y=O.value}),Object(a["onUpdated"])(()=>{void 0===y&&void 0!==O.value&&(y=O.value)}),{autoSaveMessage:p,errorMessage:b,componentState:v,forceTriggerOnChange:m,stopSaveOnFirstSet:f,componentValue:O,hasErrors:w,isFormValid:B,debug:j,slot:(e,t,o)=>Object(s["a"])(e,t,o),isComponentIsValid:I,validate:A,validateComponentTree:L,doAutoSave:R,doBeforeAutoSave:k,getOnAutoSave:S,getListeners:C,getScopedSlots:E,getAttributes:D,getValidationProps:P,getRenderProps:$,getClasses:N,reset:x,renderAutoSaveMessage:T,renderErrorSlot:F}}},dbad:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i="";function a(){}function r(){return a}t.dummyValue=i,t.dummyFn=a,t.dummyDecorator=r,t.Arg=r,t.Args=r,t.ArgsType=r,t.Authorized=r,t.Ctx=r,t.Directive=r,t.Extensions=r,t.Field=r,t.FieldResolver=r,t.HideField=r,t.Info=r,t.InputType=r,t.InterfaceType=r,t.Mutation=r,t.ObjectType=r,t.PubSub=r,t.Query=r,t.Resolver=r,t.Root=r,t.Scalar=r,t.Subscription=r,t.UseMiddleware=r,t.createUnionType=a,t.registerEnumType=a,t.Float=i,t.GraphQLISODateTime=i,t.GraphQLTimestamp=i,t.ID=i,t.Int=i},dfc8:function(e,t,o){"use strict";o("2c8f")},e6f1:function(e,t,o){"use strict";o.d(t,"a",function(){return a});var i=o("87eb");const a=()=>({notification:{service:Object(i["a"])()}})},e742:function(e,t,o){"use strict";o.d(t,"a",function(){return i});const i=e=>{var t;return Object.assign(Object.assign({},e),{name:null===(t=e.name)||void 0===t?void 0:t.trim(),termsConsentDate:e.termsConsentDate?new Date(e.termsConsentDate):void 0,termsConsentRevokedDate:e.termsConsentRevokedDate?new Date(e.termsConsentRevokedDate):void 0,topReviewerAppStatusDate:e.topReviewerAppStatusDate?new Date(e.topReviewerAppStatusDate):void 0})}},e78f:function(e,t,o){"use strict";o.d(t,"a",function(){return l});var i=o("8b32"),a=o("6610"),r={get returnLocation(){return Object(a["a"])().returnLocation},get returnCrudModel(){return Object(a["a"])().returnCrudModel},get returnLabel(){return Object(a["a"])().returnLabel},get completeLabel(){return Object(a["a"])().completeLabel},get attachModelId(){return Object(a["a"])().attachModelId},get meta(){return Object(a["a"])().meta}},n={get state(){return Object(i["readonly"])(Object(a["a"])())},getters:r},s=o("25f1");function l(){return{system:{store:n,service:Object(s["a"])()}}}},e7e4:function(e){e.exports=JSON.parse('{"modules":{"messages":{"actions":{"markAsRead":"Mark as read","markAsUnread":"Mark as unread","blockUser":"Block User","unblockUser":"Unblock User","report":"Report","requestHelp":"Request Help","sendMessage":"Send Message"},"labels":{"messages":"Messages","yourMessages":"Your Messages","unread":"Unread","inbox":"All Messages","undefined":"Messages","sent":"Sent","trash":"Trash","replyAs":"Reply as:","replyingAs":"Replying as:","xNewMessages":"{0} New Messages","xConversations":"{0}
2702 Other Conversations","unreadMessagesBelow":"Unread Messages Below","seriesInfo":"Book {0} of {1}","messageFlagged":"This message has been reported to the Booksprout Admin","blocked":"This user is currently blocked and the messages are not available","reportUser":"Also report this user to Booksprout staff","blockQuestion":"Would you like to block all future messages from this user?","flagQuestion":"Would you like to report the message below?","requestSupport":"Request Support","requestSupportMessage":"You can request help from Booksprout\'s support team if this reader is having issues with our website.<br /><br />If you\'d like us to assist this reader, please request help below. We will get back to them within 24 hours via email.","reviewerIsBlocked":"This person hasn\'t activated their Booksprout plan. Therefore, they cannot receive any messages.","fromXonX":"with {name} on {bookTitle}","toXonX":"to {name} on {bookTitle}","youBlocked":"You have blocked this person","reportedMessage":"Reported Message"},"formFields":{"search":{"placeholder":"Search messages"},"newMessage":{"placeholder":"Type your reply"}}},"settings":{"actions":{"updateSecuritySettings":"Update Security Settings","updateBillingSettings":"Update Billing Settings","sendInvitation":"Send Invitation","saveVa":"Save Virtual Assistant","resendVerification":"Resend verification e-mail","makeDefault":"Make Default?","dontWithdraw":"Cancel","yesWithdraw":"Confirm withdraw consent","dontReinstate":"Cancel and logout","yesReinstate":"I Consent","addAuthorFeatures":"Add Author Features to my Account","changePassword":"Change password","withdrawConsent":"Withdraw consent","addNewEmail":"Add new email","updateCookiePreferences":"Update cookie preferences","deleteMyAccount":"Delete my account","stopActingAsX":"Stop acting as {userName}"},"labels":{"menu":"Settings","settings":"Settings","defaultEmail":"Default","verificationEmailSent":"Your email verification has been re-sent to {0}","verificationCodeSent":"A verification code has been sent to {0}","defaultEmailUpdated":"Default email has been set to {0}","passwordUpdated":"Your password has been updated successfully.","unverifiedDefault":"You must verify your email address before you can make it your default one.","withdrawConsent":{"title":"Withdraw consent","description":"Booksprout requires your consent to process your data according to our {termsAndConditionsSlot} and {privacyPolicySlot}. Your consent is required in order for our site to function properly.","descriptionPart2":"Withdrawing consent means the following:","descriptionPart3":"Your Booksprout account will no longer function as we can no longer process your data.","descriptionPart4":"Your Booksprout account will be permanently deleted in 90 days if you have not re-consented by that time.","consentGivenOnX":"Your consent was last given on {consentDate}"},"reinstateConsent":{"title":"Your consent is required to use Booksprout","description":"You\'ve previously withdrawn consent for us to process your data on <span class=\'text-bold\'>{0}</span>. Without this consent, our website cannot function properly. Please either re-consent or logout."},"changePassword":{"title":"Change password","description":"You can change your password below."},"newEmail":{"title":"Add new email","description":"You can add a new email address to your account below."},"consentWithdrawn":"You have been logged out and consent has been withdrawn.","confirmEmailRemoval":"Are you sure you want to remove {0} from your account?","noAccessToXSettings":"You don\'t have access to {userName}\'s Settings","vaNoAccessMessage":"Virtual Assistants cannot modify settings. If you wish to see your own settings, youâll need to return to your own account first.","bookCategories":"Book Categories","selectFavouriteCategories":"Select your favorite categories below."},"deleteAccountDialog":{"title":"Delete your account","permanent":"permanent","cannotBeUndone":"cannot be undone","deleteYourAccount":"delete your account","description":"Deleting your account is {permanent} and {cannotBeUndone}. If you have an active subscription, it will be cancelled when your account is deleted.","summaryIntro":"This will {deleteYourAccount}, along with the following:","summaryItem":"{count} related {model}","confirmLabel":"Type \\"{deleteWord}\\" to confirm","actions":{"cancel":"Cancel, keep my account","delete":"Delete my account","deleting":"Deleting account..."}},"errors":{"passwordsMustMatch":"This field must match your new password.","passwordUpdated":"Password updated."},"account":{"title":"Account Settings","securityTitle":"Security Settings","consentTitle":"Your Consent","formFields":{"name":{"title":"Your username","hint":"Your username will be shown next to your reviews and in chat.","placeholder":"Public name"},"profilePicture":{"title":"Your profile picture","hint":"Recommended dimension: 100x100px. Formats: jpg, png or gif. Max file size: 10MB."},"email":{"title":"Your account email","hint":"Your default email address will be used as your primary communication method. Multiple email addresses can be added if you wish to receive ebook files to them, or help authors find and invite you to their teams."},"changePassword":{"title":"Change your password","hint":"If you wish to change the password used to login to Booksprout, you can do that here.","oldTitle":"Current Password","newTitle":"New Password","confirmTitle":"Confirm New Password","placeholderOld":"Old password","placeholderNew":"New password","placeholderConfirmNew":"Confirm new password"},"cookies":{"title":"Cookie Preferences"},"consent":{"title":"Data processing consent","hint":"Our records indicate that youâve agreed to our {termsAndConditionsSlot} and {privacyPolicySlot} on {consentDate}. You can easily withdraw your consent by clicking on the button below. "},"deleteAccount":{"title":"Delete your account","hint":"Deleting your account is {permanent} and {cannotBeUndone}. All your data, including your review campaigns, books, reader claims, teams, will be removed from our system and {cannotBeRecovered}.","cannotBeRecovered":"cannot be recovered"},"newEmail":{"title":"Email","placeholder":"Enter new email address"}}},"author":{"title":"Author Settings","virtualAssistantTitle":"Virtual Assistant","vaAdded":"This email address has been linked to your account as a virtual assistant.","vaRemoved":"This email address is no longer a virtual assistant on your account.","convert":"You\'re currently a reader and do not have access to author features and settings.<br/>If you\'re now an author and have books to feature on Booksprout, you can add author features to your account here.","addAuthorFeatures":{"heading":"Add author features to your account?","notice":"This cannot be undone so choose \\"no\\" unless<br/>you have books to feature on Booksprout.","actions":{"yes":"Yes, Add author features","no":"No, Don\'t add author features"}},"formFields":{"reminders":{"title":"Author Email Settings","fillBeforeDue":"Reminders to fill out book links before my review campaign is due","dailyUpdates":"Daily updates on my follower counts","timeToPublish":"Reminders to publish my book and update my links in Booksprout","newArcParticipant":"When someone claims a review copy","newReview":"When someone writes a review on my review campaign","arcCancellation":"When someone withdraws their promise to review","reviewRejected":"When someone says their review has been rejected by Amazon","newExternalReview":"When someone has reviewed on an external store","newTeamApplicant":"When someone has requested to join my team"},"va":{"title":"Add a Virtual Assistant","hint":"Invite someone to help you manage your review campaigns","placeholder":"Enter your VA\'s email address","removeVa":"Remove Virtual Assistant"}}},"reviewer":{"title":"Reviewer Settings","formFields":{"name":{"title":"Publicly displayed reviewer name"}
2702,"kindleEmail":{"title":"Your Kindle email address","hint":"We can send books straight to your Kindle device or app. Add {readerEmailAddress} to your approved senders.","placeholder":"Kindle email address","confirmTitle":"Yes, I have added [email protected] to my approved senders.","errors":{"approveSender":"Please confirm the approved sender option."}},"alerts":{"title":"Reader Email Settings","newArc":"When an author or team I\'m following publishes a new review copy","newArcOtherLanguages":"Send me emails about books that are not in my selected language(s).","reviewDueIn2Days":"When I have a review due in 2 days","reviewOverdue":"When a review is overdue","alertReadyToReview":"When a review is due","alertFinalFollowup":"Final review due reminder","alertDelayExpiring":"When my Amazon review delay is expiring","alertDelayExpired":"When my Amazon review delay has expired","savedArcEndingOrLowCopies":"When a saved book is low on copies or the campaign is ending soon","invitedToTeam":"When I have been invited to review team","freeText":"When a book is deleted and does not need to be reviewed","authorUpdatesBookFile":"When an author updates a book file"},"reviewOn":{"title":"Sites you can review on"},"amazonProfileLink":{"title":"Amazon profile link","placeholder":"Amazon profile link"}}},"billing":{"title":"Billing & Plan Info","labels":{"yourPlan":"Your Booksprout plan","sinceX":"Since {0}","billingCycle":"Your billing cycle","nextBillOnX":"Next bill on {0}","billingInfo":"Billing info","expiresOnX":"Expires {0}","changeYourPlan":"Change your plan","switchToMonthly":"Switch to monthly billing?","switchToYearly":"Switch to yearly billing?","immediateSwitch":"Your billing cycle will change immediately.","chargeInfoMonth":"Your account will be credited for any unused time that you\'ve already paid for and you will be charged for one month of Booksprout.","chargeInfoYear":"Your account will be credited for any unused time that you\'ve already paid for and you will be charged for one year of Booksprout.","switchPlanToX":"Switch plan to {0}","switchPlanToXSub":"You\'ll switch to our {0} plan now.","switchPlanToXText":"You\'ll be credited for the remaining time on your {0} plan and the credit will be applied to your new subscription.","upgradePlanToX":"Upgrade plan to {0}","upgradePlanToXSub":"You\'ll upgrade to our {0} plan now.","upgradePlanToXText":"You\'ll be credited for the remaining time on your {0} plan and the credit will be applied to your new subscription.","noSubscription":"No active subscription","choosePlan":"Ready to upgrade and start getting some much needed book reviews? Choose your plan!","choosePlanHeading":"Letâs choose the plan thatâs best for your needs as an author","publisherHeading":"To start using our Publisher features right away, an upgrade is required.","publisherSubHeading":"Save time and money managing your review team","planInformation":"Plan Information","billingInformation":"Billing Information","paymentHistory":"Payment History","creditCardInformation":"Credit Card Information","taxInformation":"Tax Information","expiryDate":"Exp. Date","country":"Country:","postCode":"Postal/ZIP Code:","vatNumber":"VAT Number:","cardTypes":{"none":"Card removed","visa":"Visa","mastercard":"Mastercard","amex":"American Express","discover":"Discover","diners":"Diners Club","jcb":"JCB"},"paidOnX":"Paid on {0}","noCreditCard":"You need to add a valid credit card to get more reviews.","noTaxInfo":"For legal reasons, you need to update your tax information.","cancelSubscription":"Cancel subscription","cancelHere":"If you donât wish to get any more reviews, you can cancel here.","benefitsExpireOnX":"Benefits expire on {date}. No further payments are authorised.","voided":"Voided","failedPayment":"Payment Failed","skipPayment":"Skip payment for now","skipPaymentSub":"You can start setting everything up now and pay when itâs time to start getting reviews.","failedPaymentMessage":"Your latest payment was unsuccessful. Please note that our business is located in Canada and that some banks will decline transactions because of that. We recommend getting in touch with your bank to make sure they will allow the transaction and retry the payment against the failed invoice below.","confirmLimitRetryPayment":"Retry payment?","limitRetryPayment":"You can only retry a payment once so please make sure that you have resolved the original issue before proceeding. If payment fails again, please reach out to our support team for assistance."},"formFields":{},"actions":{"changePlan":"Change plan","switchToMonthly":"Switch to monthly","switchToYearly":"Switch to yearly","stayOnMonthly":"Stay on monthly","stayOnYearly":"Stay on yearly","change":"Change","upgradeToX":"Upgrade to {0}","switchToX":"Change to {0}","stayOnX":"Stay on {0}","compareDetails":"Compare plan details","currentPlan":"Current plan","choosePlan":"Cho
2702ose Plan","back":"Return to previous page","downloadReceipt":"View Receipt","addCreditCard":"Add Credit Card","cancelPlan":"Cancel Plan","retryPayment":"Retry Payment","failedPaymentGetHelp":"Get Help"}},"email":{"title":"Email Notification Settings","formFields":{"alerts":{"title":"Other Email Settings","emailOnMessage":"Send me an email when I receive a message"}}},"categories":{"title":"My Categories"},"changeOrRemoveCardDialog":{"modes":{"view":{"labels":{"title":"Change or remove credit card","subTitle":"You can change or remove your credit card below","actionNote":"If you add a new credit card the current one will be removed"},"actions":{"addNew":"Add New Credit Card"}},"remove":{"labels":{"title":"Remove Credit Card","subTitle":"Are you sure you want to remove this credit card from your account?"},"actions":{"keep":"Keep it","remove":"Remove it"}},"add":{"labels":{"title":"Add new credit card","subTitle":"This card will be used for all future Booksprout payments"},"actions":{"addNew":"Add New Credit Card"}}}},"updateTaxDataDialog":{"modes":{"none":{"labels":{"title":"Update Tax Information","subTitle":"For legal reasons, we need to know your country of residence. Keep the information below up to date."},"actions":{"updateTaxInfo":"Update Tax Information"}},"add":{"labels":{"title":"Add Tax Information","subTitle":"For legal reasons, we need to know your country of residence. Keep the information below up to date."},"actions":{"updateTaxInfo":"Update Tax Information"}},"updated":{"labels":{"title":"Tax Information Updated","subTitle":"You have successfully updated your tax information. Below you will find a summary of your subscription charges."},"actions":{"gotIt":"Got it!"}}}},"cancelSubscriptionDialog":{"title":"Cancel your subscription","subTitle":"If you cancel now, youâll still have access to our {planName} features until {0}.","subTitle1":"To help us improve our product, would you take a moment to let us know why youâre no longer planning to use Booksprout?","note":"Note that if you require assistance, please contact us at {0} for the fastest response time.","formFields":{"reason":"Reason","details":"Additional details"},"discountConfirmation":{"heading":"Hold on a second!","bodyHtml":"Looks like your Booksprout subscription currently has a <strong>loyalty discount of {0}% off</strong>. If you cancel your subscription now, you\'ll lose this discount forever.<br/><br/>Are you sure you want to cancel your subscription?","keep":"Keep Subscription","continueToCancel":"Continue to cancel"},"actions":{"keep":"Keep Subscription","cancel":"Cancel Subscription"}}},"login":{"actions":{"signUpInstead":"Sign Up!"},"labels":{"keepMeLoggedIn":"Remember me","needAnAccount":"Don\'t have an account?","loginToYourAccount":"Sign in to your account"}},"signUp":{"actions":{"agreeToTerms":"I agree to Booksprout\'s {termsAndConditionsSlot} and {privacyPolicySlot}","loginInstead":"Sign In","continueWithX":"Continue with {platformNameSlot}","resendEmail":"Please resend it","updateEmailAndResend":"Update email and Resend Confirmation","sendVerificationEmail":"Verify my email address","notRedirected":"Not redirected automatically? Please click here","sendVerificationCode":"Next","verifyPhone":"Verify","updatePhoneAndResend":"Update number and resend code","resendCode":"Resend code"},"labels":{"signUp":"Sign up for Booksprout","whichOneDescribesYou":"Which one describes you?","iAmReader":"I\'m a Reader","iAmAuthor":"I\'m an Author","iAmPublisher":"I\'m a Publisher or ARC Service","iAmVA":"I\'m a Virtual Assistant","confirmEmail":"Confirm Email","termsAndConditions":"Terms and Conditions","privacyPolicy":"Privacy Policy","alreadyHaveAnAccount":"Already have an account?","createAccount":"Create your account","pleaseFillInInformationBelow":"Please, fill in the information below","selectRoleHeadingDesc":"Which one best describes you?","vaRoleQuestion":"Great! Aside from being a Virtual Assistant, what best describes you?","methodSelectionHeading":"Join our book-loving community","methodSelectionHeadingDesc":"Over {userCount} other users are already reviewing and creating great books","verifyEmail":"Verify your email address","verifyEmailExplanation":"Check your inbox for a verification email from Booksprout. <br /> We need to confirm your email address to proceed.","whatIsYourEmail":"What\'s your email address?","whatIsYourEmailExplanation":"All Booksprout accounts require a valid email address so that we can reach you if we need to.","emailNotArrived":"Didn\'t get the confirmation email?","emailUpdated":"Email address updated. Please check your emails for verification.","emailVerified":"Your email has been verified!","whatIsYourPhone":"Verify your account with a phone number","whatIsYourPhoneExplanation":"To help protect our community, we need to verify some accounts with a phone number. <br /><br />
2702 By providing your phone number, you agree to receive a one-time verification code by text message (standard rates may apply).","verifyPhoneExplanation":"We sent a confirmation code to the phone number ({phoneNumber}).","codeNotArrived":"Didnât get the confirmation code?","phoneUpdated":"Phone number updated. Please check your messages for the verification code.","phoneVerified":"Your phone number has been verified!"},"formFields":{"email":{"placeholder":"Insert your email"},"password":{"placeholder":"Insert your password"},"agreeToMarketing":{"title":"I want to get updates on the latest features, promotions, book-related insights, and more!"},"phone":{"countryCode":"Country code","number":"Phone number"}},"agreeToOAuthTerms":{"labels":{"title":"Before you join","description":"You must agree to the terms and conditions to finish setting up your Booksprout account."},"formFields":{"agreeToTerms":{"error":"You must agree to the terms and conditions."}}}},"forgotPassword":{"labels":{"requestPasswordReset":"Forgot password","fillOutYourEmail":"Please, fill in the input below to reset your password","checkYourEmail":"Please check your email for further instructions on how to reset your password.","somethingWentWrong":"Something went wrong request a password reset. Please contact us.","resetYourPassword":"Reset Your Password","enterANewPassword":"Please enter a new password below.","passwordResetComplete":"Your password has been reset, please login below."},"actions":{"contactUs":"contact support"}},"books":{"labels":{"epubExceeds10mb":"EPUB book file","pdfExceeds10mb":"PDF book file","bothExceeds10mb":"EPUB and PDF book files","exceeds10mb":"exceeds 7MB","reduceFileSize":"If possible, please reduce the file size.","sendViaEmailDisabled":"Send via email is disabled","sendViaEmailDisabledMessage":"Since your {fileTypes} {exceeds10mb}, it cannot be sent via email. This may cause issues for readers who rely on our âsend to emailâ functionality to transfer files to their e-readers.\\n{reduceFileSize}","languageNames":{"english":"English","spanish":"Spanish","german":"German","french":"French","italian":"Italian","portuguese":"Portuguese","other":"Other"}},"actions":{"generateNow":"Generate now","exportKindlePreviewerLog":"Download error log"},"fileUpdateNotification":{"title":"Update to your book file(s)","subtitle":"Tell us why youâre uploading a new version of your book. This helps us process the update correctly.","notifyExplainer":"We can <strong>notify readers of a book file update once per review campaign</strong>. If you would like to use your notification right now, check the box below.","sendCheckbox":"Send my <strong>only notification</strong> to readers about the updated book file","reasons":{"pleaseSelect":"Please select","uploadedWrongFile":"Uploaded the wrong file by accident.","changedSignificant":"Changed a significant portion of the book.","changedSmall":"Changed a small portion of the book.","fixedTypos":"Fixed typos."},"actions":{"doneWithoutNotification":"Done without a notification","sendNotification":"Send a notification"}},"formFields":{"files":{"filesSuppliedTitle":"We currently have the following files for your book:","title":"Upload new ebook files","hint":"We accept EPUB and PDF files. We recommend that you provide both formats.","agreeToUploadTerms":"I certify that I will only upload files that I have the rights to distribute","uploadHint":"your book here","willBeGenerated":"Will be automatically generated","fileUploadedOnX":"Uploaded {date}","fileGeneratedOnX":"Generated {date}","onlyPdfUploaded":"Note: We cannot automatically generate EPUB file from a PDF. For the best user experience, we recommend that you upload EPUB file."},"appleBooksDownloadCodes":{"sectionTitle":"Provide Apple Books codes to get reviews","downloadHintWithLink":"You can request these from your Apple Books dashboard ({button}
2702).","authorSupportUrl":"https://help.booksprout.co/article/297-how-to-add-apple-books-promo-codes","uploadTxtFile":"Upload TXT file","typeCodesPlaceholder":"Type codes here or upload a TXT file","whenDoCodesExpire":"When do the codes expire?","selectDate":"Select date","addCodes":"Add Codes","availableCodes":"Available Codes ({0})","expiredCodes":"Expired Codes ({0})","claimedCodes":"Claimed Codes ({0})","expiresOn":"Expires on {date}","removeCode":"Remove code {0}","loadFailed":"We could not load your Apple Books codes. Please try again.","saveFailed":"We could not save your Apple Books codes. Please try again.","saveBookFirst":"Please add a title for your book before adding Apple Books codes.","expiredOn":"Expired on {date}","removeExpired":"Remove expired codes","availableCodeCount":"{n} available code | {n} available codes"}}},"arcs":{"labels":{"yourArcs":"My Review Copies","cancellationReasons":{"poorlyEdited":"Book was poorly edited","story":"Couldn\'t get into the story","personal":"Personal reasons","badDescription":"Book not as described","badFit":"Not my type of book, but others may enjoy it","couldNotReview":"Could not review on all required stores","other":"Other"},"private":"Private","status":{"draft":"Draft","active":"Active","scheduled":"Scheduled","finished":"Finished"},"someNotificationsDue":"This review listing is finished, but we still have follow-up reminders scheduled for your participants.","claimedXDaysAgo":"Claimed <strong>{n}</strong> days ago | Claimed <strong>{n}</strong> day ago | Claimed <strong>{n}</strong> days ago","reviewedOnX":"Reviewed on {createdDate}","reviewDueOnX":"Review due on {dueDate}"},"formFields":{"flags":{"amazon":"Amazon","goodreads":"Goodreads","bookbub":"BookBub","barnes":"Barnes & Noble","google":"Google Play","kobo":"Kobo","iTunes":"Apple Books","appleBooks":"Apple Books","smashwords":"Smashwords","storygraph":"StoryGraph","audible":"Audible","authorsDirect":"Authors Direct (Spotify)","audioGoogle":"Google Play (Audio)","audioKobo":"Kobo (audio)","audioBookbub":"BookBub (Audio)","audioITunes":"Apple Books (Audio)","audioBarnes":"Barnes (Audio)","audioGoodreads":"Goodreads (Audio)","options":{"required":"Required","optional":"Optional","notAvailable":"Not Available"}},"specialInformation":{"title":"Any special information for the reviewers?","placeholder":"Write something that your reviewers would like to know."},"discoverableType":{"title":"Would you like this review campaign to be discoverable by Booksprout\'s reviewer community?","hint":"","options":{"discoverable":"Yes","private":"No, make it private"}},"notificationType":{"title":"Who should we notify of this new review campaign?","hint":"","options":{"penNameFollowers":"{penNameName}\'s followers ({followerCount} followers)","teamFollowers":"{teamName}\'s followers ({followerCount} followers)","teamMembers":"{teamName}\'s members ({memberCount} members)"}},"participationPreventionType":{"title":"Should we allow reviewers with due reviews on this team to participate?","hint":"Note: this setting applies to team members as well.","options":{"outstanding":"No, prevent those with due reviews from participating","none":"Yes, allow those with due reviews to participate"}},"siteWideParticipationPreventionType":{"title":"Should we allow team members who\'ve hit our site-wide limitations to participate?","hint":"Booksprout automatically prevents reviewers with too many past due reviews from participating in new review campaigns until they finish enough reviews. You can override this feature for your team members and allow anyone on your team to participate if you would like.","options":{"none":"Allow any team members to participate","limited":"Do not allow team members who\'ve hit site-wide limitations to participate"}},"participationType":{"title":"Who should be allowed to participate?","hint":"","title2":"Should we limit this review campaign to our manually vetted Top Reviewers?","hint2":"","options":{"public":"No","topReviewers":"Yes","anyoneWithLink":"Anyone with the private link to this review campaign","onTeam":"Only reviewers on my review team"}},"copyCountType":{"title":"At most, how many review copies would you like us to distribute?","hint":"Your account type allows for up to [{0}] copies. Upgrade for more.","options":{"all":"As many as my plan allows ({maxParticipantsPerArc})","limited":"A limited amount"}},"neverEndingPrivate":{"title":"Is this an endless review campaign?","hint":"Select \'Yes\' if you want your review campaign to stay on our site for an indefinite amount of time.","options":{"one":"Yes, it is.","two":"No, it isn\'t."}},"liveDate":{"neverEnding":{"title":"What\'s the start date?","hint":"Select the day your book will become available on Booksprout.","placeholder":"Pick live date"},"limited":{"title":"What\'s the start date?","tooltips":{"dateConflict":"Dates in red conflict with another review campaign. You can upgrade your Booksprout plan to run more simultaneous review campaigns.","startDate":"You must select a start date first.","endDate":"You must select an end date first.","afterStartDate":"This date needs to be after the start date.","afterStopDownloadDate":"This date needs to be after the date you stop allowing new participants.","cannotBeInPast":"This date needs to be in the future.","tooFarInFuture":"This date is too far in the future. Review campaigns can only be active for a maximum of 60 days.","dateConflictNotAfterFullDay":"You cannot select this date because it would cause a conflict with another review campaign. You can upgrade your Booksprout plan to run more simultaneous review campaigns.","upgrade":"You must upgrade to schedule a review campaign."},"errors":{"dateConflict":"This date conflicts with another review campaign","tooFarInFuture":"This date is too far in the future","oneRunningArcForSameBook":"We only allow one review campaign per book per format at a time."}}},"stopDownloadDate":{"title":"When should we stop allowing new participants?","hint":"Select the day you want your book to stop being available to claim on Booksprout. No new participants will be allowed after that day."},"reviewDays":{"title":"How many days do reviewers have to read and review?","placeholder":"days","validation":{"limit":"You can only set a maximum of 60 days."}},"copyCount":{"placeholder":"copies"},"reviewSites":{"steps":{"step1":{"name":"Step 1","title":"Which sites will your book be available for review?","description":""},"step2":{"name":"Step 2","title":"How many external sites do you require each participant to review on?","description":"We recommend that authors only require 1 review. This is because many reviewers only have an account at one store, and requiring more reviews than that will reduce the amount of participants.","limitError":"Discoverable review campaigns can only have 2 required reviews.","countError":"You can\'t have more required sites than you have selected.","zeroCountWarning":"Heads up! If you want reviews posted on Amazon, Goodreads, or any other external site, make sure to set this to 1 or more! Otherwise, only a Booksprout review will be required."},"step3":{"name":"Step 3","title":"Are there any specific sites that you require every participant to review on?","description":"","warning":"If you want to select more stores here, please increase the number of external sites you want a review on in Step 2."}}}},"reviews":{"labels":{"rating":"Rating","feedback":"Private Feedback","cancellation":"Withdrawal","cancelledBy":"Withdrawn by","cancelledOn":"Withdrawn on","reviewedOn":"Reviewed on","reviewedBy":"Reviewed by","privateFeedback":"Private feedback","translateToEnglish":"Translate to English","translatingReview":"Translating...","translatedReview":"Translated review","showTranslatedReview":"Show translated review","hideTranslatedReview":"Hide translated review","reason":"Reason for not reviewing","additionalInformation":"Additional Information","claimed":"Claimed","claimedOn":"Claimed on"}},"claims":{"status":{"claimed":"Claimed","inProgress":"Review Started","complete":"Completed","cancelled":"Withdrawn"}},"reviewerGuidelinesDialog":{"labels":{"heading":"Reviewer Rules & Guidelines","intro":"Reviewers who wish to use Booksprout to gain access to advanced review copies should adhere to the following guidelines. We may take action against any account found to be in violation of these rules.","noGenericReviewsHeading":"You may not use the same generic review multiple times","noGenericReviews":"Using the same review over and over for multiple books appears spammy and can harm an author\'s reputation. Do not write the same review for multiple books.","readEveryArcHeading":"You should attempt to read and review every ARC you download","readEveryArc":"Remember: Reviewing is optional. If you do not wish to write a review, then you should <a href=\\"//help.books
2702prout.co/article/96-how-to-cancel-a-promised-review\\" rel=\\"nofollow\\">cancel your promise to review that book</a> rather than simply ignoring it. Your reason for canceling can be just as valuable to an author as an actual review.","readEveryArcOverloaded":"However, if it\'s clear that you\'re downloading more books than you can handle then we may prevent you from getting any more.","noSharingHeading":"No sharing copies of an ARC","noSharing":"It\'s an author\'s worst nightmare to find their pre-published book already in circulation without their consent. Any ARC you download should be considered an exclusive copy for your eyes only.","reviewOnTimeHeading":"You should do your best to review on time","reviewOnTime":"Reviews on launch day are incredibly important to authors in terms of them getting better promotional opportunities to properly take advantage of the initial boost a book gets in the short time after it\'s first published. A review that appears a month later isn\'t nearly as helpful.","reviewTheStoryHeading":"Review based on the story you receive, not how it\'s formatted","reviewTheStory":"Remember: Booksprout is all about <em>advanced review copies.</em> These are often formatted by the author that wrote them, so they may not contain the same formatting as you would expect from a copy you get from Amazon or another retailer.","reviewTheStoryNotFormatting":"Write your review based on the story you receive, not whether or not it has the formatting you\'ve come to expect.","noThreatsHeading":"No threats","noThreats":"If you\'re found to be threatening authors for any reason, your account will be removed immediately.","noOutsideCopiesHeading":"Do not ask for the author to send you a copy outside of Booksprout","noOutsideCopies":"Booksprout has protections in place for both authors and readers. Asking authors to go outside of the system is usually an indicator of bad intentions.","onlyCompletableArcsHeading":"Only take ARCs that you can complete your review for","onlyCompletableArcs":"When making their books available for free to you as a reviewer, authors are asking that you write your review on stores that are important to them. Please make sure that you can actually write a review on all stores that they mark as required.","onlyCompletableArcsRepeated":"Repeatedly asking authors to mark your review as complete because you cannot review on stores they ask for is not allowed.","noLyingHeading":"No lying about having completed your review on any store","noLying":"Lying about having completed your review on a specific store is not allowed. If you have accidentally taken an ARC that requires a review on a store you cannot review on, then please <a href=\\"//help.booksprout.co/article/96-how-to-cancel-a-promised-review\\" rel=\\"nofollow\\">cancel your promise</a> to review that ARC.","oneAccountHeading":"Only one Booksprout account per person","oneAccount":"You may only have one Booksprout account. Multiple accounts for the same person will be removed from our system."}}},"arcTeams":{"formFields":{"defaultDisclaimer":{"title":"Which default disclaimer would you like to use?","options":{"one":"I received a free copy of this book via Booksprout and am voluntarily leaving a review.","two":"I received a free copy of this book and am voluntarily leaving a review.","three":"I received a free copy of this book via [ARC SERVICE NAME] and am voluntarily leaving a review."}},"blockFromTeam":{"title":"Which team should we block them from?"},"blockReason":{"title":"Whatâs the reason for blocking them?","options":{"selectReason":"Select Reason","generic":"Generic, low quality, or dishonest review","lied":"Lied about completing their review(s)","cancelled":"Withdrew too many review promises","notInterested":"Not their type of book","lowRating":"Low rating","lowRatingHint":"Remember: reviewers are asked to leave honest reviews.<br/>In most cases, it\'s best to have more reviews than perfect reviews. If your reviews are too perfect, it can make them look dishonest.","harassment":"Harassment","other":"Other"}}},"actions":{"manageReader":"Manage Reader"}},"settingsbilling":{"labels":{"billingCycle":"Your billing cycle"}},"subscriptions":{"tabs":{"labels":{"selectPlan":"Select Plan","billingCycle":"Billing Cycle","paymentInfo":"Payment Info","yearSubscription":"Annual subscription","monthSubscription":"Monthly subscription","salesVatX":"{0} ({1}%)","discount":"Loyalty Discount ({0}%)","amountDue":"Amount Due","selectedPlan":"Selected Plan","paymentMethod":"Payment Method","credit
2702Card":"Credit Card","billingAmount":"Billing Amount","moneyBack":"30-day money back guarantee","moneyBackPromise":"We stand by our product. If youâre not satisfied, weâll give you a full refund within 30 days of your first payment!","trustedByAuthors":"Trusted by thousands of authors","joinAuthors":"Join over 15,000 authors getting more reviews with Booksprout.","whatAuthorsSay":"What our authors say about us","newMonthlyAmount":"New Monthly Subscription Amount","newAnnualAmount":"New Annual Subscription Amount","newsSubscriptionAmount":"New Subscription Amount","amountDueNow":"Amount Due Now","unusedTime":"Unused {plan} time","freeMonth":"Free Month","freeMonthNote":"Note that your next payment, due on {renewalDate}, will be free."},"billingCycle":{"title":"How would you like to be billed?","subTitle":"Select how often you would like to be billed. Save money with our yearly plans!","yearlySavings":"You save {amount} yearly!"},"samePlan":{"title":"Change Plan Summary","subTitle":"No changes have been made to your plan. You will remain on the same plan and the same billing cycle."},"summary":{"title":"Change Plan Summary","subTitle":"Below you can see a summary of your new {cycle} subscription. The change in plan or billing cycle has also created an outstanding balance due now.","actions":{"confirmAndPay":"Confirm & Pay Now","confirmChange":"Confirm Change"}},"newPlanSummary":{"subTitle":"Below you can see a summary of your new {cycle} charge.","creditExplanation":"You pay $0 now. Since youâre switching from a more expensive plan, we will also carry forward a credit of ${0} towards future bills. That credit accounts for the unused time youâve already paid for."},"paymentInfo":{"title":"Great! Now letâs enter your payment info","subTitle":"This is the last step before you can start getting some much needed reviews!","formFields":{"cardNumber":"Card Number","expiryDate":"Expiration Date","ccv":"CCV","country":"Country","postcode":"ZIP/Postal Code","vat":"VAT Number"},"actions":{"makePayment":"Make payment"}},"finished":{"title":"Congratulations!","subTitle":"You are now a full member of Booksprout with our {planName} plan. Please allow up to 5 minutes for your plan to update.","actions":{"myAccount":"Go to my account"}}},"plans":{"labels":{"bestValue":"Best Value","moneyBack":"30-day money back guarantee","details":"Details","nextBillOnX":"Next bill on {date}","discountApplied":"Loyalty discount applied","freeMonth":"Free Month"},"actions":{"selectThisPlan":"Select This Plan","changeBillingCycle":"Change Cycle","changePlan":"Change Plan or Billing Cycle","reactivateSubscription":"Re-Activate Subscription","getStartedNow":"Get Started Now","upgradeToThisPlan":"Upgrade to this plan"},"features":{"maxRunningArcs":"Active review campaigns","maxParticipantsPerArc":"Copies available per review campaign","canViewReviewers":"Access to our vast reviewer community","canHaveAutomatedArcDistribution":"Automatic Review Copy distribution","canHaveAutomatedArcReminders":"Automatic Review Reminders","canCreateAudioBookArcs":"Audiobook Review Campaigns","canChooseDefaultReviewDisclaimer":"Choice of Default Review Disclaimer","canChooseDefaultReviewDisclaimerHint":"Choose a disclaimer that doesn\'t mention Booksprout","canHaveNeverEndingArcs":"Create Endless Review Campaigns","canHaveNeverEndingArcsHint":"Set your review campaign to run for as long as you want!","canLimitReviewersToTopReviewersOnly":"Restrict Review Campaigns to our manually vetted Top Reviewers","canLimitReviewersToTopReviewersOnlyHint":"Get reviews from our best reviewers only!","canAddVirtualAssistants":"Add a Virtual Assistant to your account","canAccessPremiumSupport":"Premium Support","canAccessPremiumSupportHint":"Virginie: TODO","canFreeTypePenNames":"Get Reviews for Books you didnât write","canChooseBrandedDefaultReviewDisclaimer":"Branded Default Review Disclaimer","canHaveTeamFollowers":"Team Followers"},"free":{"title":"Free","subTitle":"Use our free plan to get everything setup and only pay when you\'re ready to start getting reviews!"},"growing":{"title":"Growing Author","subTitle":"The perfect starter plan for any author who wants to step up their game."},"pro":{"title":"Pro Author","subTitle":"More of what you love, plus get audiobook reviews!"},"bestSelling":{"title":"Bestselling Author","subTitle":"Get the most out of Booksprout with our fully featured plan! Perfect for serious authors."},"publisher":{"title":"Publisher and Review Service","shortTitle":"Publisher","subTitle":"Save time and money managing your review team."}},"cancellationTypes":{"notSelected":"N/A","temporary":"I\'m only cancelling temporarily","notEnoughReviews":"I did not get enough reviews","difficultForReaders":"My readers found it too difficult to use","difficultForMe":"I found it too difficult to use","notWorking":"It didn\'t work as expected","lackingSupport":"Support was lacking","cost":"I can no longer justify the cost","other":"Other"}},"notifications":{"labels":{"notificationType":"Type of notification","closeAdvancedFilters":"Close advanced filters"},"mobileFilterDialog":{"labels":{"filters":"Filters"},"actions":{"applyFilters":"Apply filters","resetFilters":"Reset filters"}},"mobileSearchDialog":{"labels":{"search":"Search"},"formFields":{"search":{"placeholder":"Search by book title or name"}},"actions":{"search":"Search"}},"unsubscribe":{"confirmationMessage":"You will no longer receive emails for \\"{notificationType}\\"","alertReviewDueIn2Days":"Review due in 2 days","alertTimeToPublish":"Time to publish","dailyUpdatesOnFollowCount":"Daily updates on follower count","invitedToTeam":"Invited to review team","alertNewArc":"An author or team I\'m following publishes a new review copy","alertReadyToReview":"Review is due","alertFinalFollowUp":"Review is overdue","alertDelayExpiring":"Amazon review delay is expiring","alertDelayExpired":"Amazon review delay is expired","alertSavedArcEndingOrLowCopies":"A saved book is ending soon or low on copies","newArcParticipant":"Someone claims a review copy","newReview":"Someone writes a review on my review campaign","arcCancellation":"Someone withdraws their promise to review","reviewRejected":"","newExternalReview":"","freeText":"When a book is deleted and does not need to be reviewed","arcCannotActivate":"Review campaign cannot be activated","alertNewTeamApplicant":"Someone has requested to join my team","alertBookFileUpdated":"An author updates a book file"}}},"system":{"actions":{"seeAll":"See All","viewAll":"View All","importSelected":"Import Selected","login":"Login","logout":"Logout","signIn":"Sign In","signUp":"Sign Up","send":"Send","save":"Save","share":"Share","edit":"Edit","delete":"Delete","saveAndClose":"Save and Close","view":"View","copyLink":"Copy Link","filters":"Filters","filtersX":"Filters ({0})","cancel":"Cancel","confirmDelete":"Yes, Delete my {0}","cancelDelete":"Cancel, Keep my {0}","next":"Next","upgrade":"Upgrade","clearSearchResults":"Clear Search Results","clearFilters":"Reset filters","applyFilters":"Apply Filters","confirm":"Confirm","errorDialogHeading":"Oh, Snap!","messageDialogHeading":"It\'s done!","clickHere":"click here","follow":"Follow","following":"Following","back":"Back","viewFullReview":"View full review","continueReviewing":"Continue reviewing","viewReview":"View review","settings":"Settings","continue":"Continue","close"
2702:"Close","update":"Update","updateIt":"update it","closeDialog":"Close dialog","yes":"Yes","no":"No","submit":"Submit","reactivateEmail":"Reactivate Email","remove":"Remove","cancelSignUp":"Cancel Sign Up","addAnotherEmail":"+ Add another E-Mail","deleteXEmailAddress":"Delete {0} email address"},"date":{"date":"Date","dueOn":"Due on"},"labels":{"403":{"title":"We can\'t seem to find the page you\'re looking for","link1":"View your dashboard","link2":"View your review campaigns","link3":"View your account"},"404":{"title":"We can\'t seem to find the page you\'re looking for","link1":"View your dashboard","link2":"View your review campaigns","link3":"View your account"},"500":{"title":"Sorry, something went wrong on our end.","link1":"View your dashboard","link2":"View your review campaigns","link3":"View your account"},"goBack":"Go Back","loading":"Loading ...","connecting":"Connecting ...","connected":"Connected","noResultsFound":"No Results Found.","all":"All","booksprout":"Booksprout","or":"or","by":"by","on":"on","of":"of","logout":"Log out","done":"Done","doneEditing":"Done Editing","editing":"Editing {0}","optional":"optional","updated":"Updated {0}","copiedToClipboard":"Copied to Clipboard","couldNotCopyToClipboard":"Sorry we could not copy to the clipboard due to your mobile security settings.","changesSaved":"Your changes were saved!","requiredField":"Please, fill in the correct information","requiredFieldBannerStart":"Your {0} is missing required information. Please ","requiredFieldBannerEnd":" to be able to proceed.","select":"Select","selected":"Selected","xSelected":"{0} Selected","email":"Email","password":"Password","forgotPassword":"I can\'t remember my password","claimed":"claimed","explicit":"Explicit","verified":"Verified","unverified":"Not Verified","notAgreedToTerms":"You must agree to the Terms and Conditions.","loggedInAs":"Logged In As","actingAs":"Acting As","confirmDelete":"Delete your {0}?","deleteMessage":"Are you sure you want to delete the {0}","deleteWarning":"This will <strong>completely delete</strong> the {0}, along with the following:","deleteWarningItem":"{0} related {1}","viewAllX":"View All {0}","monthAbbreviation":"mo","month":"month","monthly":"Monthly","year":"year","yearly":"Yearly","off":"OFF","models":{"ArcDto":"Review Copies | Review Copy | Review Copies","ArcClaimDto":"Review Campaign Claims | Review Campaign Claim | Review Campaign Claims","PersonalArcClaimDto":"Personal Claims | Personal Claim | Personal Claims","ArcReviewDto":"Reviews | Review | Reviews","PersonalArcReviewDto":"Personal Reviews | Personal Review | Personal Reviews","ArcTeamDto":"Teams | Team | Teams","ArcTeamMemberDto":"Members | Member | Members","BookDto":"Books | Book | Books","PenNameDto":"Pen Names | Pen Name | Pen Names","ReviewDto":"Reviews | Review | Reviews","MessageThreadDto":"Messages | Message | Messages","AuthorDto":"Authors | Author | Authors","UserDto":"Users | User | Users"},"unlimited":"Unlimited","days":"Days","requestSupport":"Request Support","new":"New","newActivity":"New Activity","yes":"Yes","no":"No","facebook":"Facebook","amazon":"Amazon","apple":"Apple","roles":{"author":{"free":"Free Author","growing":"Growing Author","pro":"Pro Author","bestSelling":"Bestselling Author","publisher":"Publisher"},"reviewer":{"unset":"New Reviewer","new":"New Reviewer","valued":"Reviewer","top":"Top Reviewer"}},"noResults":{"label":"No {0}s found.","hint":"We couldn\'t find any {0}s related to \\"{1}\\".<br/>Try another search term.","createNew":"Create new {0}"},"search":"Search","clearSearch":"Clear Search","notLoggedIn":"Not Logged In","loginNow":"Login Now","pleaseSelect":"Please Select","help":"Help","maxFieldLengthX":"Must be less than {0} characters.","minimumFieldLengthX":"Must be at least {0} characters.","minimumFieldLengthXWithRemaining":"Must be at least {0} characters. You need {1} more characters","mainMenu":"Main menu","language":"Language","chooseLanguage":"Choose your language","support":"Support","gamification":"Reviewer Rank","messages":"Messages","notifications":"Notifications","book":"Book","hostedBy":"Hosted by","averageRating":"Average rating","shareableLink":"Shareable link","sortBy":"Sort by","fromXReviews":"from {n} review | from {n} reviews","reviewsAndFeedback":"Reviews & Feedback","reader":"Reader","author":"Author","switchAccount":"Switch account","premium":"Get Reviews","reviewerDashboard":"Reader Area","confirm":"Confirm","currentlySeeing":"You are currently seeing:","anonymous":"Anonymous","stopMimic":"Return to your account","unknownDate":"Unknown date","firstPage":"First page","nextPage":"Next page","previousPage":"Previous page","offline":"You are offline","maintenanceNotification":"The site will be entering maintenance mode in {timeUntilMaintenance} for {maintenanceDuration}. Please save your work.","undeliverableEmail":"Our latest emails haven\'t been able to reach out. Please make sure that your inbox is working and reactivate your email address","versionX":"Version: {0}","downForMaintenance":"Down for maintenance","downForMaintenanceMessage":"Sorry for the inconvenience but we\'re performing some maintenance at the moment. If you need to you can always contact us, otherwise we\'ll be back online shortly!","fromTheTeam":"â The team","searchTerm":"search term","sessionTimedOut":"Your session has timed out, please login to continue.","loggingOut":"Logging out ...","unsubscribing":"Unsubscribing...","redirecting":"Redirecting...","hours":"Hours","minutes":"Minutes","seconds":"Seconds","loyaltyDiscountX":"Loyalty discount: {0} off","saveX":"Save {0}"},"formFields":{"email":{"title":"Email","placeholder":"Insert your email"},"confirmEmail":{"title":"Confirm Email","placeholder":"Confirm your email"},"password":{"title":"Password","placeholder":"Insert your password"},"confirmPassword":{"title":"Confirm Password","placeholder":"Confirm your password"},"enterAccountName":{"title":"Choose your display name","description":"Before you can continue, we need a display name that you\'d like to go as on Booksprout. This will be displayed next to your reviews and when sending messages to other users.","placeholder":"Your Display Name"}},"status":{"failed":"Failed"},"errors":{"somethingWentWrong":"It looks like something went wrong; please contact us.","somethingWentWrongWithParams":"We have detected problems with your email address. The problem is as follows: \\n\\n \\"{message}\\" \\n\\n Once this problem is resolved, please contact us so we can reset your email address.","emailExists":"This email address already exists.","phone
2702Exists":"An account already exists that is linked to this phone number.","smsRateLimitExceeded":"You have reached the daily SMS verification limit. Please try again tomorrow.","invalidEmail":"You have entered an invalid email address.","invalidValue":"Please enter a valid value.","invalidDate":"Please enter a valid date.","invalidLogin":"Your login credentials are incorrect.","invalidFile":"This file type is not allowed.","invalidEbookFile":"We couldn\'t read that file. It doesn\'t look like a valid EPUB.","fileNoLongerAvailable":"File is no longer available","notABooksproutDownload":"This file was not downloaded from Booksprout","expiredPasswordRequest":"For security purposes, your password reset link has expired. Please request another password reset link below.","missingFile":"We couldn\'t prepare your review copy. Please try again in a few minutes, and contact support if it keeps happening.","claimEmailNotVerified":"We can only send review copies to a verified email address on your account.","emailRecipientInactive":"We couldn\'t send to this address. Our email provider has blocked it after an earlier bounce or spam report. Please contact support so we can reactivate it.","postmarkBounceCode":"We\'re unable to send you emails at this time.","postmarkBounceCodes":{"1":"The server was unable to deliver your message.","512":"The message was delivered, but was either blocked by the user, or classified as spam, bulk mail, or had rejected content.","4096":"Unable to temporarily deliver message (i.e. mailbox full, account disabled, exceeds quota, out of disk space).","100000":"The address is not a valid email address.","100001":"The subscriber explicitly marked this message as spam.","100002":"The email was manually deactivated.","100006":"Blocked from this ISP due to content or blacklisting.","WithdrawnConsent":"Consent needed to use Booksprout."},"accountNameExists":"This Display Name already exists but must be unique.","requestThrottled":"We cannot complete this request at this time.","disposableEmail":"Disposable email addresses are not authorised. If you feel that we have made a mistake, please contact us.","userAlreadyAdded":"You are already a member of this review team","memberDoesNotExist":"This member does not exist.","fieldsMustMatch":"These fields must match","permissions":"You do not have permission to do this.","pirateUserNotExist":"The user in this file doesn\'t exist in our system.","pirateUserIsYou":"Yup, it works! We caught you! But you didn\'t really want to report yourself, did you? Don\'t worry, we didn\'t think so.","pirateAlreadyReportedUser":"You have already reported this user for this book.","alreadyReviewed":"You have already posted a review for this book.","tookTooLong":"It took too long to do that. Please try again.","invalidMobi":"This MOBI file doesn\'t contain KF8 format data and cannot be used.","bookIsDraft":"The selected book is a draft and cannot be used to create a review campaign.","errorSendingWelcomeEmail":"You have been signed up but there was an error sending your welcome email! We have logged you in but please contact us so we can send your email.","youCannotBeYourOwnVa":"Yup, it works! We caught you! But you didn\'t really want to be your own VA, did you? Don\'t worry, we didn\'t think so.","vaAlreadyAdded":"This user is already a VA on your account. You don\'t need to do anything else.","alreadyHasAVa":"You have already added a VA to your account.","invalidUser":"This user does not exist.","invalidUnsubId":"Could not unsubscribe, please contact us.","alreadyHasAuthorRole":"This user already has an author role. Aborting.","cannotDowngradePaidAuthor":"This user is a paying author and cannot be converted to a reader account.","userAlreadyReader":"This user already has a reader account.","unsupportedAccountType":"This account type change is not supported.","noAmazonResultsForAuthor":"There are no books on Amazon for this author.","invalidVerificationCode":"This verification code is invalid because it\'s not recognised or has been used already. It is possible your account is already confirmed.","notAllowedToClaimArc":"Sorry. You are not allowed to claim this review copy.","arcUnavailable":"This review copy is no longer available.","arcHasEnded":"This review copy has ended.","reviewTranslationBusy":"Translation service is busy right now. Please retry later.","reviewTextUsed":"You have used this same review text within the last 2 weeks. Please update the review.","missingRequiredLinks":"Link due date cannot be updated as there are still required links outstanding.","audiobookCodesRequired":"Audiobook campaigns need at least one set of download codes. Please add codes on the Format step.","notEnoughInformation":"Required information missing.","noInvitation":"There is no invitation outstanding. Did you already join?","lockedAccount":"Your account is locked. Please contact us.","invali
2702dBookCoverSize":"Your book cover is an invalid size. Minimum height: 415px.","invalidKindleEmail":"Not a valid Kindle email address.","failedToGeneratePreview":"We could not generate a preview for your EPUB. Please contact us.","failedToGeneratePreviewPictureBook":"We could not generate a preview for your EPUB because it lacks text.","arcNotAvailable":"This review copy is not yet available.","arcFileTooBigForEmail":"This book is too large to send by email. Please use the direct download option instead.","noAudioCodesAvailable":"Sorry, there are no more audio codes available for this book.","chipBox":{"invalidEmailsDetected":"Some invalid email addresses were detected. Please double check your input.","maxCharsPerEntry":"Entry \\"{userEnteredValue}\\" exceeds maximum allowed characters of {maxCharsPerEntry}"},"atLeastOneFileRequired":"You must upload at least one file for this book.","teamOwnerNotPublisher":"Sorry. This team is no longer accepting followers.","memberCantUnfollowTeam":"You cannot unfollow a team you are a member of.","notFollowingTeam":"You are not following this team.","minPasswordLength":"Password must contain at least 8 characters","maxPasswordLength":"Password must not exceed 65 characters","failedToLoginNoEmail":"We could not log you in as you didn\'t supply a valid email address.","loginTimedOut":"Your login session has expired. Please try again.","popupBlocked":"Your browser blocked the sign in window. Please allow pop-ups for booksprout.co and try again.","facebookDidntShareEmail":"Facebook didn\'t share your email address so we can\'t log you in.","alreadyHaveAmazonAccount":"There\'s already an account with this email address in our system. Please login with [Amazon] instead.","alreadyHaveFacebookAccount":"There\'s already an account with this email address in our system. Please login with [Facebook] instead.","alreadyHaveEmailAccount":"There\'s already an account with this email address in our system. Please login with your email address and password instead.","arcTeamNotAvailable":"This team is not available.","arcTeamNameTooLong":"This team name is too long to save. Please shorten it and try again.","arcTeamDescriptionTooLong":"This team description is too long to save. Please shorten it and try again.","arcTeamEmailTooLong":"One of these email addresses is too long to save. Please check them and try again.","penNameNotAvailable":"This pen name is not available.","penNameBioTooLong":"This bio is too long to save. Please shorten it and try again.","bookDeleted":"This is book is no longer available.","bookDescriptionTooLong":"This book description is too long to save. Please shorten it and try again.","bookPenNameTooLong":"This pen name is too long to save. Please shorten it and try again.","bookKeywordsTooLong":"These keywords are too long to save. Please shorten them and try again.","bookCoverTooLong":"This book cover\'s file name is too long to save. Please rename the file and try again.","notYetStripeCustomer":"Could not find customer record, please contact us.","stripeMissingSubscription":"Cannot find subscription, please contact us.","pastDueInvoice":"You have an overdue payment on your account, so plan changes are unavailable right now. Please contact support and we\'ll help you get it resolved.","alreadyPartOfTeam":"This user is already part of this team.","problemGeneratingPreview":"It looks like we\'re having trouble generating your preview. Please contact us if this is a problem.","requiresPaymentMethod":"Your card was declined.","imageUploadFailed":"Image upload failed. Please try again.","fileUploadFailed":"File upload failed. Please try again.","fileTooLarge":"That file is too large to upload. The largest we can accept is {size}MB.","quadernoInitError":"One of the required payment services could not be loaded. Please disable you antivirus temporarily.","alreadyClaimed":"You have already promised to review this book.","badPenName":"Something went wrong creating your book when setting the pen name. Please refresh this page and start the process again. If this issue persists, please contact us.","atLeastOneCategoryRequired":"Please select at least one category.","accountNameRequired":"Please enter the Display Name","paymentProviderRequiresAdditionalAction":"Your bank needs you to confirm this payment. We\'ve emailed you a secure link to confirm it - once you do, your new plan is applied automatically.","taxIdInvalid":"We could not verify your tax code. Please check it and try again.","invali
2702dFileForKindle":"The file provided does not pass Kindle validation.","sourceFileNotFound":"We couldn\'t find the source file for this book. It may have been moved or removed. Please contact support if you continue to experience problems.","cannotMessageSelf":"You cannot message yourself.","invalidCountryCodePrefixForPhoneNumber":"Invalid country code prefix","invalidPhone":"Invalid phone number","noAppleBooksCodesProvided":"Please enter at least one Apple Books code.","appleBooksCodeTooLong":"One of those Apple Books codes is too long. Please check them and try again.","appleBooksCodeClaimed":"That code has already been claimed by a reader, so it can\'t be removed.","appleBooksCodeNotFound":"We couldn\'t find that Apple Books code on this book.","appleBooksCodeExpiryInThePast":"The expiration date has already passed. Please pick today or a later date."},"permissions":{"canAddVirtualAssistants":{"explanation":"Upgrade to our {planName} plan to be able to add a virtual assistant to your account."},"canSendAndReceiveMessages":{"explanation":"Activate a Booksprout subscription to send and receive messages from readers"},"canChooseDefaultReviewDisclaimer":{"explanation":"Upgrade to our {planName} plan to pick between the two choices below."},"canCreateAudioBookArcs":{"explanation":"Upgrade to our {planName} plan to access the audiobook feature."},"canLimitReviewersToTopReviewersOnly":{"explanation":"Upgrade to our {planName} plan to limit access to only our manually-vetted Top Reviewers."},"maxParticipantsPerArc":{"explanation":"Upgrade to our {planName} plan to unlock more copies."},"maxRunningArcs":{"title":"Do you want more dates available on your calendar?","explanation":"Upgrade to our {planName} plan to have {maxRunningArcsCount} review campaigns active at once."},"canHaveNeverEndingArcs":{"explanation":"This feature is available on our {planName} plan."}},"selectUserToSwitchDialog":{"labels":{"activeAs":"You are currently active as","otherAccounts":"Other available accounts"},"actions":{"stop":"Stop","switch":"Switch"}},"oAuthRequestEmailDialog":{"heading":"Whatâs your email address?","subText":"All Booksprout accounts require a valid email address so that we can reach you if we need to."}},"meta":{"modules":{"login":{"title":"Login"},"signUp":{"title":"Sign Up"},"messages":{"title":"Messages"},"notifications":{"title":"Notifications"},"settings":{"title":"Settings"},"accountSettings":{"title":"Account Settings"},"reviewerSettings":{"title":"Reviewer Settings"},"emailSettings":{"title":"Email Settings"},"authorSettings":{"title":"Author Settings"},"billingSettings":{"title":"Billing Settings"}}}}')},ea8d:function(e){e.exports=JSON.parse('{"penNameLimit":10,"reminderBookLinks":true,"dailyUpdatesOnFollowCount":true,"alertTimeToPublish":true,"alertNewArcParticipant":true,"alertNewReview":true,"alertArcCancellation":true,"alertReviewRejected":true,"alertNewExternalReview":true,"alertNewArc":true,"alertNewArcOtherLanguages":true,"alertReviewDueIn2Days":true,"reviewSitesFlag":0,"reviewLanguagesFlag":127,"alertReadyToReview":true,"alertFinalFollowup":true,"alertDelayExpiring":true,"alertDelayExpired":true,"alertBookFileUpdated":true,"alertSavedArcEndingOrLowCopies":true,"emailOnMessage":true,"alertNewTeamApplicant":true,"invitedToTeam":true,"freeText":true,"findArcFilters":"","brevoLists":"","uiLocale":"en-US"}')},ea91:function(e,t,o){"use strict";o.d(t,"a",function(){return s});var i=o("1b59"),a=o("049c"),r=o("e78f"),n=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};function s(e){const t=5e3,o=e=>n(this,void 0,void 0,function*(){var o,n;(null===(n=null===(o=null===e||void 0===e?void 0:e.meta)||void 0===o?void 0:o.metaInstructions)||void 0===n?void 0:n.module)&&(yield Object(a["a"])().axios().post("auth/meta-info",{id:e.params.id,module:Object(i["P"])(e.meta.metaInstructions.module),moduleUrl:e.path},{timeout:t}).then(e=>{Object(r["a"])().system.service.setMeta(e.data)}).catch(t=>{var o;console.warn(`Meta fetch failed for ${e.path}, rendering without it:`,null!==(o=null===t||void 0===t?void 0:t.message)&&void 0!==o?o:t)}))}),s=(t,o=void 0)=>{if(void 0===e)throw new Error("useMeta: setPageMeta needs a translator and the router.");Object(r["a"])().system.service.setMeta({title:e.t(`meta.module.${t}.title`,[o]),canonicalUrl:Object(i["J"])()+"/reviewer"+e.router.currentRoute.path})},l=()=>{const e=Object(r["a"])().system.store.getters.meta;return{title:e.title,titleTemplate:e=>`${e} | Booksprout`,meta:{description:{name:"description",content:e.description},keywords:{name:"keywords",content:e.keywords},ogTitle:{name:"og:title",content:e.ogTitle},ogImage:{name:"og:image",content:e.ogImage}
2702,ogImageWidth:{name:"og:image:width",content:"1200"},ogImageHeight:{name:"og:image:height",content:"630"},ogUrl:{name:"og:url",content:e.ogUrl}},link:{canonical:{rel:"canonical",href:e.canonicalUrl}}}};return{fetchMetaForRoute:o,setPageMeta:s,documentMeta:l}}},ed33:function(e,t,o){"use strict";o.d(t,"a",function(){return n});var i=o("1b59"),a=o("6d03");const r=Object.assign(Object.assign({},new i["n"]),{permissionQuery:(new i["l"]).configure(new i["n"])});function n(){const e=e=>!!t.mimicOrAuthenticatedUser.permissionQuery.hasTieredPermission(e),t={get authenticatedUser(){const e=a["a"].authenticatedUser;return e||r},get mimicUser(){const e=a["a"].mimicUser;return e||r},get isMimic(){return Object(i["S"])(t.mimicUser.id)},get mimicOrAuthenticatedUser(){return t.isMimic?t.mimicUser:t.authenticatedUser},hasTieredPermission:e};return t}},edfd:function(e,t,o){"use strict";o.d(t,"a",function(){return W});var i=o("3691"),a=o("1b59"),r=o("1517"),n=o("049c"),s=o("cb78"),l=o("e742"),d=o("9176"),c=o("6d03"),u=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})},p=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const b={userStatus:i["a"]` 2703 fragment UserStatusFragment on UserStatusDto { 2704 id, 2705 active, 2706 additionalInformation, 2707 adminUser { 2708 id, 2709 emailAddress, 2710 name 2711 }, 2712 adminUserId, 2713 createdDate, 2714 expiryDate, 2715 isRestriction, 2716 type, 2717 userId 2718 ineligibleReason 2719 } 2720 `,userProfile:i["a"]` 2721 fragment UserProfileFragment on UserDto { 2722 id, 2723 createdDate, 2724 reviewerRole, 2725 authorRole, 2726 emailAddress, 2727 name, 2728 amazonProfileLink, 2729 consentMethod, 2730 kindleEmail, 2731 verifiedKindleEmail, 2732 image, 2733 termsConsentRevokedDate, 2734 topReviewerAppStatus, 2735 topReviewerAppStatusDate, 2736 topReviewerAppStatusReason, 2737 stripeCustomerId, 2738 isAdmin, 2739 isLocked, 2740 forceLoyaltyDiscountView, 2741 canActAs { 2742 id, 2743 emailAddress 2744 }, 2745 userEmails { 2746 id, 2747 emailAddress, 2748 isDefault, 2749 status, 2750 postmarkBounceCode, 2751 postmarkBounceName, 2752 postmarkBounceDescription, 2753 postmarkBounceDate, 2754 postmarkBounceCount 2755 }, 2756 preferences { 2757 alertNewArc, 2758 alertNewArcOtherLanguages, 2759 alertReviewDueIn2Days, 2760 dailyUpdatesOnFollowCount, 2761 penNameLimit, 2762 reminderBookLinks, 2763 reviewSitesFlag, 2764 reviewLanguagesFlag, 2765 alertTimeToPublish, 2766 alertReadyToReview, 2767 alertFinalFollowup, 2768 alertDelayExpiring, 2769 alertDelayExpired, 2770 alertSavedArcEndingOrLowCopies, 2771 alertNewArcParticipant 2772 alertNewReview, 2773 alertArcCancellation, 2774 alertReviewRejected, 2775 alertNewExternalReview, 2776 alertNewTeamApplicant, 2777 emailOnMessage, 2778 invitedToTeam, 2779 freeText, 2780 findArcFilters, 2781 uiLocale, 2782 alertBookFileUpdated 2783 }, 2784 status, 2785 termsConsentDate, 2786 following { 2787 id 2788 }, 2789 hasActingAs, 2790 completedTours, 2791 countryCode, 2792 usedCouponCodes, 2793 phoneNumber, 2794 phoneVerified, 2795 legacyBestsellingArcs 2796 } 2797 `},v=Object(s["a"])("user"),m=e=>{if(void 0===e)return;const{penNameLimit:t,__typename:o}=e,i=p(e,["penNameLimit","__typename"]);return i},f=e=>Object(r["a"])().query({variables:{needle:e},query:i["a"]` 2798 query GetUsersToMimic ($needle: String!) { 2799 getUsersToMimic (needle: $needle) { 2800 id, 2801 emailAddress, 2802 name, 2803 authorRole, 2804 reviewerRole, 2805 image 2806 } 2807 } 2808 `}).then(e=>e.map(l["a"])),y=e=>{throw new Error("Unauthorised")},g=e=>Object(r["a"])().query({variables:{id:e},query:i["a"]` 2809 query CheckDeleteUser ($id: Int!) { 2810 checkDeleteUser (id: $id) { 2811 count, 2812 dtoTypeName, 2813 ids 2814 } 2815 } 2816 `}),h=e=>Object(r["a"])().mutate({variables:{id:e},mutation:i["a"]` 2817 mutation ConfirmDeleteUser ( 2818 $id: Int! 2819 ) { 2820 confirmDeleteUser(id: $id) { 2821 id 2822 } 2823 } 2824 `}),O=()=>Object(r["a"])().query({query:i["a"]` 2825 query CheckDeleteMyAccount { 2826 checkDeleteMyAccount { 2827 count, 2828 dtoTypeName, 2829 ids 2830 } 2831 } 2832 `}),w=e=>Object(r["a"])().mutate({variables:{confirmation:e},mutation:i["a"]` 2833 mutation ConfirmDeleteMyAccount ( 2834 $confirmation: String! 2835 ) { 2836 confirmDeleteMyAccount(confirmation: $confirmation) { 2837 id 2838 } 2839 } 2840 `}),j=e=>{throw new Error("Unauthorised")},I=(e,t)=>(null===t||void 0===t?void 0:t.mimicUser)?Object(r["a"])().query({query:i["a"]`
2841 query GetMimicUserProfile { 2842 getMimicUserProfile { 2843 ...UserProfileFragment 2844 } 2845 } 2846 ${b.userProfile} 2847 `}).then(e=>Object(l["a"])(e)):Object(r["a"])().query({query:i["a"]` 2848 query GetUserProfile { 2849 getUserProfile { 2850 ...UserProfileFragment 2851 } 2852 } 2853 ${b.userProfile} 2854 `}).then(e=>Object(l["a"])(e)),A=e=>Object(r["a"])().mutate({variables:{id:e.id,amazonProfileLink:e.amazonProfileLink,image:e.image,kindleEmail:e.kindleEmail,verifiedKindleEmail:e.verifiedKindleEmail,name:e.name,preferences:m(e.preferences),notificationRegistrationToken:e.notificationRegistrationToken,completedTours:e.completedTours,authorRole:e.authorRole,skipThirdPartySync:e.skipThirdPartySync},mutation:i["a"]` 2855 mutation UpdateUserProfile ( 2856 $id: Int!, 2857 $amazonProfileLink: String, 2858 $image: String, 2859 $kindleEmail: String, 2860 $verifiedKindleEmail: Boolean, 2861 $name: String, 2862 $preferences: UpdateUserPreferencesDto, 2863 $notificationRegistrationToken: String, 2864 $completedTours: String 2865 $authorRole: String 2866 $skipThirdPartySync: Boolean 2867 ) { 2868 updateUserProfile ( 2869 id: $id, 2870 amazonProfileLink: $amazonProfileLink, 2871 image: $image, 2872 kindleEmail: $kindleEmail, 2873 verifiedKindleEmail: $verifiedKindleEmail, 2874 name: $name, 2875 preferences: $preferences, 2876 notificationRegistrationToken: $notificationRegistrationToken, 2877 completedTours: $completedTours 2878 authorRole: $authorRole 2879 skipThirdPartySync: $skipThirdPartySync 2880 ) { 2881 ...UserProfileFragment 2882 } 2883 } 2884 ${b.userProfile} 2885 `}).then(e=>Object(l["a"])(e)),R=e=>Object(r["a"])().mutate({variables:{emailAddress:e},mutation:i["a"]` 2886 mutation AddNewEmailAddress ( 2887 $emailAddress: String! 2888 ) { 2889 addNewEmailAddress (emailAddress: $emailAddress) { 2890 ...UserProfileFragment 2891 } 2892 } 2893 ${b.userProfile} 2894 `}).then(e=>Object(l["a"])(e)),k=e=>Object(r["a"])().mutate({variables:{emailAddress:e},mutation:i["a"]` 2895 mutation RemoveEmailAddress ( 2896 $emailAddress: String! 2897 ) { 2898 removeEmailAddress (emailAddress: $emailAddress) { 2899 ...UserProfileFragment 2900 } 2901 } 2902 ${b.userProfile} 2903 `}).then(e=>Object(l["a"])(e)),S=e=>Object(r["a"])().mutate({variables:{emailAddress:e},mutation:i["a"]` 2904 mutation SetDefaultEmailAddress ( 2905 $emailAddress: String! 2906 ) { 2907 setDefaultEmailAddress (emailAddress: $emailAddress) { 2908 ...UserProfileFragment 2909 } 2910 } 2911 ${b.userProfile} 2912 `}).then(e=>Object(l["a"])(e)),T=()=>Object(n["a"])().axios().post("user/withdraw-consent"),F=()=>Object(n["a"])().axios().post("user/reinstate-consent"),C=()=>Object(n["a"])().axios().post("user/consent-given"),E=e=>Object(r["a"])().mutate({variables:{emailAddress:e},mutation:i["a"]` 2913 mutation AddVirtualAssistant ( 2914 $emailAddress: String! 2915 ) { 2916 addVirtualAssistant (emailAddress: $emailAddress) { 2917 ...UserProfileFragment 2918 } 2919 } 2920 ${b.userProfile} 2921 `}).then(e=>Object(l["a"])(e)),D=e=>Object(r["a"])().mutate({variables:{emailAddress:e},mutation:i["a"]` 2922 mutation RemoveVirtualAssistant ( 2923 $emailAddress: String! 2924 ) { 2925 removeVirtualAssistant (emailAddress: $emailAddress) { 2926 ...UserProfileFragment 2927 } 2928 } 2929 ${b.userProfile} 2930 `}),P=()=>Object(r["a"])().mutate({mutation:i["a"]` 2931 mutation AddAuthorRoleToUser { 2932 addAuthorRoleToUser { 2933 ...UserProfileFragment 2934 } 2935 } 2936 ${b.userProfile} 2937 `}),$=()=>Object(r["a"])().query({query:i["a"]` 2938 query GetUserStats { 2939 getUserStats { 2940 completeArcCount, 2941 newReviewCount, 2942 pendingTeamMembers, 2943 arcCount, 2944 bookCount, 2945 penNameCount, 2946 arcTeamCount, 2947 reviewsCount, 2948 anyTeamHasMember, 2949 anyArcHasParticipant, 2950 anyArcHasParticipant, 2951 anyPenNameHasFollower, 2952 hasReviewOlderThanOneMonth, 2953 hasHadTeamMemberForOneMonth 2954 } 2955 } 2956 `}),N=e=>Object(r["a"])().query({variables:Object.assign({},e),query:i["a"]` 2957 query GetReviewerStats ( 2958 $id: Int! 2959 ) { 2960 getReviewerStats ( 2961 id: $id 2962 ) { 2963 arcsDownloadedThisWeek, 2964 earliestNextClaimDate, 2965 arcTotalOverdueDays, 2966 onTimeReviewRateStats { 2967 allClaimsCount, 2968 lateCount, 2969 onTimeReviewRate, 2970 pcOfLateClaims 2971 }, 2972 isTrustedReviewer, 2973 totalReviewCount, 2974 averageRating, 2975 cancelledReviewCount, 2976 dueReviewCount, 2977 activeArcCount 2978 } 2979 } 2980 `}),L=()=>Object(r["a"])().mutate({mutation:i["a"]` 2981 mutation ApplyForTopReviewerRole { 2982 applyForTopReviewerRole { 2983 ...UserProfileFragment 2984 } 2985 } 2986 ${b.userProfile} 2987 `}),B=e=>Object(r["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 2988 mutation AddUserStatus ( 2989 $userId: Int!, 2990 $type: Int!, 2991 $active: Boolean!, 2992 $isRestriction: Boolean!, 2993 $additionalInformation: String, 2994 $expiryDate: DateTime
2995 ) { 2996 addUserStatus ( 2997 userId: $userId, 2998 type: $type, 2999 active: $active, 3000 isRestriction: $isRestriction, 3001 expiryDate: $expiryDate, 3002 additionalInformation: $additionalInformation 3003 ) { 3004 ...UserStatusFragment 3005 } 3006 } 3007 ${b.userStatus} 3008 `}),x=e=>Object(r["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 3009 mutation UpdateUserStatus ( 3010 $id: Int!, 3011 $type: Int, 3012 $active: Boolean, 3013 $isRestriction: Boolean, 3014 $additionalInformation: String, 3015 $expiryDate: DateTime 3016 $userId: Int! 3017 $ineligibleReason: Int 3018 ) { 3019 updateUserStatus ( 3020 id: $id, 3021 type: $type, 3022 active: $active, 3023 isRestriction: $isRestriction, 3024 expiryDate: $expiryDate, 3025 additionalInformation: $additionalInformation, 3026 userId: $userId, 3027 ineligibleReason: $ineligibleReason, 3028 ) { 3029 ...UserStatusFragment 3030 } 3031 } 3032 ${b.userStatus} 3033 `}),_=e=>Object(r["a"])().query({variables:Object.assign({},e),query:i["a"]` 3034 query GetUserStatuses ( 3035 $active: Boolean, 3036 $type: Int, 3037 $adminUserId: Int, 3038 $needle: String, 3039 $isRestriction: Boolean, 3040 $userId: Int! 3041 ) { 3042 getUserStatuses ( 3043 userId: $userId, 3044 active: $active, 3045 type: $type, 3046 adminUserId: $adminUserId, 3047 needle: $needle, 3048 isRestriction: $isRestriction 3049 ) { 3050 ...UserStatusFragment 3051 } 3052 } 3053 ${b.userStatus} 3054 `}),U=e=>u(void 0,void 0,void 0,function*(){var t;const o=c["a"].mimicUser,i=c["a"].authenticatedUser,r=(null===o||void 0===o?void 0:o.id)===e?o:(null===i||void 0===i?void 0:i.id)===e?i:null,n=null===(t=null===r||void 0===r?void 0:r.preferences)||void 0===t?void 0:t.hasAmazonReviewRestriction;if(void 0!==n&&null!==n)return n;const s=yield _({userId:e,isRestriction:!0,active:!0});return s.some(e=>e.type===a["s"].USER.USER_STATUS.PREVENT_AMAZON_REVIEWS&&e.active)}),M=e=>Object(r["a"])().query({variables:Object.assign({},e),query:i["a"]` 3055 query GetUserReports ( 3056 $userId: Int!, 3057 $sinceLastRestriction: Boolean, 3058 $ignored: Boolean, 3059 $system: Boolean 3060 ) { 3061 getUserReports ( 3062 userId: $userId, 3063 sinceLastRestriction: $sinceLastRestriction, 3064 ignored: $ignored, 3065 system: $system 3066 ) { 3067 date, 3068 extendedReason, 3069 reasonType, 3070 reportedByUser { 3071 id, 3072 name, 3073 emailAddress, 3074 image 3075 }, 3076 reportedDocumentId, 3077 type, 3078 ignored, 3079 claim { 3080 ...ArcReviewClaimFragment 3081 } 3082 } 3083 }, 3084 ${d["b"].reviewClaim} 3085 `}),G=e=>e?Object(n["a"])().axios().post("first-promoter/add-lead",{ref:e}):Promise.resolve(!1),q=()=>Object(n["a"])().axios().post("email/reactivate-email-addresses"),V=Object.assign(Object.assign({},v),{fragments:b,get:j,getById:I,create:y,update:A,delete:h,checkDelete:g,checkDeleteMyAccount:O,deleteMyAccount:w,makeUserResult:l["a"],getUsersToMimic:f,getUserStats:$,getReviewerStats:N,applyForTopReviewer:L,addAuthorRoleToUser:P,getHasAmazonRestriction:U,addNewEmailAddress:R,removeEmailAddress:k,makeDefaultEmailAddress:S,reactivateEmailAddresses:q,withdrawContent:T,reinstateContent:F,consentGiven:C,addVirtualAssistant:E,removeVirtualAssistant:D,addUserStatus:B,updateUserStatus:x,getUserStatuses:_,getUserReports:M,addLeadToCampaign:G,globalLoader(e){return v.setGlobalLoader(e),V}});function W(){return V}},f431:function(e,t,o){"use strict";var i=o("a256");t["a"]={get notifications(){return Object(i["a"])().notifications},get unreadMessageCount(){return Object(i["a"])().unreadMessageCount},get unreadNotificationCount(){return Object(i["a"])().unreadNotificationCount},get redirectData(){return Object(i["a"])().redirect},get triggerLoginNotification(){return Object(i["a"])().triggerLoginNotification},get loginForwardUrl(){return Object(i["a"])().loginForwardUrl},get showMessageDialog(){return Object(i["a"])().showMessageDialog},get userStats(){return Object(i["a"])().userStats},get isReadyToRender(){return Object(i["a"])().isReadyToRender},get lastError(){return Object(i["a"])().lastError}}},f782:function(e,t,o){"use strict";o.d(t,"a",function(){return c}),o.d(t,"b",function(){return x});var i=o("3691"),a=o("1b59"),r=o("6d03"),n=o("1517"),s=o("049c"),l=o("cb78"),d=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o};const c={book:i["a"]` 3086 fragment BookFragment on BookDto { 3087 id, 3088 title, 3089 description, 3090 penName, 3091 authorPenNameId, 3092 authorPenName { 3093 id, 3094 name, 3095 image, 3096 averageRating, 3097 followers { 3098 id 3099 } 3100 }, 3101 penNameType, 3102 bookCover, 3103 releaseDate, 3104 seriesName, 3105 seriesNumber, 3106 categories { 3107 id, 3108 name, 3109 translations { 3110 locale 3111 name 3112 } 3113 parentCategory { 3114 id, 3115 name 3116 } 3117 }, 3118 keywords, 3119 wordCount, 3120 audience, 3121 language, 3122 linkAmazonAsin, 3123 linkAmazonAsinPrint, 3124 linkAudibleUs, 3125 linkAudibleUk, 3126 linkBarnes, 3127 linkBookbub, 3128 linkGoodreads, 3129 linkGoogle, 3130 linkITunes, 3131 linkKobo, 3132 linkSmashwords, 3133 smashwordsCouponCode, 3134 linkITunesAudio, 3135 linkBarnesAudio, 3136 linkGoogleAudio, 3137 linkGoodreadsAudio, 3138 linkKoboAudio, 3139 linkBookbubAudio, 3140 linkStoryGraph, 3141 linkStoryGraphAudio, 3142 isDraft, 3143 averageRating, 3144 reviewCount, 3145 lastArcOn, 3146 newReviewCount, 3147 updatedReviewCount, 3148 importedId, 3149 pdfFile, 3150 pdfFileSizeBytes, 3151 pdfSystemGenerated, 3152 pdfFileDate, 3153 pdfFileFriendlyName, 3154 epubFile, 3155 epubFileSizeBytes, 3156 epubSystemGenerated, 3157 epubPreviewFile, 3158 epubFileDate, 3159 epubFileFriendlyName 3160 } 3161 `,appleBooksCode:i["a"]` 3162 fragment BookAppleBooksCodeFragment on BookAppleBooksCodeDto { 3163 id, 3164 code, 3165 expirationDate, 3166 claimed 3167 } 3168 `},u=(e,t)=>
3168new Promise((t,o)=>{const i=new FileReader;i.readAsDataURL(e[0]),i.onload=function(e){const i=new Image;i.src=e.target.result,i.onload=function(){const e=i.height;if(e<415)return o("invalidBookCoverSize");t(!0)}}}),p=Object(l["a"])("book",{validateAddPictureFactory:u}),b=e=>null===e||void 0===e?void 0:e.filter(e=>{var t;return Object.prototype.hasOwnProperty.call(e,"parentCategoryId")?"number"===typeof e.parentCategoryId:!Object.prototype.hasOwnProperty.call(e,"parentCategory")||"number"===typeof(null===(t=e.parentCategory)||void 0===t?void 0:t.id)}),v=e=>{const t=b(e.categories);return{title:e.title,description:e.description,penName:e.penName,authorPenNameId:e.authorPenNameId,penNameType:e.penNameType,bookCover:e.bookCover,releaseDate:e.releaseDate,seriesName:e.seriesName,seriesNumber:e.seriesNumber,categories:null===t||void 0===t?void 0:t.map(e=>({id:e.id})),keywords:e.keywords,wordCount:e.wordCount,audience:e.audience,language:e.language,linkAmazonAsin:e.linkAmazonAsin,linkAmazonAsinPrint:e.linkAmazonAsinPrint,linkGoodreads:e.linkGoodreads,linkBookbub:e.linkBookbub,linkBarnes:e.linkBarnes,linkGoogle:e.linkGoogle,linkKobo:e.linkKobo,linkSmashwords:e.linkSmashwords,smashwordsCouponCode:e.smashwordsCouponCode,linkITunes:e.linkITunes,linkAudibleUs:e.linkAudibleUs,linkAudibleUk:e.linkAudibleUk,linkITunesAudio:e.linkITunesAudio,linkBarnesAudio:e.linkBarnesAudio,linkGoogleAudio:e.linkGoogleAudio,linkGoodreadsAudio:e.linkGoodreadsAudio,linkKoboAudio:e.linkKoboAudio,linkBookbubAudio:e.linkBookbubAudio,linkStoryGraph:e.linkStoryGraph,linkStoryGraphAudio:e.linkStoryGraphAudio,pdfFile:e.pdfFile,pdfFileSizeBytes:e.pdfFileSizeBytes,pdfSystemGenerated:e.pdfSystemGenerated,pdfFileDate:e.pdfFileDate,pdfFileFriendlyName:e.pdfFileFriendlyName,epubFile:e.epubFile,epubFileSizeBytes:e.epubFileSizeBytes,epubSystemGenerated:e.epubSystemGenerated,epubPreviewFile:e.epubPreviewFile,epubFileDate:e.epubFileDate,epubFileFriendlyName:e.epubFileFriendlyName}},m=e=>{var t;if(null===e||void 0===e)return null;const o=Object.assign(Object.assign({},e),{categories:b(e.categories),authorPenNameId:null===(t=e.authorPenName)||void 0===t?void 0:t.id,releaseDate:e.releaseDate?new Date(e.releaseDate):void 0,pdfFileDate:e.pdfFileDate?new Date(e.pdfFileDate):void 0,epubFileDate:e.epubFileDate?new Date(e.epubFileDate):void 0});return o},f=e=>Object(n["a"])().query({variables:Object.assign({},e),query:i["a"]` 3169 query GetBooks ( 3170 $needle: String, 3171 $skip: Int, 3172 $take: Int, 3173 $sortBy: String, 3174 $descending: Boolean, 3175 $isDraft: Boolean, 3176 $allowImportedDrafts: Boolean, 3177 $hasReviews: Boolean 3178 $missingPreview: Boolean 3179 ) { 3180 books ( 3181 needle: $needle, 3182 skip: $skip, 3183 take: $take, 3184 sortBy: $sortBy, 3185 descending: $descending, 3186 isDraft: $isDraft, 3187 allowImportedDrafts: $allowImportedDrafts, 3188 hasReviews: $hasReviews 3189 missingPreview: $missingPreview 3190 ) { 3191 totalRows, 3192 items { 3193 ...BookFragment 3194 } 3195 } 3196 } 3197 ${c.book} 3198 `}),y=(e,t)=>void 0===e?Promise.reject(new Error("Missing id.")):Object(n["a"])().query({variables:Object.assign({id:e},t),query:i["a"]` 3199 query GetBook ( 3200 $id: Int!, 3201 $genericSearch: Boolean 3202 ) { 3203 book (id: $id, genericSearch: $genericSearch) { 3204 ...BookFragment 3205 } 3206 } 3207 ${c.book} 3208 `}).then(e=>m(e)),g=e=>Object(n["a"])().mutate({variables:Object.assign({},v(e)),mutation:i["a"]` 3209 mutation CreateBook ( 3210 $title: String!, 3211 $description: String, 3212 $penName: String, 3213 $authorPenNameId: Int, 3214 $penNameType: Int, 3215 $bookCover: String, 3216 $releaseDate: DateTime, 3217 $seriesName: String, 3218 $seriesNumber: Int, 3219 $categories: [CategoryIdInput!], 3220 $keywords: String, 3221 $wordCount: Int, 3222 $audience: Int, 3223 $language: Int, 3224 $linkAmazonAsin: String,
3225 $linkAmazonAsinPrint: String, 3226 $linkGoodreads: String, 3227 $linkBookbub: String, 3228 $linkBarnes: String, 3229 $linkGoogle: String, 3230 $linkKobo: String, 3231 $linkSmashwords: String, 3232 $smashwordsCouponCode: String, 3233 $linkITunes: String, 3234 $linkAudibleUs: String, 3235 $linkAudibleUk: String, 3236 $linkITunesAudio: String, 3237 $linkBarnesAudio: String, 3238 $linkGoogleAudio: String, 3239 $linkGoodreadsAudio: String, 3240 $linkKoboAudio: String, 3241 $linkBookbubAudio: String, 3242 $linkStoryGraph: String, 3243 $linkStoryGraphAudio: String, 3244 $pdfFile: String, 3245 $pdfFileSizeBytes: Int, 3246 $pdfSystemGenerated: Boolean, 3247 $pdfFileFriendlyName: String, 3248 $epubFile: String, 3249 $epubFileSizeBytes: Int, 3250 $epubPreviewFile: String, 3251 $epubSystemGenerated: Boolean 3252 $epubFileFriendlyName: String 3253 ) { 3254 createBook ( 3255 title: $title, 3256 description: $description, 3257 penName: $penName, 3258 authorPenNameId: $authorPenNameId, 3259 penNameType: $penNameType, 3260 bookCover: $bookCover, 3261 releaseDate: $releaseDate, 3262 seriesName: $seriesName, 3263 seriesNumber: $seriesNumber, 3264 categories: $categories, 3265 keywords: $keywords, 3266 wordCount: $wordCount, 3267 audience: $audience, 3268 language: $language, 3269 linkAmazonAsin: $linkAmazonAsin, 3270 linkAmazonAsinPrint: $linkAmazonAsinPrint, 3271 linkGoodreads: $linkGoodreads, 3272 linkBookbub: $linkBookbub, 3273 linkBarnes: $linkBarnes, 3274 linkGoogle: $linkGoogle, 3275 linkKobo: $linkKobo, 3276 linkSmashwords: $linkSmashwords, 3277 smashwordsCouponCode: $smashwordsCouponCode, 3278 linkITunes: $linkITunes, 3279 linkAudibleUs: $linkAudibleUs, 3280 linkAudibleUk: $linkAudibleUk, 3281 linkITunesAudio: $linkITunesAudio, 3282 linkBarnesAudio: $linkBarnesAudio, 3283 linkGoogleAudio: $linkGoogleAudio, 3284 linkGoodreadsAudio: $linkGoodreadsAudio, 3285 linkKoboAudio: $linkKoboAudio, 3286 linkBookbubAudio: $linkBookbubAudio, 3287 linkStoryGraph: $linkStoryGraph, 3288 linkStoryGraphAudio: $linkStoryGraphAudio, 3289 pdfFile: $pdfFile, 3290 pdfFileSizeBytes: $pdfFileSizeBytes, 3291 pdfSystemGenerated: $pdfSystemGenerated, 3292 pdfFileFriendlyName: $pdfFileFriendlyName, 3293 epubFile: $epubFile, 3294 epubFileSizeBytes: $epubFileSizeBytes, 3295 epubPreviewFile: $epubPreviewFile, 3296 epubSystemGenerated: $epubSystemGenerated 3297 epubFileFriendlyName: $epubFileFriendlyName 3298 ) { 3299 ...BookFragment 3300 } 3301 } 3302 ${c.book} 3303 `}).then(e=>m(e)||new a["e"]),h=e=>Object(n["a"])().mutate({variables:Object.assign(Object.assign({},v(e)),{id:e.id}),mutation:i["a"]` 3304 mutation UpdateBook ( 3305 $id: Int!, 3306 $title: String, 3307 $description: String, 3308 $penName: String, 3309 $authorPenNameId: Int, 3310 $penNameType: Int 3311 $bookCover: String, 3312 $releaseDate: DateTime, 3313 $seriesName: String, 3314 $seriesNumber: Int, 3315 $categories: [CategoryIdInput!], 3316 $keywords: String, 3317 $wordCount: Int, 3318 $audience: Int, 3319 $language: Int, 3320 $linkAmazonAsin: String,
3321 $linkAmazonAsinPrint: String, 3322 $linkGoodreads: String, 3323 $linkBookbub: String, 3324 $linkBarnes: String, 3325 $linkGoogle: String, 3326 $linkKobo: String, 3327 $linkSmashwords: String, 3328 $smashwordsCouponCode: String, 3329 $linkITunes: String, 3330 $linkAudibleUs: String, 3331 $linkAudibleUk: String, 3332 $linkITunesAudio: String, 3333 $linkBarnesAudio: String, 3334 $linkGoogleAudio: String, 3335 $linkGoodreadsAudio: String, 3336 $linkKoboAudio: String, 3337 $linkBookbubAudio: String, 3338 $linkStoryGraph: String, 3339 $linkStoryGraphAudio: String, 3340 $pdfFile: String, 3341 $pdfFileSizeBytes: Int, 3342 $pdfSystemGenerated: Boolean, 3343 $pdfFileDate: DateTime, 3344 $pdfFileFriendlyName: String, 3345 $epubFile: String, 3346 $epubFileSizeBytes: Int, 3347 $epubPreviewFile: String, 3348 $epubSystemGenerated: Boolean, 3349 $epubFileDate: DateTime 3350 $epubFileFriendlyName: String 3351 ) { 3352 updateBook ( 3353 id: $id, 3354 title: $title, 3355 description: $description, 3356 penName: $penName, 3357 authorPenNameId: $authorPenNameId, 3358 penNameType: $penNameType, 3359 bookCover: $bookCover, 3360 releaseDate: $releaseDate, 3361 seriesName: $seriesName, 3362 seriesNumber: $seriesNumber, 3363 categories: $categories, 3364 keywords: $keywords, 3365 wordCount: $wordCount, 3366 audience: $audience, 3367 language: $language, 3368 linkAmazonAsin: $linkAmazonAsin, 3369 linkAmazonAsinPrint: $linkAmazonAsinPrint, 3370 linkGoodreads: $linkGoodreads, 3371 linkBookbub: $linkBookbub, 3372 linkBarnes: $linkBarnes, 3373 linkGoogle: $linkGoogle, 3374 linkKobo: $linkKobo, 3375 linkSmashwords: $linkSmashwords, 3376 smashwordsCouponCode: $smashwordsCouponCode, 3377 linkITunes: $linkITunes, 3378 linkAudibleUs: $linkAudibleUs, 3379 linkAudibleUk: $linkAudibleUk, 3380 linkITunesAudio: $linkITunesAudio, 3381 linkBarnesAudio: $linkBarnesAudio, 3382 linkGoogleAudio: $linkGoogleAudio, 3383 linkGoodreadsAudio: $linkGoodreadsAudio, 3384 linkKoboAudio: $linkKoboAudio, 3385 linkBookbubAudio: $linkBookbubAudio, 3386 linkStoryGraph: $linkStoryGraph, 3387 linkStoryGraphAudio: $linkStoryGraphAudio, 3388 pdfFile: $pdfFile, 3389 pdfFileSizeBytes: $pdfFileSizeBytes, 3390 pdfSystemGenerated: $pdfSystemGenerated, 3391 pdfFileDate: $pdfFileDate, 3392 pdfFileFriendlyName: $pdfFileFriendlyName, 3393 epubFile: $epubFile, 3394 epubFileSizeBytes: $epubFileSizeBytes, 3395 epubPreviewFile: $epubPreviewFile, 3396 epubSystemGenerated: $epubSystemGenerated, 3397 epubFileDate: $epubFileDate 3398 epubFileFriendlyName: $epubFileFriendlyName 3399 ) { 3400 ...BookFragment 3401 } 3402 } 3403 ${c.book} 3404 `}).then(e=>m(e)||new a["e"]),O=e=>Object(n["a"])().query({variables:{bookId:e},query:i["a"]` 3405 query GetBookAppleBooksCodes ($bookId: Int!) { 3406 bookAppleBooksCodes (bookId: $bookId) { 3407 ...BookAppleBooksCodeFragment 3408 } 3409 } 3410 ${c.appleBooksCode} 3411 `}),w=(e,t,o)=>Object(n["a"])().mutate({variables:{bookId:e,codes:t,expirationDate:o},mutation:i["a"]` 3412 mutation AddBookAppleBooksCodes ( 3413 $bookId: Int!, 3414 $codes: [String!]!, 3415 $expirationDate: String 3416 ) { 3417 addBookAppleBooksCodes ( 3418 bookId: $bookId, 3419 codes: $codes, 3420 expirationDate: $expirationDate 3421 ) { 3422 ...BookAppleBooksCodeFragment 3423 } 3424 } 3425 ${c.appleBooksCode} 3426 `}),j=(e,t)=>Object(n["a"])().mutate({variables:{bookId:e,id:t},mutation:i["a"]` 3427 mutation RemoveBookAppleBooksCode ( 3428 $bookId: Int!, 3429 $id: Int! 3430 ) { 3431 removeBookAppleBooksCode ( 3432 bookId: $bookId, 3433 id: $id 3434 ) { 3435 ...BookAppleBooksCodeFragment 3436 } 3437 } 3438 ${c.appleBooksCode} 3439 `}),I=e=>Object(n["a"])().mutate({variables:{bookId:e},mutation:i["a"]` 3440 mutation RemoveExpiredBookAppleBooksCodes ($bookId: Int!) { 3441 removeExpiredBookAppleBooksCodes (bookId: $bookId) { 3442 ...BookAppleBooksCodeFragment 3443 } 3444 } 3445 ${c.appleBooksCode} 3446 `}),A=e=>Object(n["a"])().query({variables:{id:e},query:i["a"]` 3447 query CheckDeleteBook ($id: Int!) { 3448 checkDeleteBook (id: $id) { 3449 count, 3450 dtoTypeName, 3451 ids 3452 } 3453 } 3454 `}),R=e=>{if(void 0===e)throw new Error("Missing id.");return Object(n["a"])().mutate({variables:{id:e},mutation:i["a"]` 3455 mutation ConfirmDeleteBook ( 3456 $id: Int! 3457 ) { 3458 confirmDeleteBook(id: $id) { 3459 id 3460 } 3461 } 3462 `})},k=(e,t)=>Object(s["a"])().axios().post("book/amazon-books-to-import",{penName:e,needle:t}).then(e=>e.data),S=e=>Object(s["a"])().axios().post("book/amazon-book-description",{asin:e}).then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.description}),T=e=>Object(n["a"])().query({variables:Object.assign({},e),query:i["a"]` 3463 query getBooksGeneric ( 3464 $needle: String, 3465 $skip: Int, 3466 $take: Int, 3467 $sortBy: String, 3468 $descending: Boolean, 3469 $penNameId: Int, 3470 $seriesName: String, 3471 $beforeSeriesNumber: Int 3472 ) { 3473 booksGeneric ( 3474 needle: $needle, 3475 skip: $skip, 3476 take: $take, 3477 sortBy: $sortBy, 3478 descending: $descending, 3479 penNameId: $penNameId, 3480 seriesName: $seriesName, 3481 beforeSeriesNumber: $beforeSeriesNumber 3482 ) { 3483 totalRows, 3484 items { 3485 ...BookFragment 3486 } 3487 } 3488 } 3489 ${c.book} 3490 `}),F=e=>Object(n["a"])().query({variables:Object.assign({},e),query:i["a"]` 3491 query GetBookTagsForCategory ( 3492 $categoryId: Int, 3493 $searchValue: String, 3494 $skip: Int, 3495 $take: Int 3496 ) { 3497 bookTagsForCategory (
3498 searchValue: $searchValue, 3499 skip: $skip, 3500 take: $take, 3501 categoryId: $categoryId 3502 ) { 3503 name, 3504 count 3505 } 3506 } 3507 `}),C=e=>{var t;return[...new Set(null===(t=null===e||void 0===e?void 0:e.keywords)||void 0===t?void 0:t.split(","))]},E=(e,t)=>{const o=d(a["s"].ARCS.REVIEWS.FLAGS,[]);switch(t.site){case o.AMAZON:return`https://www.amazon.com/dp/${e.linkAmazonAsin}?tag=booksprout09-20`;case o.ITUNES:return e.linkITunes+"?at=1001l9EK";default:return e[t.fieldName]}},D=(e,t)=>{let o="";if(Object(a["T"])(e.epubFile)?o=e.epubFile:Object(a["T"])(e.pdfFile)&&(o=e.pdfFile),void 0!==o){const i={id:e.id.toString()||"-1",convertIntoFileExt:t.startsWith(".")?t:"."+t,sourceFilePath:o};return Object(s["a"])().axios().post("book/generate-file",i,{timeout:3e5}).then(e=>e.data)}return Promise.reject()},P=(e,t)=>({url:p.getApiControllerUrl("add-file"),withCredentials:!0,headers:[{name:"Authorization",value:`Bearer ${r["a"].authToken}`},{name:"CSRF-Token",value:r["a"].csrfToken}],formFields:[{name:"id",value:void 0===t.id?-1:t.id},{name:"fileName",value:e[0].name}]}),$=e=>Object(s["a"])().axios().post("book/generate-epub-preview",e,{timeout:3e5}).then(e=>e.data),N=(e,t)=>Object(s["a"])().axios().post("book/remove-remote-file",{id:e,fileExt:t}),L=e=>Object(s["a"])().axios().post("book/stop-generate-epub-preview",{bookId:e}),B=Object.assign(Object.assign({},p),{bookFragments:c,get:f,getById:y,create:g,update:h,getAppleBooksCodes:O,addAppleBooksCodes:w,removeAppleBooksCode:j,removeExpiredAppleBooksCodes:I,checkDelete:A,delete:R,getImportOptions:k,fetchAmazonBookDescription:S,getBooksGeneric:T,getTags:F,splitKeywords:C,getAffiliateLink:E,convertFile:D,addFileFactory:P,generateEpubPreview:$,removeRemoteFile:N,stopEpubPreviewGeneration:L,globalLoader(e){return p.setGlobalLoader(e),B}});function x(){return B}},f9c8:function(e,t,o){"use strict";o.r(t),t["default"]={axios:{url:"https://testing.booksprout.co/api/"},apolloClient:{url:"https://testing.booksprout.co/api/graphql"},quadernoApiKey:"pk_test_zVtjVCesmXZo--pT31C-",stripeApiKey:"pk_test_51JbmxgFeaQNDDEj5vIIDtC7vlehhDuNEA60c4VNuPXKGl6hmpHNWaq6Ol36ZYkJoCN1ebYRC4LJanQrDcW6w1hjX00WFmCaoZa"}},f9cd:function(e,t,o){"use strict";o.d(t,"a",function(){return r});var i=o("8b32"),a=function(e,t,o,i){function a(e){return e instanceof o?e:new o(function(t){t(e)})}return new(o||(o=Promise))(function(o,r){function n(e){try{l(i.next(e))}catch(t){r(t)}}function s(e){try{l(i["throw"](e))}catch(t){r(t)}}function l(e){e.done?o(e.value):a(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())})};function r(e){const{vm:t,emit:o}=e,r=Object(i["computed"])(()=>t.$refs[e.dialogRef]),n=()=>{r.value.show()},s=()=>{r.value.hide()},l=()=>{o("hide")},d=()=>{s()},c=()=>a(this,void 0,void 0,function*(){o("ok"),s()});return{dialog:r,show:n,hide:s,onDialogHide:l,cancel:d,confirm:c}}},faa8:function(e,t){t.sentryApplicationKeys={website:"booksprout-website",authorApp:"booksprout-author-app",reviewerApp:"booksprout-reviewer-app"}},fc00:function(e,t,o){"use strict";o.d(t,"a",function(){return m});var i=o("3691"),a=o("1517"),r=o("cb78");const n=Object(r["a"])("category"),s={category:i["a"]` 3508 fragment CategoryFragment on CategoryDto { 3509 id 3510 name 3511 sortOrder 3512 parentCategoryId 3513 translations { 3514 locale 3515 name 3516 } 3517 parentCategory { 3518 id 3519 name 3520 sortOrder 3521 } 3522 childCategories { 3523 id 3524 name 3525 parentCategoryId 3526 sortOrder 3527 translations { 3528 locale 3529 name 3530 } 3531 } 3532 } 3533 `},l=()=>Object(a["a"])().query({query:i["a"]` 3534 query GetCategories { 3535 categories { 3536 ...CategoryFragment 3537 } 3538 } 3539 ${s.category} 3540 `}),d=e=>void 0===e?Promise.reject(new Error("Missing id.")):Object(a["a"])().query({variables:{id:e},query:i["a"]` 3541 query GetCategory ( 3542 $id: Int! 3543 ) { 3544 category (id: $id) { 3545 ...CategoryFragment 3546 } 3547 } 3548 ${s.category} 3549 `}),c=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 3550 mutation CreateCategory ( 3551 $name: String! 3552 $parentCategoryId: Int 3553 ) { 3554 createCategory (name: $name, parentCategoryId: $parentCategoryId) { 3555 ...CategoryFragment 3556 } 3557 } 3558 ${s.category} 3559 `}),u=e=>Object(a["a"])().mutate({variables:Object.assign({},e),mutation:i["a"]` 3560 mutation UpdateCategory ( 3561 $id: Int! 3562 $name: String 3563 $parentCategoryId: Int 3564 $sortOrder: Int 3565 ) { 3566 updateCategory (id: $id, name: $name, parentCategoryId: $parentCategoryId, sortOrder: $sortOrder) { 3567 ...CategoryFragment 3568 } 3569 } 3570 ${s.category} 3571 `}),p=e=>Object(a["a"])().mutate({variables:{items:e},mutation:i["a"]` 3572 mutation ReorderCategories ( 3573 $items: [CategoryReorderInput!]! 3574 ) { 3575 reorderCategories (items: $items) { 3576 ...CategoryFragment 3577 } 3578 } 3579 ${s.category} 3580 `}),b=e=>Object(a["a"])().mutate({variables:{id:e},mutation:i["a"]` 3581 mutation DeleteCategory ( 3582 $id: Int! 3583 ) {
3584 deleteCategory(id: $id) { 3585 id 3586 } 3587 } 3588 `}),v=Object.assign(Object.assign({},n),{get:l,getById:d,create:c,update:u,reorder:p,delete:b,globalLoader(e){return n.setGlobalLoader(e),v}});function m(){return v}}}); 3589//# sourceMappingURL=app.1fd74acb.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.