PageSourceSearch

https://www.sideprojectors.com/build/assets/Preview-DjmRlJBm.js

js sideprojectors.com collected 2026-09-24 08:45:52 UTC 4,096 bytes, 1 lines download raw bytes

1import{S as v}from"./SpNdaPdfEmbed-ph0s75pw.js";import{_ as y,c as o,a as r,F as g,f as b,b as p,t as _,d as h,m as k,h as x,r as f,u as E,o as i}from"./app-D-cVr9vr.js";import{a as I}from"./apiPost-C4xD0A-h.js";import{E as N}from"./vue3-signature.es-DL4yLp8y.js";import{S as C}from"./SubmitButton-CwcskGz4.js";import"./getCSRF-7MinvhD0.js";const P={components:{SpNdaPdfEmbed:v,Vue3Signature:N,SubmitButton:C},data(){return{config:window.config,nda:null,signatureLoading:!1,signatureError:null,state:{option:{penColor:"rgb(0, 0, 0)",backgroundColor:"rgb(255,255,255)"},disabled:!1}}},async created(){const s=await x("/nda/data",{ndaId:this.$route.params.ndaId},this.sideprojectorsStore.getToken);this.nda=await s.body[0]},computed:{...k(E)},methods:{async saveSignature(s){if(this.$refs.signature1){const e=this.$refs.signature1.save(s);if(!e||await this.isEmptySignature(e)){this.signatureError="Please draw your signature before saving";return}this.signatureError=null,this.uploadSignatureAsText(e)}},clearSignature(){this.$refs.signature1&&(this.$refs.signature1.clear(),this.signatureError=null)},undoSignature(){this.$refs.signature1&&this.$refs.signature1.undo()},onSignatureBegin(){this.signatureError=null},isEmptySignature(s){return s?new Promise(e=>{const d=new Image;d.onload=()=>{const u=document.createElement("canvas"),t=u.getContext("2d");u.width=d.width,u.height=d.height,t.drawImage(d,0,0);const a=t.getImageData(0,0,u.width,u.height).data;let c=!0;for(let n=0;n<a.length;n+=4){const m=a[n],w=a[n+1],S=a[n+2];if(a[n+3]>0&&(m<250||w<250||S<250)){c=!1;break}}e(c)},d.src=s}):!0},async uploadSignatureAsText(s){await I("/nda/upload-seller-signature",{ndaId:this.$route.params.ndaId,signature:s},this.sideprojectorsStore.getToken),this.$router.push({name:"nda-submit-confirm",params:{ndaId:this.$route.params.ndaId}})},submit(){this.$router.push({name:"nda-submit-confirm",params:{ndaId:this.$route.params.ndaId}})}}},B={key:0,class:""},D={class:"text-lg ml-2 dark:text-white"},T={class:"mt-4"},V={class:"form-line"},A={key:0,class:"input-error"},j={class:"mt-2 flex flex-wrap gap-2 text-sm"},F={class:"mt-4"},O=["src"],R={class:"button-line"};function $(s,e,d,u,t,l){const a=f("SpNdaPdfEmbed"),c=f("Vue3Signature"),n=f("SubmitButton");return t.nda!=null?(i(),o("div",B,[r("div",D,[t.nda.document_type=="sp"?(i(),o(g,{key:0},[b(" 🤝   NDA Preview & seller's signature ")],64)):(i(),o(g,{key:1},[b(" 🤝   NDA Preview ")],64))]),t.nda.document_type=="sp"?(i(),o(g,{key:0},[e[3]||(e[3]=r("div",{class:"mt-4"}," The following is a preview of the NDA document that will be shown to the buyer for signing. Please review and then add your signature which will be added to the document. ",-1)),r("div",T,[p(a,{nda:t.nda,getSellerSignature:!1},null,8,["nda"])]),t.nda.document_type=="sp"?(i(),o(g,{key:0},[e[2]||(e[2]=r("div",{class:"label-line"},"Please add your signature below",-1)),r("div",V,[p(c,{ref:"signature1",sigOption:t.state.option,w:"100%",h:"130px",disabled:t.state.disabled,onBegin:l.onSignatureBegin,class:"border border-gray-400"},null,8,["sigOption","disabled","onBegin"])]),t.signatureError?(i(),o("div",A,_(t.signatureError),1)):h("",!0),r("div",j,[r("button",{onClick:e[0]||(e[0]=m=>l.saveSignature("image/png")),class:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600"},"Save Signature"),r("button",{onClick:e[1]||(e[1]=(...m)=>l.clearSignature&&l.clearSignature(...m)),class:"px-4 py-2 bg-red-500 text-white rounded hover:bg-red-600"},"Clear")])],64)):h("",!0)],64)):(i(),o(g,{key:1},[e[4]||(e[4]=r("div",{class:"mt-4"}," The following is a preview of the NDA document that will be shown to the buyer for signing. ",-1)),r("div",F,[r("iframe",{src:"https://docs.google.com/gview?url="+encodeURIComponent(t.nda.document_url)+"&embedded=true",class:"w-full border border-gray-300 dark:border-gray-600 rounded",style:{height:"800px"},frameborder:"0"},null,8,O)]),r("div",R,[p(n,{isFullWidth:!0,isRounded:!0,onClick:l.submit,loading:s.loading,label:"Next"},null,8,["onClick","loading"])])],64))])):h("",!0)}const J=y(P,[["render",$]]);export{J 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.