@licklist/design 0.69.3-dev.7 → 0.69.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -2
  3. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -3
  6. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -2
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  8. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +28 -31
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +1 -2
  10. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  11. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -14
  12. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  13. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
  14. package/dist/events/event-card/utils.d.ts +0 -1
  15. package/dist/events/event-card/utils.d.ts.map +1 -1
  16. package/dist/events/event-card/utils.js +2 -6
  17. package/dist/iframe/activity-card/ActivityCard.d.ts +1 -3
  18. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  19. package/dist/iframe/activity-card/ActivityCard.js +1 -8
  20. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  21. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  22. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  23. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
  24. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  25. package/dist/iframe/ryft/RyftPaymentForm.d.ts +2 -2
  26. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  27. package/dist/iframe/ryft/RyftPaymentForm.js +2 -8
  28. package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
  29. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  30. package/dist/iframe/ryft/utils/ryft-form.js +1 -20
  31. package/dist/index.js +0 -1
  32. package/dist/layout/DropDown.d.ts +1 -2
  33. package/dist/layout/DropDown.d.ts.map +1 -1
  34. package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
  35. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  36. package/dist/modals/confirmation/ConfirmModal.js +8 -172
  37. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  38. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  39. package/dist/product-set/card/ProductSetCard.d.ts +2 -6
  40. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  41. package/dist/product-set/card/ProductSetCard.js +11 -20
  42. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  43. package/dist/product-set/control/DateAndRecurrenceInput.js +3 -4
  44. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  45. package/dist/product-set/control/DateInput.js +2 -2
  46. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  47. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  48. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  49. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  50. package/dist/product-set/form/ProductSetForm.js +1 -64
  51. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  52. package/dist/product-set/form/ProductZonesControl.js +2 -0
  53. package/dist/product-set/form/ProductsControl.js +0 -1
  54. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  55. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  56. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  57. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  58. package/dist/product-set/form/SubProductsControl.js +3 -0
  59. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  60. package/dist/product-set/form/VenueMapsControl.js +3 -0
  61. package/dist/product-set/form/index.d.ts +0 -1
  62. package/dist/product-set/form/index.d.ts.map +1 -1
  63. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  64. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  65. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  66. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  67. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  68. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  69. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  70. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  71. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  72. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  73. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  74. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  75. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  76. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  77. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  78. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  79. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  80. package/dist/product-set/utils/index.d.ts +0 -7
  81. package/dist/product-set/utils/index.d.ts.map +1 -1
  82. package/dist/product-set/utils/index.js +1 -10
  83. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  84. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  85. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  86. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  87. package/dist/resource/form/components/CapacityControl.js +0 -3
  88. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  89. package/dist/resource/form/components/SortControl.js +0 -3
  90. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  91. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  92. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  93. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  94. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  95. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  96. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  97. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  98. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  99. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  100. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  101. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  102. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  103. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  104. package/dist/static/CurrencyNumberInput.js +0 -3
  105. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  106. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  107. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  108. package/dist/static/number-input/NumberInput.js +0 -3
  109. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  110. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  111. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  112. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
  113. package/dist/styles/sales/BookingResults.scss +1 -1
  114. package/dist/typeahead/Typeahead.d.ts +1 -5
  115. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  116. package/dist/typeahead/Typeahead.js +2 -9
  117. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  118. package/dist/zone/form/components/GameDurationControl.js +0 -3
  119. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  120. package/dist/zone/form/components/SortControl.js +0 -3
  121. package/package.json +6 -8
  122. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  123. package/src/auth/Login/LoginComponent.tsx +1 -1
  124. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +0 -3
  125. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +85 -88
  126. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +1 -11
  127. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
  128. package/src/events/event-card/utils.ts +1 -5
  129. package/src/iframe/activity-card/ActivityCard.tsx +0 -6
  130. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  131. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  132. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  133. package/src/iframe/ryft/RyftPaymentForm.tsx +4 -9
  134. package/src/iframe/ryft/utils/ryft-form.ts +2 -28
  135. package/src/layout/DropDown.tsx +1 -1
  136. package/src/modals/confirmation/ConfirmModal.tsx +3 -19
  137. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  138. package/src/product-set/card/ProductSetCard.tsx +6 -32
  139. package/src/product-set/control/DateAndRecurrenceInput.tsx +1 -3
  140. package/src/product-set/control/DateInput.tsx +1 -2
  141. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  142. package/src/product-set/form/ProductSetForm.tsx +2 -24
  143. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  144. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  145. package/src/product-set/form/SubProductsControl.tsx +3 -0
  146. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  147. package/src/product-set/form/index.ts +0 -1
  148. package/src/product-set/product/ProductControl.tsx +1 -0
  149. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  150. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  151. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  152. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  153. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  154. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  155. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  156. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  157. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  158. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  159. package/src/product-set/utils/index.ts +0 -11
  160. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  161. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  162. package/src/resource/form/components/CapacityControl.tsx +0 -1
  163. package/src/resource/form/components/SortControl.tsx +0 -1
  164. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  165. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  166. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  167. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  168. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  169. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  170. package/src/static/CurrencyNumberInput.tsx +0 -1
  171. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  172. package/src/static/number-input/NumberInput.tsx +0 -1
  173. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  174. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  175. package/src/styles/product-set/ProductSetForm.scss +0 -22
  176. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
  177. package/src/styles/sales/BookingResults.scss +1 -1
  178. package/src/typeahead/Typeahead.tsx +1 -15
  179. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  180. package/src/zone/form/components/SortControl.tsx +0 -1
  181. package/yarn.lock +25 -25
  182. package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
  183. package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
  184. package/dist/product-set/form/ProductSetNameControl.js +0 -35
  185. package/src/product-set/form/ProductSetNameControl.tsx +0 -27
