@plaidev/karte-action-sdk 1.1.145 → 1.1.146-27979564.921429ab
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.
- package/dist/hydrate/index.es.js +25 -18
- package/dist/index.es.js +24 -17
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -7643,15 +7643,15 @@ function add_css$7(target) {
|
|
7643
7643
|
append_styles(target, "svelte-qx7l0c", ".countdown.svelte-qx7l0c{position:relative;width:100%;height:100%}.countdown-inner.svelte-qx7l0c{position:absolute;inset:0}");
|
7644
7644
|
}
|
7645
7645
|
|
7646
|
-
const get_default_slot_changes = dirty => ({ countdown: dirty & /*countdown*/
|
7647
|
-
const get_default_slot_context = ctx => ({ countdown: /*countdown*/ ctx[
|
7646
|
+
const get_default_slot_changes = dirty => ({ countdown: dirty & /*countdown*/ 2 });
|
7647
|
+
const get_default_slot_context = ctx => ({ countdown: /*countdown*/ ctx[1] });
|
7648
7648
|
|
7649
7649
|
function create_fragment$8(ctx) {
|
7650
7650
|
let div1;
|
7651
7651
|
let div0;
|
7652
7652
|
let current;
|
7653
|
-
const default_slot_template = /*#slots*/ ctx[
|
7654
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
7653
|
+
const default_slot_template = /*#slots*/ ctx[6].default;
|
7654
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], get_default_slot_context);
|
7655
7655
|
|
7656
7656
|
return {
|
7657
7657
|
c() {
|
@@ -7663,7 +7663,7 @@ function create_fragment$8(ctx) {
|
|
7663
7663
|
l(nodes) {
|
7664
7664
|
div1 = claim_element(nodes, "DIV", { class: true });
|
7665
7665
|
var div1_nodes = children(div1);
|
7666
|
-
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
7666
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
7667
7667
|
var div0_nodes = children(div0);
|
7668
7668
|
if (default_slot) default_slot.l(div0_nodes);
|
7669
7669
|
div0_nodes.forEach(detach);
|
@@ -7672,6 +7672,7 @@ function create_fragment$8(ctx) {
|
|
7672
7672
|
},
|
7673
7673
|
h() {
|
7674
7674
|
attr(div0, "class", "countdown-inner svelte-qx7l0c");
|
7675
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
7675
7676
|
attr(div1, "class", "countdown svelte-qx7l0c");
|
7676
7677
|
},
|
7677
7678
|
m(target, anchor) {
|
@@ -7686,19 +7687,23 @@ function create_fragment$8(ctx) {
|
|
7686
7687
|
},
|
7687
7688
|
p(ctx, [dirty]) {
|
7688
7689
|
if (default_slot) {
|
7689
|
-
if (default_slot.p && (!current || dirty & /*$$scope, countdown*/
|
7690
|
+
if (default_slot.p && (!current || dirty & /*$$scope, countdown*/ 34)) {
|
7690
7691
|
update_slot_base(
|
7691
7692
|
default_slot,
|
7692
7693
|
default_slot_template,
|
7693
7694
|
ctx,
|
7694
|
-
/*$$scope*/ ctx[
|
7695
|
+
/*$$scope*/ ctx[5],
|
7695
7696
|
!current
|
7696
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
7697
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
7697
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[5])
|
7698
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[5], dirty, get_default_slot_changes),
|
7698
7699
|
get_default_slot_context
|
7699
7700
|
);
|
7700
7701
|
}
|
7701
7702
|
}
|
7703
|
+
|
7704
|
+
if (!current || dirty & /*_style*/ 1) {
|
7705
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
7706
|
+
}
|
7702
7707
|
},
|
7703
7708
|
i(local) {
|
7704
7709
|
if (current) return;
|
@@ -7739,15 +7744,16 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7739
7744
|
let { $$slots: slots = {}, $$scope } = $$props;
|
7740
7745
|
let { timeLimit = '2023/12/31 23:59:59+0900' } = $$props;
|
7741
7746
|
let { stateOnEnd } = $$props;
|
7747
|
+
let { _style = '' } = $$props;
|
7742
7748
|
let remainingTime;
|
7743
7749
|
|
7744
7750
|
function onEachSecond() {
|
7745
7751
|
const _remainingTime = calcRemainingTime(new Date(timeLimit).getTime());
|
7746
7752
|
|
7747
7753
|
if (_remainingTime > 0) {
|
7748
|
-
$$invalidate(
|
7754
|
+
$$invalidate(4, remainingTime = formatTimeDiff(_remainingTime));
|
7749
7755
|
} else {
|
7750
|
-
$$invalidate(
|
7756
|
+
$$invalidate(4, remainingTime = formatTimeDiff(0));
|
7751
7757
|
}
|
7752
7758
|
}
|
7753
7759
|
|
@@ -7767,14 +7773,15 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7767
7773
|
onEachSecond();
|
7768
7774
|
|
7769
7775
|
$$self.$$set = $$props => {
|
7770
|
-
if ('timeLimit' in $$props) $$invalidate(
|
7771
|
-
if ('stateOnEnd' in $$props) $$invalidate(
|
7772
|
-
if ('
|
7776
|
+
if ('timeLimit' in $$props) $$invalidate(2, timeLimit = $$props.timeLimit);
|
7777
|
+
if ('stateOnEnd' in $$props) $$invalidate(3, stateOnEnd = $$props.stateOnEnd);
|
7778
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
7779
|
+
if ('$$scope' in $$props) $$invalidate(5, $$scope = $$props.$$scope);
|
7773
7780
|
};
|
7774
7781
|
|
7775
7782
|
$$self.$$.update = () => {
|
7776
|
-
if ($$self.$$.dirty & /*remainingTime*/
|
7777
|
-
$$invalidate(
|
7783
|
+
if ($$self.$$.dirty & /*remainingTime*/ 16) {
|
7784
|
+
$$invalidate(1, countdown = {
|
7778
7785
|
day: remainingTime.day,
|
7779
7786
|
hour: remainingTime.hour,
|
7780
7787
|
min: remainingTime.min,
|
@@ -7783,13 +7790,13 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7783
7790
|
}
|
7784
7791
|
};
|
7785
7792
|
|
7786
|
-
return [countdown, timeLimit, stateOnEnd, remainingTime, $$scope, slots];
|
7793
|
+
return [_style, countdown, timeLimit, stateOnEnd, remainingTime, $$scope, slots];
|
7787
7794
|
}
|
7788
7795
|
|
7789
7796
|
class Countdown extends SvelteComponent {
|
7790
7797
|
constructor(options) {
|
7791
7798
|
super();
|
7792
|
-
init(this, options, instance$8, create_fragment$8, safe_not_equal, { timeLimit:
|
7799
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { timeLimit: 2, stateOnEnd: 3, _style: 0 }, add_css$7);
|
7793
7800
|
}
|
7794
7801
|
}
|
7795
7802
|
|
package/dist/index.es.js
CHANGED
@@ -7224,15 +7224,15 @@ function add_css$7(target) {
|
|
7224
7224
|
append_styles(target, "svelte-qx7l0c", ".countdown.svelte-qx7l0c{position:relative;width:100%;height:100%}.countdown-inner.svelte-qx7l0c{position:absolute;inset:0}");
|
7225
7225
|
}
|
7226
7226
|
|
7227
|
-
const get_default_slot_changes = dirty => ({ countdown: dirty & /*countdown*/
|
7228
|
-
const get_default_slot_context = ctx => ({ countdown: /*countdown*/ ctx[
|
7227
|
+
const get_default_slot_changes = dirty => ({ countdown: dirty & /*countdown*/ 2 });
|
7228
|
+
const get_default_slot_context = ctx => ({ countdown: /*countdown*/ ctx[1] });
|
7229
7229
|
|
7230
7230
|
function create_fragment$8(ctx) {
|
7231
7231
|
let div1;
|
7232
7232
|
let div0;
|
7233
7233
|
let current;
|
7234
|
-
const default_slot_template = /*#slots*/ ctx[
|
7235
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
7234
|
+
const default_slot_template = /*#slots*/ ctx[6].default;
|
7235
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], get_default_slot_context);
|
7236
7236
|
|
7237
7237
|
return {
|
7238
7238
|
c() {
|
@@ -7240,6 +7240,7 @@ function create_fragment$8(ctx) {
|
|
7240
7240
|
div0 = element("div");
|
7241
7241
|
if (default_slot) default_slot.c();
|
7242
7242
|
attr(div0, "class", "countdown-inner svelte-qx7l0c");
|
7243
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
7243
7244
|
attr(div1, "class", "countdown svelte-qx7l0c");
|
7244
7245
|
},
|
7245
7246
|
m(target, anchor) {
|
@@ -7254,19 +7255,23 @@ function create_fragment$8(ctx) {
|
|
7254
7255
|
},
|
7255
7256
|
p(ctx, [dirty]) {
|
7256
7257
|
if (default_slot) {
|
7257
|
-
if (default_slot.p && (!current || dirty & /*$$scope, countdown*/
|
7258
|
+
if (default_slot.p && (!current || dirty & /*$$scope, countdown*/ 34)) {
|
7258
7259
|
update_slot_base(
|
7259
7260
|
default_slot,
|
7260
7261
|
default_slot_template,
|
7261
7262
|
ctx,
|
7262
|
-
/*$$scope*/ ctx[
|
7263
|
+
/*$$scope*/ ctx[5],
|
7263
7264
|
!current
|
7264
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
7265
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
7265
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[5])
|
7266
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[5], dirty, get_default_slot_changes),
|
7266
7267
|
get_default_slot_context
|
7267
7268
|
);
|
7268
7269
|
}
|
7269
7270
|
}
|
7271
|
+
|
7272
|
+
if (!current || dirty & /*_style*/ 1) {
|
7273
|
+
attr(div0, "style", /*_style*/ ctx[0]);
|
7274
|
+
}
|
7270
7275
|
},
|
7271
7276
|
i(local) {
|
7272
7277
|
if (current) return;
|
@@ -7307,15 +7312,16 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7307
7312
|
let { $$slots: slots = {}, $$scope } = $$props;
|
7308
7313
|
let { timeLimit = '2023/12/31 23:59:59+0900' } = $$props;
|
7309
7314
|
let { stateOnEnd } = $$props;
|
7315
|
+
let { _style = '' } = $$props;
|
7310
7316
|
let remainingTime;
|
7311
7317
|
|
7312
7318
|
function onEachSecond() {
|
7313
7319
|
const _remainingTime = calcRemainingTime(new Date(timeLimit).getTime());
|
7314
7320
|
|
7315
7321
|
if (_remainingTime > 0) {
|
7316
|
-
$$invalidate(
|
7322
|
+
$$invalidate(4, remainingTime = formatTimeDiff(_remainingTime));
|
7317
7323
|
} else {
|
7318
|
-
$$invalidate(
|
7324
|
+
$$invalidate(4, remainingTime = formatTimeDiff(0));
|
7319
7325
|
|
7320
7326
|
{
|
7321
7327
|
setState$1(stateOnEnd);
|
@@ -7339,14 +7345,15 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7339
7345
|
onEachSecond();
|
7340
7346
|
|
7341
7347
|
$$self.$$set = $$props => {
|
7342
|
-
if ('timeLimit' in $$props) $$invalidate(
|
7343
|
-
if ('stateOnEnd' in $$props) $$invalidate(
|
7344
|
-
if ('
|
7348
|
+
if ('timeLimit' in $$props) $$invalidate(2, timeLimit = $$props.timeLimit);
|
7349
|
+
if ('stateOnEnd' in $$props) $$invalidate(3, stateOnEnd = $$props.stateOnEnd);
|
7350
|
+
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
7351
|
+
if ('$$scope' in $$props) $$invalidate(5, $$scope = $$props.$$scope);
|
7345
7352
|
};
|
7346
7353
|
|
7347
7354
|
$$self.$$.update = () => {
|
7348
|
-
if ($$self.$$.dirty & /*remainingTime*/
|
7349
|
-
$$invalidate(
|
7355
|
+
if ($$self.$$.dirty & /*remainingTime*/ 16) {
|
7356
|
+
$$invalidate(1, countdown = {
|
7350
7357
|
day: remainingTime.day,
|
7351
7358
|
hour: remainingTime.hour,
|
7352
7359
|
min: remainingTime.min,
|
@@ -7355,13 +7362,13 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
7355
7362
|
}
|
7356
7363
|
};
|
7357
7364
|
|
7358
|
-
return [countdown, timeLimit, stateOnEnd, remainingTime, $$scope, slots];
|
7365
|
+
return [_style, countdown, timeLimit, stateOnEnd, remainingTime, $$scope, slots];
|
7359
7366
|
}
|
7360
7367
|
|
7361
7368
|
class Countdown extends SvelteComponent {
|
7362
7369
|
constructor(options) {
|
7363
7370
|
super();
|
7364
|
-
init(this, options, instance$8, create_fragment$8, safe_not_equal, { timeLimit:
|
7371
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { timeLimit: 2, stateOnEnd: 3, _style: 0 }, add_css$7);
|
7365
7372
|
}
|
7366
7373
|
}
|
7367
7374
|
|