@pisell/private-materials 3.0.126 → 3.0.128-gray

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 (48) 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/meta.js +1 -1
  5. package/build/lowcode/preview.js +2 -2
  6. package/build/lowcode/render/default/view.js +8 -8
  7. package/build/lowcode/view.js +4 -4
  8. package/es/components/booking/components/TabProduct/index.js +63 -60
  9. package/es/components/booking/components/customSelect/index.d.ts +1 -1
  10. package/es/components/booking/forms/forms.d.ts +2 -2
  11. package/es/components/booking/forms/forms.js +61 -58
  12. package/es/components/booking/info/client/index.d.ts +4 -4
  13. package/es/components/booking/info/client/index.js +94 -90
  14. package/es/components/booking/info/clientVariant/vertical/index.js +5 -4
  15. package/es/components/booking/info/header/index.js +2 -2
  16. package/es/components/booking/info/index.js +1 -1
  17. package/es/components/booking/info/pet/index.d.ts +3 -3
  18. package/es/components/booking/info/pet/index.js +135 -131
  19. package/es/components/booking/info/service/addService/index.js +47 -45
  20. package/es/components/booking/info/service/addTimeModal/index.d.ts +2 -2
  21. package/es/components/booking/info/service/addTimeModal/index.js +218 -225
  22. package/es/components/booking/info/service/editService/index.js +194 -192
  23. package/es/components/booking/info/service/index.d.ts +2 -2
  24. package/es/components/booking/info/service/index.js +1 -1
  25. package/es/components/booking/locales.d.ts +6 -6
  26. package/es/components/booking/locales.js +6 -6
  27. package/es/components/eftposPay/store/index.d.ts +2 -2
  28. package/lib/components/booking/components/TabProduct/index.js +61 -58
  29. package/lib/components/booking/components/customSelect/index.d.ts +1 -1
  30. package/lib/components/booking/forms/forms.d.ts +2 -2
  31. package/lib/components/booking/forms/forms.js +90 -75
  32. package/lib/components/booking/info/client/index.d.ts +4 -4
  33. package/lib/components/booking/info/client/index.js +59 -48
  34. package/lib/components/booking/info/clientVariant/vertical/index.js +5 -4
  35. package/lib/components/booking/info/header/index.js +1 -1
  36. package/lib/components/booking/info/index.js +1 -1
  37. package/lib/components/booking/info/pet/index.d.ts +3 -3
  38. package/lib/components/booking/info/pet/index.js +113 -84
  39. package/lib/components/booking/info/service/addService/index.js +112 -99
  40. package/lib/components/booking/info/service/addTimeModal/index.d.ts +2 -2
  41. package/lib/components/booking/info/service/addTimeModal/index.js +154 -127
  42. package/lib/components/booking/info/service/editService/index.js +196 -171
  43. package/lib/components/booking/info/service/index.d.ts +2 -2
  44. package/lib/components/booking/info/service/index.js +1 -1
  45. package/lib/components/booking/locales.d.ts +6 -6
  46. package/lib/components/booking/locales.js +6 -6
  47. package/lib/components/eftposPay/store/index.d.ts +2 -2
  48. package/package.json +4 -4
@@ -20,18 +20,19 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
21
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
- import React, { useCallback, useContext, useEffect, useMemo, useState, useRef } from "react";
24
- import PlusCircle from "@pisell/icon/es/PlusCircle";
25
- import DotsVertical from "@pisell/icon/es/DotsVertical";
26
- import User01 from "@pisell/icon/es/User01";
23
+ import React, { useCallback, useContext, useEffect, useMemo, useState, useRef } from 'react';
24
+ import PlusCircle from '@pisell/icon/es/PlusCircle';
25
+ import DotsVertical from '@pisell/icon/es/DotsVertical';
26
+ import User01 from '@pisell/icon/es/User01';
27
27
  import { Context, walkInData } from "../model";
28
- import { Avatar, Dropdown, Button, Spin } from "antd";
28
+ import { Avatar, Dropdown, Button, Spin } from 'antd';
29
29
  import CustomSelect from "../../components/customSelect";
30
30
  import "./index.less";
