@plaidev/karte-action-sdk 1.1.143-27972314.e1a43341 → 1.1.143-27973887.953b1981

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.
@@ -6605,12 +6605,12 @@ function add_css$9(target) {
6605
6605
 
6606
6606
  function get_each_context(ctx, list, i) {
6607
6607
  const child_ctx = ctx.slice();
6608
- child_ctx[57] = list[i];
6609
- child_ctx[59] = i;
6608
+ child_ctx[58] = list[i];
6609
+ child_ctx[60] = i;
6610
6610
  return child_ctx;
6611
6611
  }
6612
6612
 
6613
- // (349:2) {#if isVisiblePrevButton}
6613
+ // (357:2) {#if isVisiblePrevButton}
6614
6614
  function create_if_block_1(ctx) {
6615
6615
  let div1;
6616
6616
  let div0;
@@ -6645,9 +6645,9 @@ function create_if_block_1(ctx) {
6645
6645
  attr(polygon, "points", "8,0 10,2 4,8 10,14 8,16 0,8");
6646
6646
  attr(svg, "viewBox", "0 0 10 16");
6647
6647
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6648
- attr(svg, "style", /*prevIconStyle*/ ctx[9]);
6648
+ attr(svg, "style", /*prevIconStyle*/ ctx[10]);
6649
6649
  attr(div0, "class", "button-container svelte-c7zaph");
6650
- attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
6650
+ attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[9]);
6651
6651
  attr(div1, "class", "prev-button svelte-c7zaph");
6652
6652
  },
6653
6653
  m(target, anchor) {
@@ -6657,17 +6657,17 @@ function create_if_block_1(ctx) {
6657
6657
  append_hydration(svg, polygon);
6658
6658
 
6659
6659
  if (!mounted) {
6660
- dispose = listen(div1, "click", /*prev*/ ctx[14]);
6660
+ dispose = listen(div1, "click", /*prev*/ ctx[15]);
6661
6661
  mounted = true;
6662
6662
  }
6663
6663
  },
6664
6664
  p(ctx, dirty) {
6665
- if (dirty[0] & /*prevIconStyle*/ 512) {
6666
- attr(svg, "style", /*prevIconStyle*/ ctx[9]);
6665
+ if (dirty[0] & /*prevIconStyle*/ 1024) {
6666
+ attr(svg, "style", /*prevIconStyle*/ ctx[10]);
6667
6667
  }
6668
6668
 
6669
- if (dirty[0] & /*_prevButtonContainerStyle*/ 256) {
6670
- attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
6669
+ if (dirty[0] & /*_prevButtonContainerStyle*/ 512) {
6670
+ attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[9]);
6671
6671
  }
6672
6672
  },
6673
6673
  d(detaching) {
@@ -6678,7 +6678,7 @@ function create_if_block_1(ctx) {
6678
6678
  };
6679
6679
  }
6680
6680
 
6681
- // (358:2) {#if isVisibleNextButton}
6681
+ // (366:2) {#if isVisibleNextButton}
6682
6682
  function create_if_block$1(ctx) {
6683
6683
  let div1;
6684
6684
  let div0;
@@ -6713,9 +6713,9 @@ function create_if_block$1(ctx) {
6713
6713
  attr(polygon, "points", "2,0 10,8 2,16 0,14 6,8 0,2");
6714
6714
  attr(svg, "viewBox", "0 0 10 16");
6715
6715
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6716
- attr(svg, "style", /*nextIconStyle*/ ctx[7]);
6716
+ attr(svg, "style", /*nextIconStyle*/ ctx[8]);
6717
6717
  attr(div0, "class", "button-container svelte-c7zaph");
6718
- attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
6718
+ attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[7]);
6719
6719
  attr(div1, "class", "next-button svelte-c7zaph");
6720
6720
  },
6721
6721
  m(target, anchor) {
@@ -6725,17 +6725,17 @@ function create_if_block$1(ctx) {
6725
6725
  append_hydration(svg, polygon);
6726
6726
 
6727
6727
  if (!mounted) {
6728
- dispose = listen(div1, "click", /*next*/ ctx[15]);
6728
+ dispose = listen(div1, "click", /*next*/ ctx[16]);
6729
6729
  mounted = true;
6730
6730
  }
6731
6731
  },
6732
6732
  p(ctx, dirty) {
6733
- if (dirty[0] & /*nextIconStyle*/ 128) {
6734
- attr(svg, "style", /*nextIconStyle*/ ctx[7]);
6733
+ if (dirty[0] & /*nextIconStyle*/ 256) {
6734
+ attr(svg, "style", /*nextIconStyle*/ ctx[8]);
6735
6735
  }
6736
6736
 
6737
- if (dirty[0] & /*_nextButtonContainerStyle*/ 64) {
6738
- attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
6737
+ if (dirty[0] & /*_nextButtonContainerStyle*/ 128) {
6738
+ attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[7]);
6739
6739
  }
6740
6740
  },
6741
6741
  d(detaching) {
@@ -6746,7 +6746,7 @@ function create_if_block$1(ctx) {
6746
6746
  };
6747
6747
  }
6748
6748
 
6749
- // (371:4) {#each items as _, i}
6749
+ // (379:4) {#each items as _, i}
6750
6750
  function create_each_block(ctx) {
6751
6751
  let div1;
6752
6752
  let div0;
@@ -6756,7 +6756,7 @@ function create_each_block(ctx) {
6756
6756
  let dispose;
6757
6757
 
6758
6758
  function click_handler() {
6759
- return /*click_handler*/ ctx[34](/*i*/ ctx[59]);
6759
+ return /*click_handler*/ ctx[35](/*i*/ ctx[60]);
6760
6760
  }
6761
6761
 
6762
6762
  return {
@@ -6777,9 +6777,9 @@ function create_each_block(ctx) {
6777
6777
  },
6778
6778
  h() {
6779
6779
  attr(div0, "class", "navigation-item-inner circle svelte-c7zaph");
6780
- attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]));
6780
+ attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]));
6781
6781
  attr(div1, "class", "navigation-item svelte-c7zaph");
6782
- attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
6782
+ attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
6783
6783
  },
6784
6784
  m(target, anchor) {
6785
6785
  insert_hydration(target, div1, anchor);
@@ -6794,12 +6794,12 @@ function create_each_block(ctx) {
6794
6794
  p(new_ctx, dirty) {
6795
6795
  ctx = new_ctx;
6796
6796
 
6797
- if (dirty[0] & /*getNavigationItemInnerStyle*/ 16 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]))) {
6797
+ if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]))) {
6798
6798
  attr(div0, "style", div0_style_value);
6799
6799
  }
6800
6800
 
6801
- if (dirty[0] & /*navigationItemStyle*/ 32) {
6802
- attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
6801
+ if (dirty[0] & /*navigationItemStyle*/ 64) {
6802
+ attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
6803
6803
  }
6804
6804
  },
6805
6805
  d(detaching) {
@@ -6820,11 +6820,11 @@ function create_fragment$a(ctx) {
6820
6820
  let t2;
6821
6821
  let div2;
6822
6822
  let current;
6823
- const default_slot_template = /*#slots*/ ctx[31].default;
6824
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[30], null);
6825
- let if_block0 = /*isVisiblePrevButton*/ ctx[11] && create_if_block_1(ctx);
6826
- let if_block1 = /*isVisibleNextButton*/ ctx[10] && create_if_block$1(ctx);
6827
- let each_value = /*items*/ ctx[0];
6823
+ const default_slot_template = /*#slots*/ ctx[32].default;
6824
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[31], null);
6825
+ let if_block0 = /*isVisiblePrevButton*/ ctx[12] && create_if_block_1(ctx);
6826
+ let if_block1 = /*isVisibleNextButton*/ ctx[11] && create_if_block$1(ctx);
6827
+ let each_value = /*items*/ ctx[1];
6828
6828
  let each_blocks = [];
