@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/index.es.js CHANGED
@@ -2,7 +2,7 @@ import { linear, elasticOut, cubicOut } from '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, mount_component, insert, 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, attr, noop, listen, is_function, append, add_render_callback, create_in_transition, svg_element, binding_callbacks, destroy_each, text, set_data, null_to_empty, src_url_equal, HtmlTag } from 'svelte/internal';
5
+ import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, 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, attr, noop, listen, null_to_empty, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, HtmlTag } from 'svelte/internal';
6
6
 
7
7
  /** @internal */
8
8
  const PropTypes = [
@@ -2380,20 +2380,20 @@ var widget = /*#__PURE__*/Object.freeze({
2380
2380
 
2381
2381
  /* src/components/Normalize.svelte generated by Svelte v3.53.1 */
2382
2382
 
2383
- function add_css$s(target) {
2383
+ function add_css$t(target) {
2384
2384
  append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
2385
2385
  }
2386
2386
 
2387
2387
  class Normalize extends SvelteComponent {
2388
2388
  constructor(options) {
2389
2389
  super();
2390
- init(this, options, null, null, safe_not_equal, {}, add_css$s);
2390
+ init(this, options, null, null, safe_not_equal, {}, add_css$t);
2391
2391
  }
2392
2392
  }
2393
2393
 
2394
2394
  /* src/components/State.svelte generated by Svelte v3.53.1 */
2395
2395
 
2396
- function create_fragment$v(ctx) {
2396
+ function create_fragment$w(ctx) {
2397
2397
  let normalize;
2398
2398
  let t;
2399
2399
  let current;
@@ -2452,7 +2452,7 @@ function create_fragment$v(ctx) {
2452
2452
  };
2453
2453
  }
2454
2454
 
2455
- function instance$v($$self, $$props, $$invalidate) {
2455
+ function instance$w($$self, $$props, $$invalidate) {
2456
2456
  let { $$slots: slots = {}, $$scope } = $$props;
2457
2457
 
2458
2458
  $$self.$$set = $$props => {
@@ -2465,18 +2465,18 @@ function instance$v($$self, $$props, $$invalidate) {
2465
2465
  class State extends SvelteComponent {
2466
2466
  constructor(options) {
2467
2467
  super();
2468
- init(this, options, instance$v, create_fragment$v, safe_not_equal, {});
2468
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, {});
2469
2469
  }
2470
2470
  }
2471
2471
 
2472
2472
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
2473
2473
 
2474
- function add_css$r(target) {
2474
+ function add_css$s(target) {
2475
2475
  append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
2476
2476
  }
2477
2477
 
2478
2478
  // (23:0) {#if $state === path}
2479
- function create_if_block$7(ctx) {
2479
+ function create_if_block$8(ctx) {
2480
2480
  let div;
2481
2481
  let t;
2482
2482
  let current;
@@ -2538,10 +2538,10 @@ function create_if_block$7(ctx) {
2538
2538
  };
2539
2539
  }
2540
2540
 
2541
- function create_fragment$u(ctx) {
2541
+ function create_fragment$v(ctx) {
2542
2542
  let if_block_anchor;
2543
2543
  let current;
2544
- let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$7(ctx);
2544
+ let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
2545
2545
 
2546
2546
  return {
2547
2547
  c() {
@@ -2562,7 +2562,7 @@ function create_fragment$u(ctx) {
2562
2562
  transition_in(if_block, 1);
2563
2563
  }
2564
2564
  } else {
2565
- if_block = create_if_block$7(ctx);
2565
+ if_block = create_if_block$8(ctx);
2566
2566
  if_block.c();
2567
2567
  transition_in(if_block, 1);
2568
2568
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2599,7 +2599,7 @@ function getStateItemContext() {
2599
2599
  return getContext(STATE_ITEM_CONTEXT_KEY);
2600
2600
  }
2601
2601
 
2602
- function instance$u($$self, $$props, $$invalidate) {
2602
+ function instance$v($$self, $$props, $$invalidate) {
2603
2603
  let $state;
2604
2604
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
2605
2605
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -2625,18 +2625,18 @@ function instance$u($$self, $$props, $$invalidate) {
2625
2625
  class StateItem extends SvelteComponent {
2626
2626
  constructor(options) {
2627
2627
  super();
2628
- init(this, options, instance$u, create_fragment$u, safe_not_equal, { path: 0 }, add_css$r);
2628
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, { path: 0 }, add_css$s);
2629
2629
  }
2630
2630
  }
2631
2631
 
2632
2632
  /* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
2633
2633
 
2634
- function add_css$q(target) {
2634
+ function add_css$r(target) {
2635
2635
  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}");
2636
2636
  }
2637
2637
 
2638
2638
  // (9:0) {#if backgroundOverray}
2639
- function create_if_block$6(ctx) {
2639
+ function create_if_block$7(ctx) {
2640
2640
  let div;
2641
2641
  let mounted;
2642
2642
  let dispose;
@@ -2663,9 +2663,9 @@ function create_if_block$6(ctx) {
2663
2663
  };
2664
2664
  }
2665
2665
 
2666
- function create_fragment$t(ctx) {
2666
+ function create_fragment$u(ctx) {
2667
2667
  let if_block_anchor;
2668
- let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$6(ctx);
2668
+ let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$7(ctx);
2669
2669
 
2670
2670
  return {
2671
2671
  c() {
@@ -2681,7 +2681,7 @@ function create_fragment$t(ctx) {
2681
2681
  if (if_block) {
2682
2682
  if_block.p(ctx, dirty);
2683
2683
  } else {
2684
- if_block = create_if_block$6(ctx);
2684
+ if_block = create_if_block$7(ctx);
2685
2685
  if_block.c();
2686
2686
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
2687
2687
  }
@@ -2699,7 +2699,7 @@ function create_fragment$t(ctx) {
2699
2699
  };
2700
2700
  }
2701
2701
 
2702
- function instance$t($$self, $$props, $$invalidate) {
2702
+ function instance$u($$self, $$props, $$invalidate) {
2703
2703
  let { backgroundOverray = false } = $$props;
2704
2704
  const dispatch = createEventDispatcher();
2705
2705
  const click_handler = () => dispatch('click');
@@ -2714,119 +2714,69 @@ function instance$t($$self, $$props, $$invalidate) {
2714
2714
  class BackgroundOverray extends SvelteComponent {
2715
2715
  constructor(options) {
2716
2716
  super();
2717
- init(this, options, instance$t, create_fragment$t, safe_not_equal, { backgroundOverray: 0 }, add_css$q);
2717
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, { backgroundOverray: 0 }, add_css$r);
2718
2718
  }
2719
2719
  }
2720
2720
 
2721
- /* src/components/Modal.svelte generated by Svelte v3.53.1 */
2721
+ /* src/components/Button.svelte generated by Svelte v3.53.1 */
2722
2722
 
2723
- function add_css$p(target) {
2724
- append_styles(target, "svelte-12dkw0q", ".modal.svelte-12dkw0q{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-12dkw0q{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-12dkw0q:hover{transform:rotate(90deg)}.modal-content.svelte-12dkw0q{display:flex;justify-content:center;align-items:center}");
2723
+ function add_css$q(target) {
2724
+ 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}");
2725
2725
  }
2726
2726
 
2727
- // (149:0) {#if visible}
2728
- function create_if_block$5(ctx) {
2729
- let div1;
2730
- let t;
2731
- let div0;
2732
- let div1_style_value;
2733
- let div1_intro;
2727
+ // (41:0) {:else}
2728
+ function create_else_block$2(ctx) {
2729
+ let button;
2734
2730
  let current;
2735
2731
  let mounted;
2736
2732
  let dispose;
2737
- let if_block = /*closable*/ ctx[14] && create_if_block_1$1(ctx);
2738
- const default_slot_template = /*#slots*/ ctx[29].default;
2739
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
2733
+ const default_slot_template = /*#slots*/ ctx[9].default;
2734
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
2740
2735
 
2741
2736
  return {
2742
2737
  c() {
2743
- div1 = element("div");
2744
- if (if_block) if_block.c();
2745
- t = space();
2746
- div0 = element("div");
2738
+ button = element("button");
2747
2739
  if (default_slot) default_slot.c();
2748
- attr(div0, "class", "modal-content svelte-12dkw0q");
2749
- attr(div0, "style", /*_style*/ ctx[1]);
2750
- attr(div1, "class", "modal svelte-12dkw0q");
2751
- attr(div1, "role", "dialog");
2752
- attr(div1, "aria-modal", "true");
2753
- attr(div1, "style", div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "");
2740
+ attr(button, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
2741
+ attr(button, "style", /*style*/ ctx[1]);
2754
2742
  },
2755
2743
  m(target, anchor) {
2756
- insert(target, div1, anchor);
2757
- if (if_block) if_block.m(div1, null);
2758
- append(div1, t);
2759
- append(div1, div0);
2744
+ insert(target, button, anchor);
2760
2745
 
2761
2746
  if (default_slot) {
2762
- default_slot.m(div0, null);
2747
+ default_slot.m(button, null);
2763
2748
  }
2764
2749
 
2765
- /*div1_binding*/ ctx[30](div1);
2766
2750
  current = true;
2767
2751
 
2768
2752
  if (!mounted) {
2769
- dispose = listen(div1, "click", function () {
2770
- if (is_function(/*click*/ ctx[15])) /*click*/ ctx[15].apply(this, arguments);
2771
- });
2772
-
2753
+ dispose = listen(button, "click", /*handleClickButton*/ ctx[3]);
2773
2754
  mounted = true;
2774
2755
  }
2775
2756
  },
2776
- p(new_ctx, dirty) {
2777
- ctx = new_ctx;
2778
-
2779
- if (/*closable*/ ctx[14]) {
2780
- if (if_block) {
2781
- if_block.p(ctx, dirty);
2782
- } else {
2783
- if_block = create_if_block_1$1(ctx);
2784
- if_block.c();
2785
- if_block.m(div1, t);
2786
- }
2787
- } else if (if_block) {
2788
- if_block.d(1);
2789
- if_block = null;
2790
- }
2791
-
2757
+ p(ctx, dirty) {
2792
2758
  if (default_slot) {
2793
- if (default_slot.p && (!current || dirty & /*$$scope*/ 268435456)) {
2759
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
2794
2760
  update_slot_base(
2795
2761
  default_slot,
2796
2762
  default_slot_template,
2797
2763
  ctx,
2798
- /*$$scope*/ ctx[28],
2764
+ /*$$scope*/ ctx[8],
2799
2765
  !current
2800
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[28])
2801
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[28], dirty, null),
2766
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
2767
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
2802
2768
  null
2803
2769
  );
2804
2770
  }
2805
2771
  }
2806
2772
 
2807
- if (!current || dirty & /*_style*/ 2) {
2808
- attr(div0, "style", /*_style*/ ctx[1]);
2809
- }
2810
-
2811
- if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 6656 && div1_style_value !== (div1_style_value = "" + /*pos*/ ctx[11] + " " + /*marginStyle*/ ctx[9] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[12]] + "")) {
2812
- attr(div1, "style", div1_style_value);
2773
+ if (!current || dirty & /*style*/ 2) {
2774
+ attr(button, "style", /*style*/ ctx[1]);
2813
2775
  }
2814
2776
  },
2815
2777
  i(local) {
2816
2778
  if (current) return;
2817
2779
  transition_in(default_slot, local);
2818
-
2819
- if (!div1_intro) {
2820
- add_render_callback(() => {
2821
- div1_intro = create_in_transition(div1, customAnimation, {
2822
- transform: /*transform*/ ctx[10],
2823
- animationStyle: /*animation*/ ctx[0]
2824
- });
2825
-
2826
- div1_intro.start();
2827
- });
2828
- }
2829
-
2830
2780
  current = true;
2831
2781
  },
2832
2782
  o(local) {
@@ -2834,240 +2784,784 @@ function create_if_block$5(ctx) {
2834
2784
  current = false;
2835
2785
  },
2836
2786
  d(detaching) {
2837
- if (detaching) detach(div1);
2838
- if (if_block) if_block.d();
2787
+ if (detaching) detach(button);
2839
2788
  if (default_slot) default_slot.d(detaching);
2840
- /*div1_binding*/ ctx[30](null);
2841
2789
  mounted = false;
2842
2790
  dispose();
2843
2791
  }
2844
2792
  };
2845
2793
  }
2846
2794
 
2847
- // (166:4) {#if closable}
2848
- function create_if_block_1$1(ctx) {
2849
- let button;
2850
- let svg;
2851
- let path;
2852
- let button_style_value;
2853
- let mounted;
2854
- let dispose;
2795
+ // (37:39)
2796
+ function create_if_block_2(ctx) {
2797
+ let div;
2798
+ let current;
2799
+ const default_slot_template = /*#slots*/ ctx[9].default;
2800
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
2855
2801
 
2856
2802
  return {
2857
2803
  c() {
2858
- button = element("button");
2859
- svg = svg_element("svg");
2860
- path = svg_element("path");
2861
- 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");
2862
- attr(path, "fill", /*closeButtonColor*/ ctx[2]);
2863
- attr(path, "fill-opacity", "0.8");
2864
- attr(svg, "width", "100%");
2865
- attr(svg, "height", "100%");
2866
- attr(svg, "viewBox", "0 0 9 10");
2867
- attr(svg, "fill", "none");
2868
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
2869
- attr(button, "class", "close svelte-12dkw0q");
2870
- attr(button, "style", button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[16] + 1) + "; " + /*_closeStyle*/ ctx[3] + "");
2804
+ div = element("div");
2805
+ if (default_slot) default_slot.c();
2806
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
2807
+ attr(div, "style", /*style*/ ctx[1]);
2871
2808
  },
2872
2809
  m(target, anchor) {
2873
- insert(target, button, anchor);
2874
- append(button, svg);
2875
- append(svg, path);
2876
-
2877
- if (!mounted) {
2878
- dispose = listen(button, "click", function () {
2879
- if (is_function(/*close*/ ctx[5])) /*close*/ ctx[5].apply(this, arguments);
2880
- });
2810
+ insert(target, div, anchor);
2881
2811
 
2882
- mounted = true;
2812
+ if (default_slot) {
2813
+ default_slot.m(div, null);
2883
2814
  }
2884
- },
2885
- p(new_ctx, dirty) {
2886
- ctx = new_ctx;
2887
2815
 
2888
- if (dirty & /*closeButtonColor*/ 4) {
2889
- attr(path, "fill", /*closeButtonColor*/ ctx[2]);
2816
+ current = true;
2817
+ },
2818
+ p(ctx, dirty) {
2819
+ if (default_slot) {
2820
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
2821
+ update_slot_base(
2822
+ default_slot,
2823
+ default_slot_template,
2824
+ ctx,
2825
+ /*$$scope*/ ctx[8],
2826
+ !current
2827
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
2828
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
2829
+ null
2830
+ );
2831
+ }
2890
2832
  }
2891
2833
 
2892
- if (dirty & /*$maximumZindex, _closeStyle*/ 65544 && button_style_value !== (button_style_value = "z-index:" + (/*$maximumZindex*/ ctx[16] + 1) + "; " + /*_closeStyle*/ ctx[3] + "")) {
2893
- attr(button, "style", button_style_value);
2834
+ if (!current || dirty & /*style*/ 2) {
2835
+ attr(div, "style", /*style*/ ctx[1]);
2894
2836
  }
2895
2837
  },
2838
+ i(local) {
2839
+ if (current) return;
2840
+ transition_in(default_slot, local);
2841
+ current = true;
2842
+ },
2843
+ o(local) {
2844
+ transition_out(default_slot, local);
2845
+ current = false;
2846
+ },
2896
2847
  d(detaching) {
2897
- if (detaching) detach(button);
2898
- mounted = false;
2899
- dispose();
2848
+ if (detaching) detach(div);
2849
+ if (default_slot) default_slot.d(detaching);
2900
2850
  }
2901
2851
  };
2902
2852
  }
2903
2853
 
2904
- function create_fragment$s(ctx) {
2905
- let backgroundoverray;
2906
- let t;
2907
- let if_block_anchor;
2854
+ // (33:41)
2855
+ function create_if_block_1$2(ctx) {
2856
+ let a;
2857
+ let a_href_value;
2858
+ let a_target_value;
2908
2859
  let current;
2909
- let mounted;
2910
- let dispose;
2911
-
2912
- backgroundoverray = new BackgroundOverray({
2913
- props: {
2914
- backgroundOverray: /*backgroundOverray*/ ctx[6]
2915
- }
2916
- });
2917
-
2918
- backgroundoverray.$on("click", function () {
2919
- if (is_function(/*backgroundClick*/ ctx[13])) /*backgroundClick*/ ctx[13].apply(this, arguments);
2920
- });
2921
-
2922
- let if_block = /*visible*/ ctx[7] && create_if_block$5(ctx);
2860
+ const default_slot_template = /*#slots*/ ctx[9].default;
2861
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
2923
2862
 
2924
2863
  return {
2925
2864
  c() {
2926
- create_component(backgroundoverray.$$.fragment);
2927
- t = space();
2928
- if (if_block) if_block.c();
2929
- if_block_anchor = empty();
2865
+ a = element("a");
2866
+ if (default_slot) default_slot.c();
2867
+ attr(a, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
2868
+ attr(a, "style", /*style*/ ctx[1]);
2869
+ attr(a, "href", a_href_value = /*onClick*/ ctx[0].args[0]);
2870
+ attr(a, "target", a_target_value = /*onClick*/ ctx[0].args[1] === true ? '_blank' : null);
2930
2871
  },
2931
2872
  m(target, anchor) {
2932
- mount_component(backgroundoverray, target, anchor);
2933
- insert(target, t, anchor);
2934
- if (if_block) if_block.m(target, anchor);
2935
- insert(target, if_block_anchor, anchor);
2936
- current = true;
2937
-
2938
- if (!mounted) {
2939
- dispose = listen(window, "keydown", function () {
2940
- if (is_function(/*handle_keydown*/ ctx[8])) /*handle_keydown*/ ctx[8].apply(this, arguments);
2941
- });
2873
+ insert(target, a, anchor);
2942
2874
 
2943
- mounted = true;
2875
+ if (default_slot) {
2876
+ default_slot.m(a, null);
2944
2877
  }
2945
- },
2946
- p(new_ctx, [dirty]) {
2947
- ctx = new_ctx;
2948
- const backgroundoverray_changes = {};
2949
- if (dirty & /*backgroundOverray*/ 64) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[6];
2950
- backgroundoverray.$set(backgroundoverray_changes);
2951
-
2952
- if (/*visible*/ ctx[7]) {
2953
- if (if_block) {
2954
- if_block.p(ctx, dirty);
2955
2878
 
2956
- if (dirty & /*visible*/ 128) {
2957
- transition_in(if_block, 1);
2958
- }
2959
- } else {
2960
- if_block = create_if_block$5(ctx);
2961
- if_block.c();
2962
- transition_in(if_block, 1);
2963
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
2879
+ current = true;
2880
+ },
2881
+ p(ctx, dirty) {
2882
+ if (default_slot) {
2883
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
2884
+ update_slot_base(
2885
+ default_slot,
2886
+ default_slot_template,
2887
+ ctx,
2888
+ /*$$scope*/ ctx[8],
2889
+ !current
2890
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
2891
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
2892
+ null
2893
+ );
2964
2894
  }
2965
- } else if (if_block) {
2966
- group_outros();
2895
+ }
2967
2896
 
2968
- transition_out(if_block, 1, 1, () => {
2969
- if_block = null;
2970
- });
2897
+ if (!current || dirty & /*style*/ 2) {
2898
+ attr(a, "style", /*style*/ ctx[1]);
2899
+ }
2971
2900
 
2972
- check_outros();
2901
+ if (!current || dirty & /*onClick*/ 1 && a_href_value !== (a_href_value = /*onClick*/ ctx[0].args[0])) {
2902
+ attr(a, "href", a_href_value);
2903
+ }
2904
+
2905
+ if (!current || dirty & /*onClick*/ 1 && a_target_value !== (a_target_value = /*onClick*/ ctx[0].args[1] === true ? '_blank' : null)) {
2906
+ attr(a, "target", a_target_value);
2973
2907
  }
2974
2908
  },
2975
2909
  i(local) {
2976
2910
  if (current) return;
2977
- transition_in(backgroundoverray.$$.fragment, local);
2978
- transition_in(if_block);
2911
+ transition_in(default_slot, local);
2979
2912
  current = true;
2980
2913
  },
2981
2914
  o(local) {
2982
- transition_out(backgroundoverray.$$.fragment, local);
2983
- transition_out(if_block);
2915
+ transition_out(default_slot, local);
2984
2916
  current = false;
2985
2917
  },
2986
2918
  d(detaching) {
2987
- destroy_component(backgroundoverray, detaching);
2988
- if (detaching) detach(t);
2989
- if (if_block) if_block.d(detaching);
2990
- if (detaching) detach(if_block_anchor);
2991
- mounted = false;
2992
- dispose();
2919
+ if (detaching) detach(a);
2920
+ if (default_slot) default_slot.d(detaching);
2993
2921
  }
2994
2922
  };
2995
2923
  }
2996
2924
 
2997
- function instance$s($$self, $$props, $$invalidate) {
2998
- let click;
2999
- let close;
3000
- let closable;
3001
- let backgroundClick;
3002
- let overwritePosition;
3003
- let overwriteMargin;
3004
- let overwriteElasticity;
3005
- let pos;
3006
- let transform;
3007
- let marginStyle;
3008
- let handle_keydown;
3009
- let visible;
3010
- let $maximumZindex;
3011
- component_subscribe($$self, maximumZindex, $$value => $$invalidate(16, $maximumZindex = $$value));
3012
- let { $$slots: slots = {}, $$scope } = $$props;
3013
- let { onClick = { operation: 'none', args: [] } } = $$props;
3014
- let { clickEventName = '' } = $$props;
3015
- let { clickEventValue = null } = $$props;
3016
- let { placement = DefaultModalPlacement } = $$props;
3017
- let { animation = 'none' } = $$props;
3018
- let { _style = '' } = $$props;
3019
- let { elasticity = 'none' } = $$props;
3020
- let { onClose = { operation: 'closeApp', args: ['button'] } } = $$props;
3021
- let { closeEventName = '' } = $$props;
3022
- let { closeEventValue = null } = $$props;
3023
- let { closeButtonColor = '#000000' } = $$props;
3024
- let { _closeStyle = '' } = $$props;
3025
- let backgroundOverray = DefaultModalPlacement.backgroundOverlay;
3026
- let backgroundClickFunction = DefaultModalPlacement.backgroundClick;
3027
- let modal;
3028
-
3029
- onMount(() => {
3030
- $$invalidate(7, visible = true);
3031
- });
3032
-
2925
+ // (29:0) {#if disabled}
2926
+ function create_if_block$6(ctx) {
2927
+ let div;
2928
+ let current;
2929
+ const default_slot_template = /*#slots*/ ctx[9].default;
2930
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
2931
+
2932
+ return {
2933
+ c() {
2934
+ div = element("div");
2935
+ if (default_slot) default_slot.c();
2936
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kj05ao"));
2937
+ attr(div, "style", /*style*/ ctx[1]);
2938
+ },
2939
+ m(target, anchor) {
2940
+ insert(target, div, anchor);
2941
+
2942
+ if (default_slot) {
2943
+ default_slot.m(div, null);
2944
+ }
2945
+
2946
+ current = true;
2947
+ },
2948
+ p(ctx, dirty) {
2949
+ if (default_slot) {
2950
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
2951
+ update_slot_base(
2952
+ default_slot,
2953
+ default_slot_template,
2954
+ ctx,
2955
+ /*$$scope*/ ctx[8],
2956
+ !current
2957
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
2958
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
2959
+ null
2960
+ );
2961
+ }
2962
+ }
2963
+
2964
+ if (!current || dirty & /*style*/ 2) {
2965
+ attr(div, "style", /*style*/ ctx[1]);
2966
+ }
2967
+ },
2968
+ i(local) {
2969
+ if (current) return;
2970
+ transition_in(default_slot, local);
2971
+ current = true;
2972
+ },
2973
+ o(local) {
2974
+ transition_out(default_slot, local);
2975
+ current = false;
2976
+ },
2977
+ d(detaching) {
2978
+ if (detaching) detach(div);
2979
+ if (default_slot) default_slot.d(detaching);
2980
+ }
2981
+ };
2982
+ }
2983
+
2984
+ function create_fragment$t(ctx) {
2985
+ let current_block_type_index;
2986
+ let if_block;
2987
+ let if_block_anchor;
2988
+ let current;
2989
+ const if_block_creators = [create_if_block$6, create_if_block_1$2, create_if_block_2, create_else_block$2];
2990
+ const if_blocks = [];
2991
+
2992
+ function select_block_type(ctx, dirty) {
2993
+ if (/*disabled*/ ctx[2]) return 0;
2994
+ if (/*onClick*/ ctx[0].operation === 'linkTo') return 1;
2995
+ if (/*onClick*/ ctx[0].operation === 'none') return 2;
2996
+ return 3;
2997
+ }
2998
+
2999
+ current_block_type_index = select_block_type(ctx);
3000
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
3001
+
3002
+ return {
3003
+ c() {
3004
+ if_block.c();
3005
+ if_block_anchor = empty();
3006
+ },
3007
+ m(target, anchor) {
3008
+ if_blocks[current_block_type_index].m(target, anchor);
3009
+ insert(target, if_block_anchor, anchor);
3010
+ current = true;
3011
+ },
3012
+ p(ctx, [dirty]) {
3013
+ let previous_block_index = current_block_type_index;
3014
+ current_block_type_index = select_block_type(ctx);
3015
+
3016
+ if (current_block_type_index === previous_block_index) {
3017
+ if_blocks[current_block_type_index].p(ctx, dirty);
3018
+ } else {
3019
+ group_outros();
3020
+
3021
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
3022
+ if_blocks[previous_block_index] = null;
3023
+ });
3024
+
3025
+ check_outros();
3026
+ if_block = if_blocks[current_block_type_index];
3027
+
3028
+ if (!if_block) {
3029
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
3030
+ if_block.c();
3031
+ } else {
3032
+ if_block.p(ctx, dirty);
3033
+ }
3034
+
3035
+ transition_in(if_block, 1);
3036
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
3037
+ }
3038
+ },
3039
+ i(local) {
3040
+ if (current) return;
3041
+ transition_in(if_block);
3042
+ current = true;
3043
+ },
3044
+ o(local) {
3045
+ transition_out(if_block);
3046
+ current = false;
3047
+ },
3048
+ d(detaching) {
3049
+ if_blocks[current_block_type_index].d(detaching);
3050
+ if (detaching) detach(if_block_anchor);
3051
+ }
3052
+ };
3053
+ }
3054
+
3055
+ const BUTTON_CLASS = 'button';
3056
+
3057
+ function instance$t($$self, $$props, $$invalidate) {
3058
+ let disabled;
3059
+ let $valuesAreValid;
3060
+ let { $$slots: slots = {}, $$scope } = $$props;
3061
+ let { onClick = { operation: 'none', args: [] } } = $$props;
3062
+ let { eventName = '' } = $$props;
3063
+ let { eventValue = undefined } = $$props;
3064
+ let { style = '' } = $$props;
3065
+
3066
+ function handleClickButton() {
3067
+ if (eventName) {
3068
+ send_event(eventName, eventValue);
3069
+ }
3070
+
3071
+ execOnClickOperation(onClick);
3072
+ }
3073
+
3074
+ const { path: statePath } = getStateItemContext() ?? { path: '/' };
3075
+ const valuesAreValid = getValuesAreValidReader(statePath);
3076
+ component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3077
+
3078
+ $$self.$$set = $$props => {
3079
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
3080
+ if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
3081
+ if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
3082
+ if ('style' in $$props) $$invalidate(1, style = $$props.style);
3083
+ if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3084
+ };
3085
+
3086
+ $$self.$$.update = () => {
3087
+ if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 129) {
3088
+ $$invalidate(2, disabled = (() => {
3089
+ let isEnabled = true;
3090
+
3091
+ if (onClick.operation === 'submitForm') {
3092
+ isEnabled = $valuesAreValid;
3093
+ } else if (onClick.operation === 'moveTo') {
3094
+ isEnabled = $valuesAreValid;
3095
+ }
3096
+
3097
+ return !isEnabled;
3098
+ })());
3099
+ }
3100
+ };
3101
+
3102
+ return [
3103
+ onClick,
3104
+ style,
3105
+ disabled,
3106
+ handleClickButton,
3107
+ valuesAreValid,
3108
+ eventName,
3109
+ eventValue,
3110
+ $valuesAreValid,
3111
+ $$scope,
3112
+ slots
3113
+ ];
3114
+ }
3115
+
3116
+ class Button extends SvelteComponent {
3117
+ constructor(options) {
3118
+ super();
3119
+
3120
+ init(
3121
+ this,
3122
+ options,
3123
+ instance$t,
3124
+ create_fragment$t,
3125
+ safe_not_equal,
3126
+ {
3127
+ onClick: 0,
3128
+ eventName: 5,
3129
+ eventValue: 6,
3130
+ style: 1
3131
+ },
3132
+ add_css$q
3133
+ );
3134
+ }
3135
+ }
3136
+
3137
+ /* src/components/Modal.svelte generated by Svelte v3.53.1 */
3138
+
3139
+ function add_css$p(target) {
3140
+ 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}");
3141
+ }
3142
+
3143
+ // (144:0) {#if visible}
3144
+ function create_if_block$5(ctx) {
3145
+ let div;
3146
+ let button;
3147
+ let div_style_value;
3148
+ let div_intro;
3149
+ let current;
3150
+
3151
+ button = new Button({
3152
+ props: {
3153
+ onClick: /*onClick*/ ctx[0],
3154
+ eventName: /*clickEventName*/ ctx[1],
3155
+ eventValue: /*clickEventValue*/ ctx[2],
3156
+ $$slots: { default: [create_default_slot$4] },
3157
+ $$scope: { ctx }
3158
+ }
3159
+ });
3160
+
3161
+ return {
3162
+ c() {
3163
+ div = element("div");
3164
+ create_component(button.$$.fragment);
3165
+ attr(div, "class", "modal svelte-67dbus");
3166
+ attr(div, "role", "dialog");
3167
+ attr(div, "aria-modal", "true");
3168
+ attr(div, "style", div_style_value = "" + /*pos*/ ctx[16] + " " + /*marginStyle*/ ctx[14] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[17]] + "");
3169
+ },
3170
+ m(target, anchor) {
3171
+ insert(target, div, anchor);
3172
+ mount_component(button, div, null);
3173
+ /*div_binding*/ ctx[28](div);
3174
+ current = true;
3175
+ },
3176
+ p(new_ctx, dirty) {
3177
+ ctx = new_ctx;
3178
+ const button_changes = {};
3179
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
3180
+ if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
3181
+ if (dirty & /*clickEventValue*/ 4) button_changes.eventValue = /*clickEventValue*/ ctx[2];
3182
+
3183
+ if (dirty & /*$$scope, _style, $maximumZindex, onClose, _closeStyle, closeEventName, closeEventValue, closeButtonColor, closable*/ 538444784) {
3184
+ button_changes.$$scope = { dirty, ctx };
3185
+ }
3186
+
3187
+ button.$set(button_changes);
3188
+
3189
+ if (!current || dirty & /*pos, marginStyle, overwriteElasticity*/ 212992 && div_style_value !== (div_style_value = "" + /*pos*/ ctx[16] + " " + /*marginStyle*/ ctx[14] + " " + ElasticityStyle[/*overwriteElasticity*/ ctx[17]] + "")) {
3190
+ attr(div, "style", div_style_value);
3191
+ }
3192
+ },
3193
+ i(local) {
3194
+ if (current) return;
3195
+ transition_in(button.$$.fragment, local);
3196
+
3197
+ if (!div_intro) {
3198
+ add_render_callback(() => {
3199
+ div_intro = create_in_transition(div, customAnimation, {
3200
+ transform: /*transform*/ ctx[15],
3201
+ animationStyle: /*animation*/ ctx[3]
3202
+ });
3203
+
3204
+ div_intro.start();
3205
+ });
3206
+ }
3207
+
3208
+ current = true;
3209
+ },
3210
+ o(local) {
3211
+ transition_out(button.$$.fragment, local);
3212
+ current = false;
3213
+ },
3214
+ d(detaching) {
3215
+ if (detaching) detach(div);
3216
+ destroy_component(button);
3217
+ /*div_binding*/ ctx[28](null);
3218
+ }
3219
+ };
3220
+ }
3221
+
3222
+ // (161:6) {#if closable}
3223
+ function create_if_block_1$1(ctx) {
3224
+ let div;
3225
+ let button;
3226
+ let current;
3227
+
3228
+ button = new Button({
3229
+ props: {
3230
+ onClick: /*onClose*/ ctx[5],
3231
+ style: /*_closeStyle*/ ctx[9],
3232
+ eventName: /*closeEventName*/ ctx[6],
3233
+ eventValue: /*closeEventValue*/ ctx[7],
3234
+ $$slots: { default: [create_default_slot_1$1] },
3235
+ $$scope: { ctx }
3236
+ }
3237
+ });
3238
+
3239
+ return {
3240
+ c() {
3241
+ div = element("div");
3242
+ create_component(button.$$.fragment);
3243
+ attr(div, "class", "close svelte-67dbus");
3244
+ set_style(div, "z-index", /*$maximumZindex*/ ctx[20] + 1);
3245
+ },
3246
+ m(target, anchor) {
3247
+ insert(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
+ 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");
3294
+ attr(path, "fill", /*closeButtonColor*/ ctx[8]);
3295
+ attr(path, "fill-opacity", "0.8");
3296
+ attr(svg, "width", "100%");
3297
+ attr(svg, "height", "100%");
3298
+ attr(svg, "viewBox", "0 0 9 10");
3299
+ attr(svg, "fill", "none");
3300
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
3301
+ },
3302
+ m(target, anchor) {
3303
+ insert(target, svg, anchor);
3304
+ append(svg, path);
3305
+ },
3306
+ p(ctx, dirty) {
3307
+ if (dirty & /*closeButtonColor*/ 256) {
3308
+ attr(path, "fill", /*closeButtonColor*/ ctx[8]);
3309
+ }
3310
+ },
3311
+ d(detaching) {
3312
+ if (detaching) detach(svg);
3313
+ }
3314
+ };
3315
+ }
3316
+
3317
+ // (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
3318
+ function create_default_slot$4(ctx) {
3319
+ let t;
3320
+ let div;
3321
+ let current;
3322
+ let if_block = /*closable*/ ctx[19] && create_if_block_1$1(ctx);
3323
+ const default_slot_template = /*#slots*/ ctx[27].default;
3324
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
3325
+
3326
+ return {
3327
+ c() {
3328
+ if (if_block) if_block.c();
3329
+ t = space();
3330
+ div = element("div");
3331
+ if (default_slot) default_slot.c();
3332
+ attr(div, "class", "modal-content svelte-67dbus");
3333
+ attr(div, "style", /*_style*/ ctx[4]);
3334
+ },
3335
+ m(target, anchor) {
3336
+ if (if_block) if_block.m(target, anchor);
3337
+ insert(target, t, anchor);
3338
+ insert(target, div, anchor);
3339
+
3340
+ if (default_slot) {
3341
+ default_slot.m(div, null);
3342
+ }
3343
+
3344
+ current = true;
3345
+ },
3346
+ p(ctx, dirty) {
3347
+ if (/*closable*/ ctx[19]) {
3348
+ if (if_block) {
3349
+ if_block.p(ctx, dirty);
3350
+
3351
+ if (dirty & /*closable*/ 524288) {
3352
+ transition_in(if_block, 1);
3353
+ }
3354
+ } else {
3355
+ if_block = create_if_block_1$1(ctx);
3356
+ if_block.c();
3357
+ transition_in(if_block, 1);
3358
+ if_block.m(t.parentNode, t);
3359
+ }
3360
+ } else if (if_block) {
3361
+ group_outros();
3362
+
3363
+ transition_out(if_block, 1, 1, () => {
3364
+ if_block = null;
3365
+ });
3366
+
3367
+ check_outros();
3368
+ }
3369
+
3370
+ if (default_slot) {
3371
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 536870912)) {
3372
+ update_slot_base(
3373
+ default_slot,
3374
+ default_slot_template,
3375
+ ctx,
3376
+ /*$$scope*/ ctx[29],
3377
+ !current
3378
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[29])
3379
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[29], dirty, null),
3380
+ null
3381
+ );
3382
+ }
3383
+ }
3384
+
3385
+ if (!current || dirty & /*_style*/ 16) {
3386
+ attr(div, "style", /*_style*/ ctx[4]);
3387
+ }
3388
+ },
3389
+ i(local) {
3390
+ if (current) return;
3391
+ transition_in(if_block);
3392
+ transition_in(default_slot, local);
3393
+ current = true;
3394
+ },
3395
+ o(local) {
3396
+ transition_out(if_block);
3397
+ transition_out(default_slot, local);
3398
+ current = false;
3399
+ },
3400
+ d(detaching) {
3401
+ if (if_block) if_block.d(detaching);
3402
+ if (detaching) detach(t);
3403
+ if (detaching) detach(div);
3404
+ if (default_slot) default_slot.d(detaching);
3405
+ }
3406
+ };
3407
+ }
3408
+
3409
+ function create_fragment$s(ctx) {
3410
+ let backgroundoverray;
3411
+ let t;
3412
+ let if_block_anchor;
3413
+ let current;
3414
+ let mounted;
3415
+ let dispose;
3416
+
3417
+ backgroundoverray = new BackgroundOverray({
3418
+ props: {
3419
+ backgroundOverray: /*backgroundOverray*/ ctx[11]
3420
+ }
3421
+ });
3422
+
3423
+ backgroundoverray.$on("click", function () {
3424
+ if (is_function(/*backgroundClick*/ ctx[18])) /*backgroundClick*/ ctx[18].apply(this, arguments);
3425
+ });
3426
+
3427
+ let if_block = /*visible*/ ctx[12] && create_if_block$5(ctx);
3428
+
3429
+ return {
3430
+ c() {
3431
+ create_component(backgroundoverray.$$.fragment);
3432
+ t = space();
3433
+ if (if_block) if_block.c();
3434
+ if_block_anchor = empty();
3435
+ },
3436
+ m(target, anchor) {
3437
+ mount_component(backgroundoverray, target, anchor);
3438
+ insert(target, t, anchor);
3439
+ if (if_block) if_block.m(target, anchor);
3440
+ insert(target, if_block_anchor, anchor);
3441
+ current = true;
3442
+
3443
+ if (!mounted) {
3444
+ dispose = listen(window, "keydown", function () {
3445
+ if (is_function(/*handle_keydown*/ ctx[13])) /*handle_keydown*/ ctx[13].apply(this, arguments);
3446
+ });
3447
+
3448
+ mounted = true;
3449
+ }
3450
+ },
3451
+ p(new_ctx, [dirty]) {
3452
+ ctx = new_ctx;
3453
+ const backgroundoverray_changes = {};
3454
+ if (dirty & /*backgroundOverray*/ 2048) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[11];
3455
+ backgroundoverray.$set(backgroundoverray_changes);
3456
+
3457
+ if (/*visible*/ ctx[12]) {
3458
+ if (if_block) {
3459
+ if_block.p(ctx, dirty);
3460
+
3461
+ if (dirty & /*visible*/ 4096) {
3462
+ transition_in(if_block, 1);
3463
+ }
3464
+ } else {
3465
+ if_block = create_if_block$5(ctx);
3466
+ if_block.c();
3467
+ transition_in(if_block, 1);
3468
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
3469
+ }
3470
+ } else if (if_block) {
3471
+ group_outros();
3472
+
3473
+ transition_out(if_block, 1, 1, () => {
3474
+ if_block = null;
3475
+ });
3476
+
3477
+ check_outros();
3478
+ }
3479
+ },
3480
+ i(local) {
3481
+ if (current) return;
3482
+ transition_in(backgroundoverray.$$.fragment, local);
3483
+ transition_in(if_block);
3484
+ current = true;
3485
+ },
3486
+ o(local) {
3487
+ transition_out(backgroundoverray.$$.fragment, local);
3488
+ transition_out(if_block);
3489
+ current = false;
3490
+ },
3491
+ d(detaching) {
3492
+ destroy_component(backgroundoverray, detaching);
3493
+ if (detaching) detach(t);
3494
+ if (if_block) if_block.d(detaching);
3495
+ if (detaching) detach(if_block_anchor);
3496
+ mounted = false;
3497
+ dispose();
3498
+ }
3499
+ };
3500
+ }
3501
+
3502
+ function instance$s($$self, $$props, $$invalidate) {
3503
+ let close;
3504
+ let closable;
3505
+ let backgroundClick;
3506
+ let overwritePosition;
3507
+ let overwriteMargin;
3508
+ let overwriteElasticity;
3509
+ let pos;
3510
+ let transform;
3511
+ let marginStyle;
3512
+ let handle_keydown;
3513
+ let visible;
3514
+ let $maximumZindex;
3515
+ component_subscribe($$self, maximumZindex, $$value => $$invalidate(20, $maximumZindex = $$value));
3516
+ let { $$slots: slots = {}, $$scope } = $$props;
3517
+ let { onClick = { operation: 'none', args: [] } } = $$props;
3518
+ let { clickEventName = '' } = $$props;
3519
+ let { clickEventValue = null } = $$props;
3520
+ let { placement = DefaultModalPlacement } = $$props;
3521
+ let { animation = 'none' } = $$props;
3522
+ let { _style = '' } = $$props;
3523
+ let { elasticity = 'none' } = $$props;
3524
+ let { onClose = { operation: 'closeApp', args: ['button'] } } = $$props;
3525
+ let { closeEventName = '' } = $$props;
3526
+ let { closeEventValue = null } = $$props;
3527
+ let { closeButtonColor = '#000000' } = $$props;
3528
+ let { _closeStyle = '' } = $$props;
3529
+ let backgroundOverray = DefaultModalPlacement.backgroundOverlay;
3530
+ let backgroundClickFunction = DefaultModalPlacement.backgroundClick;
3531
+ let modal;
3532
+
3533
+ onMount(() => {
3534
+ $$invalidate(12, visible = true);
3535
+ });
3536
+
3033
3537
  onDestroy$1(() => setPreviousFocus());
3034
3538
 
3035
- function div1_binding($$value) {
3539
+ function div_binding($$value) {
3036
3540
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3037
3541
  modal = $$value;
3038
- $$invalidate(4, modal);
3542
+ $$invalidate(10, modal);
3039
3543
  });
3040
3544
  }
3041
3545
 
3042
3546
  $$self.$$set = $$props => {
3043
- if ('onClick' in $$props) $$invalidate(17, onClick = $$props.onClick);
3044
- if ('clickEventName' in $$props) $$invalidate(18, clickEventName = $$props.clickEventName);
3045
- if ('clickEventValue' in $$props) $$invalidate(19, clickEventValue = $$props.clickEventValue);
3046
- if ('placement' in $$props) $$invalidate(20, placement = $$props.placement);
3047
- if ('animation' in $$props) $$invalidate(0, animation = $$props.animation);
3048
- if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
3049
- if ('elasticity' in $$props) $$invalidate(21, elasticity = $$props.elasticity);
3050
- if ('onClose' in $$props) $$invalidate(22, onClose = $$props.onClose);
3051
- if ('closeEventName' in $$props) $$invalidate(23, closeEventName = $$props.closeEventName);
3052
- if ('closeEventValue' in $$props) $$invalidate(24, closeEventValue = $$props.closeEventValue);
3053
- if ('closeButtonColor' in $$props) $$invalidate(2, closeButtonColor = $$props.closeButtonColor);
3054
- if ('_closeStyle' in $$props) $$invalidate(3, _closeStyle = $$props._closeStyle);
3055
- if ('$$scope' in $$props) $$invalidate(28, $$scope = $$props.$$scope);
3547
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
3548
+ if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
3549
+ if ('clickEventValue' in $$props) $$invalidate(2, clickEventValue = $$props.clickEventValue);
3550
+ if ('placement' in $$props) $$invalidate(21, placement = $$props.placement);
3551
+ if ('animation' in $$props) $$invalidate(3, animation = $$props.animation);
3552
+ if ('_style' in $$props) $$invalidate(4, _style = $$props._style);
3553
+ if ('elasticity' in $$props) $$invalidate(22, elasticity = $$props.elasticity);
3554
+ if ('onClose' in $$props) $$invalidate(5, onClose = $$props.onClose);
3555
+ if ('closeEventName' in $$props) $$invalidate(6, closeEventName = $$props.closeEventName);
3556
+ if ('closeEventValue' in $$props) $$invalidate(7, closeEventValue = $$props.closeEventValue);
3557
+ if ('closeButtonColor' in $$props) $$invalidate(8, closeButtonColor = $$props.closeButtonColor);
3558
+ if ('_closeStyle' in $$props) $$invalidate(9, _closeStyle = $$props._closeStyle);
3559
+ if ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);
3056
3560
  };
3057
3561
 
3058
3562
  $$self.$$.update = () => {
3059
- if ($$self.$$.dirty & /*clickEventName, clickEventValue, onClick*/ 917504) {
3060
- $$invalidate(15, click = () => {
3061
- if (clickEventName) {
3062
- send_event(clickEventName, clickEventValue);
3063
- }
3064
-
3065
- execOnClickOperation(onClick);
3066
- });
3067
- }
3068
-
3069
- if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/ 29360128) {
3070
- $$invalidate(5, close = () => {
3563
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue, onClose*/ 224) {
3564
+ $$invalidate(24, close = () => {
3071
3565
  if (closeEventName) {
3072
3566
  send_event(closeEventName, closeEventValue);
3073
3567
  }
@@ -3076,28 +3570,28 @@ function instance$s($$self, $$props, $$invalidate) {
3076
3570
  });
3077
3571
  }
3078
3572
 
3079
- if ($$self.$$.dirty & /*onClose*/ 4194304) {
3080
- $$invalidate(14, closable = haveFunction(onClose));
3573
+ if ($$self.$$.dirty & /*onClose*/ 32) {
3574
+ $$invalidate(19, closable = haveFunction(onClose));
3081
3575
  }
3082
3576
 
3083
- if ($$self.$$.dirty & /*placement*/ 1048576) {
3577
+ if ($$self.$$.dirty & /*placement*/ 2097152) {
3084
3578
  {
3085
3579
  if (placement && placement.backgroundOverlay) {
3086
- $$invalidate(6, backgroundOverray = placement.backgroundOverlay);
3580
+ $$invalidate(11, backgroundOverray = placement.backgroundOverlay);
3087
3581
  }
3088
3582
  }
3089
3583
  }
3090
3584
 
3091
- if ($$self.$$.dirty & /*placement*/ 1048576) {
3585
+ if ($$self.$$.dirty & /*placement*/ 2097152) {
3092
3586
  {
3093
3587
  if (placement && placement.backgroundClick) {
3094
- $$invalidate(25, backgroundClickFunction = placement.backgroundClick);
3588
+ $$invalidate(23, backgroundClickFunction = placement.backgroundClick);
3095
3589
  }
3096
3590
  }
3097
3591
  }
3098
3592
 
3099
- if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 58720256) {
3100
- $$invalidate(13, backgroundClick = () => {
3593
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 8388800) {
3594
+ $$invalidate(18, backgroundClick = () => {
3101
3595
  if (closeEventName) {
3102
3596
  send_event(closeEventName, closeEventValue);
3103
3597
  }
@@ -3106,51 +3600,56 @@ function instance$s($$self, $$props, $$invalidate) {
3106
3600
  });
3107
3601
  }
3108
3602
 
3109
- if ($$self.$$.dirty & /*placement*/ 1048576) {
3110
- $$invalidate(27, overwritePosition = placement && placement.position != null
3603
+ if ($$self.$$.dirty & /*placement*/ 2097152) {
3604
+ $$invalidate(26, overwritePosition = placement && placement.position != null
3111
3605
  ? placement.position
3112
3606
  : DefaultModalPlacement.position);
3113
3607
  }
3114
3608
 
3115
- if ($$self.$$.dirty & /*placement*/ 1048576) {
3116
- $$invalidate(26, overwriteMargin = placement && placement.margin != null
3609
+ if ($$self.$$.dirty & /*placement*/ 2097152) {
3610
+ $$invalidate(25, overwriteMargin = placement && placement.margin != null
3117
3611
  ? placement.margin
3118
3612
  : DefaultModalPlacement.margin);
3119
3613
  }
3120
3614
 
3121
- if ($$self.$$.dirty & /*elasticity*/ 2097152) {
3122
- $$invalidate(12, overwriteElasticity = elasticity);
3615
+ if ($$self.$$.dirty & /*elasticity*/ 4194304) {
3616
+ $$invalidate(17, overwriteElasticity = elasticity);
3123
3617
  }
3124
3618
 
3125
- if ($$self.$$.dirty & /*overwritePosition*/ 134217728) {
3126
- $$invalidate(11, pos = getPositionStyle(overwritePosition));
3619
+ if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
3620
+ $$invalidate(16, pos = getPositionStyle(overwritePosition));
3127
3621
  }
3128
3622
 
3129
- if ($$self.$$.dirty & /*overwritePosition*/ 134217728) {
3130
- $$invalidate(10, transform = getTransform(overwritePosition));
3623
+ if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
3624
+ $$invalidate(15, transform = getTransform(overwritePosition));
3131
3625
  }
3132
3626
 
3133
- if ($$self.$$.dirty & /*overwriteMargin*/ 67108864) {
3134
- $$invalidate(9, marginStyle = getMarginStyle(overwriteMargin));
3627
+ if ($$self.$$.dirty & /*overwriteMargin*/ 33554432) {
3628
+ $$invalidate(14, marginStyle = getMarginStyle(overwriteMargin));
3135
3629
  }
3136
3630
 
3137
- if ($$self.$$.dirty & /*close, modal*/ 48) {
3138
- $$invalidate(8, handle_keydown = handleKeydown({ Escape: close, Tab: handleFocus(modal) }));
3631
+ if ($$self.$$.dirty & /*close, modal*/ 16778240) {
3632
+ $$invalidate(13, handle_keydown = handleKeydown({ Escape: close, Tab: handleFocus(modal) }));
3139
3633
  }
3140
3634
  };
3141
3635
 
3142
- $$invalidate(4, modal = null);
3636
+ $$invalidate(10, modal = null);
3143
3637
 
3144
3638
  // svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
3145
- $$invalidate(7, visible = false);
3639
+ $$invalidate(12, visible = false);
3146
3640
 
3147
3641
  return [
3642
+ onClick,
3643
+ clickEventName,
3644
+ clickEventValue,
3148
3645
  animation,
3149
3646
  _style,
3647
+ onClose,
3648
+ closeEventName,
3649
+ closeEventValue,
3150
3650
  closeButtonColor,
3151
3651
  _closeStyle,
3152
3652
  modal,
3153
- close,
3154
3653
  backgroundOverray,
3155
3654
  visible,
3156
3655
  handle_keydown,
@@ -3160,22 +3659,16 @@ function instance$s($$self, $$props, $$invalidate) {
3160
3659
  overwriteElasticity,
3161
3660
  backgroundClick,
3162
3661
  closable,
3163
- click,
3164
3662
  $maximumZindex,
3165
- onClick,
3166
- clickEventName,
3167
- clickEventValue,
3168
3663
  placement,
3169
3664
  elasticity,
3170
- onClose,
3171
- closeEventName,
3172
- closeEventValue,
3173
3665
  backgroundClickFunction,
3666
+ close,
3174
3667
  overwriteMargin,
3175
3668
  overwritePosition,
3176
- $$scope,
3177
3669
  slots,
3178
- div1_binding
3670
+ div_binding,
3671
+ $$scope
3179
3672
  ];
3180
3673
  }
3181
3674
 
@@ -3190,18 +3683,18 @@ class Modal extends SvelteComponent {
3190
3683
  create_fragment$s,
3191
3684
  safe_not_equal,
3192
3685
  {
3193
- onClick: 17,
3194
- clickEventName: 18,
3195
- clickEventValue: 19,
3196
- placement: 20,
3197
- animation: 0,
3198
- _style: 1,
3199
- elasticity: 21,
3200
- onClose: 22,
3201
- closeEventName: 23,
3202
- closeEventValue: 24,
3203
- closeButtonColor: 2,
3204
- _closeStyle: 3
3686
+ onClick: 0,
3687
+ clickEventName: 1,
3688
+ clickEventValue: 2,
3689
+ placement: 21,
3690
+ animation: 3,
3691
+ _style: 4,
3692
+ elasticity: 22,
3693
+ onClose: 5,
3694
+ closeEventName: 6,
3695
+ closeEventValue: 7,
3696
+ closeButtonColor: 8,
3697
+ _closeStyle: 9
3205
3698
  },
3206
3699
  add_css$p
3207
3700
  );
@@ -3872,7 +4365,41 @@ class TextElement extends SvelteComponent {
3872
4365
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
3873
4366
 
3874
4367
  function add_css$m(target) {
3875
- append_styles(target, "svelte-1igv5yx", ".text-button-element.svelte-1igv5yx{width:100%;height:100%}.text-button-element._disabled.svelte-1igv5yx{opacity:0.2}.text-button.svelte-1igv5yx{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._disabled.svelte-1igv5yx{cursor:not-allowed}.text-button.svelte-1igv5yx:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-1igv5yx:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
4368
+ 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)}");
4369
+ }
4370
+
4371
+ // (36:2) <Button onClick={onClick} {style} {eventName}>
4372
+ function create_default_slot$3(ctx) {
4373
+ let rendertext;
4374
+ let current;
4375
+ rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
4376
+
4377
+ return {
4378
+ c() {
4379
+ create_component(rendertext.$$.fragment);
4380
+ },
4381
+ m(target, anchor) {
4382
+ mount_component(rendertext, target, anchor);
4383
+ current = true;
4384
+ },
4385
+ p(ctx, dirty) {
4386
+ const rendertext_changes = {};
4387
+ if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
4388
+ rendertext.$set(rendertext_changes);
4389
+ },
4390
+ i(local) {
4391
+ if (current) return;
4392
+ transition_in(rendertext.$$.fragment, local);
4393
+ current = true;
4394
+ },
4395
+ o(local) {
4396
+ transition_out(rendertext.$$.fragment, local);
4397
+ current = false;
4398
+ },
4399
+ d(detaching) {
4400
+ destroy_component(rendertext, detaching);
4401
+ }
4402
+ };
3876
4403
  }
3877
4404
 
3878
4405
  function create_fragment$n(ctx) {
@@ -3881,145 +4408,90 @@ function create_fragment$n(ctx) {
3881
4408
  let link_href_value;
3882
4409
  let t;
3883
4410
  let button;
3884
- let rendertext;
3885
- let button_class_value;
3886
- let div_class_value;
3887
4411
  let current;
3888
- let mounted;
3889
- let dispose;
3890
- rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
4412
+
4413
+ button = new Button({
4414
+ props: {
4415
+ onClick: /*onClick*/ ctx[1],
4416
+ style: /*style*/ ctx[3],
4417
+ eventName: /*eventName*/ ctx[2],
4418
+ $$slots: { default: [create_default_slot$3] },
4419
+ $$scope: { ctx }
4420
+ }
4421
+ });
3891
4422
 
3892
4423
  return {
3893
4424
  c() {
3894
4425
  div = element("div");
3895
4426
  link = element("link");
3896
4427
  t = space();
3897
- button = element("button");
3898
- create_component(rendertext.$$.fragment);
4428
+ create_component(button.$$.fragment);
3899
4429
  attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`);
3900
4430
  attr(link, "rel", "stylesheet");
3901
- attr(button, "class", button_class_value = "" + (null_to_empty(`text-button${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"));
3902
- attr(button, "style", /*_buttonStyle*/ ctx[1]);
3903
- button.disabled = /*disabled*/ ctx[3];
3904
- attr(div, "class", div_class_value = "" + (null_to_empty(`text-button-element${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"));
3905
- attr(div, "style", /*_style*/ ctx[2]);
4431
+ attr(div, "class", "text-button-element svelte-wb7ek");
3906
4432
  },
3907
4433
  m(target, anchor) {
3908
4434
  insert(target, div, anchor);
3909
4435
  append(div, link);
3910
4436
  append(div, t);
3911
- append(div, button);
3912
- mount_component(rendertext, button, null);
4437
+ mount_component(button, div, null);
3913
4438
  current = true;
3914
-
3915
- if (!mounted) {
3916
- dispose = listen(button, "click", /*click*/ ctx[4]);
3917
- mounted = true;
3918
- }
3919
4439
  },
3920
4440
  p(ctx, [dirty]) {
3921
4441
  if (!current || dirty & /*text*/ 1 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*text*/ ctx[0]}`)) {
3922
4442
  attr(link, "href", link_href_value);
3923
4443
  }
3924
4444
 
3925
- const rendertext_changes = {};
3926
- if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
3927
- rendertext.$set(rendertext_changes);
3928
-
3929
- if (!current || dirty & /*disabled*/ 8 && button_class_value !== (button_class_value = "" + (null_to_empty(`text-button${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"))) {
3930
- attr(button, "class", button_class_value);
3931
- }
3932
-
3933
- if (!current || dirty & /*_buttonStyle*/ 2) {
3934
- attr(button, "style", /*_buttonStyle*/ ctx[1]);
3935
- }
3936
-
3937
- if (!current || dirty & /*disabled*/ 8) {
3938
- button.disabled = /*disabled*/ ctx[3];
3939
- }
4445
+ const button_changes = {};
4446
+ if (dirty & /*onClick*/ 2) button_changes.onClick = /*onClick*/ ctx[1];
4447
+ if (dirty & /*style*/ 8) button_changes.style = /*style*/ ctx[3];
4448
+ if (dirty & /*eventName*/ 4) button_changes.eventName = /*eventName*/ ctx[2];
3940
4449
 
3941
- if (!current || dirty & /*disabled*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(`text-button-element${/*disabled*/ ctx[3] ? ' _disabled' : ''}`) + " svelte-1igv5yx"))) {
3942
- attr(div, "class", div_class_value);
4450
+ if (dirty & /*$$scope, text*/ 65) {
4451
+ button_changes.$$scope = { dirty, ctx };
3943
4452
  }
3944
4453
 
3945
- if (!current || dirty & /*_style*/ 4) {
3946
- attr(div, "style", /*_style*/ ctx[2]);
3947
- }
4454
+ button.$set(button_changes);
3948
4455
  },
3949
4456
  i(local) {
3950
4457
  if (current) return;
3951
- transition_in(rendertext.$$.fragment, local);
4458
+ transition_in(button.$$.fragment, local);
3952
4459
  current = true;
3953
4460
  },
3954
4461
  o(local) {
3955
- transition_out(rendertext.$$.fragment, local);
4462
+ transition_out(button.$$.fragment, local);
3956
4463
  current = false;
3957
4464
  },
3958
4465
  d(detaching) {
3959
4466
  if (detaching) detach(div);
3960
- destroy_component(rendertext);
3961
- mounted = false;
3962
- dispose();
4467
+ destroy_component(button);
3963
4468
  }
3964
4469
  };
3965
4470
  }
3966
4471
 
3967
4472
  function instance$n($$self, $$props, $$invalidate) {
3968
- let disabled;
3969
- let $valuesAreValid;
4473
+ let style;
3970
4474
  let { text = 'ボタンラベル' } = $$props;
3971
4475
  let { onClick = { operation: 'none', args: [] } } = $$props;
3972
-
3973
- const click = () => {
3974
- if (eventName) {
3975
- send_event(eventName);
3976
- }
3977
-
3978
- execOnClickOperation(onClick);
3979
- };
3980
-
3981
4476
  let { eventName = '' } = $$props;
3982
4477
  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;
3983
4478
  let { _style = 'background-color: #000000; border-radius:4px; cursor: pointer' } = $$props;
3984
- const { path: statePath } = getStateItemContext() ?? { path: '/' };
3985
- const valuesAreValid = getValuesAreValidReader(statePath);
3986
- component_subscribe($$self, valuesAreValid, value => $$invalidate(8, $valuesAreValid = value));
3987
4479
 
3988
4480
  $$self.$$set = $$props => {
3989
4481
  if ('text' in $$props) $$invalidate(0, text = $$props.text);
3990
- if ('onClick' in $$props) $$invalidate(6, onClick = $$props.onClick);
3991
- if ('eventName' in $$props) $$invalidate(7, eventName = $$props.eventName);
3992
- if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
3993
- if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
4482
+ if ('onClick' in $$props) $$invalidate(1, onClick = $$props.onClick);
4483
+ if ('eventName' in $$props) $$invalidate(2, eventName = $$props.eventName);
4484
+ if ('_buttonStyle' in $$props) $$invalidate(4, _buttonStyle = $$props._buttonStyle);
4485
+ if ('_style' in $$props) $$invalidate(5, _style = $$props._style);
3994
4486
  };
3995
4487
 
3996
4488
  $$self.$$.update = () => {
3997
- if ($$self.$$.dirty & /*onClick, $valuesAreValid*/ 320) {
3998
- $$invalidate(3, disabled = (() => {
3999
- let isEnabled = true;
4000
-
4001
- if (onClick.operation === 'submitForm') {
4002
- isEnabled = $valuesAreValid;
4003
- } else if (onClick.operation === 'moveTo') {
4004
- isEnabled = $valuesAreValid;
4005
- }
4006
-
4007
- return !isEnabled;
4008
- })());
4489
+ if ($$self.$$.dirty & /*_buttonStyle, _style*/ 48) {
4490
+ $$invalidate(3, style = [..._buttonStyle.split(';'), ..._style.split(';')].filter(Boolean).join(';'));
4009
4491
  }
4010
4492
  };
4011
4493
 
4012
- return [
4013
- text,
4014
- _buttonStyle,
4015
- _style,
4016
- disabled,
4017
- click,
4018
- valuesAreValid,
4019
- onClick,
4020
- eventName,
4021
- $valuesAreValid
4022
- ];
4494
+ return [text, onClick, eventName, style, _buttonStyle, _style];
4023
4495
  }
4024
4496
 
4025
4497
  class TextButtonElement extends SvelteComponent {
@@ -4034,10 +4506,10 @@ class TextButtonElement extends SvelteComponent {
4034
4506
  safe_not_equal,
4035
4507
  {
4036
4508
  text: 0,
4037
- onClick: 6,
4038
- eventName: 7,
4039
- _buttonStyle: 1,
4040
- _style: 2
4509
+ onClick: 1,
4510
+ eventName: 2,
4511
+ _buttonStyle: 4,
4512
+ _style: 5
4041
4513
  },
4042
4514
  add_css$m
4043
4515
  );
@@ -4047,43 +4519,31 @@ class TextButtonElement extends SvelteComponent {
4047
4519
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
4048
4520
 
4049
4521
  function add_css$l(target) {
4050
- append_styles(target, "svelte-t8kpqw", ".image-element.svelte-t8kpqw{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.svelte-t8kpqw{width:100%;height:100%}.transport.svelte-t8kpqw:hover,.transport.svelte-t8kpqw:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
4522
+ 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%}");
4051
4523
  }
4052
4524
 
4053
- function create_fragment$m(ctx) {
4054
- let div;
4525
+ // (40:2) <Button {onClick} style={_style} {eventName}>
4526
+ function create_default_slot$2(ctx) {
4055
4527
  let img;
4056
4528
  let img_src_value;
4057
- let div_class_value;
4058
- let mounted;
4059
- let dispose;
4060
4529
 
4061
4530
  return {
4062
4531
  c() {
4063
- div = element("div");
4064
4532
  img = element("img");
4065
- attr(img, "class", "image svelte-t8kpqw");
4533
+ attr(img, "class", "image svelte-1kn2sk0");
4066
4534
  attr(img, "loading", "lazy");
4067
4535
  attr(img, "width", "auto");
4068
4536
  attr(img, "height", "auto");
4069
- attr(img, "style", /*_imageStyle*/ ctx[3]);
4537
+ attr(img, "style", /*_imageStyle*/ ctx[5]);
4070
4538
  if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
4071
4539
  attr(img, "alt", /*alt*/ ctx[1]);
4072
- attr(div, "class", div_class_value = "" + (null_to_empty('image-element' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-t8kpqw"));
4073
- attr(div, "style", /*_style*/ ctx[4]);
4074
4540
  },
4075
4541
  m(target, anchor) {
4076
- insert(target, div, anchor);
4077
- append(div, img);
4078
-
4079
- if (!mounted) {
4080
- dispose = listen(div, "click", /*click*/ ctx[5]);
4081
- mounted = true;
4082
- }
4542
+ insert(target, img, anchor);
4083
4543
  },
4084
- p(ctx, [dirty]) {
4085
- if (dirty & /*_imageStyle*/ 8) {
4086
- attr(img, "style", /*_imageStyle*/ ctx[3]);
4544
+ p(ctx, dirty) {
4545
+ if (dirty & /*_imageStyle*/ 32) {
4546
+ attr(img, "style", /*_imageStyle*/ ctx[5]);
4087
4547
  }
4088
4548
 
4089
4549
  if (dirty & /*src*/ 1 && !src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) {
@@ -4093,21 +4553,68 @@ function create_fragment$m(ctx) {
4093
4553
  if (dirty & /*alt*/ 2) {
4094
4554
  attr(img, "alt", /*alt*/ ctx[1]);
4095
4555
  }
4556
+ },
4557
+ d(detaching) {
4558
+ if (detaching) detach(img);
4559
+ }
4560
+ };
4561
+ }
4096
4562
 
4097
- if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty('image-element' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-t8kpqw"))) {
4098
- attr(div, "class", div_class_value);
4563
+ function create_fragment$m(ctx) {
4564
+ let div;
4565
+ let button;
4566
+ let div_class_value;
4567
+ let current;
4568
+
4569
+ button = new Button({
4570
+ props: {
4571
+ onClick: /*onClick*/ ctx[3],
4572
+ style: /*_style*/ ctx[6],
4573
+ eventName: /*eventName*/ ctx[4],
4574
+ $$slots: { default: [create_default_slot$2] },
4575
+ $$scope: { ctx }
4099
4576
  }
4577
+ });
4100
4578
 
4101
- if (dirty & /*_style*/ 16) {
4102
- attr(div, "style", /*_style*/ ctx[4]);
4579
+ return {
4580
+ c() {
4581
+ div = element("div");
4582
+ create_component(button.$$.fragment);
4583
+ attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1kn2sk0");
4584
+ },
4585
+ m(target, anchor) {
4586
+ insert(target, div, anchor);
4587
+ mount_component(button, div, null);
4588
+ current = true;
4589
+ },
4590
+ p(ctx, [dirty]) {
4591
+ const button_changes = {};
4592
+ if (dirty & /*onClick*/ 8) button_changes.onClick = /*onClick*/ ctx[3];
4593
+ if (dirty & /*_style*/ 64) button_changes.style = /*_style*/ ctx[6];
4594
+ if (dirty & /*eventName*/ 16) button_changes.eventName = /*eventName*/ ctx[4];
4595
+
4596
+ if (dirty & /*$$scope, _imageStyle, src, alt*/ 163) {
4597
+ button_changes.$$scope = { dirty, ctx };
4598
+ }
4599
+
4600
+ button.$set(button_changes);
4601
+
4602
+ if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1kn2sk0")) {
4603
+ attr(div, "class", div_class_value);
4103
4604
  }
4104
4605
  },
4105
- i: noop,
4106
- o: noop,
4606
+ i(local) {
4607
+ if (current) return;
4608
+ transition_in(button.$$.fragment, local);
4609
+ current = true;
4610
+ },
4611
+ o(local) {
4612
+ transition_out(button.$$.fragment, local);
4613
+ current = false;
4614
+ },
4107
4615
  d(detaching) {
4108
4616
  if (detaching) detach(div);
4109
- mounted = false;
4110
- dispose();
4617
+ destroy_component(button);
4111
4618
  }
4112
4619
  };
4113
4620
  }
@@ -4117,15 +4624,6 @@ function instance$m($$self, $$props, $$invalidate) {
4117
4624
  let { alt = 'No Image' } = $$props;
4118
4625
  let { transport = false } = $$props;
4119
4626
  let { onClick = { operation: 'none', args: [] } } = $$props;
4120
-
4121
- const click = () => {
4122
- if (eventName) {
4123
- send_event(eventName);
4124
- }
4125
-
4126
- execOnClickOperation(onClick);
4127
- };
4128
-
4129
4627
  let { eventName = '' } = $$props;
4130
4628
  let { _imageStyle = 'object-fit: contain;' } = $$props;
4131
4629
  let { _style = '' } = $$props;
@@ -4134,13 +4632,13 @@ function instance$m($$self, $$props, $$invalidate) {
4134
4632
  if ('src' in $$props) $$invalidate(0, src = $$props.src);
4135
4633
  if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
4136
4634
  if ('transport' in $$props) $$invalidate(2, transport = $$props.transport);
4137
- if ('onClick' in $$props) $$invalidate(6, onClick = $$props.onClick);
4138
- if ('eventName' in $$props) $$invalidate(7, eventName = $$props.eventName);
4139
- if ('_imageStyle' in $$props) $$invalidate(3, _imageStyle = $$props._imageStyle);
4140
- if ('_style' in $$props) $$invalidate(4, _style = $$props._style);
4635
+ if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
4636
+ if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
4637
+ if ('_imageStyle' in $$props) $$invalidate(5, _imageStyle = $$props._imageStyle);
4638
+ if ('_style' in $$props) $$invalidate(6, _style = $$props._style);
4141
4639
  };
4142
4640
 
4143
- return [src, alt, transport, _imageStyle, _style, click, onClick, eventName];
4641
+ return [src, alt, transport, onClick, eventName, _imageStyle, _style];
4144
4642
  }
4145
4643
 
4146
4644
  class ImageElement extends SvelteComponent {
@@ -4157,10 +4655,10 @@ class ImageElement extends SvelteComponent {
4157
4655
  src: 0,
4158
4656
  alt: 1,
4159
4657
  transport: 2,
4160
- onClick: 6,
4161
- eventName: 7,
4162
- _imageStyle: 3,
4163
- _style: 4
4658
+ onClick: 3,
4659
+ eventName: 4,
4660
+ _imageStyle: 5,
4661
+ _style: 6
4164
4662
  },
4165
4663
  add_css$l
4166
4664
  );
@@ -4317,49 +4815,27 @@ class List extends SvelteComponent {
4317
4815
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
4318
4816
 
4319
4817
  function add_css$j(target) {
4320
- append_styles(target, "svelte-h5j4xe", ".list-item.svelte-h5j4xe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item-inner.svelte-h5j4xe{position:absolute;inset:0}");
4818
+ 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}");
4321
4819
  }
4322
4820
 
4323
- function create_fragment$k(ctx) {
4324
- let div1;
4325
- let div0;
4821
+ // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
4822
+ function create_default_slot$1(ctx) {
4326
4823
  let current;
4327
- let mounted;
4328
- let dispose;
4329
- const default_slot_template = /*#slots*/ ctx[7].default;
4824
+ const default_slot_template = /*#slots*/ ctx[5].default;
4330
4825
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
4331
4826
 
4332
4827
  return {
4333
4828
  c() {
4334
- div1 = element("div");
4335
- div0 = element("div");
4336
4829
  if (default_slot) default_slot.c();
4337
- attr(div0, "class", "list-item-inner svelte-h5j4xe");
4338
- attr(div0, "style", /*_style*/ ctx[0]);
4339
- attr(div1, "class", "list-item svelte-h5j4xe");
4340
- attr(div1, "style", /*listItemStyle*/ ctx[1]);
4341
4830
  },
4342
4831
  m(target, anchor) {
4343
- insert(target, div1, anchor);
4344
- append(div1, div0);
4345
-
4346
4832
  if (default_slot) {
4347
- default_slot.m(div0, null);
4833
+ default_slot.m(target, anchor);
4348
4834
  }
4349
4835
 
4350
4836
  current = true;
4351
-
4352
- if (!mounted) {
4353
- dispose = listen(div1, "click", function () {
4354
- if (is_function(/*click*/ ctx[2])) /*click*/ ctx[2].apply(this, arguments);
4355
- });
4356
-
4357
- mounted = true;
4358
- }
4359
4837
  },
4360
- p(new_ctx, [dirty]) {
4361
- ctx = new_ctx;
4362
-
4838
+ p(ctx, dirty) {
4363
4839
  if (default_slot) {
4364
4840
  if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
4365
4841
  update_slot_base(
@@ -4374,35 +4850,82 @@ function create_fragment$k(ctx) {
4374
4850
  );
4375
4851
  }
4376
4852
  }
4853
+ },
4854
+ i(local) {
4855
+ if (current) return;
4856
+ transition_in(default_slot, local);
4857
+ current = true;
4858
+ },
4859
+ o(local) {
4860
+ transition_out(default_slot, local);
4861
+ current = false;
4862
+ },
4863
+ d(detaching) {
4864
+ if (default_slot) default_slot.d(detaching);
4865
+ }
4866
+ };
4867
+ }
4377
4868
 
4378
- if (!current || dirty & /*_style*/ 1) {
4379
- attr(div0, "style", /*_style*/ ctx[0]);
4869
+ function create_fragment$k(ctx) {
4870
+ let div;
4871
+ let button;
4872
+ let current;
4873
+
4874
+ button = new Button({
4875
+ props: {
4876
+ onClick: /*onClick*/ ctx[0],
4877
+ style: /*_style*/ ctx[2],
4878
+ eventName: /*clickEventName*/ ctx[1],
4879
+ $$slots: { default: [create_default_slot$1] },
4880
+ $$scope: { ctx }
4881
+ }
4882
+ });
4883
+
4884
+ return {
4885
+ c() {
4886
+ div = element("div");
4887
+ create_component(button.$$.fragment);
4888
+ attr(div, "class", "list-item svelte-1ocqru1");
4889
+ attr(div, "style", /*listItemStyle*/ ctx[3]);
4890
+ },
4891
+ m(target, anchor) {
4892
+ insert(target, div, anchor);
4893
+ mount_component(button, div, null);
4894
+ current = true;
4895
+ },
4896
+ p(ctx, [dirty]) {
4897
+ const button_changes = {};
4898
+ if (dirty & /*onClick*/ 1) button_changes.onClick = /*onClick*/ ctx[0];
4899
+ if (dirty & /*_style*/ 4) button_changes.style = /*_style*/ ctx[2];
4900
+ if (dirty & /*clickEventName*/ 2) button_changes.eventName = /*clickEventName*/ ctx[1];
4901
+
4902
+ if (dirty & /*$$scope*/ 64) {
4903
+ button_changes.$$scope = { dirty, ctx };
4380
4904
  }
4381
4905
 
4382
- if (!current || dirty & /*listItemStyle*/ 2) {
4383
- attr(div1, "style", /*listItemStyle*/ ctx[1]);
4906
+ button.$set(button_changes);
4907
+
4908
+ if (!current || dirty & /*listItemStyle*/ 8) {
4909
+ attr(div, "style", /*listItemStyle*/ ctx[3]);
4384
4910
  }
4385
4911
  },
4386
4912
  i(local) {
4387
4913
  if (current) return;
4388
- transition_in(default_slot, local);
4914
+ transition_in(button.$$.fragment, local);
4389
4915
  current = true;
4390
4916
  },
4391
4917
  o(local) {
4392
- transition_out(default_slot, local);
4918
+ transition_out(button.$$.fragment, local);
4393
4919
  current = false;
4394
4920
  },
4395
4921
  d(detaching) {
4396
- if (detaching) detach(div1);
4397
- if (default_slot) default_slot.d(detaching);
4398
- mounted = false;
4399
- dispose();
4922
+ if (detaching) detach(div);
4923
+ destroy_component(button);
4400
4924
  }
4401
4925
  };
4402
4926
  }
4403
4927
 
4404
4928
  function instance$k($$self, $$props, $$invalidate) {
4405
- let click;
4406
4929
  let listItemStyle;
4407
4930
  let { $$slots: slots = {}, $$scope } = $$props;
4408
4931
  const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
@@ -4410,7 +4933,7 @@ function instance$k($$self, $$props, $$invalidate) {
4410
4933
 
4411
4934
  const id = registerItem({
4412
4935
  onMount({ index: _index, length: _length }) {
4413
- $$invalidate(5, index = _index);
4936
+ $$invalidate(4, index = _index);
4414
4937
  }
4415
4938
  });
4416
4939
 
@@ -4423,25 +4946,15 @@ function instance$k($$self, $$props, $$invalidate) {
4423
4946
  });
4424
4947
 
4425
4948
  $$self.$$set = $$props => {
4426
- if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
4427
- if ('clickEventName' in $$props) $$invalidate(4, clickEventName = $$props.clickEventName);
4428
- if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
4949
+ if ('onClick' in $$props) $$invalidate(0, onClick = $$props.onClick);
4950
+ if ('clickEventName' in $$props) $$invalidate(1, clickEventName = $$props.clickEventName);
4951
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
4429
4952
  if ('$$scope' in $$props) $$invalidate(6, $$scope = $$props.$$scope);
4430
4953
  };
4431
4954
 
4432
4955
  $$self.$$.update = () => {
4433
- if ($$self.$$.dirty & /*clickEventName, onClick*/ 24) {
4434
- $$invalidate(2, click = () => {
4435
- if (clickEventName) {
4436
- send_event(clickEventName);
4437
- }
4438
-
4439
- execOnClickOperation(onClick);
4440
- });
4441
- }
4442
-
4443
- if ($$self.$$.dirty & /*index*/ 32) {
4444
- $$invalidate(1, listItemStyle = (() => {
4956
+ if ($$self.$$.dirty & /*index*/ 16) {
4957
+ $$invalidate(3, listItemStyle = (() => {
4445
4958
  let separatorStyleArray = [];
4446
4959
 
4447
4960
  if (separator.type === "border") {
@@ -4485,13 +4998,13 @@ function instance$k($$self, $$props, $$invalidate) {
4485
4998
  }
4486
4999
  };
4487
5000
 
4488
- return [_style, listItemStyle, click, onClick, clickEventName, index, $$scope, slots];
5001
+ return [onClick, clickEventName, _style, listItemStyle, index, slots, $$scope];
4489
5002
  }
4490
5003
 
4491
5004
  class ListItem extends SvelteComponent {
4492
5005
  constructor(options) {
4493
5006
  super();
4494
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$j);
5007
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$j);
4495
5008
  }
4496
5009
  }
4497
5010