@feedmepos/mf-payment 1.11.22-dev → 1.12.0

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 (162) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-DEkSpYbw.js +118 -0
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DlTlaRr0.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZeyS_-_.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CqFT58M_.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BGU64S5Z.js} +3 -3
  4. package/dist/{Chargeback-D71IAGTk.js → Chargeback-DwXllRT4.js} +9 -9
  5. package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js → DateRangePicker.vue_vue_type_script_setup_true_lang-5ZaLjKl_.js} +2 -2
  6. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Dj3fMKVr.js → DocumentViewer.vue_vue_type_script_setup_true_lang-saQlwl6a.js} +857 -857
  7. package/dist/{ExternalTerminal-Cc9qwfN3.js → ExternalTerminal-DWnv8BaM.js} +31 -31
  8. package/dist/{OnboardForm-oAWTQnVu.js → OnboardForm--to1SX2z.js} +631 -694
  9. package/dist/{OnboardForm-DQ44zTWg.js → OnboardForm-BWIWimOG.js} +8 -8
  10. package/dist/OnboardSubmission-BtiI1ewF.js +449 -0
  11. package/dist/{OnboardSubmission-CSDvUix8.js → OnboardSubmission-DFhK_eus.js} +7 -7
  12. package/dist/{PaymentCheckout-oHQmbYkX.js → PaymentCheckout-CsDfQl6k.js} +4 -4
  13. package/dist/{mascot-side-BE_abER6.js → PayoutAccount-DtUHIt8d.js} +598 -206
  14. package/dist/{PayoutAccount-Dx8OtJxp.js → PayoutAccount-DxC8i69H.js} +9 -9
  15. package/dist/{PayoutAccountSetting-DoCZVhn3.js → PayoutAccountSetting-z-TySDXR.js} +10 -10
  16. package/dist/{Restaurant-Ct9aQWSp.js → Restaurant-3NdsiWwv.js} +5 -5
  17. package/dist/{RestaurantSetting-D7Yuuw47.js → RestaurantSetting-Cyn1i8dn.js} +9 -23
  18. package/dist/Settlement--SIL-7He.js +625 -0
  19. package/dist/{Settlement-gUV3TF4A.js → Settlement-CiKtgAZ4.js} +5 -5
  20. package/dist/{SettlementTransactions-BY3T-dG3.js → SettlementTransactions-C52wiVAb.js} +6 -6
  21. package/dist/{SettlementTransactions-DIkkrW6-.js → SettlementTransactions-CI2SHJB3.js} +97 -106
  22. package/dist/{Status.vue_vue_type_script_setup_true_lang-CQlT9Qj_.js → Status.vue_vue_type_script_setup_true_lang-DgqA7PhV.js} +1 -1
  23. package/dist/{Terminal-CPoxr6Ga.js → Terminal-Cx-X-ik5.js} +19 -19
  24. package/dist/{TerminalSetting-hmswppko.js → TerminalSetting-DY0EYdD-.js} +650 -776
  25. package/dist/{TerminalTemplate-B3zOtzmP.js → TerminalTemplate-BORrJdEH.js} +7 -7
  26. package/dist/{TerminalTemplateSetting-2R_LV6YP.js → TerminalTemplateSetting-CYaaQ5jC.js} +6 -6
  27. package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js → TextInputDialog.vue_vue_type_script_setup_true_lang-CJ29Mqtm.js} +1 -1
  28. package/dist/{Transaction-CE5Y7oSP.js → Transaction-Bj9ckoKD.js} +19 -20
  29. package/dist/{Transaction-BV-_41-w.js → Transaction-D1W9J-YG.js} +54 -56
  30. package/dist/{TransactionOld-B2i6FWoP.js → TransactionOld-C-3Y9idi.js} +11 -12
  31. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D07Iu5dG.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C6ybTX_E.js} +2 -2
  32. package/dist/api/document/index.d.ts +0 -2
  33. package/dist/api/onboard-submission/index.d.ts +1 -6
  34. package/dist/api/terminal/index.d.ts +1 -2
  35. package/dist/{app-Db-hwBve.js → app-C8rDUQ-r.js} +14579 -14132
  36. package/dist/app.js +1 -1
  37. package/dist/{assets-CB7rE-mh.js → assets-QZbz5BYj.js} +46 -47
  38. package/dist/components/CursorTable/index.vue.d.ts +21 -3
  39. package/dist/components/PagingTable/index.vue.d.ts +9 -3
  40. package/dist/{grafana-5eWxG5r8.js → grafana-CHfYDJ1b.js} +4 -4
  41. package/dist/{index-rGzBv5-u.js → index-4KwdYYMe.js} +2 -2
  42. package/dist/{index-X_UgwLJS.js → index-7ofYlGzn.js} +1 -1
  43. package/dist/index-BgS9t01N.js +62 -0
  44. package/dist/{index-bczomY2M.js → index-Bgh4RGim.js} +2 -2
  45. package/dist/{index-DWU5m3QZ.js → index-CX2hs-UQ.js} +1 -1
  46. package/dist/{index-BNEwsJyD.js → index-CX9xj_f6.js} +1 -6
  47. package/dist/index-CdIL37va.js +33692 -0
  48. package/dist/{index-DWVs6h52.js → index-DVsHI6PR.js} +29 -52
  49. package/dist/{index-BCnQ-hAJ.js → index-Yt_qv8lG.js} +5 -39
  50. package/dist/index-mU9AofgQ.js +137 -0
  51. package/dist/{index-BmV1RaRw.js → index-x-AN2d5y.js} +2 -2
  52. package/dist/{index-DxQ3wF-X.js → index-yTZ7Gd-r.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-CSeS9lVS.js → index.vue_vue_type_script_setup_true_lang-CtE5UAGa.js} +1 -1
  54. package/dist/mf-payment.css +1 -0
  55. package/dist/model/onboard-submission.d.ts +5 -5
  56. package/dist/model/payout-account.d.ts +2 -3
  57. package/dist/{moment-h96o7c8I.js → moment-FRs5-R1e.js} +1194 -1067
  58. package/dist/{onboard-submission-BTnbIwsJ.js → onboard-submission-BdIQCrc0.js} +7 -8
  59. package/dist/package.json +76 -18
  60. package/dist/payout-account-CKYWpyP9.js +466 -0
  61. package/dist/router/index.d.ts +1 -3
  62. package/dist/stores/payoutAccount.d.ts +38 -40
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{teya-UA6TM323.js → tyro-BovmsorS.js} +2 -3
  65. package/dist/{useQuery-BJX-S-uW.js → useQuery-CkPLx8V5.js} +1 -1
  66. package/dist/{validator-CTlVogBQ.js → validator-Bz2eU53Y.js} +6 -6
  67. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +8 -8
  68. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +14 -14
  69. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +8 -8
  70. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +8 -8
  71. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +24 -24
  72. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
  73. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +24 -24
  74. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +38 -40
  75. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +60 -62
  76. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +60 -62
  77. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +38 -40
  78. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +38 -40
  79. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +60 -62
  80. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  81. package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
  82. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  83. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  84. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  85. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  86. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  87. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  88. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  89. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +8 -32
  90. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -6
  91. package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +4 -6
  92. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -6
  93. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +4 -6
  94. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -6
  95. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -6
  96. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -6
  97. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -6
  98. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -10
  99. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -6
  100. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -6
  101. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -6
  102. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  103. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +22 -38
  104. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +22 -38
  105. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +22 -38
  106. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +22 -38
  107. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +22 -38
  108. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +22 -38
  109. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +22 -38
  110. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +22 -38
  111. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +22 -38
  112. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +22 -38
  113. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +22 -38
  114. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +22 -38
  115. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +22 -38
  116. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +22 -38
  117. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +22 -38
  118. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +22 -38
  119. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +22 -38
  120. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +22 -38
  121. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +22 -38
  122. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +22 -38
  123. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +22 -38
  124. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +22 -38
  125. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +22 -38
  126. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +22 -38
  127. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +22 -38
  128. package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +30 -30
  129. package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +18 -18
  130. package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +18 -18
  131. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +76 -80
  132. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +28 -28
  133. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +14 -14
  134. package/dist/views/settlement/SettlementTable.vue.d.ts +5 -15
  135. package/dist/views/settlement/SettlementTransactions.vue.d.ts +1 -11
  136. package/package.json +16 -17
  137. package/dist/Actions.vue_vue_type_script_setup_true_lang-COGP4bH0.js +0 -64
  138. package/dist/FoodCourtPayoutAccount-58TARaq6.js +0 -187
  139. package/dist/FoodCourtSettlement-BGgvu91A.js +0 -68
  140. package/dist/FoodCourtTransaction-B1rZHqE_.js +0 -212
  141. package/dist/Method.vue_vue_type_script_setup_true_lang-B8Vq5gSl.js +0 -58
  142. package/dist/OnboardSubmission-ncq-dkfF.js +0 -733
  143. package/dist/PayoutAccount-4ZI4Ik2p.js +0 -405
  144. package/dist/Settlement-BPaaEj_X.js +0 -510
  145. package/dist/SettlementTable.vue_vue_type_script_setup_true_lang-BsGmww2X.js +0 -132
  146. package/dist/api/food-court/index.d.ts +0 -31
  147. package/dist/index-B-xGomR7.js +0 -131
  148. package/dist/index-B6SmnK1g.js +0 -32927
  149. package/dist/index-CazeCsOR.js +0 -13
  150. package/dist/index-DXIvYLMm.js +0 -75
  151. package/dist/index-j-zqgMuS.js +0 -52
  152. package/dist/payout-account-BRzRptNv.js +0 -474
  153. package/dist/router/context-guard.d.ts +0 -3
  154. package/dist/router/food-court.d.ts +0 -3
  155. package/dist/style.css +0 -1
  156. package/dist/utils/food-court.d.ts +0 -2
  157. package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +0 -117
  158. package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +0 -212
  159. package/dist/views/food-court/FoodCourtPayoutAccount.vue.d.ts +0 -2
  160. package/dist/views/food-court/FoodCourtSettlement.vue.d.ts +0 -2
  161. package/dist/views/food-court/FoodCourtTransaction.vue.d.ts +0 -2
  162. package/dist/views/onboard-submission/useTeyaConnect.d.ts +0 -71
@@ -31,14 +31,26 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
31
31
  attrs: any;
32
32
  slots: {};
33
33
  emit: (event: 'row-click', data: T) => any;
34
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>) => void) | undefined, __VLS_setup?: Promise<{
34
+ } | undefined, __VLS_expose?: ((exposed: {
35
+ reset: () => {};
36
+ allData: () => Promise<T[]>;
37
+ data: () => T[];
38
+ pageData: () => T[];
39
+ replaceData: (index: number, value: T) => void;
40
+ }) => void) | undefined, __VLS_setup?: Promise<{
35
41
  props: {
36
42
  readonly columnDefs: ColumnDef<R>[];
37
43
  readonly rowsDefs: (a: T) => R;
38
44
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
39
45
  readonly "onRow-click"?: ((data: T) => any) | undefined;
40
46
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
41
- expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
47
+ expose(exposed: {
48
+ reset: () => {};
49
+ allData: () => Promise<T[]>;
50
+ data: () => T[];
51
+ pageData: () => T[];
52
+ replaceData: (index: number, value: T) => void;
53
+ }): void;
42
54
  attrs: any;
43
55
  slots: {};
44
56
  emit: (event: 'row-click', data: T) => any;
@@ -52,7 +64,13 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
52
64
  readonly paginate: (limit: number, cursor: string) => Promise<PaginatedResult<T>>;
53
65
  readonly "onRow-click"?: ((data: T) => any) | undefined;
54
66
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
55
- expose(exposed: import("vue").ShallowUnwrapRef<CursorTableController<T>>): void;
67
+ expose(exposed: {
68
+ reset: () => {};
69
+ allData: () => Promise<T[]>;
70
+ data: () => T[];
71
+ pageData: () => T[];
72
+ replaceData: (index: number, value: T) => void;
73
+ }): void;
56
74
  attrs: any;
57
75
  slots: {};
58
76
  emit: (event: 'row-click', data: T) => any;
@@ -15,14 +15,18 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
15
15
  attrs: any;
16
16
  slots: {};
17
17
  emit: (event: 'row-click', data: T) => any;
18
- } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<PagingTableController>) => void) | undefined, __VLS_setup?: Promise<{
18
+ } | undefined, __VLS_expose?: ((exposed: {
19
+ reset: () => {};
20
+ }) => void) | undefined, __VLS_setup?: Promise<{
19
21
  props: {
20
22
  readonly columnDefs: ColumnDef<R>[];
21
23
  readonly rowsDefs: (a: T) => R;
22
24
  readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
23
25
  readonly "onRow-click"?: ((data: T) => any) | undefined;
24
26
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
25
- expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
27
+ expose(exposed: {
28
+ reset: () => {};
29
+ }): void;
26
30
  attrs: any;
27
31
  slots: {};
28
32
  emit: (event: 'row-click', data: T) => any;
@@ -36,7 +40,9 @@ declare const _default: <T extends unknown, R extends unknown>(__VLS_props: {
36
40
  readonly paginate: (limit: number, page: number) => Promise<PaginatedResponse<T>>;
37
41
  readonly "onRow-click"?: ((data: T) => any) | undefined;
38
42
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
39
- expose(exposed: import("vue").ShallowUnwrapRef<PagingTableController>): void;
43
+ expose(exposed: {
44
+ reset: () => {};
45
+ }): void;
40
46
  attrs: any;
41
47
  slots: {};
42
48
  emit: (event: 'row-click', data: T) => any;
@@ -1,12 +1,12 @@
1
- import { e as i } from "./app-Db-hwBve.js";
1
+ import { e as i } from "./app-C8rDUQ-r.js";
2
2
  import { useCoreStore as l } from "@feedmepos/mf-common";
3
- import { h as a } from "./moment-h96o7c8I.js";
3
+ import { h as a } from "./moment-FRs5-R1e.js";
4
4
  const y = "https://grafana.feedme.farm/d/hyperdx-trace-explorer/hyperdx-trace-explorer-embedded", m = "69a1a2665dc2f34c0563c0a7", h = "6a4e8eefbcd09745155bda80", n = {
5
5
  "service.name": "ServiceName"
6
6
  }, $ = (e) => e.replace(/'/g, "''"), f = (e) => e.type === "resource" && n[e.queryKey] ? n[e.queryKey] : `${e.type === "resource" ? "ResourceAttributes" : "SpanAttributes"}['${e.queryKey}']`, v = (e) => {
7
7
  const o = (Array.isArray(e.queryValue) ? e.queryValue : [e.queryValue]).map((s) => `'${$(s)}'`), t = f(e);
8
8
  return o.length > 1 ? `${t} IN (${o.join(", ")})` : `${t} = ${o[0]}`;
9
- }, g = (e, r) => {
9
+ }, b = (e, r) => {
10
10
  const o = l(), t = o.currentCountry.value ?? i.F_COUNTRY.enum.MY, s = o.namespace.value === "dev", c = [
11
11
  {
12
12
  type: "resource",
@@ -28,5 +28,5 @@ const y = "https://grafana.feedme.farm/d/hyperdx-trace-explorer/hyperdx-trace-ex
28
28
  return `${y}?kiosk=true&var-hdx_url=${encodeURIComponent(p)}&orgId=1&from=now-1h&to=now&timezone=browser`;
29
29
  };
30
30
  export {
31
- g
31
+ b as g
32
32
  };
@@ -1,5 +1,5 @@
1
- import { d as l, c as s, g as o, b as i, l as c, f as d, e as y } from "./index-B6SmnK1g.js";
2
- import { h as r } from "./moment-h96o7c8I.js";
1
+ import { d as l, c as s, g as o, b as i, l as c, f as d, h as y } from "./index-CdIL37va.js";
2
+ import { h as r } from "./moment-FRs5-R1e.js";
3
3
  import { d as p } from "./dinero-CIVmXLL-.js";
4
4
  function* f(t, a) {
5
5
  const e = t[Symbol.iterator](), m = e.next();
@@ -1,4 +1,4 @@
1
- import { g as t, b as e, a as r } from "./index-B6SmnK1g.js";
1
+ import { g as t, b as e, a as r } from "./index-CdIL37va.js";
2
2
  const i = {
3
3
  async create(a) {
4
4
  return t(
@@ -0,0 +1,62 @@
1
+ import { useCoreStore as d } from "@feedmepos/mf-common";
2
+ import { h as m } from "./moment-FRs5-R1e.js";
3
+ import { ref as g } from "vue";
4
+ import { useSnackbar as p } from "@feedmepos/ui-library";
5
+ const k = () => {
6
+ const { currentCountry: u } = d();
7
+ return {
8
+ getBillLink: (t) => {
9
+ var o;
10
+ return !((o = t.billId) != null && o.startsWith("bill_")) || !t.restaurantId || t.restaurantId == "" || !t.businessId || t.businessId == "" || u.value == null ? null : `/restaurant-operation/transaction/${encodeURIComponent(t.billId)}?restaurantId=${encodeURIComponent(t.restaurantId)}&businessId=${encodeURIComponent(t.businessId)}&country=${encodeURIComponent(u.value)}`;
11
+ }
12
+ };
13
+ }, v = /^[a-f\d]{24}$/i, C = ({
14
+ searchKey: u,
15
+ dateRange: s,
16
+ onBeforeApply: t
17
+ }) => {
18
+ const o = p(), r = g(null), l = () => {
19
+ const e = u.value.trim();
20
+ return v.test(e) ? e : null;
21
+ }, a = () => {
22
+ if (!r.value)
23
+ return;
24
+ const e = r.value;
25
+ r.value = null, o.close(e);
26
+ }, i = () => {
27
+ r.value = null;
28
+ }, c = (e) => {
29
+ const n = parseInt(e.slice(0, 8), 16);
30
+ return m.unix(n).format("YYYY-MM-DD");
31
+ }, I = () => {
32
+ const e = l();
33
+ if (!e) {
34
+ a();
35
+ return;
36
+ }
37
+ t == null || t();
38
+ const n = c(e);
39
+ (s.value.startDate !== n || s.value.endDate !== n) && (s.value = {
40
+ ...s.value,
41
+ startDate: n,
42
+ endDate: n
43
+ }), a();
44
+ };
45
+ return {
46
+ promptSuggestion: () => {
47
+ a(), l() && (r.value = o.open({
48
+ title: "Are you searching for transaction ID ?",
49
+ message: "We can auto-set the date range from this ID to help narrow down the results.",
50
+ action: "Apply",
51
+ type: "info",
52
+ onAction: I,
53
+ onClose: i
54
+ }, 5e3));
55
+ },
56
+ closeSuggestion: a
57
+ };
58
+ };
59
+ export {
60
+ C as a,
61
+ k as u
62
+ };
@@ -1,5 +1,5 @@
1
- import "./app-Db-hwBve.js";
2
- import { a as s, b as e, g as r } from "./index-B6SmnK1g.js";
1
+ import "./app-C8rDUQ-r.js";
2
+ import { a as s, b as e, g as r } from "./index-CdIL37va.js";
3
3
  const u = {
4
4
  async readRestaurantById(a) {
5
5
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,4 +1,4 @@
1
- import { g as t, b as n, c as u, a as e } from "./index-B6SmnK1g.js";
1
+ import { g as t, b as n, c as u, a as e } from "./index-CdIL37va.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { g as t, b as e, p as r, c as i, a as s } from "./index-B6SmnK1g.js";
1
+ import { g as t, b as e, p as r, c as i, a as s } from "./index-CdIL37va.js";
2
2
  const m = {
3
3
  async create(a) {
4
4
  return s(
@@ -54,11 +54,6 @@ const m = {
54
54
  )
55
55
  );
56
56
  },
57
- async getTeyaTerminals(a) {
58
- return t(
59
- await e().get(`/payments/terminals/${a}/teya/terminals`)
60
- );
61
- },
62
57
  async syncTyroReader(a) {
63
58
  await e().post(`/payments/terminals/${a}/tyro/sync`);
64
59
  },