@everymatrix/lottery-program-wof 1.22.8 → 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) => {
@@ -5632,7 +5636,7 @@
5632
5636
  attr_dev(img, "class", "GiftImage");
5633
5637
  add_location(img, file$6, 100, 4, 3072);
5634
5638
  add_location(p0, file$6, 99, 2, 3064);
5635
- add_location(p1, file$6, 107, 2, 3284);
5639
+ add_location(p1, file$6, 107, 2, 3290);
5636
5640
  },
5637
5641
  m: function mount(target, anchor) {
5638
5642
  insert_dev(target, p0, anchor);
@@ -5723,21 +5727,26 @@
5723
5727
 
5724
5728
  // (103:4) {#if modeValue.prizeText}
5725
5729
  function create_if_block_4(ctx) {
5726
- let t_value = /*modeValue*/ ctx[1].prizeText + "";
5727
- let t;
5730
+ let html_tag;
5731
+ let raw_value = /*modeValue*/ ctx[1].prizeText + "";
5732
+ let html_anchor;
5728
5733
 
5729
5734
  const block = {
5730
5735
  c: function create() {
5731
- t = text(t_value);
5736
+ html_tag = new HtmlTag(false);
5737
+ html_anchor = empty();
5738
+ html_tag.a = html_anchor;
5732
5739
  },
5733
5740
  m: function mount(target, anchor) {
5734
- insert_dev(target, t, anchor);
5741
+ html_tag.m(raw_value, target, anchor);
5742
+ insert_dev(target, html_anchor, anchor);
5735
5743
  },
5736
5744
  p: function update(ctx, dirty) {
5737
- if (dirty & /*modeValue*/ 2 && t_value !== (t_value = /*modeValue*/ ctx[1].prizeText + "")) set_data_dev(t, t_value);
5745
+ if (dirty & /*modeValue*/ 2 && raw_value !== (raw_value = /*modeValue*/ ctx[1].prizeText + "")) html_tag.p(raw_value);
5738
5746
  },
5739
5747
  d: function destroy(detaching) {
5740
- if (detaching) detach_dev(t);
5748
+ if (detaching) detach_dev(html_anchor);
5749
+ if (detaching) html_tag.d();
5741
5750
  }
5742
5751
  };
5743
5752
 
@@ -5770,9 +5779,9 @@
5770
5779
  if (!src_url_equal(img.src, img_src_value = /*modeValue*/ ctx[1].image)) attr_dev(img, "src", img_src_value);
5771
5780
  attr_dev(img, "alt", "");
5772
5781
  attr_dev(img, "class", "GiftImage");
5773
- add_location(img, file$6, 114, 4, 3341);
5774
- add_location(p0, file$6, 113, 2, 3333);
5775
- add_location(p1, file$6, 116, 2, 3403);
5782
+ add_location(img, file$6, 114, 4, 3347);
5783
+ add_location(p0, file$6, 113, 2, 3339);
5784
+ add_location(p1, file$6, 116, 2, 3409);
5776
5785
  },
5777
5786
  m: function mount(target, anchor) {
5778
5787
  insert_dev(target, p0, anchor);
@@ -5820,8 +5829,8 @@
5820
5829
  button = element("button");
5821
5830
  t = text(t_value);
5822
5831
  attr_dev(button, "class", "MessagePanelButton");
5823
- add_location(button, file$6, 121, 4, 3517);
5824
- add_location(div, file$6, 120, 2, 3507);
5832
+ add_location(button, file$6, 121, 4, 3523);
5833
+ add_location(div, file$6, 120, 2, 3513);
5825
5834
  },
5826
5835
  m: function mount(target, anchor) {
5827
5836
  insert_dev(target, div, anchor);
@@ -6257,6 +6266,7 @@
6257
6266
  (function (ContentDirection) {
6258
6267
  ContentDirection[ContentDirection["clockwise"] = 1] = "clockwise";
6259
6268
  ContentDirection[ContentDirection["anticlockwise"] = -1] = "anticlockwise";
6269
+ ContentDirection[ContentDirection["outward"] = 0] = "outward";
6260
6270
  })(ContentDirection || (ContentDirection = {}));
6261
6271
 
6262
6272
  /* src/private.tabs.svelte generated by Svelte v3.59.2 */
@@ -6836,7 +6846,22 @@
6836
6846
  };
6837
6847
  const getOptions = async (bonus, lang) => {
6838
6848
  const { partitions } = bonus.program.wheelOfFortune;
6839
- const options = await Promise.all(getOptionsFromPartitions(partitions, lang).map(async (o) => (Object.assign(Object.assign({}, o), (await preloadImage(o.image))))));
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
+ }
6840
6865
  return options;
6841
6866
  };
6842
6867
 