31
- import { image, locales } from "@pisell/utils";
31
+ import { image, locales } from '@pisell/utils';
32
32
  import { isWalkIn as getIsWalkIn } from "../../utils";
33
33
  import { getFranchiseeCustomerInfo, getFranchiseeCustomerList } from "./serve";
34
- var Info = function Info() {
34
+ import { useMemoizedFn } from 'ahooks';
35
+ var Client = function Client() {
35
36
  var _state$client$value2, _state$client$value3, _state$client$value4, _state$client$value5, _state$client$value6, _state$client$value7;
36
37
  var modalRef = useRef();
37
38
  var _useState = useState(false),
@@ -53,25 +54,25 @@ var Info = function Info() {
53
54
  skip: 1,
54
55
  num: 50,
55
56
  total: 0,
56
- search: ""
57
+ search: ''
57
58
  }),
58
59
  _useState8 = _slicedToArray(_useState7, 2),
59
60
  params = _useState8[0],
60
61
  setParams = _useState8[1];
61
62
  var menus = useMemo(function () {
62
63
  var list = [{
63
- key: "view",
64
- label: locales.getText("pisell2.text.view-profile")
64
+ key: 'view',
65
+ label: locales.getText('pisell2.text.view-profile')
65
66
  }, {
66
- key: "change",
67
- label: locales.getText("pisell2.text.change-customer")
67
+ key: 'change',
68
+ label: locales.getText('pisell2.text.change-customer')
68
69
  }, {
69
- key: "remove",
70
- label: locales.getText("pisell2.text.remove-customer")
70
+ key: 'remove',
71
+ label: locales.getText('pisell2.text.remove-customer')
71
72
  }];
72
73
  if (state.disabledEdit) {
73
74
  list = list.filter(function (d) {
74
- return d.key === "view";
75
+ return d.key === 'view';
75
76
  });
76
77
  }
77
78
  return list;
@@ -122,7 +123,7 @@ var Info = function Info() {
122
123
  total: (data === null || data === void 0 ? void 0 : data.count) || 0
123
124
  }));
124
125
  dispatch({
125
- type: "setClient",
126
+ type: 'setClient',
126
127
  payload: _payload
127
128
  });
128
129
  _setLoading(false);
@@ -143,16 +144,16 @@ var Info = function Info() {
143
144
  return;
144
145
  }
145
146
  getClients(_objectSpread(_objectSpread({}, params), {}, {
146
- search: "",
147
+ search: '',
147
148
  skip: 1
148
149
  }));
149
150
  (_modalRef$current = modalRef.current) === null || _modalRef$current === void 0 ? void 0 : _modalRef$current.open();
150
151
  };
151
152
  var getNickname = useCallback(function (item) {
152
153
  if (getIsWalkIn(item === null || item === void 0 ? void 0 : item.id)) {
153
- return locales.getText("pisell2.text.select-a-customer");
154
+ return locales.getText('pisell2.text.select-a-customer');
154
155
  }
155
- return item.name || (item.display_name || "").trim() || (item.nickname || "").trim() || "";
156
+ return item.name || (item.display_name || '').trim() || (item.nickname || '').trim() || '';
156
157
  }, [locales.localeMap]);
157
158
 
