1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="33c70cc9-05a2-5b28-a261-5c3032415bbe")}catch(e){}}(); 3import{n as e,r as t,t as n,xu as r}from"./api-yJ3zfjyJ.js";import{t as i}from"./baseUrl-B2TilqWl.js";var a=()=>window.location.search.substring(1).split(`&`).reduce(function(e,t){let n=t.split(`=`),r=n[0],i=decodeURIComponent(n[1]||``);return i.trim().toLowerCase()===`true`||i===`false`?i=!!i:isNaN(Number(i))||(i=i===Number(i).toString()?Number(i):i),e[r]=i,e},{}),o=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,type:n,taggedUserId:r?.taggedUserId,txnTypeValueId:r?.txnTypeValueId,questionId:r?.questionId,uid:r?.uid,practiceId:r?.practiceId,taskId:r?.taskId,accountId:r?.accountId,initial:r?.initial,userId:r?.userId,pageNumber:r?.pageNumber,vendorRequestId:r?.vendorRequestId,bankFeedTransactionId:r?.bankFeedTransactionId})},o=await fetch(i+`/client/get-all-pusher-comments`,a).then(e=>e.status===200?e.json():null);return{comments:o?.result??[],logs:o?.logs}},s=async(t,n)=>e.get(`/client/${t}/last-message-threads`,{params:{pageNumber:n}}),c=async(e,t)=>{let n={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t})};return await fetch(`https://prod.doublehq.com/client/read-all-comments`,n).then(e=>e.status===200?e.json():null)??{}},l=async(t,n,r,i,a)=>e.post(`/client/search-client-comments`,{clientId:n,term:t,openOnly:r,pageNumber:i},{signal:a}),u=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({threadId:n,clientId:t})};return await fetch(`https://prod.doublehq.com/client/get-thread-comments`,r).then(e=>e.status===200?e.json():null)??[]},d=async({token:e,practiceId:t,content:n,userId:r,clientId:a,type:o,infoObj:s,threadId:c,snippet:l,image:u})=>{let d={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({practiceId:t,userId:r,content:n,clientId:a,type:o,taggedArr:s?.taggedArr,txnTypeValueId:s?.txnTypeValueId,questionId:s?.questionId,txnInfo:s?.txnInfo,taskInfo:s?.taskInfo,taskId:s?.taskId,endCloseId:s?.endCloseId,projectId:s?.projectId,accountId:s?.accountId,vendor1099Info:s?.vendor1099Info,questionInfo:s?.questionInfo,vendorRequestId:s?.vendorRequestId,threadId:c,emailThreadId:s?.emailThreadId,emailGrantId:s?.emailGrantId,bankFeedTransactionId:s?.bankFeedTransactionId,image:u,snippet:l})};return await fetch(i+`/client/add-pusher-comment`,d).then(e=>e.status===200?e.json():null)},ee=async({comments:t})=>e.post(`/client/bulk-add-pusher-comment`,{comments:t}),te=async(t,n,r)=>{let i=await e.post(`/client/save-profit-loss-stars`,{clientId:t,categoryId:n,uid:r});return i&&i.isSaved?!0:null},ne=(t,n)=>e.post(`/client/save-client-info`,{clientId:t,clientInfo:n}),f=async(e,t,n,r,i)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:n,practiceId:r,uid:t,attachmentId:i})};return(await fetch(`https://prod.doublehq.com/client/get-client-property-attachable`,a).then(e=>e.status===200?e.json():null))?.results??null},p=async t=>(await e.post(`/client/get-client-digital-notes`,{clientId:t}))?.results??null,m=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:n,practiceId:r,uid:t})};return(await fetch(`https://prod.doublehq.com/client/get-client-attachable-logo`,i).then(e=>e.status===200?e.json():null))?.results??null},h=async t=>e.get(`/client/${t}/logo`),g=async(t,n,r,i)=>{let a=new FormData;return a.append(`practiceId`,String(n)),a.append(`clientId`,String(r)),a.append(`theseNamesMustMatch`,i[0]),await e.post(`/client/save-client-attachable-logo`,a),!0},_=async(t,n)=>e.post(`/client/save-client-resources`,{clientId:t,clientResources:n}),v=async(t,n,r)=>{let i=await e.post(`/client/save-balance-sheet-stars`,{clientId:t,categoryId:n,uid:r});return i&&i.stars?i.stars:[]},y=async(t,n)=>(await e.get(`/client/${t}/financial-report-favorites`,{params:{reportType:n}})).favorites,b=async(t,n)=>(await e.post(`/client/${t}/financial-report-favorites`,n)).favorites,x=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,name:n})};return(await fetch(`https://prod.doublehq.com/client/save-client-name`,r).then(e=>e.status===200?e.json():null))?.isSaved??!1},S=async(e,t,n,r,a,o)=>{let s={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+a},body:JSON.stringify({practiceId:e,clientQbId:t,clientId:n,uid:r,previousMonthDate:o.monthDate,isQuarterly:o?.isQuarterly??!1})};return await fetch(i+`/client/add-end-close`,s).then(e=>e.status===200?e.json():e.status===409?{isAlreadyExists:!0}:null)},C=async(e,t,n,r,a)=>{let o={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({practiceId:t,clientId:n,uid:r,previousMonthDate:a?.monthDate?a?.monthDate:null,isQuarterly:a?.isQuarterly??!1})};return await fetch(i+`/client/add-non-qbo-end-close`,o).then(e=>e.status===200?e.json():e.status===409?{isAlreadyExists:!0}:null)},w=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,selectedAccounts:n})},a=await fetch(i+`/client/save-uncat-category-preference`,r).then(e=>e.status===200?e.json():null);return!!(a&&a.isSaved)},T=async t=>await e.post(`/client/add-non-closing-task`,t),E=async(t,n,r,i)=>e.post(`client/get-second-ship-client`,{clientId:t,uid:n,selectedQbId:r,practiceId:i}),D=async(e,t,n,r,a,o)=>{let s={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({yearMonth:t,clientId:n,uid:r,selectedQbId:a,practiceId:o})},c=await fetch(i+`/client/get-tasks-latest`,s).then(e=>e.status===200?e.json():null);return c?.tasks?c:c?.beGone?{beGone:!0}:null},O=async(e,t,n,r,a,o)=>{let s={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({yearMonth:t,clientId:n,uid:r,selectedQbId:a,practiceId:o})},c=await fetch(i+`/client/get-non-qbo-tasks-latest`,s).then(e=>e.status===200?e.json():null);return c?.tasks?c:c?.beGone?{beGone:!0}:null},k=async r=>{try{return(await e.post(`client/get-client-tree-files-cq`,{clientId:r},{authMethod:n.Legacy})).files}catch(e){return t(e),[]}},A=async t=>(await e.post(`client/get-client-tree-files`,{clientId:t}))?.files??[],j=async(e,t)=>{let n={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t})},r=await fetch(i+`/client/get-client-non-closing-tasks`,n).then(e=>e.status===200?e.json():null);return r&&r.result?r.result:!1},M=async(e,t,n,r,a)=>{let o={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,practiceId:r,yearMonth:a})},s=await fetch(i+`/client/get-management-report-config`,o).then(e=>e.status===200?e.json():null);return s?.result?s:{beGone:!0}},N=async(t,n)=>e.post(`/client/update-is-cash-basis`,{clientId:t,isCashBasis:n}),P=async(e,t,n,r,i)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,template:r,practiceId:i})};return(await fetch(`https://prod.doublehq.com/client/save-client-management-report-config-from-template`,a).then(e=>e.status===200?e.json():null))?.isSaved??null},F=async(e,t,n,r,i)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,financialType:r,config:i})};return(await fetch(`https://prod.doublehq.com/client/save-client-management-report-config`,a).then(e=>e.status===200?e.json():null))?.updated??null},I=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,financialType:n,config:r})};return(await fetch(`https://prod.doublehq.com/client/save-client-management-report-config-single`,i).then(e=>e.status===200?e.json():null))?.updated??null},L=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,isQuarterly:r})};return(await fetch(`https://prod.doublehq.com/client/save-client-is-quarterly`,i).then(e=>e.status===200?e.json():null))?.isSaved??!1},R=async(t,n)=>{let r=await e.post(`client/save-client-is-reminder-on`,{clientId:t,isReminderOn:n});return!!(r&&r.isSaved)},z=async(t,n)=>{let r=await e.post(`client/save-client-is-reminder-on`,{clientId:t,isTextReminderOn:n});return!!(r&&r.isSaved)},B=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({token:e,uid:t,clientId:n,matchOption:r})},o=await fetch(i+`/client/save-client-inconsistency-match-option`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},V=async(t,n,r)=>!!(await e.post(`/client/save-duplicate-vendor-scale-value`,{clientId:t,duplicateVendorScaleValue:n,isCustomer:r}))?.isSaved,H=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({token:e,uid:t,clientId:n,cutOffPeriod:r})},o=await fetch(i+`/client/save-client-inconsistency-historical`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},U=async(t,n)=>(await e.post(`/client/save-rate-per-month`,{clientId:t,ratePerMonth:n}))?.isSaved??!1,W=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,inclusionList:n,practiceId:r})},o=await fetch(i+`/client/save-inclusion-list`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},G=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientEmailMap:t,email:n})},a=await fetch(i+`/client/bulk-save-subscription`,r).then(e=>e.status===200?e.json():null);return!!(a&&a.isSaved)},K=async(t,n)=>e.get(`/client/${t}
3/preview/client-portal-settings/${n}`),q=async(t,n)=>{let i=e.get(`/client/${t}/client-portal-settings`,{signal:n});if(!i&&window.location.pathname.includes(`client-questions`)){r();let e=a()?.pwd??null,n=window.location.origin+`/client-questions-login/`+t+(e==null?``:`?pwd=`+e);window.location.href=n}return i},J=async(e,t)=>{let n={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t})};return(await fetch(`https://prod.doublehq.com/client/get-client-uploads-inbox`,n).then(e=>e.status===200?e.json():null))?.clientUploadsInbox??[]},Y=t=>e.get(`/client/${t}/books-close-date`),X=async(e,t)=>{let n={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t})};return(await fetch(`https://prod.doublehq.com/client/get-client-files`,n).then(e=>e.status===200?e.json():null))?.files??[]},Z=t=>e.post(`/client/get-client-end-closes-light`,{clientId:t}),re=async()=>(await e.post(`/client/get-all-client-end-closes-light`,{}))?.endCloses??[],ie=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,practiceId:n,clientId:r})};try{return(await fetch(`https://prod.doublehq.com/client/get-historical-emails`,i).then(e=>e.status===200?e.json():null))?.historicalEmails??[]}catch{return{error:!0}}},ae=async(t,n,r)=>(await e.post(`/client/get-historical-emails`,{uid:t,practiceId:n,clientId:r})).historicalEmails??[],oe=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,practiceId:n,clientId:r})};return(await fetch(`https://prod.doublehq.com/client/get-historical-texts`,i).then(e=>e.status===200?e.json():null))?.historicalTexts??[]},se=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,uid:n,dollarThreshold:r})},o=await fetch(i+`/client/save-dollar-threshold`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},ce=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,uid:n,dollarThreshold:r})},o=await fetch(i+`/client/save-expenses-and-bills-dollar-threshold`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},le=async t=>(await e.post(`/client/save-digest-email`,t)).isSaved,ue=(t,n)=>e.post(`/client/save-send-to-email`,{clientId:t,sendToEmail:n}),de=t=>e.get(`/client/${t}/send-to-email`),fe=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:e},body:JSON.stringify({clientId:t,transactionTypeValue:n.transactionTypeValue,transactionTypeId:n.transactionTypeId,questionId:n.questionId})},a=await fetch(i+`/client/get-client-attachable-cq`,r).then(e=>e&&e.status===200?e.json():`error`);return a&&a===`error`?`error`:a&&a.results?a.results:[]},pe=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,transactionTypeValue:n?.transactionTypeValue,transactionTypeId:n?.transactionTypeId,questionId:n?.questionId,vendorId:n?.vendorId,attachmentName:n?.attachmentName,yearMonth:n?.yearMonth})};return(await fetch(`https://prod.doublehq.com/client/remove-client-attachable`,r).then(e=>e.status===200?e.json():null))?.masterKey??!1},Q=(t,n,r,i)=>e.post(`/client/get-client-attachable-count-batch`,{clientId:t,uid:n,transactionTypeValueIds:r?.transactionTypeValueIds,questionIds:r?.questionIds,vendorIds:r?.vendorIds,taskIds:r?.taskIds,withSuffix:r?.withSuffix},{signal:i?.signal||void 0}),me=async(e,t,n,r)=>{try{return await Q(e,t,n,r)}catch{return{}}},he=async(t,n,r,i)=>e.post(`/client/delete-client-attachable-by-key`,{clientId:n,attachmentKey:r,fileKey:i}),ge=async(t,n)=>e.post(`/client/bulk-delete-client-attachable-by-key`,{clientId:t,attachables:n}),_e=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,"Access-Control-Allow-Headers":`Origin, Content-Type, X-Auth-Token`,"Access-Control-Allow-Methods":`GET, POST, PATCH, PUT, DELETE, OPTIONS`,"Access-Control-Allow-Origin":`*`,Connection:`keep-alive`,A
3ccept:`*/*`,auth:e},body:JSON.stringify({clientId:t,attachmentKey:n,fileKey:r})};return await fetch(i+`/client/delete-client-attachable-by-key-cq`,a).then(e=>e.status===200?e.json():null)},ve=async(e,t,n,r,a)=>{let o={method:`POST`,headers:{"Content-Type":`application/json`,"Access-Control-Allow-Headers":`Origin, Content-Type, X-Auth-Token`,"Access-Control-Allow-Methods":`GET, POST, PATCH, PUT, DELETE, OPTIONS`,"Access-Control-Allow-Origin":`*`,Connection:`keep-alive`,Accept:`*/*`,auth:e},body:JSON.stringify({clientId:t,attachmentKey:n,fileKey:r}),signal:a};return await fetch(i+`/client/get-client-attachable-by-key-cq`,o).then(e=>e.status===200?e.json():null)},ye=async(t,n,r,i)=>{try{return await e.post(`/client/get-client-attachable-by-key`,{clientId:t,attachmentKey:n,fileKey:r},{signal:i})}catch{return null}},be=async({clientId:t,attachmentKey:n,vendorId:r})=>e.post(`/client/${t}/attachment/transaction`,{attachmentKey:n,vendorId:r}),xe=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:e},body:JSON.stringify({fileKeys:n}),signal:r},o=await fetch(i+`/client/${t}/bulk-get-attachables-by-keys`,a).then(e=>e.status===200?e.json():null);return o?.filesByFileKey?o.filesByFileKey:null},Se=async(t,n,r)=>e.get(`/client/${n}/attachable?${new URLSearchParams(r).toString()}`),Ce=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,uid:n,transactionTypeValue:r?.transactionTypeValue,transactionTypeId:r?.transactionTypeId,questionId:r?.questionId,vendorId:r?.vendorId,taskAttachmentId:r?.taskAttachmentId})},o=await fetch(i+`/client/get-client-attachable`,a).then(e=>e.status===200?e.json():null);return o&&o.results?o.results:[]},we=function(e){return e[e.ClientPortalAttachable=0]=`ClientPortalAttachable`,e[e.CloseAttachable=1]=`CloseAttachable`,e[e.ManagementReportConfigAttachable=2]=`ManagementReportConfigAttachable`,e[e.EndCloseFinancialReport=3]=`EndCloseFinancialReport`,e}({}),Te=async(t,n,r,a,o,s={useAxios:!1})=>{let c={clientId:t,transactionTypeValue:a?.transaction_type_value??``,transactionTypeId:a?.transaction_type_id??``,entityTypeValue:a?.entity_type_value,questionId:a?.questionId??``,isUploadsInbox:a?.isUploadsInbox,organizerSlideId:a?.organizerSlideId,organizerId:a?.organizerId,clientDescription:a?.clientDescription??``,contactUid:a?.contactUid??``,files:r,taskAttachmentId:a?.taskAttachmentId,isVisible:a?.isVisible,financialReportKey:a?.financialReportKey,accountId:a?.accountId,clientPortalMessageId:a?.clientPortalMessageId,reportType:a?.reportType,reportKind:a?.reportKind},l=o===0;if(s?.useAxios&&l)return(await e.post(`/client/move-client-attachable-cq-from-quarantine`,c)).isSaved??!1;let u={method:`POST`,headers:{auth:`${l?``:`Bearer `}${n}`,"Content-Type":`application/json`},body:JSON.stringify(c)},d=await(async()=>{try{return await fetch(`${i}/client/move-client-attachable${l?`-cq`:``}-from-quarantine`,u)}catch{return}})();return d?(await(async()=>{try{return await d.json()}catch{return{isSaved:!1}}})()).isSaved??!1:!1},Ee=async(e,t)=>{let n={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({token:e,clientId:t})};return await fetch(i+`/client/get-client-name-qb-id`,n).then(e=>e.status===200?e.json():null)},De=async(e,t,n,r)=>{let a=await fetch(i+`/client/get-metrics-table`,{method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,startDate:n,endDate:r})}).then(e=>e.status===200?e.json():null);return a?.metricsTable?a:{beGone:!0}},Oe=async(e,t,n,r,a,o,s)=>{let c={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,tableId:a,tableName:o,tableOptions:s,startDate:n,endDate:r})},l=await fetch(i+`/client/create-metrics-table`,c).then(e=>e.status===200?e.json():null);return l&&l.metricsTable?l.metricsTable:null},ke=async(e,t,n,r,a)=>{let o={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,tableId:n,startDate:r,endDate:a})},s=await fetch(i+`/client/delete-table-from-metrics-table`,o).then(e=>e.status===200?e.json():null);return s&&s.metricsTable?s.metricsTable:null},Ae=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,tableId:n,name:r})},o=await fetch(i+`/client/update-name-metrics-table`,a).then(e=>e.status===200?e.json():null);return o&&o.metricsTable?o.metricsTable:null},je=(t,n)=>e.post(`/client/delete-visual`,{clientId:t,visualId:n}),Me=async(e,t,n,r,a,o,s,c)=>{let l={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,tableId:n,inputVariables:r,formulaVariables:a,dividers:o,startDate:s,endDate:c})},u=await fetch(i+`/client/update-input-var-to-metrics-table`,l).then(e=>e.status===200?e.json():null);return u&&u.metricsTable?u.metricsTable:null},Ne=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e}
3,body:JSON.stringify({clientId:t,vendorsArr:n,isCustomer:r})},o=await fetch(i+`/client/update-duplicate-vendors-exclude-list`,a).then(e=>e.status===200?e.json():null);return o&&o.isSaved?o.isSaved:null},Pe=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({token:e.token,uid:e.uid,clientId:e.clientId,isClientQuestionsAssignableOn:e.isClientQuestionsAssignableOn})},n=await fetch(i+`/client/save-is-client-questions-assignable-on`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},Fe=async(t,n,r)=>{let i=await e.post(`/client/save-is-class-on`,{uid:t,clientId:n,isClassOn:r});return!!(i&&i.isSaved)},Ie=async(t,n,r)=>{let i=await e.post(`/client/save-is-location-on`,{uid:t,clientId:n,isLocationOn:r});return!!(i&&i.isSaved)},Le=async(t,n,r)=>{let i=await e.post(`/client/save-is-account-numbers-on`,{uid:t,clientId:n,isAccountNumbersOn:r});return!!(i&&i.isSaved)},Re=async(e,t,n)=>{let r={method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({uid:e,clientId:t,isCustomerOn:n})},a=await fetch(i+`/client/save-is-customer-on`,r).then(e=>e.status===200?e.json():null);return!!(a&&a.isSaved)},ze=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({uid:e,clientIds:t,isOn:n,type:r})},o=await fetch(i+`/client/batch-save-setting`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},Be=async t=>!!(await e.post(`/client/save-duplicate-vendors-exclude-list`,{uid:t.uid,clientId:t.clientId,duplicateVendorsExcludeList:t.duplicateVendors,isCustomer:t.isCustomer}))?.isSaved,Ve=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,splitId:r?.splitId,payeeId:r?.payeeId,amount:r?.amount,updatedPairs:r?.updatedPairs,isWithAmount:r?.isWithAmount,amountRules:r?.amountRules})};return(await fetch(`https://prod.doublehq.com/client/save-inconsistency-pair-exclude-list`,i).then(e=>e.status===200?e.json():null))?.inconsistencyPairExcludeList??[]},He=async(e,t,n,r)=>{let i={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({uid:t,clientId:n,classId:r?.classId,payeeId:r?.payeeId,updatedPairs:r?.updatedPairs})};return(await fetch(`https://prod.doublehq.com/client/save-class-inconsistency-pair-exclude-list`,i).then(e=>e.status===200?e.json():null))?.classInconsistencyPairExcludeList??[]},Ue=async t=>(await e.post(`/client/save-entity-id-exclude-list`,t)).isSaved,We=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({clientId:e.clientId,taskType:e.taskType,txnTypes:e.txnTypes})},n=await fetch(i+`/client/save-txn-type-exclude-list`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},Ge=async t=>(await e.post(`/client/save-account-exclude-list`,t)).isSaved,Ke=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({clientId:e.clientId,taskType:e.taskType,checkRefsNumbers:e.checkRefsNumbers})},n=await fetch(i+`/client/save-check-ref-number-exclude-list`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},qe=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({clientId:e.clientId,taskType:e.taskType,payeeIds:e.payeeIds})},n=await fetch(i+`/client/save-payee-exclude-list`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},Je=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({clientId:e.clientId,taskType:e.taskType,descriptions:e.descriptions})},n=await fetch(i+`/client/save-description-exclude-list`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},Ye=t=>e.post(`/client/${t}/archive`),Xe=t=>e.post(`/client/${t}/unarchive`),Ze=async(e,t,n,r)=>{let a={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e},body:JSON.stringify({clientId:t,clientQbId:n,userEmail:r?.userEmail,reason:r?.reason,feedback:r?.feedback})},o=await fetch(i+`/client/delete-client`,a).then(e=>e.status===200?e.json():null);return!!(o&&o.isSaved)},Qe=async e=>{let t={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+e.token},body:JSON.stringify({clientId:e.clientId,settings:e.settings})},n=await fetch(i+`/client/save-class-location-settings`,t).then(e=>e.status===200?e.json():null);return!!(n&&n.isSaved)},$e=async(e,t,n,r,a)=>{let o={method:`POST`,headers:{"Content-Type":`application/json`,auth:`Bearer `+t},body:JSON.stringify({uid:e,practiceId:n,clientName:r,copyClientSettings:a})},s=await fetch(i+`/client/add-non-qbo-client`,o).then(e=>e.status===200?e.json():null);return!!(s&&s.isSaved)},et=(t,n)=>e.post(`/client/add-visual`,{clientId:t,visualData:n}),tt=(t,n)=>e.post(`/client/add-visual-chart-positions`,{clientId:t,chartPositions:n}),nt=(t,n)=>e.post(`/client/edit-visual`,{clientId:t,visualData:n}),rt=(t,n)=>e.post(`/client/add-visual-chart-row-page-break`,{clientId:t,rowPosition:n}),it=(t,n)=>e.post(`/client/delete-visual-chart-row-page-break`,{clientId:t,rowPosition:n}),at=(t,n)=>e.post(`/client/bulk-add-end-close`,{clientId:t,endCloseMonthDates:n}),ot=t=>e.post(`/client/bulk-add-end-close-for-all-clients`,{endCloseMonthDates:t}),st=async(t,n)=>e.post(`/client/get-properties`,{clientId:t},{signal:n}),ct=(t,n,r)=>e.post(`/custom-folders/${t}/nodes/${n}`,{name:r}),lt=(t,n)=>e.get(`/custom-folders/${t}/nodes/${n}`),ut=(t,n)=>e.delete(`/custom-folders/${t}/nodes/${n}`),dt=(t,n)=>e.delete(`/custom-folders/${t}/bulk-delete`,{data:{nodeIds:n}}),ft=(t,n,r)=>e.put(`/custom-folders/${t}/nodes/${n}`,{name:r}),pt=async t=>{let{clientId:n,nodeIds:r=[],parentId:i}=t;return e.post(`/custom-folders/${n}/bulk-move`,{nodeIds:r,parentId:i})}
3,mt=async({clientId:t,nodeId:n,parentId:r,foreignClientId:i})=>e.post(`/custom-folders/${t}/copy-node`,{nodeId:n,parentId:r,foreignClientId:i}),ht=t=>{let{clientId:n,nodeId:r,attachment:i,foreignClientId:a}=t;return e.post(`/custom-folders/${n}/copy-attachable-to-node`,{parentId:r,sourceAttachment:i,foreignClientId:a})},gt=({attachmentKey:t,clientId:n,nodeId:r,foreignClientId:i,providerUpload:a})=>e.post(`/custom-folders/${n}/copy-to-attachable`,{nodeId:r,attachmentKey:t,foreignClientId:i,providerUpload:a}),_t=t=>{let{clientId:n,nodeId:r,attachments:i,isFromReceipt:a}=t;return e.put(`/custom-folders/${n}/nodes/${r}/move-from-attachable`,{attachments:i,isFromReceipt:a})},vt=async t=>{let{clientId:n,nodeIds:r,attachmentKey:i,providerUpload:a}=t;return await e.post(`/custom-folders/${n}/bulk-move-to-attachable`,{nodeIds:r,attachmentKey:i,providerUpload:a})},yt=(t,n,r)=>e.post(`/custom-folders/${t}/nodes/${n}/create-uploaded-files`,{files:r}),bt=(t,n)=>e.get(`/custom-folders/${t}/nodes/${n}/base64`),xt=async(e,t,n)=>{let r={method:`GET`,headers:{"Content-Type":`application/json`,"Access-Control-Allow-Headers":`Origin, Content-Type, X-Auth-Token`,"Access-Control-Allow-Methods":`GET, POST, PATCH, PUT, DELETE, OPTIONS`,"Access-Control-Allow-Origin":`*`,Connection:`keep-alive`,A
3ccept:`*/*`,auth:e}};return await fetch(i+`/custom-folders/${t}/nodes/${n}/base64-cq`,r).then(e=>e.status===200?e.json():null)},St=(t,n)=>e.get(`/custom-folders/${t}/search?query=${encodeURIComponent(n)}`),Ct=(t,n,r)=>e.put(`/custom-folders/${t}/nodes/${n}/client-portal-visibility`,{isVisibleInClientPortal:r}),wt=(t,n)=>e.post(`/custom-folders/${t}/copy-folder-structure`,{sourceClientId:n}),Tt=async(t,n)=>e.post(`/custom-folders/${t}/bulk-download-files`,{nodeIds:n}),Et=async(t,n)=>e.post(`/client/bulk-download-attachables`,{clientId:t,attachments:n}),Dt=async(t,n)=>e.post(`/custom-folders/${t}/download-folder`,{nodeId:n}),Ot=async t=>e.get(`/client/get-properties-for-all-clients`,{params:{onlyIfViewHasProperties:t,useNewQuery:!0}}),kt=async(t,n)=>e.get(`/client/${t}/download-link/${n}`),At=t=>e.post(`/client/staged-uploads/move-files`,{stagedUploadClientInfo:t}),jt=async(t,n)=>e.get(`/client/${n}/file-url`,{params:{fileKey:t}}),Mt=async t=>e.get(`/client/${t}/client-info`),Nt=async t=>e.get(`/client/${t}/latest-close`),Pt=async(t,n)=>e.get(`/client/${t}/close-by-date`,{params:{yearMonth:n}}),Ft=async t=>e.get(`/client/${t}/closes/tasks-count-status`,{params:{timezone:Intl?.DateTimeFormat()?.resolvedOptions()?.timeZone??`UTC`}}),It=(t,n)=>e.get(`/client/${t}/non-closing-tasks/${n}`),Lt=(t,n,r)=>e.get(`/client/${t}/closing-tasks/${n}/${r}`),Rt=async t=>e.get(`/client/${t}/transaction-questions-changelog`),zt=async(t,n)=>e.post(`/client/${t}/save-monthly-budgeted-hours`,{monthlyBudgetedHours:n}),Bt=async t=>e.get(`/client/${t}/non-closing-tasks`),$=async t=>e.get(`/client/${t}/settings`),Vt=(t,n)=>e.put(`/client/${t}/is-closes-disabled`,{isClosesDisabled:n}),Ht=async t=>e.get(`/client/${t}/ledger-settings`),Ut=async t=>e.get(`/client/${t}/currencies`),Wt=async t=>e.get(`/client/${t}`),Gt=async(t,n)=>e.get(`/client/${t}/attachments/${n}`),Kt=async t=>e.get(`/client/${t}/end-close-financial-reports`),qt=async(t,n)=>e.delete(`/client/${t}/end-close-financial-reports/${n}`),Jt=async(t,n)=>e.post(`/client/${t}/management-reports/print-document`,{reportHtml:n}),Yt=async(t,n)=>e.post(`/client/${t}/management-reports/submit-print-job`,{reportHtml:n}),Xt=(t,n)=>e.patch(`/client/${t}/management-reports`,{managementReportConfig:n}),Zt=(t,n)=>e.post(`/client/${t}/management-reports/bulk-clear`,{reportTypes:n});export{Se as $,Ke as $t,he as A,te as An,Bt as At,re as B,Xe as Bn,Rt as Bt,ht as C,Le as Cn,oe as Ct,Oe as D,Ie as Dn,M as Dt,ct as E,Re as En,Ht as Et,je as F,St as Fn,de as Ft,bt as G,Xt as Gn,At as Gt,ye as H,Ne as Hn,Te as Ht,it as I,l as In,$ as It,Wt as J,c as Jt,xt as K,Ae as Kn,vt as Kt,Dt as L,Ct as Ln,Ft as Lt,qt as M,ue as Mn,K as Mt,ut as N,We as Nn,Ot as Nt,yt as O,zt as On,De as Ot,ke as P,w as Pn,E as Pt,m as Q,v as Qt,nt as R,Yt as Rn,D as Rt,wt as S,Ve as Sn,ae as St,mt as T,Pe as Tn,Nt as Tt,ve as U,Me as Un,_t as Ut,o as V,N as Vn,lt as Vt,Gt as W,Vt as Wn,pt as Wt,fe as X,ft as Xt,Ce as Y,pe as Yt,me as Z,Ge as Zt,Et as _,Ue as _n,Lt as _t,C as a,R as an,X as at,G as b,H as bn,y as bt,tt as c,P as cn,Ee as ct,ze as d,_ as dn,st as dt,He as en,be as et,ee as f,Je as fn,f as ft,dt as g,Be as gn,Pt as gt,ge as h,V as hn,J as ht,$e as i,L as in,Z as it,_e as j,U as jn,O as jt,Ze as k,qe as kn,It as kt,rt as l,I as ln,j as lt,ot as m,se as mn,k as mt,S as n,g as nn,p as nt,d as o,z as on,Mt as ot,at as p,le as pn,A as pt,Y as q,Jt as qt,T as r,ne as rn,Kt as rt,et as s,F as sn,h as st,we as t,Qe as tn,Ut as tt,Ye as u,x as un,q as ut,Tt as v,ce as vn,kt as vt,gt as w,Fe as wn,s as wt,Zt as x,B as xn,ie as xt,xe as y,W as yn,jt as yt,Q as z,b as zn,u as zt}; 4//# sourceMappingURL=client-D8sxgTq4.js.map 5//# debugId=33c70cc9-05a2-5b28-a261-5c3032415bbe
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.