@@ -7306,55 +7331,52 @@
7306
7331
  function create_each_block_1$1(ctx) {
7307
7332
  let tr;
7308
7333
  let td0;
7309
- let t0_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "";
7334
+ let raw_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "";
7310
7335
  let t0;
7311
- let t1;
7312
7336
  let td1;
7313
- let t2_value = /*outcome*/ ctx[20].draw.state + "";
7337
+ let t1_value = /*outcome*/ ctx[20].draw.state + "";
7338
+ let t1;
7314
7339
  let t2;
7315
- let t3;
7316
7340
  let td2;
7317
7341
 
7318
- let t4_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7342
+ let t3_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7319
7343
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
7320
7344
  }) + "";
7321
7345
 
7322
- let t4;
7346
+ let t3;
7323
7347
 
7324
7348
  const block = {
7325
7349
  c: function create() {
7326
7350
  tr = element("tr");
7327
7351
  td0 = element("td");
7328
- t0 = text(t0_value);
7329
- t1 = space();
7352
+ t0 = space();
7330
7353
  td1 = element("td");
7331
- t2 = text(t2_value);
7332
- t3 = space();
7354
+ t1 = text(t1_value);
7355
+ t2 = space();
7333
7356
  td2 = element("td");
7334
- t4 = text(t4_value);
7357
+ t3 = text(t3_value);
7335
7358
  add_location(td0, file$3, 92, 14, 3015);
7336
- add_location(td1, file$3, 93, 14, 3075);
7337
- add_location(td2, file$3, 94, 14, 3119);
7359
+ add_location(td1, file$3, 93, 14, 3081);
7360
+ add_location(td2, file$3, 94, 14, 3125);
7338
7361
  add_location(tr, file$3, 91, 12, 2996);
7339
7362
  },
7340
7363
  m: function mount(target, anchor) {
7341
7364
  insert_dev(target, tr, anchor);
7342
7365
  append_dev(tr, td0);
7343
- append_dev(td0, t0);
7344
- append_dev(tr, t1);
7366
+ td0.innerHTML = raw_value;
7367
+ append_dev(tr, t0);
7345
7368
  append_dev(tr, td1);
7346
- append_dev(td1, t2);
7347
- append_dev(tr, t3);
7369
+ append_dev(td1, t1);
7370
+ append_dev(tr, t2);
7348
7371
  append_dev(tr, td2);
7349
- append_dev(td2, t4);
7372
+ append_dev(td2, t3);
7350
7373
  },
7351
7374
  p: function update(ctx, dirty) {
7352
- if (dirty & /*outcomesList*/ 4 && t0_value !== (t0_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "")) set_data_dev(t0, t0_value);
7353
- if (dirty & /*outcomesList*/ 4 && t2_value !== (t2_value = /*outcome*/ ctx[20].draw.state + "")) set_data_dev(t2, t2_value);
7375
+ if (dirty & /*outcomesList*/ 4 && raw_value !== (raw_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "")) td0.innerHTML = raw_value; if (dirty & /*outcomesList*/ 4 && t1_value !== (t1_value = /*outcome*/ ctx[20].draw.state + "")) set_data_dev(t1, t1_value);
7354
7376
 
7355
- if (dirty & /*outcomesList*/ 4 && t4_value !== (t4_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7377
+ if (dirty & /*outcomesList*/ 4 && t3_value !== (t3_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7356
7378
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
7357
- }) + "")) set_data_dev(t4, t4_value);
7379
+ }) + "")) set_data_dev(t3, t3_value);
7358
7380
  },
7359
7381
  d: function destroy(detaching) {
7360
7382
  if (detaching) detach_dev(tr);
@@ -8144,7 +8166,7 @@
8144
8166
  else {
8145
8167
  baseRadius = (this.radius - sizeImage / 2) / Number(partitionDivisor) - 3 * this.ratio;
8146
8168
  }
8147
- return Object.assign(Object.assign({}, this.getPropsForPartitionInfo(index, this.getOffsetImage(sizeImage), baseRadius)), { width: sizeImage, height: sizeImage });
8169
+ return Object.assign(Object.assign({}, this.getPropsForPartitionInfo(index, this.getOffsetImage(sizeImage), baseRadius, ContentDirection.outward)), { width: sizeImage, height: sizeImage });
8148
8170
  }