158
159
  /**
@@ -195,7 +196,7 @@ var Info = function Info() {
195
196
  return _ref3.apply(this, arguments);
196
197
  };
197
198
  }();
198
- var handleSelectClient = /*#__PURE__*/function () {
199
+ var handleSelectClient = useMemoizedFn( /*#__PURE__*/function () {
199
200
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
200
201
  var _value;
201
202
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -230,7 +231,7 @@ var Info = function Info() {
230
231
  return _context3.abrupt("return");
231
232
  case 14:
232
233
  dispatch({
233
- type: "setClient",
234
+ type: 'setClient',
234
235
  payload: {
235
236
  value: _objectSpread(_objectSpread({}, _value), {}, {
236
237
  name: getNickname(_value)
@@ -247,13 +248,13 @@ var Info = function Info() {
247
248
  }
248
249
  }, _callee3, null, [[4, 10]]);
249
250
  }));
250
- return function handleSelectClient(_x4) {
251
+ return function (_x4) {
251
252
  return _ref4.apply(this, arguments);
252
253
  };
253
- }();
254
+ }());
254
255
  var handleViewClient = function handleViewClient() {
255
256
  state.action({
256
- type: "pisell1.handleOpenCustomerModal",
257
+ type: 'pisell1.handleOpenCustomerModal',
257
258
  data: {
258
259
  id: state.client.value.id
259
260
  },
@@ -265,29 +266,29 @@ var Info = function Info() {
265
266
  handleSelectClient([data]);
266
267
  }
267
268
  getClients(_objectSpread(_objectSpread({}, state.client.clientsParams), {}, {
268
- search: "",
269
+ search: '',
269
270
  customer_id: data === null || data === void 0 ? void 0 : data.id,
270
271
  skip: 1
271
272
  }));
272
273
  }
273
274
  });
274
275
  };
275
- var handleCreateItem = function handleCreateItem() {
276
+ var handleCreateItem = useMemoizedFn(function () {
276
277
  state.action({
277
- type: "pisell1.handleOpenAddCustomerModal",
278
+ type: 'pisell1.handleOpenAddCustomerModal',
278
279
  data: {
279
280
  showReceiveAddress: false,
280
281
  showAcceptsMarketing: false
281
282
  },
282
283
  callback: function callback(customer_id) {
283
284
  getClients(_objectSpread(_objectSpread({}, state.client.clientsParams), {}, {
284
- search: "",
285
+ search: '',
285
286
  customer_id: customer_id,
286
287
  skip: 1
287
288
  }));
288
289
  }
289
290
  });
290
- };
291
+ });
291
292
  var handleRemoveClient = function handleRemoveClient() {
292
293
  if (state.disabledEdit) {
293
294
  return;
@@ -309,9 +310,9 @@ var Info = function Info() {
309
310
  useEffect(function () {
310
311
  if (state.action) {
311
312
  state.action({
312
- type: "pisell1.registerPlugin",
313
+ type: 'pisell1.registerPlugin',
313
314
  data: {
314
- pluginList: ["CustomerDetailPlugin"]
315
+ pluginList: ['CustomerDetailPlugin']
315
316
  }
316
317
  });
317
318
  }
@@ -324,13 +325,13 @@ var Info = function Info() {
324
325
  // }
325
326
  return _list;
326
327
  }, [state.client.clients]);
327
- var searchChange = function searchChange(search) {
328
+ var searchChange = useMemoizedFn(function (search) {
328
329
  var _params = _objectSpread(_objectSpread({}, params), {}, {
329
330
  skip: 1,
330
331
  search: search
331
332
  });
332
333
  getClients(_objectSpread({}, _params));
333
- };
334
+ });
334
335
  // const onScroll = (e: React.UIEvent<HTMLElement, UIEvent>) => {
335
336
  // if (
336
337
  // e.currentTarget.scrollHeight - e.currentTarget.scrollTop ===
@@ -351,8 +352,8 @@ var Info = function Info() {
351
352
  return show ? /*#__PURE__*/React.createElement("div", {
352
353
  className: "",
353
354
  style: {
354
- textAlign: "center",
355
- padding: "16px 0"
355
+ textAlign: 'center',
356
+ padding: '16px 0'
356
357
  }
357
358
  }, /*#__PURE__*/React.createElement(Button, {
358
359
  loading: loadLoading,
@@ -362,8 +363,62 @@ var Info = function Info() {
362
363
  });
363
364
  getClients(_objectSpread({}, _params));
364
365
  }
365
- }, locales.getText("pisell2.text.load-more"))) : null;
366
+ }, locales.getText('pisell2.text.load-more'))) : null;
366
367
  }, [loadLoading, params, state.client.clients.length]);
