@everymatrix/lottery-program-wof 1.22.10 → 1.23.0
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.
|
@@ -8403,47 +8403,47 @@
|
|
|
8403
8403
|
|
|
8404
8404
|
function get_each_context$2(ctx, list, i) {
|
|
8405
8405
|
const child_ctx = ctx.slice();
|
|
8406
|
-
child_ctx[
|
|
8407
|
-
child_ctx[
|
|
8406
|
+
child_ctx[43] = list[i];
|
|
8407
|
+
child_ctx[45] = i;
|
|
8408
8408
|
return child_ctx;
|
|
8409
8409
|
}
|
|
8410
8410
|
|
|
8411
8411
|
function get_each_context_1(ctx, list, i) {
|
|
8412
8412
|
const child_ctx = ctx.slice();
|
|
8413
|
-
child_ctx[
|
|
8414
|
-
child_ctx[
|
|
8413
|
+
child_ctx[43] = list[i];
|
|
8414
|
+
child_ctx[45] = i;
|
|
8415
8415
|
return child_ctx;
|
|
8416
8416
|
}
|
|
8417
8417
|
|
|
8418
8418
|
function get_each_context_2(ctx, list, i) {
|
|
8419
8419
|
const child_ctx = ctx.slice();
|
|
8420
|
-
child_ctx[
|
|
8421
|
-
child_ctx[
|
|
8420
|
+
child_ctx[43] = list[i];
|
|
8421
|
+
child_ctx[45] = i;
|
|
8422
8422
|
return child_ctx;
|
|
8423
8423
|
}
|
|
8424
8424
|
|
|
8425
8425
|
function get_each_context_3(ctx, list, i) {
|
|
8426
8426
|
const child_ctx = ctx.slice();
|
|
8427
|
-
child_ctx[
|
|
8428
|
-
child_ctx[
|
|
8427
|
+
child_ctx[43] = list[i];
|
|
8428
|
+
child_ctx[45] = i;
|
|
8429
8429
|
return child_ctx;
|
|
8430
8430
|
}
|
|
8431
8431
|
|
|
8432
8432
|
function get_each_context_4(ctx, list, i) {
|
|
8433
8433
|
const child_ctx = ctx.slice();
|
|
8434
|
-
child_ctx[
|
|
8435
|
-
child_ctx[
|
|
8434
|
+
child_ctx[43] = list[i];
|
|
8435
|
+
child_ctx[45] = i;
|
|
8436
8436
|
return child_ctx;
|
|
8437
8437
|
}
|
|
8438
8438
|
|
|
8439
8439
|
function get_each_context_5(ctx, list, i) {
|
|
8440
8440
|
const child_ctx = ctx.slice();
|
|
8441
|
-
child_ctx[
|
|
8442
|
-
child_ctx[
|
|
8441
|
+
child_ctx[43] = list[i];
|
|
8442
|
+
child_ctx[45] = i;
|
|
8443
8443
|
return child_ctx;
|
|
8444
8444
|
}
|
|
8445
8445
|
|
|
8446
|
-
// (
|
|
8446
|
+
// (175:2) {#if Number(size) && options.length}
|
|
8447
8447
|
function create_if_block$2(ctx) {
|
|
8448
8448
|
let svg_1;
|
|
8449
8449
|
let foreignObject0;
|
|
@@ -8462,7 +8462,7 @@
|
|
|
8462
8462
|
let g7;
|
|
8463
8463
|
let mounted;
|
|
8464
8464
|
let dispose;
|
|
8465
|
-
let foreignObject0_levels = [/*sizeProps*/ ctx[
|
|
8465
|
+
let foreignObject0_levels = [/*sizeProps*/ ctx[12], { class: "Bottom Customable" }];
|
|
8466
8466
|
let foreignObject_data_3 = {};
|
|
8467
8467
|
|
|
8468
8468
|
for (let i = 0; i < foreignObject0_levels.length; i += 1) {
|
|
@@ -8517,14 +8517,14 @@
|
|
|
8517
8517
|
}
|
|
8518
8518
|
|
|
8519
8519
|
let if_block = /*theme*/ ctx[4].pointerMode === PointerMode.Partition && create_if_block_1$1(ctx);
|
|
8520
|
-
let foreignObject1_levels = [{ class: "Middle Customable" }, /*sizeProps*/ ctx[
|
|
8520
|
+
let foreignObject1_levels = [{ class: "Middle Customable" }, /*sizeProps*/ ctx[12]];
|
|
8521
8521
|
let foreignObject_data_2 = {};
|
|
8522
8522
|
|
|
8523
8523
|
for (let i = 0; i < foreignObject1_levels.length; i += 1) {
|
|
8524
8524
|
foreignObject_data_2 = assign(foreignObject_data_2, foreignObject1_levels[i]);
|
|
8525
8525
|
}
|
|
8526
8526
|
|
|
8527
|
-
let foreignObject2_levels = [{ class: "Top Customable" }, /*sizeProps*/ ctx[
|
|
8527
|
+
let foreignObject2_levels = [{ class: "Top Customable" }, /*sizeProps*/ ctx[12]];
|
|
8528
8528
|
let foreignObject_data_1 = {};
|
|
8529
8529
|
|
|
8530
8530
|
for (let i = 0; i < foreignObject2_levels.length; i += 1) {
|
|
@@ -8586,37 +8586,39 @@
|
|
|
8586
8586
|
}
|
|
8587
8587
|
|
|
8588
8588
|
set_svg_attributes(foreignObject0, foreignObject_data_3);
|
|
8589
|
-
add_location(foreignObject0, file$2,
|
|
8589
|
+
add_location(foreignObject0, file$2, 182, 4, 5530);
|
|
8590
8590
|
attr_dev(g0, "class", "PartitionsBackgrounds");
|
|
8591
|
-
add_location(g0, file$2,
|
|
8591
|
+
add_location(g0, file$2, 185, 6, 5660);
|
|
8592
8592
|
attr_dev(g1, "class", "PartitionsBackgroundStrokes");
|
|
8593
|
-
add_location(g1, file$2,
|
|
8593
|
+
add_location(g1, file$2, 196, 6, 5993);
|
|
8594
8594
|
attr_dev(g2, "class", "Partitions");
|
|
8595
|
-
set_style(g2, "filter", /*optionFilter*/ ctx[
|
|
8596
|
-
add_location(g2, file$2,
|
|
8595
|
+
set_style(g2, "filter", /*optionFilter*/ ctx[13]);
|
|
8596
|
+
add_location(g2, file$2, 207, 6, 6268);
|
|
8597
8597
|
set_svg_attributes(g3, g_data_7);
|
|
8598
|
-
add_location(g3, file$2,
|
|
8598
|
+
add_location(g3, file$2, 184, 4, 5594);
|
|
8599
8599
|
attr_dev(g4, "class", "PartitionsCustomable1");
|
|
8600
|
-
|
|
8600
|
+
toggle_class(g4, "active", /*isPartitionsCustomableReady*/ ctx[7]);
|
|
8601
|
+
add_location(g4, file$2, 233, 4, 7006);
|
|
8601
8602
|
attr_dev(g5, "class", "PartitionsCustomable2");
|
|
8602
|
-
|
|
8603
|
+
toggle_class(g5, "active", /*isPartitionsCustomableReady*/ ctx[7]);
|
|
8604
|
+
add_location(g5, file$2, 242, 4, 7275);
|
|
8603
8605
|
set_svg_attributes(foreignObject1, foreignObject_data_2);
|
|
8604
|
-
add_location(foreignObject1, file$2,
|
|
8606
|
+
add_location(foreignObject1, file$2, 265, 4, 7888);
|
|
8605
8607
|
set_svg_attributes(foreignObject2, foreignObject_data_1);
|
|
8606
|
-
add_location(foreignObject2, file$2,
|
|
8608
|
+
add_location(foreignObject2, file$2, 266, 4, 7951);
|
|
8607
8609
|
attr_dev(foreignObject3, "x", foreignObject3_x_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
|
|
8608
8610
|
attr_dev(foreignObject3, "y", foreignObject3_y_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
|
|
8609
8611
|
attr_dev(foreignObject3, "width", 100);
|
|
8610
8612
|
attr_dev(foreignObject3, "height", 100);
|
|
8611
|
-
add_location(foreignObject3, file$2,
|
|
8613
|
+
add_location(foreignObject3, file$2, 273, 6, 8131);
|
|
8612
8614
|
attr_dev(g6, "class", "Center");
|
|
8613
|
-
toggle_class(g6, "disabled", /*isSpinning*/ ctx[
|
|
8614
|
-
add_location(g6, file$2,
|
|
8615
|
-
add_location(g7, file$2,
|
|
8615
|
+
toggle_class(g6, "disabled", /*isSpinning*/ ctx[9]);
|
|
8616
|
+
add_location(g6, file$2, 268, 4, 8012);
|
|
8617
|
+
add_location(g7, file$2, 282, 4, 8298);
|
|
8616
8618
|
attr_dev(svg_1, "width", /*size*/ ctx[0]);
|
|
8617
8619
|
attr_dev(svg_1, "height", /*size*/ ctx[0]);
|
|
8618
|
-
set_style(svg_1, "opacity", /*messageShown*/ ctx[
|
|
8619
|
-
add_location(svg_1, file$2,
|
|
8620
|
+
set_style(svg_1, "opacity", /*messageShown*/ ctx[11] ? '.3' : '');
|
|
8621
|
+
add_location(svg_1, file$2, 175, 2, 5371);
|
|
8620
8622
|
},
|
|
8621
8623
|
m: function mount(target, anchor) {
|
|
8622
8624
|
insert_dev(target, svg_1, anchor);
|
|
@@ -8675,12 +8677,12 @@
|
|
|
8675
8677
|
}
|
|
8676
8678
|
}
|
|
8677
8679
|
|
|
8678
|
-
/*svg_1_binding*/ ctx[
|
|
8680
|
+
/*svg_1_binding*/ ctx[28](svg_1);
|
|
8679
8681
|
|
|
8680
8682
|
if (!mounted) {
|
|
8681
8683
|
dispose = [
|
|
8682
|
-
listen_dev(g6, "click", /*click_handler*/ ctx[
|
|
8683
|
-
listen_dev(svg_1, "click", /*click_handler_1*/ ctx[
|
|
8684
|
+
listen_dev(g6, "click", /*click_handler*/ ctx[27], false, false, false, false),
|
|
8685
|
+
listen_dev(svg_1, "click", /*click_handler_1*/ ctx[29], false, false, false, false)
|
|
8684
8686
|
];
|
|
8685
8687
|
|
|
8686
8688
|
mounted = true;
|
|
@@ -8688,7 +8690,7 @@
|
|
|
8688
8690
|
},
|
|
8689
8691
|
p: function update(ctx, dirty) {
|
|
8690
8692
|
set_svg_attributes(foreignObject0, foreignObject_data_3 = get_spread_update(foreignObject0_levels, [
|
|
8691
|
-
dirty[0] & /*sizeProps*/
|
|
8693
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12],
|
|
8692
8694
|
{ class: "Bottom Customable" }
|
|
8693
8695
|
]));
|
|
8694
8696
|
|
|
@@ -8764,8 +8766,8 @@
|
|
|
8764
8766
|
each_blocks_3.length = each_value_3.length;
|
|
8765
8767
|
}
|
|
8766
8768
|
|
|
8767
|
-
if (dirty[0] & /*optionFilter*/
|
|
8768
|
-
set_style(g2, "filter", /*optionFilter*/ ctx[
|
|
8769
|
+
if (dirty[0] & /*optionFilter*/ 8192) {
|
|
8770
|
+
set_style(g2, "filter", /*optionFilter*/ ctx[13]);
|
|
8769
8771
|
}
|
|
8770
8772
|
|
|
8771
8773
|
set_svg_attributes(g3, g_data_7 = get_spread_update(g3_levels, [
|
|
@@ -8773,7 +8775,7 @@
|
|
|
8773
8775
|
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSpinnerProps()
|
|
8774
8776
|
]));
|
|
8775
8777
|
|
|
8776
|
-
if (dirty[0] & /*sizeProps, options*/
|
|
8778
|
+
if (dirty[0] & /*sizeProps, options*/ 4104) {
|
|
8777
8779
|
each_value_2 = /*options*/ ctx[3];
|
|
8778
8780
|
validate_each_argument(each_value_2);
|
|
8779
8781
|
let i;
|
|
@@ -8797,7 +8799,11 @@
|
|
|
8797
8799
|
each_blocks_2.length = each_value_2.length;
|
|
8798
8800
|
}
|
|
8799
8801
|
|
|
8800
|
-
if (dirty[0] & /*
|
|
8802
|
+
if (dirty[0] & /*isPartitionsCustomableReady*/ 128) {
|
|
8803
|
+
toggle_class(g4, "active", /*isPartitionsCustomableReady*/ ctx[7]);
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
if (dirty[0] & /*sizeProps, options*/ 4104) {
|
|
8801
8807
|
each_value_1 = /*options*/ ctx[3];
|
|
8802
8808
|
validate_each_argument(each_value_1);
|
|
8803
8809
|
let i;
|
|
@@ -8821,6 +8827,10 @@
|
|
|
8821
8827
|
each_blocks_1.length = each_value_1.length;
|
|
8822
8828
|
}
|
|
8823
8829
|
|
|
8830
|
+
if (dirty[0] & /*isPartitionsCustomableReady*/ 128) {
|
|
8831
|
+
toggle_class(g5, "active", /*isPartitionsCustomableReady*/ ctx[7]);
|
|
8832
|
+
}
|
|
8833
|
+
|
|
8824
8834
|
if (/*theme*/ ctx[4].pointerMode === PointerMode.Partition) {
|
|
8825
8835
|
if (if_block) {
|
|
8826
8836
|
if_block.p(ctx, dirty);
|
|
@@ -8836,12 +8846,12 @@
|
|
|
8836
8846
|
|
|
8837
8847
|
set_svg_attributes(foreignObject1, foreignObject_data_2 = get_spread_update(foreignObject1_levels, [
|
|
8838
8848
|
{ class: "Middle Customable" },
|
|
8839
|
-
dirty[0] & /*sizeProps*/
|
|
8849
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12]
|
|
8840
8850
|
]));
|
|
8841
8851
|
|
|
8842
8852
|
set_svg_attributes(foreignObject2, foreignObject_data_1 = get_spread_update(foreignObject2_levels, [
|
|
8843
8853
|
{ class: "Top Customable" },
|
|
8844
|
-
dirty[0] & /*sizeProps*/
|
|
8854
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12]
|
|
8845
8855
|
]));
|
|
8846
8856
|
|
|
8847
8857
|
if (dirty[0] & /*size*/ 1 && foreignObject3_x_value !== (foreignObject3_x_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2)) {
|
|
@@ -8852,8 +8862,8 @@
|
|
|
8852
8862
|
attr_dev(foreignObject3, "y", foreignObject3_y_value);
|
|
8853
8863
|
}
|
|
8854
8864
|
|
|
8855
|
-
if (dirty[0] & /*isSpinning*/
|
|
8856
|
-
toggle_class(g6, "disabled", /*isSpinning*/ ctx[
|
|
8865
|
+
if (dirty[0] & /*isSpinning*/ 512) {
|
|
8866
|
+
toggle_class(g6, "disabled", /*isSpinning*/ ctx[9]);
|
|
8857
8867
|
}
|
|
8858
8868
|
|
|
8859
8869
|
if (dirty[0] & /*calc, options*/ 40) {
|
|
@@ -8888,8 +8898,8 @@
|
|
|
8888
8898
|
attr_dev(svg_1, "height", /*size*/ ctx[0]);
|
|
8889
8899
|
}
|
|
8890
8900
|
|
|
8891
|
-
if (dirty[0] & /*messageShown*/
|
|
8892
|
-
set_style(svg_1, "opacity", /*messageShown*/ ctx[
|
|
8901
|
+
if (dirty[0] & /*messageShown*/ 2048) {
|
|
8902
|
+
set_style(svg_1, "opacity", /*messageShown*/ ctx[11] ? '.3' : '');
|
|
8893
8903
|
}
|
|
8894
8904
|
},
|
|
8895
8905
|
d: function destroy(detaching) {
|
|
@@ -8901,7 +8911,7 @@
|
|
|
8901
8911
|
destroy_each(each_blocks_1, detaching);
|
|
8902
8912
|
if (if_block) if_block.d();
|
|
8903
8913
|
destroy_each(each_blocks, detaching);
|
|
8904
|
-
/*svg_1_binding*/ ctx[
|
|
8914
|
+
/*svg_1_binding*/ ctx[28](null);
|
|
8905
8915
|
mounted = false;
|
|
8906
8916
|
run_all(dispose);
|
|
8907
8917
|
}
|
|
@@ -8911,26 +8921,26 @@
|
|
|
8911
8921
|
block,
|
|
8912
8922
|
id: create_if_block$2.name,
|
|
8913
8923
|
type: "if",
|
|
8914
|
-
source: "(
|
|
8924
|
+
source: "(175:2) {#if Number(size) && options.length}",
|
|
8915
8925
|
ctx
|
|
8916
8926
|
});
|
|
8917
8927
|
|
|
8918
8928
|
return block;
|
|
8919
8929
|
}
|
|
8920
8930
|
|
|
8921
|
-
// (
|
|
8931
|
+
// (187:8) {#each options as option, index}
|
|
8922
8932
|
function create_each_block_5(ctx) {
|
|
8923
8933
|
let foreignObject;
|
|
8924
8934
|
|
|
8925
8935
|
const block = {
|
|
8926
8936
|
c: function create() {
|
|
8927
8937
|
foreignObject = svg_element("foreignObject");
|
|
8928
|
-
attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[
|
|
8938
|
+
attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[45]})`);
|
|
8929
8939
|
attr_dev(foreignObject, "class", "PartitionBackground Customable");
|
|
8930
|
-
attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[
|
|
8940
|
+
attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[45]}`);
|
|
8931
8941
|
attr_dev(foreignObject, "width", /*size*/ ctx[0]);
|
|
8932
8942
|
attr_dev(foreignObject, "height", /*size*/ ctx[0]);
|
|
8933
|
-
add_location(foreignObject, file$2,
|
|
8943
|
+
add_location(foreignObject, file$2, 187, 10, 5745);
|
|
8934
8944
|
},
|
|
8935
8945
|
m: function mount(target, anchor) {
|
|
8936
8946
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -8953,20 +8963,20 @@
|
|
|
8953
8963
|
block,
|
|
8954
8964
|
id: create_each_block_5.name,
|
|
8955
8965
|
type: "each",
|
|
8956
|
-
source: "(
|
|
8966
|
+
source: "(187:8) {#each options as option, index}",
|
|
8957
8967
|
ctx
|
|
8958
8968
|
});
|
|
8959
8969
|
|
|
8960
8970
|
return block;
|
|
8961
8971
|
}
|
|
8962
8972
|
|
|
8963
|
-
// (
|
|
8973
|
+
// (198:8) {#each options as option, index}
|
|
8964
8974
|
function create_each_block_4(ctx) {
|
|
8965
8975
|
let path;
|
|
8966
8976
|
|
|
8967
8977
|
let path_levels = [
|
|
8968
8978
|
{ class: "PartitionBackgroundStroke" },
|
|
8969
|
-
/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
8979
|
+
/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[45]),
|
|
8970
8980
|
{ width: /*size*/ ctx[0] },
|
|
8971
8981
|
{ height: /*size*/ ctx[0] }
|
|
8972
8982
|
];
|
|
@@ -8981,7 +8991,7 @@
|
|
|
8981
8991
|
c: function create() {
|
|
8982
8992
|
path = svg_element("path");
|
|
8983
8993
|
set_svg_attributes(path, path_data);
|
|
8984
|
-
add_location(path, file$2,
|
|
8994
|
+
add_location(path, file$2, 198, 8, 6082);
|
|
8985
8995
|
},
|
|
8986
8996
|
m: function mount(target, anchor) {
|
|
8987
8997
|
insert_dev(target, path, anchor);
|
|
@@ -8989,7 +8999,7 @@
|
|
|
8989
8999
|
p: function update(ctx, dirty) {
|
|
8990
9000
|
set_svg_attributes(path, path_data = get_spread_update(path_levels, [
|
|
8991
9001
|
{ class: "PartitionBackgroundStroke" },
|
|
8992
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
9002
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[45]),
|
|
8993
9003
|
dirty[0] & /*size*/ 1 && { width: /*size*/ ctx[0] },
|
|
8994
9004
|
dirty[0] & /*size*/ 1 && { height: /*size*/ ctx[0] }
|
|
8995
9005
|
]));
|
|
@@ -9003,14 +9013,14 @@
|
|
|
9003
9013
|
block,
|
|
9004
9014
|
id: create_each_block_4.name,
|
|
9005
9015
|
type: "each",
|
|
9006
|
-
source: "(
|
|
9016
|
+
source: "(198:8) {#each options as option, index}",
|
|
9007
9017
|
ctx
|
|
9008
9018
|
});
|
|
9009
9019
|
|
|
9010
9020
|
return block;
|
|
9011
9021
|
}
|
|
9012
9022
|
|
|
9013
|
-
// (
|
|
9023
|
+
// (211:10) {#if option.image}
|
|
9014
9024
|
function create_if_block_3(ctx) {
|
|
9015
9025
|
let g;
|
|
9016
9026
|
let mounted;
|
|
@@ -9019,14 +9029,14 @@
|
|
|
9019
9029
|
const block = {
|
|
9020
9030
|
c: function create() {
|
|
9021
9031
|
g = svg_element("g");
|
|
9022
|
-
attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[
|
|
9023
|
-
add_location(g, file$2,
|
|
9032
|
+
attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[45]}`);
|
|
9033
|
+
add_location(g, file$2, 211, 12, 6401);
|
|
9024
9034
|
},
|
|
9025
9035
|
m: function mount(target, anchor) {
|
|
9026
9036
|
insert_dev(target, g, anchor);
|
|
9027
9037
|
|
|
9028
9038
|
if (!mounted) {
|
|
9029
|
-
dispose = action_destroyer(/*renderImage*/ ctx[
|
|
9039
|
+
dispose = action_destroyer(/*renderImage*/ ctx[15].call(null, g, /*index*/ ctx[45]));
|
|
9030
9040
|
mounted = true;
|
|
9031
9041
|
}
|
|
9032
9042
|
},
|
|
@@ -9044,25 +9054,25 @@
|
|
|
9044
9054
|
block,
|
|
9045
9055
|
id: create_if_block_3.name,
|
|
9046
9056
|
type: "if",
|
|
9047
|
-
source: "(
|
|
9057
|
+
source: "(211:10) {#if option.image}",
|
|
9048
9058
|
ctx
|
|
9049
9059
|
});
|
|
9050
9060
|
|
|
9051
9061
|
return block;
|
|
9052
9062
|
}
|
|
9053
9063
|
|
|
9054
|
-
// (
|
|
9064
|
+
// (218:10) {#if option.name}
|
|
9055
9065
|
function create_if_block_2(ctx) {
|
|
9056
9066
|
let foreignObject;
|
|
9057
9067
|
let div;
|
|
9058
9068
|
let p;
|
|
9059
|
-
let raw_value = /*option*/ ctx[
|
|
9069
|
+
let raw_value = /*option*/ ctx[43].name + "";
|
|
9060
9070
|
let p_class_value;
|
|
9061
9071
|
let t;
|
|
9062
9072
|
|
|
9063
9073
|
let foreignObject_levels = [
|
|
9064
9074
|
{ class: "PartitionText" },
|
|
9065
|
-
/*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[
|
|
9075
|
+
/*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[45])
|
|
9066
9076
|
];
|
|
9067
9077
|
|
|
9068
9078
|
let foreignObject_data = {};
|
|
@@ -9082,11 +9092,11 @@
|
|
|
9082
9092
|
? ''
|
|
9083
9093
|
: ' Anticlockwise'}`);
|
|
9084
9094
|
|
|
9085
|
-
add_location(p, file$2,
|
|
9095
|
+
add_location(p, file$2, 223, 16, 6776);
|
|
9086
9096
|
attr_dev(div, "class", "PartitionTextEntityContainer");
|
|
9087
|
-
add_location(div, file$2,
|
|
9097
|
+
add_location(div, file$2, 222, 14, 6717);
|
|
9088
9098
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9089
|
-
add_location(foreignObject, file$2,
|
|
9099
|
+
add_location(foreignObject, file$2, 218, 12, 6576);
|
|
9090
9100
|
},
|
|
9091
9101
|
m: function mount(target, anchor) {
|
|
9092
9102
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9096,7 +9106,7 @@
|
|
|
9096
9106
|
append_dev(div, t);
|
|
9097
9107
|
},
|
|
9098
9108
|
p: function update(ctx, dirty) {
|
|
9099
|
-
if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[
|
|
9109
|
+
if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[43].name + "")) p.innerHTML = raw_value;
|
|
9100
9110
|
if (dirty[0] & /*calc*/ 32 && p_class_value !== (p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
|
|
9101
9111
|
? ''
|
|
9102
9112
|
: ' Anticlockwise'}`)) {
|
|
@@ -9105,7 +9115,7 @@
|
|
|
9105
9115
|
|
|
9106
9116
|
set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
|
|
9107
9117
|
{ class: "PartitionText" },
|
|
9108
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[
|
|
9118
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[45])
|
|
9109
9119
|
]));
|
|
9110
9120
|
},
|
|
9111
9121
|
d: function destroy(detaching) {
|
|
@@ -9117,19 +9127,19 @@
|
|
|
9117
9127
|
block,
|
|
9118
9128
|
id: create_if_block_2.name,
|
|
9119
9129
|
type: "if",
|
|
9120
|
-
source: "(
|
|
9130
|
+
source: "(218:10) {#if option.name}",
|
|
9121
9131
|
ctx
|
|
9122
9132
|
});
|
|
9123
9133
|
|
|
9124
9134
|
return block;
|
|
9125
9135
|
}
|
|
9126
9136
|
|
|
9127
|
-
// (
|
|
9137
|
+
// (209:8) {#each options as option,index}
|
|
9128
9138
|
function create_each_block_3(ctx) {
|
|
9129
9139
|
let if_block0_anchor;
|
|
9130
9140
|
let if_block1_anchor;
|
|
9131
|
-
let if_block0 = /*option*/ ctx[
|
|
9132
|
-
let if_block1 = /*option*/ ctx[
|
|
9141
|
+
let if_block0 = /*option*/ ctx[43].image && create_if_block_3(ctx);
|
|
9142
|
+
let if_block1 = /*option*/ ctx[43].name && create_if_block_2(ctx);
|
|
9133
9143
|
|
|
9134
9144
|
const block = {
|
|
9135
9145
|
c: function create() {
|
|
@@ -9145,7 +9155,7 @@
|
|
|
9145
9155
|
insert_dev(target, if_block1_anchor, anchor);
|
|
9146
9156
|
},
|
|
9147
9157
|
p: function update(ctx, dirty) {
|
|
9148
|
-
if (/*option*/ ctx[
|
|
9158
|
+
if (/*option*/ ctx[43].image) {
|
|
9149
9159
|
if (if_block0) ; else {
|
|
9150
9160
|
if_block0 = create_if_block_3(ctx);
|
|
9151
9161
|
if_block0.c();
|
|
@@ -9156,7 +9166,7 @@
|
|
|
9156
9166
|
if_block0 = null;
|
|
9157
9167
|
}
|
|
9158
9168
|
|
|
9159
|
-
if (/*option*/ ctx[
|
|
9169
|
+
if (/*option*/ ctx[43].name) {
|
|
9160
9170
|
if (if_block1) {
|
|
9161
9171
|
if_block1.p(ctx, dirty);
|
|
9162
9172
|
} else {
|
|
@@ -9181,14 +9191,14 @@
|
|
|
9181
9191
|
block,
|
|
9182
9192
|
id: create_each_block_3.name,
|
|
9183
9193
|
type: "each",
|
|
9184
|
-
source: "(
|
|
9194
|
+
source: "(209:8) {#each options as option,index}",
|
|
9185
9195
|
ctx
|
|
9186
9196
|
});
|
|
9187
9197
|
|
|
9188
9198
|
return block;
|
|
9189
9199
|
}
|
|
9190
9200
|
|
|
9191
|
-
// (
|
|
9201
|
+
// (235:6) {#each options as option,index}
|
|
9192
9202
|
function create_each_block_2(ctx) {
|
|
9193
9203
|
let foreignObject;
|
|
9194
9204
|
let foreignObject_style_value;
|
|
@@ -9196,9 +9206,9 @@
|
|
|
9196
9206
|
let foreignObject_levels = [
|
|
9197
9207
|
{ class: "Partition1 Customable" },
|
|
9198
9208
|
{
|
|
9199
|
-
style: foreignObject_style_value = `--index: ${/*index*/ ctx[
|
|
9209
|
+
style: foreignObject_style_value = `--index: ${/*index*/ ctx[45]}`
|
|
9200
9210
|
},
|
|
9201
|
-
/*sizeProps*/ ctx[
|
|
9211
|
+
/*sizeProps*/ ctx[12]
|
|
9202
9212
|
];
|
|
9203
9213
|
|
|
9204
9214
|
let foreignObject_data = {};
|
|
@@ -9211,7 +9221,7 @@
|
|
|
9211
9221
|
c: function create() {
|
|
9212
9222
|
foreignObject = svg_element("foreignObject");
|
|
9213
9223
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9214
|
-
add_location(foreignObject, file$2,
|
|
9224
|
+
add_location(foreignObject, file$2, 235, 6, 7127);
|
|
9215
9225
|
},
|
|
9216
9226
|
m: function mount(target, anchor) {
|
|
9217
9227
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9220,7 +9230,7 @@
|
|
|
9220
9230
|
set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
|
|
9221
9231
|
{ class: "Partition1 Customable" },
|
|
9222
9232
|
{ style: foreignObject_style_value },
|
|
9223
|
-
dirty[0] & /*sizeProps*/
|
|
9233
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12]
|
|
9224
9234
|
]));
|
|
9225
9235
|
},
|
|
9226
9236
|
d: function destroy(detaching) {
|
|
@@ -9232,14 +9242,14 @@
|
|
|
9232
9242
|
block,
|
|
9233
9243
|
id: create_each_block_2.name,
|
|
9234
9244
|
type: "each",
|
|
9235
|
-
source: "(
|
|
9245
|
+
source: "(235:6) {#each options as option,index}",
|
|
9236
9246
|
ctx
|
|
9237
9247
|
});
|
|
9238
9248
|
|
|
9239
9249
|
return block;
|
|
9240
9250
|
}
|
|
9241
9251
|
|
|
9242
|
-
// (
|
|
9252
|
+
// (244:6) {#each options as option,index}
|
|
9243
9253
|
function create_each_block_1(ctx) {
|
|
9244
9254
|
let foreignObject;
|
|
9245
9255
|
let foreignObject_style_value;
|
|
@@ -9247,9 +9257,9 @@
|
|
|
9247
9257
|
let foreignObject_levels = [
|
|
9248
9258
|
{ class: "Partition2 Customable" },
|
|
9249
9259
|
{
|
|
9250
|
-
style: foreignObject_style_value = `--index: ${/*index*/ ctx[
|
|
9260
|
+
style: foreignObject_style_value = `--index: ${/*index*/ ctx[45]}`
|
|
9251
9261
|
},
|
|
9252
|
-
/*sizeProps*/ ctx[
|
|
9262
|
+
/*sizeProps*/ ctx[12]
|
|
9253
9263
|
];
|
|
9254
9264
|
|
|
9255
9265
|
let foreignObject_data = {};
|
|
@@ -9262,7 +9272,7 @@
|
|
|
9262
9272
|
c: function create() {
|
|
9263
9273
|
foreignObject = svg_element("foreignObject");
|
|
9264
9274
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9265
|
-
add_location(foreignObject, file$2,
|
|
9275
|
+
add_location(foreignObject, file$2, 244, 6, 7396);
|
|
9266
9276
|
},
|
|
9267
9277
|
m: function mount(target, anchor) {
|
|
9268
9278
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9271,7 +9281,7 @@
|
|
|
9271
9281
|
set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
|
|
9272
9282
|
{ class: "Partition2 Customable" },
|
|
9273
9283
|
{ style: foreignObject_style_value },
|
|
9274
|
-
dirty[0] & /*sizeProps*/
|
|
9284
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12]
|
|
9275
9285
|
]));
|
|
9276
9286
|
},
|
|
9277
9287
|
d: function destroy(detaching) {
|
|
@@ -9283,19 +9293,19 @@
|
|
|
9283
9293
|
block,
|
|
9284
9294
|
id: create_each_block_1.name,
|
|
9285
9295
|
type: "each",
|
|
9286
|
-
source: "(
|
|
9296
|
+
source: "(244:6) {#each options as option,index}",
|
|
9287
9297
|
ctx
|
|
9288
9298
|
});
|
|
9289
9299
|
|
|
9290
9300
|
return block;
|
|
9291
9301
|
}
|
|
9292
9302
|
|
|
9293
|
-
// (
|
|
9303
|
+
// (253:4) {#if theme.pointerMode === PointerMode.Partition}
|
|
9294
9304
|
function create_if_block_1$1(ctx) {
|
|
9295
9305
|
let g;
|
|
9296
9306
|
let foreignObject;
|
|
9297
9307
|
let path;
|
|
9298
|
-
let foreignObject_levels = [{ class: "PointerArea Customable" }, /*sizeProps*/ ctx[
|
|
9308
|
+
let foreignObject_levels = [{ class: "PointerArea Customable" }, /*sizeProps*/ ctx[12]];
|
|
9299
9309
|
let foreignObject_data = {};
|
|
9300
9310
|
|
|
9301
9311
|
for (let i = 0; i < foreignObject_levels.length; i += 1) {
|
|
@@ -9322,12 +9332,12 @@
|
|
|
9322
9332
|
foreignObject = svg_element("foreignObject");
|
|
9323
9333
|
path = svg_element("path");
|
|
9324
9334
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9325
|
-
add_location(foreignObject, file$2,
|
|
9335
|
+
add_location(foreignObject, file$2, 255, 6, 7663);
|
|
9326
9336
|
set_svg_attributes(path, path_data);
|
|
9327
|
-
toggle_class(path, "active", /*isShowPrizeArea*/ ctx[
|
|
9328
|
-
add_location(path, file$2,
|
|
9337
|
+
toggle_class(path, "active", /*isShowPrizeArea*/ ctx[10]);
|
|
9338
|
+
add_location(path, file$2, 257, 6, 7734);
|
|
9329
9339
|
set_svg_attributes(g, g_data);
|
|
9330
|
-
add_location(g, file$2,
|
|
9340
|
+
add_location(g, file$2, 253, 4, 7599);
|
|
9331
9341
|
},
|
|
9332
9342
|
m: function mount(target, anchor) {
|
|
9333
9343
|
insert_dev(target, g, anchor);
|
|
@@ -9337,7 +9347,7 @@
|
|
|
9337
9347
|
p: function update(ctx, dirty) {
|
|
9338
9348
|
set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
|
|
9339
9349
|
{ class: "PointerArea Customable" },
|
|
9340
|
-
dirty[0] & /*sizeProps*/
|
|
9350
|
+
dirty[0] & /*sizeProps*/ 4096 && /*sizeProps*/ ctx[12]
|
|
9341
9351
|
]));
|
|
9342
9352
|
|
|
9343
9353
|
set_svg_attributes(path, path_data = get_spread_update(path_levels, [
|
|
@@ -9345,7 +9355,7 @@
|
|
|
9345
9355
|
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(0)
|
|
9346
9356
|
]));
|
|
9347
9357
|
|
|
9348
|
-
toggle_class(path, "active", /*isShowPrizeArea*/ ctx[
|
|
9358
|
+
toggle_class(path, "active", /*isShowPrizeArea*/ ctx[10]);
|
|
9349
9359
|
|
|
9350
9360
|
set_svg_attributes(g, g_data = get_spread_update(g_levels, [
|
|
9351
9361
|
{ class: "PointerContainer" },
|
|
@@ -9361,25 +9371,25 @@
|
|
|
9361
9371
|
block,
|
|
9362
9372
|
id: create_if_block_1$1.name,
|
|
9363
9373
|
type: "if",
|
|
9364
|
-
source: "(
|
|
9374
|
+
source: "(253:4) {#if theme.pointerMode === PointerMode.Partition}",
|
|
9365
9375
|
ctx
|
|
9366
9376
|
});
|
|
9367
9377
|
|
|
9368
9378
|
return block;
|
|
9369
9379
|
}
|
|
9370
9380
|
|
|
9371
|
-
// (
|
|
9381
|
+
// (284:6) {#each options as option, index}
|
|
9372
9382
|
function create_each_block$2(ctx) {
|
|
9373
9383
|
let clipPath;
|
|
9374
9384
|
let path;
|
|
9375
|
-
let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
9385
|
+
let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[45])];
|
|
9376
9386
|
let path_data = {};
|
|
9377
9387
|
|
|
9378
9388
|
for (let i = 0; i < path_levels.length; i += 1) {
|
|
9379
9389
|
path_data = assign(path_data, path_levels[i]);
|
|
9380
9390
|
}
|
|
9381
9391
|
|
|
9382
|
-
let clipPath_levels = [{ id: `clip${/*index*/ ctx[
|
|
9392
|
+
let clipPath_levels = [{ id: `clip${/*index*/ ctx[45]}` }];
|
|
9383
9393
|
let clipPath_data = {};
|
|
9384
9394
|
|
|
9385
9395
|
for (let i = 0; i < clipPath_levels.length; i += 1) {
|
|
@@ -9391,9 +9401,9 @@
|
|
|
9391
9401
|
clipPath = svg_element("clipPath");
|
|
9392
9402
|
path = svg_element("path");
|
|
9393
9403
|
set_svg_attributes(path, path_data);
|
|
9394
|
-
add_location(path, file$2,
|
|
9404
|
+
add_location(path, file$2, 285, 8, 8392);
|
|
9395
9405
|
set_svg_attributes(clipPath, clipPath_data);
|
|
9396
|
-
add_location(clipPath, file$2,
|
|
9406
|
+
add_location(clipPath, file$2, 284, 6, 8347);
|
|
9397
9407
|
},
|
|
9398
9408
|
m: function mount(target, anchor) {
|
|
9399
9409
|
insert_dev(target, clipPath, anchor);
|
|
@@ -9401,7 +9411,7 @@
|
|
|
9401
9411
|
},
|
|
9402
9412
|
p: function update(ctx, dirty) {
|
|
9403
9413
|
set_svg_attributes(path, path_data = get_spread_update(path_levels, [
|
|
9404
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
9414
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[45])
|
|
9405
9415
|
]));
|
|
9406
9416
|
},
|
|
9407
9417
|
d: function destroy(detaching) {
|
|
@@ -9413,7 +9423,7 @@
|
|
|
9413
9423
|
block,
|
|
9414
9424
|
id: create_each_block$2.name,
|
|
9415
9425
|
type: "each",
|
|
9416
|
-
source: "(
|
|
9426
|
+
source: "(284:6) {#each options as option, index}",
|
|
9417
9427
|
ctx
|
|
9418
9428
|
});
|
|
9419
9429
|
|
|
@@ -9422,9 +9432,10 @@
|
|
|
9422
9432
|
|
|
9423
9433
|
function create_fragment$2(ctx) {
|
|
9424
9434
|
let div;
|
|
9435
|
+
let show_if = Number(/*size*/ ctx[0]) && /*options*/ ctx[3].length;
|
|
9425
9436
|
let div_class_value;
|
|
9426
9437
|
let div_style_value;
|
|
9427
|
-
let if_block =
|
|
9438
|
+
let if_block = show_if && create_if_block$2(ctx);
|
|
9428
9439
|
|
|
9429
9440
|
const block = {
|
|
9430
9441
|
c: function create() {
|
|
@@ -9433,7 +9444,7 @@
|
|
|
9433
9444
|
this.c = noop;
|
|
9434
9445
|
attr_dev(div, "class", div_class_value = `WheelContainer theme${Number(/*themeIndex*/ ctx[6]) + 1}`);
|
|
9435
9446
|
attr_dev(div, "style", div_style_value = `${defines()} --length: ${/*options*/ ctx[3].length}; --radius: ${/*radius*/ ctx[1]}; --ratio: ${Number(/*size*/ ctx[0]) / 480}; --size: ${/*size*/ ctx[0]}`);
|
|
9436
|
-
add_location(div, file$2,
|
|
9447
|
+
add_location(div, file$2, 169, 0, 5114);
|
|
9437
9448
|
},
|
|
9438
9449
|
l: function claim(nodes) {
|
|
9439
9450
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -9441,10 +9452,12 @@
|
|
|
9441
9452
|
m: function mount(target, anchor) {
|
|
9442
9453
|
insert_dev(target, div, anchor);
|
|
9443
9454
|
if (if_block) if_block.m(div, null);
|
|
9444
|
-
/*div_binding*/ ctx[
|
|
9455
|
+
/*div_binding*/ ctx[30](div);
|
|
9445
9456
|
},
|
|
9446
9457
|
p: function update(ctx, dirty) {
|
|
9447
|
-
if (/*size*/ ctx[0] && /*options*/ ctx[3].length
|
|
9458
|
+
if (dirty[0] & /*size, options*/ 9) show_if = Number(/*size*/ ctx[0]) && /*options*/ ctx[3].length;
|
|
9459
|
+
|
|
9460
|
+
if (show_if) {
|
|
9448
9461
|
if (if_block) {
|
|
9449
9462
|
if_block.p(ctx, dirty);
|
|
9450
9463
|
} else {
|
|
@@ -9470,7 +9483,7 @@
|
|
|
9470
9483
|
d: function destroy(detaching) {
|
|
9471
9484
|
if (detaching) detach_dev(div);
|
|
9472
9485
|
if (if_block) if_block.d();
|
|
9473
|
-
/*div_binding*/ ctx[
|
|
9486
|
+
/*div_binding*/ ctx[30](null);
|
|
9474
9487
|
}
|
|
9475
9488
|
};
|
|
9476
9489
|
|
|
@@ -9505,12 +9518,29 @@
|
|
|
9505
9518
|
let { id = undefined } = $$props;
|
|
9506
9519
|
let { size = '' } = $$props;
|
|
9507
9520
|
let { radius = '' } = $$props;
|
|
9521
|
+
let isPartitionsCustomableReady = false;
|
|
9522
|
+
|
|
9523
|
+
// temp way to make sure transform-origin effects on safari
|
|
9524
|
+
const handleSafariIssue = trigger => {
|
|
9525
|
+
trigger(-1);
|
|
9526
|
+
|
|
9527
|
+
setTimeout(
|
|
9528
|
+
() => {
|
|
9529
|
+
trigger(1);
|
|
9530
|
+
$$invalidate(7, isPartitionsCustomableReady = true);
|
|
9531
|
+
},
|
|
9532
|
+
100
|
|
9533
|
+
);
|
|
9534
|
+
};
|
|
9535
|
+
|
|
9508
9536
|
let bonus;
|
|
9509
9537
|
|
|
9510
9538
|
const updateOptions = async () => {
|
|
9511
9539
|
if (!options.length) {
|
|
9512
9540
|
$$invalidate(3, options = await getOptions(bonus, lang));
|
|
9513
9541
|
_postMessage({ type: 'wof-private-options-ready', id });
|
|
9542
|
+
const trigger = amount => $$invalidate(0, size = String(Number(size) + amount));
|
|
9543
|
+
handleSafariIssue(trigger);
|
|
9514
9544
|
}
|
|
9515
9545
|
};
|
|
9516
9546
|
|
|
@@ -9524,7 +9554,7 @@
|
|
|
9524
9554
|
let spinner = new Spinner({
|
|
9525
9555
|
tick: (deg, _speed) => {
|
|
9526
9556
|
setProps(spinContainer, { transform: `rotate(${deg})` });
|
|
9527
|
-
$$invalidate(
|
|
9557
|
+
$$invalidate(26, speed = _speed * 0.5);
|
|
9528
9558
|
}
|
|
9529
9559
|
});
|
|
9530
9560
|
|
|
@@ -9585,8 +9615,8 @@
|
|
|
9585
9615
|
updateSpinable();
|
|
9586
9616
|
if (!spinable) return;
|
|
9587
9617
|
if (isSpinning) return;
|
|
9588
|
-
$$invalidate(
|
|
9589
|
-
$$invalidate(
|
|
9618
|
+
$$invalidate(9, isSpinning = true);
|
|
9619
|
+
$$invalidate(10, isShowPrizeArea = false);
|
|
9590
9620
|
spinContainer = svg.querySelector(getSpinContainerSelector(theme.pointerMode));
|
|
9591
9621
|
spinner.launch();
|
|
9592
9622
|
process.drawer(`userid-${id}-${new Date().getTime()}`);
|
|
@@ -9594,17 +9624,17 @@
|
|
|
9594
9624
|
|
|
9595
9625
|
onMountMessageLifeCycle({
|
|
9596
9626
|
'wof-private-bonuses': data => {
|
|
9597
|
-
$$invalidate(
|
|
9627
|
+
$$invalidate(25, bonus = data.bonuses.find(_bonus => _bonus.program.id === id));
|
|
9598
9628
|
},
|
|
9599
9629
|
'wof-private-bonus': data => {
|
|
9600
9630
|
if (data.id !== id) return;
|
|
9601
|
-
$$invalidate(
|
|
9631
|
+
$$invalidate(25, bonus = data.bonus);
|
|
9602
9632
|
},
|
|
9603
9633
|
'wof-private-message-close': data => {
|
|
9604
9634
|
if (data.id !== id) return;
|
|
9605
|
-
$$invalidate(
|
|
9635
|
+
$$invalidate(9, isSpinning = false);
|
|
9606
9636
|
setTimeout(() => updateSpinable(), 1);
|
|
9607
|
-
$$invalidate(
|
|
9637
|
+
$$invalidate(11, messageShown = false);
|
|
9608
9638
|
}
|
|
9609
9639
|
});
|
|
9610
9640
|
|
|
@@ -9636,7 +9666,7 @@
|
|
|
9636
9666
|
function svg_1_binding($$value) {
|
|
9637
9667
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9638
9668
|
svg = $$value;
|
|
9639
|
-
$$invalidate(
|
|
9669
|
+
$$invalidate(8, svg);
|
|
9640
9670
|
});
|
|
9641
9671
|
}
|
|
9642
9672
|
|
|
@@ -9650,13 +9680,13 @@
|
|
|
9650
9680
|
}
|
|
9651
9681
|
|
|
9652
9682
|
$$self.$$set = $$props => {
|
|
9653
|
-
if ('lang' in $$props) $$invalidate(
|
|
9654
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
9655
|
-
if ('session' in $$props) $$invalidate(
|
|
9656
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
9657
|
-
if ('contentdirection' in $$props) $$invalidate(
|
|
9658
|
-
if ('partitiondivisor' in $$props) $$invalidate(
|
|
9659
|
-
if ('id' in $$props) $$invalidate(
|
|
9683
|
+
if ('lang' in $$props) $$invalidate(16, lang = $$props.lang);
|
|
9684
|
+
if ('endpoint' in $$props) $$invalidate(17, endpoint = $$props.endpoint);
|
|
9685
|
+
if ('session' in $$props) $$invalidate(18, session = $$props.session);
|
|
9686
|
+
if ('clientstyling' in $$props) $$invalidate(19, clientstyling = $$props.clientstyling);
|
|
9687
|
+
if ('contentdirection' in $$props) $$invalidate(20, contentdirection = $$props.contentdirection);
|
|
9688
|
+
if ('partitiondivisor' in $$props) $$invalidate(21, partitiondivisor = $$props.partitiondivisor);
|
|
9689
|
+
if ('id' in $$props) $$invalidate(22, id = $$props.id);
|
|
9660
9690
|
if ('size' in $$props) $$invalidate(0, size = $$props.size);
|
|
9661
9691
|
if ('radius' in $$props) $$invalidate(1, radius = $$props.radius);
|
|
9662
9692
|
};
|
|
@@ -9689,6 +9719,8 @@
|
|
|
9689
9719
|
id,
|
|
9690
9720
|
size,
|
|
9691
9721
|
radius,
|
|
9722
|
+
isPartitionsCustomableReady,
|
|
9723
|
+
handleSafariIssue,
|
|
9692
9724
|
bonus,
|
|
9693
9725
|
updateOptions,
|
|
9694
9726
|
options,
|
|
@@ -9717,32 +9749,33 @@
|
|
|
9717
9749
|
});
|
|
9718
9750
|
|
|
9719
9751
|
$$self.$inject_state = $$props => {
|
|
9720
|
-
if ('_a' in $$props) $$invalidate(
|
|
9721
|
-
if ('_b' in $$props) $$invalidate(
|
|
9722
|
-
if ('lang' in $$props) $$invalidate(
|
|
9723
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
9724
|
-
if ('session' in $$props) $$invalidate(
|
|
9725
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
9726
|
-
if ('contentdirection' in $$props) $$invalidate(
|
|
9727
|
-
if ('partitiondivisor' in $$props) $$invalidate(
|
|
9752
|
+
if ('_a' in $$props) $$invalidate(23, _a = $$props._a);
|
|
9753
|
+
if ('_b' in $$props) $$invalidate(24, _b = $$props._b);
|
|
9754
|
+
if ('lang' in $$props) $$invalidate(16, lang = $$props.lang);
|
|
9755
|
+
if ('endpoint' in $$props) $$invalidate(17, endpoint = $$props.endpoint);
|
|
9756
|
+
if ('session' in $$props) $$invalidate(18, session = $$props.session);
|
|
9757
|
+
if ('clientstyling' in $$props) $$invalidate(19, clientstyling = $$props.clientstyling);
|
|
9758
|
+
if ('contentdirection' in $$props) $$invalidate(20, contentdirection = $$props.contentdirection);
|
|
9759
|
+
if ('partitiondivisor' in $$props) $$invalidate(21, partitiondivisor = $$props.partitiondivisor);
|
|
9728
9760
|
if ('rootContainer' in $$props) $$invalidate(2, rootContainer = $$props.rootContainer);
|
|
9729
|
-
if ('id' in $$props) $$invalidate(
|
|
9761
|
+
if ('id' in $$props) $$invalidate(22, id = $$props.id);
|
|
9730
9762
|
if ('size' in $$props) $$invalidate(0, size = $$props.size);
|
|
9731
9763
|
if ('radius' in $$props) $$invalidate(1, radius = $$props.radius);
|
|
9732
|
-
if ('
|
|
9764
|
+
if ('isPartitionsCustomableReady' in $$props) $$invalidate(7, isPartitionsCustomableReady = $$props.isPartitionsCustomableReady);
|
|
9765
|
+
if ('bonus' in $$props) $$invalidate(25, bonus = $$props.bonus);
|
|
9733
9766
|
if ('options' in $$props) $$invalidate(3, options = $$props.options);
|
|
9734
|
-
if ('svg' in $$props) $$invalidate(
|
|
9767
|
+
if ('svg' in $$props) $$invalidate(8, svg = $$props.svg);
|
|
9735
9768
|
if ('spinContainer' in $$props) spinContainer = $$props.spinContainer;
|
|
9736
|
-
if ('spinner' in $$props) $$invalidate(
|
|
9769
|
+
if ('spinner' in $$props) $$invalidate(37, spinner = $$props.spinner);
|
|
9737
9770
|
if ('spinable' in $$props) spinable = $$props.spinable;
|
|
9738
|
-
if ('isSpinning' in $$props) $$invalidate(
|
|
9739
|
-
if ('isShowPrizeArea' in $$props) $$invalidate(
|
|
9740
|
-
if ('messageShown' in $$props) $$invalidate(
|
|
9771
|
+
if ('isSpinning' in $$props) $$invalidate(9, isSpinning = $$props.isSpinning);
|
|
9772
|
+
if ('isShowPrizeArea' in $$props) $$invalidate(10, isShowPrizeArea = $$props.isShowPrizeArea);
|
|
9773
|
+
if ('messageShown' in $$props) $$invalidate(11, messageShown = $$props.messageShown);
|
|
9741
9774
|
if ('shownFirstCheck' in $$props) shownFirstCheck = $$props.shownFirstCheck;
|
|
9742
|
-
if ('speed' in $$props) $$invalidate(
|
|
9743
|
-
if ('sizeProps' in $$props) $$invalidate(
|
|
9775
|
+
if ('speed' in $$props) $$invalidate(26, speed = $$props.speed);
|
|
9776
|
+
if ('sizeProps' in $$props) $$invalidate(12, sizeProps = $$props.sizeProps);
|
|
9744
9777
|
if ('theme' in $$props) $$invalidate(4, theme = $$props.theme);
|
|
9745
|
-
if ('optionFilter' in $$props) $$invalidate(
|
|
9778
|
+
if ('optionFilter' in $$props) $$invalidate(13, optionFilter = $$props.optionFilter);
|
|
9746
9779
|
if ('calc' in $$props) $$invalidate(5, calc = $$props.calc);
|
|
9747
9780
|
if ('process' in $$props) process = $$props.process;
|
|
9748
9781
|
if ('themeIndex' in $$props) $$invalidate(6, themeIndex = $$props.themeIndex);
|
|
@@ -9753,16 +9786,16 @@
|
|
|
9753
9786
|
}
|
|
9754
9787
|
|
|
9755
9788
|
$$self.$$.update = () => {
|
|
9756
|
-
if ($$self.$$.dirty[0] & /*clientstyling, rootContainer*/
|
|
9789
|
+
if ($$self.$$.dirty[0] & /*clientstyling, rootContainer*/ 524292) {
|
|
9757
9790
|
clientstyling && rootContainer && setClientStyling(rootContainer, clientstyling);
|
|
9758
9791
|
}
|
|
9759
9792
|
|
|
9760
|
-
if ($$self.$$.dirty[0] & /*bonus, lang*/
|
|
9793
|
+
if ($$self.$$.dirty[0] & /*bonus, lang*/ 33619968) {
|
|
9761
9794
|
bonus && lang && updateOptions();
|
|
9762
9795
|
}
|
|
9763
9796
|
|
|
9764
|
-
if ($$self.$$.dirty[0] & /*bonus, _a, _b*/
|
|
9765
|
-
$$invalidate(6, themeIndex = ($$invalidate(
|
|
9797
|
+
if ($$self.$$.dirty[0] & /*bonus, _a, _b*/ 58720256) {
|
|
9798
|
+
$$invalidate(6, themeIndex = ($$invalidate(24, _b = $$invalidate(23, _a = bonus === null || bonus === void 0
|
|
9766
9799
|
? void 0
|
|
9767
9800
|
: bonus.program) === null || _a === void 0
|
|
9768
9801
|
? void 0
|
|
@@ -9775,7 +9808,7 @@
|
|
|
9775
9808
|
$$invalidate(4, theme = themes[themeIndex] || themes[0]);
|
|
9776
9809
|
}
|
|
9777
9810
|
|
|
9778
|
-
if ($$self.$$.dirty[0] & /*size, radius, options, themeIndex, contentdirection*/
|
|
9811
|
+
if ($$self.$$.dirty[0] & /*size, radius, options, themeIndex, contentdirection*/ 1048651) {
|
|
9779
9812
|
$$invalidate(5, calc = new SvgCalc({
|
|
9780
9813
|
size,
|
|
9781
9814
|
radius,
|
|
@@ -9789,32 +9822,32 @@
|
|
|
9789
9822
|
options && updateCalcOptions();
|
|
9790
9823
|
}
|
|
9791
9824
|
|
|
9792
|
-
if ($$self.$$.dirty[0] & /*contentdirection*/
|
|
9825
|
+
if ($$self.$$.dirty[0] & /*contentdirection*/ 1048576) {
|
|
9793
9826
|
(contentdirection || !contentdirection) && updateCalcContentDirection();
|
|
9794
9827
|
}
|
|
9795
9828
|
|
|
9796
|
-
if ($$self.$$.dirty[0] & /*bonus*/
|
|
9829
|
+
if ($$self.$$.dirty[0] & /*bonus*/ 33554432) {
|
|
9797
9830
|
bonus && runFirstCheck();
|
|
9798
9831
|
}
|
|
9799
9832
|
|
|
9800
|
-
if ($$self.$$.dirty[0] & /*id, calc, endpoint, session, options*/
|
|
9833
|
+
if ($$self.$$.dirty[0] & /*id, calc, endpoint, session, options*/ 4587560) {
|
|
9801
9834
|
process = new Process({
|
|
9802
9835
|
id,
|
|
9803
|
-
afterSetMessage: () => $$invalidate(
|
|
9836
|
+
afterSetMessage: () => $$invalidate(11, messageShown = true),
|
|
9804
9837
|
halter: (index, cb) => spinner.halt(calc.getDeg(index), cb),
|
|
9805
|
-
afterSuccess: () => $$invalidate(
|
|
9838
|
+
afterSuccess: () => $$invalidate(10, isShowPrizeArea = true),
|
|
9806
9839
|
fetcher: async guid => await api.draw(endpoint, session, id, guid, options)
|
|
9807
9840
|
});
|
|
9808
9841
|
}
|
|
9809
9842
|
|
|
9810
|
-
if ($$self.$$.dirty[0] & /*theme, speed*/
|
|
9811
|
-
$$invalidate(
|
|
9843
|
+
if ($$self.$$.dirty[0] & /*theme, speed*/ 67108880) {
|
|
9844
|
+
$$invalidate(13, optionFilter = theme.pointerMode === PointerMode.Arrow && speed > 0.3
|
|
9812
9845
|
? `blur(${speed}px)`
|
|
9813
9846
|
: null);
|
|
9814
9847
|
}
|
|
9815
9848
|
|
|
9816
9849
|
if ($$self.$$.dirty[0] & /*size*/ 1) {
|
|
9817
|
-
$$invalidate(
|
|
9850
|
+
$$invalidate(12, sizeProps = { height: size, width: size });
|
|
9818
9851
|
}
|
|
9819
9852
|
};
|
|
9820
9853
|
|
|
@@ -9826,6 +9859,7 @@
|
|
|
9826
9859
|
theme,
|
|
9827
9860
|
calc,
|
|
9828
9861
|
themeIndex,
|
|
9862
|
+
isPartitionsCustomableReady,
|
|
9829
9863
|
svg,
|
|
9830
9864
|
isSpinning,
|
|
9831
9865
|
isShowPrizeArea,
|
|
@@ -9856,7 +9890,7 @@
|
|
|
9856
9890
|
constructor(options) {
|
|
9857
9891
|
super();
|
|
9858
9892
|
const style = document.createElement('style');
|
|
9859
|
-
style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emfe-w-color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom,.theme4 foreignObject.Bottom,.theme5 foreignObject.Bottom{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom,.theme6 foreignObject.Bottom{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme1 foreignObject.Middle,.theme4 foreignObject.Middle{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme5 foreignObject.Middle,.theme6 foreignObject.Middle{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{background-image:var(--img-theme-shadow);background-position:center;mix-blend-mode:multiply;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2{background-image:var(--img-theme-partition-light)
|
|
9893
|
+
style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emfe-w-color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom,.theme4 foreignObject.Bottom,.theme5 foreignObject.Bottom{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom,.theme6 foreignObject.Bottom{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme1 foreignObject.Middle,.theme4 foreignObject.Middle{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme5 foreignObject.Middle,.theme6 foreignObject.Middle{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{background-image:var(--img-theme-shadow);background-position:center;mix-blend-mode:multiply;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc((var(--index) + 0.5) * 360deg / var(--length)))}foreignObject.PointerArea{background-image:var(--img-theme-pointer-area);background-position:center -3px;mix-blend-mode:screen;background-size:51%}foreignObject.Partition1,foreignObject.Partition2{transform-origin:center}.PartitionsCustomable1,.PartitionsCustomable2{visibility:hidden}.PartitionsCustomable1.active,.PartitionsCustomable2.active{visibility:visible}foreignObject.Customable{overflow:visible;background-repeat:no-repeat}.PartitionBackground{background-size:calc(var(--radius) * 2 / var(--size) * 100%) calc(var(--radius) * 2 / var(--size) * 100%);background-position:center}.theme1 .PartitionBackground:nth-child(4n+1),.theme2 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#009C9C 0%, #002634 100%)}.theme1 .PartitionBackground:nth-child(4n+2),.theme2 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#AA00BF 0%, #3B0031 100%)}.theme1 .PartitionBackground:nth-child(4n+3),.theme2 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#0068CD 0%, #150D42 100%)}.theme1 .PartitionBackground:nth-child(4n+4),.theme2 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#DA005B 0%, #400021 100%)}.theme3 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#066 0%, #007F76 13%, #00B59B 42%, #00DDB5 67.01%, #00F6C6 88.01%, #0FC 100.01%)}.theme3 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#580065 22.67%, #D453FF 91.3%)}.theme3 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#FFE767 -0.01%, #F28F00 100%)}.theme3 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#900A42 22.59%, #960A44 23.94%, #B60B53 31.36%, #D00C5E 39.45%, #E40D67 48.22%, #F30D6E 57.66%, #FB0D71 69.8%, #FE0E73 90.03%)}.theme4 .PartitionBackground:nth-child(4n+1),.theme5 .PartitionBackground:nth-child(4n+1),.theme6 .PartitionBackground:nth-child(4n+1){background:radial-gradient(#3B0031 0%, #7E008E 100.01%)}.theme4 .PartitionBackground:nth-child(4n+2),.theme5 .PartitionBackground:nth-child(4n+2),.theme6 .PartitionBackground:nth-child(4n+2){background:radial-gradient(#5A005F 22.67%, #EA53FF 91.3%)}.theme4 .PartitionBackground:nth-child(4n+3),.theme5 .PartitionBackground:nth-child(4n+3),.theme6 .PartitionBackground:nth-child(4n+3){background:radial-gradient(#B300C3 -0.01%, #4D003B 100%)}.theme4 .PartitionBackground:nth-child(4n+4),.theme5 .PartitionBackground:nth-child(4n+4),.theme6 .PartitionBackground:nth-child(4n+4){background:radial-gradient(#59007B 22.59%, #B753FF 90.03%)}.theme7 .PartitionBackground:nth-child(2n+1){background:linear-gradient(90.23deg, #F6AD3F 16.59%, #AF8531 99.8%)}.theme7 .PartitionBackground:nth-child(2n+2){background:linear-gradient(90deg, #323234 -0.01%, #272425 54.99%, #231F1F 99.99%)}.PartitionBackground{transform-origin:center}.PartitionBackgroundStroke{fill:transparent;stroke-width:0.5px;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius))}.theme1 .PartitionBackgroundStroke,.theme2 .PartitionBackgroundStroke{stroke:#FCD755}.PointerPartitionFrame{stroke:#FFDD64;fill:transparent;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius));stroke-width:0px}.PointerPartitionFrame.active{stroke-width:3px}`;
|
|
9860
9894
|
this.shadowRoot.appendChild(style);
|
|
9861
9895
|
|
|
9862
9896
|
init(
|
|
@@ -9870,13 +9904,13 @@
|
|
|
9870
9904
|
create_fragment$2,
|
|
9871
9905
|
safe_not_equal,
|
|
9872
9906
|
{
|
|
9873
|
-
lang:
|
|
9874
|
-
endpoint:
|
|
9875
|
-
session:
|
|
9876
|
-
clientstyling:
|
|
9877
|
-
contentdirection:
|
|
9878
|
-
partitiondivisor:
|
|
9879
|
-
id:
|
|
9907
|
+
lang: 16,
|
|
9908
|
+
endpoint: 17,
|
|
9909
|
+
session: 18,
|
|
9910
|
+
clientstyling: 19,
|
|
9911
|
+
contentdirection: 20,
|
|
9912
|
+
partitiondivisor: 21,
|
|
9913
|
+
id: 22,
|
|
9880
9914
|
size: 0,
|
|
9881
9915
|
radius: 1
|
|
9882
9916
|
},
|
|
@@ -9911,7 +9945,7 @@
|
|
|
9911
9945
|
}
|
|
9912
9946
|
|
|
9913
9947
|
get lang() {
|
|
9914
|
-
return this.$$.ctx[
|
|
9948
|
+
return this.$$.ctx[16];
|
|
9915
9949
|
}
|
|
9916
9950
|
|
|
9917
9951
|
set lang(lang) {
|
|
@@ -9920,7 +9954,7 @@
|
|
|
9920
9954
|
}
|
|
9921
9955
|
|
|
9922
9956
|
get endpoint() {
|
|
9923
|
-
return this.$$.ctx[
|
|
9957
|
+
return this.$$.ctx[17];
|
|
9924
9958
|
}
|
|
9925
9959
|
|
|
9926
9960
|
set endpoint(endpoint) {
|
|
@@ -9929,7 +9963,7 @@
|
|
|
9929
9963
|
}
|
|
9930
9964
|
|
|
9931
9965
|
get session() {
|
|
9932
|
-
return this.$$.ctx[
|
|
9966
|
+
return this.$$.ctx[18];
|
|
9933
9967
|
}
|
|
9934
9968
|
|
|
9935
9969
|
set session(session) {
|
|
@@ -9938,7 +9972,7 @@
|
|
|
9938
9972
|
}
|
|
9939
9973
|
|
|
9940
9974
|
get clientstyling() {
|
|
9941
|
-
return this.$$.ctx[
|
|
9975
|
+
return this.$$.ctx[19];
|
|
9942
9976
|
}
|
|
9943
9977
|
|
|
9944
9978
|
set clientstyling(clientstyling) {
|
|
@@ -9947,7 +9981,7 @@
|
|
|
9947
9981
|
}
|
|
9948
9982
|
|
|
9949
9983
|
get contentdirection() {
|
|
9950
|
-
return this.$$.ctx[
|
|
9984
|
+
return this.$$.ctx[20];
|
|
9951
9985
|
}
|
|
9952
9986
|
|
|
9953
9987
|
set contentdirection(contentdirection) {
|
|
@@ -9956,7 +9990,7 @@
|
|
|
9956
9990
|
}
|
|
9957
9991
|
|
|
9958
9992
|
get partitiondivisor() {
|
|
9959
|
-
return this.$$.ctx[
|
|
9993
|
+
return this.$$.ctx[21];
|
|
9960
9994
|
}
|
|
9961
9995
|
|
|
9962
9996
|
set partitiondivisor(partitiondivisor) {
|
|
@@ -9965,7 +9999,7 @@
|
|
|
9965
9999
|
}
|
|
9966
10000
|
|
|
9967
10001
|
get id() {
|
|
9968
|
-
return this.$$.ctx[
|
|
10002
|
+
return this.$$.ctx[22];
|
|
9969
10003
|
}
|
|
9970
10004
|
|
|
9971
10005
|
set id(id) {
|
|
@@ -9999,11 +10033,11 @@
|
|
|
9999
10033
|
|
|
10000
10034
|
function get_each_context$1(ctx, list, i) {
|
|
10001
10035
|
const child_ctx = ctx.slice();
|
|
10002
|
-
child_ctx[
|
|
10036
|
+
child_ctx[21] = list[i];
|
|
10003
10037
|
return child_ctx;
|
|
10004
10038
|
}
|
|
10005
10039
|
|
|
10006
|
-
// (
|
|
10040
|
+
// (103:2) {#if bonus?.current && isOptionsReady}
|
|
10007
10041
|
function create_if_block$1(ctx) {
|
|
10008
10042
|
let div;
|
|
10009
10043
|
let each_value = /*currentInfoKeys*/ ctx[6];
|
|
@@ -10023,7 +10057,7 @@
|
|
|
10023
10057
|
}
|
|
10024
10058
|
|
|
10025
10059
|
attr_dev(div, "class", "Current");
|
|
10026
|
-
add_location(div, file$1,
|
|
10060
|
+
add_location(div, file$1, 103, 2, 2881);
|
|
10027
10061
|
},
|
|
10028
10062
|
m: function mount(target, anchor) {
|
|
10029
10063
|
insert_dev(target, div, anchor);
|
|
@@ -10035,7 +10069,7 @@
|
|
|
10035
10069
|
}
|
|
10036
10070
|
},
|
|
10037
10071
|
p: function update(ctx, dirty) {
|
|
10038
|
-
if (dirty & /*currentInfoKeys, getCurrentInfo, bonus, $_*/
|
|
10072
|
+
if (dirty & /*currentInfoKeys, getCurrentInfo, bonus, $_*/ 2144) {
|
|
10039
10073
|
each_value = /*currentInfoKeys*/ ctx[6];
|
|
10040
10074
|
validate_each_argument(each_value);
|
|
10041
10075
|
let i;
|
|
@@ -10069,20 +10103,20 @@
|
|
|
10069
10103
|
block,
|
|
10070
10104
|
id: create_if_block$1.name,
|
|
10071
10105
|
type: "if",
|
|
10072
|
-
source: "(
|
|
10106
|
+
source: "(103:2) {#if bonus?.current && isOptionsReady}",
|
|
10073
10107
|
ctx
|
|
10074
10108
|
});
|
|
10075
10109
|
|
|
10076
10110
|
return block;
|
|
10077
10111
|
}
|
|
10078
10112
|
|
|
10079
|
-
// (
|
|
10113
|
+
// (105:4) {#each currentInfoKeys as CurrentInfoKey}
|
|
10080
10114
|
function create_each_block$1(ctx) {
|
|
10081
10115
|
let p;
|
|
10082
|
-
let t0_value = /*$_*/ ctx[
|
|
10116
|
+
let t0_value = /*$_*/ ctx[11](`wof.${/*CurrentInfoKey*/ ctx[21]}`) + "";
|
|
10083
10117
|
let t0;
|
|
10084
10118
|
let t1;
|
|
10085
|
-
let t2_value = getCurrentInfo(/*bonus*/ ctx[5], /*CurrentInfoKey*/ ctx[
|
|
10119
|
+
let t2_value = getCurrentInfo(/*bonus*/ ctx[5], /*CurrentInfoKey*/ ctx[21]) + "";
|
|
10086
10120
|
let t2;
|
|
10087
10121
|
let t3;
|
|
10088
10122
|
let p_class_value;
|
|
@@ -10094,8 +10128,8 @@
|
|
|
10094
10128
|
t1 = text(": ");
|
|
10095
10129
|
t2 = text(t2_value);
|
|
10096
10130
|
t3 = space();
|
|
10097
|
-
attr_dev(p, "class", p_class_value = /*CurrentInfoKey*/ ctx[
|
|
10098
|
-
add_location(p, file$1,
|
|
10131
|
+
attr_dev(p, "class", p_class_value = /*CurrentInfoKey*/ ctx[21]);
|
|
10132
|
+
add_location(p, file$1, 105, 6, 2955);
|
|
10099
10133
|
},
|
|
10100
10134
|
m: function mount(target, anchor) {
|
|
10101
10135
|
insert_dev(target, p, anchor);
|
|
@@ -10105,10 +10139,10 @@
|
|
|
10105
10139
|
append_dev(p, t3);
|
|
10106
10140
|
},
|
|
10107
10141
|
p: function update(ctx, dirty) {
|
|
10108
|
-
if (dirty & /*$_, currentInfoKeys*/
|
|
10109
|
-
if (dirty & /*bonus, currentInfoKeys*/ 96 && t2_value !== (t2_value = getCurrentInfo(/*bonus*/ ctx[5], /*CurrentInfoKey*/ ctx[
|
|
10142
|
+
if (dirty & /*$_, currentInfoKeys*/ 2112 && t0_value !== (t0_value = /*$_*/ ctx[11](`wof.${/*CurrentInfoKey*/ ctx[21]}`) + "")) set_data_dev(t0, t0_value);
|
|
10143
|
+
if (dirty & /*bonus, currentInfoKeys*/ 96 && t2_value !== (t2_value = getCurrentInfo(/*bonus*/ ctx[5], /*CurrentInfoKey*/ ctx[21]) + "")) set_data_dev(t2, t2_value);
|
|
10110
10144
|
|
|
10111
|
-
if (dirty & /*currentInfoKeys*/ 64 && p_class_value !== (p_class_value = /*CurrentInfoKey*/ ctx[
|
|
10145
|
+
if (dirty & /*currentInfoKeys*/ 64 && p_class_value !== (p_class_value = /*CurrentInfoKey*/ ctx[21])) {
|
|
10112
10146
|
attr_dev(p, "class", p_class_value);
|
|
10113
10147
|
}
|
|
10114
10148
|
},
|
|
@@ -10121,7 +10155,7 @@
|
|
|
10121
10155
|
block,
|
|
10122
10156
|
id: create_each_block$1.name,
|
|
10123
10157
|
type: "each",
|
|
10124
|
-
source: "(
|
|
10158
|
+
source: "(105:4) {#each currentInfoKeys as CurrentInfoKey}",
|
|
10125
10159
|
ctx
|
|
10126
10160
|
});
|
|
10127
10161
|
|
|
@@ -10137,10 +10171,10 @@
|
|
|
10137
10171
|
|
|
10138
10172
|
let lottery_program_wof_private_item_svg_levels = [
|
|
10139
10173
|
{
|
|
10140
|
-
.../*commonProps*/ ctx[
|
|
10174
|
+
.../*commonProps*/ ctx[10],
|
|
10141
10175
|
id: /*id*/ ctx[2],
|
|
10142
10176
|
size: /*_size*/ ctx[4],
|
|
10143
|
-
radius: /*radius*/ ctx[
|
|
10177
|
+
radius: /*radius*/ ctx[9],
|
|
10144
10178
|
contentdirection: /*contentdirection*/ ctx[1]
|
|
10145
10179
|
}
|
|
10146
10180
|
];
|
|
@@ -10153,10 +10187,10 @@
|
|
|
10153
10187
|
|
|
10154
10188
|
let lottery_program_wof_private_message_panel_levels = [
|
|
10155
10189
|
{
|
|
10156
|
-
.../*commonProps*/ ctx[
|
|
10190
|
+
.../*commonProps*/ ctx[10],
|
|
10157
10191
|
id: /*id*/ ctx[2],
|
|
10158
10192
|
size: /*_size*/ ctx[4],
|
|
10159
|
-
r: /*radius*/ ctx[
|
|
10193
|
+
r: /*radius*/ ctx[9],
|
|
10160
10194
|
giftimagesrc: /*giftimagesrc*/ ctx[0]
|
|
10161
10195
|
}
|
|
10162
10196
|
];
|
|
@@ -10179,11 +10213,12 @@
|
|
|
10179
10213
|
if (if_block) if_block.c();
|
|
10180
10214
|
this.c = noop;
|
|
10181
10215
|
set_attributes(lottery_program_wof_private_item_svg, lottery_program_wof_private_item_svg_data);
|
|
10182
|
-
add_location(lottery_program_wof_private_item_svg, file$1,
|
|
10216
|
+
add_location(lottery_program_wof_private_item_svg, file$1, 86, 2, 2565);
|
|
10183
10217
|
set_attributes(lottery_program_wof_private_message_panel, lottery_program_wof_private_message_panel_data);
|
|
10184
|
-
add_location(lottery_program_wof_private_message_panel, file$1,
|
|
10218
|
+
add_location(lottery_program_wof_private_message_panel, file$1, 94, 2, 2700);
|
|
10185
10219
|
attr_dev(div, "class", "LotteryItem");
|
|
10186
|
-
|
|
10220
|
+
toggle_class(div, "Invalid", /*bonus*/ ctx[5]?.current.remainingTimes == 0 && !/*bonus*/ ctx[5]?.next && /*checkableValid*/ ctx[8]);
|
|
10221
|
+
add_location(div, file$1, 81, 0, 2417);
|
|
10187
10222
|
},
|
|
10188
10223
|
l: function claim(nodes) {
|
|
10189
10224
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -10195,25 +10230,25 @@
|
|
|
10195
10230
|
append_dev(div, lottery_program_wof_private_message_panel);
|
|
10196
10231
|
append_dev(div, t1);
|
|
10197
10232
|
if (if_block) if_block.m(div, null);
|
|
10198
|
-
/*div_binding*/ ctx[
|
|
10233
|
+
/*div_binding*/ ctx[18](div);
|
|
10199
10234
|
},
|
|
10200
10235
|
p: function update(ctx, [dirty]) {
|
|
10201
10236
|
set_attributes(lottery_program_wof_private_item_svg, lottery_program_wof_private_item_svg_data = get_spread_update(lottery_program_wof_private_item_svg_levels, [
|
|
10202
|
-
dirty & /*commonProps, id, _size, radius, contentdirection*/
|
|
10203
|
-
.../*commonProps*/ ctx[
|
|
10237
|
+
dirty & /*commonProps, id, _size, radius, contentdirection*/ 1558 && {
|
|
10238
|
+
.../*commonProps*/ ctx[10],
|
|
10204
10239
|
id: /*id*/ ctx[2],
|
|
10205
10240
|
size: /*_size*/ ctx[4],
|
|
10206
|
-
radius: /*radius*/ ctx[
|
|
10241
|
+
radius: /*radius*/ ctx[9],
|
|
10207
10242
|
contentdirection: /*contentdirection*/ ctx[1]
|
|
10208
10243
|
}
|
|
10209
10244
|
]));
|
|
10210
10245
|
|
|
10211
10246
|
set_attributes(lottery_program_wof_private_message_panel, lottery_program_wof_private_message_panel_data = get_spread_update(lottery_program_wof_private_message_panel_levels, [
|
|
10212
|
-
dirty & /*commonProps, id, _size, radius, giftimagesrc*/
|
|
10213
|
-
.../*commonProps*/ ctx[
|
|
10247
|
+
dirty & /*commonProps, id, _size, radius, giftimagesrc*/ 1557 && {
|
|
10248
|
+
.../*commonProps*/ ctx[10],
|
|
10214
10249
|
id: /*id*/ ctx[2],
|
|
10215
10250
|
size: /*_size*/ ctx[4],
|
|
10216
|
-
r: /*radius*/ ctx[
|
|
10251
|
+
r: /*radius*/ ctx[9],
|
|
10217
10252
|
giftimagesrc: /*giftimagesrc*/ ctx[0]
|
|
10218
10253
|
}
|
|
10219
10254
|
]));
|
|
@@ -10230,13 +10265,17 @@
|
|
|
10230
10265
|
if_block.d(1);
|
|
10231
10266
|
if_block = null;
|
|
10232
10267
|
}
|
|
10268
|
+
|
|
10269
|
+
if (dirty & /*bonus, checkableValid*/ 288) {
|
|
10270
|
+
toggle_class(div, "Invalid", /*bonus*/ ctx[5]?.current.remainingTimes == 0 && !/*bonus*/ ctx[5]?.next && /*checkableValid*/ ctx[8]);
|
|
10271
|
+
}
|
|
10233
10272
|
},
|
|
10234
10273
|
i: noop,
|
|
10235
10274
|
o: noop,
|
|
10236
10275
|
d: function destroy(detaching) {
|
|
10237
10276
|
if (detaching) detach_dev(div);
|
|
10238
10277
|
if (if_block) if_block.d();
|
|
10239
|
-
/*div_binding*/ ctx[
|
|
10278
|
+
/*div_binding*/ ctx[18](null);
|
|
10240
10279
|
}
|
|
10241
10280
|
};
|
|
10242
10281
|
|
|
@@ -10257,7 +10296,7 @@
|
|
|
10257
10296
|
let radius;
|
|
10258
10297
|
let $_;
|
|
10259
10298
|
validate_store($format, '_');
|
|
10260
|
-
component_subscribe($$self, $format, $$value => $$invalidate(
|
|
10299
|
+
component_subscribe($$self, $format, $$value => $$invalidate(11, $_ = $$value));
|
|
10261
10300
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
10262
10301
|
validate_slots('lottery-program-wof-private-item', slots, []);
|
|
10263
10302
|
let { lang = Lang.en } = $$props;
|
|
@@ -10274,6 +10313,7 @@
|
|
|
10274
10313
|
let bonusNew;
|
|
10275
10314
|
let currentInfoKeys;
|
|
10276
10315
|
let isOptionsReady = false;
|
|
10316
|
+
let checkableValid = true;
|
|
10277
10317
|
|
|
10278
10318
|
const refetcher = async () => {
|
|
10279
10319
|
const LotteryProgramsForPlayer = await api.lotteries(endpoint, session);
|
|
@@ -10304,7 +10344,18 @@
|
|
|
10304
10344
|
},
|
|
10305
10345
|
'wof-private-message-spin-before': async data => {
|
|
10306
10346
|
if (data.id !== id) return;
|
|
10347
|
+
$$invalidate(8, checkableValid = false);
|
|
10307
10348
|
bonusNew = await refetcher();
|
|
10349
|
+
},
|
|
10350
|
+
'wof-private-message-close': data => {
|
|
10351
|
+
if (data.id !== id) return;
|
|
10352
|
+
|
|
10353
|
+
setTimeout(
|
|
10354
|
+
() => {
|
|
10355
|
+
$$invalidate(8, checkableValid = true);
|
|
10356
|
+
},
|
|
10357
|
+
1000
|
|
10358
|
+
);
|
|
10308
10359
|
}
|
|
10309
10360
|
});
|
|
10310
10361
|
|
|
@@ -10332,14 +10383,14 @@
|
|
|
10332
10383
|
}
|
|
10333
10384
|
|
|
10334
10385
|
$$self.$$set = $$props => {
|
|
10335
|
-
if ('lang' in $$props) $$invalidate(
|
|
10336
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
10337
|
-
if ('session' in $$props) $$invalidate(
|
|
10338
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
10339
|
-
if ('currentinfo' in $$props) $$invalidate(
|
|
10386
|
+
if ('lang' in $$props) $$invalidate(12, lang = $$props.lang);
|
|
10387
|
+
if ('endpoint' in $$props) $$invalidate(13, endpoint = $$props.endpoint);
|
|
10388
|
+
if ('session' in $$props) $$invalidate(14, session = $$props.session);
|
|
10389
|
+
if ('clientstyling' in $$props) $$invalidate(15, clientstyling = $$props.clientstyling);
|
|
10390
|
+
if ('currentinfo' in $$props) $$invalidate(16, currentinfo = $$props.currentinfo);
|
|
10340
10391
|
if ('giftimagesrc' in $$props) $$invalidate(0, giftimagesrc = $$props.giftimagesrc);
|
|
10341
10392
|
if ('contentdirection' in $$props) $$invalidate(1, contentdirection = $$props.contentdirection);
|
|
10342
|
-
if ('size' in $$props) $$invalidate(
|
|
10393
|
+
if ('size' in $$props) $$invalidate(17, size = $$props.size);
|
|
10343
10394
|
if ('id' in $$props) $$invalidate(2, id = $$props.id);
|
|
10344
10395
|
};
|
|
10345
10396
|
|
|
@@ -10366,6 +10417,7 @@
|
|
|
10366
10417
|
bonusNew,
|
|
10367
10418
|
currentInfoKeys,
|
|
10368
10419
|
isOptionsReady,
|
|
10420
|
+
checkableValid,
|
|
10369
10421
|
refetcher,
|
|
10370
10422
|
_size,
|
|
10371
10423
|
radius,
|
|
@@ -10374,23 +10426,24 @@
|
|
|
10374
10426
|
});
|
|
10375
10427
|
|
|
10376
10428
|
$$self.$inject_state = $$props => {
|
|
10377
|
-
if ('lang' in $$props) $$invalidate(
|
|
10378
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
10379
|
-
if ('session' in $$props) $$invalidate(
|
|
10380
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
10381
|
-
if ('currentinfo' in $$props) $$invalidate(
|
|
10429
|
+
if ('lang' in $$props) $$invalidate(12, lang = $$props.lang);
|
|
10430
|
+
if ('endpoint' in $$props) $$invalidate(13, endpoint = $$props.endpoint);
|
|
10431
|
+
if ('session' in $$props) $$invalidate(14, session = $$props.session);
|
|
10432
|
+
if ('clientstyling' in $$props) $$invalidate(15, clientstyling = $$props.clientstyling);
|
|
10433
|
+
if ('currentinfo' in $$props) $$invalidate(16, currentinfo = $$props.currentinfo);
|
|
10382
10434
|
if ('giftimagesrc' in $$props) $$invalidate(0, giftimagesrc = $$props.giftimagesrc);
|
|
10383
10435
|
if ('contentdirection' in $$props) $$invalidate(1, contentdirection = $$props.contentdirection);
|
|
10384
|
-
if ('size' in $$props) $$invalidate(
|
|
10436
|
+
if ('size' in $$props) $$invalidate(17, size = $$props.size);
|
|
10385
10437
|
if ('id' in $$props) $$invalidate(2, id = $$props.id);
|
|
10386
10438
|
if ('rootContainer' in $$props) $$invalidate(3, rootContainer = $$props.rootContainer);
|
|
10387
10439
|
if ('bonus' in $$props) $$invalidate(5, bonus = $$props.bonus);
|
|
10388
10440
|
if ('bonusNew' in $$props) bonusNew = $$props.bonusNew;
|
|
10389
10441
|
if ('currentInfoKeys' in $$props) $$invalidate(6, currentInfoKeys = $$props.currentInfoKeys);
|
|
10390
10442
|
if ('isOptionsReady' in $$props) $$invalidate(7, isOptionsReady = $$props.isOptionsReady);
|
|
10443
|
+
if ('checkableValid' in $$props) $$invalidate(8, checkableValid = $$props.checkableValid);
|
|
10391
10444
|
if ('_size' in $$props) $$invalidate(4, _size = $$props._size);
|
|
10392
|
-
if ('radius' in $$props) $$invalidate(
|
|
10393
|
-
if ('commonProps' in $$props) $$invalidate(
|
|
10445
|
+
if ('radius' in $$props) $$invalidate(9, radius = $$props.radius);
|
|
10446
|
+
if ('commonProps' in $$props) $$invalidate(10, commonProps = $$props.commonProps);
|
|
10394
10447
|
};
|
|
10395
10448
|
|
|
10396
10449
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -10398,24 +10451,24 @@
|
|
|
10398
10451
|
}
|
|
10399
10452
|
|
|
10400
10453
|
$$self.$$.update = () => {
|
|
10401
|
-
if ($$self.$$.dirty & /*clientstyling, rootContainer*/
|
|
10454
|
+
if ($$self.$$.dirty & /*clientstyling, rootContainer*/ 32776) {
|
|
10402
10455
|
clientstyling && rootContainer && setClientStyling(rootContainer, clientstyling);
|
|
10403
10456
|
}
|
|
10404
10457
|
|
|
10405
|
-
if ($$self.$$.dirty & /*endpoint, lang, session, clientstyling*/
|
|
10406
|
-
$$invalidate(
|
|
10458
|
+
if ($$self.$$.dirty & /*endpoint, lang, session, clientstyling*/ 61440) {
|
|
10459
|
+
$$invalidate(10, commonProps = { endpoint, lang, session, clientstyling });
|
|
10407
10460
|
}
|
|
10408
10461
|
|
|
10409
|
-
if ($$self.$$.dirty & /*size*/
|
|
10462
|
+
if ($$self.$$.dirty & /*size*/ 131072) {
|
|
10410
10463
|
// reactives
|
|
10411
10464
|
$$invalidate(4, _size = Number(size) || 480);
|
|
10412
10465
|
}
|
|
10413
10466
|
|
|
10414
10467
|
if ($$self.$$.dirty & /*_size*/ 16) {
|
|
10415
|
-
$$invalidate(
|
|
10468
|
+
$$invalidate(9, radius = 0.62 * _size / 2);
|
|
10416
10469
|
}
|
|
10417
10470
|
|
|
10418
|
-
if ($$self.$$.dirty & /*currentinfo*/
|
|
10471
|
+
if ($$self.$$.dirty & /*currentinfo*/ 65536) {
|
|
10419
10472
|
// @ts-ignore
|
|
10420
10473
|
$$invalidate(6, currentInfoKeys = currentinfo
|
|
10421
10474
|
? currentinfo.split(',')
|
|
@@ -10432,6 +10485,7 @@
|
|
|
10432
10485
|
bonus,
|
|
10433
10486
|
currentInfoKeys,
|
|
10434
10487
|
isOptionsReady,
|
|
10488
|
+
checkableValid,
|
|
10435
10489
|
radius,
|
|
10436
10490
|
commonProps,
|
|
10437
10491
|
$_,
|
|
@@ -10449,7 +10503,7 @@
|
|
|
10449
10503
|
constructor(options) {
|
|
10450
10504
|
super();
|
|
10451
10505
|
const style = document.createElement('style');
|
|
10452
|
-
style.textContent = `lottery-program-wof-private-message-panel{position:absolute;top:0}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryItem{width:100%;display:flex;align-items:center;flex-direction:column;margin:20px 0;position:relative;max-width:600px;justify-content:space-around;min-height:200px}.Current{color:#FFFFFF}`;
|
|
10506
|
+
style.textContent = `lottery-program-wof-private-message-panel{position:absolute;top:0}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryItem{width:100%;display:flex;align-items:center;flex-direction:column;margin:20px 0;position:relative;max-width:600px;justify-content:space-around;min-height:200px}.LotteryItem.Invalid{display:none}.Current{color:#FFFFFF}`;
|
|
10453
10507
|
this.shadowRoot.appendChild(style);
|
|
10454
10508
|
|
|
10455
10509
|
init(
|
|
@@ -10463,14 +10517,14 @@
|
|
|
10463
10517
|
create_fragment$1,
|
|
10464
10518
|
safe_not_equal,
|
|
10465
10519
|
{
|
|
10466
|
-
lang:
|
|
10467
|
-
endpoint:
|
|
10468
|
-
session:
|
|
10469
|
-
clientstyling:
|
|
10470
|
-
currentinfo:
|
|
10520
|
+
lang: 12,
|
|
10521
|
+
endpoint: 13,
|
|
10522
|
+
session: 14,
|
|
10523
|
+
clientstyling: 15,
|
|
10524
|
+
currentinfo: 16,
|
|
10471
10525
|
giftimagesrc: 0,
|
|
10472
10526
|
contentdirection: 1,
|
|
10473
|
-
size:
|
|
10527
|
+
size: 17,
|
|
10474
10528
|
id: 2
|
|
10475
10529
|
},
|
|
10476
10530
|
null
|
|
@@ -10503,7 +10557,7 @@
|
|
|
10503
10557
|
}
|
|
10504
10558
|
|
|
10505
10559
|
get lang() {
|
|
10506
|
-
return this.$$.ctx[
|
|
10560
|
+
return this.$$.ctx[12];
|
|
10507
10561
|
}
|
|
10508
10562
|
|
|
10509
10563
|
set lang(lang) {
|
|
@@ -10512,7 +10566,7 @@
|
|
|
10512
10566
|
}
|
|
10513
10567
|
|
|
10514
10568
|
get endpoint() {
|
|
10515
|
-
return this.$$.ctx[
|
|
10569
|
+
return this.$$.ctx[13];
|
|
10516
10570
|
}
|
|
10517
10571
|
|
|
10518
10572
|
set endpoint(endpoint) {
|
|
@@ -10521,7 +10575,7 @@
|
|
|
10521
10575
|
}
|
|
10522
10576
|
|
|
10523
10577
|
get session() {
|
|
10524
|
-
return this.$$.ctx[
|
|
10578
|
+
return this.$$.ctx[14];
|
|
10525
10579
|
}
|
|
10526
10580
|
|
|
10527
10581
|
set session(session) {
|
|
@@ -10530,7 +10584,7 @@
|
|
|
10530
10584
|
}
|
|
10531
10585
|
|
|
10532
10586
|
get clientstyling() {
|
|
10533
|
-
return this.$$.ctx[
|
|
10587
|
+
return this.$$.ctx[15];
|
|
10534
10588
|
}
|
|
10535
10589
|
|
|
10536
10590
|
set clientstyling(clientstyling) {
|
|
@@ -10539,7 +10593,7 @@
|
|
|
10539
10593
|
}
|
|
10540
10594
|
|
|
10541
10595
|
get currentinfo() {
|
|
10542
|
-
return this.$$.ctx[
|
|
10596
|
+
return this.$$.ctx[16];
|
|
10543
10597
|
}
|
|
10544
10598
|
|
|
10545
10599
|
set currentinfo(currentinfo) {
|
|
@@ -10566,7 +10620,7 @@
|
|
|
10566
10620
|
}
|
|
10567
10621
|
|
|
10568
10622
|
get size() {
|
|
10569
|
-
return this.$$.ctx[
|
|
10623
|
+
return this.$$.ctx[17];
|
|
10570
10624
|
}
|
|
10571
10625
|
|
|
10572
10626
|
set size(size) {
|