@feedmepos/mf-payment 1.1.20-beta.1 → 1.1.20-beta.2

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 (34) hide show
  1. package/dist/Forbidden-BvhtA1Ni.js +37 -0
  2. package/dist/{PayoutAccount-DUwQn_EC.js → PayoutAccount-DbVJmcOa.js} +6 -6
  3. package/dist/{PayoutAccount-Dm_aXUDY.js → PayoutAccount-DtxvkRZg.js} +28 -28
  4. package/dist/{PayoutAccountSetting-ClVvxnbp.js → PayoutAccountSetting-DcbImWD5.js} +3 -3
  5. package/dist/{Restaurant-0Lh-FDDd.js → Restaurant-DrTIWONb.js} +4 -4
  6. package/dist/{RestaurantSetting-BWa1IzF2.js → RestaurantSetting-39Xu_7Bm.js} +3 -3
  7. package/dist/{Settlement-BmJXuLht.js → Settlement-DuWPx6DN.js} +3 -3
  8. package/dist/{Settlement-ifQ53n9I.js → Settlement-oCVhqcmP.js} +3 -3
  9. package/dist/{SettlementTransactions-BbRT0m0w.js → SettlementTransactions-B1N9DToN.js} +3 -3
  10. package/dist/{SettlementTransactions-CGMWZeMi.js → SettlementTransactions-BPEDOI4q.js} +3 -3
  11. package/dist/{Terminal-nzIpXYZr.js → Terminal-CHNjzVtT.js} +5 -5
  12. package/dist/{TerminalSetting-Du783vEO.js → TerminalSetting-BEP2XCkv.js} +3 -3
  13. package/dist/{Transaction-BhUryEUU.js → Transaction-Bth0jDaE.js} +7 -7
  14. package/dist/{Transaction-2NkK5qK1.js → Transaction-Cb15psyP.js} +147 -147
  15. package/dist/{TransactionOld-DjFI_XoS.js → TransactionOld-BPnBP2cu.js} +4 -4
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-DehYWtoJ.js → TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js} +57 -53
  17. package/dist/{app-DaQoU5LZ.js → app-BfnnIbRB.js} +389 -373
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-Byrt-v85.js → assets-Bne2NJOR.js} +25 -22
  20. package/dist/{grafana-CTuwLah-.js → grafana-DpsdWu10.js} +1 -1
  21. package/dist/{index-BCZFxoXr.js → index-B0zGQtbr.js} +1 -1
  22. package/dist/{index-Bsj0f0v0.js → index-B1EyQdUg.js} +1 -1
  23. package/dist/{index-DnFJ7KW-.js → index-BJaJ2nSQ.js} +1 -1
  24. package/dist/{index-Mu1p4goL.js → index-BSl3VmjZ.js} +1 -1
  25. package/dist/{index-CK6NLwna.js → index-Bm2MGtsS.js} +2284 -2284
  26. package/dist/{index-CMkvR14X.js → index-C5ARs2NW.js} +1 -1
  27. package/dist/{index-DktPq96p.js → index-sQT526AQ.js} +2 -2
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-CLC1LEgE.js → index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js} +19 -19
  29. package/dist/model/transaction.d.ts +2 -0
  30. package/dist/package.json +1 -1
  31. package/dist/{payout-account-D1FYzXgJ.js → payout-account-CX7Sx9yz.js} +3 -3
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/views/Forbidden.vue.d.ts +2 -0
  34. package/package.json +1 -1
