@licklist/design 0.69.7-dev.0 → 0.69.8

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 (156) 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/calendar/utils/index.d.ts +2 -8
  4. package/dist/calendar/utils/index.d.ts.map +1 -1
  5. package/dist/calendar/utils/index.js +21 -9
  6. package/dist/date-time-button/DateContent.d.ts.map +1 -1
  7. package/dist/date-time-button/DateContent.js +3 -3
  8. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +6 -6
  10. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -2
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  12. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
  13. package/dist/events/event-card/EventCard.js +2 -2
  14. package/dist/events/event-card/utils.d.ts +2 -2
  15. package/dist/events/event-card/utils.d.ts.map +1 -1
  16. package/dist/events/event-card/utils.js +18 -14
  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.map +1 -1
  26. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  27. package/dist/iframe/ryft/utils/ryft-form.js +3 -3
  28. package/dist/layout/DropDown.d.ts +1 -2
  29. package/dist/layout/DropDown.d.ts.map +1 -1
  30. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  31. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  32. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  33. package/dist/product-set/control/DateInput.js +3 -4
  34. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  35. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  36. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  37. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  38. package/dist/product-set/form/ProductSetForm.js +1 -1
  39. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  40. package/dist/product-set/form/ProductZonesControl.js +2 -0
  41. package/dist/product-set/form/ProductsControl.js +0 -1
  42. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  43. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  44. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  45. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  46. package/dist/product-set/form/SubProductsControl.js +3 -0
  47. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  48. package/dist/product-set/form/VenueMapsControl.js +3 -0
  49. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  50. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  51. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  52. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  53. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  54. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  55. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  56. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  57. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  58. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  59. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  60. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  61. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  62. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  63. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  64. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  65. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  66. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  67. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  68. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  69. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  70. package/dist/resource/form/components/CapacityControl.js +0 -3
  71. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  72. package/dist/resource/form/components/SortControl.js +0 -3
  73. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  74. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  75. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  76. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  77. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  78. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  79. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  80. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  81. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  82. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  83. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  84. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  85. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  86. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  87. package/dist/static/CurrencyNumberInput.js +0 -3
  88. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  89. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  90. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  91. package/dist/static/number-input/NumberInput.js +0 -3
  92. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  93. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  94. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  95. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  96. package/dist/styles/sales/BookingResults.scss +1 -1
  97. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  98. package/dist/zone/form/components/GameDurationControl.js +0 -3
  99. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  100. package/dist/zone/form/components/SortControl.js +0 -3
  101. package/package.json +7 -9
  102. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  103. package/src/auth/Login/LoginComponent.tsx +1 -1
  104. package/src/calendar/utils/index.ts +26 -17
  105. package/src/date-time-button/DateContent.tsx +3 -3
  106. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +10 -12
  107. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
  108. package/src/events/event-card/EventCard.tsx +2 -2
  109. package/src/events/event-card/utils.ts +25 -16
  110. package/src/iframe/activity-card/ActivityCard.tsx +0 -6
  111. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  112. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  113. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  114. package/src/iframe/ryft/RyftPaymentForm.tsx +5 -2
  115. package/src/iframe/ryft/utils/ryft-form.ts +3 -5
  116. package/src/layout/DropDown.tsx +1 -1
  117. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  118. package/src/product-set/control/DateInput.tsx +1 -3
  119. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  120. package/src/product-set/form/ProductSetForm.tsx +2 -6
  121. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  122. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  123. package/src/product-set/form/SubProductsControl.tsx +3 -0
  124. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  125. package/src/product-set/product/ProductControl.tsx +1 -0
  126. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  127. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  128. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  129. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  130. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  131. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  132. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  133. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  134. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  135. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  136. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  137. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  138. package/src/resource/form/components/CapacityControl.tsx +0 -1
  139. package/src/resource/form/components/SortControl.tsx +0 -1
  140. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  141. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  142. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  143. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  144. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  145. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  146. package/src/static/CurrencyNumberInput.tsx +0 -1
  147. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  148. package/src/static/number-input/NumberInput.tsx +0 -1
  149. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  150. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  151. package/src/styles/product-set/ProductSetForm.scss +0 -22
  152. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
  153. package/src/styles/sales/BookingResults.scss +1 -1
  154. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  155. package/src/zone/form/components/SortControl.tsx +0 -1
  156. package/yarn.lock +40 -14
