@paypay/mini-app-js-sdk 1.46.1 → 1.49.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.
@@ -85,8 +85,8 @@ function normalizeNativeResponseData(data2) {
85
85
  }
86
86
  class JsBridge {
87
87
  constructor(global2) {
88
- this.version = "1.46.1";
89
- this.revision = "81e237d";
88
+ this.version = "1.49.0";
89
+ this.revision = "3c10381";
90
90
  this.messageHandlers = new Map();
91
91
  this.responseCallbacks = new Map();
92
92
  this.global = global2;
@@ -431,9 +431,17 @@ var ChallengeMethod;
431
431
  (function(ChallengeMethod2) {
432
432
  ChallengeMethod2["S256"] = "S256";
433
433
  })(ChallengeMethod || (ChallengeMethod = {}));
434
- function isIP(str) {
434
+ function isLocalIP(hostName) {
435
+ if (hostName === "localhost")
436
+ return true;
437
+ if (!isIP(hostName))
438
+ return false;
439
+ const expression = /(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)/;
440
+ return expression.test(hostName);
441
+ }
442
+ function isIP(hostName) {
435
443
  const expression = /((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/;
436
- return expression.test(str);
444
+ return expression.test(hostName);
437
445
  }
438
446
  const secondaryList = [
439
447
  "ab.ca",
@@ -779,13 +787,14 @@ function getAccessToken() {
779
787
  return api.get(PpLocalStorageKey.accessToken);
780
788
  }
781
789
  function saveCookie(key2, value2, expires) {
790
+ var _a;
782
791
  removeCookie(key2);
783
792
  if (value2) {
784
793
  const domain = getDomain(key2 === PpLocalStorageKey.appDetail ? value2 : null);
785
794
  return api.set(key2, value2, {
786
795
  domain,
787
796
  expires,
788
- secure: true
797
+ secure: !isLocalIP((_a = window.location) == null ? void 0 : _a.hostname)
789
798
  });
790
799
  }
791
800
  }
@@ -1554,6 +1563,131 @@ function getUserLocationRequest(params) {
1554
1563
  function isValidUrl(urlChallenge) {
1555
1564
  return /^https?:\/\//.test(urlChallenge);
1556
1565
  }
1566
+ async function initAppDetail(accessToken) {
1567
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1568
+ const res = await ppFetch2({
1569
+ method: "GET",
1570
+ url: "web-api/app/v1/apps/detail",
1571
+ headers: { Authorization: `Bearer ${accessToken}` }
1572
+ });
1573
+ if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a = res == null ? void 0 : res.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data)) {
1574
+ removeAppDetail();
1575
+ return false;
1576
+ }
1577
+ saveAppDetail(JSON.stringify({
1578
+ appLogo: (_e = (_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.appLogo,
1579
+ appName: (_h = (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.unsigned) == null ? void 0 : _g.data) == null ? void 0 : _h.appName,
1580
+ openUrl: (_k = (_j = (_i = res == null ? void 0 : res.body) == null ? void 0 : _i.unsigned) == null ? void 0 : _j.data) == null ? void 0 : _k.openUrl,
1581
+ whiteListDomains: (_n = (_m = (_l = res == null ? void 0 : res.body) == null ? void 0 : _l.unsigned) == null ? void 0 : _m.data) == null ? void 0 : _n.whiteListDomains,
1582
+ isInternal: (_q = (_p = (_o = res == null ? void 0 : res.body) == null ? void 0 : _o.unsigned) == null ? void 0 : _p.data) == null ? void 0 : _q.isInternal,
1583
+ window: (_t = (_s = (_r = res == null ? void 0 : res.body) == null ? void 0 : _r.unsigned) == null ? void 0 : _s.data) == null ? void 0 : _t.window,
1584
+ subdomainCookieSharing: (_w = (_v = (_u = res == null ? void 0 : res.body) == null ? void 0 : _u.unsigned) == null ? void 0 : _v.data) == null ? void 0 : _w.subdomainCookieSharing
1585
+ }));
1586
+ return true;
1587
+ }
1588
+ function getAppDetail() {
1589
+ const json = getAppDetail$1();
1590
+ if (json) {
1591
+ return JSON.parse(json);
1592
+ }
1593
+ return null;
1594
+ }
1595
+ function reconstructParams(params) {
1596
+ if (!params)
1597
+ return params;
1598
+ const _a = params, { success: success2, complete, fail } = _a, data2 = __objRest(_a, ["success", "complete", "fail"]);
1599
+ return __spreadProps(__spreadValues({}, data2), {
1600
+ success: (result2) => {
1601
+ setTimeout(() => {
1602
+ success2 == null ? void 0 : success2(result2);
1603
+ }, 0);
1604
+ setTimeout(() => {
1605
+ complete == null ? void 0 : complete();
1606
+ }, 0);
1607
+ },
1608
+ fail: (result2) => {
1609
+ setTimeout(() => {
1610
+ fail == null ? void 0 : fail(result2);
1611
+ }, 0);
1612
+ setTimeout(() => {
1613
+ complete == null ? void 0 : complete();
1614
+ }, 0);
1615
+ }
1616
+ });
1617
+ }
1618
+ function openWebview(openWebviewParams) {
1619
+ var _a, _b, _c, _d;
1620
+ const params = reconstructParams(openWebviewParams);
1621
+ let url;
1622
+ let openUrl2 = null;
1623
+ const appDetail = getAppDetail();
1624
+ try {
1625
+ url = new URL(params == null ? void 0 : params.url);
1626
+ } catch (error2) {
1627
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
1628
+ errorCode: MiniAppErrorType.invalidUrl
1629
+ });
1630
+ return;
1631
+ }
1632
+ try {
1633
+ openUrl2 = appDetail ? new URL(appDetail.openUrl) : null;
1634
+ } catch (_) {
1635
+ }
1636
+ if (params == null ? void 0 : params.authorization) {
1637
+ params.url = getAuthUrl(params.url);
1638
+ openWebviewInternal(params);
1639
+ } else if (["http:", "https:"].includes(url.protocol) && ((params == null ? void 0 : params.style) === "external" || ((_b = appDetail == null ? void 0 : appDetail.whiteListDomains) == null ? void 0 : _b.includes(url.host)) || url.host === (openUrl2 == null ? void 0 : openUrl2.host))) {
1640
+ openWebviewInternal(params);
1641
+ } else {
1642
+ return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
1643
+ errorCode: MiniAppErrorType.whiteListError
1644
+ });
1645
+ }
1646
+ (_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params);
1647
+ }
1648
+ function openWebviewInternal(params) {
1649
+ var _a, _b;
1650
+ let url;
1651
+ try {
1652
+ url = new URL(params == null ? void 0 : params.url);
1653
+ } catch (_) {
1654
+ }
1655
+ if (isPayPayMiniApp() && url) {
1656
+ if (["http:", "https:"].includes(url.protocol)) {
1657
+ url.searchParams.set("ppOpenWebview", (_a = params == null ? void 0 : params.style) != null ? _a : "modal");
1658
+ }
1659
+ window.location.href = url.toString();
1660
+ } else if (url) {
1661
+ if (["http:", "https:"].includes(url.protocol)) {
1662
+ (_b = window.open(url.toString(), "_blank")) == null ? void 0 : _b.focus();
1663
+ } else {
1664
+ window.location.href = url.toString();
1665
+ }
1666
+ }
1667
+ }
1668
+ function getAuthUrl(redirectUrl) {
1669
+ var _a;
1670
+ let authUrl = "";
1671
+ switch (getEnv()) {
1672
+ case "staging":
1673
+ authUrl = "https://stg-www.paypay-corp.co.jp";
1674
+ break;
1675
+ case "sandbox":
1676
+ authUrl = "https://stg-www.sandbox.paypay.ne.jp";
1677
+ break;
1678
+ case "canary":
1679
+ authUrl = "https://www-prod-canary.paypay.ne.jp";
1680
+ break;
1681
+ case "qa":
1682
+ authUrl = "https://www.qa.stg.paypay.ne.jp";
1683
+ break;
1684
+ case "production":
1685
+ default:
1686
+ authUrl = "https://www.paypay.ne.jp";
1687
+ }
1688
+ const clientId = (_a = getClientId()) != null ? _a : "";
1689
+ return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
1690
+ }
1557
1691
  function isDef(val2) {
1558
1692
  return val2 !== void 0 && val2 !== null;
1559
1693
  }
@@ -1729,11 +1863,14 @@ function handleHeightResize(el, windowHeight, isScrollable, offsetHeight) {
1729
1863
  return false;
1730
1864
  }
1731
1865
  }
1732
- function getPaymentMethodStatus(isExpired, val2) {
1866
+ function getPaymentMethodStatus(isExpired, paymentMethodInfo) {
1733
1867
  const lg2 = getLanguage();
1734
1868
  if (isExpired)
1735
1869
  return lg2.paymentMethod.expired;
1736
- return val2 && val2 in PaymentMethodStatus ? lg2.paymentMethodStatus[val2] : "";
1870
+ const { paymentMethodStatus: paymentMethodStatus2, paymentMethodStatusLabel } = paymentMethodInfo || {};
1871
+ if (paymentMethodStatusLabel)
1872
+ return paymentMethodStatusLabel;
1873
+ return paymentMethodStatus2 && paymentMethodStatus2 in PaymentMethodStatus ? lg2.paymentMethodStatus[paymentMethodStatus2] : "";
1737
1874
  }
1738
1875
  function filterErrorButtonList(buttonList) {
1739
1876
  return buttonList == null ? void 0 : buttonList.filter((button4) => {
@@ -1782,6 +1919,23 @@ async function generateCodeChallange(codeVerifier) {
1782
1919
  const hash = await crypto.subtle.digest("SHA-256", array);
1783
1920
  return base64UrlEncode(String.fromCharCode(...new Uint8Array(hash)));
1784
1921
  }
1922
+ function openUrl(linkUrl) {
1923
+ if (!linkUrl)
1924
+ return;
1925
+ if (isValidUrl(linkUrl)) {
1926
+ openWebviewInternal({ url: linkUrl });
1927
+ return;
1928
+ }
1929
+ try {
1930
+ const url = new URL(linkUrl);
1931
+ const urlParam = url.searchParams.get("url");
1932
+ if (urlParam && linkUrl.startsWith("paypay://embed")) {
1933
+ openWebviewInternal({ url: urlParam });
1934
+ return;
1935
+ }
1936
+ } catch (_) {
1937
+ }
1938
+ }
1785
1939
  const opaUrl = () => {
1786
1940
  switch (getEnv()) {
1787
1941
  case "staging":
@@ -1802,7 +1956,7 @@ const opaUrl = () => {
1802
1956
  const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
1803
1957
  let headers = new Headers(__spreadValues({
1804
1958
  "Content-Type": "application/json",
1805
- "Client-Version": "1.46.1",
1959
+ "Client-Version": "1.49.0",
1806
1960
  "Client-OS-Type": getRuntime()
1807
1961
  }, customHeaders));
1808
1962
  if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance" || urlEndpoint === "web-api/app/v1/users/autoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/preTransactionAutoTopupConfiguration") {
@@ -1955,35 +2109,6 @@ async function refreshToken() {
1955
2109
  }
1956
2110
  return false;
1957
2111
  }
1958
- async function initAppDetail(accessToken) {
1959
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1960
- const res = await ppFetch2({
1961
- method: "GET",
1962
- url: "web-api/app/v1/apps/detail",
1963
- headers: { Authorization: `Bearer ${accessToken}` }
1964
- });
1965
- if ((res == null ? void 0 : res.ppFetchResult) !== "success" || !((_b = (_a = res == null ? void 0 : res.body) == null ? void 0 : _a.unsigned) == null ? void 0 : _b.data)) {
1966
- removeAppDetail();
1967
- return false;
1968
- }
1969
- saveAppDetail(JSON.stringify({
1970
- appLogo: (_e = (_d = (_c = res == null ? void 0 : res.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.appLogo,
1971
- appName: (_h = (_g = (_f = res == null ? void 0 : res.body) == null ? void 0 : _f.unsigned) == null ? void 0 : _g.data) == null ? void 0 : _h.appName,
1972
- openUrl: (_k = (_j = (_i = res == null ? void 0 : res.body) == null ? void 0 : _i.unsigned) == null ? void 0 : _j.data) == null ? void 0 : _k.openUrl,
1973
- whiteListDomains: (_n = (_m = (_l = res == null ? void 0 : res.body) == null ? void 0 : _l.unsigned) == null ? void 0 : _m.data) == null ? void 0 : _n.whiteListDomains,
1974
- isInternal: (_q = (_p = (_o = res == null ? void 0 : res.body) == null ? void 0 : _o.unsigned) == null ? void 0 : _p.data) == null ? void 0 : _q.isInternal,
1975
- window: (_t = (_s = (_r = res == null ? void 0 : res.body) == null ? void 0 : _r.unsigned) == null ? void 0 : _s.data) == null ? void 0 : _t.window,
1976
- subdomainCookieSharing: (_w = (_v = (_u = res == null ? void 0 : res.body) == null ? void 0 : _u.unsigned) == null ? void 0 : _v.data) == null ? void 0 : _w.subdomainCookieSharing
1977
- }));
1978
- return true;
1979
- }
1980
- function getAppDetail() {
1981
- const json = getAppDetail$1();
1982
- if (json) {
1983
- return JSON.parse(json);
1984
- }
1985
- return null;
1986
- }
1987
2112
  async function initAppConfiguration() {
1988
2113
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1989
2114
  const res = await ppFetch2({
@@ -2012,29 +2137,6 @@ function getAppConfig() {
2012
2137
  }
2013
2138
  return null;
2014
2139
  }
2015
- function reconstructParams(params) {
2016
- if (!params)
2017
- return params;
2018
- const _a = params, { success: success2, complete, fail } = _a, data2 = __objRest(_a, ["success", "complete", "fail"]);
2019
- return __spreadProps(__spreadValues({}, data2), {
2020
- success: (result2) => {
2021
- setTimeout(() => {
2022
- success2 == null ? void 0 : success2(result2);
2023
- }, 0);
2024
- setTimeout(() => {
2025
- complete == null ? void 0 : complete();
2026
- }, 0);
2027
- },
2028
- fail: (result2) => {
2029
- setTimeout(() => {
2030
- fail == null ? void 0 : fail(result2);
2031
- }, 0);
2032
- setTimeout(() => {
2033
- complete == null ? void 0 : complete();
2034
- }, 0);
2035
- }
2036
- });
2037
- }
2038
2140
  var MiniAppStatusType;
2039
2141
  (function(MiniAppStatusType2) {
2040
2142
  MiniAppStatusType2["validToken"] = "TOKEN_VALID";
@@ -2670,7 +2772,7 @@ function createGetter(isReadonly2 = false, shallow = false) {
2670
2772
  return res;
2671
2773
  };
2672
2774
  }
2673
- const set = /* @__PURE__ */ createSetter();
2775
+ const set$1 = /* @__PURE__ */ createSetter();
2674
2776
  const shallowSet = /* @__PURE__ */ createSetter(true);
2675
2777
  function createSetter(shallow = false) {
2676
2778
  return function set2(target, key2, value2, receiver2) {
@@ -2722,7 +2824,7 @@ function ownKeys(target) {
2722
2824
  }
2723
2825
  const mutableHandlers = {
2724
2826
  get,
2725
- set,
2827
+ set: set$1,
2726
2828
  deleteProperty,
2727
2829
  has,
2728
2830
  ownKeys
@@ -2790,7 +2892,7 @@ function add(value2) {
2790
2892
  }
2791
2893
  return this;
2792
2894
  }
2793
- function set$1(key2, value2) {
2895
+ function set$1$1(key2, value2) {
2794
2896
  value2 = toRaw(value2);
2795
2897
  const target = toRaw(this);
2796
2898
  const { has: has2, get: get2 } = getProto(target);
@@ -2883,7 +2985,7 @@ function createInstrumentations() {
2883
2985
  },
2884
2986
  has: has$1,
2885
2987
  add,
2886
- set: set$1,
2988
+ set: set$1$1,
2887
2989
  delete: deleteEntry,
2888
2990
  clear,
2889
2991
  forEach: createForEach(false, false)
@@ -2897,7 +2999,7 @@ function createInstrumentations() {
2897
2999
  },
2898
3000
  has: has$1,
2899
3001
  add,
2900
- set: set$1,
3002
+ set: set$1$1,
2901
3003
  delete: deleteEntry,
2902
3004
  clear,
2903
3005
  forEach: createForEach(false, true)
@@ -7586,7 +7688,8 @@ async function execute$c(params) {
7586
7688
  });
7587
7689
  }
7588
7690
  }
7589
- const urlParams = new URLSearchParams(window.location.search);
7691
+ const url = new URL(window.location.href);
7692
+ const urlParams = url.searchParams;
7590
7693
  let token = urlParams == null ? void 0 : urlParams.get("token");
7591
7694
  if (!token || token.length < 1) {
7592
7695
  token = urlParams == null ? void 0 : urlParams.get("one_time_token");
@@ -7599,9 +7702,8 @@ async function execute$c(params) {
7599
7702
  }
7600
7703
  urlParams.delete("token");
7601
7704
  urlParams.delete("one_time_token");
7602
- const newUrlParams = urlParams.toString().length ? "?" + urlParams.toString() : "";
7603
- const newUrl = location.pathname + newUrlParams + location.hash;
7604
- history.replaceState(null, "", newUrl);
7705
+ url.search = urlParams.toString();
7706
+ history.replaceState(null, "", url);
7605
7707
  const codeVerifier = getCodeVerifier();
7606
7708
  const res = await ppFetch2({
7607
7709
  method: "POST",
@@ -7680,87 +7782,14 @@ function copyToClipboard(copyTextParams) {
7680
7782
  document.body.removeChild(textarea);
7681
7783
  result2 ? (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params) : (_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.other });
7682
7784
  }
7683
- function openWebview(openWebviewParams) {
7684
- var _a, _b, _c, _d;
7685
- const params = reconstructParams(openWebviewParams);
7686
- let url;
7687
- let openUrl = null;
7688
- const appDetail = getAppDetail();
7689
- try {
7690
- url = new URL(params == null ? void 0 : params.url);
7691
- } catch (error2) {
7692
- (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
7693
- errorCode: MiniAppErrorType.invalidUrl
7694
- });
7695
- return;
7696
- }
7697
- try {
7698
- openUrl = appDetail ? new URL(appDetail.openUrl) : null;
7699
- } catch (_) {
7700
- }
7701
- if (params == null ? void 0 : params.authorization) {
7702
- params.url = getAuthUrl(params.url);
7703
- openWebviewInternal(params);
7704
- } else if (["http:", "https:"].includes(url.protocol) && ((params == null ? void 0 : params.style) === "external" || ((_b = appDetail == null ? void 0 : appDetail.whiteListDomains) == null ? void 0 : _b.includes(url.host)) || url.host === (openUrl == null ? void 0 : openUrl.host))) {
7705
- openWebviewInternal(params);
7706
- } else {
7707
- return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
7708
- errorCode: MiniAppErrorType.whiteListError
7709
- });
7710
- }
7711
- (_d = params == null ? void 0 : params.success) == null ? void 0 : _d.call(params);
7712
- }
7713
- function openWebviewInternal(params) {
7714
- var _a, _b;
7715
- let url;
7716
- try {
7717
- url = new URL(params == null ? void 0 : params.url);
7718
- } catch (_) {
7719
- }
7720
- if (isPayPayMiniApp() && url) {
7721
- if (["http:", "https:"].includes(url.protocol)) {
7722
- url.searchParams.set("ppOpenWebview", (_a = params == null ? void 0 : params.style) != null ? _a : "modal");
7723
- }
7724
- window.location.href = url.toString();
7725
- } else if (url) {
7726
- if (["http:", "https:"].includes(url.protocol)) {
7727
- (_b = window.open(url.toString(), "_blank")) == null ? void 0 : _b.focus();
7728
- } else {
7729
- window.location.href = url.toString();
7730
- }
7731
- }
7732
- }
7733
- function getAuthUrl(redirectUrl) {
7734
- var _a;
7735
- let authUrl = "";
7736
- switch (getEnv()) {
7737
- case "staging":
7738
- authUrl = "https://stg-www.paypay-corp.co.jp";
7739
- break;
7740
- case "sandbox":
7741
- authUrl = "https://stg-www.sandbox.paypay.ne.jp";
7742
- break;
7743
- case "canary":
7744
- authUrl = "https://www-prod-canary.paypay.ne.jp";
7745
- break;
7746
- case "qa":
7747
- authUrl = "https://www.qa.stg.paypay.ne.jp";
7748
- break;
7749
- case "production":
7750
- default:
7751
- authUrl = "https://www.paypay.ne.jp";
7752
- }
7753
- const clientId = (_a = getClientId()) != null ? _a : "";
7754
- return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(redirectUrl)}`;
7755
- }
7756
- var _sfc_main$1A = defineComponent({
7785
+ var _sfc_main$1B = defineComponent({
7757
7786
  name: "LoadingIndicator"
7758
7787
  });
7759
7788
  const loading$1 = "_loading_ovc6l_1";
7760
7789
  const bounce = "_bounce_ovc6l_14";
7761
7790
  const bounce1 = "_bounce1_ovc6l_14";
7762
7791
  const bounce2 = "_bounce2_ovc6l_17";
7763
- var style0$1p = {
7792
+ var style0$1q = {
7764
7793
  loading: loading$1,
7765
7794
  bounce,
7766
7795
  bounce1,
@@ -7774,7 +7803,7 @@ var _export_sfc = (sfc, props) => {
7774
7803
  return target;
7775
7804
  };
7776
7805
  const _hoisted_1$W = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
7777
- function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
7806
+ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
7778
7807
  return openBlock(), createElementBlock("div", {
7779
7808
  class: normalizeClass(_ctx.$style.loading)
7780
7809
  }, [
@@ -7787,9 +7816,9 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
7787
7816
  _hoisted_1$W
7788
7817
  ], 2);
7789
7818
  }
7790
- const cssModules$1p = {};
7791
- cssModules$1p["$style"] = style0$1p;
7792
- var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__cssModules", cssModules$1p]]);
7819
+ const cssModules$1q = {};
7820
+ cssModules$1q["$style"] = style0$1q;
7821
+ var LoadingIndicator = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1B], ["__cssModules", cssModules$1q]]);
7793
7822
  const buttonWrapper = "_buttonWrapper_1a5ed_2";
7794
7823
  const container$A = "_container_1a5ed_2";
7795
7824
  const primary = "_primary_1a5ed_24";
@@ -8393,7 +8422,7 @@ const errorTitle = "_errorTitle_86qa7_25";
8393
8422
  const subTitle$2 = "_subTitle_86qa7_33";
8394
8423
  const btnContainer$2 = "_btnContainer_86qa7_41";
8395
8424
  const closeBtn$3 = "_closeBtn_86qa7_45";
8396
- var style0$1o = {
8425
+ var style0$1p = {
8397
8426
  "ppmna-default-font": "_ppmna-default-font_86qa7_1",
8398
8427
  errorContainer,
8399
8428
  errorIcon,
@@ -8403,7 +8432,7 @@ var style0$1o = {
8403
8432
  btnContainer: btnContainer$2,
8404
8433
  closeBtn: closeBtn$3
8405
8434
  };
8406
- const _sfc_main$1z = defineComponent({
8435
+ const _sfc_main$1A = defineComponent({
8407
8436
  components: {
8408
8437
  ActionSheet,
8409
8438
  Button
@@ -8519,7 +8548,7 @@ const _sfc_main$1z = defineComponent({
8519
8548
  }
8520
8549
  });
8521
8550
  const _hoisted_1$V = ["src"];
8522
- function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
8551
+ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
8523
8552
  const _component_Button = resolveComponent("Button");
8524
8553
  const _component_ActionSheet = resolveComponent("ActionSheet");
8525
8554
  return openBlock(), createBlock(_component_ActionSheet, {
@@ -8588,10 +8617,10 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
8588
8617
  _: 1
8589
8618
  }, 8, ["show"]);
8590
8619
  }
8591
- const cssModules$1o = {};
8592
- cssModules$1o["$style"] = style0$1o;
8593
- var ErrorSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__cssModules", cssModules$1o]]);
8594
- const wrapperClass$p = "_wrapperClass_hgr81_2";
8620
+ const cssModules$1p = {};
8621
+ cssModules$1p["$style"] = style0$1p;
8622
+ var ErrorSheet = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1A], ["__cssModules", cssModules$1p]]);
8623
+ const wrapperClass$q = "_wrapperClass_hgr81_2";
8595
8624
  const openMapActionsheetContainer = "_openMapActionsheetContainer_hgr81_2";
8596
8625
  const openMapTitle = "_openMapTitle_hgr81_13";
8597
8626
  const openMapActionsheetMain = "_openMapActionsheetMain_hgr81_19";
@@ -8599,9 +8628,9 @@ const divider = "_divider_hgr81_26";
8599
8628
  const mapButton = "_mapButton_hgr81_29";
8600
8629
  const closeBtn$2 = "_closeBtn_hgr81_36";
8601
8630
  const mapList = "_mapList_hgr81_48";
8602
- var style0$1n = {
8631
+ var style0$1o = {
8603
8632
  "ppmna-default-font": "_ppmna-default-font_hgr81_1",
8604
- wrapperClass: wrapperClass$p,
8633
+ wrapperClass: wrapperClass$q,
8605
8634
  openMapActionsheetContainer,
8606
8635
  openMapTitle,
8607
8636
  openMapActionsheetMain,
@@ -8610,7 +8639,7 @@ var style0$1n = {
8610
8639
  closeBtn: closeBtn$2,
8611
8640
  mapList
8612
8641
  };
8613
- const _sfc_main$1y = defineComponent({
8642
+ const _sfc_main$1z = defineComponent({
8614
8643
  components: {
8615
8644
  ActionSheet,
8616
8645
  Button,
@@ -8662,7 +8691,7 @@ const _sfc_main$1y = defineComponent({
8662
8691
  }
8663
8692
  });
8664
8693
  const _hoisted_1$U = /* @__PURE__ */ createTextVNode(" \u30AD\u30E3\u30F3\u30BB\u30EB ");
8665
- function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
8694
+ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
8666
8695
  const _component_Divider = resolveComponent("Divider");
8667
8696
  const _component_Button = resolveComponent("Button");
8668
8697
  const _component_ActionSheet = resolveComponent("ActionSheet");
@@ -8732,9 +8761,9 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
8732
8761
  }, null, 8, ["show", "error-text"])
8733
8762
  ], 64);
8734
8763
  }
8735
- const cssModules$1n = {};
8736
- cssModules$1n["$style"] = style0$1n;
8737
- var AppVue$8 = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__cssModules", cssModules$1n]]);
8764
+ const cssModules$1o = {};
8765
+ cssModules$1o["$style"] = style0$1o;
8766
+ var AppVue$8 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1z], ["__cssModules", cssModules$1o]]);
8738
8767
  const popStateHandler = (callback, inputParams) => {
8739
8768
  const handlePopState = () => {
8740
8769
  var _a, _b;
@@ -9228,7 +9257,7 @@ function useBreakpoints() {
9228
9257
  windowHeight: computed(() => windowHeight.value)
9229
9258
  };
9230
9259
  }
9231
- const wrapperClass$o = "_wrapperClass_1k2lr_1";
9260
+ const wrapperClass$p = "_wrapperClass_1k2lr_1";
9232
9261
  const breakDownList = "_breakDownList_1k2lr_1";
9233
9262
  const nonUsable = "_nonUsable_1k2lr_17";
9234
9263
  const breakDownEnter = "_breakDownEnter_1k2lr_35";
@@ -9238,8 +9267,8 @@ const enterActive = "_enterActive_1k2lr_55";
9238
9267
  const leaveActive = "_leaveActive_1k2lr_60";
9239
9268
  const enterTo = "_enterTo_1k2lr_65";
9240
9269
  const leaveTo = "_leaveTo_1k2lr_69";
9241
- var style0$1m = {
9242
- wrapperClass: wrapperClass$o,
9270
+ var style0$1n = {
9271
+ wrapperClass: wrapperClass$p,
9243
9272
  breakDownList,
9244
9273
  nonUsable,
9245
9274
  breakDownEnter,
@@ -9250,7 +9279,7 @@ var style0$1m = {
9250
9279
  enterTo,
9251
9280
  leaveTo
9252
9281
  };
9253
- const _sfc_main$1x = defineComponent({
9282
+ const _sfc_main$1y = defineComponent({
9254
9283
  props: {
9255
9284
  wallet: {
9256
9285
  type: Object,
@@ -9291,7 +9320,7 @@ const _sfc_main$1x = defineComponent({
9291
9320
  };
9292
9321
  }
9293
9322
  });
9294
- function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
9323
+ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
9295
9324
  return openBlock(), createElementBlock("div", {
9296
9325
  class: normalizeClass(_ctx.$style.wrapperClass)
9297
9326
  }, [
@@ -9354,10 +9383,10 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
9354
9383
  }, 8, ["enter-active-class", "leave-active-class", "enter-to-class", "leave-to-class"])
9355
9384
  ], 2);
9356
9385
  }
9357
- const cssModules$1m = {};
9358
- cssModules$1m["$style"] = style0$1m;
9359
- var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__cssModules", cssModules$1m]]);
9360
- const wrapperClass$n = "_wrapperClass_123gn_1";
9386
+ const cssModules$1n = {};
9387
+ cssModules$1n["$style"] = style0$1n;
9388
+ var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__cssModules", cssModules$1n]]);
9389
+ const wrapperClass$o = "_wrapperClass_123gn_1";
9361
9390
  const ppmnaPaymentTypeContainer$4 = "_ppmnaPaymentTypeContainer_123gn_1";
9362
9391
  const img$e = "_img_123gn_5";
9363
9392
  const imgContainer$5 = "_imgContainer_123gn_18";
@@ -9375,8 +9404,8 @@ const chargeContainer = "_chargeContainer_123gn_96";
9375
9404
  const greenTick = "_greenTick_123gn_106";
9376
9405
  const autoCharge = "_autoCharge_123gn_119";
9377
9406
  const makePaymentRightAlign = "_makePaymentRightAlign_123gn_126";
9378
- var style0$1l = {
9379
- wrapperClass: wrapperClass$n,
9407
+ var style0$1m = {
9408
+ wrapperClass: wrapperClass$o,
9380
9409
  ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$4,
9381
9410
  img: img$e,
9382
9411
  imgContainer: imgContainer$5,
@@ -9395,7 +9424,7 @@ var style0$1l = {
9395
9424
  autoCharge,
9396
9425
  makePaymentRightAlign
9397
9426
  };
9398
- const _sfc_main$1w = defineComponent({
9427
+ const _sfc_main$1x = defineComponent({
9399
9428
  components: {
9400
9429
  WalletBreakdown
9401
9430
  },
@@ -9435,8 +9464,8 @@ const _sfc_main$1w = defineComponent({
9435
9464
  }
9436
9465
  });
9437
9466
  const _hoisted_1$T = ["src"];
9438
- const _hoisted_2$p = ["src"];
9439
- function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9467
+ const _hoisted_2$s = ["src"];
9468
+ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
9440
9469
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
9441
9470
  return openBlock(), createElementBlock("div", {
9442
9471
  class: normalizeClass([
@@ -9474,7 +9503,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9474
9503
  class: normalizeClass(_ctx.$style.greenTick),
9475
9504
  src: _ctx.images.checkGreen,
9476
9505
  alt: "green-tick"
9477
- }, null, 10, _hoisted_2$p),
9506
+ }, null, 10, _hoisted_2$s),
9478
9507
  createBaseVNode("span", {
9479
9508
  class: normalizeClass(_ctx.$style.autoCharge)
9480
9509
  }, toDisplayString(_ctx.lg.wallet.autoCharge), 3)
@@ -9498,10 +9527,10 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9498
9527
  ], 2)
9499
9528
  ], 2);
9500
9529
  }
9501
- const cssModules$1l = {};
9502
- cssModules$1l["$style"] = style0$1l;
9503
- var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__cssModules", cssModules$1l]]);
9504
- const wrapperClass$m = "_wrapperClass_1cpol_1";
9530
+ const cssModules$1m = {};
9531
+ cssModules$1m["$style"] = style0$1m;
9532
+ var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$1x], ["__cssModules", cssModules$1m]]);
9533
+ const wrapperClass$n = "_wrapperClass_1cpol_1";
9505
9534
  const ppmnaPaymentTypeContainer$3 = "_ppmnaPaymentTypeContainer_1cpol_1";
9506
9535
  const img$d = "_img_1cpol_5";
9507
9536
  const imgContainer$4 = "_imgContainer_1cpol_18";
@@ -9518,14 +9547,14 @@ const auth = "_auth_1cpol_90";
9518
9547
  const authText = "_authText_1cpol_100";
9519
9548
  const cardImageContainer = "_cardImageContainer_1cpol_104";
9520
9549
  const cardImg = "_cardImg_1cpol_107";
9521
- const content$g = "_content_1cpol_111";
9550
+ const content$h = "_content_1cpol_111";
9522
9551
  const authenticated = "_authenticated_1cpol_121";
9523
9552
  const notAuthenticated = "_notAuthenticated_1cpol_124";
9524
9553
  const authorizedImg$1 = "_authorizedImg_1cpol_127";
9525
9554
  const unAuthorizedImg$1 = "_unAuthorizedImg_1cpol_136";
9526
9555
  const creditCard$1 = "_creditCard_1cpol_144";
9527
- var style0$1k = {
9528
- wrapperClass: wrapperClass$m,
9556
+ var style0$1l = {
9557
+ wrapperClass: wrapperClass$n,
9529
9558
  ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$3,
9530
9559
  img: img$d,
9531
9560
  imgContainer: imgContainer$4,
@@ -9542,7 +9571,7 @@ var style0$1k = {
9542
9571
  authText,
9543
9572
  cardImageContainer,
9544
9573
  cardImg,
9545
- content: content$g,
9574
+ content: content$h,
9546
9575
  authenticated,
9547
9576
  notAuthenticated,
9548
9577
  authorizedImg: authorizedImg$1,
@@ -9557,7 +9586,7 @@ const creditCardMap$1 = {
9557
9586
  [CreditTypes.AMEX]: img$c.amex,
9558
9587
  yj: img$c.yahoo
9559
9588
  };
9560
- const _sfc_main$1v = defineComponent({
9589
+ const _sfc_main$1w = defineComponent({
9561
9590
  props: {
9562
9591
  credit: {
9563
9592
  type: Object,
@@ -9633,8 +9662,8 @@ const _sfc_main$1v = defineComponent({
9633
9662
  }
9634
9663
  });
9635
9664
  const _hoisted_1$S = ["src"];
9636
- const _hoisted_2$o = ["src"];
9637
- function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
9665
+ const _hoisted_2$r = ["src"];
9666
+ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9638
9667
  return openBlock(), createElementBlock("div", {
9639
9668
  class: normalizeClass([
9640
9669
  _ctx.style.wrapperClass,
@@ -9672,7 +9701,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
9672
9701
  createBaseVNode("img", {
9673
9702
  src: _ctx.authInfo.img,
9674
9703
  class: normalizeClass([_ctx.authInfo.authImg])
9675
- }, null, 10, _hoisted_2$o),
9704
+ }, null, 10, _hoisted_2$r),
9676
9705
  createBaseVNode("span", {
9677
9706
  class: normalizeClass([_ctx.style.authText])
9678
9707
  }, toDisplayString(_ctx.authInfo.text), 3)
@@ -9692,10 +9721,10 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
9692
9721
  ], 2)
9693
9722
  ], 2);
9694
9723
  }
9695
- const cssModules$1k = {};
9696
- cssModules$1k["$style"] = style0$1k;
9697
- var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__cssModules", cssModules$1k]]);
9698
- const wrapperClass$l = "_wrapperClass_insy7_1";
9724
+ const cssModules$1l = {};
9725
+ cssModules$1l["$style"] = style0$1l;
9726
+ var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1w], ["__cssModules", cssModules$1l]]);
9727
+ const wrapperClass$m = "_wrapperClass_insy7_1";
9699
9728
  const ppmnaPaymentTypeContainer$2 = "_ppmnaPaymentTypeContainer_insy7_1";
9700
9729
  const img$b = "_img_insy7_5";
9701
9730
  const imgContainer$3 = "_imgContainer_insy7_18";
@@ -9709,12 +9738,12 @@ const arrowRight$2 = "_arrowRight_insy7_71";
9709
9738
  const makePaymentArrowContainer$2 = "_makePaymentArrowContainer_insy7_81";
9710
9739
  const bankImg = "_bankImg_insy7_85";
9711
9740
  const branchCode = "_branchCode_insy7_89";
9712
- const content$f = "_content_insy7_92";
9741
+ const content$g = "_content_insy7_92";
9713
9742
  const roundContainer = "_roundContainer_insy7_96";
9714
9743
  const round$2 = "_round_insy7_26";
9715
9744
  const bankName = "_bankName_insy7_102";
9716
- var style0$1j = {
9717
- wrapperClass: wrapperClass$l,
9745
+ var style0$1k = {
9746
+ wrapperClass: wrapperClass$m,
9718
9747
  ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$2,
9719
9748
  img: img$b,
9720
9749
  imgContainer: imgContainer$3,
@@ -9728,7 +9757,7 @@ var style0$1j = {
9728
9757
  makePaymentArrowContainer: makePaymentArrowContainer$2,
9729
9758
  bankImg,
9730
9759
  branchCode,
9731
- content: content$f,
9760
+ content: content$g,
9732
9761
  roundContainer,
9733
9762
  round: round$2,
9734
9763
  bankName
@@ -9742,7 +9771,7 @@ const getTypeText$2 = (val2) => {
9742
9771
  return "";
9743
9772
  }
9744
9773
  };
9745
- const _sfc_main$1u = defineComponent({
9774
+ const _sfc_main$1v = defineComponent({
9746
9775
  props: {
9747
9776
  bank: {
9748
9777
  type: Object,
@@ -9787,7 +9816,7 @@ const _sfc_main$1u = defineComponent({
9787
9816
  }
9788
9817
  });
9789
9818
  const _hoisted_1$R = ["src"];
9790
- function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
9819
+ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
9791
9820
  return openBlock(), createElementBlock("div", {
9792
9821
  class: normalizeClass([
9793
9822
  _ctx.style.wrapperClass,
@@ -9841,10 +9870,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
9841
9870
  ], 2)
9842
9871
  ], 2);
9843
9872
  }
9844
- const cssModules$1j = {};
9845
- cssModules$1j["$style"] = style0$1j;
9846
- var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__cssModules", cssModules$1j]]);
9847
- const wrapperClass$k = "_wrapperClass_101rj_1";
9873
+ const cssModules$1k = {};
9874
+ cssModules$1k["$style"] = style0$1k;
9875
+ var BankType = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$1v], ["__cssModules", cssModules$1k]]);
9876
+ const wrapperClass$l = "_wrapperClass_101rj_1";
9848
9877
  const ppmnaPaymentTypeContainer$1 = "_ppmnaPaymentTypeContainer_101rj_1";
9849
9878
  const img$a = "_img_101rj_5";
9850
9879
  const imgContainer$2 = "_imgContainer_101rj_18";
@@ -9858,11 +9887,11 @@ const arrowRight$1 = "_arrowRight_101rj_71";
9858
9887
  const makePaymentArrowContainer$1 = "_makePaymentArrowContainer_101rj_81";
9859
9888
  const container$y = "_container_101rj_85";
9860
9889
  const sbidImg = "_sbidImg_101rj_97";
9861
- const content$e = "_content_101rj_105";
9890
+ const content$f = "_content_101rj_105";
9862
9891
  const desc1 = "_desc1_101rj_118";
9863
9892
  const desc2 = "_desc2_101rj_122";
9864
- var style0$1i = {
9865
- wrapperClass: wrapperClass$k,
9893
+ var style0$1j = {
9894
+ wrapperClass: wrapperClass$l,
9866
9895
  ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$1,
9867
9896
  img: img$a,
9868
9897
  imgContainer: imgContainer$2,
@@ -9876,11 +9905,11 @@ var style0$1i = {
9876
9905
  makePaymentArrowContainer: makePaymentArrowContainer$1,
9877
9906
  container: container$y,
9878
9907
  sbidImg,
9879
- content: content$e,
9908
+ content: content$f,
9880
9909
  desc1,
9881
9910
  desc2
9882
9911
  };
9883
- const _sfc_main$1t = defineComponent({
9912
+ const _sfc_main$1u = defineComponent({
9884
9913
  props: {
9885
9914
  sbid: {
9886
9915
  type: Object,
@@ -9908,7 +9937,7 @@ const _sfc_main$1t = defineComponent({
9908
9937
  }
9909
9938
  });
9910
9939
  const _hoisted_1$Q = ["src"];
9911
- function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
9940
+ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
9912
9941
  return openBlock(), createElementBlock("div", {
9913
9942
  class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
9914
9943
  }, [
@@ -9942,10 +9971,10 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
9942
9971
  ], 2)
9943
9972
  ], 2);
9944
9973
  }
9945
- const cssModules$1i = {};
9946
- cssModules$1i["$style"] = style0$1i;
9947
- var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__cssModules", cssModules$1i]]);
9948
- const wrapperClass$j = "_wrapperClass_1nwz1_1";
9974
+ const cssModules$1j = {};
9975
+ cssModules$1j["$style"] = style0$1j;
9976
+ var SbidType = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$1u], ["__cssModules", cssModules$1j]]);
9977
+ const wrapperClass$k = "_wrapperClass_1nwz1_1";
9949
9978
  const ppmnaPaymentTypeContainer = "_ppmnaPaymentTypeContainer_1nwz1_1";
9950
9979
  const img$9 = "_img_1nwz1_5";
9951
9980
  const imgContainer$1 = "_imgContainer_1nwz1_18";
@@ -9960,8 +9989,8 @@ const makePaymentArrowContainer = "_makePaymentArrowContainer_1nwz1_81";
9960
9989
  const container$x = "_container_1nwz1_86";
9961
9990
  const subTitle = "_subTitle_1nwz1_91";
9962
9991
  const imageContainer$5 = "_imageContainer_1nwz1_96";
9963
- var style0$1h = {
9964
- wrapperClass: wrapperClass$j,
9992
+ var style0$1i = {
9993
+ wrapperClass: wrapperClass$k,
9965
9994
  ppmnaPaymentTypeContainer,
9966
9995
  img: img$9,
9967
9996
  imgContainer: imgContainer$1,
@@ -9977,7 +10006,7 @@ var style0$1h = {
9977
10006
  subTitle,
9978
10007
  imageContainer: imageContainer$5
9979
10008
  };
9980
- const _sfc_main$1s = defineComponent({
10009
+ const _sfc_main$1t = defineComponent({
9981
10010
  props: {
9982
10011
  payLater: {
9983
10012
  type: Object,
@@ -10006,7 +10035,7 @@ const _sfc_main$1s = defineComponent({
10006
10035
  }
10007
10036
  });
10008
10037
  const _hoisted_1$P = ["src"];
10009
- function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
10038
+ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
10010
10039
  return openBlock(), createElementBlock("div", {
10011
10040
  class: normalizeClass([
10012
10041
  _ctx.$style.wrapperClass,
@@ -10047,9 +10076,9 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
10047
10076
  ], 2)
10048
10077
  ], 2);
10049
10078
  }
10050
- const cssModules$1h = {};
10051
- cssModules$1h["$style"] = style0$1h;
10052
- var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__cssModules", cssModules$1h]]);
10079
+ const cssModules$1i = {};
10080
+ cssModules$1i["$style"] = style0$1i;
10081
+ var PayLaterType = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__cssModules", cssModules$1i]]);
10053
10082
  const PaymentType = defineComponent({
10054
10083
  props: {
10055
10084
  paymentMethod: {
@@ -14335,7 +14364,7 @@ var lottie_svg = { exports: {} };
14335
14364
  lottie.useWebWorker = setWebWorker;
14336
14365
  lottie.setIDPrefix = setPrefix;
14337
14366
  lottie.__getFactory = getFactory;
14338
- lottie.version = "5.9.4";
14367
+ lottie.version = "5.9.6";
14339
14368
  function checkReady() {
14340
14369
  if (document.readyState === "complete") {
14341
14370
  clearInterval(readyStateCheckInterval);
@@ -22609,11 +22638,12 @@ var lottie_svg = { exports: {} };
22609
22638
  }
22610
22639
  };
22611
22640
  function SVGDropShadowEffect(filter, filterManager, elem2, id, source) {
22612
- var filterSize = filterManager.container.globalData.renderConfig.filterSize;
22613
- filter.setAttribute("x", filterSize.x);
22614
- filter.setAttribute("y", filterSize.y);
22615
- filter.setAttribute("width", filterSize.width);
22616
- filter.setAttribute("height", filterSize.height);
22641
+ var globalFilterSize = filterManager.container.globalData.renderConfig.filterSize;
22642
+ var filterSize = filterManager.data.fs || globalFilterSize;
22643
+ filter.setAttribute("x", filterSize.x || globalFilterSize.x);
22644
+ filter.setAttribute("y", filterSize.y || globalFilterSize.y);
22645
+ filter.setAttribute("width", filterSize.width || globalFilterSize.width);
22646
+ filter.setAttribute("height", filterSize.height || globalFilterSize.height);
22617
22647
  this.filterManager = filterManager;
22618
22648
  var feGaussianBlur = createNS("feGaussianBlur");
22619
22649
  feGaussianBlur.setAttribute("in", "SourceAlpha");
@@ -22858,16 +22888,16 @@ const Lottie = defineComponent({
22858
22888
  }, null);
22859
22889
  }
22860
22890
  });
22861
- const wrapperClass$i = "_wrapperClass_192d5_7";
22891
+ const wrapperClass$j = "_wrapperClass_192d5_7";
22862
22892
  const container$w = "_container_192d5_7";
22863
22893
  const header$a = "_header_192d5_21";
22864
22894
  const arrow$2 = "_arrow_192d5_28";
22865
22895
  const address$1 = "_address_192d5_37";
22866
22896
  const arrowContainer$1 = "_arrowContainer_192d5_46";
22867
22897
  const text$7 = "_text_192d5_57";
22868
- var style0$1g = {
22898
+ var style0$1h = {
22869
22899
  "ppmna-default-font": "_ppmna-default-font_192d5_1",
22870
- wrapperClass: wrapperClass$i,
22900
+ wrapperClass: wrapperClass$j,
22871
22901
  container: container$w,
22872
22902
  header: header$a,
22873
22903
  arrow: arrow$2,
@@ -22875,7 +22905,7 @@ var style0$1g = {
22875
22905
  arrowContainer: arrowContainer$1,
22876
22906
  text: text$7
22877
22907
  };
22878
- const _sfc_main$1r = defineComponent({
22908
+ const _sfc_main$1s = defineComponent({
22879
22909
  name: "AddressInfo",
22880
22910
  components: {},
22881
22911
  props: {
@@ -22917,7 +22947,7 @@ const _sfc_main$1r = defineComponent({
22917
22947
  };
22918
22948
  }
22919
22949
  });
22920
- function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
22950
+ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
22921
22951
  return openBlock(), createElementBlock("div", {
22922
22952
  class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.container])
22923
22953
  }, [
@@ -22949,23 +22979,23 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
22949
22979
  ], 2)
22950
22980
  ], 2);
22951
22981
  }
22952
- const cssModules$1g = {};
22953
- cssModules$1g["$style"] = style0$1g;
22954
- var AddressInfo$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__cssModules", cssModules$1g]]);
22955
- const wrapperClass$h = "_wrapperClass_1vjx2_1";
22956
- const paymentMethodContainer$4 = "_paymentMethodContainer_1vjx2_1";
22957
- const imageWrapper$3 = "_imageWrapper_1vjx2_6";
22958
- const imageContainer$4 = "_imageContainer_1vjx2_10";
22959
- const roundStylePaymentMethod$3 = "_roundStylePaymentMethod_1vjx2_19";
22960
- const label$7 = "_label_1vjx2_23";
22961
- const mainLabel$4 = "_mainLabel_1vjx2_30";
22962
- const subLabel$4 = "_subLabel_1vjx2_37";
22963
- const invalid$5 = "_invalid_1vjx2_46";
22964
- const rightAlign$5 = "_rightAlign_1vjx2_52";
22965
- const paymentMethodDisabled$4 = "_paymentMethodDisabled_1vjx2_57";
22966
- const img$8 = "_img_1vjx2_63";
22967
- var style0$1f = {
22968
- wrapperClass: wrapperClass$h,
22982
+ const cssModules$1h = {};
22983
+ cssModules$1h["$style"] = style0$1h;
22984
+ var AddressInfo$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$1s], ["__cssModules", cssModules$1h]]);
22985
+ const wrapperClass$i = "_wrapperClass_otzwj_1";
22986
+ const paymentMethodContainer$4 = "_paymentMethodContainer_otzwj_1";
22987
+ const imageWrapper$3 = "_imageWrapper_otzwj_6";
22988
+ const imageContainer$4 = "_imageContainer_otzwj_10";
22989
+ const roundStylePaymentMethod$3 = "_roundStylePaymentMethod_otzwj_19";
22990
+ const label$7 = "_label_otzwj_23";
22991
+ const mainLabel$4 = "_mainLabel_otzwj_30";
22992
+ const subLabel$4 = "_subLabel_otzwj_37";
22993
+ const invalid$5 = "_invalid_otzwj_46";
22994
+ const rightAlign$5 = "_rightAlign_otzwj_58";
22995
+ const paymentMethodDisabled$4 = "_paymentMethodDisabled_otzwj_63";
22996
+ const img$8 = "_img_otzwj_68";
22997
+ var style0$1g = {
22998
+ wrapperClass: wrapperClass$i,
22969
22999
  paymentMethodContainer: paymentMethodContainer$4,
22970
23000
  imageWrapper: imageWrapper$3,
22971
23001
  imageContainer: imageContainer$4,
@@ -22978,7 +23008,7 @@ var style0$1f = {
22978
23008
  paymentMethodDisabled: paymentMethodDisabled$4,
22979
23009
  img: img$8
22980
23010
  };
22981
- const _sfc_main$1q = defineComponent({
23011
+ const _sfc_main$1r = defineComponent({
22982
23012
  components: {
22983
23013
  WalletBreakdown
22984
23014
  },
@@ -22988,6 +23018,9 @@ const _sfc_main$1q = defineComponent({
22988
23018
  required: true
22989
23019
  }
22990
23020
  },
23021
+ emits: {
23022
+ select: () => true
23023
+ },
22991
23024
  setup(props) {
22992
23025
  const openBreakDown = ref(false);
22993
23026
  const toggleBreakDown = () => {
@@ -23029,10 +23062,11 @@ const _sfc_main$1q = defineComponent({
23029
23062
  }
23030
23063
  });
23031
23064
  const _hoisted_1$O = ["src"];
23032
- function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
23065
+ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
23033
23066
  const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
23034
23067
  return openBlock(), createElementBlock("div", {
23035
- class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer])
23068
+ class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer]),
23069
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select"))
23036
23070
  }, [
23037
23071
  createBaseVNode("div", {
23038
23072
  class: normalizeClass(_ctx.style.imageContainer)
@@ -23056,36 +23090,36 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
23056
23090
  ], 2)
23057
23091
  ], 2);
23058
23092
  }
23059
- const cssModules$1f = {};
23060
- cssModules$1f["$style"] = style0$1f;
23061
- var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__cssModules", cssModules$1f]]);
23062
- const wrapperClass$g = "_wrapperClass_84gij_1";
23063
- const paymentMethodContainer$3 = "_paymentMethodContainer_84gij_1";
23064
- const imageWrapper$2 = "_imageWrapper_84gij_6";
23065
- const imageContainer$3 = "_imageContainer_84gij_10";
23066
- const roundStylePaymentMethod$2 = "_roundStylePaymentMethod_84gij_19";
23067
- const label$6 = "_label_84gij_23";
23068
- const mainLabel$3 = "_mainLabel_84gij_30";
23069
- const subLabel$3 = "_subLabel_84gij_37";
23070
- const invalid$4 = "_invalid_84gij_46";
23071
- const rightAlign$4 = "_rightAlign_84gij_52";
23072
- const paymentMethodDisabled$3 = "_paymentMethodDisabled_84gij_57";
23073
- const img$7 = "_img_84gij_63";
23074
- const round$1 = "_round_84gij_19";
23075
- const creditCardLabel = "_creditCardLabel_84gij_70";
23076
- const authenticateStatusContainer = "_authenticateStatusContainer_84gij_75";
23077
- const unAuthorizedImg = "_unAuthorizedImg_84gij_82";
23078
- const unAuthorized = "_unAuthorized_84gij_82";
23079
- const authorized = "_authorized_84gij_88";
23080
- const authorizedImg = "_authorizedImg_84gij_91";
23081
- const creditCard = "_creditCard_84gij_70";
23082
- const maintainanceInfo$2 = "_maintainanceInfo_84gij_98";
23083
- const paymentInfo$2 = "_paymentInfo_84gij_104";
23084
- const fullWidth$1 = "_fullWidth_84gij_107";
23085
- const cardInfo = "_cardInfo_84gij_110";
23086
- const additionDescription = "_additionDescription_84gij_115";
23087
- var style0$1e = {
23088
- wrapperClass: wrapperClass$g,
23093
+ const cssModules$1g = {};
23094
+ cssModules$1g["$style"] = style0$1g;
23095
+ var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1r], ["__cssModules", cssModules$1g]]);
23096
+ const wrapperClass$h = "_wrapperClass_mf296_1";
23097
+ const paymentMethodContainer$3 = "_paymentMethodContainer_mf296_1";
23098
+ const imageWrapper$2 = "_imageWrapper_mf296_6";
23099
+ const imageContainer$3 = "_imageContainer_mf296_10";
23100
+ const roundStylePaymentMethod$2 = "_roundStylePaymentMethod_mf296_19";
23101
+ const label$6 = "_label_mf296_23";
23102
+ const mainLabel$3 = "_mainLabel_mf296_30";
23103
+ const subLabel$3 = "_subLabel_mf296_37";
23104
+ const invalid$4 = "_invalid_mf296_46";
23105
+ const rightAlign$4 = "_rightAlign_mf296_58";
23106
+ const paymentMethodDisabled$3 = "_paymentMethodDisabled_mf296_63";
23107
+ const img$7 = "_img_mf296_68";
23108
+ const round$1 = "_round_mf296_19";
23109
+ const creditCardLabel = "_creditCardLabel_mf296_75";
23110
+ const authenticateStatusContainer = "_authenticateStatusContainer_mf296_80";
23111
+ const unAuthorizedImg = "_unAuthorizedImg_mf296_87";
23112
+ const unAuthorized = "_unAuthorized_mf296_87";
23113
+ const authorized = "_authorized_mf296_93";
23114
+ const authorizedImg = "_authorizedImg_mf296_96";
23115
+ const creditCard = "_creditCard_mf296_75";
23116
+ const maintainanceInfo$3 = "_maintainanceInfo_mf296_103";
23117
+ const paymentInfo$3 = "_paymentInfo_mf296_110";
23118
+ const fullWidth$1 = "_fullWidth_mf296_113";
23119
+ const cardInfo = "_cardInfo_mf296_117";
23120
+ const additionDescription = "_additionDescription_mf296_123";
23121
+ var style0$1f = {
23122
+ wrapperClass: wrapperClass$h,
23089
23123
  paymentMethodContainer: paymentMethodContainer$3,
23090
23124
  imageWrapper: imageWrapper$2,
23091
23125
  imageContainer: imageContainer$3,
@@ -23105,8 +23139,8 @@ var style0$1e = {
23105
23139
  authorized,
23106
23140
  authorizedImg,
23107
23141
  creditCard,
23108
- maintainanceInfo: maintainanceInfo$2,
23109
- paymentInfo: paymentInfo$2,
23142
+ maintainanceInfo: maintainanceInfo$3,
23143
+ paymentInfo: paymentInfo$3,
23110
23144
  fullWidth: fullWidth$1,
23111
23145
  cardInfo,
23112
23146
  additionDescription
@@ -23118,7 +23152,7 @@ const creditCardMap = {
23118
23152
  [CreditTypes.MASTER]: img$6.master,
23119
23153
  [CreditTypes.AMEX]: img$6.amex
23120
23154
  };
23121
- const _sfc_main$1p = defineComponent({
23155
+ const _sfc_main$1q = defineComponent({
23122
23156
  components: {
23123
23157
  Button
23124
23158
  },
@@ -23133,7 +23167,10 @@ const _sfc_main$1p = defineComponent({
23133
23167
  default: false
23134
23168
  }
23135
23169
  },
23136
- setup(props) {
23170
+ emits: {
23171
+ select: () => true
23172
+ },
23173
+ setup(props, { emit }) {
23137
23174
  const style = useCssModule();
23138
23175
  const isYjCard = computed(() => {
23139
23176
  var _a, _b;
@@ -23147,9 +23184,9 @@ const _sfc_main$1p = defineComponent({
23147
23184
  var _a, _b;
23148
23185
  return (_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.isExpired;
23149
23186
  });
23150
- const isActivated = computed(() => {
23187
+ const isDisable = computed(() => {
23151
23188
  var _a, _b;
23152
- return ((_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus) === "ACTIVATED";
23189
+ return ((_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" || isExpired.value;
23153
23190
  });
23154
23191
  const authInfo = computed(() => {
23155
23192
  var _a, _b;
@@ -23192,18 +23229,25 @@ const _sfc_main$1p = defineComponent({
23192
23229
  style: props.round ? style.round : style.creditCard
23193
23230
  };
23194
23231
  });
23195
- const paymentMethodStatus2 = computed(() => {
23196
- var _a, _b;
23197
- return (_b = (_a = props.credit) == null ? void 0 : _a.creditCardInfo) == null ? void 0 : _b.paymentMethodStatus;
23198
- });
23199
23232
  const paymentMethodStatusText = computed(() => {
23200
- var _a;
23201
- return getPaymentMethodStatus((_a = isExpired.value) != null ? _a : false, paymentMethodStatus2.value);
23233
+ var _a, _b;
23234
+ return getPaymentMethodStatus((_a = isExpired.value) != null ? _a : false, (_b = props.credit) == null ? void 0 : _b.creditCardInfo);
23202
23235
  });
23203
23236
  const additionalDescription = computed(() => {
23204
23237
  var _a;
23205
23238
  return (_a = props.credit.paymentMethodDescriptionInfo) == null ? void 0 : _a.additionalDescription;
23206
23239
  });
23240
+ const handleClick = (e, info2) => {
23241
+ if (info2 == null ? void 0 : info2.linkUrl) {
23242
+ e == null ? void 0 : e.stopPropagation();
23243
+ openUrl(info2.linkUrl);
23244
+ }
23245
+ };
23246
+ const handleSelect = () => {
23247
+ if (isDisable.value)
23248
+ return;
23249
+ emit("select");
23250
+ };
23207
23251
  return {
23208
23252
  last4digits: computed(() => {
23209
23253
  var _a, _b;
@@ -23211,25 +23255,36 @@ const _sfc_main$1p = defineComponent({
23211
23255
  }),
23212
23256
  authInfo,
23213
23257
  paymentMethodStatusText,
23214
- maintainanceInfo: computed(() => {
23215
- var _a, _b, _c, _d;
23216
- return (_d = (_c = (_b = (_a = props.credit) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
23217
- }),
23218
- getClass: isExpired.value || paymentMethodStatus2.value !== "ACTIVATED" ? style.paymentMethodDisabled : "",
23219
- isActivated,
23258
+ getClass: isDisable.value ? style.paymentMethodDisabled : "",
23259
+ isDisable,
23220
23260
  style,
23221
23261
  cardInfo: cardInfo2,
23222
- isExpired,
23223
- additionalDescription
23262
+ additionalDescription,
23263
+ payMethodDescriptionInfo: computed(() => {
23264
+ var _a, _b, _c, _d;
23265
+ return [
23266
+ (_b = (_a = props.credit) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
23267
+ (_d = (_c = props.credit) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
23268
+ ].filter((info2) => !!info2);
23269
+ }),
23270
+ getMaintenanceStyle: computed(() => (info2) => {
23271
+ return {
23272
+ color: info2.color
23273
+ };
23274
+ }),
23275
+ handleClick,
23276
+ handleSelect
23224
23277
  };
23225
23278
  }
23226
23279
  });
23227
23280
  const _hoisted_1$N = ["src"];
23228
- const _hoisted_2$n = ["src"];
23229
- function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23281
+ const _hoisted_2$q = ["src"];
23282
+ const _hoisted_3$e = ["onClick"];
23283
+ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
23230
23284
  const _component_Button = resolveComponent("Button");
23231
23285
  return openBlock(), createElementBlock("div", {
23232
- class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass])
23286
+ class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass]),
23287
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
23233
23288
  }, [
23234
23289
  createBaseVNode("div", {
23235
23290
  class: normalizeClass(_ctx.style.imageWrapper)
@@ -23274,7 +23329,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23274
23329
  createBaseVNode("img", {
23275
23330
  src: _ctx.authInfo.img,
23276
23331
  class: normalizeClass(_ctx.authInfo.imgStyle)
23277
- }, null, 10, _hoisted_2$n),
23332
+ }, null, 10, _hoisted_2$q),
23278
23333
  createBaseVNode("span", null, toDisplayString(_ctx.authInfo.text), 1)
23279
23334
  ], 2)
23280
23335
  ], 2),
@@ -23291,7 +23346,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23291
23346
  createBaseVNode("span", {
23292
23347
  class: normalizeClass(_ctx.style.rightAlign)
23293
23348
  }, [
23294
- !_ctx.isActivated || _ctx.isExpired ? (openBlock(), createBlock(_component_Button, {
23349
+ _ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
23295
23350
  key: 0,
23296
23351
  disabled: true,
23297
23352
  class: normalizeClass(_ctx.style.invalid),
@@ -23305,35 +23360,40 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23305
23360
  }, 8, ["class"])) : createCommentVNode("", true)
23306
23361
  ], 2)
23307
23362
  ], 2),
23308
- _ctx.maintainanceInfo ? (openBlock(), createElementBlock("div", {
23309
- key: 0,
23310
- class: normalizeClass(_ctx.style.maintainanceInfo)
23311
- }, toDisplayString(_ctx.maintainanceInfo), 3)) : createCommentVNode("", true)
23363
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
23364
+ return openBlock(), createElementBlock("div", {
23365
+ key: index2,
23366
+ class: normalizeClass(_ctx.style.maintainanceInfo),
23367
+ style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
23368
+ "data-testid": "description-info",
23369
+ onClick: ($event) => _ctx.handleClick($event, info2)
23370
+ }, toDisplayString(info2.text), 15, _hoisted_3$e);
23371
+ }), 128))
23312
23372
  ], 2)
23313
23373
  ], 2);
23314
23374
  }
23315
- const cssModules$1e = {};
23316
- cssModules$1e["$style"] = style0$1e;
23317
- var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__cssModules", cssModules$1e]]);
23318
- const wrapperClass$f = "_wrapperClass_x170y_1";
23319
- const paymentMethodContainer$2 = "_paymentMethodContainer_x170y_1";
23320
- const imageWrapper$1 = "_imageWrapper_x170y_6";
23321
- const imageContainer$2 = "_imageContainer_x170y_10";
23322
- const roundStylePaymentMethod$1 = "_roundStylePaymentMethod_x170y_19";
23323
- const label$5 = "_label_x170y_23";
23324
- const mainLabel$2 = "_mainLabel_x170y_30";
23325
- const subLabel$2 = "_subLabel_x170y_37";
23326
- const invalid$3 = "_invalid_x170y_46";
23327
- const rightAlign$3 = "_rightAlign_x170y_52";
23328
- const paymentMethodDisabled$2 = "_paymentMethodDisabled_x170y_57";
23329
- const img$5 = "_img_x170y_63";
23330
- const round = "_round_x170y_19";
23331
- const branchNumber$1 = "_branchNumber_x170y_70";
23332
- const maintainanceInfo$1 = "_maintainanceInfo_x170y_76";
23333
- const paymentInfo$1 = "_paymentInfo_x170y_82";
23334
- const fullWidth = "_fullWidth_x170y_85";
23335
- var style0$1d = {
23336
- wrapperClass: wrapperClass$f,
23375
+ const cssModules$1f = {};
23376
+ cssModules$1f["$style"] = style0$1f;
23377
+ var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1q], ["__cssModules", cssModules$1f]]);
23378
+ const wrapperClass$g = "_wrapperClass_6wfpf_1";
23379
+ const paymentMethodContainer$2 = "_paymentMethodContainer_6wfpf_1";
23380
+ const imageWrapper$1 = "_imageWrapper_6wfpf_6";
23381
+ const imageContainer$2 = "_imageContainer_6wfpf_10";
23382
+ const roundStylePaymentMethod$1 = "_roundStylePaymentMethod_6wfpf_19";
23383
+ const label$5 = "_label_6wfpf_23";
23384
+ const mainLabel$2 = "_mainLabel_6wfpf_30";
23385
+ const subLabel$2 = "_subLabel_6wfpf_37";
23386
+ const invalid$3 = "_invalid_6wfpf_46";
23387
+ const rightAlign$3 = "_rightAlign_6wfpf_58";
23388
+ const paymentMethodDisabled$2 = "_paymentMethodDisabled_6wfpf_63";
23389
+ const img$5 = "_img_6wfpf_68";
23390
+ const round = "_round_6wfpf_19";
23391
+ const branchNumber$1 = "_branchNumber_6wfpf_75";
23392
+ const maintainanceInfo$2 = "_maintainanceInfo_6wfpf_81";
23393
+ const paymentInfo$2 = "_paymentInfo_6wfpf_87";
23394
+ const fullWidth = "_fullWidth_6wfpf_90";
23395
+ var style0$1e = {
23396
+ wrapperClass: wrapperClass$g,
23337
23397
  paymentMethodContainer: paymentMethodContainer$2,
23338
23398
  imageWrapper: imageWrapper$1,
23339
23399
  imageContainer: imageContainer$2,
@@ -23347,8 +23407,8 @@ var style0$1d = {
23347
23407
  img: img$5,
23348
23408
  round,
23349
23409
  branchNumber: branchNumber$1,
23350
- maintainanceInfo: maintainanceInfo$1,
23351
- paymentInfo: paymentInfo$1,
23410
+ maintainanceInfo: maintainanceInfo$2,
23411
+ paymentInfo: paymentInfo$2,
23352
23412
  fullWidth
23353
23413
  };
23354
23414
  const getTypeText$1 = (val2) => {
@@ -23360,7 +23420,7 @@ const getTypeText$1 = (val2) => {
23360
23420
  return "";
23361
23421
  }
23362
23422
  };
23363
- const _sfc_main$1o = defineComponent({
23423
+ const _sfc_main$1p = defineComponent({
23364
23424
  components: {
23365
23425
  Button
23366
23426
  },
@@ -23375,18 +23435,20 @@ const _sfc_main$1o = defineComponent({
23375
23435
  default: false
23376
23436
  }
23377
23437
  },
23378
- setup(props) {
23379
- var _a, _b;
23438
+ emits: {
23439
+ select: () => true
23440
+ },
23441
+ setup(props, { emit }) {
23380
23442
  const bankInfo2 = computed(() => {
23381
- var _a2, _b2;
23382
- const bankInfo22 = ((_a2 = props.bank) == null ? void 0 : _a2.bankInfo) || null;
23443
+ var _a, _b;
23444
+ const bankInfo22 = ((_a = props.bank) == null ? void 0 : _a.bankInfo) || null;
23383
23445
  const logo = bankInfo22 == null ? void 0 : bankInfo22.bankLogoUrl;
23384
23446
  const name2 = bankInfo22 == null ? void 0 : bankInfo22.bankName;
23385
23447
  let branchCode2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchCode;
23386
23448
  const branchName = bankInfo22 == null ? void 0 : bankInfo22.bankBranchName;
23387
23449
  const digits = bankInfo22 == null ? void 0 : bankInfo22.bankAccountNumberLast2digits;
23388
23450
  if ((bankInfo22 == null ? void 0 : bankInfo22.bankCode) !== bankCode.YUCHO_BANK_CODE) {
23389
- branchCode2 = getTypeText$1((_b2 = bankInfo22 == null ? void 0 : bankInfo22.bankAccountType) != null ? _b2 : "");
23451
+ branchCode2 = getTypeText$1((_b = bankInfo22 == null ? void 0 : bankInfo22.bankAccountType) != null ? _b : "");
23390
23452
  }
23391
23453
  return {
23392
23454
  logo,
@@ -23397,30 +23459,54 @@ const _sfc_main$1o = defineComponent({
23397
23459
  };
23398
23460
  });
23399
23461
  const style = useCssModule();
23462
+ const handleClick = (e, info2) => {
23463
+ if (info2 == null ? void 0 : info2.linkUrl) {
23464
+ e == null ? void 0 : e.stopPropagation();
23465
+ openUrl(info2.linkUrl);
23466
+ }
23467
+ };
23468
+ const isDisable = computed(() => {
23469
+ var _a, _b;
23470
+ return ((_b = (_a = props.bank) == null ? void 0 : _a.bankInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
23471
+ });
23472
+ const handleSelect = () => {
23473
+ if (isDisable == null ? void 0 : isDisable.value)
23474
+ return;
23475
+ emit("select");
23476
+ };
23400
23477
  return {
23401
23478
  bankInfo: bankInfo2,
23402
- isDisable: computed(() => {
23403
- var _a2, _b2;
23404
- return ((_b2 = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b2.paymentMethodStatus) !== "ACTIVATED";
23479
+ isDisable,
23480
+ paymentMethodStatusText: computed(() => {
23481
+ var _a;
23482
+ return getPaymentMethodStatus(false, (_a = props.bank) == null ? void 0 : _a.bankInfo);
23405
23483
  }),
23406
- paymentMethodStatus: computed(() => {
23407
- var _a2, _b2;
23408
- return getPaymentMethodStatus(false, (_b2 = (_a2 = props.bank) == null ? void 0 : _a2.bankInfo) == null ? void 0 : _b2.paymentMethodStatus);
23484
+ getClass: (isDisable == null ? void 0 : isDisable.value) ? style.paymentMethodDisabled : "",
23485
+ style,
23486
+ payMethodDescriptionInfo: computed(() => {
23487
+ var _a, _b, _c, _d;
23488
+ return [
23489
+ (_b = (_a = props.bank) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
23490
+ (_d = (_c = props.bank) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
23491
+ ].filter((info2) => !!info2);
23409
23492
  }),
23410
- maintainanceInfo: computed(() => {
23411
- var _a2, _b2, _c, _d;
23412
- return (_d = (_c = (_b2 = (_a2 = props.bank) == null ? void 0 : _a2.paymentMethodDescriptionInfo) == null ? void 0 : _b2.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
23493
+ getMaintenanceStyle: computed(() => (info2) => {
23494
+ return {
23495
+ color: info2.color
23496
+ };
23413
23497
  }),
23414
- getClass: ((_b = (_a = props.bank) == null ? void 0 : _a.bankInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" ? style.paymentMethodDisabled : "",
23415
- style
23498
+ handleClick,
23499
+ handleSelect
23416
23500
  };
23417
23501
  }
23418
23502
  });
23419
23503
  const _hoisted_1$M = ["src"];
23420
- function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
23504
+ const _hoisted_2$p = ["onClick"];
23505
+ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
23421
23506
  const _component_Button = resolveComponent("Button");
23422
23507
  return openBlock(), createElementBlock("div", {
23423
- class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass])
23508
+ class: normalizeClass([_ctx.style.wrapperClass, _ctx.style.paymentMethodContainer, _ctx.getClass]),
23509
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
23424
23510
  }, [
23425
23511
  createBaseVNode("div", {
23426
23512
  class: normalizeClass(_ctx.style.imageWrapper)
@@ -23473,53 +23559,57 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
23473
23559
  type: "default"
23474
23560
  }, {
23475
23561
  default: withCtx(() => [
23476
- createTextVNode(toDisplayString(_ctx.paymentMethodStatus), 1)
23562
+ createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
23477
23563
  ]),
23478
23564
  _: 1
23479
23565
  }, 8, ["class"])) : createCommentVNode("", true)
23480
23566
  ], 2)
23481
23567
  ], 2),
23482
- _ctx.maintainanceInfo ? (openBlock(), createElementBlock("div", {
23483
- key: 0,
23484
- class: normalizeClass(_ctx.style.maintainanceInfo)
23485
- }, toDisplayString(_ctx.maintainanceInfo), 3)) : createCommentVNode("", true)
23568
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
23569
+ return openBlock(), createElementBlock("div", {
23570
+ key: index2,
23571
+ class: normalizeClass(_ctx.style.maintainanceInfo),
23572
+ style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
23573
+ onClick: ($event) => _ctx.handleClick($event, info2)
23574
+ }, toDisplayString(info2.text), 15, _hoisted_2$p);
23575
+ }), 128))
23486
23576
  ], 2)
23487
23577
  ], 2);
23488
23578
  }
23489
- const cssModules$1d = {};
23490
- cssModules$1d["$style"] = style0$1d;
23491
- var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__cssModules", cssModules$1d]]);
23492
- const wrapperClass$e = "_wrapperClass_w4u0m_1";
23493
- const container$v = "_container_w4u0m_1";
23494
- const imageContainer$1 = "_imageContainer_w4u0m_7";
23495
- const img$4 = "_img_w4u0m_10";
23496
- const content$d = "_content_w4u0m_15";
23497
- const paymentInfo = "_paymentInfo_w4u0m_19";
23498
- const paymentDesc = "_paymentDesc_w4u0m_23";
23499
- const mainDesc = "_mainDesc_w4u0m_27";
23500
- const subDesc = "_subDesc_w4u0m_34";
23501
- const disable = "_disable_w4u0m_40";
23502
- const centerAlign = "_centerAlign_w4u0m_46";
23503
- const maintainanceInfo = "_maintainanceInfo_w4u0m_49";
23504
- const invalid$2 = "_invalid_w4u0m_55";
23505
- const paymentMethodDisabled$1 = "_paymentMethodDisabled_w4u0m_60";
23506
- var style0$1c = {
23507
- wrapperClass: wrapperClass$e,
23579
+ const cssModules$1e = {};
23580
+ cssModules$1e["$style"] = style0$1e;
23581
+ var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["render", _sfc_render$1p], ["__cssModules", cssModules$1e]]);
23582
+ const wrapperClass$f = "_wrapperClass_4g7cx_1";
23583
+ const container$v = "_container_4g7cx_1";
23584
+ const imageContainer$1 = "_imageContainer_4g7cx_7";
23585
+ const img$4 = "_img_4g7cx_10";
23586
+ const content$e = "_content_4g7cx_15";
23587
+ const paymentInfo$1 = "_paymentInfo_4g7cx_19";
23588
+ const paymentDesc = "_paymentDesc_4g7cx_23";
23589
+ const mainDesc = "_mainDesc_4g7cx_27";
23590
+ const subDesc = "_subDesc_4g7cx_34";
23591
+ const disable = "_disable_4g7cx_40";
23592
+ const centerAlign = "_centerAlign_4g7cx_46";
23593
+ const maintainanceInfo$1 = "_maintainanceInfo_4g7cx_49";
23594
+ const invalid$2 = "_invalid_4g7cx_55";
23595
+ const paymentMethodDisabled$1 = "_paymentMethodDisabled_4g7cx_66";
23596
+ var style0$1d = {
23597
+ wrapperClass: wrapperClass$f,
23508
23598
  container: container$v,
23509
23599
  imageContainer: imageContainer$1,
23510
23600
  img: img$4,
23511
- content: content$d,
23512
- paymentInfo,
23601
+ content: content$e,
23602
+ paymentInfo: paymentInfo$1,
23513
23603
  paymentDesc,
23514
23604
  mainDesc,
23515
23605
  subDesc,
23516
23606
  disable,
23517
23607
  centerAlign,
23518
- maintainanceInfo,
23608
+ maintainanceInfo: maintainanceInfo$1,
23519
23609
  invalid: invalid$2,
23520
23610
  paymentMethodDisabled: paymentMethodDisabled$1
23521
23611
  };
23522
- const _sfc_main$1n = defineComponent({
23612
+ const _sfc_main$1o = defineComponent({
23523
23613
  components: {
23524
23614
  Button
23525
23615
  },
@@ -23529,31 +23619,56 @@ const _sfc_main$1n = defineComponent({
23529
23619
  required: true
23530
23620
  }
23531
23621
  },
23532
- setup(props) {
23533
- var _a, _b;
23622
+ emits: {
23623
+ select: () => true
23624
+ },
23625
+ setup(props, { emit }) {
23534
23626
  const style = useCssModule();
23627
+ const handleClick = (e, info2) => {
23628
+ if (info2 == null ? void 0 : info2.linkUrl) {
23629
+ e == null ? void 0 : e.stopPropagation();
23630
+ openUrl(info2.linkUrl);
23631
+ }
23632
+ };
23633
+ const isDisable = computed(() => {
23634
+ var _a, _b;
23635
+ return ((_b = (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
23636
+ });
23637
+ const handleSelect = () => {
23638
+ if (isDisable.value)
23639
+ return;
23640
+ emit("select");
23641
+ };
23535
23642
  return {
23536
- isDisable: computed(() => {
23537
- var _a2, _b2;
23538
- return ((_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.sbidCarrierBillingInfo) == null ? void 0 : _b2.paymentMethodStatus) !== "ACTIVATED";
23539
- }),
23643
+ isDisable,
23540
23644
  images: getImages(),
23541
- paymentMethodStatus: computed(() => {
23542
- var _a2, _b2;
23543
- return getPaymentMethodStatus(false, (_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.sbidCarrierBillingInfo) == null ? void 0 : _b2.paymentMethodStatus);
23544
- }),
23545
- maintainanceInfo: computed(() => {
23546
- var _a2, _b2, _c, _d;
23547
- return (_d = (_c = (_b2 = (_a2 = props.sbid) == null ? void 0 : _a2.paymentMethodDescriptionInfo) == null ? void 0 : _b2.statusDescription) == null ? void 0 : _c.text) != null ? _d : "";
23645
+ paymentMethodStatusText: computed(() => {
23646
+ var _a;
23647
+ return getPaymentMethodStatus(false, (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo);
23548
23648
  }),
23549
- getClass: ((_b = (_a = props.sbid) == null ? void 0 : _a.sbidCarrierBillingInfo) == null ? void 0 : _b.paymentMethodStatus) !== "ACTIVATED" ? style.paymentMethodDisabled : "",
23649
+ getClass: (isDisable == null ? void 0 : isDisable.value) ? style.paymentMethodDisabled : "",
23550
23650
  lg: getLanguage(),
23551
- style
23651
+ style,
23652
+ payMethodDescriptionInfo: computed(() => {
23653
+ var _a, _b, _c, _d;
23654
+ return [
23655
+ (_b = (_a = props.sbid) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
23656
+ (_d = (_c = props.sbid) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
23657
+ ].filter((info2) => !!info2);
23658
+ }),
23659
+ getMaintenanceStyle: computed(() => (info2) => {
23660
+ return {
23661
+ color: info2.color
23662
+ };
23663
+ }),
23664
+ handleClick,
23665
+ handleSelect
23552
23666
  };
23553
23667
  }
23554
23668
  });
23555
23669
  const _hoisted_1$L = ["src"];
23556
- function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
23670
+ const _hoisted_2$o = ["onClick"];
23671
+ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
23557
23672
  const _component_Button = resolveComponent("Button");
23558
23673
  return openBlock(), createElementBlock("div", {
23559
23674
  class: normalizeClass([
@@ -23561,7 +23676,8 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
23561
23676
  _ctx.style.container,
23562
23677
  _ctx.getClass,
23563
23678
  _ctx.isDisable ? _ctx.style.centerAlign : ""
23564
- ])
23679
+ ]),
23680
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
23565
23681
  }, [
23566
23682
  createBaseVNode("div", {
23567
23683
  class: normalizeClass(_ctx.style.imageContainer)
@@ -23601,34 +23717,41 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
23601
23717
  type: "default"
23602
23718
  }, {
23603
23719
  default: withCtx(() => [
23604
- createTextVNode(toDisplayString(_ctx.paymentMethodStatus), 1)
23720
+ createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
23605
23721
  ]),
23606
23722
  _: 1
23607
23723
  }, 8, ["class"])) : createCommentVNode("", true)
23608
23724
  ])
23609
23725
  ], 2),
23610
- _ctx.maintainanceInfo ? (openBlock(), createElementBlock("div", {
23611
- key: 0,
23612
- class: normalizeClass(_ctx.style.maintainanceInfo)
23613
- }, toDisplayString(_ctx.maintainanceInfo), 3)) : createCommentVNode("", true)
23726
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
23727
+ return openBlock(), createElementBlock("div", {
23728
+ key: index2,
23729
+ class: normalizeClass(_ctx.style.maintainanceInfo),
23730
+ style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
23731
+ onClick: ($event) => _ctx.handleClick($event, info2)
23732
+ }, toDisplayString(info2.text), 15, _hoisted_2$o);
23733
+ }), 128))
23614
23734
  ], 2)
23615
23735
  ], 2);
23616
23736
  }
23617
- const cssModules$1c = {};
23618
- cssModules$1c["$style"] = style0$1c;
23619
- var SbidBank = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__cssModules", cssModules$1c]]);
23620
- const wrapperClass$d = "_wrapperClass_1572o_1";
23621
- const img$3 = "_img_1572o_1";
23622
- const container$u = "_container_1572o_5";
23623
- const imgContainer = "_imgContainer_1572o_10";
23624
- const labelContainer = "_labelContainer_1572o_19";
23625
- const mainLabel$1 = "_mainLabel_1572o_26";
23626
- const subLabel$1 = "_subLabel_1572o_33";
23627
- const disabled$2 = "_disabled_1572o_39";
23628
- const rightAlign$2 = "_rightAlign_1572o_45";
23629
- const invalid$1 = "_invalid_1572o_49";
23630
- var style0$1b = {
23631
- wrapperClass: wrapperClass$d,
23737
+ const cssModules$1d = {};
23738
+ cssModules$1d["$style"] = style0$1d;
23739
+ var SbidBank = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["render", _sfc_render$1o], ["__cssModules", cssModules$1d]]);
23740
+ const wrapperClass$e = "_wrapperClass_jhs19_1";
23741
+ const img$3 = "_img_jhs19_1";
23742
+ const container$u = "_container_jhs19_5";
23743
+ const imgContainer = "_imgContainer_jhs19_10";
23744
+ const labelContainer = "_labelContainer_jhs19_19";
23745
+ const mainLabel$1 = "_mainLabel_jhs19_26";
23746
+ const subLabel$1 = "_subLabel_jhs19_33";
23747
+ const disabled$2 = "_disabled_jhs19_39";
23748
+ const rightAlign$2 = "_rightAlign_jhs19_44";
23749
+ const invalid$1 = "_invalid_jhs19_48";
23750
+ const content$d = "_content_jhs19_59";
23751
+ const paymentInfo = "_paymentInfo_jhs19_62";
23752
+ const maintainanceInfo = "_maintainanceInfo_jhs19_65";
23753
+ var style0$1c = {
23754
+ wrapperClass: wrapperClass$e,
23632
23755
  img: img$3,
23633
23756
  container: container$u,
23634
23757
  imgContainer,
@@ -23637,9 +23760,12 @@ var style0$1b = {
23637
23760
  subLabel: subLabel$1,
23638
23761
  disabled: disabled$2,
23639
23762
  rightAlign: rightAlign$2,
23640
- invalid: invalid$1
23763
+ invalid: invalid$1,
23764
+ content: content$d,
23765
+ paymentInfo,
23766
+ maintainanceInfo
23641
23767
  };
23642
- const _sfc_main$1m = defineComponent({
23768
+ const _sfc_main$1n = defineComponent({
23643
23769
  components: {
23644
23770
  Button
23645
23771
  },
@@ -23649,25 +23775,57 @@ const _sfc_main$1m = defineComponent({
23649
23775
  required: true
23650
23776
  }
23651
23777
  },
23652
- setup(props) {
23653
- var _a, _b;
23778
+ emits: {
23779
+ select: () => true
23780
+ },
23781
+ setup(props, { emit }) {
23782
+ const handleClick = (e, info2) => {
23783
+ if (info2 == null ? void 0 : info2.linkUrl) {
23784
+ e == null ? void 0 : e.stopPropagation();
23785
+ openUrl(info2.linkUrl);
23786
+ }
23787
+ };
23788
+ const isDisable = computed(() => {
23789
+ var _a, _b;
23790
+ return ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED;
23791
+ });
23792
+ const handleSelect = () => {
23793
+ if (isDisable.value)
23794
+ return;
23795
+ emit("select");
23796
+ };
23654
23797
  return {
23655
23798
  formattedBalance: computed(() => {
23656
- var _a2, _b2;
23657
- return formatAmount((_b2 = (_a2 = props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.availableAmount);
23799
+ var _a, _b;
23800
+ return formatAmount((_b = (_a = props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.availableAmount);
23658
23801
  }),
23659
- isDisable: ((_b = (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo) == null ? void 0 : _b.paymentMethodStatus) !== PaymentMethodStatus.ACTIVATED,
23802
+ isDisable,
23660
23803
  images: getImages(),
23661
23804
  lg: getLanguage(),
23662
23805
  paymentMethodStatusText: computed(() => {
23663
- var _a2, _b2;
23664
- return getPaymentMethodStatus(false, (_b2 = (_a2 = props == null ? void 0 : props.payLater) == null ? void 0 : _a2.payLaterCcInfo) == null ? void 0 : _b2.paymentMethodStatus);
23665
- })
23806
+ var _a;
23807
+ return getPaymentMethodStatus(false, (_a = props == null ? void 0 : props.payLater) == null ? void 0 : _a.payLaterCcInfo);
23808
+ }),
23809
+ payMethodDescriptionInfo: computed(() => {
23810
+ var _a, _b, _c, _d;
23811
+ return [
23812
+ (_b = (_a = props.payLater) == null ? void 0 : _a.paymentMethodDescriptionInfo) == null ? void 0 : _b.statusDescription,
23813
+ (_d = (_c = props.payLater) == null ? void 0 : _c.paymentMethodDescriptionInfo) == null ? void 0 : _d.detailDescription
23814
+ ].filter((info2) => !!info2);
23815
+ }),
23816
+ getMaintenanceStyle: computed(() => (info2) => {
23817
+ return {
23818
+ color: info2.color
23819
+ };
23820
+ }),
23821
+ handleClick,
23822
+ handleSelect
23666
23823
  };
23667
23824
  }
23668
23825
  });
23669
23826
  const _hoisted_1$K = ["src"];
23670
- function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
23827
+ const _hoisted_2$n = ["onClick"];
23828
+ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
23671
23829
  const _component_Button = resolveComponent("Button");
23672
23830
  return openBlock(), createElementBlock("div", {
23673
23831
  class: normalizeClass([
@@ -23676,7 +23834,8 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
23676
23834
  [_ctx.$style.disabled]: _ctx.isDisable,
23677
23835
  [_ctx.$style.container]: true
23678
23836
  }
23679
- ])
23837
+ ]),
23838
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
23680
23839
  }, [
23681
23840
  createBaseVNode("div", {
23682
23841
  class: normalizeClass(_ctx.$style.imgContainer)
@@ -23687,37 +23846,53 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
23687
23846
  }, null, 10, _hoisted_1$K)
23688
23847
  ], 2),
23689
23848
  createBaseVNode("div", {
23690
- class: normalizeClass(_ctx.$style.labelContainer)
23691
- }, [
23692
- createBaseVNode("span", {
23693
- class: normalizeClass(_ctx.$style.mainLabel),
23694
- "data-testid": "pay-method-title"
23695
- }, toDisplayString(_ctx.lg.payLater.title), 3),
23696
- createBaseVNode("span", {
23697
- class: normalizeClass(_ctx.$style.subLabel)
23698
- }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
23699
- ], 2),
23700
- createBaseVNode("span", {
23701
- class: normalizeClass(_ctx.$style.rightAlign)
23849
+ class: normalizeClass(_ctx.$style.content)
23702
23850
  }, [
23703
- _ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
23704
- key: 0,
23705
- disabled: true,
23706
- class: normalizeClass(_ctx.$style.invalid),
23707
- size: "small",
23708
- type: "default"
23709
- }, {
23710
- default: withCtx(() => [
23711
- createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
23712
- ]),
23713
- _: 1
23714
- }, 8, ["class"])) : createCommentVNode("", true)
23851
+ createBaseVNode("div", {
23852
+ class: normalizeClass(_ctx.$style.paymentInfo)
23853
+ }, [
23854
+ createBaseVNode("div", {
23855
+ class: normalizeClass(_ctx.$style.labelContainer)
23856
+ }, [
23857
+ createBaseVNode("span", {
23858
+ class: normalizeClass(_ctx.$style.mainLabel),
23859
+ "data-testid": "pay-method-title"
23860
+ }, toDisplayString(_ctx.lg.payLater.title), 3),
23861
+ createBaseVNode("span", {
23862
+ class: normalizeClass(_ctx.$style.subLabel)
23863
+ }, toDisplayString(_ctx.lg.payLater.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 3)
23864
+ ], 2),
23865
+ createBaseVNode("span", {
23866
+ class: normalizeClass(_ctx.$style.rightAlign)
23867
+ }, [
23868
+ _ctx.isDisable ? (openBlock(), createBlock(_component_Button, {
23869
+ key: 0,
23870
+ disabled: true,
23871
+ class: normalizeClass(_ctx.$style.invalid),
23872
+ size: "small",
23873
+ type: "default"
23874
+ }, {
23875
+ default: withCtx(() => [
23876
+ createTextVNode(toDisplayString(_ctx.paymentMethodStatusText), 1)
23877
+ ]),
23878
+ _: 1
23879
+ }, 8, ["class"])) : createCommentVNode("", true)
23880
+ ], 2)
23881
+ ], 2),
23882
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.payMethodDescriptionInfo, (info2, index2) => {
23883
+ return openBlock(), createElementBlock("div", {
23884
+ key: index2,
23885
+ class: normalizeClass(_ctx.$style.maintainanceInfo),
23886
+ style: normalizeStyle(_ctx.getMaintenanceStyle(info2)),
23887
+ onClick: ($event) => _ctx.handleClick($event, info2)
23888
+ }, toDisplayString(info2.text), 15, _hoisted_2$n);
23889
+ }), 128))
23715
23890
  ], 2)
23716
23891
  ], 2);
23717
23892
  }
23718
- const cssModules$1b = {};
23719
- cssModules$1b["$style"] = style0$1b;
23720
- var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__cssModules", cssModules$1b]]);
23893
+ const cssModules$1c = {};
23894
+ cssModules$1c["$style"] = style0$1c;
23895
+ var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_render$1n], ["__cssModules", cssModules$1c]]);
23721
23896
  const PaymentMethod = defineComponent({
23722
23897
  props: {
23723
23898
  paymentMethod: {
@@ -23727,29 +23902,37 @@ const PaymentMethod = defineComponent({
23727
23902
  }
23728
23903
  }
23729
23904
  },
23905
+ emits: {
23906
+ select: () => true
23907
+ },
23730
23908
  render() {
23731
23909
  switch (this.paymentMethod.paymentMethodType) {
23732
23910
  case PaymentMethodType.WALLET:
23733
23911
  return createVNode(Wallet, {
23734
- "wallet": this.paymentMethod
23912
+ "wallet": this.paymentMethod,
23913
+ "onSelect": () => this.$emit("select")
23735
23914
  }, null);
23736
23915
  case PaymentMethodType.CREDIT_CARD:
23737
23916
  return createVNode(CreditCard, {
23738
- "credit": this.paymentMethod
23917
+ "credit": this.paymentMethod,
23918
+ "onSelect": () => this.$emit("select")
23739
23919
  }, null);
23740
23920
  case PaymentMethodType.BANK:
23741
23921
  case PaymentMethodType.YMONEY_BANK:
23742
23922
  return createVNode(Bank, {
23743
23923
  "bank": this.paymentMethod,
23744
- "round": true
23924
+ "round": true,
23925
+ "onSelect": () => this.$emit("select")
23745
23926
  }, null);
23746
23927
  case PaymentMethodType.SBID_CARRIER_BILLING:
23747
23928
  return createVNode(SbidBank, {
23748
- "sbid": this.paymentMethod
23929
+ "sbid": this.paymentMethod,
23930
+ "onSelect": () => this.$emit("select")
23749
23931
  }, null);
23750
23932
  case PaymentMethodType.PAY_LATER_CC:
23751
23933
  return createVNode(PayLaterCC, {
23752
- "payLater": this.paymentMethod
23934
+ "payLater": this.paymentMethod,
23935
+ "onSelect": () => this.$emit("select")
23753
23936
  }, null);
23754
23937
  case PaymentMethodType.PAY_LATER:
23755
23938
  return null;
@@ -23757,21 +23940,21 @@ const PaymentMethod = defineComponent({
23757
23940
  return null;
23758
23941
  }
23759
23942
  });
23760
- const wrapperClass$c = "_wrapperClass_6gcou_1";
23943
+ const wrapperClass$d = "_wrapperClass_6gcou_1";
23761
23944
  const methodItem$1 = "_methodItem_6gcou_1";
23762
23945
  const topupMethodItem = "_topupMethodItem_6gcou_14";
23763
23946
  const iconContainer$2 = "_iconContainer_6gcou_18";
23764
23947
  const iconGreenTick$1 = "_iconGreenTick_6gcou_27";
23765
23948
  const iconHidden$1 = "_iconHidden_6gcou_37";
23766
- var style0$1a = {
23767
- wrapperClass: wrapperClass$c,
23949
+ var style0$1b = {
23950
+ wrapperClass: wrapperClass$d,
23768
23951
  methodItem: methodItem$1,
23769
23952
  topupMethodItem,
23770
23953
  iconContainer: iconContainer$2,
23771
23954
  iconGreenTick: iconGreenTick$1,
23772
23955
  iconHidden: iconHidden$1
23773
23956
  };
23774
- const _sfc_main$1l = defineComponent({
23957
+ const _sfc_main$1m = defineComponent({
23775
23958
  name: "PaymentMethodList",
23776
23959
  components: {
23777
23960
  PaymentMethod
@@ -23807,7 +23990,7 @@ const _sfc_main$1l = defineComponent({
23807
23990
  };
23808
23991
  }
23809
23992
  });
23810
- function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
23993
+ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
23811
23994
  const _component_PaymentMethod = resolveComponent("PaymentMethod");
23812
23995
  return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.paymentMethods, (paymentMethod2, index2) => {
23813
23996
  return openBlock(), createElementBlock("div", {
@@ -23833,14 +24016,83 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
23833
24016
  createVNode(_component_PaymentMethod, {
23834
24017
  "data-testid": "payment-method",
23835
24018
  "payment-method": paymentMethod2,
23836
- onClick: ($event) => _ctx.select(index2)
23837
- }, null, 8, ["payment-method", "onClick"])
24019
+ onSelect: ($event) => _ctx.select(index2)
24020
+ }, null, 8, ["payment-method", "onSelect"])
23838
24021
  ], 2);
23839
24022
  }), 128);
23840
24023
  }
24024
+ const cssModules$1b = {};
24025
+ cssModules$1b["$style"] = style0$1b;
24026
+ var PaymentMethodList = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["render", _sfc_render$1m], ["__cssModules", cssModules$1b]]);
24027
+ const wrapperClass$c = "_wrapperClass_1lewn_1";
24028
+ const maintenanceContainer = "_maintenanceContainer_1lewn_1";
24029
+ const maintenanceText = "_maintenanceText_1lewn_18";
24030
+ const rightArror = "_rightArror_1lewn_23";
24031
+ var style0$1a = {
24032
+ wrapperClass: wrapperClass$c,
24033
+ maintenanceContainer,
24034
+ maintenanceText,
24035
+ rightArror
24036
+ };
24037
+ const _sfc_main$1l = defineComponent({
24038
+ name: "MaintenanceInfo",
24039
+ props: {
24040
+ maintenanceInfo: {
24041
+ type: Object,
24042
+ default: null
24043
+ }
24044
+ },
24045
+ setup(props) {
24046
+ const handleClick = () => {
24047
+ const { linkUrl } = (props == null ? void 0 : props.maintenanceInfo) || {};
24048
+ if (linkUrl) {
24049
+ openUrl(linkUrl);
24050
+ }
24051
+ };
24052
+ const textStyle = computed(() => {
24053
+ var _a, _b, _c;
24054
+ return {
24055
+ color: (_b = (_a = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _a.color) != null ? _b : "#3895FF",
24056
+ "font-weight": ((_c = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _c.isBold) ? "bold" : "normal"
24057
+ };
24058
+ });
24059
+ const containerStyle = computed(() => {
24060
+ var _a, _b;
24061
+ return {
24062
+ backgroundColor: (_b = (_a = props == null ? void 0 : props.maintenanceInfo) == null ? void 0 : _a.backgroundColor) != null ? _b : "#E5F1FF"
24063
+ };
24064
+ });
24065
+ return {
24066
+ handleClick,
24067
+ textStyle,
24068
+ containerStyle
24069
+ };
24070
+ }
24071
+ });
24072
+ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
24073
+ var _a, _b;
24074
+ return _ctx.maintenanceInfo ? (openBlock(), createElementBlock("div", {
24075
+ key: 0,
24076
+ class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.maintenanceContainer]),
24077
+ style: normalizeStyle(_ctx.containerStyle),
24078
+ "data-testid": "maintenance-info",
24079
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
24080
+ }, [
24081
+ createBaseVNode("span", {
24082
+ class: normalizeClass(_ctx.$style.maintenanceText),
24083
+ style: normalizeStyle(_ctx.textStyle),
24084
+ "data-testid": "maintenance-info-text"
24085
+ }, toDisplayString((_a = _ctx.maintenanceInfo) == null ? void 0 : _a.text), 7),
24086
+ ((_b = _ctx.maintenanceInfo) == null ? void 0 : _b.linkUrl) ? (openBlock(), createElementBlock("i", {
24087
+ key: 0,
24088
+ class: normalizeClass(_ctx.$style.rightArror),
24089
+ "data-testid": "maintenance-info-link"
24090
+ }, null, 2)) : createCommentVNode("", true)
24091
+ ], 6)) : createCommentVNode("", true);
24092
+ }
23841
24093
  const cssModules$1a = {};
23842
24094
  cssModules$1a["$style"] = style0$1a;
23843
- var PaymentMethodList = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__cssModules", cssModules$1a]]);
24095
+ var MaintenanceInfo = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1l], ["__cssModules", cssModules$1a]]);
23844
24096
  const wrapperClass$b = "_wrapperClass_1xmid_2";
23845
24097
  const paymentContainer$1 = "_paymentContainer_1xmid_2";
23846
24098
  const label$4 = "_label_1xmid_11";
@@ -23868,7 +24120,8 @@ var style0$19 = {
23868
24120
  const _sfc_main$1k = defineComponent({
23869
24121
  components: {
23870
24122
  PaymentType,
23871
- PaymentMethodList
24123
+ PaymentMethodList,
24124
+ MaintenanceInfo
23872
24125
  },
23873
24126
  props: {
23874
24127
  title: {
@@ -23906,6 +24159,10 @@ const _sfc_main$1k = defineComponent({
23906
24159
  type: Boolean,
23907
24160
  required: false,
23908
24161
  default: false
24162
+ },
24163
+ appealDescription: {
24164
+ type: Object,
24165
+ default: null
23909
24166
  }
23910
24167
  },
23911
24168
  emits: {
@@ -23938,6 +24195,7 @@ const _sfc_main$1k = defineComponent({
23938
24195
  const _hoisted_1$J = ["src"];
23939
24196
  function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
23940
24197
  const _component_PaymentType = resolveComponent("PaymentType");
24198
+ const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
23941
24199
  const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
23942
24200
  const _directive_vertical_scroll = resolveDirective("vertical-scroll");
23943
24201
  return openBlock(), createElementBlock("div", {
@@ -23980,8 +24238,12 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
23980
24238
  "payment-method": _ctx.paymentMethod,
23981
24239
  "is-make-payment": true
23982
24240
  }, null, 8, ["class", "payment-method"])) : createCommentVNode("", true),
23983
- _ctx.showPaymentMethodList ? withDirectives((openBlock(), createElementBlock("div", {
24241
+ _ctx.showPaymentMethodList ? (openBlock(), createBlock(_component_MaintenanceInfo, {
23984
24242
  key: 2,
24243
+ "maintenance-info": _ctx.appealDescription
24244
+ }, null, 8, ["maintenance-info"])) : createCommentVNode("", true),
24245
+ _ctx.showPaymentMethodList ? withDirectives((openBlock(), createElementBlock("div", {
24246
+ key: 3,
23985
24247
  class: normalizeClass(_ctx.style.contentContainer)
23986
24248
  }, [
23987
24249
  createVNode(_component_PaymentMethodList, {
@@ -26045,8 +26307,8 @@ const _sfc_main$1a = defineComponent({
26045
26307
  buttonDisabled.value = !editOK;
26046
26308
  }
26047
26309
  });
26048
- const open = computed(() => props.open);
26049
- watch(open, (newOpen, prevOpen) => {
26310
+ const open2 = computed(() => props.open);
26311
+ watch(open2, (newOpen, prevOpen) => {
26050
26312
  if (newOpen === false && prevOpen === true) {
26051
26313
  Object.assign(state, createInitialState$1());
26052
26314
  } else {
@@ -26250,12 +26512,12 @@ const _sfc_main$19 = defineComponent({
26250
26512
  const lg2 = getLanguage();
26251
26513
  const style = useCssModule();
26252
26514
  const close2 = () => emit("close");
26253
- const del = () => emit("del");
26515
+ const del2 = () => emit("del");
26254
26516
  const img2 = getImages();
26255
26517
  return {
26256
26518
  style,
26257
26519
  close: close2,
26258
- del,
26520
+ del: del2,
26259
26521
  lg: lg2,
26260
26522
  img: img2
26261
26523
  };
@@ -26630,7 +26892,7 @@ const _sfc_main$17 = defineComponent({
26630
26892
  return handleError2();
26631
26893
  }
26632
26894
  };
26633
- const del = async () => {
26895
+ const del2 = async () => {
26634
26896
  var _a, _b, _c;
26635
26897
  const addressListResponse = await getAddressList();
26636
26898
  if ((addressListResponse == null ? void 0 : addressListResponse.ppFetchResult) === "success") {
@@ -26665,7 +26927,7 @@ const _sfc_main$17 = defineComponent({
26665
26927
  addAddress: addAddress2,
26666
26928
  addSheetLoading: computed(() => state.addSheetLoading),
26667
26929
  addressList: computed(() => state.addressList),
26668
- del,
26930
+ del: del2,
26669
26931
  isDesktopPay,
26670
26932
  addOrEdit,
26671
26933
  triggerLayoutUpdate,
@@ -26989,6 +27251,10 @@ const _sfc_main$15 = defineComponent({
26989
27251
  type: Array,
26990
27252
  required: true,
26991
27253
  default: () => []
27254
+ },
27255
+ appealDescription: {
27256
+ type: Object,
27257
+ default: null
26992
27258
  }
26993
27259
  },
26994
27260
  emits: {
@@ -27182,9 +27448,10 @@ function _sfc_render$15(_ctx, _cache, $props, $setup, $data, $options) {
27182
27448
  "payment-methods": _ctx.paymentMethods,
27183
27449
  "select-payment-index": _ctx.selectPaymentIndex,
27184
27450
  "show-payment-method-list": _ctx.showPaymentMethodList,
27451
+ "appeal-description": _ctx.appealDescription,
27185
27452
  onSelectPaymentMethod: _ctx.select,
27186
27453
  onShow: _ctx.showPaymentMethod
27187
- }, null, 8, ["loading", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "onSelectPaymentMethod", "onShow"])) : createCommentVNode("", true),
27454
+ }, null, 8, ["loading", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "appeal-description", "onSelectPaymentMethod", "onShow"])) : createCommentVNode("", true),
27188
27455
  _ctx.isSufficient && _ctx.isMobile ? (openBlock(), createElementBlock("div", {
27189
27456
  key: 3,
27190
27457
  class: normalizeClass(_ctx.style.insufficientAmount)
@@ -27345,7 +27612,8 @@ var style0$W = {
27345
27612
  const _sfc_main$14 = defineComponent({
27346
27613
  components: {
27347
27614
  Header,
27348
- PaymentMethodList
27615
+ PaymentMethodList,
27616
+ MaintenanceInfo
27349
27617
  },
27350
27618
  props: {
27351
27619
  paymentMethods: {
@@ -27362,6 +27630,10 @@ const _sfc_main$14 = defineComponent({
27362
27630
  type: [String, Object],
27363
27631
  required: false,
27364
27632
  default: ""
27633
+ },
27634
+ appealDescription: {
27635
+ type: Object,
27636
+ default: null
27365
27637
  }
27366
27638
  },
27367
27639
  emits: {
@@ -27390,6 +27662,7 @@ const _sfc_main$14 = defineComponent({
27390
27662
  });
27391
27663
  function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
27392
27664
  const _component_Header = resolveComponent("Header");
27665
+ const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
27393
27666
  const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
27394
27667
  const _directive_vertical_scroll = resolveDirective("vertical-scroll");
27395
27668
  return openBlock(), createElementBlock("div", {
@@ -27406,6 +27679,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
27406
27679
  withDirectives((openBlock(), createElementBlock("div", {
27407
27680
  class: normalizeClass(_ctx.style.contentContainer)
27408
27681
  }, [
27682
+ createVNode(_component_MaintenanceInfo, { "maintenance-info": _ctx.appealDescription }, null, 8, ["maintenance-info"]),
27409
27683
  createVNode(_component_PaymentMethodList, {
27410
27684
  "payment-methods": _ctx.paymentMethods,
27411
27685
  "select-payment-index": _ctx.selectPaymentIndex,
@@ -27760,7 +28034,7 @@ const _sfc_main$11 = defineComponent({
27760
28034
  },
27761
28035
  setup(props, { emit }) {
27762
28036
  const images2 = getImages();
27763
- const click = () => emit("click");
28037
+ const click2 = () => emit("click");
27764
28038
  const style = useCssModule();
27765
28039
  const cashBackInfo2 = computed(() => {
27766
28040
  var _a, _b, _c, _d, _e, _f;
@@ -27783,7 +28057,7 @@ const _sfc_main$11 = defineComponent({
27783
28057
  return cashBackInfo2.value.cashBackAmount;
27784
28058
  });
27785
28059
  return {
27786
- click,
28060
+ click: click2,
27787
28061
  style,
27788
28062
  cashBackInfo: cashBackInfo2,
27789
28063
  images: images2,
@@ -28152,7 +28426,7 @@ const _sfc_main$10 = defineComponent({
28152
28426
  millisecond: true,
28153
28427
  onFinish: () => {
28154
28428
  isCountDown.value = false;
28155
- click();
28429
+ click2();
28156
28430
  countDown.reset();
28157
28431
  }
28158
28432
  });
@@ -28175,7 +28449,7 @@ const _sfc_main$10 = defineComponent({
28175
28449
  state.showShrinkAnimation = false;
28176
28450
  }, timeout);
28177
28451
  };
28178
- const click = () => {
28452
+ const click2 = () => {
28179
28453
  if (state.showCashBackDetailList || props.hasCashBackAnimation && isMobile.value || props.hasCashBackAnimation && !props.hasConfirmAge && isDesktop.value)
28180
28454
  return;
28181
28455
  context.emit("success");
@@ -28208,7 +28482,7 @@ const _sfc_main$10 = defineComponent({
28208
28482
  }),
28209
28483
  statusLabelColor: computed(() => props.paymentResult.statusLabelColor.toLowerCase()),
28210
28484
  labelText: computed(() => props.paymentResult.statusLabelString),
28211
- click,
28485
+ click: click2,
28212
28486
  copy,
28213
28487
  showCashBackDetailList: computed(() => state.showCashBackDetailList),
28214
28488
  openCashBackDetailList,
@@ -28488,13 +28762,13 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
28488
28762
  const cssModules$R = {};
28489
28763
  cssModules$R["$style"] = style0$R;
28490
28764
  var CloseConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$R]]);
28491
- const paymentConsult = "_paymentConsult_kiiv1_2";
28492
- const headerImage = "_headerImage_kiiv1_12";
28493
- const content$6 = "_content_kiiv1_16";
28494
- const title$g = "_title_kiiv1_20";
28495
- const description$a = "_description_kiiv1_27";
28765
+ const paymentConsult = "_paymentConsult_6be9y_2";
28766
+ const headerImage = "_headerImage_6be9y_12";
28767
+ const content$6 = "_content_6be9y_16";
28768
+ const title$g = "_title_6be9y_20";
28769
+ const description$a = "_description_6be9y_27";
28496
28770
  var style0$Q = {
28497
- "ppmna-default-font": "_ppmna-default-font_kiiv1_1",
28771
+ "ppmna-default-font": "_ppmna-default-font_6be9y_1",
28498
28772
  paymentConsult,
28499
28773
  headerImage,
28500
28774
  content: content$6,
@@ -28753,6 +29027,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
28753
29027
  return openBlock(), createBlock(_component_ActionSheet, { show: _ctx.show }, {
28754
29028
  default: withCtx(() => [
28755
29029
  createBaseVNode("div", {
29030
+ "data-testid": "birthday-picker",
28756
29031
  class: normalizeClass(_ctx.$style.birthdayPicker)
28757
29032
  }, [
28758
29033
  createBaseVNode("div", {
@@ -28766,14 +29041,16 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
28766
29041
  class: normalizeClass(_ctx.$style.content)
28767
29042
  }, [
28768
29043
  createBaseVNode("p", {
28769
- class: normalizeClass(_ctx.$style.title)
29044
+ class: normalizeClass(_ctx.$style.title),
29045
+ "data-testid": "birthday-confirm-title"
28770
29046
  }, [
28771
29047
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.title), 1),
28772
29048
  _hoisted_2$g,
28773
29049
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.title2), 1)
28774
29050
  ], 2),
28775
29051
  createBaseVNode("p", {
28776
- class: normalizeClass(_ctx.$style.description)
29052
+ class: normalizeClass(_ctx.$style.description),
29053
+ "data-testid": "birthday-confirm-description"
28777
29054
  }, [
28778
29055
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.desc), 1),
28779
29056
  _hoisted_3$c,
@@ -28786,7 +29063,10 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
28786
29063
  createBaseVNode("div", {
28787
29064
  class: normalizeClass(_ctx.$style.dateContainer)
28788
29065
  }, [
28789
- createVNode(_component_DateButton, { onSelected: _ctx.select }, {
29066
+ createVNode(_component_DateButton, {
29067
+ "data-testid": "birthday-date",
29068
+ onSelected: _ctx.select
29069
+ }, {
28790
29070
  default: withCtx(() => [
28791
29071
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.date), 1)
28792
29072
  ]),
@@ -28801,7 +29081,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
28801
29081
  type: "primary",
28802
29082
  block: "",
28803
29083
  disabled: !_ctx.hasInputted,
28804
- "data-test": "birthday-confirm-complete",
29084
+ "data-testid": "birthday-confirm-complete",
28805
29085
  onClick: _ctx.complete
28806
29086
  }, {
28807
29087
  default: withCtx(() => [
@@ -28811,7 +29091,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
28811
29091
  }, 8, ["disabled", "onClick"]),
28812
29092
  createVNode(_component_Button, {
28813
29093
  type: "link",
28814
- "data-test": "birthday-confirm-help",
29094
+ "data-testid": "birthday-confirm-help",
28815
29095
  block: "",
28816
29096
  onClick: _ctx.helpPageClick
28817
29097
  }, {
@@ -28890,7 +29170,8 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
28890
29170
  return openBlock(), createBlock(_component_ActionSheet, { show: _ctx.show }, {
28891
29171
  default: withCtx(() => [
28892
29172
  createBaseVNode("div", {
28893
- class: normalizeClass(_ctx.$style.birthdayPicker)
29173
+ class: normalizeClass(_ctx.$style.birthdayPicker),
29174
+ "data-testid": "birthday-confirm-error"
28894
29175
  }, [
28895
29176
  createBaseVNode("div", {
28896
29177
  class: normalizeClass(_ctx.$style.header)
@@ -28904,14 +29185,16 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
28904
29185
  class: normalizeClass(_ctx.$style.content)
28905
29186
  }, [
28906
29187
  createBaseVNode("p", {
28907
- class: normalizeClass(_ctx.$style.title)
29188
+ class: normalizeClass(_ctx.$style.title),
29189
+ "data-testid": "birthday-error-title"
28908
29190
  }, [
28909
29191
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirmError.title), 1),
28910
29192
  _hoisted_2$f,
28911
29193
  createTextVNode(" " + toDisplayString(_ctx.lg.birthdayConfirmError.title2), 1)
28912
29194
  ], 2),
28913
29195
  createBaseVNode("p", {
28914
- class: normalizeClass(_ctx.$style.description)
29196
+ class: normalizeClass(_ctx.$style.description),
29197
+ "data-testid": "birthday-error-description"
28915
29198
  }, [
28916
29199
  createTextVNode(toDisplayString(_ctx.lg.birthdayConfirmError.desc), 1),
28917
29200
  _hoisted_3$b,
@@ -28924,7 +29207,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
28924
29207
  createVNode(_component_Button, {
28925
29208
  type: "primary",
28926
29209
  block: "",
28927
- "data-test": "birthday-confirm-error-check-help",
29210
+ "data-testid": "birthday-confirm-error-check-help",
28928
29211
  onClick: _ctx.helpPageClick
28929
29212
  }, {
28930
29213
  default: withCtx(() => [
@@ -28935,7 +29218,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
28935
29218
  createVNode(_component_Button, {
28936
29219
  type: "link",
28937
29220
  block: "",
28938
- "data-test": "birthday-confirm-error-close-button",
29221
+ "data-testid": "birthday-confirm-error-close-button",
28939
29222
  onClick: _ctx.close
28940
29223
  }, {
28941
29224
  default: withCtx(() => [
@@ -29083,6 +29366,8 @@ function makeSound(url) {
29083
29366
  setTimeout(() => {
29084
29367
  if (audio) {
29085
29368
  try {
29369
+ if (void 0)
29370
+ ;
29086
29371
  audio.play().catch((e) => {
29087
29372
  console.warn(e);
29088
29373
  });
@@ -29318,7 +29603,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
29318
29603
  class: normalizeClass(_ctx.style.closeImage),
29319
29604
  src: _ctx.images.whiteIconClose,
29320
29605
  style: normalizeStyle([_ctx.isMobile ? _ctx.headerFix : {}]),
29321
- "data-test": "cash-back-detail-close-button",
29606
+ "data-testid": "cash-back-detail-close-button",
29322
29607
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
29323
29608
  }, null, 14, _hoisted_1$u)) : createCommentVNode("", true),
29324
29609
  _ctx.showFullScreenContent ? (openBlock(), createElementBlock("div", {
@@ -29326,14 +29611,15 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
29326
29611
  class: normalizeClass(_ctx.style.campaignContainer)
29327
29612
  }, [
29328
29613
  createBaseVNode("p", {
29329
- class: normalizeClass(_ctx.style.optionalText)
29614
+ class: normalizeClass(_ctx.style.optionalText),
29615
+ "data-testid": "cashback-optional-text"
29330
29616
  }, toDisplayString(_ctx.animation.optionalText), 3),
29331
29617
  createBaseVNode("div", {
29332
29618
  class: normalizeClass(_ctx.style.actionsButtonContainer)
29333
29619
  }, [
29334
29620
  _ctx.showCampaignDetail ? (openBlock(), createBlock(_component_FloatingButton, {
29335
29621
  key: 0,
29336
- "data-test": "cash-back-detail-detail-button",
29622
+ "data-testid": "cash-back-detail-detail-button",
29337
29623
  "image-url": _ctx.images.myOffer,
29338
29624
  onClick: _ctx.openCampaignDetail
29339
29625
  }, {
@@ -29344,7 +29630,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
29344
29630
  }, 8, ["image-url", "onClick"])) : createCommentVNode("", true),
29345
29631
  _ctx.showCampaignHome ? (openBlock(), createBlock(_component_FloatingButton, {
29346
29632
  key: 1,
29347
- "data-test": "cash-back-detail-home-button",
29633
+ "data-testid": "cash-back-detail-home-button",
29348
29634
  "image-url": _ctx.images.myOffer,
29349
29635
  onClick: _ctx.openCampaignHome
29350
29636
  }, {
@@ -29355,7 +29641,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
29355
29641
  }, 8, ["image-url", "onClick"])) : createCommentVNode("", true),
29356
29642
  _ctx.showShare ? (openBlock(), createBlock(_component_FloatingButton, {
29357
29643
  key: 2,
29358
- "data-test": "cash-back-detail-share-button",
29644
+ "data-testid": "cash-back-detail-share-button",
29359
29645
  "image-url": _ctx.images.share,
29360
29646
  "button-class": _ctx.style.shareButton,
29361
29647
  onClick: _ctx.openShare
@@ -29405,13 +29691,13 @@ const _sfc_main$U = defineComponent({
29405
29691
  },
29406
29692
  setup(props, { emit }) {
29407
29693
  const style = useCssModule();
29408
- const click = (price2) => {
29694
+ const click2 = (price2) => {
29409
29695
  emit("click", price2);
29410
29696
  };
29411
29697
  return {
29412
29698
  style,
29413
29699
  numberWithCommas,
29414
- click
29700
+ click: click2
29415
29701
  };
29416
29702
  }
29417
29703
  });
@@ -29999,6 +30285,10 @@ const _sfc_main$Q = defineComponent({
29999
30285
  type: Array,
30000
30286
  default: () => [2e3, 3e3, 5e3, 1e4, 3e4, 5e4, 1e5],
30001
30287
  required: false
30288
+ },
30289
+ appealDescription: {
30290
+ type: Object,
30291
+ default: null
30002
30292
  }
30003
30293
  },
30004
30294
  emits: {
@@ -30195,10 +30485,11 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
30195
30485
  "payment-methods": _ctx.paymentMethods,
30196
30486
  "select-payment-index": _ctx.selectIndex,
30197
30487
  "show-payment-method-list": _ctx.showPaymentMethodList,
30488
+ "appeal-description": _ctx.appealDescription,
30198
30489
  "is-topup-pay": true,
30199
30490
  onSelectPaymentMethod: _ctx.select,
30200
30491
  onShow: _ctx.openPaymentMethod
30201
- }, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "onSelectPaymentMethod", "onShow"])), [
30492
+ }, null, 8, ["title", "payment-method", "payment-methods", "select-payment-index", "show-payment-method-list", "appeal-description", "onSelectPaymentMethod", "onShow"])), [
30202
30493
  [vShow, !_ctx.done]
30203
30494
  ]) : createCommentVNode("", true),
30204
30495
  _ctx.showUserAddress && _ctx.isDesktop ? (openBlock(), createBlock(_component_GetUserAddressApp, {
@@ -30304,7 +30595,8 @@ const _sfc_main$P = defineComponent({
30304
30595
  components: {
30305
30596
  Header,
30306
30597
  PaymentMethodList,
30307
- Divider
30598
+ Divider,
30599
+ MaintenanceInfo
30308
30600
  },
30309
30601
  props: {
30310
30602
  paymentMethods: {
@@ -30331,6 +30623,10 @@ const _sfc_main$P = defineComponent({
30331
30623
  type: Boolean,
30332
30624
  required: false,
30333
30625
  default: true
30626
+ },
30627
+ appealDescription: {
30628
+ type: Object,
30629
+ default: null
30334
30630
  }
30335
30631
  },
30336
30632
  emits: {
@@ -30360,6 +30656,7 @@ const _sfc_main$P = defineComponent({
30360
30656
  const _hoisted_1$o = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
30361
30657
  function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
30362
30658
  const _component_Header = resolveComponent("Header");
30659
+ const _component_MaintenanceInfo = resolveComponent("MaintenanceInfo");
30363
30660
  const _component_PaymentMethodList = resolveComponent("PaymentMethodList");
30364
30661
  const _component_Divider = resolveComponent("Divider");
30365
30662
  const _directive_vertical_scroll = resolveDirective("vertical-scroll");
@@ -30379,6 +30676,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
30379
30676
  class: normalizeClass({ [_ctx.style.paymentList]: true, [_ctx.style.payment]: !_ctx.isTopup }),
30380
30677
  "data-testid": "payment-list"
30381
30678
  }, [
30679
+ createVNode(_component_MaintenanceInfo, { "maintenance-info": _ctx.appealDescription }, null, 8, ["maintenance-info"]),
30382
30680
  createVNode(_component_PaymentMethodList, {
30383
30681
  "select-payment-index": _ctx.selectIndex,
30384
30682
  "payment-methods": _ctx.paymentMethods,
@@ -30406,7 +30704,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
30406
30704
  const cssModules$F = {};
30407
30705
  cssModules$F["$style"] = style0$F;
30408
30706
  var ChoosePaymentMethod = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$P], ["__cssModules", cssModules$F]]);
30409
- function isAvailableTopupMethod(paymentMethod2) {
30707
+ function isActivatedMethod(paymentMethod2) {
30410
30708
  switch (paymentMethod2.paymentMethodType) {
30411
30709
  case PaymentMethodType.CREDIT_CARD: {
30412
30710
  const creditCard2 = paymentMethod2 == null ? void 0 : paymentMethod2.creditCardInfo;
@@ -30425,11 +30723,16 @@ function isAvailableTopupMethod(paymentMethod2) {
30425
30723
  const payLater2 = paymentMethod2.payLaterCcInfo;
30426
30724
  return (payLater2 == null ? void 0 : payLater2.paymentMethodStatus) === PaymentMethodStatus.ACTIVATED;
30427
30725
  }
30428
- case PaymentMethodType.WALLET:
30429
- case PaymentMethodType.PAY_LATER:
30726
+ default:
30430
30727
  return false;
30431
30728
  }
30432
30729
  }
30730
+ function isAvailableTopupMethod(paymentMethod2) {
30731
+ if (paymentMethod2.paymentMethodType === PaymentMethodType.WALLET || paymentMethod2.paymentMethodType === PaymentMethodType.PAY_LATER) {
30732
+ return false;
30733
+ }
30734
+ return isActivatedMethod(paymentMethod2);
30735
+ }
30433
30736
  function hasAvailableTopupMethod(paymentMethods) {
30434
30737
  return paymentMethods.some((paymentMethod2) => isAvailableTopupMethod(paymentMethod2));
30435
30738
  }
@@ -30444,25 +30747,15 @@ function findFirstValidMethod(paymentMethods) {
30444
30747
  } else
30445
30748
  return -1;
30446
30749
  }
30447
- function isValidPaymentMethod(savedMethod, paymentMethods) {
30448
- var _a, _b, _c, _d, _e;
30449
- if (savedMethod) {
30450
- const payMethod = paymentMethods.find((method2) => method2.paymentMethodId === savedMethod);
30451
- switch (payMethod == null ? void 0 : payMethod.paymentMethodType) {
30452
- case PaymentMethodType.CREDIT_CARD:
30453
- return ((_a = payMethod.creditCardInfo) == null ? void 0 : _a.paymentMethodStatus) === "ACTIVATED" && !((_b = payMethod.creditCardInfo) == null ? void 0 : _b.isExpired);
30454
- case PaymentMethodType.WALLET:
30455
- return true;
30456
- case PaymentMethodType.BANK:
30457
- case PaymentMethodType.YMONEY_BANK:
30458
- return ((_c = payMethod.bankInfo) == null ? void 0 : _c.paymentMethodStatus) === "ACTIVATED";
30459
- case PaymentMethodType.SBID_CARRIER_BILLING:
30460
- return ((_d = payMethod.sbidCarrierBillingInfo) == null ? void 0 : _d.paymentMethodStatus) === "ACTIVATED";
30461
- case PaymentMethodType.PAY_LATER_CC:
30462
- return ((_e = payMethod.payLaterCcInfo) == null ? void 0 : _e.paymentMethodStatus) === "ACTIVATED";
30463
- default:
30464
- return false;
30750
+ function isValidPaymentMethod(savedMethodId, paymentMethods) {
30751
+ if (savedMethodId) {
30752
+ const payMethod = paymentMethods.find((method2) => method2.paymentMethodId === savedMethodId);
30753
+ if (!payMethod)
30754
+ return false;
30755
+ if (payMethod.paymentMethodType === PaymentMethodType.WALLET) {
30756
+ return true;
30465
30757
  }
30758
+ return isActivatedMethod(payMethod);
30466
30759
  }
30467
30760
  return false;
30468
30761
  }
@@ -30504,12 +30797,13 @@ const createButtonsAmount = (price2, arr) => {
30504
30797
  return _arr.filter((_price) => _price >= price2);
30505
30798
  };
30506
30799
  function useData(props) {
30507
- var _a, _b, _c, _d, _e;
30800
+ var _a, _b, _c, _d, _e, _f;
30508
30801
  const lastUsedMethod = getLastTopupPayMethod();
30509
30802
  const state = reactive({
30510
30803
  paymentMethods: (_a = props.insufficientBalanceInfo) == null ? void 0 : _a.paymentMethodList,
30511
- index: isValidPaymentMethod(lastUsedMethod, (_b = props.insufficientBalanceInfo) == null ? void 0 : _b.paymentMethodList) ? (_c = props.insufficientBalanceInfo) == null ? void 0 : _c.paymentMethodList.findIndex((method2) => method2.paymentMethodId === lastUsedMethod) : findFirstValidMethod((_d = props.insufficientBalanceInfo) == null ? void 0 : _d.paymentMethodList),
30512
- topupAmount: (_e = props.insufficientBalanceInfo) == null ? void 0 : _e.recommendedTopupAmount,
30804
+ appealDescription: (_b = props.insufficientBalanceInfo) == null ? void 0 : _b.appealDescription,
30805
+ index: isValidPaymentMethod(lastUsedMethod, (_c = props.insufficientBalanceInfo) == null ? void 0 : _c.paymentMethodList) ? (_d = props.insufficientBalanceInfo) == null ? void 0 : _d.paymentMethodList.findIndex((method2) => method2.paymentMethodId === lastUsedMethod) : findFirstValidMethod((_e = props.insufficientBalanceInfo) == null ? void 0 : _e.paymentMethodList),
30806
+ topupAmount: (_f = props.insufficientBalanceInfo) == null ? void 0 : _f.recommendedTopupAmount,
30513
30807
  mount: false,
30514
30808
  unmount: false,
30515
30809
  showChargeList: false,
@@ -30545,6 +30839,7 @@ function useData(props) {
30545
30839
  const setScrollState = (data2) => {
30546
30840
  state.isScrollable = data2;
30547
30841
  };
30842
+ const appealDescription = computed(() => state.appealDescription);
30548
30843
  return {
30549
30844
  available,
30550
30845
  selectIndex: computed(() => state.index),
@@ -30566,7 +30861,8 @@ function useData(props) {
30566
30861
  closeChargeList,
30567
30862
  closePaymentList,
30568
30863
  isScrollable: computed(() => state.isScrollable),
30569
- setScrollState
30864
+ setScrollState,
30865
+ appealDescription
30570
30866
  };
30571
30867
  }
30572
30868
  const _sfc_main$O = defineComponent({
@@ -30652,7 +30948,8 @@ const _sfc_main$O = defineComponent({
30652
30948
  topupAmount: topupAmount2,
30653
30949
  available,
30654
30950
  isScrollable,
30655
- setScrollState
30951
+ setScrollState,
30952
+ appealDescription
30656
30953
  } = useData(props);
30657
30954
  onMounted(() => {
30658
30955
  setMount();
@@ -30773,7 +31070,8 @@ const _sfc_main$O = defineComponent({
30773
31070
  selectTopupList,
30774
31071
  addressSelect,
30775
31072
  updateAddress,
30776
- handleUpdate
31073
+ handleUpdate,
31074
+ appealDescription
30777
31075
  };
30778
31076
  }
30779
31077
  });
@@ -30842,6 +31140,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
30842
31140
  "show-user-address": _ctx.showUserAddress,
30843
31141
  addresses: _ctx.addresses,
30844
31142
  "selected-address": _ctx.selectedAddress,
31143
+ "appeal-description": _ctx.appealDescription,
30845
31144
  onSelect: _ctx.selectPaymentList,
30846
31145
  onAnimationEnd: _ctx.animationEnd,
30847
31146
  onSetMoney: _ctx.setMoney,
@@ -30854,7 +31153,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
30854
31153
  onChooseAddress: _ctx.addressSelect,
30855
31154
  onLayoutUpdate: _ctx.handleUpdate,
30856
31155
  onUpdateAddress: _ctx.updateAddress
30857
- }, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "halfsheet-amount", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
31156
+ }, null, 8, ["container-class", "payment-method", "topup-amount-text", "banner-info", "done", "paying", "amount-buttons", "halfsheet-amount", "available", "payment-methods", "select-index", "is-scrollable", "show-user-address", "addresses", "selected-address", "appeal-description", "onSelect", "onAnimationEnd", "onSetMoney", "onSelectmoremoney", "onShowConsult", "onOpenPaymentMethod", "onCharge", "onClose", "onShowPaymentList", "onChooseAddress", "onLayoutUpdate", "onUpdateAddress"])
30858
31157
  ], 2),
30859
31158
  createVNode(Transition, {
30860
31159
  "enter-active-class": _ctx.style.slideSecondaryEnterActive,
@@ -30896,10 +31195,11 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
30896
31195
  key: 0,
30897
31196
  class: normalizeClass([_ctx.style.listContainer]),
30898
31197
  "payment-methods": _ctx.paymentMethods,
31198
+ "appeal-description": _ctx.appealDescription,
30899
31199
  "select-index": _ctx.selectIndex,
30900
31200
  onSelectPaymentMethod: _ctx.selectPaymentList,
30901
31201
  onBack: _ctx.closePaymentList
30902
- }, null, 8, ["class", "payment-methods", "select-index", "onSelectPaymentMethod", "onBack"])) : createCommentVNode("", true)
31202
+ }, null, 8, ["class", "payment-methods", "appeal-description", "select-index", "onSelectPaymentMethod", "onBack"])) : createCommentVNode("", true)
30903
31203
  ]),
30904
31204
  _: 1
30905
31205
  }, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
@@ -31145,13 +31445,14 @@ function usePaymentMethod(props) {
31145
31445
  paymentMethods: [],
31146
31446
  selectPaymentIndex: 0,
31147
31447
  bannerInfo: null,
31148
- showPaymentMethodList: false
31448
+ showPaymentMethodList: false,
31449
+ appealDescription: null
31149
31450
  });
31150
31451
  const showPaymentMethod = () => {
31151
31452
  paymentState.showPaymentMethodList = true;
31152
31453
  };
31153
31454
  const getPaymentMethods = async (dryRun) => {
31154
- var _a, _b, _c, _d, _e, _f, _g, _h;
31455
+ var _a, _b, _c, _d, _e, _f, _g;
31155
31456
  const res = await getPaymentMethods2({
31156
31457
  merchant: (_a = props == null ? void 0 : props.paymentParams) == null ? void 0 : _a.merchantAlias,
31157
31458
  type: ((_b = props.paymentParams) == null ? void 0 : _b.isAuthorization) ? "PRE_AUTH" : "ACQUIRING",
@@ -31165,7 +31466,7 @@ function usePaymentMethod(props) {
31165
31466
  result: false
31166
31467
  };
31167
31468
  }
31168
- const paymentMethodList = (_h = (_g = (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList;
31469
+ const { paymentMethodList, appealDescription } = ((_g = (_f = (_e = res == null ? void 0 : res.body) == null ? void 0 : _e.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) || {};
31169
31470
  paymentState.paymentMethods = paymentMethodList;
31170
31471
  const walletPaymentMethod = paymentMethodList ? paymentMethodList.find((elem2) => elem2.paymentMethodType === PaymentMethodType.WALLET) || null : null;
31171
31472
  if (walletPaymentMethod && walletPaymentMethod.descriptionBannerInfo) {
@@ -31175,6 +31476,7 @@ function usePaymentMethod(props) {
31175
31476
  paymentState.paymentMethods = paymentMethodList ? paymentMethodList.filter(function(method2) {
31176
31477
  return method2.paymentMethodType !== PaymentMethodType.PAY_LATER;
31177
31478
  }) : paymentMethodList;
31479
+ paymentState.appealDescription = appealDescription;
31178
31480
  paymentState.selectPaymentIndex = isValidPaymentMethod(lastSavedMethod, paymentState == null ? void 0 : paymentState.paymentMethods) ? paymentState.paymentMethods.findIndex((method2) => method2.paymentMethodId === lastSavedMethod) : findFirstValidMethod(paymentState.paymentMethods);
31179
31481
  return {
31180
31482
  res,
@@ -31193,7 +31495,8 @@ function usePaymentMethod(props) {
31193
31495
  paymentMethods: computed(() => paymentState.paymentMethods),
31194
31496
  selectPaymentIndex: computed(() => paymentState.selectPaymentIndex),
31195
31497
  bannerInfo: computed(() => paymentState.bannerInfo),
31196
- showPaymentMethodList: computed(() => paymentState.showPaymentMethodList)
31498
+ showPaymentMethodList: computed(() => paymentState.showPaymentMethodList),
31499
+ appealDescription: computed(() => paymentState.appealDescription)
31197
31500
  };
31198
31501
  }
31199
31502
  function useConsult(props) {
@@ -31842,7 +32145,8 @@ const _sfc_main$M = defineComponent({
31842
32145
  selectPaymentIndex,
31843
32146
  showPaymentMethod,
31844
32147
  bannerInfo: bannerInfo2,
31845
- showPaymentMethodList
32148
+ showPaymentMethodList,
32149
+ appealDescription
31846
32150
  } = usePaymentMethod(props);
31847
32151
  const { pay: pay2, paymentId: paymentId2 } = usePayment(props, {
31848
32152
  paymentMethod: paymentMethod2,
@@ -31905,13 +32209,17 @@ const _sfc_main$M = defineComponent({
31905
32209
  const address2 = (selectedAddress == null ? void 0 : selectedAddress.value) ? __spreadValues({}, selectedAddress.value) : null;
31906
32210
  paymentSuccess(res, address2);
31907
32211
  watch(() => paymentHandler.value, async () => {
31908
- var _a2, _b;
32212
+ var _a2, _b, _c;
31909
32213
  if (!(paymentHandler == null ? void 0 : paymentHandler.value))
31910
32214
  return;
32215
+ if ((_a2 = props == null ? void 0 : props.paymentParams) == null ? void 0 : _a2.alwaysHideCompletionScreen) {
32216
+ endApplication();
32217
+ return;
32218
+ }
31911
32219
  const cashBack2 = getCashBackDetail({
31912
32220
  paymentId: res.unsigned.data.paymentId
31913
32221
  });
31914
- const alwaysDisplay = ((_a2 = props == null ? void 0 : props.paymentParams) == null ? void 0 : _a2.alwaysDisplayCompletionScreen) || ((_b = props == null ? void 0 : props.paymentParams) == null ? void 0 : _b.isAuthorization);
32222
+ const alwaysDisplay = ((_b = props == null ? void 0 : props.paymentParams) == null ? void 0 : _b.alwaysDisplayCompletionScreen) || ((_c = props == null ? void 0 : props.paymentParams) == null ? void 0 : _c.isAuthorization);
31915
32223
  endPayment();
31916
32224
  if (alwaysDisplay) {
31917
32225
  showPaymentResult(res.unsigned.data);
@@ -32073,7 +32381,8 @@ const _sfc_main$M = defineComponent({
32073
32381
  show3DSecureSheet,
32074
32382
  selectedTopupMethod,
32075
32383
  close3DSecureSheet,
32076
- selectedCCType
32384
+ selectedCCType,
32385
+ appealDescription
32077
32386
  };
32078
32387
  }
32079
32388
  });
@@ -32117,6 +32426,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
32117
32426
  "select-payment-index": _ctx.selectPaymentIndex,
32118
32427
  "show-payment-method-list": _ctx.showPaymentMethodList,
32119
32428
  addresses: _ctx.addressList,
32429
+ "appeal-description": _ctx.appealDescription,
32120
32430
  onClose: _ctx.cancelPayment,
32121
32431
  onPay: _ctx.pay,
32122
32432
  onCharge: _ctx.openCharge,
@@ -32127,7 +32437,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
32127
32437
  onSelect: _ctx.selectPayment,
32128
32438
  onShowPaymentMethod: _ctx.showPaymentMethod,
32129
32439
  onUpdateAddress: _ctx.updateAddress
32130
- }, null, 8, ["payment-method", "price", "done", "paying", "loading", "banner-info", "insufficient-balance-info", "tax-exempt", "payment-methods", "selected-address", "payment-params", "show-user-address", "select-payment-index", "show-payment-method-list", "addresses", "onClose", "onPay", "onCharge", "onChoosePaymentMethods", "onChooseAddress", "onAnimationEnd", "onOpenConsult", "onSelect", "onShowPaymentMethod", "onUpdateAddress"])) : createCommentVNode("", true),
32440
+ }, null, 8, ["payment-method", "price", "done", "paying", "loading", "banner-info", "insufficient-balance-info", "tax-exempt", "payment-methods", "selected-address", "payment-params", "show-user-address", "select-payment-index", "show-payment-method-list", "addresses", "appeal-description", "onClose", "onPay", "onCharge", "onChoosePaymentMethods", "onChooseAddress", "onAnimationEnd", "onOpenConsult", "onSelect", "onShowPaymentMethod", "onUpdateAddress"])) : createCommentVNode("", true),
32131
32441
  createVNode(Transition, {
32132
32442
  "enter-active-class": _ctx.$style.slideSecondaryEnterActive,
32133
32443
  "leave-active-class": _ctx.$style.slideSecondaryLeaveActive,
@@ -32162,13 +32472,14 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
32162
32472
  _ctx.isVisiblePaymentMethod && _ctx.isMobile ? (openBlock(), createBlock(_component_ChoosePayment, {
32163
32473
  key: 0,
32164
32474
  "payment-methods": _ctx.paymentMethods,
32475
+ "appeal-description": _ctx.appealDescription,
32165
32476
  "root-style": {
32166
32477
  [_ctx.$style.longHeightContainer]: _ctx.selectedAddress && _ctx.insufficientBalanceInfo
32167
32478
  },
32168
32479
  "select-payment-index": _ctx.selectPaymentIndex,
32169
32480
  onBack: _ctx.backClick,
32170
32481
  onSelect: _ctx.selectPayment
32171
- }, null, 8, ["payment-methods", "root-style", "select-payment-index", "onBack", "onSelect"])) : createCommentVNode("", true)
32482
+ }, null, 8, ["payment-methods", "appeal-description", "root-style", "select-payment-index", "onBack", "onSelect"])) : createCommentVNode("", true)
32172
32483
  ]),
32173
32484
  _: 1
32174
32485
  }, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
@@ -32539,14 +32850,20 @@ function createWrapComplete(fn) {
32539
32850
  };
32540
32851
  }
32541
32852
  const makePayment = async (params) => {
32542
- var _a, _b, _c, _d;
32543
- if ((_b = (_a = params == null ? void 0 : params.additionalUserInfo) == null ? void 0 : _a.userAddress) == null ? void 0 : _b.visible) {
32853
+ var _a, _b, _c, _d, _e, _f;
32854
+ if ((params == null ? void 0 : params.alwaysDisplayCompletionScreen) && (params == null ? void 0 : params.alwaysHideCompletionScreen)) {
32855
+ (_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, {
32856
+ errorCode: MiniAppErrorType.badRequest
32857
+ });
32858
+ return (_b = params == null ? void 0 : params.complete) == null ? void 0 : _b.call(params);
32859
+ }
32860
+ if ((_d = (_c = params == null ? void 0 : params.additionalUserInfo) == null ? void 0 : _c.userAddress) == null ? void 0 : _d.visible) {
32544
32861
  const grantStatus = await checkPermission(PermissionName.mini_app_user_address);
32545
32862
  if (grantStatus !== PermissionStatus.granted) {
32546
- (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
32863
+ (_e = params == null ? void 0 : params.fail) == null ? void 0 : _e.call(params, {
32547
32864
  errorCode: MiniAppErrorType.insufficientScope
32548
32865
  });
32549
- return (_d = params == null ? void 0 : params.complete) == null ? void 0 : _d.call(params);
32866
+ return (_f = params == null ? void 0 : params.complete) == null ? void 0 : _f.call(params);
32550
32867
  }
32551
32868
  }
32552
32869
  const success2 = params.success;
@@ -32673,6 +32990,8 @@ const Currency = defineComponent({
32673
32990
  };
32674
32991
  watch(() => props.modelValue, (value2) => {
32675
32992
  updateValue(value2);
32993
+ }, {
32994
+ immediate: true
32676
32995
  });
32677
32996
  return () => createVNode("div", {
32678
32997
  "class": [styles$1.ppmnaInput, {
@@ -32714,7 +33033,7 @@ const _sfc_main$K = defineComponent({
32714
33033
  },
32715
33034
  setup(props, { emit }) {
32716
33035
  const style = useCssModule();
32717
- const click = (item2, index2) => {
33036
+ const click2 = (item2, index2) => {
32718
33037
  emit("click", item2, index2);
32719
33038
  };
32720
33039
  return {
@@ -32734,7 +33053,7 @@ const _sfc_main$K = defineComponent({
32734
33053
  var _a, _b, _c;
32735
33054
  return (_c = (_b = (_a = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.buttonList;
32736
33055
  }),
32737
- click,
33056
+ click: click2,
32738
33057
  style
32739
33058
  };
32740
33059
  }
@@ -33009,52 +33328,55 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
33009
33328
  const cssModules$z = {};
33010
33329
  cssModules$z["$style"] = style0$z;
33011
33330
  var TopupCompletion = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I], ["__cssModules", cssModules$z]]);
33012
- const slideSecondaryEnterActive = "_slideSecondaryEnterActive_8j48o_7";
33013
- const slideSecondaryLeaveActive = "_slideSecondaryLeaveActive_8j48o_10";
33014
- const slideSecondaryEnterFrom = "_slideSecondaryEnterFrom_8j48o_13";
33015
- const wrapperClass$4 = "_wrapperClass_8j48o_17";
33016
- const topupWrapper = "_topupWrapper_8j48o_17";
33017
- const noBorder = "_noBorder_8j48o_23";
33018
- const fullHeight = "_fullHeight_8j48o_26";
33019
- const choosePayment$2 = "_choosePayment_8j48o_30";
33020
- const topupMoneyLabel = "_topupMoneyLabel_8j48o_37";
33021
- const topupCharge = "_topupCharge_8j48o_45";
33022
- const fullHeightCharge = "_fullHeightCharge_8j48o_51";
33023
- const topup$2 = "_topup_8j48o_17";
33024
- const banner = "_banner_8j48o_63";
33025
- const bannerText = "_bannerText_8j48o_66";
33026
- const bannerMargin = "_bannerMargin_8j48o_69";
33027
- const amountList$1 = "_amountList_8j48o_72";
33028
- const paymentType = "_paymentType_8j48o_93";
33029
- const invalidAmount = "_invalidAmount_8j48o_97";
33030
- const loadingText = "_loadingText_8j48o_102";
33031
- const chargeSelect = "_chargeSelect_8j48o_111";
33032
- const blueDivider = "_blueDivider_8j48o_116";
33033
- const chargeMoney = "_chargeMoney_8j48o_123";
33034
- const unit$2 = "_unit_8j48o_129";
33035
- const chargeInput = "_chargeInput_8j48o_132";
33036
- const fullHeightInput = "_fullHeightInput_8j48o_147";
33037
- const inputLeft = "_inputLeft_8j48o_150";
33038
- const inputRight = "_inputRight_8j48o_157";
33039
- const noMethod = "_noMethod_8j48o_164";
33040
- const topupMoney = "_topupMoney_8j48o_37";
33041
- const moneyLabel = "_moneyLabel_8j48o_177";
33042
- const btnContainer = "_btnContainer_8j48o_181";
33043
- const fullBtnContainer = "_fullBtnContainer_8j48o_188";
33044
- const moneyList = "_moneyList_8j48o_203";
33045
- const doneContainer = "_doneContainer_8j48o_210";
33046
- const fullHeightLottie = "_fullHeightLottie_8j48o_217";
33047
- const ppmnaLottie = "_ppmnaLottie_8j48o_220";
33048
- const moreMoney = "_moreMoney_8j48o_225";
33049
- const fullHeightPayMethod = "_fullHeightPayMethod_8j48o_230";
33331
+ const slideSecondaryEnterActive = "_slideSecondaryEnterActive_1h3dw_7";
33332
+ const slideSecondaryLeaveActive = "_slideSecondaryLeaveActive_1h3dw_10";
33333
+ const slideSecondaryEnterFrom = "_slideSecondaryEnterFrom_1h3dw_13";
33334
+ const wrapperClass$4 = "_wrapperClass_1h3dw_17";
33335
+ const topupWrapper = "_topupWrapper_1h3dw_17";
33336
+ const noBorder = "_noBorder_1h3dw_23";
33337
+ const dummyInput = "_dummyInput_1h3dw_26";
33338
+ const fullHeight = "_fullHeight_1h3dw_30";
33339
+ const choosePayment$2 = "_choosePayment_1h3dw_34";
33340
+ const topupMoneyLabel = "_topupMoneyLabel_1h3dw_41";
33341
+ const topupCharge = "_topupCharge_1h3dw_49";
33342
+ const fullHeightCharge = "_fullHeightCharge_1h3dw_55";
33343
+ const topup$2 = "_topup_1h3dw_17";
33344
+ const banner = "_banner_1h3dw_67";
33345
+ const bannerText = "_bannerText_1h3dw_70";
33346
+ const bannerMargin = "_bannerMargin_1h3dw_73";
33347
+ const amountList$1 = "_amountList_1h3dw_76";
33348
+ const paymentType = "_paymentType_1h3dw_97";
33349
+ const invalidAmount = "_invalidAmount_1h3dw_101";
33350
+ const loadingText = "_loadingText_1h3dw_106";
33351
+ const fakeInput = "_fakeInput_1h3dw_115";
33352
+ const chargeSelect = "_chargeSelect_1h3dw_122";
33353
+ const blueDivider = "_blueDivider_1h3dw_127";
33354
+ const chargeMoney = "_chargeMoney_1h3dw_134";
33355
+ const unit$2 = "_unit_1h3dw_140";
33356
+ const chargeInput = "_chargeInput_1h3dw_143";
33357
+ const fullHeightInput = "_fullHeightInput_1h3dw_158";
33358
+ const inputLeft = "_inputLeft_1h3dw_161";
33359
+ const inputRight = "_inputRight_1h3dw_168";
33360
+ const noMethod = "_noMethod_1h3dw_175";
33361
+ const topupMoney = "_topupMoney_1h3dw_41";
33362
+ const moneyLabel = "_moneyLabel_1h3dw_188";
33363
+ const btnContainer = "_btnContainer_1h3dw_192";
33364
+ const fullBtnContainer = "_fullBtnContainer_1h3dw_199";
33365
+ const moneyList = "_moneyList_1h3dw_214";
33366
+ const doneContainer = "_doneContainer_1h3dw_221";
33367
+ const fullHeightLottie = "_fullHeightLottie_1h3dw_228";
33368
+ const ppmnaLottie = "_ppmnaLottie_1h3dw_231";
33369
+ const moreMoney = "_moreMoney_1h3dw_236";
33370
+ const fullHeightPayMethod = "_fullHeightPayMethod_1h3dw_241";
33050
33371
  var style0$y = {
33051
- "ppmna-default-font": "_ppmna-default-font_8j48o_1",
33372
+ "ppmna-default-font": "_ppmna-default-font_1h3dw_1",
33052
33373
  slideSecondaryEnterActive,
33053
33374
  slideSecondaryLeaveActive,
33054
33375
  slideSecondaryEnterFrom,
33055
33376
  wrapperClass: wrapperClass$4,
33056
33377
  topupWrapper,
33057
33378
  noBorder,
33379
+ dummyInput,
33058
33380
  fullHeight,
33059
33381
  choosePayment: choosePayment$2,
33060
33382
  topupMoneyLabel,
@@ -33068,6 +33390,7 @@ var style0$y = {
33068
33390
  paymentType,
33069
33391
  invalidAmount,
33070
33392
  loadingText,
33393
+ fakeInput,
33071
33394
  chargeSelect,
33072
33395
  blueDivider,
33073
33396
  chargeMoney,
@@ -33162,13 +33485,13 @@ const _sfc_main$H = defineComponent({
33162
33485
  ORDINARY: "\u666E\u901A"
33163
33486
  },
33164
33487
  lottieAnim: null,
33165
- footerposition: false,
33166
33488
  cashbackData: {},
33167
33489
  lg: getLanguage(),
33168
33490
  images: getImages(),
33169
33491
  isFirstLoad: false,
33170
33492
  show3DSecureSheet: false,
33171
- topupMinAmount: 100
33493
+ topupMinAmount: 100,
33494
+ appealDescription: null
33172
33495
  };
33173
33496
  },
33174
33497
  computed: {
@@ -33215,7 +33538,7 @@ const _sfc_main$H = defineComponent({
33215
33538
  methods: {
33216
33539
  numberWithCommas,
33217
33540
  async init() {
33218
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
33541
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
33219
33542
  this.loading = true;
33220
33543
  this.isFirstLoad = true;
33221
33544
  const paymentIDParams = __spreadProps(__spreadValues({}, ((_a = this.topupParams) == null ? void 0 : _a.merchant) && {
@@ -33244,14 +33567,15 @@ const _sfc_main$H = defineComponent({
33244
33567
  this.errorShow = true;
33245
33568
  return;
33246
33569
  }
33247
- this.paymentMethodList = (_h = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload) == null ? void 0 : _h.paymentMethodList;
33570
+ const { paymentMethodList, appealDescription } = (_g = (_f = paymentIdResponse.body.unsigned) == null ? void 0 : _f.data) == null ? void 0 : _g.payload;
33571
+ this.paymentMethodList = paymentMethodList;
33572
+ this.appealDescription = appealDescription;
33248
33573
  this.findFirstValidMethodTopup();
33249
33574
  const config2 = getAppConfig();
33250
33575
  if (config2) {
33251
- this.inputMoney = (_i = config2 == null ? void 0 : config2.topupHalfSheetRecommendedAmount[0]) == null ? void 0 : _i.value;
33252
- this.topupHalfSheetAmount = (_j = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _j.value;
33253
- this.topupButtonsAmount = (_k = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _k.value;
33254
- this.topupMinAmount = (_n = (_m = (_l = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _l[0]) == null ? void 0 : _m.value) != null ? _n : this.topupMinAmount;
33576
+ this.topupHalfSheetAmount = (_h = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _h.value;
33577
+ this.topupButtonsAmount = (_i = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _i.value;
33578
+ this.topupMinAmount = (_l = (_k = (_j = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _j[0]) == null ? void 0 : _k.value) != null ? _l : this.topupMinAmount;
33255
33579
  }
33256
33580
  this.loading = false;
33257
33581
  this.isFirstLoad = false;
@@ -33267,22 +33591,23 @@ const _sfc_main$H = defineComponent({
33267
33591
  }
33268
33592
  },
33269
33593
  async switchInput() {
33270
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
33594
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
33271
33595
  this.isInput = true;
33596
+ (_a = document.getElementById("fake_input")) == null ? void 0 : _a.focus();
33272
33597
  const cashbackInfo2 = await getCashBackInfo();
33273
33598
  if (!cashbackInfo2 || (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) !== "success") {
33274
33599
  this.errorCode = (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "notAuthorized" ? MiniAppErrorType.notAuthorized : (cashbackInfo2 == null ? void 0 : cashbackInfo2.ppFetchResult) === "timeout" ? MiniAppErrorType.timeOut : MiniAppErrorType.serverError;
33275
33600
  this.showError();
33276
33601
  return;
33277
33602
  }
33278
- this.cashbackData = (_b = (_a = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _a.data) == null ? void 0 : _b.payload;
33603
+ this.cashbackData = (_c = (_b = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _b.data) == null ? void 0 : _c.payload;
33279
33604
  this.inputMoney = 0;
33280
33605
  this.minAmountUnmet = false;
33281
33606
  this.maxAmountExceeded = false;
33282
- this.fixBalMoney = (_h = (_g = (_f = (_e = (_d = (_c = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _c.data) == null ? void 0 : _d.payload) == null ? void 0 : _e.walletSummary) == null ? void 0 : _f.totalBalanceInfo) == null ? void 0 : _g.balance) != null ? _h : 0;
33607
+ this.fixBalMoney = (_i = (_h = (_g = (_f = (_e = (_d = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _d.data) == null ? void 0 : _e.payload) == null ? void 0 : _f.walletSummary) == null ? void 0 : _g.totalBalanceInfo) == null ? void 0 : _h.balance) != null ? _i : 0;
33283
33608
  this.balMoney = formatCurrency(this.inputMoney + this.fixBalMoney, 0);
33284
- this.fixCashbackBalance = (_n = (_m = (_l = (_k = (_j = (_i = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _i.data) == null ? void 0 : _j.payload) == null ? void 0 : _k.walletSummary) == null ? void 0 : _l.allTotalBalanceInfo) == null ? void 0 : _m.balance) != null ? _n : 0;
33285
- this.totalCashbackBalance = (_o = formatCurrency(this.inputMoney + this.fixCashbackBalance, 0)) != null ? _o : "0";
33609
+ this.fixCashbackBalance = (_o = (_n = (_m = (_l = (_k = (_j = cashbackInfo2 == null ? void 0 : cashbackInfo2.body) == null ? void 0 : _j.data) == null ? void 0 : _k.payload) == null ? void 0 : _l.walletSummary) == null ? void 0 : _m.allTotalBalanceInfo) == null ? void 0 : _n.balance) != null ? _o : 0;
33610
+ this.totalCashbackBalance = (_p = formatCurrency(this.inputMoney + this.fixCashbackBalance, 0)) != null ? _p : "0";
33286
33611
  setTimeout(() => {
33287
33612
  var _a2;
33288
33613
  (_a2 = document.getElementById("inputmoney")) == null ? void 0 : _a2.focus();
@@ -33307,9 +33632,6 @@ const _sfc_main$H = defineComponent({
33307
33632
  this.$emit("click");
33308
33633
  }
33309
33634
  },
33310
- togglePosition(toggle) {
33311
- this.footerposition = toggle;
33312
- },
33313
33635
  checkValidAmount() {
33314
33636
  var _a;
33315
33637
  const inputVal = Number(String(this.inputMoney).replace(/,/g, ""));
@@ -33535,25 +33857,29 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33535
33857
  }, toDisplayString(_ctx.lg.topup.charge), 3)) : createCommentVNode("", true),
33536
33858
  !_ctx.isInput ? (openBlock(), createElementBlock("div", {
33537
33859
  key: 1,
33538
- class: normalizeClass(_ctx.$style.chargeMoney),
33539
- "data-testid": "money-text"
33860
+ class: normalizeClass(_ctx.$style.dummyInput),
33861
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.switchInput(), ["prevent"]))
33540
33862
  }, [
33541
- createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)), 1),
33542
- createBaseVNode("span", {
33543
- class: normalizeClass(_ctx.$style.unit)
33544
- }, "\u5186", 2)
33545
- ], 2)) : createCommentVNode("", true),
33546
- !_ctx.isInput ? (openBlock(), createElementBlock("div", {
33863
+ createBaseVNode("div", {
33864
+ class: normalizeClass(_ctx.$style.chargeMoney),
33865
+ "data-testid": "money-text"
33866
+ }, [
33867
+ createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)), 1),
33868
+ createBaseVNode("span", {
33869
+ class: normalizeClass(_ctx.$style.unit)
33870
+ }, "\u5186", 2)
33871
+ ], 2),
33872
+ createBaseVNode("div", {
33873
+ class: normalizeClass(_ctx.$style.blueDivider)
33874
+ }, null, 2)
33875
+ ], 2)) : (openBlock(), createElementBlock("div", {
33547
33876
  key: 2,
33548
- class: normalizeClass(_ctx.$style.blueDivider)
33549
- }, null, 2)) : (openBlock(), createElementBlock("div", {
33550
- key: 3,
33551
33877
  class: normalizeClass([_ctx.$style.chargeInput, _ctx.$style.chargeMoney])
33552
33878
  }, [
33553
33879
  createVNode(_component_Currency, {
33554
33880
  id: "inputmoney",
33555
33881
  modelValue: _ctx.inputMoney,
33556
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputMoney = $event),
33882
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.inputMoney = $event),
33557
33883
  "input-mode": "numeric",
33558
33884
  "tab-index": 0,
33559
33885
  maxlength: "12",
@@ -33561,9 +33887,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33561
33887
  autofocus: false,
33562
33888
  class: normalizeClass({ [_ctx.$style.fullHeightInput]: _ctx.isInput }),
33563
33889
  "data-testid": "input-money",
33564
- onInput: _ctx.checkValidAmount,
33565
- onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.togglePosition(true)),
33566
- onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.togglePosition(false))
33890
+ onInput: _ctx.checkValidAmount
33567
33891
  }, null, 8, ["modelValue", "class", "onInput"]),
33568
33892
  createBaseVNode("span", {
33569
33893
  class: normalizeClass(_ctx.$style.inputLeft)
@@ -33609,7 +33933,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33609
33933
  }),
33610
33934
  "data-test": "toggle-payment-method",
33611
33935
  "data-testid": "toggle-payment-method",
33612
- onClick: _cache[3] || (_cache[3] = ($event) => _ctx.togglePaymentMethod(true))
33936
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.togglePaymentMethod(true))
33613
33937
  }, [
33614
33938
  createBaseVNode("span", {
33615
33939
  class: normalizeClass(_ctx.$style.moneyLabel)
@@ -33658,7 +33982,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33658
33982
  loading: _ctx.loading,
33659
33983
  "data-test": "click-topup",
33660
33984
  "data-testid": "click-topup",
33661
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickTopup(false))
33985
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.clickTopup(false))
33662
33986
  }, {
33663
33987
  default: withCtx(() => [
33664
33988
  createTextVNode(toDisplayString(_ctx.numberWithCommas(_ctx.inputMoney)) + " " + toDisplayString(_ctx.lg.topup.payBtn), 1)
@@ -33678,7 +34002,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33678
34002
  [_ctx.$style.fullHeightLottie]: _ctx.isInput,
33679
34003
  [_ctx.$style.ppmnaLottie]: true
33680
34004
  }),
33681
- onCreateLottie: _cache[5] || (_cache[5] = ($event) => _ctx.createAnime($event))
34005
+ onCreateLottie: _cache[4] || (_cache[4] = ($event) => _ctx.createAnime($event))
33682
34006
  }, null, 8, ["path", "class"])
33683
34007
  ], 2)) : createCommentVNode("", true)
33684
34008
  ], 6)) : createCommentVNode("", true),
@@ -33726,6 +34050,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33726
34050
  _ctx.isSelectPaymentMethod ? (openBlock(), createBlock(_component_ChoosePaymentMethod, {
33727
34051
  key: 0,
33728
34052
  "payment-methods": _ctx.paymentMethodList,
34053
+ "appeal-description": _ctx.appealDescription,
33729
34054
  "select-index": _ctx.selectPaymentIndex,
33730
34055
  class: normalizeClass({
33731
34056
  [_ctx.$style.fullHeight]: _ctx.isInput,
@@ -33735,7 +34060,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33735
34060
  style: normalizeStyle(_ctx.getTopHeight),
33736
34061
  onBack: _ctx.togglePaymentMethod,
33737
34062
  onSelectPaymentMethod: _ctx.selectPaymentMethod
33738
- }, null, 8, ["payment-methods", "select-index", "class", "style", "onBack", "onSelectPaymentMethod"])) : createCommentVNode("", true)
34063
+ }, null, 8, ["payment-methods", "appeal-description", "select-index", "class", "style", "onBack", "onSelectPaymentMethod"])) : createCommentVNode("", true)
33739
34064
  ]),
33740
34065
  _: 1
33741
34066
  }, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
@@ -33751,7 +34076,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33751
34076
  createVNode(_component_DuplicatePayment, {
33752
34077
  mode: "topup",
33753
34078
  onCancel: _ctx.duplicateCancel,
33754
- onProceed: _cache[6] || (_cache[6] = ($event) => _ctx.clickTopup(true))
34079
+ onProceed: _cache[5] || (_cache[5] = ($event) => _ctx.clickTopup(true))
33755
34080
  }, null, 8, ["onCancel"])
33756
34081
  ]),
33757
34082
  _: 1
@@ -33759,7 +34084,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33759
34084
  createVNode(_component_ActionSheet, {
33760
34085
  show: _ctx.bannerInfoVisible,
33761
34086
  type: "alert",
33762
- onClose: _cache[7] || (_cache[7] = ($event) => _ctx.bannerBtnClick())
34087
+ onClose: _cache[6] || (_cache[6] = ($event) => _ctx.bannerBtnClick())
33763
34088
  }, {
33764
34089
  default: withCtx(() => [
33765
34090
  createVNode(_component_BannerInfo, {
@@ -33787,13 +34112,19 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
33787
34112
  "error-text": _ctx.errorInfo.desc,
33788
34113
  "button-list": _ctx.errorInfo.buttonList,
33789
34114
  show: _ctx.errorShow || _ctx.errorOverlay,
33790
- onCloseClick: _cache[8] || (_cache[8] = ($event) => _ctx.closeErrorSheet())
34115
+ onCloseClick: _cache[7] || (_cache[7] = ($event) => _ctx.closeErrorSheet())
33791
34116
  }, null, 8, ["error-title", "icon-url", "error-text", "button-list", "show"]),
33792
34117
  createVNode(_component_ThreeDSecureSheet, {
33793
34118
  show: _ctx.show3DSecureSheet,
33794
34119
  "cc-type": _ctx.selectedCCType,
33795
34120
  onClose: _ctx.close3DSecureSheet
33796
- }, null, 8, ["show", "cc-type", "onClose"])
34121
+ }, null, 8, ["show", "cc-type", "onClose"]),
34122
+ createBaseVNode("input", {
34123
+ id: "fake_input",
34124
+ type: "text",
34125
+ readonly: "",
34126
+ class: normalizeClass(_ctx.$style.fakeInput)
34127
+ }, null, 2)
33797
34128
  ], 64);
33798
34129
  }
33799
34130
  const cssModules$y = {};
@@ -34926,7 +35257,7 @@ function debug(params) {
34926
35257
  function execute$5(params) {
34927
35258
  var _a;
34928
35259
  (_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
34929
- v: "1.46.1"
35260
+ v: "1.49.0"
34930
35261
  });
34931
35262
  }
34932
35263
  function useCallBack(props, ctx) {
@@ -36952,14 +37283,177 @@ function callbackHandler(params, callback) {
36952
37283
  }
36953
37284
  }
36954
37285
  var isVue2 = false;
37286
+ function set(target, key2, val2) {
37287
+ if (Array.isArray(target)) {
37288
+ target.length = Math.max(target.length, key2);
37289
+ target.splice(key2, 1, val2);
37290
+ return val2;
37291
+ }
37292
+ target[key2] = val2;
37293
+ return val2;
37294
+ }
37295
+ function del(target, key2) {
37296
+ if (Array.isArray(target)) {
37297
+ target.splice(key2, 1);
37298
+ return;
37299
+ }
37300
+ delete target[key2];
37301
+ }
37302
+ function getDevtoolsGlobalHook() {
37303
+ return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
37304
+ }
37305
+ function getTarget() {
37306
+ return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
37307
+ }
37308
+ const isProxyAvailable = typeof Proxy === "function";
37309
+ const HOOK_SETUP = "devtools-plugin:setup";
37310
+ const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
37311
+ let supported;
37312
+ let perf;
37313
+ function isPerformanceSupported() {
37314
+ var _a;
37315
+ if (supported !== void 0) {
37316
+ return supported;
37317
+ }
37318
+ if (typeof window !== "undefined" && window.performance) {
37319
+ supported = true;
37320
+ perf = window.performance;
37321
+ } else if (typeof global !== "undefined" && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
37322
+ supported = true;
37323
+ perf = global.perf_hooks.performance;
37324
+ } else {
37325
+ supported = false;
37326
+ }
37327
+ return supported;
37328
+ }
37329
+ function now() {
37330
+ return isPerformanceSupported() ? perf.now() : Date.now();
37331
+ }
37332
+ class ApiProxy {
37333
+ constructor(plugin, hook) {
37334
+ this.target = null;
37335
+ this.targetQueue = [];
37336
+ this.onQueue = [];
37337
+ this.plugin = plugin;
37338
+ this.hook = hook;
37339
+ const defaultSettings = {};
37340
+ if (plugin.settings) {
37341
+ for (const id in plugin.settings) {
37342
+ const item2 = plugin.settings[id];
37343
+ defaultSettings[id] = item2.defaultValue;
37344
+ }
37345
+ }
37346
+ const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
37347
+ let currentSettings = Object.assign({}, defaultSettings);
37348
+ try {
37349
+ const raw = localStorage.getItem(localSettingsSaveId);
37350
+ const data2 = JSON.parse(raw);
37351
+ Object.assign(currentSettings, data2);
37352
+ } catch (e) {
37353
+ }
37354
+ this.fallbacks = {
37355
+ getSettings() {
37356
+ return currentSettings;
37357
+ },
37358
+ setSettings(value2) {
37359
+ try {
37360
+ localStorage.setItem(localSettingsSaveId, JSON.stringify(value2));
37361
+ } catch (e) {
37362
+ }
37363
+ currentSettings = value2;
37364
+ },
37365
+ now() {
37366
+ return now();
37367
+ }
37368
+ };
37369
+ if (hook) {
37370
+ hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value2) => {
37371
+ if (pluginId === this.plugin.id) {
37372
+ this.fallbacks.setSettings(value2);
37373
+ }
37374
+ });
37375
+ }
37376
+ this.proxiedOn = new Proxy({}, {
37377
+ get: (_target, prop) => {
37378
+ if (this.target) {
37379
+ return this.target.on[prop];
37380
+ } else {
37381
+ return (...args) => {
37382
+ this.onQueue.push({
37383
+ method: prop,
37384
+ args
37385
+ });
37386
+ };
37387
+ }
37388
+ }
37389
+ });
37390
+ this.proxiedTarget = new Proxy({}, {
37391
+ get: (_target, prop) => {
37392
+ if (this.target) {
37393
+ return this.target[prop];
37394
+ } else if (prop === "on") {
37395
+ return this.proxiedOn;
37396
+ } else if (Object.keys(this.fallbacks).includes(prop)) {
37397
+ return (...args) => {
37398
+ this.targetQueue.push({
37399
+ method: prop,
37400
+ args,
37401
+ resolve: () => {
37402
+ }
37403
+ });
37404
+ return this.fallbacks[prop](...args);
37405
+ };
37406
+ } else {
37407
+ return (...args) => {
37408
+ return new Promise((resolve2) => {
37409
+ this.targetQueue.push({
37410
+ method: prop,
37411
+ args,
37412
+ resolve: resolve2
37413
+ });
37414
+ });
37415
+ };
37416
+ }
37417
+ }
37418
+ });
37419
+ }
37420
+ async setRealTarget(target) {
37421
+ this.target = target;
37422
+ for (const item2 of this.onQueue) {
37423
+ this.target.on[item2.method](...item2.args);
37424
+ }
37425
+ for (const item2 of this.targetQueue) {
37426
+ item2.resolve(await this.target[item2.method](...item2.args));
37427
+ }
37428
+ }
37429
+ }
37430
+ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
37431
+ const descriptor = pluginDescriptor;
37432
+ const target = getTarget();
37433
+ const hook = getDevtoolsGlobalHook();
37434
+ const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy;
37435
+ if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
37436
+ hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
37437
+ } else {
37438
+ const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null;
37439
+ const list2 = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
37440
+ list2.push({
37441
+ pluginDescriptor: descriptor,
37442
+ setupFn,
37443
+ proxy
37444
+ });
37445
+ if (proxy)
37446
+ setupFn(proxy.proxiedTarget);
37447
+ }
37448
+ }
36955
37449
  /*!
36956
- * pinia v2.0.14
37450
+ * pinia v2.0.18
36957
37451
  * (c) 2022 Eduardo San Martin Morote
36958
37452
  * @license MIT
36959
37453
  */
36960
37454
  let activePinia;
36961
37455
  const setActivePinia = (pinia) => activePinia = pinia;
36962
- const piniaSymbol = Symbol();
37456
+ const piniaSymbol = Symbol("pinia");
36963
37457
  function isPlainObject(o) {
36964
37458
  return o && typeof o === "object" && Object.prototype.toString.call(o) === "[object Object]" && typeof o.toJSON !== "function";
36965
37459
  }
@@ -36969,6 +37463,721 @@ var MutationType;
36969
37463
  MutationType2["patchObject"] = "patch object";
36970
37464
  MutationType2["patchFunction"] = "patch function";
36971
37465
  })(MutationType || (MutationType = {}));
37466
+ const IS_CLIENT = typeof window !== "undefined";
37467
+ const _global = /* @__PURE__ */ (() => typeof window === "object" && window.window === window ? window : typeof self === "object" && self.self === self ? self : typeof global === "object" && global.global === global ? global : typeof globalThis === "object" ? globalThis : { HTMLElement: null })();
37468
+ function bom(blob, { autoBom = false } = {}) {
37469
+ if (autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
37470
+ return new Blob([String.fromCharCode(65279), blob], { type: blob.type });
37471
+ }
37472
+ return blob;
37473
+ }
37474
+ function download(url, name2, opts) {
37475
+ const xhr = new XMLHttpRequest();
37476
+ xhr.open("GET", url);
37477
+ xhr.responseType = "blob";
37478
+ xhr.onload = function() {
37479
+ saveAs(xhr.response, name2, opts);
37480
+ };
37481
+ xhr.onerror = function() {
37482
+ console.error("could not download file");
37483
+ };
37484
+ xhr.send();
37485
+ }
37486
+ function corsEnabled(url) {
37487
+ const xhr = new XMLHttpRequest();
37488
+ xhr.open("HEAD", url, false);
37489
+ try {
37490
+ xhr.send();
37491
+ } catch (e) {
37492
+ }
37493
+ return xhr.status >= 200 && xhr.status <= 299;
37494
+ }
37495
+ function click(node) {
37496
+ try {
37497
+ node.dispatchEvent(new MouseEvent("click"));
37498
+ } catch (e) {
37499
+ const evt = document.createEvent("MouseEvents");
37500
+ evt.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
37501
+ node.dispatchEvent(evt);
37502
+ }
37503
+ }
37504
+ const _navigator = typeof navigator === "object" ? navigator : { userAgent: "" };
37505
+ const isMacOSWebView = /* @__PURE__ */ (() => /Macintosh/.test(_navigator.userAgent) && /AppleWebKit/.test(_navigator.userAgent) && !/Safari/.test(_navigator.userAgent))();
37506
+ const saveAs = !IS_CLIENT ? () => {
37507
+ } : typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView ? downloadSaveAs : "msSaveOrOpenBlob" in _navigator ? msSaveAs : fileSaverSaveAs;
37508
+ function downloadSaveAs(blob, name2 = "download", opts) {
37509
+ const a = document.createElement("a");
37510
+ a.download = name2;
37511
+ a.rel = "noopener";
37512
+ if (typeof blob === "string") {
37513
+ a.href = blob;
37514
+ if (a.origin !== location.origin) {
37515
+ if (corsEnabled(a.href)) {
37516
+ download(blob, name2, opts);
37517
+ } else {
37518
+ a.target = "_blank";
37519
+ click(a);
37520
+ }
37521
+ } else {
37522
+ click(a);
37523
+ }
37524
+ } else {
37525
+ a.href = URL.createObjectURL(blob);
37526
+ setTimeout(function() {
37527
+ URL.revokeObjectURL(a.href);
37528
+ }, 4e4);
37529
+ setTimeout(function() {
37530
+ click(a);
37531
+ }, 0);
37532
+ }
37533
+ }
37534
+ function msSaveAs(blob, name2 = "download", opts) {
37535
+ if (typeof blob === "string") {
37536
+ if (corsEnabled(blob)) {
37537
+ download(blob, name2, opts);
37538
+ } else {
37539
+ const a = document.createElement("a");
37540
+ a.href = blob;
37541
+ a.target = "_blank";
37542
+ setTimeout(function() {
37543
+ click(a);
37544
+ });
37545
+ }
37546
+ } else {
37547
+ navigator.msSaveOrOpenBlob(bom(blob, opts), name2);
37548
+ }
37549
+ }
37550
+ function fileSaverSaveAs(blob, name2, opts, popup) {
37551
+ popup = popup || open("", "_blank");
37552
+ if (popup) {
37553
+ popup.document.title = popup.document.body.innerText = "downloading...";
37554
+ }
37555
+ if (typeof blob === "string")
37556
+ return download(blob, name2, opts);
37557
+ const force = blob.type === "application/octet-stream";
37558
+ const isSafari2 = /constructor/i.test(String(_global.HTMLElement)) || "safari" in _global;
37559
+ const isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
37560
+ if ((isChromeIOS || force && isSafari2 || isMacOSWebView) && typeof FileReader !== "undefined") {
37561
+ const reader = new FileReader();
37562
+ reader.onloadend = function() {
37563
+ let url = reader.result;
37564
+ if (typeof url !== "string") {
37565
+ popup = null;
37566
+ throw new Error("Wrong reader.result type");
37567
+ }
37568
+ url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, "data:attachment/file;");
37569
+ if (popup) {
37570
+ popup.location.href = url;
37571
+ } else {
37572
+ location.assign(url);
37573
+ }
37574
+ popup = null;
37575
+ };
37576
+ reader.readAsDataURL(blob);
37577
+ } else {
37578
+ const url = URL.createObjectURL(blob);
37579
+ if (popup)
37580
+ popup.location.assign(url);
37581
+ else
37582
+ location.href = url;
37583
+ popup = null;
37584
+ setTimeout(function() {
37585
+ URL.revokeObjectURL(url);
37586
+ }, 4e4);
37587
+ }
37588
+ }
37589
+ function toastMessage(message, type) {
37590
+ const piniaMessage = "\u{1F34D} " + message;
37591
+ if (typeof __VUE_DEVTOOLS_TOAST__ === "function") {
37592
+ __VUE_DEVTOOLS_TOAST__(piniaMessage, type);
37593
+ } else if (type === "error") {
37594
+ console.error(piniaMessage);
37595
+ } else if (type === "warn") {
37596
+ console.warn(piniaMessage);
37597
+ } else {
37598
+ console.log(piniaMessage);
37599
+ }
37600
+ }
37601
+ function isPinia(o) {
37602
+ return "_a" in o && "install" in o;
37603
+ }
37604
+ function checkClipboardAccess() {
37605
+ if (!("clipboard" in navigator)) {
37606
+ toastMessage(`Your browser doesn't support the Clipboard API`, "error");
37607
+ return true;
37608
+ }
37609
+ }
37610
+ function checkNotFocusedError(error2) {
37611
+ if (error2 instanceof Error && error2.message.toLowerCase().includes("document is not focused")) {
37612
+ toastMessage('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn");
37613
+ return true;
37614
+ }
37615
+ return false;
37616
+ }
37617
+ async function actionGlobalCopyState(pinia) {
37618
+ if (checkClipboardAccess())
37619
+ return;
37620
+ try {
37621
+ await navigator.clipboard.writeText(JSON.stringify(pinia.state.value));
37622
+ toastMessage("Global state copied to clipboard.");
37623
+ } catch (error2) {
37624
+ if (checkNotFocusedError(error2))
37625
+ return;
37626
+ toastMessage(`Failed to serialize the state. Check the console for more details.`, "error");
37627
+ console.error(error2);
37628
+ }
37629
+ }
37630
+ async function actionGlobalPasteState(pinia) {
37631
+ if (checkClipboardAccess())
37632
+ return;
37633
+ try {
37634
+ pinia.state.value = JSON.parse(await navigator.clipboard.readText());
37635
+ toastMessage("Global state pasted from clipboard.");
37636
+ } catch (error2) {
37637
+ if (checkNotFocusedError(error2))
37638
+ return;
37639
+ toastMessage(`Failed to deserialize the state from clipboard. Check the console for more details.`, "error");
37640
+ console.error(error2);
37641
+ }
37642
+ }
37643
+ async function actionGlobalSaveState(pinia) {
37644
+ try {
37645
+ saveAs(new Blob([JSON.stringify(pinia.state.value)], {
37646
+ type: "text/plain;charset=utf-8"
37647
+ }), "pinia-state.json");
37648
+ } catch (error2) {
37649
+ toastMessage(`Failed to export the state as JSON. Check the console for more details.`, "error");
37650
+ console.error(error2);
37651
+ }
37652
+ }
37653
+ let fileInput;
37654
+ function getFileOpener() {
37655
+ if (!fileInput) {
37656
+ fileInput = document.createElement("input");
37657
+ fileInput.type = "file";
37658
+ fileInput.accept = ".json";
37659
+ }
37660
+ function openFile() {
37661
+ return new Promise((resolve2, reject) => {
37662
+ fileInput.onchange = async () => {
37663
+ const files = fileInput.files;
37664
+ if (!files)
37665
+ return resolve2(null);
37666
+ const file = files.item(0);
37667
+ if (!file)
37668
+ return resolve2(null);
37669
+ return resolve2({ text: await file.text(), file });
37670
+ };
37671
+ fileInput.oncancel = () => resolve2(null);
37672
+ fileInput.onerror = reject;
37673
+ fileInput.click();
37674
+ });
37675
+ }
37676
+ return openFile;
37677
+ }
37678
+ async function actionGlobalOpenStateFile(pinia) {
37679
+ try {
37680
+ const open2 = await getFileOpener();
37681
+ const result2 = await open2();
37682
+ if (!result2)
37683
+ return;
37684
+ const { text: text2, file } = result2;
37685
+ pinia.state.value = JSON.parse(text2);
37686
+ toastMessage(`Global state imported from "${file.name}".`);
37687
+ } catch (error2) {
37688
+ toastMessage(`Failed to export the state as JSON. Check the console for more details.`, "error");
37689
+ console.error(error2);
37690
+ }
37691
+ }
37692
+ function formatDisplay(display) {
37693
+ return {
37694
+ _custom: {
37695
+ display
37696
+ }
37697
+ };
37698
+ }
37699
+ const PINIA_ROOT_LABEL = "\u{1F34D} Pinia (root)";
37700
+ const PINIA_ROOT_ID = "_root";
37701
+ function formatStoreForInspectorTree(store) {
37702
+ return isPinia(store) ? {
37703
+ id: PINIA_ROOT_ID,
37704
+ label: PINIA_ROOT_LABEL
37705
+ } : {
37706
+ id: store.$id,
37707
+ label: store.$id
37708
+ };
37709
+ }
37710
+ function formatStoreForInspectorState(store) {
37711
+ if (isPinia(store)) {
37712
+ const storeNames = Array.from(store._s.keys());
37713
+ const storeMap = store._s;
37714
+ const state2 = {
37715
+ state: storeNames.map((storeId) => ({
37716
+ editable: true,
37717
+ key: storeId,
37718
+ value: store.state.value[storeId]
37719
+ })),
37720
+ getters: storeNames.filter((id) => storeMap.get(id)._getters).map((id) => {
37721
+ const store2 = storeMap.get(id);
37722
+ return {
37723
+ editable: false,
37724
+ key: id,
37725
+ value: store2._getters.reduce((getters, key2) => {
37726
+ getters[key2] = store2[key2];
37727
+ return getters;
37728
+ }, {})
37729
+ };
37730
+ })
37731
+ };
37732
+ return state2;
37733
+ }
37734
+ const state = {
37735
+ state: Object.keys(store.$state).map((key2) => ({
37736
+ editable: true,
37737
+ key: key2,
37738
+ value: store.$state[key2]
37739
+ }))
37740
+ };
37741
+ if (store._getters && store._getters.length) {
37742
+ state.getters = store._getters.map((getterName) => ({
37743
+ editable: false,
37744
+ key: getterName,
37745
+ value: store[getterName]
37746
+ }));
37747
+ }
37748
+ if (store._customProperties.size) {
37749
+ state.customProperties = Array.from(store._customProperties).map((key2) => ({
37750
+ editable: true,
37751
+ key: key2,
37752
+ value: store[key2]
37753
+ }));
37754
+ }
37755
+ return state;
37756
+ }
37757
+ function formatEventData(events) {
37758
+ if (!events)
37759
+ return {};
37760
+ if (Array.isArray(events)) {
37761
+ return events.reduce((data2, event) => {
37762
+ data2.keys.push(event.key);
37763
+ data2.operations.push(event.type);
37764
+ data2.oldValue[event.key] = event.oldValue;
37765
+ data2.newValue[event.key] = event.newValue;
37766
+ return data2;
37767
+ }, {
37768
+ oldValue: {},
37769
+ keys: [],
37770
+ operations: [],
37771
+ newValue: {}
37772
+ });
37773
+ } else {
37774
+ return {
37775
+ operation: formatDisplay(events.type),
37776
+ key: formatDisplay(events.key),
37777
+ oldValue: events.oldValue,
37778
+ newValue: events.newValue
37779
+ };
37780
+ }
37781
+ }
37782
+ function formatMutationType(type) {
37783
+ switch (type) {
37784
+ case MutationType.direct:
37785
+ return "mutation";
37786
+ case MutationType.patchFunction:
37787
+ return "$patch";
37788
+ case MutationType.patchObject:
37789
+ return "$patch";
37790
+ default:
37791
+ return "unknown";
37792
+ }
37793
+ }
37794
+ let isTimelineActive = true;
37795
+ const componentStateTypes = [];
37796
+ const MUTATIONS_LAYER_ID = "pinia:mutations";
37797
+ const INSPECTOR_ID = "pinia";
37798
+ const getStoreType = (id) => "\u{1F34D} " + id;
37799
+ function registerPiniaDevtools(app, pinia) {
37800
+ setupDevtoolsPlugin({
37801
+ id: "dev.esm.pinia",
37802
+ label: "Pinia \u{1F34D}",
37803
+ logo: "https://pinia.vuejs.org/logo.svg",
37804
+ packageName: "pinia",
37805
+ homepage: "https://pinia.vuejs.org",
37806
+ componentStateTypes,
37807
+ app
37808
+ }, (api2) => {
37809
+ if (typeof api2.now !== "function") {
37810
+ toastMessage("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.");
37811
+ }
37812
+ api2.addTimelineLayer({
37813
+ id: MUTATIONS_LAYER_ID,
37814
+ label: `Pinia \u{1F34D}`,
37815
+ color: 15064968
37816
+ });
37817
+ api2.addInspector({
37818
+ id: INSPECTOR_ID,
37819
+ label: "Pinia \u{1F34D}",
37820
+ icon: "storage",
37821
+ treeFilterPlaceholder: "Search stores",
37822
+ actions: [
37823
+ {
37824
+ icon: "content_copy",
37825
+ action: () => {
37826
+ actionGlobalCopyState(pinia);
37827
+ },
37828
+ tooltip: "Serialize and copy the state"
37829
+ },
37830
+ {
37831
+ icon: "content_paste",
37832
+ action: async () => {
37833
+ await actionGlobalPasteState(pinia);
37834
+ api2.sendInspectorTree(INSPECTOR_ID);
37835
+ api2.sendInspectorState(INSPECTOR_ID);
37836
+ },
37837
+ tooltip: "Replace the state with the content of your clipboard"
37838
+ },
37839
+ {
37840
+ icon: "save",
37841
+ action: () => {
37842
+ actionGlobalSaveState(pinia);
37843
+ },
37844
+ tooltip: "Save the state as a JSON file"
37845
+ },
37846
+ {
37847
+ icon: "folder_open",
37848
+ action: async () => {
37849
+ await actionGlobalOpenStateFile(pinia);
37850
+ api2.sendInspectorTree(INSPECTOR_ID);
37851
+ api2.sendInspectorState(INSPECTOR_ID);
37852
+ },
37853
+ tooltip: "Import the state from a JSON file"
37854
+ }
37855
+ ],
37856
+ nodeActions: [
37857
+ {
37858
+ icon: "restore",
37859
+ tooltip: "Reset the state (option store only)",
37860
+ action: (nodeId) => {
37861
+ const store = pinia._s.get(nodeId);
37862
+ if (!store) {
37863
+ toastMessage(`Cannot reset "${nodeId}" store because it wasn't found.`, "warn");
37864
+ } else if (!store._isOptionsAPI) {
37865
+ toastMessage(`Cannot reset "${nodeId}" store because it's a setup store.`, "warn");
37866
+ } else {
37867
+ store.$reset();
37868
+ toastMessage(`Store "${nodeId}" reset.`);
37869
+ }
37870
+ }
37871
+ }
37872
+ ]
37873
+ });
37874
+ api2.on.inspectComponent((payload, ctx) => {
37875
+ const proxy = payload.componentInstance && payload.componentInstance.proxy;
37876
+ if (proxy && proxy._pStores) {
37877
+ const piniaStores = payload.componentInstance.proxy._pStores;
37878
+ Object.values(piniaStores).forEach((store) => {
37879
+ payload.instanceData.state.push({
37880
+ type: getStoreType(store.$id),
37881
+ key: "state",
37882
+ editable: true,
37883
+ value: store._isOptionsAPI ? {
37884
+ _custom: {
37885
+ value: toRaw(store.$state),
37886
+ actions: [
37887
+ {
37888
+ icon: "restore",
37889
+ tooltip: "Reset the state of this store",
37890
+ action: () => store.$reset()
37891
+ }
37892
+ ]
37893
+ }
37894
+ } : Object.keys(store.$state).reduce((state, key2) => {
37895
+ state[key2] = store.$state[key2];
37896
+ return state;
37897
+ }, {})
37898
+ });
37899
+ if (store._getters && store._getters.length) {
37900
+ payload.instanceData.state.push({
37901
+ type: getStoreType(store.$id),
37902
+ key: "getters",
37903
+ editable: false,
37904
+ value: store._getters.reduce((getters, key2) => {
37905
+ try {
37906
+ getters[key2] = store[key2];
37907
+ } catch (error2) {
37908
+ getters[key2] = error2;
37909
+ }
37910
+ return getters;
37911
+ }, {})
37912
+ });
37913
+ }
37914
+ });
37915
+ }
37916
+ });
37917
+ api2.on.getInspectorTree((payload) => {
37918
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
37919
+ let stores = [pinia];
37920
+ stores = stores.concat(Array.from(pinia._s.values()));
37921
+ payload.rootNodes = (payload.filter ? stores.filter((store) => "$id" in store ? store.$id.toLowerCase().includes(payload.filter.toLowerCase()) : PINIA_ROOT_LABEL.toLowerCase().includes(payload.filter.toLowerCase())) : stores).map(formatStoreForInspectorTree);
37922
+ }
37923
+ });
37924
+ api2.on.getInspectorState((payload) => {
37925
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
37926
+ const inspectedStore = payload.nodeId === PINIA_ROOT_ID ? pinia : pinia._s.get(payload.nodeId);
37927
+ if (!inspectedStore) {
37928
+ return;
37929
+ }
37930
+ if (inspectedStore) {
37931
+ payload.state = formatStoreForInspectorState(inspectedStore);
37932
+ }
37933
+ }
37934
+ });
37935
+ api2.on.editInspectorState((payload, ctx) => {
37936
+ if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
37937
+ const inspectedStore = payload.nodeId === PINIA_ROOT_ID ? pinia : pinia._s.get(payload.nodeId);
37938
+ if (!inspectedStore) {
37939
+ return toastMessage(`store "${payload.nodeId}" not found`, "error");
37940
+ }
37941
+ const { path } = payload;
37942
+ if (!isPinia(inspectedStore)) {
37943
+ if (path.length !== 1 || !inspectedStore._customProperties.has(path[0]) || path[0] in inspectedStore.$state) {
37944
+ path.unshift("$state");
37945
+ }
37946
+ } else {
37947
+ path.unshift("state");
37948
+ }
37949
+ isTimelineActive = false;
37950
+ payload.set(inspectedStore, path, payload.state.value);
37951
+ isTimelineActive = true;
37952
+ }
37953
+ });
37954
+ api2.on.editComponentState((payload) => {
37955
+ if (payload.type.startsWith("\u{1F34D}")) {
37956
+ const storeId = payload.type.replace(/^🍍\s*/, "");
37957
+ const store = pinia._s.get(storeId);
37958
+ if (!store) {
37959
+ return toastMessage(`store "${storeId}" not found`, "error");
37960
+ }
37961
+ const { path } = payload;
37962
+ if (path[0] !== "state") {
37963
+ return toastMessage(`Invalid path for store "${storeId}":
37964
+ ${path}
37965
+ Only state can be modified.`);
37966
+ }
37967
+ path[0] = "$state";
37968
+ isTimelineActive = false;
37969
+ payload.set(store, path, payload.state.value);
37970
+ isTimelineActive = true;
37971
+ }
37972
+ });
37973
+ });
37974
+ }
37975
+ function addStoreToDevtools(app, store) {
37976
+ if (!componentStateTypes.includes(getStoreType(store.$id))) {
37977
+ componentStateTypes.push(getStoreType(store.$id));
37978
+ }
37979
+ setupDevtoolsPlugin({
37980
+ id: "dev.esm.pinia",
37981
+ label: "Pinia \u{1F34D}",
37982
+ logo: "https://pinia.vuejs.org/logo.svg",
37983
+ packageName: "pinia",
37984
+ homepage: "https://pinia.vuejs.org",
37985
+ componentStateTypes,
37986
+ app,
37987
+ settings: {
37988
+ logStoreChanges: {
37989
+ label: "Notify about new/deleted stores",
37990
+ type: "boolean",
37991
+ defaultValue: true
37992
+ }
37993
+ }
37994
+ }, (api2) => {
37995
+ const now2 = typeof api2.now === "function" ? api2.now.bind(api2) : Date.now;
37996
+ store.$onAction(({ after, onError, name: name2, args }) => {
37997
+ const groupId = runningActionId++;
37998
+ api2.addTimelineEvent({
37999
+ layerId: MUTATIONS_LAYER_ID,
38000
+ event: {
38001
+ time: now2(),
38002
+ title: "\u{1F6EB} " + name2,
38003
+ subtitle: "start",
38004
+ data: {
38005
+ store: formatDisplay(store.$id),
38006
+ action: formatDisplay(name2),
38007
+ args
38008
+ },
38009
+ groupId
38010
+ }
38011
+ });
38012
+ after((result2) => {
38013
+ activeAction = void 0;
38014
+ api2.addTimelineEvent({
38015
+ layerId: MUTATIONS_LAYER_ID,
38016
+ event: {
38017
+ time: now2(),
38018
+ title: "\u{1F6EC} " + name2,
38019
+ subtitle: "end",
38020
+ data: {
38021
+ store: formatDisplay(store.$id),
38022
+ action: formatDisplay(name2),
38023
+ args,
38024
+ result: result2
38025
+ },
38026
+ groupId
38027
+ }
38028
+ });
38029
+ });
38030
+ onError((error2) => {
38031
+ activeAction = void 0;
38032
+ api2.addTimelineEvent({
38033
+ layerId: MUTATIONS_LAYER_ID,
38034
+ event: {
38035
+ time: now2(),
38036
+ logType: "error",
38037
+ title: "\u{1F4A5} " + name2,
38038
+ subtitle: "end",
38039
+ data: {
38040
+ store: formatDisplay(store.$id),
38041
+ action: formatDisplay(name2),
38042
+ args,
38043
+ error: error2
38044
+ },
38045
+ groupId
38046
+ }
38047
+ });
38048
+ });
38049
+ }, true);
38050
+ store._customProperties.forEach((name2) => {
38051
+ watch(() => unref(store[name2]), (newValue, oldValue) => {
38052
+ api2.notifyComponentUpdate();
38053
+ api2.sendInspectorState(INSPECTOR_ID);
38054
+ if (isTimelineActive) {
38055
+ api2.addTimelineEvent({
38056
+ layerId: MUTATIONS_LAYER_ID,
38057
+ event: {
38058
+ time: now2(),
38059
+ title: "Change",
38060
+ subtitle: name2,
38061
+ data: {
38062
+ newValue,
38063
+ oldValue
38064
+ },
38065
+ groupId: activeAction
38066
+ }
38067
+ });
38068
+ }
38069
+ }, { deep: true });
38070
+ });
38071
+ store.$subscribe(({ events, type }, state) => {
38072
+ api2.notifyComponentUpdate();
38073
+ api2.sendInspectorState(INSPECTOR_ID);
38074
+ if (!isTimelineActive)
38075
+ return;
38076
+ const eventData = {
38077
+ time: now2(),
38078
+ title: formatMutationType(type),
38079
+ data: __spreadValues({
38080
+ store: formatDisplay(store.$id)
38081
+ }, formatEventData(events)),
38082
+ groupId: activeAction
38083
+ };
38084
+ activeAction = void 0;
38085
+ if (type === MutationType.patchFunction) {
38086
+ eventData.subtitle = "\u2935\uFE0F";
38087
+ } else if (type === MutationType.patchObject) {
38088
+ eventData.subtitle = "\u{1F9E9}";
38089
+ } else if (events && !Array.isArray(events)) {
38090
+ eventData.subtitle = events.type;
38091
+ }
38092
+ if (events) {
38093
+ eventData.data["rawEvent(s)"] = {
38094
+ _custom: {
38095
+ display: "DebuggerEvent",
38096
+ type: "object",
38097
+ tooltip: "raw DebuggerEvent[]",
38098
+ value: events
38099
+ }
38100
+ };
38101
+ }
38102
+ api2.addTimelineEvent({
38103
+ layerId: MUTATIONS_LAYER_ID,
38104
+ event: eventData
38105
+ });
38106
+ }, { detached: true, flush: "sync" });
38107
+ const hotUpdate = store._hotUpdate;
38108
+ store._hotUpdate = markRaw((newStore) => {
38109
+ hotUpdate(newStore);
38110
+ api2.addTimelineEvent({
38111
+ layerId: MUTATIONS_LAYER_ID,
38112
+ event: {
38113
+ time: now2(),
38114
+ title: "\u{1F525} " + store.$id,
38115
+ subtitle: "HMR update",
38116
+ data: {
38117
+ store: formatDisplay(store.$id),
38118
+ info: formatDisplay(`HMR update`)
38119
+ }
38120
+ }
38121
+ });
38122
+ api2.notifyComponentUpdate();
38123
+ api2.sendInspectorTree(INSPECTOR_ID);
38124
+ api2.sendInspectorState(INSPECTOR_ID);
38125
+ });
38126
+ const { $dispose } = store;
38127
+ store.$dispose = () => {
38128
+ $dispose();
38129
+ api2.notifyComponentUpdate();
38130
+ api2.sendInspectorTree(INSPECTOR_ID);
38131
+ api2.sendInspectorState(INSPECTOR_ID);
38132
+ api2.getSettings().logStoreChanges && toastMessage(`Disposed "${store.$id}" store \u{1F5D1}`);
38133
+ };
38134
+ api2.notifyComponentUpdate();
38135
+ api2.sendInspectorTree(INSPECTOR_ID);
38136
+ api2.sendInspectorState(INSPECTOR_ID);
38137
+ api2.getSettings().logStoreChanges && toastMessage(`"${store.$id}" store installed \u{1F195}`);
38138
+ });
38139
+ }
38140
+ let runningActionId = 0;
38141
+ let activeAction;
38142
+ function patchActionForGrouping(store, actionNames) {
38143
+ const actions = actionNames.reduce((storeActions, actionName) => {
38144
+ storeActions[actionName] = toRaw(store)[actionName];
38145
+ return storeActions;
38146
+ }, {});
38147
+ for (const actionName in actions) {
38148
+ store[actionName] = function() {
38149
+ const _actionId = runningActionId;
38150
+ const trackedStore = new Proxy(store, {
38151
+ get(...args) {
38152
+ activeAction = _actionId;
38153
+ return Reflect.get(...args);
38154
+ },
38155
+ set(...args) {
38156
+ activeAction = _actionId;
38157
+ return Reflect.set(...args);
38158
+ }
38159
+ });
38160
+ return actions[actionName].apply(trackedStore, arguments);
38161
+ };
38162
+ }
38163
+ }
38164
+ function devtoolsPlugin({ app, store, options }) {
38165
+ if (store.$id.startsWith("__hot:")) {
38166
+ return;
38167
+ }
38168
+ if (options.state) {
38169
+ store._isOptionsAPI = true;
38170
+ }
38171
+ if (typeof options.state === "function") {
38172
+ patchActionForGrouping(store, Object.keys(options.actions));
38173
+ const originalHotUpdate = store._hotUpdate;
38174
+ toRaw(store)._hotUpdate = function(newStore) {
38175
+ originalHotUpdate.apply(this, arguments);
38176
+ patchActionForGrouping(store, Object.keys(newStore._hmrPayload.actions));
38177
+ };
38178
+ }
38179
+ addStoreToDevtools(app, store);
38180
+ }
36972
38181
  function createPinia() {
36973
38182
  const scope = effectScope(true);
36974
38183
  const state = scope.run(() => ref({}));
@@ -36981,6 +38190,9 @@ function createPinia() {
36981
38190
  pinia._a = app;
36982
38191
  app.provide(piniaSymbol, pinia);
36983
38192
  app.config.globalProperties.$pinia = pinia;
38193
+ if (IS_CLIENT) {
38194
+ registerPiniaDevtools(app, pinia);
38195
+ }
36984
38196
  toBeInstalled.forEach((plugin) => _p.push(plugin));
36985
38197
  toBeInstalled = [];
36986
38198
  }
@@ -36999,8 +38211,28 @@ function createPinia() {
36999
38211
  _s: new Map(),
37000
38212
  state
37001
38213
  });
38214
+ if (IS_CLIENT && true && typeof Proxy !== "undefined") {
38215
+ pinia.use(devtoolsPlugin);
38216
+ }
37002
38217
  return pinia;
37003
38218
  }
38219
+ function patchObject(newState, oldState) {
38220
+ for (const key2 in oldState) {
38221
+ const subPatch = oldState[key2];
38222
+ if (!(key2 in newState)) {
38223
+ continue;
38224
+ }
38225
+ const targetValue = newState[key2];
38226
+ if (isPlainObject(targetValue) && isPlainObject(subPatch) && !isRef(subPatch) && !isReactive(subPatch)) {
38227
+ newState[key2] = patchObject(targetValue, subPatch);
38228
+ } else {
38229
+ {
38230
+ newState[key2] = subPatch;
38231
+ }
38232
+ }
38233
+ }
38234
+ return newState;
38235
+ }
37004
38236
  const noop = () => {
37005
38237
  };
37006
38238
  function addSubscription(subscriptions, callback, detached, onCleanup = noop) {
@@ -37036,7 +38268,7 @@ function mergeReactiveObjects(target, patchToApply) {
37036
38268
  }
37037
38269
  return target;
37038
38270
  }
37039
- const skipHydrateSymbol = Symbol();
38271
+ const skipHydrateSymbol = Symbol("pinia:skipHydration");
37040
38272
  function shouldHydrate(obj) {
37041
38273
  return !isPlainObject(obj) || !obj.hasOwnProperty(skipHydrateSymbol);
37042
38274
  }
@@ -37049,13 +38281,16 @@ function createOptionsStore(id, options, pinia, hot) {
37049
38281
  const initialState2 = pinia.state.value[id];
37050
38282
  let store;
37051
38283
  function setup() {
37052
- if (!initialState2 && true) {
38284
+ if (!initialState2 && !hot) {
37053
38285
  {
37054
38286
  pinia.state.value[id] = state ? state() : {};
37055
38287
  }
37056
38288
  }
37057
- const localState = toRefs(pinia.state.value[id]);
38289
+ const localState = hot ? toRefs(ref(state ? state() : {}).value) : toRefs(pinia.state.value[id]);
37058
38290
  return assign(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name2) => {
38291
+ if (name2 in localState) {
38292
+ console.warn(`[\u{1F34D}]: A getter cannot have the same name as another state property. Rename one of them. Found with "${name2}" in store "${id}".`);
38293
+ }
37059
38294
  computedGetters[name2] = markRaw(computed(() => {
37060
38295
  setActivePinia(pinia);
37061
38296
  const store2 = pinia._s.get(id);
@@ -37076,25 +38311,44 @@ function createOptionsStore(id, options, pinia, hot) {
37076
38311
  function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore) {
37077
38312
  let scope;
37078
38313
  const optionsForPlugin = assign({ actions: {} }, options);
38314
+ if (!pinia._e.active) {
38315
+ throw new Error("Pinia destroyed");
38316
+ }
37079
38317
  const $subscribeOptions = {
37080
38318
  deep: true
37081
38319
  };
38320
+ {
38321
+ $subscribeOptions.onTrigger = (event) => {
38322
+ if (isListening) {
38323
+ debuggerEvents = event;
38324
+ } else if (isListening == false && !store._hotUpdating) {
38325
+ if (Array.isArray(debuggerEvents)) {
38326
+ debuggerEvents.push(event);
38327
+ } else {
38328
+ console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug.");
38329
+ }
38330
+ }
38331
+ };
38332
+ }
37082
38333
  let isListening;
37083
38334
  let isSyncListening;
37084
38335
  let subscriptions = markRaw([]);
37085
38336
  let actionSubscriptions = markRaw([]);
37086
38337
  let debuggerEvents;
37087
38338
  const initialState2 = pinia.state.value[$id];
37088
- if (!isOptionsStore && !initialState2 && true) {
38339
+ if (!isOptionsStore && !initialState2 && !hot) {
37089
38340
  {
37090
38341
  pinia.state.value[$id] = {};
37091
38342
  }
37092
38343
  }
37093
- ref({});
38344
+ const hotState = ref({});
37094
38345
  let activeListener;
37095
38346
  function $patch(partialStateOrMutator) {
37096
38347
  let subscriptionMutation;
37097
38348
  isListening = isSyncListening = false;
38349
+ {
38350
+ debuggerEvents = [];
38351
+ }
37098
38352
  if (typeof partialStateOrMutator === "function") {
37099
38353
  partialStateOrMutator(pinia.state.value[$id]);
37100
38354
  subscriptionMutation = {
@@ -37120,7 +38374,9 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37120
38374
  isSyncListening = true;
37121
38375
  triggerSubscriptions(subscriptions, subscriptionMutation, pinia.state.value[$id]);
37122
38376
  }
37123
- const $reset = noop;
38377
+ const $reset = () => {
38378
+ throw new Error(`\u{1F34D}: Store "${$id}" is built using the setup syntax and does not implement $reset().`);
38379
+ };
37124
38380
  function $dispose() {
37125
38381
  scope.stop();
37126
38382
  subscriptions = [];
@@ -37166,6 +38422,12 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37166
38422
  return ret;
37167
38423
  };
37168
38424
  }
38425
+ const _hmrPayload = /* @__PURE__ */ markRaw({
38426
+ actions: {},
38427
+ getters: {},
38428
+ state: [],
38429
+ hotState
38430
+ });
37169
38431
  const partialStore = {
37170
38432
  _p: pinia,
37171
38433
  $id,
@@ -37187,7 +38449,10 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37187
38449
  },
37188
38450
  $dispose
37189
38451
  };
37190
- const store = reactive(assign({}, partialStore));
38452
+ const store = reactive(assign(IS_CLIENT ? {
38453
+ _customProperties: markRaw(new Set()),
38454
+ _hmrPayload
38455
+ } : {}, partialStore));
37191
38456
  pinia._s.set($id, store);
37192
38457
  const setupStore = pinia._e.run(() => {
37193
38458
  scope = effectScope();
@@ -37196,7 +38461,9 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37196
38461
  for (const key2 in setupStore) {
37197
38462
  const prop = setupStore[key2];
37198
38463
  if (isRef(prop) && !isComputed(prop) || isReactive(prop)) {
37199
- if (!isOptionsStore) {
38464
+ if (hot) {
38465
+ set(hotState.value, key2, toRef(setupStore, key2));
38466
+ } else if (!isOptionsStore) {
37200
38467
  if (initialState2 && shouldHydrate(prop)) {
37201
38468
  if (isRef(prop)) {
37202
38469
  prop.value = initialState2[key2];
@@ -37208,29 +38475,120 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37208
38475
  pinia.state.value[$id][key2] = prop;
37209
38476
  }
37210
38477
  }
38478
+ {
38479
+ _hmrPayload.state.push(key2);
38480
+ }
37211
38481
  } else if (typeof prop === "function") {
37212
- const actionValue = wrapAction(key2, prop);
38482
+ const actionValue = hot ? prop : wrapAction(key2, prop);
37213
38483
  {
37214
38484
  setupStore[key2] = actionValue;
37215
38485
  }
38486
+ {
38487
+ _hmrPayload.actions[key2] = prop;
38488
+ }
37216
38489
  optionsForPlugin.actions[key2] = prop;
37217
- } else
37218
- ;
38490
+ } else {
38491
+ if (isComputed(prop)) {
38492
+ _hmrPayload.getters[key2] = isOptionsStore ? options.getters[key2] : prop;
38493
+ if (IS_CLIENT) {
38494
+ const getters = setupStore._getters || (setupStore._getters = markRaw([]));
38495
+ getters.push(key2);
38496
+ }
38497
+ }
38498
+ }
37219
38499
  }
37220
38500
  {
37221
38501
  assign(store, setupStore);
37222
38502
  assign(toRaw(store), setupStore);
37223
38503
  }
37224
38504
  Object.defineProperty(store, "$state", {
37225
- get: () => pinia.state.value[$id],
38505
+ get: () => hot ? hotState.value : pinia.state.value[$id],
37226
38506
  set: (state) => {
38507
+ if (hot) {
38508
+ throw new Error("cannot set hotState");
38509
+ }
37227
38510
  $patch(($state) => {
37228
38511
  assign($state, state);
37229
38512
  });
37230
38513
  }
37231
38514
  });
38515
+ {
38516
+ store._hotUpdate = markRaw((newStore) => {
38517
+ store._hotUpdating = true;
38518
+ newStore._hmrPayload.state.forEach((stateKey) => {
38519
+ if (stateKey in store.$state) {
38520
+ const newStateTarget = newStore.$state[stateKey];
38521
+ const oldStateSource = store.$state[stateKey];
38522
+ if (typeof newStateTarget === "object" && isPlainObject(newStateTarget) && isPlainObject(oldStateSource)) {
38523
+ patchObject(newStateTarget, oldStateSource);
38524
+ } else {
38525
+ newStore.$state[stateKey] = oldStateSource;
38526
+ }
38527
+ }
38528
+ set(store, stateKey, toRef(newStore.$state, stateKey));
38529
+ });
38530
+ Object.keys(store.$state).forEach((stateKey) => {
38531
+ if (!(stateKey in newStore.$state)) {
38532
+ del(store, stateKey);
38533
+ }
38534
+ });
38535
+ isListening = false;
38536
+ isSyncListening = false;
38537
+ pinia.state.value[$id] = toRef(newStore._hmrPayload, "hotState");
38538
+ isSyncListening = true;
38539
+ nextTick().then(() => {
38540
+ isListening = true;
38541
+ });
38542
+ for (const actionName in newStore._hmrPayload.actions) {
38543
+ const action = newStore[actionName];
38544
+ set(store, actionName, wrapAction(actionName, action));
38545
+ }
38546
+ for (const getterName in newStore._hmrPayload.getters) {
38547
+ const getter = newStore._hmrPayload.getters[getterName];
38548
+ const getterValue = isOptionsStore ? computed(() => {
38549
+ setActivePinia(pinia);
38550
+ return getter.call(store, store);
38551
+ }) : getter;
38552
+ set(store, getterName, getterValue);
38553
+ }
38554
+ Object.keys(store._hmrPayload.getters).forEach((key2) => {
38555
+ if (!(key2 in newStore._hmrPayload.getters)) {
38556
+ del(store, key2);
38557
+ }
38558
+ });
38559
+ Object.keys(store._hmrPayload.actions).forEach((key2) => {
38560
+ if (!(key2 in newStore._hmrPayload.actions)) {
38561
+ del(store, key2);
38562
+ }
38563
+ });
38564
+ store._hmrPayload = newStore._hmrPayload;
38565
+ store._getters = newStore._getters;
38566
+ store._hotUpdating = false;
38567
+ });
38568
+ const nonEnumerable = {
38569
+ writable: true,
38570
+ configurable: true,
38571
+ enumerable: false
38572
+ };
38573
+ if (IS_CLIENT) {
38574
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p2) => {
38575
+ Object.defineProperty(store, p2, __spreadValues({
38576
+ value: store[p2]
38577
+ }, nonEnumerable));
38578
+ });
38579
+ }
38580
+ }
37232
38581
  pinia._p.forEach((extender) => {
37233
- {
38582
+ if (IS_CLIENT) {
38583
+ const extensions = scope.run(() => extender({
38584
+ store,
38585
+ app: pinia._a,
38586
+ pinia,
38587
+ options: optionsForPlugin
38588
+ }));
38589
+ Object.keys(extensions || {}).forEach((key2) => store._customProperties.add(key2));
38590
+ assign(store, extensions);
38591
+ } else {
37234
38592
  assign(store, scope.run(() => extender({
37235
38593
  store,
37236
38594
  app: pinia._a,
@@ -37239,6 +38597,11 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
37239
38597
  })));
37240
38598
  }
37241
38599
  });
38600
+ if (store.$state && typeof store.$state === "object" && typeof store.$state.constructor === "function" && !store.$state.constructor.toString().includes("[native code]")) {
38601
+ console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
38602
+ state: () => new MyClass()
38603
+ Found in store "${store.$id}".`);
38604
+ }
37242
38605
  if (initialState2 && isOptionsStore && options.hydrate) {
37243
38606
  options.hydrate(store.$state, initialState2);
37244
38607
  }
@@ -37262,6 +38625,12 @@ function defineStore(idOrOptions, setup, setupOptions) {
37262
38625
  pinia = pinia || currentInstance2 && inject(piniaSymbol);
37263
38626
  if (pinia)
37264
38627
  setActivePinia(pinia);
38628
+ if (!activePinia) {
38629
+ throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
38630
+ const pinia = createPinia()
38631
+ app.use(pinia)
38632
+ This will fail in production.`);
38633
+ }
37265
38634
  pinia = activePinia;
37266
38635
  if (!pinia._s.has(id)) {
37267
38636
  if (isSetupStore) {
@@ -37269,8 +38638,23 @@ function defineStore(idOrOptions, setup, setupOptions) {
37269
38638
  } else {
37270
38639
  createOptionsStore(id, options, pinia);
37271
38640
  }
38641
+ {
38642
+ useStore._pinia = pinia;
38643
+ }
37272
38644
  }
37273
38645
  const store = pinia._s.get(id);
38646
+ if (hot) {
38647
+ const hotId = "__hot:" + id;
38648
+ const newStore = isSetupStore ? createSetupStore(hotId, setup, options, pinia, true) : createOptionsStore(hotId, assign({}, options), pinia, true);
38649
+ hot._hotUpdate(newStore);
38650
+ delete pinia.state.value[hotId];
38651
+ pinia._s.delete(hotId);
38652
+ }
38653
+ if (IS_CLIENT && currentInstance2 && currentInstance2.proxy && !hot) {
38654
+ const vm = currentInstance2.proxy;
38655
+ const cache = "_pStores" in vm ? vm._pStores : vm._pStores = {};
38656
+ cache[id] = store;
38657
+ }
37274
38658
  return store;
37275
38659
  }
37276
38660
  useStore.$id = id;
@@ -38818,19 +40202,19 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
38818
40202
  const cssModules$f = {};
38819
40203
  cssModules$f["$style"] = style0$f;
38820
40204
  var SkeletonLoader = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__cssModules", cssModules$f]]);
38821
- const wrapperClass$1 = "_wrapperClass_1fmyn_1";
38822
- const paymentMethodContainer = "_paymentMethodContainer_1fmyn_1";
38823
- const imageWrapper = "_imageWrapper_1fmyn_6";
38824
- const imageContainer = "_imageContainer_1fmyn_10";
38825
- const roundStylePaymentMethod = "_roundStylePaymentMethod_1fmyn_19";
38826
- const label$1 = "_label_1fmyn_23";
38827
- const mainLabel = "_mainLabel_1fmyn_30";
38828
- const subLabel = "_subLabel_1fmyn_37";
38829
- const invalid = "_invalid_1fmyn_46";
38830
- const rightAlign = "_rightAlign_1fmyn_52";
38831
- const paymentMethodDisabled = "_paymentMethodDisabled_1fmyn_57";
38832
- const img = "_img_1fmyn_63";
38833
- const branchNumber = "_branchNumber_1fmyn_67";
40205
+ const wrapperClass$1 = "_wrapperClass_wy5sc_1";
40206
+ const paymentMethodContainer = "_paymentMethodContainer_wy5sc_1";
40207
+ const imageWrapper = "_imageWrapper_wy5sc_6";
40208
+ const imageContainer = "_imageContainer_wy5sc_10";
40209
+ const roundStylePaymentMethod = "_roundStylePaymentMethod_wy5sc_19";
40210
+ const label$1 = "_label_wy5sc_23";
40211
+ const mainLabel = "_mainLabel_wy5sc_30";
40212
+ const subLabel = "_subLabel_wy5sc_37";
40213
+ const invalid = "_invalid_wy5sc_46";
40214
+ const rightAlign = "_rightAlign_wy5sc_58";
40215
+ const paymentMethodDisabled = "_paymentMethodDisabled_wy5sc_63";
40216
+ const img = "_img_wy5sc_68";
40217
+ const branchNumber = "_branchNumber_wy5sc_72";
38834
40218
  var style0$e = {
38835
40219
  wrapperClass: wrapperClass$1,
38836
40220
  paymentMethodContainer,
@@ -40005,23 +41389,23 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
40005
41389
  const cssModules$8 = {};
40006
41390
  cssModules$8["$style"] = style0$8;
40007
41391
  var AutoTopupMethod = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__cssModules", cssModules$8]]);
40008
- const container = "_container_1agnw_1";
40009
- const mainContents = "_mainContents_1agnw_10";
40010
- const section = "_section_1agnw_16";
40011
- const main = "_main_1agnw_10";
40012
- const icon$5 = "_icon_1agnw_24";
40013
- const title$5 = "_title_1agnw_28";
40014
- const description$5 = "_description_1agnw_35";
40015
- const config = "_config_1agnw_42";
40016
- const item = "_item_1agnw_47";
40017
- const label = "_label_1agnw_57";
40018
- const contents$5 = "_contents_1agnw_61";
40019
- const inner$5 = "_inner_1agnw_61";
40020
- const price = "_price_1agnw_64";
40021
- const amount = "_amount_1agnw_69";
40022
- const unit$1 = "_unit_1agnw_74";
40023
- const notice = "_notice_1agnw_79";
40024
- const updateMessage = "_updateMessage_1agnw_94";
41392
+ const container = "_container_1ehx9_1";
41393
+ const mainContents = "_mainContents_1ehx9_7";
41394
+ const section = "_section_1ehx9_13";
41395
+ const main = "_main_1ehx9_7";
41396
+ const icon$5 = "_icon_1ehx9_21";
41397
+ const title$5 = "_title_1ehx9_25";
41398
+ const description$5 = "_description_1ehx9_32";
41399
+ const config = "_config_1ehx9_39";
41400
+ const item = "_item_1ehx9_44";
41401
+ const label = "_label_1ehx9_54";
41402
+ const contents$5 = "_contents_1ehx9_58";
41403
+ const inner$5 = "_inner_1ehx9_58";
41404
+ const price = "_price_1ehx9_61";
41405
+ const amount = "_amount_1ehx9_66";
41406
+ const unit$1 = "_unit_1ehx9_71";
41407
+ const notice = "_notice_1ehx9_76";
41408
+ const updateMessage = "_updateMessage_1ehx9_91";
40025
41409
  var style0$7 = {
40026
41410
  container,
40027
41411
  mainContents,