@plaidev/karte-action-sdk 1.1.116-27927874.783c1fe4 → 1.1.116-27929049.d4f5759c
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.d.ts +23 -23
- package/dist/hydrate/index.es.js +281 -224
- package/dist/index.es.d.ts +23 -23
- package/dist/index.es.js +241 -198
- package/dist/templates.js +2 -2
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
|
2
2
|
import 'svelte/easing';
|
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal, set_style
|
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal, set_style } from 'svelte/internal';
|
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
|
5
5
|
|
|
6
6
|
/** @internal */
|
|
@@ -1091,14 +1091,14 @@ const DefaultListBackgroundStripe = {
|
|
|
1091
1091
|
const DefaultListBackground = DefaultListBackgroundNone;
|
|
1092
1092
|
/** @internal */
|
|
1093
1093
|
const ListDirections = ['vertical', 'horizontal'];
|
|
1094
|
-
const
|
|
1094
|
+
const DefaultSlideButton = {
|
|
1095
1095
|
type: 'icon',
|
|
1096
1096
|
icon: 'chevron-left',
|
|
1097
1097
|
color: '#999',
|
|
1098
1098
|
fill: '#999',
|
|
1099
1099
|
size: '20px',
|
|
1100
1100
|
};
|
|
1101
|
-
const
|
|
1101
|
+
const DefaultSlideNavigationButton = {
|
|
1102
1102
|
type: 'circle',
|
|
1103
1103
|
size: '8px',
|
|
1104
1104
|
color: '#ddd',
|
|
@@ -2061,7 +2061,7 @@ function add_css$m(target) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
2063
|
// (23:0) {#if $state === path}
|
|
2064
|
-
function create_if_block$
|
|
2064
|
+
function create_if_block$5(ctx) {
|
|
2065
2065
|
let div;
|
|
2066
2066
|
let t;
|
|
2067
2067
|
let current;
|
|
@@ -2136,7 +2136,7 @@ function create_if_block$4(ctx) {
|
|
|
2136
2136
|
function create_fragment$q(ctx) {
|
|
2137
2137
|
let if_block_anchor;
|
|
2138
2138
|
let current;
|
|
2139
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
|
2139
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$5(ctx);
|
|
2140
2140
|
|
|
2141
2141
|
return {
|
|
2142
2142
|
c() {
|
|
@@ -2161,7 +2161,7 @@ function create_fragment$q(ctx) {
|
|
|
2161
2161
|
transition_in(if_block, 1);
|
|
2162
2162
|
}
|
|
2163
2163
|
} else {
|
|
2164
|
-
if_block = create_if_block$
|
|
2164
|
+
if_block = create_if_block$5(ctx);
|
|
2165
2165
|
if_block.c();
|
|
2166
2166
|
transition_in(if_block, 1);
|
|
2167
2167
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2235,7 +2235,7 @@ function add_css$l(target) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
|
|
2237
2237
|
// (9:0) {#if backgroundOverray}
|
|
2238
|
-
function create_if_block$
|
|
2238
|
+
function create_if_block$4(ctx) {
|
|
2239
2239
|
let div;
|
|
2240
2240
|
let mounted;
|
|
2241
2241
|
let dispose;
|
|
@@ -2272,7 +2272,7 @@ function create_if_block$3(ctx) {
|
|
|
2272
2272
|
|
|
2273
2273
|
function create_fragment$p(ctx) {
|
|
2274
2274
|
let if_block_anchor;
|
|
2275
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
|
2275
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$4(ctx);
|
|
2276
2276
|
|
|
2277
2277
|
return {
|
|
2278
2278
|
c() {
|
|
@@ -2292,7 +2292,7 @@ function create_fragment$p(ctx) {
|
|
|
2292
2292
|
if (if_block) {
|
|
2293
2293
|
if_block.p(ctx, dirty);
|
|
2294
2294
|
} else {
|
|
2295
|
-
if_block = create_if_block$
|
|
2295
|
+
if_block = create_if_block$4(ctx);
|
|
2296
2296
|
if_block.c();
|
|
2297
2297
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
2298
2298
|
}
|
|
@@ -2336,7 +2336,7 @@ function add_css$k(target) {
|
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
2338
|
// (142:0) {#if visible}
|
|
2339
|
-
function create_if_block$
|
|
2339
|
+
function create_if_block$3(ctx) {
|
|
2340
2340
|
let div1;
|
|
2341
2341
|
let t;
|
|
2342
2342
|
let div0;
|
|
@@ -2345,7 +2345,7 @@ function create_if_block$2(ctx) {
|
|
|
2345
2345
|
let current;
|
|
2346
2346
|
let mounted;
|
|
2347
2347
|
let dispose;
|
|
2348
|
-
let if_block = /*closable*/ ctx[14] && create_if_block_1(ctx);
|
|
2348
|
+
let if_block = /*closable*/ ctx[14] && create_if_block_1$1(ctx);
|
|
2349
2349
|
const default_slot_template = /*#slots*/ ctx[29].default;
|
|
2350
2350
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
|
2351
2351
|
|
|
@@ -2412,7 +2412,7 @@ function create_if_block$2(ctx) {
|
|
|
2412
2412
|
if (if_block) {
|
|
2413
2413
|
if_block.p(ctx, dirty);
|
|
2414
2414
|
} else {
|
|
2415
|
-
if_block = create_if_block_1(ctx);
|
|
2415
|
+
if_block = create_if_block_1$1(ctx);
|
|
2416
2416
|
if_block.c();
|
|
2417
2417
|
if_block.m(div1, t);
|
|
2418
2418
|
}
|
|
@@ -2477,7 +2477,7 @@ function create_if_block$2(ctx) {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
|
|
2479
2479
|
// (159:4) {#if closable}
|
|
2480
|
-
function create_if_block_1(ctx) {
|
|
2480
|
+
function create_if_block_1$1(ctx) {
|
|
2481
2481
|
let button;
|
|
2482
2482
|
let svg;
|
|
2483
2483
|
let path;
|
|
@@ -2579,7 +2579,7 @@ function create_fragment$o(ctx) {
|
|
|
2579
2579
|
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
|
2580
2580
|
});
|
|
2581
2581
|
|
|
2582
|
-
let if_block = /*visible*/ ctx[6] && create_if_block$
|
|
2582
|
+
let if_block = /*visible*/ ctx[6] && create_if_block$3(ctx);
|
|
2583
2583
|
|
|
2584
2584
|
return {
|
|
2585
2585
|
c() {
|
|
@@ -2623,7 +2623,7 @@ function create_fragment$o(ctx) {
|
|
|
2623
2623
|
transition_in(if_block, 1);
|
|
2624
2624
|
}
|
|
2625
2625
|
} else {
|
|
2626
|
-
if_block = create_if_block$
|
|
2626
|
+
if_block = create_if_block$3(ctx);
|
|
2627
2627
|
if_block.c();
|
|
2628
2628
|
transition_in(if_block, 1);
|
|
2629
2629
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -3752,7 +3752,7 @@ function create_else_block$1(ctx) {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
|
|
3754
3754
|
// (10:2) {#if item.match(regexp)}
|
|
3755
|
-
function create_if_block$
|
|
3755
|
+
function create_if_block$2(ctx) {
|
|
3756
3756
|
let br;
|
|
3757
3757
|
|
|
3758
3758
|
return {
|
|
@@ -3780,7 +3780,7 @@ function create_each_block$4(ctx) {
|
|
|
3780
3780
|
function select_block_type(ctx, dirty) {
|
|
3781
3781
|
if (dirty & /*items*/ 1) show_if = null;
|
|
3782
3782
|
if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
|
|
3783
|
-
if (show_if) return create_if_block$
|
|
3783
|
+
if (show_if) return create_if_block$2;
|
|
3784
3784
|
return create_else_block$1;
|
|
3785
3785
|
}
|
|
3786
3786
|
|
|
@@ -5738,7 +5738,7 @@ function create_else_block(ctx) {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
|
|
5740
5740
|
// (26:8) {#if option}
|
|
5741
|
-
function create_if_block(ctx) {
|
|
5741
|
+
function create_if_block$1(ctx) {
|
|
5742
5742
|
let t_value = /*option*/ ctx[6] + "";
|
|
5743
5743
|
let t;
|
|
5744
5744
|
|
|
@@ -5768,7 +5768,7 @@ function create_each_block$2(ctx) {
|
|
|
5768
5768
|
let option_value_value;
|
|
5769
5769
|
|
|
5770
5770
|
function select_block_type(ctx, dirty) {
|
|
5771
|
-
if (/*option*/ ctx[6]) return create_if_block;
|
|
5771
|
+
if (/*option*/ ctx[6]) return create_if_block$1;
|
|
5772
5772
|
return create_else_block;
|
|
5773
5773
|
}
|
|
5774
5774
|
|
|
@@ -6163,7 +6163,7 @@ class FormCheckBoxes extends SvelteComponent {
|
|
|
6163
6163
|
}
|
|
6164
6164
|
}
|
|
6165
6165
|
|
|
6166
|
-
/* src/components/
|
|
6166
|
+
/* src/components/Slide.svelte generated by Svelte v3.53.1 */
|
|
6167
6167
|
|
|
6168
6168
|
function add_css$4(target) {
|
|
6169
6169
|
append_styles(target, "svelte-105wdod", ".root.svelte-105wdod{width:100%;height:100%;position:relative}.container.svelte-105wdod{width:100%;height:100%;position:relative;overflow:hidden}.slide.svelte-105wdod{height:100%;position:absolute;display:flex}.transition.svelte-105wdod{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-105wdod{height:100%;flex:none}.prev-button.svelte-105wdod,.next-button.svelte-105wdod{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button.svelte-105wdod{left:0}.next-button.svelte-105wdod{right:0}.button-container.svelte-105wdod{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box}.prev-icon.svelte-105wdod{width:20px;height:20px;box-sizing:border-box;border-right:solid 3px #000;border-top:solid 3px #000;transform:translateX(35.4%) rotate(-135deg)}.next-icon.svelte-105wdod{width:20px;height:20px;box-sizing:border-box;border-right:solid 3px #000;border-top:solid 3px #000;transform:translateX(-35.4%) rotate(45deg)}.navigation.svelte-105wdod{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-105wdod{flex-shrink:0;cursor:pointer}.navigation-item-inner.circle.svelte-105wdod{border-radius:51%}");
|
|
@@ -6171,12 +6171,132 @@ function add_css$4(target) {
|
|
|
6171
6171
|
|
|
6172
6172
|
function get_each_context(ctx, list, i) {
|
|
6173
6173
|
const child_ctx = ctx.slice();
|
|
6174
|
-
child_ctx[
|
|
6175
|
-
child_ctx[
|
|
6174
|
+
child_ctx[52] = list[i];
|
|
6175
|
+
child_ctx[54] = i;
|
|
6176
6176
|
return child_ctx;
|
|
6177
6177
|
}
|
|
6178
6178
|
|
|
6179
|
-
// (
|
|
6179
|
+
// (315:2) {#if isVisiblePrevButton}
|
|
6180
|
+
function create_if_block_1(ctx) {
|
|
6181
|
+
let div2;
|
|
6182
|
+
let div1;
|
|
6183
|
+
let div0;
|
|
6184
|
+
let mounted;
|
|
6185
|
+
let dispose;
|
|
6186
|
+
|
|
6187
|
+
return {
|
|
6188
|
+
c() {
|
|
6189
|
+
div2 = element("div");
|
|
6190
|
+
div1 = element("div");
|
|
6191
|
+
div0 = element("div");
|
|
6192
|
+
this.h();
|
|
6193
|
+
},
|
|
6194
|
+
l(nodes) {
|
|
6195
|
+
div2 = claim_element(nodes, "DIV", { class: true });
|
|
6196
|
+
var div2_nodes = children(div2);
|
|
6197
|
+
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
|
6198
|
+
var div1_nodes = children(div1);
|
|
6199
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
|
6200
|
+
children(div0).forEach(detach);
|
|
6201
|
+
div1_nodes.forEach(detach);
|
|
6202
|
+
div2_nodes.forEach(detach);
|
|
6203
|
+
this.h();
|
|
6204
|
+
},
|
|
6205
|
+
h() {
|
|
6206
|
+
attr(div0, "class", "prev-icon svelte-105wdod");
|
|
6207
|
+
attr(div0, "style", /*prevIconStyle*/ ctx[9]);
|
|
6208
|
+
attr(div1, "class", "button-container svelte-105wdod");
|
|
6209
|
+
attr(div1, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6210
|
+
attr(div2, "class", "prev-button svelte-105wdod");
|
|
6211
|
+
},
|
|
6212
|
+
m(target, anchor) {
|
|
6213
|
+
insert_hydration(target, div2, anchor);
|
|
6214
|
+
append_hydration(div2, div1);
|
|
6215
|
+
append_hydration(div1, div0);
|
|
6216
|
+
|
|
6217
|
+
if (!mounted) {
|
|
6218
|
+
dispose = listen(div2, "click", /*prev*/ ctx[14]);
|
|
6219
|
+
mounted = true;
|
|
6220
|
+
}
|
|
6221
|
+
},
|
|
6222
|
+
p(ctx, dirty) {
|
|
6223
|
+
if (dirty[0] & /*prevIconStyle*/ 512) {
|
|
6224
|
+
attr(div0, "style", /*prevIconStyle*/ ctx[9]);
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6227
|
+
if (dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
|
6228
|
+
attr(div1, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6229
|
+
}
|
|
6230
|
+
},
|
|
6231
|
+
d(detaching) {
|
|
6232
|
+
if (detaching) detach(div2);
|
|
6233
|
+
mounted = false;
|
|
6234
|
+
dispose();
|
|
6235
|
+
}
|
|
6236
|
+
};
|
|
6237
|
+
}
|
|
6238
|
+
|
|
6239
|
+
// (322:2) {#if isVisibleNextButton}
|
|
6240
|
+
function create_if_block(ctx) {
|
|
6241
|
+
let div2;
|
|
6242
|
+
let div1;
|
|
6243
|
+
let div0;
|
|
6244
|
+
let mounted;
|
|
6245
|
+
let dispose;
|
|
6246
|
+
|
|
6247
|
+
return {
|
|
6248
|
+
c() {
|
|
6249
|
+
div2 = element("div");
|
|
6250
|
+
div1 = element("div");
|
|
6251
|
+
div0 = element("div");
|
|
6252
|
+
this.h();
|
|
6253
|
+
},
|
|
6254
|
+
l(nodes) {
|
|
6255
|
+
div2 = claim_element(nodes, "DIV", { class: true });
|
|
6256
|
+
var div2_nodes = children(div2);
|
|
6257
|
+
div1 = claim_element(div2_nodes, "DIV", { class: true, style: true });
|
|
6258
|
+
var div1_nodes = children(div1);
|
|
6259
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
|
6260
|
+
children(div0).forEach(detach);
|
|
6261
|
+
div1_nodes.forEach(detach);
|
|
6262
|
+
div2_nodes.forEach(detach);
|
|
6263
|
+
this.h();
|
|
6264
|
+
},
|
|
6265
|
+
h() {
|
|
6266
|
+
attr(div0, "class", "next-icon svelte-105wdod");
|
|
6267
|
+
attr(div0, "style", /*nextIconStyle*/ ctx[8]);
|
|
6268
|
+
attr(div1, "class", "button-container svelte-105wdod");
|
|
6269
|
+
attr(div1, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
6270
|
+
attr(div2, "class", "next-button svelte-105wdod");
|
|
6271
|
+
},
|
|
6272
|
+
m(target, anchor) {
|
|
6273
|
+
insert_hydration(target, div2, anchor);
|
|
6274
|
+
append_hydration(div2, div1);
|
|
6275
|
+
append_hydration(div1, div0);
|
|
6276
|
+
|
|
6277
|
+
if (!mounted) {
|
|
6278
|
+
dispose = listen(div2, "click", /*next*/ ctx[15]);
|
|
6279
|
+
mounted = true;
|
|
6280
|
+
}
|
|
6281
|
+
},
|
|
6282
|
+
p(ctx, dirty) {
|
|
6283
|
+
if (dirty[0] & /*nextIconStyle*/ 256) {
|
|
6284
|
+
attr(div0, "style", /*nextIconStyle*/ ctx[8]);
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
if (dirty[0] & /*nextButtonContainerStyle*/ 2) {
|
|
6288
|
+
attr(div1, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
6289
|
+
}
|
|
6290
|
+
},
|
|
6291
|
+
d(detaching) {
|
|
6292
|
+
if (detaching) detach(div2);
|
|
6293
|
+
mounted = false;
|
|
6294
|
+
dispose();
|
|
6295
|
+
}
|
|
6296
|
+
};
|
|
6297
|
+
}
|
|
6298
|
+
|
|
6299
|
+
// (333:4) {#each items as _, i}
|
|
6180
6300
|
function create_each_block(ctx) {
|
|
6181
6301
|
let div1;
|
|
6182
6302
|
let div0;
|
|
@@ -6186,7 +6306,7 @@ function create_each_block(ctx) {
|
|
|
6186
6306
|
let dispose;
|
|
6187
6307
|
|
|
6188
6308
|
function click_handler() {
|
|
6189
|
-
return /*click_handler*/ ctx[
|
|
6309
|
+
return /*click_handler*/ ctx[29](/*i*/ ctx[54]);
|
|
6190
6310
|
}
|
|
6191
6311
|
|
|
6192
6312
|
return {
|
|
@@ -6207,7 +6327,7 @@ function create_each_block(ctx) {
|
|
|
6207
6327
|
},
|
|
6208
6328
|
h() {
|
|
6209
6329
|
attr(div0, "class", "navigation-item-inner circle svelte-105wdod");
|
|
6210
|
-
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[
|
|
6330
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[54]));
|
|
6211
6331
|
attr(div1, "class", "navigation-item svelte-105wdod");
|
|
6212
6332
|
attr(div1, "style", /*navigationItemStyle*/ ctx[7]);
|
|
6213
6333
|
},
|
|
@@ -6224,7 +6344,7 @@ function create_each_block(ctx) {
|
|
|
6224
6344
|
p(new_ctx, dirty) {
|
|
6225
6345
|
ctx = new_ctx;
|
|
6226
6346
|
|
|
6227
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[
|
|
6347
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 64 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[6](/*i*/ ctx[54]))) {
|
|
6228
6348
|
attr(div0, "style", div0_style_value);
|
|
6229
6349
|
}
|
|
6230
6350
|
|
|
@@ -6241,25 +6361,19 @@ function create_each_block(ctx) {
|
|
|
6241
6361
|
}
|
|
6242
6362
|
|
|
6243
6363
|
function create_fragment$4(ctx) {
|
|
6244
|
-
let
|
|
6364
|
+
let div3;
|
|
6245
6365
|
let div1;
|
|
6246
6366
|
let div0;
|
|
6247
6367
|
let div0_class_value;
|
|
6248
6368
|
let t0;
|
|
6249
|
-
let div4;
|
|
6250
|
-
let div3;
|
|
6251
|
-
let div2;
|
|
6252
6369
|
let t1;
|
|
6253
|
-
let div7;
|
|
6254
|
-
let div6;
|
|
6255
|
-
let div5;
|
|
6256
6370
|
let t2;
|
|
6257
|
-
let
|
|
6371
|
+
let div2;
|
|
6258
6372
|
let current;
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6373
|
+
const default_slot_template = /*#slots*/ ctx[26].default;
|
|
6374
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[25], null);
|
|
6375
|
+
let if_block0 = /*isVisiblePrevButton*/ ctx[11] && create_if_block_1(ctx);
|
|
6376
|
+
let if_block1 = /*isVisibleNextButton*/ ctx[10] && create_if_block(ctx);
|
|
6263
6377
|
let each_value = /*items*/ ctx[3];
|
|
6264
6378
|
let each_blocks = [];
|
|
6265
6379
|
|
|
@@ -6269,20 +6383,16 @@ function create_fragment$4(ctx) {
|
|
|
6269
6383
|
|
|
6270
6384
|
return {
|
|
6271
6385
|
c() {
|
|
6272
|
-
|
|
6386
|
+
div3 = element("div");
|
|
6273
6387
|
div1 = element("div");
|
|
6274
6388
|
div0 = element("div");
|
|
6275
6389
|
if (default_slot) default_slot.c();
|
|
6276
6390
|
t0 = space();
|
|
6277
|
-
|
|
6278
|
-
div3 = element("div");
|
|
6279
|
-
div2 = element("div");
|
|
6391
|
+
if (if_block0) if_block0.c();
|
|
6280
6392
|
t1 = space();
|
|
6281
|
-
|
|
6282
|
-
div6 = element("div");
|
|
6283
|
-
div5 = element("div");
|
|
6393
|
+
if (if_block1) if_block1.c();
|
|
6284
6394
|
t2 = space();
|
|
6285
|
-
|
|
6395
|
+
div2 = element("div");
|
|
6286
6396
|
|
|
6287
6397
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6288
6398
|
each_blocks[i].c();
|
|
@@ -6291,141 +6401,114 @@ function create_fragment$4(ctx) {
|
|
|
6291
6401
|
this.h();
|
|
6292
6402
|
},
|
|
6293
6403
|
l(nodes) {
|
|
6294
|
-
|
|
6295
|
-
var
|
|
6296
|
-
div1 = claim_element(
|
|
6404
|
+
div3 = claim_element(nodes, "DIV", { class: true });
|
|
6405
|
+
var div3_nodes = children(div3);
|
|
6406
|
+
div1 = claim_element(div3_nodes, "DIV", { class: true });
|
|
6297
6407
|
var div1_nodes = children(div1);
|
|
6298
6408
|
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
|
6299
6409
|
var div0_nodes = children(div0);
|
|
6300
6410
|
if (default_slot) default_slot.l(div0_nodes);
|
|
6301
6411
|
div0_nodes.forEach(detach);
|
|
6302
6412
|
div1_nodes.forEach(detach);
|
|
6303
|
-
t0 = claim_space(
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6413
|
+
t0 = claim_space(div3_nodes);
|
|
6414
|
+
if (if_block0) if_block0.l(div3_nodes);
|
|
6415
|
+
t1 = claim_space(div3_nodes);
|
|
6416
|
+
if (if_block1) if_block1.l(div3_nodes);
|
|
6417
|
+
t2 = claim_space(div3_nodes);
|
|
6308
6418
|
div2 = claim_element(div3_nodes, "DIV", { class: true, style: true });
|
|
6309
|
-
children(div2)
|
|
6310
|
-
div3_nodes.forEach(detach);
|
|
6311
|
-
div4_nodes.forEach(detach);
|
|
6312
|
-
t1 = claim_space(div9_nodes);
|
|
6313
|
-
div7 = claim_element(div9_nodes, "DIV", { class: true });
|
|
6314
|
-
var div7_nodes = children(div7);
|
|
6315
|
-
div6 = claim_element(div7_nodes, "DIV", { class: true, style: true });
|
|
6316
|
-
var div6_nodes = children(div6);
|
|
6317
|
-
div5 = claim_element(div6_nodes, "DIV", { class: true, style: true });
|
|
6318
|
-
children(div5).forEach(detach);
|
|
6319
|
-
div6_nodes.forEach(detach);
|
|
6320
|
-
div7_nodes.forEach(detach);
|
|
6321
|
-
t2 = claim_space(div9_nodes);
|
|
6322
|
-
div8 = claim_element(div9_nodes, "DIV", { class: true, style: true });
|
|
6323
|
-
var div8_nodes = children(div8);
|
|
6419
|
+
var div2_nodes = children(div2);
|
|
6324
6420
|
|
|
6325
6421
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6326
|
-
each_blocks[i].l(
|
|
6422
|
+
each_blocks[i].l(div2_nodes);
|
|
6327
6423
|
}
|
|
6328
6424
|
|
|
6329
|
-
|
|
6330
|
-
|
|
6425
|
+
div2_nodes.forEach(detach);
|
|
6426
|
+
div3_nodes.forEach(detach);
|
|
6331
6427
|
this.h();
|
|
6332
6428
|
},
|
|
6333
6429
|
h() {
|
|
6334
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[
|
|
6335
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
|
6430
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-105wdod"));
|
|
6431
|
+
attr(div0, "style", /*slideStyle*/ ctx[13]);
|
|
6336
6432
|
attr(div1, "class", "container svelte-105wdod");
|
|
6337
|
-
attr(div2, "class", "
|
|
6338
|
-
attr(div2, "style", /*
|
|
6339
|
-
attr(div3, "class", "
|
|
6340
|
-
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6341
|
-
attr(div4, "class", "prev-button svelte-105wdod");
|
|
6342
|
-
attr(div5, "class", "next-icon svelte-105wdod");
|
|
6343
|
-
attr(div5, "style", /*nextIconStyle*/ ctx[8]);
|
|
6344
|
-
attr(div6, "class", "button-container svelte-105wdod");
|
|
6345
|
-
attr(div6, "style", /*nextButtonContainerStyle*/ ctx[1]);
|
|
6346
|
-
attr(div7, "class", "next-button svelte-105wdod");
|
|
6347
|
-
attr(div8, "class", "navigation svelte-105wdod");
|
|
6348
|
-
attr(div8, "style", /*navigationStyle*/ ctx[2]);
|
|
6349
|
-
attr(div9, "class", "root svelte-105wdod");
|
|
6433
|
+
attr(div2, "class", "navigation svelte-105wdod");
|
|
6434
|
+
attr(div2, "style", /*navigationStyle*/ ctx[2]);
|
|
6435
|
+
attr(div3, "class", "root svelte-105wdod");
|
|
6350
6436
|
},
|
|
6351
6437
|
m(target, anchor) {
|
|
6352
|
-
insert_hydration(target,
|
|
6353
|
-
append_hydration(
|
|
6438
|
+
insert_hydration(target, div3, anchor);
|
|
6439
|
+
append_hydration(div3, div1);
|
|
6354
6440
|
append_hydration(div1, div0);
|
|
6355
6441
|
|
|
6356
6442
|
if (default_slot) {
|
|
6357
6443
|
default_slot.m(div0, null);
|
|
6358
6444
|
}
|
|
6359
6445
|
|
|
6360
|
-
/*div0_binding*/ ctx[
|
|
6361
|
-
/*div1_binding*/ ctx[
|
|
6362
|
-
append_hydration(
|
|
6363
|
-
|
|
6364
|
-
append_hydration(
|
|
6446
|
+
/*div0_binding*/ ctx[27](div0);
|
|
6447
|
+
/*div1_binding*/ ctx[28](div1);
|
|
6448
|
+
append_hydration(div3, t0);
|
|
6449
|
+
if (if_block0) if_block0.m(div3, null);
|
|
6450
|
+
append_hydration(div3, t1);
|
|
6451
|
+
if (if_block1) if_block1.m(div3, null);
|
|
6452
|
+
append_hydration(div3, t2);
|
|
6365
6453
|
append_hydration(div3, div2);
|
|
6366
|
-
append_hydration(div9, t1);
|
|
6367
|
-
append_hydration(div9, div7);
|
|
6368
|
-
append_hydration(div7, div6);
|
|
6369
|
-
append_hydration(div6, div5);
|
|
6370
|
-
append_hydration(div9, t2);
|
|
6371
|
-
append_hydration(div9, div8);
|
|
6372
6454
|
|
|
6373
6455
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6374
|
-
each_blocks[i].m(
|
|
6456
|
+
each_blocks[i].m(div2, null);
|
|
6375
6457
|
}
|
|
6376
6458
|
|
|
6377
6459
|
current = true;
|
|
6378
|
-
|
|
6379
|
-
if (!mounted) {
|
|
6380
|
-
dispose = [
|
|
6381
|
-
listen(div4, "click", /*prev*/ ctx[12]),
|
|
6382
|
-
listen(div7, "click", /*next*/ ctx[13])
|
|
6383
|
-
];
|
|
6384
|
-
|
|
6385
|
-
mounted = true;
|
|
6386
|
-
}
|
|
6387
6460
|
},
|
|
6388
6461
|
p(ctx, dirty) {
|
|
6389
6462
|
if (default_slot) {
|
|
6390
|
-
if (default_slot.p && (!current || dirty[0] & /*$$scope*/
|
|
6463
|
+
if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 33554432)) {
|
|
6391
6464
|
update_slot_base(
|
|
6392
6465
|
default_slot,
|
|
6393
6466
|
default_slot_template,
|
|
6394
6467
|
ctx,
|
|
6395
|
-
/*$$scope*/ ctx[
|
|
6468
|
+
/*$$scope*/ ctx[25],
|
|
6396
6469
|
!current
|
|
6397
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
6398
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
6470
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[25])
|
|
6471
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[25], dirty, null),
|
|
6399
6472
|
null
|
|
6400
6473
|
);
|
|
6401
6474
|
}
|
|
6402
6475
|
}
|
|
6403
6476
|
|
|
6404
|
-
if (!current || dirty[0] & /*slideClass*/
|
|
6477
|
+
if (!current || dirty[0] & /*slideClass*/ 4096 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[12]) + " svelte-105wdod"))) {
|
|
6405
6478
|
attr(div0, "class", div0_class_value);
|
|
6406
6479
|
}
|
|
6407
6480
|
|
|
6408
|
-
if (!current || dirty[0] & /*slideStyle*/
|
|
6409
|
-
attr(div0, "style", /*slideStyle*/ ctx[
|
|
6410
|
-
}
|
|
6411
|
-
|
|
6412
|
-
if (!current || dirty[0] & /*prevIconStyle*/ 512) {
|
|
6413
|
-
attr(div2, "style", /*prevIconStyle*/ ctx[9]);
|
|
6414
|
-
}
|
|
6415
|
-
|
|
6416
|
-
if (!current || dirty[0] & /*prevButtonContainerStyle*/ 1) {
|
|
6417
|
-
attr(div3, "style", /*prevButtonContainerStyle*/ ctx[0]);
|
|
6481
|
+
if (!current || dirty[0] & /*slideStyle*/ 8192) {
|
|
6482
|
+
attr(div0, "style", /*slideStyle*/ ctx[13]);
|
|
6418
6483
|
}
|
|
6419
6484
|
|
|
6420
|
-
if (
|
|
6421
|
-
|
|
6485
|
+
if (/*isVisiblePrevButton*/ ctx[11]) {
|
|
6486
|
+
if (if_block0) {
|
|
6487
|
+
if_block0.p(ctx, dirty);
|
|
6488
|
+
} else {
|
|
6489
|
+
if_block0 = create_if_block_1(ctx);
|
|
6490
|
+
if_block0.c();
|
|
6491
|
+
if_block0.m(div3, t1);
|
|
6492
|
+
}
|
|
6493
|
+
} else if (if_block0) {
|
|
6494
|
+
if_block0.d(1);
|
|
6495
|
+
if_block0 = null;
|
|
6422
6496
|
}
|
|
6423
6497
|
|
|
6424
|
-
if (
|
|
6425
|
-
|
|
6498
|
+
if (/*isVisibleNextButton*/ ctx[10]) {
|
|
6499
|
+
if (if_block1) {
|
|
6500
|
+
if_block1.p(ctx, dirty);
|
|
6501
|
+
} else {
|
|
6502
|
+
if_block1 = create_if_block(ctx);
|
|
6503
|
+
if_block1.c();
|
|
6504
|
+
if_block1.m(div3, t2);
|
|
6505
|
+
}
|
|
6506
|
+
} else if (if_block1) {
|
|
6507
|
+
if_block1.d(1);
|
|
6508
|
+
if_block1 = null;
|
|
6426
6509
|
}
|
|
6427
6510
|
|
|
6428
|
-
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/
|
|
6511
|
+
if (dirty[0] & /*navigationItemStyle, set, getNavigationItemInnerStyle, items*/ 65736) {
|
|
6429
6512
|
each_value = /*items*/ ctx[3];
|
|
6430
6513
|
let i;
|
|
6431
6514
|
|
|
@@ -6437,7 +6520,7 @@ function create_fragment$4(ctx) {
|
|
|
6437
6520
|
} else {
|
|
6438
6521
|
each_blocks[i] = create_each_block(child_ctx);
|
|
6439
6522
|
each_blocks[i].c();
|
|
6440
|
-
each_blocks[i].m(
|
|
6523
|
+
each_blocks[i].m(div2, null);
|
|
6441
6524
|
}
|
|
6442
6525
|
}
|
|
6443
6526
|
|
|
@@ -6449,7 +6532,7 @@ function create_fragment$4(ctx) {
|
|
|
6449
6532
|
}
|
|
6450
6533
|
|
|
6451
6534
|
if (!current || dirty[0] & /*navigationStyle*/ 4) {
|
|
6452
|
-
attr(
|
|
6535
|
+
attr(div2, "style", /*navigationStyle*/ ctx[2]);
|
|
6453
6536
|
}
|
|
6454
6537
|
},
|
|
6455
6538
|
i(local) {
|
|
@@ -6462,13 +6545,13 @@ function create_fragment$4(ctx) {
|
|
|
6462
6545
|
current = false;
|
|
6463
6546
|
},
|
|
6464
6547
|
d(detaching) {
|
|
6465
|
-
if (detaching) detach(
|
|
6548
|
+
if (detaching) detach(div3);
|
|
6466
6549
|
if (default_slot) default_slot.d(detaching);
|
|
6467
|
-
/*div0_binding*/ ctx[
|
|
6468
|
-
/*div1_binding*/ ctx[
|
|
6550
|
+
/*div0_binding*/ ctx[27](null);
|
|
6551
|
+
/*div1_binding*/ ctx[28](null);
|
|
6552
|
+
if (if_block0) if_block0.d();
|
|
6553
|
+
if (if_block1) if_block1.d();
|
|
6469
6554
|
destroy_each(each_blocks, detaching);
|
|
6470
|
-
mounted = false;
|
|
6471
|
-
run_all(dispose);
|
|
6472
6555
|
}
|
|
6473
6556
|
};
|
|
6474
6557
|
}
|
|
@@ -6489,6 +6572,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6489
6572
|
let slideStyle;
|
|
6490
6573
|
let slideClass;
|
|
6491
6574
|
let _loop;
|
|
6575
|
+
let isVisiblePrevButton;
|
|
6576
|
+
let isVisibleNextButton;
|
|
6492
6577
|
let prevIconStyle;
|
|
6493
6578
|
let nextIconStyle;
|
|
6494
6579
|
let navigationItemStyle;
|
|
@@ -6561,7 +6646,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6561
6646
|
onBeforeSlide({ shiftCount, index, length: items.length });
|
|
6562
6647
|
});
|
|
6563
6648
|
|
|
6564
|
-
$$invalidate(
|
|
6649
|
+
$$invalidate(22, slidePosition = slidePosition + containerWidth * (calcPositionIndex(shiftCount, currentSlideId, items.length) - calcPositionIndex(previousShiftCount, currentSlideId, items.length)));
|
|
6565
6650
|
previousShiftCount = shiftCount;
|
|
6566
6651
|
resolve();
|
|
6567
6652
|
});
|
|
@@ -6572,8 +6657,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6572
6657
|
if (transitioning) {
|
|
6573
6658
|
const slideRect = slideElement.getBoundingClientRect();
|
|
6574
6659
|
const containerRect = containerElement.getBoundingClientRect();
|
|
6575
|
-
$$invalidate(
|
|
6576
|
-
$$invalidate(
|
|
6660
|
+
$$invalidate(23, transitioning = false);
|
|
6661
|
+
$$invalidate(22, slidePosition = slideRect.x - containerRect.x);
|
|
6577
6662
|
}
|
|
6578
6663
|
}
|
|
6579
6664
|
|
|
@@ -6593,10 +6678,10 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6593
6678
|
}
|
|
6594
6679
|
}
|
|
6595
6680
|
|
|
6596
|
-
$$invalidate(
|
|
6597
|
-
$$invalidate(
|
|
6681
|
+
$$invalidate(23, transitioning = true);
|
|
6682
|
+
$$invalidate(22, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
|
|
6598
6683
|
dispatch('change', { nextIndex: slideIndex });
|
|
6599
|
-
$$invalidate(
|
|
6684
|
+
$$invalidate(21, currentSlideId = slideIndex);
|
|
6600
6685
|
});
|
|
6601
6686
|
}
|
|
6602
6687
|
|
|
@@ -6618,7 +6703,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6618
6703
|
const updatedSlidePosition = slidePosition + dx;
|
|
6619
6704
|
|
|
6620
6705
|
window.requestAnimationFrame(() => {
|
|
6621
|
-
$$invalidate(
|
|
6706
|
+
$$invalidate(22, slidePosition = updatedSlidePosition);
|
|
6622
6707
|
});
|
|
6623
6708
|
}
|
|
6624
6709
|
|
|
@@ -6638,7 +6723,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6638
6723
|
});
|
|
6639
6724
|
});
|
|
6640
6725
|
|
|
6641
|
-
$$invalidate(
|
|
6726
|
+
$$invalidate(22, slidePosition = containerWidth * calcPositionIndex(shiftCount, currentSlideId, items.length));
|
|
6642
6727
|
}
|
|
6643
6728
|
|
|
6644
6729
|
function handleMoveEnd() {
|
|
@@ -6691,7 +6776,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6691
6776
|
}
|
|
6692
6777
|
|
|
6693
6778
|
function handleTransitionEnd() {
|
|
6694
|
-
$$invalidate(
|
|
6779
|
+
$$invalidate(23, transitioning = false);
|
|
6695
6780
|
fixSlidePosition();
|
|
6696
6781
|
}
|
|
6697
6782
|
|
|
@@ -6702,7 +6787,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6702
6787
|
item.onMount({ containerElement });
|
|
6703
6788
|
});
|
|
6704
6789
|
|
|
6705
|
-
$$invalidate(
|
|
6790
|
+
$$invalidate(21, currentSlideId = 0);
|
|
6706
6791
|
|
|
6707
6792
|
if (_loop) {
|
|
6708
6793
|
await fixSlidePosition();
|
|
@@ -6773,46 +6858,54 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
6773
6858
|
const click_handler = i => set(i);
|
|
6774
6859
|
|
|
6775
6860
|
$$self.$$set = $$props => {
|
|
6776
|
-
if ('loop' in $$props) $$invalidate(
|
|
6777
|
-
if ('prevButton' in $$props) $$invalidate(
|
|
6861
|
+
if ('loop' in $$props) $$invalidate(17, loop = $$props.loop);
|
|
6862
|
+
if ('prevButton' in $$props) $$invalidate(18, prevButton = $$props.prevButton);
|
|
6778
6863
|
if ('prevButtonContainerStyle' in $$props) $$invalidate(0, prevButtonContainerStyle = $$props.prevButtonContainerStyle);
|
|
6779
|
-
if ('nextButton' in $$props) $$invalidate(
|
|
6864
|
+
if ('nextButton' in $$props) $$invalidate(19, nextButton = $$props.nextButton);
|
|
6780
6865
|
if ('nextButtonContainerStyle' in $$props) $$invalidate(1, nextButtonContainerStyle = $$props.nextButtonContainerStyle);
|
|
6781
|
-
if ('navigationButton' in $$props) $$invalidate(
|
|
6866
|
+
if ('navigationButton' in $$props) $$invalidate(20, navigationButton = $$props.navigationButton);
|
|
6782
6867
|
if ('navigationStyle' in $$props) $$invalidate(2, navigationStyle = $$props.navigationStyle);
|
|
6783
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
6868
|
+
if ('$$scope' in $$props) $$invalidate(25, $$scope = $$props.$$scope);
|
|
6784
6869
|
};
|
|
6785
6870
|
|
|
6786
6871
|
$$self.$$.update = () => {
|
|
6787
|
-
if ($$self.$$.dirty[0] & /*slidePosition*/
|
|
6788
|
-
$$invalidate(
|
|
6872
|
+
if ($$self.$$.dirty[0] & /*slidePosition*/ 4194304) {
|
|
6873
|
+
$$invalidate(13, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : '');
|
|
6789
6874
|
}
|
|
6790
6875
|
|
|
6791
|
-
if ($$self.$$.dirty[0] & /*transitioning*/
|
|
6792
|
-
$$invalidate(
|
|
6876
|
+
if ($$self.$$.dirty[0] & /*transitioning*/ 8388608) {
|
|
6877
|
+
$$invalidate(12, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
|
6793
6878
|
}
|
|
6794
6879
|
|
|
6795
|
-
if ($$self.$$.dirty[0] & /*items, loop*/
|
|
6796
|
-
_loop = items.length >= 3 ? loop : false;
|
|
6880
|
+
if ($$self.$$.dirty[0] & /*items, loop*/ 131080) {
|
|
6881
|
+
$$invalidate(24, _loop = items.length >= 3 ? loop : false);
|
|
6797
6882
|
}
|
|
6798
6883
|
|
|
6799
|
-
if ($$self.$$.dirty[0] & /*
|
|
6884
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId*/ 18874368) {
|
|
6885
|
+
$$invalidate(11, isVisiblePrevButton = _loop || currentSlideId > 0);
|
|
6886
|
+
}
|
|
6887
|
+
|
|
6888
|
+
if ($$self.$$.dirty[0] & /*_loop, currentSlideId, items*/ 18874376) {
|
|
6889
|
+
$$invalidate(10, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
|
|
6890
|
+
}
|
|
6891
|
+
|
|
6892
|
+
if ($$self.$$.dirty[0] & /*prevButton*/ 262144) {
|
|
6800
6893
|
$$invalidate(9, prevIconStyle = prevButton.type === 'icon'
|
|
6801
6894
|
? `width: ${prevButton.size}; height: ${prevButton.size}; border-color: ${prevButton.color};`
|
|
6802
6895
|
: '');
|
|
6803
6896
|
}
|
|
6804
6897
|
|
|
6805
|
-
if ($$self.$$.dirty[0] & /*nextButton*/
|
|
6898
|
+
if ($$self.$$.dirty[0] & /*nextButton*/ 524288) {
|
|
6806
6899
|
$$invalidate(8, nextIconStyle = nextButton.type === 'icon'
|
|
6807
6900
|
? `width: ${nextButton.size}; height: ${nextButton.size}; border-color: ${nextButton.color};`
|
|
6808
6901
|
: '');
|
|
6809
6902
|
}
|
|
6810
6903
|
|
|
6811
|
-
if ($$self.$$.dirty[0] & /*navigationButton*/
|
|
6904
|
+
if ($$self.$$.dirty[0] & /*navigationButton*/ 1048576) {
|
|
6812
6905
|
$$invalidate(7, navigationItemStyle = `padding: calc(${navigationButton.size} / 2);`);
|
|
6813
6906
|
}
|
|
6814
6907
|
|
|
6815
|
-
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/
|
|
6908
|
+
if ($$self.$$.dirty[0] & /*navigationButton, currentSlideId*/ 3145728) {
|
|
6816
6909
|
$$invalidate(6, getNavigationItemInnerStyle = i => `
|
|
6817
6910
|
width: ${navigationButton.size};
|
|
6818
6911
|
height: ${navigationButton.size};
|
|
@@ -6833,6 +6926,8 @@ background-color: ${i === currentSlideId
|
|
|
6833
6926
|
navigationItemStyle,
|
|
6834
6927
|
nextIconStyle,
|
|
6835
6928
|
prevIconStyle,
|
|
6929
|
+
isVisibleNextButton,
|
|
6930
|
+
isVisiblePrevButton,
|
|
6836
6931
|
slideClass,
|
|
6837
6932
|
slideStyle,
|
|
6838
6933
|
prev,
|
|
@@ -6845,6 +6940,7 @@ background-color: ${i === currentSlideId
|
|
|
6845
6940
|
currentSlideId,
|
|
6846
6941
|
slidePosition,
|
|
6847
6942
|
transitioning,
|
|
6943
|
+
_loop,
|
|
6848
6944
|
$$scope,
|
|
6849
6945
|
slots,
|
|
6850
6946
|
div0_binding,
|
|
@@ -6853,7 +6949,7 @@ background-color: ${i === currentSlideId
|
|
|
6853
6949
|
];
|
|
6854
6950
|
}
|
|
6855
6951
|
|
|
6856
|
-
class
|
|
6952
|
+
class Slide extends SvelteComponent {
|
|
6857
6953
|
constructor(options) {
|
|
6858
6954
|
super();
|
|
6859
6955
|
|
|
@@ -6864,12 +6960,12 @@ class Slider extends SvelteComponent {
|
|
|
6864
6960
|
create_fragment$4,
|
|
6865
6961
|
safe_not_equal,
|
|
6866
6962
|
{
|
|
6867
|
-
loop:
|
|
6868
|
-
prevButton:
|
|
6963
|
+
loop: 17,
|
|
6964
|
+
prevButton: 18,
|
|
6869
6965
|
prevButtonContainerStyle: 0,
|
|
6870
|
-
nextButton:
|
|
6966
|
+
nextButton: 19,
|
|
6871
6967
|
nextButtonContainerStyle: 1,
|
|
6872
|
-
navigationButton:
|
|
6968
|
+
navigationButton: 20,
|
|
6873
6969
|
navigationStyle: 2
|
|
6874
6970
|
},
|
|
6875
6971
|
add_css$4,
|
|
@@ -6878,7 +6974,7 @@ class Slider extends SvelteComponent {
|
|
|
6878
6974
|
}
|
|
6879
6975
|
}
|
|
6880
6976
|
|
|
6881
|
-
/* src/components/
|
|
6977
|
+
/* src/components/SlideItem.svelte generated by Svelte v3.53.1 */
|
|
6882
6978
|
|
|
6883
6979
|
function add_css$3(target) {
|
|
6884
6980
|
append_styles(target, "svelte-xzo1un", ".item.svelte-xzo1un{height:100%;flex:none;position:relative}.item.svelte-xzo1un img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-xzo1un{position:absolute;inset:0}");
|
|
@@ -6888,10 +6984,8 @@ function create_fragment$3(ctx) {
|
|
|
6888
6984
|
let div1;
|
|
6889
6985
|
let div0;
|
|
6890
6986
|
let current;
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
const default_slot_template = /*#slots*/ ctx[8].default;
|
|
6894
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null);
|
|
6987
|
+
const default_slot_template = /*#slots*/ ctx[5].default;
|
|
6988
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
|
6895
6989
|
|
|
6896
6990
|
return {
|
|
6897
6991
|
c() {
|
|
@@ -6925,28 +7019,18 @@ function create_fragment$3(ctx) {
|
|
|
6925
7019
|
}
|
|
6926
7020
|
|
|
6927
7021
|
current = true;
|
|
6928
|
-
|
|
6929
|
-
if (!mounted) {
|
|
6930
|
-
dispose = listen(div1, "click", function () {
|
|
6931
|
-
if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
|
|
6932
|
-
});
|
|
6933
|
-
|
|
6934
|
-
mounted = true;
|
|
6935
|
-
}
|
|
6936
7022
|
},
|
|
6937
|
-
p(
|
|
6938
|
-
ctx = new_ctx;
|
|
6939
|
-
|
|
7023
|
+
p(ctx, [dirty]) {
|
|
6940
7024
|
if (default_slot) {
|
|
6941
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
7025
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {
|
|
6942
7026
|
update_slot_base(
|
|
6943
7027
|
default_slot,
|
|
6944
7028
|
default_slot_template,
|
|
6945
7029
|
ctx,
|
|
6946
|
-
/*$$scope*/ ctx[
|
|
7030
|
+
/*$$scope*/ ctx[4],
|
|
6947
7031
|
!current
|
|
6948
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
6949
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
7032
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[4])
|
|
7033
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),
|
|
6950
7034
|
null
|
|
6951
7035
|
);
|
|
6952
7036
|
}
|
|
@@ -6972,25 +7056,22 @@ function create_fragment$3(ctx) {
|
|
|
6972
7056
|
d(detaching) {
|
|
6973
7057
|
if (detaching) detach(div1);
|
|
6974
7058
|
if (default_slot) default_slot.d(detaching);
|
|
6975
|
-
mounted = false;
|
|
6976
|
-
dispose();
|
|
6977
7059
|
}
|
|
6978
7060
|
};
|
|
6979
7061
|
}
|
|
6980
7062
|
|
|
6981
7063
|
function instance$3($$self, $$props, $$invalidate) {
|
|
6982
|
-
let click;
|
|
6983
7064
|
let itemStyle;
|
|
6984
7065
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
6985
7066
|
const { registerItem, unregisterItem } = getContext('SLIDE');
|
|
6986
7067
|
|
|
6987
7068
|
const id = registerItem({
|
|
6988
7069
|
onMount({ containerElement }) {
|
|
6989
|
-
$$invalidate(
|
|
7070
|
+
$$invalidate(2, itemWidth = containerElement.clientWidth);
|
|
6990
7071
|
},
|
|
6991
7072
|
// TODO: onBeforeSlideと重複するロジックをまとめる
|
|
6992
7073
|
onResize({ containerElement, shiftCount, index, length }) {
|
|
6993
|
-
$$invalidate(
|
|
7074
|
+
$$invalidate(2, itemWidth = containerElement.clientWidth);
|
|
6994
7075
|
let fixedShiftCount;
|
|
6995
7076
|
|
|
6996
7077
|
if (index - shiftCount < 0) {
|
|
@@ -7001,7 +7082,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
7001
7082
|
fixedShiftCount = shiftCount;
|
|
7002
7083
|
}
|
|
7003
7084
|
|
|
7004
|
-
$$invalidate(
|
|
7085
|
+
$$invalidate(3, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
|
7005
7086
|
},
|
|
7006
7087
|
onBeforeSlide({ shiftCount, index, length }) {
|
|
7007
7088
|
let fixedShiftCount;
|
|
@@ -7014,7 +7095,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
7014
7095
|
fixedShiftCount = shiftCount;
|
|
7015
7096
|
}
|
|
7016
7097
|
|
|
7017
|
-
$$invalidate(
|
|
7098
|
+
$$invalidate(3, itemTransform = -fixedShiftCount * (itemWidth ?? 0));
|
|
7018
7099
|
}
|
|
7019
7100
|
});
|
|
7020
7101
|
|
|
@@ -7022,54 +7103,30 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
7022
7103
|
unregisterItem(id);
|
|
7023
7104
|
});
|
|
7024
7105
|
|
|
7025
|
-
let { onClick = { operation: 'none', args: [] } } = $$props;
|
|
7026
|
-
let { clickEventName = '' } = $$props;
|
|
7027
7106
|
let { _style = 'cursor: ' } = $$props;
|
|
7028
7107
|
let itemWidth = null;
|
|
7029
7108
|
let itemTransform = 0;
|
|
7030
7109
|
|
|
7031
7110
|
$$self.$$set = $$props => {
|
|
7032
|
-
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
|
7033
|
-
if ('clickEventName' in $$props) $$invalidate(4, clickEventName = $$props.clickEventName);
|
|
7034
7111
|
if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
|
|
7035
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
7112
|
+
if ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);
|
|
7036
7113
|
};
|
|
7037
7114
|
|
|
7038
7115
|
$$self.$$.update = () => {
|
|
7039
|
-
if ($$self.$$.dirty & /*
|
|
7040
|
-
$$invalidate(2, click = () => {
|
|
7041
|
-
if (clickEventName) {
|
|
7042
|
-
send_event(clickEventName);
|
|
7043
|
-
}
|
|
7044
|
-
|
|
7045
|
-
execOnClickOperation(onClick);
|
|
7046
|
-
});
|
|
7047
|
-
}
|
|
7048
|
-
|
|
7049
|
-
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 96) {
|
|
7116
|
+
if ($$self.$$.dirty & /*itemWidth, itemTransform*/ 12) {
|
|
7050
7117
|
$$invalidate(1, itemStyle = itemWidth != null
|
|
7051
7118
|
? `width: ${itemWidth}px; transform: translateX(${itemTransform}px);`
|
|
7052
7119
|
: '');
|
|
7053
7120
|
}
|
|
7054
7121
|
};
|
|
7055
7122
|
|
|
7056
|
-
return [
|
|
7057
|
-
_style,
|
|
7058
|
-
itemStyle,
|
|
7059
|
-
click,
|
|
7060
|
-
onClick,
|
|
7061
|
-
clickEventName,
|
|
7062
|
-
itemWidth,
|
|
7063
|
-
itemTransform,
|
|
7064
|
-
$$scope,
|
|
7065
|
-
slots
|
|
7066
|
-
];
|
|
7123
|
+
return [_style, itemStyle, itemWidth, itemTransform, $$scope, slots];
|
|
7067
7124
|
}
|
|
7068
7125
|
|
|
7069
|
-
class
|
|
7126
|
+
class SlideItem extends SvelteComponent {
|
|
7070
7127
|
constructor(options) {
|
|
7071
7128
|
super();
|
|
7072
|
-
init(this, options, instance$3, create_fragment$3, safe_not_equal, {
|
|
7129
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { _style: 0 }, add_css$3);
|
|
7073
7130
|
}
|
|
7074
7131
|
}
|
|
7075
7132
|
|
|
@@ -7460,4 +7517,4 @@ class ImageBlock extends SvelteComponent {
|
|
|
7460
7517
|
}
|
|
7461
7518
|
}
|
|
7462
7519
|
|
|
7463
|
-
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement,
|
|
7520
|
+
export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormButton, FormCheckBoxes, FormOperationOptions, FormRadioButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, formData, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
|