8149
8171
  getSvgTextProps(index) {
8150
8172
  const sizeImage = this.getSizeImageByPartition(index);
@@ -8195,8 +8217,11 @@
8195
8217
  get direction() {
8196
8218
  return RotateDirection.clockwise;
8197
8219
  }
8198
- getAngleSelf(index) {
8199
- return 360 * index / this.length * this.direction + 90 * ContentDirection[this.contentdirection];
8220
+ getAngleSelf(index, contentDirection) {
8221
+ const baseAngle = 360 * index / this.length * this.direction;
8222
+ const fixerAngle = 90 * (contentDirection !== undefined ? contentDirection : ContentDirection[this.contentdirection]);
8223
+ const resultAngle = baseAngle + fixerAngle;
8224
+ return resultAngle;
8200
8225
  }
8201
8226
  getPartitionPositions(index, baseRadius, offset) {
8202
8227
  const angle = this.angleTransform(this.arrowmode) +
@@ -8209,12 +8234,12 @@
8209
8234
  point: pointResult,
8210
8235
  };
8211
8236
  }
8212
- getPropsForPartitionInfo(index, offset, baseRadius) {
8237
+ getPropsForPartitionInfo(index, offset, baseRadius, contentDirection) {
8213
8238
  const { point, transformOrigin } = this.getPartitionPositions(index, baseRadius, offset);
8214
8239
  const getTransformOriginString = (vector) => Object.keys(vector).map(axis => `${vector[axis]}px`).join(' ');
8215
8240
  return Object.assign(Object.assign({}, point), { style: [
8216
8241
  `font-size: ${13 * this.ratio}px`,
8217
- `transform: rotate(${this.getAngleSelf(index)}deg)`,
8242
+ `transform: rotate(${this.getAngleSelf(index, contentDirection)}deg)`,
8218
8243
  `transform-origin: ${getTransformOriginString(transformOrigin)}`,
8219
8244
  ].join(';') });
8220
8245
  }
@@ -8378,43 +8403,43 @@
8378
8403
 
8379
8404
  function get_each_context$2(ctx, list, i) {
8380
8405
  const child_ctx = ctx.slice();
8381
- child_ctx[40] = list[i];
8382
- child_ctx[42] = i;
8406
+ child_ctx[41] = list[i];
8407
+ child_ctx[43] = i;
8383
8408
  return child_ctx;
8384
8409
  }
8385
8410
 
8386
8411
  function get_each_context_1(ctx, list, i) {
8387
8412
  const child_ctx = ctx.slice();
8388
- child_ctx[40] = list[i];
8389
- child_ctx[42] = i;
8413
+ child_ctx[41] = list[i];
8414
+ child_ctx[43] = i;
8390
8415
  return child_ctx;
8391
8416
  }
8392
8417
 
8393
8418
  function get_each_context_2(ctx, list, i) {
8394
8419
  const child_ctx = ctx.slice();
8395
- child_ctx[40] = list[i];
8396
- child_ctx[42] = i;
8420
+ child_ctx[41] = list[i];
8421
+ child_ctx[43] = i;
8397
8422
  return child_ctx;
8398
8423
  }
8399
8424
 
8400
8425
  function get_each_context_3(ctx, list, i) {
8401
8426
  const child_ctx = ctx.slice();
8402
- child_ctx[40] = list[i];
8403
- child_ctx[42] = i;
8427
+ child_ctx[41] = list[i];
8428
+ child_ctx[43] = i;
8404
8429
  return child_ctx;
8405
8430
  }
8406
8431
 
8407
8432
  function get_each_context_4(ctx, list, i) {
8408
8433
  const child_ctx = ctx.slice();
8409
- child_ctx[40] = list[i];
8410
- child_ctx[42] = i;
8434
+ child_ctx[41] = list[i];
8435
+ child_ctx[43] = i;
8411
8436
  return child_ctx;
8412
8437
  }
8413
8438
 
8414
8439
  function get_each_context_5(ctx, list, i) {
8415
8440
  const child_ctx = ctx.slice();
8416
- child_ctx[40] = list[i];
8417
- child_ctx[42] = i;
8441
+ child_ctx[41] = list[i];
8442
+ child_ctx[43] = i;
8418
8443
  return child_ctx;
8419
8444
  }
8420
8445
 
@@ -8561,37 +8586,37 @@
8561
8586
  }
8562
8587
 
8563
8588
  set_svg_attributes(foreignObject0, foreignObject_data_3);
8564
- add_location(foreignObject0, file$2, 170, 4, 5093);
8589
+ add_location(foreignObject0, file$2, 171, 4, 5150);
8565
8590
  attr_dev(g0, "class", "PartitionsBackgrounds");
8566
- add_location(g0, file$2, 173, 6, 5223);
8591
+ add_location(g0, file$2, 174, 6, 5280);
8567
8592
  attr_dev(g1, "class", "PartitionsBackgroundStrokes");
8568
- add_location(g1, file$2, 184, 6, 5556);
8593
+ add_location(g1, file$2, 185, 6, 5613);
8569
8594
  attr_dev(g2, "class", "Partitions");
8570
8595
  set_style(g2, "filter", /*optionFilter*/ ctx[12]);
8571
- add_location(g2, file$2, 195, 6, 5831);
8596
+ add_location(g2, file$2, 196, 6, 5888);
8572
8597
  set_svg_attributes(g3, g_data_7);
8573
- add_location(g3, file$2, 172, 4, 5157);
8598
+ add_location(g3, file$2, 173, 4, 5214);
8574
8599
  attr_dev(g4, "class", "PartitionsCustomable1");
8575
- add_location(g4, file$2, 221, 4, 6563);
8600
+ add_location(g4, file$2, 222, 4, 6626);
8576
8601
  attr_dev(g5, "class", "PartitionsCustomable2");
8577
- add_location(g5, file$2, 230, 4, 6789);
8602
+ add_location(g5, file$2, 231, 4, 6852);
8578
8603
  set_svg_attributes(foreignObject1, foreignObject_data_2);
8579
- add_location(foreignObject1, file$2, 253, 4, 7359);
8604
+ add_location(foreignObject1, file$2, 254, 4, 7422);
8580
8605
  set_svg_attributes(foreignObject2, foreignObject_data_1);
8581
- add_location(foreignObject2, file$2, 254, 4, 7422);
8606
+ add_location(foreignObject2, file$2, 255, 4, 7485);
8582
8607
  attr_dev(foreignObject3, "x", foreignObject3_x_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
8583
8608
  attr_dev(foreignObject3, "y", foreignObject3_y_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
8584
8609
  attr_dev(foreignObject3, "width", 100);
8585
8610
  attr_dev(foreignObject3, "height", 100);
8586
- add_location(foreignObject3, file$2, 261, 6, 7588);
8611
+ add_location(foreignObject3, file$2, 262, 6, 7665);
8587
8612
  attr_dev(g6, "class", "Center");
8588
8613
  toggle_class(g6, "disabled", /*isSpinning*/ ctx[8]);
8589
- add_location(g6, file$2, 256, 4, 7483);
8590
- add_location(g7, file$2, 270, 4, 7755);
8614
+ add_location(g6, file$2, 257, 4, 7546);
8615
+ add_location(g7, file$2, 271, 4, 7832);
8591
8616
  attr_dev(svg_1, "width", /*size*/ ctx[0]);
8592
8617
  attr_dev(svg_1, "height", /*size*/ ctx[0]);
8593
8618
  set_style(svg_1, "opacity", /*messageShown*/ ctx[10] ? '.3' : '');
8594
- add_location(svg_1, file$2, 164, 2, 4981);
8619
+ add_location(svg_1, file$2, 164, 2, 4991);
8595
8620
  },
8596
8621
  m: function mount(target, anchor) {
8597
8622
  insert_dev(target, svg_1, anchor);
@@ -8653,7 +8678,11 @@
8653
8678
  /*svg_1_binding*/ ctx[27](svg_1);
8654
8679
 
8655
8680
  if (!mounted) {
8656
- dispose = listen_dev(g6, "click", /*click_handler*/ ctx[26], false, false, false, false);
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
+
8657
8686
  mounted = true;
8658
8687
  }
8659
8688
  },
@@ -8874,7 +8903,7 @@
8874
8903
  destroy_each(each_blocks, detaching);
8875
8904
  /*svg_1_binding*/ ctx[27](null);
8876
8905
  mounted = false;
8877
- dispose();
8906
+ run_all(dispose);
8878
8907
  }
8879
8908
  };