@@ -1 +1 @@
1
- {"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA+FpB,CAAA"}
1
+ {"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA8FpB,CAAA"}
@@ -203,10 +203,9 @@ var LoginComponent = function(param) {
203
203
  var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
204
204
  var userApiService = useUserApi(request);
205
205
  var handleError = function(error) {
206
- var _error_response_data, _error_response;
207
206
  notification.danger({
208
207
  title: 'Error',
209
- message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message
208
+ message: error.message
210
209
  });
211
210
  };
212
211
  var storeSecrets = function(secrets) {
@@ -35,7 +35,6 @@ export interface EditEventFormProps extends HasPermissionProp {
35
35
  isExternalPaymentLinkEnabled?: boolean;
36
36
  timeZone: string;
37
37
  eventProductSet?: ProductSet;
38
- overrideNameError?: string;
39
38
  }
40
- export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
41
40
  //# sourceMappingURL=EditEventForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAOD,eAAO,MAAM,aAAa,mOAevB,kBAAkB,4CAwVpB,CAAA"}
1
+ {"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;CAC7B;AAOD,eAAO,MAAM,aAAa,gNAcvB,kBAAkB,4CAuVpB,CAAA"}
@@ -139,7 +139,7 @@ var eventImageTypes = {
139
139
  uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
140
140
  };
141
141
  var EditEventForm = function(param) {
142
- var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError;
142
+ var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet;
143
143
  var _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
144
144
  var t = useTranslation([
145
145
  'Design',
@@ -467,8 +467,7 @@ var EditEventForm = function(param) {
467
467
  setShowEditProductSet: setShowEditProductSet,
468
468
  showEditProductSet: showEditProductSet,
469
469
  timeZone: timeZone,
470
- eventProductSet: eventProductSet,
471
- overrideNameError: overrideNameError
470
+ eventProductSet: eventProductSet
472
471
  }),
473
472
  hasPermission && !showEditProductSet && /*#__PURE__*/ jsx(Button, {
474
473
  disabled: disabled || formState.isSubmitting || isImagesLoading || isCoverImagesLoading,
@@ -9,8 +9,7 @@ interface SelectEventProductSetProps extends HasPermissionProp {
9
9
  setEditProductSetId: (value: string) => void;
10
10
  timeZone: string;
11
11
  eventProductSet?: ProductSet;
12
- overrideNameError?: string;
13
12
  }
14
- export declare const SelectEventProductSet: ({ productSets: _productSets, createProductSet, setEditProductSetId, showEditProductSet, setShowEditProductSet, timeZone, eventProductSet, overrideNameError, }: SelectEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const SelectEventProductSet: ({ productSets: _productSets, createProductSet, setEditProductSetId, showEditProductSet, setShowEditProductSet, timeZone, eventProductSet, }: SelectEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
15
14
  export {};
16
15
  //# sourceMappingURL=SelectEventProductSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAIpE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,qBAAqB,mKAS/B,0BAA0B,4CA4L5B,CAAA"}
1
+ {"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAExF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAGpE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB,gJAQ/B,0BAA0B,4CA8L5B,CAAA"}
@@ -4,11 +4,8 @@ import { useTranslation } from 'react-i18next';
4
4
  import { Form, Button } from 'react-bootstrap';
5
5
  import { useId } from '@react-aria/utils';
6
6
  import { useFormContext, Controller } from 'react-hook-form';
7
- import { uniqBy } from 'lodash';
8
- import { getTypeHeadItemsFromMenus } from '../../../../product-set/utils/index.js';
9
7
  import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal.js';
10
8
  import { EditEventProductSet } from './component/EditEventProductSet.js';
11
- import { Typeahead } from '../../../../typeahead/Typeahead.js';
12
9
 
13
10
  function _array_like_to_array(arr, len) {
14
11
  if (len == null || len > arr.length) len = arr.length;
@@ -160,7 +157,7 @@ function _ts_generator(thisArg, body) {
160
157
  }
161
158
  }
162
159
  var SelectEventProductSet = function(param) {
163
- var _productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError;
160
+ var _productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet, timeZone = param.timeZone, eventProductSet = param.eventProductSet;
164
161
  var _productSets_find;
165
162
  var productSets = eventProductSet ? _to_consumable_array(_productSets).concat([
166
163
  eventProductSet
@@ -173,14 +170,6 @@ var SelectEventProductSet = function(param) {
173
170
  var productSetsId = useId();
174
171
  var productSetId = watch('productSetId');
175
172
  var editedProductSet = watch('editedProductSet');
176
- var typeheadValues = uniqBy(getTypeHeadItemsFromMenus(editedProductSet ? productSets.map(function(productSet) {
177
- return productSet.id === editedProductSet.id ? editedProductSet : productSet;
178
- }) : productSets), function(item) {
179
- return item.id;
180
- });
181
- var selectedProductSetTypeheadValue = productSetId ? typeheadValues === null || typeheadValues === void 0 ? void 0 : typeheadValues.find(function(typeheadValue) {
182
- return typeheadValue.id === productSetId;
183
- }) : undefined;
184
173
  var onEditProductSet = useCallback(function() {
185
174
  setEditProductSetId(String(productSetId));
186
175
  setShowEditProductSet(true);
@@ -249,7 +238,6 @@ var SelectEventProductSet = function(param) {
249
238
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
250
239
  var onSubmit = function(value) {
251
240
  setShowEditProductSet(false);
252
- setValue('productSetId', value.id);
253
241
  setValue('editedProductSet', value);
254
242
  };
255
243
  return /*#__PURE__*/ jsxs(Fragment, {
@@ -266,8 +254,10 @@ var SelectEventProductSet = function(param) {
266
254
  /*#__PURE__*/ jsx(Controller, {
267
255
  control: control,
268
256
  name: "productSetId",
269
- render: function() {
257
+ render: function(param) {
258
+ var field = param.field;
270
259
  var _errors_productSetId;
260
+ var fieldValue = String(field.value);
271
261
  return /*#__PURE__*/ jsxs(Fragment, {
272
262
  children: [
273
263
  /*#__PURE__*/ jsxs("div", {
@@ -275,19 +265,27 @@ var SelectEventProductSet = function(param) {
275
265
  children: [
276
266
  /*#__PURE__*/ jsx(ConfirmModal, {
277
267
  children: function(confirm) {
278
- return /*#__PURE__*/ jsx(Typeahead, {
279
- name: "productSetId",
280
- value: selectedProductSetTypeheadValue,
281
- containerStyles: {
282
- width: '100%'
283
- },
284
- onChangeValue: function(typeheadValue) {
285
- onChangeProductSet(Number(typeheadValue.id), confirm);
268
+ return /*#__PURE__*/ jsxs(Form.Control, {
269
+ as: "select",
270
+ onChange: function(e) {
271
+ return onChangeProductSet(Number(e.target.value), confirm);
286
272
  },
287
- isInvalid: !!overrideNameError,
288
- options: typeheadValues,
289
- placeholder: t('Design:choose'),
290
- noOptionsMessage: t('Design:noAvailableProductSets')
273
+ isInvalid: Boolean(errors.productSetId),
274
+ value: fieldValue,
275
+ children: [
276
+ /*#__PURE__*/ jsx("option", {
277
+ value: "",
278
+ hidden: true,
279
+ children: t('Design:chooseProductSet')
280
+ }),
281
+ productSets === null || productSets === void 0 ? void 0 : productSets.map(function(productSet) {
282
+ var isCurrentEditedProductSet = editedProductSet && (editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.id) === (productSet === null || productSet === void 0 ? void 0 : productSet.id);
283
+ return /*#__PURE__*/ jsx("option", {
284
+ value: productSet.id,
285
+ children: isCurrentEditedProductSet || productSet.isOverride ? "[".concat(t('edited'), "] ").concat(isCurrentEditedProductSet ? editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.name : productSet.name) : productSet.name
286
+ }, productSet.id);
287
+ })
288
+ ]
291
289
  });
292
290
  }
293
291
  }),
@@ -322,9 +320,9 @@ var SelectEventProductSet = function(param) {
322
320
  })
323
321
  ]
324
322
  }),
325
- /*#__PURE__*/ jsx("div", {
326
- className: "manual-form-error",
327
- children: (errors === null || errors === void 0 ? void 0 : (_errors_productSetId = errors.productSetId) === null || _errors_productSetId === void 0 ? void 0 : _errors_productSetId.message) || overrideNameError
323
+ /*#__PURE__*/ jsx(Form.Control.Feedback, {
324
+ type: "invalid",
325
+ children: errors === null || errors === void 0 ? void 0 : (_errors_productSetId = errors.productSetId) === null || _errors_productSetId === void 0 ? void 0 : _errors_productSetId.message
328
326
  })
329
327
  ]
330
328
  });
@@ -336,8 +334,7 @@ var SelectEventProductSet = function(param) {
336
334
  showEditProductSet && productSetId && /*#__PURE__*/ jsx(EditEventProductSet, {
337
335
  onSubmit: onSubmit,
338
336
  defaultValues: productSetId === (editedProductSet === null || editedProductSet === void 0 ? void 0 : editedProductSet.id) && editedProductSet,
339
- timeZone: timeZone,
340
- overrideNameError: overrideNameError
337
+ timeZone: timeZone
341
338
  })
342
339
  ]
343
340
  });
@@ -9,8 +9,7 @@ interface EditEventProductSetProps {
9
9
  onSubmit: (value: EditEventFormValues['editedProductSet']) => void;
10
10
  defaultValues?: EditEventFormValues['editedProductSet'];
11
11
  timeZone: string;
12
- overrideNameError?: string;
13
12
  }
14
- export declare const EditEventProductSet: ({ onSubmit, defaultValues, timeZone, overrideNameError, }: EditEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const EditEventProductSet: ({ onSubmit, defaultValues, timeZone, }: EditEventProductSetProps) => import("react/jsx-runtime").JSX.Element;
15
14
  export {};
16
15
  //# sourceMappingURL=EditEventProductSet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGzD,eAAO,MAAM,WAAW,IAAI,CAAA;AAE5B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;IAClE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,mBAAmB,8DAK7B,wBAAwB,4CA2H1B,CAAA"}
1
+ {"version":3,"file":"EditEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../../src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGzD,eAAO,MAAM,WAAW,IAAI,CAAA;AAE5B,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AACD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;IAClE,aAAa,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;IACvD,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,mBAAmB,2CAI7B,wBAAwB,4CAmH1B,CAAA"}
@@ -22,7 +22,6 @@ import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/InputGroup';
23
23
  import 'react-bootstrap/Row';
24
24
  import '@licklist/plugins/dist/services/Form/FormErrorService';
25
- import '@licklist/plugins/dist/utils/error';
26
25
  import { ProductSetContextProvider } from '../../../../../product-set/form/context.js';
27
26
  import { getFilteredTemplates } from '../../../../../product-set/utils/index.js';
28
27
  import 'react-bootstrap/Button';
@@ -134,7 +133,7 @@ function _object_spread_props(target, source) {
134
133
  }
135
134
  var DEFAULT_FEE = 5;
136
135
  var EditEventProductSet = function(param) {
137
- var onSubmit = param.onSubmit, defaultValues = param.defaultValues, timeZone = param.timeZone, overrideNameError = param.overrideNameError;
136
+ var onSubmit = param.onSubmit, defaultValues = param.defaultValues, timeZone = param.timeZone;
138
137
  var companyId = useParams().companyId;
139
138
  var _useEventEditProductSetContext = useEventEditProductSetContext(), companies = _useEventEditProductSetContext.companies, isLoading = _useEventEditProductSetContext.isLoading, settings = _useEventEditProductSetContext.settings, smsTemplates = _useEventEditProductSetContext.smsTemplates, systemSettings = _useEventEditProductSetContext.systemSettings, productGroupsData = _useEventEditProductSetContext.productGroupsData, productSetData = _useEventEditProductSetContext.productSetData, venueMapSets = _useEventEditProductSetContext.venueMapSets, emailTemplates = _useEventEditProductSetContext.emailTemplates, fieldSetsData = _useEventEditProductSetContext.fieldSetsData;
140
139
  var t = useTranslation('Design').t;
@@ -154,18 +153,7 @@ var EditEventProductSet = function(param) {
154
153
  defaultValues: defaultValues,
155
154
  mode: 'onChange'
156
155
  });
157
- var reset = form.reset, handleSubmit = form.handleSubmit, watch = form.watch, setError = form.setError;
158
- useEffect(function() {
159
- if (!overrideNameError) {
160
- return;
161
- }
162
- setError('name', {
163
- message: overrideNameError
164
- });
165
- // eslint-disable-next-line react-hooks/exhaustive-deps
166
- }, [
167
- overrideNameError
168
- ]);
156
+ var reset = form.reset, handleSubmit = form.handleSubmit, watch = form.watch;
169
157
  var formValues = watch();
170
158
  useEffect(function() {
171
159
  if (!defaultFormValues || isEqual(defaultFormValues, formValues)) {
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAsCD,CAAA"}
1
+ {"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAuCD,CAAA"}
@@ -135,6 +135,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
135
135
  subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
136
136
  var subProducts = _extends({}, _object_destructuring_empty(_param));
137
137
  return _object_spread_props(_object_spread({}, subProducts), {
138
+ originalProductId: null,
138
139
  productCategoryId: undefined
139
140
  });
140
141
  }),
@@ -1,7 +1,6 @@
1
1
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper';
2
2
  export declare function formatContent(content: any, maxSymbols: any): any;
3
3
  export declare const formatContentWithoutTags: (content: any, maxLength?: number) => any;
4
- export declare const MIN_EVENT_DESCRIPTION_SIZE = 150;
5
4
  export declare const EVENT_DESCRIPTION_SIZE = 350;
6
5
  /**
7
6
  * Calculate the total number of views from the given dates and event statistic.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,wBAAgB,aAAa,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,OAIhD;AAED,eAAO,MAAM,wBAAwB,2CAkBpC,CAAA;AAED,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,kBACC,cAAc,KAC7B,MAIA,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAC/B,MAAM,EAAE,kBACC,cAAc,KAC7B,CAAC,MAAM,EAAE,MAAM,CAejB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,GAAG,IAAI,QAC/B,MAAM,KACX;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CA4BpB,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,wBAAgB,aAAa,CAAC,OAAO,KAAA,EAAE,UAAU,KAAA,OAIhD;AAED,eAAO,MAAM,wBAAwB,2CAepC,CAAA;AAED,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,kBACC,cAAc,KAC7B,MAIA,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAC/B,MAAM,EAAE,kBACC,cAAc,KAC7B,CAAC,MAAM,EAAE,MAAM,CAejB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,GAAG,IAAI,QAC/B,MAAM,KACX;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CA4BpB,CAAA"}
@@ -59,13 +59,9 @@ var formatContentWithoutTags = function(content) {
59
59
  var text = content.replace(/<[^>]*>/g, '');
60
60
  var trimmedText = text.trim().replace(/&nbsp;|[^a-zA-Z0-9\s]/g, '').replace(/\s\s+/g, ' ');
61
61
  var words = trimmedText.slice(0, maxLength).split(' ');
62
- var contentWithMinLength = content.slice(0, MIN_EVENT_DESCRIPTION_SIZE);
63
62
  var index = String(content).indexOf(words[words.length - 2]);
64
- var slicedContent = content.slice(0, index);
65
- var contentWithMinSize = contentWithMinLength.length > slicedContent.length ? contentWithMinLength : slicedContent;
66
- return contentWithMinSize.concat('...');
63
+ return content.slice(0, index).concat('...');
67
64
  };
68
- var MIN_EVENT_DESCRIPTION_SIZE = 150;
69
65
  var EVENT_DESCRIPTION_SIZE = 350;
70
66
  /**
71
67
  * Calculate the total number of views from the given dates and event statistic.
@@ -140,4 +136,4 @@ var EVENT_DESCRIPTION_SIZE = 350;
140
136
  };
141
137
  };
142
138
 
143
- export { EVENT_DESCRIPTION_SIZE, MIN_EVENT_DESCRIPTION_SIZE, calculateTotalSoldAndAmount, calculateTotalViews, formatContent, formatContentWithoutTags, getStatisticInfo };
139
+ export { EVENT_DESCRIPTION_SIZE, calculateTotalSoldAndAmount, calculateTotalViews, formatContent, formatContentWithoutTags, getStatisticInfo };
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
3
- import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper';
4
3
  export declare const LAYOUT_GRID = "grid";
5
4
  export declare const LAYOUT_LIST = "list";
6
5
  export type ActivityCardProps = {
@@ -13,7 +12,6 @@ export type ActivityCardProps = {
13
12
  layout?: typeof LAYOUT_GRID | typeof LAYOUT_LIST;
14
13
  availableTimes?: string | null;
15
14
  image?: Image | null;
16
- resources?: ZoneResourcesAvailability;
17
15
  };
18
- export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout, resources, }: ActivityCardProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const ActivityCard: ({ title, duration, price, description, availableTimes, image, onSelect, isSelected, layout, }: ActivityCardProps) => import("react/jsx-runtime").JSX.Element;
19
17
  //# sourceMappingURL=ActivityCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0EAA0E,CAAA;AAGpH,eAAO,MAAM,WAAW,SAAS,CAAA;AACjC,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,CAAA;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,YAAY,6GAWtB,iBAAiB,4CAmDnB,CAAA"}
1
+ {"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAE5E,eAAO,MAAM,WAAW,SAAS,CAAA;AACjC,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,WAAW,GAAG,OAAO,WAAW,CAAA;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY,kGAUtB,iBAAiB,4CAiDnB,CAAA"}
@@ -1,11 +1,10 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { AvailabilityIndicator } from '../../availability-indicator/AvailabilityIndicator.js';
4
3
 
5
4
  var LAYOUT_GRID = 'grid';
6
5
  var LAYOUT_LIST = 'list';
7
6
  var ActivityCard = function(param) {
8
- var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout, resources = param.resources;
7
+ var title = param.title, duration = param.duration, price = param.price, description = param.description, availableTimes = param.availableTimes, image = param.image, onSelect = param.onSelect, isSelected = param.isSelected, _param_layout = param.layout, layout = _param_layout === void 0 ? LAYOUT_GRID : _param_layout;
9
8
  if (layout === LAYOUT_GRID) {
10
9
  return /*#__PURE__*/ jsxs("button", {
11
10
  type: "button",
@@ -33,9 +32,6 @@ var ActivityCard = function(param) {
33
32
  description && /*#__PURE__*/ jsx("div", {
34
33
  className: "mt-2 activity-card-description",
35
34
  children: description
36
- }),
37
- resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
38
- resources: resources
39
35
  })
40
36
  ]
41
37
  })
@@ -72,9 +68,6 @@ var ActivityCard = function(param) {
72
68
  description && /*#__PURE__*/ jsx("div", {
73
69
  className: "mt-2 activity-card-description",
74
70
  children: description
75
- }),
76
- resources && /*#__PURE__*/ jsx(AvailabilityIndicator, {
77
- resources: resources
78
71
  })
79
72
  ]
80
73
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+GAyGvB,CAAA"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,+GAgGvB,CAAA"}
@@ -54,9 +54,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
54
54
  onChange: function(e) {
55
55
  return handleChangeValue(Number(e.target.value));
56
56
  },
57
- onWheel: function(event) {
58
- return event.currentTarget.blur();
59
- },
60
57
  value: value,
61
58
  min: 0,
62
59
  max: max,
@@ -69,16 +66,6 @@ var NumberInput = /*#__PURE__*/ forwardRef(function(param, ref) {
69
66
  /*#__PURE__*/ jsx("button", {
70
67
  type: "button",
71
68
  onClick: handleArrowUpClick,
72
- onWheel: function(event) {
73
- return event.currentTarget.blur();
74
- },
75
- onFocus: function(event) {
76
- return event.target.addEventListener('wheel', function(event) {
77
- return event.preventDefault();
78
- }, {
79
- passive: false
80
- });
81
- },
82
69
  className: "payment-number-input__btn-up ".concat(plusButtonGreyedOut && 'disabled-number-input-button'),
83
70
  disabled: disabled,
84
71
  children: "+"
@@ -1 +1 @@
1
- {"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAG5D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAkE3B,CAAA"}
1
+ {"version":3,"file":"ProductQuantityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAG5D,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC5C,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;CAC3B;AAED,eAAO,MAAM,oBAAoB,gGAQ9B,yBAAyB,4CAiE3B,CAAA"}
@@ -8,7 +8,6 @@ var ProductQuantityInput = function(param) {
8
8
  var product = param.product, category = param.category, _onChange = param.onChange, clearErrors = param.clearErrors, refCallback = param.refCallback, productInfo = param.productInfo, invalid = param.invalid;
9
9
  var t = useTranslation('Design').t;
10
10
  var onChange = function(quantity) {
11
- var _category_zone;
12
11
  _onChange({
13
12
  id: product.id,
14
13
  name: product.name,
@@ -16,7 +15,6 @@ var ProductQuantityInput = function(param) {
16
15
  hasDeposit: category.allowDeposits && (product === null || product === void 0 ? void 0 : product.deposit) < product.price,
17
16
  price: product.price,
18
17
  productCategoryId: category.id,
19
- zoneId: (_category_zone = category.zone) === null || _category_zone === void 0 ? void 0 : _category_zone.id,
20
18
  quantity: quantity,
21
19
  capacity: product === null || product === void 0 ? void 0 : product.capacity
22
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;AA4FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
1
+ {"version":3,"file":"paymentSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/utils/paymentSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAEpB,WAAW,EAEZ,MAAM,UAAU,CAAA;AA2FjB,eAAO,MAAM,oBAAoB,oEAK9B,oBAAoB,KAAG,WAAW,EAUpC,CAAA"}
@@ -7,11 +7,11 @@ export interface RyftPaymentFormProps {
7
7
  isCreateLoading: boolean;
8
8
  isAppUsingInIframe?: boolean;
9
9
  onApplePayButtonClick?: () => void;
10
- payButtonDisabled?: boolean;
10
+ applePayButtonDisabled?: boolean;
11
11
  initRyft: (onSuccess: () => void, onFailure: (error?: string) => void) => Promise<void>;
12
12
  onSubmit: () => Promise<AttemptPaymentResponse>;
13
13
  resetReferrer?: () => void;
14
14
  providerPaymentSettings?: ProviderPaymentSettings;
15
15
  }
16
- export declare const RyftPaymentForm: ({ accountId, isCreateLoading, isAppUsingInIframe, providerPaymentSettings, onApplePayButtonClick, initRyft, resetReferrer, onSubmit, payButtonDisabled, }: RyftPaymentFormProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const RyftPaymentForm: ({ accountId, isCreateLoading, isAppUsingInIframe, providerPaymentSettings, onApplePayButtonClick, initRyft, resetReferrer, onSubmit, }: RyftPaymentFormProps) => import("react/jsx-runtime").JSX.Element;
17
17
  //# sourceMappingURL=RyftPaymentForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,8JAUzB,oBAAoB,4CA8KtB,CAAA"}
1
+ {"version":3,"file":"RyftPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/iframe/ryft/RyftPaymentForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,sBAAsB,EACvB,MAAM,kDAAkD,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0EAA0E,CAAA;AAKlH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW/C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAEzD,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,GAAG,CAAA;IACd,eAAe,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,QAAQ,EAAE,CACR,SAAS,EAAE,MAAM,IAAI,EACrB,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,KAChC,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,uBAAuB,CAAC,EAAE,uBAAuB,CAAA;CAClD;AAED,eAAO,MAAM,eAAe,2IASzB,oBAAoB,4CA0KtB,CAAA"}
@@ -196,7 +196,7 @@ var ryftErrorMap = {
196
196
  unknown_error: 'unknownError'
197
197
  };
198
198
  var RyftPaymentForm = function(param) {
199
- var accountId = param.accountId, isCreateLoading = param.isCreateLoading, isAppUsingInIframe = param.isAppUsingInIframe, providerPaymentSettings = param.providerPaymentSettings, onApplePayButtonClick = param.onApplePayButtonClick, initRyft = param.initRyft, resetReferrer = param.resetReferrer, onSubmit = param.onSubmit, payButtonDisabled = param.payButtonDisabled;
199
+ var accountId = param.accountId, isCreateLoading = param.isCreateLoading, isAppUsingInIframe = param.isAppUsingInIframe, providerPaymentSettings = param.providerPaymentSettings, onApplePayButtonClick = param.onApplePayButtonClick, initRyft = param.initRyft, resetReferrer = param.resetReferrer, onSubmit = param.onSubmit;
200
200
  var _formRef_current_childNodes, _formRef_current, _accountId_data;
201
201
  var t = useTranslation([
202
202
  'Design',
@@ -303,14 +303,12 @@ var RyftPaymentForm = function(param) {
303
303
  t: t,
304
304
  isAppUsingInIframe: isAppUsingInIframe,
305
305
  onApplePayButtonClick: onApplePayButtonClick,
306
- isDisableButton: !payButtonDisabled,
307
306
  additionalPaymentMethodsEnabled: providerPaymentSettings === null || providerPaymentSettings === void 0 ? void 0 : providerPaymentSettings.additionalPaymentMethodsEnabled
308
307
  });
309
308
  }, // eslint-disable-next-line react-hooks/exhaustive-deps
310
309
  [
311
310
  (_formRef_current = formRef.current) === null || _formRef_current === void 0 ? void 0 : (_formRef_current_childNodes = _formRef_current.childNodes) === null || _formRef_current_childNodes === void 0 ? void 0 : _formRef_current_childNodes.length,
312
- showApplePayButton,
313
- payButtonDisabled
311
+ showApplePayButton
314
312
  ]);
315
313
  useEffect(function() {
316
314
  var _accountId_data;
@@ -377,10 +375,6 @@ var RyftPaymentForm = function(param) {
377
375
  onSubmit: methods.handleSubmit(handleSubmit),
378
376
  className: "ryft-payment-form",
379
377
  children: [
380
- /*#__PURE__*/ jsx("div", {
381
- className: "form-disable-box",
382
- id: "form-disable-box"
383
- }),
384
378
  /*#__PURE__*/ jsx("div", {
385
379
  className: "submit-button-wrapper mt-4 p-1",
386
380
  children: /*#__PURE__*/ jsxs(Button, {
@@ -2,9 +2,8 @@ import { TFunction } from 'react-i18next';
2
2
  import { RyftPaymentFormProps } from '../RyftPaymentForm';
3
3
  interface InjectComponentsInRyftForm extends Pick<RyftPaymentFormProps, 'onApplePayButtonClick' | 'isAppUsingInIframe'> {
4
4
  t: TFunction<string[]>;
5
- isDisableButton?: boolean;
6
5
  additionalPaymentMethodsEnabled?: boolean;
7
6
  }
8
- export declare const injectComponentsInRyftForm: ({ t, additionalPaymentMethodsEnabled, isAppUsingInIframe, isDisableButton, onApplePayButtonClick, }: InjectComponentsInRyftForm) => void;
7
+ export declare const injectComponentsInRyftForm: ({ t, additionalPaymentMethodsEnabled, isAppUsingInIframe, onApplePayButtonClick, }: InjectComponentsInRyftForm) => void;
9
8
  export {};
10
9
  //# sourceMappingURL=ryft-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA8E5B,CAAA"}
1
+ {"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,uFAKpC,0BAA0B,SAsD5B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  var injectComponentsInRyftForm = function(param) {
2
- var t = param.t, additionalPaymentMethodsEnabled = param.additionalPaymentMethodsEnabled, isAppUsingInIframe = param.isAppUsingInIframe, isDisableButton = param.isDisableButton, onApplePayButtonClick = param.onApplePayButtonClick;
2
+ var t = param.t, additionalPaymentMethodsEnabled = param.additionalPaymentMethodsEnabled, isAppUsingInIframe = param.isAppUsingInIframe, onApplePayButtonClick = param.onApplePayButtonClick;
3
3
  var // Removing of the old title container
4
4
  _document_getElementById, // Removing of the old mobile title container and divider container
5
5
  _document_getElementById1, _document_getElementById2, _document_getElementById3;
@@ -8,8 +8,6 @@ var injectComponentsInRyftForm = function(param) {
8
8
  return;
9
9
  }
10
10
  (_document_getElementById = document.getElementById('card-title-container')) === null || _document_getElementById === void 0 ? void 0 : _document_getElementById.remove();
11
- cardContainer.style.opacity = isDisableButton ? '0.6' : '1';
12
- cardContainer.ariaDisabled = isDisableButton === null || isDisableButton === void 0 ? void 0 : isDisableButton.toString();
13
11
  var cardTitle = document.createElement('div');
14
12
  var cardText = document.createElement('div');
15
13
  var cardTitleContainer = document.createElement('div');
@@ -39,23 +37,6 @@ var injectComponentsInRyftForm = function(param) {
39
37
  divider.id = 'mobile-pay-divider';
40
38
  container.id = 'mobile-pay-divider-container';
41
39
  container.append(dividerText, divider);
42
- var payIframe = document.getElementById('ryft-pay-iframe');
43
- if (payIframe) {
44
- var formBox = document.getElementById('form-disable-box');
45
- if (formBox) {
46
- formBox.style.display = isDisableButton ? 'block' : 'none';
47
- }
48
- var googleButton = document.getElementById('gpay-button-online-api-id');
49
- var appleButton = document.getElementById('ryft-pay-apple-pay-button');
50
- if (googleButton) {
51
- googleButton.disabled = isDisableButton;
52
- googleButton.style.opacity = isDisableButton ? '1' : '0.6';
53
- }
54
- if (appleButton) {
55
- appleButton.disabled = isDisableButton;
56
- appleButton.style.opacity = isDisableButton ? '1' : '0.6';
57
- }
58
- }
59
40
  if (isAppUsingInIframe) {
60
41
  var applePayButton = document.createElement('button');
61
42
  applePayButton.id = 'apple-pay';
package/dist/index.js CHANGED
@@ -87,7 +87,6 @@ export { ProductSetControl } from './product-set/control/ProductSetControl.js';
87
87
  export { ProductSetDepositPaidControl } from './product-set/deposit-paid/ProductSetDepositPaidControl.js';
88
88
  export { DeleteFieldButton } from './product-set/elements/DeleteFieldButton.js';
89
89
  export { ProductSetForm } from './product-set/form/ProductSetForm.js';
90
- export { ProductSetNameControl } from './product-set/form/ProductSetNameControl.js';
91
90
  export { ProductSetPopover } from './product-set/popover/ProductSetPopover.js';
92
91
  export { ProductBookingManagementControl } from './product-set/product/booking-management/ProductBookingManagementControl.js';
93
92
  export { ProductDepositControl } from './product-set/product/deposit/ProductDepositControl.js';
@@ -1,10 +1,9 @@
1
- import React from 'react';
2
1
  interface Props {
3
2
  children?: React.ReactNode | React.ReactNode[];
4
3
  style?: any;
5
4
  className?: any;
6
5
  'aria-laballedby'?: any;
7
6
  }
8
- declare const DropDown: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
7
+ declare const DropDown: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
9
8
  export default DropDown;
10
9
  //# sourceMappingURL=DropDown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,uEAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"DropDown.d.ts","sourceRoot":"","sources":["../../src/layout/DropDown.tsx"],"names":[],"mappings":"AAEA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACxB;AAED,QAAA,MAAM,QAAQ,2FAcZ,CAAA;AAIF,eAAe,QAAQ,CAAA"}
@@ -8,8 +8,6 @@ export type ConfirmModalTypes = (typeof ConfirmModalType)[keyof typeof ConfirmMo
8
8
  export interface ConfirmModalProps {
9
9
  type?: ConfirmModalTypes;
10
10
  children?: (confirm: (action: ConfirmAction) => void) => ReactNode;
11
- confirmationHandler?: () => Promise<boolean | undefined>;
12
- disabledButtons?: boolean;
13
11
  title?: string;
14
12
  content?: string | ReactNode;
15
13
  onClose?: () => void;
@@ -18,5 +16,5 @@ export interface ConfirmModalProps {
18
16
  export declare const CONFIRM_MODAL_ACTION_DECLINE = "confirm-modal-decline";
19
17
  export declare const CONFIRM_MODAL_ACTION_CONFIRM = "confirm-modal-confirm";
20
18
  export declare const CONFIRM_MODAL_ACTIONS: readonly string[];
21
- export declare function ConfirmModal({ type, children, onClose, confirmationHandler, title, disabledButtons, content, hideButtons, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function ConfirmModal({ type, children, onClose, title, content, hideButtons, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
22
20
  //# sourceMappingURL=ConfirmModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/modals/confirmation/ConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAA;AAUnD,MAAM,MAAM,aAAa,GAAG,MAAM,IAAI,CAAA;AACtC,eAAO,MAAM,gBAAgB;;;CAGnB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA;AAE1D,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,KAAK,SAAS,CAAA;IAElE,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IACxD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,4BAA4B,0BAA0B,CAAA;AACnE,eAAO,MAAM,4BAA4B,0BAA0B,CAAA;AACnE,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAGlD,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAgB,EAChB,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,eAAe,EACf,OAAO,EACP,WAAmB,GACpB,EAAE,iBAAiB,2CA+GnB"}
1
+ {"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/modals/confirmation/ConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAA;AAUnD,MAAM,MAAM,aAAa,GAAG,MAAM,IAAI,CAAA;AACtC,eAAO,MAAM,gBAAgB;;;CAGnB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA;AAE1D,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,KAAK,SAAS,CAAA;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,4BAA4B,0BAA0B,CAAA;AACnE,eAAO,MAAM,4BAA4B,0BAA0B,CAAA;AACnE,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAGlD,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAgB,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,WAAmB,GACpB,EAAE,iBAAiB,2CAoGnB"}