PageSourceSearch

https://app.przetargi.io/assets/paymentMethod.content-CqNmaV5t.js

js przetargi.io collected 2026-10-09 01:27:50 UTC 2,418 bytes, 1 lines download raw bytes

1import{aw as v,cK as N,j as e,ac as P,az as w,ar as s,aF as A,cF as D}from"./index-Ozl4GyvN.js";import{d as F,n as S,u as E,P as h,S as t,C as m,e as u,f as x,g as j,h as p,o as L,L as k}from"./app.component-CSz9esQu.js";import{P as y}from"./pageHeadline.component-CUy7vhIi.js";const Q=()=>{var c;const M=F(),{allPaymentMethods:g}=S(),{data:a}=E(),{data:d,loading:b}=v(N,{variables:{tenantId:(c=a==null?void 0:a.id)!=null?c:""},skip:!(a!=null&&a.id)});if(b)return e.jsx(h,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsx(y,{header:e.jsx(t,{className:"h-6 w-60"}),subheader:e.jsx(t,{className:"h-4 w-72"})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs(m,{children:[e.jsxs(u,{children:[e.jsx(x,{children:e.jsx(t,{className:"h-5 w-32"})}),e.jsx(j,{children:e.jsx(t,{className:"h-4 w-48"})})]}),e.jsx(p,{children:e.jsx("div",{className:"p-2 border rounded-md bg-secondary",children:e.jsx(t,{className:"h-8 w-full"})})})]}),e.jsx(t,{className:"h-10 w-40"})]})})]})});const n=P(w,d==null?void 0:d.activeSubscription),i=L(r=>r,g),o=i.find(({id:r})=>{var l;return r===((l=n==null?void 0:n.defaultPaymentMethod)==null?void 0:l.id)}),f=()=>e.jsxs(m,{children:[e.jsxs(u,{children:[e.jsx(x,{children:e.jsx(s,{defaultMessage:"Current method:",id:"My subscription / Current method"})}),e.jsx(j,{children:e.jsx(s,{defaultMessage:"Credit card",id:"My subscription / Credit card"})})]}),e.jsx(p,{children:e.jsx("div",{className:"p-2 border rounded-md bg-secondary",children:e.jsx(D,{method:o})})})]}),C=()=>e.jsx("div",{className:"mt-1 text-muted-foreground text-sm",children:e.jsx(s,{defaultMessage:"You don't have any payment method added.",id:"My subscription / No credit card"})});return e.jsx(h,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsx(y,{header:e.jsx(s,{defaultMessage:"Payment methods",id:"My subscription / Payment methods header"}),subheader:e.jsx(s,{defaultMessage:"Manage your payment methods in application",id:"My subscription / Payment methods subheader"})}),e.jsx("div",{children:e.jsxs("div",{className:"space-y-3",children:[o&&f(),i.length===0&&C(),e.jsx(k,{to:M(A.paymentMethods.edit),variant:"default",children:i.length?e.jsx(s,{defaultMessage:"Edit payment methods",id:"My subscription / Edit payment method button"}):e.jsx(s,{defaultMessage:"Add payment methods",id:"My subscription / Add payment method button"})})]})})]})})};export{Q 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.