8880
8909
 
@@ -8889,19 +8918,19 @@
8889
8918
  return block;
8890
8919
  }
8891
8920
 
8892
- // (175:8) {#each options as option, index}
8921
+ // (176:8) {#each options as option, index}
8893
8922
  function create_each_block_5(ctx) {
8894
8923
  let foreignObject;
8895
8924
 
8896
8925
  const block = {
8897
8926
  c: function create() {
8898
8927
  foreignObject = svg_element("foreignObject");
8899
- attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[42]})`);
8928
+ attr_dev(foreignObject, "clip-path", `url(#clip${/*index*/ ctx[43]})`);
8900
8929
  attr_dev(foreignObject, "class", "PartitionBackground Customable");
8901
- attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[42]}`);
8930
+ attr_dev(foreignObject, "style", `--index: ${/*index*/ ctx[43]}`);
8902
8931
  attr_dev(foreignObject, "width", /*size*/ ctx[0]);
8903
8932
  attr_dev(foreignObject, "height", /*size*/ ctx[0]);
8904
- add_location(foreignObject, file$2, 175, 10, 5308);
8933
+ add_location(foreignObject, file$2, 176, 10, 5365);
8905
8934
  },
8906
8935
  m: function mount(target, anchor) {
8907
8936
  insert_dev(target, foreignObject, anchor);
@@ -8924,20 +8953,20 @@
8924
8953
  block,
8925
8954
  id: create_each_block_5.name,
8926
8955
  type: "each",
8927
- source: "(175:8) {#each options as option, index}",
8956
+ source: "(176:8) {#each options as option, index}",
8928
8957
  ctx
8929
8958
  });
8930
8959
 
8931
8960
  return block;
8932
8961
  }
8933
8962
 
8934
- // (186:8) {#each options as option, index}
8963
+ // (187:8) {#each options as option, index}
8935
8964
  function create_each_block_4(ctx) {
8936
8965
  let path;
8937
8966
 
8938
8967
  let path_levels = [
8939
8968
  { class: "PartitionBackgroundStroke" },
8940
- /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[42]),
8969
+ /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43]),
8941
8970
  { width: /*size*/ ctx[0] },
8942
8971
  { height: /*size*/ ctx[0] }
8943
8972
  ];
@@ -8952,7 +8981,7 @@
8952
8981
  c: function create() {
8953
8982
  path = svg_element("path");
8954
8983
  set_svg_attributes(path, path_data);
8955
- add_location(path, file$2, 186, 8, 5645);
8984
+ add_location(path, file$2, 187, 8, 5702);
8956
8985
  },
8957
8986
  m: function mount(target, anchor) {
8958
8987
  insert_dev(target, path, anchor);
@@ -8960,7 +8989,7 @@
8960
8989
  p: function update(ctx, dirty) {
8961
8990
  set_svg_attributes(path, path_data = get_spread_update(path_levels, [
8962
8991
  { class: "PartitionBackgroundStroke" },
8963
- dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[42]),
8992
+ dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43]),
8964
8993
  dirty[0] & /*size*/ 1 && { width: /*size*/ ctx[0] },
8965
8994
  dirty[0] & /*size*/ 1 && { height: /*size*/ ctx[0] }
8966
8995
  ]));
@@ -8974,14 +9003,14 @@
8974
9003
  block,
8975
9004
  id: create_each_block_4.name,
8976
9005
  type: "each",
8977
- source: "(186:8) {#each options as option, index}",
9006
+ source: "(187:8) {#each options as option, index}",
8978
9007
  ctx
8979
9008
  });
8980
9009
 
8981
9010
  return block;
8982
9011
  }
8983
9012
 
8984
- // (199:10) {#if option.image}
9013
+ // (200:10) {#if option.image}
8985
9014
  function create_if_block_3(ctx) {
8986
9015
  let g;
8987
9016
  let mounted;
@@ -8990,14 +9019,14 @@
8990
9019
  const block = {
8991
9020
  c: function create() {
8992
9021
  g = svg_element("g");
8993
- attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[42]}`);
8994
- add_location(g, file$2, 199, 12, 5964);
9022
+ attr_dev(g, "class", `PartitionImage PartitionImage${/*index*/ ctx[43]}`);
9023
+ add_location(g, file$2, 200, 12, 6021);
8995
9024
  },
