@pisell/private-materials 6.3.33 → 6.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -8
  11. package/es/components/index.d.ts +1 -2
  12. package/es/components/index.js +1 -2
  13. package/es/components/walletList/index.d.ts +0 -25
  14. package/es/components/walletList/index.js +98 -66
  15. package/es/components/walletList/serve.d.ts +4 -0
  16. package/es/components/walletList/serve.js +46 -13
  17. package/es/components/walletList/types/index.d.ts +12 -12
  18. package/es/components/walletList/types/index.js +2 -2
  19. package/es/index.d.ts +2 -1
  20. package/es/index.js +2 -1
  21. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  22. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  23. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  24. package/es/plus/productSelect/utils.js +0 -1
  25. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  26. package/es/plus/walletEditor/WalletEditor.js +316 -0
  27. package/es/plus/walletEditor/WalletEditor.less +129 -0
  28. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  29. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  30. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  31. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  32. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  33. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  34. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  35. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  36. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  37. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  38. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  39. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  40. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  41. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  42. package/es/plus/walletEditor/index.d.ts +3 -0
  43. package/es/plus/walletEditor/index.js +3 -0
  44. package/es/plus/walletEditor/locales.d.ts +126 -0
  45. package/es/plus/walletEditor/locales.js +143 -0
  46. package/es/plus/walletEditor/types.d.ts +52 -0
  47. package/es/plus/walletEditor/types.js +1 -0
  48. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  49. package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
  50. package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
  51. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  52. package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
  53. package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
  54. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  55. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  56. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  57. package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
  58. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  59. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  60. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  61. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  62. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  63. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  64. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  65. package/es/plus/walletPassGallery/index.d.ts +6 -0
  66. package/es/plus/walletPassGallery/index.js +602 -0
  67. package/es/plus/walletPassGallery/index.less +115 -0
  68. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  69. package/es/plus/walletPassGallery/locales.js +279 -0
  70. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  71. package/es/plus/walletPassGallery/serve.js +289 -0
  72. package/es/pro/Login2.0/Login2.js +4 -0
  73. package/es/pro/Login2.0/locales.js +93 -93
  74. package/lib/components/index.d.ts +1 -2
  75. package/lib/components/index.js +0 -3
  76. package/lib/components/walletList/index.d.ts +0 -25
  77. package/lib/components/walletList/index.js +90 -51
  78. package/lib/components/walletList/serve.d.ts +4 -0
  79. package/lib/components/walletList/serve.js +12 -0
  80. package/lib/components/walletList/types/index.d.ts +12 -12
  81. package/lib/index.d.ts +2 -1
  82. package/lib/index.js +6 -3
  83. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  84. package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
  85. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  86. package/lib/plus/productSelect/utils.js +0 -1
  87. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  88. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  89. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  90. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  91. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  92. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  93. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  94. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  95. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  96. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  97. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  98. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  99. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  100. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  101. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  102. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  103. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  104. package/lib/plus/walletEditor/index.d.ts +3 -0
  105. package/lib/plus/walletEditor/index.js +42 -0
  106. package/lib/plus/walletEditor/locales.d.ts +126 -0
  107. package/lib/plus/walletEditor/locales.js +167 -0
  108. package/lib/plus/walletEditor/types.d.ts +52 -0
  109. package/lib/plus/walletEditor/types.js +17 -0
  110. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  111. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  112. package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
  113. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  114. package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
  115. package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
  116. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  117. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  118. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  119. package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
  120. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  121. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  122. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  123. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  124. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  125. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  126. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  127. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  128. package/lib/plus/walletPassGallery/index.js +498 -0
  129. package/lib/plus/walletPassGallery/index.less +115 -0
  130. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  131. package/lib/plus/walletPassGallery/locales.js +299 -0
  132. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  133. package/lib/plus/walletPassGallery/serve.js +98 -0
  134. package/lib/pro/Login2.0/Login2.js +3 -0
  135. package/lib/pro/Login2.0/locales.js +93 -93
  136. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  137. package/lowcode/wallet-editor/meta.ts +57 -0
  138. package/lowcode/wallet-editor/snippets.ts +13 -0
  139. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  140. package/package.json +4 -4
  141. package/lowcode/wallet/meta.ts +0 -79
