@bigbinary/neeto-payments-frontend 5.0.1 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/app/javascript/src/translations/ar.json +2 -1
  2. package/app/javascript/src/translations/bg.json +2 -1
  3. package/app/javascript/src/translations/ca.json +2 -1
  4. package/app/javascript/src/translations/cs.json +2 -1
  5. package/app/javascript/src/translations/da.json +2 -1
  6. package/app/javascript/src/translations/de.json +2 -1
  7. package/app/javascript/src/translations/en.json +25 -0
  8. package/app/javascript/src/translations/es-MX.json +2 -1
  9. package/app/javascript/src/translations/es.json +2 -1
  10. package/app/javascript/src/translations/et.json +2 -1
  11. package/app/javascript/src/translations/fi.json +2 -1
  12. package/app/javascript/src/translations/fil.json +2 -1
  13. package/app/javascript/src/translations/fr.json +2 -1
  14. package/app/javascript/src/translations/hi.json +2 -1
  15. package/app/javascript/src/translations/hr.json +2 -1
  16. package/app/javascript/src/translations/id.json +2 -1
  17. package/app/javascript/src/translations/it.json +2 -1
  18. package/app/javascript/src/translations/ja.json +2 -1
  19. package/app/javascript/src/translations/ko.json +2 -1
  20. package/app/javascript/src/translations/nl.json +2 -1
  21. package/app/javascript/src/translations/pl.json +2 -1
  22. package/app/javascript/src/translations/pt-BR.json +2 -1
  23. package/app/javascript/src/translations/pt.json +2 -1
  24. package/app/javascript/src/translations/ro.json +2 -1
  25. package/app/javascript/src/translations/ru.json +2 -1
  26. package/app/javascript/src/translations/sk.json +2 -1
  27. package/app/javascript/src/translations/sl.json +2 -1
  28. package/app/javascript/src/translations/sv.json +2 -1
  29. package/app/javascript/src/translations/th.json +2 -1
  30. package/app/javascript/src/translations/tr.json +2 -1
  31. package/app/javascript/src/translations/uk.json +2 -1
  32. package/app/javascript/src/translations/vi.json +2 -1
  33. package/app/javascript/src/translations/zh-CN.json +2 -1
  34. package/app/javascript/src/translations/zh-TW.json +2 -1
  35. package/dist/AccountsDashboard.js +2 -2
  36. package/dist/CashPaymentButton.js +1 -0
  37. package/dist/CashPaymentButton.js.map +1 -1
  38. package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
  39. package/dist/ManualUpiConnect.js +1 -1
  40. package/dist/PaymentsDashboard.js +1 -1
  41. package/dist/PayoutsDashboard.js +2 -2
  42. package/dist/PayoutsPage.js +2 -2
  43. package/dist/RazorpayConnect.js +2 -2
  44. package/dist/RazorpayLinkedAccountForm.js +225 -0
  45. package/dist/RazorpayLinkedAccountForm.js.map +1 -0
  46. package/dist/RecurringPaymentSettings.js +1 -1
  47. package/dist/RefundsDashboard.js +1 -1
  48. package/dist/SplitTransfersDashboard.js +1 -1
  49. package/dist/StripeCheckoutSetting.js +1 -1
  50. package/dist/StripeConnect.js +3 -3
  51. package/dist/StripeManage.js +1 -1
  52. package/dist/TaxesDashboard.js +6 -3
  53. package/dist/TaxesDashboard.js.map +1 -1
  54. package/dist/cjs/AccountsDashboard.js +2 -2
  55. package/dist/cjs/CashPaymentButton.js +1 -0
  56. package/dist/cjs/CashPaymentButton.js.map +1 -1
  57. package/dist/cjs/CustomerCancelRecurringPaymentForm.js +1 -1
  58. package/dist/cjs/ManualUpiConnect.js +1 -1
  59. package/dist/cjs/PaymentsDashboard.js +1 -1
  60. package/dist/cjs/PayoutsDashboard.js +2 -2
  61. package/dist/cjs/PayoutsPage.js +2 -2
  62. package/dist/cjs/RazorpayConnect.js +2 -2
  63. package/dist/cjs/RazorpayLinkedAccountForm.js +227 -0
  64. package/dist/cjs/RazorpayLinkedAccountForm.js.map +1 -0
  65. package/dist/cjs/RecurringPaymentSettings.js +1 -1
  66. package/dist/cjs/RefundsDashboard.js +1 -1
  67. package/dist/cjs/SplitTransfersDashboard.js +1 -1
  68. package/dist/cjs/StripeCheckoutSetting.js +1 -1
  69. package/dist/cjs/StripeConnect.js +3 -3
  70. package/dist/cjs/StripeManage.js +1 -1
  71. package/dist/cjs/TaxesDashboard.js +6 -3
  72. package/dist/cjs/TaxesDashboard.js.map +1 -1
  73. package/dist/cjs/index.js +8 -6
  74. package/dist/cjs/index.js.map +1 -1
  75. package/dist/cjs/{queryConstants-DwAnNVdh.js → queryConstants-Cka1X6GX.js} +4 -2
  76. package/dist/cjs/queryConstants-Cka1X6GX.js.map +1 -0
  77. package/dist/cjs/{useAccountsApi-CgULdRoC.js → useAccountsApi-CJf2ILqh.js} +2 -2
  78. package/dist/cjs/{useAccountsApi-CgULdRoC.js.map → useAccountsApi-CJf2ILqh.js.map} +1 -1
  79. package/dist/cjs/{useIntegrationsApi-DW9jhoBZ.js → useIntegrationsApi-BLP7KuIR.js} +2 -2
  80. package/dist/cjs/{useIntegrationsApi-DW9jhoBZ.js.map → useIntegrationsApi-BLP7KuIR.js.map} +1 -1
  81. package/dist/cjs/{usePlatformApi-Bctdu9kJ.js → usePlatformApi-CPdK_K-y.js} +2 -2
  82. package/dist/cjs/{usePlatformApi-Bctdu9kJ.js.map → usePlatformApi-CPdK_K-y.js.map} +1 -1
  83. package/dist/index.js +7 -6
  84. package/dist/index.js.map +1 -1
  85. package/dist/{queryConstants-aYVM1oL2.js → queryConstants-DFKKEEo0.js} +4 -2
  86. package/dist/queryConstants-DFKKEEo0.js.map +1 -0
  87. package/dist/{useAccountsApi-CaI8RHWs.js → useAccountsApi-PGoHDLyL.js} +2 -2
  88. package/dist/{useAccountsApi-CaI8RHWs.js.map → useAccountsApi-PGoHDLyL.js.map} +1 -1
  89. package/dist/{useIntegrationsApi-BjpHElsW.js → useIntegrationsApi-C_P6r2ww.js} +2 -2
  90. package/dist/{useIntegrationsApi-BjpHElsW.js.map → useIntegrationsApi-C_P6r2ww.js.map} +1 -1
  91. package/dist/{usePlatformApi-DsH6LPXK.js → usePlatformApi-DBENGjOP.js} +2 -2
  92. package/dist/{usePlatformApi-DsH6LPXK.js.map → usePlatformApi-DBENGjOP.js.map} +1 -1
  93. package/package.json +8 -8
  94. package/dist/cjs/queryConstants-DwAnNVdh.js.map +0 -1
  95. package/dist/queryConstants-aYVM1oL2.js.map +0 -1
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "اسم",
233
- "placeholder": "أدخل الاسم"
233
+ "placeholder": "أدخل الاسم",
234
+ "helpText": "اسم الضريبة الذي تحدده هنا سيظهر على صفحة الجدولة الخاصة بك (مثل ضريبة القيمة المضافة - 10%) لعرض الضريبة المطبقة بوضوح."
234
235
  },