@@ -0,0 +1,37 @@
1
+ import { defineComponent as i, onMounted as c, resolveComponent as s, openBlock as o, createElementBlock as a, createElementVNode as C, unref as p, createVNode as r } from "vue";
2
+ import { useRouter as n } from "vue-router";
3
+ const d = "data:image/svg+xml,%3csvg%20width='858'%20height='376'%20viewBox='0%200%20858%20376'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1132_89720)'%3e%3cpath%20d='M440%20505.86C651.525%20505.86%20823%20437.839%20823%20353.93C823%20270.021%20651.525%20202%20440%20202C228.475%20202%2057%20270.021%2057%20353.93C57%20437.839%20228.475%20505.86%20440%20505.86Z'%20fill='url(%23paint0_linear_1132_89720)'%20fill-opacity='0.5'/%3e%3cg%20clip-path='url(%23clip1_1132_89720)'%3e%3cpath%20d='M331.443%20106.351C343.852%2058.097%20379.776%2037.6206%20397.221%2030.2477C402.417%2028.0519%20407.88%2026.5702%20413.469%2025.749L424.914%2024.0709C430.503%2023.2497%20436.163%2023.1069%20441.769%2023.7138C460.588%2025.749%20500.887%2035.0321%20526.652%2077.6808C561.416%20135.2%20586.627%20250.954%20457.589%20272.322V272.376C456.91%20272.483%20456.25%20272.555%20455.589%20272.644C454.928%20272.751%20454.268%20272.858%20453.589%20272.965V272.912C323.854%20289.55%20314.695%20171.458%20331.443%20106.351Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M429.807%20275.839C396.221%20275.839%20370.046%20265.414%20351.762%20244.705C319.016%20207.644%20319.641%20146.84%20330.14%20106.03C342.406%2058.3112%20377.099%2037.2993%20396.686%2029.0337C401.899%2026.8379%20407.47%2025.2848%20413.273%2024.4457L424.718%2022.7676C430.521%2021.9107%20436.306%2021.7858%20441.912%2022.3928C463.053%2024.6778%20502.316%2034.8178%20527.795%2076.9845C549.596%20113.046%20567.701%20171.119%20547.007%20216.035C532.973%20246.508%20503.387%20265.824%20459.089%20273.429V273.465L457.786%20273.715C457.375%20273.768%20456.982%20273.822%20456.589%20273.876L454.982%20274.108C454.59%20274.179%20454.197%20274.233%20453.786%20274.304L452.447%20274.5L452.429%20274.411C444.573%20275.357%20437.02%20275.839%20429.807%20275.839ZM332.747%20106.69C322.408%20146.876%20321.712%20206.662%20353.762%20242.956C375.563%20267.645%20409.095%20277.285%20453.429%20271.591L454.75%20271.43V271.448L456.268%20271.233C456.375%20271.216%20456.5%20271.198%20456.607%20271.198L457.375%20271.037C501.477%20263.736%20530.813%20244.866%20544.597%20214.946C564.845%20170.976%20546.972%20113.921%20525.528%2078.3949C500.638%2037.1743%20462.285%2027.2842%20441.645%2025.0349C436.252%2024.4457%20430.699%2024.5707%20425.129%2025.3919L413.684%2027.07C408.113%2027.8912%20402.756%2029.3729%20397.757%2031.4795C378.598%2039.5665%20344.727%2060.0964%20332.747%20106.69Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M360.457%20129.166L360.493%20111.814C362.475%2083.3041%20397.685%2072.0216%20409.041%2068.3083C417.504%2065.5413%20428.467%2063.6489%20432.359%2063.042V63.0241C432.359%2063.0241%20432.609%2062.9884%20433.074%2062.917C433.538%2062.8456%20433.788%2062.8099%20433.788%2062.8099V62.8277C437.68%2062.31%20448.732%2060.9533%20457.642%2061.1675C469.569%2061.471%20506.547%2062.1315%20516.653%2088.874L521.67%20105.476C527.045%20124.114%20518.974%20141.324%20501.566%20143.876L390.757%20160.175C373.348%20162.728%20360.671%20148.571%20360.457%20129.166Z'%20fill='white'/%3e%3cpath%20d='M490.656%20119.473C482.675%20120.651%20473.997%20114.76%20473.158%20106.458C472.319%2098.1393%20477.622%2090.213%20486.175%2088.9633C494.156%2087.7851%20502.833%2093.6763%20503.673%20101.978C504.512%20110.297%20499.209%20118.223%20490.656%20119.473Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M488.585%20120.972C484.836%20120.972%20481.068%20119.651%20477.944%20117.223C474.426%20114.474%20472.248%20110.707%20471.837%20106.601C470.891%2097.2824%20477.105%2088.9455%20485.996%2087.6423C490.442%2086.9818%20495.156%2088.285%20498.923%2091.2306C502.441%2093.9798%20504.619%2097.7466%20505.03%20101.853C505.976%20111.171%20499.763%20119.508%20490.871%20120.812C490.103%20120.919%20489.335%20120.972%20488.585%20120.972ZM488.21%2090.1594C487.586%2090.1594%20486.978%2090.1952%20486.371%2090.2844C478.908%2091.3734%20473.694%2098.425%20474.498%20106.316C474.837%20109.69%20476.64%20112.796%20479.586%20115.099C482.729%20117.545%20486.8%20118.687%20490.478%20118.152C497.941%20117.063%20503.155%20110.011%20502.352%20102.12C502.012%2098.7463%20500.209%2095.6222%20497.263%2093.3371C494.62%2091.2841%20491.353%2090.1594%20488.21%2090.1594Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M411.309%20131.13C403.327%20132.308%20394.65%20126.417%20393.811%20118.116C392.971%20109.797%20398.274%20101.87%20406.827%20100.621C414.808%2099.4426%20423.486%20105.334%20424.325%20113.635C425.182%20121.954%20419.861%20129.88%20411.309%20131.13Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M409.238%20132.63C405.488%20132.63%20401.721%20131.309%20398.596%20128.881C395.079%20126.131%20392.9%20122.365%20392.49%20118.259C391.543%20108.94%20397.757%20100.603%20406.649%2099.2997C411.095%2098.6392%20415.808%2099.9603%20419.576%20102.888C423.093%20105.637%20425.272%20109.404%20425.682%20113.51C426.629%20122.829%20420.415%20131.166%20411.523%20132.469C410.755%20132.576%20409.988%20132.63%20409.238%20132.63ZM408.863%20101.817C408.238%20101.817%20407.631%20101.853%20407.024%20101.942C399.56%20103.031%20394.347%20110.082%20395.15%20117.973C395.489%20121.347%20397.293%20124.453%20400.239%20126.756C403.381%20129.202%20407.452%20130.345%20411.13%20129.809C418.594%20128.72%20423.807%20121.668%20423.004%20113.778C422.665%20110.404%20420.861%20107.28%20417.915%20104.995C415.291%20102.942%20412.005%20101.817%20408.863%20101.817Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M567.791%20147.286C576.968%20161.747%20586.699%20171.994%20597.698%20165.031C608.679%20158.069%20610.161%20140.699%20600.983%20126.239C591.806%20111.778%20575.468%20105.709%20564.47%20112.671C553.471%20119.633%20558.613%20132.826%20567.791%20147.286Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M317.962%20176.582C318.141%20176.546%20318.319%20176.546%20318.498%20176.51C318.569%20177.242%20318.623%20177.992%20318.712%20178.724C320.962%20200.039%20326.747%20219.07%20335.674%20234.905C334.121%20236.101%20332.193%20236.975%20329.836%20237.44C317.069%20239.921%20304.053%20228.317%20300.786%20211.518C297.518%20194.719%20305.178%20179.081%20317.962%20176.582Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M547.167%20216.088C549.917%20210.143%20552.006%20203.734%20553.506%20196.969C550.417%20185.579%20546.542%20174.671%20541.686%20165.852C539.775%20162.371%20535.883%20160.479%20531.955%20161.032L526.045%20161.871C519.849%20162.746%20516.153%20169.226%20518.546%20175.028C520.01%20178.599%20521.224%20180.241%20522.17%20183.454C523.831%20189.096%20520.081%20194.88%20514.243%20195.665L413.415%20209.179C408.059%20209.893%20403.095%20206.073%20402.559%20200.682C402.059%20195.737%20401.309%20192.88%20400.595%20188.953C399.685%20183.883%20394.917%20180.455%20389.829%20181.187L375.116%20183.276C369.902%20184.008%20366.242%20188.828%20366.974%20194.041C368.849%20207.751%20371.241%20234.101%20366.188%20256.952C366.117%20257.255%20366.099%20257.559%20366.063%20257.862C382.865%20269.93%20404.184%20276.018%20429.824%20276.018C437.002%20276.018%20444.501%20275.536%20452.339%20274.59L452.357%20274.679L453.857%20274.465C454.268%20274.411%20454.66%20274.34%20455.071%20274.268L456.678%20274.036C457.071%20273.983%20457.464%20273.929%20457.856%20273.875L459.32%20273.608V273.572C503.565%20265.913%20533.133%20246.58%20547.167%20216.088Z'%20fill='white'/%3e%3cpath%20d='M476.069%20249.668C484.727%20249.668%20491.746%20242.651%20491.746%20233.994C491.746%20225.337%20484.727%20218.32%20476.069%20218.32C467.411%20218.32%20460.393%20225.337%20460.393%20233.994C460.393%20242.651%20467.411%20249.668%20476.069%20249.668Z'%20fill='white'/%3e%3cpath%20d='M484.854%20240.617C485.032%20242.135%20485.318%20244.562%20485.55%20246.473C489.978%20243.116%20492.478%20237.511%20491.603%20231.62C490.443%20223.836%20483.765%20218.248%20476.141%20218.213C476.158%20218.552%20476.176%20218.855%20476.176%20218.909C476.212%20219.712%20476.248%20220.498%20476.266%20221.301C476.337%20223.497%20477.176%20224.657%20479.23%20225.461C479.783%20225.675%20480.337%20225.961%20480.836%20226.3C482.604%20227.496%20483.425%20229.263%20483.729%20231.298C483.997%20233.083%20484.175%20234.887%20484.39%20236.69C484.568%20238.011%20484.693%20239.314%20484.854%20240.617Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M460.499%20236.261C461.356%20242.045%20465.266%20246.615%20470.355%20248.597C470.319%20248.365%20470.302%20248.204%20470.284%20248.186C470.07%20246.812%20469.855%20245.437%20469.623%20244.063C469.016%20240.331%20468.373%20236.6%20467.802%20232.851C467.481%20230.816%20468.07%20229.031%20469.552%20227.567C470.105%20227.014%20470.694%20226.496%20471.248%20225.925C472.194%20224.961%20472.48%20223.854%20472.105%20222.497C471.623%20220.569%20471.784%20221.212%20471.623%20220.569C471.551%20220.284%20471.355%20219.569%20471.212%20218.962C464.017%20221.301%20459.356%20228.549%20460.499%20236.261Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M480.925%20235.797C480.89%20235.511%20480.818%20235.208%20480.729%20234.922C480.515%20234.19%20479.783%20233.762%20479.051%20233.94C478.336%20234.101%20477.872%20234.797%20477.979%20235.547C478.604%20239.725%20479.372%20244.919%20480.015%20249.168C480.979%20248.918%20481.907%20248.579%20482.782%20248.169C482.229%20244.473%20481.443%20239.225%20480.925%20235.797Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M472.855%20234.976C471.98%20235.261%20471.623%20235.833%20471.766%20236.779C472.266%20240.224%20473.069%20245.598%20473.641%20249.472C474.587%20249.615%20475.569%20249.686%20476.551%20249.65C476.373%20248.258%20476.087%20246.258%20475.944%20245.259C475.498%20242.152%20475.033%20239.046%20474.569%20235.958C474.444%20235.226%20473.587%20234.744%20472.855%20234.976Z'%20fill='%23A7A9AC'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1132_89720'%20x1='440.003'%20y1='133.148'%20x2='440.003'%20y2='371.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A5A5A5'/%3e%3cstop%20offset='0.4764'%20stop-color='%23E0E0E0'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1132_89720'%3e%3crect%20width='858'%20height='376'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1132_89720'%3e%3crect%20width='307'%20height='254'%20fill='white'%20transform='translate(300%2022)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", h = { class: "flex items-center justify-center min-h-[80vh]" }, f = { class: "hidden mr-6 lg:block lg:w-1/6" }, m = ["src"], _ = { class: "w-full max-w-lg text-left" }, A = { class: "flex items-center mb-2 mt-1" }, Z = /* @__PURE__ */ i({
4
+ __name: "Forbidden",
5
+ setup(u) {
6
+ const t = n();
7
+ return c(() => {
8
+ setTimeout(() => {
9
+ t.push("/");
10
+ }, 5e3);
11
+ }), (g, e) => {
12
+ const l = s("FmCircularProgress");
13
+ return o(), a("div", h, [
14
+ C("div", f, [
15
+ C("img", {
16
+ src: p(d),
17
+ alt: "mascot",
18
+ class: "w-full h-auto"
19
+ }, null, 8, m)
20
+ ]),
21
+ C("div", _, [
22
+ e[1] || (e[1] = C("h1", { class: "text-2xl font-bold mb-2" }, " Opps! It looks like you have no permission to access this page. ", -1)),
23
+ C("div", A, [
24
+ e[0] || (e[0] = C("p", null, " You'll be redirected to the homepage in 5 seconds. ", -1)),
25
+ r(l, {
26
+ class: "ml-6",
27
+ size: "lg"
28
+ })
29
+ ])
30
+ ])
31
+ ]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ Z as default
37
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
2
- import { u as O } from "./index-Mu1p4goL.js";
3
- import { _ as K } from "./index-DnFJ7KW-.js";
2
+ import { u as O } from "./index-BSl3VmjZ.js";
3
+ import { _ as K } from "./index-BJaJ2nSQ.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-D1FYzXgJ.js";
6
- import { p as D } from "./index-DktPq96p.js";
5
+ import { P as V } from "./payout-account-CX7Sx9yz.js";
6
+ import { p as D } from "./index-sQT526AQ.js";
7
7
  import "@feedmepos/ui-library";
8
- import "./index-CK6NLwna.js";
9
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CLC1LEgE.js";
8
+ import "./index-Bm2MGtsS.js";
9
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js";
10
10
  import { useRouter as U } from "vue-router";
11
11
  import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
12
12
  const G = /* @__PURE__ */ y({
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as P, ref as W, reactive as aA, computed as I, watch as $, resolveComponent as C, openBlock as c, createElementBlock as x, Fragment as AA, unref as a, createVNode as Y, createBlock as i, createCommentVNode as j, withCtx as q, createElementVNode as n, toDisplayString as z, normalizeClass as k, h as N, onMounted as sA } from "vue";
2
- import { p as K } from "./index-DktPq96p.js";
3
- import { u as oA, e as gA } from "./index-CK6NLwna.js";
2
+ import { p as K } from "./index-sQT526AQ.js";
3
+ import { u as oA, e as gA } from "./index-Bm2MGtsS.js";
4
4
  import { defineStore as lA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as tA } from "@feedmepos/mf-common";
6
- import { c as rA, a as S, P as J } from "./payout-account-D1FYzXgJ.js";
6
+ import { c as rA, a as S, P as J } from "./payout-account-CX7Sx9yz.js";
7
7
  import { useDialogChild as cA, useDialog as nA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
- import { _ as U } from "./index-DnFJ7KW-.js";
9
+ import { _ as U } from "./index-BJaJ2nSQ.js";
10
10
  import { P as _ } from "./PDFViewer-BQfgFexr.js";
11
- import "./app-DaQoU5LZ.js";
11
+ import "./app-BfnnIbRB.js";
12
12
  import { _ as BA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
13
  function uA() {
14
14
  return {
@@ -38,10 +38,10 @@ const wA = lA("mf-payment-payoutAccount", {
38
38
  }, DA = { class: "flex items-center my-8" }, dA = { class: "text-left mx-6 text-gray-500" }, YA = { class: "flex items-center my-8" }, mA = { class: "text-left mx-6 text-gray-500" }, GA = { class: "flex items-center my-8" }, CA = { class: "text-left mx-6 text-gray-500" }, VA = { class: "flex items-center my-8" }, MA = { class: "text-left mx-6 text-gray-500" }, bA = ["src"], EA = {
39
39
  key: 1,
40
40
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary"
41
- }, QA = {
41
+ }, fA = {
42
42
  key: 1,
43
43
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary"
44
- }, fA = {
44
+ }, QA = {
45
45
  key: 1,
46
46
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary"
47
47
  }, xA = {
@@ -119,23 +119,23 @@ const wA = lA("mf-payment-payoutAccount", {
119
119
  $(() => s.payoutSetting.store.event, (l) => {
120
120
  s.payoutSetting.notifyUrl = l === U.F_PAYOUT_FOR.Enum.MARKETING ? "http://marketing-api-service:3000/customer/callback/store" : "http://order-backend:3000/backend/payment";
121
121
  }, { immediate: !0 });
122
- const Q = W(localStorage.getItem("__payoutAccount") || "");
122
+ const f = W(localStorage.getItem("__payoutAccount") || "");
123
123
  async function p() {
124
124
  const {
125
125
  store: { bank: l, keyPerson: A, ssm: M, bankStatement: G, exteriorPhoto: r },
126
- methods: f
127
- } = s.payoutSetting, v = JSON.stringify({ methods: f, bank: l, keyPerson: A, ssm: M, bankStatement: G, exteriorPhoto: r });
128
- Q.value = v, localStorage.setItem("__payoutAccount", v);
126
+ methods: Q
127
+ } = s.payoutSetting, v = JSON.stringify({ methods: Q, bank: l, keyPerson: A, ssm: M, bankStatement: G, exteriorPhoto: r });
128
+ f.value = v, localStorage.setItem("__payoutAccount", v);
129
129
  }
130
130
  async function O() {
131
- const { methods: l, bank: A, keyPerson: M, ssm: G, bankStatement: r, exteriorPhoto: f } = JSON.parse(Q.value.toString());
132
- s.payoutSetting.methods = l, s.payoutSetting.store.bank = A, s.payoutSetting.store.keyPerson = M, r && (s.newBankStatement = r, o.value = r), G && (m.value = G, s.newSSM = G), g && (s.newExteriorPhoto = f, g.value = f);
131
+ const { methods: l, bank: A, keyPerson: M, ssm: G, bankStatement: r, exteriorPhoto: Q } = JSON.parse(f.value.toString());
132
+ s.payoutSetting.methods = l, s.payoutSetting.store.bank = A, s.payoutSetting.store.keyPerson = M, r && (s.newBankStatement = r, o.value = r), G && (m.value = G, s.newSSM = G), g && (s.newExteriorPhoto = Q, g.value = Q);
133
133
  }
134
134
  return (l, A) => {
135
135
  var T;
136
- const M = C("FmButton"), G = C("FmSelect"), r = C("FmTextField"), f = C("FmPhoneNumber"), v = C("FmDropField"), h = C("FmFormGroup"), eA = C("FmForm");
136
+ const M = C("FmButton"), G = C("FmSelect"), r = C("FmTextField"), Q = C("FmPhoneNumber"), v = C("FmDropField"), h = C("FmFormGroup"), eA = C("FmForm");
137
137
  return c(), x(AA, null, [
138
- (T = a(V)) != null && T.isInternal ? (c(), x("div", iA, [
138
+ (T = a(V)) != null && T.role.isStaff ? (c(), x("div", iA, [
139
139
  Y(M, {
140
140
  type: "button",
141
141
  variant: "primary",
@@ -144,7 +144,7 @@ const wA = lA("mf-payment-payoutAccount", {
144
144
  "prepend-icon": "content_copy",
145
145
  onClick: p
146
146
  }),
147
- Q.value != null && Q.value != "" ? (c(), i(M, {
147
+ f.value != null && f.value != "" ? (c(), i(M, {
148
148
  key: 0,
149
149
  type: "button",
150
150
  variant: "primary",
@@ -232,7 +232,7 @@ const wA = lA("mf-payment-payoutAccount", {
232
232
  "label-mark": "required",
233
233
  rules: a(F)(a(H).string().min(1))
234
234
  }, null, 8, ["modelValue", "label", "rules"]),
235
- Y(f, {
235
+ Y(Q, {
236
236
  modelValue: s.payoutSetting.store.keyPerson.phone,
237
237
  "onUpdate:modelValue": A[6] || (A[6] = (w) => s.payoutSetting.store.keyPerson.phone = w),
238
238
  "default-country": "MY",
@@ -305,7 +305,7 @@ const wA = lA("mf-payment-payoutAccount", {
305
305
  pdf: o.value,
306
306
  "disable-text-layer": !0,
307
307
  "disable-annotation-layer": !0
308
- }, null, 8, ["pdf"])) : (c(), x("span", QA, " No photo uploaded ")),
308
+ }, null, 8, ["pdf"])) : (c(), x("span", fA, " No photo uploaded ")),
309
309
  e.isNewAccount || e.isUpdateAccount ? (c(), i(M, {
310
310
  key: 2,
311
311
  variant: "tertiary",
@@ -338,7 +338,7 @@ const wA = lA("mf-payment-payoutAccount", {
338
338
  pdf: m.value,
339
339
  "disable-text-layer": !0,
340
340
  "disable-annotation-layer": !0
341
- }, null, 8, ["pdf"])) : (c(), x("span", fA, " No file uploaded ")),
341
+ }, null, 8, ["pdf"])) : (c(), x("span", QA, " No file uploaded ")),
342
342
  e.isNewAccount || e.isUpdateAccount ? (c(), i(M, {
343
343
  key: 2,
344
344
  variant: "tertiary",
@@ -584,11 +584,11 @@ const wA = lA("mf-payment-payoutAccount", {
584
584
  var G;
585
585
  const D = (u == null ? void 0 : u.businessId) ?? ((G = B.value) == null ? void 0 : G._id);
586
586
  if (!D) throw "Business id required";
587
- const Q = S.initPayoutAccount(D, u), p = !u;
587
+ const f = S.initPayoutAccount(D, u), p = !u;
588
588
  let O = !1;
589
589
  u && (O = u.status === "NEW");
590
590
  const l = {
591
- initialValue: { payoutSetting: Q },
591
+ initialValue: { payoutSetting: f },
592
592
  isNewAccount: p,
593
593
  isUpdateAccount: O,
594
594
  bankNameOptions: J.bankNameOptions(),
@@ -606,12 +606,12 @@ const wA = lA("mf-payment-payoutAccount", {
606
606
  contentComponentProps: l
607
607
  }), M = async function(r) {
608
608
  s.close(), b(async () => {
609
- const f = await S.mergeData({
609
+ const Q = await S.mergeData({
610
610
  businessId: r.payoutSetting.store.event === U.F_PAYOUT_FOR.Enum.MARKETING ? r.payoutSetting.store.id : void 0,
611
611
  restaurantId: r.payoutSetting.store.event === U.F_PAYOUT_FOR.Enum.ORDERING ? r.payoutSetting.store.id : void 0
612
- }, Q, r);
613
- u ? await m.updateBusinessPayoutAccounts(f._id, f) : await m.createBusinessPayoutAccounts({
614
- ...f,
612
+ }, f, r);
613
+ u ? await m.updateBusinessPayoutAccounts(Q._id, Q) : await m.createBusinessPayoutAccounts({
614
+ ...Q,
615
615
  methods: void 0,
616
616
  status: gA.F_PAYOUT_ACCOUNT_STATUS.Enum.PENDING
617
617
  }), await Z();
@@ -625,7 +625,7 @@ const wA = lA("mf-payment-payoutAccount", {
625
625
  });
626
626
  }
627
627
  return sA(Z), $(B, Z), (u, D) => {
628
- const Q = C("FmButton");
628
+ const f = C("FmButton");
629
629
  return c(), i(BA, {
630
630
  title: a(d)("payment.payout_account.title"),
631
631
  description: a(d)("payment.payout_account.description"),
@@ -635,7 +635,7 @@ const wA = lA("mf-payment-payoutAccount", {
635
635
  o.value.length ? (c(), x(AA, { key: 1 }, [
636
636
  n("div", OA, [
637
637
  n("div", zA, [
638
- E.value ? (c(), i(Q, {
638
+ E.value ? (c(), i(f, {
639
639
  key: 0,
640
640
  "prepend-icon": "manage_accounts",
641
641
  variant: "primary",
@@ -661,7 +661,7 @@ const wA = lA("mf-payment-payoutAccount", {
661
661
  D[2] || (D[2] = n("h1", { class: "text-2xl font-bold mb-2" }, " Welcome! It looks like you haven't set up a payout account yet. ", -1)),
662
662
  D[3] || (D[3] = n("p", { class: "mb-2 mt-1" }, " Let's get you started—apply now and enjoy seamless payouts! ", -1)),
663
663
  n("div", IA, [
664
- Y(Q, {
664
+ Y(f, {
665
665
  "prepend-icon": "manage_accounts",
666
666
  variant: "primary",
667
667
  label: "Apply Now",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as k, resolveComponent as y, openBlock as b, createElementBlock as A, Fragment as $, createElementVNode as l, createVNode as s, withCtx as F, createTextVNode as _, toDisplayString as h, createCommentVNode as S, createBlock as C, ref as V, watch as L, computed as G, unref as v, isRef as M, h as B, onMounted as H, resolveDynamicComponent as Y, normalizeProps as Q, mergeProps as W } from "vue";
2
- import { p as P } from "./index-DktPq96p.js";
3
- import { u as K, e as N } from "./index-CK6NLwna.js";
2
+ import { p as P } from "./index-sQT526AQ.js";
3
+ import { u as K, e as N } from "./index-Bm2MGtsS.js";
4
4
  import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as X } from "vue-router";
6
- import { u as D } from "./index-Mu1p4goL.js";
6
+ import { u as D } from "./index-BSl3VmjZ.js";
7
7
  import { P as z, _ as ee } from "./PDFViewer-BQfgFexr.js";
8
8
  import { useSnackbar as j, components as te } from "@feedmepos/ui-library";
9
9
  import { u as I } from "./error-K1CakhA9.js";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-Mu1p4goL.js";
2
+ import { u as O } from "./index-BSl3VmjZ.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-CK6NLwna.js";
5
+ import { u as G } from "./index-Bm2MGtsS.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-BCZFxoXr.js";
7
+ import { r as H } from "./index-B0zGQtbr.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-CTuwLah-.js";
9
+ import { g as X } from "./grafana-DpsdWu10.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
2
- import { g as T, b as R, u as E, e as U } from "./index-CK6NLwna.js";
2
+ import { g as T, b as R, u as E, e as U } from "./index-Bm2MGtsS.js";
3
3
  import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as A } from "vue-router";
5
- import { u as L } from "./index-Mu1p4goL.js";
5
+ import { u as L } from "./index-BSl3VmjZ.js";
6
6
  import { z as p, a as v } from "./validator-D5jtpt9A.js";
7
7
  import { useCoreStore as j } from "@feedmepos/mf-common";
8
- import { r as z } from "./index-BCZFxoXr.js";
8
+ import { r as z } from "./index-B0zGQtbr.js";
9
9
  const _ = {
10
10
  async get(n) {
11
11
  return T(
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as m, createVNode as u, withCtx as _, unref as t, toDisplayString as r, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
2
- import { u as z } from "./index-CK6NLwna.js";
2
+ import { u as z } from "./index-Bm2MGtsS.js";
3
3
  import { h as $ } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as K, useCoreStore as E } from "@feedmepos/mf-common";
5
5
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as A } from "./index-CMkvR14X.js";
6
+ import { s as A } from "./index-C5ARs2NW.js";
7
7
  import { useDialog as I } from "@feedmepos/ui-library";
8
8
  import { d } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
10
  import { useRouter as L } from "vue-router";
11
- import { u as J } from "./index-Mu1p4goL.js";
11
+ import { u as J } from "./index-BSl3VmjZ.js";
12
12
  import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
14
14
  import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
2
- import { u as A } from "./index-CK6NLwna.js";
2
+ import { u as A } from "./index-Bm2MGtsS.js";
3
3
  import { h as S } from "./moment-h96o7c8I.js";
4
- import { s as _ } from "./index-CMkvR14X.js";
4
+ import { s as _ } from "./index-C5ARs2NW.js";
5
5
  import { useSnackbar as U } from "@feedmepos/ui-library";
6
6
  import { d as w } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as J } from "vue-router";
9
9
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as z } from "./index-Mu1p4goL.js";
10
+ import { u as z } from "./index-BSl3VmjZ.js";
11
11
  import { u as G } from "./error-K1CakhA9.js";
12
12
  import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  import "@feedmepos/mf-common";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as s, createElementVNode as t, toDisplayString as i, createElementBlock as L, unref as m, ref as x, onMounted as H, watch as q, createVNode as n, createTextVNode as u, h as N } from "vue";
2
- import { e as E, u as J } from "./index-CK6NLwna.js";
2
+ import { e as E, u as J } from "./index-Bm2MGtsS.js";
3
3
  import { useDialog as Q, useSnackbar as W } from "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as X, a as Z, t as P, b as ee } from "./assets-Byrt-v85.js";
5
+ import { g as X, a as Z, t as P, b as ee } from "./assets-Bne2NJOR.js";
6
6
  import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as ae } from "vue-router";
8
- import { s as ne } from "./index-CMkvR14X.js";
8
+ import { s as ne } from "./index-C5ARs2NW.js";
9
9
  import { u as oe } from "./error-K1CakhA9.js";
10
10
  import { w as re } from "./Modal-DB8M9o1T.js";
11
11
  import { h as le } from "./moment-h96o7c8I.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, resolveComponent as y, openBlock as F, createBlock as M, normalizeClass as z, withCtx as m, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as L, createVNode as o, createTextVNode as u, h as I } from "vue";
2
- import { e as C, u as H } from "./index-CK6NLwna.js";
2
+ import { e as C, u as H } from "./index-Bm2MGtsS.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as q, a as J, t as Q, b as W } from "./assets-Byrt-v85.js";
5
+ import { g as q, a as J, t as Q, b as W } from "./assets-Bne2NJOR.js";
6
6
  import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as Z } from "vue-router";
8
- import { s as ee } from "./index-CMkvR14X.js";
8
+ import { s as ee } from "./index-C5ARs2NW.js";
9
9
  import { useI18n as te, useCoreStore as ae } from "@feedmepos/mf-common";
10
10
  import { h as ne } from "./moment-h96o7c8I.js";
11
11
  const le = /* @__PURE__ */ w({
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
2
- import { e as Ce } from "./index-CK6NLwna.js";
2
+ import { e as Ce } from "./index-Bm2MGtsS.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
- import { u as we } from "./index-Mu1p4goL.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-CLC1LEgE.js";
4
+ import { u as we } from "./index-BSl3VmjZ.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js";
6
6
  import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
8
- import { t as Q } from "./index-Bsj0f0v0.js";
8
+ import { t as Q } from "./index-B1EyQdUg.js";
9
9
  import { c as le } from "./clipboard-4jh1WteU.js";
10
10
  import { useCoreStore as ue } from "@feedmepos/mf-common";
11
- import { g as Se } from "./grafana-CTuwLah-.js";
11
+ import { g as Se } from "./grafana-DpsdWu10.js";
12
12
  import { u as Y } from "./error-K1CakhA9.js";
13
13
  import { z as re, a as ne } from "./validator-D5jtpt9A.js";
14
14
  import { w as ae } from "./Modal-DB8M9o1T.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, openBlock as b, createElementBlock as O, Fragment as B, createElementVNode as F, createTextVNode as q, toDisplayString as D, toRef as G, ref as w, watch as R, onMounted as M, computed as Y, resolveComponent as v, unref as k, createVNode as f, createBlock as x, withCtx as N, createCommentVNode as T, isRef as $, resolveDynamicComponent as j, normalizeProps as A, mergeProps as L } from "vue";
2
- import { u as K, e as S } from "./index-CK6NLwna.js";
2
+ import { u as K, e as S } from "./index-Bm2MGtsS.js";
3
3
  import { useRouter as J } from "vue-router";
4
- import { t as C } from "./index-Bsj0f0v0.js";
4
+ import { t as C } from "./index-B1EyQdUg.js";
5
5
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as E } from "./index-Mu1p4goL.js";
6
+ import { u as E } from "./index-BSl3VmjZ.js";
7
7
  import { useSnackbar as z } from "@feedmepos/ui-library";
8
8
  import { u as Q } from "./error-K1CakhA9.js";
9
9
  import { z as W, a as X } from "./validator-D5jtpt9A.js";
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as B, ref as g, watch as E, computed as I, onMounted as J, resolveComponent as b, openBlock as v, createElementBlock as P, Fragment as Y, unref as t, createBlock as N, createCommentVNode as O, withCtx as T, createVNode as i, renderList as k, createElementVNode as V, isRef as y } from "vue";
2
- import { t as L, b as G } from "./assets-Byrt-v85.js";
3
- import { u as K } from "./index-CK6NLwna.js";
4
- import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-DehYWtoJ.js";
2
+ import { t as L, b as G } from "./assets-Bne2NJOR.js";
3
+ import { u as K } from "./index-Bm2MGtsS.js";
4
+ import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js";
5
5
  import { h as $ } from "./moment-h96o7c8I.js";
6
6
  import { useI18n as j, useCoreStore as q } from "@feedmepos/mf-common";
7
7
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
- import { u as W } from "./index-Mu1p4goL.js";
8
+ import { u as W } from "./index-BSl3VmjZ.js";
9
9
  import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
10
10
  import { _ as Z } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
11
  import { _ as ee } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
12
- import { p as te } from "./index-DktPq96p.js";
13
- import { t as ae } from "./index-Bsj0f0v0.js";
14
- import { _ as C } from "./index-DnFJ7KW-.js";
12
+ import { p as te } from "./index-sQT526AQ.js";
13
+ import { t as ae } from "./index-B1EyQdUg.js";
14
+ import { _ as C } from "./index-BJaJ2nSQ.js";
15
15
  const ne = /* @__PURE__ */ B({
16
16
  __name: "SourceSelector",
17
17
  props: {