PageSourceSearch

https://vue-website-int-placeholder.firebaseapp.com/_nuxt/B7J3yQ-R.js

js vue-website-int-placeholder.firebaseapp.com collected 2026-10-03 14:09:25 UTC 6,042 bytes, 1 lines download raw bytes

1import{_ as W}from"./-78Jkb_K.js";import{u as j,_ as H}from"./uWwfNKOT.js";import{getDoc as M,doc as D,updateDoc as Y,serverTimestamp as G}from"./B2oXtaOK.js";/* empty css        *//* empty css        */import{ab as J,a as K,b as O,c as Q,B as N,o as X,u as B,Y as Z,e as q,f as a,g as i,w as s,V as ee,h as te,k as o,l as se,t as n,x as u,n as d,m as p,i as f,a3 as ae,a4 as ne,W as C,j as oe,y as w,a6 as ie,p as U,a1 as re,z as le,r as c,A as l,ag as de}from"./CZhR5Udp.js";import{V as T}from"./NqP6OVrD.js";import"./moVgbmjB.js";import"./CR4VAfIZ.js";const ue={class:"page ticketsystem-page"},ce={style:{"min-height":"80vh","padding-top":"120px","padding-bottom":"60px"}},me={key:0,class:"text-center py-16"},pe={class:"text-body-1 mt-4 text-medium-emphasis"},ge={class:"text-h5 font-weight-bold mb-2"},fe={class:"text-body-1 text-medium-emphasis"},_e={class:"text-h5 font-weight-bold mb-2"},ye={class:"text-body-1 text-medium-emphasis"},ve={class:"text-h5 font-weight-bold mb-2"},xe={class:"text-body-1 text-medium-emphasis"},he={class:"text-h5 font-weight-bold mb-2"},be={class:"text-body-1 text-medium-emphasis"},ke={class:"text-h6 font-weight-bold"},Se={class:"text-body-2 text-medium-emphasis"},$e=["src","title"],qe={class:"text-caption text-medium-emphasis mb-4"},we={class:"text-body-2 mb-2"},Ve={__name:"[id]",setup(Ce){const{t:_}=K(),V=O().params.id,{generateSignedPdf:z}=j();Q(N(()=>({title:_("quoteSign.seoTitle"),description:"",noindex:!0})));const P=c(!0),y=c(null),r=c(null),g=c(null),v=c(!1),x=c(!1),h=c(null),A=c(!1),E=N(()=>{var t;return(t=r.value)!=null&&t.expiresAt?(r.value.expiresAt.toDate?r.value.expiresAt.toDate():new Date(r.value.expiresAt))<new Date:!1});X(async()=>{try{const{$db:e}=B(),t=await M(D(e,"quotes",V));if(!t.exists()){y.value=_("quoteSign.notFound");return}r.value={id:t.id,...t.data()}}catch(e){y.value=e.message||_("quoteSign.loadError")}finally{P.value=!1}}),Z(g,e=>{e&&de(()=>e.initCanvas())});function I(){var e;(e=g.value)==null||e.clear(),v.value=!1}async function R(){var e;if((e=g.value)!=null&&e.isEmpty()){v.value=!0;return}v.value=!1,x.value=!0,h.value=null;try{const{$db:t}=B(),b=g.value.toDataURL(),m=r.value,k=`${m.contactFirstName||""} ${m.contactLastName||""}`.trim(),{signedPdfUrl:S,signedPdfPath:$,documentHash:F,clientIp:L}=await z({eulaPdfUrl:m.fileUrl,signatureDataUrl:b,signerName:k,companyName:m.recipientCompanyName||"",titleLine:m.title||"",storagePath:`quotes/${V}/signed_${Date.now()}.pdf`,skipAuditTrail:!0});await Y(D(t,"quotes",V),{status:"signed",signedAt:G(),signedPdfUrl:S,signedPdfPath:$,documentHash:F,signatureBase64:b,signerIp:L,signerUserAgent:navigator.userAgent}),A.value=!0}catch(t){h.value=t.message||_("quoteSign.signError")}finally{x.value=!1}}return(e,t)=>{const b=W,m=H;return l(),q("div",ue,[a(b),i("section",ce,[a(le,null,{default:s(()=>[a(ee,{justify:"center"},{default:s(()=>[a(te,{cols:"12",md:"10",lg:"8"},{default:s(()=>{var k,S,$;return[o(P)?(l(),q("div",me,[a(se,{indeterminate:"",color:"primary",size:"48"}),i("div",pe,n(e.$t("quoteSign.loading")),1)])):o(y)?(l(),u(T,{key:1,type:"error",variant:"tonal",class:"my-8"},{default:s(()=>[d(n(o(y)),1)]),_:1})):((k=o(r))==null?void 0:k.status)==="signed"?(l(),u(f,{key:2,rounded:"xl",variant:"outlined",class:"pa-8 text-center"},{default:s(()=>[a(p,{size:"64",color:"success",class:"mb-4"},{default:s(()=>[...t[0]||(t[0]=[d("mdi-check-circle-outline",-1)])]),_:1}),i("h2",ge,n(e.$t("quoteSign.alreadySigned")),1),i("p",fe,n(e.$t("quoteSign.alreadySignedText")),1)]),_:1})):o(E)?(l(),u(f,{key:3,rounded:"xl",variant:"outlined",class:"pa-8 text-center"},{default:s(()=>[a(p,{size:"64",color:"warning",class:"mb-4"},{default:s(()=>[...t[1]||(t[1]=[d("mdi-clock-alert-outline",-1)])]),_:1}),i("h2",_e,n(e.$t("quoteSign.expired")),1),i("p",ye,n(e.$t("quoteSign.expiredText")),1)]),_:1})):((S=o(r))==null?void 0:S.status)==="revoked"?(l(),u(f,{key:4,rounded:"xl",variant:"outlined",class:"pa-8 text-center"},{default:s(()=>[a(p,{size:"64",color:"error",class:"mb-4"},{default:s(()=>[...t[2]||(t[2]=[d("mdi-cancel",-1)])]),_:1}
1),i("h2",ve,n(e.$t("quoteSign.revoked")),1),i("p",xe,n(e.$t("quoteSign.revokedText")),1)]),_:1})):(($=o(r))==null?void 0:$.status)==="pending"?(l(),q(ae,{key:5},[o(A)?(l(),u(f,{key:0,rounded:"xl",variant:"outlined",class:"pa-8 text-center"},{default:s(()=>[a(p,{size:"64",color:"success",class:"mb-4"},{default:s(()=>[...t[3]||(t[3]=[d("mdi-check-circle-outline",-1)])]),_:1}),i("h2",he,n(e.$t("quoteSign.successTitle")),1),i("p",be,n(e.$t("quoteSign.successText")),1)]),_:1})):(l(),u(f,{key:1,rounded:"xl",variant:"outlined"},{default:s(()=>[a(ne,{class:"d-flex align-center pa-6"},{default:s(()=>[a(p,{color:"primary",class:"mr-3"},{default:s(()=>[...t[4]||(t[4]=[d("mdi-file-sign",-1)])]),_:1}),i("div",null,[i("div",ke,n(o(r).title),1),i("div",Se,n(e.$t("quoteSign.forCompany",{company:o(r).recipientCompanyName})),1)])]),_:1}),a(C),a(oe,{class:"pa-6"},{default:s(()=>[o(r).fileUrl?(l(),q("iframe",{key:0,src:o(r).fileUrl,class:"pdf-preview mb-4",title:e.$t("quoteSign.pdfPreview")},null,8,$e)):w("",!0),i("p",qe,n(e.$t("reseller.signature.pdfFallback")),1),a(C,{class:"my-4"}),i("p",we,n(e.$t("reseller.signature.signHere")),1),a(m,{ref_key:"signaturePadRef",ref:g},null,512),o(v)?(l(),u(T,{key:1,type:"warning",density:"compact",class:"mt-2"},{default:s(()=>[d(n(e.$t("reseller.signature.emptyWarning")),1)]),_:1})):w("",!0),o(h)?(l(),u(T,{key:2,type:"error",density:"compact",class:"mt-2"},{default:s(()=>[d(n(o(h)),1)]),_:1})):w("",!0)]),_:1}),a(C),a(ie,{class:"pa-6"},{default:s(()=>[a(U,{variant:"outlined",disabled:o(x),onClick:I},{default:s(()=>[d(n(e.$t("reseller.signature.clearBtn")),1)]),_:1},8,["disabled"]),a(re),a(U,{color:"primary",size:"large",loading:o(x),onClick:R},{default:s(()=>[a(p,{start:""},{default:s(()=>[...t[5]||(t[5]=[d("mdi-draw-pen",-1)])]),_:1}),d(" "+n(e.$t("quoteSign.confirmBtn")),1)]),_:1},8,["loading"])]),_:1})]),_:1}))],64)):w("",!0)]}),_:1})]),_:1})]),_:1})])])}}},Re=J(Ve,[["__scopeId","data-v-4a72a9b9"]]);export{Re 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.