import { r as registerInstance, h } from './index-33e43734.js';
import { s as state } from './store-b9af0ae0.js';
import './index-91eb4513.js';
import './getCache-f7c123d8.js';
import './_commonjsHelpers-cca61ea8.js';
import './logic-2eecfe1e.js';
import './index-964da72a.js';

const appPayCss = "";

let AppPay = class {
  constructor(hostRef) {
    registerInstance(this, hostRef);
    this.user = {};
  }
  render() {
    var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
    return [
      h("ion-content", { class: "ion-padding" }, h("floodteam-title-bar", { back: `/jobs/${this.jobId}`, icon: "logo-usd" }, h("ion-router-link", { href: "/payments" }, "Payments")), h("floodteam-epay", { jobId: this.jobId, stripeKey: ((_a = state === null || state === void 0 ? void 0 : state.job) === null || _a === void 0 ? void 0 : _a.isFranchise) && ((_d = (_c = (_b = state.config) === null || _b === void 0 ? void 0 : _b.franchise) === null || _c === void 0 ? void 0 : _c.stripe) === null || _d === void 0 ? void 0 : _d.key)
          ? state.config.franchise.stripe.key
          : (_f = (_e = state.config) === null || _e === void 0 ? void 0 : _e.stripe) === null || _f === void 0 ? void 0 : _f.key, dadeKey: ((_g = state === null || state === void 0 ? void 0 : state.job) === null || _g === void 0 ? void 0 : _g.isFranchise) && ((_k = (_j = (_h = state.config) === null || _h === void 0 ? void 0 : _h.franchise) === null || _j === void 0 ? void 0 : _j.dade) === null || _k === void 0 ? void 0 : _k.apiKey)
          ? state.config.franchise.dade.apiKey
          : (_m = (_l = state.config) === null || _l === void 0 ? void 0 : _l.dade) === null || _m === void 0 ? void 0 : _m.apiKey, dadeUrl: ((_o = state === null || state === void 0 ? void 0 : state.job) === null || _o === void 0 ? void 0 : _o.isFranchise) && ((_r = (_q = (_p = state.config) === null || _p === void 0 ? void 0 : _p.franchise) === null || _q === void 0 ? void 0 : _q.dade) === null || _r === void 0 ? void 0 : _r.url)
          ? state.config.franchise.dade.url
          : (_t = (_s = state.config) === null || _s === void 0 ? void 0 : _s.dade) === null || _t === void 0 ? void 0 : _t.url, userId: (_u = state === null || state === void 0 ? void 0 : state.session) === null || _u === void 0 ? void 0 : _u.uid })),
      h("floodteam-navigation-footer", null),
    ];
  }
};
AppPay.style = appPayCss;

export { AppPay as app_pay };

//# sourceMappingURL=app-pay.entry.js.map