@plaidev/karte-action-sdk 1.1.268-29088092.6390e271 → 1.1.268-29089896.0dceea5e
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 +122 -104
- package/dist/index.es.js +111 -91
- package/dist/svelte5/hydrate/index.es.js +85 -43
- package/dist/svelte5/index.es.js +85 -43
- package/dist/svelte5/index.front2.es.js +85 -43
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -17452,17 +17452,17 @@ const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
|
|
17452
17452
|
/* src/components-flex/slider/Slider.svelte generated by Svelte v3.53.1 */
|
17453
17453
|
|
17454
17454
|
function add_css$f(target) {
|
17455
|
-
append_styles(target, "svelte-
|
17455
|
+
append_styles(target, "svelte-1rafop1", ".slider.svelte-1rafop1{width:100%;overflow:hidden}.slider-container.svelte-1rafop1{width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y}.slider-list.svelte-1rafop1{-webkit-user-drag:none;margin:0;padding:0;list-style:none}");
|
17456
17456
|
}
|
17457
17457
|
|
17458
17458
|
function get_each_context$1(ctx, list, i) {
|
17459
17459
|
const child_ctx = ctx.slice();
|
17460
|
-
child_ctx[
|
17461
|
-
child_ctx[
|
17460
|
+
child_ctx[32] = list[i];
|
17461
|
+
child_ctx[34] = i;
|
17462
17462
|
return child_ctx;
|
17463
17463
|
}
|
17464
17464
|
|
17465
|
-
// (
|
17465
|
+
// (183:4) {#each indicators ?? [] as indicator, i}
|
17466
17466
|
function create_each_block$1(ctx) {
|
17467
17467
|
let button;
|
17468
17468
|
let i_1;
|
@@ -17472,7 +17472,7 @@ function create_each_block$1(ctx) {
|
|
17472
17472
|
let dispose;
|
17473
17473
|
|
17474
17474
|
function click_handler() {
|
17475
|
-
return /*click_handler*/ ctx[
|
17475
|
+
return /*click_handler*/ ctx[20](/*i*/ ctx[34]);
|
17476
17476
|
}
|
17477
17477
|
|
17478
17478
|
return {
|
@@ -17495,7 +17495,7 @@ function create_each_block$1(ctx) {
|
|
17495
17495
|
attr(i_1, "style", i_1_style_value = objToStyle({
|
17496
17496
|
.../*indicatorItemStyle*/ ctx[3],
|
17497
17497
|
...{
|
17498
|
-
background: /*indicator*/ ctx[
|
17498
|
+
background: /*indicator*/ ctx[32].isActive ? '#555555' : '#AAAAAA'
|
17499
17499
|
}
|
17500
17500
|
}));
|
17501
17501
|
|
@@ -17518,10 +17518,10 @@ function create_each_block$1(ctx) {
|
|
17518
17518
|
p(new_ctx, dirty) {
|
17519
17519
|
ctx = new_ctx;
|
17520
17520
|
|
17521
|
-
if (dirty[0] & /*indicatorItemStyle, indicators*/
|
17521
|
+
if (dirty[0] & /*indicatorItemStyle, indicators*/ 72 && i_1_style_value !== (i_1_style_value = objToStyle({
|
17522
17522
|
.../*indicatorItemStyle*/ ctx[3],
|
17523
17523
|
...{
|
17524
|
-
background: /*indicator*/ ctx[
|
17524
|
+
background: /*indicator*/ ctx[32].isActive ? '#555555' : '#AAAAAA'
|
17525
17525
|
}
|
17526
17526
|
}))) {
|
17527
17527
|
attr(i_1, "style", i_1_style_value);
|
@@ -17536,17 +17536,18 @@ function create_each_block$1(ctx) {
|
|
17536
17536
|
}
|
17537
17537
|
|
17538
17538
|
function create_fragment$j(ctx) {
|
17539
|
-
let
|
17539
|
+
let div2;
|
17540
|
+
let div0;
|
17540
17541
|
let ul;
|
17541
17542
|
let ul_style_value;
|
17542
17543
|
let t;
|
17543
|
-
let
|
17544
|
+
let div1;
|
17544
17545
|
let current;
|
17545
17546
|
let mounted;
|
17546
17547
|
let dispose;
|
17547
|
-
const default_slot_template = /*#slots*/ ctx[
|
17548
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
17549
|
-
let each_value = /*indicators*/ ctx[
|
17548
|
+
const default_slot_template = /*#slots*/ ctx[18].default;
|
17549
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[17], null);
|
17550
|
+
let each_value = /*indicators*/ ctx[6] ?? [];
|
17550
17551
|
let each_blocks = [];
|
17551
17552
|
|
17552
17553
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -17555,11 +17556,12 @@ function create_fragment$j(ctx) {
|
|
17555
17556
|
|
17556
17557
|
return {
|
17557
17558
|
c() {
|
17558
|
-
|
17559
|
+
div2 = element("div");
|
17560
|
+
div0 = element("div");
|
17559
17561
|
ul = element("ul");
|
17560
17562
|
if (default_slot) default_slot.c();
|
17561
17563
|
t = space();
|
17562
|
-
|
17564
|
+
div1 = element("div");
|
17563
17565
|
|
17564
17566
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
17565
17567
|
each_blocks[i].c();
|
@@ -17568,59 +17570,58 @@ function create_fragment$j(ctx) {
|
|
17568
17570
|
this.h();
|
17569
17571
|
},
|
17570
17572
|
l(nodes) {
|
17571
|
-
|
17572
|
-
|
17573
|
-
|
17574
|
-
|
17575
|
-
});
|
17576
|
-
|
17577
|
-
var div1_nodes = children(div1);
|
17578
|
-
ul = claim_element(div1_nodes, "UL", { class: true, style: true });
|
17573
|
+
div2 = claim_element(nodes, "DIV", { "data-layer-id": true, class: true });
|
17574
|
+
var div2_nodes = children(div2);
|
17575
|
+
div0 = claim_element(div2_nodes, "DIV", { class: true });
|
17576
|
+
var div0_nodes = children(div0);
|
17577
|
+
ul = claim_element(div0_nodes, "UL", { class: true, style: true });
|
17579
17578
|
var ul_nodes = children(ul);
|
17580
17579
|
if (default_slot) default_slot.l(ul_nodes);
|
17581
17580
|
ul_nodes.forEach(detach);
|
17582
|
-
|
17583
|
-
|
17584
|
-
|
17581
|
+
div0_nodes.forEach(detach);
|
17582
|
+
t = claim_space(div2_nodes);
|
17583
|
+
div1 = claim_element(div2_nodes, "DIV", { style: true });
|
17584
|
+
var div1_nodes = children(div1);
|
17585
17585
|
|
17586
17586
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
17587
|
-
each_blocks[i].l(
|
17587
|
+
each_blocks[i].l(div1_nodes);
|
17588
17588
|
}
|
17589
17589
|
|
17590
|
-
div0_nodes.forEach(detach);
|
17591
17590
|
div1_nodes.forEach(detach);
|
17591
|
+
div2_nodes.forEach(detach);
|
17592
17592
|
this.h();
|
17593
17593
|
},
|
17594
17594
|
h() {
|
17595
|
-
attr(ul, "class", "slider-list svelte-
|
17595
|
+
attr(ul, "class", "slider-list svelte-1rafop1");
|
17596
17596
|
attr(ul, "style", ul_style_value = [/*containerStyle*/ ctx[5], /*overrideStyle*/ ctx[1]].join(' '));
|
17597
|
-
attr(div0, "
|
17598
|
-
attr(div1, "
|
17599
|
-
attr(
|
17600
|
-
attr(
|
17597
|
+
attr(div0, "class", "slider-container svelte-1rafop1");
|
17598
|
+
attr(div1, "style", /*indicatorListStyle*/ ctx[4]);
|
17599
|
+
attr(div2, "data-layer-id", /*layerId*/ ctx[0]);
|
17600
|
+
attr(div2, "class", "slider svelte-1rafop1");
|
17601
17601
|
},
|
17602
17602
|
m(target, anchor) {
|
17603
|
-
insert_hydration(target,
|
17604
|
-
append_hydration(
|
17603
|
+
insert_hydration(target, div2, anchor);
|
17604
|
+
append_hydration(div2, div0);
|
17605
|
+
append_hydration(div0, ul);
|
17605
17606
|
|
17606
17607
|
if (default_slot) {
|
17607
17608
|
default_slot.m(ul, null);
|
17608
17609
|
}
|
17609
17610
|
|
17610
|
-
/*ul_binding*/ ctx[
|
17611
|
-
append_hydration(
|
17612
|
-
append_hydration(
|
17611
|
+
/*ul_binding*/ ctx[19](ul);
|
17612
|
+
append_hydration(div2, t);
|
17613
|
+
append_hydration(div2, div1);
|
17613
17614
|
|
17614
17615
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
17615
|
-
each_blocks[i].m(
|
17616
|
+
each_blocks[i].m(div1, null);
|
17616
17617
|
}
|
17617
17618
|
|
17618
17619
|
current = true;
|
17619
17620
|
|
17620
17621
|
if (!mounted) {
|
17621
17622
|
dispose = [
|
17622
|
-
listen(
|
17623
|
-
listen(
|
17623
|
+
listen(div0, "mousedown", /*handleMousedown*/ ctx[9]),
|
17624
|
+
listen(div0, "touchstart", /*handleTouchstart*/ ctx[8])
|
17624
17625
|
];
|
17625
17626
|
|
17626
17627
|
mounted = true;
|
@@ -17628,15 +17629,15 @@ function create_fragment$j(ctx) {
|
|
17628
17629
|
},
|
17629
17630
|
p(ctx, dirty) {
|
17630
17631
|
if (default_slot) {
|
17631
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
17632
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 131072)) {
|
17632
17633
|
update_slot_base(
|
17633
17634
|
default_slot,
|
17634
17635
|
default_slot_template,
|
17635
17636
|
ctx,
|
17636
|
-
/*$$scope*/ ctx[
|
17637
|
+
/*$$scope*/ ctx[17],
|
17637
17638
|
!current
|
17638
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
17639
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
17639
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[17])
|
17640
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[17], dirty, null),
|
17640
17641
|
null
|
17641
17642
|
);
|
17642
17643
|
}
|
@@ -17646,8 +17647,8 @@ function create_fragment$j(ctx) {
|
|
17646
17647
|
attr(ul, "style", ul_style_value);
|
17647
17648
|
}
|
17648
17649
|
|
17649
|
-
if (dirty[0] & /*handleClickIndicator, indicatorItemStyle, indicators*/
|
17650
|
-
each_value = /*indicators*/ ctx[
|
17650
|
+
if (dirty[0] & /*handleClickIndicator, indicatorItemStyle, indicators*/ 200) {
|
17651
|
+
each_value = /*indicators*/ ctx[6] ?? [];
|
17651
17652
|
let i;
|
17652
17653
|
|
17653
17654
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -17658,7 +17659,7 @@ function create_fragment$j(ctx) {
|
|
17658
17659
|
} else {
|
17659
17660
|
each_blocks[i] = create_each_block$1(child_ctx);
|
17660
17661
|
each_blocks[i].c();
|
17661
|
-
each_blocks[i].m(
|
17662
|
+
each_blocks[i].m(div1, null);
|
17662
17663
|
}
|
17663
17664
|
}
|
17664
17665
|
|
@@ -17670,15 +17671,11 @@ function create_fragment$j(ctx) {
|
|
17670
17671
|
}
|
17671
17672
|
|
17672
17673
|
if (!current || dirty[0] & /*indicatorListStyle*/ 16) {
|
17673
|
-
attr(
|
17674
|
+
attr(div1, "style", /*indicatorListStyle*/ ctx[4]);
|
17674
17675
|
}
|
17675
17676
|
|
17676
17677
|
if (!current || dirty[0] & /*layerId*/ 1) {
|
17677
|
-
attr(
|
17678
|
-
}
|
17679
|
-
|
17680
|
-
if (!current || dirty[0] & /*style*/ 64) {
|
17681
|
-
attr(div1, "style", /*style*/ ctx[6]);
|
17678
|
+
attr(div2, "data-layer-id", /*layerId*/ ctx[0]);
|
17682
17679
|
}
|
17683
17680
|
},
|
17684
17681
|
i(local) {
|
@@ -17691,9 +17688,9 @@ function create_fragment$j(ctx) {
|
|
17691
17688
|
current = false;
|
17692
17689
|
},
|
17693
17690
|
d(detaching) {
|
17694
|
-
if (detaching) detach(
|
17691
|
+
if (detaching) detach(div2);
|
17695
17692
|
if (default_slot) default_slot.d(detaching);
|
17696
|
-
/*ul_binding*/ ctx[
|
17693
|
+
/*ul_binding*/ ctx[19](null);
|
17697
17694
|
destroy_each(each_blocks, detaching);
|
17698
17695
|
mounted = false;
|
17699
17696
|
run_all(dispose);
|
@@ -17704,7 +17701,7 @@ function create_fragment$j(ctx) {
|
|
17704
17701
|
function instance$j($$self, $$props, $$invalidate) {
|
17705
17702
|
let indicators;
|
17706
17703
|
let itemWidthPercentage;
|
17707
|
-
let
|
17704
|
+
let baseContainerStyle;
|
17708
17705
|
let containerStyle;
|
17709
17706
|
let indicatorListStyle;
|
17710
17707
|
let indicatorItemStyle;
|
@@ -17718,54 +17715,54 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17718
17715
|
let isDragging = false;
|
17719
17716
|
let startX = 0;
|
17720
17717
|
let movedX = null;
|
17721
|
-
let childCount =
|
17722
|
-
|
17723
|
-
|
17724
|
-
|
17725
|
-
|
17726
|
-
|
17727
|
-
|
17728
|
-
|
17729
|
-
|
17730
|
-
|
17731
|
-
|
17732
|
-
|
17733
|
-
|
17734
|
-
|
17735
|
-
}
|
17736
|
-
|
17737
|
-
movingMap.forEach(value => result += value);
|
17738
|
-
return result;
|
17739
|
-
})();
|
17718
|
+
let childCount = 0;
|
17719
|
+
let transformX;
|
17720
|
+
console.log('transformX', transformX);
|
17721
|
+
|
17722
|
+
const computeTransformX = (index, itemCount, movedX, itemWidthPercentage, gap) => {
|
17723
|
+
if (index === 0) return;
|
17724
|
+
let result = 0;
|
17725
|
+
const itemMargin = (100 - itemWidthPercentage) / 2;
|
17726
|
+
|
17727
|
+
for (let i = 1; i <= index; i++) {
|
17728
|
+
if (i === 1 || i === itemCount - 1) {
|
17729
|
+
result += itemWidthPercentage - itemMargin;
|
17730
|
+
} else {
|
17731
|
+
result += itemWidthPercentage;
|
17732
|
+
}
|
17733
|
+
}
|
17740
17734
|
|
17741
|
-
|
17735
|
+
const moved = movedX ? ` + ${-movedX}px` : '';
|
17736
|
+
return `translateX(calc(-${result}% - ${gap * index}px${moved}))`;
|
17742
17737
|
};
|
17743
17738
|
|
17744
17739
|
const handleClickIndicator = index => {
|
17745
|
-
$$invalidate(
|
17740
|
+
$$invalidate(11, currentIndex = index);
|
17746
17741
|
};
|
17747
17742
|
|
17748
17743
|
const setChildCount = () => {
|
17749
17744
|
const count = slotElement?.children?.length ?? 0;
|
17750
17745
|
|
17751
17746
|
if (count !== childCount) {
|
17752
|
-
$$invalidate(
|
17747
|
+
$$invalidate(13, childCount = slotElement?.children?.length ?? 0);
|
17753
17748
|
}
|
17754
17749
|
};
|
17755
17750
|
|
17756
17751
|
const toNext = () => {
|
17752
|
+
console.log('toNext');
|
17753
|
+
|
17757
17754
|
if (currentIndex < childCount - 1) {
|
17758
|
-
$$invalidate(
|
17755
|
+
$$invalidate(11, currentIndex = currentIndex + 1);
|
17759
17756
|
} else if (props.loop) {
|
17760
|
-
$$invalidate(
|
17757
|
+
$$invalidate(11, currentIndex = 0);
|
17761
17758
|
}
|
17762
17759
|
};
|
17763
17760
|
|
17764
17761
|
const toPrev = () => {
|
17765
17762
|
if (currentIndex > 0) {
|
17766
|
-
$$invalidate(
|
17763
|
+
$$invalidate(11, currentIndex = currentIndex - 1);
|
17767
17764
|
} else if (props.loop) {
|
17768
|
-
$$invalidate(
|
17765
|
+
$$invalidate(11, currentIndex = childCount - 1);
|
17769
17766
|
}
|
17770
17767
|
};
|
17771
17768
|
|
@@ -17777,7 +17774,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17777
17774
|
};
|
17778
17775
|
|
17779
17776
|
const handleTouchmove = e => {
|
17780
|
-
$$invalidate(
|
17777
|
+
$$invalidate(12, movedX = startX - e.touches[0].clientX);
|
17781
17778
|
|
17782
17779
|
if (movedX > 10 || movedX < -10) {
|
17783
17780
|
isDragging = true;
|
@@ -17791,7 +17788,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17791
17788
|
toPrev();
|
17792
17789
|
}
|
17793
17790
|
|
17794
|
-
$$invalidate(
|
17791
|
+
$$invalidate(12, movedX = null);
|
17795
17792
|
document.removeEventListener('touchmove', handleTouchmove);
|
17796
17793
|
document.removeEventListener('touchend', handleTouchend);
|
17797
17794
|
document.removeEventListener('click', handleClick);
|
@@ -17806,7 +17803,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17806
17803
|
};
|
17807
17804
|
|
17808
17805
|
const handleMousemove = e => {
|
17809
|
-
$$invalidate(
|
17806
|
+
$$invalidate(12, movedX = startX - e.clientX);
|
17810
17807
|
|
17811
17808
|
if (movedX > 10 || movedX < -10) {
|
17812
17809
|
isDragging = true;
|
@@ -17820,37 +17817,43 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17820
17817
|
toPrev();
|
17821
17818
|
}
|
17822
17819
|
|
17823
|
-
$$invalidate(
|
17820
|
+
$$invalidate(12, movedX = null);
|
17824
17821
|
|
17825
17822
|
if (isDragging) {
|
17826
|
-
e.preventDefault()
|
17823
|
+
// e.preventDefault()
|
17827
17824
|
e.stopPropagation();
|
17828
17825
|
}
|
17829
17826
|
|
17830
17827
|
document.removeEventListener('mousemove', handleMousemove);
|
17831
17828
|
document.removeEventListener('mouseup', handleMouseup);
|
17829
|
+
document.removeEventListener('click', handleClick);
|
17832
17830
|
};
|
17833
17831
|
|
17834
17832
|
const handleMousedown = e => {
|
17835
17833
|
startX = e.clientX;
|
17836
17834
|
isDragging = false;
|
17837
17835
|
document.addEventListener('mousemove', handleMousemove, { passive: true });
|
17838
|
-
document.addEventListener('mouseup', handleMouseup, { passive:
|
17836
|
+
document.addEventListener('mouseup', handleMouseup, { passive: false });
|
17839
17837
|
document.addEventListener('click', handleClick, { capture: true });
|
17840
17838
|
};
|
17841
17839
|
|
17842
17840
|
onMount$1(() => {
|
17843
17841
|
setChildCount();
|
17844
|
-
|
17842
|
+
let autoSlideTimer;
|
17845
17843
|
|
17846
17844
|
if (props.auto) {
|
17847
|
-
setInterval(
|
17845
|
+
autoSlideTimer = setInterval(
|
17848
17846
|
() => {
|
17849
17847
|
toNext();
|
17850
17848
|
},
|
17851
17849
|
props.interval ?? 5000
|
17852
17850
|
);
|
17853
17851
|
}
|
17852
|
+
|
17853
|
+
return () => {
|
17854
|
+
// clearInterval(childCountTimer)
|
17855
|
+
if (autoSlideTimer) clearInterval(autoSlideTimer);
|
17856
|
+
};
|
17854
17857
|
});
|
17855
17858
|
|
17856
17859
|
function ul_binding($$value) {
|
@@ -17864,22 +17867,32 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17864
17867
|
|
17865
17868
|
$$self.$$set = $$props => {
|
17866
17869
|
if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
|
17867
|
-
if ('props' in $$props) $$invalidate(
|
17870
|
+
if ('props' in $$props) $$invalidate(10, props = $$props.props);
|
17868
17871
|
if ('overrideStyle' in $$props) $$invalidate(1, overrideStyle = $$props.overrideStyle);
|
17869
|
-
if ('$$scope' in $$props) $$invalidate(
|
17872
|
+
if ('$$scope' in $$props) $$invalidate(17, $$scope = $$props.$$scope);
|
17870
17873
|
};
|
17871
17874
|
|
17872
17875
|
$$self.$$.update = () => {
|
17873
|
-
if ($$self.$$.dirty[0] & /*
|
17874
|
-
|
17876
|
+
if ($$self.$$.dirty[0] & /*slotElement*/ 4) {
|
17877
|
+
if (slotElement) {
|
17878
|
+
$$invalidate(13, childCount = slotElement.children.length);
|
17879
|
+
}
|
17875
17880
|
}
|
17876
17881
|
|
17877
|
-
if ($$self.$$.dirty[0] & /*
|
17878
|
-
$$invalidate(
|
17882
|
+
if ($$self.$$.dirty[0] & /*childCount, currentIndex*/ 10240) {
|
17883
|
+
$$invalidate(6, indicators = [...Array(childCount)].map((_, i) => ({ index: i, isActive: i === currentIndex })));
|
17879
17884
|
}
|
17880
17885
|
|
17881
|
-
if ($$self.$$.dirty[0] & /*props
|
17882
|
-
$$invalidate(
|
17886
|
+
if ($$self.$$.dirty[0] & /*props*/ 1024) {
|
17887
|
+
$$invalidate(16, itemWidthPercentage = props.itemWidthPercentage ?? 100);
|
17888
|
+
}
|
17889
|
+
|
17890
|
+
if ($$self.$$.dirty[0] & /*currentIndex, childCount, movedX, itemWidthPercentage, props*/ 80896) {
|
17891
|
+
$$invalidate(14, transformX = computeTransformX(currentIndex, childCount, movedX, itemWidthPercentage, props.gap ?? 0));
|
17892
|
+
}
|
17893
|
+
|
17894
|
+
if ($$self.$$.dirty[0] & /*props, itemWidthPercentage, movedX*/ 70656) {
|
17895
|
+
$$invalidate(15, baseContainerStyle = {
|
17883
17896
|
display: 'grid',
|
17884
17897
|
// marginInline: `-${props.gap}px`,
|
17885
17898
|
gap: `${props.gap}px`,
|
@@ -17888,14 +17901,18 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17888
17901
|
gridAutoColumns: `minmax(${itemWidthPercentage}%, 1fr)`,
|
17889
17902
|
flexShrink: 0,
|
17890
17903
|
transition: movedX === null ? 'transform 0.5s' : undefined,
|
17891
|
-
transform: calcTransformX(currentIndex, childCount),
|
17892
17904
|
userSelect: 'none'
|
17905
|
+
});
|
17906
|
+
}
|
17907
|
+
|
17908
|
+
if ($$self.$$.dirty[0] & /*baseContainerStyle, transformX*/ 49152) {
|
17909
|
+
$$invalidate(5, containerStyle = objToStyle({
|
17910
|
+
...baseContainerStyle,
|
17911
|
+
transform: transformX
|
17893
17912
|
}));
|
17894
17913
|
}
|
17895
17914
|
};
|
17896
17915
|
|
17897
|
-
$$invalidate(6, style = objToStyle({ overflow: 'hidden', width: '100%' }));
|
17898
|
-
|
17899
17916
|
$$invalidate(4, indicatorListStyle = objToStyle({
|
17900
17917
|
display: 'flex',
|
17901
17918
|
justifyContent: 'center',
|
@@ -17919,7 +17936,6 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17919
17936
|
indicatorItemStyle,
|
17920
17937
|
indicatorListStyle,
|
17921
17938
|
containerStyle,
|
17922
|
-
style,
|
17923
17939
|
indicators,
|
17924
17940
|
handleClickIndicator,
|
17925
17941
|
handleTouchstart,
|
@@ -17928,6 +17944,8 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17928
17944
|
currentIndex,
|
17929
17945
|
movedX,
|
17930
17946
|
childCount,
|
17947
|
+
transformX,
|
17948
|
+
baseContainerStyle,
|
17931
17949
|
itemWidthPercentage,
|
17932
17950
|
$$scope,
|
17933
17951
|
slots,
|
@@ -17939,7 +17957,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
17939
17957
|
class Slider extends SvelteComponent {
|
17940
17958
|
constructor(options) {
|
17941
17959
|
super();
|
17942
|
-
init(this, options, instance$j, create_fragment$j, safe_not_equal, { layerId: 0, props:
|
17960
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { layerId: 0, props: 10, overrideStyle: 1 }, add_css$f, [-1, -1]);
|
17943
17961
|
}
|
17944
17962
|
}
|
17945
17963
|
|