import{r as i,d as o,h as d}from"./p-f8363b1b.js";import{s as l}from"./p-c78d1e1b.js";import"./p-3775d1fc.js";import"./p-80de33dc.js";import"./p-c2fbed0d.js";import"./p-5717491f.js";import"./p-de14d315.js";const n=class{constructor(d){i(this,d),this.fireenjinFetch=o(this,"fireenjinFetch",7),this.user={}}async fetchJob(){this.jobId&&this.fireenjinFetch.emit({endpoint:"findJob",params:{id:this.jobId,withPayments:!0,withUsers:!0,withSites:!0,withPayModel:!0,withPhotos:!0,withEfiles:!0,withPayables:!1,withReadings:!0}})}componentDidLoad(){!(null==l?void 0:l.job)&&this.jobId&&this.fetchJob()}render(){var i,o,n,t,s,v,e,a,u,r,p,h,m,c,f,b,j,y,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:(null===(i=null==l?void 0:l.job)||void 0===i?void 0:i.isFranchise)&&(null===(t=null===(n=null===(o=l.config)||void 0===o?void 0:o.franchise)||void 0===n?void 0:n.stripe)||void 0===t?void 0:t.key)?l.config.franchise.stripe.key:null===(v=null===(s=l.config)||void 0===s?void 0:s.stripe)||void 0===v?void 0:v.key,dadeKey:(null===(e=null==l?void 0:l.job)||void 0===e?void 0:e.isFranchise)&&(null===(r=null===(u=null===(a=l.config)||void 0===a?void 0:a.franchise)||void 0===u?void 0:u.dade)||void 0===r?void 0:r.apiKey)?l.config.franchise.dade.apiKey:null===(h=null===(p=l.config)||void 0===p?void 0:p.dade)||void 0===h?void 0:h.apiKey,dadeUrl:(null===(m=null==l?void 0:l.job)||void 0===m?void 0:m.isFranchise)&&(null===(b=null===(f=null===(c=l.config)||void 0===c?void 0:c.franchise)||void 0===f?void 0:f.dade)||void 0===b?void 0:b.url)?l.config.franchise.dade.url:null===(y=null===(j=l.config)||void 0===j?void 0:j.dade)||void 0===y?void 0:y.url,userId:null===(w=null==l?void 0:l.session)||void 0===w?void 0:w.uid})),d("floodteam-navigation-footer",null)]}};n.style="";export{n as app_pay}