@plaidev/karte-action-sdk 1.1.154 → 1.1.156-28004317.e22f6b82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hydrate/index.es.d.ts +4 -4
- package/dist/hydrate/index.es.js +1087 -450
- package/dist/index.es.d.ts +4 -4
- package/dist/index.es.js +1042 -482
- package/package.json +19 -19
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,
|
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 = [
|
@@ -139,13 +139,13 @@ const OnClickOperationOptions = [
|
|
139
139
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
140
140
|
/** @internal */
|
141
141
|
const Fonts = [
|
142
|
-
'Noto Sans
|
142
|
+
'Noto Sans JP',
|
143
143
|
'M PLUS Rounded 1c',
|
144
144
|
'M PLUS 1p',
|
145
145
|
'Kosugi Maru',
|
146
146
|
'Kosugi',
|
147
147
|
'BIZ UDPGothic',
|
148
|
-
'Noto Serif
|
148
|
+
'Noto Serif JP',
|
149
149
|
'BIZ UDPMincho',
|
150
150
|
'Roboto',
|
151
151
|
'Open Sans',
|
@@ -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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
2639
|
+
function create_if_block$7(ctx) {
|
2640
2640
|
let div;
|
2641
2641
|
let mounted;
|
2642
2642
|
let dispose;
|
@@ -2654,249 +2654,754 @@ function create_if_block$6(ctx) {
|
|
2654
2654
|
mounted = true;
|
2655
2655
|
}
|
2656
2656
|
},
|
2657
|
-
p: noop,
|
2657
|
+
p: noop,
|
2658
|
+
d(detaching) {
|
2659
|
+
if (detaching) detach(div);
|
2660
|
+
mounted = false;
|
2661
|
+
dispose();
|
2662
|
+
}
|
2663
|
+
};
|
2664
|
+
}
|
2665
|
+
|
2666
|
+
function create_fragment$u(ctx) {
|
2667
|
+
let if_block_anchor;
|
2668
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$7(ctx);
|
2669
|
+
|
2670
|
+
return {
|
2671
|
+
c() {
|
2672
|
+
if (if_block) if_block.c();
|
2673
|
+
if_block_anchor = empty();
|
2674
|
+
},
|
2675
|
+
m(target, anchor) {
|
2676
|
+
if (if_block) if_block.m(target, anchor);
|
2677
|
+
insert(target, if_block_anchor, anchor);
|
2678
|
+
},
|
2679
|
+
p(ctx, [dirty]) {
|
2680
|
+
if (/*backgroundOverray*/ ctx[0]) {
|
2681
|
+
if (if_block) {
|
2682
|
+
if_block.p(ctx, dirty);
|
2683
|
+
} else {
|
2684
|
+
if_block = create_if_block$7(ctx);
|
2685
|
+
if_block.c();
|
2686
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2687
|
+
}
|
2688
|
+
} else if (if_block) {
|
2689
|
+
if_block.d(1);
|
2690
|
+
if_block = null;
|
2691
|
+
}
|
2692
|
+
},
|
2693
|
+
i: noop,
|
2694
|
+
o: noop,
|
2695
|
+
d(detaching) {
|
2696
|
+
if (if_block) if_block.d(detaching);
|
2697
|
+
if (detaching) detach(if_block_anchor);
|
2698
|
+
}
|
2699
|
+
};
|
2700
|
+
}
|
2701
|
+
|
2702
|
+
function instance$u($$self, $$props, $$invalidate) {
|
2703
|
+
let { backgroundOverray = false } = $$props;
|
2704
|
+
const dispatch = createEventDispatcher();
|
2705
|
+
const click_handler = () => dispatch('click');
|
2706
|
+
|
2707
|
+
$$self.$$set = $$props => {
|
2708
|
+
if ('backgroundOverray' in $$props) $$invalidate(0, backgroundOverray = $$props.backgroundOverray);
|
2709
|
+
};
|
2710
|
+
|
2711
|
+
return [backgroundOverray, dispatch, click_handler];
|
2712
|
+
}
|
2713
|
+
|
2714
|
+
class BackgroundOverray extends SvelteComponent {
|
2715
|
+
constructor(options) {
|
2716
|
+
super();
|
2717
|
+
init(this, options, instance$u, create_fragment$u, safe_not_equal, { backgroundOverray: 0 }, add_css$r);
|
2718
|
+
}
|
2719
|
+
}
|
2720
|
+
|
2721
|
+
/* src/components/Button.svelte generated by Svelte v3.53.1 */
|
2722
|
+
|
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
|
+
}
|
2726
|
+
|
2727
|
+
// (41:0) {:else}
|
2728
|
+
function create_else_block$2(ctx) {
|
2729
|
+
let button;
|
2730
|
+
let current;
|
2731
|
+
let mounted;
|
2732
|
+
let dispose;
|
2733
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2734
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2735
|
+
|
2736
|
+
return {
|
2737
|
+
c() {
|
2738
|
+
button = element("button");
|
2739
|
+
if (default_slot) default_slot.c();
|
2740
|
+
attr(button, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kj05ao"));
|
2741
|
+
attr(button, "style", /*style*/ ctx[1]);
|
2742
|
+
},
|
2743
|
+
m(target, anchor) {
|
2744
|
+
insert(target, button, anchor);
|
2745
|
+
|
2746
|
+
if (default_slot) {
|
2747
|
+
default_slot.m(button, null);
|
2748
|
+
}
|
2749
|
+
|
2750
|
+
current = true;
|
2751
|
+
|
2752
|
+
if (!mounted) {
|
2753
|
+
dispose = listen(button, "click", /*handleClickButton*/ ctx[3]);
|
2754
|
+
mounted = true;
|
2755
|
+
}
|
2756
|
+
},
|
2757
|
+
p(ctx, dirty) {
|
2758
|
+
if (default_slot) {
|
2759
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 256)) {
|
2760
|
+
update_slot_base(
|
2761
|
+
default_slot,
|
2762
|
+
default_slot_template,
|
2763
|
+
ctx,
|
2764
|
+
/*$$scope*/ ctx[8],
|
2765
|
+
!current
|
2766
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[8])
|
2767
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[8], dirty, null),
|
2768
|
+
null
|
2769
|
+
);
|
2770
|
+
}
|
2771
|
+
}
|
2772
|
+
|
2773
|
+
if (!current || dirty & /*style*/ 2) {
|
2774
|
+
attr(button, "style", /*style*/ ctx[1]);
|
2775
|
+
}
|
2776
|
+
},
|
2777
|
+
i(local) {
|
2778
|
+
if (current) return;
|
2779
|
+
transition_in(default_slot, local);
|
2780
|
+
current = true;
|
2781
|
+
},
|
2782
|
+
o(local) {
|
2783
|
+
transition_out(default_slot, local);
|
2784
|
+
current = false;
|
2785
|
+
},
|
2786
|
+
d(detaching) {
|
2787
|
+
if (detaching) detach(button);
|
2788
|
+
if (default_slot) default_slot.d(detaching);
|
2789
|
+
mounted = false;
|
2790
|
+
dispose();
|
2791
|
+
}
|
2792
|
+
};
|
2793
|
+
}
|
2794
|
+
|
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);
|
2801
|
+
|
2802
|
+
return {
|
2803
|
+
c() {
|
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]);
|
2808
|
+
},
|
2809
|
+
m(target, anchor) {
|
2810
|
+
insert(target, div, anchor);
|
2811
|
+
|
2812
|
+
if (default_slot) {
|
2813
|
+
default_slot.m(div, null);
|
2814
|
+
}
|
2815
|
+
|
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
|
+
}
|
2832
|
+
}
|
2833
|
+
|
2834
|
+
if (!current || dirty & /*style*/ 2) {
|
2835
|
+
attr(div, "style", /*style*/ ctx[1]);
|
2836
|
+
}
|
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
|
+
},
|
2847
|
+
d(detaching) {
|
2848
|
+
if (detaching) detach(div);
|
2849
|
+
if (default_slot) default_slot.d(detaching);
|
2850
|
+
}
|
2851
|
+
};
|
2852
|
+
}
|
2853
|
+
|
2854
|
+
// (33:41)
|
2855
|
+
function create_if_block_1$2(ctx) {
|
2856
|
+
let a;
|
2857
|
+
let a_href_value;
|
2858
|
+
let a_target_value;
|
2859
|
+
let current;
|
2860
|
+
const default_slot_template = /*#slots*/ ctx[9].default;
|
2861
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[8], null);
|
2862
|
+
|
2863
|
+
return {
|
2864
|
+
c() {
|
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);
|
2871
|
+
},
|
2872
|
+
m(target, anchor) {
|
2873
|
+
insert(target, a, anchor);
|
2874
|
+
|
2875
|
+
if (default_slot) {
|
2876
|
+
default_slot.m(a, null);
|
2877
|
+
}
|
2878
|
+
|
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
|
+
);
|
2894
|
+
}
|
2895
|
+
}
|
2896
|
+
|
2897
|
+
if (!current || dirty & /*style*/ 2) {
|
2898
|
+
attr(a, "style", /*style*/ ctx[1]);
|
2899
|
+
}
|
2900
|
+
|
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);
|
2907
|
+
}
|
2908
|
+
},
|
2909
|
+
i(local) {
|
2910
|
+
if (current) return;
|
2911
|
+
transition_in(default_slot, local);
|
2912
|
+
current = true;
|
2913
|
+
},
|
2914
|
+
o(local) {
|
2915
|
+
transition_out(default_slot, local);
|
2916
|
+
current = false;
|
2917
|
+
},
|
2918
|
+
d(detaching) {
|
2919
|
+
if (detaching) detach(a);
|
2920
|
+
if (default_slot) default_slot.d(detaching);
|
2921
|
+
}
|
2922
|
+
};
|
2923
|
+
}
|
2924
|
+
|
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
|
+
},
|
2658
3277
|
d(detaching) {
|
2659
3278
|
if (detaching) detach(div);
|
2660
|
-
|
2661
|
-
dispose();
|
3279
|
+
destroy_component(button);
|
2662
3280
|
}
|
2663
3281
|
};
|
2664
3282
|
}
|
2665
3283
|
|
2666
|
-
|
2667
|
-
|
2668
|
-
let
|
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;
|
2669
3288
|
|
2670
3289
|
return {
|
2671
3290
|
c() {
|
2672
|
-
|
2673
|
-
|
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");
|
2674
3301
|
},
|
2675
3302
|
m(target, anchor) {
|
2676
|
-
|
2677
|
-
|
3303
|
+
insert(target, svg, anchor);
|
3304
|
+
append(svg, path);
|
2678
3305
|
},
|
2679
|
-
p(ctx,
|
2680
|
-
if (/*
|
2681
|
-
|
2682
|
-
if_block.p(ctx, dirty);
|
2683
|
-
} else {
|
2684
|
-
if_block = create_if_block$6(ctx);
|
2685
|
-
if_block.c();
|
2686
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2687
|
-
}
|
2688
|
-
} else if (if_block) {
|
2689
|
-
if_block.d(1);
|
2690
|
-
if_block = null;
|
3306
|
+
p(ctx, dirty) {
|
3307
|
+
if (dirty & /*closeButtonColor*/ 256) {
|
3308
|
+
attr(path, "fill", /*closeButtonColor*/ ctx[8]);
|
2691
3309
|
}
|
2692
3310
|
},
|
2693
|
-
i: noop,
|
2694
|
-
o: noop,
|
2695
3311
|
d(detaching) {
|
2696
|
-
if (
|
2697
|
-
if (detaching) detach(if_block_anchor);
|
3312
|
+
if (detaching) detach(svg);
|
2698
3313
|
}
|
2699
3314
|
};
|
2700
3315
|
}
|
2701
3316
|
|
2702
|
-
|
2703
|
-
|
2704
|
-
const dispatch = createEventDispatcher();
|
2705
|
-
const click_handler = () => dispatch('click');
|
2706
|
-
|
2707
|
-
$$self.$$set = $$props => {
|
2708
|
-
if ('backgroundOverray' in $$props) $$invalidate(0, backgroundOverray = $$props.backgroundOverray);
|
2709
|
-
};
|
2710
|
-
|
2711
|
-
return [backgroundOverray, dispatch, click_handler];
|
2712
|
-
}
|
2713
|
-
|
2714
|
-
class BackgroundOverray extends SvelteComponent {
|
2715
|
-
constructor(options) {
|
2716
|
-
super();
|
2717
|
-
init(this, options, instance$t, create_fragment$t, safe_not_equal, { backgroundOverray: 0 }, add_css$q);
|
2718
|
-
}
|
2719
|
-
}
|
2720
|
-
|
2721
|
-
/* src/components/Modal.svelte generated by Svelte v3.53.1 */
|
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}");
|
2725
|
-
}
|
2726
|
-
|
2727
|
-
// (149:0) {#if visible}
|
2728
|
-
function create_if_block$5(ctx) {
|
2729
|
-
let div1;
|
3317
|
+
// (160:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
3318
|
+
function create_default_slot$4(ctx) {
|
2730
3319
|
let t;
|
2731
|
-
let
|
2732
|
-
let div1_style_value;
|
2733
|
-
let div1_intro;
|
3320
|
+
let div;
|
2734
3321
|
let current;
|
2735
|
-
let
|
2736
|
-
|
2737
|
-
|
2738
|
-
const default_slot_template = /*#slots*/ ctx[29].default;
|
2739
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
|
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);
|
2740
3325
|
|
2741
3326
|
return {
|
2742
3327
|
c() {
|
2743
|
-
div1 = element("div");
|
2744
3328
|
if (if_block) if_block.c();
|
2745
3329
|
t = space();
|
2746
|
-
|
3330
|
+
div = element("div");
|
2747
3331
|
if (default_slot) default_slot.c();
|
2748
|
-
attr(
|
2749
|
-
attr(
|
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]] + "");
|
3332
|
+
attr(div, "class", "modal-content svelte-67dbus");
|
3333
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
2754
3334
|
},
|
2755
3335
|
m(target, anchor) {
|
2756
|
-
|
2757
|
-
|
2758
|
-
|
2759
|
-
append(div1, div0);
|
3336
|
+
if (if_block) if_block.m(target, anchor);
|
3337
|
+
insert(target, t, anchor);
|
3338
|
+
insert(target, div, anchor);
|
2760
3339
|
|
2761
3340
|
if (default_slot) {
|
2762
|
-
default_slot.m(
|
3341
|
+
default_slot.m(div, null);
|
2763
3342
|
}
|
2764
3343
|
|
2765
|
-
/*div1_binding*/ ctx[30](div1);
|
2766
3344
|
current = true;
|
2767
|
-
|
2768
|
-
if (!mounted) {
|
2769
|
-
dispose = listen(div1, "click", function () {
|
2770
|
-
if (is_function(/*click*/ ctx[15])) /*click*/ ctx[15].apply(this, arguments);
|
2771
|
-
});
|
2772
|
-
|
2773
|
-
mounted = true;
|
2774
|
-
}
|
2775
3345
|
},
|
2776
|
-
p(
|
2777
|
-
ctx
|
2778
|
-
|
2779
|
-
if (/*closable*/ ctx[14]) {
|
3346
|
+
p(ctx, dirty) {
|
3347
|
+
if (/*closable*/ ctx[19]) {
|
2780
3348
|
if (if_block) {
|
2781
3349
|
if_block.p(ctx, dirty);
|
3350
|
+
|
3351
|
+
if (dirty & /*closable*/ 524288) {
|
3352
|
+
transition_in(if_block, 1);
|
3353
|
+
}
|
2782
3354
|
} else {
|
2783
3355
|
if_block = create_if_block_1$1(ctx);
|
2784
3356
|
if_block.c();
|
2785
|
-
if_block
|
3357
|
+
transition_in(if_block, 1);
|
3358
|
+
if_block.m(t.parentNode, t);
|
2786
3359
|
}
|
2787
3360
|
} else if (if_block) {
|
2788
|
-
|
2789
|
-
|
3361
|
+
group_outros();
|
3362
|
+
|
3363
|
+
transition_out(if_block, 1, 1, () => {
|
3364
|
+
if_block = null;
|
3365
|
+
});
|
3366
|
+
|
3367
|
+
check_outros();
|
2790
3368
|
}
|
2791
3369
|
|
2792
3370
|
if (default_slot) {
|
2793
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
3371
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 536870912)) {
|
2794
3372
|
update_slot_base(
|
2795
3373
|
default_slot,
|
2796
3374
|
default_slot_template,
|
2797
3375
|
ctx,
|
2798
|
-
/*$$scope*/ ctx[
|
3376
|
+
/*$$scope*/ ctx[29],
|
2799
3377
|
!current
|
2800
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
2801
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
3378
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[29])
|
3379
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[29], dirty, null),
|
2802
3380
|
null
|
2803
3381
|
);
|
2804
3382
|
}
|
2805
3383
|
}
|
2806
3384
|
|
2807
|
-
if (!current || dirty & /*_style*/
|
2808
|
-
attr(
|
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);
|
3385
|
+
if (!current || dirty & /*_style*/ 16) {
|
3386
|
+
attr(div, "style", /*_style*/ ctx[4]);
|
2813
3387
|
}
|
2814
3388
|
},
|
2815
3389
|
i(local) {
|
2816
3390
|
if (current) return;
|
3391
|
+
transition_in(if_block);
|
2817
3392
|
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
3393
|
current = true;
|
2831
3394
|
},
|
2832
3395
|
o(local) {
|
3396
|
+
transition_out(if_block);
|
2833
3397
|
transition_out(default_slot, local);
|
2834
3398
|
current = false;
|
2835
3399
|
},
|
2836
3400
|
d(detaching) {
|
2837
|
-
if (
|
2838
|
-
if (
|
3401
|
+
if (if_block) if_block.d(detaching);
|
3402
|
+
if (detaching) detach(t);
|
3403
|
+
if (detaching) detach(div);
|
2839
3404
|
if (default_slot) default_slot.d(detaching);
|
2840
|
-
/*div1_binding*/ ctx[30](null);
|
2841
|
-
mounted = false;
|
2842
|
-
dispose();
|
2843
|
-
}
|
2844
|
-
};
|
2845
|
-
}
|
2846
|
-
|
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;
|
2855
|
-
|
2856
|
-
return {
|
2857
|
-
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] + "");
|
2871
|
-
},
|
2872
|
-
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
|
-
});
|
2881
|
-
|
2882
|
-
mounted = true;
|
2883
|
-
}
|
2884
|
-
},
|
2885
|
-
p(new_ctx, dirty) {
|
2886
|
-
ctx = new_ctx;
|
2887
|
-
|
2888
|
-
if (dirty & /*closeButtonColor*/ 4) {
|
2889
|
-
attr(path, "fill", /*closeButtonColor*/ ctx[2]);
|
2890
|
-
}
|
2891
|
-
|
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);
|
2894
|
-
}
|
2895
|
-
},
|
2896
|
-
d(detaching) {
|
2897
|
-
if (detaching) detach(button);
|
2898
|
-
mounted = false;
|
2899
|
-
dispose();
|
2900
3405
|
}
|
2901
3406
|
};
|
2902
3407
|
}
|
@@ -2911,15 +3416,15 @@ function create_fragment$s(ctx) {
|
|
2911
3416
|
|
2912
3417
|
backgroundoverray = new BackgroundOverray({
|
2913
3418
|
props: {
|
2914
|
-
backgroundOverray: /*backgroundOverray*/ ctx[
|
3419
|
+
backgroundOverray: /*backgroundOverray*/ ctx[11]
|
2915
3420
|
}
|
2916
3421
|
});
|
2917
3422
|
|
2918
3423
|
backgroundoverray.$on("click", function () {
|
2919
|
-
if (is_function(/*backgroundClick*/ ctx[
|
3424
|
+
if (is_function(/*backgroundClick*/ ctx[18])) /*backgroundClick*/ ctx[18].apply(this, arguments);
|
2920
3425
|
});
|
2921
3426
|
|
2922
|
-
let if_block = /*visible*/ ctx[
|
3427
|
+
let if_block = /*visible*/ ctx[12] && create_if_block$5(ctx);
|
2923
3428
|
|
2924
3429
|
return {
|
2925
3430
|
c() {
|
@@ -2937,7 +3442,7 @@ function create_fragment$s(ctx) {
|
|
2937
3442
|
|
2938
3443
|
if (!mounted) {
|
2939
3444
|
dispose = listen(window, "keydown", function () {
|
2940
|
-
if (is_function(/*handle_keydown*/ ctx[
|
3445
|
+
if (is_function(/*handle_keydown*/ ctx[13])) /*handle_keydown*/ ctx[13].apply(this, arguments);
|
2941
3446
|
});
|
2942
3447
|
|
2943
3448
|
mounted = true;
|
@@ -2946,14 +3451,14 @@ function create_fragment$s(ctx) {
|
|
2946
3451
|
p(new_ctx, [dirty]) {
|
2947
3452
|
ctx = new_ctx;
|
2948
3453
|
const backgroundoverray_changes = {};
|
2949
|
-
if (dirty & /*backgroundOverray*/
|
3454
|
+
if (dirty & /*backgroundOverray*/ 2048) backgroundoverray_changes.backgroundOverray = /*backgroundOverray*/ ctx[11];
|
2950
3455
|
backgroundoverray.$set(backgroundoverray_changes);
|
2951
3456
|
|
2952
|
-
if (/*visible*/ ctx[
|
3457
|
+
if (/*visible*/ ctx[12]) {
|
2953
3458
|
if (if_block) {
|
2954
3459
|
if_block.p(ctx, dirty);
|
2955
3460
|
|
2956
|
-
if (dirty & /*visible*/
|
3461
|
+
if (dirty & /*visible*/ 4096) {
|
2957
3462
|
transition_in(if_block, 1);
|
2958
3463
|
}
|
2959
3464
|
} else {
|
@@ -2995,7 +3500,6 @@ function create_fragment$s(ctx) {
|
|
2995
3500
|
}
|
2996
3501
|
|
2997
3502
|
function instance$s($$self, $$props, $$invalidate) {
|
2998
|
-
let click;
|
2999
3503
|
let close;
|
3000
3504
|
let closable;
|
3001
3505
|
let backgroundClick;
|
@@ -3008,7 +3512,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3008
3512
|
let handle_keydown;
|
3009
3513
|
let visible;
|
3010
3514
|
let $maximumZindex;
|
3011
|
-
component_subscribe($$self, maximumZindex, $$value => $$invalidate(
|
3515
|
+
component_subscribe($$self, maximumZindex, $$value => $$invalidate(20, $maximumZindex = $$value));
|
3012
3516
|
let { $$slots: slots = {}, $$scope } = $$props;
|
3013
3517
|
let { onClick = { operation: 'none', args: [] } } = $$props;
|
3014
3518
|
let { clickEventName = '' } = $$props;
|
@@ -3027,47 +3531,37 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
3027
3531
|
let modal;
|
3028
3532
|
|
3029
3533
|
onMount(() => {
|
3030
|
-
$$invalidate(
|
3534
|
+
$$invalidate(12, visible = true);
|
3031
3535
|
});
|
3032
3536
|
|
3033
3537
|
onDestroy$1(() => setPreviousFocus());
|
3034
3538
|
|
3035
|
-
function
|
3539
|
+
function div_binding($$value) {
|
3036
3540
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
3037
3541
|
modal = $$value;
|
3038
|
-
$$invalidate(
|
3542
|
+
$$invalidate(10, modal);
|
3039
3543
|
});
|
3040
3544
|
}
|
3041
3545
|
|
3042
3546
|
$$self.$$set = $$props => {
|
3043
|
-
if ('onClick' in $$props) $$invalidate(
|
3044
|
-
if ('clickEventName' in $$props) $$invalidate(
|
3045
|
-
if ('clickEventValue' in $$props) $$invalidate(
|
3046
|
-
if ('placement' in $$props) $$invalidate(
|
3047
|
-
if ('animation' in $$props) $$invalidate(
|
3048
|
-
if ('_style' in $$props) $$invalidate(
|
3049
|
-
if ('elasticity' in $$props) $$invalidate(
|
3050
|
-
if ('onClose' in $$props) $$invalidate(
|
3051
|
-
if ('closeEventName' in $$props) $$invalidate(
|
3052
|
-
if ('closeEventValue' in $$props) $$invalidate(
|
3053
|
-
if ('closeButtonColor' in $$props) $$invalidate(
|
3054
|
-
if ('_closeStyle' in $$props) $$invalidate(
|
3055
|
-
if ('$$scope' in $$props) $$invalidate(
|
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 & /*
|
3060
|
-
$$invalidate(
|
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*/
|
3080
|
-
$$invalidate(
|
3573
|
+
if ($$self.$$.dirty & /*onClose*/ 32) {
|
3574
|
+
$$invalidate(19, closable = haveFunction(onClose));
|
3081
3575
|
}
|
3082
3576
|
|
3083
|
-
if ($$self.$$.dirty & /*placement*/
|
3577
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3084
3578
|
{
|
3085
3579
|
if (placement && placement.backgroundOverlay) {
|
3086
|
-
$$invalidate(
|
3580
|
+
$$invalidate(11, backgroundOverray = placement.backgroundOverlay);
|
3087
3581
|
}
|
3088
3582
|
}
|
3089
3583
|
}
|
3090
3584
|
|
3091
|
-
if ($$self.$$.dirty & /*placement*/
|
3585
|
+
if ($$self.$$.dirty & /*placement*/ 2097152) {
|
3092
3586
|
{
|
3093
3587
|
if (placement && placement.backgroundClick) {
|
3094
|
-
$$invalidate(
|
3588
|
+
$$invalidate(23, backgroundClickFunction = placement.backgroundClick);
|
3095
3589
|
}
|
3096
3590
|
}
|
3097
3591
|
}
|
3098
3592
|
|
3099
|
-
if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/
|
3100
|
-
$$invalidate(
|
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*/
|
3110
|
-
$$invalidate(
|
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*/
|
3116
|
-
$$invalidate(
|
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*/
|
3122
|
-
$$invalidate(
|
3615
|
+
if ($$self.$$.dirty & /*elasticity*/ 4194304) {
|
3616
|
+
$$invalidate(17, overwriteElasticity = elasticity);
|
3123
3617
|
}
|
3124
3618
|
|
3125
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3126
|
-
$$invalidate(
|
3619
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
3620
|
+
$$invalidate(16, pos = getPositionStyle(overwritePosition));
|
3127
3621
|
}
|
3128
3622
|
|
3129
|
-
if ($$self.$$.dirty & /*overwritePosition*/
|
3130
|
-
$$invalidate(
|
3623
|
+
if ($$self.$$.dirty & /*overwritePosition*/ 67108864) {
|
3624
|
+
$$invalidate(15, transform = getTransform(overwritePosition));
|
3131
3625
|
}
|
3132
3626
|
|
3133
|
-
if ($$self.$$.dirty & /*overwriteMargin*/
|
3134
|
-
$$invalidate(
|
3627
|
+
if ($$self.$$.dirty & /*overwriteMargin*/ 33554432) {
|
3628
|
+
$$invalidate(14, marginStyle = getMarginStyle(overwriteMargin));
|
3135
3629
|
}
|
3136
3630
|
|
3137
|
-
if ($$self.$$.dirty & /*close, modal*/
|
3138
|
-
$$invalidate(
|
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(
|
3636
|
+
$$invalidate(10, modal = null);
|
3143
3637
|
|
3144
3638
|
// svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
|
3145
|
-
$$invalidate(
|
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
|
-
|
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:
|
3194
|
-
clickEventName:
|
3195
|
-
clickEventValue:
|
3196
|
-
placement:
|
3197
|
-
animation:
|
3198
|
-
_style:
|
3199
|
-
elasticity:
|
3200
|
-
onClose:
|
3201
|
-
closeEventName:
|
3202
|
-
closeEventValue:
|
3203
|
-
closeButtonColor:
|
3204
|
-
_closeStyle:
|
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
|
);
|
@@ -3642,7 +4135,7 @@ function add_css$n(target) {
|
|
3642
4135
|
append_styles(target, "svelte-13cs3g2", ".text-element-wrapper.svelte-13cs3g2.svelte-13cs3g2{position:relative;height:100%}.text-element.svelte-13cs3g2.svelte-13cs3g2{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-13cs3g2.svelte-13cs3g2{width:100%;height:auto}.text-direction-vertical.svelte-13cs3g2.svelte-13cs3g2{writing-mode:vertical-rl}.text-direction-vertical.svelte-13cs3g2 .text-element-inner.svelte-13cs3g2{width:auto;height:100%}.tooltip.svelte-13cs3g2.svelte-13cs3g2{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-13cs3g2.svelte-13cs3g2:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-13cs3g2.svelte-13cs3g2{display:block}.tooltip-error.svelte-13cs3g2.svelte-13cs3g2{background-color:#c00}.tooltip-error.svelte-13cs3g2.svelte-13cs3g2:before{border-bottom:7px solid #c00}");
|
3643
4136
|
}
|
3644
4137
|
|
3645
|
-
// (
|
4138
|
+
// (58:2) {#if enableCopy}
|
3646
4139
|
function create_if_block$3(ctx) {
|
3647
4140
|
let div0;
|
3648
4141
|
let t1;
|
@@ -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-
|
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
|
-
|
3889
|
-
|
3890
|
-
|
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
|
-
|
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(
|
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
|
-
|
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
|
3926
|
-
if (dirty & /*
|
3927
|
-
|
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 (
|
3942
|
-
|
4450
|
+
if (dirty & /*$$scope, text*/ 65) {
|
4451
|
+
button_changes.$$scope = { dirty, ctx };
|
3943
4452
|
}
|
3944
4453
|
|
3945
|
-
|
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(
|
4458
|
+
transition_in(button.$$.fragment, local);
|
3952
4459
|
current = true;
|
3953
4460
|
},
|
3954
4461
|
o(local) {
|
3955
|
-
transition_out(
|
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(
|
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
|
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(
|
3991
|
-
if ('eventName' in $$props) $$invalidate(
|
3992
|
-
if ('_buttonStyle' in $$props) $$invalidate(
|
3993
|
-
if ('_style' in $$props) $$invalidate(
|
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 & /*
|
3998
|
-
$$invalidate(3,
|
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:
|
4038
|
-
eventName:
|
4039
|
-
_buttonStyle:
|
4040
|
-
_style:
|
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-
|
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
|
-
|
4054
|
-
|
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-
|
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[
|
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,
|
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,
|
4085
|
-
if (dirty & /*_imageStyle*/
|
4086
|
-
attr(img, "style", /*_imageStyle*/ ctx[
|
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
|
-
|
4098
|
-
|
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
|
-
|
4102
|
-
|
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
|
4106
|
-
|
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
|
-
|
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(
|
4138
|
-
if ('eventName' in $$props) $$invalidate(
|
4139
|
-
if ('_imageStyle' in $$props) $$invalidate(
|
4140
|
-
if ('_style' in $$props) $$invalidate(
|
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,
|
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:
|
4161
|
-
eventName:
|
4162
|
-
_imageStyle:
|
4163
|
-
_style:
|
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-
|
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
|
-
|
4324
|
-
|
4325
|
-
let div0;
|
4821
|
+
// (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
|
4822
|
+
function create_default_slot$1(ctx) {
|
4326
4823
|
let current;
|
4327
|
-
|
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(
|
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(
|
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
|
+
}
|
4868
|
+
|
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
|
+
});
|
4377
4883
|
|
4378
|
-
|
4379
|
-
|
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
|
-
|
4383
|
-
|
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(
|
4914
|
+
transition_in(button.$$.fragment, local);
|
4389
4915
|
current = true;
|
4390
4916
|
},
|
4391
4917
|
o(local) {
|
4392
|
-
transition_out(
|
4918
|
+
transition_out(button.$$.fragment, local);
|
4393
4919
|
current = false;
|
4394
4920
|
},
|
4395
4921
|
d(detaching) {
|
4396
|
-
if (detaching) detach(
|
4397
|
-
|
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(
|
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(
|
4427
|
-
if ('clickEventName' in $$props) $$invalidate(
|
4428
|
-
if ('_style' in $$props) $$invalidate(
|
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 & /*
|
4434
|
-
$$invalidate(
|
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 [
|
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:
|
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
|
|
@@ -5102,7 +5615,7 @@ function get_each_context$5(ctx, list, i) {
|
|
5102
5615
|
return child_ctx;
|
5103
5616
|
}
|
5104
5617
|
|
5105
|
-
// (
|
5618
|
+
// (89:2) {#each _options as option, i}
|
5106
5619
|
function create_each_block$5(ctx) {
|
5107
5620
|
let label;
|
5108
5621
|
let input;
|
@@ -5182,6 +5695,9 @@ function create_each_block$5(ctx) {
|
|
5182
5695
|
|
5183
5696
|
function create_fragment$f(ctx) {
|
5184
5697
|
let div;
|
5698
|
+
let link;
|
5699
|
+
let link_href_value;
|
5700
|
+
let t;
|
5185
5701
|
let each_value = /*_options*/ ctx[4];
|
5186
5702
|
let each_blocks = [];
|
5187
5703
|
|
@@ -5192,22 +5708,32 @@ function create_fragment$f(ctx) {
|
|
5192
5708
|
return {
|
5193
5709
|
c() {
|
5194
5710
|
div = element("div");
|
5711
|
+
link = element("link");
|
5712
|
+
t = space();
|
5195
5713
|
|
5196
5714
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5197
5715
|
each_blocks[i].c();
|
5198
5716
|
}
|
5199
5717
|
|
5718
|
+
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`);
|
5719
|
+
attr(link, "rel", "stylesheet");
|
5200
5720
|
attr(div, "class", "radio-buttons svelte-17s08g");
|
5201
5721
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
5202
5722
|
},
|
5203
5723
|
m(target, anchor) {
|
5204
5724
|
insert(target, div, anchor);
|
5725
|
+
append(div, link);
|
5726
|
+
append(div, t);
|
5205
5727
|
|
5206
5728
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5207
5729
|
each_blocks[i].m(div, null);
|
5208
5730
|
}
|
5209
5731
|
},
|
5210
5732
|
p(ctx, [dirty]) {
|
5733
|
+
if (dirty & /*_options*/ 16 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[4].join('')}`)) {
|
5734
|
+
attr(link, "href", link_href_value);
|
5735
|
+
}
|
5736
|
+
|
5211
5737
|
if (dirty & /*_textStyle, _options, buttonStyle, name, _value, handleChange*/ 189) {
|
5212
5738
|
each_value = /*_options*/ ctx[4];
|
5213
5739
|
let i;
|
@@ -5366,7 +5892,7 @@ function get_each_context$4(ctx, list, i) {
|
|
5366
5892
|
return child_ctx;
|
5367
5893
|
}
|
5368
5894
|
|
5369
|
-
// (
|
5895
|
+
// (99:10) {:else}
|
5370
5896
|
function create_else_block(ctx) {
|
5371
5897
|
let t;
|
5372
5898
|
|
@@ -5386,7 +5912,7 @@ function create_else_block(ctx) {
|
|
5386
5912
|
};
|
5387
5913
|
}
|
5388
5914
|
|
5389
|
-
// (
|
5915
|
+
// (97:10) {#if option}
|
5390
5916
|
function create_if_block$2(ctx) {
|
5391
5917
|
let t_value = /*option*/ ctx[18] + "";
|
5392
5918
|
let t;
|
@@ -5407,7 +5933,7 @@ function create_if_block$2(ctx) {
|
|
5407
5933
|
};
|
5408
5934
|
}
|
5409
5935
|
|
5410
|
-
// (
|
5936
|
+
// (95:6) {#each _options as option, i}
|
5411
5937
|
function create_each_block$4(ctx) {
|
5412
5938
|
let option;
|
5413
5939
|
let t;
|
@@ -5467,8 +5993,11 @@ function create_each_block$4(ctx) {
|
|
5467
5993
|
|
5468
5994
|
function create_fragment$e(ctx) {
|
5469
5995
|
let div1;
|
5996
|
+
let link;
|
5997
|
+
let link_href_value;
|
5998
|
+
let t0;
|
5470
5999
|
let select;
|
5471
|
-
let
|
6000
|
+
let t1;
|
5472
6001
|
let div0;
|
5473
6002
|
let mounted;
|
5474
6003
|
let dispose;
|
@@ -5482,14 +6011,18 @@ function create_fragment$e(ctx) {
|
|
5482
6011
|
return {
|
5483
6012
|
c() {
|
5484
6013
|
div1 = element("div");
|
6014
|
+
link = element("link");
|
6015
|
+
t0 = space();
|
5485
6016
|
select = element("select");
|
5486
6017
|
|
5487
6018
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5488
6019
|
each_blocks[i].c();
|
5489
6020
|
}
|
5490
6021
|
|
5491
|
-
|
6022
|
+
t1 = space();
|
5492
6023
|
div0 = element("div");
|
6024
|
+
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${[/*placeholder*/ ctx[0], .../*_options*/ ctx[4]].join('')}`);
|
6025
|
+
attr(link, "rel", "stylesheet");
|
5493
6026
|
attr(select, "class", "select-select svelte-1n4ag74");
|
5494
6027
|
attr(select, "style", /*style*/ ctx[3]);
|
5495
6028
|
attr(div0, "class", "select-icon svelte-1n4ag74");
|
@@ -5498,13 +6031,15 @@ function create_fragment$e(ctx) {
|
|
5498
6031
|
},
|
5499
6032
|
m(target, anchor) {
|
5500
6033
|
insert(target, div1, anchor);
|
6034
|
+
append(div1, link);
|
6035
|
+
append(div1, t0);
|
5501
6036
|
append(div1, select);
|
5502
6037
|
|
5503
6038
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5504
6039
|
each_blocks[i].m(select, null);
|
5505
6040
|
}
|
5506
6041
|
|
5507
|
-
append(div1,
|
6042
|
+
append(div1, t1);
|
5508
6043
|
append(div1, div0);
|
5509
6044
|
|
5510
6045
|
if (!mounted) {
|
@@ -5513,6 +6048,10 @@ function create_fragment$e(ctx) {
|
|
5513
6048
|
}
|
5514
6049
|
},
|
5515
6050
|
p(ctx, [dirty]) {
|
6051
|
+
if (dirty & /*placeholder, _options*/ 17 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${[/*placeholder*/ ctx[0], .../*_options*/ ctx[4]].join('')}`)) {
|
6052
|
+
attr(link, "href", link_href_value);
|
6053
|
+
}
|
6054
|
+
|
5516
6055
|
if (dirty & /*_options, _value, placeholder*/ 19) {
|
5517
6056
|
each_value = /*_options*/ ctx[4];
|
5518
6057
|
let i;
|
@@ -5697,7 +6236,7 @@ function get_each_context$3(ctx, list, i) {
|
|
5697
6236
|
return child_ctx;
|
5698
6237
|
}
|
5699
6238
|
|
5700
|
-
// (
|
6239
|
+
// (95:2) {#each _options as option, i}
|
5701
6240
|
function create_each_block$3(ctx) {
|
5702
6241
|
let label;
|
5703
6242
|
let input;
|
@@ -5793,6 +6332,9 @@ function create_each_block$3(ctx) {
|
|
5793
6332
|
|
5794
6333
|
function create_fragment$d(ctx) {
|
5795
6334
|
let div;
|
6335
|
+
let link;
|
6336
|
+
let link_href_value;
|
6337
|
+
let t;
|
5796
6338
|
let each_value = /*_options*/ ctx[3];
|
5797
6339
|
let each_blocks = [];
|
5798
6340
|
|
@@ -5803,22 +6345,32 @@ function create_fragment$d(ctx) {
|
|
5803
6345
|
return {
|
5804
6346
|
c() {
|
5805
6347
|
div = element("div");
|
6348
|
+
link = element("link");
|
6349
|
+
t = space();
|
5806
6350
|
|
5807
6351
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5808
6352
|
each_blocks[i].c();
|
5809
6353
|
}
|
5810
6354
|
|
6355
|
+
attr(link, "href", link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`);
|
6356
|
+
attr(link, "rel", "stylesheet");
|
5811
6357
|
attr(div, "class", "check-boxes svelte-o1ztcf");
|
5812
6358
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
5813
6359
|
},
|
5814
6360
|
m(target, anchor) {
|
5815
6361
|
insert(target, div, anchor);
|
6362
|
+
append(div, link);
|
6363
|
+
append(div, t);
|
5816
6364
|
|
5817
6365
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5818
6366
|
each_blocks[i].m(div, null);
|
5819
6367
|
}
|
5820
6368
|
},
|
5821
6369
|
p(ctx, [dirty]) {
|
6370
|
+
if (dirty & /*_options*/ 8 && link_href_value !== (link_href_value = `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=${/*_options*/ ctx[3].join('')}`)) {
|
6371
|
+
attr(link, "href", link_href_value);
|
6372
|
+
}
|
6373
|
+
|
5822
6374
|
if (dirty & /*_textStyle, _options, isCheckedArray, styleVariables, name, handleChange*/ 189) {
|
5823
6375
|
each_value = /*_options*/ ctx[3];
|
5824
6376
|
let i;
|
@@ -5982,7 +6534,7 @@ function get_each_context$2(ctx, list, i) {
|
|
5982
6534
|
return child_ctx;
|
5983
6535
|
}
|
5984
6536
|
|
5985
|
-
// (
|
6537
|
+
// (52:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
5986
6538
|
function create_each_block$2(ctx) {
|
5987
6539
|
let div;
|
5988
6540
|
let t0_value = /*i*/ ctx[11] + "";
|
@@ -6031,6 +6583,8 @@ function create_each_block$2(ctx) {
|
|
6031
6583
|
|
6032
6584
|
function create_fragment$c(ctx) {
|
6033
6585
|
let div;
|
6586
|
+
let link;
|
6587
|
+
let t;
|
6034
6588
|
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
|
6035
6589
|
let each_blocks = [];
|
6036
6590
|
|
@@ -6041,15 +6595,21 @@ function create_fragment$c(ctx) {
|
|
6041
6595
|
return {
|
6042
6596
|
c() {
|
6043
6597
|
div = element("div");
|
6598
|
+
link = element("link");
|
6599
|
+
t = space();
|
6044
6600
|
|
6045
6601
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6046
6602
|
each_blocks[i].c();
|
6047
6603
|
}
|
6048
6604
|
|
6605
|
+
attr(link, "href", `https://fonts.googleapis.com/css2?${getGoogleFontsParam()}&display=swap&text=0123456789`);
|
6606
|
+
attr(link, "rel", "stylesheet");
|
6049
6607
|
attr(div, "class", "rating-buttons svelte-176k37j");
|
6050
6608
|
},
|
6051
6609
|
m(target, anchor) {
|
6052
6610
|
insert(target, div, anchor);
|
6611
|
+
append(div, link);
|
6612
|
+
append(div, t);
|
6053
6613
|
|
6054
6614
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
6055
6615
|
each_blocks[i].m(div, null);
|
@@ -6096,8 +6656,8 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
6096
6656
|
let { name = '' } = $$props;
|
6097
6657
|
let { required = false } = $$props;
|
6098
6658
|
let { count = 5 } = $$props;
|
6099
|
-
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow:
|
6100
|
-
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px
|
6659
|
+
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: 0px 0px 16px 0px rgba(0, 16, 14, 0);' } = $$props;
|
6660
|
+
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
|
6101
6661
|
const { path: statePath } = getStateItemContext();
|
6102
6662
|
|
6103
6663
|
const value = registerInput({
|