@pisell/private-materials 6.3.100 → 6.3.101

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 (129) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  12. package/es/components/booking/info/header/index.js +7 -7
  13. package/es/components/booking/info/header/index.less +5 -5
  14. package/es/components/ecocup/components/AddCustomerModal/index.js +3 -3
  15. package/es/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
  16. package/es/components/ecocup/components/CupInfoCard/index.js +4 -2
  17. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
  18. package/es/components/ecocup/components/CupStatusModal/hooks.js +109 -1
  19. package/es/components/ecocup/components/CupStatusModal/index.js +164 -30
  20. package/es/components/ecocup/components/CupStatusModal/index.less +48 -10
  21. package/es/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
  22. package/es/components/ecocup/components/CustomerCard/index.d.ts +3 -1
  23. package/es/components/ecocup/components/CustomerCard/index.js +9 -6
  24. package/es/components/ecocup/components/PageHeader/index.d.ts +2 -0
  25. package/es/components/ecocup/components/PageHeader/index.js +15 -5
  26. package/es/components/ecocup/components/PageHeader/index.less +16 -4
  27. package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
  28. package/es/components/ecocup/components/SearchBar/index.js +33 -3
  29. package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
  30. package/es/components/ecocup/components/SettingModal/const.js +17 -0
  31. package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
  32. package/es/components/ecocup/components/SettingModal/index.js +253 -0
  33. package/es/components/ecocup/components/SettingModal/index.less +9 -0
  34. package/es/components/ecocup/cupList/const.d.ts +8 -1
  35. package/es/components/ecocup/cupList/const.js +14 -1
  36. package/es/components/ecocup/cupList/hooks/index.d.ts +2 -2
  37. package/es/components/ecocup/cupList/hooks/index.js +2 -2
  38. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
  39. package/es/components/ecocup/cupList/hooks/useColumns.js +4 -6
  40. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
  41. package/es/components/ecocup/cupList/hooks/useCupApi.js +148 -8
  42. package/es/components/ecocup/cupList/hooks/useSummary.js +9 -7
  43. package/es/components/ecocup/cupList/index.js +60 -12
  44. package/es/components/ecocup/cupList/index.less +62 -16
  45. package/es/components/ecocup/cupProject/const.js +8 -2
  46. package/es/components/ecocup/cupProject/index.js +10 -1
  47. package/es/components/ecocup/hooks.d.ts +8 -0
  48. package/es/components/ecocup/hooks.js +29 -12
  49. package/es/components/ecocup/locales.d.ts +93 -3
  50. package/es/components/ecocup/locales.js +124 -25
  51. package/es/components/ecocup/utils/download.d.ts +7 -0
  52. package/es/components/ecocup/utils/download.js +34 -0
  53. package/es/components/ecocup/utils/index.d.ts +2 -0
  54. package/es/components/ecocup/utils/index.js +2 -0
  55. package/es/components/eftpos/hooks.d.ts +1 -0
  56. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  57. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  65. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  66. package/es/hooks/useLocale.js +8 -1
  67. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  68. package/es/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
  69. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  70. package/lib/components/booking/info/header/index.js +7 -7
  71. package/lib/components/booking/info/header/index.less +5 -5
  72. package/lib/components/ecocup/components/AddCustomerModal/index.js +2 -2
  73. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
  74. package/lib/components/ecocup/components/CupInfoCard/index.js +2 -2
  75. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
  76. package/lib/components/ecocup/components/CupStatusModal/hooks.js +62 -2
  77. package/lib/components/ecocup/components/CupStatusModal/index.js +103 -22
  78. package/lib/components/ecocup/components/CupStatusModal/index.less +48 -10
  79. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
  80. package/lib/components/ecocup/components/CustomerCard/index.d.ts +3 -1
  81. package/lib/components/ecocup/components/CustomerCard/index.js +13 -3
  82. package/lib/components/ecocup/components/PageHeader/index.d.ts +2 -0
  83. package/lib/components/ecocup/components/PageHeader/index.js +10 -3
  84. package/lib/components/ecocup/components/PageHeader/index.less +16 -4
  85. package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
  86. package/lib/components/ecocup/components/SearchBar/index.js +15 -2
  87. package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
  88. package/lib/components/ecocup/components/SettingModal/const.js +48 -0
  89. package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
  90. package/lib/components/ecocup/components/SettingModal/index.js +199 -0
  91. package/lib/components/ecocup/components/SettingModal/index.less +9 -0
  92. package/lib/components/ecocup/cupList/const.d.ts +8 -1
  93. package/lib/components/ecocup/cupList/const.js +18 -0
  94. package/lib/components/ecocup/cupList/hooks/index.d.ts +2 -2
  95. package/lib/components/ecocup/cupList/hooks/index.js +4 -0
  96. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
  97. package/lib/components/ecocup/cupList/hooks/useColumns.js +2 -4
  98. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
  99. package/lib/components/ecocup/cupList/hooks/useCupApi.js +123 -8
  100. package/lib/components/ecocup/cupList/hooks/useSummary.js +22 -14
  101. package/lib/components/ecocup/cupList/index.js +70 -16
  102. package/lib/components/ecocup/cupList/index.less +62 -16
  103. package/lib/components/ecocup/cupProject/const.js +8 -1
  104. package/lib/components/ecocup/cupProject/index.js +10 -1
  105. package/lib/components/ecocup/hooks.d.ts +8 -0
  106. package/lib/components/ecocup/hooks.js +18 -4
  107. package/lib/components/ecocup/locales.d.ts +93 -3
  108. package/lib/components/ecocup/locales.js +118 -25
  109. package/lib/components/ecocup/utils/download.d.ts +7 -0
  110. package/lib/components/ecocup/utils/download.js +47 -0
  111. package/lib/components/ecocup/utils/index.d.ts +2 -0
  112. package/lib/components/ecocup/utils/index.js +42 -0
  113. package/lib/components/eftpos/hooks.d.ts +1 -0
  114. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  115. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  116. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  117. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  118. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  119. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  120. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  121. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  122. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  123. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  124. package/lib/hooks/useLocale.js +7 -2
  125. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  126. package/lib/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
  127. package/lowcode/eco-cup-list/meta.ts +1 -1
  128. package/lowcode/eco-customer-list/meta.ts +1 -1
  129. package/package.json +1 -1
