@everymatrix/lottery-program-wof 1.22.8 → 1.22.9

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.
@@ -5632,7 +5632,7 @@
5632
5632
  attr_dev(img, "class", "GiftImage");
5633
5633
  add_location(img, file$6, 100, 4, 3072);
5634
5634
  add_location(p0, file$6, 99, 2, 3064);
5635
- add_location(p1, file$6, 107, 2, 3284);
5635
+ add_location(p1, file$6, 107, 2, 3290);
5636
5636
  },
5637
5637
  m: function mount(target, anchor) {
5638
5638
  insert_dev(target, p0, anchor);
@@ -5723,21 +5723,26 @@
5723
5723
 
5724
5724
  // (103:4) {#if modeValue.prizeText}
5725
5725
  function create_if_block_4(ctx) {
5726
- let t_value = /*modeValue*/ ctx[1].prizeText + "";
5727
- let t;
5726
+ let html_tag;
5727
+ let raw_value = /*modeValue*/ ctx[1].prizeText + "";
5728
+ let html_anchor;
5728
5729
 
5729
5730
  const block = {
5730
5731
  c: function create() {
5731
- t = text(t_value);
5732
+ html_tag = new HtmlTag(false);
5733
+ html_anchor = empty();
5734
+ html_tag.a = html_anchor;
5732
5735
  },
5733
5736
  m: function mount(target, anchor) {
5734
- insert_dev(target, t, anchor);
5737
+ html_tag.m(raw_value, target, anchor);
5738
+ insert_dev(target, html_anchor, anchor);
5735
5739
  },
5736
5740
  p: function update(ctx, dirty) {
5737
- if (dirty & /*modeValue*/ 2 && t_value !== (t_value = /*modeValue*/ ctx[1].prizeText + "")) set_data_dev(t, t_value);
5741
+ if (dirty & /*modeValue*/ 2 && raw_value !== (raw_value = /*modeValue*/ ctx[1].prizeText + "")) html_tag.p(raw_value);
5738
5742
  },
5739
5743
  d: function destroy(detaching) {
5740
- if (detaching) detach_dev(t);
5744
+ if (detaching) detach_dev(html_anchor);
5745
+ if (detaching) html_tag.d();
5741
5746
  }
5742
5747
  };
5743
5748
 
@@ -5770,9 +5775,9 @@
5770
5775
  if (!src_url_equal(img.src, img_src_value = /*modeValue*/ ctx[1].image)) attr_dev(img, "src", img_src_value);
5771
5776
  attr_dev(img, "alt", "");
5772
5777
  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);
5778
+ add_location(img, file$6, 114, 4, 3347);
5779
+ add_location(p0, file$6, 113, 2, 3339);
5780
+ add_location(p1, file$6, 116, 2, 3409);
5776
5781
  },
5777
5782
  m: function mount(target, anchor) {
5778
5783
  insert_dev(target, p0, anchor);
@@ -5820,8 +5825,8 @@
5820
5825
  button = element("button");
5821
5826
  t = text(t_value);
5822
5827
  attr_dev(button, "class", "MessagePanelButton");
5823
- add_location(button, file$6, 121, 4, 3517);
5824
- add_location(div, file$6, 120, 2, 3507);
5828
+ add_location(button, file$6, 121, 4, 3523);
5829
+ add_location(div, file$6, 120, 2, 3513);
5825
5830
  },
