import{r as i,d as o,h as d}from"./p-03169580.js";import{s as l}from"./p-e1ee6da1.js";import"./p-59c95c5f.js";import"./p-3775d1fc.js";import"./p-80de33dc.js";import"./p-c2fbed0d.js";import"./p-5717491f.js";import"./p-de14d315.js";const t="";let n=class{constructor(d){i(this,d);this.fireenjinFetch=o(this,"fireenjinFetch",7);this.user={}}async fetchJob(){if(!this.jobId)return;this.fireenjinFetch.emit({endpoint:"findJob",params:{id:this.jobId,withPayments:true,withUsers:true,withSites:true,withPayModel:true,withPhotos:true,withEfiles:true,withPayables:false,withReadings:true}})}componentDidLoad(){if(!(l===null||l===void 0?void 0:l.job)&&this.jobId)this.fetchJob()}render(){var i,o,t,n,e,v,s,r,u,a,p,h,f,m,c,j,y,b,w;return[d("ion-content",{class:"ion-padding"},d("floodteam-title-bar",{back:`/jobs/${this.jobId}`,icon:"logo-usd"},d("ion-router-link",{href:"/payments"},"Payments")),d("floodteam-epay",{jobId:this.jobId,stripeKey:((i=l===null||l===void 0?void 0:l.job)===null||i===void 0?void 0:i.isFranchise)&&((n=(t=(o=l.config)===null||o===void 0?void 0:o.franchise)===null||t===void 0?void 0:t.stripe)===null||n===void 0?void 0:n.key)?l.config.franchise.stripe.key:(v=(e=l.config)===null||e===void 0?void 0:e.stripe)===null||v===void 0?void 0:v.key,dadeKey:((s=l===null||l===void 0?void 0:l.job)===null||s===void 0?void 0:s.isFranchise)&&((a=(u=(r=l.config)===null||r===void 0?void 0:r.franchise)===null||u===void 0?void 0:u.dade)===null||a===void 0?void 0:a.apiKey)?l.config.franchise.dade.apiKey:(h=(p=l.config)===null||p===void 0?void 0:p.dade)===null||h===void 0?void 0:h.apiKey,dadeUrl:((f=l===null||l===void 0?void 0:l.job)===null||f===void 0?void 0:f.isFranchise)&&((j=(c=(m=l.config)===null||m===void 0?void 0:m.franchise)===null||c===void 0?void 0:c.dade)===null||j===void 0?void 0:j.url)?l.config.franchise.dade.url:(b=(y=l.config)===null||y===void 0?void 0:y.dade)===null||b===void 0?void 0:b.url,userId:(w=l===null||l===void 0?void 0:l.session)===null||w===void 0?void 0:w.uid})),d("floodteam-navigation-footer",null)]}};n.style=t;export{n as app_pay};
//# sourceMappingURL=p-0a4bc540.entry.js.map