@plaidev/karte-action-sdk 1.1.154-28002752.3d939157 → 1.1.154-28002843.979f6a57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hydrate/index.es.js +1125 -543
- package/dist/index.es.js +1018 -505
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -2,7 +2,7 @@ import 'svelte/easing';
|
|
2
2
|
import { writable, get } from 'svelte/store';
|
3
3
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
4
4
|
export { onMount } from 'svelte';
|
5
|
-
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,
|
5
|
+
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, null_to_empty, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, HtmlTagHydration, claim_html_tag } from 'svelte/internal';
|
6
6
|
|
7
7
|
/** @internal */
|
8
8
|
const PropTypes = [
|
@@ -2273,20 +2273,20 @@ var widget = /*#__PURE__*/Object.freeze({
|
|
2273
2273
|
|
2274
2274
|
/* src/components/Normalize.svelte generated by Svelte v3.53.1 */
|
2275
2275
|
|
2276
|
-
function add_css$
|
2276
|
+
function add_css$t(target) {
|
2277
2277
|
append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
|
2278
2278
|
}
|
2279
2279
|
|
2280
2280
|
class Normalize extends SvelteComponent {
|
2281
2281
|
constructor(options) {
|
2282
2282
|
super();
|
2283
|
-
init(this, options, null, null, safe_not_equal, {}, add_css$
|
2283
|
+
init(this, options, null, null, safe_not_equal, {}, add_css$t);
|
2284
2284
|
}
|
2285
2285
|
}
|
2286
2286
|
|
2287
2287
|
/* src/components/State.svelte generated by Svelte v3.53.1 */
|
2288
2288
|
|
2289
|
-
function create_fragment$
|
2289
|
+
function create_fragment$w(ctx) {
|
2290
2290
|
let normalize;
|
2291
2291
|
let t;
|
2292
2292
|
let current;
|
@@ -2350,7 +2350,7 @@ function create_fragment$v(ctx) {
|
|
2350
2350
|
};
|
2351
2351
|
}
|
2352
2352
|
|
2353
|
-
function instance$
|
2353
|
+
function instance$w($$self, $$props, $$invalidate) {
|
2354
2354
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2355
2355
|
|
2356
2356
|
$$self.$$set = $$props => {
|
@@ -2363,18 +2363,18 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
2363
2363
|
class State extends SvelteComponent {
|
2364
2364
|
constructor(options) {
|
2365
2365
|
super();
|
2366
|
-
init(this, options, instance$
|
2366
|
+
init(this, options, instance$w, create_fragment$w, safe_not_equal, {});
|
2367
2367
|
}
|
2368
2368
|
}
|
2369
2369
|
|
2370
2370
|
/* src/components/StateItem.svelte generated by Svelte v3.53.1 */
|
2371
2371
|
|
2372
|
-
function add_css$
|
2372
|
+
function add_css$s(target) {
|
2373
2373
|
append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
|
2374
2374
|
}
|
2375
2375
|
|
2376
2376
|
// (23:0) {#if $state === path}
|
2377
|
-
function create_if_block$
|
2377
|
+
function create_if_block$8(ctx) {
|
2378
2378
|
let div;
|
2379
2379
|
let t;
|
2380
2380
|
let current;
|
@@ -2446,10 +2446,10 @@ function create_if_block$7(ctx) {
|
|
2446
2446
|
};
|
2447
2447
|
}
|
2448
2448
|
|
2449
|
-
function create_fragment$
|
2449
|
+
function create_fragment$v(ctx) {
|
2450
2450
|
let if_block_anchor;
|
2451
2451
|
let current;
|
2452
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
2452
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
|
2453
2453
|
|
2454
2454
|
return {
|
2455
2455
|
c() {
|
@@ -2474,7 +2474,7 @@ function create_fragment$u(ctx) {
|
|
2474
2474
|
transition_in(if_block, 1);
|
2475
2475
|
}
|
2476
2476
|
} else {
|
2477
|
-
if_block = create_if_block$
|
2477
|
+
if_block = create_if_block$8(ctx);
|
2478
2478
|
if_block.c();
|
2479
2479
|
transition_in(if_block, 1);
|
2480
2480
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -2511,7 +2511,7 @@ function getStateItemContext() {
|
|
2511
2511
|
return getContext(STATE_ITEM_CONTEXT_KEY);
|
2512
2512
|
}
|
2513
2513
|
|
2514
|
-
function instance$
|
2514
|
+
function instance$v($$self, $$props, $$invalidate) {
|
2515
2515
|
let $state;
|
2516
2516
|
component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
|
2517
2517
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -2537,18 +2537,18 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
2537
2537
|
class StateItem extends SvelteComponent {
|
2538
2538
|
constructor(options) {
|
2539
2539
|
super();
|
2540
|
-
init(this, options, instance$
|
2540
|
+
init(this, options, instance$v, create_fragment$v, safe_not_equal, { path: 0 }, add_css$s);
|
2541
2541
|
}
|
2542
2542
|
}
|
2543
2543
|
|
2544
2544
|
/* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
|
2545
2545
|
|
2546
|
-
function add_css$
|
2546
|
+
function add_css$r(target) {
|
2547
2547
|
append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
|
2548
2548
|
}
|
2549
2549
|
|
2550
2550
|
// (9:0) {#if backgroundOverray}
|
2551
|
-
function create_if_block$
|
2551
|
+
function create_if_block$7(ctx) {
|
2552
2552
|
let div;
|
2553
2553
|
let mounted;
|
2554
2554
|
let dispose;
|
@@ -2583,9 +2583,9 @@ function create_if_block$6(ctx) {
|
|
2583
2583
|
};
|
2584
2584
|
}
|
2585
2585
|
|
2586
|
-
function create_fragment$
|
2586
|
+
function create_fragment$u(ctx) {
|
2587
2587
|
let if_block_anchor;
|
2588
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
2588
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$7(ctx);
|
2589
2589
|
|
2590
2590
|
return {
|
2591
2591
|
c() {
|
@@ -2605,7 +2605,7 @@ function create_fragment$t(ctx) {
|
|
2605
2605
|
if (if_block) {
|
2606
2606
|
if_block.p(ctx, dirty);
|
2607
2607
|
} else {
|
2608
|
-
if_block = create_if_block$
|
2608
|
+
if_block = create_if_block$7(ctx);
|
2609
2609
|
if_block.c();
|
2610
2610
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2611
2611
|
}
|
@@ -2623,7 +2623,7 @@ function create_fragment$t(ctx) {
|
|
2623
2623
|
};
|
2624
2624
|
}
|
2625
2625
|
|
2626
|
-
function instance$
|
2626
|
+
function instance$u($$self, $$props, $$invalidate) {
|
2627
2627
|
let { backgroundOverray = false } = $$props;
|
2628
2628
|
const dispatch = createEventDispatcher();
|
2629
2629
|
const click_handler = () => dispatch('click');
|
@@ -2638,140 +2638,79 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
2638
2638
|
class BackgroundOverray extends SvelteComponent {
|
2639
2639
|
constructor(options) {
|
2640
2640
|
super();
|
2641
|
-
init(this, options, instance$
|
2641
|
+
init(this, options, instance$u, create_fragment$u, safe_not_equal, { backgroundOverray: 0 }, add_css$r);
|
2642
2642
|
}
|
2643
2643
|
}
|
2644
2644
|
|
2645
|
-
/* src/components/
|
2645
|
+
/* src/components/Button.svelte generated by Svelte v3.53.1 */
|
2646
2646
|
|
2647
|
-
function add_css$
|
2648
|
-
append_styles(target, "svelte-
|
2647
|
+
function add_css$q(target) {
|
2648
|
+
append_styles(target, "svelte-1kj05ao", ".button.svelte-1kj05ao{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0;cursor:initial}.button.svelte-1kj05ao:link,.button.svelte-1kj05ao:visited,.button.svelte-1kj05ao:active,.button.svelte-1kj05ao:hover{color:inherit}");
|
2649
2649
|
}
|
2650
2650
|
|
2651
|
-
// (
|
2652
|
-
function
|
2653
|
-
let
|
2654
|
-
let t;
|
2655
|
-
let div0;
|
2656
|
-
let div1_style_value;
|
2657
|
-
let div1_intro;
|
2651
|
+
// (41:0) {:else}
|
2652
|
+
function create_else_block$2(ctx) {
|
2653
|
+
let button;
|
2658
2654
|
let current;
|
2659
2655
|
let mounted;
|
2660
2656
|
let dispose;
|
2661
|
-
|
2662
|
-
const
|
2663
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
2657
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2658
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2664
2659
|
|
2665
2660
|
return {
|
2666
2661
|
c() {
|
2667
|
-
|
2668
|
-
if (if_block) if_block.c();
|
2669
|
-
t = space();
|
2670
|
-
div0 = element("div");
|
2662
|
+
button = element("button");
|
2671
2663
|
if (default_slot) default_slot.c();
|
2672
2664
|
this.h();
|
2673
2665
|
},
|
2674
2666
|
l(nodes) {
|
2675
|
-
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
style: true
|
2680
|
-
});
|
2681
|
-
|
2682
|
-
var div1_nodes = children(div1);
|
2683
|
-
if (if_block) if_block.l(div1_nodes);
|
2684
|
-
t = claim_space(div1_nodes);
|
2685
|
-
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
2686
|
-
var div0_nodes = children(div0);
|
2687
|
-
if (default_slot) default_slot.l(div0_nodes);
|
2688
|
-
div0_nodes.forEach(detach);
|
2689
|
-
div1_nodes.forEach(detach);
|
2667
|
+
button = claim_element(nodes, "BUTTON", { class: true, style: true });
|
2668
|
+
var button_nodes = children(button);
|
2669
|
+
if (default_slot) default_slot.l(button_nodes);
|
2670
|
+
button_nodes.forEach(detach);
|
2690
2671
|
this.h();
|
2691
2672
|
},
|
2692
2673
|
h() {
|
2693
|
-
attr(
|
2694
|
-
attr(
|
2695
|
-
attr(div1, "class", "modal svelte-12dkw0q");
|
2696
|
-
attr(div1, "role", "dialog");
|
2697
|
-
attr(div1, "aria-modal", "true");
|
2698
|
-
attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "");
|
2674
|
+
attr(button, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
|
2675
|
+
attr(button, "style", /*style*/ ctx[1]);
|
2699
2676
|
},
|
2700
2677
|
m(target, anchor) {
|
2701
|
-
insert_hydration(target,
|
2702
|
-
if (if_block) if_block.m(div1, null);
|
2703
|
-
append_hydration(div1, t);
|
2704
|
-
append_hydration(div1, div0);
|
2678
|
+
insert_hydration(target, button, anchor);
|
2705
2679
|
|
2706
2680
|
if (default_slot) {
|
2707
|
-
default_slot.m(
|
2681
|
+
default_slot.m(button, null);
|
2708
2682
|
}
|
2709
2683
|
|
2710
|
-
/*div1_binding*/ ctx[30](div1);
|
2711
2684
|
current = true;
|
2712
2685
|
|
2713
2686
|
if (!mounted) {
|
2714
|
-
dispose = listen(
|
2715
|
-
if (is_function(/*click*/ ctx[15])) /*click*/ ctx[15].apply(this, arguments);
|
2716
|
-
});
|
2717
|
-
|
2687
|
+
dispose = listen(button, "click", /*handleClickButton*/ ctx[3]);
|
2718
2688
|
mounted = true;
|
2719
2689
|
}
|
2720
2690
|
},
|
2721
|
-
p(
|
2722
|
-
ctx = new_ctx;
|
2723
|
-
|
2724
|
-
if (/*closable*/ ctx[14]) {
|
2725
|
-
if (if_block) {
|
2726
|
-
if_block.p(ctx, dirty);
|
2727
|
-
} else {
|
2728
|
-
if_block = create_if_block_1$1(ctx);
|
2729
|
-
if_block.c();
|
2730
|
-
if_block.m(div1, t);
|
2731
|
-
}
|
2732
|
-
} else if (if_block) {
|
2733
|
-
if_block.d(1);
|
2734
|
-
if_block = null;
|
2735
|
-
}
|
2736
|
-
|
2691
|
+
p(ctx, dirty) {
|
2737
2692
|
if (default_slot) {
|
2738
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
2693
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
|
2739
2694
|
update_slot_base(
|
2740
2695
|
default_slot,
|
2741
2696
|
default_slot_template,
|
2742
2697
|
ctx,
|
2743
|
-
/*$$scope*/ ctx[
|
2698
|
+
/*$$scope*/ ctx[8],
|
2744
2699
|
!current
|
2745
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
2746
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
2700
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
|
2701
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
|
2747
2702
|
null
|
2748
2703
|
);
|
2749
2704
|
}
|
2750
2705
|
}
|
2751
2706
|
|
2752
|
-
if (!current || dirty & /*
|
2753
|
-
attr(
|
2754
|
-
}
|
2755
|
-
|
2756
|
-
if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 6656 && div1_style_value !== (div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "")) {
|
2757
|
-
attr(div1, "style", div1_style_value);
|
2707
|
+
if (!current || dirty & /*style*/ 2) {
|
2708
|
+
attr(button, "style", /*style*/ ctx[1]);
|
2758
2709
|
}
|
2759
2710
|
},
|
2760
2711
|
i(local) {
|
2761
2712
|
if (current) return;
|
2762
2713
|
transition_in(default_slot, local);
|
2763
|
-
|
2764
|
-
if (!div1_intro) {
|
2765
|
-
add_render_callback(() => {
|
2766
|
-
div1_intro = create_in_transition(div1, customAnimation, {
|
2767
|
-
transform: /*transform*/ ctx[10],
|
2768
|
-
animationStyle: /*animation*/ ctx[0]
|
2769
|
-
});
|
2770
|
-
|
2771
|
-
div1_intro.start();
|
2772
|
-
});
|
2773
|
-
}
|
2774
|
-
|
2775
2714
|
current = true;
|
2776
2715
|
},
|
2777
2716
|
o(local) {
|
@@ -2779,186 +2718,815 @@ function create_if_block$5(ctx) {
|
|
2779
2718
|
current = false;
|
2780
2719
|
},
|
2781
2720
|
d(detaching) {
|
2782
|
-
if (detaching) detach(
|
2783
|
-
if (if_block) if_block.d();
|
2721
|
+
if (detaching) detach(button);
|
2784
2722
|
if (default_slot) default_slot.d(detaching);
|
2785
|
-
/*div1_binding*/ ctx[30](null);
|
2786
2723
|
mounted = false;
|
2787
2724
|
dispose();
|
2788
2725
|
}
|
2789
2726
|
};
|
2790
2727
|
}
|
2791
2728
|
|
2792
|
-
// (
|
2793
|
-
function
|
2794
|
-
let
|
2795
|
-
let
|
2796
|
-
|
2797
|
-
|
2798
|
-
let mounted;
|
2799
|
-
let dispose;
|
2729
|
+
// (37:39)
|
2730
|
+
function create_if_block_2(ctx) {
|
2731
|
+
let div;
|
2732
|
+
let current;
|
2733
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2734
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2800
2735
|
|
2801
2736
|
return {
|
2802
2737
|
c() {
|
2803
|
-
|
2804
|
-
|
2805
|
-
path = svg_element("path");
|
2738
|
+
div = element("div");
|
2739
|
+
if (default_slot) default_slot.c();
|
2806
2740
|
this.h();
|
2807
2741
|
},
|
2808
2742
|
l(nodes) {
|
2809
|
-
|
2810
|
-
var
|
2811
|
-
|
2812
|
-
|
2813
|
-
width: true,
|
2814
|
-
height: true,
|
2815
|
-
viewBox: true,
|
2816
|
-
fill: true,
|
2817
|
-
xmlns: true
|
2818
|
-
});
|
2819
|
-
|
2820
|
-
var svg_nodes = children(svg);
|
2821
|
-
|
2822
|
-
path = claim_svg_element(svg_nodes, "path", {
|
2823
|
-
d: true,
|
2824
|
-
fill: true,
|
2825
|
-
"fill-opacity": true
|
2826
|
-
});
|
2827
|
-
|
2828
|
-
children(path).forEach(detach);
|
2829
|
-
svg_nodes.forEach(detach);
|
2830
|
-
button_nodes.forEach(detach);
|
2743
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
2744
|
+
var div_nodes = children(div);
|
2745
|
+
if (default_slot) default_slot.l(div_nodes);
|
2746
|
+
div_nodes.forEach(detach);
|
2831
2747
|
this.h();
|
2832
2748
|
},
|
2833
2749
|
h() {
|
2834
|
-
attr(
|
2835
|
-
attr(
|
2836
|
-
attr(path, "fill-opacity", "0.8");
|
2837
|
-
attr(svg, "width", "100%");
|
2838
|
-
attr(svg, "height", "100%");
|
2839
|
-
attr(svg, "viewBox", "0 0 9 10");
|
2840
|
-
attr(svg, "fill", "none");
|
2841
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
2842
|
-
attr(button, "class", "close svelte-12dkw0q");
|
2843
|
-
attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[16] + 1) + "; " + /*_closeStyle*/ ctx[3] + "");
|
2750
|
+
attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
|
2751
|
+
attr(div, "style", /*style*/ ctx[1]);
|
2844
2752
|
},
|
2845
2753
|
m(target, anchor) {
|
2846
|
-
insert_hydration(target,
|
2847
|
-
append_hydration(button, svg);
|
2848
|
-
append_hydration(svg, path);
|
2849
|
-
|
2850
|
-
if (!mounted) {
|
2851
|
-
dispose = listen(button, "click", function () {
|
2852
|
-
if (is_function(/*close*/ ctx[5])) /*close*/ ctx[5].apply(this, arguments);
|
2853
|
-
});
|
2754
|
+
insert_hydration(target, div, anchor);
|
2854
2755
|
|
2855
|
-
|
2756
|
+
if (default_slot) {
|
2757
|
+
default_slot.m(div, null);
|
2856
2758
|
}
|
2857
|
-
},
|
2858
|
-
p(new_ctx, dirty) {
|
2859
|
-
ctx = new_ctx;
|
2860
2759
|
|
2861
|
-
|
2862
|
-
|
2760
|
+
current = true;
|
2761
|
+
},
|
2762
|
+
p(ctx, dirty) {
|
2763
|
+
if (default_slot) {
|
2764
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
|
2765
|
+
update_slot_base(
|
2766
|
+
default_slot,
|
2767
|
+
default_slot_template,
|
2768
|
+
ctx,
|
2769
|
+
/*$$scope*/ ctx[8],
|
2770
|
+
!current
|
2771
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
|
2772
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
|
2773
|
+
null
|
2774
|
+
);
|
2775
|
+
}
|
2863
2776
|
}
|
2864
2777
|
|
2865
|
-
if (dirty &
|
2866
|
-
attr(
|
2778
|
+
if (!current || dirty & /*style*/ 2) {
|
2779
|
+
attr(div, "style", /*style*/ ctx[1]);
|
2867
2780
|
}
|
2868
2781
|
},
|
2782
|
+
i(local) {
|
2783
|
+
if (current) return;
|
2784
|
+
transition_in(default_slot, local);
|
2785
|
+
current = true;
|
2786
|
+
},
|
2787
|
+
o(local) {
|
2788
|
+
transition_out(default_slot, local);
|
2789
|
+
current = false;
|
2790
|
+
},
|
2869
2791
|
d(detaching) {
|
2870
|
-
if (detaching) detach(
|
2871
|
-
|
2872
|
-
dispose();
|
2792
|
+
if (detaching) detach(div);
|
2793
|
+
if (default_slot) default_slot.d(detaching);
|
2873
2794
|
}
|
2874
2795
|
};
|
2875
2796
|
}
|
2876
2797
|
|
2877
|
-
|
2878
|
-
|
2879
|
-
let
|
2880
|
-
let
|
2798
|
+
// (33:41)
|
2799
|
+
function create_if_block_1$2(ctx) {
|
2800
|
+
let a;
|
2801
|
+
let a_href_value;
|
2802
|
+
let a_target_value;
|
2881
2803
|
let current;
|
2882
|
-
|
2883
|
-
|
2884
|
-
|
2885
|
-
backgroundoverray = new BackgroundOverray({
|
2886
|
-
props: {
|
2887
|
-
backgroundOverray: /*backgroundOverray*/ ctx[6]
|
2888
|
-
}
|
2889
|
-
});
|
2890
|
-
|
2891
|
-
backgroundoverray.$on("click", function () {
|
2892
|
-
if (is_function(/*backgroundClick*/ ctx[13])) /*backgroundClick*/ ctx[13].apply(this, arguments);
|
2893
|
-
});
|
2894
|
-
|
2895
|
-
let if_block = /*visible*/ ctx[7] && create_if_block$5(ctx);
|
2804
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2805
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2896
2806
|
|
2897
2807
|
return {
|
2898
2808
|
c() {
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
if_block_anchor = empty();
|
2809
|
+
a = element("a");
|
2810
|
+
if (default_slot) default_slot.c();
|
2811
|
+
this.h();
|
2903
2812
|
},
|
2904
2813
|
l(nodes) {
|
2905
|
-
|
2906
|
-
|
2907
|
-
|
2908
|
-
|
2814
|
+
a = claim_element(nodes, "A", {
|
2815
|
+
class: true,
|
2816
|
+
style: true,
|
2817
|
+
href: true,
|
2818
|
+
target: true
|
2819
|
+
});
|
2820
|
+
|
2821
|
+
var a_nodes = children(a);
|
2822
|
+
if (default_slot) default_slot.l(a_nodes);
|
2823
|
+
a_nodes.forEach(detach);
|
2824
|
+
this.h();
|
2825
|
+
},
|
2826
|
+
h() {
|
2827
|
+
attr(a, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
|
2828
|
+
attr(a, "style", /*style*/ ctx[1]);
|
2829
|
+
attr(a, "href", a_href_value = /*onClick*/ ctx[0].args[0]);
|
2830
|
+
attr(a, "target", a_target_value = /*onClick*/ ctx[0].args[1] === true ? '_blank' : null);
|
2909
2831
|
},
|
2910
2832
|
m(target, anchor) {
|
2911
|
-
|
2912
|
-
insert_hydration(target, t, anchor);
|
2913
|
-
if (if_block) if_block.m(target, anchor);
|
2914
|
-
insert_hydration(target, if_block_anchor, anchor);
|
2915
|
-
current = true;
|
2916
|
-
|
2917
|
-
if (!mounted) {
|
2918
|
-
dispose = listen(window, "keydown", function () {
|
2919
|
-
if (is_function(/*handle_keydown*/ ctx[8])) /*handle_keydown*/ ctx[8].apply(this, arguments);
|
2920
|
-
});
|
2833
|
+
insert_hydration(target, a, anchor);
|
2921
2834
|
|
2922
|
-
|
2835
|
+
if (default_slot) {
|
2836
|
+
default_slot.m(a, null);
|
2923
2837
|
}
|
2924
|
-
},
|
2925
|
-
p(new_ctx, [dirty]) {
|
2926
|
-
ctx = new_ctx;
|
2927
|
-
const backgroundoverray_changes = {};
|
2928
|
-
if (dirty & /*backgroundOverray*/ 64) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[6];
|
2929
|
-
backgroundoverray.$set(backgroundoverray_changes);
|
2930
|
-
|
2931
|
-
if (/*visible*/ ctx[7]) {
|
2932
|
-
if (if_block) {
|
2933
|
-
if_block.p(ctx, dirty);
|
2934
|
-
|
2935
|
-
if (dirty & /*visible*/ 128) {
|
2936
|
-
transition_in(if_block, 1);
|
2937
|
-
}
|
2938
|
-
} else {
|
2939
|
-
if_block = create_if_block$5(ctx);
|
2940
|
-
if_block.c();
|
2941
|
-
transition_in(if_block, 1);
|
2942
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2943
|
-
}
|
2944
|
-
} else if (if_block) {
|
2945
|
-
group_outros();
|
2946
|
-
|
2947
|
-
transition_out(if_block, 1, 1, () => {
|
2948
|
-
if_block = null;
|
2949
|
-
});
|
2950
2838
|
|
2951
|
-
check_outros();
|
2952
|
-
}
|
2953
|
-
},
|
2954
|
-
i(local) {
|
2955
|
-
if (current) return;
|
2956
|
-
transition_in(backgroundoverray.$$.fragment, local);
|
2957
|
-
transition_in(if_block);
|
2958
2839
|
current = true;
|
2959
2840
|
},
|
2960
|
-
|
2961
|
-
|
2841
|
+
p(ctx, dirty) {
|
2842
|
+
if (default_slot) {
|
2843
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
|
2844
|
+
update_slot_base(
|
2845
|
+
default_slot,
|
2846
|
+
default_slot_template,
|
2847
|
+
ctx,
|
2848
|
+
/*$$scope*/ ctx[8],
|
2849
|
+
!current
|
2850
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
|
2851
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
|
2852
|
+
null
|
2853
|
+
);
|
2854
|
+
}
|
2855
|
+
}
|
2856
|
+
|
2857
|
+
if (!current || dirty & /*style*/ 2) {
|
2858
|
+
attr(a, "style", /*style*/ ctx[1]);
|
2859
|
+
}
|
2860
|
+
|
2861
|
+
if (!current || dirty & /*onClick*/ 1 && a_href_value !== (a_href_value = /*onClick*/ ctx[0].args[0])) {
|
2862
|
+
attr(a, "href", a_href_value);
|
2863
|
+
}
|
2864
|
+
|
2865
|
+
if (!current || dirty & /*onClick*/ 1 && a_target_value !== (a_target_value = /*onClick*/ ctx[0].args[1] === true ? '_blank' : null)) {
|
2866
|
+
attr(a, "target", a_target_value);
|
2867
|
+
}
|
2868
|
+
},
|
2869
|
+
i(local) {
|
2870
|
+
if (current) return;
|
2871
|
+
transition_in(default_slot, local);
|
2872
|
+
current = true;
|
2873
|
+
},
|
2874
|
+
o(local) {
|
2875
|
+
transition_out(default_slot, local);
|
2876
|
+
current = false;
|
2877
|
+
},
|
2878
|
+
d(detaching) {
|
2879
|
+
if (detaching) detach(a);
|
2880
|
+
if (default_slot) default_slot.d(detaching);
|
2881
|
+
}
|
2882
|
+
};
|
2883
|
+
}
|
2884
|
+
|
2885
|
+
// (29:0) {#if disabled}
|
2886
|
+
function create_if_block$6(ctx) {
|
2887
|
+
let div;
|
2888
|
+
let current;
|
2889
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2890
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2891
|
+
|
2892
|
+
return {
|
2893
|
+
c() {
|
2894
|
+
div = element("div");
|
2895
|
+
if (default_slot) default_slot.c();
|
2896
|
+
this.h();
|
2897
|
+
},
|
2898
|
+
l(nodes) {
|
2899
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
2900
|
+
var div_nodes = children(div);
|
2901
|
+
if (default_slot) default_slot.l(div_nodes);
|
2902
|
+
div_nodes.forEach(detach);
|
2903
|
+
this.h();
|
2904
|
+
},
|
2905
|
+
h() {
|
2906
|
+
attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kj05ao"));
|
2907
|
+
attr(div, "style", /*style*/ ctx[1]);
|
2908
|
+
},
|
2909
|
+
m(target, anchor) {
|
2910
|
+
insert_hydration(target, div, anchor);
|
2911
|
+
|
2912
|
+
if (default_slot) {
|
2913
|
+
default_slot.m(div, null);
|
2914
|
+
}
|
2915
|
+
|
2916
|
+
current = true;
|
2917
|
+
},
|
2918
|
+
p(ctx, dirty) {
|
2919
|
+
if (default_slot) {
|
2920
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
|
2921
|
+
update_slot_base(
|
2922
|
+
default_slot,
|
2923
|
+
default_slot_template,
|
2924
|
+
ctx,
|
2925
|
+
/*$$scope*/ ctx[8],
|
2926
|
+
!current
|
2927
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
|
2928
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
|
2929
|
+
null
|
2930
|
+
);
|
2931
|
+
}
|
2932
|
+
}
|
2933
|
+
|
2934
|
+
if (!current || dirty & /*style*/ 2) {
|
2935
|
+
attr(div, "style", /*style*/ ctx[1]);
|
2936
|
+
}
|
2937
|
+
},
|
2938
|
+
i(local) {
|
2939
|
+
if (current) return;
|
2940
|
+
transition_in(default_slot, local);
|
2941
|
+
current = true;
|
2942
|
+
},
|
2943
|
+
o(local) {
|
2944
|
+
transition_out(default_slot, local);
|
2945
|
+
current = false;
|
2946
|
+
},
|
2947
|
+
d(detaching) {
|
2948
|
+
if (detaching) detach(div);
|
2949
|
+
if (default_slot) default_slot.d(detaching);
|
2950
|
+
}
|
2951
|
+
};
|
2952
|
+
}
|
2953
|
+
|
2954
|
+
function create_fragment$t(ctx) {
|
2955
|
+
let current_block_type_index;
|
2956
|
+
let if_block;
|
2957
|
+
let if_block_anchor;
|
2958
|
+
let current;
|
2959
|
+
const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2, create_else_block$2];
|
2960
|
+
const if_blocks = [];
|
2961
|
+
|
2962
|
+
function select_block_type(ctx, dirty) {
|
2963
|
+
if (/*disabled*/ ctx[2]) return 0;
|
2964
|
+
if (/*onClick*/ ctx[0].operation === 'linkTo') return 1;
|
2965
|
+
if (/*onClick*/ ctx[0].operation === 'none') return 2;
|
2966
|
+
return 3;
|
2967
|
+
}
|
2968
|
+
|
2969
|
+
current_block_type_index = select_block_type(ctx);
|
2970
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
2971
|
+
|
2972
|
+
return {
|
2973
|
+
c() {
|
2974
|
+
if_block.c();
|
2975
|
+
if_block_anchor = empty();
|
2976
|
+
},
|
2977
|
+
l(nodes) {
|
2978
|
+
if_block.l(nodes);
|
2979
|
+
if_block_anchor = empty();
|
2980
|
+
},
|
2981
|
+
m(target, anchor) {
|
2982
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
2983
|
+
insert_hydration(target, if_block_anchor, anchor);
|
2984
|
+
current = true;
|
2985
|
+
},
|
2986
|
+
p(ctx, [dirty]) {
|
2987
|
+
let previous_block_index = current_block_type_index;
|
2988
|
+
current_block_type_index = select_block_type(ctx);
|
2989
|
+
|
2990
|
+
if (current_block_type_index === previous_block_index) {
|
2991
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
2992
|
+
} else {
|
2993
|
+
group_outros();
|
2994
|
+
|
2995
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
2996
|
+
if_blocks[previous_block_index] = null;
|
2997
|
+
});
|
2998
|
+
|
2999
|
+
check_outros();
|
3000
|
+
if_block = if_blocks[current_block_type_index];
|
3001
|
+
|
3002
|
+
if (!if_block) {
|
3003
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
3004
|
+
if_block.c();
|
3005
|
+
} else {
|
3006
|
+
if_block.p(ctx, dirty);
|
3007
|
+
}
|
3008
|
+
|
3009
|
+
transition_in(if_block, 1);
|
3010
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
3011
|
+
}
|
3012
|
+
},
|
3013
|
+
i(local) {
|
3014
|
+
if (current) return;
|
3015
|
+
transition_in(if_block);
|
3016
|
+
current = true;
|
3017
|
+
},
|
3018
|
+
o(local) {
|
3019
|
+
transition_out(if_block);
|
3020
|
+
current = false;
|
3021
|
+
},
|
3022
|
+
d(detaching) {
|
3023
|
+
if_blocks[current_block_type_index].d(detaching);
|
3024
|
+
if (detaching) detach(if_block_anchor);
|
3025
|
+
}
|
3026
|
+
};
|
3027
|
+
}
|
3028
|
+
|
3029
|
+
const BUTTON_CLASS = 'button';
|
3030
|
+
|
3031
|
+
function instance$t($$self, $$props, $$invalidate) {
|
3032
|
+
let disabled;
|
3033
|
+
let $valuesAreValid;
|
3034
|
+
let { $$slots: slots = {}, $$scope } = $$props;
|
3035
|
+
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3036
|
+
let { eventName = '' } = $$props;
|
3037
|
+
let { eventValue = undefined } = $$props;
|
3038
|
+
let { style = '' } = $$props;
|
3039
|
+
|
3040
|
+
function handleClickButton() {
|
3041
|
+
if (eventName) {
|
3042
|
+
send_event(eventName, eventValue);
|
3043
|
+
}
|
3044
|
+
|
3045
|
+
execOnClickOperation(onClick);
|
3046
|
+
}
|
3047
|
+
|
3048
|
+
const { path: statePath } = getStateItemContext() ?? { path: '/' };
|
3049
|
+
const valuesAreValid = getValuesAreValidReader(statePath);
|
3050
|
+
component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
|
3051
|
+
|
3052
|
+
$$self.$$set = $$props => {
|
3053
|
+
if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
|
3054
|
+
if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
|
3055
|
+
if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
|
3056
|
+
if ('style' in $$props) $$invalidate(1, style = $$props.style);
|
3057
|
+
if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
|
3058
|
+
};
|
3059
|
+
|
3060
|
+
$$self.$$.update = () => {
|
3061
|
+
if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 129) {
|
3062
|
+
$$invalidate(2, disabled = (() => {
|
3063
|
+
let isEnabled = true;
|
3064
|
+
|
3065
|
+
if (onClick.operation === 'submitForm') {
|
3066
|
+
isEnabled = $valuesAreValid;
|
3067
|
+
} else if (onClick.operation === 'moveTo') {
|
3068
|
+
isEnabled = $valuesAreValid;
|
3069
|
+
}
|
3070
|
+
|
3071
|
+
return !isEnabled;
|
3072
|
+
})());
|
3073
|
+
}
|
3074
|
+
};
|
3075
|
+
|
3076
|
+
return [
|
3077
|
+
onClick,
|
3078
|
+
style,
|
3079
|
+
disabled,
|
3080
|
+
handleClickButton,
|
3081
|
+
valuesAreValid,
|
3082
|
+
eventName,
|
3083
|
+
eventValue,
|
3084
|
+
$valuesAreValid,
|
3085
|
+
$$scope,
|
3086
|
+
slots
|
3087
|
+
];
|
3088
|
+
}
|
3089
|
+
|
3090
|
+
class Button extends SvelteComponent {
|
3091
|
+
constructor(options) {
|
3092
|
+
super();
|
3093
|
+
|
3094
|
+
init(
|
3095
|
+
this,
|
3096
|
+
options,
|
3097
|
+
instance$t,
|
3098
|
+
create_fragment$t,
|
3099
|
+
safe_not_equal,
|
3100
|
+
{
|
3101
|
+
onClick: 0,
|
3102
|
+
eventName: 5,
|
3103
|
+
eventValue: 6,
|
3104
|
+
style: 1
|
3105
|
+
},
|
3106
|
+
add_css$q
|
3107
|
+
);
|
3108
|
+
}
|
3109
|
+
}
|
3110
|
+
|
3111
|
+
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
3112
|
+
|
3113
|
+
function add_css$p(target) {
|
3114
|
+
append_styles(target, "svelte-67dbus", ".modal.svelte-67dbus{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-67dbus{position:absolute;top:0;right:0}.close.svelte-67dbus > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-67dbus > .button:hover{transform:rotate(90deg)}.modal-content.svelte-67dbus{display:flex;justify-content:center;align-items:center}");
|
3115
|
+
}
|
3116
|
+
|
3117
|
+
// (144:0) {#if visible}
|
3118
|
+
function create_if_block$5(ctx) {
|
3119
|
+
let div;
|
3120
|
+
let button;
|
3121
|
+
let div_style_value;
|
3122
|
+
let div_intro;
|
3123
|
+
let current;
|
3124
|
+
|
3125
|
+
button = new Button({
|
3126
|
+
props: {
|
3127
|
+
onClick: /*onClick*/ ctx[0],
|
3128
|
+
eventName: /*clickEventName*/ ctx[1],
|
3129
|
+
eventValue: /*clickEventValue*/ ctx[2],
|
3130
|
+
$$slots: { default: [create_default_slot$4] },
|
3131
|
+
$$scope: { ctx }
|
3132
|
+
}
|
3133
|
+
});
|
3134
|
+
|
3135
|
+
return {
|
3136
|
+
c() {
|
3137
|
+
div = element("div");
|
3138
|
+
create_component(button.$$.fragment);
|
3139
|
+
this.h();
|
3140
|
+
},
|
3141
|
+
l(nodes) {
|
3142
|
+
div = claim_element(nodes, "DIV", {
|
3143
|
+
class: true,
|
3144
|
+
role: true,
|
3145
|
+
"aria-modal": true,
|
3146
|
+
style: true
|
3147
|
+
});
|
3148
|
+
|
3149
|
+
var div_nodes = children(div);
|
3150
|
+
claim_component(button.$$.fragment, div_nodes);
|
3151
|
+
div_nodes.forEach(detach);
|
3152
|
+
this.h();
|
3153
|
+
},
|
3154
|
+
h() {
|
3155
|
+
attr(div, "class", "modal svelte-67dbus");
|
3156
|
+
attr(div, "role", "dialog");
|
3157
|
+
attr(div, "aria-modal", "true");
|
3158
|
+
attr(div, "style", div_style_value = "" + /*pos*/ ctx[16] + " " + /*marginStyle*/ ctx[14] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[17]] + "");
|
3159
|
+
},
|
3160
|
+
m(target, anchor) {
|
3161
|
+
insert_hydration(target, div, anchor);
|
3162
|
+
mount_component(button, div, null);
|
3163
|
+
/*div_binding*/ ctx[28](div);
|
3164
|
+
current = true;
|
3165
|
+
},
|
3166
|
+
p(new_ctx, dirty) {
|
3167
|
+
ctx = new_ctx;
|
3168
|
+
const button_changes = {};
|
3169
|
+
if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
3170
|
+
if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
3171
|
+
if (dirty & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
|
3172
|
+
|
3173
|
+
if (dirty & /*$$scope, _style, $maximumZindex, onClose, _closeStyle, closeEventName, closeEventValue, closeButtonColor, closable*/ 538444784) {
|
3174
|
+
button_changes.$$scope = { dirty, ctx };
|
3175
|
+
}
|
3176
|
+
|
3177
|
+
button.$set(button_changes);
|
3178
|
+
|
3179
|
+
if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 212992 && div_style_value !== (div_style_value = "" + /*pos*/ ctx[16] + " " + /*marginStyle*/ ctx[14] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[17]] + "")) {
|
3180
|
+
attr(div, "style", div_style_value);
|
3181
|
+
}
|
3182
|
+
},
|
3183
|
+
i(local) {
|
3184
|
+
if (current) return;
|
3185
|
+
transition_in(button.$$.fragment, local);
|
3186
|
+
|
3187
|
+
if (!div_intro) {
|
3188
|
+
add_render_callback(() => {
|
3189
|
+
div_intro = create_in_transition(div, customAnimation, {
|
3190
|
+
transform: /*transform*/ ctx[15],
|
3191
|
+
animationStyle: /*animation*/ ctx[3]
|
3192
|
+
});
|
3193
|
+
|
3194
|
+
div_intro.start();
|
3195
|
+
});
|
3196
|
+
}
|
3197
|
+
|
3198
|
+
current = true;
|
3199
|
+
},
|
3200
|
+
o(local) {
|
3201
|
+
transition_out(button.$$.fragment, local);
|
3202
|
+
current = false;
|
3203
|
+
},
|
3204
|
+
d(detaching) {
|
3205
|
+
if (detaching) detach(div);
|
3206
|
+
destroy_component(button);
|
3207
|
+
/*div_binding*/ ctx[28](null);
|
3208
|
+
}
|
3209
|
+
};
|
3210
|
+
}
|
3211
|
+
|
3212
|
+
// (161:6) {#if closable}
|
3213
|
+
function create_if_block_1$1(ctx) {
|
3214
|
+
let div;
|
3215
|
+
let button;
|
3216
|
+
let current;
|
3217
|
+
|
3218
|
+
button = new Button({
|
3219
|
+
props: {
|
3220
|
+
onClick: /*onClose*/ ctx[5],
|
3221
|
+
style: /*_closeStyle*/ ctx[9],
|
3222
|
+
eventName: /*closeEventName*/ ctx[6],
|
3223
|
+
eventValue: /*closeEventValue*/ ctx[7],
|
3224
|
+
$$slots: { default: [create_default_slot_1$1] },
|
3225
|
+
$$scope: { ctx }
|
3226
|
+
}
|
3227
|
+
});
|
3228
|
+
|
3229
|
+
return {
|
3230
|
+
c() {
|
3231
|
+
div = element("div");
|
3232
|
+
create_component(button.$$.fragment);
|
3233
|
+
this.h();
|
3234
|
+
},
|
3235
|
+
l(nodes) {
|
3236
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
3237
|
+
var div_nodes = children(div);
|
3238
|
+
claim_component(button.$$.fragment, div_nodes);
|
3239
|
+
div_nodes.forEach(detach);
|
3240
|
+
this.h();
|
3241
|
+
},
|
3242
|
+
h() {
|
3243
|
+
attr(div, "class", "close svelte-67dbus");
|
3244
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[20] + 1);
|
3245
|
+
},
|
3246
|
+
m(target, anchor) {
|
3247
|
+
insert_hydration(target, div, anchor);
|
3248
|
+
mount_component(button, div, null);
|
3249
|
+
current = true;
|
3250
|
+
},
|
3251
|
+
p(ctx, dirty) {
|
3252
|
+
const button_changes = {};
|
3253
|
+
if (dirty & /*onClose*/ 32) button_changes.onClick = /*onClose*/ ctx[5];
|
3254
|
+
if (dirty & /*_closeStyle*/ 512) button_changes.style = /*_closeStyle*/ ctx[9];
|
3255
|
+
if (dirty & /*closeEventName*/ 64) button_changes.eventName = /*closeEventName*/ ctx[6];
|
3256
|
+
if (dirty & /*closeEventValue*/ 128) button_changes.eventValue = /*closeEventValue*/ ctx[7];
|
3257
|
+
|
3258
|
+
if (dirty & /*$$scope, closeButtonColor*/ 536871168) {
|
3259
|
+
button_changes.$$scope = { dirty, ctx };
|
3260
|
+
}
|
3261
|
+
|
3262
|
+
button.$set(button_changes);
|
3263
|
+
|
3264
|
+
if (!current || dirty & /*$maximumZindex*/ 1048576) {
|
3265
|
+
set_style(div, "z-index", /*$maximumZindex*/ ctx[20] + 1);
|
3266
|
+
}
|
3267
|
+
},
|
3268
|
+
i(local) {
|
3269
|
+
if (current) return;
|
3270
|
+
transition_in(button.$$.fragment, local);
|
3271
|
+
current = true;
|
3272
|
+
},
|
3273
|
+
o(local) {
|
3274
|
+
transition_out(button.$$.fragment, local);
|
3275
|
+
current = false;
|
3276
|
+
},
|
3277
|
+
d(detaching) {
|
3278
|
+
if (detaching) detach(div);
|
3279
|
+
destroy_component(button);
|
3280
|
+
}
|
3281
|
+
};
|
3282
|
+
}
|
3283
|
+
|
3284
|
+
// (163:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue}>
|
3285
|
+
function create_default_slot_1$1(ctx) {
|
3286
|
+
let svg;
|
3287
|
+
let path;
|
3288
|
+
|
3289
|
+
return {
|
3290
|
+
c() {
|
3291
|
+
svg = svg_element("svg");
|
3292
|
+
path = svg_element("path");
|
3293
|
+
this.h();
|
3294
|
+
},
|
3295
|
+
l(nodes) {
|
3296
|
+
svg = claim_svg_element(nodes, "svg", {
|
3297
|
+
width: true,
|
3298
|
+
height: true,
|
3299
|
+
viewBox: true,
|
3300
|
+
fill: true,
|
3301
|
+
xmlns: true
|
3302
|
+
});
|
3303
|
+
|
3304
|
+
var svg_nodes = children(svg);
|
3305
|
+
|
3306
|
+
path = claim_svg_element(svg_nodes, "path", {
|
3307
|
+
d: true,
|
3308
|
+
fill: true,
|
3309
|
+
"fill-opacity": true
|
3310
|
+
});
|
3311
|
+
|
3312
|
+
children(path).forEach(detach);
|
3313
|
+
svg_nodes.forEach(detach);
|
3314
|
+
this.h();
|
3315
|
+
},
|
3316
|
+
h() {
|
3317
|
+
attr(path, "d", "M5.78516 4.75L8.73828 1.82422C8.90234 1.66016 8.90234 1.35938 8.73828 1.19531L8.05469 0.511719C7.89062 0.347656 7.58984 0.347656 7.42578 0.511719L4.5 3.46484L1.54688 0.511719C1.38281 0.347656 1.08203 0.347656 0.917969 0.511719L0.234375 1.19531C0.0703125 1.35938 0.0703125 1.66016 0.234375 1.82422L3.1875 4.75L0.234375 7.70312C0.0703125 7.86719 0.0703125 8.16797 0.234375 8.33203L0.917969 9.01562C1.08203 9.17969 1.38281 9.17969 1.54688 9.01562L4.5 6.0625L7.42578 9.01562C7.58984 9.17969 7.89062 9.17969 8.05469 9.01562L8.73828 8.33203C8.90234 8.16797 8.90234 7.86719 8.73828 7.70312L5.78516 4.75Z");
|
3318
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[8]);
|
3319
|
+
attr(path, "fill-opacity", "0.8");
|
3320
|
+
attr(svg, "width", "100%");
|
3321
|
+
attr(svg, "height", "100%");
|
3322
|
+
attr(svg, "viewBox", "0 0 9 10");
|
3323
|
+
attr(svg, "fill", "none");
|
3324
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
3325
|
+
},
|
3326
|
+
m(target, anchor) {
|
3327
|
+
insert_hydration(target, svg, anchor);
|
3328
|
+
append_hydration(svg, path);
|
3329
|
+
},
|
3330
|
+
p(ctx, dirty) {
|
3331
|
+
if (dirty & /*closeButtonColor*/ 256) {
|
3332
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[8]);
|
3333
|
+
}
|
3334
|
+
},
|
3335
|
+
d(detaching) {
|
3336
|
+
if (detaching) detach(svg);
|
3337
|
+
}
|
3338
|
+
};
|
3339
|
+
}
|
3340
|
+
|
3341
|
+
// (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
3342
|
+
function create_default_slot$4(ctx) {
|
3343
|
+
let t;
|
3344
|
+
let div;
|
3345
|
+
let current;
|
3346
|
+
let if_block = /*closable*/ ctx[19] && create_if_block_1$1(ctx);
|
3347
|
+
const default_slot_template = /*#slots*/ ctx[27].default;
|
3348
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
|
3349
|
+
|
3350
|
+
return {
|
3351
|
+
c() {
|
3352
|
+
if (if_block) if_block.c();
|
3353
|
+
t = space();
|
3354
|
+
div = element("div");
|
3355
|
+
if (default_slot) default_slot.c();
|
3356
|
+
this.h();
|
3357
|
+
},
|
3358
|
+
l(nodes) {
|
3359
|
+
if (if_block) if_block.l(nodes);
|
3360
|
+
t = claim_space(nodes);
|
3361
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
3362
|
+
var div_nodes = children(div);
|
3363
|
+
if (default_slot) default_slot.l(div_nodes);
|
3364
|
+
div_nodes.forEach(detach);
|
3365
|
+
this.h();
|
3366
|
+
},
|
3367
|
+
h() {
|
3368
|
+
attr(div, "class", "modal-content svelte-67dbus");
|
3369
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
3370
|
+
},
|
3371
|
+
m(target, anchor) {
|
3372
|
+
if (if_block) if_block.m(target, anchor);
|
3373
|
+
insert_hydration(target, t, anchor);
|
3374
|
+
insert_hydration(target, div, anchor);
|
3375
|
+
|
3376
|
+
if (default_slot) {
|
3377
|
+
default_slot.m(div, null);
|
3378
|
+
}
|
3379
|
+
|
3380
|
+
current = true;
|
3381
|
+
},
|
3382
|
+
p(ctx, dirty) {
|
3383
|
+
if (/*closable*/ ctx[19]) {
|
3384
|
+
if (if_block) {
|
3385
|
+
if_block.p(ctx, dirty);
|
3386
|
+
|
3387
|
+
if (dirty & /*closable*/ 524288) {
|
3388
|
+
transition_in(if_block, 1);
|
3389
|
+
}
|
3390
|
+
} else {
|
3391
|
+
if_block = create_if_block_1$1(ctx);
|
3392
|
+
if_block.c();
|
3393
|
+
transition_in(if_block, 1);
|
3394
|
+
if_block.m(t.parentNode, t);
|
3395
|
+
}
|
3396
|
+
} else if (if_block) {
|
3397
|
+
group_outros();
|
3398
|
+
|
3399
|
+
transition_out(if_block, 1, 1, () => {
|
3400
|
+
if_block = null;
|
3401
|
+
});
|
3402
|
+
|
3403
|
+
check_outros();
|
3404
|
+
}
|
3405
|
+
|
3406
|
+
if (default_slot) {
|
3407
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 536870912)) {
|
3408
|
+
update_slot_base(
|
3409
|
+
default_slot,
|
3410
|
+
default_slot_template,
|
3411
|
+
ctx,
|
3412
|
+
/*$$scope*/ ctx[29],
|
3413
|
+
!current
|
3414
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[29])
|
3415
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[29], dirty, null),
|
3416
|
+
null
|
3417
|
+
);
|
3418
|
+
}
|
3419
|
+
}
|
3420
|
+
|
3421
|
+
if (!current || dirty & /*_style*/ 16) {
|
3422
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
3423
|
+
}
|
3424
|
+
},
|
3425
|
+
i(local) {
|
3426
|
+
if (current) return;
|
3427
|
+
transition_in(if_block);
|
3428
|
+
transition_in(default_slot, local);
|
3429
|
+
current = true;
|
3430
|
+
},
|
3431
|
+
o(local) {
|
3432
|
+
transition_out(if_block);
|
3433
|
+
transition_out(default_slot, local);
|
3434
|
+
current = false;
|
3435
|
+
},
|
3436
|
+
d(detaching) {
|
3437
|
+
if (if_block) if_block.d(detaching);
|
3438
|
+
if (detaching) detach(t);
|
3439
|
+
if (detaching) detach(div);
|
3440
|
+
if (default_slot) default_slot.d(detaching);
|
3441
|
+
}
|
3442
|
+
};
|
3443
|
+
}
|
3444
|
+
|
3445
|
+
function create_fragment$s(ctx) {
|
3446
|
+
let backgroundoverray;
|
3447
|
+
let t;
|
3448
|
+
let if_block_anchor;
|
3449
|
+
let current;
|
3450
|
+
let mounted;
|
3451
|
+
let dispose;
|
3452
|
+
|
3453
|
+
backgroundoverray = new BackgroundOverray({
|
3454
|
+
props: {
|
3455
|
+
backgroundOverray: /*backgroundOverray*/ ctx[11]
|
3456
|
+
}
|
3457
|
+
});
|
3458
|
+
|
3459
|
+
backgroundoverray.$on("click", function () {
|
3460
|
+
if (is_function(/*backgroundClick*/ ctx[18])) /*backgroundClick*/ ctx[18].apply(this, arguments);
|
3461
|
+
});
|
3462
|
+
|
3463
|
+
let if_block = /*visible*/ ctx[12] && create_if_block$5(ctx);
|
3464
|
+
|
3465
|
+
return {
|
3466
|
+
c() {
|
3467
|
+
create_component(backgroundoverray.$$.fragment);
|
3468
|
+
t = space();
|
3469
|
+
if (if_block) if_block.c();
|
3470
|
+
if_block_anchor = empty();
|
3471
|
+
},
|
3472
|
+
l(nodes) {
|
3473
|
+
claim_component(backgroundoverray.$$.fragment, nodes);
|
3474
|
+
t = claim_space(nodes);
|
3475
|
+
if (if_block) if_block.l(nodes);
|
3476
|
+
if_block_anchor = empty();
|
3477
|
+
},
|
3478
|
+
m(target, anchor) {
|
3479
|
+
mount_component(backgroundoverray, target, anchor);
|
3480
|
+
insert_hydration(target, t, anchor);
|
3481
|
+
if (if_block) if_block.m(target, anchor);
|
3482
|
+
insert_hydration(target, if_block_anchor, anchor);
|
3483
|
+
current = true;
|
3484
|
+
|
3485
|
+
if (!mounted) {
|
3486
|
+
dispose = listen(window, "keydown", function () {
|
3487
|
+
if (is_function(/*handle_keydown*/ ctx[13])) /*handle_keydown*/ ctx[13].apply(this, arguments);
|
3488
|
+
});
|
3489
|
+
|
3490
|
+
mounted = true;
|
3491
|
+
}
|
3492
|
+
},
|
3493
|
+
p(new_ctx, [dirty]) {
|
3494
|
+
ctx = new_ctx;
|
3495
|
+
const backgroundoverray_changes = {};
|
3496
|
+
if (dirty & /*backgroundOverray*/ 2048) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[11];
|
3497
|
+
backgroundoverray.$set(backgroundoverray_changes);
|
3498
|
+
|
3499
|
+
if (/*visible*/ ctx[12]) {
|
3500
|
+
if (if_block) {
|
3501
|
+
if_block.p(ctx, dirty);
|
3502
|
+
|
3503
|
+
if (dirty & /*visible*/ 4096) {
|
3504
|
+
transition_in(if_block, 1);
|
3505
|
+
}
|
3506
|
+
} else {
|
3507
|
+
if_block = create_if_block$5(ctx);
|
3508
|
+
if_block.c();
|
3509
|
+
transition_in(if_block, 1);
|
3510
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
3511
|
+
}
|
3512
|
+
} else if (if_block) {
|
3513
|
+
group_outros();
|
3514
|
+
|
3515
|
+
transition_out(if_block, 1, 1, () => {
|
3516
|
+
if_block = null;
|
3517
|
+
});
|
3518
|
+
|
3519
|
+
check_outros();
|
3520
|
+
}
|
3521
|
+
},
|
3522
|
+
i(local) {
|
3523
|
+
if (current) return;
|
3524
|
+
transition_in(backgroundoverray.$$.fragment, local);
|
3525
|
+
transition_in(if_block);
|
3526
|
+
current = true;
|
3527
|
+
},
|
3528
|
+
o(local) {
|
3529
|
+
transition_out(backgroundoverray.$$.fragment, local);
|
2962
3530
|
transition_out(if_block);
|
2963
3531
|
current = false;
|
2964
3532
|
},
|
@@ -2974,7 +3542,6 @@ function create_fragment$s(ctx) {
|
|
2974
3542
|
}
|
2975
3543
|
|
2976
3544
|
function instance$s($$self, $$props, $$invalidate) {
|
2977
|
-
let click;
|
2978
3545
|
let close;
|
2979
3546
|
let closable;
|
2980
3547
|
let backgroundClick;
|
@@ -2987,7 +3554,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
2987
3554
|
let handle_keydown;
|
2988
3555
|
let visible;
|
2989
3556
|
let $maximumZindex;
|
2990
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
3557
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(20, $maximumZindex = $$value));
|
2991
3558
|
let { $$slots: slots = {}, $$scope } = $$props;
|
2992
3559
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
2993
3560
|
let { clickEventName = '' } = $$props;
|
@@ -3006,47 +3573,37 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3006
3573
|
let modal;
|
3007
3574
|
|
3008
3575
|
onMount(() => {
|
3009
|
-
$$invalidate(
|
3576
|
+
$$invalidate(12, visible = true);
|
3010
3577
|
});
|
3011
3578
|
|
3012
3579
|
onDestroy$1(() => setPreviousFocus());
|
3013
3580
|
|
3014
|
-
function
|
3581
|
+
function div_binding($$value) {
|
3015
3582
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
3016
3583
|
modal = $$value;
|
3017
|
-
$$invalidate(
|
3584
|
+
$$invalidate(10, modal);
|
3018
3585
|
});
|
3019
3586
|
}
|
3020
3587
|
|
3021
3588
|
$$self.$$set = $$props => {
|
3022
|
-
if ('onClick' in $$props) $$invalidate(
|
3023
|
-
if ('clickEventName' in $$props) $$invalidate(
|
3024
|
-
if ('clickEventValue' in $$props) $$invalidate(
|
3025
|
-
if ('placement' in $$props) $$invalidate(
|
3026
|
-
if ('animation' in $$props) $$invalidate(
|
3027
|
-
if ('_style' in $$props) $$invalidate(
|
3028
|
-
if ('elasticity' in $$props) $$invalidate(
|
3029
|
-
if ('onClose' in $$props) $$invalidate(
|
3030
|
-
if ('closeEventName' in $$props) $$invalidate(
|
3031
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
3032
|
-
if ('closeButtonColor' in $$props) $$invalidate(
|
3033
|
-
if ('_closeStyle' in $$props) $$invalidate(
|
3034
|
-
if ('$$scope' in $$props) $$invalidate(
|
3589
|
+
if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
|
3590
|
+
if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
|
3591
|
+
if ('clickEventValue' in $$props) $$invalidate(2, clickEventValue = $$props.clickEventValue);
|
3592
|
+
if ('placement' in $$props) $$invalidate(21, placement = $$props.placement);
|
3593
|
+
if ('animation' in $$props) $$invalidate(3, animation = $$props.animation);
|
3594
|
+
if ('_style' in $$props) $$invalidate(4, _style = $$props._style);
|
3595
|
+
if ('elasticity' in $$props) $$invalidate(22, elasticity = $$props.elasticity);
|
3596
|
+
if ('onClose' in $$props) $$invalidate(5, onClose = $$props.onClose);
|
3597
|
+
if ('closeEventName' in $$props) $$invalidate(6, closeEventName = $$props.closeEventName);
|
3598
|
+
if ('closeEventValue' in $$props) $$invalidate(7, closeEventValue = $$props.closeEventValue);
|
3599
|
+
if ('closeButtonColor' in $$props) $$invalidate(8, closeButtonColor = $$props.closeButtonColor);
|
3600
|
+
if ('_closeStyle' in $$props) $$invalidate(9, _closeStyle = $$props._closeStyle);
|
3601
|
+
if ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);
|
3035
3602
|
};
|
3036
3603
|
|
3037
3604
|
$$self.$$.update = () => {
|
3038
|
-
if ($$self.$$.dirty & /*
|
3039
|
-
$$invalidate(
|
3040
|
-
if (clickEventName) {
|
3041
|
-
send_event(clickEventName, clickEventValue);
|
3042
|
-
}
|
3043
|
-
|
3044
|
-
execOnClickOperation(onClick);
|
3045
|
-
});
|
3046
|
-
}
|
3047
|
-
|
3048
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/ 29360128) {
|
3049
|
-
$$invalidate(5, close = () => {
|
3605
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/ 224) {
|
3606
|
+
$$invalidate(24, close = () => {
|
3050
3607
|
if (closeEventName) {
|
3051
3608
|
send_event(closeEventName, closeEventValue);
|
3052
3609
|
}
|
@@ -3055,28 +3612,28 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3055
3612
|
});
|
3056
3613
|
}
|
3057
3614
|
|
3058
|
-
if ($$self.$$.dirty & /*onClose*/
|
3059
|
-
$$invalidate(
|
3615
|
+
if ($$self.$$.dirty & /*onClose*/ 32) {
|
3616
|
+
$$invalidate(19, closable = haveFunction(onClose));
|
3060
3617
|
}
|
3061
3618
|
|
3062
|
-
if ($$self.$$.dirty & /*placement*/
|
3619
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3063
3620
|
{
|
3064
3621
|
{
|
3065
|
-
$$invalidate(
|
3622
|
+
$$invalidate(11, backgroundOverray = false);
|
3066
3623
|
}
|
3067
3624
|
}
|
3068
3625
|
}
|
3069
3626
|
|
3070
|
-
if ($$self.$$.dirty & /*placement*/
|
3627
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3071
3628
|
{
|
3072
3629
|
if (placement && placement.backgroundClick) {
|
3073
|
-
$$invalidate(
|
3630
|
+
$$invalidate(23, backgroundClickFunction = placement.backgroundClick);
|
3074
3631
|
}
|
3075
3632
|
}
|
3076
3633
|
}
|
3077
3634
|
|
3078
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
3079
|
-
$$invalidate(
|
3635
|
+
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 8388800) {
|
3636
|
+
$$invalidate(18, backgroundClick = () => {
|
3080
3637
|
if (closeEventName) {
|
3081
3638
|
send_event(closeEventName, closeEventValue);
|
3082
3639
|
}
|
@@ -3085,13 +3642,13 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3085
3642
|
});
|
3086
3643
|
}
|
3087
3644
|
|
3088
|
-
if ($$self.$$.dirty & /*placement*/
|
3089
|
-
$$invalidate(
|
3645
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3646
|
+
$$invalidate(26, overwritePosition = 'center'
|
3090
3647
|
);
|
3091
3648
|
}
|
3092
3649
|
|
3093
|
-
if ($$self.$$.dirty & /*placement*/
|
3094
|
-
$$invalidate(
|
3650
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3651
|
+
$$invalidate(25, overwriteMargin = {
|
3095
3652
|
left: '0px',
|
3096
3653
|
right: '0px',
|
3097
3654
|
top: '0px',
|
@@ -3100,39 +3657,44 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3100
3657
|
);
|
3101
3658
|
}
|
3102
3659
|
|
3103
|
-
if ($$self.$$.dirty & /*elasticity*/
|
3104
|
-
$$invalidate(
|
3660
|
+
if ($$self.$$.dirty & /*elasticity*/ 4194304) {
|
3661
|
+
$$invalidate(17, overwriteElasticity = 'none' );
|
3105
3662
|
}
|
3106
3663
|
|
3107
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3108
|
-
$$invalidate(
|
3664
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
3665
|
+
$$invalidate(16, pos = getPositionStyle(overwritePosition));
|
3109
3666
|
}
|
3110
3667
|
|
3111
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3112
|
-
$$invalidate(
|
3668
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
3669
|
+
$$invalidate(15, transform = getTransform(overwritePosition));
|
3113
3670
|
}
|
3114
3671
|
|
3115
|
-
if ($$self.$$.dirty & /*overwriteMargin*/
|
3116
|
-
$$invalidate(
|
3672
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 33554432) {
|
3673
|
+
$$invalidate(14, marginStyle = getMarginStyle(overwriteMargin));
|
3117
3674
|
}
|
3118
3675
|
|
3119
|
-
if ($$self.$$.dirty & /*close, modal*/
|
3120
|
-
$$invalidate(
|
3676
|
+
if ($$self.$$.dirty & /*close, modal*/ 16778240) {
|
3677
|
+
$$invalidate(13, handle_keydown = handleKeydown({ Escape: close, Tab: handleFocus(modal) }));
|
3121
3678
|
}
|
3122
3679
|
};
|
3123
3680
|
|
3124
|
-
$$invalidate(
|
3681
|
+
$$invalidate(10, modal = null);
|
3125
3682
|
|
3126
3683
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
3127
|
-
$$invalidate(
|
3684
|
+
$$invalidate(12, visible = false);
|
3128
3685
|
|
3129
3686
|
return [
|
3687
|
+
onClick,
|
3688
|
+
clickEventName,
|
3689
|
+
clickEventValue,
|
3130
3690
|
animation,
|
3131
3691
|
_style,
|
3692
|
+
onClose,
|
3693
|
+
closeEventName,
|
3694
|
+
closeEventValue,
|
3132
3695
|
closeButtonColor,
|
3133
3696
|
_closeStyle,
|
3134
3697
|
modal,
|
3135
|
-
close,
|
3136
3698
|
backgroundOverray,
|
3137
3699
|
visible,
|
3138
3700
|
handle_keydown,
|
@@ -3142,22 +3704,16 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3142
3704
|
overwriteElasticity,
|
3143
3705
|
backgroundClick,
|
3144
3706
|
closable,
|
3145
|
-
click,
|
3146
3707
|
$maximumZindex,
|
3147
|
-
onClick,
|
3148
|
-
clickEventName,
|
3149
|
-
clickEventValue,
|
3150
3708
|
placement,
|
3151
3709
|
elasticity,
|
3152
|
-
onClose,
|
3153
|
-
closeEventName,
|
3154
|
-
closeEventValue,
|
3155
3710
|
backgroundClickFunction,
|
3711
|
+
close,
|
3156
3712
|
overwriteMargin,
|
3157
3713
|
overwritePosition,
|
3158
|
-
$$scope,
|
3159
3714
|
slots,
|
3160
|
-
|
3715
|
+
div_binding,
|
3716
|
+
$$scope
|
3161
3717
|
];
|
3162
3718
|
}
|
3163
3719
|
|
@@ -3172,18 +3728,18 @@ class Modal extends SvelteComponent {
|
|
3172
3728
|
create_fragment$s,
|
3173
3729
|
safe_not_equal,
|
3174
3730
|
{
|
3175
|
-
onClick:
|
3176
|
-
clickEventName:
|
3177
|
-
clickEventValue:
|
3178
|
-
placement:
|
3179
|
-
animation:
|
3180
|
-
_style:
|
3181
|
-
elasticity:
|
3182
|
-
onClose:
|
3183
|
-
closeEventName:
|
3184
|
-
closeEventValue:
|
3185
|
-
closeButtonColor:
|
3186
|
-
_closeStyle:
|
3731
|
+
onClick: 0,
|
3732
|
+
clickEventName: 1,
|
3733
|
+
clickEventValue: 2,
|
3734
|
+
placement: 21,
|
3735
|
+
animation: 3,
|
3736
|
+
_style: 4,
|
3737
|
+
elasticity: 22,
|
3738
|
+
onClose: 5,
|
3739
|
+
closeEventName: 6,
|
3740
|
+
closeEventValue: 7,
|
3741
|
+
closeButtonColor: 8,
|
3742
|
+
_closeStyle: 9
|
3187
3743
|
},
|
3188
3744
|
add_css$p
|
3189
3745
|
);
|
@@ -3938,7 +4494,44 @@ class TextElement extends SvelteComponent {
|
|
3938
4494
|
/* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
|
3939
4495
|
|
3940
4496
|
function add_css$m(target) {
|
3941
|
-
append_styles(target, "svelte-
|
4497
|
+
append_styles(target, "svelte-wb7ek", ".text-button-element.svelte-wb7ek{width:100%;height:100%}.text-button-element.svelte-wb7ek > .button{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden}.text-button-element.svelte-wb7ek > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-wb7ek > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-wb7ek > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
|
4498
|
+
}
|
4499
|
+
|
4500
|
+
// (36:2) <Button onClick={onClick} {style} {eventName}>
|
4501
|
+
function create_default_slot$3(ctx) {
|
4502
|
+
let rendertext;
|
4503
|
+
let current;
|
4504
|
+
rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
|
4505
|
+
|
4506
|
+
return {
|
4507
|
+
c() {
|
4508
|
+
create_component(rendertext.$$.fragment);
|
4509
|
+
},
|
4510
|
+
l(nodes) {
|
4511
|
+
claim_component(rendertext.$$.fragment, nodes);
|
4512
|
+
},
|
4513
|
+
m(target, anchor) {
|
4514
|
+
mount_component(rendertext, target, anchor);
|
4515
|
+
current = true;
|
4516
|
+
},
|
4517
|
+
p(ctx, dirty) {
|
4518
|
+
const rendertext_changes = {};
|
4519
|
+
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
4520
|
+
rendertext.$set(rendertext_changes);
|
4521
|
+
},
|
4522
|
+
i(local) {
|
4523
|
+
if (current) return;
|
4524
|
+
transition_in(rendertext.$$.fragment, local);
|
4525
|
+
current = true;
|
4526
|
+
},
|
4527
|
+
o(local) {
|
4528
|
+
transition_out(rendertext.$$.fragment, local);
|
4529
|
+
current = false;
|
4530
|
+
},
|
4531
|
+
d(detaching) {
|
4532
|
+
destroy_component(rendertext, detaching);
|
4533
|
+
}
|
4534
|
+
};
|
3942
4535
|
}
|
3943
4536
|
|
3944
4537
|
function create_fragment$n(ctx) {
|
@@ -3947,160 +4540,102 @@ function create_fragment$n(ctx) {
|
|
3947
4540
|
let link_href_value;
|
3948
4541
|
let t;
|
3949
4542
|
let button;
|
3950
|
-
let rendertext;
|
3951
|
-
let button_class_value;
|
3952
|
-
let div_class_value;
|
3953
4543
|
let current;
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
4544
|
+
|
4545
|
+
button = new Button({
|
4546
|
+
props: {
|
4547
|
+
onClick: /*onClick*/ ctx[1],
|
4548
|
+
style: /*style*/ ctx[3],
|
4549
|
+
eventName: /*eventName*/ ctx[2],
|
4550
|
+
$$slots: { default: [create_default_slot$3] },
|
4551
|
+
$$scope: { ctx }
|
4552
|
+
}
|
4553
|
+
});
|
3957
4554
|
|
3958
4555
|
return {
|
3959
4556
|
c() {
|
3960
4557
|
div = element("div");
|
3961
4558
|
link = element("link");
|
3962
4559
|
t = space();
|
3963
|
-
|
3964
|
-
create_component(rendertext.$$.fragment);
|
4560
|
+
create_component(button.$$.fragment);
|
3965
4561
|
this.h();
|
3966
4562
|
},
|
3967
4563
|
l(nodes) {
|
3968
|
-
div = claim_element(nodes, "DIV", { class: true
|
4564
|
+
div = claim_element(nodes, "DIV", { class: true });
|
3969
4565
|
var div_nodes = children(div);
|
3970
4566
|
link = claim_element(div_nodes, "LINK", { href: true, rel: true });
|
3971
4567
|
t = claim_space(div_nodes);
|
3972
|
-
button
|
3973
|
-
var button_nodes = children(button);
|
3974
|
-
claim_component(rendertext.$$.fragment, button_nodes);
|
3975
|
-
button_nodes.forEach(detach);
|
4568
|
+
claim_component(button.$$.fragment, div_nodes);
|
3976
4569
|
div_nodes.forEach(detach);
|
3977
4570
|
this.h();
|
3978
4571
|
},
|
3979
4572
|
h() {
|
3980
4573
|
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
|
3981
4574
|
attr(link, "rel", "stylesheet");
|
3982
|
-
attr(
|
3983
|
-
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
3984
|
-
button.disabled = /*disabled*/ ctx[3];
|
3985
|
-
attr(div, "class", div_class_value = "" + (null_to_empty(`text-button-element${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"));
|
3986
|
-
attr(div, "style", /*_style*/ ctx[2]);
|
4575
|
+
attr(div, "class", "text-button-element svelte-wb7ek");
|
3987
4576
|
},
|
3988
4577
|
m(target, anchor) {
|
3989
|
-
insert_hydration(target, div, anchor);
|
3990
|
-
append_hydration(div, link);
|
3991
|
-
append_hydration(div, t);
|
3992
|
-
|
3993
|
-
|
3994
|
-
|
3995
|
-
|
3996
|
-
if (!
|
3997
|
-
|
3998
|
-
mounted = true;
|
3999
|
-
}
|
4000
|
-
},
|
4001
|
-
p(ctx, [dirty]) {
|
4002
|
-
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
4003
|
-
attr(link, "href", link_href_value);
|
4004
|
-
}
|
4005
|
-
|
4006
|
-
const rendertext_changes = {};
|
4007
|
-
if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
|
4008
|
-
rendertext.$set(rendertext_changes);
|
4009
|
-
|
4010
|
-
if (!current || dirty & /*disabled*/ 8 && button_class_value !== (button_class_value = "" + (null_to_empty(`text-button${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"))) {
|
4011
|
-
attr(button, "class", button_class_value);
|
4012
|
-
}
|
4013
|
-
|
4014
|
-
if (!current || dirty & /*_buttonStyle*/ 2) {
|
4015
|
-
attr(button, "style", /*_buttonStyle*/ ctx[1]);
|
4578
|
+
insert_hydration(target, div, anchor);
|
4579
|
+
append_hydration(div, link);
|
4580
|
+
append_hydration(div, t);
|
4581
|
+
mount_component(button, div, null);
|
4582
|
+
current = true;
|
4583
|
+
},
|
4584
|
+
p(ctx, [dirty]) {
|
4585
|
+
if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
|
4586
|
+
attr(link, "href", link_href_value);
|
4016
4587
|
}
|
4017
4588
|
|
4018
|
-
|
4019
|
-
|
4020
|
-
|
4589
|
+
const button_changes = {};
|
4590
|
+
if (dirty & /*onClick*/ 2) button_changes.onClick = /*onClick*/ ctx[1];
|
4591
|
+
if (dirty & /*style*/ 8) button_changes.style = /*style*/ ctx[3];
|
4592
|
+
if (dirty & /*eventName*/ 4) button_changes.eventName = /*eventName*/ ctx[2];
|
4021
4593
|
|
4022
|
-
if (
|
4023
|
-
|
4594
|
+
if (dirty & /*$$scope, text*/ 65) {
|
4595
|
+
button_changes.$$scope = { dirty, ctx };
|
4024
4596
|
}
|
4025
4597
|
|
4026
|
-
|
4027
|
-
attr(div, "style", /*_style*/ ctx[2]);
|
4028
|
-
}
|
4598
|
+
button.$set(button_changes);
|
4029
4599
|
},
|
4030
4600
|
i(local) {
|
4031
4601
|
if (current) return;
|
4032
|
-
transition_in(
|
4602
|
+
transition_in(button.$$.fragment, local);
|
4033
4603
|
current = true;
|
4034
4604
|
},
|
4035
4605
|
o(local) {
|
4036
|
-
transition_out(
|
4606
|
+
transition_out(button.$$.fragment, local);
|
4037
4607
|
current = false;
|
4038
4608
|
},
|
4039
4609
|
d(detaching) {
|
4040
4610
|
if (detaching) detach(div);
|
4041
|
-
destroy_component(
|
4042
|
-
mounted = false;
|
4043
|
-
dispose();
|
4611
|
+
destroy_component(button);
|
4044
4612
|
}
|
4045
4613
|
};
|
4046
4614
|
}
|
4047
4615
|
|
4048
4616
|
function instance$n($$self, $$props, $$invalidate) {
|
4049
|
-
let
|
4050
|
-
let $valuesAreValid;
|
4617
|
+
let style;
|
4051
4618
|
let { text = 'ボタンラベル' } = $$props;
|
4052
4619
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
4053
|
-
|
4054
|
-
const click = () => {
|
4055
|
-
if (eventName) {
|
4056
|
-
send_event(eventName);
|
4057
|
-
}
|
4058
|
-
|
4059
|
-
execOnClickOperation(onClick);
|
4060
|
-
};
|
4061
|
-
|
4062
4620
|
let { eventName = '' } = $$props;
|
4063
4621
|
let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px; line-height: 1.5;' } = $$props;
|
4064
4622
|
let { _style = 'background-color: #000000; border-radius:4px; cursor: pointer' } = $$props;
|
4065
|
-
const { path: statePath } = getStateItemContext() ?? { path: '/' };
|
4066
|
-
const valuesAreValid = getValuesAreValidReader(statePath);
|
4067
|
-
component_subscribe($$self, valuesAreValid, value => $$invalidate(8, $valuesAreValid = value));
|
4068
4623
|
|
4069
4624
|
$$self.$$set = $$props => {
|
4070
4625
|
if ('text' in $$props) $$invalidate(0, text = $$props.text);
|
4071
|
-
if ('onClick' in $$props) $$invalidate(
|
4072
|
-
if ('eventName' in $$props) $$invalidate(
|
4073
|
-
if ('_buttonStyle' in $$props) $$invalidate(
|
4074
|
-
if ('_style' in $$props) $$invalidate(
|
4626
|
+
if ('onClick' in $$props) $$invalidate(1, onClick = $$props.onClick);
|
4627
|
+
if ('eventName' in $$props) $$invalidate(2, eventName = $$props.eventName);
|
4628
|
+
if ('_buttonStyle' in $$props) $$invalidate(4, _buttonStyle = $$props._buttonStyle);
|
4629
|
+
if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
|
4075
4630
|
};
|
4076
4631
|
|
4077
4632
|
$$self.$$.update = () => {
|
4078
|
-
if ($$self.$$.dirty & /*
|
4079
|
-
$$invalidate(3,
|
4080
|
-
let isEnabled = true;
|
4081
|
-
|
4082
|
-
if (onClick.operation === 'submitForm') {
|
4083
|
-
isEnabled = $valuesAreValid;
|
4084
|
-
} else if (onClick.operation === 'moveTo') {
|
4085
|
-
isEnabled = $valuesAreValid;
|
4086
|
-
}
|
4087
|
-
|
4088
|
-
return !isEnabled;
|
4089
|
-
})());
|
4633
|
+
if ($$self.$$.dirty & /*_buttonStyle, _style*/ 48) {
|
4634
|
+
$$invalidate(3, style = [..._buttonStyle.split(';'), ..._style.split(';')].filter(Boolean).join(';'));
|
4090
4635
|
}
|
4091
4636
|
};
|
4092
4637
|
|
4093
|
-
return [
|
4094
|
-
text,
|
4095
|
-
_buttonStyle,
|
4096
|
-
_style,
|
4097
|
-
disabled,
|
4098
|
-
click,
|
4099
|
-
valuesAreValid,
|
4100
|
-
onClick,
|
4101
|
-
eventName,
|
4102
|
-
$valuesAreValid
|
4103
|
-
];
|
4638
|
+
return [text, onClick, eventName, style, _buttonStyle, _style];
|
4104
4639
|
}
|
4105
4640
|
|
4106
4641
|
class TextButtonElement extends SvelteComponent {
|
@@ -4115,10 +4650,10 @@ class TextButtonElement extends SvelteComponent {
|
|
4115
4650
|
safe_not_equal,
|
4116
4651
|
{
|
4117
4652
|
text: 0,
|
4118
|
-
onClick:
|
4119
|
-
eventName:
|
4120
|
-
_buttonStyle:
|
4121
|
-
_style:
|
4653
|
+
onClick: 1,
|
4654
|
+
eventName: 2,
|
4655
|
+
_buttonStyle: 4,
|
4656
|
+
_style: 5
|
4122
4657
|
},
|
4123
4658
|
add_css$m
|
4124
4659
|
);
|
@@ -4128,28 +4663,21 @@ class TextButtonElement extends SvelteComponent {
|
|
4128
4663
|
/* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
|
4129
4664
|
|
4130
4665
|
function add_css$l(target) {
|
4131
|
-
append_styles(target, "svelte-
|
4666
|
+
append_styles(target, "svelte-1kn2sk0", ".image-element.svelte-1kn2sk0{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-1kn2sk0 > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.image-element.svelte-1kn2sk0 > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-1kn2sk0 > .button:not(._disabled):hover,.image-element.transport.svelte-1kn2sk0 > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-1kn2sk0{width:100%;height:100%}");
|
4132
4667
|
}
|
4133
4668
|
|
4134
|
-
|
4135
|
-
|
4669
|
+
// (40:2) <Button {onClick} style={_style} {eventName}>
|
4670
|
+
function create_default_slot$2(ctx) {
|
4136
4671
|
let img;
|
4137
4672
|
let img_src_value;
|
4138
|
-
let div_class_value;
|
4139
|
-
let mounted;
|
4140
|
-
let dispose;
|
4141
4673
|
|
4142
4674
|
return {
|
4143
4675
|
c() {
|
4144
|
-
div = element("div");
|
4145
4676
|
img = element("img");
|
4146
4677
|
this.h();
|
4147
4678
|
},
|
4148
4679
|
l(nodes) {
|
4149
|
-
|
4150
|
-
var div_nodes = children(div);
|
4151
|
-
|
4152
|
-
img = claim_element(div_nodes, "IMG", {
|
4680
|
+
img = claim_element(nodes, "IMG", {
|
4153
4681
|
class: true,
|
4154
4682
|
loading: true,
|
4155
4683
|
width: true,
|
@@ -4159,32 +4687,23 @@ function create_fragment$m(ctx) {
|
|
4159
4687
|
alt: true
|
4160
4688
|
});
|
4161
4689
|
|
4162
|
-
div_nodes.forEach(detach);
|
4163
4690
|
this.h();
|
4164
4691
|
},
|
4165
4692
|
h() {
|
4166
|
-
attr(img, "class", "image svelte-
|
4693
|
+
attr(img, "class", "image svelte-1kn2sk0");
|
4167
4694
|
attr(img, "loading", "lazy");
|
4168
4695
|
attr(img, "width", "auto");
|
4169
4696
|
attr(img, "height", "auto");
|
4170
|
-
attr(img, "style", /*_imageStyle*/ ctx[
|
4697
|
+
attr(img, "style", /*_imageStyle*/ ctx[5]);
|
4171
4698
|
if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
|
4172
4699
|
attr(img, "alt", /*alt*/ ctx[1]);
|
4173
|
-
attr(div, "class", div_class_value = "" + (null_to_empty('image-element' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-t8kpqw"));
|
4174
|
-
attr(div, "style", /*_style*/ ctx[4]);
|
4175
4700
|
},
|
4176
4701
|
m(target, anchor) {
|
4177
|
-
insert_hydration(target,
|
4178
|
-
append_hydration(div, img);
|
4179
|
-
|
4180
|
-
if (!mounted) {
|
4181
|
-
dispose = listen(div, "click", /*click*/ ctx[5]);
|
4182
|
-
mounted = true;
|
4183
|
-
}
|
4702
|
+
insert_hydration(target, img, anchor);
|
4184
4703
|
},
|
4185
|
-
p(ctx,
|
4186
|
-
if (dirty & /*_imageStyle*/
|
4187
|
-
attr(img, "style", /*_imageStyle*/ ctx[
|
4704
|
+
p(ctx, dirty) {
|
4705
|
+
if (dirty & /*_imageStyle*/ 32) {
|
4706
|
+
attr(img, "style", /*_imageStyle*/ ctx[5]);
|
4188
4707
|
}
|
4189
4708
|
|
4190
4709
|
if (dirty & /*src*/ 1 && !src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) {
|
@@ -4194,21 +4713,78 @@ function create_fragment$m(ctx) {
|
|
4194
4713
|
if (dirty & /*alt*/ 2) {
|
4195
4714
|
attr(img, "alt", /*alt*/ ctx[1]);
|
4196
4715
|
}
|
4716
|
+
},
|
4717
|
+
d(detaching) {
|
4718
|
+
if (detaching) detach(img);
|
4719
|
+
}
|
4720
|
+
};
|
4721
|
+
}
|
4197
4722
|
|
4198
|
-
|
4199
|
-
|
4723
|
+
function create_fragment$m(ctx) {
|
4724
|
+
let div;
|
4725
|
+
let button;
|
4726
|
+
let div_class_value;
|
4727
|
+
let current;
|
4728
|
+
|
4729
|
+
button = new Button({
|
4730
|
+
props: {
|
4731
|
+
onClick: /*onClick*/ ctx[3],
|
4732
|
+
style: /*_style*/ ctx[6],
|
4733
|
+
eventName: /*eventName*/ ctx[4],
|
4734
|
+
$$slots: { default: [create_default_slot$2] },
|
4735
|
+
$$scope: { ctx }
|
4200
4736
|
}
|
4737
|
+
});
|
4201
4738
|
|
4202
|
-
|
4203
|
-
|
4739
|
+
return {
|
4740
|
+
c() {
|
4741
|
+
div = element("div");
|
4742
|
+
create_component(button.$$.fragment);
|
4743
|
+
this.h();
|
4744
|
+
},
|
4745
|
+
l(nodes) {
|
4746
|
+
div = claim_element(nodes, "DIV", { class: true });
|
4747
|
+
var div_nodes = children(div);
|
4748
|
+
claim_component(button.$$.fragment, div_nodes);
|
4749
|
+
div_nodes.forEach(detach);
|
4750
|
+
this.h();
|
4751
|
+
},
|
4752
|
+
h() {
|
4753
|
+
attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1kn2sk0");
|
4754
|
+
},
|
4755
|
+
m(target, anchor) {
|
4756
|
+
insert_hydration(target, div, anchor);
|
4757
|
+
mount_component(button, div, null);
|
4758
|
+
current = true;
|
4759
|
+
},
|
4760
|
+
p(ctx, [dirty]) {
|
4761
|
+
const button_changes = {};
|
4762
|
+
if (dirty & /*onClick*/ 8) button_changes.onClick = /*onClick*/ ctx[3];
|
4763
|
+
if (dirty & /*_style*/ 64) button_changes.style = /*_style*/ ctx[6];
|
4764
|
+
if (dirty & /*eventName*/ 16) button_changes.eventName = /*eventName*/ ctx[4];
|
4765
|
+
|
4766
|
+
if (dirty & /*$$scope, _imageStyle, src, alt*/ 163) {
|
4767
|
+
button_changes.$$scope = { dirty, ctx };
|
4768
|
+
}
|
4769
|
+
|
4770
|
+
button.$set(button_changes);
|
4771
|
+
|
4772
|
+
if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1kn2sk0")) {
|
4773
|
+
attr(div, "class", div_class_value);
|
4204
4774
|
}
|
4205
4775
|
},
|
4206
|
-
i
|
4207
|
-
|
4776
|
+
i(local) {
|
4777
|
+
if (current) return;
|
4778
|
+
transition_in(button.$$.fragment, local);
|
4779
|
+
current = true;
|
4780
|
+
},
|
4781
|
+
o(local) {
|
4782
|
+
transition_out(button.$$.fragment, local);
|
4783
|
+
current = false;
|
4784
|
+
},
|
4208
4785
|
d(detaching) {
|
4209
4786
|
if (detaching) detach(div);
|
4210
|
-
|
4211
|
-
dispose();
|
4787
|
+
destroy_component(button);
|
4212
4788
|
}
|
4213
4789
|
};
|
4214
4790
|
}
|
@@ -4218,15 +4794,6 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
4218
4794
|
let { alt = 'No Image' } = $$props;
|
4219
4795
|
let { transport = false } = $$props;
|
4220
4796
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
4221
|
-
|
4222
|
-
const click = () => {
|
4223
|
-
if (eventName) {
|
4224
|
-
send_event(eventName);
|
4225
|
-
}
|
4226
|
-
|
4227
|
-
execOnClickOperation(onClick);
|
4228
|
-
};
|
4229
|
-
|
4230
4797
|
let { eventName = '' } = $$props;
|
4231
4798
|
let { _imageStyle = 'object-fit: contain;' } = $$props;
|
4232
4799
|
let { _style = '' } = $$props;
|
@@ -4235,13 +4802,13 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
4235
4802
|
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
4236
4803
|
if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
|
4237
4804
|
if ('transport' in $$props) $$invalidate(2, transport = $$props.transport);
|
4238
|
-
if ('onClick' in $$props) $$invalidate(
|
4239
|
-
if ('eventName' in $$props) $$invalidate(
|
4240
|
-
if ('_imageStyle' in $$props) $$invalidate(
|
4241
|
-
if ('_style' in $$props) $$invalidate(
|
4805
|
+
if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
|
4806
|
+
if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
|
4807
|
+
if ('_imageStyle' in $$props) $$invalidate(5, _imageStyle = $$props._imageStyle);
|
4808
|
+
if ('_style' in $$props) $$invalidate(6, _style = $$props._style);
|
4242
4809
|
};
|
4243
4810
|
|
4244
|
-
return [src, alt, transport,
|
4811
|
+
return [src, alt, transport, onClick, eventName, _imageStyle, _style];
|
4245
4812
|
}
|
4246
4813
|
|
4247
4814
|
class ImageElement extends SvelteComponent {
|
@@ -4258,10 +4825,10 @@ class ImageElement extends SvelteComponent {
|
|
4258
4825
|
src: 0,
|
4259
4826
|
alt: 1,
|
4260
4827
|
transport: 2,
|
4261
|
-
onClick:
|
4262
|
-
eventName:
|
4263
|
-
_imageStyle:
|
4264
|
-
_style:
|
4828
|
+
onClick: 3,
|
4829
|
+
eventName: 4,
|
4830
|
+
_imageStyle: 5,
|
4831
|
+
_style: 6
|
4265
4832
|
},
|
4266
4833
|
add_css$l
|
4267
4834
|
);
|
@@ -4428,62 +4995,30 @@ class List extends SvelteComponent {
|
|
4428
4995
|
/* src/components/ListItem.svelte generated by Svelte v3.53.1 */
|
4429
4996
|
|
4430
4997
|
function add_css$j(target) {
|
4431
|
-
append_styles(target, "svelte-
|
4998
|
+
append_styles(target, "svelte-1ocqru1", ".list-item.svelte-1ocqru1{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-1ocqru1 > .button{position:absolute;inset:0}");
|
4432
4999
|
}
|
4433
5000
|
|
4434
|
-
|
4435
|
-
|
4436
|
-
let div0;
|
5001
|
+
// (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
|
5002
|
+
function create_default_slot$1(ctx) {
|
4437
5003
|
let current;
|
4438
|
-
|
4439
|
-
let dispose;
|
4440
|
-
const default_slot_template = /*#slots*/ ctx[7].default;
|
5004
|
+
const default_slot_template = /*#slots*/ ctx[5].default;
|
4441
5005
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
|
4442
5006
|
|
4443
5007
|
return {
|
4444
5008
|
c() {
|
4445
|
-
div1 = element("div");
|
4446
|
-
div0 = element("div");
|
4447
5009
|
if (default_slot) default_slot.c();
|
4448
|
-
this.h();
|
4449
5010
|
},
|
4450
5011
|
l(nodes) {
|
4451
|
-
|
4452
|
-
var div1_nodes = children(div1);
|
4453
|
-
div0 = claim_element(div1_nodes, "DIV", { class: true, style: true });
|
4454
|
-
var div0_nodes = children(div0);
|
4455
|
-
if (default_slot) default_slot.l(div0_nodes);
|
4456
|
-
div0_nodes.forEach(detach);
|
4457
|
-
div1_nodes.forEach(detach);
|
4458
|
-
this.h();
|
4459
|
-
},
|
4460
|
-
h() {
|
4461
|
-
attr(div0, "class", "list-item-inner svelte-h5j4xe");
|
4462
|
-
attr(div0, "style", /*_style*/ ctx[0]);
|
4463
|
-
attr(div1, "class", "list-item svelte-h5j4xe");
|
4464
|
-
attr(div1, "style", /*listItemStyle*/ ctx[1]);
|
5012
|
+
if (default_slot) default_slot.l(nodes);
|
4465
5013
|
},
|
4466
5014
|
m(target, anchor) {
|
4467
|
-
insert_hydration(target, div1, anchor);
|
4468
|
-
append_hydration(div1, div0);
|
4469
|
-
|
4470
5015
|
if (default_slot) {
|
4471
|
-
default_slot.m(
|
5016
|
+
default_slot.m(target, anchor);
|
4472
5017
|
}
|
4473
5018
|
|
4474
5019
|
current = true;
|
4475
|
-
|
4476
|
-
if (!mounted) {
|
4477
|
-
dispose = listen(div1, "click", function () {
|
4478
|
-
if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
|
4479
|
-
});
|
4480
|
-
|
4481
|
-
mounted = true;
|
4482
|
-
}
|
4483
5020
|
},
|
4484
|
-
p(
|
4485
|
-
ctx = new_ctx;
|
4486
|
-
|
5021
|
+
p(ctx, dirty) {
|
4487
5022
|
if (default_slot) {
|
4488
5023
|
if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
|
4489
5024
|
update_slot_base(
|
@@ -4498,35 +5033,92 @@ function create_fragment$k(ctx) {
|
|
4498
5033
|
);
|
4499
5034
|
}
|
4500
5035
|
}
|
5036
|
+
},
|
5037
|
+
i(local) {
|
5038
|
+
if (current) return;
|
5039
|
+
transition_in(default_slot, local);
|
5040
|
+
current = true;
|
5041
|
+
},
|
5042
|
+
o(local) {
|
5043
|
+
transition_out(default_slot, local);
|
5044
|
+
current = false;
|
5045
|
+
},
|
5046
|
+
d(detaching) {
|
5047
|
+
if (default_slot) default_slot.d(detaching);
|
5048
|
+
}
|
5049
|
+
};
|
5050
|
+
}
|
5051
|
+
|
5052
|
+
function create_fragment$k(ctx) {
|
5053
|
+
let div;
|
5054
|
+
let button;
|
5055
|
+
let current;
|
5056
|
+
|
5057
|
+
button = new Button({
|
5058
|
+
props: {
|
5059
|
+
onClick: /*onClick*/ ctx[0],
|
5060
|
+
style: /*_style*/ ctx[2],
|
5061
|
+
eventName: /*clickEventName*/ ctx[1],
|
5062
|
+
$$slots: { default: [create_default_slot$1] },
|
5063
|
+
$$scope: { ctx }
|
5064
|
+
}
|
5065
|
+
});
|
4501
5066
|
|
4502
|
-
|
4503
|
-
|
5067
|
+
return {
|
5068
|
+
c() {
|
5069
|
+
div = element("div");
|
5070
|
+
create_component(button.$$.fragment);
|
5071
|
+
this.h();
|
5072
|
+
},
|
5073
|
+
l(nodes) {
|
5074
|
+
div = claim_element(nodes, "DIV", { class: true, style: true });
|
5075
|
+
var div_nodes = children(div);
|
5076
|
+
claim_component(button.$$.fragment, div_nodes);
|
5077
|
+
div_nodes.forEach(detach);
|
5078
|
+
this.h();
|
5079
|
+
},
|
5080
|
+
h() {
|
5081
|
+
attr(div, "class", "list-item svelte-1ocqru1");
|
5082
|
+
attr(div, "style", /*listItemStyle*/ ctx[3]);
|
5083
|
+
},
|
5084
|
+
m(target, anchor) {
|
5085
|
+
insert_hydration(target, div, anchor);
|
5086
|
+
mount_component(button, div, null);
|
5087
|
+
current = true;
|
5088
|
+
},
|
5089
|
+
p(ctx, [dirty]) {
|
5090
|
+
const button_changes = {};
|
5091
|
+
if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
|
5092
|
+
if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
|
5093
|
+
if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
|
5094
|
+
|
5095
|
+
if (dirty & /*$$scope*/ 64) {
|
5096
|
+
button_changes.$$scope = { dirty, ctx };
|
4504
5097
|
}
|
4505
5098
|
|
4506
|
-
|
4507
|
-
|
5099
|
+
button.$set(button_changes);
|
5100
|
+
|
5101
|
+
if (!current || dirty & /*listItemStyle*/ 8) {
|
5102
|
+
attr(div, "style", /*listItemStyle*/ ctx[3]);
|
4508
5103
|
}
|
4509
5104
|
},
|
4510
5105
|
i(local) {
|
4511
5106
|
if (current) return;
|
4512
|
-
transition_in(
|
5107
|
+
transition_in(button.$$.fragment, local);
|
4513
5108
|
current = true;
|
4514
5109
|
},
|
4515
5110
|
o(local) {
|
4516
|
-
transition_out(
|
5111
|
+
transition_out(button.$$.fragment, local);
|
4517
5112
|
current = false;
|
4518
5113
|
},
|
4519
5114
|
d(detaching) {
|
4520
|
-
if (detaching) detach(
|
4521
|
-
|
4522
|
-
mounted = false;
|
4523
|
-
dispose();
|
5115
|
+
if (detaching) detach(div);
|
5116
|
+
destroy_component(button);
|
4524
5117
|
}
|
4525
5118
|
};
|
4526
5119
|
}
|
4527
5120
|
|
4528
5121
|
function instance$k($$self, $$props, $$invalidate) {
|
4529
|
-
let click;
|
4530
5122
|
let listItemStyle;
|
4531
5123
|
let { $$slots: slots = {}, $$scope } = $$props;
|
4532
5124
|
const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
|
@@ -4534,7 +5126,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
4534
5126
|
|
4535
5127
|
const id = registerItem({
|
4536
5128
|
onMount({ index: _index, length: _length }) {
|
4537
|
-
$$invalidate(
|
5129
|
+
$$invalidate(4, index = _index);
|
4538
5130
|
}
|
4539
5131
|
});
|
4540
5132
|
|
@@ -4547,25 +5139,15 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
4547
5139
|
});
|
4548
5140
|
|
4549
5141
|
$$self.$$set = $$props => {
|
4550
|
-
if ('onClick' in $$props) $$invalidate(
|
4551
|
-
if ('clickEventName' in $$props) $$invalidate(
|
4552
|
-
if ('_style' in $$props) $$invalidate(
|
5142
|
+
if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
|
5143
|
+
if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
|
5144
|
+
if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
|
4553
5145
|
if ('$$scope' in $$props) $$invalidate(6, $$scope = $$props.$$scope);
|
4554
5146
|
};
|
4555
5147
|
|
4556
5148
|
$$self.$$.update = () => {
|
4557
|
-
if ($$self.$$.dirty & /*
|
4558
|
-
$$invalidate(
|
4559
|
-
if (clickEventName) {
|
4560
|
-
send_event(clickEventName);
|
4561
|
-
}
|
4562
|
-
|
4563
|
-
execOnClickOperation(onClick);
|
4564
|
-
});
|
4565
|
-
}
|
4566
|
-
|
4567
|
-
if ($$self.$$.dirty & /*index*/ 32) {
|
4568
|
-
$$invalidate(1, listItemStyle = (() => {
|
5149
|
+
if ($$self.$$.dirty & /*index*/ 16) {
|
5150
|
+
$$invalidate(3, listItemStyle = (() => {
|
4569
5151
|
let separatorStyleArray = [];
|
4570
5152
|
|
4571
5153
|
if (separator.type === "border") {
|
@@ -4609,13 +5191,13 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
4609
5191
|
}
|
4610
5192
|
};
|
4611
5193
|
|
4612
|
-
return [
|
5194
|
+
return [onClick, clickEventName, _style, listItemStyle, index, slots, $$scope];
|
4613
5195
|
}
|
4614
5196
|
|
4615
5197
|
class ListItem extends SvelteComponent {
|
4616
5198
|
constructor(options) {
|
4617
5199
|
super();
|
4618
|
-
init(this, options, instance$k, create_fragment$k, safe_not_equal, { onClick:
|
5200
|
+
init(this, options, instance$k, create_fragment$k, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$j);
|
4619
5201
|
}
|
4620
5202
|
}
|
4621
5203
|
|