@@ -100,38 +100,38 @@ export default {
100
100
  'pisell-phone-validation-required': 'Please enter your phone',
101
101
  'pisell-phone-validation-invalid': 'Please enter a valid phone',
102
102
  'pisell-phone-validation-invalid-format': 'Please enter a valid phone',
103
- 'pisell-phone-validation-china': 'Please enter a valid Chinese phone (11 digits starting with 1)',
104
- 'pisell-phone-validation-hongkong': 'Please enter a valid Hong Kong phone (8 digits)',
105
- 'pisell-phone-validation-macau': 'Please enter a valid Macau phone (8 digits)',
106
- 'pisell-phone-validation-taiwan': 'Please enter a valid Taiwan phone (9 digits starting with 9)',
107
- 'pisell-phone-validation-us-canada': 'Please enter a valid US/Canada phone (10 digits)',
108
- 'pisell-phone-validation-uk': 'Please enter a valid UK phone (10 digits starting with 7)',
103
+ 'pisell-phone-validation-china': 'Please enter a valid Chinese phone',
104
+ 'pisell-phone-validation-hongkong': 'Please enter a valid Hong Kong phone',
105
+ 'pisell-phone-validation-macau': 'Please enter a valid Macau phone',
106
+ 'pisell-phone-validation-taiwan': 'Please enter a valid Taiwan phone',
107
+ 'pisell-phone-validation-us-canada': 'Please enter a valid US/Canada phone',
108
+ 'pisell-phone-validation-uk': 'Please enter a valid UK phone',
109
109
  'pisell-phone-validation-australia': 'Please enter a valid Australian phone',
110
- 'pisell-phone-validation-japan': 'Please enter a valid Japanese phone (10 digits)',
111
- 'pisell-phone-validation-korea': 'Please enter a valid Korean phone (9-10 digits)',
112
- 'pisell-phone-validation-singapore': 'Please enter a valid Singapore phone (8 digits)',
113
- 'pisell-phone-validation-malaysia': 'Please enter a valid Malaysian phone (9-10 digits)',
114
- 'pisell-phone-validation-thailand': 'Please enter a valid Thai phone (9 digits)',
115
- 'pisell-phone-validation-vietnam': 'Please enter a valid Vietnamese phone (9 digits)',
116
- 'pisell-phone-validation-philippines': 'Please enter a valid Philippine phone (10 digits starting with 9)',
117
- 'pisell-phone-validation-indonesia': 'Please enter a valid Indonesian phone (9-12 digits starting with 8)',
118
- 'pisell-phone-validation-india': 'Please enter a valid Indian phone (10 digits)',
119
- 'pisell-phone-validation-invalid-china': 'Please enter a valid Chinese phone (11 digits starting with 1)',
120
- 'pisell-phone-validation-invalid-hongkong': 'Please enter a valid Hong Kong phone (8 digits)',
121
- 'pisell-phone-validation-invalid-macau': 'Please enter a valid Macau phone (8 digits)',
122
- 'pisell-phone-validation-invalid-taiwan': 'Please enter a valid Taiwan phone (9-10 digits starting with 09)',
123
- 'pisell-phone-validation-invalid-us-canada': 'Please enter a valid US/Canada phone (10 digits)',
124
- 'pisell-phone-validation-invalid-uk': 'Please enter a valid UK phone (10-11 digits)',
125
- 'pisell-phone-validation-invalid-australia': 'Please enter a valid Australian phone (9 digits starting with 4)',
126
- 'pisell-phone-validation-invalid-japan': 'Please enter a valid Japanese phone (10-11 digits)',
127
- 'pisell-phone-validation-invalid-korea': 'Please enter a valid Korean phone (10-11 digits)',
128
- 'pisell-phone-validation-invalid-singapore': 'Please enter a valid Singapore phone (8 digits)',
129
- 'pisell-phone-validation-invalid-malaysia': 'Please enter a valid Malaysian phone (9-10 digits)',
130
- 'pisell-phone-validation-invalid-thailand': 'Please enter a valid Thai phone (9 digits starting with 0)',
131
- 'pisell-phone-validation-invalid-vietnam': 'Please enter a valid Vietnamese phone (9-10 digits)',
132
- 'pisell-phone-validation-invalid-philippines': 'Please enter a valid Philippine phone (10 digits starting with 09)',
133
- 'pisell-phone-validation-invalid-indonesia': 'Please enter a valid Indonesian phone (10-13 digits)',
134
- 'pisell-phone-validation-invalid-india': 'Please enter a valid Indian phone (10 digits)',
110
+ 'pisell-phone-validation-japan': 'Please enter a valid Japanese phone',
111
+ 'pisell-phone-validation-korea': 'Please enter a valid Korean phone',
112
+ 'pisell-phone-validation-singapore': 'Please enter a valid Singapore phone',
113
+ 'pisell-phone-validation-malaysia': 'Please enter a valid Malaysian phone',
114
+ 'pisell-phone-validation-thailand': 'Please enter a valid Thai phone',
115
+ 'pisell-phone-validation-vietnam': 'Please enter a valid Vietnamese phone',
116
+ 'pisell-phone-validation-philippines': 'Please enter a valid Philippine phone',
117
+ 'pisell-phone-validation-indonesia': 'Please enter a valid Indonesian phone',
118
+ 'pisell-phone-validation-india': 'Please enter a valid Indian phone',
119
+ 'pisell-phone-validation-invalid-china': 'Please enter a valid Chinese phone',
120
+ 'pisell-phone-validation-invalid-hongkong': 'Please enter a valid Hong Kong phone',
121
+ 'pisell-phone-validation-invalid-macau': 'Please enter a valid Macau phone',
122
+ 'pisell-phone-validation-invalid-taiwan': 'Please enter a valid Taiwan phone',
123
+ 'pisell-phone-validation-invalid-us-canada': 'Please enter a valid US/Canada phone',
124
+ 'pisell-phone-validation-invalid-uk': 'Please enter a valid UK phone',
125
+ 'pisell-phone-validation-invalid-australia': 'Please enter a valid Australian phone',
126
+ 'pisell-phone-validation-invalid-japan': 'Please enter a valid Japanese phone',
127
+ 'pisell-phone-validation-invalid-korea': 'Please enter a valid Korean phone',
128
+ 'pisell-phone-validation-invalid-singapore': 'Please enter a valid Singapore phone',
129
+ 'pisell-phone-validation-invalid-malaysia': 'Please enter a valid Malaysian phone',
130
+ 'pisell-phone-validation-invalid-thailand': 'Please enter a valid Thai phone',
131
+ 'pisell-phone-validation-invalid-vietnam': 'Please enter a valid Vietnamese phone',
132
+ 'pisell-phone-validation-invalid-philippines': 'Please enter a valid Philippine phone',
133
+ 'pisell-phone-validation-invalid-indonesia': 'Please enter a valid Indonesian phone',
134
+ 'pisell-phone-validation-invalid-india': 'Please enter a valid Indian phone',
135
135
  // OAuth buttons
136
136
  'pisell-register2-continue-with-google': 'Continue with Google',
137
137
  'pisell-register2-continue-with-facebook': 'Continue with Facebook',
@@ -306,38 +306,38 @@ export default {
306
306
  'pisell-phone-validation-required': '请输入手机号',
307
307
  'pisell-phone-validation-invalid': '请输入正确的手机号',
308
308
  'pisell-phone-validation-invalid-format': '请输入正确的手机号',
309
- 'pisell-phone-validation-china': '请输入正确的中国大陆手机号(11位数字,以1开头)',
310
- 'pisell-phone-validation-hongkong': '请输入正确的香港手机号(8位数字)',
311
- 'pisell-phone-validation-macau': '请输入正确的澳门手机号(8位数字)',
312
- 'pisell-phone-validation-taiwan': '请输入正确的台湾手机号(9位数字,以9开头)',
313
- 'pisell-phone-validation-us-canada': '请输入正确的美国/加拿大手机号(10位数字)',
314
- 'pisell-phone-validation-uk': '请输入正确的英国手机号(10位数字,以7开头)',
309
+ 'pisell-phone-validation-china': '请输入正确的中国大陆手机号',
310
+ 'pisell-phone-validation-hongkong': '请输入正确的香港手机号',
311
+ 'pisell-phone-validation-macau': '请输入正确的澳门手机号',
312
+ 'pisell-phone-validation-taiwan': '请输入正确的台湾手机号',
313
+ 'pisell-phone-validation-us-canada': '请输入正确的美国/加拿大手机号',
314
+ 'pisell-phone-validation-uk': '请输入正确的英国手机号',
315
315
  'pisell-phone-validation-australia': '请输入正确的澳大利亚手机号',
316
- 'pisell-phone-validation-japan': '请输入正确的日本手机号(10位数字)',
317
- 'pisell-phone-validation-korea': '请输入正确的韩国手机号(9-10位数字)',
318
- 'pisell-phone-validation-singapore': '请输入正确的新加坡手机号(8位数字)',
319
- 'pisell-phone-validation-malaysia': '请输入正确的马来西亚手机号(9-10位数字)',
320
- 'pisell-phone-validation-thailand': '请输入正确的泰国手机号(9位数字)',
321
- 'pisell-phone-validation-vietnam': '请输入正确的越南手机号(9位数字)',
322
- 'pisell-phone-validation-philippines': '请输入正确的菲律宾手机号(10位数字,以9开头)',
323
- 'pisell-phone-validation-indonesia': '请输入正确的印尼手机号(9-12位数字,以8开头)',
324
- 'pisell-phone-validation-india': '请输入正确的印度手机号(10位数字)',
325
- 'pisell-phone-validation-invalid-china': '请输入正确的中国大陆手机号(11位数字,以1开头)',
326
- 'pisell-phone-validation-invalid-hongkong': '请输入正确的香港手机号(8位数字)',
327
- 'pisell-phone-validation-invalid-macau': '请输入正确的澳门手机号(8位数字)',
328
- 'pisell-phone-validation-invalid-taiwan': '请输入正确的台湾手机号(9-10位数字,以09开头)',
329
- 'pisell-phone-validation-invalid-us-canada': '请输入正确的美国/加拿大手机号(10位数字)',
330
- 'pisell-phone-validation-invalid-uk': '请输入正确的英国手机号(10-11位数字)',
331
- 'pisell-phone-validation-invalid-australia': '请输入正确的澳大利亚手机号(9位数字,以4开头)',
332
- 'pisell-phone-validation-invalid-japan': '请输入正确的日本手机号(10-11位数字)',
333
- 'pisell-phone-validation-invalid-korea': '请输入正确的韩国手机号(10-11位数字)',
334
- 'pisell-phone-validation-invalid-singapore': '请输入正确的新加坡手机号(8位数字)',
335
- 'pisell-phone-validation-invalid-malaysia': '请输入正确的马来西亚手机号(9-10位数字)',
336
- 'pisell-phone-validation-invalid-thailand': '请输入正确的泰国手机号(9位数字,以0开头)',
337
- 'pisell-phone-validation-invalid-vietnam': '请输入正确的越南手机号(9-10位数字)',
338
- 'pisell-phone-validation-invalid-philippines': '请输入正确的菲律宾手机号(10位数字,以09开头)',
339
- 'pisell-phone-validation-invalid-indonesia': '请输入正确的印尼手机号(10-13位数字)',
340
- 'pisell-phone-validation-invalid-india': '请输入正确的印度手机号(10位数字)',
316
+ 'pisell-phone-validation-japan': '请输入正确的日本手机号',
317
+ 'pisell-phone-validation-korea': '请输入正确的韩国手机号',
318
+ 'pisell-phone-validation-singapore': '请输入正确的新加坡手机号',
319
+ 'pisell-phone-validation-malaysia': '请输入正确的马来西亚手机号',
320
+ 'pisell-phone-validation-thailand': '请输入正确的泰国手机号',
321
+ 'pisell-phone-validation-vietnam': '请输入正确的越南手机号',
322
+ 'pisell-phone-validation-philippines': '请输入正确的菲律宾手机号',
323
+ 'pisell-phone-validation-indonesia': '请输入正确的印尼手机号',
324
+ 'pisell-phone-validation-india': '请输入正确的印度手机号',
325
+ 'pisell-phone-validation-invalid-china': '请输入正确的中国大陆手机号',
326
+ 'pisell-phone-validation-invalid-hongkong': '请输入正确的香港手机号',
327
+ 'pisell-phone-validation-invalid-macau': '请输入正确的澳门手机号',
328
+ 'pisell-phone-validation-invalid-taiwan': '请输入正确的台湾手机号',
329
+ 'pisell-phone-validation-invalid-us-canada': '请输入正确的美国/加拿大手机号',
330
+ 'pisell-phone-validation-invalid-uk': '请输入正确的英国手机号',
331
+ 'pisell-phone-validation-invalid-australia': '请输入正确的澳大利亚手机号',
332
+ 'pisell-phone-validation-invalid-japan': '请输入正确的日本手机号',
333
+ 'pisell-phone-validation-invalid-korea': '请输入正确的韩国手机号',
334
+ 'pisell-phone-validation-invalid-singapore': '请输入正确的新加坡手机号',
335
+ 'pisell-phone-validation-invalid-malaysia': '请输入正确的马来西亚手机号',
336
+ 'pisell-phone-validation-invalid-thailand': '请输入正确的泰国手机号',
337
+ 'pisell-phone-validation-invalid-vietnam': '请输入正确的越南手机号',
338
+ 'pisell-phone-validation-invalid-philippines': '请输入正确的菲律宾手机号',
339
+ 'pisell-phone-validation-invalid-indonesia': '请输入正确的印尼手机号',
340
+ 'pisell-phone-validation-invalid-india': '请输入正确的印度手机号',
341
341
  // OAuth buttons
342
342
  'pisell-register2-continue-with-google': '使用Google继续',
343
343
  'pisell-register2-continue-with-facebook': '使用Facebook继续',
@@ -552,38 +552,38 @@ export default {
552
552
  'pisell-phone-validation-required': '請輸入手機號碼',
553
553
  'pisell-phone-validation-invalid': '請輸入正確的手機號碼',
554
554
  'pisell-phone-validation-invalid-format': '請輸入正確的手機號碼',
555
- 'pisell-phone-validation-china': '請輸入正確的中國大陸手機號碼(11位數字,以1開頭)',
556
- 'pisell-phone-validation-hongkong': '請輸入正確的香港手機號碼(8位數字)',
557
- 'pisell-phone-validation-macau': '請輸入正確的澳門手機號碼(8位數字)',
558
- 'pisell-phone-validation-taiwan': '請輸入正確的台灣手機號碼(9位數字,以9開頭)',
559
- 'pisell-phone-validation-us-canada': '請輸入正確的美國/加拿大手機號碼(10位數字)',
560
- 'pisell-phone-validation-uk': '請輸入正確的英國手機號碼(10位數字,以7開頭)',
555
+ 'pisell-phone-validation-china': '請輸入正確的中國大陸手機號碼',
556
+ 'pisell-phone-validation-hongkong': '請輸入正確的香港手機號碼',
557
+ 'pisell-phone-validation-macau': '請輸入正確的澳門手機號碼',
558
+ 'pisell-phone-validation-taiwan': '請輸入正確的台灣手機號碼',
559
+ 'pisell-phone-validation-us-canada': '請輸入正確的美國/加拿大手機號碼',
560
+ 'pisell-phone-validation-uk': '請輸入正確的英國手機號碼',
561
561
  'pisell-phone-validation-australia': '請輸入正確的澳洲手機號碼',
562
- 'pisell-phone-validation-japan': '請輸入正確的日本手機號碼(10位數字)',
563
- 'pisell-phone-validation-korea': '請輸入正確的韓國手機號碼(9-10位數字)',
564
- 'pisell-phone-validation-singapore': '請輸入正確的新加坡手機號碼(8位數字)',
565
- 'pisell-phone-validation-malaysia': '請輸入正確的馬來西亞手機號碼(9-10位數字)',
566
- 'pisell-phone-validation-thailand': '請輸入正確的泰國手機號碼(9位數字)',
567
- 'pisell-phone-validation-vietnam': '請輸入正確的越南手機號碼(9位數字)',
568
- 'pisell-phone-validation-philippines': '請輸入正確的菲律賓手機號碼(10位數字,以9開頭)',
569
- 'pisell-phone-validation-indonesia': '請輸入正確的印尼手機號碼(9-12位數字,以8開頭)',
570
- 'pisell-phone-validation-india': '請輸入正確的印度手機號碼(10位數字)',
571
- 'pisell-phone-validation-invalid-china': '請輸入正確的中國大陸手機號碼(11位數字,以1開頭)',
572
- 'pisell-phone-validation-invalid-hongkong': '請輸入正確的香港手機號碼(8位數字)',
573
- 'pisell-phone-validation-invalid-macau': '請輸入正確的澳門手機號碼(8位數字)',
574
- 'pisell-phone-validation-invalid-taiwan': '請輸入正確的台灣手機號碼(9-10位數字,以09開頭)',
575
- 'pisell-phone-validation-invalid-us-canada': '請輸入正確的美國/加拿大手機號碼(10位數字)',
576
- 'pisell-phone-validation-invalid-uk': '請輸入正確的英國手機號碼(10-11位數字)',
577
- 'pisell-phone-validation-invalid-australia': '請輸入正確的澳洲手機號碼(9位數字,以4開頭)',
578
- 'pisell-phone-validation-invalid-japan': '請輸入正確的日本手機號碼(10-11位數字)',
579
- 'pisell-phone-validation-invalid-korea': '請輸入正確的韓國手機號碼(10-11位數字)',
580
- 'pisell-phone-validation-invalid-singapore': '請輸入正確的新加坡手機號碼(8位數字)',
581
- 'pisell-phone-validation-invalid-malaysia': '請輸入正確的馬來西亞手機號碼(9-10位數字)',
582
- 'pisell-phone-validation-invalid-thailand': '請輸入正確的泰國手機號碼(9位數字,以0開頭)',
583
- 'pisell-phone-validation-invalid-vietnam': '請輸入正確的越南手機號碼(9-10位數字)',
584
- 'pisell-phone-validation-invalid-philippines': '請輸入正確的菲律賓手機號碼(10位數字,以09開頭)',
585
- 'pisell-phone-validation-invalid-indonesia': '請輸入正確的印尼手機號碼(10-13位數字)',
586
- 'pisell-phone-validation-invalid-india': '請輸入正確的印度手機號碼(10位數字)',
562
+ 'pisell-phone-validation-japan': '請輸入正確的日本手機號碼',
563
+ 'pisell-phone-validation-korea': '請輸入正確的韓國手機號碼',
564
+ 'pisell-phone-validation-singapore': '請輸入正確的新加坡手機號碼',
565
+ 'pisell-phone-validation-malaysia': '請輸入正確的馬來西亞手機號碼',
566
+ 'pisell-phone-validation-thailand': '請輸入正確的泰國手機號碼',
567
+ 'pisell-phone-validation-vietnam': '請輸入正確的越南手機號碼',
568
+ 'pisell-phone-validation-philippines': '請輸入正確的菲律賓手機號碼',
569
+ 'pisell-phone-validation-indonesia': '請輸入正確的印尼手機號碼',
570
+ 'pisell-phone-validation-india': '請輸入正確的印度手機號碼',
571
+ 'pisell-phone-validation-invalid-china': '請輸入正確的中國大陸手機號碼',
572
+ 'pisell-phone-validation-invalid-hongkong': '請輸入正確的香港手機號碼',
573
+ 'pisell-phone-validation-invalid-macau': '請輸入正確的澳門手機號碼',
574
+ 'pisell-phone-validation-invalid-taiwan': '請輸入正確的台灣手機號碼',
575
+ 'pisell-phone-validation-invalid-us-canada': '請輸入正確的美國/加拿大手機號碼',
576
+ 'pisell-phone-validation-invalid-uk': '請輸入正確的英國手機號碼',
577
+ 'pisell-phone-validation-invalid-australia': '請輸入正確的澳洲手機號碼',
578
+ 'pisell-phone-validation-invalid-japan': '請輸入正確的日本手機號碼',
579
+ 'pisell-phone-validation-invalid-korea': '請輸入正確的韓國手機號碼',
580
+ 'pisell-phone-validation-invalid-singapore': '請輸入正確的新加坡手機號碼',
581
+ 'pisell-phone-validation-invalid-malaysia': '請輸入正確的馬來西亞手機號碼',
582
+ 'pisell-phone-validation-invalid-thailand': '請輸入正確的泰國手機號碼',
583
+ 'pisell-phone-validation-invalid-vietnam': '請輸入正確的越南手機號碼',
584
+ 'pisell-phone-validation-invalid-philippines': '請輸入正確的菲律賓手機號碼',
585
+ 'pisell-phone-validation-invalid-indonesia': '請輸入正確的印尼手機號碼',
586
+ 'pisell-phone-validation-invalid-india': '請輸入正確的印度手機號碼',
587
587
  // Verification success
588
588
  'pisell-verification-success-title': '驗證成功',
589
589
  // Step-by-step login
@@ -9,7 +9,6 @@ import ProductExtension from './productExtension';
9
9
  import RuleSetting from './ruleSetting';
10
10
  import TaxSelect from './taxSelect';
11
11
  import ToCPay from './pay/toC';
12
- import Wallet from './wallet';
13
12
  import WalletList from './walletList';
14
13
  import WorkspaceListDetail from './workSpaceListDetail/';
15
14
  import WorkspaceList from './workSpaceList';
@@ -19,4 +18,4 @@ import EditBookingModal from './booking/editBookingModal';
19
18
  import StepController from './stepController';
20
19
  import PinModal from './pinModal';
21
20
  import PinVerifyModal from './pinVerifyModal';
22
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, };
21
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, EditBookingModal, StepController, PinModal, PinVerifyModal, };
@@ -46,7 +46,6 @@ __export(components_exports, {
46
46
  SubTotal: () => import_subTotal.default,
47
47
  TaxSelect: () => import_taxSelect.default,
48
48
  ToCPay: () => import_toC.default,
49
- Wallet: () => import_wallet.default,
50
49
  WalletList: () => import_walletList.default,
51
50
  WorkspaceList: () => import_workSpaceList.default,
52
51
  WorkspaceListDetail: () => import_workSpaceListDetail.default
@@ -63,7 +62,6 @@ var import_productExtension = __toESM(require("./productExtension"));
63
62
  var import_ruleSetting = __toESM(require("./ruleSetting"));
64
63
  var import_taxSelect = __toESM(require("./taxSelect"));
65
64
  var import_toC = __toESM(require("./pay/toC"));
66
- var import_wallet = __toESM(require("./wallet"));
67
65
  var import_walletList = __toESM(require("./walletList"));
68
66
  var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
69
67
  var import_workSpaceList = __toESM(require("./workSpaceList"));
@@ -92,7 +90,6 @@ var import_pinVerifyModal = __toESM(require("./pinVerifyModal"));
92
90
  SubTotal,
93
91
  TaxSelect,
94
92
  ToCPay,
95
- Wallet,
96
93
  WalletList,
97
94
  WorkspaceList,
98
95
  WorkspaceListDetail
@@ -1,28 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare module 'react' {
4
- interface HTMLAttributes<T> {
5
- role?: string;
6
- }
7
- }
8
- declare global {
9
- namespace JSX {
10
- interface IntrinsicElements {
11
- div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
12
- children?: React.ReactNode;
13
- onClick?: React.MouseEventHandler<HTMLDivElement>;
14
- onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
15
- onMouseUp?: React.MouseEventHandler<HTMLDivElement>;
16
- onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
17
- onTouchEnd?: React.TouchEventHandler<HTMLDivElement>;
18
- role?: string;
19
- };
20
- img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
21
- span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> & {
22
- children?: React.ReactNode;
23
- };
24
- }
25
- }
26
- }
27
2
  declare const WalletList: (props: any) => JSX.Element;
28
3
  export default WalletList;
@@ -104,8 +104,48 @@ var DEFAULT_WALLET_CARD = {
104
104
  en: "Level"
105
105
  },
106
106
  metadata: {
107
- barcodetype: "barCode",
108
- showcaseWalletPass: ["rechargeable", "piont", "voucher", "discount"],
107
+ showcaseWalletPassNew: [
108
+ {
109
+ type: "rechargeable",
110
+ display: 1,
111
+ custom_title: {
112
+ original: "Balance",
113
+ "zh-CN": "充值卡",
114
+ "zh-HK": "充值卡",
115
+ en: "Balance"
116
+ }
117
+ },
118
+ {
119
+ type: "point",
120
+ display: 1,
121
+ custom_title: {
122
+ original: "Points",
123
+ "zh-CN": "积分卡",
124
+ "zh-HK": "積分卡",
125
+ en: "Points"
126
+ }
127
+ },
128
+ {
129
+ type: "voucher",
130
+ display: 1,
131
+ custom_title: {
132
+ original: "Voucher",
133
+ "zh-CN": "代金券",
134
+ "zh-HK": "代金券",
135
+ en: "Voucher"
136
+ }
137
+ },
138
+ {
139
+ type: "discount",
140
+ display: 1,
141
+ custom_title: {
142
+ original: "Discount",
143
+ "zh-CN": "折扣卡",
144
+ "zh-HK": "折扣卡",
145
+ en: "Discount"
146
+ }
147
+ }
148
+ ],
109
149
  coverImage: "",
110
150
  icon: ""
111
151
  }
@@ -171,7 +211,7 @@ var WalletList = (0, import_model.Provider)((props) => {
171
211
  if (isMountedRef.current) {
172
212
  setState({
173
213
  list: [DEFAULT_WALLET_CARD],
174
- balance: DEFAULT_BALANCE,
214
+ balance: [],
175
215
  hasAttempted: true,
176
216
  isLoggedIn: false
177
217
  });
@@ -269,7 +309,7 @@ var WalletList = (0, import_model.Provider)((props) => {
269
309
  if (!isUserLoggedIn) {
270
310
  setState({
271
311
  list: [DEFAULT_WALLET_CARD],
272
- balance: DEFAULT_BALANCE,
312
+ balance: [],
273
313
  hasAttempted: true,
274
314
  isLoggedIn: false
275
315
  });
@@ -281,6 +321,12 @@ var WalletList = (0, import_model.Provider)((props) => {
281
321
  try {
282
322
  cachedList = getFromLocalStorage(STORAGE_KEY);
283
323
  cachedBalance = getFromLocalStorage(STORAGE_KEY_BALANCE);
324
+ if (!Array.isArray(cachedBalance) || !cachedBalance.some(() => {
325
+ var _a3;
326
+ return (_a3 = items == null ? void 0 : items.hasOwnProperty) == null ? void 0 : _a3.call(items, "gift_card_balance");
327
+ })) {
328
+ cachedBalance = null;
329
+ }
284
330
  } catch (e) {
285
331
  console.error("Error fetching from localStorage:", e);
286
332
  }
@@ -293,10 +339,10 @@ var WalletList = (0, import_model.Provider)((props) => {
293
339
  }
294
340
  try {
295
341
  if (!isMountedRef.current) return;
296
- const [walletListData, walletBalanceData] = await Promise.all([
297
- (0, import_serve.getWalletList)(),
298
- (0, import_serve.getWalletBalance)()
299
- ]);
342
+ const walletListData = await (0, import_serve.getWalletList)();
343
+ const walletBalanceData = await (0, import_serve.batchGetWalletBalance)(
344
+ walletListData.map((item2) => item2.wallet_id)
345
+ );
300
346
  if (!isMountedRef.current || requestIdRef.current !== requestId) return;
301
347
  if (walletListData) {
302
348
  try {
@@ -319,8 +365,20 @@ var WalletList = (0, import_model.Provider)((props) => {
319
365
  try {
320
366
  let retryBalanceData = walletBalanceData;
321
367
  let retryListData = walletListData;
368
+ if (Array.isArray(walletListData) && walletListData.length === 0) {
369
+ retryListData = await (0, import_serve.getWalletList)();
370
+ if (retryListData && retryListData.length > 0) {
371
+ try {
372
+ saveToLocalStorage(STORAGE_KEY, retryListData);
373
+ } catch (e) {
374
+ console.error("Error saving retry list to localStorage:", e);
375
+ }
376
+ }
377
+ }
322
378
  if (!walletBalanceData) {
323
- retryBalanceData = await (0, import_serve.getWalletBalance)();
379
+ retryBalanceData = await (0, import_serve.batchGetWalletBalance)(
380
+ retryListData.map((item2) => item2.wallet_id)
381
+ );
324
382
  if (retryBalanceData) {
325
383
  try {
326
384
  saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
@@ -332,16 +390,6 @@ var WalletList = (0, import_model.Provider)((props) => {
332
390
  }
333
391
  }
334
392
  }
335
- if (Array.isArray(walletListData) && walletListData.length === 0) {
336
- retryListData = await (0, import_serve.getWalletList)({});
337
- if (retryListData && retryListData.length > 0) {
338
- try {
339
- saveToLocalStorage(STORAGE_KEY, retryListData);
340
- } catch (e) {
341
- console.error("Error saving retry list to localStorage:", e);
342
- }
343
- }
344
- }
345
393
  setState({
346
394
  list: retryListData || [],
347
395
  balance: retryBalanceData,
@@ -380,55 +428,46 @@ var WalletList = (0, import_model.Provider)((props) => {
380
428
  console.error("onViewPinClick方法需要传入wallet_detail_id");
381
429
  }
382
430
  };
383
- const renderWalletCard = (item) => {
431
+ const renderWalletCard = (_walletItem) => {
384
432
  var _a2;
385
- const { code, shop, wallet, id } = item;
433
+ const { code, shop, wallet, id } = _walletItem;
386
434
  const { metadata, name } = wallet || {};
387
435
  const {
388
- barcodetype = "barCode",
389
- showcaseWalletPass = [],
436
+ showcaseWalletPassNew = [],
390
437
  coverImage = "",
391
438
  icon = ""
392
439
  } = metadata || {};
393
440
  const { name: shopName } = shop;
394
- const { balance } = state;
395
- const balanceKeyMap = {
396
- gift_card_balance: "rechargeable",
397
- point_card_balance: "piont",
398
- voucher_count: "voucher",
399
- discount_card_count: "discount"
441
+ const { balance = [] } = state;
442
+ const balanceItem = balance.find((bi) => bi.wallet_id == _walletItem.wallet_id) || DEFAULT_BALANCE;
443
+ const _balanceKeyMap = {
444
+ rechargeable: "gift_card_balance",
445
+ point: "point_card_balance",
446
+ voucher: "voucher_count",
447
+ discount: "discount_card_count"
400
448
  };
401
- const cardItems = (showcaseWalletPass || []).map(
402
- (key) => {
403
- var _a3;
404
- const balanceKey = (_a3 = Object.entries(balanceKeyMap).find(
405
- ([_, value2]) => value2 === key
406
- )) == null ? void 0 : _a3[0];
407
- let value = balanceKey ? balance[balanceKey] || 0 : 0;
408
- if (balanceKey === "voucher_count") {
409
- value += balance.good_pass_count;
410
- }
411
- return {
412
- key,
413
- label: key,
414
- hidden: false,
415
- value
416
- };
417
- }
418
- );
449
+ const cardItems = showcaseWalletPassNew.map((item2) => {
450
+ const balanceKey = _balanceKeyMap[item2.type];
451
+ let value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
452
+ return {
453
+ ...item2,
454
+ value
455
+ };
456
+ });
419
457
  const cardProps = {
420
458
  // 先应用默认配置
421
459
  ...import_types.DEFAULT_CARD_CONFIG,
422
460
  // 再应用globalState作为兜底
423
461
  ...globalState,
424
462
  // 最后应用API返回的数据,这些拥有最高优先级
463
+ id: wallet.id,
425
464
  iconImg: icon,
426
465
  symbol,
427
466
  cardNo: code,
428
467
  walletName: getLocalizedName(name, (_a2 = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _a2.translateLocale),
429
468
  shopName,
430
- codeType: barcodetype,
431
- items: cardItems,
469
+ // codeType: barcodetype,
470
+ items: cardItems.slice(0, 4),
432
471
  customBackgroundImage: coverImage,
433
472
  isLogin: isUserLoggedIn
434
473
  // 添加登录状态
@@ -499,7 +538,7 @@ var WalletList = (0, import_model.Provider)((props) => {
499
538
  ]
500
539
  };
501
540
  const renderBalanceCard = (0, import_react.useCallback)((balance) => {
502
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item", key: item.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-label" }, item.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-value" }, item.value)))));
541
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((item2) => /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item", key: item2.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-label" }, item2.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-value" }, item2.value)))));
503
542
  }, []);
504
543
  const isShowGuide = (0, import_react.useMemo)(() => {
505
544
  var _a2;
@@ -518,7 +557,7 @@ var WalletList = (0, import_model.Provider)((props) => {
518
557
  ...globalState,
519
558
  walletGuideConfig: (globalState == null ? void 0 : globalState.walletGuideConfig) || (0, import_status.defaultWalletGuideConfig)()
520
559
  }
521
- ) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((item) => renderWalletCard(item)))), list && list.length > 1 && isUserLoggedIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-navigation" }, /* @__PURE__ */ import_react.default.createElement(
560
+ ) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((item2) => renderWalletCard(item2)))), list && list.length > 1 && isUserLoggedIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-navigation" }, /* @__PURE__ */ import_react.default.createElement(
522
561
  "div",
523
562
  {
524
563
  className: `wallet-nav-button wallet-prev ${currentIndex === 0 ? "disabled" : ""}`,
@@ -10,6 +10,10 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
10
10
  * @returns
11
11
  */
12
12
  export declare const getWalletBalance: () => Promise<WalletBalance | null>;
13
+ /**
14
+ * 批量获取钱包余额信息
15
+ */
16
+ export declare const batchGetWalletBalance: (walletIds: string[]) => Promise<Record<string, WalletBalance> | null>;
13
17
  /**
14
18
  * @title: 获取钱包店铺列表
15
19
  * @description:
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/walletList/serve.ts
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
+ batchGetWalletBalance: () => batchGetWalletBalance,
22
23
  getWalletBalance: () => getWalletBalance,
23
24
  getWalletList: () => getWalletList,
24
25
  getWalletShopList: () => getWalletShopList
@@ -41,6 +42,16 @@ var getWalletBalance = async () => {
41
42
  return null;
42
43
  }
43
44
  };
45
+ var batchGetWalletBalance = async (walletIds) => {
46
+ try {
47
+ const { data } = await import_utils.request.getRequest().get("/h5/wallet/wallet-pass/balance/batch", {
48
+ wallet_id: walletIds
49
+ });
50
+ return data || {};
51
+ } catch (error) {
52
+ return {};
53
+ }
54
+ };
44
55
  var getWalletShopList = async (params) => {
45
56
  try {
46
57
  const { data } = await import_utils.request.getRequest().get("/h5/wallet/shop/list", params || {}, {
@@ -54,6 +65,7 @@ var getWalletShopList = async (params) => {
54
65
  };
55
66
  // Annotate the CommonJS export names for ESM import in node:
56
67
  0 && (module.exports = {
68
+ batchGetWalletBalance,
57
69
  getWalletBalance,
58
70
  getWalletList,
59
71
  getWalletShopList
@@ -6,14 +6,18 @@ export interface MultiLanguageName {
6
6
  en: string;
7
7
  [key: string]: string;
8
8
  }
9
+ declare type WalletPassType = 'rechargeable' | 'point' | 'voucher' | 'discount';
9
10
  export interface WalletMetadata {
10
11
  name: MultiLanguageName;
11
12
  welcomeText?: string | MultiLanguageName;
12
13
  customerName?: string;
13
14
  coverImage?: string;
14
15
  icon?: string;
15
- barcodetype: 'barCode' | 'orCode';
16
- showcaseWalletPass?: ('rechargeable' | 'piont' | 'voucher' | 'discount')[];
16
+ showcaseWalletPassNew?: Array<{
17
+ type: WalletPassType;
18
+ custom_title?: string | MultiLanguageName;
19
+ display?: 0 | 1;
20
+ }>;
17
21
  }
18
22
  export interface Shop {
19
23
  id: number;
@@ -56,15 +60,10 @@ export interface WalletBalance {
56
60
  voucher_count: number;
57
61
  discount_card_count: number;
58
62
  }
59
- export interface WalletBalanceItem {
60
- key: string;
61
- label: string;
62
- value: number;
63
- }
64
63
  export interface WalletCardItem {
65
- key: string;
66
- label: string;
67
- hidden: boolean;
64
+ type: WalletPassType;
65
+ custom_title?: string | MultiLanguageName;
66
+ display: 0 | 1;
68
67
  value?: number;
69
68
  }
70
69
  export interface State {
@@ -106,7 +105,7 @@ export interface WalletListProps {
106
105
  platform?: 'pc' | 'h5' | 'ipad';
107
106
  mode?: 'dark' | 'light';
108
107
  cardStyle?: 'normal' | 'full';
109
- codeType?: 'barCode' | 'orCode';
108
+ codeType?: 'barCode' | 'qrCode';
110
109
  codeDirection?: 'bottom' | 'top';
111
110
  shopName?: boolean;
112
111
  showWalletName?: boolean;
@@ -131,7 +130,7 @@ export interface WalletCardProps {
131
130
  platform?: 'pc' | 'h5' | 'ipad';
132
131
  mode?: 'dark' | 'light';
133
132
  cardStyle?: 'normal' | 'full';
134
- codeType?: 'barCode' | 'orCode';
133
+ codeType?: 'barCode' | 'qrCode';
135
134
  codeDirection?: 'bottom' | 'top';
136
135
  shopName?: boolean;
137
136
  showIcon?: boolean;
@@ -192,3 +191,4 @@ export interface CarouselSettings {
192
191
  };
193
192
  }>;
194
193
  }
194
+ export {};