ts-glitter 21.5.3 → 21.5.5

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 (79) hide show
  1. package/lowcode/Entry.js +1 -1
  2. package/lowcode/Entry.ts +1 -1
  3. package/lowcode/cms-plugin/account-info.js +79 -67
  4. package/lowcode/cms-plugin/account-info.ts +327 -311
  5. package/lowcode/cms-plugin/information/information-module.ts +3 -1
  6. package/lowcode/cms-plugin/list-header-option.js +1 -0
  7. package/lowcode/cms-plugin/list-header-option.ts +1 -0
  8. package/lowcode/cms-plugin/shopping-information.js +468 -0
  9. package/lowcode/cms-plugin/shopping-information.ts +557 -0
  10. package/lowcode/cms-plugin/shopping-market-shopee.js +283 -231
  11. package/lowcode/cms-plugin/shopping-market-shopee.ts +401 -361
  12. package/lowcode/cms-plugin/shopping-order-manager.js +16 -4
  13. package/lowcode/cms-plugin/shopping-order-manager.ts +18 -3
  14. package/lowcode/glitter-base/global/language.js +4 -1
  15. package/lowcode/glitter-base/global/language.ts +4 -2
  16. package/lowcode/glitter-base/route/shopee.js +48 -11
  17. package/lowcode/glitter-base/route/shopee.ts +119 -80
  18. package/lowcode/glitterBundle/plugins/html-render.js +121 -90
  19. package/lowcode/glitterBundle/plugins/html-render.ts +367 -318
  20. package/lowcode/modules/image-library.js +2 -3
  21. package/lowcode/modules/image-library.ts +21 -7
  22. package/lowcode/public-components/checkout/index.js +90 -41
  23. package/lowcode/public-components/checkout/index.ts +101 -49
  24. package/lowcode/public-components/footer/footer-initial.js +11 -2
  25. package/lowcode/public-components/footer/footer-initial.ts +29 -18
  26. package/lowcode/public-components/headers/header-class.js +47 -35
  27. package/lowcode/public-components/headers/header-class.ts +54 -38
  28. package/lowcode/public-components/layout-plugin/social-links-01.js +122 -3
  29. package/lowcode/public-components/layout-plugin/social-links-01.ts +135 -10
  30. package/lowcode/public-components/product/pd-card-01.js +23 -14
  31. package/lowcode/public-components/product/pd-card-01.ts +25 -14
  32. package/lowcode/public-components/product/pd-card-02.js +23 -16
  33. package/lowcode/public-components/product/pd-card-02.ts +25 -16
  34. package/lowcode/public-components/product/pd-card-03.js +25 -16
  35. package/lowcode/public-components/product/pd-card-03.ts +27 -16
  36. package/lowcode/public-components/terms-related/index.js +13 -2
  37. package/lowcode/public-components/terms-related/index.ts +15 -2
  38. package/lowcode/public-components/user-manager/um-class.js +490 -501
  39. package/lowcode/public-components/user-manager/um-class.ts +872 -882
  40. package/lowcode/public-components/user-manager/um-info.js +41 -40
  41. package/lowcode/public-components/user-manager/um-info.ts +54 -56
  42. package/lowcode/public-components/user-manager/um-login.js +10 -13
  43. package/lowcode/public-components/user-manager/um-login.ts +15 -23
  44. package/lowcode/public-components/user-manager/um-orderlist.js +60 -51
  45. package/lowcode/public-components/user-manager/um-orderlist.ts +289 -275
  46. package/lowcode/public-components/user-manager/um-rebate.js +104 -82
  47. package/lowcode/public-components/user-manager/um-rebate.ts +294 -267
  48. package/lowcode/public-components/user-manager/um-receive.js +582 -0
  49. package/lowcode/public-components/user-manager/um-receive.ts +599 -0
  50. package/lowcode/public-components/user-manager/um-wishlist.js +72 -68
  51. package/lowcode/public-components/user-manager/um-wishlist.ts +240 -230
  52. package/package.json +1 -1
  53. package/src/api-public/controllers/shopee.js +17 -0
  54. package/src/api-public/controllers/shopee.js.map +1 -1
  55. package/src/api-public/controllers/shopee.ts +32 -0
  56. package/src/api-public/services/monitor.d.ts +1 -0
  57. package/src/api-public/services/post.js +17 -7
  58. package/src/api-public/services/post.js.map +1 -1
  59. package/src/api-public/services/rebate.js +2 -11
  60. package/src/api-public/services/rebate.js.map +1 -1
  61. package/src/api-public/services/rebate.ts +5 -12
  62. package/src/api-public/services/shopee.d.ts +23 -2
  63. package/src/api-public/services/shopee.js +230 -111
  64. package/src/api-public/services/shopee.js.map +1 -1
  65. package/src/api-public/services/shopee.ts +1012 -838
  66. package/src/api-public/services/user.js +2 -2
  67. package/src/api-public/services/user.js.map +1 -1
  68. package/src/api-public/services/user.ts +3 -3
  69. package/src/index.js +17 -7
  70. package/src/index.js.map +1 -1
  71. package/src/modules/tool.d.ts +4 -4
  72. package/src/modules/tool.js +2 -1
  73. package/src/modules/tool.js.map +1 -1
  74. package/src/services/backend-service.js +17 -7
  75. package/src/services/backend-service.js.map +1 -1
  76. package/src/services/template.d.ts +1 -1
  77. package/src/services/template.js +24 -18
  78. package/src/services/template.js.map +1 -1
  79. package/src/services/template.ts +34 -37