5826
5831
  m: function mount(target, anchor) {
5827
5832
  insert_dev(target, div, anchor);
@@ -6257,6 +6262,7 @@
6257
6262
  (function (ContentDirection) {
6258
6263
  ContentDirection[ContentDirection["clockwise"] = 1] = "clockwise";
6259
6264
  ContentDirection[ContentDirection["anticlockwise"] = -1] = "anticlockwise";
6265
+ ContentDirection[ContentDirection["outward"] = 0] = "outward";
6260
6266
  })(ContentDirection || (ContentDirection = {}));
6261
6267
 
6262
6268
  /* src/private.tabs.svelte generated by Svelte v3.59.2 */
@@ -7306,55 +7312,52 @@
7306
7312
  function create_each_block_1$1(ctx) {
7307
7313
  let tr;
7308
7314
  let td0;
7309
- let t0_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "";
7315
+ let raw_value = /*getPrize*/ ctx[5](/*outcome*/ ctx[20], /*outcomesItem*/ ctx[17].id) + "";
7310
7316
  let t0;
7311
- let t1;
7312
7317
  let td1;
7313
- let t2_value = /*outcome*/ ctx[20].draw.state + "";
7318
+ let t1_value = /*outcome*/ ctx[20].draw.state + "";
7319
+ let t1;
7314
7320
  let t2;
7315
- let t3;
7316
7321
  let td2;
7317
7322
 
7318
- let t4_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7323
+ let t3_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7319
7324
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
7320
7325
  }) + "";
7321
7326
 
7322
- let t4;
7327
+ let t3;
7323
7328
 
7324
7329
  const block = {
7325
7330
  c: function create() {
7326
7331
  tr = element("tr");
7327
7332
  td0 = element("td");
7328
- t0 = text(t0_value);
7329
- t1 = space();
7333
+ t0 = space();
7330
7334
  td1 = element("td");
7331
- t2 = text(t2_value);
7332
- t3 = space();
7335
+ t1 = text(t1_value);
7336
+ t2 = space();
7333
7337
  td2 = element("td");
7334
- t4 = text(t4_value);
7338
+ t3 = text(t3_value);
7335
7339
  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);
7340
+ add_location(td1, file$3, 93, 14, 3081);
7341
+ add_location(td2, file$3, 94, 14, 3125);
7338
7342
  add_location(tr, file$3, 91, 12, 2996);
7339
7343
  },
7340
7344
  m: function mount(target, anchor) {
7341
7345
  insert_dev(target, tr, anchor);
7342
7346
  append_dev(tr, td0);
7343
- append_dev(td0, t0);
7344
- append_dev(tr, t1);
7347
+ td0.innerHTML = raw_value;
7348
+ append_dev(tr, t0);
7345
7349
  append_dev(tr, td1);
7346
- append_dev(td1, t2);
7347
- append_dev(tr, t3);
7350
+ append_dev(td1, t1);
7351
+ append_dev(tr, t2);
7348
7352
  append_dev(tr, td2);
7349
- append_dev(td2, t4);
7353
+ append_dev(td2, t3);
7350
7354
  },
7351
7355
  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);
7356
+ 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
7357
 
7355
- if (dirty & /*outcomesList*/ 4 && t4_value !== (t4_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7358
+ if (dirty & /*outcomesList*/ 4 && t3_value !== (t3_value = new Date(/*outcome*/ ctx[20].draw.time).toLocaleString(undefined, {
7356
7359
  timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
7357
- }) + "")) set_data_dev(t4, t4_value);
7360
+ }) + "")) set_data_dev(t3, t3_value);
7358
7361
  },
7359
7362
  d: function destroy(detaching) {
7360
7363
  if (detaching) detach_dev(tr);
@@ -8144,7 +8147,7 @@
8144
8147
  else {
8145
8148
  baseRadius = (this.radius - sizeImage / 2) / Number(partitionDivisor) - 3 * this.ratio;
8146
8149
  }
8147
- return Object.assign(Object.assign({}, this.getPropsForPartitionInfo(index, this.getOffsetImage(sizeImage), baseRadius)), { width: sizeImage, height: sizeImage });
8150
+ return Object.assign(Object.assign({}, this.getPropsForPartitionInfo(index, this.getOffsetImage(sizeImage), baseRadius, ContentDirection.outward)), { width: sizeImage, height: sizeImage });
8148
8151
  }