8996
9025
  m: function mount(target, anchor) {
8997
9026
  insert_dev(target, g, anchor);
8998
9027
 
8999
9028
  if (!mounted) {
9000
- dispose = action_destroyer(/*renderImage*/ ctx[14].call(null, g, /*index*/ ctx[42]));
9029
+ dispose = action_destroyer(/*renderImage*/ ctx[14].call(null, g, /*index*/ ctx[43]));
9001
9030
  mounted = true;
9002
9031
  }
9003
9032
  },
@@ -9015,26 +9044,25 @@
9015
9044
  block,
9016
9045
  id: create_if_block_3.name,
9017
9046
  type: "if",
9018
- source: "(199:10) {#if option.image}",
9047
+ source: "(200:10) {#if option.image}",
9019
9048
  ctx
9020
9049
  });
9021
9050
 
9022
9051
  return block;
9023
9052
  }
9024
9053
 
9025
- // (206:10) {#if option.name}
9054
+ // (207:10) {#if option.name}
9026
9055
  function create_if_block_2(ctx) {
9027
9056
  let foreignObject;
9028
9057
  let div;
9029
9058
  let p;
9030
- let t0_value = /*option*/ ctx[40].name + "";
9031
- let t0;
9059
+ let raw_value = /*option*/ ctx[41].name + "";
9032
9060
  let p_class_value;
9033
- let t1;
9061
+ let t;
9034
9062
 
9035
9063
  let foreignObject_levels = [
9036
9064
  { class: "PartitionText" },
9037
- /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[42])
9065
+ /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[43])
9038
9066
  ];
9039
9067
 
9040
9068
  let foreignObject_data = {};
@@ -9048,29 +9076,27 @@
9048
9076
  foreignObject = svg_element("foreignObject");
9049
9077
  div = element("div");
9050
9078
  p = element("p");
9051
- t0 = text(t0_value);
9052
- t1 = space();
9079
+ t = space();
9053
9080
 
