@pisell/private-materials 6.12.357 → 6.12.358

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.
@@ -112,14 +112,17 @@ const CartItem = ({ onNext, renderContactInfo }) => {
112
112
  if ((res === null || res === void 0 ? void 0 : res.status) === "success") {
113
113
  let result = void 0;
114
114
  if (formId) {
115
- const { formRecordId, mainField } = handleCartHolderFormSuccess({
115
+ const { formRecordId, formId: holderFormId } = handleCartHolderFormSuccess({
116
116
  res,
117
117
  formId,
118
118
  skuRelationFormId,
119
119
  utils,
120
120
  module: appointmentBooking
121
121
  });
122
- result = buildCartHolderOption(_objectSpread2(_objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, { formRecordId }), utils);
122
+ result = buildCartHolderOption(_objectSpread2(_objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
123
+ formRecordId,
124
+ form_id: holderFormId
125
+ }), utils);
123
126
  appointmentBooking.updateCart({
124
127
  _id: e === null || e === void 0 ? void 0 : e._id,
125
128
  account: result
@@ -1,10 +1,10 @@
1
1
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
2
2
  import dayjs from "dayjs";
3
- import timezone from "dayjs/plugin/timezone";
4
- import utc from "dayjs/plugin/utc";
3
+ import timezonePlugin from "dayjs/plugin/timezone";
4
+ import utcPlugin from "dayjs/plugin/utc";
5
5
  //#region src/plus/saasDevice/devicePasscodes/model.ts
6
- dayjs.extend(utc);
7
- dayjs.extend(timezone);
6
+ dayjs.extend(utcPlugin);
7
+ dayjs.extend(timezonePlugin);
8
8
  const INITIAL_DEVICE_PASSCODE_STATE = {
9
9
  deviceIds: [],
10
10
  devicesById: {}
@@ -6,12 +6,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
6
6
  import { locales } from "@pisell/utils";
7
7
  import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
8
8
  import { useRequest } from "ahooks";
9
- import timezone from "dayjs/plugin/timezone";
10
- import utc from "dayjs/plugin/utc";
9
+ import timezonePlugin from "dayjs/plugin/timezone";
10
+ import utcPlugin from "dayjs/plugin/utc";
11
11
  import "./index.less";
12
12
  //#region src/plus/walletPassGallery/components/timelineSection/index.tsx
13
- dayjs.extend(timezone);
14
- dayjs.extend(utc);
13
+ dayjs.extend(timezonePlugin);
14
+ dayjs.extend(utcPlugin);
15
15
  const stateTimeUnix = 1723255863;
16
16
  const POLL_INTERVAL = 2e3;
17
17
  const POLL_MAX_TIMES = 5;
@@ -48,7 +48,10 @@ const createCartHolderOption = (holder, customerId) => {
48
48
  name: holder === null || holder === void 0 ? void 0 : holder.main_field,
49
49
  username: holder === null || holder === void 0 ? void 0 : holder.main_field,
50
50
  type: "holder",
51
- _origin: _objectSpread2(_objectSpread2({}, holder), {}, { customer_id: customerId })
51
+ _origin: _objectSpread2(_objectSpread2({}, holder), {}, {
52
+ form_record_id: _id,
53
+ customer_id: customerId
54
+ })
52
55
  };
53
56
  };
54
57
  /**
@@ -114,14 +114,17 @@ const CartItem = ({ onNext, renderContactInfo }) => {
114
114
  if ((res === null || res === void 0 ? void 0 : res.status) === "success") {
115
115
  let result = void 0;
116
116
  if (formId) {
117
- const { formRecordId, mainField } = require_buildCartHolderParams.handleCartHolderFormSuccess({
117
+ const { formRecordId, formId: holderFormId } = require_buildCartHolderParams.handleCartHolderFormSuccess({
118
118
  res,
119
119
  formId,
120
120
  skuRelationFormId,
121
121
  utils,
122
122
  module: appointmentBooking
123
123
  });
124
- result = require_buildCartHolderParams.buildCartHolderOption(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, { formRecordId }), utils);
124
+ result = require_buildCartHolderParams.buildCartHolderOption(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, res === null || res === void 0 ? void 0 : res.values), {}, {
125
+ formRecordId,
126
+ form_id: holderFormId
127
+ }), utils);
125
128
  appointmentBooking.updateCart({
126
129
  _id: e === null || e === void 0 ? void 0 : e._id,
127
130
  account: result
@@ -48,7 +48,10 @@ const createCartHolderOption = (holder, customerId) => {
48
48
  name: holder === null || holder === void 0 ? void 0 : holder.main_field,
49
49
  username: holder === null || holder === void 0 ? void 0 : holder.main_field,
50
50
  type: "holder",
51
- _origin: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, holder), {}, { customer_id: customerId })
51
+ _origin: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, holder), {}, {
52
+ form_record_id: _id,
53
+ customer_id: customerId
54
+ })
52
55
  };
53
56
  };
54
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.12.357",
3
+ "version": "6.12.358",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",