8149
8152
  getSvgTextProps(index) {
8150
8153
  const sizeImage = this.getSizeImageByPartition(index);
@@ -8195,8 +8198,11 @@
8195
8198
  get direction() {
8196
8199
  return RotateDirection.clockwise;
8197
8200
  }
8198
- getAngleSelf(index) {
8199
- return 360 * index / this.length * this.direction + 90 * ContentDirection[this.contentdirection];
8201
+ getAngleSelf(index, contentDirection) {
8202
+ const baseAngle = 360 * index / this.length * this.direction;
8203
+ const fixerAngle = 90 * (contentDirection !== undefined ? contentDirection : ContentDirection[this.contentdirection]);
8204
+ const resultAngle = baseAngle + fixerAngle;
8205
+ return resultAngle;
8200
8206
  }
8201
8207
  getPartitionPositions(index, baseRadius, offset) {
8202
8208
  const angle = this.angleTransform(this.arrowmode) +
@@ -8209,12 +8215,12 @@
8209
8215
  point: pointResult,
8210
8216
  };
8211
8217
  }
8212
- getPropsForPartitionInfo(index, offset, baseRadius) {
8218
+ getPropsForPartitionInfo(index, offset, baseRadius, contentDirection) {
8213
8219
  const { point, transformOrigin } = this.getPartitionPositions(index, baseRadius, offset);
8214
8220
  const getTransformOriginString = (vector) => Object.keys(vector).map(axis => `${vector[axis]}px`).join(' ');
8215
8221
  return Object.assign(Object.assign({}, point), { style: [
8216
8222
  `font-size: ${13 * this.ratio}px`,
8217
- `transform: rotate(${this.getAngleSelf(index)}deg)`,
8223
+ `transform: rotate(${this.getAngleSelf(index, contentDirection)}deg)`,
8218
8224
  `transform-origin: ${getTransformOriginString(transformOrigin)}`,
8219
8225
  ].join(';') });
8220
8226
  }
@@ -8572,22 +8578,22 @@
8572
8578
  set_svg_attributes(g3, g_data_7);
8573
8579
  add_location(g3, file$2, 172, 4, 5157);
8574
8580
  attr_dev(g4, "class", "PartitionsCustomable1");
8575
- add_location(g4, file$2, 221, 4, 6563);
8581
+ add_location(g4, file$2, 221, 4, 6569);
8576
8582
  attr_dev(g5, "class", "PartitionsCustomable2");
8577
- add_location(g5, file$2, 230, 4, 6789);
8583
+ add_location(g5, file$2, 230, 4, 6795);
8578
8584
  set_svg_attributes(foreignObject1, foreignObject_data_2);
8579
- add_location(foreignObject1, file$2, 253, 4, 7359);
8585
+ add_location(foreignObject1, file$2, 253, 4, 7365);
8580
8586
  set_svg_attributes(foreignObject2, foreignObject_data_1);
8581
- add_location(foreignObject2, file$2, 254, 4, 7422);
8587
+ add_location(foreignObject2, file$2, 254, 4, 7428);
8582
8588
  attr_dev(foreignObject3, "x", foreignObject3_x_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
8583
8589
  attr_dev(foreignObject3, "y", foreignObject3_y_value = Number(/*size*/ ctx[0]) / 2 - 100 / 2);
8584
8590
  attr_dev(foreignObject3, "width", 100);
8585
8591
  attr_dev(foreignObject3, "height", 100);
8586
- add_location(foreignObject3, file$2, 261, 6, 7588);
8592
+ add_location(foreignObject3, file$2, 261, 6, 7594);
8587
8593
  attr_dev(g6, "class", "Center");
8588
8594
  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);
8595
+ add_location(g6, file$2, 256, 4, 7489);
8596
+ add_location(g7, file$2, 270, 4, 7761);
8591
8597
  attr_dev(svg_1, "width", /*size*/ ctx[0]);
8592
8598
  attr_dev(svg_1, "height", /*size*/ ctx[0]);
8593
8599
  set_style(svg_1, "opacity", /*messageShown*/ ctx[10] ? '.3' : '');
@@ -9027,10 +9033,9 @@
9027
9033
  let foreignObject;
9028
9034
  let div;
9029
9035
  let p;
9030
- let t0_value = /*option*/ ctx[40].name + "";
9031
- let t0;
9036
+ let raw_value = /*option*/ ctx[40].name + "";
9032
9037
  let p_class_value;
9033
- let t1;
9038
+ let t;
9034
9039
 
9035
9040
  let foreignObject_levels = [
9036
9041
  { class: "PartitionText" },
@@ -9048,8 +9053,7 @@
9048
9053
  foreignObject = svg_element("foreignObject");
9049
9054
  div = element("div");
9050
9055
  p = element("p");
9051
- t0 = text(t0_value);
9052
- t1 = space();
9056
+ t = space();
9053
9057
 
9054
9058
  attr_dev(p, "class", p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
9055
9059
  ? ''
@@ -9065,12 +9069,11 @@
9065
9069
  insert_dev(target, foreignObject, anchor);
9066
9070
  append_dev(foreignObject, div);
9067
9071
  append_dev(div, p);
9068
- append_dev(p, t0);
9069
- append_dev(div, t1);
9072
+ p.innerHTML = raw_value;
9073
+ append_dev(div, t);
9070
9074
  },
9071
9075
  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
-
9076
+ if (dirty[0] & /*options*/ 8 && raw_value !== (raw_value = /*option*/ ctx[40].name + "")) p.innerHTML = raw_value;
9074
9077
  if (dirty[0] & /*calc*/ 32 && p_class_value !== (p_class_value = `PartitionTextEntity${/*calc*/ ctx[5].contentdirection === 'clockwise'
9075
9078
  ? ''
9076
9079
  : ' Anticlockwise'}`)) {
@@ -9185,7 +9188,7 @@
9185
9188
  c: function create() {
9186
9189
  foreignObject = svg_element("foreignObject");
9187
9190
  set_svg_attributes(foreignObject, foreignObject_data);
9188
- add_location(foreignObject, file$2, 223, 6, 6641);
9191
+ add_location(foreignObject, file$2, 223, 6, 6647);
9189
9192
  },
9190
9193
  m: function mount(target, anchor) {
9191
9194
  insert_dev(target, foreignObject, anchor);
@@ -9236,7 +9239,7 @@
9236
9239
  c: function create() {
9237
9240
  foreignObject = svg_element("foreignObject");
9238
9241
  set_svg_attributes(foreignObject, foreignObject_data);
9239
- add_location(foreignObject, file$2, 232, 6, 6867);
9242
+ add_location(foreignObject, file$2, 232, 6, 6873);
9240
9243
  },
9241
9244
  m: function mount(target, anchor) {
9242
9245
  insert_dev(target, foreignObject, anchor);
@@ -9296,12 +9299,12 @@
9296
9299
  foreignObject = svg_element("foreignObject");
9297
9300
  path = svg_element("path");
9298
9301
  set_svg_attributes(foreignObject, foreignObject_data);
9299
- add_location(foreignObject, file$2, 243, 6, 7134);
9302
+ add_location(foreignObject, file$2, 243, 6, 7140);
9300
9303
  set_svg_attributes(path, path_data);
9301
9304
  toggle_class(path, "active", /*isShowPrizeArea*/ ctx[9]);
9302
- add_location(path, file$2, 245, 6, 7205);
9305
+ add_location(path, file$2, 245, 6, 7211);
9303
9306
  set_svg_attributes(g, g_data);
9304
- add_location(g, file$2, 241, 4, 7070);
9307
+ add_location(g, file$2, 241, 4, 7076);
9305
9308
  },
9306
9309
  m: function mount(target, anchor) {
9307
9310
  insert_dev(target, g, anchor);
@@ -9365,9 +9368,9 @@
9365
9368
  clipPath = svg_element("clipPath");
9366
9369
  path = svg_element("path");
9367
9370
  set_svg_attributes(path, path_data);
9368
- add_location(path, file$2, 273, 8, 7849);
9371
+ add_location(path, file$2, 273, 8, 7855);
9369
9372
  set_svg_attributes(clipPath, clipPath_data);
9370
- add_location(clipPath, file$2, 272, 6, 7804);
9373
+ add_location(clipPath, file$2, 272, 6, 7810);
9371
9374
  },
9372
9375
  m: function mount(target, anchor) {
9373
9376
  insert_dev(target, clipPath, anchor);