@@ -466,7 +466,6 @@ function Preview(param) {
466
466
  productCategoryId: 57,
467
467
  productGroupId: null,
468
468
  availableQuantity: 980,
469
- zoneId: null,
470
469
  name: 'Cofee',
471
470
  description: '',
472
471
  price: 15,
@@ -475,8 +474,6 @@ function Preview(param) {
475
474
  maxQuantity: 15,
476
475
  totalQuantity: 980,
477
476
  type: 'sale',
478
- capacity: 0,
479
- duration: 0,
480
477
  weight: 0,
481
478
  isAvailable: true,
482
479
  isSoldOut: false,
@@ -495,7 +492,6 @@ function Preview(param) {
495
492
  productCategoryId: 57,
496
493
  productGroupId: null,
497
494
  availableQuantity: 980,
498
- zoneId: null,
499
495
  name: 'Cofee 2',
500
496
  description: '',
501
497
  price: 15,
@@ -504,8 +500,6 @@ function Preview(param) {
504
500
  maxQuantity: 15,
505
501
  totalQuantity: 980,
506
502
  type: 'sale',
507
- capacity: 0,
508
- duration: 0,
509
503
  weight: 0,
510
504
  isAvailable: true,
511
505
  isSoldOut: false,
@@ -14,7 +14,6 @@ export interface SortableTreeItemProps {
14
14
  body: ReactNode;
15
15
  children?: ReactNode;
16
16
  preItem?: ReactNode;
17
- itemButton?: ReactNode;
18
17
  postItem?: ReactNode;
19
18
  sortableItems?: string[];
20
19
  isExpanded?: boolean;
@@ -37,5 +36,5 @@ export interface SortableTreeItemProps {
37
36
  setIsExpanded?: () => void;
38
37
  isOverride?: boolean;
39
38
  }
40
- export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, itemButton, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
39
+ export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
41
40
  //# sourceMappingURL=SortableTreeItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AAiBnE,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAA;AAEV,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAA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,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,GACX,EAAE,qBAAqB,2CA2TvB"}
@@ -240,7 +240,7 @@ var ProductSetModalClasses = {
240
240
  productZones: 'edit-product-zone'
241
241
  };
242
242
  function SortableTreeItem(param) {
243
- var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? '' : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? '' : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride, itemButton = param.itemButton;
243
+ var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? '' : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? '' : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride;
244
244
  var _useState = _sliced_to_array(useState(isExpanded), 2), expanded = _useState[0], setExpanded = _useState[1];
245
245
  var _useState1 = _sliced_to_array(useState(isNewAdded), 2), isModalVisible = _useState1[0], setIsModalVisible = _useState1[1];
246
246
  var t = useTranslation('Design').t;
@@ -433,15 +433,9 @@ function SortableTreeItem(param) {
433
433
  /*#__PURE__*/ jsxs("div", {
434
434
  className: clsx(modalLabel ? 'sortable-tree-product-set-title-container' : 'sortable-tree-title-container'),
435
435
  children: [
436
- /*#__PURE__*/ jsxs("span", {
437
- className: clsx('sortable-tree-item-title', modalLabel && 'sortable-tree-product-set-element-title', 'd-flex justify-content-between'),
438
- children: [
439
- title,
440
- /*#__PURE__*/ jsx("div", {
441
- className: "sortable-tree-item-subtitle",
442
- children: itemButton
443
- })
444
- ]
436
+ /*#__PURE__*/ jsx("span", {
437
+ className: clsx('sortable-tree-item-title', modalLabel && 'sortable-tree-product-set-element-title'),
438
+ children: title
445
439
  }),
446
440
  !expanded && /*#__PURE__*/ jsx("span", {
447
441
  className: "sortable-tree-item-subtitle",
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,E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KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAoC/B,CAAA"}
@@ -88,9 +88,6 @@ var CurrencyNumberInput = /*#__PURE__*/ forwardRef(function(_param, ref) {
88
88
  disabled: disabled,
89
89
  value: value,
90
90
  onChange: onChange,
91
- onWheel: function(event) {
92
- return event.currentTarget.blur();
93
- },
94
91
  ref: ref
95
92
  }, props)),
96
93
  /*#__PURE__*/ jsx(Form.Control.Feedback, {
@@ -1 +1 @@
1
- {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAkEtB,CAAA"}
1
+ {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAiEtB,CAAA"}
@@ -106,9 +106,6 @@ var FormNumberInput = function(param) {
106
106
  type: "number",
107
107
  step: step,
108
108
  disabled: disabled,
109
- onWheel: function(event) {
110
- return event.currentTarget.blur();
111
- },
112
109
  isInvalid: HookFormService.isInvalid(fieldName, errors)
113
110
  }, field), {
114
111
  onChange: function(event) {
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,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,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAoDlB"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,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,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAmDlB"}
@@ -27,9 +27,6 @@ function NumberInput(param) {
27
27
  children: [
28
28
  /*#__PURE__*/ jsx(FormControl, {
29
29
  type: "number",
30
- onWheel: function(event) {
31
- return event.currentTarget.blur();
32
- },
33
30
  onChange: function(e) {
34
31
  return onChange(Number(e.target.value));
35
32
  },
@@ -15,12 +15,3 @@
15
15
  }
16
16
  }
17
17
  }
18
-
19
-
20
-
21
- .activity-card {
22
- .availability-indicator {
23
- margin-top: 0.5rem;
24
- justify-content: flex-start;
25
- }
26
- }
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
15
15
  left: 0;
16
16
  width: 100%;
17
17
  height: 100%;
18
- z-index: 2147483646;
18
+ z-index: 1000000;
19
19
  background-color: rgba(0, 0, 0, 0.5);
20
20
  display: none;
21
21
  }
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
24
24
  position: fixed;
25
25
  top: 0;
26
26
  left: 0;
27
- z-index: 2147483647;
27
+ z-index: 1000001;
28
28
  display: none;
29
29
  width: 100%;
30
30
  height: 100%;
@@ -15,12 +15,10 @@
15
15
  height: 2.5rem;
16
16
  border-width: 2px;
17
17
  padding: 2px;
18
-
19
18
  label,
20
19
  .btn-switch-indicator {
21
20
  border-radius: 0.375rem !important;
22
21
  }
23
-
24
22
  label {
25
23
  height: 2rem;
26
24
  }
@@ -36,7 +34,6 @@
36
34
  margin-top: 1.5rem;
37
35
  margin-bottom: 1.5rem;
38
36
  }
39
-
40
37
  @include media-breakpoint-down(sm) {
41
38
  padding: 1.5rem 1rem;
42
39
  margin-top: 0.5rem;
@@ -62,21 +59,10 @@
62
59
  background-color: #ffdbdb;
63
60
  color: #d52902;
64
61
  }
65
-
66
62
  .category-badge {
67
63
  background-color: #e8f4f6;
68
64
  color: #1a93aa;
69
65
  }
70
-
71
- .item-icon {
72
- display: flex;
73
- justify-items: center;
74
- align-items: center;
75
- font-size: 0.65rem;
76
- padding: 0.2rem;
77
- margin-right: 1rem;
78
- }
79
-
80
66
  .product-badge {
81
67
  background-color: #e9f5ea;
82
68
  color: #269b36;
@@ -89,12 +75,10 @@
89
75
 
90
76
  .product-set-mobile-modal {
91
77
  margin: 0;
92
-
93
78
  .modal-content {
94
79
  border-radius: 1rem 1rem 0 0;
95
80
  border-width: 0;
96
81
  margin: 0;
97
-
98
82
  .modal-body {
99
83
  padding: 1rem 0;
100
84
  }
@@ -116,22 +100,18 @@
116
100
  font-weight: 600;
117
101
  font-size: 0.625rem;
118
102
  }
119
-
120
103
  .product-set-subtitle-dot {
121
104
  margin-right: 0.375rem;
122
105
  width: 0.375rem;
123
106
  height: 0.375rem;
124
107
  border-radius: 3px;
125
108
  }
126
-
127
109
  .product-set-subtitle-category-dot {
128
110
  background-color: #269b36;
129
111
  }
130
-
131
112
  .product-set-subtitle-step-dot {
132
113
  background-color: #1a93aa;
133
114
  }
134
-
135
115
  .product-set-subtitle-product-dot {
136
116
  background-color: #269b36;
137
117
  }
@@ -176,7 +156,6 @@
176
156
  justify-self: flex-end;
177
157
  align-items: flex-end;
178
158
  }
179
-
180
159
  .small-badge {
181
160
  font-size: 0.5rem;
182
161
  height: 1rem;
@@ -184,7 +163,6 @@
184
163
  padding: 0 0.2rem;
185
164
  margin-bottom: 0.2rem;
186
165
  }
187
-
188
166
  .product-set-save-btn-wrapper {
189
167
  padding-left: 0 !important;
190
168
  display: flex;
@@ -102,6 +102,7 @@
102
102
  }
103
103
 
104
104
  .ryft-payment-form {
105
+
105
106
  .form-disable-box {
106
107
  display: none;
107
108
  position: absolute;
@@ -175,6 +176,7 @@
175
176
  }
176
177
 
177
178
  @include media-breakpoint-up(md) {
179
+
178
180
  .ryft-payment-form,
179
181
  .form-disable-box {
180
182
  height: 50%;
@@ -203,4 +205,4 @@
203
205
  .divider {
204
206
  display: none !important;
205
207
  }
206
- }
208
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14rem;
8
+ height: 14.25rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -1 +1 @@
1
- {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
1
+ {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CA+B1B,CAAA"}
@@ -77,9 +77,6 @@ var GameDurationControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
- onWheel: function(event) {
81
- return event.currentTarget.blur();
82
- },
83
80
  placeholder: t('Design:duration'),
84
81
  isInvalid: Boolean(errors.defaultDuration),
85
82
  disabled: isLoading
@@ -1 +1 @@
1
- {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
1
+ {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAmC1D,CAAA"}
@@ -77,9 +77,6 @@ var SortControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
- onWheel: function(event) {
81
- return event.currentTarget.blur();
82
- },
83
80
  placeholder: t('Design:ordering'),
84
81
  isInvalid: Boolean(errors.sort),
85
82
  disabled: isLoading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.69.7-dev.0",
3
+ "version": "0.69.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,9 +42,9 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.30.5-dev.0",
45
+ "@licklist/core": "0.30.3",
46
46
  "@licklist/eslint-config": "0.5.6",
47
- "@licklist/plugins": "0.33.4-dev.0",
47
+ "@licklist/plugins": "0.33.4",
48
48
  "lodash": "4.17.21",
49
49
  "luxon": "3.5.0",
50
50
  "react": "17.0.2",
@@ -61,9 +61,9 @@
61
61
  "@dnd-kit/utilities": "2.0.0",
62
62
  "@fortawesome/fontawesome-svg-core": "1.2.34",
63
63
  "@fortawesome/free-solid-svg-icons": "5.15.2",
64
- "@licklist/core": "0.30.5-dev.0",
64
+ "@licklist/core": "0.30.3",
65
65
  "@licklist/eslint-config": "0.5.6",
66
- "@licklist/plugins": "0.33.4-dev.0",
66
+ "@licklist/plugins": "0.33.4",
67
67
  "@mantine/core": "6.0.22",
68
68
  "@mantine/hooks": "6.0.22",
69
69
  "@mdx-js/react": "1.6.22",
@@ -202,10 +202,8 @@
202
202
  "yarn tsc"
203
203
  ]
204
204
  },
205
- "packageManager": "yarn@4.4.0",
206
205
  "volta": {
207
206
  "node": "20.9.0",
208
207
  "yarn": "4.4.0"
209
- },
210
- "stableVersion": "0.69.1-dev.3"
211
- }
208
+ }
209
+ }
@@ -76,7 +76,6 @@ export const AffiliateForm = ({
76
76
  const copyToClipboard = () =>
77
77
  // eslint-disable-next-line consistent-return
78
78
  window.navigator.clipboard.writeText(formValues.link)
79
-
80
79
  return (
81
80
  <FormProvider {...form}>
82
81
  <Form onSubmit={form.handleSubmit(handleSubmit)}>
@@ -44,7 +44,7 @@ const LoginComponent = ({
44
44
  const handleError = (error: any) => {
45
45
  notification.danger({
46
46
  title: 'Error',
47
- message: error?.response?.data?.message || error.message,
47
+ message: error.message,
48
48
  })
49
49
  }
50
50
 
@@ -1,31 +1,40 @@
1
- import { TimeZone } from '@licklist/core/dist/DataMapper/Common/TimeZoneDataMapper'
2
1
  import { DateTime, Interval } from 'luxon'
3
2
 
4
- type Builder = (args: {
5
- initialDate?: DateTime
6
- timeZone: TimeZone['name']
7
- }) => DateTime[]
8
-
9
- export const getMonthCalendarDates: Builder = ({
10
- initialDate: _initialDate,
11
- timeZone,
12
- }): DateTime[] => {
13
- const initialDate = _initialDate || DateTime.now().setZone(timeZone)
14
-
3
+ export const getMonthCalendarDates = (
4
+ initialDate: DateTime,
5
+ timeZone?: string,
6
+ ): DateTime[] => {
15
7
  const startOfMonth = initialDate.startOf('month')
16
8
  const endOfMonth = initialDate.endOf('month')
17
9
 
18
- return Interval.fromDateTimes(startOfMonth, endOfMonth)
10
+ const dateTimes = Interval.fromDateTimes(startOfMonth, endOfMonth)
19
11
  .splitBy({ day: 1 })
20
12
  .map((d) => d.start)
21
- }
22
13
 
23
- export const getWeekCalendarDates: Builder = ({ timeZone }): DateTime[] => {
24
- const initialDate = DateTime.now().setZone(timeZone)
14
+ if (timeZone) {
15
+ return dateTimes.map((date) =>
16
+ date.setZone(timeZone, { keepLocalTime: true }),
17
+ )
18
+ }
25
19
 
20
+ return dateTimes
21
+ }
22
+
23
+ export const getWeekCalendarDates = (
24
+ initialDate: DateTime,
25
+ timeZone?: string,
26
+ ): DateTime[] => {
26
27
  const lastDay = initialDate.plus({ days: 7 })
27
28
 
28
- return Interval.fromDateTimes(initialDate, lastDay)
29
+ const dateTimes = Interval.fromDateTimes(initialDate, lastDay)
29
30
  .splitBy({ day: 1 })
30
31
  .map((d) => d.start)
32
+
33
+ if (timeZone) {
34
+ return dateTimes.map((date) =>
35
+ date.setZone(timeZone, { keepLocalTime: true }),
36
+ )
37
+ }
38
+
39
+ return dateTimes
31
40
  }
@@ -6,9 +6,9 @@ import {
6
6
  } from '@licklist/core/dist/Config'
7
7
  import { getDayWithOrdinal } from '@licklist/plugins/dist/utils/formatDate'
8
8
  import clsx from 'clsx'
9
+ import { isToday, isTomorrow } from 'date-fns'
9
10
  import { DateTime } from 'luxon'
10
11
  import { useTranslation } from 'react-i18next'
11
- import { isToday, isTomorrow } from '@licklist/plugins/dist'
12
12
  import { DateTimeButtonProps, Variant } from './DateTimeButton'
13
13
 
14
14
  type DateContentProps = Pick<
@@ -55,9 +55,9 @@ export const DateContent = ({
55
55
  }
56
56
 
57
57
  const getDate = (date: DateTime): string => {
58
- if (isToday(date)) return 'today'
58
+ if (isToday(date.toJSDate())) return 'today'
59
59
 
60
- if (isTomorrow(date)) return 'tomorrow'
60
+ if (isTomorrow(date.toJSDate())) return 'tomorrow'
61
61
 
62
62
  return date.toFormat(DAY_OF_WEEK)
63
63
  }
@@ -5,7 +5,6 @@ import { useId } from '@react-aria/utils'
5
5
  import { Controller, useFormContext } from 'react-hook-form'
6
6
  import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission'
7
7
  import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
8
- import { uniqBy } from 'lodash'
9
8
  import { getTypeHeadItemsFromMenus } from '../../../../product-set/utils'
10
9
  import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal'
11
10
  import { EditEventFormValues } from '../EditEventForm/EditEventForm'
@@ -53,17 +52,16 @@ export const SelectEventProductSet = ({
53
52
  const productSetId = watch('productSetId')
54
53
  const editedProductSet = watch('editedProductSet')
55
54
 
56
- const typeheadValues = uniqBy(
57
- getTypeHeadItemsFromMenus(
58
- editedProductSet
59
- ? productSets.map((productSet) =>
60
- productSet.id === editedProductSet.id
61
- ? editedProductSet
62
- : productSet,
63
- )
64
- : productSets,
65
- ),
66
- (item) => item.id,
55
+ const typeheadValues = getTypeHeadItemsFromMenus(
56
+ editedProductSet
57
+ ? productSets.map((productSet) => {
58
+ if (productSet.id === editedProductSet.id) {
59
+ return editedProductSet
60
+ }
61
+
62
+ return productSet
63
+ })
64
+ : productSets,
67
65
  )
68
66
  const selectedProductSetTypeheadValue = productSetId
69
67
  ? typeheadValues?.find((typeheadValue) => typeheadValue.id === productSetId)
@@ -39,6 +39,7 @@ export const getDefaultValues = (
39
39
  ...product,
40
40
  subProducts: subProducts?.map(({ ...subProducts }) => ({
41
41
  ...subProducts,
42
+ originalProductId: null,
42
43
  productCategoryId: undefined,
43
44
  })),
44
45
  productCategoryId: undefined,
@@ -23,7 +23,7 @@ import { Sale } from '../../types/bookings'
23
23
  import { TipTapEditor } from '../../tiptap-editor/TipTapEditor'
24
24
  import {
25
25
  EVENT_DESCRIPTION_SIZE,
26
- formatContent,
26
+ formatContentWithoutTags,
27
27
  getStatisticInfo,
28
28
  } from './utils'
29
29
  import { ReactComponent as ChartBarIcon } from '../../assets/dashboard/chartBar.svg'
@@ -66,7 +66,7 @@ export function EventCard({
66
66
  const { formatNumber, formatDate } = useIntl()
67
67
  const { totalViews, ...statistics } = getStatisticInfo(eventStatistic, date)
68
68
  const memoedContent = useMemo(
69
- () => formatContent(description, EVENT_DESCRIPTION_SIZE),
69
+ () => formatContentWithoutTags(description, EVENT_DESCRIPTION_SIZE),
70
70
  [description],
71
71
  )
72
72
 
@@ -2,26 +2,35 @@ import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
2
2
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
3
3
  import { DateTime } from 'luxon'
4
4
 
5
- export const MIN_EVENT_DESCRIPTION_SIZE = 150;
6
- export const EVENT_DESCRIPTION_SIZE = 350;
7
- export const EMOJI_REGEX = /<span data-emoji-replacer=""><img[^>]*alt="([^"]+)"[^>]*><\/span>/g;
8
-
9
- export const formatContent = (content, maxLength = EVENT_DESCRIPTION_SIZE) => {
10
- if (!content) return '';
11
-
12
- const replacedContent = replaceEmojiImagesWithText(content);
13
-
14
- if (replacedContent.length <= maxLength) {
15
- return replacedContent;
16
- }
5
+ export function formatContent(content, maxSymbols) {
6
+ if (!content) return ''
7
+ if (content.length > maxSymbols) return `${content.slice(0, maxSymbols)}...`
8
+ return content
9
+ }
17
10
 
18
- return replacedContent.slice(0, maxLength).concat('...');
19
- };
11
+ export const formatContentWithoutTags = (
12
+ content,
13
+ maxLength = EVENT_DESCRIPTION_SIZE,
14
+ ) => {
15
+ if (!content) return ''
16
+ if (content < maxLength) return content
17
+ const text = content.replace(/<[^>]*>/g, '')
18
+ const trimmedText = text
19
+ .trim()
20
+ .replace(/&nbsp;|[^a-zA-Z0-9\s]/g, '')
21
+ .replace(/\s\s+/g, ' ')
20
22
 
21
- function replaceEmojiImagesWithText(text) {
22
- return text.replace(EMOJI_REGEX, (_, emojiText) => emojiText);
23
+ const words = trimmedText.slice(0, maxLength).split(' ')
24
+ const contentWithMinLength = content.slice(0, MIN_EVENT_DESCRIPTION_SIZE)
25
+ const index = String(content).indexOf(words[words.length - 2])
26
+ const slicedContent = content.slice(0, index)
27
+ const minSizeContent = contentWithMinLength.length > slicedContent.length ? contentWithMinLength : slicedContent
28
+ return minSizeContent.concat('...')
23
29
  }
24
30
 
31
+ export const MIN_EVENT_DESCRIPTION_SIZE = 150
32
+ export const EVENT_DESCRIPTION_SIZE = 350
33
+
25
34
  /**
26
35
  * Calculate the total number of views from the given dates and event statistic.
27
36
  *
@@ -1,8 +1,6 @@
1
1
  import { ReactNode } from 'react'
2
2
  import clsx from 'clsx'
3
3
  import { Image } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper'
4
- import { ZoneResourcesAvailability } from '@licklist/core/dist/DataMapper/Order/ZoneResourcesAvailabilityDataMapper'
5
- import { AvailabilityIndicator } from '../../availability-indicator'
6
4
 
7
5
  export const LAYOUT_GRID = 'grid'
8
6
  export const LAYOUT_LIST = 'list'
@@ -17,7 +15,6 @@ export type ActivityCardProps = {
17
15
  layout?: typeof LAYOUT_GRID | typeof LAYOUT_LIST
18
16
  availableTimes?: string | null
19
17
  image?: Image | null
20
- resources?: ZoneResourcesAvailability
21
18
  }
22
19
 
23
20
  export const ActivityCard = ({
@@ -30,7 +27,6 @@ export const ActivityCard = ({
30
27
  onSelect,
31
28
  isSelected,
32
29
  layout = LAYOUT_GRID,
33
- resources,
34
30
  }: ActivityCardProps) => {
35
31
  if (layout === LAYOUT_GRID) {
36
32
  return (
@@ -50,7 +46,6 @@ export const ActivityCard = ({
50
46
  {description && (
51
47
  <div className='mt-2 activity-card-description'>{description}</div>
52
48
  )}
53
- {resources && <AvailabilityIndicator resources={resources} />}
54
49
  </div>
55
50
  </button>
56
51
  )
@@ -76,7 +71,6 @@ export const ActivityCard = ({
76
71
  {description && (
77
72
  <div className='mt-2 activity-card-description'>{description}</div>
78
73
  )}
79
- {resources && <AvailabilityIndicator resources={resources} />}
80
74
  </div>
81
75
 
82
76
  <hr className='list-activity-card-hr' />