9054
9081
  attr_dev(p, "class", p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
9055
9082
  ? ''
9056
9083
  : ' Anticlockwise'}`);
9057
9084
 
9058
- add_location(p, file$2, 211, 16, 6339);
9085
+ add_location(p, file$2, 212, 16, 6396);
9059
9086
  attr_dev(div, "class", "PartitionTextEntityContainer");
9060
- add_location(div, file$2, 210, 14, 6280);
9087
+ add_location(div, file$2, 211, 14, 6337);
9061
9088
  set_svg_attributes(foreignObject, foreignObject_data);
9062
- add_location(foreignObject, file$2, 206, 12, 6139);
9089
+ add_location(foreignObject, file$2, 207, 12, 6196);
9063
9090
  },
9064
9091
  m: function mount(target, anchor) {
9065
9092
  insert_dev(target, foreignObject, anchor);
9066
9093
  append_dev(foreignObject, div);
9067
9094
  append_dev(div, p);
9068
- append_dev(p, t0);
9069
- append_dev(div, t1);
9095
+ p.innerHTML = raw_value;
9096
+ append_dev(div, t);
9070
9097
  },
9071
9098
  p: function update(ctx, dirty) {
9072
- if (dirty[0] & /*options*/ 8 && t0_value !== (t0_value = /*option*/ ctx[40].name + "")) set_data_dev(t0, t0_value);
9073
-
9099
+ if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[41].name + "")) p.innerHTML = raw_value;
9074
9100
  if (dirty[0] & /*calc*/ 32 && p_class_value !== (p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
9075
9101
  ? ''
9076
9102
  : ' Anticlockwise'}`)) {
@@ -9079,7 +9105,7 @@
9079
9105
 
9080
9106
  set_svg_attributes(foreignObject, foreignObject_data = get_spread_update(foreignObject_levels, [
9081
9107
  { class: "PartitionText" },
9082
- dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[42])
9108
+ dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getSvgTextPropsAdjustedByImage(/*index*/ ctx[43])
9083
9109
  ]));
9084
9110
  },
9085
9111
  d: function destroy(detaching) {
@@ -9091,19 +9117,19 @@
9091
9117
  block,
9092
9118
  id: create_if_block_2.name,
9093
9119
  type: "if",
9094
- source: "(206:10) {#if option.name}",
9120
+ source: "(207:10) {#if option.name}",
9095
9121
  ctx
9096
9122
  });
9097
9123
 
9098
9124
  return block;
9099
9125
  }
9100
9126
 
