@feedmepos/mf-payment 1.7.18-dev → 1.7.20-dev

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 (48) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cv7CH3qO.js → Actions.vue_vue_type_script_setup_true_lang-DIsaxbwq.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Ds8077Ib.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-k8n02EsD.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BxicCT4c.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BHhM1iTr.js} +2 -2
  4. package/dist/{Chargeback-C95hq9Ym.js → Chargeback-D5GSAz8R.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Chqh9pux.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DcnhF6ZR.js} +1 -1
  6. package/dist/{OnboardForm-Bmfzl2Da.js → OnboardForm-BV8pty81.js} +5 -5
  7. package/dist/{OnboardForm-sEgbHWpY.js → OnboardForm-DgXsHzkT.js} +5 -5
  8. package/dist/{OnboardSubmission-D7OqmCSE.js → OnboardSubmission-D4VMYp5S.js} +3 -3
  9. package/dist/{OnboardSubmission-DiSdOrR-.js → OnboardSubmission-Dmp0SRgJ.js} +6 -6
  10. package/dist/{PayoutAccount-Dikcf7qc.js → PayoutAccount-B7JR-Xfq.js} +5 -5
  11. package/dist/{PayoutAccount-DGS4CxLt.js → PayoutAccount-CLhPVMfM.js} +7 -7
  12. package/dist/{PayoutAccountSetting-CbOums2i.js → PayoutAccountSetting-Dk9EjE9I.js} +6 -6
  13. package/dist/{Restaurant-CRsY5M-v.js → Restaurant-DmTUlWEO.js} +4 -4
  14. package/dist/{RestaurantSetting-Q6mFMCZC.js → RestaurantSetting-Bxmlhv1B.js} +3 -3
  15. package/dist/{Settlement-CLGj7UhZ.js → Settlement-BaV2FYPZ.js} +3 -3
  16. package/dist/{Settlement-p_CMyKq2.js → Settlement-lhxgz-XH.js} +4 -4
  17. package/dist/{SettlementTransactions-DMrhLpfE.js → SettlementTransactions-BisVOkrF.js} +5 -5
  18. package/dist/{SettlementTransactions-C0Evcem1.js → SettlementTransactions-ghbnNfB_.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-CFYcFeMb.js → Status.vue_vue_type_script_setup_true_lang-Qf0c8MTy.js} +1 -1
  20. package/dist/{Terminal-Dat2M0Ed.js → Terminal-0muJMA4c.js} +5 -5
  21. package/dist/{TerminalSetting-D0NxqeHF.js → TerminalSetting-c2nPEMu9.js} +1309 -1306
  22. package/dist/{Transaction-DjC4_nIv.js → Transaction-BDprmXf5.js} +10 -10
  23. package/dist/{Transaction-D8V6pSON.js → Transaction-BN5dWn9J.js} +11 -11
  24. package/dist/{TransactionOld-C70CZgm9.js → TransactionOld-BWlQdV2t.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-BhmFrxY6.js → TransactionStatus.vue_vue_type_script_setup_true_lang-BA8LuWC7.js} +1 -1
  26. package/dist/{app-BLkE-Ntf.js → app-CcAt9drb.js} +23 -23
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-D0LShwZ4.js → assets-BJc1BoVy.js} +1 -1
  29. package/dist/grafana-CIgq9UAr.js +32 -0
  30. package/dist/helpers/grafana.d.ts +1 -2
  31. package/dist/{index-CYgPge5G.js → index-9k1h4bB6.js} +1 -1
  32. package/dist/{index-CZvUkAhy.js → index-BzMH21qt.js} +1 -1
  33. package/dist/{index-Ozg67MCs.js → index-CNwBwTac.js} +1 -1
  34. package/dist/{index-Bvya9PFm.js → index-DLFXt7nw.js} +1 -1
  35. package/dist/{index-CroWS1T4.js → index-DLcuXAcB.js} +2 -2
  36. package/dist/{index-Bci3SUwf.js → index-DdoMxz3d.js} +1 -1
  37. package/dist/{index-yNd13Rg7.js → index-DhTaS0co.js} +1 -1
  38. package/dist/{index-BZADnCFm.js → index-oROQu9nF.js} +1 -1
  39. package/dist/{index-vdXtiwSu.js → index-vhoyKTN7.js} +1 -1
  40. package/dist/{index.vue_vue_type_script_setup_true_lang-C4eErbmz.js → index.vue_vue_type_script_setup_true_lang-CjVwzVhE.js} +1 -1
  41. package/dist/{onboard-submission-DAVyBKYh.js → onboard-submission-BLWMIf12.js} +1 -1
  42. package/dist/package.json +1 -1
  43. package/dist/{payout-account-DEZjxSUl.js → payout-account-M7TdqeaF.js} +3 -3
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +2 -2
  47. package/package.json +1 -1
  48. package/dist/grafana-CDoz0Fnc.js +0 -59