6829
6829
 
6830
6830
  for (let i = 0; i < each_value.length; i += 1) {
@@ -6853,7 +6853,7 @@ function create_fragment$a(ctx) {
6853
6853
  l(nodes) {
6854
6854
  div3 = claim_element(nodes, "DIV", { class: true });
6855
6855
  var div3_nodes = children(div3);
6856
- div1 = claim_element(div3_nodes, "DIV", { class: true });
6856
+ div1 = claim_element(div3_nodes, "DIV", { class: true, style: true });
6857
6857
  var div1_nodes = children(div1);
6858
6858
  div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
6859
6859
  var div0_nodes = children(div0);
@@ -6877,11 +6877,12 @@ function create_fragment$a(ctx) {
6877
6877
  this.h();
6878
6878
  },
6879
6879
  h() {
6880
- attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"));
6881
- attr(div0, "style", /*slideStyle*/ ctx[13]);
6880
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-c7zaph"));
6881
+ attr(div0, "style", /*slideStyle*/ ctx[14]);
6882
6882
  attr(div1, "class", "container svelte-c7zaph");
6883
+ attr(div1, "style", /*_style*/ ctx[0]);
6883
6884
  attr(div2, "class", "navigation svelte-c7zaph");
6884
- attr(div2, "style", /*navigationStyle*/ ctx[3]);
6885
+ attr(div2, "style", /*navigationStyle*/ ctx[4]);
6885
6886
  attr(div3, "class", "root svelte-c7zaph");
6886
6887
  },
6887
6888
  m(target, anchor) {
@@ -6893,8 +6894,8 @@ function create_fragment$a(ctx) {
6893
6894
  default_slot.m(div0, null);
6894
6895
  }
6895
6896
 
6896
- /*div0_binding*/ ctx[32](div0);
6897
- /*div1_binding*/ ctx[33](div1);
6897
+ /*div0_binding*/ ctx[33](div0);
6898
+ /*div1_binding*/ ctx[34](div1);
6898
6899
  append_hydration(div3, t0);
6899
6900
  if (if_block0) if_block0.m(div3, null);
6900
6901
  append_hydration(div3, t1);
@@ -6910,29 +6911,33 @@ function create_fragment$a(ctx) {
6910
6911
  },
6911
6912
  p(ctx, dirty) {
6912
6913
  if (default_slot) {
6913
- if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 1073741824)) {
6914
+ if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 1)) {
6914
6915
  update_slot_base(
6915
6916
  default_slot,
6916
6917
  default_slot_template,
6917
6918
  ctx,
6918
- /*$$scope*/ ctx[30],
6919
+ /*$$scope*/ ctx[31],
6919
6920
  !current
6920
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[30])
6921
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[30], dirty, null),
6921
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[31])
6922
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[31], dirty, null),
6922
6923
  null
6923
6924
  );
6924
6925
  }
6925
6926
  }
6926
6927
 
6927
- if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"))) {
6928
+ if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-c7zaph"))) {
6928
6929
  attr(div0, "class", div0_class_value);
6929
6930
  }
6930
6931
 