9101
- // (197:8) {#each options as option,index}
9127
+ // (198:8) {#each options as option,index}
9102
9128
  function create_each_block_3(ctx) {
9103
9129
  let if_block0_anchor;
9104
9130
  let if_block1_anchor;
9105
- let if_block0 = /*option*/ ctx[40].image && create_if_block_3(ctx);
9106
- let if_block1 = /*option*/ ctx[40].name && create_if_block_2(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);
9107
9133
 
9108
9134
  const block = {
9109
9135
  c: function create() {
@@ -9119,7 +9145,7 @@
9119
9145
  insert_dev(target, if_block1_anchor, anchor);
9120
9146
  },
9121
9147
  p: function update(ctx, dirty) {
9122
- if (/*option*/ ctx[40].image) {
9148
+ if (/*option*/ ctx[41].image) {
9123
9149
  if (if_block0) ; else {
9124
9150
  if_block0 = create_if_block_3(ctx);
9125
9151
  if_block0.c();
@@ -9130,7 +9156,7 @@
9130
9156
  if_block0 = null;
9131
9157
  }
9132
9158
 
9133
- if (/*option*/ ctx[40].name) {
9159
+ if (/*option*/ ctx[41].name) {
9134
9160
  if (if_block1) {
9135
9161
  if_block1.p(ctx, dirty);
9136
9162
  } else {
@@ -9155,14 +9181,14 @@
9155
9181
  block,
9156
9182
  id: create_each_block_3.name,
9157
9183
  type: "each",
9158
- source: "(197:8) {#each options as option,index}",
9184
+ source: "(198:8) {#each options as option,index}",
9159
9185
  ctx
9160
9186
  });
9161
9187
 
9162
9188
  return block;
9163
9189
  }
9164
9190
 
9165
- // (223:6) {#each options as option,index}
9191
+ // (224:6) {#each options as option,index}
9166
9192
  function create_each_block_2(ctx) {
9167
9193
  let foreignObject;
9168
9194
  let foreignObject_style_value;
@@ -9170,7 +9196,7 @@
9170
9196
  let foreignObject_levels = [
9171
9197
  { class: "Partition1 Customable" },
9172
9198
  {
9173
- style: foreignObject_style_value = `--index: ${/*index*/ ctx[42]}`
9199
+ style: foreignObject_style_value = `--index: ${/*index*/ ctx[43]}`
9174
9200
  },
9175
9201
  /*sizeProps*/ ctx[11]
9176
9202
  ];
@@ -9185,7 +9211,7 @@
9185
9211
  c: function create() {
9186
9212
  foreignObject = svg_element("foreignObject");
9187
9213
  set_svg_attributes(foreignObject, foreignObject_data);
9188
- add_location(foreignObject, file$2, 223, 6, 6641);
9214
+ add_location(foreignObject, file$2, 224, 6, 6704);
9189
9215
  },
9190
9216
  m: function mount(target, anchor) {
9191
9217
  insert_dev(target, foreignObject, anchor);
@@ -9206,14 +9232,14 @@
9206
9232
  block,
9207
9233
  id: create_each_block_2.name,
9208
9234
  type: "each",
9209
- source: "(223:6) {#each options as option,index}",
9235
+ source: "(224:6) {#each options as option,index}",
9210
9236
  ctx
9211
9237
  });
9212
9238
 
9213
9239
  return block;
9214
9240
  }
9215
9241
 
9216
- // (232:6) {#each options as option,index}
9242
+ // (233:6) {#each options as option,index}
9217
9243
  function create_each_block_1(ctx) {
9218
9244
  let foreignObject;
9219
9245
  let foreignObject_style_value;
@@ -9221,7 +9247,7 @@
9221
9247
  let foreignObject_levels = [
9222
9248
  { class: "Partition2 Customable" },
9223
9249
  {
9224
- style: foreignObject_style_value = `--index: ${/*index*/ ctx[42]}`
9250
+ style: foreignObject_style_value = `--index: ${/*index*/ ctx[43]}`
9225
9251
  },
9226
9252
  /*sizeProps*/ ctx[11]
9227
9253
  ];
@@ -9236,7 +9262,7 @@
9236
9262
  c: function create() {
9237
9263
  foreignObject = svg_element("foreignObject");
9238
9264
  set_svg_attributes(foreignObject, foreignObject_data);
9239
- add_location(foreignObject, file$2, 232, 6, 6867);
9265
+ add_location(foreignObject, file$2, 233, 6, 6930);
9240
9266
  },
9241
9267
  m: function mount(target, anchor) {
9242
9268
  insert_dev(target, foreignObject, anchor);
@@ -9257,14 +9283,14 @@
9257
9283
  block,
9258
9284
  id: create_each_block_1.name,
9259
9285
  type: "each",
9260
- source: "(232:6) {#each options as option,index}",
9286
+ source: "(233:6) {#each options as option,index}",
9261
9287
  ctx
9262
9288
  });
9263
9289
 
9264
9290
  return block;
9265
9291
  }
9266
9292
 
9267
- // (241:4) {#if theme.pointerMode === PointerMode.Partition}
9293
+ // (242:4) {#if theme.pointerMode === PointerMode.Partition}
9268
9294
  function create_if_block_1$1(ctx) {
9269
9295
  let g;
9270
9296
  let foreignObject;
@@ -9296,12 +9322,12 @@
9296
9322
  foreignObject = svg_element("foreignObject");
9297
9323
  path = svg_element("path");
9298
9324
  set_svg_attributes(foreignObject, foreignObject_data);
9299
- add_location(foreignObject, file$2, 243, 6, 7134);
9325
+ add_location(foreignObject, file$2, 244, 6, 7197);
9300
9326
  set_svg_attributes(path, path_data);
9301
9327
  toggle_class(path, "active", /*isShowPrizeArea*/ ctx[9]);
9302
- add_location(path, file$2, 245, 6, 7205);
9328
+ add_location(path, file$2, 246, 6, 7268);
9303
9329
  set_svg_attributes(g, g_data);
9304
- add_location(g, file$2, 241, 4, 7070);
9330
+ add_location(g, file$2, 242, 4, 7133);
9305
9331
  },
9306
9332
  m: function mount(target, anchor) {
9307
9333
  insert_dev(target, g, anchor);
@@ -9335,25 +9361,25 @@
9335
9361
  block,
9336
9362
  id: create_if_block_1$1.name,
9337
9363
  type: "if",
9338
- source: "(241:4) {#if theme.pointerMode === PointerMode.Partition}",
9364
+ source: "(242:4) {#if theme.pointerMode === PointerMode.Partition}",
9339
9365
  ctx
9340
9366
  });
9341
9367
 
9342
9368
  return block;
9343
9369
  }
9344
9370
 
9345
- // (272:6) {#each options as option, index}
9371
+ // (273:6) {#each options as option, index}
9346
9372
  function create_each_block$2(ctx) {
9347
9373
  let clipPath;
9348
9374
  let path;
9349
- let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[42])];
9375
+ let path_levels = [/*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43])];
9350
9376
  let path_data = {};
9351
9377
 
9352
9378
  for (let i = 0; i < path_levels.length; i += 1) {
9353
9379
  path_data = assign(path_data, path_levels[i]);
9354
9380
  }
9355
9381
 
9356
- let clipPath_levels = [{ id: `clip${/*index*/ ctx[42]}` }];
9382
+ let clipPath_levels = [{ id: `clip${/*index*/ ctx[43]}` }];
9357
9383
  let clipPath_data = {};
9358
9384
 
9359
9385
  for (let i = 0; i < clipPath_levels.length; i += 1) {
@@ -9365,9 +9391,9 @@
9365
9391
  clipPath = svg_element("clipPath");
9366
9392
  path = svg_element("path");
9367
9393
  set_svg_attributes(path, path_data);
9368
- add_location(path, file$2, 273, 8, 7849);
9394
+ add_location(path, file$2, 274, 8, 7926);
9369
9395
  set_svg_attributes(clipPath, clipPath_data);
9370
- add_location(clipPath, file$2, 272, 6, 7804);
9396
+ add_location(clipPath, file$2, 273, 6, 7881);
9371
9397
  },
9372
9398
  m: function mount(target, anchor) {
9373
9399
  insert_dev(target, clipPath, anchor);
@@ -9375,7 +9401,7 @@
9375
9401
  },
9376
9402
  p: function update(ctx, dirty) {
9377
9403
  set_svg_attributes(path, path_data = get_spread_update(path_levels, [
9378
- dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[42])
9404
+ dirty[0] & /*calc*/ 32 && /*calc*/ ctx[5].getPartitionDraw(/*index*/ ctx[43])
9379
9405
  ]));
9380
9406
  },
9381
9407
  d: function destroy(detaching) {
@@ -9387,7 +9413,7 @@
9387
9413
  block,
9388
9414
  id: create_each_block$2.name,
9389
9415
  type: "each",
9390
- source: "(272:6) {#each options as option, index}",
9416
+ source: "(273:6) {#each options as option, index}",
9391
9417
  ctx
9392
9418
  });
9393
9419
 
@@ -9407,7 +9433,7 @@
9407
9433
  this.c = noop;
9408
9434
  attr_dev(div, "class", div_class_value = `WheelContainer theme${Number(/*themeIndex*/ ctx[6]) + 1}`);
9409
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]}`);
9410
- add_location(div, file$2, 158, 0, 4732);
9436
+ add_location(div, file$2, 158, 0, 4742);
9411
9437
  },