@@ -0,0 +1,32 @@
1
+ import { e as i } from "./index-DLFXt7nw.js";
2
+ import { useCoreStore as l } from "@feedmepos/mf-common";
3
+ import { h as a } from "./moment-h96o7c8I.js";
4
+ const y = "https://grafana.feedme.farm/d/hyperdx-trace-explorer/hyperdx-trace-explorer-embedded", m = "69a1a2665dc2f34c0563c0a7", h = "6a4e8eefbcd09745155bda80", n = {
5
+ "service.name": "ServiceName"
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
+ const o = (Array.isArray(e.queryValue) ? e.queryValue : [e.queryValue]).map((s) => `'${$(s)}'`), t = f(e);
8
+ return o.length > 1 ? `${t} IN (${o.join(", ")})` : `${t} = ${o[0]}`;
9
+ }, g = (e, r) => {
10
+ const o = l(), t = o.currentCountry.value ?? i.F_COUNTRY.enum.MY, s = o.namespace.value === "dev", c = [
11
+ {
12
+ type: "resource",
13
+ queryKey: "service.name",
14
+ queryValue: "payment-backend"
15
+ },
16
+ {
17
+ type: "resource",
18
+ queryKey: "cluster",
19
+ queryValue: s ? "dev" : "production"
20
+ },
21
+ {
22
+ type: "resource",
23
+ queryKey: "namespace",
24
+ queryValue: "apps-" + t.toLowerCase()
25
+ },
26
+ ...e
27
+ ].map(v).join(" AND "), u = r ? `${+a(r).add(-3, "hours")}` : `${+a().add(-1, "day")}`, d = r ? `${+a(r).add(3, "hours")}` : `${+a()}`, p = `/search?source=${s ? h : m}&where=${c}&whereLanguage=sql&from=${u}&to=${d}`;
28
+ return `${y}?kiosk=true&var-hdx_url=${encodeURIComponent(p)}&orgId=1&from=now-1h&to=now&timezone=browser`;
29
+ };
30
+ export {
31
+ g
32
+ };
@@ -1,6 +1,5 @@
1
1
  type QueryTarget = {
2
- id?: string;
3
- type: "span" | "resource";
2
+ type: "resource" | "span";
4
3
  queryKey: string;
5
4
  queryValue: string | string[];
6
5
  };
@@ -1,4 +1,4 @@
1
- import { g as t, b as n, c as u, a as e } from "./index-Bvya9PFm.js";
1
+ import { g as t, b as n, c as u, a as e } from "./index-DLFXt7nw.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { a as s, b as e, g as r } from "./index-Bvya9PFm.js";
1
+ import { a as s, b as e, g as r } from "./index-DLFXt7nw.js";
2
2
  const i = {
3
3
  async readRestaurantById(a) {
4
4
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-Bvya9PFm.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-DLFXt7nw.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { w as V, x as IR, v as AR } from "./app-BLkE-Ntf.js";
1
+ import { w as V, x as IR, v as AR } from "./app-CcAt9drb.js";
2
2
  import { useCoreStore as Ou } from "@feedmepos/mf-common";
3
3
  import { ref as pR } from "vue";
4
4
  var Ah = {}, $d = {}, y = {}, zh = {}, jm = {}, Um = {}, Ic = {};
@@ -1,6 +1,6 @@
1
- import { g as o, b as s, o as m, a as d } from "./index-Bvya9PFm.js";
1
+ import { g as o, b as s, o as m, a as d } from "./index-DLFXt7nw.js";
2
2
  import { h as c } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-Bci3SUwf.js";
3
+ import { d as b } from "./index-DdoMxz3d.js";
4
4
  async function g(t) {
5
5
  if (t.type !== "image/png") return t;
6
6
  const a = await p(t), e = document.createElement("canvas");
@@ -1,4 +1,4 @@
1
- import { b as r, c as p } from "./index-Bvya9PFm.js";
1
+ import { b as r, c as p } from "./index-DLFXt7nw.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const o = (await p().post("/document/presign", {
@@ -1,4 +1,4 @@
1
- import { g as r, b as n, a as s, d as I, l, c, r as m } from "./index-Bvya9PFm.js";
1
+ import { g as r, b as n, a as s, d as I, l, c, r as m } from "./index-DLFXt7nw.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { v as y } from "./app-BLkE-Ntf.js";
3
+ import { v as y } from "./app-CcAt9drb.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
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-Bvya9PFm.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-DLFXt7nw.js";
2
2
  import { h as r } from "./moment-h96o7c8I.js";
3
3
  import { d as p } from "./dinero-CIVmXLL-.js";
4
4
  function* f(t, a) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, ref as r, resolveComponent as f, openBlock as g, createBlock as z, withCtx as I, createElementVNode as i, normalizeStyle as E, createElementBlock as M, Fragment as N, renderList as O, createVNode as c, computed as _, watch as L, onMounted as R, unref as D, toDisplayString as B, createCommentVNode as G, nextTick as H, normalizeClass as J } from "vue";
2
- import { u as K } from "./index-Bvya9PFm.js";
2
+ import { u as K } from "./index-DLFXt7nw.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const Q = ["id"], U = /* @__PURE__ */ q({
5
5
  __name: "FmTableSelection",
@@ -1,4 +1,4 @@
1
- import { e as t, p as r } from "./index-Bvya9PFm.js";
1
+ import { e as t, p as r } from "./index-DLFXt7nw.js";
2
2
  import { useCoreStore as a } from "@feedmepos/mf-common";
3
3
  const s = {
4
4
  softspace: [t.F_COUNTRY.enum.MY],
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.7.18-dev",
3
+ "version": "1.7.20-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-Bvya9PFm.js";
2
- import { v as it, w as at, _ as ut } from "./app-BLkE-Ntf.js";
1
+ import { p as E, B as st } from "./index-DLFXt7nw.js";
2
+ import { v as it, w as at, _ as ut } from "./app-CcAt9drb.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-Bci3SUwf.js";
4
+ import { d as H } from "./index-DdoMxz3d.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {