ordering-ui-external 10.10.12 → 10.10.13
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.
|
@@ -35,7 +35,7 @@ var ProductOptionSubOptionPropsAreEqual = function ProductOptionSubOptionPropsAr
|
|
|
35
35
|
return JSON.stringify(prevProps.state) === JSON.stringify(nextProps.state) && JSON.stringify(prevProps.pizzaType) === JSON.stringify(nextProps.pizzaType) && prevProps.balance === nextProps.balance && JSON.stringify(prevProps.productCart) === JSON.stringify(nextProps.productCart);
|
|
36
36
|
};
|
|
37
37
|
var ProductOptionSubOptionUI = /*#__PURE__*/_react.default.memo(function (props) {
|
|
38
|
-
var _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
38
|
+
var _props$beforeElements, _props$beforeComponen, _pizzaType$type2, _pizzaType$type3, _pizzaType$type4, _props$afterComponent, _props$afterElements;
|
|
39
39
|
var state = props.state,
|
|
40
40
|
increment = props.increment,
|
|
41
41
|
decrement = props.decrement,
|
|
@@ -143,21 +143,21 @@ var ProductOptionSubOptionUI = /*#__PURE__*/_react.default.memo(function (props)
|
|
|
143
143
|
disabled: disableIncrement || isSoldOut,
|
|
144
144
|
onClick: handleIncrement
|
|
145
145
|
}))), /*#__PURE__*/_react.default.createElement(_styles.PositionControl, null, (option === null || option === void 0 ? void 0 : option.with_half_option) && (state === null || state === void 0 ? void 0 : state.selected) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_BsCircleHalf.default, {
|
|
146
|
-
className: [pizzaType.center ? 'disabled' : '', pizzaType.type === 'Mitad y mitad' && 'disable-clicks', 'reverse', state.selected && state.position === 'left' ? 'selected' : null].filter(function (classname) {
|
|
146
|
+
className: [pizzaType.center ? 'disabled' : '', ((_pizzaType$type2 = pizzaType.type) === null || _pizzaType$type2 === void 0 ? void 0 : _pizzaType$type2.toLowerCase()) === 'Mitad y mitad' && 'disable-clicks', 'reverse', state.selected && state.position === 'left' ? 'selected' : null].filter(function (classname) {
|
|
147
147
|
return classname;
|
|
148
148
|
}).join(' '),
|
|
149
149
|
onClick: function onClick(e) {
|
|
150
150
|
return handlePosition(e, 'left');
|
|
151
151
|
}
|
|
152
152
|
}), /*#__PURE__*/_react.default.createElement(_BsCircleFill.default, {
|
|
153
|
-
className: [!pizzaType.center && pizzaType.type === 'Mitad y mitad' ? 'disabled' : '', state.selected && state.position === 'whole' ? 'selected' : null].filter(function (classname) {
|
|
153
|
+
className: [!pizzaType.center && ((_pizzaType$type3 = pizzaType.type) === null || _pizzaType$type3 === void 0 ? void 0 : _pizzaType$type3.toLowerCase()) === 'Mitad y mitad' ? 'disabled' : '', state.selected && state.position === 'whole' ? 'selected' : null].filter(function (classname) {
|
|
154
154
|
return classname;
|
|
155
155
|
}).join(' '),
|
|
156
156
|
onClick: function onClick(e) {
|
|
157
157
|
return handlePosition(e, 'whole');
|
|
158
158
|
}
|
|
159
159
|
}), /*#__PURE__*/_react.default.createElement(_BsCircleHalf.default, {
|
|
160
|
-
className: [pizzaType.center ? 'disabled' : '', pizzaType.type === 'Mitad y mitad' && 'disable-clicks', state.selected && state.position === 'right' ? 'selected' : null].filter(function (classname) {
|
|
160
|
+
className: [pizzaType.center ? 'disabled' : '', ((_pizzaType$type4 = pizzaType.type) === null || _pizzaType$type4 === void 0 ? void 0 : _pizzaType$type4.toLowerCase()) === 'Mitad y mitad' && 'disable-clicks', state.selected && state.position === 'right' ? 'selected' : null].filter(function (classname) {
|
|
161
161
|
return classname;
|
|
162
162
|
}).join(' '),
|
|
163
163
|
onClick: function onClick(e) {
|
package/package.json
CHANGED
|
@@ -166,21 +166,21 @@ const ProductOptionSubOptionUI = React.memo((props) => {
|
|
|
166
166
|
<BsCircleHalf
|
|
167
167
|
className={[
|
|
168
168
|
pizzaType.center ? 'disabled' : '',
|
|
169
|
-
pizzaType.type === 'Mitad y mitad' && 'disable-clicks',
|
|
169
|
+
pizzaType.type?.toLowerCase() === 'Mitad y mitad' && 'disable-clicks',
|
|
170
170
|
'reverse',
|
|
171
171
|
state.selected && state.position === 'left' ? 'selected' : null].filter(classname => classname).join(' ')}
|
|
172
172
|
onClick={(e) => handlePosition(e, 'left')}
|
|
173
173
|
/>
|
|
174
174
|
<BsCircleFill
|
|
175
175
|
className={[
|
|
176
|
-
!pizzaType.center && pizzaType.type === 'Mitad y mitad' ? 'disabled' : '',
|
|
176
|
+
!pizzaType.center && pizzaType.type?.toLowerCase() === 'Mitad y mitad' ? 'disabled' : '',
|
|
177
177
|
state.selected && state.position === 'whole' ? 'selected' : null].filter(classname => classname).join(' ')}
|
|
178
178
|
onClick={(e) => handlePosition(e, 'whole')}
|
|
179
179
|
/>
|
|
180
180
|
<BsCircleHalf
|
|
181
181
|
className={[
|
|
182
182
|
pizzaType.center ? 'disabled' : '',
|
|
183
|
-
pizzaType.type === 'Mitad y mitad' && 'disable-clicks',
|
|
183
|
+
pizzaType.type?.toLowerCase() === 'Mitad y mitad' && 'disable-clicks',
|
|
184
184
|
state.selected && state.position === 'right' ? 'selected' : null].filter(classname => classname).join(' ')}
|
|
185
185
|
onClick={(e) => handlePosition(e, 'right')}
|
|
186
186
|
/>
|