9412
9438
  l: function claim(nodes) {
9413
9439
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -9415,7 +9441,7 @@
9415
9441
  m: function mount(target, anchor) {
9416
9442
  insert_dev(target, div, anchor);
9417
9443
  if (if_block) if_block.m(div, null);
9418
- /*div_binding*/ ctx[28](div);
9444
+ /*div_binding*/ ctx[29](div);
9419
9445
  },
9420
9446
  p: function update(ctx, dirty) {
9421
9447
  if (/*size*/ ctx[0] && /*options*/ ctx[3].length) {
@@ -9444,7 +9470,7 @@
9444
9470
  d: function destroy(detaching) {
9445
9471
  if (detaching) detach_dev(div);
9446
9472
  if (if_block) if_block.d();
9447
- /*div_binding*/ ctx[28](null);
9473
+ /*div_binding*/ ctx[29](null);
9448
9474
  }
9449
9475
  };
9450
9476
 
@@ -9605,7 +9631,7 @@
9605
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}'`);
9606
9632
  });
9607
9633
 
9608
- const click_handler = () => eventSpin();
9634
+ const click_handler = () => isSafari() || eventSpin();
9609
9635
 
9610
9636
  function svg_1_binding($$value) {
9611
9637
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
@@ -9614,6 +9640,8 @@
9614
9640
  });
9615
9641
  }
9616
9642
 
9643
+ const click_handler_1 = () => isSafari() && eventSpin();
9644
+
9617
9645
  function div_binding($$value) {
9618
9646
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
9619
9647
  rootContainer = $$value;
@@ -9644,6 +9672,7 @@
9644
9672
  onMountMessageLifeCycle,
9645
9673
  _postMessage,
9646
9674
  themes,
9675
+ isSafari,
9647
9676
  setProps,
9648
9677
  Spinner,
9649
9678
  SvgCalc,
@@ -9704,7 +9733,7 @@
9704
9733
  if ('options' in $$props) $$invalidate(3, options = $$props.options);
9705
9734
  if ('svg' in $$props) $$invalidate(7, svg = $$props.svg);
9706
9735
  if ('spinContainer' in $$props) spinContainer = $$props.spinContainer;
9707
- if ('spinner' in $$props) $$invalidate(34, spinner = $$props.spinner);
9736
+ if ('spinner' in $$props) $$invalidate(35, spinner = $$props.spinner);
9708
9737
  if ('spinable' in $$props) spinable = $$props.spinable;
9709
9738
  if ('isSpinning' in $$props) $$invalidate(8, isSpinning = $$props.isSpinning);
9710
9739
  if ('isShowPrizeArea' in $$props) $$invalidate(9, isShowPrizeArea = $$props.isShowPrizeArea);
@@ -9818,6 +9847,7 @@
9818
9847
  speed,
9819
9848
  click_handler,
9820
9849
  svg_1_binding,
9850
+ click_handler_1,
9821
9851
  div_binding
9822
9852
  ];
9823
9853
  }