368
+ var customSelect = useMemo(function () {
369
+ return /*#__PURE__*/React.createElement(CustomSelect, {
370
+ autoFocus: !state.isTerminal,
371
+ modalOpen: state.modalOpen,
372
+ ref: modalRef,
373
+ rowKey: "id",
374
+ options: renderList,
375
+ loading: loading,
376
+ value: [state.client.value],
377
+ onValueChange: handleSelectClient,
378
+ handleCreateItem: handleCreateItem,
379
+ isPreview: false,
380
+ drawerProps: {
381
+ title: locales.getText('pisell2.text.select-customer'),
382
+ destroyOnClose: true
383
+ },
384
+ mode: "single",
385
+ createItemText: locales.getText('pisell2.text.create-new-customer'),
386
+ closeCallback: function closeCallback() {
387
+ searchChange('');
388
+ },
389
+ optionRender: function optionRender(item) {
390
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
391
+ className: "pisell-lowcode__booking-client-list-item-avatar",
392
+ src: image.ali(item.cover, 100) || undefined,
393
+ icon: /*#__PURE__*/React.createElement(User01, {
394
+ className: "pisell-lowcode__booking-client-list-item-avatar-icon"
395
+ })
396
+ }), /*#__PURE__*/React.createElement("div", {
397
+ className: "pisell-lowcode__booking-client-list-item-info"
398
+ }, /*#__PURE__*/React.createElement("div", {
399
+ className: "pisell-lowcode__booking-client-list-item-info-name"
400
+ }, getNickname(item)), /*#__PURE__*/React.createElement("div", {
401
+ className: "pisell-lowcode__booking-client-list-item-info-desc"
402
+ }, item.email ? /*#__PURE__*/React.createElement("div", {
403
+ className: ""
404
+ }, item.email) : null, item.phone ? /*#__PURE__*/React.createElement("div", {
405
+ className: ""
406
+ }, item.phone) : null)), /*#__PURE__*/React.createElement("div", {
407
+ className: "pisell-lowcode__booking-client-list-item-loading"
408
+ }, /*#__PURE__*/React.createElement(Spin, {
409
+ spinning: franchiseeLoading === item.id
410
+ })));
411
+ },
412
+ searchChange: searchChange,
413
+ searchValue: params.search
414
+ // onVirtualListScroll={onScroll}
415
+ ,
416
+ loadMore: loadMore,
417
+ filterItem: function filterItem(d, search) {
418
+ return true;
419
+ }
420
+ });
421
+ }, [state, renderList, loading, franchiseeLoading, params.search, loadMore]);
367
422
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
368
423
  className: "pisell-lowcode__booking-client",
