@pisell/private-materials 3.4.87 → 3.4.89
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/utils.js +4 -4
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +39 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/index.less +4 -2
- package/es/components/booking/info2/service/editService/index.js +36 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +76 -0
- package/es/components/booking/locales.d.ts +20 -0
- package/es/components/booking/locales.js +20 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +12 -2
- package/es/components/pay/toC/index.js +53 -18
- package/es/components/pay/toC/locales.d.ts +115 -0
- package/es/components/pay/toC/locales.js +143 -18
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.d.ts +10 -0
- package/es/components/pay/toC/serve.js +40 -1
- package/es/components/pay/toC/utils.d.ts +5 -0
- package/es/components/pay/toC/utils.js +10 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/index.less +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
- package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/es/plus/walletPassGallery/locales.d.ts +10 -0
- package/es/plus/walletPassGallery/locales.js +26 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +28 -6
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/index.less +4 -2
- package/lib/components/booking/info2/service/editService/index.js +24 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +38 -2
- package/lib/components/booking/locales.d.ts +20 -0
- package/lib/components/booking/locales.js +20 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
- package/lib/components/pay/toC/index.js +34 -3
- package/lib/components/pay/toC/locales.d.ts +115 -0
- package/lib/components/pay/toC/locales.js +133 -18
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.d.ts +10 -0
- package/lib/components/pay/toC/serve.js +10 -0
- package/lib/components/pay/toC/utils.d.ts +5 -0
- package/lib/components/pay/toC/utils.js +17 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/index.less +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
- package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/lib/plus/walletPassGallery/locales.d.ts +10 -0
- package/lib/plus/walletPassGallery/locales.js +20 -5
- package/lowcode/eco-cup-list/meta.ts +20 -56
- package/lowcode/eco-customer-list/meta.ts +20 -56
- package/package.json +3 -3
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -270,9 +270,9 @@ var formatHolders = function formatHolders(state, item, values) {
|
|
|
270
270
|
* @Date: 2024-12-23 12:05
|
|
271
271
|
*/
|
|
272
272
|
export var formatProductPrice = function formatProductPrice(item) {
|
|
273
|
-
var _item$_extend6, _item$_extend7, _item$variant;
|
|
273
|
+
var _item$_extend6, _item$price, _item$_extend7, _item$variant;
|
|
274
274
|
var other = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.other;
|
|
275
|
-
var price = Number((_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
|
|
275
|
+
var price = Number((_item$price = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price !== void 0 ? _item$price : item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
|
|
276
276
|
|
|
277
277
|
// 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
|
|
278
278
|
if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant = item.variant) === null || _item$variant === void 0 ? void 0 : _item$variant.length) > 0) {
|
|
@@ -341,9 +341,9 @@ var formatMetaData = function formatMetaData(item, isMultiDayPrices) {
|
|
|
341
341
|
|
|
342
342
|
// 获取商品价格 包含组合规格
|
|
343
343
|
var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
344
|
-
var _item$_extend14, _item$_extend15, _item$variant2;
|
|
344
|
+
var _item$_extend14, _item$price2, _item$_extend15, _item$variant2;
|
|
345
345
|
var other = (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.other;
|
|
346
|
-
var price = Number((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.price);
|
|
346
|
+
var price = Number((_item$price2 = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price2 !== void 0 ? _item$price2 : (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.price);
|
|
347
347
|
|
|
348
348
|
// 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
|
|
349
349
|
if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant2 = item.variant) === null || _item$variant2 === void 0 ? void 0 : _item$variant2.length) > 0) {
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -2,29 +2,59 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
-
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
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; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import React, { useMemo, useState, useCallback } from 'react';
|
|
6
12
|
import classNames from 'classnames';
|
|
7
|
-
import { Iconfont } from '@pisell/materials';
|
|
13
|
+
import { Iconfont, PisellModal } from '@pisell/materials';
|
|
8
14
|
import { locales } from "@pisell/utils";
|
|
9
15
|
var useClearCart = function useClearCart(state, dispatch) {
|
|
10
16
|
var _state$service3;
|
|
11
|
-
var
|
|
12
|
-
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
open = _useState2[0],
|
|
20
|
+
setOpen = _useState2[1];
|
|
21
|
+
var handleOpenModal = useCallback(function () {
|
|
22
|
+
setOpen(true);
|
|
23
|
+
}, []);
|
|
24
|
+
var handleConfirm = useCallback(function () {
|
|
13
25
|
dispatch({
|
|
14
26
|
type: 'setService',
|
|
15
27
|
payload: {
|
|
16
28
|
value: []
|
|
17
29
|
}
|
|
18
30
|
});
|
|
19
|
-
|
|
31
|
+
setOpen(false);
|
|
32
|
+
}, []);
|
|
33
|
+
var handleCancel = useCallback(function () {
|
|
34
|
+
setOpen(false);
|
|
35
|
+
}, []);
|
|
20
36
|
return useMemo(function () {
|
|
21
37
|
var _state$service, _state$service2;
|
|
22
|
-
|
|
38
|
+
var showClearBtn = !!((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length) && !state.channelDisabledEdit;
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, showClearBtn && /*#__PURE__*/React.createElement("span", {
|
|
23
40
|
className: classNames('pisell-lowcode__booking-service-clear-btn', _defineProperty({}, 'pisell-lowcode__booking-service-clear-btn-disabled', !((_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length))),
|
|
24
|
-
onClick:
|
|
41
|
+
onClick: handleOpenModal
|
|
25
42
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
26
43
|
type: "pisell2-trash-01"
|
|
27
|
-
}), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart')))
|
|
28
|
-
|
|
44
|
+
}), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart'))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
45
|
+
open: open,
|
|
46
|
+
platform: "pc",
|
|
47
|
+
title: locales.getText('pisell2.booking.info.text.clear-cart-modal.title'),
|
|
48
|
+
onOk: handleConfirm,
|
|
49
|
+
onCancel: handleCancel,
|
|
50
|
+
okText: locales.getText('pisell2.booking.info.text.clear-cart-modal.confirm'),
|
|
51
|
+
cancelText: locales.getText('pisell2.booking.info.text.clear-cart-modal.cancel'),
|
|
52
|
+
destroyOnClose: true
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
style: {
|
|
55
|
+
margin: '24px 0'
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart-modal.content')))));
|
|
58
|
+
}, [(_state$service3 = state.service) === null || _state$service3 === void 0 || (_state$service3 = _state$service3.value) === null || _state$service3 === void 0 ? void 0 : _state$service3.length, state.channelDisabledEdit, open]);
|
|
29
59
|
};
|
|
30
60
|
export default useClearCart;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormState } from '../model';
|
|
3
1
|
export declare const walkInData: {
|
|
4
2
|
id: number;
|
|
5
3
|
nickname: string;
|
|
6
4
|
};
|
|
7
|
-
export declare const Provider:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
line-height: 24px; /* 150% */
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
margin-bottom:
|
|
12
|
-
padding: 12px 0;
|
|
11
|
+
margin-bottom: 16px !important;
|
|
12
|
+
// padding: 12px 0;
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
width: max-content;
|
|
13
15
|
.anticon {
|
|
14
16
|
font-size: 18px;
|
|
15
17
|
margin-right: 6px;
|
|
@@ -36,6 +36,8 @@ import { PisellAdjustPriceInputNumber } from '@pisell/materials';
|
|
|
36
36
|
import { editSessionProduct } from "../../../info/utils";
|
|
37
37
|
import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
|
|
38
38
|
import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBooking/utils";
|
|
39
|
+
import { Decimal } from "decimal.js";
|
|
40
|
+
import { setProductPrice } from "./utils";
|
|
39
41
|
var submitLock = false;
|
|
40
42
|
var Info = function Info(_, ref) {
|
|
41
43
|
var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI4, _state$service$cacheI5, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI10, _state$bookingConfig5, _state$service$cacheI11, _state$service$cacheI12, _state$service9, _state$service$resour2, _state$service$cacheI13, _state$service$cacheI14;
|
|
@@ -218,7 +220,7 @@ var Info = function Info(_, ref) {
|
|
|
218
220
|
* @Date: 2024-01-09 14:04
|
|
219
221
|
*/
|
|
220
222
|
var onFinish = function onFinish(values) {
|
|
221
|
-
var _resourcesRef$current, _item$_extend;
|
|
223
|
+
var _resourcesRef$current, _item$_extend, _item2, _item$_extend2;
|
|
222
224
|
var isSuccess = (_resourcesRef$current = resourcesRef.current) === null || _resourcesRef$current === void 0 ? void 0 : _resourcesRef$current.check();
|
|
223
225
|
if (isShowTimeAndResource && !isSuccess) {
|
|
224
226
|
return;
|
|
@@ -249,13 +251,41 @@ var Info = function Info(_, ref) {
|
|
|
249
251
|
endDate = _getServiceTimes.endDate;
|
|
250
252
|
_extend.startDate = startDate;
|
|
251
253
|
_extend.endDate = endDate;
|
|
254
|
+
if (isChangeTotal.current) {
|
|
255
|
+
var _extend$other, _extend$other2;
|
|
256
|
+
// 计算折扣比例
|
|
257
|
+
var discountRatio = new Decimal(values.total).div(_item._extend.origin_total);
|
|
258
|
+
|
|
259
|
+
// 处理子商品
|
|
260
|
+
var _bundles = (_extend === null || _extend === void 0 || (_extend$other = _extend.other) === null || _extend$other === void 0 ? void 0 : _extend$other.bundle) || [];
|
|
261
|
+
var childProductsTotal = new Decimal(0);
|
|
262
|
+
if (_bundles.length > 0) {
|
|
263
|
+
_bundles.forEach(function (bundle) {
|
|
264
|
+
// 计算子商品折扣后的单价(保留两位小数)
|
|
265
|
+
var discountedPrice = new Decimal(bundle.original_price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_HALF_UP);
|
|
266
|
+
bundle.bundle_selling_price = discountedPrice.toNumber();
|
|
267
|
+
|
|
268
|
+
// 累计子商品折扣后总价
|
|
269
|
+
childProductsTotal = childProductsTotal.add(discountedPrice.mul(bundle.quantity));
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// 计算主商品折扣后的单价
|
|
274
|
+
var mainProductTotal = new Decimal(values.total).sub(childProductsTotal);
|
|
275
|
+
var mainProductQuantity = ((_extend$other2 = _extend.other) === null || _extend$other2 === void 0 ? void 0 : _extend$other2.quantity) || _extend.quantity || 1;
|
|
276
|
+
_extend.main_product_selling_price = mainProductTotal.div(mainProductQuantity).toNumber();
|
|
277
|
+
}
|
|
252
278
|
if (_extend.bundle_edit !== undefined) {
|
|
253
279
|
_extend.bundle_edit = 1;
|
|
254
280
|
}
|
|
255
281
|
_item._extend = _extend;
|
|
256
282
|
_item._time = new Date().getTime();
|
|
257
283
|
_item._serviceKey = genServiceKey(_item);
|
|
258
|
-
var _id = _item === null ||
|
|
284
|
+
var _id = (_item2 = _item) === null || _item2 === void 0 ? void 0 : _item2._id;
|
|
285
|
+
_item = setProductPrice(_item, {
|
|
286
|
+
newTotal: values.total,
|
|
287
|
+
origin_total: (_item$_extend2 = _item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.origin_total
|
|
288
|
+
});
|
|
259
289
|
|
|
260
290
|
// 判断是新增还是编辑
|
|
261
291
|
if (!_list.some(function (d) {
|
|
@@ -453,11 +483,11 @@ var Info = function Info(_, ref) {
|
|
|
453
483
|
var isSession = isSessionProduct(item);
|
|
454
484
|
var sessionValue = {};
|
|
455
485
|
if (isSession) {
|
|
456
|
-
var _item$
|
|
486
|
+
var _item$_extend3, _item$_extend4, _item$_extend5;
|
|
457
487
|
sessionValue.startEndTime = {
|
|
458
|
-
startDate: item === null || item === void 0 || (_item$
|
|
459
|
-
endDate: item === null || item === void 0 || (_item$
|
|
460
|
-
duration: item === null || item === void 0 || (_item$
|
|
488
|
+
startDate: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.start_date,
|
|
489
|
+
endDate: item === null || item === void 0 || (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.end_date,
|
|
490
|
+
duration: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.duration
|
|
461
491
|
};
|
|
462
492
|
}
|
|
463
493
|
|
|
@@ -11,3 +11,18 @@ export declare const getAutoAllocationStorage: (id: string | number) => any;
|
|
|
11
11
|
export declare const setAutoAllocationStorage: (data: {
|
|
12
12
|
[key: string]: boolean;
|
|
13
13
|
}) => void;
|
|
14
|
+
/**
|
|
15
|
+
* 手动折扣后给商品价格和子商品价格重新计算
|
|
16
|
+
*
|
|
17
|
+
* 计算逻辑:
|
|
18
|
+
* 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
|
|
19
|
+
* 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
|
|
20
|
+
*
|
|
21
|
+
* @param cacheItem - 缓存的商品项
|
|
22
|
+
* @param newTotal - 折扣后的新总价
|
|
23
|
+
* @param origin_total - 原始总价
|
|
24
|
+
*/
|
|
25
|
+
export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
|
|
26
|
+
newTotal: number;
|
|
27
|
+
origin_total: number;
|
|
28
|
+
}) => any;
|
|
@@ -15,6 +15,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { isBoolean } from "@pisell/utils";
|
|
18
|
+
import { getTimeObj } from "../addService/utils";
|
|
19
|
+
import { Decimal } from "decimal.js";
|
|
20
|
+
import { isArr } from "@pisell/utils";
|
|
18
21
|
var isNewService = function isNewService(service) {
|
|
19
22
|
return !service.new && service._extend.endDate;
|
|
20
23
|
};
|
|
@@ -52,4 +55,77 @@ export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
|
|
|
52
55
|
} else {
|
|
53
56
|
localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread({}, data)));
|
|
54
57
|
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 手动折扣后给商品价格和子商品价格重新计算
|
|
62
|
+
*
|
|
63
|
+
* 计算逻辑:
|
|
64
|
+
* 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
|
|
65
|
+
* 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
|
|
66
|
+
*
|
|
67
|
+
* @param cacheItem - 缓存的商品项
|
|
68
|
+
* @param newTotal - 折扣后的新总价
|
|
69
|
+
* @param origin_total - 原始总价
|
|
70
|
+
*/
|
|
71
|
+
export var setProductPrice = function setProductPrice(cacheItem, _ref2) {
|
|
72
|
+
var _cacheItem$discount_l, _cacheItem$_extend$ot, _cacheItem$_extend$ot2, _cacheItem$_extend$ot4, _cacheItem$_extend$ot5;
|
|
73
|
+
var newTotal = _ref2.newTotal,
|
|
74
|
+
origin_total = _ref2.origin_total;
|
|
75
|
+
if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$discount_l = cacheItem.discount_list) !== null && _cacheItem$discount_l !== void 0 && _cacheItem$discount_l.length && ((cacheItem === null || cacheItem === void 0 ? void 0 : cacheItem.discount_list) || []).some(function (item) {
|
|
76
|
+
return ['good_pass', 'discount_card', 'product_discount_card'].includes(item.type);
|
|
77
|
+
})) {
|
|
78
|
+
return cacheItem;
|
|
79
|
+
}
|
|
80
|
+
if (cacheItem.discount_amount) {
|
|
81
|
+
return cacheItem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 计算折扣比例
|
|
85
|
+
var discountRatio = new Decimal(newTotal).div(new Decimal(origin_total));
|
|
86
|
+
|
|
87
|
+
// 用于累加子商品总价c
|
|
88
|
+
var subTotal = new Decimal(0);
|
|
89
|
+
|
|
90
|
+
// 处理 bundle 子商品
|
|
91
|
+
if ((_cacheItem$_extend$ot = cacheItem._extend.other) !== null && _cacheItem$_extend$ot !== void 0 && _cacheItem$_extend$ot.bundle && isArr((_cacheItem$_extend$ot2 = cacheItem._extend.other) === null || _cacheItem$_extend$ot2 === void 0 ? void 0 : _cacheItem$_extend$ot2.bundle)) {
|
|
92
|
+
var _cacheItem$_extend$ot3;
|
|
93
|
+
(_cacheItem$_extend$ot3 = cacheItem._extend.other) === null || _cacheItem$_extend$ot3 === void 0 || (_cacheItem$_extend$ot3 = _cacheItem$_extend$ot3.bundle) === null || _cacheItem$_extend$ot3 === void 0 || _cacheItem$_extend$ot3.forEach(function (bundle) {
|
|
94
|
+
var _ref3, _bundle$num;
|
|
95
|
+
// 计算新价格,直接截取两位小数(不四舍五入)
|
|
96
|
+
var newPrice = new Decimal(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
|
|
97
|
+
|
|
98
|
+
// 获取数量,优先取 num,再取 quantity,默认为 1
|
|
99
|
+
var quantity = (_ref3 = (_bundle$num = bundle.num) !== null && _bundle$num !== void 0 ? _bundle$num : bundle.quantity) !== null && _ref3 !== void 0 ? _ref3 : 1;
|
|
100
|
+
|
|
101
|
+
// 累加到子商品总价
|
|
102
|
+
subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
|
|
103
|
+
|
|
104
|
+
// 设置新价格
|
|
105
|
+
bundle.price = newPrice;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// 处理 option 子商品
|
|
110
|
+
if ((_cacheItem$_extend$ot4 = cacheItem._extend.other) !== null && _cacheItem$_extend$ot4 !== void 0 && _cacheItem$_extend$ot4.option && isArr((_cacheItem$_extend$ot5 = cacheItem._extend.other) === null || _cacheItem$_extend$ot5 === void 0 ? void 0 : _cacheItem$_extend$ot5.option)) {
|
|
111
|
+
var _cacheItem$_extend$ot6;
|
|
112
|
+
(_cacheItem$_extend$ot6 = cacheItem._extend.other) === null || _cacheItem$_extend$ot6 === void 0 || (_cacheItem$_extend$ot6 = _cacheItem$_extend$ot6.option) === null || _cacheItem$_extend$ot6 === void 0 || _cacheItem$_extend$ot6.forEach(function (option) {
|
|
113
|
+
var _ref4, _option$num;
|
|
114
|
+
// 计算新价格,直接截取两位小数(不四舍五入)
|
|
115
|
+
var newPrice = new Decimal(option.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
|
|
116
|
+
|
|
117
|
+
// 获取数量,优先取 num,再取 quantity,默认为 1
|
|
118
|
+
var quantity = (_ref4 = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref4 !== void 0 ? _ref4 : 1;
|
|
119
|
+
|
|
120
|
+
// 累加到子商品总价
|
|
121
|
+
subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
|
|
122
|
+
|
|
123
|
+
// 设置新价格
|
|
124
|
+
option.price = newPrice;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// 主商品价格 = newTotal - 子商品总价(让主商品吸收精度误差,确保总价精确)
|
|
129
|
+
cacheItem._extend.price = new Decimal(newTotal).sub(subTotal).toNumber();
|
|
130
|
+
return cacheItem;
|
|
55
131
|
};
|
|
@@ -227,6 +227,10 @@ declare const _default: {
|
|
|
227
227
|
'pisell2.booking.dashboard.default': string;
|
|
228
228
|
'pisell2.booking.info.text.clear-cart': string;
|
|
229
229
|
'pisell2.booking.info.text.clear-all': string;
|
|
230
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
231
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
232
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
233
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
230
234
|
'pisell2.booking.info.text.create-new': string;
|
|
231
235
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
232
236
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -505,6 +509,10 @@ declare const _default: {
|
|
|
505
509
|
'pisell2.booking.dashboard.default': string;
|
|
506
510
|
'pisell2.booking.info.text.clear-cart': string;
|
|
507
511
|
'pisell2.booking.info.text.clear-all': string;
|
|
512
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
513
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
514
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
515
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
508
516
|
'pisell2.booking.info.text.create-new': string;
|
|
509
517
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
510
518
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -783,6 +791,10 @@ declare const _default: {
|
|
|
783
791
|
'pisell2.booking.dashboard.default': string;
|
|
784
792
|
'pisell2.booking.info.text.clear-cart': string;
|
|
785
793
|
'pisell2.booking.info.text.clear-all': string;
|
|
794
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
795
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
796
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
797
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
786
798
|
'pisell2.booking.info.text.create-new': string;
|
|
787
799
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
788
800
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -1067,6 +1079,10 @@ declare const _default: {
|
|
|
1067
1079
|
'pisell2.booking.info.text.clear': string;
|
|
1068
1080
|
'pisell2.booking.info.text.clear-cart': string;
|
|
1069
1081
|
'pisell2.booking.info.text.clear-all': string;
|
|
1082
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
1083
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
1084
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
1085
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
1070
1086
|
'pisell2.booking.info.text.add-holder': string;
|
|
1071
1087
|
'pisell2.booking.info.text.select-holder-title': string;
|
|
1072
1088
|
'pisell2.booking.info.text.create-new': string;
|
|
@@ -1381,6 +1397,10 @@ declare const _default: {
|
|
|
1381
1397
|
'pisell2.booking.info.text.clear': string;
|
|
1382
1398
|
'pisell2.booking.info.text.clear-cart': string;
|
|
1383
1399
|
'pisell2.booking.info.text.clear-all': string;
|
|
1400
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
1401
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
1402
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
1403
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
1384
1404
|
'pisell2.booking.info.text.add-holder': string;
|
|
1385
1405
|
'pisell2.booking.info.text.select-holder-title': string;
|
|
1386
1406
|
'pisell2.booking.info.text.create-new': string;
|
|
@@ -264,6 +264,10 @@ export default {
|
|
|
264
264
|
'pisell2.booking.dashboard.default': "Default",
|
|
265
265
|
'pisell2.booking.info.text.clear-cart': "Clear cart",
|
|
266
266
|
'pisell2.booking.info.text.clear-all': "Clear all",
|
|
267
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'Clear Cart',
|
|
268
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'This will remove all items from the cart and cannot be undone. Continue?',
|
|
269
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'Clear All',
|
|
270
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'Cancel',
|
|
267
271
|
'pisell2.booking.info.text.create-new': "Create new",
|
|
268
272
|
'pisell2.booking.info.text.form-agreement-yes': "Yes",
|
|
269
273
|
'pisell2.booking.info.text.form-agreement-no': "No",
|
|
@@ -592,6 +596,10 @@ export default {
|
|
|
592
596
|
'pisell2.booking.dashboard.default': "默认",
|
|
593
597
|
'pisell2.booking.info.text.clear-cart': "清空购物车",
|
|
594
598
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
599
|
+
'pisell2.booking.info.text.clear-cart-modal.title': '清空购物车',
|
|
600
|
+
'pisell2.booking.info.text.clear-cart-modal.content': '此操作将移除购物车中的所有商品,且无法恢复,是否继续?',
|
|
601
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': '确认清空',
|
|
602
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': '取消',
|
|
595
603
|
'pisell2.booking.info.text.create-new': "新建",
|
|
596
604
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
597
605
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -920,6 +928,10 @@ export default {
|
|
|
920
928
|
'pisell2.booking.dashboard.default': "默认",
|
|
921
929
|
'pisell2.booking.info.text.clear-cart': "清空購物車",
|
|
922
930
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
931
|
+
'pisell2.booking.info.text.clear-cart-modal.title': '清空購物車',
|
|
932
|
+
'pisell2.booking.info.text.clear-cart-modal.content': '此操作將移除購物車中的所有商品,且無法恢復,是否繼續?',
|
|
933
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': '確認清空',
|
|
934
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': '取消',
|
|
923
935
|
'pisell2.booking.info.text.create-new': "新建",
|
|
924
936
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
925
937
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -1250,6 +1262,10 @@ export default {
|
|
|
1250
1262
|
'pisell2.booking.info.text.clear': "クリア",
|
|
1251
1263
|
'pisell2.booking.info.text.clear-cart': "カートをクリア",
|
|
1252
1264
|
'pisell2.booking.info.text.clear-all': "すべてクリア",
|
|
1265
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'カートを空にする',
|
|
1266
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'この操作によりカート内のすべての商品が削除され、元に戻せません。続行しますか?',
|
|
1267
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'すべて削除',
|
|
1268
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'キャンセル',
|
|
1253
1269
|
'pisell2.booking.info.text.add-holder': "選択",
|
|
1254
1270
|
'pisell2.booking.info.text.select-holder-title': "このイベントを誰のために予約しますか?",
|
|
1255
1271
|
'pisell2.booking.info.text.create-new': "新規作成",
|
|
@@ -1611,6 +1627,10 @@ export default {
|
|
|
1611
1627
|
'pisell2.booking.info.text.clear': "Limpar",
|
|
1612
1628
|
'pisell2.booking.info.text.clear-cart': "Limpar carrinho",
|
|
1613
1629
|
'pisell2.booking.info.text.clear-all': "Limpar tudo",
|
|
1630
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'Esvaziar carrinho',
|
|
1631
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'Esta ação irá remover todos os itens do carrinho e não pode ser desfeita. Deseja continuar?',
|
|
1632
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'Esvaziar tudo',
|
|
1633
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'Cancelar',
|
|
1614
1634
|
'pisell2.booking.info.text.add-holder': "Selecionar",
|
|
1615
1635
|
'pisell2.booking.info.text.select-holder-title': "Para quem você gostaria de reservar este evento?",
|
|
1616
1636
|
'pisell2.booking.info.text.create-new': "Criar novo",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -109,11 +108,4 @@ export declare const walkInData: {
|
|
|
109
108
|
id: number;
|
|
110
109
|
nickname: string;
|
|
111
110
|
};
|
|
112
|
-
export declare const Provider:
|
|
113
|
-
state: FormState;
|
|
114
|
-
} & {
|
|
115
|
-
dispatch: (params: {
|
|
116
|
-
type: string;
|
|
117
|
-
payload: any;
|
|
118
|
-
}) => void;
|
|
119
|
-
}>;
|
|
111
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
<svg width="46" height="32" viewBox="
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<path fill
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
<svg width="46" height="32" viewBox="170 168 754 328" fill="none" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill="#FFFFFF" d="M722.7,170h-352c-110,0-200,90-200,200l0,0c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0
|
|
3
|
+
C922.7,260,832.7,170,722.7,170z"/>
|
|
4
|
+
<path fill="#3C4043" d="M722.7,186.2c24.7,0,48.7,4.9,71.3,14.5c21.9,9.3,41.5,22.6,58.5,39.5
|
|
5
|
+
c16.9,16.9,30.2,36.6,39.5,58.5c9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5
|
|
6
|
+
c-16.9,16.9-36.6,30.2-58.5,39.5c-22.6,9.6-46.6,14.5-71.3,14.5h-352c-24.7,0-48.7-4.9-71.3-14.5c-21.9-9.3-41.5-22.6-58.5-39.5
|
|
7
|
+
c-16.9-16.9-30.2-36.6-39.5-58.5c-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5
|
|
8
|
+
c16.9-16.9,36.6-30.2,58.5-39.5c22.6-9.6,46.6-14.5,71.3-14.5L722.7,186.2 M722.7,170h-352c-110,0-200,90-200,200l0,0
|
|
9
|
+
c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0C922.7,260,832.7,170,722.7,170L722.7,170z"/>
|
|
10
|
+
<path fill="#3C4043" d="M529.3,384.2v60.5h-19.2V295.3H561c12.9,0,23.9,4.3,32.9,12.9
|
|
11
|
+
c9.2,8.6,13.8,19.1,13.8,31.5c0,12.7-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7V384.2z M529.3,313.7v52.1h32.1
|
|
12
|
+
c7.6,0,14-2.6,19-7.7c5.1-5.1,7.7-11.3,7.7-18.3c0-6.9-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19-7.9h-32.1V313.7z"/>
|
|
13
|
+
<path fill="#3C4043" d="M657.9,339.1c14.2,0,25.4,3.8,33.6,11.4c8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-0.8
|
|
14
|
+
c-7.9,11.7-18.5,17.5-31.7,17.5c-11.3,0-20.7-3.3-28.3-10s-11.4-15-11.4-25c0-10.6,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4
|
|
15
|
+
c11.4,0,20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17c-5.3-4.7-11.5-7-18.6-7c-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6
|
|
16
|
+
C625.9,345.8,639.7,339.1,657.9,339.1z M633.1,413.3c0,5,2.1,9.2,6.4,12.5c4.2,3.3,9.2,5,14.9,5c8.1,0,15.3-3,21.6-9
|
|
17
|
+
s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1c-7.8,0-14.3,1.9-19.5,5.6C635.7,403.1,633.1,407.8,633.1,413.3z"/>
|
|
18
|
+
<path fill="#3C4043" d="M808.2,342.4l-64,147.2h-19.8l23.8-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6-73.4H808.2z"/>
|
|
19
|
+
<path fill="#4285F4" d="M452.93,372c0-6.26-0.56-12.25-1.6-18.01h-80.48v33L417.2,387
|
|
20
|
+
c-1.88,10.98-7.93,20.34-17.2,26.58v21.41h27.59C443.7,420.08,452.93,398.04,452.93,372z"/>
|
|
21
|
+
<path fill="#34A853" d="M400.01,413.58c-7.68,5.18-17.57,8.21-29.14,8.21c-22.35,0-41.31-15.06-48.1-35.36
|
|
22
|
+
h-28.46v22.08c14.1,27.98,43.08,47.18,76.56,47.18c23.14,0,42.58-7.61,56.73-20.71L400.01,413.58z"/>
|
|
23
|
+
<path fill="#FABB05" d="M320.09,370.05c0-5.7,0.95-11.21,2.68-16.39v-22.08h-28.46
|
|
24
|
+
c-5.83,11.57-9.11,24.63-9.11,38.47s3.29,26.9,9.11,38.47l28.46-22.08C321.04,381.26,320.09,375.75,320.09,370.05z"/>
|
|
25
|
+
<path fill="#E94235" d="M370.87,318.3c12.63,0,23.94,4.35,32.87,12.85l24.45-24.43
|
|
26
|
+
c-14.85-13.83-34.21-22.32-57.32-22.32c-33.47,0-62.46,19.2-76.56,47.18l28.46,22.08C329.56,333.36,348.52,318.3,370.87,318.3z"/>
|
|
9
27
|
</svg>
|