@@ -47,3 +47,11 @@ export declare const useGetShopId: () => any;
47
47
  * @return {*}
48
48
  */
49
49
  export declare const useIsApp: () => boolean;
50
+ /**
51
+ * @description: 获取分享场景
52
+ * @return {*}
53
+ */
54
+ export declare const useGetShare: () => {
55
+ source: string | null;
56
+ isEcoShare: boolean;
57
+ };
@@ -31,6 +31,7 @@ var hooks_exports = {};
31
31
  __export(hooks_exports, {
32
32
  useGetApp: () => useGetApp,
33
33
  useGetGoalShopInfo: () => useGetGoalShopInfo,
34
+ useGetShare: () => useGetShare,
34
35
  useGetShopId: () => useGetShopId,
35
36
  useIsApp: () => useIsApp,
36
37
  useLanguage: () => useLanguage,
@@ -41,11 +42,11 @@ __export(hooks_exports, {
41
42
  module.exports = __toCommonJS(hooks_exports);
42
43
  var import_react = require("react");
43
44
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
45
+ var import_useLocale = __toESM(require("../../hooks/useLocale"));
44
46
  var import_scanListener = __toESM(require("./utils/scanListener"));
45
47
  var useLanguage = () => {
46
- var _a, _b, _c;
47
- const context = (0, import_useEngineContext.default)();
48
- return ((_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en";
48
+ const locale = (0, import_useLocale.default)();
49
+ return locale || "en";
49
50
  };
50
51
  var useScanListener = () => {
51
52
  var _a;
@@ -57,10 +58,13 @@ var useScanListener = () => {
57
58
  const removeListener = (key) => {
58
59
  import_scanListener.default.removeListener(key);
59
60
  };
61
+ const setActiveListener = (key) => {
62
+ import_scanListener.default.setActiveListener(key);
63
+ };
60
64
  return {
61
65
  addListener,
62
66
  removeListener,
63
- setActiveListener: import_scanListener.default.setActiveListener
67
+ setActiveListener
64
68
  };
65
69
  };
66
70
  var useGetApp = () => {
@@ -142,10 +146,20 @@ var useIsApp = () => {
142
146
  const platform = (0, import_useEngineContext.usePlatform)();
143
147
  return platform === "h5" || platform === "pc";
144
148
  };
149
+ var useGetShare = () => {
150
+ var _a;
151
+ const search = ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.search) || {};
152
+ const source = new URLSearchParams(search).get("source");
153
+ return {
154
+ source,
155
+ isEcoShare: source ? source === "ecoShare" : false
156
+ };
157
+ };
145
158
  // Annotate the CommonJS export names for ESM import in node:
146
159
  0 && (module.exports = {
147
160
  useGetApp,
148
161
  useGetGoalShopInfo,
162
+ useGetShare,
149
163
  useGetShopId,
150
164
  useIsApp,
151
165
  useLanguage,
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  'pisell2.text.cup-project.footer.button.new-customer': string;
25
25
  'pisell2.text.cup-project.footer.button.customer-list': string;
26
26
  'pisell2.text.cup-project.footer.button.cup-list': string;
27
+ 'pisell2.text.cup-project.footer.button.setting': string;
27
28
  'pisell2.text.cup-project.footer.button.register-cups': string;
28
29
  'pisell2.text.cup-project.search-bar.result.header.name': string;
29
30
  'pisell2.text.cup-project.search-bar.result.header.registrationTime': string;
@@ -64,6 +65,8 @@ declare const _default: {
64
65
  'pisell2.text.ecocup.action.more.broken': string;
65
66
  'pisell2.text.ecocup.table.time-of-rent.relative': (num: number) => string;
66
67
  'pisell2.text.ecocup.table.time-of-return.today': string;
68
+ 'pisell2.text.ecocup.share.title': string;
69
+ 'pisell2.text.ecocup.export.title': string;
67
70
  'pisell2.text.ecocup.customer.list.title': string;
68
71
  'pisell2.text.ecocup.customer.list.customer': string;
69
72
  'pisell2.text.ecocup.customer.list.registed': string;
@@ -97,6 +100,10 @@ declare const _default: {
97
100
  'pisell2.text.ecocup.cup-info-card.title.rentInfo': string;
98
101
  'pisell2.text.ecocup.cup-info-card.title.markInfo': string;
99
102
  'pisell2.text.ecocup.cup-info-card.title.belongInfo': string;
103
+ 'pisell2.text.ecocup.cup-info-card.title.otherBelongInfo': string;
104
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-shop': string;
105
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-time': string;
106
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-customer': string;
100
107
  'pisell2.text.ecocup.customer-first-modal.title': string;
101
108
  'pisell2.text.ecocup.customer-first-modal.search-tip': string;
102
109
  'pisell2.text.ecocup.customer-first-modal.search-bar.placeholder': string;
@@ -104,12 +111,35 @@ declare const _default: {
104
111
  'pisell2.text.ecocup.customer-first-modal.over-max': string;
105
112
  'pisell2.text.ecocup.customer-first-modal.no-customer': string;
106
113
  'pisell2.text.ecocup.search-bar.search-tip': string;
107
- 'pisell2.text.ecocup.cup-status-modal.title-other_rent': string;
114
+ 'pisell2.text.ecocup.cup-status-modal.title-other_rent': (num: number) => string;
108
115
  'pisell2.text.ecocup.cup-status-modal.title-other_in_stock': string;
109
116
  'pisell2.text.ecocup.cup-status-modal.title-missing': string;
110
117
  'pisell2.text.ecocup.cup-status-modal.title-broken': string;
111
118
  'pisell2.text.ecocup.cup-status-modal.title-not_found': string;
112
119
  'pisell2.text.ecocup.cup-status-modal.tip': string;
120
+ 'pisell2.text.ecocup.cup-status-modal.tip-in-stock': string;
121
+ 'pisell2.text.ecocup.setting.expire-time': string;
122
+ 'pisell2.text.ecocup.setting.expire-time-placeholder': string;
123
+ 'pisell2.text.ecocup.setting.expire-time-required': string;
124
+ 'pisell2.text.ecocup.setting.expire-time-max': string;
125
+ 'pisell2.text.ecocup.setting.expire-time-min': string;
126
+ 'pisell2.text.ecocup.setting.max-rent-count-max': string;
127
+ 'pisell2.text.ecocup.setting.max-rent-count-min': string;
128
+ 'pisell2.text.ecocup.setting.days': string;
129
+ 'pisell2.text.ecocup.setting.regular': string;
130
+ 'pisell2.text.ecocup.setting.regular-placeholder': string;
131
+ 'pisell2.text.ecocup.setting.regular-required': string;
132
+ 'pisell2.text.ecocup.setting.business': string;
133
+ 'pisell2.text.ecocup.setting.business-placeholder': string;
134
+ 'pisell2.text.ecocup.setting.business-required': string;
135
+ 'pisell2.text.ecocup.setting.admin': string;
136
+ 'pisell2.text.ecocup.setting.admin-placeholder': string;
137
+ 'pisell2.text.ecocup.setting.admin-required': string;
138
+ 'pisell2.text.ecocup.setting.success': string;
139
+ 'pisell2.text.ecocup.export.fail': string;
140
+ 'pisell2.text.ecocup.export.success': string;
141
+ 'pisell2.text.ecocup.cup-status-modal.search-bar.title': string;
142
+ 'pisell2.text.ecocup.toast.success-copy-link': string;
113
143
  };
114
144
  'zh-CN': {
115
145
  'pisell2.text.ecocup.cup-id': string;
@@ -136,6 +166,7 @@ declare const _default: {
136
166
  'pisell2.text.cup-project.footer.button.new-customer': string;
137
167
  'pisell2.text.cup-project.footer.button.customer-list': string;
138
168
  'pisell2.text.cup-project.footer.button.cup-list': string;
169
+ 'pisell2.text.cup-project.footer.button.setting': string;
139
170
  'pisell2.text.cup-project.footer.button.register-cups': string;
140
171
  'pisell2.text.cup-project.search-bar.result.header.name': string;
141
172
  'pisell2.text.cup-project.search-bar.result.header.registrationTime': string;
@@ -176,6 +207,8 @@ declare const _default: {
176
207
  'pisell2.text.ecocup.action.more.broken': string;
177
208
  'pisell2.text.ecocup.table.time-of-rent.relative': (num: number) => string;
178
209
  'pisell2.text.ecocup.table.time-of-return.today': string;
210
+ 'pisell2.text.ecocup.share.title': string;
211
+ 'pisell2.text.ecocup.export.title': string;
179
212
  'pisell2.text.ecocup.customer.list.title': string;
180
213
  'pisell2.text.ecocup.customer.list.customer': string;
181
214
  'pisell2.text.ecocup.customer.list.registed': string;
@@ -209,6 +242,10 @@ declare const _default: {
209
242
  'pisell2.text.ecocup.cup-info-card.title.rentInfo': string;
210
243
  'pisell2.text.ecocup.cup-info-card.title.markInfo': string;
211
244
  'pisell2.text.ecocup.cup-info-card.title.belongInfo': string;
245
+ 'pisell2.text.ecocup.cup-info-card.title.otherBelongInfo': string;
246
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-shop': string;
247
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-time': string;
248
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-customer': string;
212
249
  'pisell2.text.ecocup.customer-first-modal.title': string;
213
250
  'pisell2.text.ecocup.customer-first-modal.search-tip': string;
214
251
  'pisell2.text.ecocup.customer-first-modal.search-bar.placeholder': string;
@@ -216,12 +253,35 @@ declare const _default: {
216
253
  'pisell2.text.ecocup.customer-first-modal.over-max': string;
217
254
  'pisell2.text.ecocup.customer-first-modal.no-customer': string;
218
255
  'pisell2.text.ecocup.search-bar.search-tip': string;
219
- 'pisell2.text.ecocup.cup-status-modal.title-other_rent': string;
256
+ 'pisell2.text.ecocup.cup-status-modal.title-other_rent': (num: number) => string;
220
257
  'pisell2.text.ecocup.cup-status-modal.title-other_in_stock': string;
221
258
  'pisell2.text.ecocup.cup-status-modal.title-missing': string;
222
259
  'pisell2.text.ecocup.cup-status-modal.title-broken': string;
223
260
  'pisell2.text.ecocup.cup-status-modal.title-not_found': string;
224
261
  'pisell2.text.ecocup.cup-status-modal.tip': string;
262
+ 'pisell2.text.ecocup.cup-status-modal.tip-in-stock': string;
263
+ 'pisell2.text.ecocup.setting.expire-time': string;
264
+ 'pisell2.text.ecocup.setting.expire-time-placeholder': string;
265
+ 'pisell2.text.ecocup.setting.expire-time-required': string;
266
+ 'pisell2.text.ecocup.setting.expire-time-max': string;
267
+ 'pisell2.text.ecocup.setting.expire-time-min': string;
268
+ 'pisell2.text.ecocup.setting.max-rent-count-max': string;
269
+ 'pisell2.text.ecocup.setting.max-rent-count-min': string;
270
+ 'pisell2.text.ecocup.setting.days': string;
271
+ 'pisell2.text.ecocup.setting.regular': string;
272
+ 'pisell2.text.ecocup.setting.regular-placeholder': string;
273
+ 'pisell2.text.ecocup.setting.regular-required': string;
274
+ 'pisell2.text.ecocup.setting.business': string;
275
+ 'pisell2.text.ecocup.setting.business-placeholder': string;
276
+ 'pisell2.text.ecocup.setting.business-required': string;
277
+ 'pisell2.text.ecocup.setting.admin': string;
278
+ 'pisell2.text.ecocup.setting.admin-placeholder': string;
279
+ 'pisell2.text.ecocup.setting.admin-required': string;
280
+ 'pisell2.text.ecocup.setting.success': string;
281
+ 'pisell2.text.ecocup.export.fail': string;
282
+ 'pisell2.text.ecocup.export.success': string;
283
+ 'pisell2.text.ecocup.cup-status-modal.search-bar.title': string;
284
+ 'pisell2.text.ecocup.toast.success-copy-link': string;
225
285
  };
226
286
  'zh-HK': {
227
287
  'pisell2.text.ecocup.cup-id': string;
@@ -248,6 +308,7 @@ declare const _default: {
248
308
  'pisell2.text.cup-project.footer.button.new-customer': string;
249
309
  'pisell2.text.cup-project.footer.button.customer-list': string;
250
310
  'pisell2.text.cup-project.footer.button.cup-list': string;
311
+ 'pisell2.text.cup-project.footer.button.setting': string;
251
312
  'pisell2.text.cup-project.footer.button.register-cups': string;
252
313
  'pisell2.text.cup-project.search-bar.result.header.name': string;
253
314
  'pisell2.text.cup-project.search-bar.result.header.registrationTime': string;
@@ -288,6 +349,8 @@ declare const _default: {
288
349
  'pisell2.text.ecocup.action.more.broken': string;
289
350
  'pisell2.text.ecocup.table.time-of-rent.relative': (num: number) => string;
290
351
  'pisell2.text.ecocup.table.time-of-return.today': string;
352
+ 'pisell2.text.ecocup.share.title': string;
353
+ 'pisell2.text.ecocup.export.title': string;
291
354
  'pisell2.text.ecocup.customer.list.title': string;
292
355
  'pisell2.text.ecocup.customer.list.customer': string;
293
356
  'pisell2.text.ecocup.customer.list.registed': string;
@@ -321,6 +384,10 @@ declare const _default: {
321
384
  'pisell2.text.ecocup.cup-info-card.title.rentInfo': string;
322
385
  'pisell2.text.ecocup.cup-info-card.title.markInfo': string;
323
386
  'pisell2.text.ecocup.cup-info-card.title.belongInfo': string;
387
+ 'pisell2.text.ecocup.cup-info-card.title.otherBelongInfo': string;
388
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-shop': string;
389
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-time': string;
390
+ 'pisell2.text.ecocup.cup-info-card.title.multiple-customer': string;
324
391
  'pisell2.text.ecocup.customer-first-modal.title': string;
325
392
  'pisell2.text.ecocup.customer-first-modal.search-tip': string;
326
393
  'pisell2.text.ecocup.customer-first-modal.search-bar.placeholder': string;
@@ -328,12 +395,35 @@ declare const _default: {
328
395
  'pisell2.text.ecocup.customer-first-modal.over-max': string;
329
396
  'pisell2.text.ecocup.customer-first-modal.no-customer': string;
330
397
  'pisell2.text.ecocup.search-bar.search-tip': string;
331
- 'pisell2.text.ecocup.cup-status-modal.title-other_rent': string;
398
+ 'pisell2.text.ecocup.cup-status-modal.title-other_rent': (num: number) => string;
332
399
  'pisell2.text.ecocup.cup-status-modal.title-other_in_stock': string;
333
400
  'pisell2.text.ecocup.cup-status-modal.title-missing': string;
334
401
  'pisell2.text.ecocup.cup-status-modal.title-broken': string;
335
402
  'pisell2.text.ecocup.cup-status-modal.title-not_found': string;
336
403
  'pisell2.text.ecocup.cup-status-modal.tip': string;
404
+ 'pisell2.text.ecocup.cup-status-modal.tip-in-stock': string;
405
+ 'pisell2.text.ecocup.setting.expire-time': string;
406
+ 'pisell2.text.ecocup.setting.expire-time-placeholder': string;
407
+ 'pisell2.text.ecocup.setting.expire-time-required': string;
408
+ 'pisell2.text.ecocup.setting.expire-time-max': string;
409
+ 'pisell2.text.ecocup.setting.expire-time-min': string;
410
+ 'pisell2.text.ecocup.setting.max-rent-count-max': string;
411
+ 'pisell2.text.ecocup.setting.max-rent-count-min': string;
412
+ 'pisell2.text.ecocup.setting.days': string;
413
+ 'pisell2.text.ecocup.setting.regular': string;
414
+ 'pisell2.text.ecocup.setting.regular-placeholder': string;
415
+ 'pisell2.text.ecocup.setting.regular-required': string;
416
+ 'pisell2.text.ecocup.setting.business': string;
417
+ 'pisell2.text.ecocup.setting.business-placeholder': string;
418
+ 'pisell2.text.ecocup.setting.business-required': string;
419
+ 'pisell2.text.ecocup.setting.admin': string;
420
+ 'pisell2.text.ecocup.setting.admin-placeholder': string;
421
+ 'pisell2.text.ecocup.setting.admin-required': string;
422
+ 'pisell2.text.ecocup.setting.success': string;
423
+ 'pisell2.text.ecocup.export.fail': string;
424
+ 'pisell2.text.ecocup.export.success': string;
425
+ 'pisell2.text.ecocup.cup-status-modal.search-bar.title': string;
426
+ 'pisell2.text.ecocup.toast.success-copy-link': string;
337
427
  };
338
428
  ja: {
339
429
  'pisell2.text.ecocup.cup-id': string;
@@ -30,7 +30,7 @@ var locales_default = {
30
30
  "pisell2.text.ecocup.button.missing": "Missing",
31
31
  "pisell2.text.ecocup.button.broken": "Broken",
32
32
  "pisell2.text.ecocup.button.clear-all": "Clear All",
33
- "pisell2.text.ecocup.button.mark-as-return": "Mark as Returned",
33
+ "pisell2.text.ecocup.button.mark-as-return": "Return",
34
34
  "pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
35
35
  "pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
36
36
  "pisell2.text.ecocup.button.cancel": "Cancel",
@@ -49,6 +49,7 @@ var locales_default = {
49
49
  "pisell2.text.cup-project.footer.button.new-customer": "New Customer",
50
50
  "pisell2.text.cup-project.footer.button.customer-list": "Customer list",
51
51
  "pisell2.text.cup-project.footer.button.cup-list": "Cup list",
52
+ "pisell2.text.cup-project.footer.button.setting": "Setting",
52
53
  "pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
53
54
  "pisell2.text.cup-project.search-bar.result.header.name": "Name",
54
55
  "pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
@@ -60,13 +61,13 @@ var locales_default = {
60
61
  "pisell2.text.ecocup.status.placeholder": "Select Status",
61
62
  "pisell2.text.ecocup.status.shop.placeholder": "Select Shop",
62
63
  "pisell2.text.ecocup.scan-or-search": "mobile number or cup code",
63
- "pisell2.text.ecocup.available-to-rent": "Available to rent now",
64
+ "pisell2.text.ecocup.available-to-rent": "Stock Available to Rent Now",
64
65
  "pisell2.text.ecocup.rent": "Rent",
65
66
  "pisell2.text.ecocup.broken": "Broken",
66
- "pisell2.text.ecocup.cup-rent": "Cup Rent",
67
- "pisell2.text.ecocup.cup-returned": "Cup Returned",
68
- "pisell2.text.ecocup.eco.cup-rent": "Cup Rent by all shops",
69
- "pisell2.text.ecocup.eco.cup-returned": "Cup Returned by all shops",
67
+ "pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
68
+ "pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
69
+ "pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
70
+ "pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
70
71
  "pisell2.text.ecocup.table.cup-code": "Cup Code",
71
72
  "pisell2.text.ecocup.table.customer": "Customer",
72
73
  "pisell2.text.ecocup.table.status": "Status",
@@ -90,6 +91,8 @@ var locales_default = {
90
91
  "pisell2.text.ecocup.action.more.broken": "Broken",
91
92
  "pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num === 1 ? "day" : "days"} ago`,
92
93
  "pisell2.text.ecocup.table.time-of-return.today": "Today",
94
+ "pisell2.text.ecocup.share.title": "Share",
95
+ "pisell2.text.ecocup.export.title": "Export",
93
96
  // Customer List
94
97
  "pisell2.text.ecocup.customer.list.title": "Customer List",
95
98
  "pisell2.text.ecocup.customer.list.customer": "Cutomer",
@@ -127,6 +130,10 @@ var locales_default = {
127
130
  "pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
128
131
  "pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
129
132
  "pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
133
+ "pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
134
+ "pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
135
+ "pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
136
+ "pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
130
137
  // Customer First Modal
131
138
  "pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
132
139
  "pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
@@ -137,12 +144,36 @@ var locales_default = {
137
144
  // Search Bar
138
145
  "pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
139
146
  // Cup Status Modal
140
- "pisell2.text.ecocup.cup-status-modal.title-other_rent": "Warning This Cup is borrowed by Others",
141
- "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "This Cup is registered to another shop",
147
+ "pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
148
+ "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
142
149
  "pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
143
150
  "pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
144
151
  "pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
145
- "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
152
+ "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
153
+ "pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
154
+ // Setting
155
+ "pisell2.text.ecocup.setting.expire-time": "Expire Time",
156
+ "pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
157
+ "pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
158
+ "pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
159
+ "pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
160
+ "pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
161
+ "pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
162
+ "pisell2.text.ecocup.setting.days": "Days",
163
+ "pisell2.text.ecocup.setting.regular": "Regular",
164
+ "pisell2.text.ecocup.setting.regular-placeholder": "Regular",
165
+ "pisell2.text.ecocup.setting.regular-required": "Regular is required",
166
+ "pisell2.text.ecocup.setting.business": "Business",
167
+ "pisell2.text.ecocup.setting.business-placeholder": "Business",
168
+ "pisell2.text.ecocup.setting.business-required": "Business is required",
169
+ "pisell2.text.ecocup.setting.admin": "Admin",
170
+ "pisell2.text.ecocup.setting.admin-placeholder": "Admin",
171
+ "pisell2.text.ecocup.setting.admin-required": "Admin is required",
172
+ "pisell2.text.ecocup.setting.success": "Settings saved successfully",
173
+ "pisell2.text.ecocup.export.fail": "Export failed",
174
+ "pisell2.text.ecocup.export.success": "Export success",
175
+ "pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
176
+ "pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
146
177
  },
147
178
  "zh-CN": {
148
179
  "pisell2.text.ecocup.cup-id": "Cup ID",
@@ -151,7 +182,7 @@ var locales_default = {
151
182
  "pisell2.text.ecocup.button.missing": "Missing",
152
183
  "pisell2.text.ecocup.button.broken": "Broken",
153
184
  "pisell2.text.ecocup.button.clear-all": "Clear All",
154
- "pisell2.text.ecocup.button.mark-as-return": "Mark as Returned",
185
+ "pisell2.text.ecocup.button.mark-as-return": "Return",
155
186
  "pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
156
187
  "pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
157
188
  "pisell2.text.ecocup.button.cancel": "Cancel",
@@ -170,6 +201,7 @@ var locales_default = {
170
201
  "pisell2.text.cup-project.footer.button.new-customer": "New Customer",
171
202
  "pisell2.text.cup-project.footer.button.customer-list": "Customer list",
172
203
  "pisell2.text.cup-project.footer.button.cup-list": "Cup list",
204
+ "pisell2.text.cup-project.footer.button.setting": "Setting",
173
205
  "pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
174
206
  "pisell2.text.cup-project.search-bar.result.header.name": "Name",
175
207
  "pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
@@ -184,10 +216,10 @@ var locales_default = {
184
216
  "pisell2.text.ecocup.available-to-rent": "Available to rent now",
185
217
  "pisell2.text.ecocup.rent": "Rent",
186
218
  "pisell2.text.ecocup.broken": "Broken",
187
- "pisell2.text.ecocup.cup-rent": "Cup Rent",
188
- "pisell2.text.ecocup.cup-returned": "Cup Returned",
189
- "pisell2.text.ecocup.eco.cup-rent": "Cup Rent by all shops",
190
- "pisell2.text.ecocup.eco.cup-returned": "Cup Returned by all shops",
219
+ "pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
220
+ "pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
221
+ "pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
222
+ "pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
191
223
  "pisell2.text.ecocup.table.cup-code": "Cup Code",
192
224
  "pisell2.text.ecocup.table.customer": "Customer",
193
225
  "pisell2.text.ecocup.table.status": "Status",
@@ -211,6 +243,8 @@ var locales_default = {
211
243
  "pisell2.text.ecocup.action.more.broken": "Broken",
212
244
  "pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num > 1 ? "days" : "day"} ago`,
213
245
  "pisell2.text.ecocup.table.time-of-return.today": "Today",
246
+ "pisell2.text.ecocup.share.title": "Share",
247
+ "pisell2.text.ecocup.export.title": "Export",
214
248
  // Customer List
215
249
  "pisell2.text.ecocup.customer.list.title": "Customer List",
216
250
  "pisell2.text.ecocup.customer.list.customer": "Cutomer",
@@ -248,6 +282,10 @@ var locales_default = {
248
282
  "pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
249
283
  "pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
250
284
  "pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
285
+ "pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
286
+ "pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
287
+ "pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
288
+ "pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
251
289
  // Customer First Modal
252
290
  "pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
253
291
  "pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
@@ -258,12 +296,36 @@ var locales_default = {
258
296
  // Search Bar
259
297
  "pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
260
298
  // Cup Status Modal
261
- "pisell2.text.ecocup.cup-status-modal.title-other_rent": "Warning This Cup is borrowed by Others",
262
- "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "This Cup is registered to another shop",
299
+ "pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
300
+ "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
263
301
  "pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
264
302
  "pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
265
303
  "pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
266
- "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
304
+ "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
305
+ "pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
306
+ // Setting
307
+ "pisell2.text.ecocup.setting.expire-time": "Expire Time",
308
+ "pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
309
+ "pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
310
+ "pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
311
+ "pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
312
+ "pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
313
+ "pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
314
+ "pisell2.text.ecocup.setting.days": "Days",
315
+ "pisell2.text.ecocup.setting.regular": "Regular",
316
+ "pisell2.text.ecocup.setting.regular-placeholder": "Regular",
317
+ "pisell2.text.ecocup.setting.regular-required": "Regular is required",
318
+ "pisell2.text.ecocup.setting.business": "Business",
319
+ "pisell2.text.ecocup.setting.business-placeholder": "Business",
320
+ "pisell2.text.ecocup.setting.business-required": "Business is required",
321
+ "pisell2.text.ecocup.setting.admin": "Admin",
322
+ "pisell2.text.ecocup.setting.admin-placeholder": "Admin",
323
+ "pisell2.text.ecocup.setting.admin-required": "Admin is required",
324
+ "pisell2.text.ecocup.setting.success": "Settings saved successfully",
325
+ "pisell2.text.ecocup.export.fail": "Export failed",
326
+ "pisell2.text.ecocup.export.success": "Export success",
327
+ "pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
328
+ "pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
267
329
  },
268
330
  "zh-HK": {
269
331
  "pisell2.text.ecocup.cup-id": "Cup ID",
@@ -272,7 +334,7 @@ var locales_default = {
272
334
  "pisell2.text.ecocup.button.missing": "Missing",
273
335
  "pisell2.text.ecocup.button.broken": "Broken",
274
336
  "pisell2.text.ecocup.button.clear-all": "Clear All",
275
- "pisell2.text.ecocup.button.mark-as-return": "Mark as Returned",
337
+ "pisell2.text.ecocup.button.mark-as-return": "Return",
276
338
  "pisell2.text.ecocup.button.mark-as-missing": "Mark as Missing",
277
339
  "pisell2.text.ecocup.button.mark-as-broken": "Mark as Broken",
278
340
  "pisell2.text.ecocup.button.cancel": "Cancel",
@@ -291,6 +353,7 @@ var locales_default = {
291
353
  "pisell2.text.cup-project.footer.button.new-customer": "New Customer",
292
354
  "pisell2.text.cup-project.footer.button.customer-list": "Customer list",
293
355
  "pisell2.text.cup-project.footer.button.cup-list": "Cup list",
356
+ "pisell2.text.cup-project.footer.button.setting": "Setting",
294
357
  "pisell2.text.cup-project.footer.button.register-cups": "Register Cups to Inventory",
295
358
  "pisell2.text.cup-project.search-bar.result.header.name": "Name",
296
359
  "pisell2.text.cup-project.search-bar.result.header.registrationTime": "Registration Time",
@@ -305,10 +368,10 @@ var locales_default = {
305
368
  "pisell2.text.ecocup.available-to-rent": "Available to rent now",
306
369
  "pisell2.text.ecocup.rent": "Rent",
307
370
  "pisell2.text.ecocup.broken": "Broken",
308
- "pisell2.text.ecocup.cup-rent": "Cup Rent",
309
- "pisell2.text.ecocup.cup-returned": "Cup Returned",
310
- "pisell2.text.ecocup.eco.cup-rent": "Cup Rent by all shops",
311
- "pisell2.text.ecocup.eco.cup-returned": "Cup Returned by all shops",
371
+ "pisell2.text.ecocup.cup-rent": "Cup Rent (During Selected Period)",
372
+ "pisell2.text.ecocup.cup-returned": "Cup Returned (During Selected Period)",
373
+ "pisell2.text.ecocup.eco.cup-rent": "Cup Rent (all shops during selected period)",
374
+ "pisell2.text.ecocup.eco.cup-returned": "Cup Returned (all shops during selected period)",
312
375
  "pisell2.text.ecocup.table.cup-code": "Cup Code",
313
376
  "pisell2.text.ecocup.table.customer": "Customer",
314
377
  "pisell2.text.ecocup.table.status": "Status",
@@ -332,6 +395,8 @@ var locales_default = {
332
395
  "pisell2.text.ecocup.action.more.broken": "Broken",
333
396
  "pisell2.text.ecocup.table.time-of-rent.relative": (num) => `${num} ${num === 1 ? "day" : "days"} ago`,
334
397
  "pisell2.text.ecocup.table.time-of-return.today": "Today",
398
+ "pisell2.text.ecocup.share.title": "Share",
399
+ "pisell2.text.ecocup.export.title": "Export",
335
400
  // Customer List
336
401
  "pisell2.text.ecocup.customer.list.title": "Customer List",
337
402
  "pisell2.text.ecocup.customer.list.customer": "Cutomer",
@@ -369,6 +434,10 @@ var locales_default = {
369
434
  "pisell2.text.ecocup.cup-info-card.title.rentInfo": "Rent at",
370
435
  "pisell2.text.ecocup.cup-info-card.title.markInfo": "Marked by",
371
436
  "pisell2.text.ecocup.cup-info-card.title.belongInfo": "Belongs to",
437
+ "pisell2.text.ecocup.cup-info-card.title.otherBelongInfo": "This cup belongs to",
438
+ "pisell2.text.ecocup.cup-info-card.title.multiple-shop": "multiple shop detected",
439
+ "pisell2.text.ecocup.cup-info-card.title.multiple-time": "multiple time detected",
440
+ "pisell2.text.ecocup.cup-info-card.title.multiple-customer": "Multiple customers",
372
441
  // Customer First Modal
373
442
  "pisell2.text.ecocup.customer-first-modal.title": "Rent/Return Cup(s)",
374
443
  "pisell2.text.ecocup.customer-first-modal.search-tip": "Please scan/input the correct ECO Cup code.",
@@ -379,12 +448,36 @@ var locales_default = {
379
448
  // Search Bar
380
449
  "pisell2.text.ecocup.search-bar.search-tip": "Please scan/input the correct ECO Cup code.",
381
450
  // Cup Status Modal
382
- "pisell2.text.ecocup.cup-status-modal.title-other_rent": "Warning This Cup is borrowed by Others",
383
- "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "This Cup is registered to another shop",
451
+ "pisell2.text.ecocup.cup-status-modal.title-other_rent": (num) => `Cup Return ${num > 1 ? `(${num} cups)` : ""}`,
452
+ "pisell2.text.ecocup.cup-status-modal.title-other_in_stock": "Cup not in your inventory",
384
453
  "pisell2.text.ecocup.cup-status-modal.title-missing": "Cup Marked as Missing",
385
454
  "pisell2.text.ecocup.cup-status-modal.title-broken": "Cup Marked as Broken",
386
455
  "pisell2.text.ecocup.cup-status-modal.title-not_found": "Cup not in your inventory",
387
- "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting"
456
+ "pisell2.text.ecocup.cup-status-modal.tip": "Please add to inventory first before renting",
457
+ "pisell2.text.ecocup.cup-status-modal.tip-in-stock": "Please report to Eco-cup admin for further actions",
458
+ // Setting
459
+ "pisell2.text.ecocup.setting.expire-time": "Expire Time",
460
+ "pisell2.text.ecocup.setting.expire-time-placeholder": "Expire Time",
461
+ "pisell2.text.ecocup.setting.expire-time-required": "Expire Time is required",
462
+ "pisell2.text.ecocup.setting.expire-time-max": "Expire Time must be less than 365 days",
463
+ "pisell2.text.ecocup.setting.expire-time-min": "Expire Time must be greater than 0",
464
+ "pisell2.text.ecocup.setting.max-rent-count-max": "Max Rent Count must be less than 9999",
465
+ "pisell2.text.ecocup.setting.max-rent-count-min": "Max Rent Count must be greater than 0",
466
+ "pisell2.text.ecocup.setting.days": "Days",
467
+ "pisell2.text.ecocup.setting.regular": "Regular",
468
+ "pisell2.text.ecocup.setting.regular-placeholder": "Regular",
469
+ "pisell2.text.ecocup.setting.regular-required": "Regular is required",
470
+ "pisell2.text.ecocup.setting.business": "Business",
471
+ "pisell2.text.ecocup.setting.business-placeholder": "Business",
472
+ "pisell2.text.ecocup.setting.business-required": "Business is required",
473
+ "pisell2.text.ecocup.setting.admin": "Admin",
474
+ "pisell2.text.ecocup.setting.admin-placeholder": "Admin",
475
+ "pisell2.text.ecocup.setting.admin-required": "Admin is required",
476
+ "pisell2.text.ecocup.setting.success": "Settings saved successfully",
477
+ "pisell2.text.ecocup.export.fail": "Export failed",
478
+ "pisell2.text.ecocup.export.success": "Export success",
479
+ "pisell2.text.ecocup.cup-status-modal.search-bar.title": "Scan multiple cups and return together",
480
+ "pisell2.text.ecocup.toast.success-copy-link": "Link copied to clipboard"
388
481
  },
389
482
  ja: {
390
483
  "pisell2.text.ecocup.cup-id": "カップID",
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @description: 通过创建 a 标签触发文件下载
3
+ * @param {string} url - 文件下载地址
4
+ * @param {string} filename - 可选的文件名,如果不提供则使用浏览器默认行为
5
+ * @return {void}
6
+ */
7
+ export declare const downloadFile: (url: string, filename?: string) => void;
@@ -0,0 +1,47 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/ecocup/utils/download.ts
20
+ var download_exports = {};
21
+ __export(download_exports, {
22
+ downloadFile: () => downloadFile
23
+ });
24
+ module.exports = __toCommonJS(download_exports);
25
+ var downloadFile = (url, filename) => {
26
+ const isApp = window.navigator.userAgent.includes("Capacitor");
27
+ if (isApp) {
28
+ window.open(url, "_blank");
29
+ return;
30
+ }
31
+ const link = document.createElement("a");
32
+ link.href = url;
33
+ link.target = "_blank";
34
+ if (filename) {
35
+ link.download = filename;
36
+ }
37
+ link.style.display = "none";
38
+ document.body.appendChild(link);
39
+ link.click();
40
+ setTimeout(() => {
41
+ document.body.removeChild(link);
42
+ }, 100);
43
+ };
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ downloadFile
47
+ });
@@ -0,0 +1,2 @@
1
+ export * from './download';
2
+ export { default as scanListener } from './scanListener';