369
424
  onClick: function onClick() {
@@ -389,7 +444,7 @@ var Info = function Info() {
389
444
  className: "pisell-lowcode__booking-client-info-name"
390
445
  }, getNickname(state.client.value)), isWalkIn ? /*#__PURE__*/React.createElement("div", {
391
446
  className: "pisell-lowcode__booking-client-info-desc"
392
- }, locales.getText("pisell2.text.leave-empty-for-walk-in")) : /*#__PURE__*/React.createElement(React.Fragment, null, (_state$client$value4 = state.client.value) !== null && _state$client$value4 !== void 0 && _state$client$value4.email ? /*#__PURE__*/React.createElement("div", {
447
+ }, locales.getText('pisell2.text.leave-empty-for-walk-in')) : /*#__PURE__*/React.createElement(React.Fragment, null, (_state$client$value4 = state.client.value) !== null && _state$client$value4 !== void 0 && _state$client$value4.email ? /*#__PURE__*/React.createElement("div", {
393
448
  className: "pisell-lowcode__booking-client-info-email"
394
449
  }, (_state$client$value5 = state.client.value) === null || _state$client$value5 === void 0 ? void 0 : _state$client$value5.email) : null, (_state$client$value6 = state.client.value) !== null && _state$client$value6 !== void 0 && _state$client$value6.phone ? /*#__PURE__*/React.createElement("div", {
395
450
  className: "pisell-lowcode__booking-client-info-phone"
@@ -407,57 +462,6 @@ var Info = function Info() {
407
462
  className: "pisell-lowcode__booking-client-menu-wrap"
408
463
  }, /*#__PURE__*/React.createElement(DotsVertical, {
409
464
  className: "pisell-lowcode__booking-client-menu-icon"
410
- })))))), /*#__PURE__*/React.createElement(CustomSelect, {
411
- autoFocus: !state.isTerminal,
412
- modalOpen: state.modalOpen,
413
- ref: modalRef,
414
- rowKey: "id",
415
- options: renderList,
416
- loading: loading,
417
- value: [state.client.value],
418
- onValueChange: handleSelectClient,
419
- handleCreateItem: handleCreateItem,
420
- isPreview: false,
421
- drawerProps: {
422
- title: locales.getText("pisell2.text.select-customer"),
423
- destroyOnClose: true
424
- },
425
- mode: "single",
426
- createItemText: locales.getText("pisell2.text.create-new-customer"),
427
- closeCallback: function closeCallback() {
428
- searchChange("");
429
- },
430
- optionRender: function optionRender(item) {
431
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Avatar, {
432
- className: "pisell-lowcode__booking-client-list-item-avatar",
433
- src: image.ali(item.cover, 100) || undefined,
434
- icon: /*#__PURE__*/React.createElement(User01, {
435
- className: "pisell-lowcode__booking-client-list-item-avatar-icon"
436
- })
437
- }), /*#__PURE__*/React.createElement("div", {
438
- className: "pisell-lowcode__booking-client-list-item-info"
439
- }, /*#__PURE__*/React.createElement("div", {
440
- className: "pisell-lowcode__booking-client-list-item-info-name"
441
- }, getNickname(item)), /*#__PURE__*/React.createElement("div", {
442
- className: "pisell-lowcode__booking-client-list-item-info-desc"
443
- }, item.email ? /*#__PURE__*/React.createElement("div", {
444
- className: ""
445
- }, item.email) : null, item.phone ? /*#__PURE__*/React.createElement("div", {
446
- className: ""
447
- }, item.phone) : null)), /*#__PURE__*/React.createElement("div", {
448
- className: "pisell-lowcode__booking-client-list-item-loading"
449
- }, /*#__PURE__*/React.createElement(Spin, {
450
- spinning: franchiseeLoading === item.id
451
- })));
452
- },
453
- searchChange: searchChange,
454
- searchValue: params.search
455
- // onVirtualListScroll={onScroll}
456
- ,
457
- loadMore: loadMore,
458
- filterItem: function filterItem(d, search) {
459
- return true;
460
- }
461
- }));
465
+ })))))), customSelect);
462
466
  };
463
- export default Info;
467
+ export default /*#__PURE__*/React.memo(Client);
@@ -29,6 +29,7 @@ import "./index.less";
29
29
  import useEngineContext from "../../../../../hooks/useEngineContext";
30
30
  import { formatAddFormValues } from "../../../forms/format";
31
31
  import { moveItemToFront } from "../../utils";
32
+ import { useMemoizedFn } from "ahooks";
32
33
  var VerticalClient = function VerticalClient(props) {
33
34
  var _context$appHelper, _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig8, _state$bookingConfig9, _state$bookingConfig10, _state$bookingConfig11, _state$pet3, _state$pet4, _state$pet6, _state$pet6$formData, _state$pet6$formData$, _state$pet8, _state$client$value4, _state$bookingConfig17, _state$bookingConfig18, _state$bookingConfig19, _state$pet9, _state$pet9$formData, _state$bookingConfig20, _state$bookingConfig21, _state$client$value5, _state$client$value6, _state$client$value7, _state$client$value8, _state$client$value9, _context$appHelper2, _context$appHelper2$u, _context$appHelper2$u2, _state$bookingConfig22, _state$client6;
34
35
  var globalState = props.globalState,
@@ -113,9 +114,9 @@ var VerticalClient = function VerticalClient(props) {
113
114
  })
114
115
  });
115
116
  };
116
- var handleOpenModal = function handleOpenModal() {
117
+ var handleOpenModal = useMemoizedFn(function () {
117
118
  handleOpenClientModal();
118
- };
119
+ });
119
120
  var handleAddPet = function handleAddPet(_client, cb) {
120
121
  var _state$pet$formData;
121
122
  var _data = {
@@ -149,7 +150,7 @@ var VerticalClient = function VerticalClient(props) {
149
150
  });
150
151
  };
151
152
 