@@ -24,9 +24,8 @@ export class UmClass {
24
24
  loading: true,
25
25
  pageName: glitter.getUrlParameter('page'),
26
26
  };
27
- let changePage = (index, type, subData) => {
28
- };
29
- gvc.glitter.getModule(new URL('./official_event/page/change-page.js', gvc.glitter.root_path).href, (cl) => {
27
+ let changePage = (index, type, subData) => { };
28
+ gvc.glitter.getModule(new URL('./official_event/page/change-page.js', gvc.glitter.root_path).href, cl => {
30
29
  changePage = cl.changePage;
31
30
  });
32
31
  return gvc.bindView({
@@ -36,7 +35,9 @@ export class UmClass {
36
35
  return '';
37
36
  }
38
37
  else {
39
- glitter.share.rebateConfig.title = CheckInput.isEmpty(glitter.share.rebateConfig.title) ? Language.text('shopping_credit') : glitter.share.rebateConfig.title;
38
+ glitter.share.rebateConfig.title = CheckInput.isEmpty(glitter.share.rebateConfig.title)
39
+ ? Language.text('shopping_credit')
40
+ : glitter.share.rebateConfig.title;
40
41
  const buttonHTML = [
41
42
  {
42
43
  key: 'account_userinfo',
@@ -67,14 +68,16 @@ export class UmClass {
67
68
  title: Language.text('logout'),
68
69
  },
69
70
  ]
70
- .map((item) => {
71
+ .map(item => {
71
72
  if (item.key == 'wishlist' && window.store_info.wishlist == false) {
72
73
  return '';
73
74
  }
74
75
  return html `
75
- <div
76
- class="option px-2 d-flex justify-content-center um-nav-btn ${vm.pageName === item.key ? 'um-nav-btn-active' : ''}"
77
- onclick="${gvc.event(() => __awaiter(this, void 0, void 0, function* () {
76
+ <div
77
+ class="option px-2 d-flex justify-content-center um-nav-btn ${vm.pageName === item.key
78
+ ? 'um-nav-btn-active'
79
+ : ''}"
80
+ onclick="${gvc.event(() => __awaiter(this, void 0, void 0, function* () {
78
81
  if (item.key === 'reset_password') {
79
82
  const dialog = new ShareDialog(gvc.glitter);
80
83
  dialog.dataLoading({ visible: true });
@@ -92,39 +95,35 @@ export class UmClass {
92
95
  let get_verify_timer = 0;
93
96
  let repeat_pwd = '';
94
97
  return [
95
- html `
96
- <div class="tx_normal fw-normal mb-1">
97
- ${Language.text('password')}
98
- </div>`,
98
+ html ` <div class="tx_normal fw-normal mb-1">${Language.text('password')}</div>`,
99
99
  html `<input
100
- class="bgw-input"
101
- type="password"
102
- placeholder="${Language.text('please_enter_password')}"
103
- oninput="${gvc.event((e) => {
100
+ class="bgw-input"
101
+ type="password"
102
+ placeholder="${Language.text('please_enter_password')}"
103
+ oninput="${gvc.event(e => {
104
104
  update_vm.pwd = e.value;
105
105
  })}"
106
- value="${update_vm.pwd}"
107
- />`,
108
- html `
109
- <div class="tx_normal fw-normal mt-2 mb-1">
110
- ${Language.text('confirm_password')}
111
- </div>`,
106
+ value="${update_vm.pwd}"
107
+ />`,
108
+ html ` <div class="tx_normal fw-normal mt-2 mb-1">
109
+ ${Language.text('confirm_password')}
110
+ </div>`,
112
111
  html `<input
113
- class="bgw-input mb-2"
114
- type="password"
115
- placeholder="${Language.text('please_enter_password_again')}"
116
- oninput="${gvc.event((e) => {
112
+ class="bgw-input mb-2"
113
+ type="password"
114
+ placeholder="${Language.text('please_enter_password_again')}"
115
+ oninput="${gvc.event(e => {
117
116
  repeat_pwd = e.value;
118
117
  })}"
119
- value="${repeat_pwd}"
120
- />`,
118
+ value="${repeat_pwd}"
119
+ />`,
121
120
  gvc.bindView(() => {
122
121
  const id = gvc.glitter.getUUID();
123
122
  return {
124
123
  bind: id,
125
124
  view: () => {
126
125
  return html `${Language.text('reset_password_verification_code')}
127
- ${UmClass.style_components.blueNote(get_verify_timer
126
+ ${UmClass.style_components.blueNote(get_verify_timer
128
127
  ? `${Language.text('verification_code_sent_to')}『${userData.userData.email}』`
129
128
  : Language.text('get_verification_code'), gvc.event(() => {
130
129
  if (!get_verify_timer) {
@@ -153,22 +152,20 @@ export class UmClass {
153
152
  };
154
153
  }),
155
154
  html `<input
156
- class="bgw-input mt-2 mb-4"
157
- type="text"
158
- placeholder="${Language.text('please_enter_verification_code')}"
159
- oninput="${gvc.event((e, event) => {
155
+ class="bgw-input mt-2 mb-4"
156
+ type="text"
157
+ placeholder="${Language.text('please_enter_verification_code')}"
158
+ oninput="${gvc.event((e, event) => {
160
159
  update_vm.verify_code = e.value;
161
160
  })}"
162
- value="${update_vm.verify_code}"
163
- />`,
164
- html `
165
- <div
166
- class="d-flex align-items-center justify-content-end pt-2 border-top mx-n3">
167
- <div
168
- class="um-nav-btn um-nav-btn-active d-flex align-items-center justify-content-center"
169
- style="cursor:pointer;"
170
- type="button"
171
- onclick="${gvc.event(() => {
161
+ value="${update_vm.verify_code}"
162
+ />`,
163
+ html ` <div class="d-flex align-items-center justify-content-end pt-2 border-top mx-n3">
164
+ <div
165
+ class="um-nav-btn um-nav-btn-active d-flex align-items-center justify-content-center"
166
+ style="cursor:pointer;"
167
+ type="button"
168
+ onclick="${gvc.event(() => {
172
169
  if (update_vm.pwd.length < 8) {
173
170
  dialog.errorMessage({ text: Language.text('password_min_length') });
174
171
  return;
@@ -180,7 +177,7 @@ export class UmClass {
180
177
  dialog.dataLoading({ visible: true });
181
178
  ApiUser.updateUserData({
182
179
  userData: update_vm,
183
- }).then((res) => {
180
+ }).then(res => {
184
181
  dialog.dataLoading({ visible: false });
185
182
  if (!res.result && res.response.data.msg === 'email-verify-false') {
186
183
  dialog.errorMessage({ text: Language.text('email_verification_code_incorrect') });
@@ -203,11 +200,10 @@ export class UmClass {
203
200
  }
204
201
  });
205
202
  })}"
206
- >
207
- <span
208
- class="tx_700_white">${Language.text('confirm_reset')}</span>
209
- </div>
210
- </div>`,
203
+ >
204
+ <span class="tx_700_white">${Language.text('confirm_reset')}</span>
205
+ </div>
206
+ </div>`,
211
207
  ].join('');
212
208
  },
213
209
  });
@@ -220,38 +216,29 @@ export class UmClass {
220
216
  changePage(item.key, 'page', {});
221
217
  }
222
218
  }))}"
223
- >
224
- ${item.title}
225
- </div>
226
- `;
219
+ >
220
+ ${item.title}
221
+ </div>
222
+ `;
227
223
  })
228
224
  .join('');
229
- return html `
230
- <div class="account-section">
231
- <div class="section-title mb-4 mt-0 pt-lg-3 um-nav-title px-2">
232
- ${Language.text('my_profile')}
233
- </div>
234
- ${document.body.clientWidth > 768
235
- ? html `
236
- <div class="mx-auto mt-3 um-nav-container">
237
- <div class="account-options d-flex gap-3">${buttonHTML}</div>
238
- </div>`
239
- : html `
240
- <div class="account-navigation w-100">
241
- <nav class="nav-links mb-3 mb-md-0">
242
- <div
243
- class="nav-options d-flex flex-wrap um-nav-mobile-tags-container px-0">
244
- ${buttonHTML}
245
- </div>
246
- </nav>
247
- </div>`}
248
- </div>`;
225
+ return html ` <div class="account-section">
226
+ <div class="section-title mb-4 mt-0 pt-lg-3 um-nav-title px-2">${Language.text('my_profile')}</div>
227
+ ${document.body.clientWidth > 768
228
+ ? html ` <div class="mx-auto mt-3 um-nav-container">
229
+ <div class="account-options d-flex gap-3">${buttonHTML}</div>
230
+ </div>`
231
+ : html ` <div class="account-navigation w-100">
232
+ <nav class="nav-links mb-3 mb-md-0">
233
+ <div class="nav-options d-flex flex-wrap um-nav-mobile-tags-container px-0">${buttonHTML}</div>
234
+ </nav>
235
+ </div>`}
236
+ </div>`;
249
237
  }
250
238
  },
251
- divCreate: {},
252
239
  onCreate: () => {
253
240
  if (vm.loading) {
254
- UmClass.getRebateInfo().then((data) => {
241
+ UmClass.getRebateInfo().then(data => {
255
242
  glitter.share.rebateConfig = data;
256
243
  vm.loading = false;
257
244
  gvc.notifyDataChange(vm.id);
@@ -276,54 +263,58 @@ export class UmClass {
276
263
  visible: ((_l = obj === null || obj === void 0 ? void 0 : obj.text) === null || _l === void 0 ? void 0 : _l.visible) === false ? false : true,
277
264
  fontSize: (_o = (_m = obj === null || obj === void 0 ? void 0 : obj.text) === null || _m === void 0 ? void 0 : _m.fontSize) !== null && _o !== void 0 ? _o : 16,
278
265
  };
279
- return html `
280
- <div class="d-flex align-items-center justify-content-center flex-column w-100 mx-auto ${container.class}"
281
- style="${container.style}">
282
- <div
283
- class="spinner-border ${circleAttr.visible ? '' : 'd-none'}"
284
- style="font-size: ${circleAttr.borderSize}px; width: ${circleAttr.width}px; height: ${circleAttr.width}px;"
285
- role="status"
286
- ></div>
287
- <span class="mt-3 ${textAttr.visible ? '' : 'd-none'}"
288
- style="font-size: ${textAttr.fontSize}px;">${textAttr.value}</span>
289
- </div>`;
266
+ return html ` <div
267
+ class="d-flex align-items-center justify-content-center flex-column w-100 mx-auto ${container.class}"
268
+ style="${container.style}"
269
+ >
270
+ <div
271
+ class="spinner-border ${circleAttr.visible ? '' : 'd-none'}"
272
+ style="font-size: ${circleAttr.borderSize}px; width: ${circleAttr.width}px; height: ${circleAttr.width}px;"
273
+ role="status"
274
+ ></div>
275
+ <span class="mt-3 ${textAttr.visible ? '' : 'd-none'}" style="font-size: ${textAttr.fontSize}px;"
276
+ >${textAttr.value}</span
277
+ >
278
+ </div>`;
290
279
  }
291
280
  static dialog(obj) {
292
281
  return obj.gvc.glitter.innerDialog((gvc) => {
293
282
  var _a;
294
- return html `
295
- <div
296
- class="bg-white shadow rounded-3"
297
- style="overflow-y: auto; ${document.body.clientWidth > 768 ? `width: ${obj.width || 600}px;` : `width: ${obj.width ? `${obj.width}px` : `90vw`}; max-width: 92.5vw;`}"
298
- >
299
- <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto; position: relative;">
300
- <div class="w-100 d-flex align-items-center p-3 border-bottom"
301
- style="position: sticky; top: 0; background: #fff;">
302
- <div style="font-size: 16px; font-weight: 700; color: #292218;">${(_a = obj.title) !== null && _a !== void 0 ? _a : ''}</div>
303
- <div class="flex-fill"></div>
304
- <i
305
- class="fa-regular fa-circle-xmark fs-5 text-dark"
306
- style="cursor: pointer"
307
- onclick="${gvc.event(() => {
283
+ return html ` <div
284
+ class="bg-white shadow rounded-3"
285
+ style="overflow-y: auto; ${document.body.clientWidth > 768
286
+ ? `width: ${obj.width || 600}px;`
287
+ : `width: ${obj.width ? `${obj.width}px` : `90vw`}; max-width: 92.5vw;`}"
288
+ >
289
+ <div class="bg-white shadow rounded-3" style="width: 100%; overflow-y: auto; position: relative;">
290
+ <div
291
+ class="w-100 d-flex align-items-center p-3 border-bottom"
292
+ style="position: sticky; top: 0; background: #fff;"
293
+ >
294
+ <div style="font-size: 16px; font-weight: 700; color: #292218;">${(_a = obj.title) !== null && _a !== void 0 ? _a : ''}</div>
295
+ <div class="flex-fill"></div>
296
+ <i
297
+ class="fa-regular fa-circle-xmark fs-5 text-dark"
298
+ style="cursor: pointer"
299
+ onclick="${gvc.event(() => {
308
300
  gvc.closeDialog();
309
301
  })}"
310
- ></i>
311
- </div>
312
- <div class="c_dialog">
313
- <div class="c_dialog_body">
314
- <div class="c_dialog_main"
315
- style="gap: 24px; height: auto; max-height: 500px; padding: 12px 20px;">
316
- ${obj.innerHTML(gvc)}
317
- </div>
318
- </div>
319
- </div>
320
- </div>
321
- </div>`;
302
+ ></i>
303
+ </div>
304
+ <div class="c_dialog">
305
+ <div class="c_dialog_body">
306
+ <div class="c_dialog_main" style="gap: 24px; height: auto; max-height: 500px; padding: 12px 20px;">
307
+ ${obj.innerHTML(gvc)}
308
+ </div>
309
+ </div>
310
+ </div>
311
+ </div>
312
+ </div>`;
322
313
  }, obj.tag);
323
314
  }
324
315
  static getRebateInfo() {
325
316
  return __awaiter(this, void 0, void 0, function* () {
326
- return new Promise((resolve) => {
317
+ return new Promise(resolve => {
327
318
  ApiWallet.getRebateConfig({
328
319
  type: 'me',
329
320
  }).then((res) => __awaiter(this, void 0, void 0, function* () {
@@ -367,7 +358,7 @@ export class UmClass {
367
358
  gvc.glitter.ut.queue['api-get-user_data'] = undefined;
368
359
  }
369
360
  });
370
- })).then((data) => {
361
+ })).then(data => {
371
362
  return data;
372
363
  });
373
364
  });
@@ -382,351 +373,350 @@ export class UmClass {
382
373
  const solidButtonBgr = (_e = globalValue['theme_color.0.solid-button-bg']) !== null && _e !== void 0 ? _e : '#292218';
383
374
  const solidButtonText = (_f = globalValue['theme_color.0.solid-button-text']) !== null && _f !== void 0 ? _f : '#000000';
384
375
  gvc.addStyle(`
385
-
386
- .um-nav-title {
387
- font-weight: 700;
388
- font-size: 36px;
389
- color: ${titleFontColor};
390
- }
391
-
392
- .um-nav-btn {
393
- white-space: nowrap;
394
- text-align: center;
395
- align-items: center;
396
- border-radius: 22px;
397
- height: 44px;
398
- cursor: pointer;
399
- font-size: 16px;
400
- min-width: 31%;
401
- max-width: 180px;
402
- background: #ffffff;
403
- border: 2px solid ${borderButtonBgr};
404
- color: ${borderButtonText};
405
- }
406
-
407
- .um-nav-btn.um-nav-btn-active {
408
- background: ${borderButtonBgr};
409
- color: #ffffff;
410
- font-weight: 600;
411
- }
412
-
413
- .um-nav-mobile-tags-container {
414
- gap: 10px;
415
- overflow-x: auto;
416
- align-items: center;
417
- }
418
-
419
- .um-solid-btn {
420
- background: ${solidButtonBgr};
421
- color: ${solidButtonText};
422
- cursor: pointer;
423
- display: flex;
424
- width: 100px;
425
- padding: 7px;
426
- justify-content: center;
427
- align-items: center;
428
- gap: 10px;
429
- border-radius: 5px;
430
- }
431
-
432
- .um-info-title {
433
- color: ${titleFontColor};
434
- font-size: 28px;
435
- }
436
-
437
- .um-info-insignia {
438
- border-radius: 20px;
439
- height: 32px;
440
- padding: 8px 16px;
441
- font-size: 14px;
442
- display: inline-block;
443
- font-weight: 600;
444
- line-height: 1;
445
- text-align: center;
446
- white-space: nowrap;
447
- vertical-align: baseline;
448
- background: #7e7e7e;
449
- color: #fff;
450
- }
451
-
452
- .um-info-note {
453
- color: #393939;
454
- font-size: 16px;
455
- }
456
-
457
- .um-info-event {
458
- color: #3564c0;
459
- font-size: 16px;
460
- cursor: pointer;
461
- }
462
-
463
- .um-title {
464
- text-align: start;
465
- font-size: 16px;
466
- font-weight: 700;
467
- line-height: 25.2px;
468
- word-wrap: break-word;
469
- color: ${titleFontColor};
470
- }
471
-
472
- .um-content {
473
- text-align: start;
474
- font-size: 14px;
475
- font-weight: 400;
476
- line-height: 25.2px;
477
- word-wrap: break-word;
478
- color: ${contentColor};
479
- }
480
-
481
- .um-linebar-container {
482
- flex-direction: column;
483
- justify-content: flex-start;
484
- align-items: flex-start;
485
- gap: 8px;
486
- display: flex;
487
- }
488
-
489
- .um-text-danger {
490
- color: #aa4b4b;
491
- }
492
-
493
- .um-linebar {
494
- border-radius: 40px;
495
- flex-direction: column;
496
- justify-content: flex-start;
497
- align-items: flex-start;
498
- display: flex;
499
- position: relative;
500
- overflow: hidden;
501
- }
502
-
503
- .um-linebar-behind {
504
- position: absolute;
505
- width: 100%;
506
- height: 100%;
507
- opacity: 0.4;
508
- background: ${solidButtonBgr};
509
- }
510
-
511
- .um-linebar-fill {
512
- padding: 10px;
513
- border-radius: 10px;
514
- height: 100%;
515
- }
516
-
517
- .bgw-input {
518
- width: 100%;
519
- height: 40px;
520
- padding: 0px 18px;
521
- border-radius: 10px;
522
- appearance: none;
523
- border: 1px solid ${borderButtonBgr};
524
- }
525
-
526
- .bgw-input[type='date'] {
527
- color: black;
528
- }
529
-
530
- .bgw-input[type='date']::before {
531
- content: attr(data-placeholder);
532
- position: absolute;
533
- color: #8d8d8d;
534
- pointer-events: none;
535
- font-size: 15px;
536
- }
537
-
538
- .bgw-input:focus {
539
- outline: 0;
540
- }
541
-
542
- .bgw-input-readonly:focus-visible {
543
- outline: 0;
544
- }
545
-
546
- .um-rb-bgr {
547
- background: whitesmoke;
548
- justify-content: space-between;
549
- gap: 18px;
550
- }
551
-
552
- .um-rb-amount {
553
- display: flex;
554
- align-items: center;
555
- font-size: 32px;
556
- line-height: 32px;
557
- }
558
-
559
- .um-container {
560
- display: flex;
561
- justify-content: center;
562
- margin: 2rem auto;
563
- width: 100%;
564
- }
565
-
566
- .um-th-bar {
567
- justify-content: space-around;
568
- align-items: center;
569
- height: 40px;
570
- }
571
-
572
- .um-th {
573
- text-align: start;
574
- font-size: 18px;
575
- font-style: normal;
576
- font-weight: 700;
577
- color: ${titleFontColor};
578
- }
579
-
580
- .um-td-bar {
581
- justify-content: space-around;
582
- align-items: center;
583
- height: 40px;
584
- border-bottom: 1px solid #e2d6cd;
585
- }
586
-
587
- .um-td {
588
- text-align: start;
589
- font-size: 18px;
590
- font-style: normal;
591
- font-weight: 400;
592
- color: ${titleFontColor};
593
- }
594
-
595
- .um-mobile-area {
596
- padding: 28px;
597
- margin-top: 12px;
598
- background: #ffffff;
599
- border-radius: 20px;
600
- overflow: hidden;
601
- justify-content: center;
602
- align-items: flex-start;
603
- display: flex;
604
- flex-direction: column;
605
- gap: 12px;
606
- border: 1px solid ${titleFontColor};
607
- }
608
-
609
- .um-mobile-text {
610
- text-align: start;
611
- font-size: 16px;
612
- font-weight: 400;
613
- line-height: 22.4px;
614
- letter-spacing: 0.64px;
615
- word-wrap: break-word;
616
- color: ${titleFontColor};
617
- }
618
-
619
- .um-img-bgr {
620
- padding-bottom: 100%;
621
- background-size: cover;
622
- background-position: center;
623
- background-repeat: no-repeat;
624
- }
625
-
626
- .um-card-title {
627
- font-weight: 600;
628
- color: ${titleFontColor};
629
- }
630
-
631
- .um-icon-container {
632
- position: absolute;
633
- right: 10px;
634
- top: 10px;
635
- width: 40px;
636
- height: 40px;
637
- border-radius: 50%;
638
- background: white;
639
- color: black;
640
- display: flex;
641
- align-items: center;
642
- justify-content: center;
643
- }
644
-
645
- .card-sale-price {
646
- font-family: 'Noto Sans';
647
- font-style: normal;
648
- line-height: normal;
649
- font-size: 16px;
650
- opacity: 0.9;
651
- color: #322b25;
652
- }
653
-
654
- .card-cost-price {
655
- font-family: 'Noto Sans';
656
- color: #d45151;
657
- font-style: normal;
658
- font-weight: 400;
659
- line-height: normal;
660
- font-size: 14px;
661
- margin-right: 4px;
662
- }
663
- .gray-line {
664
- border-bottom: 1px solid #dddddd;
665
- padding-bottom: 6px;
666
- margin-bottom: 6px;
667
- }
668
- .um-insignia {
669
- border-radius: 0.5rem;
670
- height: 26px;
671
- padding: 6px 8px;
672
- font-size: 14px;
673
- display: inline-block;
674
- font-weight: 500;
675
- line-height: 1;
676
- text-align: center;
677
- white-space: nowrap;
678
- vertical-align: baseline;
679
- }
680
- .um-insignia-secondary {
681
- background: #8d8d8d;
682
- color: #ffffff;
683
- }
684
-
685
- @media (min-width: 576px) {
686
- .um-container {
687
- max-width: 540px;
688
- }
689
- }
690
-
691
- @media (min-width: 768px) {
692
- .um-container {
693
- max-width: 720px;
694
- }
695
-
696
- .um-nav-btn {
697
- min-width: 110px;
698
- font-size: 14px;
699
- height: 40px;
700
- }
701
-
702
- .um-nav-title {
703
- font-size: 30px;
704
- }
705
-
706
- .um-rb-amount {
707
- font-size: 36px;
708
- line-height: 36px;
709
- }
710
- }
711
-
712
- @media (min-width: 992px) {
713
- .um-container {
714
- max-width: 800px;
715
- }
716
- }
717
-
718
- @media (min-width: 1200px) {
719
- .um-container {
720
- max-width: 860px;
721
- }
722
- }
723
-
724
- @media (min-width: 1400px) {
725
- .um-container {
726
- max-width: 960px;
727
- }
728
- }
729
- `);
376
+ .um-nav-title {
377
+ font-weight: 700;
378
+ font-size: 36px;
379
+ color: ${titleFontColor};
380
+ }
381
+
382
+ .um-nav-btn {
383
+ white-space: nowrap;
384
+ text-align: center;
385
+ align-items: center;
386
+ border-radius: 22px;
387
+ height: 44px;
388
+ cursor: pointer;
389
+ font-size: 16px;
390
+ min-width: 31%;
391
+ max-width: 180px;
392
+ background: #ffffff;
393
+ border: 2px solid ${borderButtonBgr};
394
+ color: ${borderButtonText};
395
+ }
396
+
397
+ .um-nav-btn.um-nav-btn-active {
398
+ background: ${borderButtonBgr};
399
+ color: #ffffff;
400
+ font-weight: 600;
401
+ }
402
+
403
+ .um-nav-mobile-tags-container {
404
+ gap: 10px;
405
+ overflow-x: auto;
406
+ align-items: center;
407
+ }
408
+
409
+ .um-solid-btn {
410
+ background: ${solidButtonBgr};
411
+ color: ${solidButtonText};
412
+ cursor: pointer;
413
+ display: flex;
414
+ width: 100px;
415
+ padding: 7px;
416
+ justify-content: center;
417
+ align-items: center;
418
+ gap: 10px;
419
+ border-radius: 5px;
420
+ }
421
+
422
+ .um-info-title {
423
+ color: ${titleFontColor};
424
+ font-size: 28px;
425
+ }
426
+
427
+ .um-info-insignia {
428
+ border-radius: 20px;
429
+ height: 32px;
430
+ padding: 8px 16px;
431
+ font-size: 14px;
432
+ display: inline-block;
433
+ font-weight: 600;
434
+ line-height: 1;
435
+ text-align: center;
436
+ white-space: nowrap;
437
+ vertical-align: baseline;
438
+ background: #7e7e7e;
439
+ color: #fff;
440
+ }
441
+
442
+ .um-info-note {
443
+ color: #393939;
444
+ font-size: 16px;
445
+ }
446
+
447
+ .um-info-event {
448
+ color: #3564c0;
449
+ font-size: 16px;
450
+ cursor: pointer;
451
+ }
452
+
453
+ .um-title {
454
+ text-align: start;
455
+ font-size: 16px;
456
+ font-weight: 700;
457
+ line-height: 25.2px;
458
+ word-wrap: break-word;
459
+ color: ${titleFontColor};
460
+ }
461
+
462
+ .um-content {
463
+ text-align: start;
464
+ font-size: 14px;
465
+ font-weight: 400;
466
+ line-height: 25.2px;
467
+ word-wrap: break-word;
468
+ color: ${contentColor};
469
+ }
470
+
471
+ .um-linebar-container {
472
+ flex-direction: column;
473
+ justify-content: flex-start;
474
+ align-items: flex-start;
475
+ gap: 8px;
476
+ display: flex;
477
+ }
478
+
479
+ .um-text-danger {
480
+ color: #aa4b4b;
481
+ }
482
+
483
+ .um-linebar {
484
+ border-radius: 40px;
485
+ flex-direction: column;
486
+ justify-content: flex-start;
487
+ align-items: flex-start;
488
+ display: flex;
489
+ position: relative;
490
+ overflow: hidden;
491
+ }
492
+
493
+ .um-linebar-behind {
494
+ position: absolute;
495
+ width: 100%;
496
+ height: 100%;
497
+ opacity: 0.4;
498
+ background: ${solidButtonBgr};
499
+ }
500
+
501
+ .um-linebar-fill {
502
+ padding: 10px;
503
+ border-radius: 10px;
504
+ height: 100%;
505
+ }
506
+
507
+ .bgw-input {
508
+ width: 100%;
509
+ height: 40px;
510
+ padding: 0px 18px;
511
+ border-radius: 10px;
512
+ appearance: none;
513
+ border: 1px solid ${borderButtonBgr};
514
+ }
515
+
516
+ .bgw-input[type='date'] {
517
+ color: black;
518
+ }
519
+
520
+ .bgw-input[type='date']::before {
521
+ content: attr(data-placeholder);
522
+ position: absolute;
523
+ color: #8d8d8d;
524
+ pointer-events: none;
525
+ font-size: 15px;
526
+ }
527
+
528
+ .bgw-input:focus {
529
+ outline: 0;
530
+ }
531
+
532
+ .bgw-input-readonly:focus-visible {
533
+ outline: 0;
534
+ }
535
+
536
+ .um-rb-bgr {
537
+ background: whitesmoke;
538
+ justify-content: space-between;
539
+ gap: 18px;
540
+ }
541
+
542
+ .um-rb-amount {
543
+ display: flex;
544
+ align-items: center;
545
+ font-size: 32px;
546
+ line-height: 32px;
547
+ }
548
+
549
+ .um-container {
550
+ display: flex;
551
+ justify-content: center;
552
+ margin: 2rem auto;
553
+ width: 100%;
554
+ }
555
+
556
+ .um-th-bar {
557
+ justify-content: space-around;
558
+ align-items: center;
559
+ height: 40px;
560
+ }
561
+
562
+ .um-th {
563
+ text-align: start;
564
+ font-size: 18px;
565
+ font-style: normal;
566
+ font-weight: 700;
567
+ color: ${titleFontColor};
568
+ }
569
+
570
+ .um-td-bar {
571
+ justify-content: space-around;
572
+ align-items: center;
573
+ height: 40px;
574
+ border-bottom: 1px solid #e2d6cd;
575
+ }
576
+
577
+ .um-td {
578
+ text-align: start;
579
+ font-size: 18px;
580
+ font-style: normal;
581
+ font-weight: 400;
582
+ color: ${titleFontColor};
583
+ }
584
+
585
+ .um-mobile-area {
586
+ padding: 28px;
587
+ margin-top: 12px;
588
+ background: #ffffff;
589
+ border-radius: 20px;
590
+ overflow: hidden;
591
+ justify-content: center;
592
+ align-items: flex-start;
593
+ display: flex;
594
+ flex-direction: column;
595
+ gap: 12px;
596
+ border: 1px solid ${titleFontColor};
597
+ }
598
+
599
+ .um-mobile-text {
600
+ text-align: start;
601
+ font-size: 16px;
602
+ font-weight: 400;
603
+ line-height: 22.4px;
604
+ letter-spacing: 0.64px;
605
+ word-wrap: break-word;
606
+ color: ${titleFontColor};
607
+ }
608
+
609
+ .um-img-bgr {
610
+ padding-bottom: 100%;
611
+ background-size: cover;
612
+ background-position: center;
613
+ background-repeat: no-repeat;
614
+ }
615
+
616
+ .um-card-title {
617
+ font-weight: 600;
618
+ color: ${titleFontColor};
619
+ }
620
+
621
+ .um-icon-container {
622
+ position: absolute;
623
+ right: 10px;
624
+ top: 10px;
625
+ width: 40px;
626
+ height: 40px;
627
+ border-radius: 50%;
628
+ background: white;
629
+ color: black;
630
+ display: flex;
631
+ align-items: center;
632
+ justify-content: center;
633
+ }
634
+
635
+ .card-sale-price {
636
+ font-family: 'Noto Sans';
637
+ font-style: normal;
638
+ line-height: normal;
639
+ font-size: 16px;
640
+ opacity: 0.9;
641
+ color: #322b25;
642
+ }
643
+
644
+ .card-cost-price {
645
+ font-family: 'Noto Sans';
646
+ color: #d45151;
647
+ font-style: normal;
648
+ font-weight: 400;
649
+ line-height: normal;
650
+ font-size: 14px;
651
+ margin-right: 4px;
652
+ }
653
+ .gray-line {
654
+ border-bottom: 1px solid #dddddd;
655
+ padding-bottom: 6px;
656
+ margin-bottom: 6px;
657
+ }
658
+ .um-insignia {
659
+ border-radius: 0.5rem;
660
+ height: 26px;
661
+ padding: 6px 8px;
662
+ font-size: 14px;
663
+ display: inline-block;
664
+ font-weight: 500;
665
+ line-height: 1;
666
+ text-align: center;
667
+ white-space: nowrap;
668
+ vertical-align: baseline;
669
+ }
670
+ .um-insignia-secondary {
671
+ background: #8d8d8d;
672
+ color: #ffffff;
673
+ }
674
+
675
+ @media (min-width: 576px) {
676
+ .um-container {
677
+ max-width: 540px;
678
+ }
679
+ }
680
+
681
+ @media (min-width: 768px) {
682
+ .um-container {
683
+ max-width: 720px;
684
+ }
685
+
686
+ .um-nav-btn {
687
+ min-width: 110px;
688
+ font-size: 14px;
689
+ height: 40px;
690
+ }
691
+
692
+ .um-nav-title {
693
+ font-size: 30px;
694
+ }
695
+
696
+ .um-rb-amount {
697
+ font-size: 36px;
698
+ line-height: 36px;
699
+ }
700
+ }
701
+
702
+ @media (min-width: 992px) {
703
+ .um-container {
704
+ max-width: 800px;
705
+ }
706
+ }
707
+
708
+ @media (min-width: 1200px) {
709
+ .um-container {
710
+ max-width: 860px;
711
+ }
712
+ }
713
+
714
+ @media (min-width: 1400px) {
715
+ .um-container {
716
+ max-width: 960px;
717
+ }
718
+ }
719
+ `);
730
720
  }
731
721
  static jumpAlert(obj) {
732
722
  var _a, _b;
@@ -752,33 +742,32 @@ export class UmClass {
752
742
  })();
753
743
  const transX = obj.align === 'center' ? '-50%' : '0';
754
744
  obj.gvc.addStyle(`
755
- .bounce-effect-${className} {
756
- animation: bounce 0.5s alternate;
757
- animation-iteration-count: 2;
758
- position: fixed;
759
- ${fixedStyle}
760
- background-color: #393939;
761
- opacity: 0.85;
762
- color: white;
763
- padding: 10px;
764
- border-radius: 8px;
765
- width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 120}px;
766
- text-align: center;
767
- z-index: 100001;
768
- transform: translateX(${transX});
769
- }
770
-
771
- @keyframes bounce {
772
- 0% {
773
- transform: translate(${transX}, 0);
774
- }
775
- 100% {
776
- transform: translate(${transX}, -6px);
777
- }
778
- }
779
- `);
780
- const htmlString = html `
781
- <div class="bounce-effect-${className}">${obj.text}</div>`;
745
+ .bounce-effect-${className} {
746
+ animation: bounce 0.5s alternate;
747
+ animation-iteration-count: 2;
748
+ position: fixed;
749
+ ${fixedStyle}
750
+ background-color: #393939;
751
+ opacity: 0.85;
752
+ color: white;
753
+ padding: 10px;
754
+ border-radius: 8px;
755
+ width: ${(_a = obj.width) !== null && _a !== void 0 ? _a : 120}px;
756
+ text-align: center;
757
+ z-index: 100001;
758
+ transform: translateX(${transX});
759
+ }
760
+
761
+ @keyframes bounce {
762
+ 0% {
763
+ transform: translate(${transX}, 0);
764
+ }
765
+ 100% {
766
+ transform: translate(${transX}, -6px);
767
+ }
768
+ }
769
+ `);
770
+ const htmlString = html ` <div class="bounce-effect-${className}">${obj.text}</div>`;
782
771
  obj.gvc.glitter.document.body.insertAdjacentHTML('beforeend', htmlString);
783
772
  setTimeout(() => {
784
773
  const element = document.querySelector(`.bounce-effect-${className}`);
@@ -795,14 +784,14 @@ export class UmClass {
795
784
  url: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1722936949034-default_image.jpg',
796
785
  };
797
786
  const wh = `
798
- display: flex;
799
- min-width: ${obj.width}px;
800
- min-height: ${(_a = obj.height) !== null && _a !== void 0 ? _a : obj.width}px;
801
- max-width: ${obj.width}px;
802
- max-height: ${(_b = obj.height) !== null && _b !== void 0 ? _b : obj.width}px;
803
- object-fit: cover;
804
- object-position: center;
805
- `;
787
+ display: flex;
788
+ min-width: ${obj.width}px;
789
+ min-height: ${(_a = obj.height) !== null && _a !== void 0 ? _a : obj.width}px;
790
+ max-width: ${obj.width}px;
791
+ max-height: ${(_b = obj.height) !== null && _b !== void 0 ? _b : obj.width}px;
792
+ object-fit: cover;
793
+ object-position: center;
794
+ `;
806
795
  return obj.gvc.bindView({
807
796
  bind: imageVM.id,
808
797
  view: () => {
@@ -849,7 +838,7 @@ export class UmClass {
849
838
  },
850
839
  onCreate: () => {
851
840
  function isImageUrlValid(url) {
852
- return new Promise((resolve) => {
841
+ return new Promise(resolve => {
853
842
  const img = new Image();
854
843
  img.onload = () => resolve(true);
855
844
  img.onerror = () => resolve(false);
@@ -857,7 +846,7 @@ export class UmClass {
857
846
  });
858
847
  }
859
848
  if (imageVM.loading) {
860
- isImageUrlValid(obj.image).then((isValid) => {
849
+ isImageUrlValid(obj.image).then(isValid => {
861
850
  if (isValid) {
862
851
  imageVM.url = obj.image;
863
852
  }
@@ -872,9 +861,9 @@ export class UmClass {
872
861
  UmClass.style_components = {
873
862
  blueNote(text, event = '', style = '') {
874
863
  return html `<span
875
- style="color: #4D86DB; font-size: 14px; font-weight: 400; cursor:pointer; overflow-wrap: break-word; ${style}"
876
- onclick="${event}"
877
- >${text}</span
878
- >`;
879
- }
864
+ style="color: #4D86DB; font-size: 14px; font-weight: 400; cursor:pointer; overflow-wrap: break-word; ${style}"
865
+ onclick="${event}"
866
+ >${text}</span
867
+ >`;
868
+ },
880
869
  };