@licklist/design 0.72.73 → 0.74.0-dev.0
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/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +2 -1
- package/dist/auth/Login/LoginComponent.js +2 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +18 -14
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +2 -3
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +4 -11
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -6
- package/dist/layout/DropDown.d.ts +2 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/product-set/control/ProductSetControl.d.ts +2 -0
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +10 -0
- package/dist/product-set/form/ProductSetForm.d.ts +5 -3
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +0 -2
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +3 -0
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +0 -3
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +0 -3
- package/dist/product-set/form/context.d.ts +1 -2
- package/dist/product-set/form/context.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts +2 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +7 -0
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts +12 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts.map +1 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.js +153 -0
- package/dist/product-set/product/scanRange/index.d.ts +2 -0
- package/dist/product-set/product/scanRange/index.d.ts.map +1 -0
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/product-set/utils/index.d.ts +4 -1
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +0 -2
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/sales/coupon/form/CouponFrom.d.ts +2 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
- package/dist/sales/coupon/form/CouponFrom.js +19 -6
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/setting/index.d.ts +0 -2
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/styles/form/CustomCheckbox.scss +31 -0
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +2 -3
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +13 -7
- package/src/affiliate/form/AffiliateForm.tsx +1 -0
- package/src/auth/Authorizer.tsx +1 -0
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/auth/Router.tsx +19 -19
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +5 -13
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/index.ts +0 -1
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/product-set/control/ProductSetControl.tsx +11 -0
- package/src/product-set/form/ProductSetForm.tsx +7 -6
- package/src/product-set/form/ProductZonesControl.tsx +1 -4
- package/src/product-set/form/ProductsControl.tsx +2 -0
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/form/VenueMapsControl.tsx +0 -3
- package/src/product-set/form/context.tsx +2 -5
- package/src/product-set/product/ProductControl.tsx +18 -13
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product/scanRange/ProductScanRangeControl.stories.ts +45 -0
- package/src/product-set/product/scanRange/ProductScanRangeControl.tsx +163 -0
- package/src/product-set/product/scanRange/index.ts +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/booking/results/components/ResultCard.tsx +0 -2
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/sales/coupon/form/CouponFrom.tsx +20 -8
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/setting/index.ts +0 -2
- package/src/sortable-tree/SortableTreeItem.tsx +1 -6
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/form/CustomCheckbox.scss +31 -0
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +2 -3
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +191 -221
- package/dist/assets/logo/licklist.sm.svg.js +0 -33
- package/dist/assets/logo/licklist.svg.js +0 -16
- package/dist/header/BookeditHeader.d.ts +0 -15
- package/dist/header/BookeditHeader.d.ts.map +0 -1
- package/dist/header/BookeditHeader.js +0 -21
- package/dist/header/Header.d.ts +0 -16
- package/dist/header/Header.d.ts.map +0 -1
- package/dist/header/Header.js +0 -55
- package/dist/header/LicklistHeader.d.ts +0 -15
- package/dist/header/LicklistHeader.d.ts.map +0 -1
- package/dist/header/LicklistHeader.js +0 -23
- package/dist/header/elements/CompanySelector.d.ts +0 -11
- package/dist/header/elements/CompanySelector.d.ts.map +0 -1
- package/dist/header/elements/CompanySelector.js +0 -36
- package/dist/header/elements/index.d.ts +0 -3
- package/dist/header/elements/index.d.ts.map +0 -1
- package/dist/header/index.d.ts +0 -6
- package/dist/header/index.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +0 -25
- package/dist/setting/admin/AdminSettingForm.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.js +0 -220
- package/dist/setting/admin/PaymentFeeForm.d.ts +0 -13
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +0 -1
- package/dist/setting/admin/PaymentFeeForm.js +0 -424
- package/dist/setting/admin/index.d.ts +0 -2
- package/dist/setting/admin/index.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.d.ts +0 -10
- package/dist/setting/system/SystemSettingForm.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.js +0 -95
- package/dist/setting/system/index.d.ts +0 -2
- package/dist/setting/system/index.d.ts.map +0 -1
- package/dist/types/currency.d.ts +0 -5
- package/dist/types/currency.d.ts.map +0 -1
- package/src/header/BookeditHeader.tsx +0 -38
- package/src/header/Header.stories.tsx +0 -123
- package/src/header/Header.tsx +0 -69
- package/src/header/LicklistHeader.tsx +0 -46
- package/src/header/elements/CompanySelector.tsx +0 -47
- package/src/header/elements/Elements.stories.tsx +0 -33
- package/src/header/elements/index.ts +0 -3
- package/src/header/index.ts +0 -7
- package/src/setting/admin/AdminSetting.stories.tsx +0 -52
- package/src/setting/admin/AdminSettingForm.tsx +0 -196
- package/src/setting/admin/PaymentFeeForm.tsx +0 -304
- package/src/setting/admin/index.ts +0 -1
- package/src/setting/system/SystemSetting.stories.tsx +0 -26
- package/src/setting/system/SystemSettingForm.tsx +0 -62
- package/src/setting/system/index.ts +0 -1
- package/src/types/currency.ts +0 -4
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
const SvgLicklistsm = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
width: 28,
|
|
7
|
-
height: 28
|
|
8
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
9
|
-
style: {
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "none"
|
|
12
|
-
},
|
|
13
|
-
transform: "matrix(.33735 0 0 .33735 0 0)"
|
|
14
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
15
|
-
width: 83,
|
|
16
|
-
height: 83,
|
|
17
|
-
rx: 32,
|
|
18
|
-
style: {
|
|
19
|
-
fill: "currentColor"
|
|
20
|
-
}
|
|
21
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
d: "M62.362 29.68q-4.846.696-4.846 4.613c0 3.916 3.86 14.4 2.234 21.184s-5.923 11.108-14.343 13.09c-8.42 1.983-18.22 1.06-22.055-11.404-3.835-12.463 3.206-21.725 7.56-25.196 4.352-3.47 8.58-2.288 8.76-2.288-4.442 0-6.078 5.233-6.078 11.786q0 7.077 5.086 11.741-1.898-8.754.285-14.997c2.183-6.242 4.584-9.01 8.716-9.984q6.992-1.518 14.68 1.454",
|
|
23
|
-
style: {
|
|
24
|
-
fill: "#fff"
|
|
25
|
-
}
|
|
26
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
27
|
-
d: "M61.572 27.468q-8.333-6.474-14.031-7.886c-5.7-1.411-8.559 1.073-11.107 2.965-.742-.942-2.359-2.238-4.267-2.238s-4.808 1.285-5.549 4.978q-.74 3.693.73 7.687-5.628-5.715-4.433-10.427c1.194-4.711 6.285-8.645 14.242-8.294s10.029 1.864 15.19 5.33q5.16 3.465 9.225 7.885",
|
|
28
|
-
style: {
|
|
29
|
-
fill: "#fff"
|
|
30
|
-
}
|
|
31
|
-
})));
|
|
32
|
-
|
|
33
|
-
export { SvgLicklistsm as ReactComponent };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
var _desc, _g;
|
|
4
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
-
const SvgLicklist = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
viewBox: "0 0 118 28"
|
|
8
|
-
}, props), _desc || (_desc = /*#__PURE__*/React.createElement("desc", null, "Social nightlife")), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
9
|
-
fill: "currentColor"
|
|
10
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
d: "M41.426 20.343v4.093H27.345V2.75h4.46v17.594zm3.32-13.99q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.732.748.733 1.878 0 1.131-.733 1.863-.734.734-1.894.733m-2.169 18.083V8.431h4.337v16.005zm14.132-3.482q1.192 0 2.077-.672a2.95 2.95 0 0 0 1.13-1.74l4.338.732q-.489 2.23-2.413 3.88t-5.101 1.649q-3.482 0-5.758-2.398-2.276-2.397-2.276-5.972 0-3.573 2.276-5.971t5.758-2.398q3.177 0 5.101 1.65t2.413 3.879l-4.337.733a2.95 2.95 0 0 0-1.13-1.741q-.886-.672-2.078-.672-1.71 0-2.688 1.237-.977 1.238-.977 3.283 0 2.048.977 3.284.978 1.237 2.688 1.237M75.973 8.431h5.437l-5.986 6.811 6.414 9.194h-5.132l-4.154-6.323-2.413 2.75v3.573h-4.337V1.527h4.337V15.7zM86.38 24.436h-4.337V1.527h4.337zm4.969-18.083q-1.16 0-1.894-.733-.733-.733-.733-1.863t.733-1.878q.733-.75 1.894-.749 1.16 0 1.894.749.733.748.733 1.878 0 1.131-.733 1.863-.733.734-1.894.733m-2.169 18.083V8.431h4.338v16.005zm5.916-4.673 4.307-.611q.06.946.733 1.558.672.61 1.955.61 1.221 0 1.863-.396.641-.397.641-1.07 0-.733-.916-1.084-.915-.35-2.2-.565a24 24 0 0 1-2.58-.58q-1.299-.367-2.215-1.436-.916-1.07-.916-2.84 0-2.23 1.771-3.758 1.773-1.527 4.643-1.527 3.025 0 4.597 1.42 1.575 1.42 1.91 3.376l-4.094.763q-.06-.916-.687-1.496-.626-.58-1.756-.58-1.039 0-1.62.442-.58.443-.58 1.115 0 .61.657.962.657.351 1.634.474.978.121 2.108.397 1.13.275 2.108.702.977.428 1.634 1.451t.657 2.581q0 2.23-1.818 3.681-1.817 1.45-4.963 1.45-6.201 0-6.873-5.04m22.868.825v3.757q-.733.183-2.046.183-4.918 0-4.918-4.887v-7.79h-2.169v-3.42H111V4.46h4.337v3.97h2.658v3.422h-2.658v7.33q0 1.559 1.62 1.558zM20.989 7.844q-2.536.354-2.536 2.343c0 1.988 2.02 7.312 1.169 10.757-.85 3.444-3.099 5.64-7.504 6.646-4.406 1.007-9.534.538-11.54-5.79C-1.43 15.47 2.256 10.768 4.533 9.006s4.49-1.162 4.584-1.162c-2.324 0-3.18 2.657-3.18 5.984q0 3.594 2.661 5.962-.993-4.445.149-7.615c1.142-3.17 2.398-4.575 4.56-5.07q3.66-.77 7.682.74"
|
|
12
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
d: "M20.576 6.722q-4.36-3.288-7.342-4.005C10.252 2 8.756 3.262 7.423 4.222c-.388-.478-1.234-1.136-2.233-1.136-.998 0-2.515.653-2.903 2.528q-.387 1.874.381 3.903Q-.275 6.614.35 4.222C.974 1.83 3.638-.168 7.801.012c4.164.177 5.247.945 7.948 2.705a26.7 26.7 0 0 1 4.827 4.005"
|
|
14
|
-
}))));
|
|
15
|
-
|
|
16
|
-
export { SvgLicklist as ReactComponent };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface NavigationItem {
|
|
3
|
-
href: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface Props {
|
|
7
|
-
children?: ReactNode | ReactNode[];
|
|
8
|
-
href?: string;
|
|
9
|
-
leftNavs?: ReactNode | ReactNode[];
|
|
10
|
-
navItems?: NavigationItem[];
|
|
11
|
-
renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function BookeditHeader({ children, href, leftNavs, navItems, renderMobileNavigation, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default BookeditHeader;
|
|
15
|
-
//# sourceMappingURL=BookeditHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BookeditHeader.d.ts","sourceRoot":"","sources":["../../src/header/BookeditHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AACD,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAYP;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ReactComponent as SvgBookedit } from '../assets/logo/bookedit.svg.js';
|
|
3
|
-
import Logo from '../logo/Logo.js';
|
|
4
|
-
import Header from './Header.js';
|
|
5
|
-
|
|
6
|
-
function BookeditHeader(param) {
|
|
7
|
-
var children = param.children, href = param.href, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
|
|
8
|
-
return /*#__PURE__*/ jsx(Header, {
|
|
9
|
-
logo: /*#__PURE__*/ jsx(Logo, {
|
|
10
|
-
logo: /*#__PURE__*/ jsx(SvgBookedit, {}),
|
|
11
|
-
className: "mt-auto mr-0 mr-sm-3"
|
|
12
|
-
}),
|
|
13
|
-
href: href,
|
|
14
|
-
leftNavs: leftNavs,
|
|
15
|
-
navItems: navItems,
|
|
16
|
-
renderMobileNavigation: renderMobileNavigation,
|
|
17
|
-
children: children
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { BookeditHeader as default };
|
package/dist/header/Header.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface NavigationItem {
|
|
3
|
-
href: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
type Props = {
|
|
7
|
-
children?: ReactNode | ReactNode[];
|
|
8
|
-
href?: string;
|
|
9
|
-
logo?: ReactNode;
|
|
10
|
-
leftNavs?: ReactNode | ReactNode[];
|
|
11
|
-
navItems?: NavigationItem[];
|
|
12
|
-
renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode;
|
|
13
|
-
};
|
|
14
|
-
declare function Header({ children, href, logo, leftNavs, navItems, renderMobileNavigation, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default Header;
|
|
16
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E,CAAA;AAED,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAyCP;AAED,eAAe,MAAM,CAAA"}
|
package/dist/header/Header.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import Nav from 'react-bootstrap/Nav';
|
|
3
|
-
import Navbar from 'react-bootstrap/Navbar';
|
|
4
|
-
|
|
5
|
-
function Header(param) {
|
|
6
|
-
var children = param.children, href = param.href, logo = param.logo, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
|
|
7
|
-
return /*#__PURE__*/ jsxs(Navbar, {
|
|
8
|
-
className: "header",
|
|
9
|
-
variant: "light",
|
|
10
|
-
collapseOnSelect: true,
|
|
11
|
-
expand: false,
|
|
12
|
-
bg: "none",
|
|
13
|
-
children: [
|
|
14
|
-
/*#__PURE__*/ jsxs("div", {
|
|
15
|
-
className: "header-logo-container",
|
|
16
|
-
children: [
|
|
17
|
-
/*#__PURE__*/ jsx(Navbar.Brand, {
|
|
18
|
-
href: href,
|
|
19
|
-
className: "p-0",
|
|
20
|
-
children: logo
|
|
21
|
-
}),
|
|
22
|
-
(navItems === null || navItems === void 0 ? void 0 : navItems.length) && /*#__PURE__*/ jsx(Fragment, {
|
|
23
|
-
children: /*#__PURE__*/ jsx(Navbar.Toggle, {
|
|
24
|
-
"aria-controls": "header-navbar-nav",
|
|
25
|
-
className: "d-block d-md-none ml-2 border-0"
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
]
|
|
29
|
-
}),
|
|
30
|
-
/*#__PURE__*/ jsx(Nav, {
|
|
31
|
-
className: "mr-auto my-auto",
|
|
32
|
-
children: leftNavs
|
|
33
|
-
}),
|
|
34
|
-
/*#__PURE__*/ jsx("div", {
|
|
35
|
-
className: "user-section ml-3 my-auto",
|
|
36
|
-
children: children
|
|
37
|
-
}),
|
|
38
|
-
(navItems === null || navItems === void 0 ? void 0 : navItems.length) && /*#__PURE__*/ jsx(Navbar.Collapse, {
|
|
39
|
-
id: "header-navbar-nav",
|
|
40
|
-
children: renderMobileNavigation ? renderMobileNavigation(navItems) : /*#__PURE__*/ jsx(Nav, {
|
|
41
|
-
className: "mr-auto",
|
|
42
|
-
children: navItems.map(function(param) {
|
|
43
|
-
var label = param.label, href = param.href;
|
|
44
|
-
return /*#__PURE__*/ jsx(Nav.Link, {
|
|
45
|
-
href: href,
|
|
46
|
-
children: label
|
|
47
|
-
}, "".concat(href).concat(label));
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Header as default };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface NavigationItem {
|
|
3
|
-
href: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface Props {
|
|
7
|
-
children?: ReactNode | ReactNode[];
|
|
8
|
-
href?: string;
|
|
9
|
-
leftNavs?: ReactNode | ReactNode[];
|
|
10
|
-
navItems?: NavigationItem[];
|
|
11
|
-
renderMobileNavigation?: (navigationItems: NavigationItem[]) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare function LicklistHeader({ children, href, leftNavs, navItems, renderMobileNavigation, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default LicklistHeader;
|
|
15
|
-
//# sourceMappingURL=LicklistHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LicklistHeader.d.ts","sourceRoot":"","sources":["../../src/header/LicklistHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,sBAAsB,CAAC,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,CAAA;CAC1E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,sBAAsB,GACvB,EAAE,KAAK,2CAkBP;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ReactComponent as SvgLicklistsm } from '../assets/logo/licklist.sm.svg.js';
|
|
3
|
-
import { ReactComponent as SvgLicklist } from '../assets/logo/licklist.svg.js';
|
|
4
|
-
import Logo from '../logo/Logo.js';
|
|
5
|
-
import Header from './Header.js';
|
|
6
|
-
|
|
7
|
-
function LicklistHeader(param) {
|
|
8
|
-
var children = param.children, href = param.href, leftNavs = param.leftNavs, navItems = param.navItems, renderMobileNavigation = param.renderMobileNavigation;
|
|
9
|
-
return /*#__PURE__*/ jsx(Header, {
|
|
10
|
-
logo: /*#__PURE__*/ jsx(Logo, {
|
|
11
|
-
logo: /*#__PURE__*/ jsx(SvgLicklist, {}),
|
|
12
|
-
logoSm: /*#__PURE__*/ jsx(SvgLicklistsm, {}),
|
|
13
|
-
className: "mt-auto mr-0 mr-sm-3"
|
|
14
|
-
}),
|
|
15
|
-
href: href,
|
|
16
|
-
leftNavs: leftNavs,
|
|
17
|
-
navItems: navItems,
|
|
18
|
-
renderMobileNavigation: renderMobileNavigation,
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { LicklistHeader as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface CompanySelectorProps {
|
|
2
|
-
value: number;
|
|
3
|
-
list: {
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
}[];
|
|
7
|
-
onChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
8
|
-
}
|
|
9
|
-
declare function CompanySelector({ value, list, onChange }: CompanySelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default CompanySelector;
|
|
11
|
-
//# sourceMappingURL=CompanySelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompanySelector.d.ts","sourceRoot":"","sources":["../../../src/header/elements/CompanySelector.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACrC,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;CAC5D;AAED,iBAAS,eAAe,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CAmCvE;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { isEmpty } from 'lodash';
|
|
3
|
-
import { Form } from 'react-bootstrap';
|
|
4
|
-
|
|
5
|
-
function CompanySelector(param) {
|
|
6
|
-
var value = param.value, list = param.list, onChange = param.onChange;
|
|
7
|
-
var hasItems = !isEmpty(list);
|
|
8
|
-
var hasOneItem = list.length === 1;
|
|
9
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
10
|
-
className: "header-company-selector-container",
|
|
11
|
-
children: [
|
|
12
|
-
hasOneItem && /*#__PURE__*/ jsx("span", {
|
|
13
|
-
className: "company-selector-item company-selector-item__disabled",
|
|
14
|
-
children: list[0].title
|
|
15
|
-
}),
|
|
16
|
-
hasItems && !hasOneItem && /*#__PURE__*/ jsx(Form.Group, {
|
|
17
|
-
className: "m-0",
|
|
18
|
-
children: /*#__PURE__*/ jsx(Form.Control, {
|
|
19
|
-
className: "header-company-selector",
|
|
20
|
-
defaultValue: value,
|
|
21
|
-
as: "select",
|
|
22
|
-
onChange: onChange,
|
|
23
|
-
children: hasItems && list.map(function(item) {
|
|
24
|
-
return /*#__PURE__*/ jsx("option", {
|
|
25
|
-
className: "company-selector-item",
|
|
26
|
-
value: item.id,
|
|
27
|
-
children: item.title
|
|
28
|
-
}, item.id);
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { CompanySelector as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/header/elements/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/header/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,cAAc,YAAY,CAAA;AAE1B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission';
|
|
2
|
-
import { ProvidableType } from '@licklist/core/dist/DataMapper/Provider/ProvidableDataMapper';
|
|
3
|
-
import { PaymentFeeFormFieldValues } from './PaymentFeeForm';
|
|
4
|
-
import { Currency } from '../../types/currency';
|
|
5
|
-
export type AdminSettingFormFieldValues = {
|
|
6
|
-
warningOnNumberOfPeople: string;
|
|
7
|
-
currency_id?: number;
|
|
8
|
-
providerHasMap: null | boolean;
|
|
9
|
-
hasBookingManagement: null | boolean;
|
|
10
|
-
additionalPaymentMethodsEnabled: null | boolean;
|
|
11
|
-
externalPaymentLinkEnabled: null | boolean;
|
|
12
|
-
} & PaymentFeeFormFieldValues;
|
|
13
|
-
export interface AdminSettingFormProps extends HasPermissionProp {
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
onSubmit?: (data: AdminSettingFormFieldValues) => void;
|
|
16
|
-
defaultValues?: Partial<AdminSettingFormFieldValues>;
|
|
17
|
-
currencies?: Array<Currency>;
|
|
18
|
-
providerMetadata: {
|
|
19
|
-
country?: string;
|
|
20
|
-
providableId?: number;
|
|
21
|
-
providerType?: ProvidableType;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const AdminSettingForm: ({ isLoading, defaultValues, onSubmit, currencies, hasPermission, providerMetadata, }: AdminSettingFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=AdminSettingForm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAE7F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAA;IAC9B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAA;IACpC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAA;IAC/C,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAA;CAC3C,GAAG,yBAAyB,CAAA;AAE7B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAA;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAC5B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,YAAY,CAAC,EAAE,cAAc,CAAA;KAC9B,CAAA;CACF;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,4CAsJvB,CAAA"}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useId } from '@react-aria/utils';
|
|
3
|
-
import { Form, Button, Spinner } from 'react-bootstrap';
|
|
4
|
-
import InputGroup from 'react-bootstrap/InputGroup';
|
|
5
|
-
import { useForm, FormProvider } from 'react-hook-form';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
-
import Card from 'react-bootstrap/Card';
|
|
8
|
-
import Row from 'react-bootstrap/Row';
|
|
9
|
-
import Col from 'react-bootstrap/Col';
|
|
10
|
-
import { Link } from 'react-router-dom';
|
|
11
|
-
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
12
|
-
import { FaCommentAlt } from 'react-icons/fa';
|
|
13
|
-
import { PaymentFeeForm } from './PaymentFeeForm.js';
|
|
14
|
-
|
|
15
|
-
function _define_property(obj, key, value) {
|
|
16
|
-
if (key in obj) {
|
|
17
|
-
Object.defineProperty(obj, key, {
|
|
18
|
-
value: value,
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
obj[key] = value;
|
|
25
|
-
}
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
function _object_spread(target) {
|
|
29
|
-
for(var i = 1; i < arguments.length; i++){
|
|
30
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
31
|
-
var ownKeys = Object.keys(source);
|
|
32
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
33
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
ownKeys.forEach(function(key) {
|
|
38
|
-
_define_property(target, key, source[key]);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return target;
|
|
42
|
-
}
|
|
43
|
-
function ownKeys(object, enumerableOnly) {
|
|
44
|
-
var keys = Object.keys(object);
|
|
45
|
-
if (Object.getOwnPropertySymbols) {
|
|
46
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
47
|
-
if (enumerableOnly) {
|
|
48
|
-
symbols = symbols.filter(function(sym) {
|
|
49
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
keys.push.apply(keys, symbols);
|
|
53
|
-
}
|
|
54
|
-
return keys;
|
|
55
|
-
}
|
|
56
|
-
function _object_spread_props(target, source) {
|
|
57
|
-
source = source != null ? source : {};
|
|
58
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
59
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
60
|
-
} else {
|
|
61
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
62
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return target;
|
|
66
|
-
}
|
|
67
|
-
var AdminSettingForm = function(param) {
|
|
68
|
-
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_defaultValues = param.defaultValues, defaultValues = _param_defaultValues === void 0 ? {} : _param_defaultValues, onSubmit = param.onSubmit, _param_currencies = param.currencies, currencies = _param_currencies === void 0 ? [] : _param_currencies, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, providerMetadata = param.providerMetadata;
|
|
69
|
-
var form = useForm({
|
|
70
|
-
mode: 'onChange',
|
|
71
|
-
defaultValues: defaultValues
|
|
72
|
-
});
|
|
73
|
-
var register = form.register, handleSubmit = form.handleSubmit, _form_formState = form.formState, errors = _form_formState.errors, isValid = _form_formState.isValid;
|
|
74
|
-
var t = useTranslation('Design').t;
|
|
75
|
-
var warningOnNumberOfPeopleId = useId();
|
|
76
|
-
var providerHasMapId = useId();
|
|
77
|
-
var hasBookingManagement = useId();
|
|
78
|
-
var additionalPaymentMethodsEnabledId = useId();
|
|
79
|
-
var externalPaymentLinkEnabledId = useId();
|
|
80
|
-
return /*#__PURE__*/ jsxs(Form, {
|
|
81
|
-
className: "d-flex flex-column",
|
|
82
|
-
noValidate: true,
|
|
83
|
-
onSubmit: handleSubmit(onSubmit),
|
|
84
|
-
children: [
|
|
85
|
-
/*#__PURE__*/ jsxs(FormProvider, _object_spread_props(_object_spread({}, form), {
|
|
86
|
-
children: [
|
|
87
|
-
/*#__PURE__*/ jsxs(Form.Group, {
|
|
88
|
-
controlId: warningOnNumberOfPeopleId,
|
|
89
|
-
children: [
|
|
90
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
91
|
-
children: t('warningOnNumberOfPeople')
|
|
92
|
-
}),
|
|
93
|
-
/*#__PURE__*/ jsxs(InputGroup, {
|
|
94
|
-
children: [
|
|
95
|
-
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
96
|
-
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
97
|
-
children: /*#__PURE__*/ jsx(FaCommentAlt, {
|
|
98
|
-
size: 16
|
|
99
|
-
})
|
|
100
|
-
})
|
|
101
|
-
}),
|
|
102
|
-
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register('warningOnNumberOfPeople')), {
|
|
103
|
-
disabled: isLoading
|
|
104
|
-
}))
|
|
105
|
-
]
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
}),
|
|
109
|
-
/*#__PURE__*/ jsx(PaymentFeeForm, {
|
|
110
|
-
isLoading: isLoading
|
|
111
|
-
}),
|
|
112
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
113
|
-
className: "mt-5",
|
|
114
|
-
children: t('defaultVenueCurrency')
|
|
115
|
-
}),
|
|
116
|
-
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register('currency_id')), {
|
|
117
|
-
as: "select",
|
|
118
|
-
disabled: isLoading,
|
|
119
|
-
children: currencies === null || currencies === void 0 ? void 0 : currencies.map(function(currency) {
|
|
120
|
-
return /*#__PURE__*/ jsx("option", {
|
|
121
|
-
value: currency.id,
|
|
122
|
-
children: currency.title
|
|
123
|
-
}, currency.id);
|
|
124
|
-
})
|
|
125
|
-
})),
|
|
126
|
-
/*#__PURE__*/ jsx(Row, {
|
|
127
|
-
children: /*#__PURE__*/ jsx(Col, {
|
|
128
|
-
xs: 12,
|
|
129
|
-
children: /*#__PURE__*/ jsx("h5", {
|
|
130
|
-
className: "mt-5",
|
|
131
|
-
children: t('advanced')
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
}),
|
|
135
|
-
/*#__PURE__*/ jsx(Card, {
|
|
136
|
-
className: "mb-3",
|
|
137
|
-
children: /*#__PURE__*/ jsx(Card.Body, {
|
|
138
|
-
children: /*#__PURE__*/ jsx(Row, {
|
|
139
|
-
children: /*#__PURE__*/ jsxs(Col, {
|
|
140
|
-
xs: 12,
|
|
141
|
-
children: [
|
|
142
|
-
/*#__PURE__*/ jsx(Form.Group, {
|
|
143
|
-
controlId: providerHasMapId,
|
|
144
|
-
children: /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({}, register('providerHasMap')), {
|
|
145
|
-
disabled: isLoading,
|
|
146
|
-
label: t('providerHasMap')
|
|
147
|
-
}))
|
|
148
|
-
}),
|
|
149
|
-
/*#__PURE__*/ jsx(Form.Group, {
|
|
150
|
-
controlId: hasBookingManagement,
|
|
151
|
-
children: /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({}, register('hasBookingManagement')), {
|
|
152
|
-
disabled: isLoading,
|
|
153
|
-
label: t('hasBookingManagement')
|
|
154
|
-
}))
|
|
155
|
-
}),
|
|
156
|
-
/*#__PURE__*/ jsx(Form.Group, {
|
|
157
|
-
controlId: additionalPaymentMethodsEnabledId,
|
|
158
|
-
children: /*#__PURE__*/ jsxs(Form.Check, {
|
|
159
|
-
children: [
|
|
160
|
-
/*#__PURE__*/ jsx(Form.Check.Input, _object_spread_props(_object_spread({}, register('additionalPaymentMethodsEnabled', {
|
|
161
|
-
validate: function(value) {
|
|
162
|
-
return !value || Boolean(providerMetadata === null || providerMetadata === void 0 ? void 0 : providerMetadata.country);
|
|
163
|
-
}
|
|
164
|
-
})), {
|
|
165
|
-
disabled: isLoading,
|
|
166
|
-
isInvalid: !!(errors === null || errors === void 0 ? void 0 : errors.additionalPaymentMethodsEnabled)
|
|
167
|
-
})),
|
|
168
|
-
/*#__PURE__*/ jsx(Form.Check.Label, {
|
|
169
|
-
children: t('additionalPaymentMethodsEnabled')
|
|
170
|
-
}),
|
|
171
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
172
|
-
type: "invalid",
|
|
173
|
-
children: HookFormService.hasError(errors.additionalPaymentMethodsEnabled, 'validate') && /*#__PURE__*/ jsxs(Fragment, {
|
|
174
|
-
children: [
|
|
175
|
-
t('noCountryIsProvided'),
|
|
176
|
-
/*#__PURE__*/ jsx(Link, {
|
|
177
|
-
role: "button",
|
|
178
|
-
to: "/provider/".concat(providerMetadata === null || providerMetadata === void 0 ? void 0 : providerMetadata.providerType, "/").concat(providerMetadata === null || providerMetadata === void 0 ? void 0 : providerMetadata.providableId, "/update"),
|
|
179
|
-
children: t('here')
|
|
180
|
-
})
|
|
181
|
-
]
|
|
182
|
-
})
|
|
183
|
-
})
|
|
184
|
-
]
|
|
185
|
-
})
|
|
186
|
-
}),
|
|
187
|
-
/*#__PURE__*/ jsx(Form.Group, {
|
|
188
|
-
controlId: externalPaymentLinkEnabledId,
|
|
189
|
-
children: /*#__PURE__*/ jsx(Form.Check, _object_spread_props(_object_spread({}, register('externalPaymentLinkEnabled')), {
|
|
190
|
-
disabled: isLoading,
|
|
191
|
-
label: t('externalPaymentLinkEnabled')
|
|
192
|
-
}))
|
|
193
|
-
})
|
|
194
|
-
]
|
|
195
|
-
})
|
|
196
|
-
})
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
]
|
|
200
|
-
})),
|
|
201
|
-
hasPermission && /*#__PURE__*/ jsxs(Button, {
|
|
202
|
-
type: "submit",
|
|
203
|
-
disabled: isLoading || !isValid,
|
|
204
|
-
className: "d-flex align-items-center align-self-end mt-5",
|
|
205
|
-
children: [
|
|
206
|
-
isLoading && /*#__PURE__*/ jsx(Spinner, {
|
|
207
|
-
animation: "border",
|
|
208
|
-
size: "sm",
|
|
209
|
-
role: "status",
|
|
210
|
-
"aria-hidden": "true",
|
|
211
|
-
className: "mr-2"
|
|
212
|
-
}),
|
|
213
|
-
t('update')
|
|
214
|
-
]
|
|
215
|
-
})
|
|
216
|
-
]
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
export { AdminSettingForm };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type PaymentFeeFormFieldValues = {
|
|
2
|
-
feeInPercent: number;
|
|
3
|
-
minFeeInPounds: number;
|
|
4
|
-
maxFeeInPounds: number;
|
|
5
|
-
vatInPercent: number;
|
|
6
|
-
fixedFee: number;
|
|
7
|
-
};
|
|
8
|
-
export type PaymentFeeFormProps = {
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
defaultValues?: Partial<PaymentFeeFormFieldValues>;
|
|
11
|
-
};
|
|
12
|
-
export declare function PaymentFeeForm({ isLoading }: PaymentFeeFormProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=PaymentFeeForm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentFeeForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/PaymentFeeForm.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAiB,EAAE,EAAE,mBAAmB,2CAuRxE"}
|