tg-core-components 6.3.4-2.3 → 6.3.4-2.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.
|
@@ -125,7 +125,6 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
|
|
|
125
125
|
return React.createElement(
|
|
126
126
|
'div',
|
|
127
127
|
{ className: cn('ResponsibleGamingWidget', className) },
|
|
128
|
-
console.log('currentlimit', currentLimit),
|
|
129
128
|
React.createElement(
|
|
130
129
|
AccordionWidget,
|
|
131
130
|
{
|
|
@@ -224,30 +223,35 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
224
223
|
currency: currency
|
|
225
224
|
}),
|
|
226
225
|
Object.values(timespans).map(function (t) {
|
|
227
|
-
return React.createElement(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
226
|
+
return React.createElement(
|
|
227
|
+
'div',
|
|
228
|
+
null,
|
|
229
|
+
console.log(t),
|
|
230
|
+
React.createElement(Timespan, _extends({
|
|
231
|
+
key: t.timespan,
|
|
232
|
+
title: Object.values(timespans).length > 1 && messages.get('header.responsible-gaming.timespan.' + t.timespan),
|
|
233
|
+
onChangeLimit: onChangeLimit(t.timespan),
|
|
234
|
+
onResetLimit: function onResetLimit() {
|
|
235
|
+
return onSubmitLimits([t.currentLimit]);
|
|
236
|
+
},
|
|
237
|
+
onConfirmLimit: onConfirmLimit,
|
|
238
|
+
onDeclineLimit: onDeclineLimit,
|
|
239
|
+
onPickLimit: function onPickLimit(id) {
|
|
240
|
+
return onSubmitLimits(t.pickLimits.filter(function (l) {
|
|
241
|
+
return l.Id !== id;
|
|
242
|
+
}).map(function (l) {
|
|
243
|
+
return _extends({}, l, { Amount: 0 });
|
|
244
|
+
}));
|
|
245
|
+
},
|
|
246
|
+
validationState: getValidationState(t.timespan),
|
|
247
|
+
currency: currency,
|
|
248
|
+
values: values,
|
|
249
|
+
valueType: valueType,
|
|
250
|
+
hideRemainingLimit: hideRemainingLimit,
|
|
251
|
+
showCurrentValue: showCurrentValue,
|
|
252
|
+
hideOther: hideOther
|
|
253
|
+
}, t))
|
|
254
|
+
);
|
|
251
255
|
}),
|
|
252
256
|
!hideSubmit && React.createElement(
|
|
253
257
|
Button,
|
|
@@ -167,7 +167,6 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
|
|
|
167
167
|
return _react2.default.createElement(
|
|
168
168
|
'div',
|
|
169
169
|
{ className: (0, _classnames2.default)('ResponsibleGamingWidget', className) },
|
|
170
|
-
console.log('currentlimit', currentLimit),
|
|
171
170
|
_react2.default.createElement(
|
|
172
171
|
_AccordionWidget2.default,
|
|
173
172
|
{
|
|
@@ -266,30 +265,35 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
266
265
|
currency: currency
|
|
267
266
|
}),
|
|
268
267
|
Object.values(timespans).map(function (t) {
|
|
269
|
-
return _react2.default.createElement(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
268
|
+
return _react2.default.createElement(
|
|
269
|
+
'div',
|
|
270
|
+
null,
|
|
271
|
+
console.log(t),
|
|
272
|
+
_react2.default.createElement(_Timespan2.default, _extends({
|
|
273
|
+
key: t.timespan,
|
|
274
|
+
title: Object.values(timespans).length > 1 && _messages2.default.get('header.responsible-gaming.timespan.' + t.timespan),
|
|
275
|
+
onChangeLimit: onChangeLimit(t.timespan),
|
|
276
|
+
onResetLimit: function onResetLimit() {
|
|
277
|
+
return onSubmitLimits([t.currentLimit]);
|
|
278
|
+
},
|
|
279
|
+
onConfirmLimit: onConfirmLimit,
|
|
280
|
+
onDeclineLimit: onDeclineLimit,
|
|
281
|
+
onPickLimit: function onPickLimit(id) {
|
|
282
|
+
return onSubmitLimits(t.pickLimits.filter(function (l) {
|
|
283
|
+
return l.Id !== id;
|
|
284
|
+
}).map(function (l) {
|
|
285
|
+
return _extends({}, l, { Amount: 0 });
|
|
286
|
+
}));
|
|
287
|
+
},
|
|
288
|
+
validationState: getValidationState(t.timespan),
|
|
289
|
+
currency: currency,
|
|
290
|
+
values: values,
|
|
291
|
+
valueType: valueType,
|
|
292
|
+
hideRemainingLimit: hideRemainingLimit,
|
|
293
|
+
showCurrentValue: showCurrentValue,
|
|
294
|
+
hideOther: hideOther
|
|
295
|
+
}, t))
|
|
296
|
+
);
|
|
293
297
|
}),
|
|
294
298
|
!hideSubmit && _react2.default.createElement(
|
|
295
299
|
_Button2.default,
|