PageSourceSearch

https://app.orion180.com/assets/PandadocFileLogger-Rr_ouRb0.js

js orion180.com collected 2026-09-24 11:49:07 UTC 6,396 bytes, 1 lines download raw bytes

1import{C as E}from"./ContentSlot-B1U3ZBfo.js";import{_ as w,L as S,r as u,i as F,o as p,w as i,a as d,l as _,d as e,e as h,q as I,t as m,v,T as g,c as y,b,h as f,p as P,f as L}from"./index-DVuEVHrL.js";const R={name:"HubspotDetails",components:{ContentSlot:E},mixins:[S],data(){return{isLoading:!1,sortBy:"id",sortDesc:!0,results:{data:[],totalRecords:0},params:{sortBy:1,sortDesc:!1,take:15,skip:0},currentPage:1,fields:[{key:"templateName",label:"Document Name",sortable:!0,tdClass:"large-col text-font-primary"},{key:"agencyName",label:"Agency Name",sortable:!0},{key:"dateReceived",label:"Received On",sortable:!0,thClass:"date-col"},{key:"syncStatus",label:"Sync Status",sortable:!0,thClass:"large-col"},{key:"Error",label:"Error",sortable:!1,tdClass:"large-col"},{key:"id",label:"",thClass:"status-col"}],selectedComment:"",showError:!1,selectFileId:"",deleteModal:!1,replayModal:!1}},watch:{},mounted(){this.search()},methods:{search(){this.$nextTick(()=>{this.params.skip=(this.currentPage-1)*this.params.take,this.params.sortDesc=this.sortDesc,this.isLoading=!0,f.post("/api/HubSpotIntegration/GetAllPandaDocsFileList",this.params).then(l=>{this.results=l.data;var o=this.results.data.map(c=>({...c,HubspotError:`${c.syncLogs.filter(a=>a.logType=="HubSpotPostError").map(a=>a.logMessage).join(", ")}`,My180Error:`${c.syncLogs.filter(a=>a.logType=="My180InsertError").map(a=>a.logMessage).join(", ")}`,PandadocError:`${c.syncLogs.filter(a=>a.logType=="PandaDocJSONParseError").map(a=>a.logMessage).join(", ")}`}));this.results.data=o,this.isLoading=!1}).catch(()=>{this.isLoading=!1})})},showMoreDetail(l){this.selectedComment=l,this.showError=!0},confirmDelete(l){this.selectFileId=l,this.deleteModal=!0},confirmReplay(l){this.selectFileId=l,this.replayModal=!0},deleteFile(){this.deleteModal=!1,f.post(`/api/HubSpotIntegration/DeleteAgency?id=${this.selectFileId}`,{fileId:this.selectFileId},{successToastMessage:"File was deleted",blocking:!0}).then(()=>{this.search()})},replayFile(){this.isLoading=!0,this.replayModal=!1,f.get(`/api/HubSpotIntegration/MapPandaDocsField?id=${this.selectFileId}`).then(()=>{this.search()}).catch(()=>{this.isLoading=!1})}}},r=l=>(P("data-v-d7db5d88"),l=l(),L(),l),N=r(()=>e("div",{class:"page-header"},[e("div",{class:"sm:pt-1"},[e("h3",{class:"title"},"Pandadoc File Logger")]),e("div",{class:"pb-6 sm:mb-2 subtitle"},"Manage templates and settings for automated document creation.")],-1)),T=r(()=>e("hr",{class:"h-px mt-0 bg-stroke border-0 -mx-10"},null,-1)),A={class:"wrapper py-10"},H={class:"comment-block pt-1 float-left"},B=["onClick"],V=["onClick"],j={class:"h-100 heading sm"},O={key:0,class:"modal-popup"},q={class:"dialog"},z=r(()=>e("label",{class:"dialog-header"},"Details",-1)),G={class:"mt-4 text-left dialog-desc"},J=r(()=>e("hr",{class:"border-line-breaker my-4 -mx-6"},null,-1)),K={class:"flex justify-end mt-6"},U={key:0,class:"modal-popup"},Q={class:"dialog"},W=r(()=>e("label",{class:"dialog-header"},"Delete document confirmation",-1)),X=r(()=>e("div",{class:"mt-4 text-left dialog-desc"}," Are you sure you want to permanently delete this document? This action cannot be undone. ",-1)),Y=r(()=>e("hr",{class:"border-line-breaker my-4 -mx-6"},null,-1)),Z={class:"flex justify-end mt-6"},$={key:0,class:"modal-popup"},ee={class:"dialog"},te=r(()=>e("label",{class:"dialog-header"},"Confirm document replay",-1)),se=r(()=>e("div",{class:"mt-4 text-left dialog-desc leading-[22px]"}," Are you sure you want to replay this File? ",-1)),oe=r(()=>e("hr",{class:"border-line-breaker my-4 -mx-6"},null,-1)),le={class:"flex justify-end mt-6"};function ae(l,o,c,a,s,n){const k=u("b-table"),C=u("b-pagination"),M=u("ContentSlot"),D=u("b-overlay");return p(),F(D,{"spinner-variant":"spinner",show:s.isLoading,class:"h-100",opacity:"0.85",blur:"5px"},{default:i(()=>[d(M,{breadcrumbClass:"bg-grey-background"},{main:i(()=>[N,T,_(e("div",A,[d(k,{"sticky-header":"",hover:"",striped:"",bordered:"",responsive:"","sort-by":s.sortBy,"sort-desc":s.sortDesc,onSortChanged:o[0]||(o[0]=t=>n.search()),"primary-key":"id",items:s.results.data,fields:s.fields,"per-page":0,"current-page":s.currentPage,small:""},{"cell(dateReceived)":i(t=>[h(m(l.filterFunction("shortDate",t.item.dateReceived)),1)]),"cell(syncStatus)":i(t=>[h(m(t.item.syncStatus),1)]),"cell(Error)":i(t=>[e("div",null,[e("span",H,m(t.item.PandadocError?`Error in parsing data from PandaDocs - Ref. ${t.item.dataId}`:t.item.My180Error?`Error in inserting data in My180 for Agency - Ref. #${t.item.refAgencyId}`:t.item.HubspotError?`Error in updating data in HubSpot for Agency - Ref. #${t.item.refAgencyId}`:""),1)])]),"cell(id)":i(t=>[e("button",{class:"btn text-btn no-underline",title:"Delete",onClick:x=>n.confirmDelete(t.item.id)}," Delete ",8,B),h("| "),e("button",{class:I([{disabled:t.item.syncStatus==="COMPLETED"},"btn text-btn no-underline"]),title:"Replay",onClick:x=>n.confirmReplay(t.item.id)}," Replay ",10,V)]),_:1},8,["sort-by","sort-desc","items","fields","current-page"]),d(C,{modelValue:s.currentPage,"onUpdate:modelValue":o[1]||(o[1]=t=>s.currentPage=t),"total-rows":s.results.totalRecords,perPage:s.params.take,onChange:o[2]||(o[2]=t=>n.search())},null,8,["modelValue","total-rows","perPage"])],512),[[v,s.results.data.length>0]]),_(e("div",j," No results to display ",512),[[v,!s.isLoading&&s.results.totalRecords===0]])]),_:1}),d(g,{id:"showError"},{default:i(()=>
1[s.showError?(p(),y("div",O,[e("div",q,[z,e("div",G,m(s.selectedComment),1),J,e("div",K,[e("button",{onClick:o[3]||(o[3]=t=>s.showError=!1),class:"btn btn-quote-primary"},"OK")])])])):b("",!0)],void 0,!0),_:1}),d(g,{id:"deleteModal"},{default:i(()=>[s.deleteModal?(p(),y("div",U,[e("div",Q,[W,X,Y,e("div",Z,[e("button",{onClick:o[4]||(o[4]=t=>s.deleteModal=!1),class:"mr-2 btn btn-outline"},"Cancel"),e("button",{onClick:o[5]||(o[5]=(...t)=>n.deleteFile&&n.deleteFile(...t)),class:"btn danger"},"Delete")])])])):b("",!0)],void 0,!0),_:1}),d(g,{id:"replayModal"},{default:i(()=>[s.replayModal?(p(),y("div",$,[e("div",ee,[te,se,oe,e("div",le,[e("button",{onClick:o[6]||(o[6]=t=>s.replayModal=!1),class:"mr-2 btn btn-outline"},"Cancel"),e("button",{onClick:o[7]||(o[7]=(...t)=>n.replayFile&&n.replayFile(...t)),class:"btn btn-quote-primary"},"Replay")])])])):b("",!0)],void 0,!0),_:1})],void 0,!0),_:1},8,["show"])}const ne=w(R,[["render",ae],["__scopeId","data-v-d7db5d88"]]);export{ne as default};

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.