@subiz/widget-v4 4.1.145 → 4.1.146

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 (29) hide show
  1. package/compiled_src/lib.js +1 -0
  2. package/dist/.HASH +1 -0
  3. package/dist/185.js +20 -78
  4. package/dist/1970d063f3c.app.js +1 -0
  5. package/dist/{196d399136f.form.html → 1970d063f3c.form.html} +1 -1
  6. package/dist/1970d063f3c.form.js +1 -0
  7. package/dist/{196d399136f.index.html → 1970d063f3c.index.html} +1 -1
  8. package/dist/{196d399136f.library.html → 1970d063f3c.library.html} +1 -1
  9. package/dist/{196d399136f.library.js → 1970d063f3c.library.js} +1 -1
  10. package/dist/{196d399136f.preview.html → 1970d063f3c.preview.html} +1 -1
  11. package/dist/{196d399136f.preview.js → 1970d063f3c.preview.js} +1 -1
  12. package/dist/1970d063f3c.webview.js +1 -0
  13. package/dist/screenshoot.js +43 -24
  14. package/package.json +1 -1
  15. package/src/lib.js +1 -0
  16. package/dist/196d399136f.app.js +0 -1
  17. package/dist/196d399136f.form.js +0 -1
  18. package/dist/196d399136f.webview.js +0 -1
  19. package/dist/HASH +0 -1
  20. /package/dist/{196d399136f.127.js → 1970d063f3c.127.js} +0 -0
  21. /package/dist/{196d399136f.132.js → 1970d063f3c.132.js} +0 -0
  22. /package/dist/{196d399136f.185.js → 1970d063f3c.185.js} +0 -0
  23. /package/dist/{196d399136f.27.js → 1970d063f3c.27.js} +0 -0
  24. /package/dist/{196d399136f.278.js → 1970d063f3c.278.js} +0 -0
  25. /package/dist/{196d399136f.339.js → 1970d063f3c.339.js} +0 -0
  26. /package/dist/{196d399136f.459.js → 1970d063f3c.459.js} +0 -0
  27. /package/dist/{196d399136f.490.js → 1970d063f3c.490.js} +0 -0
  28. /package/dist/{196d399136f.74.js → 1970d063f3c.74.js} +0 -0
  29. /package/dist/{196d399136f.997.js → 1970d063f3c.997.js} +0 -0
@@ -105,6 +105,7 @@ class Widget {
105
105
  return outmask;
106
106
  }
107
107
  async setAccount(id, $container, mask, cb) {
108
+ if (!id) return;
108
109
  let outmask = await this.store.init(id, mask);
109
110
  _index.default.setTimeout(() => window.postMessage({
110
111
  type: 'widget_loaded',
package/dist/.HASH ADDED
@@ -0,0 +1 @@
1
+ 1970d063f3c
package/dist/185.js CHANGED
@@ -853,84 +853,26 @@ class order_Order extends common/* Com */.Mw {
853
853
  }
854
854
  renderDesktopPaymentMethod(order) {
855
855
  return null;
856
- let editmode = false;
857
- if (!order.status || order.status == 'open') {
858
- editmode = !order.user_confirmation;
859
- }
860
- if (editmode) {
861
- let pms = this.props.store.matchPaymentMethods();
862
- let $pms = sb.map(pms, pm => {
863
- let $name = pm.description;
864
- if (pm.method == 'bank_transfer') {
865
- $name = pm.description + ' ' + pm.bank_name + ' ' + pm.bank_branch;
866
- }
867
- let cls = 'order__card';
868
- let $desc = null;
869
- if (this.state.pm === pm.id) {
870
- cls += ' order__card__active';
871
- $desc = h("div", {
872
- class: "muted mt-1",
873
- style: "margin-left: 26px !important;"
874
- }, "Tr\u1EA3 ti\u1EC1n m\u1EB7t khi b\u1EA1n nh\u1EADn h\xE0ng");
875
- if (pm.method == 'bank_transfer') {
876
- $desc = h("div", {
877
- class: "muted mt-1",
878
- style: "margin-left: 26px !important;"
879
- }, h("div", null, "STK: ", pm.bank_number), h("div", null, "Ch\u1EE7 t\xE0i kho\u1EA3n: ", pm.bank_owner));
880
- }
881
- }
882
- return h("div", {
883
- style: "width: 100% !important; margin-top: 10px !important;"
884
- }, h("div", {
885
- class: "radio"
886
- }, h("input", {
887
- type: "radio",
888
- id: 'pm.' + pm.id,
889
- onInput: e => this.onChangePaymentMethod(pm.id),
890
- name: "pm",
891
- checked: this.state.pm === pm.id
892
- }), h("label", {
893
- class: "radio--label",
894
- style: `margin-left: 4px !important; font-weight: ${this.state.pm === pm.id ? 500 : 400} !important;`,
895
- for: 'pm.' + pm.id
896
- }, $name), h("div", {
897
- class: "radio--check"
898
- }, h("div", {
899
- class: "inside"
900
- })), $desc));
901
- });
902
- let seccls = 'card_section';
903
- if (this.isMobile()) seccls = 'order_section';
904
- return h(Fragment, null, h("div", {
905
- class: "order_section__line"
906
- }), h("div", {
907
- class: seccls
908
- }, h("div", {
909
- class: "order_label"
910
- }, this.props.t('payment')), h("div", {
911
- class: "form",
912
- style: "justify-content: space-between !important;"
913
- }, $pms)));
914
- }
915
- let pm = order.payment_method || {
916
- method: 'cod'
917
- };
918
- let $body = null;
919
- if (pm.method === 'cash') $body = h("div", null, this.props.t('pm_cash'));
920
- if (pm.method === 'cod') $body = h("div", null, this.props.t('pm_cod'));
921
- if (pm.method === 'bank_transfer') {
922
- let name = pm.bank_name;
923
- if (pm.bank_branch) name += ' - ' + pm.bank_branch;
924
- $body = h("div", null, h("div", null, "Ng\xE2n h\xE0ng: ", name), h("div", {
925
- class: "mt-1"
926
- }, "Ch\u1EE7 t\xE0i kho\u1EA3n: ", pm.bank_owner), h("div", {
927
- class: "mt-1"
928
- }, "S\u1ED1 t\xE0i kho\u1EA3n: ", pm.bank_number));
929
- }
930
- if (!$body) return null;
931
- return h(Fragment, null, h("div", {
932
- class: "order_label"
933
- }, this.props.t('payment')), $body);
856
+ // removed by dead control flow
857
+ {}
858
+ // removed by dead control flow
859
+ {}
860
+ // removed by dead control flow
861
+ {}
862
+ // removed by dead control flow
863
+ {}
864
+ // removed by dead control flow
865
+ {}
866
+ // removed by dead control flow
867
+ {}
868
+ // removed by dead control flow
869
+ {}
870
+ // removed by dead control flow
871
+ {}
872
+ // removed by dead control flow
873
+ {}
874
+ // removed by dead control flow
875
+ {}
934
876
  }
935
877
  renderDesktopShipping(order) {
936
878
  let editmode = false;