235
236
  "value": {
236
237
  "label": "القيمة",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Име",
233
- "placeholder": "Въведете име"
233
+ "placeholder": "Въведете име",
234
+ "helpText": "Името на данъка, което зададете тук, ще се появи на вашата страница за разписания (напр. ДДС – 10%), за да покаже ясно таксата, която се начислява."
234
235
  },
235
236
  "value": {
236
237
  "label": "Стойност",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nom",
233
- "placeholder": "Introdueix el nom"
233
+ "placeholder": "Introdueix el nom",
234
+ "helpText": "El nom del tribut que estableixis aquí apareixerà a la teva pàgina de programació (per exemple, IVA – 10%) per mostrar clarament el tribut que s'està cobrando."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valor",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Název",
233
- "placeholder": "Zadejte název"
233
+ "placeholder": "Zadejte název",
234
+ "helpText": "Název daně, který sem zadáte, se zobrazí na vaší stránce plánování (např. DPH – 10 %), aby bylo jasně vidět, jaká daň se vybírá."
234
235
  },
235
236
  "value": {
236
237
  "label": "Hodnota",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Navn",
233
- "placeholder": "Indtast navn"
233
+ "placeholder": "Indtast navn",
234
+ "helpText": "Den skattebetegnelse, du angiver her, vises på din planlægningsside (f.eks. MOMS – 10 %) for klart at vise den opkrævede skat."
234
235
  },
