1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"2.19.1"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var l in a)a.hasOwnProperty(l)&&(e[l]=a[l])}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]="ffba7556-7058-44a1-9f6b-981041c07036",e._sentryDebugIdIdentifier="sentry-dbid-ffba7556-7058-44a1-9f6b-981041c07036")}catch(e){}}(),(globalThis["webpackChunkapp_reviewer"]||=[]).push([[1987],{82009(e,t,a){a.d(t,{X:()=>s});var l=a(89221);const o={ref:"mountPoint"};function s(e,t,a,s,n,i){return(0,l.uX)(),(0,l.CE)("div",o,null,512)}},93247(e,t,a){a.d(t,{X:()=>s});var l=a(89221);const o={key:0};function s(e,t,a,s,n,i){return e.elementsUsable?((0,l.uX)(),(0,l.CE)("div",o,[(0,l.RG)(e.$slots,"default",{instance:e.instance,elements:e.elements})])):(0,l.Q3)("",!0)}},69106(e,t,a){a.d(t,{X:()=>h});var l=a(89221),o=a(33995),s=a(65365);const n={class:"account-settings"},i={class:"bs-h2--responsive"},r={class:"font-size-12"},d={key:0},u={key:1},c={class:"sr-only"},m={class:"bs-h2--responsive"},v={class:"bs-h2--responsive"},p={class:"text-bs-grey-m"},g={class:"withdraw-consent"},b={class:"ws-shrink"},f={class:"ws-highlight"};function h(e,t,a,h,k,y){const w=(0,l.g2)("bs-upload"),A=(0,l.g2)("bs-form-field"),C=(0,l.g2)("bs-input"),_=(0,l.g2)("q-item"),E=(0,l.g2)("bs-radio"),F=(0,l.g2)("q-icon"),S=(0,l.g2)("bs-chip"),x=(0,l.g2)("bs-btn"),L=(0,l.g2)("q-list"),$=(0,l.g2)("bs-form"),T=(0,l.g2)("i18n-t"),I=(0,l.g2)("bs-modal"),D=(0,l.g2)("delete-account-dialog");return(0,l.uX)(),(0,l.CE)("div",n,[(0,l.Lk)("h2",i,(0,s.v_)(e.$tc("modules.settings.account.title")),1),(0,l.bF)($,{class:"content-block"},{default:(0,l.k6)(()=>[(0,l.bF)(A,null,{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.profilePicture.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.profilePicture.hint")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(w,{modelValue:e.profileImage,"onUpdate:modelValue":t[0]||(t[0]=t=>e.profileImage=t),accept:".jpg,.jpeg,.png,.gif,.bmp,.svg,.webp",factory:t=>e.crudService.addPictureFactory(t,e.crudModel),onRemove:e.handlePictureRemoval,onUploaded:e.handlePictureUploaded,"data-model":"profileImage"},null,8,["modelValue","factory","onRemove","onUploaded"])]),_:1}),(0,l.bF)(A,null,{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.name.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.name.hint")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:e.crudModel.name,"onUpdate:modelValue":t[1]||(t[1]=t=>e.crudModel.name=t),"auto-save":e.autoSave,validation:[t=>t?void 0:{label:e.$t("system.labels.minimumFieldLengthX",[3])},t=>t&&t.trim().length<3?{label:e.$t("system.labels.minimumFieldLengthX",[3])}:void 0,t=>t&&t.length>50?{label:e.$t("system.labels.maxFieldLengthX",[50])}:void 0],"lazy-validation":"","data-model":"crudModel.name"},null,8,["modelValue","auto-save","validation"])]),_:1}),(0,l.bF)(A,{"multi-line-hint":""},{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.email.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.email.hint")),1)]),default:(0,l.k6)(()=>[e.crudModel&&e.crudModel.userEmails?((0,l.uX)(),(0,l.Wv)($,{key:0,class:"bs-manage-email",onSubmit:e.onAddNewEmailAddress},{default:(0,l.k6)(()=>[(0,l.bF)(L,null,{default:(0,l.k6)(()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.crudModel.userEmails.filter(e=>e.isDefault),t=>((0,l.uX)(),(0,l.Wv)(_,{key:t.emailAddress+"_default-check"},{default:(0,l.k6)(()=>[(0,l.Lk)("strong",r,(0,s.v_)(e.$tc("modules.settings.labels.defaultEmail")),1)]),_:1}))),128)),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.crudModel.userEmails,t=>((0,l.uX)(),(0,l.Wv)(_,{key:t.emailAddress,class:(0,s.C4)({"bs-m-e-grid-item":!0,"bs-m-e-grid-item__no-actions":t.isDefault})},{default:(0,l.k6)(()=>[(0,l.bF)(E,{value:t.isDefault?t.emailAddress:"-1",val:t.emailAddress,onInput:a=>e.onMakeDefaultEmailAddress(t)},{default:(0,l.k6)(()=>[t.isDefault?((0,l.uX)(),(0,l.CE)("strong",d,(0,s.v_)(e.ellipsis(t.emailAddress,36)),1)):((0,l.uX)(),(0,l.CE)("span",u,(0,s.v_)(e.ellipsis(t.emailAddress,36)),1))]),_:2},1032,["value","val","onInput"]),(0,l.bF)(S,{color:t.status===e.MODULE_CONSTANTS.USER.EMAILS.STATUS.VERIFIED?"bs-lg-m":"bs-my-l"},{default:(0,l.k6)(()=>[(0,l.bF)(F,{name:t.status===e.MODULE_CONSTANTS.USER.EMAILS.STATUS.VERIFIED?"app:check-round":"app:pending",size:"1rem"},null,8,["name"]),(0,l.eW)(" "+(0,s.v_)(t.status===e.MODULE_CONSTANTS.USER.EMAILS.STATUS.VERIFIED?e.$tc("system.labels.verified"):e.$tc("system.labels.unverified")),1)]),_:2},1032,["color"]),t.status===e.MODULE_CONSTANTS.USER.EMAILS.STATUS.UNVERIFIED?((0,l.uX)(),(0,l.Wv)(x,{key:0,onClick:a=>e.onResendVerificationClick(t.emailAddress),tkey:"modules.settings.actions.resendVerification",secondary:""},null,8,["onClick"])):(0,l.Q3)("",!0),!1===t.isDefault?((0,l.uX)(),(0,l.Wv)(x,{key:1,onClick:a=>e.onRemoveEmailAddress(t.emailAddress),flat:"","icon-only":""},{default:(0,l.k6)(()=>[(0,l.Lk)("span",c,(0,s.v_)(e.$t("system.actions.deleteXEmailAddress",[t.emailAddress])),1),(0,l.bF)(F,{name:"app:trash",size:"1.125rem",color:"bs-r"})]),_:2},1032,["onClick"])):(0,l.Q3)("",!0)]),_:2},1032,["class"]))),128))]),_:1}),(0,l.bF)(x,{onClick:t[2]||(t[2]=t=>
1e.addingNewEmail=!e.addingNewEmail),secondary:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$t("system.actions.addAnotherEmail")),1)]),_:1})]),_:1},8,["onSubmit"])):(0,l.Q3)("",!0)]),_:1})]),_:1}),(0,l.Lk)("h2",m,(0,s.v_)(e.$tc("modules.settings.account.securityTitle")),1),(0,l.bF)($,{class:"content-block",onSubmit:e.onUpdatePassword},{default:(0,l.k6)(()=>[(0,l.bF)(A,null,{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.changePassword.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.changePassword.hint")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(x,{onClick:t[3]||(t[3]=t=>e.changePasswordDialogVisible=!e.changePasswordDialogVisible),secondary:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.actions.changePassword")),1)]),_:1})]),_:1})]),_:1},8,["onSubmit"]),(0,l.Lk)("h2",v,(0,s.v_)(e.$tc("modules.settings.account.consentTitle")),1),(0,l.bF)($,{class:"content-block"},{default:(0,l.k6)(()=>[(0,l.bF)(A,null,{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.cookies.title")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(x,{onClick:e.showTermly,secondary:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.actions.updateCookiePreferences")),1)]),_:1},8,["onClick"])]),_:1}),(0,l.bF)(A,{"multi-line-hint":""},{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.consent.title")),1)]),hint:(0,l.k6)(()=>[(0,l.bF)(T,{keypath:"modules.settings.account.formFields.consent.hint"},{termsAndConditionsSlot:(0,l.k6)(()=>[(0,l.bF)(x,{class:"text-bs-g font-size-15",onClick:(0,o.D$)(e.openTermsAndConditions,["prevent","stop"]),"as-link":""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.signUp.labels.termsAndConditions")),1)]),_:1},8,["onClick"])]),privacyPolicySlot:(0,l.k6)(()=>[(0,l.bF)(x,{class:"text-bs-g font-size-15",onClick:(0,o.D$)(e.openPrivacyPolicy,["prevent","stop"]),"as-link":""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.signUp.labels.privacyPolicy")),1)]),_:1},8,["onClick"])]),consentDate:(0,l.k6)(()=>[(0,l.Lk)("strong",p,(0,s.v_)(e.formatDate(e.mimicOrAuthenticatedUser.termsConsentDate,"MMM DD, YYYY")),1)]),_:1})]),default:(0,l.k6)(()=>[(0,l.bF)(x,{onClick:t[4]||(t[4]=t=>e.showWithdrawConsent=!e.showWithdrawConsent),secondary:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.actions.withdrawConsent")),1)]),_:1})]),_:1}),(0,l.bF)(A,{"multi-line-hint":""},{title:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.account.formFields.deleteAccount.title")),1)]),hint:(0,l.k6)(()=>[(0,l.bF)(T,{keypath:"modules.settings.account.formFields.deleteAccount.hint"},{permanent:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,s.v_)(e.$tc("modules.settings.deleteAccountDialog.permanent")),1)]),cannotBeUndone:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,s.v_)(e.$tc("modules.settings.deleteAccountDialog.cannotBeUndone")),1)]),cannotBeRecovered:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,s.v_)(e.$tc("modules.settings.account.formFields.deleteAccount.cannotBeRecovered")),1)]),_:1})]),default:(0,l.k6)(()=>[(0,l.bF)(x,{onClick:t[5]||(t[5]=t=>e.showDeleteAccount=!0),secondary:"",warning:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.settings.actions.deleteMyAccount")),1)]),_:1})]),_:1})]),_:1}),(0,l.bF)(I,{modelValue:e.addingNewEmail,"onUpdate:modelValue":t[7]||(t[7]=t=>e.addingNewEmail=t),title:e.$tc("modules.settings.labels.newEmail.title"),"ok-text":e.$tc("modules.settings.actions.addNewEmail"),onOk:e.onAddNewEmailAddress,"data-model":"addingNewEmail"},{default:(0,l.k6)(()=>[(0,l.Lk)("p",null,(0,s.v_)(e.$tc("modules.settings.labels.newEmail.description")),1),(0,l.bF)(C,{modelValue:e.newEmail,"onUpdate:modelValue":t[6]||(t[6]=t=>e.newEmail=t),label:e.$tc("modules.settings.account.formFields.newEmail.title"),placeholder:e.$tc("modules.settings.account.formFields.newEmail.placeholder"),required:"","valid-email":"","data-model":"newEmail"},null,8,["modelValue","label","placeholder"])]),_:1},8,["modelValue","title","ok-text","onOk"]),(0,l.bF)(I,{modelValue:e.changePasswordDialogVisible,"onUpdate:modelValue":t[11]||(t[11]=t=>e.changePasswordDialogVisible=t),title:e.$tc("modules.settings.labels.changePassword.title"),"ok-text":e.$tc("modules.settings.actions.changePassword"),onOk:e.onUpdatePassword,"data-model":"changePasswordDialogVisible"},{default:(0,l.k6)(()=>[(0,l.Lk)("p",null,(0,s.v_)(e.$tc("modules.settings.labels.changePassword.description")),1),(0,l.bF)(A,null,{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:e.oldPassword,"onUpdate:modelValue":t[8]||(t[8]=t=>e.oldPassword=t),type:"password",label:e.$tc("modules.settings.account.formFields.changePassword.oldTitle"),placeholder:e.$tc("modules.settings.account.formFields.changePassword.placeholderOld"),password:"",required:"","data-model":"oldPassword"},null,8,["modelValue","label","placeholder"])]),_:1}),(0,l.bF)(A,null,{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:e.newPassword,"onUpdate:modelValue":t[9]||(t[9]=t=>e.newPassword=t),type:"password",label:e.$tc("modules.settings.account.formFields.changePassword.newTitle"),placeholder:e.$tc("modules.settings.account.formFields.changePassword.placeholderNew"),validation:[t=>{const a=e.getPasswordLengthErrorKey(t);return a?{label:e.$tc(`system.errors.${a}`)}:void 0}
1],"lazy-validation":"",password:"",required:"","data-model":"newPassword"},null,8,["modelValue","label","placeholder","validation"])]),_:1}),(0,l.bF)(A,null,{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:e.confirmNewPassword,"onUpdate:modelValue":t[10]||(t[10]=t=>e.confirmNewPassword=t),type:"password",label:e.$tc("modules.settings.account.formFields.changePassword.confirmTitle"),placeholder:e.$tc("modules.settings.account.formFields.changePassword.placeholderConfirmNew"),rules:[t=>e.newPassword===e.confirmNewPassword||e.$tc("modules.settings.errors.passwordsMustMatch")],"lazy-rules":"",password:"",required:"","data-model":"confirmNewPassword"},null,8,["modelValue","label","placeholder","rules"])]),_:1})]),_:1},8,["modelValue","title","ok-text","onOk"]),(0,l.bF)(I,{modelValue:e.showWithdrawConsent,"onUpdate:modelValue":t[12]||(t[12]=t=>e.showWithdrawConsent=t),title:e.$tc("modules.settings.labels.withdrawConsent.title"),"ok-text":e.$tc("modules.settings.actions.yesWithdraw"),"cancel-text":e.$tc("modules.settings.actions.dontWithdraw"),onCancel:e.onCancelWithdrawConsent,onOk:e.onWithdrawConsent,"ok-button-as-warning":"","data-model":"showWithdrawConsent"},{default:(0,l.k6)(()=>[(0,l.Lk)("div",g,[(0,l.bF)(T,{keypath:"modules.settings.labels.withdrawConsent.description",tag:"p"},{termsAndConditionsSlot:(0,l.k6)(()=>[(0,l.bF)(x,{class:"text-bs-g font-size-15",onClick:(0,o.D$)(e.openTermsAndConditions,["prevent","stop"]),"as-link":""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.signUp.labels.termsAndConditions")),1)]),_:1},8,["onClick"])]),privacyPolicySlot:(0,l.k6)(()=>[(0,l.bF)(x,{class:"text-bs-g font-size-15",onClick:(0,o.D$)(e.openPrivacyPolicy,["prevent","stop"]),"as-link":""},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$tc("modules.signUp.labels.privacyPolicy")),1)]),_:1},8,["onClick"])]),_:1}),(0,l.Lk)("div",b,[(0,l.bF)(T,{keypath:"modules.settings.labels.withdrawConsent.descriptionPart2",tag:"strong"}),(0,l.bF)(T,{keypath:"modules.settings.labels.withdrawConsent.descriptionPart3",tag:"p"}),(0,l.bF)(T,{keypath:"modules.settings.labels.withdrawConsent.descriptionPart4",tag:"p"}),(0,l.Lk)("div",f,[(0,l.bF)(T,{class:"text-bs-grey-m",keypath:"modules.settings.labels.withdrawConsent.consentGivenOnX",tag:"strong"},{consentDate:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.formatDate(e.mimicOrAuthenticatedUser.termsConsentDate,"MMM DD, YYYY")),1)]),_:1})])])])]),_:1},8,["modelValue","title","ok-text","cancel-text","onCancel","onOk"]),(0,l.bF)(D,{modelValue:e.showDeleteAccount,"onUpdate:modelValue":t[13]||(t[13]=t=>e.showDeleteAccount=t),onDeleted:e.onDeleteAccountDeleted},null,8,["modelValue","onDeleted"])])}},59574(e,t,a){a.d(t,{X:()=>c});var l=a(89221),o=a(65365);const s={class:"bs-author-settings"},n=["innerHTML"],i={class:"bg-white q-pa-lg flex items-center text-center justify-center relative-position"},r={class:"full-width"},d=["innerHTML"],u={class:"flex q-mt-lg",style:{"max-width":"340px"}};function c(e,t,a,c,m,v){const p=(0,l.g2)("bs-btn"),g=(0,l.g2)("bs-form"),b=(0,l.g2)("q-card-section"),f=(0,l.g2)("q-card"),h=(0,l.g2)("bs-input"),k=(0,l.g2)("bs-upgrade"),y=(0,l.g2)("bs-form-field"),w=(0,l.g2)("q-icon"),A=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.CE)("div",s,[(0,l.Lk)("h2",null,(0,o.v_)(e.$tc("modules.settings.author.title")),1),e.mimicOrAuthenticatedUser.authorRole?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)(f,{key:0,class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(b,null,{default:(0,l.k6)(()=>[(0,l.bF)(g,null,{default:(0,l.k6)(()=>[(0,l.Lk)("p",{class:"text-bs-nb",innerHTML:e.$tc("modules.settings.author.convert")},null,8,n),(0,l.bF)(p,{onClick:e.onShowAddAuthorFeatures},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.actions.addAuthorFeatures")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})),e.mimicOrAuthenticatedUser.authorRole?((0,l.uX)(),(0,l.Wv)(f,{key:1,class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(b,null,{default:(0,l.k6)(()=>[(0,l.bF)(g,{onSubmit:e.saveVirtualAssistant,novalidate:e.shouldDisableHtmlValidation},{default:(0,l.k6)(()=>[(0,l.bF)(y,{class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.author.formFields.va.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.author.formFields.va.hint")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(k,{role:e.MODULE_CONSTANTS.USER.ROLES.AUTHOR.BEST_SELLING,"permission-name":"canAddVirtualAssistants",inline:""},{default:(0,l.k6)(()=>[(0,l.bF)(h,{modelValue:e.vaEmailAddress,"onUpdate:modelValue":t[0]||(t[0]=t=>e.vaEmailAddress=t),type:"email",class:"full-width",placeholder:e.$tc("modules.settings.author.formFields.va.placeholder"),disable:""!==e.crudModel.hasActingAs,"valid-email":"","data-model":"vaEmailAddress"},null,8,["modelValue","placeholder","disable"]),e.crudModel.hasActingAs?((0,l.uX)(),(0,l.Wv)(p,{key:0,onClick:t[1]||(t[1]=t=>e.removeVirtualAssistant()),color:"bs-r",warning:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.author.formFields.va.removeVa")),1)]),_:1})):(0,l.Q3)("",!0)]),_:1},8,["role"])]),_:1}),e.mimicOrAuthenticatedUser.permissionQuery.permissions.authorPerms.canAddVirtualAssistants?((0,l.uX)(),(0,l.Wv)(p,{key:0,t
1ype:"submit",tkey:"modules.settings.actions.saveVa",disable:""!==e.crudModel.hasActingAs,large:"",secondary:""},null,8,["disable"])):(0,l.Q3)("",!0)]),_:1},8,["onSubmit","novalidate"])]),_:1})]),_:1})):(0,l.Q3)("",!0),(0,l.bF)(A,{modelValue:e.showAddAuthorFeatures,"onUpdate:modelValue":t[2]||(t[2]=t=>e.showAddAuthorFeatures=t)},{default:(0,l.k6)(()=>[(0,l.Lk)("div",i,[(0,l.bF)(w,{name:"icon-close",class:"absolute-top-right bs-modal__close cursor-pointer q-mt-sm q-mr-sm icon-bs-g",onClick:e.onShowAddAuthorFeatures},null,8,["onClick"]),(0,l.Lk)("h2",r,(0,o.v_)(e.$tc("modules.settings.author.addAuthorFeatures.heading")),1),(0,l.Lk)("p",{class:"text-bs-nb-m",innerHTML:e.$tc("modules.settings.author.addAuthorFeatures.notice")},null,8,d),(0,l.Lk)("div",u,[(0,l.bF)(p,{color:"bs-lb",class:"full-width q-mb-md",onClick:e.onAddAuthorFeatures,cta:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.author.addAuthorFeatures.actions.yes")),1)]),_:1},8,["onClick"]),(0,l.bF)(p,{color:"bs-lb",class:"full-width",onClick:e.onShowAddAuthorFeatures,cta:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.author.addAuthorFeatures.actions.no")),1)]),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])])}},94704(e,t,a){a.d(t,{X:()=>j});var l=a(89221),o=a(65365);const s={class:"billing-settings"},n={key:0,class:"row border-radius bg-bs-g-l q-pa-md q-mb-md text-center"},i={key:1,class:"row border-radius bg-bs-r-l q-pa-md q-mb-md text-center"},r={class:"bs-h4"},d={class:"bs-stacked-blocks","aria-hidden":"true"},u={class:"bs-stacked-block"},c={class:"column items-start"},m={class:"bs-h4"},v={key:0},p={key:1},g={key:2},b={key:3},f={key:0,class:"p-small"},h={key:0},k={key:1},y={key:1,class:"p-small"},w={key:0},A={key:1},C={class:"bs-h4"},_={class:"bs-stacked-blocks","aria-hidden":"true"},E={class:"bs-stacked-block"},F={class:"column items-start"},S={class:"bs-h4"},x={class:"p-small"},L={class:"p-small"},$={class:"bs-note"},T={class:"p-small__bold"},I={class:"bs-h4"},D={class:"p-small"},P={class:"p-small"},M={key:0,class:"p-small"},O={class:"bs-h4"},N={class:"bs-note"},R={class:"p-small__bold"},V={key:2},U={class:"row no-wrap items-center justify-between full-width"},W={key:3,class:"column bs-p-h-i-details"},X={key:0},q=["href"],K={class:"q-btn__wrapper col row q-anchor--skip"},Q={class:"q-btn__content text-center col items-center q-anchor--skip justify-center row"};function j(e,t,a,j,B,G){const z=(0,l.g2)("q-icon"),Y=(0,l.g2)("bs-btn"),H=(0,l.g2)("q-card-section"),J=(0,l.g2)("q-card"),Z=(0,l.g2)("i18n-t"),ee=(0,l.g2)("bs-chip"),te=(0,l.g2)("bs-paginator"),ae=(0,l.g2)("q-card-actions");return(0,l.uX)(),(0,l.CE)("div",s,[e.loaded&&e.planInfo?((0,l.uX)(),(0,l.CE)(l.FK,{key:0},[e.mimicOrAuthenticatedUser.permissionQuery.isDemoFeature?((0,l.uX)(),(0,l.CE)("div",n,[(0,l.Lk)("span",null,[t[1]||(t[1]=(0,l.Lk)("strong",null,"Demo Mode: ",-1)),t[2]||(t[2]=(0,l.eW)("You're currently testing the ",-1)),(0,l.Lk)("strong",null,(0,o.v_)(e.planName),1),t[3]||(t[3]=(0,l.eW)(" plan.",-1))])])):(0,l.Q3)("",!0),e.hasFailedPayment?((0,l.uX)(),(0,l.CE)("div",i,(0,o.v_)(e.$t("modules.settings.billing.labels.failedPaymentMessage")),1)):(0,l.Q3)("",!0),e.planInfo.stripeSubscriptionId||e.planInfo.invoices.length?((0,l.uX)(),(0,l.CE)(l.FK,{key:3},[e.planInfo.price?((0,l.uX)(),(0,l.CE)(l.FK,{key:0},[(0,l.Lk)("h2",null,(0,o.v_)(e.$t("modules.settings.billing.labels.planInformation")),1),(0,l.bF)(J,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(H,{class:"column items-start bs-author-plan-details"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",m,["publisher"===e.planInfo.plan?((0,l.uX)(),(0,l.CE)("span",v,(0,o.v_)(e.$t(`modules.subscriptions.plans.${e.planInfo.plan}.shortTitle`)),1)):((0,l.uX)(),(0,l.CE)("span",p,(0,o.v_)(e.$t(`modules.subscriptions.plans.${e.planInfo.plan}.title`)),1)),"year"===e.planInfo.cycle?((0,l.uX)(),(0,l.CE)("span",g,(0,o.v_)(e.$t("system.labels.yearly")),1)):((0,l.uX)(),(0,l.CE)("span",b,(0,o.v_)(e.$t("system.labels.monthly")),1))]),e.planInfo.cancelAt?((0,l.uX)(),(0,l.CE)("p",y,[(0,l.bF)(Z,{keypath:"modules.settings.billing.labels.benef
1itsExpireOnX"},{date:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.formatDate(e.planInfo.cancelAt,"MMM DD, YYYY")),1)]),_:1})])):((0,l.uX)(),(0,l.CE)("p",f,[(0,l.Lk)("strong",{class:(0,o.C4)([{"text-strike text-grey-5":e.planInfo.discountPcApplied>0||e.planInfo.discountAmountApplied>0},"q-mr-sm"])}," $"+(0,o.v_)(e.planInfo.price)+"/"+(0,o.v_)(e.planInfo.cycle),3),e.planInfo.discountPcApplied>0?((0,l.uX)(),(0,l.CE)("strong",h," $"+(0,o.v_)(e.minusSubDiscountNoDate(e.planInfo.price,e.planInfo.cycle))+"/"+(0,o.v_)(e.planInfo.cycle),1)):e.planInfo.discountAmountApplied>0?((0,l.uX)(),(0,l.CE)("strong",k," $"+(0,o.v_)(e.planInfo.price-e.planInfo.discountAmountApplied)+"/"+(0,o.v_)(e.planInfo.cycle),1)):(0,l.Q3)("",!0),(0,l.bF)(Z,{class:"on-right",keypath:"modules.subscriptions.plans.labels.nextBillOnX",tag:"span"},{date:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.formatDate(e.planInfo.nextBillDue,"MMMM DD, YYYY")),1)]),_:1})])),e.planInfo.cancelAt?e.planInfo.cancelAt?((0,l.uX)(),(0,l.Wv)(Y,{key:3,onClick:e.reactivatePlan,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.subscriptions.plans.actions.reactivateSubscription")),1)]),_:1},8,["onClick"])):(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)(Y,{key:2,onClick:t[0]||(t[0]=t=>e.handleChoosePlan("change")),secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.subscriptions.plans.actions.changePlan")),1)]),_:1})),e.planInfo.discountPcApplied||e.planInfo.discountAmountApplied?((0,l.uX)(),(0,l.Wv)(ee,{key:4,color:"bs-g-l"},{default:(0,l.k6)(()=>[(0,l.bF)(z,{name:"app:discount",size:"1rem"}),e.planInfo.discountPcApplied?((0,l.uX)(),(0,l.CE)("strong",w,(0,o.v_)(e.$t("modules.subscriptions.plans.labels.discountApplied")),1)):e.planInfo.discountAmountApplied?((0,l.uX)(),(0,l.CE)("strong",A,(0,o.v_)(e.$t("modules.subscriptions.plans.labels.freeMonth")),1)):(0,l.Q3)("",!0)]),_:1})):(0,l.Q3)("",!0)]),_:1})]),_:1})],64)):((0,l.uX)(),(0,l.CE)(l.FK,{key:1},[(0,l.Lk)("h2",null,(0,o.v_)(e.$t("modules.settings.billing.title")),1),(0,l.bF)(J,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(H,{class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",C,(0,o.v_)(e.$t("modules.settings.billing.labels.noSubscription")),1),(0,l.Lk)("div",_,[t[6]||(t[6]=(0,l.Lk)("div",{class:"bs-stacked-block"},null,-1)),(0,l.Lk)("div",E,[(0,l.bF)(z,{name:"app:check-round-thin",size:"2.25rem",color:"white"})]),t[7]||(t[7]=(0,l.Lk)("div",{class:"bs-stacked-block"},null,-1))]),(0,l.Lk)("div",F,[(0,l.Lk)("h4",null,(0,o.v_)(e.$t("modules.settings.billing.labels.choosePlan")),1),(0,l.bF)(Y,{onClick:e.handleChoosePlan,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.choosePlan")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})],64)),(0,l.Lk)("h2",null,(0,o.v_)(e.$t("modules.settings.billing.labels.billingInformation")),1),(0,l.bF)(J,{class:"bs-card bs-b-s-card-details"},{default:(0,l.k6)(()=>[e.planInfo.cardLast4?((0,l.uX)(),(0,l.Wv)(H,{key:0,class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",S,(0,o.v_)(e.$t("modules.settings.billing.labels.creditCardInformation")),1),(0,l.Lk)("p",x,[(0,l.eW)((0,o.v_)(e.$t(`modules.settings.billing.labels.cardTypes.${e.planInfo.cardType}`))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.cardLast4),1)]),(0,l.Lk)("p",L,[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.expiryDate"))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.cardExpiry),1)]),(0,l.bF)(Y,{onClick:e.changeCard,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.change")),1)]),_:1},8,["onClick"])]),_:1})):((0,l.uX)(),(0,l.Wv)(H,{key:1,class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",null,(0,o.v_)(e.$t("modules.settings.billing.labels.billingInfo")),1),(0,l.Lk)("p",$,[(0,l.Lk)("strong",T,(0,o.v_)(e.$t("modules.settings.billing.labels.noCreditCard")),1)]),(0,l.bF)(Y,{onClick:e.addCard,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.addCreditCard")),1)]),_:1},8,["onClick"])]),_:1})),e.planInfo.taxCountry?((0,l.uX)(),(0,l.Wv)(H,{key:2,class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",I,(0,o.v_)(e.$t("modules.settings.billing.labels.taxInformation")),1),(0,l.Lk)("p",D,[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.country"))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.taxCountry),1)]),(0,l.Lk)("p",P,[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.postCode"))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.postalCode),1)]),e.planInfo.taxCode?((0,l.uX)(),(0,l.CE)("p",M,[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.vatNumber"))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.taxCode),1)])):(0,l.Q3)("",!0),(0,l.bF)(Y,{onClick:e.updateTaxData,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.change")),1)]),_:1},8,["onClick"])]),_:1})):((0,l.uX)(),(0,l.Wv)(H,{key:3,class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",O,(0,o.v_)(e.$t("modules.settings.billing.labels.taxInformation")),1),(0,l.Lk)("p",N,[(0,l.Lk)("strong",R,(0,o.v_)(e.$t("modules.settings.billing.labels.noTaxInfo")),1)]),(0,l.bF)(Y,{onClick:e.updateTaxData,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("system.actions.update")),1)]),_:1},8,["onClick"])]),_:1}))]),_:1}),e.planInfo.invoices.length?((0,l.uX)(),(0,l.CE)("h2",V,(0,o.v_)(e.$t("modules.settings.billing.labels.paymentHistory")),1)):(0,l.Q3)("",!0),e.planInfo.invoices.length?((0,l.uX)(),(0,l.Wv)(J,{key:3,class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(H,{class:"bs-b-s-payment-history"},{default:(0,l.k6)(()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.planInfo.invoices,t=>((0,l.uX)(),(0,l.CE)("div",{key:t.downloadLink,class:"row bs-payment-history-item"},[(0,l.Lk)("div",U,[(0,l.Lk)("span",null,(0,o.v_)(t.description),1),e.$q.screen.lt.sm?((0,l.uX)(),(0,l.Wv)(Y,{key:0,color:"transparent","text-color":"bs-g",onClick:a=>e.toggleInvoiceSection(t),"icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(z,{name:e.isShowing.includes(t.downloadLink)?"app:arrow-up":"app:arrow-down",size:".5rem"},null,8,["name"])]),_:2},1032,["onClick"])):(0,l.Q3)("",!0)]),"paid"===t.status?((0,l.uX)(),(0,l.Wv)(ee,{key:0,color:"bs-g-l"},{default:(0,l.k6)(()=>[(0,l.bF)(Z,{keypath:"modules.settings.billing.labels.paidOnX"},{0:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.formatDate(t.paidOn,"MMMM DD, YYYY")),1)]),_:2},1024)]),_:2},1024)):"void"===t.status?((0,l.uX)(),(0,l.Wv)(ee,{key:1,color:"bs-r","text-color":"white"},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.voided")),1)]),_:1})):((0,l.uX)(),(0,l.Wv)(ee,{key:2,color:"bs-r","text-color":"white"},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.failedPayment")),1)]),_:1})),e.$q.screen.gt.xs||e.isShowing.includes(t.downloadLink)?((0,l.uX)(),(0,l.CE)("div",W,[t.cardType?((0,l.uX)(),(0,l.CE)("p",X,[(0,l.Lk)("span",null,(0,o.v_)(e.$t(`modules.settings.billing.labels.cardTypes.${t.cardType}`)),1),(0,l.Lk)("strong",null,(0,o.v_)(t.cardLast4),1)])):(0,l.Q3)("",!0),e.canRetryFailedPayment(t)?((0,l.uX)(),(0,l.Wv)(Y,{key:1,class:"failed-payment",onClick:a=>e.retryFailedPayment(t),secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.retryPayment")),1)]),_:1},8,["onClick"])):e.planInfo.lastFailedPaymentId?((0,l.uX)(),(0,l.Wv)(Y,{key:2,onClick:e.openHelpscout},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.failedPaymentGetHelp")),1)]),_:1},8,["onClick"])):((0,l.uX)(),(0,l.CE)("a",{key:3,href:t.downloadLink,class:"q-btn q-btn--rectangle bs-btn bs-btn--secondary",target:"_blank",rel:"noopener noreferrer"},[(0,l.Lk)("span",K,[(0,l.Lk)("span",Q,(0,o.v_)(e.$t("modules.settings.billing.actions.downloadReceipt")),1)])],8,q))])):(0,l.Q3)("",!0)]))),128))]),_:1}),e.planInfo.invoices.length&&e.invoiceTotalRows>e.invoicesPageSize?((0,l.uX)(),(0,l.Wv)(ae,{key:0,align:"center",class:"q-pb-md"},{default:(0,l.k6)(()=>[(0,l.bF)(te,{"set-current-page":e.currentInvoicePage,onChanged:e.paginateInvoices,"total-rows":e.invoiceTotalRows,"rows-per-page":e.invoicesPageSize},null,8,["set-current-page","onChanged","total-rows","rows-per-page"])]),_:1})):(0,l.Q3)("",!0)]),_:1})):(0,l.Q3)("",!0)],64)):((0,l.uX)(),(0,l.CE)(l.FK,{key:2},[(0,l.Lk)("h2",null,(0,o.v_)(e.$t("modules.settings.billing.title")),1),(0,l.bF)(J,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(H,{class:"column"},{default:(0,l.k6)(()=>[(0,l.Lk)("h3",r,(0,o.v_)(e.$t("modules.settings.billing.labels.noSubscription")),1),(0,l.Lk)("div",d,[t[4]||(t[4]=(0,l.Lk)("div",{class:"bs-stacked-block"},null,-1)),(0,l.Lk)("div",u,[(0,l.bF)(z,{name:"app:check-round-thin",size:"2.25rem",color:"white"})]),t[5]||(t[5]=(0,l.Lk)("div",{class:"bs-stacked-block"},null,-1))]),(0,l.Lk)("div",c,[(0,l.Lk)("h4",null,(0,o.v_)(e.$t("modules.settings.billing.labels.choosePlan")),1),(0,l.bF)(Y,{onClick:e.handleChoosePlan,secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.actions.choosePlan")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1})],64))],64)):(0,l.Q3)("",!0)])}},83181(e,t,a){a.d(t,{X:()=>d});var l=a(89221),o=a(65365);const s={class:"bs-categories-settings"},n={class:"column gap-10"},i={class:"bs-h4"},r={class:"text-bs-grey-m"};function d(e,t,a,d,u,c){const m=(0,l.g2)("linked-categories-tree"),v=(0,l.g2)("q-card-section"),p=(0,l.g2)("q-card");return(0,l.uX)(),(0,l.CE)("div",s,[(0,l.Lk)("h2",null,(0,o.v_)(e.$tc("modules.settings.categories.title")),1),(0,l.bF)(p,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(v,{class:"column gap-20"},{default:(0,l.k6)(()=>[(0,l.Lk)("div",n,[(0,l.Lk)("h3",i,(0,o.v_)(e.$t("modules.settings.labels.bookCategories")),1),(0,l.Lk)("p",r,(0,o.v_)(e.$t("modules.settings.labels.selectFavouriteCategories")),1)]),(0,l.bF)(m,{categories:e.newFormatCategories,value:e.categoryIds,"expansion-item-class":"bs-c-s-expansion-item",onInput:e.onCategoryIdsChanged,onExpansionInput
1:t[0]||(t[0]=t=>e.toggleExpandedFilters("ef:c",t))},null,8,["categories","value","onInput"])]),_:1})]),_:1})])}},61315(e,t,a){a.d(t,{X:()=>n});var l=a(89221),o=a(65365);const s={class:"bs-email-settings"};function n(e,t,a,n,i,r){const d=(0,l.g2)("bs-checkbox"),u=(0,l.g2)("bs-form-field"),c=(0,l.g2)("bs-form"),m=(0,l.g2)("q-card-section"),v=(0,l.g2)("q-card");return(0,l.uX)(),(0,l.CE)("div",s,[(0,l.Lk)("h2",null,(0,o.v_)(e.$tc("modules.settings.email.title")),1),e.mimicOrAuthenticatedUser.authorRole?((0,l.uX)(),(0,l.Wv)(v,{key:0,class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(m,null,{default:(0,l.k6)(()=>[(0,l.bF)(c,null,{default:(0,l.k6)(()=>[e.crudModel.preferences?((0,l.uX)(),(0,l.Wv)(u,{key:0,class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.author.formFields.reminders.title")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertTimeToPublish,"onUpdate:modelValue":t[0]||(t[0]=t=>e.crudModel.preferences.alertTimeToPublish=t),"auto-save":e.autoSave,tkey:"modules.settings.author.formFields.reminders.timeToPublish","hide-bottom-space":"","data-model":"crudModel.preferences.alertTimeToPublish"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertNewArcParticipant,"onUpdate:modelValue":t[1]||(t[1]=t=>e.crudModel.preferences.alertNewArcParticipant=t),"auto-save":e.autoSave,tkey:"modules.settings.author.formFields.reminders.newArcParticipant","hide-bottom-space":"","data-model":"crudModel.preferences.alertNewArcParticipant"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertNewReview,"onUpdate:modelValue":t[2]||(t[2]=t=>e.crudModel.preferences.alertNewReview=t),"auto-save":e.autoSave,tkey:"modules.settings.author.formFields.reminders.newReview","hide-bottom-space":"","data-model":"crudModel.preferences.alertNewReview"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertArcCancellation,"onUpdate:modelValue":t[3]||(t[3]=t=>e.crudModel.preferences.alertArcCancellation=t),"auto-save":e.autoSave,tkey:"modules.settings.author.formFields.reminders.arcCancellation","hide-bottom-space":"","data-model":"crudModel.preferences.alertArcCancellation"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertNewTeamApplicant,"onUpdate:modelValue":t[4]||(t[4]=t=>e.crudModel.preferences.alertNewTeamApplicant=t),"auto-save":e.autoSave,tkey:"modules.settings.author.formFields.reminders.newTeamApplicant","hide-bottom-space":"","data-model":"crudModel.preferences.alertNewTeamApplicant"},null,8,["modelValue","auto-save"])]),_:1})):(0,l.Q3)("",!0)]),_:1})]),_:1})]),_:1})):(0,l.Q3)("",!0),(0,l.bF)(v,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(m,null,{default:(0,l.k6)(()=>[(0,l.bF)(c,null,{default:(0,l.k6)(()=>[e.crudModel.preferences?((0,l.uX)(),(0,l.Wv)(u,{key:0,class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.reviewer.formFields.alerts.title")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertNewArc,"onUpdate:modelValue":t[5]||(t[5]=t=>e.crudModel.preferences.alertNewArc=t),tkey:"modules.settings.reviewer.formFields.alerts.newArc","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertNewArc"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertNewArcOtherLanguages,"onUpdate:modelValue":t[6]||(t[6]=t=>e.crudModel.preferences.alertNewArcOtherLanguages=t),tkey:"modules.settings.reviewer.formFields.alerts.newArcOtherLanguages",disable:!e.crudModel.preferences.alertNewArc,"auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertNewArcOtherLanguages"},null,8,["modelValue","disable","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertReviewDueIn2Days,"onUpdate:modelValue":t[7]||(t[7]=t=>e.crudModel.preferences.alertReviewDueIn2Days=t),tkey:"modules.settings.reviewer.formFields.alerts.reviewDueIn2Days","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertReviewDueIn2Days"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertReadyToReview,"onUpdate:modelValue":t[8]||(t[8]=t=>
1e.crudModel.preferences.alertReadyToReview=t),tkey:"modules.settings.reviewer.formFields.alerts.alertReadyToReview","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertReadyToReview"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertFinalFollowup,"onUpdate:modelValue":t[9]||(t[9]=t=>e.crudModel.preferences.alertFinalFollowup=t),tkey:"modules.settings.reviewer.formFields.alerts.reviewOverdue","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertFinalFollowup"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertDelayExpiring,"onUpdate:modelValue":t[10]||(t[10]=t=>e.crudModel.preferences.alertDelayExpiring=t),tkey:"modules.settings.reviewer.formFields.alerts.alertDelayExpiring","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertDelayExpiring"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertDelayExpired,"onUpdate:modelValue":t[11]||(t[11]=t=>e.crudModel.preferences.alertDelayExpired=t),tkey:"modules.settings.reviewer.formFields.alerts.alertDelayExpired","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertDelayExpired"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertSavedArcEndingOrLowCopies,"onUpdate:modelValue":t[12]||(t[12]=t=>e.crudModel.preferences.alertSavedArcEndingOrLowCopies=t),tkey:"modules.settings.reviewer.formFields.alerts.savedArcEndingOrLowCopies","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertSavedArcEndingOrLowCopies"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.invitedToTeam,"onUpdate:modelValue":t[13]||(t[13]=t=>e.crudModel.preferences.invitedToTeam=t),tkey:"modules.settings.reviewer.formFields.alerts.invitedToTeam","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.invitedToTeam"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.freeText,"onUpdate:modelValue":t[14]||(t[14]=t=>e.crudModel.preferences.freeText=t),tkey:"modules.settings.reviewer.formFields.alerts.freeText","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.freeText"},null,8,["modelValue","auto-save"]),(0,l.bF)(d,{modelValue:e.crudModel.preferences.alertBookFileUpdated,"onUpdate:modelValue":t[15]||(t[15]=t=>e.crudModel.preferences.alertBookFileUpdated=t),tkey:"modules.settings.reviewer.formFields.alerts.authorUpdatesBookFile","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.alertBookFileUpdated"},null,8,["modelValue","auto-save"])]),_:1})):(0,l.Q3)("",!0)]),_:1})]),_:1})]),_:1}),(0,l.bF)(v,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(m,null,{default:(0,l.k6)(()=>[(0,l.bF)(c,null,{default:(0,l.k6)(()=>[e.crudModel.preferences?((0,l.uX)(),(0,l.Wv)(u,{key:0,class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.email.formFields.alerts.title")),1)]),default:(0,l.k6)(()=>[(0,l.bF)(d,{modelValue:e.crudModel.preferences.emailOnMessage,"onUpdate:modelValue":t[16]||(t[16]=t=>e.crudModel.preferences.emailOnMessage=t),tkey:"modules.settings.email.formFields.alerts.emailOnMessage","auto-save":e.autoSave,"hide-bottom-space":"","data-model":"crudModel.preferences.emailOnMessage"},null,8,["modelValue","auto-save"])]),_:1})):(0,l.Q3)("",!0)]),_:1})]),_:1})]),_:1})])}},51615(e,t,a){a.d(t,{X:()=>u});var l=a(89221),o=a(65365);const s={class:"bs-h4"},n={class:"bs-s-nav"},i={class:"bs-s-content"},r={class:"vs-v-s-column"},d={class:"bs-h1--mobile"};function u(e,t,a,u,c,m){const v=(0,l.g2)("q-icon"),p=(0,l.g2)("q-item-section"),g=(0,l.g2)("q-item-label"),b=(0,l.g2)("q-item"),f=(0,l.g2)("q-list"),h=(0,l.g2)("bs-btn-dropdown"),k=(0,l.g2)("router-view"),y=(0,l.g2)("q-avatar"),w=(0,l.g2)("bs-btn"),A=(0,l.g2)("q-card-section"),C=(0,l.g2)("q-card"),_=(0,l.g2)("q-page"),E=(0,l.gN)("can");return(0,l.uX)(),(0,l.Wv)(_,{class:"bs-page bs-settings"},{default:(0,l.k6)(()=>[(0,l.Lk)("h1",s,(0,o.v_)(e.$t("modules.settings.labels.settings")),1),(0,l.Lk)("div",n,[e.$q.screen.lt.md?((0,l.uX)(),(0,l.Wv)(h,{key:0,modelValue:e.mobileMenuVisible,"onUpdate:modelValue":t[0]||(t[0]=t=>e.mobileMenuVisible=t),"content-class":"bs-s-n-menu",class:(0,o.C4)({"bs-btn-dropdown__active":e.mobileMenuVisible}),label:e.currentActiveSettingPanel.title,icon:e.currentActiveSettingPanel.icon,"menu-offset":[0,0],secondary:"","data-model":"mobileMenuVisible"},{default:(0,l.k6)(()=>[(0,l.bF)(f,null,{default:(0,l.k6)(()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.settingPanels,t=>(0,l.bo)(((0,l.uX)(),(0,l.Wv)(b,{key:t.to,onClick:a=>e.navigateTo(t),class:(0,o.C4)({"q-router-link--exact-active q-router-link--active":e.isActivePanel(t)}),clickable:!e.isActivePanel(t)},{default:(0,l.k6)(()=>[(0,l.bF)(p,{avatar:""},{default:(0,l.k6)(()=>[(0,l.bF)(v,{name:t.icon,size:"1.125rem"},null,8,["name"])]),_:2},1024),(0,l.bF)(p,null,{default:(0,l.k6)(()=>[(0,l.bF)(g,null,{default:(0,l.k6)(()=>
1[(0,l.eW)((0,o.v_)(t.title),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick","class","clickable"])),[[E,t.model,"read"]])),128))]),_:1})]),_:1},8,["modelValue","class","label","icon"])):((0,l.uX)(),(0,l.Wv)(f,{key:1},{default:(0,l.k6)(()=>[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.settingPanels,t=>(0,l.bo)(((0,l.uX)(),(0,l.Wv)(b,{key:t.to,onClick:a=>e.navigateTo(t),class:(0,o.C4)({"q-router-link--exact-active q-router-link--active":e.isActivePanel(t)}),clickable:!e.isActivePanel(t)},{default:(0,l.k6)(()=>[(0,l.bF)(p,{avatar:""},{default:(0,l.k6)(()=>[(0,l.bF)(v,{name:t.icon,size:"app:categories"===t.icon?"2rem":"1.125rem",style:(0,o.Tr)({"margin-inline-start":"app:categories"===t.icon?"-0.375rem":"0"})},null,8,["name","size","style"])]),_:2},1024),(0,l.bF)(p,null,{default:(0,l.k6)(()=>[(0,l.bF)(g,null,{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(t.title),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick","class","clickable"])),[[E,t.model,"read"]])),128))]),_:1}))]),(0,l.Lk)("div",i,[!e.isMimic||e.authenticatedUser.isAdmin?((0,l.uX)(),(0,l.Wv)(k,{key:0})):((0,l.uX)(),(0,l.Wv)(C,{key:1,class:"bs-card bs-va-restriction"},{default:(0,l.k6)(()=>[(0,l.bF)(A,null,{default:(0,l.k6)(()=>[(0,l.bF)(y,{color:"bs-r-l","text-color":"bs-r",icon:"app:stop-thin",size:"10.25rem","font-size":"4rem"}),(0,l.Lk)("div",r,[(0,l.Lk)("h2",d,(0,o.v_)(e.$tc("modules.settings.labels.noAccessToXSettings",void 0,{userName:e.mimicOrAuthenticatedUser.name})),1),(0,l.Lk)("p",null,(0,o.v_)(e.$tc("modules.settings.labels.vaNoAccessMessage")),1)]),(0,l.bF)(w,{onClick:e.onStopMimicClick,secondary:"",large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.actions.stopActingAsX",void 0,{userName:e.mimicOrAuthenticatedUser.name})),1)]),_:1},8,["onClick"])]),_:1})]),_:1}))])]),_:1})}},41567(e,t,a){a.d(t,{X:()=>r});var l=a(89221),o=a(65365);const s={class:"bs-reviewer-settings"},n={key:0,class:"row justify-between"},i={key:0,class:"row justify-between"};function r(e,t,a,r,d,u){const c=(0,l.g2)("bs-input"),m=(0,l.g2)("bs-form-field"),v=(0,l.g2)("bs-checkbox"),p=(0,l.g2)("bs-form"),g=(0,l.g2)("q-card-section"),b=(0,l.g2)("q-card");return(0,l.uX)(),(0,l.CE)("div",s,[(0,l.Lk)("h2",null,(0,o.v_)(e.$tc("modules.settings.reviewer.title")),1),(0,l.bF)(b,{class:"bs-card"},{default:(0,l.k6)(()=>[(0,l.bF)(g,null,{default:(0,l.k6)(()=>[(0,l.bF)(p,null,{default:(0,l.k6)(()=>[(0,l.bF)(m,{class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.reviewer.formFields.kindleEmail.title")),1)]),hint:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.reviewer.formFields.kindleEmail.hint",void 0,{readerEmailAddress:e.crudModel.emailAddress})),1)]),default:(0,l.k6)(()=>[(0,l.bF)(c,{ref:"kindleEmailInput",modelValue:e.crudModel.kindleEmail,"onUpdate:modelValue":t[0]||(t[0]=t=>e.crudModel.kindleEmail=t),class:"full-width",placeholder:e.$tc("modules.settings.reviewer.formFields.kindleEmail.placeholder"),"auto-save":e.autoSave,validation:[t=>t&&!t.match(/^\[email protected]$/)?{label:e.$t("system.errors.invalidKindleEmail")}:void 0],"data-model":"crudModel.kindleEmail"},null,8,["modelValue","placeholder","auto-save","validation"])]),_:1}),(0,l.bF)(m,{class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.reviewer.formFields.reviewOn.title")),1)]),default:(0,l.k6)(()=>[e.loaded?((0,l.uX)(),(0,l.CE)("div",n,[(0,l.bF)(v,{modelValue:e.amazon,"onUpdate:modelValue":t[1]||(t[1]=t=>e.amazon=t),tkey:"modules.arcs.formFields.flags.amazon",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,disable:e.hasAmazonRestriction,"hide-bottom-space":"","data-model":"amazon"},null,8,["modelValue","auto-save","disable"]),(0,l.bF)(v,{modelValue:e.google,"onUpdate:modelValue":t[2]||(t[2]=t=>e.google=t),tkey:"modules.arcs.formFields.flags.google",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"google"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.goodreads,"onUpdate:modelValue":t[3]||(t[3]=t=>e.goodreads=t),tkey:"modules.arcs.formFields.flags.goodreads",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-sp
1ace":"","data-model":"goodreads"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.kobo,"onUpdate:modelValue":t[4]||(t[4]=t=>e.kobo=t),tkey:"modules.arcs.formFields.flags.kobo",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"kobo"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.bookbub,"onUpdate:modelValue":t[5]||(t[5]=t=>e.bookbub=t),tkey:"modules.arcs.formFields.flags.bookbub",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"bookbub"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.iTunes,"onUpdate:modelValue":t[6]||(t[6]=t=>e.iTunes=t),tkey:"modules.arcs.formFields.flags.iTunes",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"iTunes"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.barnes,"onUpdate:modelValue":t[7]||(t[7]=t=>e.barnes=t),tkey:"modules.arcs.formFields.flags.barnes",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"barnes"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.smashwords,"onUpdate:modelValue":t[8]||(t[8]=t=>e.smashwords=t),tkey:"modules.arcs.formFields.flags.smashwords",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"smashwords"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.storygraph,"onUpdate:modelValue":t[9]||(t[9]=t=>e.storygraph=t),tkey:"modules.arcs.formFields.flags.storygraph",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"storygraph"},null,8,["modelValue","auto-save"]),(0,l.bF)(v,{modelValue:e.audible,"onUpdate:modelValue":t[10]||(t[10]=t=>e.audible=t),tkey:"modules.arcs.formFields.flags.audible",class:"col-xs-12 col-sm-6","auto-save":e.onReviewSitesAutoSave,"hide-bottom-space":"","data-model":"audible"},null,8,["modelValue","auto-save"])])):(0,l.Q3)("",!0)]),_:1}),(0,l.bF)(m,{class:"column"},{title:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.arcs.filters.labels.language")),1)]),default:(0,l.k6)(()=>[e.loaded?((0,l.uX)(),(0,l.CE)("div",i,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.languageOptions,t=>((0,l.uX)(),(0,l.Wv)(v,{key:t.value,modelValue:t.selected,"onUpdate:modelValue":e=>t.selected=e,label:t.label,class:"col-xs-12 col-sm-6","auto-save":e.onReviewLanguagesAutoSave,"hide-bottom-space":"","data-model":"language.selected"},null,8,["modelValue","onUpdate:modelValue","label","auto-save"]))),128))])):(0,l.Q3)("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])}},97710(e,t,a){a.d(t,{X:()=>v});var l=a(89221),o=a(65365);const s={key:0,class:"bs-change-card"},n={class:"bs-modal__header"},i={class:"bs-h2--responsive"},r={key:0,class:"bs-credit-card-details"},d={class:"column"},u={key:2,class:"bs-modal__footer column"},c={key:2,class:"p-small"},m={key:3,class:"bs-modal__footer"};function v(e,t,a,v,p,g){const b=(0,l.g2)("q-icon"),f=(0,l.g2)("bs-btn"),h=(0,l.g2)("credit-card-entry"),k=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.Wv)(k,{ref:"subscriptionDialog",onHide:e.onDialogHide,class:"bs-modal","transition-show":"slide-up","transition-hide":"slide-down",maximized:e.$q.screen.lt.sm},{default:(0,l.k6)(()=>[e.planInfo?((0,l.uX)(),(0,l.CE)("div",s,[(0,l.Lk)("div",n,["view"===e.mode||"add"===e.mode?((0,l.uX)(),(0,l.Wv)(f,{key:0,onClick:e.cancel,flat:"","icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(b,{name:"app:arrow-left-slim",size:"1.5rem",color:"bs-g"})]),_:1},8,["onClick"])):((0,l.uX)(),(0,l.Wv)(f,{key:1,onClick:t[0]||(t[0]=t=>e.mode="view"),flat:"","icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(b,{name:"app:arrow-left-slim",size:"1.5rem",color:"bs-g"})]),_:1})),(0,l.Lk)("h2",i,(0,o.v_)(e.$t(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.labels.title`)),1),(0,l.bF)(f,{class:"bs-modal__close",color:"transparent","text-color":"bs-g",onClick:e.cancel,"icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(b,{name:"app:times-circle",size:"1rem"})]),_:1},8,["onClick"])]),(0,l.Lk)("p",null,(0,o.v_)(e.$t(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.labels.subTitle`)),1),"add"!==e.mode?((0,l.uX)(),(0,l.CE)("div",r,[(0,l.bF)(b,{name:e.iconName,size:"3.875rem"},null,8,["name"]),(0,l.Lk)("div",d,[(0,l.Lk)("span",null,[(0,l.eW)((0,o.v_)(e.$t(`modules.settings.billing.labels.cardTypes.${e.planInfo.cardType}`))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.cardLast4),1)]),(0,l.Lk)("span",null,[(0,l.eW)((0,o.v_)(e.$t("modules.settings.billing.labels.expiryDate"))+" ",1),(0,l.Lk)("strong",null,(0,o.v_)(e.planInfo.cardExpiry),1)])]),"remove"!==e.mode?((0,l.uX)(),(0,l.Wv)(f,{key:0,color:"transparent","text-color":"bs-r",onClick:t[1]||(t[1]=t=>e.mode="remove"),"icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(b,{name:"app:trash",size:".875rem"})]),_:1})):(0,l.Q3)("",!0)])):((0,l.uX)(),(0,l.Wv)(h,{key:1,ref:"creditCardEntry","plan-name":e.planName,inline:""},null,8,["plan-name"])),"remove"!==e.mode?((0,l.uX)(),(0,l.CE)("div",u,["view"===e.mode?((0,l.uX)(),(0,l.Wv)(f,{key:0,onClick:t[2]||(t[2]=t=>e.mode="add"),large:"",secondary:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.actions.addNew`)),1)]),_:1})):((0,l.uX)(),(0,l.Wv)(f,{key:1,onClick:e.addCard,large:"",secondary:"add"!==e.mode,loading:e.s
1aving},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.actions.addNew`)),1)]),_:1},8,["onClick","secondary","loading"])),e.$te(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.labels.actionNote`)?((0,l.uX)(),(0,l.CE)("p",c,(0,o.v_)(e.$t(`modules.settings.changeOrRemoveCardDialog.modes.${e.mode}.labels.actionNote`)),1)):(0,l.Q3)("",!0)])):((0,l.uX)(),(0,l.CE)("div",m,[(0,l.bF)(f,{onClick:e.cancel,large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.changeOrRemoveCardDialog.modes.remove.actions.keep")),1)]),_:1},8,["onClick"]),(0,l.bF)(f,{onClick:e.removeCard,large:"",secondary:"",warning:"",loading:e.saving},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.changeOrRemoveCardDialog.modes.remove.actions.remove")),1)]),_:1},8,["onClick","loading"])]))])):(0,l.Q3)("",!0)]),_:1},8,["onHide","maximized"])}},83629(e,t,a){a.d(t,{X:()=>h});var l=a(89221),o=a(65365);const s={class:"bs-payment-simple"},n={class:"bs-payment-simple__multi-column"},i={autocomplete:"off",autocorrect:"off"},r={key:0},d={key:0},u={class:"bs-billing-summary"},c={class:"row justify-between"},m={key:0,class:"row justify-between"},v={key:1,class:"row justify-between"},p={key:2,class:"row justify-between"},g={class:"row justify-between"},b={key:1},f={key:2};function h(e,t,a,h,k,y){const w=(0,l.g2)("stripe-element"),A=(0,l.g2)("stripe-elements"),C=(0,l.g2)("bs-select"),_=(0,l.g2)("bs-input"),E=(0,l.g2)("q-separator");return(0,l.uX)(),(0,l.CE)("div",s,[(0,l.bF)(A,{"stripe-key":e.paymentService.stripeKey,"instance-options":e.instanceOptions,"elements-options":e.elementsOptions,ref:"elms"},{default:(0,l.k6)(({elements:t})=>[(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.cardNumber")),1),(0,l.bF)(w,{type:"cardNumber",elements:t,options:e.cardNumberOptions,ref:"cardNumber"},null,8,["elements","options"])]),(0,l.Lk)("div",n,[(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.expiryDate")),1),(0,l.bF)(w,{type:"cardExpiry",elements:t,options:e.cardExpiryOptions,ref:"cardExpiry"},null,8,["elements","options"])]),(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.ccv")),1),(0,l.bF)(w,{type:"cardCvc",elements:t,options:e.cardCvcOptions,ref:"cardCvc"},null,8,["elements","options"])])])]),_:1},8,["stripe-key","instance-options","elements-options"]),(0,l.Lk)("form",i,[e.inline?((0,l.uX)(),(0,l.CE)("div",b,[(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.postcode")),1),(0,l.bF)(_,{modelValue:e.postCode,"onUpdate:modelValue":t[3]||(t[3]=t=>e.postCode=t),onInput:e.updateTaxInfo,onChange:e.updateTaxInfo,debounce:1e3,required:"","data-model":"postCode"},null,8,["modelValue","onInput","onChange"])])])):((0,l.uX)(),(0,l.CE)("div",r,[(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.country")),1),(0,l.bF)(C,{options:e.filteredCountries,modelValue:e.countryCode,"onUpdate:modelValue":t[0]||(t[0]=t=>e.countryCode=t),onInput:e.updateTaxInfo,onFilter:e.filterCountries,"input-debounce":"0","use-input":"","hide-selected":"","fill-input":"",flat:"","aria-autocomplete":"none",autocomplete:"off",autocorrect:"off","data-model":"countryCode"},null,8,["options","modelValue","onInput","onFilter"])]),(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.postcode")),1),(0,l.bF)(_,{modelValue:e.postCode,"onUpdate:modelValue":t[1]||(t[1]=t=>e.postCode=t),onInput:e.updateTaxInfo,onChange:e.updateTaxInfo,debounce:1e3,required:"","data-model":"postCode"},null,8,["modelValue","onInput","onChange"])]),e.showTaxNumber?((0,l.uX)(),(0,l.CE)("label",d,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.vat")),1),(0,l.bF)(_,{modelValue:e.taxCode,"onUpdate:modelValue":t[2]||(t[2]=t=>e.taxCode=t),onInput:e.updateTaxInfo,onChange:e.updateTaxInfo,debounce:1e3,"data-model":"taxCode"},null,8,["modelValue","onInput","onChange"])])):(0,l.Q3)("",!0),(0,l.Lk)("div",u,[(0,l.Lk)("div",c,[(0,l.Lk)("span",null,(0,o.v_)(e.$t(`modules.subscriptions.tabs.labels.${e.currentCycle}Subscription`)),1),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.planPrice),1)]),e.discountActive?((0,l.uX)(),(0,l.CE)("div",m,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.discount",[e.MODULE_CONSTANTS.SUBSCRIPTIONS.DISCOUNTS[e.currentCycle.toUpperCase()]])
1),1),(0,l.Lk)("strong",null,"-$"+(0,o.v_)(e.discountAmount),1)])):(0,l.Q3)("",!0),e.fpDiscountValid&&"year"===e.currentCycle?((0,l.uX)(),(0,l.CE)("div",v,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.freeMonth")),1),(0,l.Lk)("strong",null,"-$"+(0,o.v_)(e.fpDiscountAmount),1)])):(0,l.Q3)("",!0),e.taxPc>0||e.taxCode?((0,l.uX)(),(0,l.CE)("div",p,[(0,l.Lk)("div",null,[(0,l.eW)((0,o.v_)(e.$t("modules.subscriptions.tabs.labels.salesVatX",[e.taxName,e.taxPc]))+" ",1),e.extraTaxName?((0,l.uX)(),(0,l.CE)(l.FK,{key:0},[(0,l.eW)(" , "+(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.salesVatX",[e.extraTaxName,e.extraTaxPc])),1)],64)):(0,l.Q3)("",!0)]),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.taxAmount),1)])):(0,l.Q3)("",!0),(0,l.bF)(E),(0,l.Lk)("div",g,[(0,l.Lk)("span",null,(0,o.v_)(e.$tc("modules.subscriptions.tabs.labels.amountDue")),1),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.total),1)])])])),e.fpDiscountValid&&"month"===e.currentCycle?((0,l.uX)(),(0,l.CE)("p",f,[(0,l.Lk)("i",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.freeMonthNote",{renewalDate:e.dateAddMonths(1).toLocaleDateString()})),1)])):(0,l.Q3)("",!0)])])}},89372(e,t,a){a.d(t,{X:()=>c});var l=a(89221),o=a(65365);const s={class:"bs-delete-account-dialog"},n={class:"bs-modal__header"},i={class:"sr-only"},r={key:0,class:"row justify-center q-my-xl"},d={class:"bs-d-a-confirm"},u={class:"bs-modal__footer column"};function c(e,t,a,c,m,v){const p=(0,l.g2)("q-icon"),g=(0,l.g2)("bs-btn"),b=(0,l.g2)("bs-spinner"),f=(0,l.g2)("i18n-t"),h=(0,l.g2)("bs-input"),k=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.Wv)(k,{"model-value":e.modelValue,onHide:e.close,class:"bs-modal",maximized:e.$q.screen.xs,persistent:""},{default:(0,l.k6)(()=>[(0,l.Lk)("div",s,[(0,l.Lk)("div",n,[t[1]||(t[1]=(0,l.Lk)("span",null,null,-1)),(0,l.Lk)("h2",null,(0,o.v_)(e.$tc("modules.settings.deleteAccountDialog.title")),1),(0,l.bF)(g,{class:"bs-modal__close",color:"transparent","text-color":"bs-g",onClick:e.close,"icon-only":""},{default:(0,l.k6)(()=>[(0,l.Lk)("span",i,(0,o.v_)(e.$t("system.actions.closeDialog")),1),(0,l.bF)(p,{name:"app:times-circle",size:"1rem"})]),_:1},8,["onClick"])]),e.loading?((0,l.uX)(),(0,l.CE)("div",r,[(0,l.bF)(b)])):((0,l.uX)(),(0,l.CE)(l.FK,{key:1},[(0,l.bF)(f,{keypath:"modules.settings.deleteAccountDialog.description",tag:"p",class:"bs-d-a-copy"},{permanent:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.$tc("modules.settings.deleteAccountDialog.permanent")),1)]),cannotBeUndone:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.$tc("modules.settings.deleteAccountDialog.cannotBeUndone")),1)]),_:1}),(0,l.bF)(f,{keypath:"modules.settings.deleteAccountDialog.summaryIntro",tag:"p",class:"bs-d-a-copy"},{deleteYourAccount:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.$tc("modules.settings.deleteAccountDialog.deleteYourAccount")),1)]),_:1}),(0,l.Lk)("ul",null,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(e.filteredDeletionSummaries,t=>((0,l.uX)(),(0,l.CE)("li",{key:t.dtoTypeName},[(0,l.bF)(f,{keypath:"modules.settings.deleteAccountDialog.summaryItem"},{count:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(t.count),1)]),model:(0,l.k6)(()=>[(0,l.Lk)("strong",null,(0,o.v_)(e.getModelName(t.dtoTypeName,t.count)),1)]),_:2},1024)]))),128))]),(0,l.Lk)("label",d,[(0,l.bF)(f,{keypath:"modules.settings.deleteAccountDialog.confirmLabel",tag:"span"},{deleteWord:(0,l.k6)(()=>[...t[2]||(t[2]=[(0,l.Lk)("strong",null,"DELETE",-1)])]),_:1}),(0,l.bF)(h,{modelValue:e.confirmation,"onUpdate:modelValue":t[0]||(t[0]=t=>e.confirmation=t),disable:e.deleting,"data-model":"confirmation"},null,8,["modelValue","disable"])]),(0,l.Lk)("div",u,[(0,l.bF)(g,{onClick:e.close,disable:e.deleting,large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$tc("modules.settings.deleteAccountDialog.actions.cancel")),1)]),_:1},8,["onClick","disable"]),(0,l.bF)(g,{onClick:e.confirmDeleteAccount,disable:!e.canDelete,large:"",warning:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.deleting?e.$tc("modules.settings.deleteAccountDialog.actions.deleting"):e.$tc("modules.settings.deleteAccountDialog.actions.delete")),1)]),_:1},8,["onClick","disable"])])],64))])]),_:1},8,["model-value","onHide","maximized"])}},29794(e,t,a){a.d(t,{X:()=>C});var l=a(89221),o=a(65365);const s={class:"bs-update-tax-data"},n={class:"bs-modal__header"},i={class:"bs-h2--responsive"},r={key:0,class:"bs-payment-simple",autocomplete:"off",autocorrect:"off"},d={key:0},u={key:1,class:"full-width"},c={class:"bs-h4--mobile"},m={class:"bs-billing-summary"},v={class:"row justify-between"},p={key:0},g={key:1},b={key:0,class:"row justify-between"},f={key:1,class:"row justify-between"},h={key:0},k={class:"row justify-between"},y={key:0},w={key:1},A={class:"bs-modal__footer"};function C(e,t,a,C,_,E){const F=(0,l.g2)("q-icon"),S=(0,l.g2)("bs-btn"),x=(0,l.g2)("bs-select"),L=(0,l.g2)("bs-input"),$=(0,l.g2)("q-separator"),T=(0,l.g2)("q-dialog");return(0,l.uX)(),(0,l.Wv)(T,{ref:"subscriptionDialog",onHide:e.onDialogHide,class:"bs-modal","transition-show":"slide-up","transition-hide":"slide-down",maximized:e.$q.screen.lt.sm},{default:(0,l.k6)(()=>[(0,l.Lk)("div",s,[(0,l.Lk)("div",n,[(0,l.bF)(S,{onClick:e.cancel,flat:"","icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(F,{name:"app:arrow-left-slim",size:"1.5rem",color:"bs-g"})]),_:1},8,["onClick"]),(0,l.Lk)("h2",i,(0,o.v_)(e.$t(`modules.settings.updateTaxDataDialog.modes.${e.localizationName}.labels.title`)),1),(0,l.bF)(S,{class:"bs-modal__close",color:"transparent","text-color":"bs-g",onClick:e.cancel,"icon-only":""},{default:(0,l.k6)(()=>[(0,l.bF)(F,{name:"app:times-circle",size:"1rem"})]),_:1},8,["onClick"])]),(0,l.Lk)("p",null,(0,o.v_)(e.$t(`modules.settings.updateTaxDataDialog.modes.${e.localizationName}.labels.subTitle`)),1),e.showSummary?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.CE)("form",r,[(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.country")),1),(0,l.bF)(x,{options:e.filteredCountries,modelValue:e.countryCode,"onUpdate:modelValue":t[0]||(t[0]=t=>e.countryCode=t),onInput:e.updateTaxInfo,onFilter:e.filterCountries,"input-debounce":"0",autocomplete:"off",autocorrect:"off","use-input":"","hide-selected":"","fill-input"
1:"",flat:"","data-model":"countryCode"},null,8,["options","modelValue","onInput","onFilter"])]),(0,l.Lk)("label",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.postcode")),1),(0,l.bF)(L,{modelValue:e.postCode,"onUpdate:modelValue":t[1]||(t[1]=t=>e.postCode=t),onInput:e.updateTaxInfo,onChange:e.updateTaxInfo,debounce:500,required:"","data-model":"postCode"},null,8,["modelValue","onInput","onChange"])]),e.showTaxNumber?((0,l.uX)(),(0,l.CE)("label",d,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.paymentInfo.formFields.vat")),1),(0,l.bF)(L,{modelValue:e.taxCode,"onUpdate:modelValue":t[2]||(t[2]=t=>e.taxCode=t),onChange:e.updateTaxInfo,"data-model":"taxCode"},null,8,["modelValue","onChange"])])):(0,l.Q3)("",!0)])),e.showSummary?((0,l.uX)(),(0,l.CE)("div",u,[(0,l.Lk)("h3",c,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.newsSubscriptionAmount")),1),(0,l.Lk)("div",m,[(0,l.Lk)("div",v,[e.planName===e.MODULE_CONSTANTS.SUBSCRIPTIONS.PLANS.PUBLISHER.KEY?((0,l.uX)(),(0,l.CE)("span",p,(0,o.v_)(e.$t(`modules.subscriptions.plans.${e.planName}.shortTitle`))+" - "+(0,o.v_)(e.$t(`modules.subscriptions.tabs.labels.${e.currentCycle}Subscription`)),1)):((0,l.uX)(),(0,l.CE)("span",g,(0,o.v_)(e.$t(`modules.subscriptions.plans.${e.planName}.title`))+" - "+(0,o.v_)(e.$t(`modules.subscriptions.tabs.labels.${e.currentCycle}Subscription`)),1)),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.newPlanSummary.subtotal),1)]),e.discountActive?((0,l.uX)(),(0,l.CE)("div",b,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.discount",[e.MODULE_CONSTANTS.SUBSCRIPTIONS.DISCOUNTS[e.currentCycle.toUpperCase()]])),1),(0,l.Lk)("strong",null,"-$"+(0,o.v_)(e.discountAmount),1)])):(0,l.Q3)("",!0),e.planTaxPc>0||e.taxCode?((0,l.uX)(),(0,l.CE)("div",f,[(0,l.Lk)("div",null,[(0,l.Lk)("span",null,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.salesVatX",[e.taxName,e.planTaxPc])),1),e.extraTaxName?((0,l.uX)(),(0,l.CE)("span",h," , "+(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.salesVatX",[e.extraTaxName,e.extraTaxPc])),1)):(0,l.Q3)("",!0)]),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.planTax),1)])):(0,l.Q3)("",!0),(0,l.bF)($),(0,l.Lk)("div",k,[e.currentCycle===e.availableCycles.month?((0,l.uX)(),(0,l.CE)("span",y,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.newMonthlyAmount")),1)):e.currentCycle===e.availableCycles.year?((0,l.uX)(),(0,l.CE)("span",w,(0,o.v_)(e.$t("modules.subscriptions.tabs.labels.newAnnualAmount")),1)):(0,l.Q3)("",!0),(0,l.Lk)("strong",null,"$"+(0,o.v_)(e.planTotal),1)])])])):(0,l.Q3)("",!0),(0,l.Lk)("div",A,[e.showSummary?((0,l.uX)(),(0,l.Wv)(S,{key:1,onClick:e.confirm,large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.updateTaxDataDialog.modes.updated.actions.gotIt")),1)]),_:1},8,["onClick"])):((0,l.uX)(),(0,l.Wv)(S,{key:0,onClick:e.updateTaxInformation,disable:!e.postCode||!e.countryCode,large:""},{default:(0,l.k6)(()=>[(0,l.eW)((0,o.v_)(e.$t("modules.settings.updateTaxDataDialog.modes.none.actions.updateTaxInfo")),1)]),_:1},8,["onClick","disable"]))])])]),_:1},8,["onHide","maximized"])}},14414(e,t,a){var l=a(89221),o=a(7869),s=a(71054);const n=["change","ready","focus","blur","click","escape","loaderror","loaderstart"],i=e=>!!e&&"function"===typeof e.on,r=(0,l.pM)({name:"StripeElementComponent",props:{type:{type:String,default:void 0},elements:{type:Object,default:void 0},options:{type:Object,default:void 0}},setup(e,{emit:t}){const a=(0,o.KR)(),r=document.createElement("div"),d=(0,o.KR)(),u=(0,l.EW)(()=>e.elements?"card":"payment"),c=()=>{var t,l;d.value=(0,s.n)(e.elements,e.type||u.value,e.options),null===(t=a.value)||void 0===t||t.appendChild(r),null===(l=d.value)||void 0===l||l.mount(r)},m=()=>{if(d.value&&i(d.value))for(const e of n)d.value.on(e,a=>{t(e,a)})};return(0,l.sV)(()=>{c(),m()}),(0,l.xo)(()=>{var e,t;null===(e=d.value)||void 0===e||e.unmount(),null===(t=d.value)||void 0===t||t.destroy()}),{mountPoint:a,domElement:r,stripeElement:d,fallbackType:u,mountElement:c,handleEvents:m}},watch:{options:{deep:!0,handler(){this.options&&this.stripeElement&&"update"in this.stripeElement&&this.stripeElement.update(this.options)}}}});a.d(t,["A",0,r])},59199(e,t,a){var l=a(89221),o=a(7869),s=a(71054);const n=(0,l.pM)({name:"StripeElementsComponent",props:{stripeKey:{type:String,required:!0},instanceOptions:{type:Object,default:void 0},elementsOptions:{type:Object,default:void 0}},setup(e){const t=(0,o.KR)(),a=(0,o.KR)(),n=(0,o.KR)(!1);return(0,l.sV)(()=>{t.value=(0,s.eV)(e.stripeKey,e.instanceOptions),a.value=(0,s.Cy)(t.value,e.elementsOptions),n.value=Object.keys(a.value).length>0}),{instance:t,elements:a,elementsUsable:n}},watch:{elementsOptions:{deep:!0,handler(){var e;null===(e=this.elements)||void 0===e||e.update(this.elementsOptions)}}}});a.d(t,["A",0,n])},71054(e,t,a){const l={STRIPE_NOT_LOADED:"Stripe is not loaded. Include it as script or load using loadStripe method of @stripe/stripe-js",INSTANCE_NOT_DEFINED:"Stripe instance is not defined. Initialize Stripe before creating elements",ELEMENTS_NOT_DEFINED:"Elements object is not defined. You can't create str
1ipe element without it",ELEMENT_TYPE_NOT_DEFINED:"elementType is required. You can't create stripe element without it"},o=(e,t)=>{try{if(!window.Stripe)throw new Error(l.STRIPE_NOT_LOADED);const a=window.Stripe(e,t);return a}catch(e){console.error(e)}},s=(e,t)=>{try{if(!e)throw new Error(l.INSTANCE_NOT_DEFINED);return null===t||void 0===t||t.clientSecret,e.elements(t)}catch(e){console.error(e)}},n=(e,t,a)=>{try{if(!e)throw new Error(l.ELEMENTS_NOT_DEFINED);if(!t)throw new Error(l.ELEMENT_TYPE_NOT_DEFINED);const o=e.create.bind(e),s=o(t,a);return s}catch(e){console.error(e)}};a.d(t,["Cy",0,s,"eV",0,o,"n",0,n])},1155(e,t,a){a.d(t,{L:()=>m});var l=a(7869),o=a(89221),s=a(65732),n=a(19673),i=a(91037),r=a(74399),d=a(2655),u=a(62856),c=a(47191);function m(e){const t=(0,c.P)(),{showError:a,showMessage:m}=(0,i.b)(t),{setPageMeta:v}=(0,r.Z)({router:t.$router}),p=(0,u.c)(),g=(0,l.IG)((0,n.J)().user.service),b=(0,l.KR)(new s.Lq4),f=(0,d.N)({crudService:g,crudModel:()=>b.value,assign:e=>{b.value=e},onLoadDoc:e.onLoadDoc,isMimic:()=>p.isMimic,authenticatedUser:()=>p.authenticatedUser,onError:a});return(0,o.KC)(()=>{f.loadDoc(),void 0!==e.metaModule&&v(e.metaModule)}),Object.assign(Object.assign({},f),{reload:f.loadDoc,crudService:g,crudModel:b,urlModelName:"user",showError:a,showMessage:m,setPageMeta:v,authenticatedUser:(0,o.EW)(()=>p.authenticatedUser),mimicOrAuthenticatedUser:(0,o.EW)(()=>p.mimicOrAuthenticatedUser),isMimic:(0,o.EW)(()=>p.isMimic)})}},63323(e,t,a){a.d(t,{j:()=>i});var l=a(65732),o=a(5948),s=a(90632),n=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};function i(e){const{host:t}=e,a=(t,a)=>n(this,void 0,void 0,function*(){const l=e.paymentService.getCouponDiscount({forFp:!0,cycle:t,plan:a});return(yield l)/100}),i=(...a)=>n(this,[...a],void 0,function*(a=!1){const{subtotal:o,countryCode:s,postCode:n,taxCode:i}=e.taxDetails();if(a||e.emit("updating-tax",!0),(0,l.m88)(i)){const t=yield e.paymentService.isValidTaxNumber(i,s);if(!t)return a||e.emit("updating-tax",!1),void e.showError("Invalid Tax Number")}yield e.paymentService.calculateTaxes(o,s,n,i).then(t=>{e.applyTaxes({taxPc:t.rate,total:t.price.total,taxAmount:t.price.taxes,taxName:t.name||"Tax - None",extraTaxName:t.extraName,extraTaxPc:t.extraRate}),a||e.emit("updating-tax",!1),e.emit("form-valid",(0,l.m88)(n)&&(0,l.m88)(s))}).catch(a=>e.showError("quadernoInitError"===a?t.$tc("system.errors.quadernoInitError"):a))}),r=a=>n(this,void 0,void 0,function*(){if("succeeded"===a.status)return yield(0,s.a)().load(),void e.finished();if("requires_action"!==a.status)return;const l=yield(0,o.c)(e.paymentService.stripeKey);if(!l)return t.$q.loading.hide(),e.showError(t.$tc("system.errors.somethingWentWrong"));const{paymentIntent:n,error:i}=yield l.confirmCardPayment(a.clientSecret);i?(t.$q.loading.hide(),e.showError(i.message)):"succeeded"===(null===n||void 0===n?void 0:n.status)?(yield(0,s.a)().load(),e.finished()):(e.showError(t.$tc("system.errors.paymentProviderRequiresAdditionalAction")),t.$q.loading.hide())});return{getCouponDiscountForFp:a,updateTaxInfo:i,handleSubscriptionResponse:r}}},7991(e,t,a){a.d(t,{n:()=>m});var l=a(7869),o=a(89221),s=a(31270),n=a(58040),i=a(91037),r=a(63323),d=a(29769),u=a(47191),c=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};function m(e,t,a={}){const m=(0,u.P)(),{showError:v}=(0,i.b)(m),p=(0,l.IG)((0,s.u)().payment.service),g=(0,l.KR)(p.cycles),b=(0,l.KR)(e.selectedCycle),f=(0,l.KR)(""),h=(0,l.KR)([]),k=(0,l.KR)([]),y=(0,l.KR)(""),w=(0,l.KR)(""),A=(0,l.KR)(0),C=(0,l.KR)(""),_=(0,l.KR)(0),E=(0,l.KR)(0),F=(0,l.KR)(""),S=(0,l.KR)(0),x=(0,l.KR)(0),L=(0,d.p)({planName:()=>e.planName,currentCycle:()=>b.value,availableCycles:()=>g.value,showDiscountedPrices:()=>e.showDiscountedPrices,fpDiscountAmount:()=>x.value,taxCode:()=>w.value,countryCode:()=>f.value,countries:()=>h.value}),$=(0,o.EW)(()=>L.discountedSubtotal()),T=(0,r.j)({host:m,paymentService:p,taxDetails:()=>({subtotal:$.value,countryCode:f.value,postCode:y.value,taxCode:w.value}),showError:v,applyTaxes:e=>{A.value=e.taxPc,E.value=e.total,_.value=e.taxAmount,C.value=e.taxName,F.value=e.extraTaxName,S.value=e.extraTaxPc},emit:t,finished:()=>{var e;return null===(e=a.finished)||void 0===e?void 0:e.call(a)}}),I=(0,o.EW)(()=>x.value>0),D=(0,o.EW)(()=>!1),P=e=>{b.value=e},M=(e,t)=>{t(()=>{const t=e.toLowerCase();k.value=h.value.filter(e=>{const{label:a}=e;return a&&~a.toLowerCase().indexOf(t)})})},O=()=>c(this,void 0,void 0,function*(){x.value=yield T.getCouponDiscountForFp(b.value,e.planName)});return(0,o.sV)(()=>{h.value=L.loadCountries(),k.value=h.value,O()}),Object.assign(Object.assign({},(0,n.U)({vm:m,dialogRef:"subscriptionDialog",emit:t})),{paymentService:p,availableCycles:g,currentCycle:b,countryCode:f,countries:h,filteredCountries:k,postCode:y,taxCode:w,taxPc:A,taxName:C,taxAmount:_,total:E,extraTaxName:F,extraTaxPc:S,fpDiscountAmount:x,fpDiscountValid:I,isTestingMode:D,discountedSubtotal:$,showError:v,selectCycle:P,filterCountries:M,getCouponDiscountForFp:O,updateTaxInfo:T.updateTaxInfo,handleSubscriptionResponse:e=>T.handleSubscriptionResponse(e),plan:(0,o.EW)(()=>L.plan()),planPrice:(0,o.EW)(()=>L.planPrice()),discountActive:(0,o.EW)(()=>L.discountActive()),discountAmount:(0,o.EW)(()=>L.discountAmount()),showTaxNumber:(0,o.EW)(()=>L.showTaxNumber())})}},29769(e,t,a){a.d(t,{p:()=>r});var l=a(65732),o=a(70819);const{getCodeList:s,overwrite:n}=a(57955);n([{code:"gb",name:"United Kingdom"},{code:"cz",name:"Czech Republic"}
1,{code:"md",name:"Moldova"},{code:"nl",name:"Netherlands"},{code:"ru",name:"Russia"},{code:"tr",name:"Turkey"},{code:"va",name:"Vatican City"}]);const i=["Albania","Andorra","Armenia","Austria","Azerbaijan","Belarus","Belgium","Bosnia and Herzegovina","Bulgaria","Croatia","Cyprus","Czech Republic","Denmark","Estonia","Finland","France","Georgia","Germany","Greece","Hungary","Iceland","Ireland","Italy","Kosovo","Latvia","Liechtenstein","Lithuania","Luxembourg","North Macedonia","Malta","Moldova","Monaco","Montenegro","Netherlands","Norway","Poland","Portugal","Romania","Russia","San Marino","Serbia","Slovakia","Slovenia","Spain","Sweden","Switzerland","Turkey","Ukraine","United Kingdom","Vatican City"];function r(e){const t=l.jGy.SUBSCRIPTIONS,a=()=>{const e=s();return Object.keys(e).map(t=>new o.mU(t,e[t])).sort((e,t)=>e.label+""<t.label+""?-1:e.label+"">t.label+""?1:0)},n=()=>{const t=e.countries().find(t=>t.value===e.countryCode());return(0,l.m88)(e.taxCode())||i.some(e=>e===(null===t||void 0===t?void 0:t.label))},r=()=>{switch(e.planName()){case t.PLANS.GROWING.KEY:return t.PLANS.GROWING;case t.PLANS.PRO.KEY:return t.PLANS.PRO;case t.PLANS.BEST_SELLER.KEY:return t.PLANS.BEST_SELLER;case t.PLANS.PUBLISHER.KEY:return t.PLANS.PUBLISHER;default:return t.PLANS.GROWING}},d=()=>e.currentCycle()===e.availableCycles().year?r().PRICES.YEAR:r().PRICES.MONTH,u=()=>!!e.showDiscountedPrices()||(0,l.NqL)()<(0,l.NqL)(t.DISCOUNTS.END_DATE)&&(0,l.m88)(e.currentCycle()),c=()=>{if(u()){const a=parseInt(t.DISCOUNTS[e.currentCycle().toUpperCase()]),o=(0,l.t64)(d()*(a/100),2),s=o.toString().split(".")[1];return void 0!==s&&s.length<2?o.toString()+"0":o}return 0},m=()=>{const t="year"===e.currentCycle()?e.fpDiscountAmount():0;return d()-parseFloat(c().toString())-t};return{loadCountries:a,showTaxNumber:n,plan:r,planPrice:d,discountActive:u,discountAmount:c,discountedSubtotal:m}}},31831(e,t,a){var l=a(89221),o=a(7869),s=a(25508),n=a(65732),i=a(96098),r=a(60489),d=a(1155),u=a(47191),c=a(90632),m=a(1269),v=a(75433),p=a(71391),g=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const b=(0,l.pM)({name:"AccountSettings",components:{DeleteAccountDialog:m.A},setup(){const e=n.jGy.USER.EMAILS,t=(0,u.P)(),{validEmail:a}=(0,r.d)(p.Tl),l=(0,d.L)({metaModule:"accountSettings",onLoadDoc:()=>{y.value=F(),E.value=l.crudModel.value.image}}),m="TERMLY_API_CACHE",b=(0,o.KR)(!1),f=(0,o.KR)(""),h=(0,o.KR)(""),k=(0,o.KR)(""),y=(0,o.KR)(!1),w=(0,o.KR)(!1),A=(0,o.KR)(""),C=(0,o.KR)(!1),_=(0,o.KR)(!1),E=(0,o.KR)(""),F=()=>{var e;return 0===(null===(e=l.crudModel.value.termsConsentRevokedDate)||void 0===e?void 0:e.getTime())},S=e=>{if(e.xhr.response){const t=JSON.parse(e.xhr.response);void 0!==t.model&&(0,c.a)().setUser(t.model),l.crudModel.value.image=void 0!==t.model?t.model.image:t.fileName,E.value=l.crudModel.value.image}},x=()=>(l.crudService.cleanFiles(l.crudModel.value.image),l.crudModel.value.image="",E.value="",l.save()),L=()=>{if(a(A.value))return t.$q.loading.show(),l.crudService.addNewEmailAddress(A.value).then(e=>{l.assignLoadedDoc(e)}).catch(e=>{l.showError(e.message),l.reload()}).finally(()=>{A.value="",w.value=!1,t.$q.loading.hide()});l.showError(t.$t("system.errors.invalidEmail"))},$=e=>{t.$q.dialog({component:t.$bs.confirmDialog,componentProps:{heading:t.$t("modules.settings.labels.confirmEmailRemoval",[e]),noText:t.$tc("system.actions.cancel"),yesText:t.$tc("system.actions.confirm")}}).onOk(()=>(t.$q.loading.show(),l.crudService.removeEmailAddress(e).then(e=>{l.assignLoadedDoc(e),t.$q.loading.hide()}).catch(e=>{l.showError(e.message),t.$q.loading.hide(),l.reload()})))},T=e=>g(this,void 0,void 0,function*(){yield(0,c.a)().resendEmailVerificationEmail(e,t.$route.query.forward||localStorage.getItem(i.E8)).then(()=>{l.showMessage((0,p.Tl)("modules.settings.labels.verificationEmailSent",[e]))}).catch(e=>{l.showError((null===e||void 0===e?void 0:e.message)?(0,p.Tl)("system.errors.somethingWentWrongWithParams",void 0,{message:e.message}):(0,p.Tl)("system.errors.somethingWentWrong")),l.reload()})}),I=a=>a.status===e.STATUS.UNVERIFIED?l.showError(t.$t("modules.settings.labels.unverifiedDefault")):l.crudService.makeDefaultEmailAddress(a.emailAddress).then(e=>{l.assignLoadedDoc(e),l.showMessage((0,p.Tl)("modules.settings.labels.defaultEmailUpdated",[a.emailAddress]))}).catch(()=>{l.showError((0,p.Tl)("system.errors.somethingWentWrong")),l.reload()}),D=()=>{const e=(0,n.m88)(f.value),a=(0,n.m88)(h.value);if(e||a){const e=(0,n.Fth)(h.value);if(null!==e)return void l.showError(t.$t(`system.errors.${e}`));h.value===k.value&&(0,c.a)().userResetPassword(f.value,h.value).then(()=>(0,c.a)().request({emailAddress:l.crudModel.value.emailAddress,password:h.value}).then(()=>{l.showMessage((0,p.Tl)("modules.settings.labels.passwordUpdated"))}).catch(e=>{l.showError(e.message)})).catch(e=>{l.showError(e.message),l.reload()})}},P=()=>{"function"!==typeof window.displayPreferenceModal?(s.A.has(m)&&s.A.remove(m),location.reload()):window.displayPreferenceModal()},M=()=>{y.value||(C.value=!0)},O=()=>{y.value=F(),C.value=!1},N=()=>l.crudService.withdrawContent().then(()=>
1(0,c.a)().logoutRequest().then(()=>{t.$router.push("/login"),l.showMessage((0,p.Tl)("modules.settings.labels.consentWithdrawn"))}).catch(e=>{l.showError(e.message)})).catch(e=>{l.showError(e.message)}),R=()=>g(this,void 0,void 0,function*(){try{yield(0,c.a)().logoutRequest()}catch(e){}t.$router.push("/login")}),V=()=>{t.$q.dialog({component:v.A,componentProps:{contentId:"ed5225d0-5312-46f0-a5ea-5fe6c3b369f2"}})},U=()=>{t.$q.dialog({component:v.A,componentProps:{contentId:"ceeb0a47-5700-4b91-b066-a1067d4e2eff"}})};return Object.assign(Object.assign(Object.assign({},l),(0,r.d)(p.Tl)),{MODULE_CONSTANTS:n.jGy,getPasswordLengthErrorKey:n.Fth,termlyStorageKey:m,changePasswordDialogVisible:b,oldPassword:f,newPassword:h,confirmNewPassword:k,giveConsent:y,addingNewEmail:w,newEmail:A,showWithdrawConsent:C,showDeleteAccount:_,profileImage:E,userEmail:"userEmail",handlePictureUploaded:S,handlePictureRemoval:x,onAddNewEmailAddress:L,onRemoveEmailAddress:$,onResendVerificationClick:T,onMakeDefaultEmailAddress:I,onUpdatePassword:D,showTermly:P,onGiveConsentChanged:M,onCancelWithdrawConsent:O,onWithdrawConsent:N,onDeleteAccountDeleted:R,openTermsAndConditions:V,openPrivacyPolicy:U})}});a.d(t,["A",0,b])},42451(e,t,a){var l=a(89221),o=a(7869),s=a(65732),n=a(1155),i=a(71391),r=a(47191),d=a(90632);const u=(0,l.pM)({name:"AuthorSettings",setup(){const e=(0,r.P)(),t=(0,o.KR)(""),a=(0,o.KR)(!1),u=(0,n.L)({metaModule:"authorSettings",onLoadDoc:()=>{t.value=u.crudModel.value.hasActingAs||""}}),c=(0,l.EW)(()=>["build","master"].includes("testing")),m=()=>u.crudService.addVirtualAssistant(t.value).then(e=>{u.showMessage((0,i.Tl)("modules.settings.author.vaAdded")),u.assignLoadedDoc(e)}).catch(e=>{u.showError(e.message),u.reload()}),v=()=>u.crudService.removeVirtualAssistant(t.value).then(e=>{u.showMessage((0,i.Tl)("modules.settings.author.vaRemoved")),u.assignLoadedDoc(e)}).catch(e=>{u.showError(e.message),u.reload()}),p=()=>{a.value=!a.value},g=()=>(e.$q.loading.show(),u.crudService.addAuthorRoleToUser().then(t=>(e.$q.loading.hide(),(0,d.a)().setUser(t),a.value=!1,u.assignLoadedDoc(t),document.location.reload())).catch(t=>{e.$q.loading.hide(),u.showError(t.message),u.reload()}));return Object.assign(Object.assign({},u),{MODULE_CONSTANTS:s.jGy,vaEmailAddress:t,showAddAuthorFeatures:a,shouldDisableHtmlValidation:c,saveVirtualAssistant:m,removeVirtualAssistant:v,onShowAddAuthorFeatures:p,onAddAuthorFeatures:g})}});a.d(t,["A",0,u])},85075(e,t,a){var l=a(89221),o=a(7869),s=a(65732),n=a(60489),i=a(1155),r=a(47191),d=a(90632),u=a(33067),c=a(19673),m=a(31270),v=a(11080),p=a(35297),g=a(71391),b=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const f={growing:"Growing Author",pro:"Pro Author",bestSelling:"Bestselling Author",publisher:"Publisher and ARC Services","":"None"},h=(0,l.pM)({name:"BillingSettings",setup(){const e=s.jGy.SUBSCRIPTIONS,t=(0,r.P)(),a=(0,i.L)({metaModule:"billingSettings"}),{formatDate:h,minusSubDiscountNoDate:k}=(0,n.d)(g.Tl),y=(0,o.IG)((0,m.u)().payment.service),w=(0,o.IG)((0,c.J)().user.service),A=(0,o.IG)((0,u.i)().link()),C=(0,o.KR)(void 0),_=(0,o.KR)(!1),E=(0,o.KR)(!1),F=(0,o.KR)([]),S=(0,o.KR)(!1),x=(0,o.KR)(1),L=(0,o.KR)(1),$=(0,o.KR)({1:void 0}),T=(0,o.KR)({}),I=(0,o.KR)({}),D=10,P=(0,l.EW)(()=>{var e;return null===(e=I.value[x.value])||void 0===e||e}),M=(0,l.EW)(()=>{var e,t,a;return"issuer_declined"===(null===(a=null===(t=null===(e=C.value)||void 0===e?void 0:e.invoices)||void 0===t?void 0:t[0])||void 0===a?void 0:a.paymentFailedType)||!1}),O=(0,l.EW)(()=>{var e,t;return P.value||x.value!==L.value?L.value*D:(L.value-1)*D+((null===(t=null===(e=C.value)||void 0===e?void 0:e.invoices)||void 0===t?void 0:t.length)||0)}),N=(0,l.EW)(()=>f[a.mimicOrAuthenticatedUser.value.authorRole+""]),R=e=>{const t=(0,s.LI4)(-14);return!!e.paidOn&&("issuer_declined"===e.paymentFailedType&&new Date(e.paidOn)>t)},V=e=>{const t=F.value.indexOf(e.downloadLink);t>-1?F.value.splice(t,1):F.value.push(e.downloadLink)},U=()=>{x.value=1,L.value=1,$.value={1:void 0},T.value={},I.value={},C.value.invoices=[]},W=e=>b(this,void 0,void 0,function*(){if(S.value)return;if(e<1)return;const t=T.value[e];if(t){x.value=e,C.value.invoices=t;const a=e+(I.value[e]?1:0);return void(L.value=Math.max(L.value,a))}const l=$.value[e];if(!(e>1&&void 0===l)){S.value=!0;try{const t=yield y.getInvoices({limit:D,startingAfter:l});x.value=e,C.value.invoices=t.invoices||[],T.value[e]=C.value.invoices,I.value[e]=t.hasMore,$.value[e+1]=t.nextStartingAfter;const a=e+(t.hasMore?1:0);L.value=Math.max(L.value,a)}catch(e){a.showError(e.message)}finally{S.value=!1}}}),X=e=>{W(e.pageNumber)},q=()=>b(this,void 0,void 0,function*(){return _.value=!1,w.getById(a.mimicOrAuthenticatedUser.value.id).then(t=>b(this,void 0,void 0,function*(){return yield(0,d.a)().setUser(t),E.value=(null===t||void 0===t?void 0:t.forceLoyaltyDiscountView)||!1,y.getPlanInfo({skipInvoices:!0}).then(t=>b(this,void 0,void 0,function*(){C.value=t,U(),C.value.discountPcApplied=t.discountPcApplied||(E.value?"year"===t.cycle?e.DISCOUNTS.YEAR:e.DISCOUNTS.MONTH:0),yield W(1),_.value=!0})).catch(e=>{a.showError(e.message),_.value=!0})}
1)).catch(e=>{a.showError(e.message),_.value=!0})}),K=()=>{t.$q.dialog({component:v.A}).onOk(()=>{q()})},Q=()=>new Promise(e=>{t.$q.dialog({component:v.A,componentProps:{forceMode:"add"}}).onOk(()=>{e({})})}),j=()=>Q().then(()=>{q()}).catch(e=>{a.showError(e.message)}),B=()=>{t.$q.dialog({component:p.A,componentProps:{userCountryCode:C.value.taxCountryCode,userTaxCode:C.value.taxCode,userPostCode:C.value.postalCode,planName:C.value.plan,selectedCycle:C.value.cycle}}).onOk(()=>{q()})},G=e=>{if("change"===e&&!C.value.taxCountry)return void B();const l="change"===e?A.adminLink("settings","billing","select-plan",C.value.plan,C.value.cycle):A.adminLink("settings","billing","select-plan"),o=(C.value.discountPcApplied||0)>0||E.value?"?showDiscountedPrices=true":"";(0,s.m88)(C.value.cardLast4)||!(0,s.m88)(C.value.stripeSubscriptionId)?t.$router.push(l+o):(0,s.m88)(C.value.cardLast4)||Q().then(()=>{t.$router.push(l+o)}).catch(e=>{a.showError(e.message)})},z=e=>{var t;return!((null===(t=C.value.invoices||[])||void 0===t?void 0:t.length)<=1)&&(R(e)&&!C.value.lastFailedPaymentId)},Y=e=>{t.$q.dialog({component:t.$bs.confirmDialog,componentProps:{heading:t.$t("modules.settings.billing.labels.confirmLimitRetryPayment"),bodyHtml:t.$t("modules.settings.billing.labels.limitRetryPayment"),noText:t.$tc("system.actions.cancel"),yesText:t.$tc("system.actions.confirm")}}).onOk(()=>y.retryPayment({invoiceId:e.id}).then(e=>{C.value=e,U(),W(1)}).catch(e=>{a.showError(e.message)}))},H=(e,t=!1)=>{if("function"===typeof window.Beacon&&"object"===typeof window.Beacon("info")){const{isOpened:e}=window.Beacon("info").status;window.Beacon(e?"close":"open"),t&&window.Beacon("navigate","/ask/message/")}
1else window.open("https://help.booksprout.co/collection/124-author-support")},J=()=>(_.value=!1,y.reactivateCurrentPlan().then(()=>{q()}).catch(e=>{a.showError(e.message),_.value=!0}));return(0,l.sV)(()=>b(this,void 0,void 0,function*(){t.$q.loading.show();try{yield q(),t.$q.loading.hide()}catch(e){a.showError(e.message),t.$q.loading.hide()}})),Object.assign(Object.assign({},a),{MODULE_CONSTANTS:s.jGy,linkService:A,paymentService:y,userService:w,formatDate:h,minusSubDiscountNoDate:k,planInfo:C,loaded:_,forceLoyaltyDiscount:E,isShowing:F,invoicesLoading:S,currentInvoicePage:x,knownInvoicePages:L,invoicePageCursors:$,invoicePagesCache:T,invoicePageHasMore:I,invoicesPageSize:D,hasMoreInvoices:P,hasFailedPayment:M,invoiceTotalRows:O,planName:N,paymentFailedWithinTwoWeeks:R,toggleInvoiceSection:V,resetInvoicesPagination:U,loadInvoicesPage:W,paginateInvoices:X,setupForm:q,changeCard:K,addCardPromise:Q,addCard:j,updateTaxData:B,handleChoosePlan:G,canRetryFailedPayment:z,retryFailedPayment:Y,openHelpscout:H,reactivatePlan:J})}});a.d(t,["A",0,h])},89914(e,t,a){var l=a(89221),o=a(7869),s=a(25508),n=a(1155),i=a(90632),r=a(1031),d=a(60685),u=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const c=(0,l.pM)({name:"CategoriesSettings",components:{LinkedCategoriesTree:d.A},setup(){const e=(0,n.L)({metaModule:"categoriesSettings"}),t=(0,o.IG)((0,r.e)().category.service),a=(0,o.KR)([]),d=(0,o.KR)([]),c=(0,o.KR)([]),m=(0,o.KR)([]),v=()=>u(this,void 0,void 0,function*(){if(!(a.value.length>0))return t.get().then(e=>a.value=e.filter(e=>!e.parentCategoryId)).catch(t=>{e.showError(t.message)})}),p=e=>{try{const t=JSON.parse(e||"{}");return null!==t&&"object"===typeof t?t:{}}catch(e){return{}}},g=()=>{var t,a;if(null===(t=e.authenticatedUser.value)||void 0===t?void 0:t.id){const t=p(null===(a=e.authenticatedUser.value.preferences)||void 0===a?void 0:a.findArcFilters);t.ci=d.value,e.crudService.update({id:e.authenticatedUser.value.id,preferences:Object.assign(Object.assign({},e.authenticatedUser.value.preferences),{findArcFilters:JSON.stringify(t)})}).then(e=>{(0,i.a)().setUser(e)}),s.A.remove("userSelectedArcFilters")}},b=e=>{d.value=e,g()},f=(e,t)=>{t?c.value.push(e):c.value=c.value.filter(t=>t!==e)};return(0,l.KC)(()=>{var t,a;if(v(),null===(a=null===(t=e.authenticatedUser.value)||void 0===t?void 0:t.preferences)||void 0===a?void 0:a.findArcFilters){const t=p(e.authenticatedUser.value.preferences.findArcFilters);Object.prototype.hasOwnProperty.call(t,"ci")&&(d.value=t.ci)}}),Object.assign(Object.assign({},e),{categoryService:t,newFormatCategories:a,categoryIds:d,expandedFilters:c,userSelectedCategories:m,loadNewFormatCategoryOptions:v,syncUserSelectedCategories:g,onCategoryIdsChanged:b,toggleExpandedFilters:f})}});a.d(t,["A",0,c])},59638(e,t,a){var l=a(89221),o=a(1155);const s=(0,l.pM)({name:"EmailSettings",setup(){return Object.assign({},(0,o.L)({metaModule:"emailSettings"}))}});a.d(t,["A",0,s])},5561(e,t,a){var l=a(89221),o=a(7869),s=a(10781),n=a(90632),i=a(98568),r=a(74399),d=a(62856),u=a(25438),c=a(47191),m=a(71391);const v={icon:"",title:"",to:""},p=(0,l.pM)({name:"SettingsIndex",setup(){var e;const t=(0,c.P)(),a=(0,d.c)(),{navigateToOtherApp:p}=(0,i.Y)({route:t.$route,router:t.$router,isMobileApp:(0,u.U)(t).isMobileApp()}),{setPageMeta:g}=(0,r.Z)({router:t.$router}),b=(0,s.z7)(),f=(0,o.KR)(!1),h=(0,o.KR)(Object.assign({},v)),k=(0,l.EW)(()=>{const e=[{title:(0,m.Tl)("modules.settings.account.title"),icon:"app:teams",to:"/settings/account",model:""},{title:(0,m.Tl)("modules.settings.email.title"),icon:"app:notifications-no-unread",to:"/settings/email",model:""},{title:(0,m.Tl)("modules.settings.author.title"),icon:"app:pen-names-alt-no-unread",to:"/settings/author",model:""},{title:(0,m.Tl)("modules.settings.billing.title"),icon:"app:billing",to:"/settings/billing",model:"billing",requiresAuthorApp:!0}];return b&&(e.splice(1,0,{title:(0,m.Tl)("modules.settings.reviewer.title"),icon:"app:reviewer",to:"/settings/reviewer",model:""}),e.splice(2,0,{title:(0,m.Tl)("modules.settings.categories.title"),icon:"app:categories",to:"/settings/categories",model:""})),e}),y=(0,l.EW)(()=>k.value.find(e=>e.to===h.value.to)||h.value),w=e=>t.$router.currentRoute.value.path.indexOf(e.to)>-1,A=e=>{h.value=e,e.requiresAuthorApp&&b?p("publisher"+e.to):t.$router.push(e.to)},C=()=>{(0,n.a)().mimic(null)};return g("settings"),h.value=null!==(e=k.value.find(e=>t.$router.currentRoute.value.path.indexOf(e.to)>-1))&&void 0!==e?e:Object.assign({},v),Object.assign(Object.assign({},a),{isReviewerApp:b,mobileMenuVisible:f,settingPanels:k,activeSettingPanel:h,currentActiveSettingPanel:y,isActivePanel:w,navigateTo:A,onStopMimicClick:C})}});a.d(t,["A",0,p])},52979(e,t,a){var l=a(89221),o=a(7869),s=a(65732),n=a(1155),i=a(47191),r=a(30562),d=a(19673),u=function(e,t,a,l){function o(e){return e instanceof a?e:ne
1w a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const c=(0,l.pM)({name:"ReviewerSettings",setup(){const e=s.jGy.ARCS.REVIEWS.FLAGS,t=s.jGy.BOOKS.LANGUAGE_FLAGS.FLAGS,a=(0,i.P)(),l=(0,o.IG)((0,r.O)().arc.service),c=(0,o.IG)((0,d.J)().user.service),m=(0,o.KR)(!1),v=(0,o.KR)(!1),p=(0,o.KR)(!1),g=(0,o.KR)(!1),b=(0,o.KR)(!1),f=(0,o.KR)(!1),h=(0,o.KR)(!1),k=(0,o.KR)(!1),y=(0,o.KR)(!1),w=(0,o.KR)(!1),A=(0,o.KR)(!1),C=(0,o.KR)(!1),_=(0,o.KR)([]),E=()=>[{label:a.$tc("modules.books.labels.languageNames.english"),value:t.ENGLISH},{label:a.$tc("modules.books.labels.languageNames.spanish"),value:t.SPANISH},{label:a.$tc("modules.books.labels.languageNames.german"),value:t.GERMAN},{label:a.$tc("modules.books.labels.languageNames.french"),value:t.FRENCH},{label:a.$tc("modules.books.labels.languageNames.italian"),value:t.ITALIAN},{label:a.$tc("modules.books.labels.languageNames.portuguese"),value:t.PORTUGUESE},{label:a.$tc("modules.books.labels.languageNames.other"),value:t.OTHER}],F=()=>_.value.filter(e=>e.selected).map(e=>e.value),S=()=>{var e;const t=l.getLanguagesFromFlags((null===(e=x.crudModel.value.preferences)||void 0===e?void 0:e.reviewLanguagesFlag)||0);_.value=E().map(e=>Object.assign(Object.assign({},e),{selected:t.includes(e.value)}))},x=(0,n.L)({metaModule:"reviewerSettings",onLoadDoc:()=>u(this,void 0,void 0,function*(){var t;(null===(t=x.mimicOrAuthenticatedUser.value)||void 0===t?void 0:t.id)&&(C.value=yield c.getHasAmazonRestriction(x.mimicOrAuthenticatedUser.value.id));const a=x.crudModel.value.preferences;a&&(v.value=!C.value&&!!(a.reviewSitesFlag&e.AMAZON),p.value=!!(a.reviewSitesFlag&e.GOOGLE),g.value=!!(a.reviewSitesFlag&e.GOOD_READS),b.value=!!(a.reviewSitesFlag&e.KOBO),f.value=!!(a.reviewSitesFlag&e.BOOK_BUB),h.value=!!(a.reviewSitesFlag&e.ITUNES),k.value=!!(a.reviewSitesFlag&e.BARNES),y.value=!!(a.reviewSitesFlag&e.SMASH_WORDS),w.value=!!(a.reviewSitesFlag&e.STORY_GRAPH),A.value=!!(a.reviewSitesFlag&e.AUDIBLE)),S(),m.value=!0})}),L=()=>{C.value&&v.value&&(v.value=!1);let t=0;return v.value&&(t|=e.AMAZON),p.value&&(t|=e.GOOGLE|e.AUDIO_GOOGLE),g.value&&(t|=e.GOOD_READS|e.AUDIO_GOODREADS),b.value&&(t|=e.KOBO|e.AUDIO_KOBO),f.value&&(t|=e.BOOK_BUB|e.AUDIO_BOOK_BUB),h.value&&(t|=e.ITUNES|e.AUDIO_ITUNES),k.value&&(t|=e.BARNES|e.AUDIO_BARNES),y.value&&(t|=e.SMASH_WORDS),w.value&&(t|=e.STORY_GRAPH|e.AUDIO_STORY_GRAPH),A.value&&(t|=e.AUDIBLE),x.crudModel.value.preferences&&(x.crudModel.value.preferences.reviewSitesFlag=t),x.autoSave()},$=()=>u(this,void 0,void 0,function*(){return x.crudModel.value.preferences?(x.crudModel.value.preferences.reviewLanguagesFlag=l.getLanguageFlags(F()),x.autoSave()):Promise.resolve(void 0)});return Object.assign(Object.assign({},x),{MODULE_CONSTANTS:s.jGy,arcService:l,userService:c,loaded:m,amazon:v,google:p,goodreads:g,kobo:b,bookbub:f,iTunes:h,barnes:k,smashwords:y,storygraph:w,audible:A,hasAmazonRestriction:C,languageOptions:_,onReviewSitesAutoSave:L,onReviewLanguagesAutoSave:$})}});a.d(t,["A",0,c])},539(e,t,a){var l=a(89221),o=a(7869),s=a(7991),n=a(47191),i=a(71264),r=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const d=(0,l.pM)({name:"ChangeCreditCard",emits:["hide","ok"],components:{CreditCardEntry:i.A},props:{planName:{type:String,default:""},selectedCycle:{type:String,default:""},showDiscountedPrices:{type:Boolean,default:!1},forceMode:{type:String,default:void 0}},setup(e,{emit:t}){const a=(0,n.P)(),i=(0,s.n)(e,t),d=(0,o.KR)(),u=(0,o.KR)(e.forceMode||"view"),c=(0,l.EW)(()=>{var e;switch(null===(e=d.value)||void 0===e?void 0:e.cardType){case"visa":return"app:visa";case"mastercard":return"app:mastercard";case"amex":return"app:american-express";case"discover":return"app:discover";case"jcb":return"img:/cdn/jcb.png";default:return"app:visa"}}),m=(0,o.KR)(!1),v=()=>m.value?Promise.resolve():(m.value=!0,a.$q.loading.show(),i.paymentService.removeCreditCard().then(()=>{i.confirm()}).catch(e=>{i.showError(e.message)}).finally(()=>{m.value=!1,a.$q.loading.hide()})),p=()=>r(this,void 0,void 0,function*(){if(!m.value){m.value=!0;try{a.$q.loading.show();const e=a.$refs.creditCardEntry;if(!e.validate())return void a.$q.loading.hide();const t=yield e.getToken();if(!t)return void a.$q.loading.hide();yield i.paymentService.addCreditCard(t).then(()=>{i.confirm()}).catch(e=>{i.showError(e.message)}).finally(()=>a.$q.loading.hide())}finally{m.value=!1}}});return(0,l.sV)(()=>{a.$q.loading.show(),i.paymentService.getPlanInfo({skipInvoices:!0}).then(e=>{d.value=e}).catch(e=>{i.showError(e.message)}).finally(()=>a.$q.loading.hide())}),Object.assign(Object.assign({},i),{planInfo:d,mode:u,saving:m,iconName:c,removeCard:v,addCard:p})}});a.d(t,["A",0,d])},98155(e,t,a){var l=a(89221),o=a(65732),s=a(7991),n=a(47191),i=a(62856),r=a(28116),d=a(18949),u=function(e,t,a,l){function o(e){return e instanceof a?e:ne
1w a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const c={style:{base:{backgroundColor:"#F6F8FB",color:"black",fontWeight:"400",fontFamily:"Open Sans",fontSize:"15px",fontSmoothing:"antialiased",lineHeight:"20px",padding:"15px",":-webkit-autofill":{color:"#F6F8FB"},"::placeholder":{color:"#B4B4B4"}},invalid:{backgroundColor:"#FFE0D8",color:"#E1653F"}}},m=(0,l.pM)({name:"CreditCardEntry",components:{StripeElements:r.A,StripeElement:d.A},methods:{dateAddMonths:o.JlW},props:{planName:{type:String,default:""},selectedCycle:{type:String,default:""},showDiscountedPrices:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},setup(e,{emit:t}){const a=(0,n.P)(),l=(0,s.n)(e,t),r=(0,i.c)(),d=()=>!0,m={"[email protected]":"tok_chargeDeclined","[email protected]":"tok_threeDSecure2Required"},v=()=>{var e;const t=(null===(e=r.mimicOrAuthenticatedUser)||void 0===e?void 0:e.emailAddress)||"";return m[t]||"tok_visa"},p=()=>u(this,void 0,void 0,function*(){if(l.isTestingMode.value)return{token:v(),taxCode:"",taxName:"Tax - None",extraTaxName:null,card:{id:"card_1QrgpEFeaQNDDEj5R6GOKtBl",last4:"4242",brand:"Visa",expMonth:12,expYear:2040,country:"US"},amount:{total:9,rate:0,extraRate:null,taxes:0,subtotal:9,taxCountryCode:"af"},address:{postalCode:"test"}};const e=a.$refs.elms,t=a.$refs.cardNumber,o=t.stripeElement;return yield l.updateTaxInfo(!0),e.instance.createToken(o).then(e=>{if(!e.error)return{token:e.token.id,taxCode:l.taxCode.value,taxName:l.taxName.value,extraTaxName:l.extraTaxName.value,card:{id:e.token.card.id,last4:e.token.card.last4,brand:e.token.card.brand,expMonth:e.token.card.exp_month,expYear:e.token.card.exp_year,country:e.token.card.country},amount:{total:l.total.value,rate:l.taxPc.value,extraRate:l.extraTaxPc.value,taxes:l.taxAmount.value,subtotal:l.discountedSubtotal.value,taxCountryCode:l.countryCode.value},address:{postalCode:l.postCode.value}};l.showError(e.error.message)}).catch(e=>{l.showError(e.message)})});return Object.assign(Object.assign({},l),{MODULE_CONSTANTS:o.jGy,instanceOptions:{},elementsOptions:{},stripeStyle:c,cardNumberOptions:Object.assign({value:{cardNumber:""}},c),cardCvcOptions:Object.assign({value:{cardCvc:""}},c),cardExpiryOptions:Object.assign({value:{cardExpiry:""}},c),validate:d,getToken:p})}});a.d(t,["A",0,m])},92646(e,t,a){var l=a(89221),o=a(7869),s=a(91037),n=a(47191),i=a(19673),r=function(e,t,a,l){function o(e){return e instanceof a?e:new a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const d=(0,l.pM)({name:"DeleteAccountDialog",emits:["update:modelValue","deleted"],props:{modelValue:{type:Boolean,default:!1}},setup(e,{emit:t}){const a=(0,n.P)(),{showError:d}=(0,s.b)(a),u=(0,o.IG)((0,i.J)().user.service),c=(0,o.KR)([]),m=(0,o.KR)(""),v=(0,o.KR)(!1),p=(0,o.KR)(!1),g=(0,l.EW)(()=>c.value.filter(e=>"UserDto"!==e.dtoTypeName)),b=(0,l.EW)(()=>"DELETE"===m.value&&!v.value&&!p.value),f=(e,t=1)=>a.$tc("system.labels.models."+e,t),h=()=>{p.value||t("update:modelValue",!1)},k=()=>r(this,void 0,void 0,function*(){v.value=!0,m.value="";try{c.value=yield u.checkDeleteMyAccount()}catch(e){d(e.message),h()}finally{v.value=!1}}),y=()=>r(this,void 0,void 0,function*(){if(b.value){p.value=!0;try{yield u.deleteMyAccount(m.value),t("deleted")}catch(e){d(e.message),p.value=!1}}});return(0,l.wB)(()=>e.modelValue,e=>{e?k():m.value=""}),(0,l.sV)(()=>{e.modelValue&&k()}),{userService:u,deletionSummaries:c,confirmation:m,loading:v,deleting:p,filteredDeletionSummaries:g,canDelete:b,getModelName:f,close:h,loadDeletionSummary:k,confirmDeleteAccount:y}}});a.d(t,["A",0,d])},21346(e,t,a){var l=a(89221),o=a(7869),s=a(65732),n=a(90632),i=a(7991),r=a(47191),d=function(e,t,a,l){function o(e){return e instanceof a?e:ne
1w a(function(t){t(e)})}return new(a||(a=Promise))(function(a,s){function n(e){try{r(l.next(e))}catch(e){s(e)}}function i(e){try{r(l["throw"](e))}catch(e){s(e)}}function r(e){e.done?a(e.value):o(e.value).then(n,i)}r((l=l.apply(e,t||[])).next())})};const u=(0,l.pM)({name:"UpdateTaxDataDialog",emits:["hide","ok"],props:{planName:{type:String,default:""},selectedCycle:{type:String,default:""},showDiscountedPrices:{type:Boolean,default:!1},userCountryCode:{type:String,default:""},userTaxCode:{type:String,default:""},userPostCode:{type:String,default:""}},setup(e,{emit:t}){const a=(0,r.P)(),u=(0,i.n)(e,t),c=(0,o.IG)((0,n.a)()),m=(0,o.KR)(!1),v=(0,o.KR)(),p=(0,o.KR)(0),g=(0,o.KR)(0),b=(0,o.KR)(0),f=(0,o.KR)("none"),h=e=>d(this,void 0,void 0,function*(){v.value=e,yield u.paymentService.calculateTaxes(u.discountedSubtotal.value,e.taxCountryCode,e.postalCode,e.taxCode).then(e=>{b.value=e.rate,g.value=e.price.total,p.value=e.price.taxes}).catch(e=>{u.showError(e.message)})}),k=()=>d(this,void 0,void 0,function*(){if(a.$q.loading.show(),yield u.updateTaxInfo(!0),u.taxName.value)return u.paymentService.updateTaxInformation({taxCountryCode:u.countryCode.value,postalCode:u.postCode.value,taxCode:u.taxCode.value,taxRate:u.taxPc.value,taxName:u.taxName.value}).then(e=>d(this,void 0,void 0,function*(){if(!e)return a.$q.loading.hide(),void u.confirm();const t=yield c.getAuthenticatedUser();(0,n.a)().setUser(null===t||void 0===t?void 0:t.user),yield h(e),a.$q.loading.hide(),m.value=!0,f.value="updated"})).catch(e=>{u.showError(e.message),a.$q.loading.hide()});a.$q.loading.hide()});return(0,l.sV)(()=>d(this,void 0,void 0,function*(){e.userCountryCode?u.countryCode.value=e.userCountryCode:f.value="add",u.taxCode.value=e.userTaxCode,u.postCode.value=e.userPostCode,yield u.updateTaxInfo()})),Object.assign(Object.assign({},u),{MODULE_CONSTANTS:s.jGy,authService:c,showSummary:m,newPlanSummary:v,planTax:p,planTotal:g,planTaxPc:b,localizationName:f,updateTaxInformation:k})}});a.d(t,["A",0,u])},18949(e,t,a){var l=a(82009),o=a(38060),s=a(82922);const n=(0,s.A)(o.A,[["render",l.X]]),i=n;a.d(t,["A",0,i])},28116(e,t,a){var l=a(93247),o=a(91133),s=a(82922);const n=(0,s.A)(o.A,[["render",l.X]]),i=n;a.d(t,["A",0,i])},91500(e,t,a){a.r(t);var l=a(69106),o=a(26053),s=a(82922),n=a(1425),i=a(6338),r=a(7978),d=a(258),u=a.n(d);const c=(0,s.A)(o.A,[["render",l.X]]),m=c;u()(o.A,"components",{QList:n.A,QItem:i.A,QIcon:r.A}),a.d(t,["default",0,m])},49088(e,t,a){a.r(t);var l=a(59574),o=a(82685),s=a(82922),n=a(91322),i=a(57767),r=a(97554),d=a(7978),u=a(258),c=a.n(u);const m=(0,s.A)(o.A,[["render",l.X]]),v=m;c()(o.A,"components",{QCard:n.A,QCardSection:i.A,QDialog:r.A,QIcon:d.A}),a.d(t,["default",0,v])},50160(e,t,a){a.r(t);var l=a(94704),o=a(81573),s=a(82922),n=a(91322),i=a(57767),r=a(7978),d=a(24470),u=a(83967),c=a(258),m=a.n(c);const v=(0,s.A)(o.A,[["render",l.X]]),p=v;m()(o.A,"components",{QCard:n.A,QCardSection:i.A,QIcon:r.A,QBtn:d.A,QCardActions:u.A}),a.d(t,["default",0,p])},68257(e,t,a){a.r(t);var l=a(83181),o=a(24056),s=a(82922),n=a(91322),i=a(57767),r=a(258),d=a.n(r);const u=(0,s.A)(o.A,[["render",l.X]]),c=u;d()(o.A,"components",{QCard:n.A,QCardSection:i.A}),a.d(t,["default",0,c])},34829(e,t,a){a.r(t);var l=a(61315),o=a(67228),s=a(82922),n=a(91322),i=a(57767),r=a(258),d=a.n(r);const u=(0,s.A)(o.A,[["render",l.X]]),c=u;d()(o.A,"components",{QCard:n.A,QCardSection:i.A}),a.d(t,["default",0,c])},282(e,t,a){a.r(t);var l=a(51615),o=a(4483),s=a(82922),n=a(61786),i=a(1425),r=a(6338),d=a(64527),u=a(7978),c=a(79866),m=a(91322),v=a(57767),p=a(82438),g=a(258),b=a.n(g);const f=(0,s.A)(o.A,[["render",l.X]]),h=f;b()(o.A,"components",{QPage:n.A,QList:i.A,QItem:r.A,QItemSection:d.A,QIcon:u.A,QItemLabel:c.A,QCard:m.A,QCardSection:v.A,QAvatar:p.A}),a.d(t,["default",0,h])},62800(e,t,a){a.r(t);var l=a(41567),o=a(19237),s=a(82922),n=a(91322),i=a(57767),r=a(258),d=a.n(r);const u=(0,s.A)(o.A,[["render",l.X]]),c=u;d()(o.A,"components",{QCard:n.A,QCardSection:i.A}),a.d(t,["default",0,c])},11080(e,t,a){var l=a(97710),o=a(46897),s=a(82922),n=a(97554),i=a(7978),r=a(258),d=a.n(r);const u=(0,s.A)(o.A,[["render",l.X]]),c=u;d()(o.A,"components",{QDialog:n.A,QIcon:i.A}),a.d(t,["A",0,c])},71264(e,t,a){var l=a(83629),o=a(40985),s=a(82922),n=a(54976),i=a(258),r=a.n(i);const d=(0,s.A)(o.A,[["render",l.X]]),u=d;r()(o.A,"components",{QSeparator:n.A}),a.d(t,["A",0,u])},1269(e,t,a){var l=a(89372),o=a(92604),s=a(82922),n=a(97554),i=a(7978),r=a(258),d=a.n(r);const u=(0,s.A)(o.A,[["render",l.X]]),c=u;d()(o.A,"components",{QDialog:n.A,QIcon:i.A}),a.d(t,["A",0,c])},35297(e,t,a){var l=a(29794),o=a(96928),s=a(82922),n=a(97554),i=a(7978),r=a(54976),d=a(258),u=a.n(d);const c=(0,s.A)(o.A,[["render",l.X]]),m=c;u()(o.A,"components",{QDialog:n.A,QIcon:i.A,QSeparator:r.A}),a.d(t,["A",0,m])},38060(e,t,a){a.d(t,{A:()=>l.A});var l=a(14414)},91133(e,t,a){a.d(t,{A:()=>l.A});var l=a(59199)},26053(e,t,a){a.d(t,{A:()=>l.A});var l=a(31831)},82685(e,t,a){a.d(t,{A:()=>l.A});var l=a(42451)},81573(e,t,a){a.d(t,{A:()=>l.A});var l=a(85075)},24056(e,t,a){a.d(t,{A:()=>l.A});var l=a(89914)},67228(e,t,a){a.d(t,{A:()=>l.A});var l=a(59638)},4483(e,t,a){a.d(t,{A:()=>l.A});var l=a(5561)},19237(e,t,a){a.d(t,{A:()=>l.A});var l=a(52979)},46897(e,t,a){a.d(t,{A:()=>l.A});var l=a(539)},40985(e,t,a){a.d(t,{A:()=>l.A});var l=a(98155)},92604(e,t,a){a.d(t,{A:()=>l.A});var l=a(92646)},96928(e,t,a){a.d(t,{A:()=>l.A});var l=a(21346)}}]); 2//# sourceMappingURL=reviewer-app.pages.settings.bb6cfaa6.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.