tg-core-components 6.3.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.
|
@@ -223,30 +223,35 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
223
223
|
currency: currency
|
|
224
224
|
}),
|
|
225
225
|
Object.values(timespans).map(function (t) {
|
|
226
|
-
return React.createElement(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
+
);
|
|
250
255
|
}),
|
|
251
256
|
!hideSubmit && React.createElement(
|
|
252
257
|
Button,
|
|
@@ -265,30 +265,35 @@ var LimitContent = function LimitContent(_ref3) {
|
|
|
265
265
|
currency: currency
|
|
266
266
|
}),
|
|
267
267
|
Object.values(timespans).map(function (t) {
|
|
268
|
-
return _react2.default.createElement(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
+
);
|
|
292
297
|
}),
|
|
293
298
|
!hideSubmit && _react2.default.createElement(
|
|
294
299
|
_Button2.default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.4-2.4",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "655fb1956cc5f772c25bcb3a193836eb387d5122"
|
|
80
80
|
}
|