235
236
  "value": {
236
237
  "label": "Værdi",
@@ -525,7 +525,8 @@
525
525
  },
526
526
  "name": {
527
527
  "label": "Name",
528
- "placeholder": "Namen eingeben"
528
+ "placeholder": "Namen eingeben",
529
+ "helpText": "Der Steuername, den Sie hier festlegen, wird auf Ihrer Planungsseite angezeigt (z. B. MwSt. – 10%), um die berechnete Steuer klar anzuzeigen."
529
530
  },
530
531
  "value": {
531
532
  "label": "Wert",
@@ -412,6 +412,31 @@
412
412
  "notesPlaceholder": "Type notes here..."
413
413
  }
414
414
  },
415
+ "linkedAccount": {
416
+ "form": {
417
+ "labels": {
418
+ "email": "Email",
419
+ "phoneNumber": "Phone number",
420
+ "businessName": "Business name",
421
+ "subcategory": "Subcategory",
422
+ "businessType": "Business type",
423
+ "category": "Category",
424
+ "businessLegalInfo": "Business legal info",
425
+ "pan": "PAN",
426
+ "gst": "GST"
427
+ },
428
+ "placeholders": {
429
+ "email": "Enter email",
430
+ "phoneNumber": "Enter phone number",
431
+ "businessName": "Enter business name",
432
+ "subcategory": "Select subcategory",
433
+ "businessType": "Select business type",
434
+ "category": "Select category",
435
+ "pan": "Enter PAN",
436
+ "gst": "Enter GST"
437
+ }
438
+ }
439
+ },
415
440
  "upi": {
416
441
  "confirmModal": {
417
442
  "title": "Confirm UPI payment?",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nombre",
233
- "placeholder": "Ingresa el nombre"
233
+ "placeholder": "Ingresa el nombre",
234
+ "helpText": "El nombre del impuesto que establezcas aquí aparecerá en tu página de programación (por ejemplo, IVA – 10%) para mostrar claramente el impuesto que se está cobrando."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valor",
@@ -525,7 +525,8 @@
525
525
  },
526
526
  "name": {
527
527
  "label": "Nombre",
528
- "placeholder": "Ingresar nombre"
528
+ "placeholder": "Ingresar nombre",
529
+ "helpText": "El nombre del impuesto que establezcas aquí aparecerá en tu página de programación (por ejemplo, IVA - 10%) para mostrar claramente el impuesto que se está cobrando."
529
530
  },
530
531
  "value": {
531
532
  "label": "Valor",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nimi",
233
- "placeholder": "Sisestage nimi"
233
+ "placeholder": "Sisestage nimi",
234
+ "helpText": "Siin seadistatud maksu nimi kuvatakse teie ajakava lehel (nt KM – 10%), et selgelt näidata, millist maksusummat küsitakse."
234
235
  },
235
236
  "value": {
236
237
  "label": "Väärtus",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nimi",
233
- "placeholder": "Syötä nimi"
233
+ "placeholder": "Syötä nimi",
234
+ "helpText": "Tässä asettamasi veron nimi näkyy aikataulusivullasi (esim. ALV – 10 %) selkeästi näyttämässä perittävää veroa."
234
235
  },
235
236
  "value": {
236
237
  "label": "Arvo",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Pangalan",
233
- "placeholder": "Ilagay ang pangalan"
233
+ "placeholder": "Ilagay ang pangalan",
234
+ "helpText": "Ang pangalan ng buwis na itinatag mo dito ay lalabas sa iyong pahina ng pag-schedule (hal. VAT – 10%) upang malinaw na ipakita ang buwis na kinokolekta."
234
235
  },
235
236
  "value": {
236
237
  "label": "Halaga",
@@ -525,7 +525,8 @@
525
525
  },
526
526
  "name": {
527
527
  "label": "Nom",
528
- "placeholder": "Entrez le nom"
528
+ "placeholder": "Entrez le nom",
529
+ "helpText": "Le nom de la taxe que vous définissez ici apparaîtra sur votre page de planification (par exemple, TVA – 10 %) pour montrer clairement la taxe facturée."
529
530
  },
530
531
  "value": {
531
532
  "label": "Valeur",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "नाम",
233
- "placeholder": "नाम दर्ज करें"
233
+ "placeholder": "नाम दर्ज करें",
234
+ "helpText": "यहां सेट किया गया कर का नाम आपके अनुसूची पृष्ठ पर दिखाई देगा (जैसे VAT - 10%) ताकि स्पष्ट रूप से दर्शाया जा सके कि कौन सा कर लगाया जा रहा है।"
234
235
  },
235
236
  "value": {
236
237
  "label": "मान",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Naziv",
233
- "placeholder": "Unesite naziv"
233
+ "placeholder": "Unesite naziv",
234
+ "helpText": "Ime poreza koje ovdje postavite će se pojaviti na vašoj stranici za zakazivanje (npr. PDV – 10%) kako bi se jasno prikazalo koji se porez naplaćuje."
234
235
  },
235
236
  "value": {
236
237
  "label": "Vrijednost",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nama",
233
- "placeholder": "Masukkan nama"
233
+ "placeholder": "Masukkan nama",
234
+ "helpText": "Nama pajak yang Anda atur di sini akan muncul di halaman penjadwalan Anda (mis. PPN – 10%) untuk menunjukkan dengan jelas pajak yang dikenakan."
234
235
  },
235
236
  "value": {
236
237
  "label": "Nilai",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nome",
233
- "placeholder": "Inserisci nome"
233
+ "placeholder": "Inserisci nome",
234
+ "helpText": "Il nome dell'imposta che imposti qui apparirà sulla tua pagina di programmazione (ad es. IVA - 10%) per mostrare chiaramente l'imposta addebitata."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valore",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "名前",
233
- "placeholder": "名前を入力"
233
+ "placeholder": "名前を入力",
234
+ "helpText": "ここに設定した税名は、スケジュールページに表示されます(例:VAT – 10%)ので、課される税金が明確にわかるようになります。"
234
235
  },
235
236
  "value": {
236
237
  "label": "値",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "이름",
233
- "placeholder": "이름 입력"
233
+ "placeholder": "이름 입력",
234
+ "helpText": "여기에 설정한 세금 이름은 귀하의 예약 페이지에 나타납니다 (예: VAT – 10%) 세금이 부과되고 있음을 명확하게 보여줍니다."
234
235
  },
235
236
  "value": {
236
237
  "label": "값",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Naam",
233
- "placeholder": "Voer naam in"
233
+ "placeholder": "Voer naam in",
234
+ "helpText": "De belastingnaam die je hier instelt, zal verschijnen op je planningspagina (bijv. BTW - 10%) om duidelijk aan te geven welke belasting in rekening wordt gebracht."
234
235
  },
235
236
  "value": {
236
237
  "label": "Waarde",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nazwa",
233
- "placeholder": "Wprowadź nazwę"
233
+ "placeholder": "Wprowadź nazwę",
234
+ "helpText": "Nazwa podatku, którą ustawisz tutaj, pojawi się na twojej stronie harmonogramu (np. VAT - 10%), aby wyraźnie pokazać pobierany podatek."
234
235
  },
235
236
  "value": {
236
237
  "label": "Wartość",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nome",
233
- "placeholder": "Digite o nome"
233
+ "placeholder": "Digite o nome",
234
+ "helpText": "O nome do imposto que você definir aqui aparecerá na sua página de agendamento (por exemplo, VAT – 10%) para mostrar claramente o imposto que está sendo cobrado."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valor",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nome",
233
- "placeholder": "Digite o nome"
233
+ "placeholder": "Digite o nome",
234
+ "helpText": "O nome do imposto que você definir aqui aparecerá na sua página de agendamento (por exemplo, IVA – 10%) para mostrar claramente o imposto que está sendo cobrado."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valor",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Nume",
233
- "placeholder": "Introdu numele"
233
+ "placeholder": "Introdu numele",
234
+ "helpText": "Numele taxei pe care îl setezi aici va apărea pe pagina ta de programare (de exemplu, TVA – 10%) pentru a arăta în mod clar taxa care se percepe."
234
235
  },
235
236
  "value": {
236
237
  "label": "Valoare",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Имя",
233
- "placeholder": "Введите имя"
233
+ "placeholder": "Введите имя",
234
+ "helpText": "Название налога, которое вы зададите здесь, появится на вашей странице расписания (например, НДС - 10%), чтобы четко показать взимаемый налог."
234
235
  },
235
236
  "value": {
236
237
  "label": "Значение",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Názov",
233
- "placeholder": "Zadajte názov"
233
+ "placeholder": "Zadajte názov",
234
+ "helpText": "Názov dane, ktorý tu nastavíte, sa zobrazí na vašej stránke plánovania (napr. DPH – 10 %), aby jasne ukázal, aká daň sa účtuje."
234
235
  },
235
236
  "value": {
236
237
  "label": "Hodnota",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Ime",
233
- "placeholder": "Vnesite ime"
233
+ "placeholder": "Vnesite ime",
234
+ "helpText": "Ime davka, ki ga nastavite tukaj, se bo prikazalo na vaši strani za načrtovanje (npr. DDV – 10%), da jasno pokaže davek, ki se zaračunava."
234
235
  },
235
236
  "value": {
236
237
  "label": "Vrednost",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Namn",
233
- "placeholder": "Ange namn"
233
+ "placeholder": "Ange namn",
234
+ "helpText": "Skatte namnet du anger här kommer att visas på din schemaläggningssida (t.ex. moms - 10%) för att tydligt visa den skatt som tas ut."
234
235
  },
235
236
  "value": {
236
237
  "label": "Värde",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "ชื่อ",
233
- "placeholder": "กรอกรชื่อ"
233
+ "placeholder": "กรอกรชื่อ",
234
+ "helpText": "ชื่อภาษีที่คุณตั้งไว้ที่นี่จะแสดงบนหน้าการจัดตารางของคุณ (เช่น VAT – 10%) เพื่อแสดงให้เห็นอย่างชัดเจนถึงภาษีที่ถูกเรียกเก็บ"
234
235
  },
235
236
  "value": {
236
237
  "label": "ค่า",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Ad",
233
- "placeholder": "Adı girin"
233
+ "placeholder": "Adı girin",
234
+ "helpText": "Burada ayarladığınız vergi adı, tahsis sayfanızda (örneğin, KDV – %10) şarj edilen vergiyi açıkça göstermek için görünecektir."
234
235
  },
235
236
  "value": {
236
237
  "label": "Değer",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Ім'я",
233
- "placeholder": "Введіть ім'я"
233
+ "placeholder": "Введіть ім'я",
234
+ "helpText": "Назва податку, яку ви вкажете тут, з'явиться на вашій сторінці розкладу (наприклад, ПДВ – 10%) для чіткого відображення стягнутого податку."
234
235
  },
235
236
  "value": {
236
237
  "label": "Значення",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "Tên",
233
- "placeholder": "Nhập tên"
233
+ "placeholder": "Nhập tên",
234
+ "helpText": "Tên thuế bạn đặt ở đây sẽ xuất hiện trên trang lập lịch của bạn (ví dụ: VAT – 10%) để hiển thị rõ ràng thuế được tính."
234
235
  },
235
236
  "value": {
236
237
  "label": "Giá trị",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "名称",
233
- "placeholder": "输入名称"
233
+ "placeholder": "输入名称",
234
+ "helpText": "您在此设置的税名将在您的日程安排页面上显示(例如:增值税 - 10%),以清楚地显示所收取的税款。"
234
235
  },
235
236
  "value": {
236
237
  "label": "值",
@@ -230,7 +230,8 @@
230
230
  },
231
231
  "name": {
232
232
  "label": "名稱",
233
- "placeholder": "輸入名稱"
233
+ "placeholder": "輸入名稱",
234
+ "helpText": "您在此設置的稅名將顯示在您的排程頁面上(例如:增值稅 - 10%),以清楚顯示所收取的稅金。"
234
235
  },
235
236
  "value": {
236
237
  "label": "值",
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
30
30
  import Table from '@bigbinary/neetoui/Table';
31
31
  import NoData from '@bigbinary/neetoui/NoData';
32
32
  import Spinner from '@bigbinary/neetoui/Spinner';
33
- import { u as useFetchConnectedAccounts } from './useAccountsApi-CaI8RHWs.js';
33
+ import { u as useFetchConnectedAccounts } from './useAccountsApi-PGoHDLyL.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -39,7 +39,7 @@ import '@bigbinary/neeto-molecules/DateFormat';
39
39
  import '@bigbinary/neetoui/Tag';
40
40
  import '@bigbinary/neetoui/Tooltip';
41
41
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
42
- import './queryConstants-aYVM1oL2.js';
42
+ import './queryConstants-DFKKEEo0.js';
43
43
 
44
44
  var TAB = {
45
45
  all: "all",
@@ -49,6 +49,7 @@ var CashPaymentButton = function CashPaymentButton(_ref) {
49
49
  });
50
50
  };
51
51
  return /*#__PURE__*/jsx(Button, {
52
+ "data-cy": "payment-submit-button",
52
53
  disabled: isPending || isDisabled,
53
54
  label: label || t("neetoPayments.common.proceed"),
54
55
  loading: isPending || isLoading,
@@ -1 +1 @@
1
- {"version":3,"file":"CashPaymentButton.js","sources":["../app/javascript/src/components/CashPaymentButton.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport { Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useCreateCashPayment } from \"hooks/reactQuery/cash/usePaymentApi\";\n\nconst CashPaymentButton = ({\n label,\n payableId,\n payableType,\n tip,\n discountCode,\n customAmount,\n isDisabled = false,\n isLoading = false,\n onBeforePayment = noop,\n onFailedPayment = noop,\n onSuccessfulPayment = noop,\n}) => {\n const { t } = useTranslation();\n\n const { isPending, mutate: createCashPayment } = useCreateCashPayment({\n onSuccess: onSuccessfulPayment,\n onError: onFailedPayment,\n });\n\n const handleSubmit = () => {\n onBeforePayment();\n createCashPayment({\n payableId,\n payableType,\n discountCode,\n customAmount,\n tipAttributes: tip,\n });\n };\n\n return (\n <Button\n disabled={isPending || isDisabled}\n label={label || t(\"neetoPayments.common.proceed\")}\n loading={isPending || isLoading}\n onClick={handleSubmit}\n />\n );\n};\n\nexport default CashPaymentButton;\n"],"names":["CashPaymentButton","_ref","label","payableId","payableType","tip","discountCode","customAmount","_ref$isDisabled","isDisabled","_ref$isLoading","isLoading","_ref$onBeforePayment","onBeforePayment","noop","_ref$onFailedPayment","onFailedPayment","_ref$onSuccessfulPaym","onSuccessfulPayment","_useTranslation","useTranslation","t","_useCreateCashPayment","useCreateCashPayment","onSuccess","onError","isPending","createCashPayment","mutate","handleSubmit","tipAttributes","_jsx","Button","disabled","loading","onClick"],"mappings":";;;;;;;;;;;;;;;AAMA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAYjB;AAAA,EAAA,IAXJC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;IACHC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IAAAC,eAAA,GAAAP,IAAA,CACZQ,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;IAAAE,cAAA,GAAAT,IAAA,CAClBU,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,cAAA;IAAAE,oBAAA,GAAAX,IAAA,CACjBY,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,oBAAA;IAAAG,oBAAA,GAAAd,IAAA,CACtBe,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAGD,KAAAA,CAAAA,GAAAA,IAAI,GAAAC,oBAAA;IAAAE,qBAAA,GAAAhB,IAAA,CACtBiB,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAAD,qBAAA,KAAGH,KAAAA,CAAAA,GAAAA,IAAI,GAAAG,qBAAA;AAE1B,EAAA,IAAAE,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;EAET,IAAAC,qBAAA,GAAiDC,oBAAoB,CAAC;AACpEC,MAAAA,SAAS,EAAEN,mBAAmB;AAC9BO,MAAAA,OAAO,EAAET;AACX,KAAC,CAAC;IAHMU,SAAS,GAAAJ,qBAAA,CAATI,SAAS;IAAUC,iBAAiB,GAAAL,qBAAA,CAAzBM,MAAM;AAKzB,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,GAAS;AACzBhB,IAAAA,eAAe,EAAE;AACjBc,IAAAA,iBAAiB,CAAC;AAChBxB,MAAAA,SAAS,EAATA,SAAS;AACTC,MAAAA,WAAW,EAAXA,WAAW;AACXE,MAAAA,YAAY,EAAZA,YAAY;AACZC,MAAAA,YAAY,EAAZA,YAAY;AACZuB,MAAAA,aAAa,EAAEzB;AACjB,KAAC,CAAC;GACH;EAED,oBACE0B,GAAA,CAACC,MAAM,EAAA;IACLC,QAAQ,EAAEP,SAAS,IAAIjB,UAAW;AAClCP,IAAAA,KAAK,EAAEA,KAAK,IAAImB,CAAC,CAAC,8BAA8B,CAAE;IAClDa,OAAO,EAAER,SAAS,IAAIf,SAAU;AAChCwB,IAAAA,OAAO,EAAEN;AAAa,GACvB,CAAC;AAEN;;;;"}
1
+ {"version":3,"file":"CashPaymentButton.js","sources":["../app/javascript/src/components/CashPaymentButton.jsx"],"sourcesContent":["import { noop } from \"neetocist\";\nimport { Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useCreateCashPayment } from \"hooks/reactQuery/cash/usePaymentApi\";\n\nconst CashPaymentButton = ({\n label,\n payableId,\n payableType,\n tip,\n discountCode,\n customAmount,\n isDisabled = false,\n isLoading = false,\n onBeforePayment = noop,\n onFailedPayment = noop,\n onSuccessfulPayment = noop,\n}) => {\n const { t } = useTranslation();\n\n const { isPending, mutate: createCashPayment } = useCreateCashPayment({\n onSuccess: onSuccessfulPayment,\n onError: onFailedPayment,\n });\n\n const handleSubmit = () => {\n onBeforePayment();\n createCashPayment({\n payableId,\n payableType,\n discountCode,\n customAmount,\n tipAttributes: tip,\n });\n };\n\n return (\n <Button\n data-cy=\"payment-submit-button\"\n disabled={isPending || isDisabled}\n label={label || t(\"neetoPayments.common.proceed\")}\n loading={isPending || isLoading}\n onClick={handleSubmit}\n />\n );\n};\n\nexport default CashPaymentButton;\n"],"names":["CashPaymentButton","_ref","label","payableId","payableType","tip","discountCode","customAmount","_ref$isDisabled","isDisabled","_ref$isLoading","isLoading","_ref$onBeforePayment","onBeforePayment","noop","_ref$onFailedPayment","onFailedPayment","_ref$onSuccessfulPaym","onSuccessfulPayment","_useTranslation","useTranslation","t","_useCreateCashPayment","useCreateCashPayment","onSuccess","onError","isPending","createCashPayment","mutate","handleSubmit","tipAttributes","_jsx","Button","disabled","loading","onClick"],"mappings":";;;;;;;;;;;;;;;AAMA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAYjB;AAAA,EAAA,IAXJC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,GAAG,GAAAJ,IAAA,CAAHI,GAAG;IACHC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IAAAC,eAAA,GAAAP,IAAA,CACZQ,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,eAAA;IAAAE,cAAA,GAAAT,IAAA,CAClBU,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,cAAA;IAAAE,oBAAA,GAAAX,IAAA,CACjBY,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,oBAAA;IAAAG,oBAAA,GAAAd,IAAA,CACtBe,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAGD,KAAAA,CAAAA,GAAAA,IAAI,GAAAC,oBAAA;IAAAE,qBAAA,GAAAhB,IAAA,CACtBiB,mBAAmB;AAAnBA,IAAAA,mBAAmB,GAAAD,qBAAA,KAAGH,KAAAA,CAAAA,GAAAA,IAAI,GAAAG,qBAAA;AAE1B,EAAA,IAAAE,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;EAET,IAAAC,qBAAA,GAAiDC,oBAAoB,CAAC;AACpEC,MAAAA,SAAS,EAAEN,mBAAmB;AAC9BO,MAAAA,OAAO,EAAET;AACX,KAAC,CAAC;IAHMU,SAAS,GAAAJ,qBAAA,CAATI,SAAS;IAAUC,iBAAiB,GAAAL,qBAAA,CAAzBM,MAAM;AAKzB,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,GAAS;AACzBhB,IAAAA,eAAe,EAAE;AACjBc,IAAAA,iBAAiB,CAAC;AAChBxB,MAAAA,SAAS,EAATA,SAAS;AACTC,MAAAA,WAAW,EAAXA,WAAW;AACXE,MAAAA,YAAY,EAAZA,YAAY;AACZC,MAAAA,YAAY,EAAZA,YAAY;AACZuB,MAAAA,aAAa,EAAEzB;AACjB,KAAC,CAAC;GACH;EAED,oBACE0B,GAAA,CAACC,MAAM,EAAA;AACL,IAAA,SAAA,EAAQ,uBAAuB;IAC/BC,QAAQ,EAAEP,SAAS,IAAIjB,UAAW;AAClCP,IAAAA,KAAK,EAAEA,KAAK,IAAImB,CAAC,CAAC,8BAA8B,CAAE;IAClDa,OAAO,EAAER,SAAS,IAAIf,SAAU;AAChCwB,IAAAA,OAAO,EAAEN;AAAa,GACvB,CAAC;AAEN;;;;"}
@@ -9,7 +9,7 @@ import axios from 'axios';
9
9
  import { B as BASE_URL } from './index-DWY7rHan.js';
10
10
  import { useQuery } from '@tanstack/react-query';
11
11
  import { isNotNil } from 'ramda';
12
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
12
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  import 'i18next';
15
15
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
5
5
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
6
6
  import axios from 'axios';
7
7
  import { B as BASE_URL } from './index-DWY7rHan.js';
8
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
8
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
9
9
  import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
10
10
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
11
11
  import Form from '@bigbinary/neetoui/formik/Form';
@@ -12,7 +12,7 @@ import { E as ExportModal } from './ExportModal-DaLJ7KS6.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import axios from 'axios';
14
14
  import { B as BASE_URL, r as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, s as formatAmount, t as formatCurrency, v as getUniquePaymentProviders, w as buildDefaultTableColumns, S as SORT_DIRECTIONS, x as processDataIndex, y as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, o as DEFAULT_PAGE_VALUES, z as DASHBOARD_KIND } from './index-DWY7rHan.js';
15
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
15
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
16
16
  import { t } from 'i18next';
17
17
  import { toLabelAndValue, isNotPresent, snakeToCamelCase, humanize, isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
18
18
  import { useTableConfigurations } from '@bigbinary/neeto-molecules/Columns';
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
30
30
  import Table from '@bigbinary/neetoui/Table';
31
31
  import NoData from '@bigbinary/neetoui/NoData';
32
32
  import Spinner from '@bigbinary/neetoui/Spinner';
33
- import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-DsH6LPXK.js';
33
+ import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-DBENGjOP.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -40,7 +40,7 @@ import '@bigbinary/neetoui/Tag';
40
40
  import '@bigbinary/neetoui/Tooltip';
41
41
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
42
42
  import 'qs';
43
- import './queryConstants-aYVM1oL2.js';
43
+ import './queryConstants-DFKKEEo0.js';
44
44
 
45
45
  var TAB = {
46
46
  all: "all",
@@ -5,7 +5,7 @@ import Typography from '@bigbinary/neetoui/Typography';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { useParams } from 'react-router-dom/cjs/react-router-dom';
7
7
  import { r as renderStatus, a as renderDate } from './renderFunctions-DeEeLQ1Y.js';
8
- import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DsH6LPXK.js';
8
+ import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DBENGjOP.js';
9
9
  import Button from '@bigbinary/neetoui/Button';
10
10
  import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
11
11
  import { n as buildStripePayoutLink } from './index-DWY7rHan.js';
@@ -21,7 +21,7 @@ import '@tanstack/react-query';
21
21
  import '@bigbinary/neeto-commons-frontend/react-utils';
22
22
  import 'axios';
23
23
  import 'qs';
24
- import './queryConstants-aYVM1oL2.js';
24
+ import './queryConstants-DFKKEEo0.js';
25
25
  import '@bigbinary/neeto-commons-frontend/constants';
26
26
  import 'decimal.js';
27
27
  import '@bigbinary/neeto-commons-frontend/utils';
@@ -13,8 +13,8 @@ import Spinner from '@bigbinary/neetoui/Spinner';
13
13
  import Button from '@bigbinary/neetoui/Button';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useHistory } from 'react-router-dom';
16
- import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-BjpHElsW.js';
17
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
16
+ import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-C_P6r2ww.js';
17
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
18
18
  import { E as ERROR_TYPE, M as MAX_POLLING_TIME, P as POLLING_INTERVAL } from './index-DWY7rHan.js';
19
19
  import { jsxs, jsx } from 'react/jsx-runtime';
20
20
  import '@babel/runtime/helpers/defineProperty';