152
- var previewItemTitleRender = function previewItemTitleRender(value, index, values) {
153
+ var previewItemTitleRender = useMemoizedFn(function (value, index, values) {
153
154
  var _value$customer, _value$customer2, _value$customer3, _value$customer4, _state$pet$formData2, _state$pet$formData2$;
154
155
  var title = getNickname(value.customer) || (value === null || value === void 0 ? void 0 : (_value$customer = value.customer) === null || _value$customer === void 0 ? void 0 : _value$customer.email) || (value === null || value === void 0 ? void 0 : (_value$customer2 = value.customer) === null || _value$customer2 === void 0 ? void 0 : _value$customer2.phone) || '';
155
156
  if ((value === null || value === void 0 ? void 0 : (_value$customer3 = value.customer) === null || _value$customer3 === void 0 ? void 0 : _value$customer3.id) === prevCustomerId.current) {
@@ -165,7 +166,7 @@ var VerticalClient = function VerticalClient(props) {
165
166
  return /*#__PURE__*/React.createElement("div", {
166
167
  className: "pisell-lowcode__booking-pet-title"
167
168
  }, title, " ' ", ((_state$pet$formData2 = state.pet.formData) === null || _state$pet$formData2 === void 0 ? void 0 : (_state$pet$formData2$ = _state$pet$formData2[0]) === null || _state$pet$formData2$ === void 0 ? void 0 : _state$pet$formData2$.title) || '');
168
- };
169
+ });
169
170
  var isShowAddBtn = useMemo(function () {
170
171
  var _state$pet, _state$pet$formData3, _state$pet$formData3$, _state$pet2, _state$pet2$value, _state$pet2$value$for;
171
172
  var formId = (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : (_state$pet$formData3 = _state$pet.formData) === null || _state$pet$formData3 === void 0 ? void 0 : (_state$pet$formData3$ = _state$pet$formData3[0]) === null || _state$pet$formData3$ === void 0 ? void 0 : _state$pet$formData3$.form_id;
@@ -370,9 +370,9 @@ var header = function header(_ref) {
370
370
  className: "go-payments-modal-content"
371
371
  }, /*#__PURE__*/React.createElement("div", {
372
372
  className: "go-payments-modal-content-title"
373
- }, locales.getText('page.booking.text.unconfirmed-payements')), /*#__PURE__*/React.createElement("div", {
373
+ }, locales.getText('page.booking.text.unconfirmed-payments')), /*#__PURE__*/React.createElement("div", {
374
374
  className: "go-payments-modal-content-desc"
375
- }, locales.getText('page.booking.text.unconfirmed-payements.msg')), /*#__PURE__*/React.createElement("div", {
375
+ }, locales.getText('page.booking.text.unconfirmed-payments.msg')), /*#__PURE__*/React.createElement("div", {
376
376
  className: "go-payments-footer"
377
377
  }, /*#__PURE__*/React.createElement(Button, {
378
378
  className: "go-payments-footer-btn",
@@ -73,7 +73,7 @@ var Info = Provider(function (props) {
73
73
  timezone: context === null || context === void 0 ? void 0 : (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : (_context$appHelper3$u = _context$appHelper3.utils) === null || _context$appHelper3$u === void 0 ? void 0 : (_context$appHelper3$u2 = _context$appHelper3$u.store) === null || _context$appHelper3$u2 === void 0 ? void 0 : (_context$appHelper3$u3 = _context$appHelper3$u2.getState()) === null || _context$appHelper3$u3 === void 0 ? void 0 : (_context$appHelper3$u4 = _context$appHelper3$u3.global) === null || _context$appHelper3$u4 === void 0 ? void 0 : (_context$appHelper3$u5 = _context$appHelper3$u4.globalConfig) === null || _context$appHelper3$u5 === void 0 ? void 0 : _context$appHelper3$u5.timezone
74
74
  })
75
75
  });
76
- }, [globalState]);
76
+ }, [JSON.stringify(globalState)]);
77
77
  var addNote = function addNote(e) {
78
78
  modal.dispatch({
79
79
  type: "setNotes",
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import "./index.less";
3
- import { InfoProps } from "../../forms/forms";
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { InfoProps } from '../../forms/forms';
4
4
  interface PetProps {
5
5
  state?: any;
6
6
  dispatch?: any;