6931
- if (!current || dirty[0] & /*slideStyle*/ 8192) {
6932
- attr(div0, "style", /*slideStyle*/ ctx[13]);
6932
+ if (!current || dirty[0] & /*slideStyle*/ 16384) {
6933
+ attr(div0, "style", /*slideStyle*/ ctx[14]);
6934
+ }
6935
+
6936
+ if (!current || dirty[0] & /*_style*/ 1) {
6937
+ attr(div1, "style", /*_style*/ ctx[0]);
6933
6938
  }
6934
6939
 
6935
- if (/*isVisiblePrevButton*/ ctx[11]) {
6940
+ if (/*isVisiblePrevButton*/ ctx[12]) {
6936
6941
  if (if_block0) {
6937
6942
  if_block0.p(ctx, dirty);
6938
6943
  } else {
@@ -6945,7 +6950,7 @@ function create_fragment$a(ctx) {
6945
6950
  if_block0 = null;
6946
6951
  }
6947
6952
 
6948
- if (/*isVisibleNextButton*/ ctx[10]) {
6953
+ if (/*isVisibleNextButton*/ ctx[11]) {
6949
6954
  if (if_block1) {
6950
6955
  if_block1.p(ctx, dirty);
6951
6956
  } else {
@@ -6958,8 +6963,8 @@ function create_fragment$a(ctx) {
6958
6963
  if_block1 = null;
6959
6964
  }
6960
6965
 
6961
- if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 65585) {
6962
- each_value = /*items*/ ctx[0];
6966
+ if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 131170) {
6967
+ each_value = /*items*/ ctx[1];
6963
6968
  let i;
6964
6969
 
6965
6970
  for (i = 0; i < each_value.length; i += 1) {
@@ -6981,8 +6986,8 @@ function create_fragment$a(ctx) {
6981
6986
  each_blocks.length = each_value.length;
6982
6987
  }
6983
6988
 
6984
- if (!current || dirty[0] & /*navigationStyle*/ 8) {
6985
- attr(div2, "style", /*navigationStyle*/ ctx[3]);
6989
+ if (!current || dirty[0] & /*navigationStyle*/ 16) {
6990
+ attr(div2, "style", /*navigationStyle*/ ctx[4]);
6986
6991
  }
6987
6992
  },
6988
6993
  i(local) {
@@ -6997,8 +7002,8 @@ function create_fragment$a(ctx) {
6997
7002
  d(detaching) {
6998
7003
  if (detaching) detach(div3);
6999
7004
  if (default_slot) default_slot.d(detaching);
7000
- /*div0_binding*/ ctx[32](null);
7001
- /*div1_binding*/ ctx[33](null);
7005
+ /*div0_binding*/ ctx[33](null);
7006
+ /*div1_binding*/ ctx[34](null);
7002
7007
  if (if_block0) if_block0.d();
7003
7008
  if (if_block1) if_block1.d();
7004
7009
  destroy_each(each_blocks, detaching);
@@ -7033,33 +7038,34 @@ function instance$a($$self, $$props, $$invalidate) {
7033
7038
  let navigationStyle;
7034
7039
  let { $$slots: slots = {}, $$scope } = $$props;
7035
7040
  let { loop = false } = $$props;
7041
+ let { _style = '' } = $$props;
7036
7042
 
7037
- let { prevButton = {
7043
+ let { nextButton = {
7038
7044
  type: 'icon',
7039
- icon: 'chevron-left',
7045
+ icon: 'chevron-right',
7040
7046
  color: '#666',
7041
7047
  fill: '#666',
7042
7048
  size: '20px'
7043
7049
  } } = $$props;
7044
7050
 
7045
- let { prevButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
7051
+ let { nextButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
7046
7052
 
7047
- let { prevButtonEdgePosition = {
7053
+ let { nextButtonEdgePosition = {
7048
7054
  edgeDistance: '8px',
7049
7055
  edgeDirectionOffset: '0px'
7050
7056
  } } = $$props;
7051
7057
 
7052
- let { nextButton = {
7058
+ let { prevButton = {
7053
7059
  type: 'icon',
7054
- icon: 'chevron-right',
7060
+ icon: 'chevron-left',
7055
7061
  color: '#666',
7056
7062
  fill: '#666',
7057
7063
  size: '20px'
7058
7064
  } } = $$props;
7059
7065
 
7060
- let { nextButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
7066
+ let { prevButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
7061
7067
 
7062
- let { nextButtonEdgePosition = {
7068
+ let { prevButtonEdgePosition = {
7063
7069
  edgeDistance: '8px',
7064
7070
  edgeDirectionOffset: '0px'
7065
7071
  } } = $$props;
@@ -7082,11 +7088,11 @@ function instance$a($$self, $$props, $$invalidate) {
7082
7088
  setContext('SLIDE', {
7083
7089
  registerItem: ({ onBeforeSlide, onMount, onResize }) => {
7084
7090
  const id = new Date().getTime().toString();
7085
- $$invalidate(0, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
7091
+ $$invalidate(1, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
7086
7092
  return id;
7087
7093
  },
7088
7094
  unregisterItem: id => {
7089
- $$invalidate(0, items = items.filter(item => item.id !== id));
7095
+ $$invalidate(1, items = items.filter(item => item.id !== id));
7090
7096
  }
7091
7097
  });
7092
7098
 
@@ -7113,7 +7119,7 @@ function instance$a($$self, $$props, $$invalidate) {
7113
7119
  onBeforeSlide({ shiftCount, index, length: items.length });
7114
7120
  });
7115
7121
 
7116
- $$invalidate(27, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
7122
+ $$invalidate(28, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
7117
7123
  previousShiftCount = shiftCount;
7118
7124
  resolve();
7119
7125
  });
@@ -7124,8 +7130,8 @@ function instance$a($$self, $$props, $$invalidate) {
7124
7130
  if (transitioning) {
7125
7131
  const slideRect = slideElement.getBoundingClientRect();
7126
7132
  const containerRect = containerElement.getBoundingClientRect();
7127
- $$invalidate(28, transitioning = false);
7128
- $$invalidate(27, slidePosition = slideRect.x - containerRect.x);
7133
+ $$invalidate(29, transitioning = false);
7134
+ $$invalidate(28, slidePosition = slideRect.x - containerRect.x);
7129
7135
  }
7130
7136
  }
7131
7137
 
@@ -7145,10 +7151,10 @@ function instance$a($$self, $$props, $$invalidate) {
7145
7151
  }
7146
7152
  }
7147
7153
 
7148
- $$invalidate(28, transitioning = true);
7149
- $$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
7154
+ $$invalidate(29, transitioning = true);
7155
+ $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
7150
7156
  dispatch('change', { nextIndex: slideIndex });
7151
- $$invalidate(26, currentSlideId = slideIndex);
7157
+ $$invalidate(27, currentSlideId = slideIndex);
7152
7158
  });
7153
7159
  }
7154
7160
 
@@ -7170,7 +7176,7 @@ function instance$a($$self, $$props, $$invalidate) {
7170
7176
  const updatedSlidePosition = slidePosition + dx;
7171
7177
 
7172
7178
  window.requestAnimationFrame(() => {
7173
- $$invalidate(27, slidePosition = updatedSlidePosition);
7179
+ $$invalidate(28, slidePosition = updatedSlidePosition);
7174
7180
  });
7175
7181
  }
7176
7182
 
@@ -7190,7 +7196,7 @@ function instance$a($$self, $$props, $$invalidate) {
7190
7196
  });
7191
7197
  });
7192
7198
 
7193
- $$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
7199
+ $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
7194
7200
  }
7195
7201
 
7196
7202
  function handleMoveEnd() {
@@ -7243,7 +7249,7 @@ function instance$a($$self, $$props, $$invalidate) {
7243
7249
  }
7244
7250
 
7245
7251
  function handleTransitionEnd() {
7246
- $$invalidate(28, transitioning = false);
7252
+ $$invalidate(29, transitioning = false);
7247
7253
  fixSlidePosition();
7248
7254
  }
7249
7255
 
@@ -7254,7 +7260,7 @@ function instance$a($$self, $$props, $$invalidate) {
7254
7260
  item.onMount({ containerElement });
7255
7261
  });
7256
7262
 
7257
- $$invalidate(26, currentSlideId = 0);
7263
+ $$invalidate(27, currentSlideId = 0);
7258
7264
 
7259
7265
  if (_loop) {
7260
7266
  await fixSlidePosition();
@@ -7311,61 +7317,62 @@ function instance$a($$self, $$props, $$invalidate) {
7311
7317
  function div0_binding($$value) {
7312
7318
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
7313
7319
  slideElement = $$value;
7314
- $$invalidate(2, slideElement);
7320
+ $$invalidate(3, slideElement);
7315
7321
  });
7316
7322
  }
7317
7323
 
7318
7324
  function div1_binding($$value) {
7319
7325
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
7320
7326
  containerElement = $$value;
7321
- $$invalidate(1, containerElement);
7327
+ $$invalidate(2, containerElement);
7322
7328
  });
7323
7329
  }
7324
7330
 
7325
7331
  const click_handler = i => set(i);
7326
7332
 
7327
7333
  $$self.$$set = $$props => {
7328
- if ('loop' in $$props) $$invalidate(17, loop = $$props.loop);
7329
- if ('prevButton' in $$props) $$invalidate(18, prevButton = $$props.prevButton);
7330
- if ('prevButtonContainerStyle' in $$props) $$invalidate(19, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
7331
- if ('prevButtonEdgePosition' in $$props) $$invalidate(20, prevButtonEdgePosition = $$props.prevButtonEdgePosition);
7332
- if ('nextButton' in $$props) $$invalidate(21, nextButton = $$props.nextButton);
7333
- if ('nextButtonContainerStyle' in $$props) $$invalidate(22, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
7334
- if ('nextButtonEdgePosition' in $$props) $$invalidate(23, nextButtonEdgePosition = $$props.nextButtonEdgePosition);
7335
- if ('navigationButton' in $$props) $$invalidate(24, navigationButton = $$props.navigationButton);
7336
- if ('navigationEdgePosition' in $$props) $$invalidate(25, navigationEdgePosition = $$props.navigationEdgePosition);
7337
- if ('$$scope' in $$props) $$invalidate(30, $$scope = $$props.$$scope);
7334
+ if ('loop' in $$props) $$invalidate(18, loop = $$props.loop);
7335
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
7336
+ if ('nextButton' in $$props) $$invalidate(19, nextButton = $$props.nextButton);
7337
+ if ('nextButtonContainerStyle' in $$props) $$invalidate(20, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
7338
+ if ('nextButtonEdgePosition' in $$props) $$invalidate(21, nextButtonEdgePosition = $$props.nextButtonEdgePosition);
7339
+ if ('prevButton' in $$props) $$invalidate(22, prevButton = $$props.prevButton);
7340
+ if ('prevButtonContainerStyle' in $$props) $$invalidate(23, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
7341
+ if ('prevButtonEdgePosition' in $$props) $$invalidate(24, prevButtonEdgePosition = $$props.prevButtonEdgePosition);
7342
+ if ('navigationButton' in $$props) $$invalidate(25, navigationButton = $$props.navigationButton);
7343
+ if ('navigationEdgePosition' in $$props) $$invalidate(26, navigationEdgePosition = $$props.navigationEdgePosition);
7344
+ if ('$$scope' in $$props) $$invalidate(31, $$scope = $$props.$$scope);
7338
7345
  };
7339
7346
 
7340
7347
  $$self.$$.update = () => {
7341
- if ($$self.$$.dirty[0] & /*slidePosition*/ 134217728) {
7342
- $$invalidate(13, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
7348
+ if ($$self.$$.dirty[0] & /*slidePosition*/ 268435456) {
7349
+ $$invalidate(14, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
7343
7350
  }
7344
7351
 
7345
- if ($$self.$$.dirty[0] & /*transitioning*/ 268435456) {
7346
- $$invalidate(12, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
7352
+ if ($$self.$$.dirty[0] & /*transitioning*/ 536870912) {
7353
+ $$invalidate(13, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
7347
7354
  }
7348
7355
 
7349
- if ($$self.$$.dirty[0] & /*items, loop*/ 131073) {
7350
- $$invalidate(29, _loop = items.length >= 3 ? loop : false);
7356
+ if ($$self.$$.dirty[0] & /*items, loop*/ 262146) {
7357
+ $$invalidate(30, _loop = items.length >= 3 ? loop : false);
7351
7358
  }
7352
7359
 
7353
- if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 603979776) {
7354
- $$invalidate(11, isVisiblePrevButton = _loop || currentSlideId > 0);
7360
+ if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 1207959552) {
7361
+ $$invalidate(12, isVisiblePrevButton = _loop || currentSlideId > 0);
7355
7362
  }
7356
7363
 
7357
- if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 603979777) {
7358
- $$invalidate(10, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
7364
+ if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 1207959554) {
7365
+ $$invalidate(11, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
7359
7366
  }
7360
7367
 
7361
- if ($$self.$$.dirty[0] & /*prevButton*/ 262144) {
7362
- $$invalidate(9, prevIconStyle = prevButton.type === 'icon'
7368
+ if ($$self.$$.dirty[0] & /*prevButton*/ 4194304) {
7369
+ $$invalidate(10, prevIconStyle = prevButton.type === 'icon'
7363
7370
  ? `height: ${prevButton.size}; fill: ${prevButton.color};`
7364
7371
  : '');
7365
7372
  }
7366
7373
 
7367
- if ($$self.$$.dirty[0] & /*prevButtonEdgePosition, prevButtonContainerStyle*/ 1572864) {
7368
- $$invalidate(8, _prevButtonContainerStyle = (() => {
7374
+ if ($$self.$$.dirty[0] & /*prevButtonEdgePosition, prevButtonContainerStyle*/ 25165824) {
7375
+ $$invalidate(9, _prevButtonContainerStyle = (() => {
7369
7376
  const marginLeft = prevButtonEdgePosition.edgeDistance;
7370
7377
  const marginTop = prevButtonEdgePosition.edgeDirectionOffset;
7371
7378
  const marginString = `margin:${marginTop} 0 0 ${marginLeft}`;
@@ -7373,14 +7380,14 @@ function instance$a($$self, $$props, $$invalidate) {
7373
7380
  })());
7374
7381
  }
7375
7382
 
7376
- if ($$self.$$.dirty[0] & /*nextButton*/ 2097152) {
7377
- $$invalidate(7, nextIconStyle = nextButton.type === 'icon'
7383
+ if ($$self.$$.dirty[0] & /*nextButton*/ 524288) {
7384
+ $$invalidate(8, nextIconStyle = nextButton.type === 'icon'
7378
7385
  ? `height: ${nextButton.size}; fill: ${nextButton.color};`
7379
7386
  : '');
7380
7387
  }
7381
7388
 
7382
- if ($$self.$$.dirty[0] & /*nextButtonEdgePosition, nextButtonContainerStyle*/ 12582912) {
7383
- $$invalidate(6, _nextButtonContainerStyle = (() => {
7389
+ if ($$self.$$.dirty[0] & /*nextButtonEdgePosition, nextButtonContainerStyle*/ 3145728) {
7390
+ $$invalidate(7, _nextButtonContainerStyle = (() => {
7384
7391
  const marginRight = nextButtonEdgePosition.edgeDistance;
7385
7392
  const marginTop = nextButtonEdgePosition.edgeDirectionOffset;
7386
7393
  const marginString = `margin:${marginTop} ${marginRight} 0 0`;
@@ -7388,12 +7395,12 @@ function instance$a($$self, $$props, $$invalidate) {
7388
7395
  })());
7389
7396
  }
7390
7397
 
7391
- if ($$self.$$.dirty[0] & /*navigationButton*/ 16777216) {
7392
- $$invalidate(5, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
7398
+ if ($$self.$$.dirty[0] & /*navigationButton*/ 33554432) {
7399
+ $$invalidate(6, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
7393
7400
  }
7394
7401
 
7395
- if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 83886080) {
7396
- $$invalidate(4, getNavigationItemInnerStyle = i => `
7402
+ if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 167772160) {
7403
+ $$invalidate(5, getNavigationItemInnerStyle = i => `
7397
7404
  width: ${navigationButton.size};
7398
7405
  height: ${navigationButton.size};
7399
7406
  background-color: ${i === currentSlideId
@@ -7401,12 +7408,13 @@ background-color: ${i === currentSlideId
7401
7408
  : navigationButton.color};`);
7402
7409
  }
7403
7410
 
7404
- if ($$self.$$.dirty[0] & /*navigationEdgePosition*/ 33554432) {
7405
- $$invalidate(3, navigationStyle = `margin:0 0 ${navigationEdgePosition.edgeDistance} ${navigationEdgePosition.edgeDirectionOffset}`);
7411
+ if ($$self.$$.dirty[0] & /*navigationEdgePosition*/ 67108864) {
7412
+ $$invalidate(4, navigationStyle = `margin:0 0 ${navigationEdgePosition.edgeDistance} ${navigationEdgePosition.edgeDirectionOffset}`);
7406
7413
  }
7407
7414
  };
7408
7415
 
7409
7416
  return [
7417
+ _style,
7410
7418
  items,
7411
7419
  containerElement,
7412
7420
  slideElement,
@@ -7425,12 +7433,12 @@ background-color: ${i === currentSlideId
7425
7433
  next,
7426
7434
  set,
7427
7435
  loop,
7428
- prevButton,
7429
- prevButtonContainerStyle,
7430
- prevButtonEdgePosition,
7431
7436
  nextButton,
7432
7437
  nextButtonContainerStyle,
7433
7438
  nextButtonEdgePosition,
7439
+ prevButton,
7440
+ prevButtonContainerStyle,
7441
+ prevButtonEdgePosition,
7434
7442
  navigationButton,
7435
7443
  navigationEdgePosition,
7436
7444
  currentSlideId,
@@ -7456,15 +7464,16 @@ class Slide extends SvelteComponent {
7456
7464
  create_fragment$a,
7457
7465
  safe_not_equal,
7458
7466
  {
7459
- loop: 17,
7460
- prevButton: 18,
7461
- prevButtonContainerStyle: 19,
7462
- prevButtonEdgePosition: 20,
7463
- nextButton: 21,
7464
- nextButtonContainerStyle: 22,
7465
- nextButtonEdgePosition: 23,
7466
- navigationButton: 24,
7467
- navigationEdgePosition: 25
7467
+ loop: 18,
7468
+ _style: 0,
7469
+ nextButton: 19,
7470
+ nextButtonContainerStyle: 20,
7471
+ nextButtonEdgePosition: 21,
7472
+ prevButton: 22,
7473
+ prevButtonContainerStyle: 23,
7474
+ prevButtonEdgePosition: 24,
7475
+ navigationButton: 25,
7476
+ navigationEdgePosition: 26
7468
7477
  },
7469
7478
  add_css$9,
7470
7479
  [-1, -1]
package/dist/index.es.js CHANGED
@@ -6274,12 +6274,12 @@ function add_css$9(target) {
6274
6274
 
6275
6275
  function get_each_context(ctx, list, i) {
6276
6276
  const child_ctx = ctx.slice();
6277
- child_ctx[57] = list[i];
6278
- child_ctx[59] = i;
6277
+ child_ctx[58] = list[i];
6278
+ child_ctx[60] = i;
6279
6279
  return child_ctx;
6280
6280
  }
6281
6281
 
6282
- // (349:2) {#if isVisiblePrevButton}
6282
+ // (357:2) {#if isVisiblePrevButton}
6283
6283
  function create_if_block_1(ctx) {
6284
6284
  let div1;
6285
6285
  let div0;
@@ -6297,9 +6297,9 @@ function create_if_block_1(ctx) {
6297
6297
  attr(polygon, "points", "8,0 10,2 4,8 10,14 8,16 0,8");
6298
6298
  attr(svg, "viewBox", "0 0 10 16");
6299
6299
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6300
- attr(svg, "style", /*prevIconStyle*/ ctx[9]);
6300
+ attr(svg, "style", /*prevIconStyle*/ ctx[10]);
6301
6301
  attr(div0, "class", "button-container svelte-c7zaph");
6302
- attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
6302
+ attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[9]);
6303
6303
  attr(div1, "class", "prev-button svelte-c7zaph");
6304
6304
  },
6305
6305
  m(target, anchor) {
@@ -6309,17 +6309,17 @@ function create_if_block_1(ctx) {
6309
6309
  append(svg, polygon);
6310
6310
 
6311
6311
  if (!mounted) {
6312
- dispose = listen(div1, "click", /*prev*/ ctx[14]);
6312
+ dispose = listen(div1, "click", /*prev*/ ctx[15]);
6313
6313
  mounted = true;
6314
6314
  }
6315
6315
  },
6316
6316
  p(ctx, dirty) {
6317
- if (dirty[0] & /*prevIconStyle*/ 512) {
6318
- attr(svg, "style", /*prevIconStyle*/ ctx[9]);
6317
+ if (dirty[0] & /*prevIconStyle*/ 1024) {
6318
+ attr(svg, "style", /*prevIconStyle*/ ctx[10]);
6319
6319
  }
6320
6320
 
6321
- if (dirty[0] & /*_prevButtonContainerStyle*/ 256) {
6322
- attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[8]);
6321
+ if (dirty[0] & /*_prevButtonContainerStyle*/ 512) {
6322
+ attr(div0, "style", /*_prevButtonContainerStyle*/ ctx[9]);
6323
6323
  }
6324
6324
  },
6325
6325
  d(detaching) {
@@ -6330,7 +6330,7 @@ function create_if_block_1(ctx) {
6330
6330
  };
6331
6331
  }
6332
6332
 
6333
- // (358:2) {#if isVisibleNextButton}
6333
+ // (366:2) {#if isVisibleNextButton}
6334
6334
  function create_if_block$1(ctx) {
6335
6335
  let div1;
6336
6336
  let div0;
@@ -6348,9 +6348,9 @@ function create_if_block$1(ctx) {
6348
6348
  attr(polygon, "points", "2,0 10,8 2,16 0,14 6,8 0,2");
6349
6349
  attr(svg, "viewBox", "0 0 10 16");
6350
6350
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6351
- attr(svg, "style", /*nextIconStyle*/ ctx[7]);
6351
+ attr(svg, "style", /*nextIconStyle*/ ctx[8]);
6352
6352
  attr(div0, "class", "button-container svelte-c7zaph");
6353
- attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
6353
+ attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[7]);
6354
6354
  attr(div1, "class", "next-button svelte-c7zaph");
6355
6355
  },
6356
6356
  m(target, anchor) {
@@ -6360,17 +6360,17 @@ function create_if_block$1(ctx) {
6360
6360
  append(svg, polygon);
6361
6361
 
6362
6362
  if (!mounted) {
6363
- dispose = listen(div1, "click", /*next*/ ctx[15]);
6363
+ dispose = listen(div1, "click", /*next*/ ctx[16]);
6364
6364
  mounted = true;
6365
6365
  }
6366
6366
  },
6367
6367
  p(ctx, dirty) {
6368
- if (dirty[0] & /*nextIconStyle*/ 128) {
6369
- attr(svg, "style", /*nextIconStyle*/ ctx[7]);
6368
+ if (dirty[0] & /*nextIconStyle*/ 256) {
6369
+ attr(svg, "style", /*nextIconStyle*/ ctx[8]);
6370
6370
  }
6371
6371
 
6372
- if (dirty[0] & /*_nextButtonContainerStyle*/ 64) {
6373
- attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[6]);
6372
+ if (dirty[0] & /*_nextButtonContainerStyle*/ 128) {
6373
+ attr(div0, "style", /*_nextButtonContainerStyle*/ ctx[7]);
6374
6374
  }
6375
6375
  },
6376
6376
  d(detaching) {
@@ -6381,7 +6381,7 @@ function create_if_block$1(ctx) {
6381
6381
  };
6382
6382
  }
6383
6383
 
6384
- // (371:4) {#each items as _, i}
6384
+ // (379:4) {#each items as _, i}
6385
6385
  function create_each_block(ctx) {
6386
6386
  let div1;
6387
6387
  let div0;
@@ -6391,7 +6391,7 @@ function create_each_block(ctx) {
6391
6391
  let dispose;
6392
6392
 
6393
6393
  function click_handler() {
6394
- return /*click_handler*/ ctx[34](/*i*/ ctx[59]);
6394
+ return /*click_handler*/ ctx[35](/*i*/ ctx[60]);
6395
6395
  }
6396
6396
 
6397
6397
  return {
@@ -6400,9 +6400,9 @@ function create_each_block(ctx) {
6400
6400
  div0 = element("div");
6401
6401
  t = space();
6402
6402
  attr(div0, "class", "navigation-item-inner circle svelte-c7zaph");
6403
- attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]));
6403
+ attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]));
6404
6404
  attr(div1, "class", "navigation-item svelte-c7zaph");
6405
- attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
6405
+ attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
6406
6406
  },
6407
6407
  m(target, anchor) {
6408
6408
  insert(target, div1, anchor);
@@ -6417,12 +6417,12 @@ function create_each_block(ctx) {
6417
6417
  p(new_ctx, dirty) {
6418
6418
  ctx = new_ctx;
6419
6419
 
6420
- if (dirty[0] & /*getNavigationItemInnerStyle*/ 16 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[4](/*i*/ ctx[59]))) {
6420
+ if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]))) {
6421
6421
  attr(div0, "style", div0_style_value);
6422
6422
  }
6423
6423
 
6424
- if (dirty[0] & /*navigationItemStyle*/ 32) {
6425
- attr(div1, "style", /*navigationItemStyle*/ ctx[5]);
6424
+ if (dirty[0] & /*navigationItemStyle*/ 64) {
6425
+ attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
6426
6426
  }
6427
6427
  },
6428
6428
  d(detaching) {
@@ -6443,11 +6443,11 @@ function create_fragment$a(ctx) {
6443
6443
  let t2;
6444
6444
  let div2;
6445
6445
  let current;
6446
- const default_slot_template = /*#slots*/ ctx[31].default;
6447
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[30], null);
6448
- let if_block0 = /*isVisiblePrevButton*/ ctx[11] && create_if_block_1(ctx);
6449
- let if_block1 = /*isVisibleNextButton*/ ctx[10] && create_if_block$1(ctx);
6450
- let each_value = /*items*/ ctx[0];
6446
+ const default_slot_template = /*#slots*/ ctx[32].default;
6447
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[31], null);
6448
+ let if_block0 = /*isVisiblePrevButton*/ ctx[12] && create_if_block_1(ctx);
6449
+ let if_block1 = /*isVisibleNextButton*/ ctx[11] && create_if_block$1(ctx);
6450
+ let each_value = /*items*/ ctx[1];
6451
6451
  let each_blocks = [];
6452
6452
 
6453
6453
  for (let i = 0; i < each_value.length; i += 1) {
@@ -6471,11 +6471,12 @@ function create_fragment$a(ctx) {
6471
6471
  each_blocks[i].c();
6472
6472
  }
6473
6473
 
6474
- attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"));
6475
- attr(div0, "style", /*slideStyle*/ ctx[13]);
6474
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-c7zaph"));
6475
+ attr(div0, "style", /*slideStyle*/ ctx[14]);
6476
6476
  attr(div1, "class", "container svelte-c7zaph");
6477
+ attr(div1, "style", /*_style*/ ctx[0]);
6477
6478
  attr(div2, "class", "navigation svelte-c7zaph");
6478
- attr(div2, "style", /*navigationStyle*/ ctx[3]);
6479
+ attr(div2, "style", /*navigationStyle*/ ctx[4]);
6479
6480
  attr(div3, "class", "root svelte-c7zaph");
6480
6481
  },
6481
6482
  m(target, anchor) {
@@ -6487,8 +6488,8 @@ function create_fragment$a(ctx) {
6487
6488
  default_slot.m(div0, null);
6488
6489
  }
6489
6490
 
6490
- /*div0_binding*/ ctx[32](div0);
6491
- /*div1_binding*/ ctx[33](div1);
6491
+ /*div0_binding*/ ctx[33](div0);
6492
+ /*div1_binding*/ ctx[34](div1);
6492
6493
  append(div3, t0);
6493
6494
  if (if_block0) if_block0.m(div3, null);
6494
6495
  append(div3, t1);
@@ -6504,29 +6505,33 @@ function create_fragment$a(ctx) {
6504
6505
  },
6505
6506
  p(ctx, dirty) {
6506
6507
  if (default_slot) {
6507
- if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 1073741824)) {
6508
+ if (default_slot.p && (!current || dirty[1] & /*$$scope*/ 1)) {
6508
6509
  update_slot_base(
6509
6510
  default_slot,
6510
6511
  default_slot_template,
6511
6512
  ctx,
6512
- /*$$scope*/ ctx[30],
6513
+ /*$$scope*/ ctx[31],
6513
6514
  !current
6514
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[30])
6515
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[30], dirty, null),
6515
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[31])
6516
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[31], dirty, null),
6516
6517
  null
6517
6518
  );
6518
6519
  }
6519
6520
  }
6520
6521
 
6521
- if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-c7zaph"))) {
6522
+ if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-c7zaph"))) {
6522
6523
  attr(div0, "class", div0_class_value);
6523
6524
  }
6524
6525
 
6525
- if (!current || dirty[0] & /*slideStyle*/ 8192) {
6526
- attr(div0, "style", /*slideStyle*/ ctx[13]);
6526
+ if (!current || dirty[0] & /*slideStyle*/ 16384) {
6527
+ attr(div0, "style", /*slideStyle*/ ctx[14]);
6528
+ }
6529
+
6530
+ if (!current || dirty[0] & /*_style*/ 1) {
6531
+ attr(div1, "style", /*_style*/ ctx[0]);
6527
6532
  }
6528
6533
 
6529
- if (/*isVisiblePrevButton*/ ctx[11]) {
6534
+ if (/*isVisiblePrevButton*/ ctx[12]) {
6530
6535
  if (if_block0) {
6531
6536
  if_block0.p(ctx, dirty);
6532
6537
  } else {
@@ -6539,7 +6544,7 @@ function create_fragment$a(ctx) {
6539
6544
  if_block0 = null;
6540
6545
  }
6541
6546
 
6542
- if (/*isVisibleNextButton*/ ctx[10]) {
6547
+ if (/*isVisibleNextButton*/ ctx[11]) {
6543
6548
  if (if_block1) {
6544
6549
  if_block1.p(ctx, dirty);
6545
6550
  } else {
@@ -6552,8 +6557,8 @@ function create_fragment$a(ctx) {
6552
6557
  if_block1 = null;
6553
6558
  }
6554
6559
 
6555
- if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 65585) {
6556
- each_value = /*items*/ ctx[0];
6560
+ if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 131170) {
6561
+ each_value = /*items*/ ctx[1];
6557
6562
  let i;
6558
6563
 
6559
6564
  for (i = 0; i < each_value.length; i += 1) {
@@ -6575,8 +6580,8 @@ function create_fragment$a(ctx) {
6575
6580
  each_blocks.length = each_value.length;
6576
6581
  }
6577
6582
 
6578
- if (!current || dirty[0] & /*navigationStyle*/ 8) {
6579
- attr(div2, "style", /*navigationStyle*/ ctx[3]);
6583
+ if (!current || dirty[0] & /*navigationStyle*/ 16) {
6584
+ attr(div2, "style", /*navigationStyle*/ ctx[4]);
6580
6585
  }
6581
6586
  },
6582
6587
  i(local) {
@@ -6591,8 +6596,8 @@ function create_fragment$a(ctx) {
6591
6596
  d(detaching) {
6592
6597
  if (detaching) detach(div3);
6593
6598
  if (default_slot) default_slot.d(detaching);
6594
- /*div0_binding*/ ctx[32](null);
6595
- /*div1_binding*/ ctx[33](null);
6599
+ /*div0_binding*/ ctx[33](null);
6600
+ /*div1_binding*/ ctx[34](null);
6596
6601
  if (if_block0) if_block0.d();
6597
6602
  if (if_block1) if_block1.d();
6598
6603
  destroy_each(each_blocks, detaching);
@@ -6627,33 +6632,34 @@ function instance$a($$self, $$props, $$invalidate) {
6627
6632
  let navigationStyle;
6628
6633
  let { $$slots: slots = {}, $$scope } = $$props;
6629
6634
  let { loop = false } = $$props;
6635
+ let { _style = '' } = $$props;
6630
6636
 
6631
- let { prevButton = {
6637
+ let { nextButton = {
6632
6638
  type: 'icon',
6633
- icon: 'chevron-left',
6639
+ icon: 'chevron-right',
6634
6640
  color: '#666',
6635
6641
  fill: '#666',
6636
6642
  size: '20px'
6637
6643
  } } = $$props;
6638
6644
 
6639
- let { prevButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
6645
+ let { nextButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
6640
6646
 
6641
- let { prevButtonEdgePosition = {
6647
+ let { nextButtonEdgePosition = {
6642
6648
  edgeDistance: '8px',
6643
6649
  edgeDirectionOffset: '0px'
6644
6650
  } } = $$props;
6645
6651
 
6646
- let { nextButton = {
6652
+ let { prevButton = {
6647
6653
  type: 'icon',
6648
- icon: 'chevron-right',
6654
+ icon: 'chevron-left',
6649
6655
  color: '#666',
6650
6656
  fill: '#666',
6651
6657
  size: '20px'
6652
6658
  } } = $$props;
6653
6659
 
6654
- let { nextButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
6660
+ let { prevButtonContainerStyle = 'height: 48px; width: 24px;' } = $$props;
6655
6661
 
6656
- let { nextButtonEdgePosition = {
6662
+ let { prevButtonEdgePosition = {
6657
6663
  edgeDistance: '8px',
6658
6664
  edgeDirectionOffset: '0px'
6659
6665
  } } = $$props;
@@ -6676,11 +6682,11 @@ function instance$a($$self, $$props, $$invalidate) {
6676
6682
  setContext('SLIDE', {
6677
6683
  registerItem: ({ onBeforeSlide, onMount, onResize }) => {
6678
6684
  const id = new Date().getTime().toString();
6679
- $$invalidate(0, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
6685
+ $$invalidate(1, items = [...items, { id, onBeforeSlide, onMount, onResize }]);
6680
6686
  return id;
6681
6687
  },
6682
6688
  unregisterItem: id => {
6683
- $$invalidate(0, items = items.filter(item => item.id !== id));
6689
+ $$invalidate(1, items = items.filter(item => item.id !== id));
6684
6690
  }
6685
6691
  });
6686
6692
 
@@ -6707,7 +6713,7 @@ function instance$a($$self, $$props, $$invalidate) {
6707
6713
  onBeforeSlide({ shiftCount, index, length: items.length });
6708
6714
  });
6709
6715
 
6710
- $$invalidate(27, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
6716
+ $$invalidate(28, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
6711
6717
  previousShiftCount = shiftCount;
6712
6718
  resolve();
6713
6719
  });
@@ -6718,8 +6724,8 @@ function instance$a($$self, $$props, $$invalidate) {
6718
6724
  if (transitioning) {
6719
6725
  const slideRect = slideElement.getBoundingClientRect();
6720
6726
  const containerRect = containerElement.getBoundingClientRect();
6721
- $$invalidate(28, transitioning = false);
6722
- $$invalidate(27, slidePosition = slideRect.x - containerRect.x);
6727
+ $$invalidate(29, transitioning = false);
6728
+ $$invalidate(28, slidePosition = slideRect.x - containerRect.x);
6723
6729
  }
6724
6730
  }
6725
6731
 
@@ -6739,10 +6745,10 @@ function instance$a($$self, $$props, $$invalidate) {
6739
6745
  }
6740
6746
  }
6741
6747
 
6742
- $$invalidate(28, transitioning = true);
6743
- $$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
6748
+ $$invalidate(29, transitioning = true);
6749
+ $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
6744
6750
  dispatch('change', { nextIndex: slideIndex });
6745
- $$invalidate(26, currentSlideId = slideIndex);
6751
+ $$invalidate(27, currentSlideId = slideIndex);
6746
6752
  });
6747
6753
  }
6748
6754
 
@@ -6764,7 +6770,7 @@ function instance$a($$self, $$props, $$invalidate) {
6764
6770
  const updatedSlidePosition = slidePosition + dx;
6765
6771
 
6766
6772
  window.requestAnimationFrame(() => {
6767
- $$invalidate(27, slidePosition = updatedSlidePosition);
6773
+ $$invalidate(28, slidePosition = updatedSlidePosition);
6768
6774
  });
6769
6775
  }
6770
6776
 
@@ -6784,7 +6790,7 @@ function instance$a($$self, $$props, $$invalidate) {
6784
6790
  });
6785
6791
  });
6786
6792
 
6787
- $$invalidate(27, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
6793
+ $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
6788
6794
  }
6789
6795
 
6790
6796
  function handleMoveEnd() {
@@ -6837,7 +6843,7 @@ function instance$a($$self, $$props, $$invalidate) {
6837
6843
  }
6838
6844
 
6839
6845
  function handleTransitionEnd() {
6840
- $$invalidate(28, transitioning = false);
6846
+ $$invalidate(29, transitioning = false);
6841
6847
  fixSlidePosition();
6842
6848
  }
6843
6849
 
@@ -6848,7 +6854,7 @@ function instance$a($$self, $$props, $$invalidate) {
6848
6854
  item.onMount({ containerElement });
6849
6855
  });
6850
6856
 
6851
- $$invalidate(26, currentSlideId = 0);
6857
+ $$invalidate(27, currentSlideId = 0);
6852
6858
 
6853
6859
  if (_loop) {
6854
6860
  await fixSlidePosition();
@@ -6905,61 +6911,62 @@ function instance$a($$self, $$props, $$invalidate) {
6905
6911
  function div0_binding($$value) {
6906
6912
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6907
6913
  slideElement = $$value;
6908
- $$invalidate(2, slideElement);
6914
+ $$invalidate(3, slideElement);
6909
6915
  });
6910
6916
  }
6911
6917
 
6912
6918
  function div1_binding($$value) {
6913
6919
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6914
6920
  containerElement = $$value;
6915
- $$invalidate(1, containerElement);
6921
+ $$invalidate(2, containerElement);
6916
6922
  });
6917
6923
  }
6918
6924
 
6919
6925
  const click_handler = i => set(i);
6920
6926
 
6921
6927
  $$self.$$set = $$props => {
6922
- if ('loop' in $$props) $$invalidate(17, loop = $$props.loop);
6923
- if ('prevButton' in $$props) $$invalidate(18, prevButton = $$props.prevButton);
6924
- if ('prevButtonContainerStyle' in $$props) $$invalidate(19, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
6925
- if ('prevButtonEdgePosition' in $$props) $$invalidate(20, prevButtonEdgePosition = $$props.prevButtonEdgePosition);
6926
- if ('nextButton' in $$props) $$invalidate(21, nextButton = $$props.nextButton);
6927
- if ('nextButtonContainerStyle' in $$props) $$invalidate(22, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
6928
- if ('nextButtonEdgePosition' in $$props) $$invalidate(23, nextButtonEdgePosition = $$props.nextButtonEdgePosition);
6929
- if ('navigationButton' in $$props) $$invalidate(24, navigationButton = $$props.navigationButton);
6930
- if ('navigationEdgePosition' in $$props) $$invalidate(25, navigationEdgePosition = $$props.navigationEdgePosition);
6931
- if ('$$scope' in $$props) $$invalidate(30, $$scope = $$props.$$scope);
6928
+ if ('loop' in $$props) $$invalidate(18, loop = $$props.loop);
6929
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
6930
+ if ('nextButton' in $$props) $$invalidate(19, nextButton = $$props.nextButton);
6931
+ if ('nextButtonContainerStyle' in $$props) $$invalidate(20, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
6932
+ if ('nextButtonEdgePosition' in $$props) $$invalidate(21, nextButtonEdgePosition = $$props.nextButtonEdgePosition);
6933
+ if ('prevButton' in $$props) $$invalidate(22, prevButton = $$props.prevButton);
6934
+ if ('prevButtonContainerStyle' in $$props) $$invalidate(23, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
6935
+ if ('prevButtonEdgePosition' in $$props) $$invalidate(24, prevButtonEdgePosition = $$props.prevButtonEdgePosition);
6936
+ if ('navigationButton' in $$props) $$invalidate(25, navigationButton = $$props.navigationButton);
6937
+ if ('navigationEdgePosition' in $$props) $$invalidate(26, navigationEdgePosition = $$props.navigationEdgePosition);
6938
+ if ('$$scope' in $$props) $$invalidate(31, $$scope = $$props.$$scope);
6932
6939
  };
6933
6940
 
6934
6941
  $$self.$$.update = () => {
6935
- if ($$self.$$.dirty[0] & /*slidePosition*/ 134217728) {
6936
- $$invalidate(13, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
6942
+ if ($$self.$$.dirty[0] & /*slidePosition*/ 268435456) {
6943
+ $$invalidate(14, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
6937
6944
  }
6938
6945
 
6939
- if ($$self.$$.dirty[0] & /*transitioning*/ 268435456) {
6940
- $$invalidate(12, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
6946
+ if ($$self.$$.dirty[0] & /*transitioning*/ 536870912) {
6947
+ $$invalidate(13, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
6941
6948
  }
6942
6949
 
6943
- if ($$self.$$.dirty[0] & /*items, loop*/ 131073) {
6944
- $$invalidate(29, _loop = items.length >= 3 ? loop : false);
6950
+ if ($$self.$$.dirty[0] & /*items, loop*/ 262146) {
6951
+ $$invalidate(30, _loop = items.length >= 3 ? loop : false);
6945
6952
  }
6946
6953
 
6947
- if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 603979776) {
6948
- $$invalidate(11, isVisiblePrevButton = _loop || currentSlideId > 0);
6954
+ if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 1207959552) {
6955
+ $$invalidate(12, isVisiblePrevButton = _loop || currentSlideId > 0);
6949
6956
  }
6950
6957
 
6951
- if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 603979777) {
6952
- $$invalidate(10, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
6958
+ if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 1207959554) {
6959
+ $$invalidate(11, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
6953
6960
  }
6954
6961
 
6955
- if ($$self.$$.dirty[0] & /*prevButton*/ 262144) {
6956
- $$invalidate(9, prevIconStyle = prevButton.type === 'icon'
6962
+ if ($$self.$$.dirty[0] & /*prevButton*/ 4194304) {
6963
+ $$invalidate(10, prevIconStyle = prevButton.type === 'icon'
6957
6964
  ? `height: ${prevButton.size}; fill: ${prevButton.color};`
6958
6965
  : '');
6959
6966
  }
6960
6967
 
6961
- if ($$self.$$.dirty[0] & /*prevButtonEdgePosition, prevButtonContainerStyle*/ 1572864) {
6962
- $$invalidate(8, _prevButtonContainerStyle = (() => {
6968
+ if ($$self.$$.dirty[0] & /*prevButtonEdgePosition, prevButtonContainerStyle*/ 25165824) {
6969
+ $$invalidate(9, _prevButtonContainerStyle = (() => {
6963
6970
  const marginLeft = prevButtonEdgePosition.edgeDistance;
6964
6971
  const marginTop = prevButtonEdgePosition.edgeDirectionOffset;
6965
6972
  const marginString = `margin:${marginTop} 0 0 ${marginLeft}`;
@@ -6967,14 +6974,14 @@ function instance$a($$self, $$props, $$invalidate) {
6967
6974
  })());
6968
6975
  }
6969
6976
 
6970
- if ($$self.$$.dirty[0] & /*nextButton*/ 2097152) {
6971
- $$invalidate(7, nextIconStyle = nextButton.type === 'icon'
6977
+ if ($$self.$$.dirty[0] & /*nextButton*/ 524288) {
6978
+ $$invalidate(8, nextIconStyle = nextButton.type === 'icon'
6972
6979
  ? `height: ${nextButton.size}; fill: ${nextButton.color};`
6973
6980
  : '');
6974
6981
  }
6975
6982
 
6976
- if ($$self.$$.dirty[0] & /*nextButtonEdgePosition, nextButtonContainerStyle*/ 12582912) {
6977
- $$invalidate(6, _nextButtonContainerStyle = (() => {
6983
+ if ($$self.$$.dirty[0] & /*nextButtonEdgePosition, nextButtonContainerStyle*/ 3145728) {
6984
+ $$invalidate(7, _nextButtonContainerStyle = (() => {
6978
6985
  const marginRight = nextButtonEdgePosition.edgeDistance;
6979
6986
  const marginTop = nextButtonEdgePosition.edgeDirectionOffset;
6980
6987
  const marginString = `margin:${marginTop} ${marginRight} 0 0`;
@@ -6982,12 +6989,12 @@ function instance$a($$self, $$props, $$invalidate) {
6982
6989
  })());
6983
6990
  }
6984
6991
 
6985
- if ($$self.$$.dirty[0] & /*navigationButton*/ 16777216) {
6986
- $$invalidate(5, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
6992
+ if ($$self.$$.dirty[0] & /*navigationButton*/ 33554432) {
6993
+ $$invalidate(6, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
6987
6994
  }
6988
6995
 
6989
- if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 83886080) {
6990
- $$invalidate(4, getNavigationItemInnerStyle = i => `
6996
+ if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 167772160) {
6997
+ $$invalidate(5, getNavigationItemInnerStyle = i => `
6991
6998
  width: ${navigationButton.size};
6992
6999
  height: ${navigationButton.size};
6993
7000
  background-color: ${i === currentSlideId
@@ -6995,12 +7002,13 @@ background-color: ${i === currentSlideId
6995
7002
  : navigationButton.color};`);
6996
7003
  }
6997
7004
 
6998
- if ($$self.$$.dirty[0] & /*navigationEdgePosition*/ 33554432) {
6999
- $$invalidate(3, navigationStyle = `margin:0 0 ${navigationEdgePosition.edgeDistance} ${navigationEdgePosition.edgeDirectionOffset}`);
7005
+ if ($$self.$$.dirty[0] & /*navigationEdgePosition*/ 67108864) {
7006
+ $$invalidate(4, navigationStyle = `margin:0 0 ${navigationEdgePosition.edgeDistance} ${navigationEdgePosition.edgeDirectionOffset}`);
7000
7007
  }
7001
7008
  };
7002
7009
 
7003
7010
  return [
7011
+ _style,
7004
7012
  items,
7005
7013
  containerElement,
7006
7014
  slideElement,
@@ -7019,12 +7027,12 @@ background-color: ${i === currentSlideId
7019
7027
  next,
7020
7028
  set,
7021
7029
  loop,
7022
- prevButton,
7023
- prevButtonContainerStyle,
7024
- prevButtonEdgePosition,
7025
7030
  nextButton,
7026
7031
  nextButtonContainerStyle,
7027
7032
  nextButtonEdgePosition,
7033
+ prevButton,
7034
+ prevButtonContainerStyle,
7035
+ prevButtonEdgePosition,
7028
7036
  navigationButton,
7029
7037
  navigationEdgePosition,
7030
7038
  currentSlideId,
@@ -7050,15 +7058,16 @@ class Slide extends SvelteComponent {
7050
7058
  create_fragment$a,
7051
7059
  safe_not_equal,
7052
7060
  {
7053
- loop: 17,
7054
- prevButton: 18,
7055
- prevButtonContainerStyle: 19,
7056
- prevButtonEdgePosition: 20,
7057
- nextButton: 21,
7058
- nextButtonContainerStyle: 22,
7059
- nextButtonEdgePosition: 23,
7060
- navigationButton: 24,
7061
- navigationEdgePosition: 25
7061
+ loop: 18,
7062
+ _style: 0,
7063
+ nextButton: 19,
7064
+ nextButtonContainerStyle: 20,
7065
+ nextButtonEdgePosition: 21,
7066
+ prevButton: 22,
7067
+ prevButtonContainerStyle: 23,
7068
+ prevButtonEdgePosition: 24,
7069
+ navigationButton: 25,
7070
+ navigationEdgePosition: 26
7062
7071
  },
7063
7072
  add_css$9,
7064
7073
  [-1, -1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.143-27972314.e1a43341",
3
+ "version": "1.1.143-27973887.953b1981",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",