@everymatrix/lottery-program-wof 1.22.9 → 1.22.10
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.
|
@@ -5299,6 +5299,10 @@
|
|
|
5299
5299
|
}
|
|
5300
5300
|
return res;
|
|
5301
5301
|
};
|
|
5302
|
+
const isSafari = () => {
|
|
5303
|
+
var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5304
|
+
return isSafari;
|
|
5305
|
+
};
|
|
5302
5306
|
|
|
5303
5307
|
const setTranslation = (translations) => {
|
|
5304
5308
|
Object.keys(translations).forEach((item) => {
|
|
@@ -6842,7 +6846,22 @@
|
|
|
6842
6846
|
};
|
|
6843
6847
|
const getOptions = async (bonus, lang) => {
|
|
6844
6848
|
const { partitions } = bonus.program.wheelOfFortune;
|
|
6845
|
-
|
|
6849
|
+
let options = getOptionsFromPartitions(partitions, lang);
|
|
6850
|
+
if (isSafari()) {
|
|
6851
|
+
options = options.map(option => {
|
|
6852
|
+
if (option.image) {
|
|
6853
|
+
let img = document.createElementNS("http://www.w3.org/2000/svg", "image");
|
|
6854
|
+
img.href.baseVal = option.image;
|
|
6855
|
+
return Object.assign(Object.assign({}, option), { image: img });
|
|
6856
|
+
}
|
|
6857
|
+
else {
|
|
6858
|
+
return option;
|
|
6859
|
+
}
|
|
6860
|
+
});
|
|
6861
|
+
}
|
|
6862
|
+
else {
|
|
6863
|
+
options = await Promise.all(options.map(async (o) => (Object.assign(Object.assign({}, o), (await preloadImage(o.image))))));
|
|
6864
|
+
}
|
|
6846
6865
|
return options;
|
|
6847
6866
|
};
|
|
6848
6867
|
|
|
@@ -8384,43 +8403,43 @@
|
|
|
8384
8403
|
|
|
8385
8404
|
function get_each_context$2(ctx, list, i) {
|
|
8386
8405
|
const child_ctx = ctx.slice();
|
|
8387
|
-
child_ctx[
|
|
8388
|
-
child_ctx[
|
|
8406
|
+
child_ctx[41] = list[i];
|
|
8407
|
+
child_ctx[43] = i;
|
|
8389
8408
|
return child_ctx;
|
|
8390
8409
|
}
|
|
8391
8410
|
|
|
8392
8411
|
function get_each_context_1(ctx, list, i) {
|
|
8393
8412
|
const child_ctx = ctx.slice();
|
|
8394
|
-
child_ctx[
|
|
8395
|
-
child_ctx[
|
|
8413
|
+
child_ctx[41] = list[i];
|
|
8414
|
+
child_ctx[43] = i;
|
|
8396
8415
|
return child_ctx;
|
|
8397
8416
|
}
|
|
8398
8417
|
|
|
8399
8418
|
function get_each_context_2(ctx, list, i) {
|
|
8400
8419
|
const child_ctx = ctx.slice();
|
|
8401
|
-
child_ctx[
|
|
8402
|
-
child_ctx[
|
|
8420
|
+
child_ctx[41] = list[i];
|
|
8421
|
+
child_ctx[43] = i;
|
|
8403
8422
|
return child_ctx;
|
|
8404
8423
|
}
|
|
8405
8424
|
|
|
8406
8425
|
function get_each_context_3(ctx, list, i) {
|
|
8407
8426
|
const child_ctx = ctx.slice();
|
|
8408
|
-
child_ctx[
|
|
8409
|
-
child_ctx[
|
|
8427
|
+
child_ctx[41] = list[i];
|
|
8428
|
+
child_ctx[43] = i;
|
|
8410
8429
|
return child_ctx;
|
|
8411
8430
|
}
|
|
8412
8431
|
|
|
8413
8432
|
function get_each_context_4(ctx, list, i) {
|
|
8414
8433
|
const child_ctx = ctx.slice();
|
|
8415
|
-
child_ctx[
|
|
8416
|
-
child_ctx[
|
|
8434
|
+
child_ctx[41] = list[i];
|
|
8435
|
+
child_ctx[43] = i;
|
|
8417
8436
|
return child_ctx;
|
|
8418
8437
|
}
|
|
8419
8438
|
|
|
8420
8439
|
function get_each_context_5(ctx, list, i) {
|
|
8421
8440
|
const child_ctx = ctx.slice();
|
|
8422
|
-
child_ctx[
|
|
8423
|
-
child_ctx[
|
|
8441
|
+
child_ctx[41] = list[i];
|
|
8442
|
+
child_ctx[43] = i;
|
|
8424
8443
|
return child_ctx;
|
|
8425
8444
|
}
|
|
8426
8445
|
|
|
@@ -8567,37 +8586,37 @@
|
|
|
8567
8586
|
}
|
|
8568
8587
|
|
|
8569
8588
|
set_svg_attributes(foreignObject0, foreignObject_data_3);
|
|
8570
|
-
add_location(foreignObject0, file$2,
|
|
8589
|
+
add_location(foreignObject0, file$2, 171, 4, 5150);
|
|
8571
8590
|
attr_dev(g0, "class", "PartitionsBackgrounds");
|
|
8572
|
-
add_location(g0, file$2,
|
|
8591
|
+
add_location(g0, file$2, 174, 6, 5280);
|
|
8573
8592
|
attr_dev(g1, "class", "PartitionsBackgroundStrokes");
|
|
8574
|
-
add_location(g1, file$2,
|
|
8593
|
+
add_location(g1, file$2, 185, 6, 5613);
|
|
8575
8594
|
attr_dev(g2, "class", "Partitions");
|
|
8576
8595
|
set_style(g2, "filter", /*optionFilter*/ ctx[12]);
|
|
8577
|
-
add_location(g2, file$2,
|
|
8596
|
+
add_location(g2, file$2, 196, 6, 5888);
|
|
8578
8597
|
set_svg_attributes(g3, g_data_7);
|
|
8579
|
-
add_location(g3, file$2,
|
|
8598
|
+
add_location(g3, file$2, 173, 4, 5214);
|
|
8580
8599
|
attr_dev(g4, "class", "PartitionsCustomable1");
|
|
8581
|
-
add_location(g4, file$2,
|
|
8600
|
+
add_location(g4, file$2, 222, 4, 6626);
|
|
8582
8601
|
attr_dev(g5, "class", "PartitionsCustomable2");
|
|
8583
|
-
add_location(g5, file$2,
|
|
8602
|
+
add_location(g5, file$2, 231, 4, 6852);
|
|
8584
8603
|
set_svg_attributes(foreignObject1, foreignObject_data_2);
|
|
8585
|
-
add_location(foreignObject1, file$2,
|
|
8604
|
+
add_location(foreignObject1, file$2, 254, 4, 7422);
|
|
8586
8605
|
set_svg_attributes(foreignObject2, foreignObject_data_1);
|
|
8587
|
-
add_location(foreignObject2, file$2,
|
|
8606
|
+
add_location(foreignObject2, file$2, 255, 4, 7485);
|
|
8588
8607
|
attr_dev(foreignObject3, "x", foreignObject3_x_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
|
|
8589
8608
|
attr_dev(foreignObject3, "y", foreignObject3_y_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
|
|
8590
8609
|
attr_dev(foreignObject3, "width", 100);
|
|
8591
8610
|
attr_dev(foreignObject3, "height", 100);
|
|
8592
|
-
add_location(foreignObject3, file$2,
|
|
8611
|
+
add_location(foreignObject3, file$2, 262, 6, 7665);
|
|
8593
8612
|
attr_dev(g6, "class", "Center");
|
|
8594
8613
|
toggle_class(g6, "disabled", /*isSpinning*/ ctx[8]);
|
|
8595
|
-
add_location(g6, file$2,
|
|
8596
|
-
add_location(g7, file$2,
|
|
8614
|
+
add_location(g6, file$2, 257, 4, 7546);
|
|
8615
|
+
add_location(g7, file$2, 271, 4, 7832);
|
|
8597
8616
|
attr_dev(svg_1, "width", /*size*/ ctx[0]);
|
|
8598
8617
|
attr_dev(svg_1, "height", /*size*/ ctx[0]);
|
|
8599
8618
|
set_style(svg_1, "opacity", /*messageShown*/ ctx[10] ? '.3' : '');
|
|
8600
|
-
add_location(svg_1, file$2, 164, 2,
|
|
8619
|
+
add_location(svg_1, file$2, 164, 2, 4991);
|
|
8601
8620
|
},
|
|
8602
8621
|
m: function mount(target, anchor) {
|
|
8603
8622
|
insert_dev(target, svg_1, anchor);
|
|
@@ -8659,7 +8678,11 @@
|
|
|
8659
8678
|
/*svg_1_binding*/ ctx[27](svg_1);
|
|
8660
8679
|
|
|
8661
8680
|
if (!mounted) {
|
|
8662
|
-
dispose =
|
|
8681
|
+
dispose = [
|
|
8682
|
+
listen_dev(g6, "click", /*click_handler*/ ctx[26], false, false, false, false),
|
|
8683
|
+
listen_dev(svg_1, "click", /*click_handler_1*/ ctx[28], false, false, false, false)
|
|
8684
|
+
];
|
|
8685
|
+
|
|
8663
8686
|
mounted = true;
|
|
8664
8687
|
}
|
|
8665
8688
|
},
|
|
@@ -8880,7 +8903,7 @@
|
|
|
8880
8903
|
destroy_each(each_blocks, detaching);
|
|
8881
8904
|
/*svg_1_binding*/ ctx[27](null);
|
|
8882
8905
|
mounted = false;
|
|
8883
|
-
dispose
|
|
8906
|
+
run_all(dispose);
|
|
8884
8907
|
}
|
|
8885
8908
|
};
|
|
8886
8909
|
|
|
@@ -8895,19 +8918,19 @@
|
|
|
8895
8918
|
return block;
|
|
8896
8919
|
}
|
|
8897
8920
|
|
|
8898
|
-
// (
|
|
8921
|
+
// (176:8) {#each options as option, index}
|
|
8899
8922
|
function create_each_block_5(ctx) {
|
|
8900
8923
|
let foreignObject;
|
|
8901
8924
|
|
|
8902
8925
|
const block = {
|
|
8903
8926
|
c: function create() {
|
|
8904
8927
|
foreignObject = svg_element("foreignObject");
|
|
8905
|
-
attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[
|
|
8928
|
+
attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[43]})`);
|
|
8906
8929
|
attr_dev(foreignObject, "class", "PartitionBackground Customable");
|
|
8907
|
-
attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[
|
|
8930
|
+
attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[43]}`);
|
|
8908
8931
|
attr_dev(foreignObject, "width", /*size*/ ctx[0]);
|
|
8909
8932
|
attr_dev(foreignObject, "height", /*size*/ ctx[0]);
|
|
8910
|
-
add_location(foreignObject, file$2,
|
|
8933
|
+
add_location(foreignObject, file$2, 176, 10, 5365);
|
|
8911
8934
|
},
|
|
8912
8935
|
m: function mount(target, anchor) {
|
|
8913
8936
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -8930,20 +8953,20 @@
|
|
|
8930
8953
|
block,
|
|
8931
8954
|
id: create_each_block_5.name,
|
|
8932
8955
|
type: "each",
|
|
8933
|
-
source: "(
|
|
8956
|
+
source: "(176:8) {#each options as option, index}",
|
|
8934
8957
|
ctx
|
|
8935
8958
|
});
|
|
8936
8959
|
|
|
8937
8960
|
return block;
|
|
8938
8961
|
}
|
|
8939
8962
|
|
|
8940
|
-
// (
|
|
8963
|
+
// (187:8) {#each options as option, index}
|
|
8941
8964
|
function create_each_block_4(ctx) {
|
|
8942
8965
|
let path;
|
|
8943
8966
|
|
|
8944
8967
|
let path_levels = [
|
|
8945
8968
|
{ class: "PartitionBackgroundStroke" },
|
|
8946
|
-
/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
8969
|
+
/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43]),
|
|
8947
8970
|
{ width: /*size*/ ctx[0] },
|
|
8948
8971
|
{ height: /*size*/ ctx[0] }
|
|
8949
8972
|
];
|
|
@@ -8958,7 +8981,7 @@
|
|
|
8958
8981
|
c: function create() {
|
|
8959
8982
|
path = svg_element("path");
|
|
8960
8983
|
set_svg_attributes(path, path_data);
|
|
8961
|
-
add_location(path, file$2,
|
|
8984
|
+
add_location(path, file$2, 187, 8, 5702);
|
|
8962
8985
|
},
|
|
8963
8986
|
m: function mount(target, anchor) {
|
|
8964
8987
|
insert_dev(target, path, anchor);
|
|
@@ -8966,7 +8989,7 @@
|
|
|
8966
8989
|
p: function update(ctx, dirty) {
|
|
8967
8990
|
set_svg_attributes(path, path_data = get_spread_update(path_levels, [
|
|
8968
8991
|
{ class: "PartitionBackgroundStroke" },
|
|
8969
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
8992
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43]),
|
|
8970
8993
|
dirty[0] & /*size*/ 1 && { width: /*size*/ ctx[0] },
|
|
8971
8994
|
dirty[0] & /*size*/ 1 && { height: /*size*/ ctx[0] }
|
|
8972
8995
|
]));
|
|
@@ -8980,14 +9003,14 @@
|
|
|
8980
9003
|
block,
|
|
8981
9004
|
id: create_each_block_4.name,
|
|
8982
9005
|
type: "each",
|
|
8983
|
-
source: "(
|
|
9006
|
+
source: "(187:8) {#each options as option, index}",
|
|
8984
9007
|
ctx
|
|
8985
9008
|
});
|
|
8986
9009
|
|
|
8987
9010
|
return block;
|
|
8988
9011
|
}
|
|
8989
9012
|
|
|
8990
|
-
// (
|
|
9013
|
+
// (200:10) {#if option.image}
|
|
8991
9014
|
function create_if_block_3(ctx) {
|
|
8992
9015
|
let g;
|
|
8993
9016
|
let mounted;
|
|
@@ -8996,14 +9019,14 @@
|
|
|
8996
9019
|
const block = {
|
|
8997
9020
|
c: function create() {
|
|
8998
9021
|
g = svg_element("g");
|
|
8999
|
-
attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[
|
|
9000
|
-
add_location(g, file$2,
|
|
9022
|
+
attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[43]}`);
|
|
9023
|
+
add_location(g, file$2, 200, 12, 6021);
|
|
9001
9024
|
},
|
|
9002
9025
|
m: function mount(target, anchor) {
|
|
9003
9026
|
insert_dev(target, g, anchor);
|
|
9004
9027
|
|
|
9005
9028
|
if (!mounted) {
|
|
9006
|
-
dispose = action_destroyer(/*renderImage*/ ctx[14].call(null, g, /*index*/ ctx[
|
|
9029
|
+
dispose = action_destroyer(/*renderImage*/ ctx[14].call(null, g, /*index*/ ctx[43]));
|
|
9007
9030
|
mounted = true;
|
|
9008
9031
|
}
|
|
9009
9032
|
},
|
|
@@ -9021,25 +9044,25 @@
|
|
|
9021
9044
|
block,
|
|
9022
9045
|
id: create_if_block_3.name,
|
|
9023
9046
|
type: "if",
|
|
9024
|
-
source: "(
|
|
9047
|
+
source: "(200:10) {#if option.image}",
|
|
9025
9048
|
ctx
|
|
9026
9049
|
});
|
|
9027
9050
|
|
|
9028
9051
|
return block;
|
|
9029
9052
|
}
|
|
9030
9053
|
|
|
9031
|
-
// (
|
|
9054
|
+
// (207:10) {#if option.name}
|
|
9032
9055
|
function create_if_block_2(ctx) {
|
|
9033
9056
|
let foreignObject;
|
|
9034
9057
|
let div;
|
|
9035
9058
|
let p;
|
|
9036
|
-
let raw_value = /*option*/ ctx[
|
|
9059
|
+
let raw_value = /*option*/ ctx[41].name + "";
|
|
9037
9060
|
let p_class_value;
|
|
9038
9061
|
let t;
|
|
9039
9062
|
|
|
9040
9063
|
let foreignObject_levels = [
|
|
9041
9064
|
{ class: "PartitionText" },
|
|
9042
|
-
/*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[
|
|
9065
|
+
/*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[43])
|
|
9043
9066
|
];
|
|
9044
9067
|
|
|
9045
9068
|
let foreignObject_data = {};
|
|
@@ -9059,11 +9082,11 @@
|
|
|
9059
9082
|
? ''
|
|
9060
9083
|
: ' Anticlockwise'}`);
|
|
9061
9084
|
|
|
9062
|
-
add_location(p, file$2,
|
|
9085
|
+
add_location(p, file$2, 212, 16, 6396);
|
|
9063
9086
|
attr_dev(div, "class", "PartitionTextEntityContainer");
|
|
9064
|
-
add_location(div, file$2,
|
|
9087
|
+
add_location(div, file$2, 211, 14, 6337);
|
|
9065
9088
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9066
|
-
add_location(foreignObject, file$2,
|
|
9089
|
+
add_location(foreignObject, file$2, 207, 12, 6196);
|
|
9067
9090
|
},
|
|
9068
9091
|
m: function mount(target, anchor) {
|
|
9069
9092
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9073,7 +9096,7 @@
|
|
|
9073
9096
|
append_dev(div, t);
|
|
9074
9097
|
},
|
|
9075
9098
|
p: function update(ctx, dirty) {
|
|
9076
|
-
if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[
|
|
9099
|
+
if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[41].name + "")) p.innerHTML = raw_value;
|
|
9077
9100
|
if (dirty[0] & /*calc*/ 32 && p_class_value !== (p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
|
|
9078
9101
|
? ''
|
|
9079
9102
|
: ' Anticlockwise'}`)) {
|
|
@@ -9082,7 +9105,7 @@
|
|
|
9082
9105
|
|
|
9083
9106
|
set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
|
|
9084
9107
|
{ class: "PartitionText" },
|
|
9085
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[
|
|
9108
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[43])
|
|
9086
9109
|
]));
|
|
9087
9110
|
},
|
|
9088
9111
|
d: function destroy(detaching) {
|
|
@@ -9094,19 +9117,19 @@
|
|
|
9094
9117
|
block,
|
|
9095
9118
|
id: create_if_block_2.name,
|
|
9096
9119
|
type: "if",
|
|
9097
|
-
source: "(
|
|
9120
|
+
source: "(207:10) {#if option.name}",
|
|
9098
9121
|
ctx
|
|
9099
9122
|
});
|
|
9100
9123
|
|
|
9101
9124
|
return block;
|
|
9102
9125
|
}
|
|
9103
9126
|
|
|
9104
|
-
// (
|
|
9127
|
+
// (198:8) {#each options as option,index}
|
|
9105
9128
|
function create_each_block_3(ctx) {
|
|
9106
9129
|
let if_block0_anchor;
|
|
9107
9130
|
let if_block1_anchor;
|
|
9108
|
-
let if_block0 = /*option*/ ctx[
|
|
9109
|
-
let if_block1 = /*option*/ ctx[
|
|
9131
|
+
let if_block0 = /*option*/ ctx[41].image && create_if_block_3(ctx);
|
|
9132
|
+
let if_block1 = /*option*/ ctx[41].name && create_if_block_2(ctx);
|
|
9110
9133
|
|
|
9111
9134
|
const block = {
|
|
9112
9135
|
c: function create() {
|
|
@@ -9122,7 +9145,7 @@
|
|
|
9122
9145
|
insert_dev(target, if_block1_anchor, anchor);
|
|
9123
9146
|
},
|
|
9124
9147
|
p: function update(ctx, dirty) {
|
|
9125
|
-
if (/*option*/ ctx[
|
|
9148
|
+
if (/*option*/ ctx[41].image) {
|
|
9126
9149
|
if (if_block0) ; else {
|
|
9127
9150
|
if_block0 = create_if_block_3(ctx);
|
|
9128
9151
|
if_block0.c();
|
|
@@ -9133,7 +9156,7 @@
|
|
|
9133
9156
|
if_block0 = null;
|
|
9134
9157
|
}
|
|
9135
9158
|
|
|
9136
|
-
if (/*option*/ ctx[
|
|
9159
|
+
if (/*option*/ ctx[41].name) {
|
|
9137
9160
|
if (if_block1) {
|
|
9138
9161
|
if_block1.p(ctx, dirty);
|
|
9139
9162
|
} else {
|
|
@@ -9158,14 +9181,14 @@
|
|
|
9158
9181
|
block,
|
|
9159
9182
|
id: create_each_block_3.name,
|
|
9160
9183
|
type: "each",
|
|
9161
|
-
source: "(
|
|
9184
|
+
source: "(198:8) {#each options as option,index}",
|
|
9162
9185
|
ctx
|
|
9163
9186
|
});
|
|
9164
9187
|
|
|
9165
9188
|
return block;
|
|
9166
9189
|
}
|
|
9167
9190
|
|
|
9168
|
-
// (
|
|
9191
|
+
// (224:6) {#each options as option,index}
|
|
9169
9192
|
function create_each_block_2(ctx) {
|
|
9170
9193
|
let foreignObject;
|
|
9171
9194
|
let foreignObject_style_value;
|
|
@@ -9173,7 +9196,7 @@
|
|
|
9173
9196
|
let foreignObject_levels = [
|
|
9174
9197
|
{ class: "Partition1 Customable" },
|
|
9175
9198
|
{
|
|
9176
|
-
style: foreignObject_style_value = `--index: ${/*index*/ ctx[
|
|
9199
|
+
style: foreignObject_style_value = `--index: ${/*index*/ ctx[43]}`
|
|
9177
9200
|
},
|
|
9178
9201
|
/*sizeProps*/ ctx[11]
|
|
9179
9202
|
];
|
|
@@ -9188,7 +9211,7 @@
|
|
|
9188
9211
|
c: function create() {
|
|
9189
9212
|
foreignObject = svg_element("foreignObject");
|
|
9190
9213
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9191
|
-
add_location(foreignObject, file$2,
|
|
9214
|
+
add_location(foreignObject, file$2, 224, 6, 6704);
|
|
9192
9215
|
},
|
|
9193
9216
|
m: function mount(target, anchor) {
|
|
9194
9217
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9209,14 +9232,14 @@
|
|
|
9209
9232
|
block,
|
|
9210
9233
|
id: create_each_block_2.name,
|
|
9211
9234
|
type: "each",
|
|
9212
|
-
source: "(
|
|
9235
|
+
source: "(224:6) {#each options as option,index}",
|
|
9213
9236
|
ctx
|
|
9214
9237
|
});
|
|
9215
9238
|
|
|
9216
9239
|
return block;
|
|
9217
9240
|
}
|
|
9218
9241
|
|
|
9219
|
-
// (
|
|
9242
|
+
// (233:6) {#each options as option,index}
|
|
9220
9243
|
function create_each_block_1(ctx) {
|
|
9221
9244
|
let foreignObject;
|
|
9222
9245
|
let foreignObject_style_value;
|
|
@@ -9224,7 +9247,7 @@
|
|
|
9224
9247
|
let foreignObject_levels = [
|
|
9225
9248
|
{ class: "Partition2 Customable" },
|
|
9226
9249
|
{
|
|
9227
|
-
style: foreignObject_style_value = `--index: ${/*index*/ ctx[
|
|
9250
|
+
style: foreignObject_style_value = `--index: ${/*index*/ ctx[43]}`
|
|
9228
9251
|
},
|
|
9229
9252
|
/*sizeProps*/ ctx[11]
|
|
9230
9253
|
];
|
|
@@ -9239,7 +9262,7 @@
|
|
|
9239
9262
|
c: function create() {
|
|
9240
9263
|
foreignObject = svg_element("foreignObject");
|
|
9241
9264
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9242
|
-
add_location(foreignObject, file$2,
|
|
9265
|
+
add_location(foreignObject, file$2, 233, 6, 6930);
|
|
9243
9266
|
},
|
|
9244
9267
|
m: function mount(target, anchor) {
|
|
9245
9268
|
insert_dev(target, foreignObject, anchor);
|
|
@@ -9260,14 +9283,14 @@
|
|
|
9260
9283
|
block,
|
|
9261
9284
|
id: create_each_block_1.name,
|
|
9262
9285
|
type: "each",
|
|
9263
|
-
source: "(
|
|
9286
|
+
source: "(233:6) {#each options as option,index}",
|
|
9264
9287
|
ctx
|
|
9265
9288
|
});
|
|
9266
9289
|
|
|
9267
9290
|
return block;
|
|
9268
9291
|
}
|
|
9269
9292
|
|
|
9270
|
-
// (
|
|
9293
|
+
// (242:4) {#if theme.pointerMode === PointerMode.Partition}
|
|
9271
9294
|
function create_if_block_1$1(ctx) {
|
|
9272
9295
|
let g;
|
|
9273
9296
|
let foreignObject;
|
|
@@ -9299,12 +9322,12 @@
|
|
|
9299
9322
|
foreignObject = svg_element("foreignObject");
|
|
9300
9323
|
path = svg_element("path");
|
|
9301
9324
|
set_svg_attributes(foreignObject, foreignObject_data);
|
|
9302
|
-
add_location(foreignObject, file$2,
|
|
9325
|
+
add_location(foreignObject, file$2, 244, 6, 7197);
|
|
9303
9326
|
set_svg_attributes(path, path_data);
|
|
9304
9327
|
toggle_class(path, "active", /*isShowPrizeArea*/ ctx[9]);
|
|
9305
|
-
add_location(path, file$2,
|
|
9328
|
+
add_location(path, file$2, 246, 6, 7268);
|
|
9306
9329
|
set_svg_attributes(g, g_data);
|
|
9307
|
-
add_location(g, file$2,
|
|
9330
|
+
add_location(g, file$2, 242, 4, 7133);
|
|
9308
9331
|
},
|
|
9309
9332
|
m: function mount(target, anchor) {
|
|
9310
9333
|
insert_dev(target, g, anchor);
|
|
@@ -9338,25 +9361,25 @@
|
|
|
9338
9361
|
block,
|
|
9339
9362
|
id: create_if_block_1$1.name,
|
|
9340
9363
|
type: "if",
|
|
9341
|
-
source: "(
|
|
9364
|
+
source: "(242:4) {#if theme.pointerMode === PointerMode.Partition}",
|
|
9342
9365
|
ctx
|
|
9343
9366
|
});
|
|
9344
9367
|
|
|
9345
9368
|
return block;
|
|
9346
9369
|
}
|
|
9347
9370
|
|
|
9348
|
-
// (
|
|
9371
|
+
// (273:6) {#each options as option, index}
|
|
9349
9372
|
function create_each_block$2(ctx) {
|
|
9350
9373
|
let clipPath;
|
|
9351
9374
|
let path;
|
|
9352
|
-
let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
9375
|
+
let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43])];
|
|
9353
9376
|
let path_data = {};
|
|
9354
9377
|
|
|
9355
9378
|
for (let i = 0; i < path_levels.length; i += 1) {
|
|
9356
9379
|
path_data = assign(path_data, path_levels[i]);
|
|
9357
9380
|
}
|
|
9358
9381
|
|
|
9359
|
-
let clipPath_levels = [{ id: `clip${/*index*/ ctx[
|
|
9382
|
+
let clipPath_levels = [{ id: `clip${/*index*/ ctx[43]}` }];
|
|
9360
9383
|
let clipPath_data = {};
|
|
9361
9384
|
|
|
9362
9385
|
for (let i = 0; i < clipPath_levels.length; i += 1) {
|
|
@@ -9368,9 +9391,9 @@
|
|
|
9368
9391
|
clipPath = svg_element("clipPath");
|
|
9369
9392
|
path = svg_element("path");
|
|
9370
9393
|
set_svg_attributes(path, path_data);
|
|
9371
|
-
add_location(path, file$2,
|
|
9394
|
+
add_location(path, file$2, 274, 8, 7926);
|
|
9372
9395
|
set_svg_attributes(clipPath, clipPath_data);
|
|
9373
|
-
add_location(clipPath, file$2,
|
|
9396
|
+
add_location(clipPath, file$2, 273, 6, 7881);
|
|
9374
9397
|
},
|
|
9375
9398
|
m: function mount(target, anchor) {
|
|
9376
9399
|
insert_dev(target, clipPath, anchor);
|
|
@@ -9378,7 +9401,7 @@
|
|
|
9378
9401
|
},
|
|
9379
9402
|
p: function update(ctx, dirty) {
|
|
9380
9403
|
set_svg_attributes(path, path_data = get_spread_update(path_levels, [
|
|
9381
|
-
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[
|
|
9404
|
+
dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43])
|
|
9382
9405
|
]));
|
|
9383
9406
|
},
|
|
9384
9407
|
d: function destroy(detaching) {
|
|
@@ -9390,7 +9413,7 @@
|
|
|
9390
9413
|
block,
|
|
9391
9414
|
id: create_each_block$2.name,
|
|
9392
9415
|
type: "each",
|
|
9393
|
-
source: "(
|
|
9416
|
+
source: "(273:6) {#each options as option, index}",
|
|
9394
9417
|
ctx
|
|
9395
9418
|
});
|
|
9396
9419
|
|
|
@@ -9410,7 +9433,7 @@
|
|
|
9410
9433
|
this.c = noop;
|
|
9411
9434
|
attr_dev(div, "class", div_class_value = `WheelContainer theme${Number(/*themeIndex*/ ctx[6]) + 1}`);
|
|
9412
9435
|
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]}`);
|
|
9413
|
-
add_location(div, file$2, 158, 0,
|
|
9436
|
+
add_location(div, file$2, 158, 0, 4742);
|
|
9414
9437
|
},
|
|
9415
9438
|
l: function claim(nodes) {
|
|
9416
9439
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -9418,7 +9441,7 @@
|
|
|
9418
9441
|
m: function mount(target, anchor) {
|
|
9419
9442
|
insert_dev(target, div, anchor);
|
|
9420
9443
|
if (if_block) if_block.m(div, null);
|
|
9421
|
-
/*div_binding*/ ctx[
|
|
9444
|
+
/*div_binding*/ ctx[29](div);
|
|
9422
9445
|
},
|
|
9423
9446
|
p: function update(ctx, dirty) {
|
|
9424
9447
|
if (/*size*/ ctx[0] && /*options*/ ctx[3].length) {
|
|
@@ -9447,7 +9470,7 @@
|
|
|
9447
9470
|
d: function destroy(detaching) {
|
|
9448
9471
|
if (detaching) detach_dev(div);
|
|
9449
9472
|
if (if_block) if_block.d();
|
|
9450
|
-
/*div_binding*/ ctx[
|
|
9473
|
+
/*div_binding*/ ctx[29](null);
|
|
9451
9474
|
}
|
|
9452
9475
|
};
|
|
9453
9476
|
|
|
@@ -9608,7 +9631,7 @@
|
|
|
9608
9631
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<lottery-program-wof-private-item-svg> was created with unknown prop '${key}'`);
|
|
9609
9632
|
});
|
|
9610
9633
|
|
|
9611
|
-
const click_handler = () => eventSpin();
|
|
9634
|
+
const click_handler = () => isSafari() || eventSpin();
|
|
9612
9635
|
|
|
9613
9636
|
function svg_1_binding($$value) {
|
|
9614
9637
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
@@ -9617,6 +9640,8 @@
|
|
|
9617
9640
|
});
|
|
9618
9641
|
}
|
|
9619
9642
|
|
|
9643
|
+
const click_handler_1 = () => isSafari() && eventSpin();
|
|
9644
|
+
|
|
9620
9645
|
function div_binding($$value) {
|
|
9621
9646
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9622
9647
|
rootContainer = $$value;
|
|
@@ -9647,6 +9672,7 @@
|
|
|
9647
9672
|
onMountMessageLifeCycle,
|
|
9648
9673
|
_postMessage,
|
|
9649
9674
|
themes,
|
|
9675
|
+
isSafari,
|
|
9650
9676
|
setProps,
|
|
9651
9677
|
Spinner,
|
|
9652
9678
|
SvgCalc,
|
|
@@ -9707,7 +9733,7 @@
|
|
|
9707
9733
|
if ('options' in $$props) $$invalidate(3, options = $$props.options);
|
|
9708
9734
|
if ('svg' in $$props) $$invalidate(7, svg = $$props.svg);
|
|
9709
9735
|
if ('spinContainer' in $$props) spinContainer = $$props.spinContainer;
|
|
9710
|
-
if ('spinner' in $$props) $$invalidate(
|
|
9736
|
+
if ('spinner' in $$props) $$invalidate(35, spinner = $$props.spinner);
|
|
9711
9737
|
if ('spinable' in $$props) spinable = $$props.spinable;
|
|
9712
9738
|
if ('isSpinning' in $$props) $$invalidate(8, isSpinning = $$props.isSpinning);
|
|
9713
9739
|
if ('isShowPrizeArea' in $$props) $$invalidate(9, isShowPrizeArea = $$props.isShowPrizeArea);
|
|
@@ -9821,6 +9847,7 @@
|
|
|
9821
9847
|
speed,
|
|
9822
9848
|
click_handler,
|
|
9823
9849
|
svg_1_binding,
|
|
9850
|
+
click_handler_1,
|
|
9824
9851
|
div_binding
|
|
9825
9852
|
];
|
|
9826
9853
|
}
|