@taole/newgiftbar 0.1.3 → 0.1.6

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.
@@ -11005,8 +11005,8 @@ const gold_pending_svga = "https://asset.tuwan.com/goldMagic/gold_pending.svga";
11005
11005
  const newyear_pending_svga = "https://dynamics-share.tuwan.com/activity/ae513d371783fb182191e62d93305d77.svga";
11006
11006
  function get_each_context$4(ctx, list, i) {
11007
11007
  const child_ctx = ctx.slice();
11008
- child_ctx[29] = list[i];
11009
- child_ctx[31] = i;
11008
+ child_ctx[31] = list[i];
11009
+ child_ctx[33] = i;
11010
11010
  return child_ctx;
11011
11011
  }
11012
11012
  function create_if_block_8(ctx) {
@@ -11025,14 +11025,14 @@ function create_if_block_8(ctx) {
11025
11025
  span = element("span");
11026
11026
  t1 = text(
11027
11027
  /*glodNum*/
11028
- ctx[8]
11028
+ ctx[7]
11029
11029
  );
11030
11030
  t2 = text("个");
11031
- attr(img, "class", "imgIcon svelte-145lhv9");
11031
+ attr(img, "class", "imgIcon svelte-1ajc4sn");
11032
11032
  if (!src_url_equal(img.src, img_src_value = "https://asset.tuwan.com/goldMagic/goldBook.png")) attr(img, "src", img_src_value);
11033
11033
  attr(img, "alt", "");
11034
- attr(span, "class", "wordCtn svelte-145lhv9");
11035
- attr(div, "class", "subCtn svelte-145lhv9");
11034
+ attr(span, "class", "wordCtn svelte-1ajc4sn");
11035
+ attr(div, "class", "subCtn svelte-1ajc4sn");
11036
11036
  },
11037
11037
  m(target, anchor) {
11038
11038
  insert(target, div, anchor);
@@ -11044,10 +11044,10 @@ function create_if_block_8(ctx) {
11044
11044
  },
11045
11045
  p(ctx2, dirty) {
11046
11046
  if (dirty[0] & /*glodNum*/
11047
- 256) set_data(
11047
+ 128) set_data(
11048
11048
  t1,
11049
11049
  /*glodNum*/
11050
- ctx2[8]
11050
+ ctx2[7]
11051
11051
  );
11052
11052
  },
11053
11053
  d(detaching) {
@@ -11073,14 +11073,14 @@ function create_if_block_7(ctx) {
11073
11073
  span = element("span");
11074
11074
  t1 = text(
11075
11075
  /*hitTimes*/
11076
- ctx[9]
11076
+ ctx[8]
11077
11077
  );
11078
11078
  t2 = text("次");
11079
- attr(img, "class", "imgIcon svelte-145lhv9");
11079
+ attr(img, "class", "imgIcon svelte-1ajc4sn");
11080
11080
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
11081
11081
  attr(img, "alt", "");
11082
- attr(span, "class", "wordCtn svelte-145lhv9");
11083
- attr(div, "class", "subCtn svelte-145lhv9");
11082
+ attr(span, "class", "wordCtn svelte-1ajc4sn");
11083
+ attr(div, "class", "subCtn svelte-1ajc4sn");
11084
11084
  },
11085
11085
  m(target, anchor) {
11086
11086
  insert(target, div, anchor);
@@ -11092,10 +11092,10 @@ function create_if_block_7(ctx) {
11092
11092
  },
11093
11093
  p(ctx2, dirty) {
11094
11094
  if (dirty[0] & /*hitTimes*/
11095
- 512) set_data(
11095
+ 256) set_data(
11096
11096
  t1,
11097
11097
  /*hitTimes*/
11098
- ctx2[9]
11098
+ ctx2[8]
11099
11099
  );
11100
11100
  },
11101
11101
  d(detaching) {
@@ -11112,15 +11112,15 @@ function create_each_block$4(ctx) {
11112
11112
  props: {
11113
11113
  index: (
11114
11114
  /*index*/
11115
- ctx[31]
11115
+ ctx[33]
11116
11116
  ),
11117
11117
  num: (
11118
11118
  /*item*/
11119
- ctx[29].uids[0].num
11119
+ ctx[31].uids[0].num
11120
11120
  ),
11121
11121
  src: (
11122
11122
  /*item*/
11123
- ctx[29].pic
11123
+ ctx[31].pic
11124
11124
  ),
11125
11125
  isBigger: (
11126
11126
  /*result*/
@@ -11128,26 +11128,26 @@ function create_each_block$4(ctx) {
11128
11128
  ),
11129
11129
  costly: (
11130
11130
  /*item*/
11131
- ctx[29].gift_type == 1
11131
+ ctx[31].gift_type == 1
11132
11132
  ),
11133
11133
  title: (
11134
11134
  /*item*/
11135
- ctx[29].title
11135
+ ctx[31].title
11136
11136
  ),
11137
11137
  open_val: (
11138
11138
  /*item*/
11139
- ctx[29].open_val || ""
11139
+ ctx[31].open_val || ""
11140
11140
  ),
11141
11141
  hit: (
11142
11142
  /*mode*/
11143
- ctx[3] == RESULT_VIEW_TYPE$1.GOLD_TYPE ? (
11143
+ ctx[2] == RESULT_VIEW_TYPE$1.GOLD_TYPE ? (
11144
11144
  /*item*/
11145
- ctx[29].hit
11145
+ ctx[31].hit
11146
11146
  ) : 0
11147
11147
  ),
11148
11148
  giftMark: (
11149
11149
  /*item*/
11150
- ctx[29].gift_mark
11150
+ ctx[31].gift_mark
11151
11151
  )
11152
11152
  }
11153
11153
  });
@@ -11163,31 +11163,31 @@ function create_each_block$4(ctx) {
11163
11163
  const resultgiftitem_changes = {};
11164
11164
  if (dirty[0] & /*result*/
11165
11165
  1) resultgiftitem_changes.num = /*item*/
11166
- ctx2[29].uids[0].num;
11166
+ ctx2[31].uids[0].num;
11167
11167
  if (dirty[0] & /*result*/
11168
11168
  1) resultgiftitem_changes.src = /*item*/
11169
- ctx2[29].pic;
11169
+ ctx2[31].pic;
11170
11170
  if (dirty[0] & /*result*/
11171
11171
  1) resultgiftitem_changes.isBigger = /*result*/
11172
11172
  ctx2[0].length == 1;
11173
11173
  if (dirty[0] & /*result*/
11174
11174
  1) resultgiftitem_changes.costly = /*item*/
11175
- ctx2[29].gift_type == 1;
11175
+ ctx2[31].gift_type == 1;
11176
11176
  if (dirty[0] & /*result*/
11177
11177
  1) resultgiftitem_changes.title = /*item*/
11178
- ctx2[29].title;
11178
+ ctx2[31].title;
11179
11179
  if (dirty[0] & /*result*/
11180
11180
  1) resultgiftitem_changes.open_val = /*item*/
11181
- ctx2[29].open_val || "";
11181
+ ctx2[31].open_val || "";
11182
11182
  if (dirty[0] & /*mode, result*/
11183
- 9) resultgiftitem_changes.hit = /*mode*/
11184
- ctx2[3] == RESULT_VIEW_TYPE$1.GOLD_TYPE ? (
11183
+ 5) resultgiftitem_changes.hit = /*mode*/
11184
+ ctx2[2] == RESULT_VIEW_TYPE$1.GOLD_TYPE ? (
11185
11185
  /*item*/
11186
- ctx2[29].hit
11186
+ ctx2[31].hit
11187
11187
  ) : 0;
11188
11188
  if (dirty[0] & /*result*/
11189
11189
  1) resultgiftitem_changes.giftMark = /*item*/
11190
- ctx2[29].gift_mark;
11190
+ ctx2[31].gift_mark;
11191
11191
  resultgiftitem.$set(resultgiftitem_changes);
11192
11192
  },
11193
11193
  i(local) {
@@ -11205,6 +11205,7 @@ function create_each_block$4(ctx) {
11205
11205
  };
11206
11206
  }
11207
11207
  function create_else_block$9(ctx) {
11208
+ let div3;
11208
11209
  let t0;
11209
11210
  let div2;
11210
11211
  let div0;
@@ -11219,13 +11220,12 @@ function create_else_block$9(ctx) {
11219
11220
  let span2;
11220
11221
  let div1_class_value;
11221
11222
  let t7;
11222
- let if_block1_anchor;
11223
11223
  let mounted;
11224
11224
  let dispose;
11225
11225
  function select_block_type_1(ctx2, dirty) {
11226
11226
  if (
11227
11227
  /*radioIsSelected*/
11228
- ctx2[13]
11228
+ ctx2[12]
11229
11229
  ) return create_if_block_4$4;
11230
11230
  return create_else_block_1$1;
11231
11231
  }
@@ -11233,10 +11233,11 @@ function create_else_block$9(ctx) {
11233
11233
  let if_block0 = current_block_type(ctx);
11234
11234
  let if_block1 = (
11235
11235
  /*expiresText*/
11236
- ctx[14] && create_if_block_3$8(ctx)
11236
+ ctx[15] && create_if_block_3$8(ctx)
11237
11237
  );
11238
11238
  return {
11239
11239
  c() {
11240
+ div3 = element("div");
11240
11241
  if_block0.c();
11241
11242
  t0 = space();
11242
11243
  div2 = element("div");
@@ -11248,33 +11249,34 @@ function create_else_block$9(ctx) {
11248
11249
  t3 = space();
11249
11250
  div1 = element("div");
11250
11251
  span1 = element("span");
11251
- span1.innerHTML = `<img alt="" class="radioImg default svelte-145lhv9" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-145lhv9" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
11252
+ span1.innerHTML = `<img alt="" class="radioImg default svelte-1ajc4sn" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-1ajc4sn" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
11252
11253
  t5 = space();
11253
11254
  span2 = element("span");
11254
11255
  span2.textContent = "自定义开启数量";
11255
11256
  t7 = space();
11256
11257
  if (if_block1) if_block1.c();
11257
- if_block1_anchor = empty();
11258
- attr(i, "class", "svelte-145lhv9");
11259
- attr(span0, "class", "svelte-145lhv9");
11258
+ attr(i, "class", "svelte-1ajc4sn");
11259
+ attr(span0, "class", "svelte-1ajc4sn");
11260
11260
  attr(div0, "class", div0_class_value = null_to_empty(
11261
11261
  /*parentIgnore*/
11262
- ctx[4] ? "result_action_ignore ignore" : "result_action_ignore"
11263
- ) + " svelte-145lhv9");
11262
+ ctx[3] ? "result_action_ignore ignore" : "result_action_ignore"
11263
+ ) + " svelte-1ajc4sn");
11264
11264
  attr(div0, "role", "presentation");
11265
- attr(span1, "class", "spCtn svelte-145lhv9");
11266
- attr(span2, "class", "changeWordCtn svelte-145lhv9");
11265
+ attr(span1, "class", "spCtn svelte-1ajc4sn");
11266
+ attr(span2, "class", "changeWordCtn svelte-1ajc4sn");
11267
11267
  attr(div1, "role", "presentation");
11268
11268
  attr(div1, "class", div1_class_value = null_to_empty(
11269
11269
  /*radioIsSelected*/
11270
- ctx[13] ? "radioCtn active" : "radioCtn"
11271
- ) + " svelte-145lhv9");
11272
- attr(div2, "class", "footerBottomCtn svelte-145lhv9");
11270
+ ctx[12] ? "radioCtn active" : "radioCtn"
11271
+ ) + " svelte-1ajc4sn");
11272
+ attr(div2, "class", "footerBottomCtn svelte-1ajc4sn");
11273
+ attr(div3, "class", "open-actions svelte-1ajc4sn");
11273
11274
  },
11274
11275
  m(target, anchor) {
11275
- if_block0.m(target, anchor);
11276
- insert(target, t0, anchor);
11277
- insert(target, div2, anchor);
11276
+ insert(target, div3, anchor);
11277
+ if_block0.m(div3, null);
11278
+ append(div3, t0);
11279
+ append(div3, div2);
11278
11280
  append(div2, div0);
11279
11281
  append(div0, i);
11280
11282
  append(div0, t1);
@@ -11284,22 +11286,21 @@ function create_else_block$9(ctx) {
11284
11286
  append(div1, span1);
11285
11287
  append(div1, t5);
11286
11288
  append(div1, span2);
11287
- insert(target, t7, anchor);
11288
- if (if_block1) if_block1.m(target, anchor);
11289
- insert(target, if_block1_anchor, anchor);
11289
+ append(div3, t7);
11290
+ if (if_block1) if_block1.m(div3, null);
11290
11291
  if (!mounted) {
11291
11292
  dispose = [
11292
11293
  listen(
11293
11294
  div0,
11294
11295
  "click",
11295
11296
  /*onIgnoreHandle*/
11296
- ctx[19]
11297
+ ctx[20]
11297
11298
  ),
11298
11299
  listen(
11299
11300
  div1,
11300
11301
  "click",
11301
11302
  /*handleChangeRadio*/
11302
- ctx[15]
11303
+ ctx[16]
11303
11304
  )
11304
11305
  ];
11305
11306
  mounted = true;
@@ -11313,33 +11314,33 @@ function create_else_block$9(ctx) {
11313
11314
  if_block0 = current_block_type(ctx2);
11314
11315
  if (if_block0) {
11315
11316
  if_block0.c();
11316
- if_block0.m(t0.parentNode, t0);
11317
+ if_block0.m(div3, t0);
11317
11318
  }
11318
11319
  }
11319
11320
  if (dirty[0] & /*parentIgnore*/
11320
- 16 && div0_class_value !== (div0_class_value = null_to_empty(
11321
+ 8 && div0_class_value !== (div0_class_value = null_to_empty(
11321
11322
  /*parentIgnore*/
11322
- ctx2[4] ? "result_action_ignore ignore" : "result_action_ignore"
11323
- ) + " svelte-145lhv9")) {
11323
+ ctx2[3] ? "result_action_ignore ignore" : "result_action_ignore"
11324
+ ) + " svelte-1ajc4sn")) {
11324
11325
  attr(div0, "class", div0_class_value);
11325
11326
  }
11326
11327
  if (dirty[0] & /*radioIsSelected*/
11327
- 8192 && div1_class_value !== (div1_class_value = null_to_empty(
11328
+ 4096 && div1_class_value !== (div1_class_value = null_to_empty(
11328
11329
  /*radioIsSelected*/
11329
- ctx2[13] ? "radioCtn active" : "radioCtn"
11330
- ) + " svelte-145lhv9")) {
11330
+ ctx2[12] ? "radioCtn active" : "radioCtn"
11331
+ ) + " svelte-1ajc4sn")) {
11331
11332
  attr(div1, "class", div1_class_value);
11332
11333
  }
11333
11334
  if (
11334
11335
  /*expiresText*/
11335
- ctx2[14]
11336
+ ctx2[15]
11336
11337
  ) {
11337
11338
  if (if_block1) {
11338
11339
  if_block1.p(ctx2, dirty);
11339
11340
  } else {
11340
11341
  if_block1 = create_if_block_3$8(ctx2);
11341
11342
  if_block1.c();
11342
- if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
11343
+ if_block1.m(div3, null);
11343
11344
  }
11344
11345
  } else if (if_block1) {
11345
11346
  if_block1.d(1);
@@ -11348,13 +11349,10 @@ function create_else_block$9(ctx) {
11348
11349
  },
11349
11350
  d(detaching) {
11350
11351
  if (detaching) {
11351
- detach(t0);
11352
- detach(div2);
11353
- detach(t7);
11354
- detach(if_block1_anchor);
11352
+ detach(div3);
11355
11353
  }
11356
- if_block0.d(detaching);
11357
- if (if_block1) if_block1.d(detaching);
11354
+ if_block0.d();
11355
+ if (if_block1) if_block1.d();
11358
11356
  mounted = false;
11359
11357
  run_all(dispose);
11360
11358
  }
@@ -11380,10 +11378,10 @@ function create_if_block$d(ctx) {
11380
11378
  let dispose;
11381
11379
  let if_block0 = (
11382
11380
  /*showCrit*/
11383
- ctx[2] && create_if_block_2$b()
11381
+ ctx[13] && create_if_block_2$b()
11384
11382
  );
11385
11383
  let if_block1 = (
11386
- /*expiresText*/
11384
+ /*goldRemark*/
11387
11385
  ctx[14] && create_if_block_1$d(ctx)
11388
11386
  );
11389
11387
  return {
@@ -11409,20 +11407,20 @@ function create_if_block$d(ctx) {
11409
11407
  t7 = space();
11410
11408
  span = element("span");
11411
11409
  span.textContent = "开启免动画模式";
11412
- attr(div0, "class", "result_action svelte-145lhv9");
11410
+ attr(div0, "class", "result_action svelte-1ajc4sn");
11413
11411
  attr(div0, "role", "presentation");
11414
11412
  set_style(div0, "margin-right", "10px");
11415
11413
  attr(div1, "role", "presentation");
11416
- attr(div1, "class", "result_action svelte-145lhv9");
11417
- attr(div2, "class", "result_action_container svelte-145lhv9");
11418
- attr(i, "class", "svelte-145lhv9");
11419
- attr(span, "class", "svelte-145lhv9");
11414
+ attr(div1, "class", "result_action svelte-1ajc4sn");
11415
+ attr(div2, "class", "result_action_container svelte-1ajc4sn");
11416
+ attr(i, "class", "svelte-1ajc4sn");
11417
+ attr(span, "class", "svelte-1ajc4sn");
11420
11418
  attr(div3, "class", div3_class_value = null_to_empty(
11421
11419
  /*parentIgnore*/
11422
- ctx[4] ? "result_action_ignore ignore" : "result_action_ignore"
11423
- ) + " svelte-145lhv9");
11420
+ ctx[3] ? "result_action_ignore ignore" : "result_action_ignore"
11421
+ ) + " svelte-1ajc4sn");
11424
11422
  attr(div3, "role", "presentation");
11425
- attr(div4, "class", "result_info_container svelte-145lhv9");
11423
+ attr(div4, "class", "result_info_container svelte-1ajc4sn");
11426
11424
  set_style(div4, "justify-content", "space-evenly");
11427
11425
  },
11428
11426
  m(target, anchor) {
@@ -11448,19 +11446,19 @@ function create_if_block$d(ctx) {
11448
11446
  div0,
11449
11447
  "click",
11450
11448
  /*onCloseHandle*/
11451
- ctx[18]
11449
+ ctx[19]
11452
11450
  ),
11453
11451
  listen(
11454
11452
  div1,
11455
11453
  "click",
11456
11454
  /*onBuy*/
11457
- ctx[20]
11455
+ ctx[21]
11458
11456
  ),
11459
11457
  listen(
11460
11458
  div3,
11461
11459
  "click",
11462
11460
  /*onIgnoreHandle*/
11463
- ctx[19]
11461
+ ctx[20]
11464
11462
  )
11465
11463
  ];
11466
11464
  mounted = true;
@@ -11475,7 +11473,7 @@ function create_if_block$d(ctx) {
11475
11473
  );
11476
11474
  if (
11477
11475
  /*showCrit*/
11478
- ctx2[2]
11476
+ ctx2[13]
11479
11477
  ) {
11480
11478
  if (if_block0) {
11481
11479
  if_block0.p(ctx2, dirty);
@@ -11489,7 +11487,7 @@ function create_if_block$d(ctx) {
11489
11487
  if_block0 = null;
11490
11488
  }
11491
11489
  if (
11492
- /*expiresText*/
11490
+ /*goldRemark*/
11493
11491
  ctx2[14]
11494
11492
  ) {
11495
11493
  if (if_block1) {
@@ -11504,10 +11502,10 @@ function create_if_block$d(ctx) {
11504
11502
  if_block1 = null;
11505
11503
  }
11506
11504
  if (dirty[0] & /*parentIgnore*/
11507
- 16 && div3_class_value !== (div3_class_value = null_to_empty(
11505
+ 8 && div3_class_value !== (div3_class_value = null_to_empty(
11508
11506
  /*parentIgnore*/
11509
- ctx2[4] ? "result_action_ignore ignore" : "result_action_ignore"
11510
- ) + " svelte-145lhv9")) {
11507
+ ctx2[3] ? "result_action_ignore ignore" : "result_action_ignore"
11508
+ ) + " svelte-1ajc4sn")) {
11511
11509
  attr(div3, "class", div3_class_value);
11512
11510
  }
11513
11511
  },
@@ -11536,7 +11534,7 @@ function create_else_block_1$1(ctx) {
11536
11534
  let dispose;
11537
11535
  let if_block = (
11538
11536
  /*showCrit*/
11539
- ctx[2] && create_if_block_6$2()
11537
+ ctx[13] && create_if_block_6$2()
11540
11538
  );
11541
11539
  return {
11542
11540
  c() {
@@ -11548,16 +11546,15 @@ function create_else_block_1$1(ctx) {
11548
11546
  t2 = text("再开启");
11549
11547
  t3 = text(
11550
11548
  /*lastOpenTimes*/
11551
- ctx[10]
11549
+ ctx[9]
11552
11550
  );
11553
11551
  t4 = text("次\r\n ");
11554
11552
  if (if_block) if_block.c();
11555
- attr(div0, "class", "result_action svelte-145lhv9");
11553
+ attr(div0, "class", "normalBtn svelte-1ajc4sn");
11556
11554
  attr(div0, "role", "presentation");
11557
- set_style(div0, "margin-right", "10px");
11558
11555
  attr(div1, "role", "presentation");
11559
- attr(div1, "class", "result_action svelte-145lhv9");
11560
- attr(div2, "class", "result_action_container svelte-145lhv9");
11556
+ attr(div1, "class", "normalBtn againBtn svelte-1ajc4sn");
11557
+ attr(div2, "class", "buttonCtn svelte-1ajc4sn");
11561
11558
  },
11562
11559
  m(target, anchor) {
11563
11560
  insert(target, div2, anchor);
@@ -11574,13 +11571,13 @@ function create_else_block_1$1(ctx) {
11574
11571
  div0,
11575
11572
  "click",
11576
11573
  /*onCloseHandle*/
11577
- ctx[18]
11574
+ ctx[19]
11578
11575
  ),
11579
11576
  listen(
11580
11577
  div1,
11581
11578
  "click",
11582
11579
  /*click_handler*/
11583
- ctx[25]
11580
+ ctx[27]
11584
11581
  )
11585
11582
  ];
11586
11583
  mounted = true;
@@ -11588,14 +11585,14 @@ function create_else_block_1$1(ctx) {
11588
11585
  },
11589
11586
  p(ctx2, dirty) {
11590
11587
  if (dirty[0] & /*lastOpenTimes*/
11591
- 1024) set_data(
11588
+ 512) set_data(
11592
11589
  t3,
11593
11590
  /*lastOpenTimes*/
11594
- ctx2[10]
11591
+ ctx2[9]
11595
11592
  );
11596
11593
  if (
11597
11594
  /*showCrit*/
11598
- ctx2[2]
11595
+ ctx2[13]
11599
11596
  ) {
11600
11597
  if (if_block) {
11601
11598
  if_block.p(ctx2, dirty);
@@ -11632,8 +11629,8 @@ function create_if_block_4$4(ctx) {
11632
11629
  let dispose;
11633
11630
  let if_block = (
11634
11631
  /*times*/
11635
- ctx[12] && /*unit_price*/
11636
- ctx[11] && create_if_block_5$3(ctx)
11632
+ ctx[11] && /*unit_price*/
11633
+ ctx[10] && create_if_block_5$3(ctx)
11637
11634
  );
11638
11635
  return {
11639
11636
  c() {
@@ -11647,17 +11644,15 @@ function create_if_block_4$4(ctx) {
11647
11644
  t1 = space();
11648
11645
  div2 = element("div");
11649
11646
  div2.textContent = "确定";
11650
- attr(input, "class", "inp svelte-145lhv9");
11647
+ attr(input, "class", "inp svelte-1ajc4sn");
11651
11648
  attr(input, "placeholder", "输入数量");
11652
11649
  attr(input, "type", "number");
11653
- attr(div0, "class", "svelte-145lhv9");
11654
- attr(div1, "class", "inputNumWarpper svelte-145lhv9");
11650
+ attr(div0, "class", "svelte-1ajc4sn");
11651
+ attr(div1, "class", "inputNumWarpper svelte-1ajc4sn");
11655
11652
  attr(div2, "role", "presentation");
11656
- attr(div2, "class", "smallBtnCtn svelte-145lhv9");
11657
- attr(div3, "class", "inputNumCtn svelte-145lhv9");
11658
- attr(div4, "class", "buttonCtn svelte-145lhv9");
11659
- set_style(div4, "display", "flex");
11660
- set_style(div4, "justify-content", "center");
11653
+ attr(div2, "class", "smallBtnCtn svelte-1ajc4sn");
11654
+ attr(div3, "class", "inputNumCtn svelte-1ajc4sn");
11655
+ attr(div4, "class", "buttonCtn svelte-1ajc4sn");
11661
11656
  },
11662
11657
  m(target, anchor) {
11663
11658
  insert(target, div4, anchor);
@@ -11667,7 +11662,7 @@ function create_if_block_4$4(ctx) {
11667
11662
  set_input_value(
11668
11663
  input,
11669
11664
  /*times*/
11670
- ctx[12]
11665
+ ctx[11]
11671
11666
  );
11672
11667
  append(div1, t0);
11673
11668
  append(div1, div0);
@@ -11680,19 +11675,19 @@ function create_if_block_4$4(ctx) {
11680
11675
  input,
11681
11676
  "input",
11682
11677
  /*input_input_handler*/
11683
- ctx[23]
11678
+ ctx[25]
11684
11679
  ),
11685
11680
  listen(
11686
11681
  input,
11687
11682
  "input",
11688
11683
  /*input_handler*/
11689
- ctx[24]
11684
+ ctx[26]
11690
11685
  ),
11691
11686
  listen(
11692
11687
  div2,
11693
11688
  "click",
11694
11689
  /*handleOpenAnyTimes*/
11695
- ctx[17]
11690
+ ctx[18]
11696
11691
  )
11697
11692
  ];
11698
11693
  mounted = true;
@@ -11700,18 +11695,18 @@ function create_if_block_4$4(ctx) {
11700
11695
  },
11701
11696
  p(ctx2, dirty) {
11702
11697
  if (dirty[0] & /*times*/
11703
- 4096 && to_number(input.value) !== /*times*/
11704
- ctx2[12]) {
11698
+ 2048 && to_number(input.value) !== /*times*/
11699
+ ctx2[11]) {
11705
11700
  set_input_value(
11706
11701
  input,
11707
11702
  /*times*/
11708
- ctx2[12]
11703
+ ctx2[11]
11709
11704
  );
11710
11705
  }
11711
11706
  if (
11712
11707
  /*times*/
11713
- ctx2[12] && /*unit_price*/
11714
- ctx2[11]
11708
+ ctx2[11] && /*unit_price*/
11709
+ ctx2[10]
11715
11710
  ) {
11716
11711
  if (if_block) {
11717
11712
  if_block.p(ctx2, dirty);
@@ -11741,7 +11736,7 @@ function create_if_block_6$2(ctx) {
11741
11736
  return {
11742
11737
  c() {
11743
11738
  img = element("img");
11744
- attr(img, "class", "critIcon svelte-145lhv9");
11739
+ attr(img, "class", "critIcon svelte-1ajc4sn");
11745
11740
  if (!src_url_equal(img.src, img_src_value = CRIT_ICON$2)) attr(img, "src", img_src_value);
11746
11741
  attr(img, "alt", "");
11747
11742
  },
@@ -11760,8 +11755,8 @@ function create_if_block_5$3(ctx) {
11760
11755
  let span;
11761
11756
  let t0_value = (
11762
11757
  /*times*/
11763
- ctx[12] * /*unit_price*/
11764
- ctx[11] + ""
11758
+ ctx[11] * /*unit_price*/
11759
+ ctx[10] + ""
11765
11760
  );
11766
11761
  let t0;
11767
11762
  let t1;
@@ -11770,7 +11765,7 @@ function create_if_block_5$3(ctx) {
11770
11765
  span = element("span");
11771
11766
  t0 = text(t0_value);
11772
11767
  t1 = text("紫晶");
11773
- attr(span, "class", "svelte-145lhv9");
11768
+ attr(span, "class", "svelte-1ajc4sn");
11774
11769
  },
11775
11770
  m(target, anchor) {
11776
11771
  insert(target, span, anchor);
@@ -11779,9 +11774,9 @@ function create_if_block_5$3(ctx) {
11779
11774
  },
11780
11775
  p(ctx2, dirty) {
11781
11776
  if (dirty[0] & /*times, unit_price*/
11782
- 6144 && t0_value !== (t0_value = /*times*/
11783
- ctx2[12] * /*unit_price*/
11784
- ctx2[11] + "")) set_data(t0, t0_value);
11777
+ 3072 && t0_value !== (t0_value = /*times*/
11778
+ ctx2[11] * /*unit_price*/
11779
+ ctx2[10] + "")) set_data(t0, t0_value);
11785
11780
  },
11786
11781
  d(detaching) {
11787
11782
  if (detaching) {
@@ -11798,9 +11793,9 @@ function create_if_block_3$8(ctx) {
11798
11793
  div = element("div");
11799
11794
  t = text(
11800
11795
  /*expiresText*/
11801
- ctx[14]
11796
+ ctx[15]
11802
11797
  );
11803
- attr(div, "class", "expiresTips svelte-145lhv9");
11798
+ attr(div, "class", "expiresTips svelte-1ajc4sn");
11804
11799
  },
11805
11800
  m(target, anchor) {
11806
11801
  insert(target, div, anchor);
@@ -11808,10 +11803,10 @@ function create_if_block_3$8(ctx) {
11808
11803
  },
11809
11804
  p(ctx2, dirty) {
11810
11805
  if (dirty[0] & /*expiresText*/
11811
- 16384) set_data(
11806
+ 32768) set_data(
11812
11807
  t,
11813
11808
  /*expiresText*/
11814
- ctx2[14]
11809
+ ctx2[15]
11815
11810
  );
11816
11811
  },
11817
11812
  d(detaching) {
@@ -11827,7 +11822,7 @@ function create_if_block_2$b(ctx) {
11827
11822
  return {
11828
11823
  c() {
11829
11824
  img = element("img");
11830
- attr(img, "class", "critIcon svelte-145lhv9");
11825
+ attr(img, "class", "critIcon svelte-1ajc4sn");
11831
11826
  if (!src_url_equal(img.src, img_src_value = CRIT_ICON$2)) attr(img, "src", img_src_value);
11832
11827
  attr(img, "alt", "");
11833
11828
  },
@@ -11851,10 +11846,10 @@ function create_if_block_1$d(ctx) {
11851
11846
  div = element("div");
11852
11847
  span = element("span");
11853
11848
  t = text(
11854
- /*expiresText*/
11849
+ /*goldRemark*/
11855
11850
  ctx[14]
11856
11851
  );
11857
- attr(span, "class", "svelte-145lhv9");
11852
+ attr(span, "class", "svelte-1ajc4sn");
11858
11853
  attr(div, "class", "result_info_content");
11859
11854
  },
11860
11855
  m(target, anchor) {
@@ -11863,10 +11858,10 @@ function create_if_block_1$d(ctx) {
11863
11858
  append(span, t);
11864
11859
  },
11865
11860
  p(ctx2, dirty) {
11866
- if (dirty[0] & /*expiresText*/
11861
+ if (dirty[0] & /*goldRemark*/
11867
11862
  16384) set_data(
11868
11863
  t,
11869
- /*expiresText*/
11864
+ /*goldRemark*/
11870
11865
  ctx2[14]
11871
11866
  );
11872
11867
  },
@@ -11899,7 +11894,7 @@ function create_fragment$d(ctx) {
11899
11894
  let t7;
11900
11895
  let show_if = Number(
11901
11896
  /*hitTimes*/
11902
- ctx[9]
11897
+ ctx[8]
11903
11898
  ) > 0;
11904
11899
  let t8;
11905
11900
  let div5;
@@ -11912,7 +11907,7 @@ function create_fragment$d(ctx) {
11912
11907
  let current;
11913
11908
  let if_block0 = (
11914
11909
  /*mode*/
11915
- ctx[3] == RESULT_VIEW_TYPE$1.GOLD_TYPE && create_if_block_8(ctx)
11910
+ ctx[2] == RESULT_VIEW_TYPE$1.GOLD_TYPE && create_if_block_8(ctx)
11916
11911
  );
11917
11912
  let if_block1 = show_if && create_if_block_7(ctx);
11918
11913
  let each_value = ensure_array_like(
@@ -11929,7 +11924,7 @@ function create_fragment$d(ctx) {
11929
11924
  function select_block_type(ctx2, dirty) {
11930
11925
  if (
11931
11926
  /*mode*/
11932
- ctx2[3] == RESULT_VIEW_TYPE$1.GOLD_TYPE
11927
+ ctx2[2] == RESULT_VIEW_TYPE$1.GOLD_TYPE
11933
11928
  ) return create_if_block$d;
11934
11929
  return create_else_block$9;
11935
11930
  }
@@ -11939,7 +11934,7 @@ function create_fragment$d(ctx) {
11939
11934
  c() {
11940
11935
  div7 = element("div");
11941
11936
  div0 = element("div");
11942
- div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-145lhv9"/>`;
11937
+ div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-1ajc4sn"/>`;
11943
11938
  t0 = space();
11944
11939
  div3 = element("div");
11945
11940
  div1 = element("div");
@@ -11948,7 +11943,7 @@ function create_fragment$d(ctx) {
11948
11943
  span0 = element("span");
11949
11944
  t2 = text(
11950
11945
  /*diamondStr*/
11951
- ctx[6]
11946
+ ctx[5]
11952
11947
  );
11953
11948
  t3 = space();
11954
11949
  div2 = element("div");
@@ -11957,7 +11952,7 @@ function create_fragment$d(ctx) {
11957
11952
  span1 = element("span");
11958
11953
  t5 = text(
11959
11954
  /*numberStr*/
11960
- ctx[7]
11955
+ ctx[6]
11961
11956
  );
11962
11957
  t6 = space();
11963
11958
  if (if_block0) if_block0.c();
@@ -11973,25 +11968,25 @@ function create_fragment$d(ctx) {
11973
11968
  if_block2.c();
11974
11969
  t10 = space();
11975
11970
  div6 = element("div");
11976
- attr(div0, "class", "openGiftTitle svelte-145lhv9");
11977
- attr(img1, "class", "imgIcon svelte-145lhv9");
11971
+ attr(div0, "class", "openGiftTitle svelte-1ajc4sn");
11972
+ attr(img1, "class", "imgIcon svelte-1ajc4sn");
11978
11973
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/diamondTabIcon.png")) attr(img1, "src", img1_src_value);
11979
11974
  attr(img1, "alt", "");
11980
- attr(span0, "class", "wordCtn svelte-145lhv9");
11981
- attr(div1, "class", "subCtn svelte-145lhv9");
11982
- attr(img2, "class", "imgIcon svelte-145lhv9");
11975
+ attr(span0, "class", "wordCtn svelte-1ajc4sn");
11976
+ attr(div1, "class", "subCtn svelte-1ajc4sn");
11977
+ attr(img2, "class", "imgIcon svelte-1ajc4sn");
11983
11978
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/goldMagic/magicTabIcon.png")) attr(img2, "src", img2_src_value);
11984
11979
  attr(img2, "alt", "");
11985
- attr(span1, "class", "wordCtn svelte-145lhv9");
11986
- attr(div2, "class", "subCtn svelte-145lhv9");
11987
- attr(div3, "class", "leftTopCtn svelte-145lhv9");
11988
- attr(div4, "class", "result_content svelte-145lhv9");
11980
+ attr(span1, "class", "wordCtn svelte-1ajc4sn");
11981
+ attr(div2, "class", "subCtn svelte-1ajc4sn");
11982
+ attr(div3, "class", "leftTopCtn svelte-1ajc4sn");
11983
+ attr(div4, "class", "result_content svelte-1ajc4sn");
11989
11984
  attr(div5, "class", div5_class_value = /*result*/
11990
11985
  (ctx[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
11991
- (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-145lhv9");
11992
- attr(div6, "class", "result_vap_anim svelte-145lhv9");
11986
+ (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-1ajc4sn");
11987
+ attr(div6, "class", "result_vap_anim svelte-1ajc4sn");
11993
11988
  attr(div7, "class", div7_class_value = "result_container " + /*mode*/
11994
- (ctx[3] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-145lhv9");
11989
+ (ctx[2] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1ajc4sn");
11995
11990
  },
11996
11991
  m(target, anchor) {
11997
11992
  insert(target, div7, anchor);
@@ -12025,25 +12020,25 @@ function create_fragment$d(ctx) {
12025
12020
  if_block2.m(div7, null);
12026
12021
  append(div7, t10);
12027
12022
  append(div7, div6);
12028
- ctx[26](div6);
12023
+ ctx[28](div6);
12029
12024
  current = true;
12030
12025
  },
12031
12026
  p(ctx2, dirty) {
12032
12027
  if (!current || dirty[0] & /*diamondStr*/
12033
- 64) set_data(
12028
+ 32) set_data(
12034
12029
  t2,
12035
12030
  /*diamondStr*/
12036
- ctx2[6]
12031
+ ctx2[5]
12037
12032
  );
12038
12033
  if (!current || dirty[0] & /*numberStr*/
12039
- 128) set_data(
12034
+ 64) set_data(
12040
12035
  t5,
12041
12036
  /*numberStr*/
12042
- ctx2[7]
12037
+ ctx2[6]
12043
12038
  );
12044
12039
  if (
12045
12040
  /*mode*/
12046
- ctx2[3] == RESULT_VIEW_TYPE$1.GOLD_TYPE
12041
+ ctx2[2] == RESULT_VIEW_TYPE$1.GOLD_TYPE
12047
12042
  ) {
12048
12043
  if (if_block0) {
12049
12044
  if_block0.p(ctx2, dirty);
@@ -12057,9 +12052,9 @@ function create_fragment$d(ctx) {
12057
12052
  if_block0 = null;
12058
12053
  }
12059
12054
  if (dirty[0] & /*hitTimes*/
12060
- 512) show_if = Number(
12055
+ 256) show_if = Number(
12061
12056
  /*hitTimes*/
12062
- ctx2[9]
12057
+ ctx2[8]
12063
12058
  ) > 0;
12064
12059
  if (show_if) {
12065
12060
  if (if_block1) {
@@ -12074,7 +12069,7 @@ function create_fragment$d(ctx) {
12074
12069
  if_block1 = null;
12075
12070
  }
12076
12071
  if (dirty[0] & /*result, mode*/
12077
- 9) {
12072
+ 5) {
12078
12073
  each_value = ensure_array_like(
12079
12074
  /*result*/
12080
12075
  ctx2[0]
@@ -12101,7 +12096,7 @@ function create_fragment$d(ctx) {
12101
12096
  if (!current || dirty[0] & /*result*/
12102
12097
  1 && div5_class_value !== (div5_class_value = /*result*/
12103
12098
  (ctx2[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
12104
- (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-145lhv9")) {
12099
+ (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-1ajc4sn")) {
12105
12100
  attr(div5, "class", div5_class_value);
12106
12101
  }
12107
12102
  if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block2) {
@@ -12115,8 +12110,8 @@ function create_fragment$d(ctx) {
12115
12110
  }
12116
12111
  }
12117
12112
  if (!current || dirty[0] & /*mode*/
12118
- 8 && div7_class_value !== (div7_class_value = "result_container " + /*mode*/
12119
- (ctx2[3] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-145lhv9")) {
12113
+ 4 && div7_class_value !== (div7_class_value = "result_container " + /*mode*/
12114
+ (ctx2[2] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1ajc4sn")) {
12120
12115
  attr(div7, "class", div7_class_value);
12121
12116
  }
12122
12117
  },
@@ -12142,39 +12137,41 @@ function create_fragment$d(ctx) {
12142
12137
  if (if_block1) if_block1.d();
12143
12138
  destroy_each(each_blocks, detaching);
12144
12139
  if_block2.d();
12145
- ctx[26](null);
12140
+ ctx[28](null);
12146
12141
  }
12147
12142
  };
12148
12143
  }
12149
12144
  const CRIT_ICON$2 = "https://dynamics-share.tuwan.com/activity/320d878f51a28133b37d75880110ad3c.png?x-oss-process=image/format,webp/ignore-error,1";
12150
12145
  function instance$d($$self, $$props, $$invalidate) {
12151
12146
  let expiresText;
12147
+ let goldRemark;
12148
+ let showCrit;
12152
12149
  let { num = 10 } = $$props;
12153
12150
  let { result = [] } = $$props;
12154
12151
  let { onClose } = $$props;
12155
12152
  let { mode = RESULT_VIEW_TYPE$1.CRYSTAL_TYPE } = $$props;
12156
12153
  let { parentIgnore = false } = $$props;
12157
12154
  let { handelChangeIgnore } = $$props;
12158
- let { showCrit = false } = $$props;
12159
12155
  let animEl;
12160
12156
  let diamondStr = "0";
12161
12157
  let numberStr = "0";
12162
12158
  let glodNum = "0";
12163
12159
  let hitTimes = 0;
12160
+ let remark = "";
12164
12161
  let loading = false;
12165
12162
  let lastOpenTimes = num;
12166
12163
  let unit_price = 0;
12167
12164
  let times;
12168
12165
  let radioIsSelected = false;
12169
12166
  let handleChangeRadio = function() {
12170
- $$invalidate(13, radioIsSelected = !radioIsSelected);
12167
+ $$invalidate(12, radioIsSelected = !radioIsSelected);
12171
12168
  if (!radioIsSelected) {
12172
- $$invalidate(12, times = void 0);
12169
+ $$invalidate(11, times = void 0);
12173
12170
  }
12174
12171
  };
12175
12172
  function handleOpenGift(count = 1) {
12176
12173
  if (loading) return;
12177
- $$invalidate(10, lastOpenTimes = count);
12174
+ $$invalidate(9, lastOpenTimes = count);
12178
12175
  $$invalidate(1, num = count);
12179
12176
  onBuy();
12180
12177
  }
@@ -12237,8 +12234,9 @@ function instance$d($$self, $$props, $$invalidate) {
12237
12234
  },
12238
12235
  500
12239
12236
  );
12240
- $$invalidate(2, showCrit = Number(res["total-process"]) == 1);
12241
12237
  res.data._expires = res.expires || [];
12238
+ res.data._total = res.total;
12239
+ res.data._process = res.process;
12242
12240
  $$invalidate(0, result = []);
12243
12241
  if (parentIgnore) {
12244
12242
  setTimeout(
@@ -12255,13 +12253,17 @@ function instance$d($$self, $$props, $$invalidate) {
12255
12253
  url: vapPath + "video.mp4?v2",
12256
12254
  ele: animEl,
12257
12255
  config: vapPath + "vapc.json?v2"
12258
- }).then(() => {
12259
- $$invalidate(0, result = res.data);
12260
- getTreasureInfo();
12261
12256
  }).finally(() => {
12262
12257
  player.destory();
12263
- loading = false;
12264
12258
  });
12259
+ setTimeout(
12260
+ () => {
12261
+ $$invalidate(0, result = res.data);
12262
+ if (animEl) $$invalidate(4, animEl.innerHTML = "", animEl);
12263
+ getTreasureInfo();
12264
+ },
12265
+ 1100
12266
+ );
12265
12267
  }
12266
12268
  } else if (res.error == -2) {
12267
12269
  showTips("您的钻石和点点币不足,请充值");
@@ -12297,11 +12299,12 @@ function instance$d($$self, $$props, $$invalidate) {
12297
12299
  requestApi(OpenGiftUrls.getTreasureInfo(mode)).then((res) => {
12298
12300
  loading = false;
12299
12301
  if (res.error == 0) {
12300
- $$invalidate(6, diamondStr = res.data.diamond_str);
12301
- $$invalidate(7, numberStr = res.data.number_str);
12302
- $$invalidate(8, glodNum = res.data.glod_num);
12303
- $$invalidate(9, hitTimes = res.data.hit_times);
12304
- $$invalidate(11, unit_price = res.data.unit_price || 0);
12302
+ $$invalidate(5, diamondStr = res.data.diamond_str);
12303
+ $$invalidate(6, numberStr = res.data.number_str);
12304
+ $$invalidate(7, glodNum = res.data.glod_num);
12305
+ $$invalidate(8, hitTimes = res.data.hit_times);
12306
+ $$invalidate(24, remark = res.data.remark || "");
12307
+ $$invalidate(10, unit_price = res.data.unit_price || 0);
12305
12308
  refreshHaveGift();
12306
12309
  } else {
12307
12310
  showTips(res.error_msg);
@@ -12313,37 +12316,43 @@ function instance$d($$self, $$props, $$invalidate) {
12313
12316
  });
12314
12317
  function input_input_handler() {
12315
12318
  times = to_number(this.value);
12316
- $$invalidate(12, times);
12319
+ $$invalidate(11, times);
12317
12320
  }
12318
12321
  const input_handler = (event) => {
12319
- $$invalidate(12, times = event.target.value.slice(0, 4));
12322
+ $$invalidate(11, times = event.target.value.slice(0, 4));
12320
12323
  };
12321
12324
  const click_handler = () => handleOpenGift(lastOpenTimes);
12322
12325
  function div6_binding($$value) {
12323
12326
  binding_callbacks[$$value ? "unshift" : "push"](() => {
12324
12327
  animEl = $$value;
12325
- $$invalidate(5, animEl);
12328
+ $$invalidate(4, animEl);
12326
12329
  });
12327
12330
  }
12328
12331
  $$self.$$set = ($$props2) => {
12329
12332
  if ("num" in $$props2) $$invalidate(1, num = $$props2.num);
12330
12333
  if ("result" in $$props2) $$invalidate(0, result = $$props2.result);
12331
- if ("onClose" in $$props2) $$invalidate(21, onClose = $$props2.onClose);
12332
- if ("mode" in $$props2) $$invalidate(3, mode = $$props2.mode);
12333
- if ("parentIgnore" in $$props2) $$invalidate(4, parentIgnore = $$props2.parentIgnore);
12334
- if ("handelChangeIgnore" in $$props2) $$invalidate(22, handelChangeIgnore = $$props2.handelChangeIgnore);
12335
- if ("showCrit" in $$props2) $$invalidate(2, showCrit = $$props2.showCrit);
12334
+ if ("onClose" in $$props2) $$invalidate(22, onClose = $$props2.onClose);
12335
+ if ("mode" in $$props2) $$invalidate(2, mode = $$props2.mode);
12336
+ if ("parentIgnore" in $$props2) $$invalidate(3, parentIgnore = $$props2.parentIgnore);
12337
+ if ("handelChangeIgnore" in $$props2) $$invalidate(23, handelChangeIgnore = $$props2.handelChangeIgnore);
12336
12338
  };
12337
12339
  $$self.$$.update = () => {
12338
12340
  if ($$self.$$.dirty[0] & /*result*/
12339
12341
  1) {
12340
- $$invalidate(14, expiresText = (result._expires || []).join(""));
12342
+ $$invalidate(15, expiresText = (result._expires || []).join(""));
12343
+ }
12344
+ if ($$self.$$.dirty[0] & /*remark*/
12345
+ 16777216) {
12346
+ $$invalidate(14, goldRemark = remark || "");
12347
+ }
12348
+ if ($$self.$$.dirty[0] & /*result*/
12349
+ 1) {
12350
+ $$invalidate(13, showCrit = Number(result._total) - Number(result._process) === 1);
12341
12351
  }
12342
12352
  };
12343
12353
  return [
12344
12354
  result,
12345
12355
  num,
12346
- showCrit,
12347
12356
  mode,
12348
12357
  parentIgnore,
12349
12358
  animEl,
@@ -12355,6 +12364,8 @@ function instance$d($$self, $$props, $$invalidate) {
12355
12364
  unit_price,
12356
12365
  times,
12357
12366
  radioIsSelected,
12367
+ showCrit,
12368
+ goldRemark,
12358
12369
  expiresText,
12359
12370
  handleChangeRadio,
12360
12371
  handleOpenGift,
@@ -12364,6 +12375,7 @@ function instance$d($$self, $$props, $$invalidate) {
12364
12375
  onBuy,
12365
12376
  onClose,
12366
12377
  handelChangeIgnore,
12378
+ remark,
12367
12379
  input_input_handler,
12368
12380
  input_handler,
12369
12381
  click_handler,
@@ -12382,11 +12394,10 @@ let Result$1 = class Result2 extends SvelteComponent {
12382
12394
  {
12383
12395
  num: 1,
12384
12396
  result: 0,
12385
- onClose: 21,
12386
- mode: 3,
12387
- parentIgnore: 4,
12388
- handelChangeIgnore: 22,
12389
- showCrit: 2
12397
+ onClose: 22,
12398
+ mode: 2,
12399
+ parentIgnore: 3,
12400
+ handelChangeIgnore: 23
12390
12401
  },
12391
12402
  null,
12392
12403
  [-1, -1]
@@ -12415,14 +12426,14 @@ function create_if_block_4$3(ctx) {
12415
12426
  span = element("span");
12416
12427
  t1 = text(
12417
12428
  /*hitTimes*/
12418
- ctx[6]
12429
+ ctx[5]
12419
12430
  );
12420
12431
  t2 = text("次");
12421
- attr(img, "class", "imgIcon svelte-8vjuea");
12432
+ attr(img, "class", "imgIcon svelte-17uidtq");
12422
12433
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
12423
12434
  attr(img, "alt", "");
12424
- attr(span, "class", "wordCtn svelte-8vjuea");
12425
- attr(div, "class", "subCtn svelte-8vjuea");
12435
+ attr(span, "class", "wordCtn svelte-17uidtq");
12436
+ attr(div, "class", "subCtn svelte-17uidtq");
12426
12437
  },
12427
12438
  m(target, anchor) {
12428
12439
  insert(target, div, anchor);
@@ -12434,10 +12445,10 @@ function create_if_block_4$3(ctx) {
12434
12445
  },
12435
12446
  p(ctx2, dirty) {
12436
12447
  if (dirty[0] & /*hitTimes*/
12437
- 64) set_data(
12448
+ 32) set_data(
12438
12449
  t1,
12439
12450
  /*hitTimes*/
12440
- ctx2[6]
12451
+ ctx2[5]
12441
12452
  );
12442
12453
  },
12443
12454
  d(detaching) {
@@ -12546,7 +12557,7 @@ function create_else_block$8(ctx) {
12546
12557
  let dispose;
12547
12558
  let if_block = (
12548
12559
  /*showCrit*/
12549
- ctx[1] && create_if_block_3$7()
12560
+ ctx[10] && create_if_block_3$7()
12550
12561
  );
12551
12562
  return {
12552
12563
  c() {
@@ -12558,16 +12569,15 @@ function create_else_block$8(ctx) {
12558
12569
  t2 = text("再开启");
12559
12570
  t3 = text(
12560
12571
  /*lastOpenTimes*/
12561
- ctx[7]
12572
+ ctx[6]
12562
12573
  );
12563
12574
  t4 = text("次\r\n ");
12564
12575
  if (if_block) if_block.c();
12565
- attr(div0, "class", "result_action svelte-8vjuea");
12576
+ attr(div0, "class", "normalBtn svelte-17uidtq");
12566
12577
  attr(div0, "role", "presentation");
12567
- set_style(div0, "margin-right", "10px");
12568
12578
  attr(div1, "role", "presentation");
12569
- attr(div1, "class", "result_action svelte-8vjuea");
12570
- attr(div2, "class", "result_action_container svelte-8vjuea");
12579
+ attr(div1, "class", "normalBtn againBtn svelte-17uidtq");
12580
+ attr(div2, "class", "buttonCtn svelte-17uidtq");
12571
12581
  },
12572
12582
  m(target, anchor) {
12573
12583
  insert(target, div2, anchor);
@@ -12598,14 +12608,14 @@ function create_else_block$8(ctx) {
12598
12608
  },
12599
12609
  p(ctx2, dirty) {
12600
12610
  if (dirty[0] & /*lastOpenTimes*/
12601
- 128) set_data(
12611
+ 64) set_data(
12602
12612
  t3,
12603
12613
  /*lastOpenTimes*/
12604
- ctx2[7]
12614
+ ctx2[6]
12605
12615
  );
12606
12616
  if (
12607
12617
  /*showCrit*/
12608
- ctx2[1]
12618
+ ctx2[10]
12609
12619
  ) {
12610
12620
  if (if_block) {
12611
12621
  if_block.p(ctx2, dirty);
@@ -12642,8 +12652,8 @@ function create_if_block_1$c(ctx) {
12642
12652
  let dispose;
12643
12653
  let if_block = (
12644
12654
  /*times*/
12645
- ctx[9] && /*unit_price*/
12646
- ctx[8] && create_if_block_2$a(ctx)
12655
+ ctx[8] && /*unit_price*/
12656
+ ctx[7] && create_if_block_2$a(ctx)
12647
12657
  );
12648
12658
  return {
12649
12659
  c() {
@@ -12657,17 +12667,15 @@ function create_if_block_1$c(ctx) {
12657
12667
  t1 = space();
12658
12668
  div2 = element("div");
12659
12669
  div2.textContent = "确定";
12660
- attr(input, "class", "inp svelte-8vjuea");
12670
+ attr(input, "class", "inp svelte-17uidtq");
12661
12671
  attr(input, "placeholder", "输入数量");
12662
12672
  attr(input, "type", "number");
12663
- attr(div0, "class", "svelte-8vjuea");
12664
- attr(div1, "class", "inputNumWarpper svelte-8vjuea");
12673
+ attr(div0, "class", "svelte-17uidtq");
12674
+ attr(div1, "class", "inputNumWarpper svelte-17uidtq");
12665
12675
  attr(div2, "role", "presentation");
12666
- attr(div2, "class", "smallBtnCtn svelte-8vjuea");
12667
- attr(div3, "class", "inputNumCtn svelte-8vjuea");
12668
- attr(div4, "class", "buttonCtn svelte-8vjuea");
12669
- set_style(div4, "display", "flex");
12670
- set_style(div4, "justify-content", "center");
12676
+ attr(div2, "class", "smallBtnCtn svelte-17uidtq");
12677
+ attr(div3, "class", "inputNumCtn svelte-17uidtq");
12678
+ attr(div4, "class", "buttonCtn svelte-17uidtq");
12671
12679
  },
12672
12680
  m(target, anchor) {
12673
12681
  insert(target, div4, anchor);
@@ -12677,7 +12685,7 @@ function create_if_block_1$c(ctx) {
12677
12685
  set_input_value(
12678
12686
  input,
12679
12687
  /*times*/
12680
- ctx[9]
12688
+ ctx[8]
12681
12689
  );
12682
12690
  append(div1, t0);
12683
12691
  append(div1, div0);
@@ -12710,18 +12718,18 @@ function create_if_block_1$c(ctx) {
12710
12718
  },
12711
12719
  p(ctx2, dirty) {
12712
12720
  if (dirty[0] & /*times*/
12713
- 512 && to_number(input.value) !== /*times*/
12714
- ctx2[9]) {
12721
+ 256 && to_number(input.value) !== /*times*/
12722
+ ctx2[8]) {
12715
12723
  set_input_value(
12716
12724
  input,
12717
12725
  /*times*/
12718
- ctx2[9]
12726
+ ctx2[8]
12719
12727
  );
12720
12728
  }
12721
12729
  if (
12722
12730
  /*times*/
12723
- ctx2[9] && /*unit_price*/
12724
- ctx2[8]
12731
+ ctx2[8] && /*unit_price*/
12732
+ ctx2[7]
12725
12733
  ) {
12726
12734
  if (if_block) {
12727
12735
  if_block.p(ctx2, dirty);
@@ -12751,7 +12759,7 @@ function create_if_block_3$7(ctx) {
12751
12759
  return {
12752
12760
  c() {
12753
12761
  img = element("img");
12754
- attr(img, "class", "critIcon svelte-8vjuea");
12762
+ attr(img, "class", "critIcon svelte-17uidtq");
12755
12763
  if (!src_url_equal(img.src, img_src_value = CRIT_ICON$1)) attr(img, "src", img_src_value);
12756
12764
  attr(img, "alt", "");
12757
12765
  },
@@ -12770,8 +12778,8 @@ function create_if_block_2$a(ctx) {
12770
12778
  let span;
12771
12779
  let t0_value = (
12772
12780
  /*times*/
12773
- ctx[9] * /*unit_price*/
12774
- ctx[8] + ""
12781
+ ctx[8] * /*unit_price*/
12782
+ ctx[7] + ""
12775
12783
  );
12776
12784
  let t0;
12777
12785
  let t1;
@@ -12780,7 +12788,7 @@ function create_if_block_2$a(ctx) {
12780
12788
  span = element("span");
12781
12789
  t0 = text(t0_value);
12782
12790
  t1 = text("紫晶");
12783
- attr(span, "class", "svelte-8vjuea");
12791
+ attr(span, "class", "svelte-17uidtq");
12784
12792
  },
12785
12793
  m(target, anchor) {
12786
12794
  insert(target, span, anchor);
@@ -12789,9 +12797,9 @@ function create_if_block_2$a(ctx) {
12789
12797
  },
12790
12798
  p(ctx2, dirty) {
12791
12799
  if (dirty[0] & /*times, unit_price*/
12792
- 768 && t0_value !== (t0_value = /*times*/
12793
- ctx2[9] * /*unit_price*/
12794
- ctx2[8] + "")) set_data(t0, t0_value);
12800
+ 384 && t0_value !== (t0_value = /*times*/
12801
+ ctx2[8] * /*unit_price*/
12802
+ ctx2[7] + "")) set_data(t0, t0_value);
12795
12803
  },
12796
12804
  d(detaching) {
12797
12805
  if (detaching) {
@@ -12810,7 +12818,7 @@ function create_if_block$c(ctx) {
12810
12818
  /*expiresText*/
12811
12819
  ctx[11]
12812
12820
  );
12813
- attr(div, "class", "expiresTips svelte-8vjuea");
12821
+ attr(div, "class", "expiresTips svelte-17uidtq");
12814
12822
  },
12815
12823
  m(target, anchor) {
12816
12824
  insert(target, div, anchor);
@@ -12832,7 +12840,7 @@ function create_if_block$c(ctx) {
12832
12840
  };
12833
12841
  }
12834
12842
  function create_fragment$c(ctx) {
12835
- let div10;
12843
+ let div11;
12836
12844
  let div0;
12837
12845
  let t0;
12838
12846
  let div3;
@@ -12852,13 +12860,14 @@ function create_fragment$c(ctx) {
12852
12860
  let t6;
12853
12861
  let show_if = Number(
12854
12862
  /*hitTimes*/
12855
- ctx[6]
12863
+ ctx[5]
12856
12864
  ) > 0;
12857
12865
  let t7;
12858
12866
  let div5;
12859
12867
  let div4;
12860
12868
  let div5_class_value;
12861
12869
  let t8;
12870
+ let div9;
12862
12871
  let t9;
12863
12872
  let div8;
12864
12873
  let div6;
@@ -12874,7 +12883,7 @@ function create_fragment$c(ctx) {
12874
12883
  let div7_class_value;
12875
12884
  let t16;
12876
12885
  let t17;
12877
- let div9;
12886
+ let div10;
12878
12887
  let current;
12879
12888
  let mounted;
12880
12889
  let dispose;
@@ -12893,7 +12902,7 @@ function create_fragment$c(ctx) {
12893
12902
  function select_block_type(ctx2, dirty) {
12894
12903
  if (
12895
12904
  /*radioIsSelected*/
12896
- ctx2[10]
12905
+ ctx2[9]
12897
12906
  ) return create_if_block_1$c;
12898
12907
  return create_else_block$8;
12899
12908
  }
@@ -12905,9 +12914,9 @@ function create_fragment$c(ctx) {
12905
12914
  );
12906
12915
  return {
12907
12916
  c() {
12908
- div10 = element("div");
12917
+ div11 = element("div");
12909
12918
  div0 = element("div");
12910
- div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-8vjuea"/>`;
12919
+ div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-17uidtq"/>`;
12911
12920
  t0 = space();
12912
12921
  div3 = element("div");
12913
12922
  div1 = element("div");
@@ -12916,7 +12925,7 @@ function create_fragment$c(ctx) {
12916
12925
  span0 = element("span");
12917
12926
  t2 = text(
12918
12927
  /*diamondStr*/
12919
- ctx[4]
12928
+ ctx[3]
12920
12929
  );
12921
12930
  t3 = space();
12922
12931
  div2 = element("div");
@@ -12925,7 +12934,7 @@ function create_fragment$c(ctx) {
12925
12934
  span1 = element("span");
12926
12935
  t5 = text(
12927
12936
  /*numberStr*/
12928
- ctx[5]
12937
+ ctx[4]
12929
12938
  );
12930
12939
  t6 = space();
12931
12940
  if (if_block0) if_block0.c();
@@ -12936,6 +12945,7 @@ function create_fragment$c(ctx) {
12936
12945
  each_blocks[i2].c();
12937
12946
  }
12938
12947
  t8 = space();
12948
+ div9 = element("div");
12939
12949
  if_block1.c();
12940
12950
  t9 = space();
12941
12951
  div8 = element("div");
@@ -12947,53 +12957,54 @@ function create_fragment$c(ctx) {
12947
12957
  t12 = space();
12948
12958
  div7 = element("div");
12949
12959
  span3 = element("span");
12950
- span3.innerHTML = `<img alt="" class="radioImg default svelte-8vjuea" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-8vjuea" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
12960
+ span3.innerHTML = `<img alt="" class="radioImg default svelte-17uidtq" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-17uidtq" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
12951
12961
  t14 = space();
12952
12962
  span4 = element("span");
12953
12963
  span4.textContent = "自定义开启数量";
12954
12964
  t16 = space();
12955
12965
  if (if_block2) if_block2.c();
12956
12966
  t17 = space();
12957
- div9 = element("div");
12958
- attr(div0, "class", "openGiftTitle svelte-8vjuea");
12959
- attr(img1, "class", "imgIcon svelte-8vjuea");
12967
+ div10 = element("div");
12968
+ attr(div0, "class", "openGiftTitle svelte-17uidtq");
12969
+ attr(img1, "class", "imgIcon svelte-17uidtq");
12960
12970
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/diamondTabIcon.png")) attr(img1, "src", img1_src_value);
12961
12971
  attr(img1, "alt", "");
12962
- attr(span0, "class", "wordCtn svelte-8vjuea");
12963
- attr(div1, "class", "subCtn svelte-8vjuea");
12964
- attr(img2, "class", "imgIcon svelte-8vjuea");
12972
+ attr(span0, "class", "wordCtn svelte-17uidtq");
12973
+ attr(div1, "class", "subCtn svelte-17uidtq");
12974
+ attr(img2, "class", "imgIcon svelte-17uidtq");
12965
12975
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/goldMagic/magicTabIcon.png")) attr(img2, "src", img2_src_value);
12966
12976
  attr(img2, "alt", "");
12967
- attr(span1, "class", "wordCtn svelte-8vjuea");
12968
- attr(div2, "class", "subCtn svelte-8vjuea");
12969
- attr(div3, "class", "leftTopCtn svelte-8vjuea");
12970
- attr(div4, "class", "result_content svelte-8vjuea");
12977
+ attr(span1, "class", "wordCtn svelte-17uidtq");
12978
+ attr(div2, "class", "subCtn svelte-17uidtq");
12979
+ attr(div3, "class", "leftTopCtn svelte-17uidtq");
12980
+ attr(div4, "class", "result_content svelte-17uidtq");
12971
12981
  attr(div5, "class", div5_class_value = /*result*/
12972
12982
  (ctx[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
12973
- (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-8vjuea");
12974
- attr(i, "class", "svelte-8vjuea");
12975
- attr(span2, "class", "svelte-8vjuea");
12983
+ (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-17uidtq");
12984
+ attr(i, "class", "svelte-17uidtq");
12985
+ attr(span2, "class", "svelte-17uidtq");
12976
12986
  attr(div6, "class", div6_class_value = null_to_empty(
12977
12987
  /*parentIgnore*/
12978
- ctx[2] ? "result_action_ignore ignore" : "result_action_ignore"
12979
- ) + " svelte-8vjuea");
12988
+ ctx[1] ? "result_action_ignore ignore" : "result_action_ignore"
12989
+ ) + " svelte-17uidtq");
12980
12990
  attr(div6, "role", "presentation");
12981
- attr(span3, "class", "spCtn svelte-8vjuea");
12982
- attr(span4, "class", "changeWordCtn svelte-8vjuea");
12991
+ attr(span3, "class", "spCtn svelte-17uidtq");
12992
+ attr(span4, "class", "changeWordCtn svelte-17uidtq");
12983
12993
  attr(div7, "role", "presentation");
12984
12994
  attr(div7, "class", div7_class_value = null_to_empty(
12985
12995
  /*radioIsSelected*/
12986
- ctx[10] ? "radioCtn active" : "radioCtn"
12987
- ) + " svelte-8vjuea");
12988
- attr(div8, "class", "footerBottomCtn svelte-8vjuea");
12989
- attr(div9, "class", "result_vap_anim svelte-8vjuea");
12990
- attr(div10, "class", "result_container svelte-8vjuea");
12996
+ ctx[9] ? "radioCtn active" : "radioCtn"
12997
+ ) + " svelte-17uidtq");
12998
+ attr(div8, "class", "footerBottomCtn svelte-17uidtq");
12999
+ attr(div9, "class", "open-actions svelte-17uidtq");
13000
+ attr(div10, "class", "result_vap_anim svelte-17uidtq");
13001
+ attr(div11, "class", "result_container svelte-17uidtq");
12991
13002
  },
12992
13003
  m(target, anchor) {
12993
- insert(target, div10, anchor);
12994
- append(div10, div0);
12995
- append(div10, t0);
12996
- append(div10, div3);
13004
+ insert(target, div11, anchor);
13005
+ append(div11, div0);
13006
+ append(div11, t0);
13007
+ append(div11, div3);
12997
13008
  append(div3, div1);
12998
13009
  append(div1, img1);
12999
13010
  append(div1, t1);
@@ -13007,18 +13018,19 @@ function create_fragment$c(ctx) {
13007
13018
  append(span1, t5);
13008
13019
  append(div3, t6);
13009
13020
  if (if_block0) if_block0.m(div3, null);
13010
- append(div10, t7);
13011
- append(div10, div5);
13021
+ append(div11, t7);
13022
+ append(div11, div5);
13012
13023
  append(div5, div4);
13013
13024
  for (let i2 = 0; i2 < each_blocks.length; i2 += 1) {
13014
13025
  if (each_blocks[i2]) {
13015
13026
  each_blocks[i2].m(div4, null);
13016
13027
  }
13017
13028
  }
13018
- append(div10, t8);
13019
- if_block1.m(div10, null);
13020
- append(div10, t9);
13021
- append(div10, div8);
13029
+ append(div11, t8);
13030
+ append(div11, div9);
13031
+ if_block1.m(div9, null);
13032
+ append(div9, t9);
13033
+ append(div9, div8);
13022
13034
  append(div8, div6);
13023
13035
  append(div6, i);
13024
13036
  append(div6, t10);
@@ -13028,11 +13040,11 @@ function create_fragment$c(ctx) {
13028
13040
  append(div7, span3);
13029
13041
  append(div7, t14);
13030
13042
  append(div7, span4);
13031
- append(div10, t16);
13032
- if (if_block2) if_block2.m(div10, null);
13033
- append(div10, t17);
13034
- append(div10, div9);
13035
- ctx[24](div9);
13043
+ append(div9, t16);
13044
+ if (if_block2) if_block2.m(div9, null);
13045
+ append(div11, t17);
13046
+ append(div11, div10);
13047
+ ctx[24](div10);
13036
13048
  current = true;
13037
13049
  if (!mounted) {
13038
13050
  dispose = [
@@ -13054,21 +13066,21 @@ function create_fragment$c(ctx) {
13054
13066
  },
13055
13067
  p(ctx2, dirty) {
13056
13068
  if (!current || dirty[0] & /*diamondStr*/
13057
- 16) set_data(
13069
+ 8) set_data(
13058
13070
  t2,
13059
13071
  /*diamondStr*/
13060
- ctx2[4]
13072
+ ctx2[3]
13061
13073
  );
13062
13074
  if (!current || dirty[0] & /*numberStr*/
13063
- 32) set_data(
13075
+ 16) set_data(
13064
13076
  t5,
13065
13077
  /*numberStr*/
13066
- ctx2[5]
13078
+ ctx2[4]
13067
13079
  );
13068
13080
  if (dirty[0] & /*hitTimes*/
13069
- 64) show_if = Number(
13081
+ 32) show_if = Number(
13070
13082
  /*hitTimes*/
13071
- ctx2[6]
13083
+ ctx2[5]
13072
13084
  ) > 0;
13073
13085
  if (show_if) {
13074
13086
  if (if_block0) {
@@ -13110,7 +13122,7 @@ function create_fragment$c(ctx) {
13110
13122
  if (!current || dirty[0] & /*result*/
13111
13123
  1 && div5_class_value !== (div5_class_value = /*result*/
13112
13124
  (ctx2[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
13113
- (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-8vjuea")) {
13125
+ (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-17uidtq")) {
13114
13126
  attr(div5, "class", div5_class_value);
13115
13127
  }
13116
13128
  if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block1) {
@@ -13120,21 +13132,21 @@ function create_fragment$c(ctx) {
13120
13132
  if_block1 = current_block_type(ctx2);
13121
13133
  if (if_block1) {
13122
13134
  if_block1.c();
13123
- if_block1.m(div10, t9);
13135
+ if_block1.m(div9, t9);
13124
13136
  }
13125
13137
  }
13126
13138
  if (!current || dirty[0] & /*parentIgnore*/
13127
- 4 && div6_class_value !== (div6_class_value = null_to_empty(
13139
+ 2 && div6_class_value !== (div6_class_value = null_to_empty(
13128
13140
  /*parentIgnore*/
13129
- ctx2[2] ? "result_action_ignore ignore" : "result_action_ignore"
13130
- ) + " svelte-8vjuea")) {
13141
+ ctx2[1] ? "result_action_ignore ignore" : "result_action_ignore"
13142
+ ) + " svelte-17uidtq")) {
13131
13143
  attr(div6, "class", div6_class_value);
13132
13144
  }
13133
13145
  if (!current || dirty[0] & /*radioIsSelected*/
13134
- 1024 && div7_class_value !== (div7_class_value = null_to_empty(
13146
+ 512 && div7_class_value !== (div7_class_value = null_to_empty(
13135
13147
  /*radioIsSelected*/
13136
- ctx2[10] ? "radioCtn active" : "radioCtn"
13137
- ) + " svelte-8vjuea")) {
13148
+ ctx2[9] ? "radioCtn active" : "radioCtn"
13149
+ ) + " svelte-17uidtq")) {
13138
13150
  attr(div7, "class", div7_class_value);
13139
13151
  }
13140
13152
  if (
@@ -13146,7 +13158,7 @@ function create_fragment$c(ctx) {
13146
13158
  } else {
13147
13159
  if_block2 = create_if_block$c(ctx2);
13148
13160
  if_block2.c();
13149
- if_block2.m(div10, t17);
13161
+ if_block2.m(div9, null);
13150
13162
  }
13151
13163
  } else if (if_block2) {
13152
13164
  if_block2.d(1);
@@ -13169,7 +13181,7 @@ function create_fragment$c(ctx) {
13169
13181
  },
13170
13182
  d(detaching) {
13171
13183
  if (detaching) {
13172
- detach(div10);
13184
+ detach(div11);
13173
13185
  }
13174
13186
  if (if_block0) if_block0.d();
13175
13187
  destroy_each(each_blocks, detaching);
@@ -13184,13 +13196,13 @@ function create_fragment$c(ctx) {
13184
13196
  const CRIT_ICON$1 = "https://dynamics-share.tuwan.com/activity/320d878f51a28133b37d75880110ad3c.png?x-oss-process=image/format,webp/ignore-error,1";
13185
13197
  function instance$c($$self, $$props, $$invalidate) {
13186
13198
  let expiresText;
13199
+ let showCrit;
13187
13200
  let { num = 10 } = $$props;
13188
13201
  let { result = [] } = $$props;
13189
13202
  let { onClose } = $$props;
13190
13203
  let { mode = RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE } = $$props;
13191
13204
  let { parentIgnore = false } = $$props;
13192
13205
  let { handelChangeIgnore } = $$props;
13193
- let { showCrit = false } = $$props;
13194
13206
  let animEl;
13195
13207
  let diamondStr = "0";
13196
13208
  let numberStr = "0";
@@ -13201,14 +13213,14 @@ function instance$c($$self, $$props, $$invalidate) {
13201
13213
  let times;
13202
13214
  let radioIsSelected = false;
13203
13215
  let handleChangeRadio = function() {
13204
- $$invalidate(10, radioIsSelected = !radioIsSelected);
13216
+ $$invalidate(9, radioIsSelected = !radioIsSelected);
13205
13217
  if (!radioIsSelected) {
13206
- $$invalidate(9, times = void 0);
13218
+ $$invalidate(8, times = void 0);
13207
13219
  }
13208
13220
  };
13209
13221
  function handleOpenGift(count = 1) {
13210
13222
  if (loading) return;
13211
- $$invalidate(7, lastOpenTimes = count);
13223
+ $$invalidate(6, lastOpenTimes = count);
13212
13224
  $$invalidate(17, num = count);
13213
13225
  onBuy();
13214
13226
  }
@@ -13252,8 +13264,9 @@ function instance$c($$self, $$props, $$invalidate) {
13252
13264
  },
13253
13265
  500
13254
13266
  );
13255
- $$invalidate(1, showCrit = Number(res["total-process"]) == 1);
13256
13267
  res.data._expires = res.expires || [];
13268
+ res.data._total = res.total;
13269
+ res.data._process = res.process;
13257
13270
  $$invalidate(0, result = []);
13258
13271
  if (parentIgnore) {
13259
13272
  setTimeout(
@@ -13271,13 +13284,17 @@ function instance$c($$self, $$props, $$invalidate) {
13271
13284
  url: vapUrl,
13272
13285
  ele: animEl,
13273
13286
  config: vapConfigUrl
13274
- }).then(() => {
13275
- $$invalidate(0, result = res.data);
13276
- getTreasureInfo();
13277
13287
  }).finally(() => {
13278
13288
  player.destory();
13279
- loading = false;
13280
13289
  });
13290
+ setTimeout(
13291
+ () => {
13292
+ $$invalidate(0, result = res.data);
13293
+ if (animEl) $$invalidate(2, animEl.innerHTML = "", animEl);
13294
+ getTreasureInfo();
13295
+ },
13296
+ 1100
13297
+ );
13281
13298
  }
13282
13299
  } else if (res.error == -2) {
13283
13300
  showTips("您的钻石和点点币不足,请充值");
@@ -13313,11 +13330,11 @@ function instance$c($$self, $$props, $$invalidate) {
13313
13330
  requestApi(OpenGiftUrls.getTreasureInfo(mode)).then((res) => {
13314
13331
  loading = false;
13315
13332
  if (res.error == 0) {
13316
- $$invalidate(4, diamondStr = res.data.diamond_str);
13317
- $$invalidate(5, numberStr = res.data.number_str);
13333
+ $$invalidate(3, diamondStr = res.data.diamond_str);
13334
+ $$invalidate(4, numberStr = res.data.number_str);
13318
13335
  res.data.glod_num;
13319
- $$invalidate(6, hitTimes = res.data.hit_times);
13320
- $$invalidate(8, unit_price = res.data.unit_price || 0);
13336
+ $$invalidate(5, hitTimes = res.data.hit_times);
13337
+ $$invalidate(7, unit_price = res.data.unit_price || 0);
13321
13338
  refreshHaveGift();
13322
13339
  } else {
13323
13340
  showTips(res.error_msg);
@@ -13329,16 +13346,16 @@ function instance$c($$self, $$props, $$invalidate) {
13329
13346
  });
13330
13347
  function input_input_handler() {
13331
13348
  times = to_number(this.value);
13332
- $$invalidate(9, times);
13349
+ $$invalidate(8, times);
13333
13350
  }
13334
13351
  const input_handler = (event) => {
13335
- $$invalidate(9, times = event.target.value.slice(0, 4));
13352
+ $$invalidate(8, times = event.target.value.slice(0, 4));
13336
13353
  };
13337
13354
  const click_handler = () => handleOpenGift(lastOpenTimes);
13338
- function div9_binding($$value) {
13355
+ function div10_binding($$value) {
13339
13356
  binding_callbacks[$$value ? "unshift" : "push"](() => {
13340
13357
  animEl = $$value;
13341
- $$invalidate(3, animEl);
13358
+ $$invalidate(2, animEl);
13342
13359
  });
13343
13360
  }
13344
13361
  $$self.$$set = ($$props2) => {
@@ -13346,19 +13363,21 @@ function instance$c($$self, $$props, $$invalidate) {
13346
13363
  if ("result" in $$props2) $$invalidate(0, result = $$props2.result);
13347
13364
  if ("onClose" in $$props2) $$invalidate(18, onClose = $$props2.onClose);
13348
13365
  if ("mode" in $$props2) $$invalidate(19, mode = $$props2.mode);
13349
- if ("parentIgnore" in $$props2) $$invalidate(2, parentIgnore = $$props2.parentIgnore);
13366
+ if ("parentIgnore" in $$props2) $$invalidate(1, parentIgnore = $$props2.parentIgnore);
13350
13367
  if ("handelChangeIgnore" in $$props2) $$invalidate(20, handelChangeIgnore = $$props2.handelChangeIgnore);
13351
- if ("showCrit" in $$props2) $$invalidate(1, showCrit = $$props2.showCrit);
13352
13368
  };
13353
13369
  $$self.$$.update = () => {
13354
13370
  if ($$self.$$.dirty[0] & /*result*/
13355
13371
  1) {
13356
13372
  $$invalidate(11, expiresText = (result._expires || []).join(""));
13357
13373
  }
13374
+ if ($$self.$$.dirty[0] & /*result*/
13375
+ 1) {
13376
+ $$invalidate(10, showCrit = Number(result._total) - Number(result._process) === 1);
13377
+ }
13358
13378
  };
13359
13379
  return [
13360
13380
  result,
13361
- showCrit,
13362
13381
  parentIgnore,
13363
13382
  animEl,
13364
13383
  diamondStr,
@@ -13368,6 +13387,7 @@ function instance$c($$self, $$props, $$invalidate) {
13368
13387
  unit_price,
13369
13388
  times,
13370
13389
  radioIsSelected,
13390
+ showCrit,
13371
13391
  expiresText,
13372
13392
  handleChangeRadio,
13373
13393
  handleOpenGift,
@@ -13381,7 +13401,7 @@ function instance$c($$self, $$props, $$invalidate) {
13381
13401
  input_input_handler,
13382
13402
  input_handler,
13383
13403
  click_handler,
13384
- div9_binding
13404
+ div10_binding
13385
13405
  ];
13386
13406
  }
13387
13407
  class NewyearResult extends SvelteComponent {
@@ -13398,9 +13418,8 @@ class NewyearResult extends SvelteComponent {
13398
13418
  result: 0,
13399
13419
  onClose: 18,
13400
13420
  mode: 19,
13401
- parentIgnore: 2,
13402
- handelChangeIgnore: 20,
13403
- showCrit: 1
13421
+ parentIgnore: 1,
13422
+ handelChangeIgnore: 20
13404
13423
  },
13405
13424
  null,
13406
13425
  [-1, -1]
@@ -13433,7 +13452,7 @@ function create_if_block_1$b(ctx) {
13433
13452
  for (let i = 0; i < each_blocks.length; i += 1) {
13434
13453
  each_blocks[i].c();
13435
13454
  }
13436
- attr(div, "class", "expires_list svelte-1vzlqha");
13455
+ attr(div, "class", "expires_list svelte-1h6z11q");
13437
13456
  },
13438
13457
  m(target, anchor) {
13439
13458
  insert(target, div, anchor);
@@ -13495,11 +13514,11 @@ function create_each_block_1$1(ctx) {
13495
13514
  span = element("span");
13496
13515
  t1 = text(t1_value);
13497
13516
  t2 = space();
13498
- attr(img, "class", "expires_icon svelte-1vzlqha");
13517
+ attr(img, "class", "expires_icon svelte-1h6z11q");
13499
13518
  if (!src_url_equal(img.src, img_src_value = EXPIRES_ICON$1)) attr(img, "src", img_src_value);
13500
13519
  attr(img, "alt", "");
13501
- attr(span, "class", "expires_text svelte-1vzlqha");
13502
- attr(div, "class", "expires_item svelte-1vzlqha");
13520
+ attr(span, "class", "expires_text svelte-1h6z11q");
13521
+ attr(div, "class", "expires_item svelte-1h6z11q");
13503
13522
  },
13504
13523
  m(target, anchor) {
13505
13524
  insert(target, div, anchor);
@@ -13527,7 +13546,7 @@ function create_if_block$b(ctx) {
13527
13546
  c() {
13528
13547
  div = element("div");
13529
13548
  div.textContent = "还未有开启魔法记录";
13530
- attr(div, "class", "noDataTipCtn svelte-1vzlqha");
13549
+ attr(div, "class", "noDataTipCtn svelte-1h6z11q");
13531
13550
  },
13532
13551
  m(target, anchor) {
13533
13552
  insert(target, div, anchor);
@@ -13585,12 +13604,12 @@ function create_each_block$2(ctx) {
13585
13604
  attr(img0, "alt", "");
13586
13605
  if (!src_url_equal(img0.src, img0_src_value = /*item*/
13587
13606
  ctx[10].icon)) attr(img0, "src", img0_src_value);
13588
- attr(img0, "class", "svelte-1vzlqha");
13607
+ attr(img0, "class", "svelte-1h6z11q");
13589
13608
  attr(img1, "alt", "");
13590
13609
  if (!src_url_equal(img1.src, img1_src_value = /*item*/
13591
13610
  ctx[10].gift)) attr(img1, "src", img1_src_value);
13592
- attr(img1, "class", "svelte-1vzlqha");
13593
- attr(div, "class", "history_content_item svelte-1vzlqha");
13611
+ attr(img1, "class", "svelte-1h6z11q");
13612
+ attr(div, "class", "history_content_item svelte-1h6z11q");
13594
13613
  },
13595
13614
  m(target, anchor) {
13596
13615
  insert(target, div, anchor);
@@ -13669,7 +13688,7 @@ function create_fragment$b(ctx) {
13669
13688
  c() {
13670
13689
  div4 = element("div");
13671
13690
  div0 = element("div");
13672
- div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-1vzlqha"/>`;
13691
+ div0.innerHTML = `<img src="https://asset.tuwan.com/goldMagic/resultTitle.png?v1" alt="" class="svelte-1h6z11q"/>`;
13673
13692
  t0 = space();
13674
13693
  div2 = element("div");
13675
13694
  if (if_block0) if_block0.c();
@@ -13683,12 +13702,12 @@ function create_fragment$b(ctx) {
13683
13702
  t3 = space();
13684
13703
  div3 = element("div");
13685
13704
  div3.textContent = "关闭";
13686
- attr(div0, "class", "openGiftTitle svelte-1vzlqha");
13687
- attr(div1, "class", "history_content scroll_bar_light_purple svelte-1vzlqha");
13688
- attr(div2, "class", "history_wrapper svelte-1vzlqha");
13689
- attr(div3, "class", "history_close_button svelte-1vzlqha");
13705
+ attr(div0, "class", "openGiftTitle svelte-1h6z11q");
13706
+ attr(div1, "class", "history_content scroll_bar_light_purple svelte-1h6z11q");
13707
+ attr(div2, "class", "history_wrapper svelte-1h6z11q");
13708
+ attr(div3, "class", "history_close_button svelte-1h6z11q");
13690
13709
  attr(div4, "class", div4_class_value = "history_container " + /*mode*/
13691
- (ctx[0] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1vzlqha");
13710
+ (ctx[0] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1h6z11q");
13692
13711
  },
13693
13712
  m(target, anchor) {
13694
13713
  insert(target, div4, anchor);
@@ -13779,7 +13798,7 @@ function create_fragment$b(ctx) {
13779
13798
  }
13780
13799
  if (dirty & /*mode*/
13781
13800
  1 && div4_class_value !== (div4_class_value = "history_container " + /*mode*/
13782
- (ctx2[0] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1vzlqha")) {
13801
+ (ctx2[0] == RESULT_VIEW_TYPE$1.CRYSTAL_TYPE ? "" : "glod") + " svelte-1h6z11q")) {
13783
13802
  attr(div4, "class", div4_class_value);
13784
13803
  }
13785
13804
  },
@@ -13871,11 +13890,11 @@ function create_if_block_3$6(ctx) {
13871
13890
  span = element("span");
13872
13891
  t1 = text(t1_value);
13873
13892
  t2 = text("次");
13874
- attr(img, "class", "imgIcon svelte-1biw0qk");
13893
+ attr(img, "class", "imgIcon svelte-103f8qi");
13875
13894
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
13876
13895
  attr(img, "alt", "");
13877
- attr(span, "class", "wordCtn svelte-1biw0qk");
13878
- attr(div, "class", "subCtn svelte-1biw0qk");
13896
+ attr(span, "class", "wordCtn svelte-103f8qi");
13897
+ attr(div, "class", "subCtn svelte-103f8qi");
13879
13898
  },
13880
13899
  m(target, anchor) {
13881
13900
  insert(target, div, anchor);
@@ -13956,19 +13975,19 @@ function create_else_block$7(ctx) {
13956
13975
  t7 = space();
13957
13976
  div4 = element("div");
13958
13977
  div4.textContent = "开启10次";
13959
- attr(img0, "class", "icon svelte-1biw0qk");
13978
+ attr(img0, "class", "icon svelte-103f8qi");
13960
13979
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/goldMagic/magicIcon.png")) attr(img0, "src", img0_src_value);
13961
- attr(span0, "class", "numCtn svelte-1biw0qk");
13962
- attr(div0, "class", "leftCtn svelte-1biw0qk");
13963
- attr(div1, "class", "rightCtn svelte-1biw0qk");
13964
- attr(div2, "class", "normalBtn svelte-1biw0qk");
13965
- attr(img1, "class", "icon svelte-1biw0qk");
13980
+ attr(span0, "class", "numCtn svelte-103f8qi");
13981
+ attr(div0, "class", "leftCtn svelte-103f8qi");
13982
+ attr(div1, "class", "rightCtn svelte-103f8qi");
13983
+ attr(div2, "class", "normalBtn svelte-103f8qi");
13984
+ attr(img1, "class", "icon svelte-103f8qi");
13966
13985
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/magicIcon.png")) attr(img1, "src", img1_src_value);
13967
- attr(span1, "class", "numCtn svelte-1biw0qk");
13968
- attr(div3, "class", "leftCtn svelte-1biw0qk");
13969
- attr(div4, "class", "rightCtn svelte-1biw0qk");
13970
- attr(div5, "class", "normalBtn svelte-1biw0qk");
13971
- attr(div6, "class", "buttonCtn svelte-1biw0qk");
13986
+ attr(span1, "class", "numCtn svelte-103f8qi");
13987
+ attr(div3, "class", "leftCtn svelte-103f8qi");
13988
+ attr(div4, "class", "rightCtn svelte-103f8qi");
13989
+ attr(div5, "class", "normalBtn svelte-103f8qi");
13990
+ attr(div6, "class", "buttonCtn svelte-103f8qi");
13972
13991
  },
13973
13992
  m(target, anchor) {
13974
13993
  insert(target, div6, anchor);
@@ -14058,14 +14077,14 @@ function create_if_block_1$a(ctx) {
14058
14077
  t1 = space();
14059
14078
  div2 = element("div");
14060
14079
  div2.textContent = "开启";
14061
- attr(input, "class", "inp svelte-1biw0qk");
14080
+ attr(input, "class", "inp svelte-103f8qi");
14062
14081
  attr(input, "placeholder", "输入数量");
14063
14082
  attr(input, "type", "number");
14064
- attr(div0, "class", "svelte-1biw0qk");
14065
- attr(div1, "class", "inputNumWarpper svelte-1biw0qk");
14066
- attr(div2, "class", "smallBtnCtn svelte-1biw0qk");
14067
- attr(div3, "class", "inputNumCtn svelte-1biw0qk");
14068
- attr(div4, "class", "buttonCtn svelte-1biw0qk");
14083
+ attr(div0, "class", "svelte-103f8qi");
14084
+ attr(div1, "class", "inputNumWarpper svelte-103f8qi");
14085
+ attr(div2, "class", "smallBtnCtn svelte-103f8qi");
14086
+ attr(div3, "class", "inputNumCtn svelte-103f8qi");
14087
+ attr(div4, "class", "buttonCtn svelte-103f8qi");
14069
14088
  set_style(div4, "display", "flex");
14070
14089
  set_style(div4, "justify-content", "center");
14071
14090
  },
@@ -14188,7 +14207,7 @@ function create_if_block$a(ctx) {
14188
14207
  /*expiresText*/
14189
14208
  ctx[7]
14190
14209
  );
14191
- attr(div, "class", "expiresTips svelte-1biw0qk");
14210
+ attr(div, "class", "expiresTips svelte-103f8qi");
14192
14211
  },
14193
14212
  m(target, anchor) {
14194
14213
  insert(target, div, anchor);
@@ -14328,7 +14347,7 @@ function create_fragment$a(ctx) {
14328
14347
  div5 = element("div");
14329
14348
  t10 = space();
14330
14349
  div9 = element("div");
14331
- div9.innerHTML = `<div class="fireCtn svelte-1biw0qk"></div> <div class="mainImgCtn mainImgCtnMagic svelte-1biw0qk"></div> <div class="mainSvgaCtn svelte-1biw0qk"></div>`;
14350
+ div9.innerHTML = `<div class="fireCtn svelte-103f8qi"></div> <div class="mainImgCtn mainImgCtnMagic svelte-103f8qi"></div> <div class="mainSvgaCtn svelte-103f8qi"></div>`;
14332
14351
  t13 = space();
14333
14352
  div14 = element("div");
14334
14353
  div10 = element("div");
@@ -14347,55 +14366,55 @@ function create_fragment$a(ctx) {
14347
14366
  t19 = space();
14348
14367
  div12 = element("div");
14349
14368
  span4 = element("span");
14350
- span4.innerHTML = `<img class="radioImg default svelte-1biw0qk" src="https://asset.tuwan.com/goldMagic/radioDefault.png"/> <img class="radioImg selected svelte-1biw0qk" src="https://asset.tuwan.com/goldMagic/radioSelect.png"/>`;
14369
+ span4.innerHTML = `<img class="radioImg default svelte-103f8qi" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img class="radioImg selected svelte-103f8qi" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
14351
14370
  t21 = space();
14352
14371
  span5 = element("span");
14353
14372
  span5.textContent = "自定义开启数量";
14354
14373
  t23 = space();
14355
14374
  if (if_block2) if_block2.c();
14356
- attr(img0, "class", "openGiftTitle svelte-1biw0qk");
14375
+ attr(img0, "class", "openGiftTitle svelte-103f8qi");
14357
14376
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/goldMagic/magicTitle.png")) attr(img0, "src", img0_src_value);
14358
- attr(div0, "class", "subTitle svelte-1biw0qk");
14359
- attr(img1, "class", "imgIcon svelte-1biw0qk");
14377
+ attr(div0, "class", "subTitle svelte-103f8qi");
14378
+ attr(img1, "class", "imgIcon svelte-103f8qi");
14360
14379
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/diamondTabIcon.png")) attr(img1, "src", img1_src_value);
14361
- attr(span0, "class", "wordCtn svelte-1biw0qk");
14362
- attr(div1, "class", "subCtn svelte-1biw0qk");
14363
- attr(img2, "class", "imgIcon svelte-1biw0qk");
14380
+ attr(span0, "class", "wordCtn svelte-103f8qi");
14381
+ attr(div1, "class", "subCtn svelte-103f8qi");
14382
+ attr(img2, "class", "imgIcon svelte-103f8qi");
14364
14383
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/goldMagic/magicTabIcon.png")) attr(img2, "src", img2_src_value);
14365
- attr(span1, "class", "wordCtn svelte-1biw0qk");
14366
- attr(div2, "class", "subCtn svelte-1biw0qk");
14367
- attr(div3, "class", "leftTopCtn svelte-1biw0qk");
14368
- attr(div4, "class", "fireSvgaCtnMagic svelte-1biw0qk");
14369
- attr(div5, "class", "result_vap_anim svelte-1biw0qk");
14370
- attr(div9, "class", "mainShowerCtn svelte-1biw0qk");
14371
- attr(span2, "class", "tipsStroke svelte-1biw0qk");
14384
+ attr(span1, "class", "wordCtn svelte-103f8qi");
14385
+ attr(div2, "class", "subCtn svelte-103f8qi");
14386
+ attr(div3, "class", "leftTopCtn svelte-103f8qi");
14387
+ attr(div4, "class", "fireSvgaCtnMagic svelte-103f8qi");
14388
+ attr(div5, "class", "result_vap_anim svelte-103f8qi");
14389
+ attr(div9, "class", "mainShowerCtn svelte-103f8qi");
14390
+ attr(span2, "class", "tipsStroke svelte-103f8qi");
14372
14391
  attr(
14373
14392
  span2,
14374
14393
  "data-text",
14375
14394
  /*tipsPlain*/
14376
14395
  ctx[3]
14377
14396
  );
14378
- attr(img3, "class", "changeImg svelte-1biw0qk");
14397
+ attr(img3, "class", "changeImg svelte-103f8qi");
14379
14398
  attr(img3, "role", "presentation");
14380
14399
  if (!src_url_equal(img3.src, img3_src_value = "https://dynamics-share.tuwan.com/activity/9715ce5f5e2a95ac57be7559d47fa04a.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img3, "src", img3_src_value);
14381
14400
  attr(img3, "alt", "");
14382
- attr(div10, "class", "topTipsCtn svelte-1biw0qk");
14401
+ attr(div10, "class", "topTipsCtn svelte-103f8qi");
14383
14402
  attr(div10, "role", "presentation");
14384
- attr(i, "class", "svelte-1biw0qk");
14403
+ attr(i, "class", "svelte-103f8qi");
14385
14404
  attr(div11, "class", div11_class_value = null_to_empty(
14386
14405
  /*parentIgnore*/
14387
14406
  ctx[1] ? "result_action_ignore ignore" : "result_action_ignore"
14388
- ) + " svelte-1biw0qk");
14407
+ ) + " svelte-103f8qi");
14389
14408
  attr(div11, "role", "presentation");
14390
- attr(span4, "class", "spCtn svelte-1biw0qk");
14391
- attr(span5, "class", "changeWordCtn svelte-1biw0qk");
14409
+ attr(span4, "class", "spCtn svelte-103f8qi");
14410
+ attr(span5, "class", "changeWordCtn svelte-103f8qi");
14392
14411
  attr(div12, "class", div12_class_value = null_to_empty(
14393
14412
  /*radioIsSelected*/
14394
14413
  ctx[6] ? "radioCtn active" : "radioCtn"
14395
- ) + " svelte-1biw0qk");
14396
- attr(div13, "class", "footerBottomCtn svelte-1biw0qk");
14397
- attr(div14, "class", "openGiftFooter svelte-1biw0qk");
14398
- attr(div15, "class", "MagicCtn svelte-1biw0qk");
14414
+ ) + " svelte-103f8qi");
14415
+ attr(div13, "class", "footerBottomCtn svelte-103f8qi");
14416
+ attr(div14, "class", "openGiftFooter svelte-103f8qi");
14417
+ attr(div15, "class", "MagicCtn svelte-103f8qi");
14399
14418
  },
14400
14419
  m(target, anchor) {
14401
14420
  insert(target, div15, anchor);
@@ -14535,14 +14554,14 @@ function create_fragment$a(ctx) {
14535
14554
  2 && div11_class_value !== (div11_class_value = null_to_empty(
14536
14555
  /*parentIgnore*/
14537
14556
  ctx2[1] ? "result_action_ignore ignore" : "result_action_ignore"
14538
- ) + " svelte-1biw0qk")) {
14557
+ ) + " svelte-103f8qi")) {
14539
14558
  attr(div11, "class", div11_class_value);
14540
14559
  }
14541
14560
  if (dirty & /*radioIsSelected*/
14542
14561
  64 && div12_class_value !== (div12_class_value = null_to_empty(
14543
14562
  /*radioIsSelected*/
14544
14563
  ctx2[6] ? "radioCtn active" : "radioCtn"
14545
- ) + " svelte-1biw0qk")) {
14564
+ ) + " svelte-103f8qi")) {
14546
14565
  attr(div12, "class", div12_class_value);
14547
14566
  }
14548
14567
  if (
@@ -14639,6 +14658,8 @@ function instance$a($$self, $$props, $$invalidate) {
14639
14658
  );
14640
14659
  result = res.data;
14641
14660
  result._expires = res.expires || [];
14661
+ result._total = res.total;
14662
+ result._process = res.process;
14642
14663
  let isJumpAnimation = SessionStorage.getInstance().getGoldMagicAnimIgnore() || 0;
14643
14664
  if (isJumpAnimation == 0) {
14644
14665
  const vapPath = "https://asset.tuwan.com/goldMagic/crystal/";
@@ -14655,7 +14676,7 @@ function instance$a($$self, $$props, $$invalidate) {
14655
14676
  });
14656
14677
  setTimeout(
14657
14678
  () => {
14658
- handleSetResult(result, times || spTimes, res["total-process"]);
14679
+ handleSetResult(result, times || spTimes);
14659
14680
  emptyEl(".result_vap_anim");
14660
14681
  },
14661
14682
  1100
@@ -14663,7 +14684,7 @@ function instance$a($$self, $$props, $$invalidate) {
14663
14684
  } else {
14664
14685
  isGoing = false;
14665
14686
  handleGetGiftInfo();
14666
- handleSetResult(result, times || spTimes, res["total-process"]);
14687
+ handleSetResult(result, times || spTimes);
14667
14688
  }
14668
14689
  } else if (res.error == -2) {
14669
14690
  isGoing = false;
@@ -15239,6 +15260,8 @@ function instance$9($$self, $$props, $$invalidate) {
15239
15260
  );
15240
15261
  result = res.data;
15241
15262
  result._expires = res.expires || [];
15263
+ result._total = res.total;
15264
+ result._process = res.process;
15242
15265
  let isJumpAnimation = SessionStorage.getInstance().getGoldMagicAnimIgnore() || 0;
15243
15266
  if (isJumpAnimation == 0) {
15244
15267
  const vapPath = "https://asset.tuwan.com/goldMagic/glod/";
@@ -15255,7 +15278,7 @@ function instance$9($$self, $$props, $$invalidate) {
15255
15278
  });
15256
15279
  setTimeout(
15257
15280
  () => {
15258
- handleSetResult(result, 1, res["total-process"]);
15281
+ handleSetResult(result, 1);
15259
15282
  emptyEl(".result_vap_anim");
15260
15283
  },
15261
15284
  1100
@@ -15263,7 +15286,7 @@ function instance$9($$self, $$props, $$invalidate) {
15263
15286
  } else {
15264
15287
  isGoing = false;
15265
15288
  handleGetGiftInfo();
15266
- handleSetResult(result, 1, res["total-process"]);
15289
+ handleSetResult(result, 1);
15267
15290
  }
15268
15291
  } else if (res.error == -2) {
15269
15292
  isGoing = false;
@@ -15329,7 +15352,7 @@ function instance$9($$self, $$props, $$invalidate) {
15329
15352
  }
15330
15353
  if ($$self.$$.dirty & /*resData*/
15331
15354
  1) {
15332
- $$invalidate(3, expiresText = ((resData == null ? void 0 : resData.expires) || []).join(""));
15355
+ $$invalidate(3, expiresText = (resData == null ? void 0 : resData.remark) || "");
15333
15356
  }
15334
15357
  };
15335
15358
  return [
@@ -15375,11 +15398,11 @@ function create_if_block_3$5(ctx) {
15375
15398
  span = element("span");
15376
15399
  t1 = text(t1_value);
15377
15400
  t2 = text("次");
15378
- attr(img, "class", "imgIcon svelte-h5udhw");
15401
+ attr(img, "class", "imgIcon svelte-khprqu");
15379
15402
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
15380
15403
  attr(img, "alt", "");
15381
- attr(span, "class", "wordCtn svelte-h5udhw");
15382
- attr(div, "class", "subCtn svelte-h5udhw");
15404
+ attr(span, "class", "wordCtn svelte-khprqu");
15405
+ attr(div, "class", "subCtn svelte-khprqu");
15383
15406
  },
15384
15407
  m(target, anchor) {
15385
15408
  insert(target, div, anchor);
@@ -15460,19 +15483,19 @@ function create_else_block$6(ctx) {
15460
15483
  t7 = space();
15461
15484
  div4 = element("div");
15462
15485
  div4.textContent = "开启10次";
15463
- attr(img0, "class", "icon svelte-h5udhw");
15486
+ attr(img0, "class", "icon svelte-khprqu");
15464
15487
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/goldMagic/magicIcon.png")) attr(img0, "src", img0_src_value);
15465
- attr(span0, "class", "numCtn svelte-h5udhw");
15466
- attr(div0, "class", "leftCtn svelte-h5udhw");
15467
- attr(div1, "class", "rightCtn svelte-h5udhw");
15468
- attr(div2, "class", "normalBtn svelte-h5udhw");
15469
- attr(img1, "class", "icon svelte-h5udhw");
15488
+ attr(span0, "class", "numCtn svelte-khprqu");
15489
+ attr(div0, "class", "leftCtn svelte-khprqu");
15490
+ attr(div1, "class", "rightCtn svelte-khprqu");
15491
+ attr(div2, "class", "normalBtn svelte-khprqu");
15492
+ attr(img1, "class", "icon svelte-khprqu");
15470
15493
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/magicIcon.png")) attr(img1, "src", img1_src_value);
15471
- attr(span1, "class", "numCtn svelte-h5udhw");
15472
- attr(div3, "class", "leftCtn svelte-h5udhw");
15473
- attr(div4, "class", "rightCtn svelte-h5udhw");
15474
- attr(div5, "class", "normalBtn svelte-h5udhw");
15475
- attr(div6, "class", "buttonCtn svelte-h5udhw");
15494
+ attr(span1, "class", "numCtn svelte-khprqu");
15495
+ attr(div3, "class", "leftCtn svelte-khprqu");
15496
+ attr(div4, "class", "rightCtn svelte-khprqu");
15497
+ attr(div5, "class", "normalBtn svelte-khprqu");
15498
+ attr(div6, "class", "buttonCtn svelte-khprqu");
15476
15499
  },
15477
15500
  m(target, anchor) {
15478
15501
  insert(target, div6, anchor);
@@ -15562,14 +15585,14 @@ function create_if_block_1$8(ctx) {
15562
15585
  t1 = space();
15563
15586
  div2 = element("div");
15564
15587
  div2.textContent = "开启";
15565
- attr(input, "class", "inp svelte-h5udhw");
15588
+ attr(input, "class", "inp svelte-khprqu");
15566
15589
  attr(input, "placeholder", "输入数量");
15567
15590
  attr(input, "type", "number");
15568
- attr(div0, "class", "svelte-h5udhw");
15569
- attr(div1, "class", "inputNumWarpper svelte-h5udhw");
15570
- attr(div2, "class", "smallBtnCtn svelte-h5udhw");
15571
- attr(div3, "class", "inputNumCtn svelte-h5udhw");
15572
- attr(div4, "class", "buttonCtn svelte-h5udhw");
15591
+ attr(div0, "class", "svelte-khprqu");
15592
+ attr(div1, "class", "inputNumWarpper svelte-khprqu");
15593
+ attr(div2, "class", "smallBtnCtn svelte-khprqu");
15594
+ attr(div3, "class", "inputNumCtn svelte-khprqu");
15595
+ attr(div4, "class", "buttonCtn svelte-khprqu");
15573
15596
  set_style(div4, "display", "flex");
15574
15597
  set_style(div4, "justify-content", "center");
15575
15598
  },
@@ -15692,7 +15715,7 @@ function create_if_block$8(ctx) {
15692
15715
  /*expiresText*/
15693
15716
  ctx[7]
15694
15717
  );
15695
- attr(div, "class", "expiresTips svelte-h5udhw");
15718
+ attr(div, "class", "expiresTips svelte-khprqu");
15696
15719
  },
15697
15720
  m(target, anchor) {
15698
15721
  insert(target, div, anchor);
@@ -15828,7 +15851,7 @@ function create_fragment$8(ctx) {
15828
15851
  div5 = element("div");
15829
15852
  t8 = space();
15830
15853
  div9 = element("div");
15831
- div9.innerHTML = `<div class="fireCtn svelte-h5udhw"></div> <div class="mainImgCtn mainImgCtnNewYear svelte-h5udhw"></div> <div class="mainSvgaCtn svelte-h5udhw"></div>`;
15854
+ div9.innerHTML = `<div class="fireCtn svelte-khprqu"></div> <div class="mainImgCtn mainImgCtnNewYear svelte-khprqu"></div> <div class="mainSvgaCtn svelte-khprqu"></div>`;
15832
15855
  t11 = space();
15833
15856
  div14 = element("div");
15834
15857
  div10 = element("div");
@@ -15847,55 +15870,55 @@ function create_fragment$8(ctx) {
15847
15870
  t17 = space();
15848
15871
  div12 = element("div");
15849
15872
  span4 = element("span");
15850
- span4.innerHTML = `<img class="radioImg default svelte-h5udhw" src="https://asset.tuwan.com/goldMagic/radioDefault.png"/> <img class="radioImg selected svelte-h5udhw" src="https://asset.tuwan.com/goldMagic/radioSelect.png"/>`;
15873
+ span4.innerHTML = `<img class="radioImg default svelte-khprqu" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img class="radioImg selected svelte-khprqu" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
15851
15874
  t19 = space();
15852
15875
  span5 = element("span");
15853
15876
  span5.textContent = "自定义开启数量";
15854
15877
  t21 = space();
15855
15878
  if (if_block2) if_block2.c();
15856
- attr(img0, "class", "openGiftTitle svelte-h5udhw");
15879
+ attr(img0, "class", "openGiftTitle svelte-khprqu");
15857
15880
  if (!src_url_equal(img0.src, img0_src_value = "https://dynamics-share.tuwan.com/activity/a1f5142d5c75cbf177eac2dbeb5325c6.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img0, "src", img0_src_value);
15858
- attr(div0, "class", "subTitle svelte-h5udhw");
15859
- attr(img1, "class", "imgIcon svelte-h5udhw");
15881
+ attr(div0, "class", "subTitle svelte-khprqu");
15882
+ attr(img1, "class", "imgIcon svelte-khprqu");
15860
15883
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/goldMagic/diamondTabIcon.png")) attr(img1, "src", img1_src_value);
15861
- attr(span0, "class", "wordCtn svelte-h5udhw");
15862
- attr(div1, "class", "subCtn svelte-h5udhw");
15863
- attr(img2, "class", "imgIcon svelte-h5udhw");
15884
+ attr(span0, "class", "wordCtn svelte-khprqu");
15885
+ attr(div1, "class", "subCtn svelte-khprqu");
15886
+ attr(img2, "class", "imgIcon svelte-khprqu");
15864
15887
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/goldMagic/magicTabIcon.png")) attr(img2, "src", img2_src_value);
15865
- attr(span1, "class", "wordCtn svelte-h5udhw");
15866
- attr(div2, "class", "subCtn svelte-h5udhw");
15867
- attr(div3, "class", "leftTopCtn svelte-h5udhw");
15868
- attr(div4, "class", "fireSvgaCtnNewYear svelte-h5udhw");
15869
- attr(div5, "class", "result_vap_anim svelte-h5udhw");
15870
- attr(div9, "class", "mainShowerCtn svelte-h5udhw");
15871
- attr(span2, "class", "tipsStroke svelte-h5udhw");
15888
+ attr(span1, "class", "wordCtn svelte-khprqu");
15889
+ attr(div2, "class", "subCtn svelte-khprqu");
15890
+ attr(div3, "class", "leftTopCtn svelte-khprqu");
15891
+ attr(div4, "class", "fireSvgaCtnNewYear svelte-khprqu");
15892
+ attr(div5, "class", "result_vap_anim svelte-khprqu");
15893
+ attr(div9, "class", "mainShowerCtn svelte-khprqu");
15894
+ attr(span2, "class", "tipsStroke svelte-khprqu");
15872
15895
  attr(
15873
15896
  span2,
15874
15897
  "data-text",
15875
15898
  /*tipsPlain*/
15876
15899
  ctx[3]
15877
15900
  );
15878
- attr(img3, "class", "changeImg svelte-h5udhw");
15901
+ attr(img3, "class", "changeImg svelte-khprqu");
15879
15902
  attr(img3, "role", "presentation");
15880
15903
  if (!src_url_equal(img3.src, img3_src_value = "https://dynamics-share.tuwan.com/activity/9715ce5f5e2a95ac57be7559d47fa04a.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img3, "src", img3_src_value);
15881
15904
  attr(img3, "alt", "");
15882
- attr(div10, "class", "topTipsCtn svelte-h5udhw");
15905
+ attr(div10, "class", "topTipsCtn svelte-khprqu");
15883
15906
  attr(div10, "role", "presentation");
15884
- attr(i, "class", "svelte-h5udhw");
15907
+ attr(i, "class", "svelte-khprqu");
15885
15908
  attr(div11, "class", div11_class_value = null_to_empty(
15886
15909
  /*parentIgnore*/
15887
15910
  ctx[1] ? "result_action_ignore ignore" : "result_action_ignore"
15888
- ) + " svelte-h5udhw");
15911
+ ) + " svelte-khprqu");
15889
15912
  attr(div11, "role", "presentation");
15890
- attr(span4, "class", "spCtn svelte-h5udhw");
15891
- attr(span5, "class", "changeWordCtn svelte-h5udhw");
15913
+ attr(span4, "class", "spCtn svelte-khprqu");
15914
+ attr(span5, "class", "changeWordCtn svelte-khprqu");
15892
15915
  attr(div12, "class", div12_class_value = null_to_empty(
15893
15916
  /*radioIsSelected*/
15894
15917
  ctx[6] ? "radioCtn active" : "radioCtn"
15895
- ) + " svelte-h5udhw");
15896
- attr(div13, "class", "footerBottomCtn svelte-h5udhw");
15897
- attr(div14, "class", "openGiftFooter svelte-h5udhw");
15898
- attr(div15, "class", "NewYearCtn svelte-h5udhw");
15918
+ ) + " svelte-khprqu");
15919
+ attr(div13, "class", "footerBottomCtn svelte-khprqu");
15920
+ attr(div14, "class", "openGiftFooter svelte-khprqu");
15921
+ attr(div15, "class", "NewYearCtn svelte-khprqu");
15899
15922
  },
15900
15923
  m(target, anchor) {
15901
15924
  insert(target, div15, anchor);
@@ -16033,14 +16056,14 @@ function create_fragment$8(ctx) {
16033
16056
  2 && div11_class_value !== (div11_class_value = null_to_empty(
16034
16057
  /*parentIgnore*/
16035
16058
  ctx2[1] ? "result_action_ignore ignore" : "result_action_ignore"
16036
- ) + " svelte-h5udhw")) {
16059
+ ) + " svelte-khprqu")) {
16037
16060
  attr(div11, "class", div11_class_value);
16038
16061
  }
16039
16062
  if (dirty & /*radioIsSelected*/
16040
16063
  64 && div12_class_value !== (div12_class_value = null_to_empty(
16041
16064
  /*radioIsSelected*/
16042
16065
  ctx2[6] ? "radioCtn active" : "radioCtn"
16043
- ) + " svelte-h5udhw")) {
16066
+ ) + " svelte-khprqu")) {
16044
16067
  attr(div12, "class", div12_class_value);
16045
16068
  }
16046
16069
  if (
@@ -16137,6 +16160,8 @@ function instance$8($$self, $$props, $$invalidate) {
16137
16160
  );
16138
16161
  result = res.data;
16139
16162
  result._expires = res.expires || [];
16163
+ result._total = res.total;
16164
+ result._process = res.process;
16140
16165
  let isJumpAnimation = SessionStorage.getInstance().getGoldMagicAnimIgnore() || 0;
16141
16166
  if (isJumpAnimation == 0) {
16142
16167
  const vapUrl = "https://dynamics-share.tuwan.com/activity/431da644d314303a0231585c723b968e.mp4";
@@ -16154,7 +16179,7 @@ function instance$8($$self, $$props, $$invalidate) {
16154
16179
  });
16155
16180
  setTimeout(
16156
16181
  () => {
16157
- handleSetResult(result, times || spTimes, res["total-process"]);
16182
+ handleSetResult(result, times || spTimes);
16158
16183
  emptyEl(".result_vap_anim");
16159
16184
  },
16160
16185
  1100
@@ -16162,7 +16187,7 @@ function instance$8($$self, $$props, $$invalidate) {
16162
16187
  } else {
16163
16188
  isGoing = false;
16164
16189
  handleGetGiftInfo();
16165
- handleSetResult(result, times || spTimes, res["total-process"]);
16190
+ handleSetResult(result, times || spTimes);
16166
16191
  }
16167
16192
  } else if (res.error == -2) {
16168
16193
  isGoing = false;
@@ -16339,12 +16364,12 @@ function create_if_block$7(ctx) {
16339
16364
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
16340
16365
  }
16341
16366
  let if_block1 = (
16342
- /*isShowHistory*/
16343
- ctx[11] && create_if_block_3$4(ctx)
16367
+ /*isShowResult*/
16368
+ ctx[12] && create_if_block_2$7(ctx)
16344
16369
  );
16345
16370
  let if_block2 = (
16346
- /*isShowResult*/
16347
- ctx[13] && create_if_block_1$7(ctx)
16371
+ /*isShowHistory*/
16372
+ ctx[10] && create_if_block_1$7(ctx)
16348
16373
  );
16349
16374
  return {
16350
16375
  c() {
@@ -16354,28 +16379,28 @@ function create_if_block$7(ctx) {
16354
16379
  div4 = element("div");
16355
16380
  div3 = element("div");
16356
16381
  div1 = element("div");
16357
- div1.innerHTML = `<img class="imgIcon svelte-1hf8fls" src="https://asset.tuwan.com/goldMagic/learnMoreIcon.png"/>`;
16382
+ div1.innerHTML = `<img class="imgIcon svelte-1h7epg8" src="https://asset.tuwan.com/goldMagic/learnMoreIcon.png"/>`;
16358
16383
  t1 = space();
16359
16384
  div2 = element("div");
16360
- div2.innerHTML = `<img class="imgIcon svelte-1hf8fls" src="https://asset.tuwan.com/goldMagic/recordIcon.png"/>`;
16385
+ div2.innerHTML = `<img class="imgIcon svelte-1h7epg8" src="https://asset.tuwan.com/goldMagic/recordIcon.png"/>`;
16361
16386
  t2 = space();
16362
16387
  if (if_block0) if_block0.c();
16363
16388
  t3 = space();
16364
16389
  if (if_block1) if_block1.c();
16365
16390
  t4 = space();
16366
16391
  if (if_block2) if_block2.c();
16367
- attr(div0, "class", "coverBg svelte-1hf8fls");
16392
+ attr(div0, "class", "coverBg svelte-1h7epg8");
16368
16393
  attr(div0, "role", "presentation");
16369
- attr(div1, "class", "subCtn svelte-1hf8fls");
16370
- attr(div2, "class", "subCtn svelte-1hf8fls");
16371
- attr(div3, "class", "rightTopCtn svelte-1hf8fls");
16394
+ attr(div1, "class", "subCtn svelte-1h7epg8");
16395
+ attr(div2, "class", "subCtn svelte-1h7epg8");
16396
+ attr(div3, "class", "rightTopCtn svelte-1h7epg8");
16372
16397
  attr(div4, "class", div4_class_value = null_to_empty(
16373
16398
  /*currentType*/
16374
16399
  ctx[0] == "1" ? "goldMagicCtn magic" : (
16375
16400
  /*currentType*/
16376
16401
  ctx[0] == "2" ? "goldMagicCtn gold" : "goldMagicCtn magic"
16377
16402
  )
16378
- ) + " svelte-1hf8fls");
16403
+ ) + " svelte-1h7epg8");
16379
16404
  attr(div4, "role", "presentation");
16380
16405
  attr(div5, "role", "presentation");
16381
16406
  },
@@ -16409,21 +16434,21 @@ function create_if_block$7(ctx) {
16409
16434
  div1,
16410
16435
  "click",
16411
16436
  /*goToPage*/
16412
- ctx[18]
16437
+ ctx[17]
16413
16438
  ),
16414
16439
  listen(
16415
16440
  div2,
16416
16441
  "click",
16417
16442
  /*openGiftRecordList*/
16418
- ctx[17]
16443
+ ctx[16]
16419
16444
  ),
16420
16445
  listen(div4, "click", stop_propagation(
16421
16446
  /*click_handler_1*/
16422
- ctx[21]
16447
+ ctx[20]
16423
16448
  )),
16424
16449
  listen(div5, "click", stop_propagation(
16425
16450
  /*click_handler*/
16426
- ctx[20]
16451
+ ctx[19]
16427
16452
  ))
16428
16453
  ];
16429
16454
  mounted = true;
@@ -16460,17 +16485,17 @@ function create_if_block$7(ctx) {
16460
16485
  }
16461
16486
  }
16462
16487
  if (
16463
- /*isShowHistory*/
16464
- ctx[11]
16488
+ /*isShowResult*/
16489
+ ctx[12]
16465
16490
  ) {
16466
16491
  if (if_block1) {
16467
16492
  if_block1.p(ctx, dirty);
16468
- if (dirty & /*isShowHistory*/
16469
- 2048) {
16493
+ if (dirty & /*isShowResult*/
16494
+ 4096) {
16470
16495
  transition_in(if_block1, 1);
16471
16496
  }
16472
16497
  } else {
16473
- if_block1 = create_if_block_3$4(ctx);
16498
+ if_block1 = create_if_block_2$7(ctx);
16474
16499
  if_block1.c();
16475
16500
  transition_in(if_block1, 1);
16476
16501
  if_block1.m(div4, t4);
@@ -16483,13 +16508,13 @@ function create_if_block$7(ctx) {
16483
16508
  check_outros();
16484
16509
  }
16485
16510
  if (
16486
- /*isShowResult*/
16487
- ctx[13]
16511
+ /*isShowHistory*/
16512
+ ctx[10]
16488
16513
  ) {
16489
16514
  if (if_block2) {
16490
16515
  if_block2.p(ctx, dirty);
16491
- if (dirty & /*isShowResult*/
16492
- 8192) {
16516
+ if (dirty & /*isShowHistory*/
16517
+ 1024) {
16493
16518
  transition_in(if_block2, 1);
16494
16519
  }
16495
16520
  } else {
@@ -16512,7 +16537,7 @@ function create_if_block$7(ctx) {
16512
16537
  /*currentType*/
16513
16538
  ctx[0] == "2" ? "goldMagicCtn gold" : "goldMagicCtn magic"
16514
16539
  )
16515
- ) + " svelte-1hf8fls")) {
16540
+ ) + " svelte-1h7epg8")) {
16516
16541
  attr(div4, "class", div4_class_value);
16517
16542
  }
16518
16543
  },
@@ -16558,7 +16583,7 @@ function create_if_block_6$1(ctx) {
16558
16583
  ),
16559
16584
  handleSetResult: (
16560
16585
  /*handleSetResult*/
16561
- ctx[16]
16586
+ ctx[15]
16562
16587
  ),
16563
16588
  parentIgnore: (
16564
16589
  /*parentIgnore*/
@@ -16566,7 +16591,7 @@ function create_if_block_6$1(ctx) {
16566
16591
  ),
16567
16592
  handelChangeIgnore: (
16568
16593
  /*handelChangeIgnore*/
16569
- ctx[15]
16594
+ ctx[14]
16570
16595
  )
16571
16596
  }
16572
16597
  });
@@ -16619,11 +16644,11 @@ function create_if_block_5$2(ctx) {
16619
16644
  ),
16620
16645
  handleSetResult: (
16621
16646
  /*handleSetResult*/
16622
- ctx[16]
16647
+ ctx[15]
16623
16648
  )
16624
16649
  };
16625
16650
  gold = new Gold({ props: gold_props });
16626
- ctx[22](gold);
16651
+ ctx[21](gold);
16627
16652
  return {
16628
16653
  c() {
16629
16654
  create_component(gold.$$.fragment);
@@ -16652,7 +16677,7 @@ function create_if_block_5$2(ctx) {
16652
16677
  current = false;
16653
16678
  },
16654
16679
  d(detaching) {
16655
- ctx[22](null);
16680
+ ctx[21](null);
16656
16681
  destroy_component(gold, detaching);
16657
16682
  }
16658
16683
  };
@@ -16672,7 +16697,7 @@ function create_if_block_4$2(ctx) {
16672
16697
  ),
16673
16698
  handleSetResult: (
16674
16699
  /*handleSetResult*/
16675
- ctx[16]
16700
+ ctx[15]
16676
16701
  ),
16677
16702
  parentIgnore: (
16678
16703
  /*parentIgnore*/
@@ -16680,7 +16705,7 @@ function create_if_block_4$2(ctx) {
16680
16705
  ),
16681
16706
  handelChangeIgnore: (
16682
16707
  /*handelChangeIgnore*/
16683
- ctx[15]
16708
+ ctx[14]
16684
16709
  )
16685
16710
  }
16686
16711
  });
@@ -16719,76 +16744,12 @@ function create_if_block_4$2(ctx) {
16719
16744
  }
16720
16745
  };
16721
16746
  }
16722
- function create_if_block_3$4(ctx) {
16723
- let history;
16724
- let updating_onClose;
16725
- let current;
16726
- function history_onClose_binding(value) {
16727
- ctx[23](value);
16728
- }
16729
- let history_props = {
16730
- mode: (
16731
- /*currentType*/
16732
- ctx[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : (
16733
- /*currentType*/
16734
- ctx[0] == "2" ? RESULT_VIEW_TYPE$1.GOLD_TYPE : RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE
16735
- )
16736
- )
16737
- };
16738
- if (
16739
- /*handleChangeHistory*/
16740
- ctx[12] !== void 0
16741
- ) {
16742
- history_props.onClose = /*handleChangeHistory*/
16743
- ctx[12];
16744
- }
16745
- history = new History$1({ props: history_props });
16746
- binding_callbacks.push(() => bind(history, "onClose", history_onClose_binding));
16747
- return {
16748
- c() {
16749
- create_component(history.$$.fragment);
16750
- },
16751
- m(target, anchor) {
16752
- mount_component(history, target, anchor);
16753
- current = true;
16754
- },
16755
- p(ctx2, dirty) {
16756
- const history_changes = {};
16757
- if (dirty & /*currentType*/
16758
- 1) history_changes.mode = /*currentType*/
16759
- ctx2[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : (
16760
- /*currentType*/
16761
- ctx2[0] == "2" ? RESULT_VIEW_TYPE$1.GOLD_TYPE : RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE
16762
- );
16763
- if (!updating_onClose && dirty & /*handleChangeHistory*/
16764
- 4096) {
16765
- updating_onClose = true;
16766
- history_changes.onClose = /*handleChangeHistory*/
16767
- ctx2[12];
16768
- add_flush_callback(() => updating_onClose = false);
16769
- }
16770
- history.$set(history_changes);
16771
- },
16772
- i(local) {
16773
- if (current) return;
16774
- transition_in(history.$$.fragment, local);
16775
- current = true;
16776
- },
16777
- o(local) {
16778
- transition_out(history.$$.fragment, local);
16779
- current = false;
16780
- },
16781
- d(detaching) {
16782
- destroy_component(history, detaching);
16783
- }
16784
- };
16785
- }
16786
- function create_if_block_1$7(ctx) {
16747
+ function create_if_block_2$7(ctx) {
16787
16748
  let current_block_type_index;
16788
16749
  let if_block;
16789
16750
  let if_block_anchor;
16790
16751
  let current;
16791
- const if_block_creators = [create_if_block_2$7, create_else_block$5];
16752
+ const if_block_creators = [create_if_block_3$4, create_else_block$5];
16792
16753
  const if_blocks = [];
16793
16754
  function select_block_type_1(ctx2, dirty) {
16794
16755
  if (
@@ -16853,7 +16814,7 @@ function create_else_block$5(ctx) {
16853
16814
  let updating_onClose;
16854
16815
  let current;
16855
16816
  function result_1_onClose_binding(value) {
16856
- ctx[25](value);
16817
+ ctx[23](value);
16857
16818
  }
16858
16819
  let result_1_props = {
16859
16820
  num: (
@@ -16864,10 +16825,6 @@ function create_else_block$5(ctx) {
16864
16825
  /*result*/
16865
16826
  ctx[9]
16866
16827
  ),
16867
- showCrit: (
16868
- /*showCrit*/
16869
- ctx[10]
16870
- ),
16871
16828
  mode: (
16872
16829
  /*currentType*/
16873
16830
  ctx[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : RESULT_VIEW_TYPE$1.GOLD_TYPE
@@ -16878,15 +16835,15 @@ function create_else_block$5(ctx) {
16878
16835
  ),
16879
16836
  handelChangeIgnore: (
16880
16837
  /*handelChangeIgnore*/
16881
- ctx[15]
16838
+ ctx[14]
16882
16839
  )
16883
16840
  };
16884
16841
  if (
16885
16842
  /*handleChangeResult*/
16886
- ctx[14] !== void 0
16843
+ ctx[13] !== void 0
16887
16844
  ) {
16888
16845
  result_1_props.onClose = /*handleChangeResult*/
16889
- ctx[14];
16846
+ ctx[13];
16890
16847
  }
16891
16848
  result_1 = new Result$1({ props: result_1_props });
16892
16849
  binding_callbacks.push(() => bind(result_1, "onClose", result_1_onClose_binding));
@@ -16906,9 +16863,6 @@ function create_else_block$5(ctx) {
16906
16863
  if (dirty & /*result*/
16907
16864
  512) result_1_changes.result = /*result*/
16908
16865
  ctx2[9];
16909
- if (dirty & /*showCrit*/
16910
- 1024) result_1_changes.showCrit = /*showCrit*/
16911
- ctx2[10];
16912
16866
  if (dirty & /*currentType*/
16913
16867
  1) result_1_changes.mode = /*currentType*/
16914
16868
  ctx2[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : RESULT_VIEW_TYPE$1.GOLD_TYPE;
@@ -16916,10 +16870,10 @@ function create_else_block$5(ctx) {
16916
16870
  256) result_1_changes.parentIgnore = /*parentIgnore*/
16917
16871
  ctx2[8];
16918
16872
  if (!updating_onClose && dirty & /*handleChangeResult*/
16919
- 16384) {
16873
+ 8192) {
16920
16874
  updating_onClose = true;
16921
16875
  result_1_changes.onClose = /*handleChangeResult*/
16922
- ctx2[14];
16876
+ ctx2[13];
16923
16877
  add_flush_callback(() => updating_onClose = false);
16924
16878
  }
16925
16879
  result_1.$set(result_1_changes);
@@ -16938,12 +16892,12 @@ function create_else_block$5(ctx) {
16938
16892
  }
16939
16893
  };
16940
16894
  }
16941
- function create_if_block_2$7(ctx) {
16895
+ function create_if_block_3$4(ctx) {
16942
16896
  let newyearresult;
16943
16897
  let updating_onClose;
16944
16898
  let current;
16945
16899
  function newyearresult_onClose_binding(value) {
16946
- ctx[24](value);
16900
+ ctx[22](value);
16947
16901
  }
16948
16902
  let newyearresult_props = {
16949
16903
  num: (
@@ -16954,10 +16908,6 @@ function create_if_block_2$7(ctx) {
16954
16908
  /*result*/
16955
16909
  ctx[9]
16956
16910
  ),
16957
- showCrit: (
16958
- /*showCrit*/
16959
- ctx[10]
16960
- ),
16961
16911
  mode: RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE,
16962
16912
  parentIgnore: (
16963
16913
  /*parentIgnore*/
@@ -16965,15 +16915,15 @@ function create_if_block_2$7(ctx) {
16965
16915
  ),
16966
16916
  handelChangeIgnore: (
16967
16917
  /*handelChangeIgnore*/
16968
- ctx[15]
16918
+ ctx[14]
16969
16919
  )
16970
16920
  };
16971
16921
  if (
16972
16922
  /*handleChangeResult*/
16973
- ctx[14] !== void 0
16923
+ ctx[13] !== void 0
16974
16924
  ) {
16975
16925
  newyearresult_props.onClose = /*handleChangeResult*/
16976
- ctx[14];
16926
+ ctx[13];
16977
16927
  }
16978
16928
  newyearresult = new NewyearResult({ props: newyearresult_props });
16979
16929
  binding_callbacks.push(() => bind(newyearresult, "onClose", newyearresult_onClose_binding));
@@ -16993,17 +16943,14 @@ function create_if_block_2$7(ctx) {
16993
16943
  if (dirty & /*result*/
16994
16944
  512) newyearresult_changes.result = /*result*/
16995
16945
  ctx2[9];
16996
- if (dirty & /*showCrit*/
16997
- 1024) newyearresult_changes.showCrit = /*showCrit*/
16998
- ctx2[10];
16999
16946
  if (dirty & /*parentIgnore*/
17000
16947
  256) newyearresult_changes.parentIgnore = /*parentIgnore*/
17001
16948
  ctx2[8];
17002
16949
  if (!updating_onClose && dirty & /*handleChangeResult*/
17003
- 16384) {
16950
+ 8192) {
17004
16951
  updating_onClose = true;
17005
16952
  newyearresult_changes.onClose = /*handleChangeResult*/
17006
- ctx2[14];
16953
+ ctx2[13];
17007
16954
  add_flush_callback(() => updating_onClose = false);
17008
16955
  }
17009
16956
  newyearresult.$set(newyearresult_changes);
@@ -17022,6 +16969,70 @@ function create_if_block_2$7(ctx) {
17022
16969
  }
17023
16970
  };
17024
16971
  }
16972
+ function create_if_block_1$7(ctx) {
16973
+ let history;
16974
+ let updating_onClose;
16975
+ let current;
16976
+ function history_onClose_binding(value) {
16977
+ ctx[24](value);
16978
+ }
16979
+ let history_props = {
16980
+ mode: (
16981
+ /*currentType*/
16982
+ ctx[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : (
16983
+ /*currentType*/
16984
+ ctx[0] == "2" ? RESULT_VIEW_TYPE$1.GOLD_TYPE : RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE
16985
+ )
16986
+ )
16987
+ };
16988
+ if (
16989
+ /*handleChangeHistory*/
16990
+ ctx[11] !== void 0
16991
+ ) {
16992
+ history_props.onClose = /*handleChangeHistory*/
16993
+ ctx[11];
16994
+ }
16995
+ history = new History$1({ props: history_props });
16996
+ binding_callbacks.push(() => bind(history, "onClose", history_onClose_binding));
16997
+ return {
16998
+ c() {
16999
+ create_component(history.$$.fragment);
17000
+ },
17001
+ m(target, anchor) {
17002
+ mount_component(history, target, anchor);
17003
+ current = true;
17004
+ },
17005
+ p(ctx2, dirty) {
17006
+ const history_changes = {};
17007
+ if (dirty & /*currentType*/
17008
+ 1) history_changes.mode = /*currentType*/
17009
+ ctx2[0] == "1" ? RESULT_VIEW_TYPE$1.CRYSTAL_TYPE : (
17010
+ /*currentType*/
17011
+ ctx2[0] == "2" ? RESULT_VIEW_TYPE$1.GOLD_TYPE : RESULT_VIEW_TYPE$1.NEW_YEAR_TYPE
17012
+ );
17013
+ if (!updating_onClose && dirty & /*handleChangeHistory*/
17014
+ 2048) {
17015
+ updating_onClose = true;
17016
+ history_changes.onClose = /*handleChangeHistory*/
17017
+ ctx2[11];
17018
+ add_flush_callback(() => updating_onClose = false);
17019
+ }
17020
+ history.$set(history_changes);
17021
+ },
17022
+ i(local) {
17023
+ if (current) return;
17024
+ transition_in(history.$$.fragment, local);
17025
+ current = true;
17026
+ },
17027
+ o(local) {
17028
+ transition_out(history.$$.fragment, local);
17029
+ current = false;
17030
+ },
17031
+ d(detaching) {
17032
+ destroy_component(history, detaching);
17033
+ }
17034
+ };
17035
+ }
17025
17036
  function create_fragment$7(ctx) {
17026
17037
  let if_block_anchor;
17027
17038
  let current;
@@ -17093,28 +17104,26 @@ function instance$7($$self, $$props, $$invalidate) {
17093
17104
  let newyearResData = null;
17094
17105
  let parentIgnore = false;
17095
17106
  let result = [];
17096
- let showCrit = false;
17097
17107
  let handelChangeIgnore = () => {
17098
17108
  $$invalidate(8, parentIgnore = !parentIgnore);
17099
17109
  };
17100
17110
  let isShowHistory = false;
17101
17111
  let handleChangeHistory = function() {
17102
- $$invalidate(11, isShowHistory = !isShowHistory);
17112
+ $$invalidate(10, isShowHistory = !isShowHistory);
17103
17113
  };
17104
17114
  let isShowResult = false;
17105
17115
  let handleChangeResult = function() {
17106
17116
  $$invalidate(2, flag = flag + 1);
17107
- $$invalidate(13, isShowResult = !isShowResult);
17117
+ $$invalidate(12, isShowResult = !isShowResult);
17108
17118
  };
17109
- let handleSetResult = function(dataArr, times = 1, totalProcess) {
17119
+ let handleSetResult = function(dataArr, times = 1) {
17110
17120
  $$invalidate(9, result = dataArr);
17111
- $$invalidate(13, isShowResult = !isShowResult);
17112
- $$invalidate(13, isShowResult = true);
17121
+ $$invalidate(12, isShowResult = !isShowResult);
17122
+ $$invalidate(12, isShowResult = true);
17113
17123
  $$invalidate(3, num = times);
17114
- $$invalidate(10, showCrit = Number(totalProcess) == 1);
17115
17124
  };
17116
17125
  let openGiftRecordList = function() {
17117
- $$invalidate(11, isShowHistory = true);
17126
+ $$invalidate(10, isShowHistory = true);
17118
17127
  };
17119
17128
  let goToPage = function() {
17120
17129
  if (explain_url) {
@@ -17146,21 +17155,21 @@ function instance$7($$self, $$props, $$invalidate) {
17146
17155
  $$invalidate(4, goldChild);
17147
17156
  });
17148
17157
  }
17149
- function history_onClose_binding(value) {
17150
- handleChangeHistory = value;
17151
- $$invalidate(12, handleChangeHistory);
17152
- }
17153
17158
  function newyearresult_onClose_binding(value) {
17154
17159
  handleChangeResult = value;
17155
- $$invalidate(14, handleChangeResult);
17160
+ $$invalidate(13, handleChangeResult);
17156
17161
  }
17157
17162
  function result_1_onClose_binding(value) {
17158
17163
  handleChangeResult = value;
17159
- $$invalidate(14, handleChangeResult);
17164
+ $$invalidate(13, handleChangeResult);
17165
+ }
17166
+ function history_onClose_binding(value) {
17167
+ handleChangeHistory = value;
17168
+ $$invalidate(11, handleChangeHistory);
17160
17169
  }
17161
17170
  $$self.$$set = ($$props2) => {
17162
17171
  if ("currentType" in $$props2) $$invalidate(0, currentType = $$props2.currentType);
17163
- if ("explain_url" in $$props2) $$invalidate(19, explain_url = $$props2.explain_url);
17172
+ if ("explain_url" in $$props2) $$invalidate(18, explain_url = $$props2.explain_url);
17164
17173
  if ("closeModal" in $$props2) $$invalidate(1, closeModal = $$props2.closeModal);
17165
17174
  };
17166
17175
  return [
@@ -17174,7 +17183,6 @@ function instance$7($$self, $$props, $$invalidate) {
17174
17183
  newyearResData,
17175
17184
  parentIgnore,
17176
17185
  result,
17177
- showCrit,
17178
17186
  isShowHistory,
17179
17187
  handleChangeHistory,
17180
17188
  isShowResult,
@@ -17187,9 +17195,9 @@ function instance$7($$self, $$props, $$invalidate) {
17187
17195
  click_handler,
17188
17196
  click_handler_12,
17189
17197
  gold_binding,
17190
- history_onClose_binding,
17191
17198
  newyearresult_onClose_binding,
17192
- result_1_onClose_binding
17199
+ result_1_onClose_binding,
17200
+ history_onClose_binding
17193
17201
  ];
17194
17202
  }
17195
17203
  class GoldMagic extends SvelteComponent {
@@ -17197,7 +17205,7 @@ class GoldMagic extends SvelteComponent {
17197
17205
  super();
17198
17206
  init(this, options2, instance$7, create_fragment$7, safe_not_equal, {
17199
17207
  currentType: 0,
17200
- explain_url: 19,
17208
+ explain_url: 18,
17201
17209
  closeModal: 1
17202
17210
  });
17203
17211
  }
@@ -17724,7 +17732,7 @@ function create_else_block_1(ctx) {
17724
17732
  img = element("img");
17725
17733
  if (!src_url_equal(img.src, img_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/loveTitleResult.png")) attr(img, "src", img_src_value);
17726
17734
  attr(img, "alt", "");
17727
- attr(img, "class", "svelte-sghukg");
17735
+ attr(img, "class", "svelte-2kbaqk");
17728
17736
  },
17729
17737
  m(target, anchor) {
17730
17738
  insert(target, img, anchor);
@@ -17744,7 +17752,7 @@ function create_if_block_5(ctx) {
17744
17752
  img = element("img");
17745
17753
  if (!src_url_equal(img.src, img_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/luckyTitleResult.png")) attr(img, "src", img_src_value);
17746
17754
  attr(img, "alt", "");
17747
- attr(img, "class", "svelte-sghukg");
17755
+ attr(img, "class", "svelte-2kbaqk");
17748
17756
  },
17749
17757
  m(target, anchor) {
17750
17758
  insert(target, img, anchor);
@@ -17772,14 +17780,14 @@ function create_if_block_4(ctx) {
17772
17780
  span = element("span");
17773
17781
  t1 = text(
17774
17782
  /*hitTimes*/
17775
- ctx[9]
17783
+ ctx[8]
17776
17784
  );
17777
17785
  t2 = text("次");
17778
17786
  attr(img, "alt", "");
17779
- attr(img, "class", "imgIcon svelte-sghukg");
17787
+ attr(img, "class", "imgIcon svelte-2kbaqk");
17780
17788
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
17781
- attr(span, "class", "wordCtn svelte-sghukg");
17782
- attr(div, "class", "subCtn svelte-sghukg");
17789
+ attr(span, "class", "wordCtn svelte-2kbaqk");
17790
+ attr(div, "class", "subCtn svelte-2kbaqk");
17783
17791
  },
17784
17792
  m(target, anchor) {
17785
17793
  insert(target, div, anchor);
@@ -17791,10 +17799,10 @@ function create_if_block_4(ctx) {
17791
17799
  },
17792
17800
  p(ctx2, dirty) {
17793
17801
  if (dirty[0] & /*hitTimes*/
17794
- 512) set_data(
17802
+ 256) set_data(
17795
17803
  t1,
17796
17804
  /*hitTimes*/
17797
- ctx2[9]
17805
+ ctx2[8]
17798
17806
  );
17799
17807
  },
17800
17808
  d(detaching) {
@@ -17815,7 +17823,7 @@ function create_each_block$1(ctx) {
17815
17823
  ),
17816
17824
  mode: (
17817
17825
  /*mode*/
17818
- ctx[3]
17826
+ ctx[2]
17819
17827
  ),
17820
17828
  num: (
17821
17829
  /*item*/
@@ -17843,7 +17851,7 @@ function create_each_block$1(ctx) {
17843
17851
  ),
17844
17852
  hit: (
17845
17853
  /*mode*/
17846
- ctx[3] == RESULT_VIEW_TYPE.LOVE_TYPE ? (
17854
+ ctx[2] == RESULT_VIEW_TYPE.LOVE_TYPE ? (
17847
17855
  /*item*/
17848
17856
  ctx[32].hit
17849
17857
  ) : 0
@@ -17865,8 +17873,8 @@ function create_each_block$1(ctx) {
17865
17873
  p(ctx2, dirty) {
17866
17874
  const resultgiftitem_changes = {};
17867
17875
  if (dirty[0] & /*mode*/
17868
- 8) resultgiftitem_changes.mode = /*mode*/
17869
- ctx2[3];
17876
+ 4) resultgiftitem_changes.mode = /*mode*/
17877
+ ctx2[2];
17870
17878
  if (dirty[0] & /*result*/
17871
17879
  1) resultgiftitem_changes.num = /*item*/
17872
17880
  ctx2[32].uids[0].num;
@@ -17886,8 +17894,8 @@ function create_each_block$1(ctx) {
17886
17894
  1) resultgiftitem_changes.open_val = /*item*/
17887
17895
  ctx2[32].open_val;
17888
17896
  if (dirty[0] & /*mode, result*/
17889
- 9) resultgiftitem_changes.hit = /*mode*/
17890
- ctx2[3] == RESULT_VIEW_TYPE.LOVE_TYPE ? (
17897
+ 5) resultgiftitem_changes.hit = /*mode*/
17898
+ ctx2[2] == RESULT_VIEW_TYPE.LOVE_TYPE ? (
17891
17899
  /*item*/
17892
17900
  ctx2[32].hit
17893
17901
  ) : 0;
@@ -17925,7 +17933,7 @@ function create_else_block$4(ctx) {
17925
17933
  let dispose;
17926
17934
  let if_block = (
17927
17935
  /*showCrit*/
17928
- ctx[2] && create_if_block_3$2()
17936
+ ctx[11] && create_if_block_3$2()
17929
17937
  );
17930
17938
  return {
17931
17939
  c() {
@@ -17942,12 +17950,12 @@ function create_else_block$4(ctx) {
17942
17950
  t4 = text("次\r\n ");
17943
17951
  if (if_block) if_block.c();
17944
17952
  attr(div0, "class", div0_class_value = null_to_empty(`normalBtn ${/*mode*/
17945
- ctx[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg");
17953
+ ctx[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk");
17946
17954
  attr(div0, "role", "presentation");
17947
17955
  attr(div1, "class", div1_class_value = null_to_empty(`normalBtn againBtn ${/*mode*/
17948
- ctx[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg");
17956
+ ctx[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk");
17949
17957
  attr(div1, "role", "presentation");
17950
- attr(div2, "class", "buttonCtn svelte-sghukg");
17958
+ attr(div2, "class", "buttonCtn svelte-2kbaqk");
17951
17959
  },
17952
17960
  m(target, anchor) {
17953
17961
  insert(target, div2, anchor);
@@ -17979,8 +17987,8 @@ function create_else_block$4(ctx) {
17979
17987
  },
17980
17988
  p(ctx2, dirty) {
17981
17989
  if (dirty[0] & /*mode*/
17982
- 8 && div0_class_value !== (div0_class_value = null_to_empty(`normalBtn ${/*mode*/
17983
- ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg")) {
17990
+ 4 && div0_class_value !== (div0_class_value = null_to_empty(`normalBtn ${/*mode*/
17991
+ ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk")) {
17984
17992
  attr(div0, "class", div0_class_value);
17985
17993
  }
17986
17994
  if (dirty[0] & /*lastOpenTimes*/
@@ -17991,7 +17999,7 @@ function create_else_block$4(ctx) {
17991
17999
  );
17992
18000
  if (
17993
18001
  /*showCrit*/
17994
- ctx2[2]
18002
+ ctx2[11]
17995
18003
  ) {
17996
18004
  if (if_block) {
17997
18005
  if_block.p(ctx2, dirty);
@@ -18005,8 +18013,8 @@ function create_else_block$4(ctx) {
18005
18013
  if_block = null;
18006
18014
  }
18007
18015
  if (dirty[0] & /*mode*/
18008
- 8 && div1_class_value !== (div1_class_value = null_to_empty(`normalBtn againBtn ${/*mode*/
18009
- ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg")) {
18016
+ 4 && div1_class_value !== (div1_class_value = null_to_empty(`normalBtn againBtn ${/*mode*/
18017
+ ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk")) {
18010
18018
  attr(div1, "class", div1_class_value);
18011
18019
  }
18012
18020
  },
@@ -18036,8 +18044,8 @@ function create_if_block_1$5(ctx) {
18036
18044
  let dispose;
18037
18045
  let if_block = (
18038
18046
  /*times*/
18039
- ctx[10] && /*unit_price*/
18040
- ctx[5] && create_if_block_2$5(ctx)
18047
+ ctx[9] && /*unit_price*/
18048
+ ctx[4] && create_if_block_2$5(ctx)
18041
18049
  );
18042
18050
  return {
18043
18051
  c() {
@@ -18051,19 +18059,17 @@ function create_if_block_1$5(ctx) {
18051
18059
  t1 = space();
18052
18060
  div2 = element("div");
18053
18061
  t2 = text("确定");
18054
- attr(input, "class", "inp svelte-sghukg");
18062
+ attr(input, "class", "inp svelte-2kbaqk");
18055
18063
  attr(input, "placeholder", "输入数量");
18056
18064
  attr(input, "type", "number");
18057
- attr(div0, "class", "svelte-sghukg");
18058
- attr(div1, "class", "inputNumWarpper svelte-sghukg");
18065
+ attr(div0, "class", "svelte-2kbaqk");
18066
+ attr(div1, "class", "inputNumWarpper svelte-2kbaqk");
18059
18067
  attr(div2, "role", "presentation");
18060
18068
  attr(div2, "class", div2_class_value = null_to_empty(`smallBtnCtn ${/*mode*/
18061
- ctx[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg");
18069
+ ctx[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk");
18062
18070
  attr(div3, "class", div3_class_value = null_to_empty(`inputNumCtn ${/*mode*/
18063
- ctx[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg");
18064
- attr(div4, "class", "buttonCtn svelte-sghukg");
18065
- set_style(div4, "display", "flex");
18066
- set_style(div4, "justify-content", "center");
18071
+ ctx[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk");
18072
+ attr(div4, "class", "buttonCtn svelte-2kbaqk");
18067
18073
  },
18068
18074
  m(target, anchor) {
18069
18075
  insert(target, div4, anchor);
@@ -18073,7 +18079,7 @@ function create_if_block_1$5(ctx) {
18073
18079
  set_input_value(
18074
18080
  input,
18075
18081
  /*times*/
18076
- ctx[10]
18082
+ ctx[9]
18077
18083
  );
18078
18084
  append(div1, t0);
18079
18085
  append(div1, div0);
@@ -18107,18 +18113,18 @@ function create_if_block_1$5(ctx) {
18107
18113
  },
18108
18114
  p(ctx2, dirty) {
18109
18115
  if (dirty[0] & /*times*/
18110
- 1024 && to_number(input.value) !== /*times*/
18111
- ctx2[10]) {
18116
+ 512 && to_number(input.value) !== /*times*/
18117
+ ctx2[9]) {
18112
18118
  set_input_value(
18113
18119
  input,
18114
18120
  /*times*/
18115
- ctx2[10]
18121
+ ctx2[9]
18116
18122
  );
18117
18123
  }
18118
18124
  if (
18119
18125
  /*times*/
18120
- ctx2[10] && /*unit_price*/
18121
- ctx2[5]
18126
+ ctx2[9] && /*unit_price*/
18127
+ ctx2[4]
18122
18128
  ) {
18123
18129
  if (if_block) {
18124
18130
  if_block.p(ctx2, dirty);
@@ -18132,13 +18138,13 @@ function create_if_block_1$5(ctx) {
18132
18138
  if_block = null;
18133
18139
  }
18134
18140
  if (dirty[0] & /*mode*/
18135
- 8 && div2_class_value !== (div2_class_value = null_to_empty(`smallBtnCtn ${/*mode*/
18136
- ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg")) {
18141
+ 4 && div2_class_value !== (div2_class_value = null_to_empty(`smallBtnCtn ${/*mode*/
18142
+ ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk")) {
18137
18143
  attr(div2, "class", div2_class_value);
18138
18144
  }
18139
18145
  if (dirty[0] & /*mode*/
18140
- 8 && div3_class_value !== (div3_class_value = null_to_empty(`inputNumCtn ${/*mode*/
18141
- ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-sghukg")) {
18146
+ 4 && div3_class_value !== (div3_class_value = null_to_empty(`inputNumCtn ${/*mode*/
18147
+ ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-2kbaqk")) {
18142
18148
  attr(div3, "class", div3_class_value);
18143
18149
  }
18144
18150
  },
@@ -18158,7 +18164,7 @@ function create_if_block_3$2(ctx) {
18158
18164
  return {
18159
18165
  c() {
18160
18166
  img = element("img");
18161
- attr(img, "class", "critIcon svelte-sghukg");
18167
+ attr(img, "class", "critIcon svelte-2kbaqk");
18162
18168
  if (!src_url_equal(img.src, img_src_value = CRIT_ICON)) attr(img, "src", img_src_value);
18163
18169
  attr(img, "alt", "");
18164
18170
  },
@@ -18177,8 +18183,8 @@ function create_if_block_2$5(ctx) {
18177
18183
  let span;
18178
18184
  let t0_value = (
18179
18185
  /*times*/
18180
- ctx[10] * /*unit_price*/
18181
- ctx[5] + ""
18186
+ ctx[9] * /*unit_price*/
18187
+ ctx[4] + ""
18182
18188
  );
18183
18189
  let t0;
18184
18190
  let t1;
@@ -18187,7 +18193,7 @@ function create_if_block_2$5(ctx) {
18187
18193
  span = element("span");
18188
18194
  t0 = text(t0_value);
18189
18195
  t1 = text("钻石");
18190
- attr(span, "class", "svelte-sghukg");
18196
+ attr(span, "class", "svelte-2kbaqk");
18191
18197
  },
18192
18198
  m(target, anchor) {
18193
18199
  insert(target, span, anchor);
@@ -18196,9 +18202,9 @@ function create_if_block_2$5(ctx) {
18196
18202
  },
18197
18203
  p(ctx2, dirty) {
18198
18204
  if (dirty[0] & /*times, unit_price*/
18199
- 1056 && t0_value !== (t0_value = /*times*/
18200
- ctx2[10] * /*unit_price*/
18201
- ctx2[5] + "")) set_data(t0, t0_value);
18205
+ 528 && t0_value !== (t0_value = /*times*/
18206
+ ctx2[9] * /*unit_price*/
18207
+ ctx2[4] + "")) set_data(t0, t0_value);
18202
18208
  },
18203
18209
  d(detaching) {
18204
18210
  if (detaching) {
@@ -18217,7 +18223,7 @@ function create_if_block$5(ctx) {
18217
18223
  /*expiresText*/
18218
18224
  ctx[12]
18219
18225
  );
18220
- attr(div, "class", "expiresTips svelte-sghukg");
18226
+ attr(div, "class", "expiresTips svelte-2kbaqk");
18221
18227
  },
18222
18228
  m(target, anchor) {
18223
18229
  insert(target, div, anchor);
@@ -18239,7 +18245,7 @@ function create_if_block$5(ctx) {
18239
18245
  };
18240
18246
  }
18241
18247
  function create_fragment$5(ctx) {
18242
- let div10;
18248
+ let div11;
18243
18249
  let div0;
18244
18250
  let t0;
18245
18251
  let div3;
@@ -18257,13 +18263,14 @@ function create_fragment$5(ctx) {
18257
18263
  let t4;
18258
18264
  let show_if = Number(
18259
18265
  /*hitTimes*/
18260
- ctx[9]
18266
+ ctx[8]
18261
18267
  ) > 0;
18262
18268
  let t5;
18263
18269
  let div5;
18264
18270
  let div4;
18265
18271
  let div5_class_value;
18266
18272
  let t6;
18273
+ let div9;
18267
18274
  let t7;
18268
18275
  let div8;
18269
18276
  let div6;
@@ -18279,15 +18286,15 @@ function create_fragment$5(ctx) {
18279
18286
  let div7_class_value;
18280
18287
  let t14;
18281
18288
  let t15;
18282
- let div9;
18283
- let div10_class_value;
18289
+ let div10;
18290
+ let div11_class_value;
18284
18291
  let current;
18285
18292
  let mounted;
18286
18293
  let dispose;
18287
18294
  function select_block_type(ctx2, dirty) {
18288
18295
  if (
18289
18296
  /*mode*/
18290
- ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE
18297
+ ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE
18291
18298
  ) return create_if_block_5;
18292
18299
  return create_else_block_1;
18293
18300
  }
@@ -18308,7 +18315,7 @@ function create_fragment$5(ctx) {
18308
18315
  function select_block_type_1(ctx2, dirty) {
18309
18316
  if (
18310
18317
  /*radioIsSelected*/
18311
- ctx2[11]
18318
+ ctx2[10]
18312
18319
  ) return create_if_block_1$5;
18313
18320
  return create_else_block$4;
18314
18321
  }
@@ -18320,7 +18327,7 @@ function create_fragment$5(ctx) {
18320
18327
  );
18321
18328
  return {
18322
18329
  c() {
18323
- div10 = element("div");
18330
+ div11 = element("div");
18324
18331
  div0 = element("div");
18325
18332
  if_block0.c();
18326
18333
  t0 = space();
@@ -18330,7 +18337,7 @@ function create_fragment$5(ctx) {
18330
18337
  span0 = element("span");
18331
18338
  t1 = text(
18332
18339
  /*diamondStr*/
18333
- ctx[7]
18340
+ ctx[6]
18334
18341
  );
18335
18342
  t2 = space();
18336
18343
  div2 = element("div");
@@ -18338,7 +18345,7 @@ function create_fragment$5(ctx) {
18338
18345
  span1 = element("span");
18339
18346
  t3 = text(
18340
18347
  /*money_str*/
18341
- ctx[8]
18348
+ ctx[7]
18342
18349
  );
18343
18350
  t4 = space();
18344
18351
  if (if_block1) if_block1.c();
@@ -18349,6 +18356,7 @@ function create_fragment$5(ctx) {
18349
18356
  each_blocks[i2].c();
18350
18357
  }
18351
18358
  t6 = space();
18359
+ div9 = element("div");
18352
18360
  if_block2.c();
18353
18361
  t7 = space();
18354
18362
  div8 = element("div");
@@ -18360,55 +18368,56 @@ function create_fragment$5(ctx) {
18360
18368
  t10 = space();
18361
18369
  div7 = element("div");
18362
18370
  span3 = element("span");
18363
- span3.innerHTML = `<img alt="" class="radioImg default svelte-sghukg" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-sghukg" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
18371
+ span3.innerHTML = `<img alt="" class="radioImg default svelte-2kbaqk" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-2kbaqk" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
18364
18372
  t12 = space();
18365
18373
  span4 = element("span");
18366
18374
  span4.textContent = "自定义开启数量";
18367
18375
  t14 = space();
18368
18376
  if (if_block3) if_block3.c();
18369
18377
  t15 = space();
18370
- div9 = element("div");
18371
- attr(div0, "class", "openGiftTitle svelte-sghukg");
18378
+ div10 = element("div");
18379
+ attr(div0, "class", "openGiftTitle svelte-2kbaqk");
18372
18380
  attr(img0, "alt", "");
18373
- attr(img0, "class", "imgIcon svelte-sghukg");
18381
+ attr(img0, "class", "imgIcon svelte-2kbaqk");
18374
18382
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/diamond3.png")) attr(img0, "src", img0_src_value);
18375
- attr(span0, "class", "wordCtn svelte-sghukg");
18376
- attr(div1, "class", "subCtn svelte-sghukg");
18383
+ attr(span0, "class", "wordCtn svelte-2kbaqk");
18384
+ attr(div1, "class", "subCtn svelte-2kbaqk");
18377
18385
  attr(img1, "alt", "");
18378
- attr(img1, "class", "imgIcon svelte-sghukg");
18386
+ attr(img1, "class", "imgIcon svelte-2kbaqk");
18379
18387
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/money3.png")) attr(img1, "src", img1_src_value);
18380
- attr(span1, "class", "wordCtn svelte-sghukg");
18381
- attr(div2, "class", "subCtn svelte-sghukg");
18382
- attr(div3, "class", "leftTopCtn svelte-sghukg");
18383
- attr(div4, "class", "result_content svelte-sghukg");
18388
+ attr(span1, "class", "wordCtn svelte-2kbaqk");
18389
+ attr(div2, "class", "subCtn svelte-2kbaqk");
18390
+ attr(div3, "class", "leftTopCtn svelte-2kbaqk");
18391
+ attr(div4, "class", "result_content svelte-2kbaqk");
18384
18392
  attr(div5, "class", div5_class_value = /*result*/
18385
18393
  (ctx[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
18386
- (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-sghukg");
18387
- attr(i, "class", "svelte-sghukg");
18388
- attr(span2, "class", "svelte-sghukg");
18394
+ (ctx[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-2kbaqk");
18395
+ attr(i, "class", "svelte-2kbaqk");
18396
+ attr(span2, "class", "svelte-2kbaqk");
18389
18397
  attr(div6, "class", div6_class_value = null_to_empty(
18390
18398
  /*parentIgnore*/
18391
- ctx[4] ? "result_action_ignore ignore" : "result_action_ignore"
18392
- ) + " svelte-sghukg");
18399
+ ctx[3] ? "result_action_ignore ignore" : "result_action_ignore"
18400
+ ) + " svelte-2kbaqk");
18393
18401
  attr(div6, "role", "presentation");
18394
- attr(span3, "class", "spCtn svelte-sghukg");
18395
- attr(span4, "class", "changeWordCtn svelte-sghukg");
18402
+ attr(span3, "class", "spCtn svelte-2kbaqk");
18403
+ attr(span4, "class", "changeWordCtn svelte-2kbaqk");
18396
18404
  attr(div7, "role", "presentation");
18397
18405
  attr(div7, "class", div7_class_value = null_to_empty(
18398
18406
  /*radioIsSelected*/
18399
- ctx[11] ? "radioCtn active" : "radioCtn"
18400
- ) + " svelte-sghukg");
18401
- attr(div8, "class", "footerBottomCtn svelte-sghukg");
18402
- attr(div9, "class", "result_vap_anim svelte-sghukg");
18403
- attr(div10, "class", div10_class_value = "result_container " + /*mode*/
18404
- (ctx[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-sghukg");
18407
+ ctx[10] ? "radioCtn active" : "radioCtn"
18408
+ ) + " svelte-2kbaqk");
18409
+ attr(div8, "class", "footerBottomCtn svelte-2kbaqk");
18410
+ attr(div9, "class", "open-actions svelte-2kbaqk");
18411
+ attr(div10, "class", "result_vap_anim svelte-2kbaqk");
18412
+ attr(div11, "class", div11_class_value = "result_container " + /*mode*/
18413
+ (ctx[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-2kbaqk");
18405
18414
  },
18406
18415
  m(target, anchor) {
18407
- insert(target, div10, anchor);
18408
- append(div10, div0);
18416
+ insert(target, div11, anchor);
18417
+ append(div11, div0);
18409
18418
  if_block0.m(div0, null);
18410
- append(div10, t0);
18411
- append(div10, div3);
18419
+ append(div11, t0);
18420
+ append(div11, div3);
18412
18421
  append(div3, div1);
18413
18422
  append(div1, img0);
18414
18423
  append(div1, span0);
@@ -18420,18 +18429,19 @@ function create_fragment$5(ctx) {
18420
18429
  append(span1, t3);
18421
18430
  append(div3, t4);
18422
18431
  if (if_block1) if_block1.m(div3, null);
18423
- append(div10, t5);
18424
- append(div10, div5);
18432
+ append(div11, t5);
18433
+ append(div11, div5);
18425
18434
  append(div5, div4);
18426
18435
  for (let i2 = 0; i2 < each_blocks.length; i2 += 1) {
18427
18436
  if (each_blocks[i2]) {
18428
18437
  each_blocks[i2].m(div4, null);
18429
18438
  }
18430
18439
  }
18431
- append(div10, t6);
18432
- if_block2.m(div10, null);
18433
- append(div10, t7);
18434
- append(div10, div8);
18440
+ append(div11, t6);
18441
+ append(div11, div9);
18442
+ if_block2.m(div9, null);
18443
+ append(div9, t7);
18444
+ append(div9, div8);
18435
18445
  append(div8, div6);
18436
18446
  append(div6, i);
18437
18447
  append(div6, t8);
@@ -18441,11 +18451,11 @@ function create_fragment$5(ctx) {
18441
18451
  append(div7, span3);
18442
18452
  append(div7, t12);
18443
18453
  append(div7, span4);
18444
- append(div10, t14);
18445
- if (if_block3) if_block3.m(div10, null);
18446
- append(div10, t15);
18447
- append(div10, div9);
18448
- ctx[24](div9);
18454
+ append(div9, t14);
18455
+ if (if_block3) if_block3.m(div9, null);
18456
+ append(div11, t15);
18457
+ append(div11, div10);
18458
+ ctx[24](div10);
18449
18459
  current = true;
18450
18460
  if (!mounted) {
18451
18461
  dispose = [
@@ -18475,21 +18485,21 @@ function create_fragment$5(ctx) {
18475
18485
  }
18476
18486
  }
18477
18487
  if (!current || dirty[0] & /*diamondStr*/
18478
- 128) set_data(
18488
+ 64) set_data(
18479
18489
  t1,
18480
18490
  /*diamondStr*/
18481
- ctx2[7]
18491
+ ctx2[6]
18482
18492
  );
18483
18493
  if (!current || dirty[0] & /*money_str*/
18484
- 256) set_data(
18494
+ 128) set_data(
18485
18495
  t3,
18486
18496
  /*money_str*/
18487
- ctx2[8]
18497
+ ctx2[7]
18488
18498
  );
18489
18499
  if (dirty[0] & /*hitTimes*/
18490
- 512) show_if = Number(
18500
+ 256) show_if = Number(
18491
18501
  /*hitTimes*/
18492
- ctx2[9]
18502
+ ctx2[8]
18493
18503
  ) > 0;
18494
18504
  if (show_if) {
18495
18505
  if (if_block1) {
@@ -18504,7 +18514,7 @@ function create_fragment$5(ctx) {
18504
18514
  if_block1 = null;
18505
18515
  }
18506
18516
  if (dirty[0] & /*mode, result*/
18507
- 9) {
18517
+ 5) {
18508
18518
  each_value = ensure_array_like(
18509
18519
  /*result*/
18510
18520
  ctx2[0]
@@ -18531,7 +18541,7 @@ function create_fragment$5(ctx) {
18531
18541
  if (!current || dirty[0] & /*result*/
18532
18542
  1 && div5_class_value !== (div5_class_value = /*result*/
18533
18543
  (ctx2[0].length == 1 ? "flex-jc" : "") + " " + /*result*/
18534
- (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-sghukg")) {
18544
+ (ctx2[0].length < 7 ? "result_wrapper scroll_bar_light_purple flex-ac" : "result_wrapper scroll_bar_light_purple flex-as") + " svelte-2kbaqk")) {
18535
18545
  attr(div5, "class", div5_class_value);
18536
18546
  }
18537
18547
  if (current_block_type_1 === (current_block_type_1 = select_block_type_1(ctx2)) && if_block2) {
@@ -18541,21 +18551,21 @@ function create_fragment$5(ctx) {
18541
18551
  if_block2 = current_block_type_1(ctx2);
18542
18552
  if (if_block2) {
18543
18553
  if_block2.c();
18544
- if_block2.m(div10, t7);
18554
+ if_block2.m(div9, t7);
18545
18555
  }
18546
18556
  }
18547
18557
  if (!current || dirty[0] & /*parentIgnore*/
18548
- 16 && div6_class_value !== (div6_class_value = null_to_empty(
18558
+ 8 && div6_class_value !== (div6_class_value = null_to_empty(
18549
18559
  /*parentIgnore*/
18550
- ctx2[4] ? "result_action_ignore ignore" : "result_action_ignore"
18551
- ) + " svelte-sghukg")) {
18560
+ ctx2[3] ? "result_action_ignore ignore" : "result_action_ignore"
18561
+ ) + " svelte-2kbaqk")) {
18552
18562
  attr(div6, "class", div6_class_value);
18553
18563
  }
18554
18564
  if (!current || dirty[0] & /*radioIsSelected*/
18555
- 2048 && div7_class_value !== (div7_class_value = null_to_empty(
18565
+ 1024 && div7_class_value !== (div7_class_value = null_to_empty(
18556
18566
  /*radioIsSelected*/
18557
- ctx2[11] ? "radioCtn active" : "radioCtn"
18558
- ) + " svelte-sghukg")) {
18567
+ ctx2[10] ? "radioCtn active" : "radioCtn"
18568
+ ) + " svelte-2kbaqk")) {
18559
18569
  attr(div7, "class", div7_class_value);
18560
18570
  }
18561
18571
  if (
@@ -18567,16 +18577,16 @@ function create_fragment$5(ctx) {
18567
18577
  } else {
18568
18578
  if_block3 = create_if_block$5(ctx2);
18569
18579
  if_block3.c();
18570
- if_block3.m(div10, t15);
18580
+ if_block3.m(div9, null);
18571
18581
  }
18572
18582
  } else if (if_block3) {
18573
18583
  if_block3.d(1);
18574
18584
  if_block3 = null;
18575
18585
  }
18576
18586
  if (!current || dirty[0] & /*mode*/
18577
- 8 && div10_class_value !== (div10_class_value = "result_container " + /*mode*/
18578
- (ctx2[3] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-sghukg")) {
18579
- attr(div10, "class", div10_class_value);
18587
+ 4 && div11_class_value !== (div11_class_value = "result_container " + /*mode*/
18588
+ (ctx2[2] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-2kbaqk")) {
18589
+ attr(div11, "class", div11_class_value);
18580
18590
  }
18581
18591
  },
18582
18592
  i(local) {
@@ -18595,7 +18605,7 @@ function create_fragment$5(ctx) {
18595
18605
  },
18596
18606
  d(detaching) {
18597
18607
  if (detaching) {
18598
- detach(div10);
18608
+ detach(div11);
18599
18609
  }
18600
18610
  if_block0.d();
18601
18611
  if (if_block1) if_block1.d();
@@ -18611,6 +18621,7 @@ function create_fragment$5(ctx) {
18611
18621
  const CRIT_ICON = "https://dynamics-share.tuwan.com/activity/320d878f51a28133b37d75880110ad3c.png?x-oss-process=image/format,webp/ignore-error,1";
18612
18622
  function instance$5($$self, $$props, $$invalidate) {
18613
18623
  let expiresText;
18624
+ let showCrit;
18614
18625
  let { num = 10 } = $$props;
18615
18626
  let { result = [] } = $$props;
18616
18627
  let { onClose } = $$props;
@@ -18619,7 +18630,6 @@ function instance$5($$self, $$props, $$invalidate) {
18619
18630
  let { handelChangeIgnore } = $$props;
18620
18631
  let { lastOpenTimes = 1 } = $$props;
18621
18632
  let { unit_price = 0 } = $$props;
18622
- let { showCrit = false } = $$props;
18623
18633
  let animEl;
18624
18634
  let diamondStr = "0";
18625
18635
  let money_str = "0";
@@ -18629,9 +18639,9 @@ function instance$5($$self, $$props, $$invalidate) {
18629
18639
  let loading = false;
18630
18640
  let radioIsSelected = false;
18631
18641
  let handleChangeRadio = function() {
18632
- $$invalidate(11, radioIsSelected = !radioIsSelected);
18642
+ $$invalidate(10, radioIsSelected = !radioIsSelected);
18633
18643
  if (!radioIsSelected) {
18634
- $$invalidate(10, times = void 0);
18644
+ $$invalidate(9, times = void 0);
18635
18645
  }
18636
18646
  };
18637
18647
  function onCloseHandle() {
@@ -18687,8 +18697,9 @@ function instance$5($$self, $$props, $$invalidate) {
18687
18697
  },
18688
18698
  500
18689
18699
  );
18690
- $$invalidate(2, showCrit = Number(res["total-process"]) == 1);
18691
18700
  res.data._expires = res.expires || [];
18701
+ res.data._total = res.total;
18702
+ res.data._process = res.process;
18692
18703
  $$invalidate(0, result = []);
18693
18704
  if (parentIgnore) {
18694
18705
  setTimeout(
@@ -18705,14 +18716,18 @@ function instance$5($$self, $$props, $$invalidate) {
18705
18716
  url: vapPath + "video.mp4",
18706
18717
  ele: animEl,
18707
18718
  config: vapPath + "vapc.json"
18708
- }).then(() => {
18709
- $$invalidate(0, result = res.data);
18710
- getTreasureInfo();
18711
18719
  }).finally(() => {
18712
18720
  player.destory();
18713
- loading = false;
18714
- isGoing = false;
18715
18721
  });
18722
+ setTimeout(
18723
+ () => {
18724
+ $$invalidate(0, result = res.data);
18725
+ if (animEl) $$invalidate(5, animEl.innerHTML = "", animEl);
18726
+ getTreasureInfo();
18727
+ isGoing = false;
18728
+ },
18729
+ 1100
18730
+ );
18716
18731
  }
18717
18732
  } else if (res.error == -2) {
18718
18733
  showTips("您的钻石和点点币不足,请充值");
@@ -18752,11 +18767,11 @@ function instance$5($$self, $$props, $$invalidate) {
18752
18767
  requestApi(OpenGiftUrls.getTreasureInfo(mode)).then((res) => {
18753
18768
  loading = false;
18754
18769
  if (res.error == 0) {
18755
- $$invalidate(7, diamondStr = res.data.diamond_str);
18756
- $$invalidate(8, money_str = res.data.money_str);
18770
+ $$invalidate(6, diamondStr = res.data.diamond_str);
18771
+ $$invalidate(7, money_str = res.data.money_str);
18757
18772
  res.data.number_str;
18758
18773
  res.data.glod_num;
18759
- $$invalidate(9, hitTimes = res.data.hit_times);
18774
+ $$invalidate(8, hitTimes = res.data.hit_times);
18760
18775
  refreshHaveGift();
18761
18776
  } else {
18762
18777
  showTips(res.error_msg);
@@ -18778,30 +18793,29 @@ function instance$5($$self, $$props, $$invalidate) {
18778
18793
  });
18779
18794
  function input_input_handler() {
18780
18795
  times = to_number(this.value);
18781
- $$invalidate(10, times);
18796
+ $$invalidate(9, times);
18782
18797
  }
18783
18798
  const input_handler = (event) => {
18784
- $$invalidate(10, times = event.target.value.slice(0, 4));
18799
+ $$invalidate(9, times = event.target.value.slice(0, 4));
18785
18800
  };
18786
18801
  const click_handler = () => {
18787
18802
  handleOpenGift(lastOpenTimes);
18788
18803
  };
18789
- function div9_binding($$value) {
18804
+ function div10_binding($$value) {
18790
18805
  binding_callbacks[$$value ? "unshift" : "push"](() => {
18791
18806
  animEl = $$value;
18792
- $$invalidate(6, animEl);
18807
+ $$invalidate(5, animEl);
18793
18808
  });
18794
18809
  }
18795
18810
  $$self.$$set = ($$props2) => {
18796
18811
  if ("num" in $$props2) $$invalidate(18, num = $$props2.num);
18797
18812
  if ("result" in $$props2) $$invalidate(0, result = $$props2.result);
18798
18813
  if ("onClose" in $$props2) $$invalidate(19, onClose = $$props2.onClose);
18799
- if ("mode" in $$props2) $$invalidate(3, mode = $$props2.mode);
18800
- if ("parentIgnore" in $$props2) $$invalidate(4, parentIgnore = $$props2.parentIgnore);
18814
+ if ("mode" in $$props2) $$invalidate(2, mode = $$props2.mode);
18815
+ if ("parentIgnore" in $$props2) $$invalidate(3, parentIgnore = $$props2.parentIgnore);
18801
18816
  if ("handelChangeIgnore" in $$props2) $$invalidate(20, handelChangeIgnore = $$props2.handelChangeIgnore);
18802
18817
  if ("lastOpenTimes" in $$props2) $$invalidate(1, lastOpenTimes = $$props2.lastOpenTimes);
18803
- if ("unit_price" in $$props2) $$invalidate(5, unit_price = $$props2.unit_price);
18804
- if ("showCrit" in $$props2) $$invalidate(2, showCrit = $$props2.showCrit);
18818
+ if ("unit_price" in $$props2) $$invalidate(4, unit_price = $$props2.unit_price);
18805
18819
  };
18806
18820
  $$self.$$.update = () => {
18807
18821
  if ($$self.$$.dirty[0] & /*result*/
@@ -18809,6 +18823,10 @@ function instance$5($$self, $$props, $$invalidate) {
18809
18823
  $$invalidate(12, expiresText = (result._expires || []).join(""));
18810
18824
  }
18811
18825
  if ($$self.$$.dirty[0] & /*result*/
18826
+ 1) {
18827
+ $$invalidate(11, showCrit = Number(result._total) - Number(result._process) === 1);
18828
+ }
18829
+ if ($$self.$$.dirty[0] & /*result*/
18812
18830
  1) {
18813
18831
  {
18814
18832
  if (result.length > 0) {
@@ -18830,7 +18848,6 @@ function instance$5($$self, $$props, $$invalidate) {
18830
18848
  return [
18831
18849
  result,
18832
18850
  lastOpenTimes,
18833
- showCrit,
18834
18851
  mode,
18835
18852
  parentIgnore,
18836
18853
  unit_price,
@@ -18840,6 +18857,7 @@ function instance$5($$self, $$props, $$invalidate) {
18840
18857
  hitTimes,
18841
18858
  times,
18842
18859
  radioIsSelected,
18860
+ showCrit,
18843
18861
  expiresText,
18844
18862
  handleChangeRadio,
18845
18863
  onCloseHandle,
@@ -18852,7 +18870,7 @@ function instance$5($$self, $$props, $$invalidate) {
18852
18870
  input_input_handler,
18853
18871
  input_handler,
18854
18872
  click_handler,
18855
- div9_binding
18873
+ div10_binding
18856
18874
  ];
18857
18875
  }
18858
18876
  class Result3 extends SvelteComponent {
@@ -18868,12 +18886,11 @@ class Result3 extends SvelteComponent {
18868
18886
  num: 18,
18869
18887
  result: 0,
18870
18888
  onClose: 19,
18871
- mode: 3,
18872
- parentIgnore: 4,
18889
+ mode: 2,
18890
+ parentIgnore: 3,
18873
18891
  handelChangeIgnore: 20,
18874
18892
  lastOpenTimes: 1,
18875
- unit_price: 5,
18876
- showCrit: 2
18893
+ unit_price: 4
18877
18894
  },
18878
18895
  null,
18879
18896
  [-1, -1]
@@ -18898,7 +18915,7 @@ function create_else_block$3(ctx) {
18898
18915
  img = element("img");
18899
18916
  if (!src_url_equal(img.src, img_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/loveTitleRecord.png")) attr(img, "src", img_src_value);
18900
18917
  attr(img, "alt", "");
18901
- attr(img, "class", "svelte-1l3psu5");
18918
+ attr(img, "class", "svelte-ibvaf");
18902
18919
  },
18903
18920
  m(target, anchor) {
18904
18921
  insert(target, img, anchor);
@@ -18918,7 +18935,7 @@ function create_if_block_2$4(ctx) {
18918
18935
  img = element("img");
18919
18936
  if (!src_url_equal(img.src, img_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/luckyTitleRecord.png")) attr(img, "src", img_src_value);
18920
18937
  attr(img, "alt", "");
18921
- attr(img, "class", "svelte-1l3psu5");
18938
+ attr(img, "class", "svelte-ibvaf");
18922
18939
  },
18923
18940
  m(target, anchor) {
18924
18941
  insert(target, img, anchor);
@@ -18946,7 +18963,7 @@ function create_if_block_1$4(ctx) {
18946
18963
  for (let i = 0; i < each_blocks.length; i += 1) {
18947
18964
  each_blocks[i].c();
18948
18965
  }
18949
- attr(div, "class", "expires_list svelte-1l3psu5");
18966
+ attr(div, "class", "expires_list svelte-ibvaf");
18950
18967
  },
18951
18968
  m(target, anchor) {
18952
18969
  insert(target, div, anchor);
@@ -19008,11 +19025,11 @@ function create_each_block_1(ctx) {
19008
19025
  span = element("span");
19009
19026
  t1 = text(t1_value);
19010
19027
  t2 = space();
19011
- attr(img, "class", "expires_icon svelte-1l3psu5");
19028
+ attr(img, "class", "expires_icon svelte-ibvaf");
19012
19029
  if (!src_url_equal(img.src, img_src_value = EXPIRES_ICON)) attr(img, "src", img_src_value);
19013
19030
  attr(img, "alt", "");
19014
- attr(span, "class", "expires_text svelte-1l3psu5");
19015
- attr(div, "class", "expires_item svelte-1l3psu5");
19031
+ attr(span, "class", "expires_text svelte-ibvaf");
19032
+ attr(div, "class", "expires_item svelte-ibvaf");
19016
19033
  },
19017
19034
  m(target, anchor) {
19018
19035
  insert(target, div, anchor);
@@ -19040,7 +19057,7 @@ function create_if_block$4(ctx) {
19040
19057
  c() {
19041
19058
  div = element("div");
19042
19059
  div.textContent = "还未有开启魔法记录";
19043
- attr(div, "class", "noDataTipCtn svelte-1l3psu5");
19060
+ attr(div, "class", "noDataTipCtn svelte-ibvaf");
19044
19061
  },
19045
19062
  m(target, anchor) {
19046
19063
  insert(target, div, anchor);
@@ -19098,12 +19115,12 @@ function create_each_block(ctx) {
19098
19115
  attr(img0, "alt", "");
19099
19116
  if (!src_url_equal(img0.src, img0_src_value = /*item*/
19100
19117
  ctx[10].icon)) attr(img0, "src", img0_src_value);
19101
- attr(img0, "class", "svelte-1l3psu5");
19118
+ attr(img0, "class", "svelte-ibvaf");
19102
19119
  attr(img1, "alt", "");
19103
19120
  if (!src_url_equal(img1.src, img1_src_value = /*item*/
19104
19121
  ctx[10].gift)) attr(img1, "src", img1_src_value);
19105
- attr(img1, "class", "svelte-1l3psu5");
19106
- attr(div, "class", "history_content_item svelte-1l3psu5");
19122
+ attr(img1, "class", "svelte-ibvaf");
19123
+ attr(div, "class", "history_content_item svelte-ibvaf");
19107
19124
  },
19108
19125
  m(target, anchor) {
19109
19126
  insert(target, div, anchor);
@@ -19207,14 +19224,14 @@ function create_fragment$4(ctx) {
19207
19224
  t3 = space();
19208
19225
  div3 = element("div");
19209
19226
  t4 = text("关闭");
19210
- attr(div0, "class", "openGiftTitle svelte-1l3psu5");
19211
- attr(div1, "class", "history_content scroll_bar_light_purple svelte-1l3psu5");
19212
- attr(div2, "class", "history_wrapper svelte-1l3psu5");
19227
+ attr(div0, "class", "openGiftTitle svelte-ibvaf");
19228
+ attr(div1, "class", "history_content scroll_bar_light_purple svelte-ibvaf");
19229
+ attr(div2, "class", "history_wrapper svelte-ibvaf");
19213
19230
  attr(div3, "role", "presentation");
19214
19231
  attr(div3, "class", div3_class_value = null_to_empty(`history_close_button ${/*mode*/
19215
- ctx[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-1l3psu5");
19232
+ ctx[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-ibvaf");
19216
19233
  attr(div4, "class", div4_class_value = "history_container " + /*mode*/
19217
- (ctx[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-1l3psu5");
19234
+ (ctx[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-ibvaf");
19218
19235
  },
19219
19236
  m(target, anchor) {
19220
19237
  insert(target, div4, anchor);
@@ -19315,12 +19332,12 @@ function create_fragment$4(ctx) {
19315
19332
  }
19316
19333
  if (dirty & /*mode*/
19317
19334
  1 && div3_class_value !== (div3_class_value = null_to_empty(`history_close_button ${/*mode*/
19318
- ctx2[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-1l3psu5")) {
19335
+ ctx2[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "love"}`) + " svelte-ibvaf")) {
19319
19336
  attr(div3, "class", div3_class_value);
19320
19337
  }
19321
19338
  if (dirty & /*mode*/
19322
19339
  1 && div4_class_value !== (div4_class_value = "history_container " + /*mode*/
19323
- (ctx2[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-1l3psu5")) {
19340
+ (ctx2[0] == RESULT_VIEW_TYPE.LUCKY_TYPE ? "" : "glod") + " svelte-ibvaf")) {
19324
19341
  attr(div4, "class", div4_class_value);
19325
19342
  }
19326
19343
  },
@@ -19414,10 +19431,10 @@ function create_if_block_3$1(ctx) {
19414
19431
  t1 = text(t1_value);
19415
19432
  t2 = text("次");
19416
19433
  attr(img, "alt", "");
19417
- attr(img, "class", "imgIcon svelte-1q1uxxw");
19434
+ attr(img, "class", "imgIcon svelte-uw572q");
19418
19435
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
19419
- attr(span, "class", "wordCtn svelte-1q1uxxw");
19420
- attr(div, "class", "subCtn svelte-1q1uxxw");
19436
+ attr(span, "class", "wordCtn svelte-uw572q");
19437
+ attr(div, "class", "subCtn svelte-uw572q");
19421
19438
  },
19422
19439
  m(target, anchor) {
19423
19440
  insert(target, div, anchor);
@@ -19499,22 +19516,22 @@ function create_else_block$2(ctx) {
19499
19516
  div4 = element("div");
19500
19517
  div4.textContent = "开启10次";
19501
19518
  attr(img0, "alt", "");
19502
- attr(img0, "class", "icon svelte-1q1uxxw");
19519
+ attr(img0, "class", "icon svelte-uw572q");
19503
19520
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/onlyDiamond.png")) attr(img0, "src", img0_src_value);
19504
- attr(span0, "class", "numCtn svelte-1q1uxxw");
19505
- attr(div0, "class", "leftCtn svelte-1q1uxxw");
19506
- attr(div1, "class", "rightCtn svelte-1q1uxxw");
19507
- attr(div2, "class", "normalBtn svelte-1q1uxxw");
19521
+ attr(span0, "class", "numCtn svelte-uw572q");
19522
+ attr(div0, "class", "leftCtn svelte-uw572q");
19523
+ attr(div1, "class", "rightCtn svelte-uw572q");
19524
+ attr(div2, "class", "normalBtn svelte-uw572q");
19508
19525
  attr(div2, "role", "presentation");
19509
19526
  attr(img1, "alt", "");
19510
- attr(img1, "class", "icon svelte-1q1uxxw");
19527
+ attr(img1, "class", "icon svelte-uw572q");
19511
19528
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/onlyDiamond.png")) attr(img1, "src", img1_src_value);
19512
- attr(span1, "class", "numCtn svelte-1q1uxxw");
19513
- attr(div3, "class", "leftCtn svelte-1q1uxxw");
19514
- attr(div4, "class", "rightCtn svelte-1q1uxxw");
19515
- attr(div5, "class", "normalBtn svelte-1q1uxxw");
19529
+ attr(span1, "class", "numCtn svelte-uw572q");
19530
+ attr(div3, "class", "leftCtn svelte-uw572q");
19531
+ attr(div4, "class", "rightCtn svelte-uw572q");
19532
+ attr(div5, "class", "normalBtn svelte-uw572q");
19516
19533
  attr(div5, "role", "presentation");
19517
- attr(div6, "class", "buttonCtn svelte-1q1uxxw");
19534
+ attr(div6, "class", "buttonCtn svelte-uw572q");
19518
19535
  },
19519
19536
  m(target, anchor) {
19520
19537
  insert(target, div6, anchor);
@@ -19603,15 +19620,15 @@ function create_if_block_1$3(ctx) {
19603
19620
  t1 = space();
19604
19621
  div2 = element("div");
19605
19622
  div2.textContent = "确定";
19606
- attr(input, "class", "inp svelte-1q1uxxw");
19623
+ attr(input, "class", "inp svelte-uw572q");
19607
19624
  attr(input, "placeholder", "输入数量");
19608
19625
  attr(input, "type", "number");
19609
- attr(div0, "class", "svelte-1q1uxxw");
19610
- attr(div1, "class", "inputNumWarpper svelte-1q1uxxw");
19626
+ attr(div0, "class", "svelte-uw572q");
19627
+ attr(div1, "class", "inputNumWarpper svelte-uw572q");
19611
19628
  attr(div2, "role", "presentation");
19612
- attr(div2, "class", "smallBtnCtn svelte-1q1uxxw");
19613
- attr(div3, "class", "inputNumCtn svelte-1q1uxxw");
19614
- attr(div4, "class", "buttonCtn svelte-1q1uxxw");
19629
+ attr(div2, "class", "smallBtnCtn svelte-uw572q");
19630
+ attr(div3, "class", "inputNumCtn svelte-uw572q");
19631
+ attr(div4, "class", "buttonCtn svelte-uw572q");
19615
19632
  set_style(div4, "display", "flex");
19616
19633
  set_style(div4, "justify-content", "center");
19617
19634
  },
@@ -19733,7 +19750,7 @@ function create_if_block$3(ctx) {
19733
19750
  /*expiresText*/
19734
19751
  ctx[5]
19735
19752
  );
19736
- attr(div, "class", "expiresTips svelte-1q1uxxw");
19753
+ attr(div, "class", "expiresTips svelte-uw572q");
19737
19754
  },
19738
19755
  m(target, anchor) {
19739
19756
  insert(target, div, anchor);
@@ -19863,7 +19880,7 @@ function create_fragment$3(ctx) {
19863
19880
  div5 = element("div");
19864
19881
  t8 = space();
19865
19882
  div9 = element("div");
19866
- div9.innerHTML = `<div class="fireCtn svelte-1q1uxxw"></div> <div class="mainImgCtn mainImgCtnMagic svelte-1q1uxxw"></div> <div class="mainSvgaCtn svelte-1q1uxxw"></div>`;
19883
+ div9.innerHTML = `<div class="fireCtn svelte-uw572q"></div> <div class="mainImgCtn mainImgCtnMagic svelte-uw572q"></div> <div class="mainSvgaCtn svelte-uw572q"></div>`;
19867
19884
  t11 = space();
19868
19885
  div13 = element("div");
19869
19886
  if_block1.c();
@@ -19877,45 +19894,45 @@ function create_fragment$3(ctx) {
19877
19894
  t15 = space();
19878
19895
  div11 = element("div");
19879
19896
  span3 = element("span");
19880
- span3.innerHTML = `<img alt="" class="radioImg default svelte-1q1uxxw" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-1q1uxxw" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
19897
+ span3.innerHTML = `<img alt="" class="radioImg default svelte-uw572q" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-uw572q" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
19881
19898
  t17 = space();
19882
19899
  span4 = element("span");
19883
19900
  span4.textContent = "自定义开启数量";
19884
19901
  t19 = space();
19885
19902
  if (if_block2) if_block2.c();
19886
19903
  attr(img0, "alt", "");
19887
- attr(img0, "class", "openGiftTitle svelte-1q1uxxw");
19904
+ attr(img0, "class", "openGiftTitle svelte-uw572q");
19888
19905
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/luckyTitle.png")) attr(img0, "src", img0_src_value);
19889
- attr(div0, "class", "subTitle svelte-1q1uxxw");
19906
+ attr(div0, "class", "subTitle svelte-uw572q");
19890
19907
  attr(img1, "alt", "");
19891
- attr(img1, "class", "imgIcon svelte-1q1uxxw");
19908
+ attr(img1, "class", "imgIcon svelte-uw572q");
19892
19909
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/diamond3.png")) attr(img1, "src", img1_src_value);
19893
- attr(span0, "class", "wordCtn svelte-1q1uxxw");
19894
- attr(div1, "class", "subCtn svelte-1q1uxxw");
19910
+ attr(span0, "class", "wordCtn svelte-uw572q");
19911
+ attr(div1, "class", "subCtn svelte-uw572q");
19895
19912
  attr(img2, "alt", "");
19896
- attr(img2, "class", "imgIcon svelte-1q1uxxw");
19913
+ attr(img2, "class", "imgIcon svelte-uw572q");
19897
19914
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/money3.png")) attr(img2, "src", img2_src_value);
19898
- attr(span1, "class", "wordCtn svelte-1q1uxxw");
19899
- attr(div2, "class", "subCtn svelte-1q1uxxw");
19900
- attr(div3, "class", "leftTopCtn svelte-1q1uxxw");
19901
- attr(div4, "class", "fireSvgaCtnMagic svelte-1q1uxxw");
19902
- attr(div5, "class", "result_vap_anim svelte-1q1uxxw");
19903
- attr(div9, "class", "mainShowerCtn svelte-1q1uxxw");
19915
+ attr(span1, "class", "wordCtn svelte-uw572q");
19916
+ attr(div2, "class", "subCtn svelte-uw572q");
19917
+ attr(div3, "class", "leftTopCtn svelte-uw572q");
19918
+ attr(div4, "class", "fireSvgaCtnMagic svelte-uw572q");
19919
+ attr(div5, "class", "result_vap_anim svelte-uw572q");
19920
+ attr(div9, "class", "mainShowerCtn svelte-uw572q");
19904
19921
  attr(div10, "class", div10_class_value = null_to_empty(
19905
19922
  /*parentIgnore*/
19906
19923
  ctx[1] ? "result_action_ignore ignore" : "result_action_ignore"
19907
- ) + " svelte-1q1uxxw");
19924
+ ) + " svelte-uw572q");
19908
19925
  attr(div10, "role", "presentation");
19909
- attr(span3, "class", "spCtn svelte-1q1uxxw");
19910
- attr(span4, "class", "changeWordCtn svelte-1q1uxxw");
19926
+ attr(span3, "class", "spCtn svelte-uw572q");
19927
+ attr(span4, "class", "changeWordCtn svelte-uw572q");
19911
19928
  attr(div11, "role", "presentation");
19912
19929
  attr(div11, "class", div11_class_value = null_to_empty(
19913
19930
  /*radioIsSelected*/
19914
19931
  ctx[4] ? "radioCtn active" : "radioCtn"
19915
- ) + " svelte-1q1uxxw");
19916
- attr(div12, "class", "footerBottomCtn svelte-1q1uxxw");
19917
- attr(div13, "class", "openGiftFooter svelte-1q1uxxw");
19918
- attr(div14, "class", "GoldCtn2 svelte-1q1uxxw");
19932
+ ) + " svelte-uw572q");
19933
+ attr(div12, "class", "footerBottomCtn svelte-uw572q");
19934
+ attr(div13, "class", "openGiftFooter svelte-uw572q");
19935
+ attr(div14, "class", "GoldCtn2 svelte-uw572q");
19919
19936
  },
19920
19937
  m(target, anchor) {
19921
19938
  insert(target, div14, anchor);
@@ -20028,14 +20045,14 @@ function create_fragment$3(ctx) {
20028
20045
  2 && div10_class_value !== (div10_class_value = null_to_empty(
20029
20046
  /*parentIgnore*/
20030
20047
  ctx2[1] ? "result_action_ignore ignore" : "result_action_ignore"
20031
- ) + " svelte-1q1uxxw")) {
20048
+ ) + " svelte-uw572q")) {
20032
20049
  attr(div10, "class", div10_class_value);
20033
20050
  }
20034
20051
  if (dirty & /*radioIsSelected*/
20035
20052
  16 && div11_class_value !== (div11_class_value = null_to_empty(
20036
20053
  /*radioIsSelected*/
20037
20054
  ctx2[4] ? "radioCtn active" : "radioCtn"
20038
- ) + " svelte-1q1uxxw")) {
20055
+ ) + " svelte-uw572q")) {
20039
20056
  attr(div11, "class", div11_class_value);
20040
20057
  }
20041
20058
  if (
@@ -20129,6 +20146,8 @@ function instance$3($$self, $$props, $$invalidate) {
20129
20146
  );
20130
20147
  result = res.data;
20131
20148
  result._expires = res.expires || [];
20149
+ result._total = res.total;
20150
+ result._process = res.process;
20132
20151
  let isJumpAnimation = SessionStorage.getInstance().getGoldMagicAnimIgnore() || 0;
20133
20152
  if (isJumpAnimation == 0) {
20134
20153
  const vapPath = "https://asset.tuwan.com/chartRoom/loveAndLuckyBox/lucky/";
@@ -20145,7 +20164,7 @@ function instance$3($$self, $$props, $$invalidate) {
20145
20164
  });
20146
20165
  setTimeout(
20147
20166
  () => {
20148
- handleSetResult(result, times || spTimes, res["total-process"]);
20167
+ handleSetResult(result, times || spTimes);
20149
20168
  emptyEl(".result_vap_anim");
20150
20169
  },
20151
20170
  1100
@@ -20153,7 +20172,7 @@ function instance$3($$self, $$props, $$invalidate) {
20153
20172
  } else {
20154
20173
  isGoing = false;
20155
20174
  handleGetGiftInfo();
20156
- handleSetResult(result, times || spTimes, res["total-process"]);
20175
+ handleSetResult(result, times || spTimes);
20157
20176
  }
20158
20177
  } else if (res.error == -2) {
20159
20178
  isGoing = false;
@@ -20313,10 +20332,10 @@ function create_if_block_3(ctx) {
20313
20332
  t1 = text(t1_value);
20314
20333
  t2 = text("次");
20315
20334
  attr(img, "alt", "");
20316
- attr(img, "class", "imgIcon svelte-nk1qp8");
20335
+ attr(img, "class", "imgIcon svelte-1j2cxti");
20317
20336
  if (!src_url_equal(img.src, img_src_value = "https://dynamics-share.tuwan.com/activity/0e24da0fd01719a934630a6652fa4b9d.png?x-oss-process=image/format,webp/ignore-error,1")) attr(img, "src", img_src_value);
20318
- attr(span, "class", "wordCtn svelte-nk1qp8");
20319
- attr(div, "class", "subCtn svelte-nk1qp8");
20337
+ attr(span, "class", "wordCtn svelte-1j2cxti");
20338
+ attr(div, "class", "subCtn svelte-1j2cxti");
20320
20339
  },
20321
20340
  m(target, anchor) {
20322
20341
  insert(target, div, anchor);
@@ -20398,22 +20417,22 @@ function create_else_block$1(ctx) {
20398
20417
  div4 = element("div");
20399
20418
  div4.textContent = "开启10次";
20400
20419
  attr(img0, "alt", "");
20401
- attr(img0, "class", "icon svelte-nk1qp8");
20420
+ attr(img0, "class", "icon svelte-1j2cxti");
20402
20421
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/loveDiamond.png")) attr(img0, "src", img0_src_value);
20403
- attr(span0, "class", "numCtn svelte-nk1qp8");
20404
- attr(div0, "class", "leftCtn svelte-nk1qp8");
20405
- attr(div1, "class", "rightCtn svelte-nk1qp8");
20406
- attr(div2, "class", "normalBtn svelte-nk1qp8");
20422
+ attr(span0, "class", "numCtn svelte-1j2cxti");
20423
+ attr(div0, "class", "leftCtn svelte-1j2cxti");
20424
+ attr(div1, "class", "rightCtn svelte-1j2cxti");
20425
+ attr(div2, "class", "normalBtn svelte-1j2cxti");
20407
20426
  attr(div2, "role", "presentation");
20408
20427
  attr(img1, "alt", "");
20409
- attr(img1, "class", "icon svelte-nk1qp8");
20428
+ attr(img1, "class", "icon svelte-1j2cxti");
20410
20429
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/loveDiamond.png")) attr(img1, "src", img1_src_value);
20411
- attr(span1, "class", "numCtn svelte-nk1qp8");
20412
- attr(div3, "class", "leftCtn svelte-nk1qp8");
20413
- attr(div4, "class", "rightCtn svelte-nk1qp8");
20414
- attr(div5, "class", "normalBtn svelte-nk1qp8");
20430
+ attr(span1, "class", "numCtn svelte-1j2cxti");
20431
+ attr(div3, "class", "leftCtn svelte-1j2cxti");
20432
+ attr(div4, "class", "rightCtn svelte-1j2cxti");
20433
+ attr(div5, "class", "normalBtn svelte-1j2cxti");
20415
20434
  attr(div5, "role", "presentation");
20416
- attr(div6, "class", "buttonCtn svelte-nk1qp8");
20435
+ attr(div6, "class", "buttonCtn svelte-1j2cxti");
20417
20436
  },
20418
20437
  m(target, anchor) {
20419
20438
  insert(target, div6, anchor);
@@ -20502,15 +20521,15 @@ function create_if_block_1$2(ctx) {
20502
20521
  t1 = space();
20503
20522
  div2 = element("div");
20504
20523
  div2.textContent = "确定";
20505
- attr(input, "class", "inp svelte-nk1qp8");
20524
+ attr(input, "class", "inp svelte-1j2cxti");
20506
20525
  attr(input, "placeholder", "输入数量");
20507
20526
  attr(input, "type", "number");
20508
- attr(div0, "class", "svelte-nk1qp8");
20509
- attr(div1, "class", "inputNumWarpper svelte-nk1qp8");
20527
+ attr(div0, "class", "svelte-1j2cxti");
20528
+ attr(div1, "class", "inputNumWarpper svelte-1j2cxti");
20510
20529
  attr(div2, "role", "presentation");
20511
- attr(div2, "class", "smallBtnCtn svelte-nk1qp8");
20512
- attr(div3, "class", "inputNumCtn svelte-nk1qp8");
20513
- attr(div4, "class", "buttonCtn svelte-nk1qp8");
20530
+ attr(div2, "class", "smallBtnCtn svelte-1j2cxti");
20531
+ attr(div3, "class", "inputNumCtn svelte-1j2cxti");
20532
+ attr(div4, "class", "buttonCtn svelte-1j2cxti");
20514
20533
  set_style(div4, "display", "flex");
20515
20534
  set_style(div4, "justify-content", "center");
20516
20535
  },
@@ -20632,7 +20651,7 @@ function create_if_block$2(ctx) {
20632
20651
  /*expiresText*/
20633
20652
  ctx[5]
20634
20653
  );
20635
- attr(div, "class", "expiresTips svelte-nk1qp8");
20654
+ attr(div, "class", "expiresTips svelte-1j2cxti");
20636
20655
  },
20637
20656
  m(target, anchor) {
20638
20657
  insert(target, div, anchor);
@@ -20762,7 +20781,7 @@ function create_fragment$2(ctx) {
20762
20781
  div5 = element("div");
20763
20782
  t8 = space();
20764
20783
  div9 = element("div");
20765
- div9.innerHTML = `<div class="fireCtn svelte-nk1qp8"></div> <div class="mainImgCtn mainImgCtnMagic svelte-nk1qp8"></div> <div class="mainSvgaCtn svelte-nk1qp8"></div>`;
20784
+ div9.innerHTML = `<div class="fireCtn svelte-1j2cxti"></div> <div class="mainImgCtn mainImgCtnMagic svelte-1j2cxti"></div> <div class="mainSvgaCtn svelte-1j2cxti"></div>`;
20766
20785
  t11 = space();
20767
20786
  div13 = element("div");
20768
20787
  if_block1.c();
@@ -20776,45 +20795,45 @@ function create_fragment$2(ctx) {
20776
20795
  t15 = space();
20777
20796
  div11 = element("div");
20778
20797
  span3 = element("span");
20779
- span3.innerHTML = `<img alt="" class="radioImg default svelte-nk1qp8" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-nk1qp8" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
20798
+ span3.innerHTML = `<img alt="" class="radioImg default svelte-1j2cxti" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_no.png"/> <img alt="" class="radioImg selected svelte-1j2cxti" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/select_yes.png"/>`;
20780
20799
  t17 = space();
20781
20800
  span4 = element("span");
20782
20801
  span4.textContent = "自定义开启数量";
20783
20802
  t19 = space();
20784
20803
  if (if_block2) if_block2.c();
20785
20804
  attr(img0, "alt", "");
20786
- attr(img0, "class", "openGiftTitle svelte-nk1qp8");
20805
+ attr(img0, "class", "openGiftTitle svelte-1j2cxti");
20787
20806
  if (!src_url_equal(img0.src, img0_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/loveTitle.png")) attr(img0, "src", img0_src_value);
20788
- attr(div0, "class", "subTitle svelte-nk1qp8");
20807
+ attr(div0, "class", "subTitle svelte-1j2cxti");
20789
20808
  attr(img1, "alt", "");
20790
- attr(img1, "class", "imgIcon svelte-nk1qp8");
20809
+ attr(img1, "class", "imgIcon svelte-1j2cxti");
20791
20810
  if (!src_url_equal(img1.src, img1_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/diamond3.png")) attr(img1, "src", img1_src_value);
20792
- attr(span0, "class", "wordCtn svelte-nk1qp8");
20793
- attr(div1, "class", "subCtn svelte-nk1qp8");
20811
+ attr(span0, "class", "wordCtn svelte-1j2cxti");
20812
+ attr(div1, "class", "subCtn svelte-1j2cxti");
20794
20813
  attr(img2, "alt", "");
20795
- attr(img2, "class", "imgIcon svelte-nk1qp8");
20814
+ attr(img2, "class", "imgIcon svelte-1j2cxti");
20796
20815
  if (!src_url_equal(img2.src, img2_src_value = "https://asset.tuwan.com/chartRoom/loveLuckyMagic/money3.png")) attr(img2, "src", img2_src_value);
20797
- attr(span1, "class", "wordCtn svelte-nk1qp8");
20798
- attr(div2, "class", "subCtn svelte-nk1qp8");
20799
- attr(div3, "class", "leftTopCtn svelte-nk1qp8");
20800
- attr(div4, "class", "fireSvgaCtnMagic svelte-nk1qp8");
20801
- attr(div5, "class", "result_vap_anim svelte-nk1qp8");
20802
- attr(div9, "class", "mainShowerCtn svelte-nk1qp8");
20816
+ attr(span1, "class", "wordCtn svelte-1j2cxti");
20817
+ attr(div2, "class", "subCtn svelte-1j2cxti");
20818
+ attr(div3, "class", "leftTopCtn svelte-1j2cxti");
20819
+ attr(div4, "class", "fireSvgaCtnMagic svelte-1j2cxti");
20820
+ attr(div5, "class", "result_vap_anim svelte-1j2cxti");
20821
+ attr(div9, "class", "mainShowerCtn svelte-1j2cxti");
20803
20822
  attr(div10, "class", div10_class_value = null_to_empty(
20804
20823
  /*parentIgnore*/
20805
20824
  ctx[1] ? "result_action_ignore ignore" : "result_action_ignore"
20806
- ) + " svelte-nk1qp8");
20825
+ ) + " svelte-1j2cxti");
20807
20826
  attr(div10, "role", "presentation");
20808
- attr(span3, "class", "spCtn svelte-nk1qp8");
20809
- attr(span4, "class", "changeWordCtn svelte-nk1qp8");
20827
+ attr(span3, "class", "spCtn svelte-1j2cxti");
20828
+ attr(span4, "class", "changeWordCtn svelte-1j2cxti");
20810
20829
  attr(div11, "role", "presentation");
20811
20830
  attr(div11, "class", div11_class_value = null_to_empty(
20812
20831
  /*radioIsSelected*/
20813
20832
  ctx[4] ? "radioCtn active" : "radioCtn"
20814
- ) + " svelte-nk1qp8");
20815
- attr(div12, "class", "footerBottomCtn svelte-nk1qp8");
20816
- attr(div13, "class", "openGiftFooter svelte-nk1qp8");
20817
- attr(div14, "class", "GoldCtn2 svelte-nk1qp8");
20833
+ ) + " svelte-1j2cxti");
20834
+ attr(div12, "class", "footerBottomCtn svelte-1j2cxti");
20835
+ attr(div13, "class", "openGiftFooter svelte-1j2cxti");
20836
+ attr(div14, "class", "GoldCtn2 svelte-1j2cxti");
20818
20837
  },
20819
20838
  m(target, anchor) {
20820
20839
  insert(target, div14, anchor);
@@ -20927,14 +20946,14 @@ function create_fragment$2(ctx) {
20927
20946
  2 && div10_class_value !== (div10_class_value = null_to_empty(
20928
20947
  /*parentIgnore*/
20929
20948
  ctx2[1] ? "result_action_ignore ignore" : "result_action_ignore"
20930
- ) + " svelte-nk1qp8")) {
20949
+ ) + " svelte-1j2cxti")) {
20931
20950
  attr(div10, "class", div10_class_value);
20932
20951
  }
20933
20952
  if (dirty & /*radioIsSelected*/
20934
20953
  16 && div11_class_value !== (div11_class_value = null_to_empty(
20935
20954
  /*radioIsSelected*/
20936
20955
  ctx2[4] ? "radioCtn active" : "radioCtn"
20937
- ) + " svelte-nk1qp8")) {
20956
+ ) + " svelte-1j2cxti")) {
20938
20957
  attr(div11, "class", div11_class_value);
20939
20958
  }
20940
20959
  if (
@@ -21028,6 +21047,8 @@ function instance$2($$self, $$props, $$invalidate) {
21028
21047
  );
21029
21048
  result = res.data;
21030
21049
  result._expires = res.expires || [];
21050
+ result._total = res.total;
21051
+ result._process = res.process;
21031
21052
  let isJumpAnimation = SessionStorage.getInstance().getGoldMagicAnimIgnore() || 0;
21032
21053
  if (isJumpAnimation == 0) {
21033
21054
  const vapPath = "https://asset.tuwan.com/chartRoom/loveAndLuckyBox/love/";
@@ -21044,7 +21065,7 @@ function instance$2($$self, $$props, $$invalidate) {
21044
21065
  });
21045
21066
  setTimeout(
21046
21067
  () => {
21047
- handleSetResult(result, times || spTimes, res["total-process"]);
21068
+ handleSetResult(result, times || spTimes);
21048
21069
  emptyEl(".result_vap_anim");
21049
21070
  },
21050
21071
  1100
@@ -21052,7 +21073,7 @@ function instance$2($$self, $$props, $$invalidate) {
21052
21073
  } else {
21053
21074
  isGoing = false;
21054
21075
  handleGetGiftInfo();
21055
- handleSetResult(result, times || spTimes, res["total-process"]);
21076
+ handleSetResult(result, times || spTimes);
21056
21077
  }
21057
21078
  } else if (res.error == -2) {
21058
21079
  isGoing = false;
@@ -21201,15 +21222,15 @@ function create_else_block(ctx) {
21201
21222
  ),
21202
21223
  handleSetLastOpenTimes: (
21203
21224
  /*handleSetLastOpenTimes*/
21204
- ctx[16]
21225
+ ctx[15]
21205
21226
  ),
21206
21227
  handelChangeIgnore: (
21207
21228
  /*handelChangeIgnore*/
21208
- ctx[18]
21229
+ ctx[17]
21209
21230
  ),
21210
21231
  handelChangeUnitPrice: (
21211
21232
  /*handelChangeUnitPrice*/
21212
- ctx[19]
21233
+ ctx[18]
21213
21234
  ),
21214
21235
  flag: (
21215
21236
  /*flag*/
@@ -21218,11 +21239,11 @@ function create_else_block(ctx) {
21218
21239
  resData: goldResData,
21219
21240
  handleSetResult: (
21220
21241
  /*handleSetResult*/
21221
- ctx[14]
21242
+ ctx[13]
21222
21243
  )
21223
21244
  };
21224
21245
  love = new Love({ props: love_props });
21225
- ctx[22](love);
21246
+ ctx[21](love);
21226
21247
  return {
21227
21248
  c() {
21228
21249
  create_component(love.$$.fragment);
@@ -21251,7 +21272,7 @@ function create_else_block(ctx) {
21251
21272
  current = false;
21252
21273
  },
21253
21274
  d(detaching) {
21254
- ctx[22](null);
21275
+ ctx[21](null);
21255
21276
  destroy_component(love, detaching);
21256
21277
  }
21257
21278
  };
@@ -21267,15 +21288,15 @@ function create_if_block_2$1(ctx) {
21267
21288
  ),
21268
21289
  handleSetLastOpenTimes: (
21269
21290
  /*handleSetLastOpenTimes*/
21270
- ctx[16]
21291
+ ctx[15]
21271
21292
  ),
21272
21293
  handelChangeIgnore: (
21273
21294
  /*handelChangeIgnore*/
21274
- ctx[18]
21295
+ ctx[17]
21275
21296
  ),
21276
21297
  handelChangeUnitPrice: (
21277
21298
  /*handelChangeUnitPrice*/
21278
- ctx[19]
21299
+ ctx[18]
21279
21300
  ),
21280
21301
  flag: (
21281
21302
  /*flag*/
@@ -21284,7 +21305,7 @@ function create_if_block_2$1(ctx) {
21284
21305
  resData: magicResData,
21285
21306
  handleSetResult: (
21286
21307
  /*handleSetResult*/
21287
- ctx[14]
21308
+ ctx[13]
21288
21309
  )
21289
21310
  }
21290
21311
  });
@@ -21321,69 +21342,11 @@ function create_if_block_2$1(ctx) {
21321
21342
  };
21322
21343
  }
21323
21344
  function create_if_block_1$1(ctx) {
21324
- let history;
21325
- let updating_onClose;
21326
- let current;
21327
- function history_onClose_binding(value) {
21328
- ctx[23](value);
21329
- }
21330
- let history_props = {
21331
- mode: (
21332
- /*currentType*/
21333
- ctx[0] == "1" ? RESULT_VIEW_TYPE.LUCKY_TYPE : RESULT_VIEW_TYPE.LOVE_TYPE
21334
- )
21335
- };
21336
- if (
21337
- /*handleChangeHistory*/
21338
- ctx[11] !== void 0
21339
- ) {
21340
- history_props.onClose = /*handleChangeHistory*/
21341
- ctx[11];
21342
- }
21343
- history = new History3({ props: history_props });
21344
- binding_callbacks.push(() => bind(history, "onClose", history_onClose_binding));
21345
- return {
21346
- c() {
21347
- create_component(history.$$.fragment);
21348
- },
21349
- m(target, anchor) {
21350
- mount_component(history, target, anchor);
21351
- current = true;
21352
- },
21353
- p(ctx2, dirty) {
21354
- const history_changes = {};
21355
- if (dirty & /*currentType*/
21356
- 1) history_changes.mode = /*currentType*/
21357
- ctx2[0] == "1" ? RESULT_VIEW_TYPE.LUCKY_TYPE : RESULT_VIEW_TYPE.LOVE_TYPE;
21358
- if (!updating_onClose && dirty & /*handleChangeHistory*/
21359
- 2048) {
21360
- updating_onClose = true;
21361
- history_changes.onClose = /*handleChangeHistory*/
21362
- ctx2[11];
21363
- add_flush_callback(() => updating_onClose = false);
21364
- }
21365
- history.$set(history_changes);
21366
- },
21367
- i(local) {
21368
- if (current) return;
21369
- transition_in(history.$$.fragment, local);
21370
- current = true;
21371
- },
21372
- o(local) {
21373
- transition_out(history.$$.fragment, local);
21374
- current = false;
21375
- },
21376
- d(detaching) {
21377
- destroy_component(history, detaching);
21378
- }
21379
- };
21380
- }
21381
- function create_if_block$1(ctx) {
21382
21345
  let result_1;
21383
21346
  let updating_onClose;
21384
21347
  let current;
21385
21348
  function result_1_onClose_binding(value) {
21386
- ctx[24](value);
21349
+ ctx[22](value);
21387
21350
  }
21388
21351
  let result_1_props = {
21389
21352
  num: (
@@ -21392,27 +21355,23 @@ function create_if_block$1(ctx) {
21392
21355
  ),
21393
21356
  lastOpenTimes: (
21394
21357
  /*lastOpenTimes*/
21395
- ctx[8]
21358
+ ctx[7]
21396
21359
  ),
21397
21360
  unit_price: (
21398
21361
  /*unit_price*/
21399
- ctx[9]
21362
+ ctx[8]
21400
21363
  ),
21401
21364
  result: (
21402
21365
  /*result*/
21403
21366
  ctx[6]
21404
21367
  ),
21405
- showCrit: (
21406
- /*showCrit*/
21407
- ctx[7]
21408
- ),
21409
21368
  parentIgnore: (
21410
21369
  /*parentIgnore*/
21411
21370
  ctx[5]
21412
21371
  ),
21413
21372
  handelChangeIgnore: (
21414
21373
  /*handelChangeIgnore*/
21415
- ctx[18]
21374
+ ctx[17]
21416
21375
  ),
21417
21376
  mode: (
21418
21377
  /*currentType*/
@@ -21421,10 +21380,10 @@ function create_if_block$1(ctx) {
21421
21380
  };
21422
21381
  if (
21423
21382
  /*handleChangeResult*/
21424
- ctx[13] !== void 0
21383
+ ctx[12] !== void 0
21425
21384
  ) {
21426
21385
  result_1_props.onClose = /*handleChangeResult*/
21427
- ctx[13];
21386
+ ctx[12];
21428
21387
  }
21429
21388
  result_1 = new Result3({ props: result_1_props });
21430
21389
  binding_callbacks.push(() => bind(result_1, "onClose", result_1_onClose_binding));
@@ -21442,17 +21401,14 @@ function create_if_block$1(ctx) {
21442
21401
  8) result_1_changes.num = /*num*/
21443
21402
  ctx2[3];
21444
21403
  if (dirty & /*lastOpenTimes*/
21445
- 256) result_1_changes.lastOpenTimes = /*lastOpenTimes*/
21446
- ctx2[8];
21404
+ 128) result_1_changes.lastOpenTimes = /*lastOpenTimes*/
21405
+ ctx2[7];
21447
21406
  if (dirty & /*unit_price*/
21448
- 512) result_1_changes.unit_price = /*unit_price*/
21449
- ctx2[9];
21407
+ 256) result_1_changes.unit_price = /*unit_price*/
21408
+ ctx2[8];
21450
21409
  if (dirty & /*result*/
21451
21410
  64) result_1_changes.result = /*result*/
21452
21411
  ctx2[6];
21453
- if (dirty & /*showCrit*/
21454
- 128) result_1_changes.showCrit = /*showCrit*/
21455
- ctx2[7];
21456
21412
  if (dirty & /*parentIgnore*/
21457
21413
  32) result_1_changes.parentIgnore = /*parentIgnore*/
21458
21414
  ctx2[5];
@@ -21460,10 +21416,10 @@ function create_if_block$1(ctx) {
21460
21416
  1) result_1_changes.mode = /*currentType*/
21461
21417
  ctx2[0] == "1" ? RESULT_VIEW_TYPE.LUCKY_TYPE : RESULT_VIEW_TYPE.LOVE_TYPE;
21462
21418
  if (!updating_onClose && dirty & /*handleChangeResult*/
21463
- 8192) {
21419
+ 4096) {
21464
21420
  updating_onClose = true;
21465
21421
  result_1_changes.onClose = /*handleChangeResult*/
21466
- ctx2[13];
21422
+ ctx2[12];
21467
21423
  add_flush_callback(() => updating_onClose = false);
21468
21424
  }
21469
21425
  result_1.$set(result_1_changes);
@@ -21482,6 +21438,64 @@ function create_if_block$1(ctx) {
21482
21438
  }
21483
21439
  };
21484
21440
  }
21441
+ function create_if_block$1(ctx) {
21442
+ let history;
21443
+ let updating_onClose;
21444
+ let current;
21445
+ function history_onClose_binding(value) {
21446
+ ctx[23](value);
21447
+ }
21448
+ let history_props = {
21449
+ mode: (
21450
+ /*currentType*/
21451
+ ctx[0] == "1" ? RESULT_VIEW_TYPE.LUCKY_TYPE : RESULT_VIEW_TYPE.LOVE_TYPE
21452
+ )
21453
+ };
21454
+ if (
21455
+ /*handleChangeHistory*/
21456
+ ctx[10] !== void 0
21457
+ ) {
21458
+ history_props.onClose = /*handleChangeHistory*/
21459
+ ctx[10];
21460
+ }
21461
+ history = new History3({ props: history_props });
21462
+ binding_callbacks.push(() => bind(history, "onClose", history_onClose_binding));
21463
+ return {
21464
+ c() {
21465
+ create_component(history.$$.fragment);
21466
+ },
21467
+ m(target, anchor) {
21468
+ mount_component(history, target, anchor);
21469
+ current = true;
21470
+ },
21471
+ p(ctx2, dirty) {
21472
+ const history_changes = {};
21473
+ if (dirty & /*currentType*/
21474
+ 1) history_changes.mode = /*currentType*/
21475
+ ctx2[0] == "1" ? RESULT_VIEW_TYPE.LUCKY_TYPE : RESULT_VIEW_TYPE.LOVE_TYPE;
21476
+ if (!updating_onClose && dirty & /*handleChangeHistory*/
21477
+ 1024) {
21478
+ updating_onClose = true;
21479
+ history_changes.onClose = /*handleChangeHistory*/
21480
+ ctx2[10];
21481
+ add_flush_callback(() => updating_onClose = false);
21482
+ }
21483
+ history.$set(history_changes);
21484
+ },
21485
+ i(local) {
21486
+ if (current) return;
21487
+ transition_in(history.$$.fragment, local);
21488
+ current = true;
21489
+ },
21490
+ o(local) {
21491
+ transition_out(history.$$.fragment, local);
21492
+ current = false;
21493
+ },
21494
+ d(detaching) {
21495
+ destroy_component(history, detaching);
21496
+ }
21497
+ };
21498
+ }
21485
21499
  function create_fragment$1(ctx) {
21486
21500
  let div5;
21487
21501
  let div0;
@@ -21512,12 +21526,12 @@ function create_fragment$1(ctx) {
21512
21526
  current_block_type_index = select_block_type(ctx);
21513
21527
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21514
21528
  let if_block1 = (
21515
- /*isShowHistory*/
21516
- ctx[10] && create_if_block_1$1(ctx)
21529
+ /*isShowResult*/
21530
+ ctx[11] && create_if_block_1$1(ctx)
21517
21531
  );
21518
21532
  let if_block2 = (
21519
- /*isShowResult*/
21520
- ctx[12] && create_if_block$1(ctx)
21533
+ /*isShowHistory*/
21534
+ ctx[9] && create_if_block$1(ctx)
21521
21535
  );
21522
21536
  return {
21523
21537
  c() {
@@ -21527,27 +21541,27 @@ function create_fragment$1(ctx) {
21527
21541
  div4 = element("div");
21528
21542
  div3 = element("div");
21529
21543
  div1 = element("div");
21530
- div1.innerHTML = `<img alt="" class="imgIcon svelte-11ad5b5" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/learnMoreIcon.png"/>`;
21544
+ div1.innerHTML = `<img alt="" class="imgIcon svelte-5p8e4p" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/learnMoreIcon.png"/>`;
21531
21545
  t1 = space();
21532
21546
  div2 = element("div");
21533
- div2.innerHTML = `<img alt="" class="imgIcon svelte-11ad5b5" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/historyIcon.png"/>`;
21547
+ div2.innerHTML = `<img alt="" class="imgIcon svelte-5p8e4p" src="https://asset.tuwan.com/chartRoom/loveLuckyMagic/historyIcon.png"/>`;
21534
21548
  t2 = space();
21535
21549
  if_block0.c();
21536
21550
  t3 = space();
21537
21551
  if (if_block1) if_block1.c();
21538
21552
  t4 = space();
21539
21553
  if (if_block2) if_block2.c();
21540
- attr(div0, "class", "coverBg svelte-11ad5b5");
21554
+ attr(div0, "class", "coverBg svelte-5p8e4p");
21541
21555
  attr(div0, "role", "presentation");
21542
- attr(div1, "class", "subCtn svelte-11ad5b5");
21556
+ attr(div1, "class", "subCtn svelte-5p8e4p");
21543
21557
  attr(div1, "role", "presentation");
21544
21558
  attr(div2, "role", "presentation");
21545
- attr(div2, "class", "subCtn svelte-11ad5b5");
21546
- attr(div3, "class", "rightTopCtn svelte-11ad5b5");
21559
+ attr(div2, "class", "subCtn svelte-5p8e4p");
21560
+ attr(div3, "class", "rightTopCtn svelte-5p8e4p");
21547
21561
  attr(div4, "class", div4_class_value = null_to_empty(
21548
21562
  /*currentType*/
21549
21563
  ctx[0] == "1" ? "goldMagicCtn2 magic" : "goldMagicCtn2 gold"
21550
- ) + " svelte-11ad5b5");
21564
+ ) + " svelte-5p8e4p");
21551
21565
  attr(div4, "role", "presentation");
21552
21566
  attr(div5, "role", "presentation");
21553
21567
  },
@@ -21579,21 +21593,21 @@ function create_fragment$1(ctx) {
21579
21593
  div1,
21580
21594
  "click",
21581
21595
  /*goToPage*/
21582
- ctx[17]
21596
+ ctx[16]
21583
21597
  ),
21584
21598
  listen(
21585
21599
  div2,
21586
21600
  "click",
21587
21601
  /*openGiftRecordList*/
21588
- ctx[15]
21602
+ ctx[14]
21589
21603
  ),
21590
21604
  listen(div4, "click", stop_propagation(
21591
21605
  /*click_handler_1*/
21592
- ctx[21]
21606
+ ctx[20]
21593
21607
  )),
21594
21608
  listen(div5, "click", stop_propagation(
21595
21609
  /*click_handler*/
21596
- ctx[20]
21610
+ ctx[19]
21597
21611
  ))
21598
21612
  ];
21599
21613
  mounted = true;
@@ -21622,13 +21636,13 @@ function create_fragment$1(ctx) {
21622
21636
  if_block0.m(div4, t3);
21623
21637
  }
21624
21638
  if (
21625
- /*isShowHistory*/
21626
- ctx[10]
21639
+ /*isShowResult*/
21640
+ ctx[11]
21627
21641
  ) {
21628
21642
  if (if_block1) {
21629
21643
  if_block1.p(ctx, dirty);
21630
- if (dirty & /*isShowHistory*/
21631
- 1024) {
21644
+ if (dirty & /*isShowResult*/
21645
+ 2048) {
21632
21646
  transition_in(if_block1, 1);
21633
21647
  }
21634
21648
  } else {
@@ -21645,13 +21659,13 @@ function create_fragment$1(ctx) {
21645
21659
  check_outros();
21646
21660
  }
21647
21661
  if (
21648
- /*isShowResult*/
21649
- ctx[12]
21662
+ /*isShowHistory*/
21663
+ ctx[9]
21650
21664
  ) {
21651
21665
  if (if_block2) {
21652
21666
  if_block2.p(ctx, dirty);
21653
- if (dirty & /*isShowResult*/
21654
- 4096) {
21667
+ if (dirty & /*isShowHistory*/
21668
+ 512) {
21655
21669
  transition_in(if_block2, 1);
21656
21670
  }
21657
21671
  } else {
@@ -21671,7 +21685,7 @@ function create_fragment$1(ctx) {
21671
21685
  1 && div4_class_value !== (div4_class_value = null_to_empty(
21672
21686
  /*currentType*/
21673
21687
  ctx[0] == "1" ? "goldMagicCtn2 magic" : "goldMagicCtn2 gold"
21674
- ) + " svelte-11ad5b5")) {
21688
+ ) + " svelte-5p8e4p")) {
21675
21689
  attr(div4, "class", div4_class_value);
21676
21690
  }
21677
21691
  },
@@ -21710,30 +21724,28 @@ function instance$1($$self, $$props, $$invalidate) {
21710
21724
  let goldChild;
21711
21725
  let parentIgnore = false;
21712
21726
  let result = [];
21713
- let showCrit = false;
21714
21727
  let lastOpenTimes = 1;
21715
21728
  let unit_price = 0;
21716
21729
  let isShowHistory = false;
21717
21730
  let handleChangeHistory = function() {
21718
- $$invalidate(10, isShowHistory = !isShowHistory);
21731
+ $$invalidate(9, isShowHistory = !isShowHistory);
21719
21732
  };
21720
21733
  let isShowResult = false;
21721
21734
  let handleChangeResult = function() {
21722
21735
  $$invalidate(2, flag = flag + 1);
21723
- $$invalidate(12, isShowResult = !isShowResult);
21736
+ $$invalidate(11, isShowResult = !isShowResult);
21724
21737
  };
21725
- let handleSetResult = function(dataArr, times = 1, totalProcess) {
21738
+ let handleSetResult = function(dataArr, times = 1) {
21726
21739
  $$invalidate(6, result = dataArr);
21727
- $$invalidate(12, isShowResult = !isShowResult);
21728
- $$invalidate(12, isShowResult = true);
21740
+ $$invalidate(11, isShowResult = !isShowResult);
21741
+ $$invalidate(11, isShowResult = true);
21729
21742
  $$invalidate(3, num = times);
21730
- $$invalidate(7, showCrit = Number(totalProcess) == 1);
21731
21743
  };
21732
21744
  let openGiftRecordList = function() {
21733
- $$invalidate(10, isShowHistory = true);
21745
+ $$invalidate(9, isShowHistory = true);
21734
21746
  };
21735
21747
  let handleSetLastOpenTimes = (v) => {
21736
- $$invalidate(8, lastOpenTimes = v);
21748
+ $$invalidate(7, lastOpenTimes = v);
21737
21749
  };
21738
21750
  let goToPage = function() {
21739
21751
  window.open("https://y.tuwan.com/activities/900325Cdc25ee#/");
@@ -21742,7 +21754,7 @@ function instance$1($$self, $$props, $$invalidate) {
21742
21754
  $$invalidate(5, parentIgnore = !parentIgnore);
21743
21755
  };
21744
21756
  let handelChangeUnitPrice = (v) => {
21745
- $$invalidate(9, unit_price = v);
21757
+ $$invalidate(8, unit_price = v);
21746
21758
  };
21747
21759
  onMount(() => {
21748
21760
  $$invalidate(5, parentIgnore = SessionStorage.getInstance().getGoldMagicAnimIgnore() == "1");
@@ -21764,13 +21776,13 @@ function instance$1($$self, $$props, $$invalidate) {
21764
21776
  $$invalidate(4, goldChild);
21765
21777
  });
21766
21778
  }
21767
- function history_onClose_binding(value) {
21768
- handleChangeHistory = value;
21769
- $$invalidate(11, handleChangeHistory);
21770
- }
21771
21779
  function result_1_onClose_binding(value) {
21772
21780
  handleChangeResult = value;
21773
- $$invalidate(13, handleChangeResult);
21781
+ $$invalidate(12, handleChangeResult);
21782
+ }
21783
+ function history_onClose_binding(value) {
21784
+ handleChangeHistory = value;
21785
+ $$invalidate(10, handleChangeHistory);
21774
21786
  }
21775
21787
  $$self.$$set = ($$props2) => {
21776
21788
  if ("currentType" in $$props2) $$invalidate(0, currentType = $$props2.currentType);
@@ -21784,7 +21796,6 @@ function instance$1($$self, $$props, $$invalidate) {
21784
21796
  goldChild,
21785
21797
  parentIgnore,
21786
21798
  result,
21787
- showCrit,
21788
21799
  lastOpenTimes,
21789
21800
  unit_price,
21790
21801
  isShowHistory,
@@ -21800,8 +21811,8 @@ function instance$1($$self, $$props, $$invalidate) {
21800
21811
  click_handler,
21801
21812
  click_handler_12,
21802
21813
  love_binding,
21803
- history_onClose_binding,
21804
- result_1_onClose_binding
21814
+ result_1_onClose_binding,
21815
+ history_onClose_binding
21805
21816
  ];
21806
21817
  }
21807
21818
  class LoveAndLuckyMagic extends SvelteComponent {