@plaidev/karte-action-sdk 1.1.119-27929495.c92443f3 → 1.1.119-27930513.338a563d
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +168 -46
- package/dist/index.es.js +125 -35
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import 'svelte/easing';
|
3
|
-
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal } from 'svelte/internal';
|
3
|
+
import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, null_to_empty, src_url_equal, set_style } from 'svelte/internal';
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
5
5
|
|
6
6
|
/** @internal */
|
@@ -2153,7 +2153,7 @@ function add_css$m(target) {
|
|
2153
2153
|
}
|
2154
2154
|
|
2155
2155
|
// (23:0) {#if $state === path}
|
2156
|
-
function create_if_block$
|
2156
|
+
function create_if_block$6(ctx) {
|
2157
2157
|
let div;
|
2158
2158
|
let t;
|
2159
2159
|
let current;
|
@@ -2228,7 +2228,7 @@ function create_if_block$5(ctx) {
|
|
2228
2228
|
function create_fragment$p(ctx) {
|
2229
2229
|
let if_block_anchor;
|
2230
2230
|
let current;
|
2231
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
2231
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$6(ctx);
|
2232
2232
|
|
2233
2233
|
return {
|
2234
2234
|
c() {
|
@@ -2253,7 +2253,7 @@ function create_fragment$p(ctx) {
|
|
2253
2253
|
transition_in(if_block, 1);
|
2254
2254
|
}
|
2255
2255
|
} else {
|
2256
|
-
if_block = create_if_block$
|
2256
|
+
if_block = create_if_block$6(ctx);
|
2257
2257
|
if_block.c();
|
2258
2258
|
transition_in(if_block, 1);
|
2259
2259
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -2327,7 +2327,7 @@ function add_css$l(target) {
|
|
2327
2327
|
}
|
2328
2328
|
|
2329
2329
|
// (9:0) {#if backgroundOverray}
|
2330
|
-
function create_if_block$
|
2330
|
+
function create_if_block$5(ctx) {
|
2331
2331
|
let div;
|
2332
2332
|
let mounted;
|
2333
2333
|
let dispose;
|
@@ -2364,7 +2364,7 @@ function create_if_block$4(ctx) {
|
|
2364
2364
|
|
2365
2365
|
function create_fragment$o(ctx) {
|
2366
2366
|
let if_block_anchor;
|
2367
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
2367
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$5(ctx);
|
2368
2368
|
|
2369
2369
|
return {
|
2370
2370
|
c() {
|
@@ -2384,7 +2384,7 @@ function create_fragment$o(ctx) {
|
|
2384
2384
|
if (if_block) {
|
2385
2385
|
if_block.p(ctx, dirty);
|
2386
2386
|
} else {
|
2387
|
-
if_block = create_if_block$
|
2387
|
+
if_block = create_if_block$5(ctx);
|
2388
2388
|
if_block.c();
|
2389
2389
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2390
2390
|
}
|
@@ -2428,7 +2428,7 @@ function add_css$k(target) {
|
|
2428
2428
|
}
|
2429
2429
|
|
2430
2430
|
// (142:0) {#if visible}
|
2431
|
-
function create_if_block$
|
2431
|
+
function create_if_block$4(ctx) {
|
2432
2432
|
let div1;
|
2433
2433
|
let t;
|
2434
2434
|
let div0;
|
@@ -2671,7 +2671,7 @@ function create_fragment$n(ctx) {
|
|
2671
2671
|
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
2672
2672
|
});
|
2673
2673
|
|
2674
|
-
let if_block = /*visible*/ ctx[6] && create_if_block$
|
2674
|
+
let if_block = /*visible*/ ctx[6] && create_if_block$4(ctx);
|
2675
2675
|
|
2676
2676
|
return {
|
2677
2677
|
c() {
|
@@ -2715,7 +2715,7 @@ function create_fragment$n(ctx) {
|
|
2715
2715
|
transition_in(if_block, 1);
|
2716
2716
|
}
|
2717
2717
|
} else {
|
2718
|
-
if_block = create_if_block$
|
2718
|
+
if_block = create_if_block$4(ctx);
|
2719
2719
|
if_block.c();
|
2720
2720
|
transition_in(if_block, 1);
|
2721
2721
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -3844,7 +3844,7 @@ function create_else_block$1(ctx) {
|
|
3844
3844
|
}
|
3845
3845
|
|
3846
3846
|
// (10:2) {#if item.match(regexp)}
|
3847
|
-
function create_if_block$
|
3847
|
+
function create_if_block$3(ctx) {
|
3848
3848
|
let br;
|
3849
3849
|
|
3850
3850
|
return {
|
@@ -3872,7 +3872,7 @@ function create_each_block$4(ctx) {
|
|
3872
3872
|
function select_block_type(ctx, dirty) {
|
3873
3873
|
if (dirty & /*items*/ 1) show_if = null;
|
3874
3874
|
if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
|
3875
|
-
if (show_if) return create_if_block$
|
3875
|
+
if (show_if) return create_if_block$3;
|
3876
3876
|
return create_else_block$1;
|
3877
3877
|
}
|
3878
3878
|
|
@@ -5431,7 +5431,7 @@ class FormTextarea extends SvelteComponent {
|
|
5431
5431
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5432
5432
|
|
5433
5433
|
function add_css$7(target) {
|
5434
|
-
append_styles(target, "svelte-
|
5434
|
+
append_styles(target, "svelte-1574x6a", ".radio-buttons.svelte-1574x6a{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1574x6a{font-size:12px;cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1574x6a{appearance:none;margin:0;width:1.3em;height:1.3em;box-sizing:border-box;border-radius:0.7em;position:relative;background-color:rgba(0, 16, 14, 0.06);;;cursor:pointer}.radio-button-input.svelte-1574x6a:checked{border:solid 0.4em #2aab9f;background-color:#fff;box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1574x6a{margin-left:0.4em}");
|
5435
5435
|
}
|
5436
5436
|
|
5437
5437
|
function get_each_context$3(ctx, list, i) {
|
@@ -5448,6 +5448,7 @@ function create_each_block$3(ctx) {
|
|
5448
5448
|
let input_value_value;
|
5449
5449
|
let input_checked_value;
|
5450
5450
|
let t0;
|
5451
|
+
let span;
|
5451
5452
|
let t1_value = /*option*/ ctx[8] + "";
|
5452
5453
|
let t1;
|
5453
5454
|
let t2;
|
@@ -5459,31 +5460,39 @@ function create_each_block$3(ctx) {
|
|
5459
5460
|
label = element("label");
|
5460
5461
|
input = element("input");
|
5461
5462
|
t0 = space();
|
5463
|
+
span = element("span");
|
5462
5464
|
t1 = text(t1_value);
|
5463
5465
|
t2 = space();
|
5464
5466
|
this.h();
|
5465
5467
|
},
|
5466
5468
|
l(nodes) {
|
5467
|
-
label = claim_element(nodes, "LABEL", {});
|
5469
|
+
label = claim_element(nodes, "LABEL", { class: true });
|
5468
5470
|
var label_nodes = children(label);
|
5469
|
-
input = claim_element(label_nodes, "INPUT", { type: true, name: true });
|
5471
|
+
input = claim_element(label_nodes, "INPUT", { type: true, class: true, name: true });
|
5470
5472
|
t0 = claim_space(label_nodes);
|
5471
|
-
|
5473
|
+
span = claim_element(label_nodes, "SPAN", { class: true });
|
5474
|
+
var span_nodes = children(span);
|
5475
|
+
t1 = claim_text(span_nodes, t1_value);
|
5476
|
+
span_nodes.forEach(detach);
|
5472
5477
|
t2 = claim_space(label_nodes);
|
5473
5478
|
label_nodes.forEach(detach);
|
5474
5479
|
this.h();
|
5475
5480
|
},
|
5476
5481
|
h() {
|
5477
5482
|
attr(input, "type", "radio");
|
5483
|
+
attr(input, "class", "radio-button-input svelte-1574x6a");
|
5478
5484
|
attr(input, "name", /*name*/ ctx[0]);
|
5479
5485
|
input.value = input_value_value = /*option*/ ctx[8];
|
5480
5486
|
input.checked = input_checked_value = /*option*/ ctx[8] === /*_value*/ ctx[1];
|
5487
|
+
attr(span, "class", "radio-button-text svelte-1574x6a");
|
5488
|
+
attr(label, "class", "radio-button svelte-1574x6a");
|
5481
5489
|
},
|
5482
5490
|
m(target, anchor) {
|
5483
5491
|
insert_hydration(target, label, anchor);
|
5484
5492
|
append_hydration(label, input);
|
5485
5493
|
append_hydration(label, t0);
|
5486
|
-
append_hydration(label,
|
5494
|
+
append_hydration(label, span);
|
5495
|
+
append_hydration(span, t1);
|
5487
5496
|
append_hydration(label, t2);
|
5488
5497
|
|
5489
5498
|
if (!mounted) {
|
@@ -5547,7 +5556,7 @@ function create_fragment$7(ctx) {
|
|
5547
5556
|
this.h();
|
5548
5557
|
},
|
5549
5558
|
h() {
|
5550
|
-
attr(div, "class", "radio-buttons svelte-
|
5559
|
+
attr(div, "class", "radio-buttons svelte-1574x6a");
|
5551
5560
|
},
|
5552
5561
|
m(target, anchor) {
|
5553
5562
|
insert_hydration(target, div, anchor);
|
@@ -5642,7 +5651,7 @@ class FormRadioButtons extends SvelteComponent {
|
|
5642
5651
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5643
5652
|
|
5644
5653
|
function add_css$6(target) {
|
5645
|
-
append_styles(target, "svelte-
|
5654
|
+
append_styles(target, "svelte-1esvjlb", ".select-wrapper.svelte-1esvjlb{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;position:relative\n}.select-select.svelte-1esvjlb{position:relative;font-size:12px;appearance:none;border:solid 2px #ccc;border-radius:6px;padding:0.8em 1.6em 0.8em 0.8em;width:100%}.select-select.svelte-1esvjlb:focus{outline:none;border-color:#2aab9f}.select-icon.svelte-1esvjlb{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px #666;border-top:solid 2px #666;transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
|
5646
5655
|
}
|
5647
5656
|
|
5648
5657
|
function get_each_context$2(ctx, list, i) {
|
@@ -5652,7 +5661,7 @@ function get_each_context$2(ctx, list, i) {
|
|
5652
5661
|
return child_ctx;
|
5653
5662
|
}
|
5654
5663
|
|
5655
|
-
// (
|
5664
|
+
// (29:10) {:else}
|
5656
5665
|
function create_else_block(ctx) {
|
5657
5666
|
let t;
|
5658
5667
|
|
@@ -5673,8 +5682,8 @@ function create_else_block(ctx) {
|
|
5673
5682
|
};
|
5674
5683
|
}
|
5675
5684
|
|
5676
|
-
// (
|
5677
|
-
function create_if_block$
|
5685
|
+
// (27:10) {#if option}
|
5686
|
+
function create_if_block$2(ctx) {
|
5678
5687
|
let t_value = /*option*/ ctx[6] + "";
|
5679
5688
|
let t;
|
5680
5689
|
|
@@ -5697,14 +5706,14 @@ function create_if_block$1(ctx) {
|
|
5697
5706
|
};
|
5698
5707
|
}
|
5699
5708
|
|
5700
|
-
// (
|
5709
|
+
// (25:6) {#each _options as option, i}
|
5701
5710
|
function create_each_block$2(ctx) {
|
5702
5711
|
let option;
|
5703
5712
|
let t;
|
5704
5713
|
let option_value_value;
|
5705
5714
|
|
5706
5715
|
function select_block_type(ctx, dirty) {
|
5707
|
-
if (/*option*/ ctx[6]) return create_if_block$
|
5716
|
+
if (/*option*/ ctx[6]) return create_if_block$2;
|
5708
5717
|
return create_else_block;
|
5709
5718
|
}
|
5710
5719
|
|
@@ -5761,8 +5770,11 @@ function create_each_block$2(ctx) {
|
|
5761
5770
|
}
|
5762
5771
|
|
5763
5772
|
function create_fragment$6(ctx) {
|
5764
|
-
let
|
5773
|
+
let div2;
|
5774
|
+
let div1;
|
5765
5775
|
let select;
|
5776
|
+
let t;
|
5777
|
+
let div0;
|
5766
5778
|
let mounted;
|
5767
5779
|
let dispose;
|
5768
5780
|
let each_value = /*_options*/ ctx[0];
|
@@ -5774,19 +5786,24 @@ function create_fragment$6(ctx) {
|
|
5774
5786
|
|
5775
5787
|
return {
|
5776
5788
|
c() {
|
5777
|
-
|
5789
|
+
div2 = element("div");
|
5790
|
+
div1 = element("div");
|
5778
5791
|
select = element("select");
|
5779
5792
|
|
5780
5793
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5781
5794
|
each_blocks[i].c();
|
5782
5795
|
}
|
5783
5796
|
|
5797
|
+
t = space();
|
5798
|
+
div0 = element("div");
|
5784
5799
|
this.h();
|
5785
5800
|
},
|
5786
5801
|
l(nodes) {
|
5787
|
-
|
5788
|
-
var
|
5789
|
-
|
5802
|
+
div2 = claim_element(nodes, "DIV", { class: true });
|
5803
|
+
var div2_nodes = children(div2);
|
5804
|
+
div1 = claim_element(div2_nodes, "DIV", { class: true });
|
5805
|
+
var div1_nodes = children(div1);
|
5806
|
+
select = claim_element(div1_nodes, "SELECT", { class: true });
|
5790
5807
|
var select_nodes = children(select);
|
5791
5808
|
|
5792
5809
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
@@ -5794,20 +5811,31 @@ function create_fragment$6(ctx) {
|
|
5794
5811
|
}
|
5795
5812
|
|
5796
5813
|
select_nodes.forEach(detach);
|
5797
|
-
|
5814
|
+
t = claim_space(div1_nodes);
|
5815
|
+
div0 = claim_element(div1_nodes, "DIV", { class: true });
|
5816
|
+
children(div0).forEach(detach);
|
5817
|
+
div1_nodes.forEach(detach);
|
5818
|
+
div2_nodes.forEach(detach);
|
5798
5819
|
this.h();
|
5799
5820
|
},
|
5800
5821
|
h() {
|
5801
|
-
attr(
|
5822
|
+
attr(select, "class", "select-select svelte-1esvjlb");
|
5823
|
+
attr(div0, "class", "select-icon svelte-1esvjlb");
|
5824
|
+
attr(div1, "class", "select");
|
5825
|
+
attr(div2, "class", "select-wrapper svelte-1esvjlb");
|
5802
5826
|
},
|
5803
5827
|
m(target, anchor) {
|
5804
|
-
insert_hydration(target,
|
5805
|
-
append_hydration(
|
5828
|
+
insert_hydration(target, div2, anchor);
|
5829
|
+
append_hydration(div2, div1);
|
5830
|
+
append_hydration(div1, select);
|
5806
5831
|
|
5807
5832
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5808
5833
|
each_blocks[i].m(select, null);
|
5809
5834
|
}
|
5810
5835
|
|
5836
|
+
append_hydration(div1, t);
|
5837
|
+
append_hydration(div1, div0);
|
5838
|
+
|
5811
5839
|
if (!mounted) {
|
5812
5840
|
dispose = listen(select, "change", /*handleChange*/ ctx[1]);
|
5813
5841
|
mounted = true;
|
@@ -5840,7 +5868,7 @@ function create_fragment$6(ctx) {
|
|
5840
5868
|
i: noop,
|
5841
5869
|
o: noop,
|
5842
5870
|
d(detaching) {
|
5843
|
-
if (detaching) detach(
|
5871
|
+
if (detaching) detach(div2);
|
5844
5872
|
destroy_each(each_blocks, detaching);
|
5845
5873
|
mounted = false;
|
5846
5874
|
dispose();
|
@@ -5892,7 +5920,7 @@ class FormSelect extends SvelteComponent {
|
|
5892
5920
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5893
5921
|
|
5894
5922
|
function add_css$5(target) {
|
5895
|
-
append_styles(target, "svelte-
|
5923
|
+
append_styles(target, "svelte-1g004f9", ".check-boxes.svelte-1g004f9{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-1g004f9{display:flex;align-items:center;font-size:12px;height:1.7em;position:relative;cursor:pointer}.check-box-input.svelte-1g004f9{width:0;height:0;margin:0}.check-box-check.svelte-1g004f9{display:inline-flex;background-color:rgba(0, 16, 14, 0.06);width:1.3em;height:1.3em;border-radius:0.3em;justify-content:center;align-items:center}.check-box-check._checked.svelte-1g004f9{box-shadow:0 4px 8px -2px rgb(0 16 14 / 31%)}.check-box-text.svelte-1g004f9{margin-left:0.5em}.check-box-icon.svelte-1g004f9{display:inline-block;width:12px;height:12px}.check-box-icon-inner.svelte-1g004f9{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:#000}");
|
5896
5924
|
}
|
5897
5925
|
|
5898
5926
|
function get_each_context$1(ctx, list, i) {
|
@@ -5902,48 +5930,118 @@ function get_each_context$1(ctx, list, i) {
|
|
5902
5930
|
return child_ctx;
|
5903
5931
|
}
|
5904
5932
|
|
5933
|
+
// (34:8) {#if isCheckedArray[i]}
|
5934
|
+
function create_if_block$1(ctx) {
|
5935
|
+
let span1;
|
5936
|
+
let span0;
|
5937
|
+
|
5938
|
+
return {
|
5939
|
+
c() {
|
5940
|
+
span1 = element("span");
|
5941
|
+
span0 = element("span");
|
5942
|
+
this.h();
|
5943
|
+
},
|
5944
|
+
l(nodes) {
|
5945
|
+
span1 = claim_element(nodes, "SPAN", { class: true, style: true });
|
5946
|
+
var span1_nodes = children(span1);
|
5947
|
+
span0 = claim_element(span1_nodes, "SPAN", { class: true, style: true });
|
5948
|
+
children(span0).forEach(detach);
|
5949
|
+
span1_nodes.forEach(detach);
|
5950
|
+
this.h();
|
5951
|
+
},
|
5952
|
+
h() {
|
5953
|
+
attr(span0, "class", "check-box-icon-inner svelte-1g004f9");
|
5954
|
+
set_style(span0, "border-color", "#fff");
|
5955
|
+
attr(span1, "class", "check-box-icon svelte-1g004f9");
|
5956
|
+
set_style(span1, "width", "0.9em");
|
5957
|
+
set_style(span1, "height", "0.9em");
|
5958
|
+
},
|
5959
|
+
m(target, anchor) {
|
5960
|
+
insert_hydration(target, span1, anchor);
|
5961
|
+
append_hydration(span1, span0);
|
5962
|
+
},
|
5963
|
+
d(detaching) {
|
5964
|
+
if (detaching) detach(span1);
|
5965
|
+
}
|
5966
|
+
};
|
5967
|
+
}
|
5968
|
+
|
5905
5969
|
// (30:2) {#each _options as option, i}
|
5906
5970
|
function create_each_block$1(ctx) {
|
5907
5971
|
let label;
|
5908
5972
|
let input;
|
5909
5973
|
let input_checked_value;
|
5910
5974
|
let t0;
|
5911
|
-
let
|
5975
|
+
let span0;
|
5976
|
+
let span0_class_value;
|
5977
|
+
let span0_style_value;
|
5912
5978
|
let t1;
|
5979
|
+
let span1;
|
5980
|
+
let t2_value = /*option*/ ctx[8] + "";
|
5913
5981
|
let t2;
|
5982
|
+
let t3;
|
5914
5983
|
let mounted;
|
5915
5984
|
let dispose;
|
5985
|
+
let if_block = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]] && create_if_block$1();
|
5916
5986
|
|
5917
5987
|
return {
|
5918
5988
|
c() {
|
5919
5989
|
label = element("label");
|
5920
5990
|
input = element("input");
|
5921
5991
|
t0 = space();
|
5922
|
-
|
5923
|
-
|
5992
|
+
span0 = element("span");
|
5993
|
+
if (if_block) if_block.c();
|
5994
|
+
t1 = space();
|
5995
|
+
span1 = element("span");
|
5996
|
+
t2 = text(t2_value);
|
5997
|
+
t3 = space();
|
5924
5998
|
this.h();
|
5925
5999
|
},
|
5926
6000
|
l(nodes) {
|
5927
|
-
label = claim_element(nodes, "LABEL", {});
|
6001
|
+
label = claim_element(nodes, "LABEL", { class: true });
|
5928
6002
|
var label_nodes = children(label);
|
5929
|
-
input = claim_element(label_nodes, "INPUT", { type: true, name: true });
|
6003
|
+
input = claim_element(label_nodes, "INPUT", { class: true, type: true, name: true });
|
5930
6004
|
t0 = claim_space(label_nodes);
|
5931
|
-
|
5932
|
-
|
6005
|
+
span0 = claim_element(label_nodes, "SPAN", { class: true, style: true });
|
6006
|
+
var span0_nodes = children(span0);
|
6007
|
+
if (if_block) if_block.l(span0_nodes);
|
6008
|
+
span0_nodes.forEach(detach);
|
6009
|
+
t1 = claim_space(label_nodes);
|
6010
|
+
span1 = claim_element(label_nodes, "SPAN", { class: true });
|
6011
|
+
var span1_nodes = children(span1);
|
6012
|
+
t2 = claim_text(span1_nodes, t2_value);
|
6013
|
+
span1_nodes.forEach(detach);
|
6014
|
+
t3 = claim_space(label_nodes);
|
5933
6015
|
label_nodes.forEach(detach);
|
5934
6016
|
this.h();
|
5935
6017
|
},
|
5936
6018
|
h() {
|
6019
|
+
attr(input, "class", "check-box-input svelte-1g004f9");
|
5937
6020
|
attr(input, "type", "checkbox");
|
5938
6021
|
attr(input, "name", /*name*/ ctx[0]);
|
5939
6022
|
input.checked = input_checked_value = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]];
|
6023
|
+
|
6024
|
+
attr(span0, "class", span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
6025
|
+
? ' _checked'
|
6026
|
+
: ''}`) + " svelte-1g004f9"));
|
6027
|
+
|
6028
|
+
attr(span0, "style", span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
6029
|
+
? 'background-color: #2aab9f;'
|
6030
|
+
: ''}`);
|
6031
|
+
|
6032
|
+
attr(span1, "class", "check-box-text svelte-1g004f9");
|
6033
|
+
attr(label, "class", "check-box svelte-1g004f9");
|
5940
6034
|
},
|
5941
6035
|
m(target, anchor) {
|
5942
6036
|
insert_hydration(target, label, anchor);
|
5943
6037
|
append_hydration(label, input);
|
5944
6038
|
append_hydration(label, t0);
|
6039
|
+
append_hydration(label, span0);
|
6040
|
+
if (if_block) if_block.m(span0, null);
|
5945
6041
|
append_hydration(label, t1);
|
5946
|
-
append_hydration(label,
|
6042
|
+
append_hydration(label, span1);
|
6043
|
+
append_hydration(span1, t2);
|
6044
|
+
append_hydration(label, t3);
|
5947
6045
|
|
5948
6046
|
if (!mounted) {
|
5949
6047
|
dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
|
@@ -5961,10 +6059,34 @@ function create_each_block$1(ctx) {
|
|
5961
6059
|
input.checked = input_checked_value;
|
5962
6060
|
}
|
5963
6061
|
|
5964
|
-
if (
|
6062
|
+
if (/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]) {
|
6063
|
+
if (if_block) ; else {
|
6064
|
+
if_block = create_if_block$1();
|
6065
|
+
if_block.c();
|
6066
|
+
if_block.m(span0, null);
|
6067
|
+
}
|
6068
|
+
} else if (if_block) {
|
6069
|
+
if_block.d(1);
|
6070
|
+
if_block = null;
|
6071
|
+
}
|
6072
|
+
|
6073
|
+
if (dirty & /*isCheckedArray*/ 4 && span0_class_value !== (span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
6074
|
+
? ' _checked'
|
6075
|
+
: ''}`) + " svelte-1g004f9"))) {
|
6076
|
+
attr(span0, "class", span0_class_value);
|
6077
|
+
}
|
6078
|
+
|
6079
|
+
if (dirty & /*isCheckedArray*/ 4 && span0_style_value !== (span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
6080
|
+
? 'background-color: #2aab9f;'
|
6081
|
+
: ''}`)) {
|
6082
|
+
attr(span0, "style", span0_style_value);
|
6083
|
+
}
|
6084
|
+
|
6085
|
+
if (dirty & /*_options*/ 2 && t2_value !== (t2_value = /*option*/ ctx[8] + "")) set_data(t2, t2_value);
|
5965
6086
|
},
|
5966
6087
|
d(detaching) {
|
5967
6088
|
if (detaching) detach(label);
|
6089
|
+
if (if_block) if_block.d();
|
5968
6090
|
mounted = false;
|
5969
6091
|
dispose();
|
5970
6092
|
}
|
@@ -6002,7 +6124,7 @@ function create_fragment$5(ctx) {
|
|
6002
6124
|
this.h();
|
6003
6125
|
},
|
6004
6126
|
h() {
|
6005
|
-
attr(div, "class", "check-boxes svelte-
|
6127
|
+
attr(div, "class", "check-boxes svelte-1g004f9");
|
6006
6128
|
},
|
6007
6129
|
m(target, anchor) {
|
6008
6130
|
insert_hydration(target, div, anchor);
|
@@ -6012,7 +6134,7 @@ function create_fragment$5(ctx) {
|
|
6012
6134
|
}
|
6013
6135
|
},
|
6014
6136
|
p(ctx, [dirty]) {
|
6015
|
-
if (dirty & /*_options,
|
6137
|
+
if (dirty & /*_options, isCheckedArray, name, handleChange*/ 23) {
|
6016
6138
|
each_value = /*_options*/ ctx[1];
|
6017
6139
|
let i;
|
6018
6140
|
|
package/dist/index.es.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { writable, get } from 'svelte/store';
|
2
2
|
import { linear, elasticOut, cubicOut } from 'svelte/easing';
|
3
|
-
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 } from 'svelte/internal';
|
3
|
+
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, set_style } from 'svelte/internal';
|
4
4
|
import { setContext, getContext, createEventDispatcher, onMount, onDestroy as onDestroy$1 } from 'svelte';
|
5
5
|
|
6
6
|
/** @internal */
|
@@ -2263,7 +2263,7 @@ function add_css$m(target) {
|
|
2263
2263
|
}
|
2264
2264
|
|
2265
2265
|
// (23:0) {#if $state === path}
|
2266
|
-
function create_if_block$
|
2266
|
+
function create_if_block$6(ctx) {
|
2267
2267
|
let div;
|
2268
2268
|
let t;
|
2269
2269
|
let current;
|
@@ -2328,7 +2328,7 @@ function create_if_block$5(ctx) {
|
|
2328
2328
|
function create_fragment$p(ctx) {
|
2329
2329
|
let if_block_anchor;
|
2330
2330
|
let current;
|
2331
|
-
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$
|
2331
|
+
let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$6(ctx);
|
2332
2332
|
|
2333
2333
|
return {
|
2334
2334
|
c() {
|
@@ -2349,7 +2349,7 @@ function create_fragment$p(ctx) {
|
|
2349
2349
|
transition_in(if_block, 1);
|
2350
2350
|
}
|
2351
2351
|
} else {
|
2352
|
-
if_block = create_if_block$
|
2352
|
+
if_block = create_if_block$6(ctx);
|
2353
2353
|
if_block.c();
|
2354
2354
|
transition_in(if_block, 1);
|
2355
2355
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -2423,7 +2423,7 @@ function add_css$l(target) {
|
|
2423
2423
|
}
|
2424
2424
|
|
2425
2425
|
// (9:0) {#if backgroundOverray}
|
2426
|
-
function create_if_block$
|
2426
|
+
function create_if_block$5(ctx) {
|
2427
2427
|
let div;
|
2428
2428
|
let mounted;
|
2429
2429
|
let dispose;
|
@@ -2452,7 +2452,7 @@ function create_if_block$4(ctx) {
|
|
2452
2452
|
|
2453
2453
|
function create_fragment$o(ctx) {
|
2454
2454
|
let if_block_anchor;
|
2455
|
-
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$
|
2455
|
+
let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$5(ctx);
|
2456
2456
|
|
2457
2457
|
return {
|
2458
2458
|
c() {
|
@@ -2468,7 +2468,7 @@ function create_fragment$o(ctx) {
|
|
2468
2468
|
if (if_block) {
|
2469
2469
|
if_block.p(ctx, dirty);
|
2470
2470
|
} else {
|
2471
|
-
if_block = create_if_block$
|
2471
|
+
if_block = create_if_block$5(ctx);
|
2472
2472
|
if_block.c();
|
2473
2473
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
2474
2474
|
}
|
@@ -2512,7 +2512,7 @@ function add_css$k(target) {
|
|
2512
2512
|
}
|
2513
2513
|
|
2514
2514
|
// (142:0) {#if visible}
|
2515
|
-
function create_if_block$
|
2515
|
+
function create_if_block$4(ctx) {
|
2516
2516
|
let div1;
|
2517
2517
|
let t;
|
2518
2518
|
let div0;
|
@@ -2706,7 +2706,7 @@ function create_fragment$n(ctx) {
|
|
2706
2706
|
if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
|
2707
2707
|
});
|
2708
2708
|
|
2709
|
-
let if_block = /*visible*/ ctx[6] && create_if_block$
|
2709
|
+
let if_block = /*visible*/ ctx[6] && create_if_block$4(ctx);
|
2710
2710
|
|
2711
2711
|
return {
|
2712
2712
|
c() {
|
@@ -2744,7 +2744,7 @@ function create_fragment$n(ctx) {
|
|
2744
2744
|
transition_in(if_block, 1);
|
2745
2745
|
}
|
2746
2746
|
} else {
|
2747
|
-
if_block = create_if_block$
|
2747
|
+
if_block = create_if_block$4(ctx);
|
2748
2748
|
if_block.c();
|
2749
2749
|
transition_in(if_block, 1);
|
2750
2750
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
@@ -3807,7 +3807,7 @@ function create_else_block$1(ctx) {
|
|
3807
3807
|
}
|
3808
3808
|
|
3809
3809
|
// (10:2) {#if item.match(regexp)}
|
3810
|
-
function create_if_block$
|
3810
|
+
function create_if_block$3(ctx) {
|
3811
3811
|
let br;
|
3812
3812
|
|
3813
3813
|
return {
|
@@ -3832,7 +3832,7 @@ function create_each_block$4(ctx) {
|
|
3832
3832
|
function select_block_type(ctx, dirty) {
|
3833
3833
|
if (dirty & /*items*/ 1) show_if = null;
|
3834
3834
|
if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
|
3835
|
-
if (show_if) return create_if_block$
|
3835
|
+
if (show_if) return create_if_block$3;
|
3836
3836
|
return create_else_block$1;
|
3837
3837
|
}
|
3838
3838
|
|
@@ -5263,7 +5263,7 @@ class FormTextarea extends SvelteComponent {
|
|
5263
5263
|
/* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
|
5264
5264
|
|
5265
5265
|
function add_css$7(target) {
|
5266
|
-
append_styles(target, "svelte-
|
5266
|
+
append_styles(target, "svelte-1574x6a", ".radio-buttons.svelte-1574x6a{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1574x6a{font-size:12px;cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1574x6a{appearance:none;margin:0;width:1.3em;height:1.3em;box-sizing:border-box;border-radius:0.7em;position:relative;background-color:rgba(0, 16, 14, 0.06);;;cursor:pointer}.radio-button-input.svelte-1574x6a:checked{border:solid 0.4em #2aab9f;background-color:#fff;box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1574x6a{margin-left:0.4em}");
|
5267
5267
|
}
|
5268
5268
|
|
5269
5269
|
function get_each_context$3(ctx, list, i) {
|
@@ -5280,6 +5280,7 @@ function create_each_block$3(ctx) {
|
|
5280
5280
|
let input_value_value;
|
5281
5281
|
let input_checked_value;
|
5282
5282
|
let t0;
|
5283
|
+
let span;
|
5283
5284
|
let t1_value = /*option*/ ctx[8] + "";
|
5284
5285
|
let t1;
|
5285
5286
|
let t2;
|
@@ -5291,18 +5292,23 @@ function create_each_block$3(ctx) {
|
|
5291
5292
|
label = element("label");
|
5292
5293
|
input = element("input");
|
5293
5294
|
t0 = space();
|
5295
|
+
span = element("span");
|
5294
5296
|
t1 = text(t1_value);
|
5295
5297
|
t2 = space();
|
5296
5298
|
attr(input, "type", "radio");
|
5299
|
+
attr(input, "class", "radio-button-input svelte-1574x6a");
|
5297
5300
|
attr(input, "name", /*name*/ ctx[0]);
|
5298
5301
|
input.value = input_value_value = /*option*/ ctx[8];
|
5299
5302
|
input.checked = input_checked_value = /*option*/ ctx[8] === /*_value*/ ctx[1];
|
5303
|
+
attr(span, "class", "radio-button-text svelte-1574x6a");
|
5304
|
+
attr(label, "class", "radio-button svelte-1574x6a");
|
5300
5305
|
},
|
5301
5306
|
m(target, anchor) {
|
5302
5307
|
insert(target, label, anchor);
|
5303
5308
|
append(label, input);
|
5304
5309
|
append(label, t0);
|
5305
|
-
append(label,
|
5310
|
+
append(label, span);
|
5311
|
+
append(span, t1);
|
5306
5312
|
append(label, t2);
|
5307
5313
|
|
5308
5314
|
if (!mounted) {
|
@@ -5352,7 +5358,7 @@ function create_fragment$7(ctx) {
|
|
5352
5358
|
each_blocks[i].c();
|
5353
5359
|
}
|
5354
5360
|
|
5355
|
-
attr(div, "class", "radio-buttons svelte-
|
5361
|
+
attr(div, "class", "radio-buttons svelte-1574x6a");
|
5356
5362
|
},
|
5357
5363
|
m(target, anchor) {
|
5358
5364
|
insert(target, div, anchor);
|
@@ -5447,7 +5453,7 @@ class FormRadioButtons extends SvelteComponent {
|
|
5447
5453
|
/* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
|
5448
5454
|
|
5449
5455
|
function add_css$6(target) {
|
5450
|
-
append_styles(target, "svelte-
|
5456
|
+
append_styles(target, "svelte-1esvjlb", ".select-wrapper.svelte-1esvjlb{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;position:relative\n}.select-select.svelte-1esvjlb{position:relative;font-size:12px;appearance:none;border:solid 2px #ccc;border-radius:6px;padding:0.8em 1.6em 0.8em 0.8em;width:100%}.select-select.svelte-1esvjlb:focus{outline:none;border-color:#2aab9f}.select-icon.svelte-1esvjlb{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px #666;border-top:solid 2px #666;transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
|
5451
5457
|
}
|
5452
5458
|
|
5453
5459
|
function get_each_context$2(ctx, list, i) {
|
@@ -5457,7 +5463,7 @@ function get_each_context$2(ctx, list, i) {
|
|
5457
5463
|
return child_ctx;
|
5458
5464
|
}
|
5459
5465
|
|
5460
|
-
// (
|
5466
|
+
// (29:10) {:else}
|
5461
5467
|
function create_else_block(ctx) {
|
5462
5468
|
let t;
|
5463
5469
|
|
@@ -5475,8 +5481,8 @@ function create_else_block(ctx) {
|
|
5475
5481
|
};
|
5476
5482
|
}
|
5477
5483
|
|
5478
|
-
// (
|
5479
|
-
function create_if_block$
|
5484
|
+
// (27:10) {#if option}
|
5485
|
+
function create_if_block$2(ctx) {
|
5480
5486
|
let t_value = /*option*/ ctx[6] + "";
|
5481
5487
|
let t;
|
5482
5488
|
|
@@ -5496,14 +5502,14 @@ function create_if_block$1(ctx) {
|
|
5496
5502
|
};
|
5497
5503
|
}
|
5498
5504
|
|
5499
|
-
// (
|
5505
|
+
// (25:6) {#each _options as option, i}
|
5500
5506
|
function create_each_block$2(ctx) {
|
5501
5507
|
let option;
|
5502
5508
|
let t;
|
5503
5509
|
let option_value_value;
|
5504
5510
|
|
5505
5511
|
function select_block_type(ctx, dirty) {
|
5506
|
-
if (/*option*/ ctx[6]) return create_if_block$
|
5512
|
+
if (/*option*/ ctx[6]) return create_if_block$2;
|
5507
5513
|
return create_else_block;
|
5508
5514
|
}
|
5509
5515
|
|
@@ -5549,8 +5555,11 @@ function create_each_block$2(ctx) {
|
|
5549
5555
|
}
|
5550
5556
|
|
5551
5557
|
function create_fragment$6(ctx) {
|
5552
|
-
let
|
5558
|
+
let div2;
|
5559
|
+
let div1;
|
5553
5560
|
let select;
|
5561
|
+
let t;
|
5562
|
+
let div0;
|
5554
5563
|
let mounted;
|
5555
5564
|
let dispose;
|
5556
5565
|
let each_value = /*_options*/ ctx[0];
|
@@ -5562,23 +5571,33 @@ function create_fragment$6(ctx) {
|
|
5562
5571
|
|
5563
5572
|
return {
|
5564
5573
|
c() {
|
5565
|
-
|
5574
|
+
div2 = element("div");
|
5575
|
+
div1 = element("div");
|
5566
5576
|
select = element("select");
|
5567
5577
|
|
5568
5578
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5569
5579
|
each_blocks[i].c();
|
5570
5580
|
}
|
5571
5581
|
|
5572
|
-
|
5582
|
+
t = space();
|
5583
|
+
div0 = element("div");
|
5584
|
+
attr(select, "class", "select-select svelte-1esvjlb");
|
5585
|
+
attr(div0, "class", "select-icon svelte-1esvjlb");
|
5586
|
+
attr(div1, "class", "select");
|
5587
|
+
attr(div2, "class", "select-wrapper svelte-1esvjlb");
|
5573
5588
|
},
|
5574
5589
|
m(target, anchor) {
|
5575
|
-
insert(target,
|
5576
|
-
append(
|
5590
|
+
insert(target, div2, anchor);
|
5591
|
+
append(div2, div1);
|
5592
|
+
append(div1, select);
|
5577
5593
|
|
5578
5594
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
5579
5595
|
each_blocks[i].m(select, null);
|
5580
5596
|
}
|
5581
5597
|
|
5598
|
+
append(div1, t);
|
5599
|
+
append(div1, div0);
|
5600
|
+
|
5582
5601
|
if (!mounted) {
|
5583
5602
|
dispose = listen(select, "change", /*handleChange*/ ctx[1]);
|
5584
5603
|
mounted = true;
|
@@ -5611,7 +5630,7 @@ function create_fragment$6(ctx) {
|
|
5611
5630
|
i: noop,
|
5612
5631
|
o: noop,
|
5613
5632
|
d(detaching) {
|
5614
|
-
if (detaching) detach(
|
5633
|
+
if (detaching) detach(div2);
|
5615
5634
|
destroy_each(each_blocks, detaching);
|
5616
5635
|
mounted = false;
|
5617
5636
|
dispose();
|
@@ -5663,7 +5682,7 @@ class FormSelect extends SvelteComponent {
|
|
5663
5682
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
5664
5683
|
|
5665
5684
|
function add_css$5(target) {
|
5666
|
-
append_styles(target, "svelte-
|
5685
|
+
append_styles(target, "svelte-1g004f9", ".check-boxes.svelte-1g004f9{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-1g004f9{display:flex;align-items:center;font-size:12px;height:1.7em;position:relative;cursor:pointer}.check-box-input.svelte-1g004f9{width:0;height:0;margin:0}.check-box-check.svelte-1g004f9{display:inline-flex;background-color:rgba(0, 16, 14, 0.06);width:1.3em;height:1.3em;border-radius:0.3em;justify-content:center;align-items:center}.check-box-check._checked.svelte-1g004f9{box-shadow:0 4px 8px -2px rgb(0 16 14 / 31%)}.check-box-text.svelte-1g004f9{margin-left:0.5em}.check-box-icon.svelte-1g004f9{display:inline-block;width:12px;height:12px}.check-box-icon-inner.svelte-1g004f9{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:#000}");
|
5667
5686
|
}
|
5668
5687
|
|
5669
5688
|
function get_each_context$1(ctx, list, i) {
|
@@ -5673,35 +5692,82 @@ function get_each_context$1(ctx, list, i) {
|
|
5673
5692
|
return child_ctx;
|
5674
5693
|
}
|
5675
5694
|
|
5695
|
+
// (34:8) {#if isCheckedArray[i]}
|
5696
|
+
function create_if_block$1(ctx) {
|
5697
|
+
let span1;
|
5698
|
+
|
5699
|
+
return {
|
5700
|
+
c() {
|
5701
|
+
span1 = element("span");
|
5702
|
+
span1.innerHTML = `<span class="check-box-icon-inner svelte-1g004f9" style="border-color: #fff"></span>`;
|
5703
|
+
attr(span1, "class", "check-box-icon svelte-1g004f9");
|
5704
|
+
set_style(span1, "width", "0.9em");
|
5705
|
+
set_style(span1, "height", "0.9em");
|
5706
|
+
},
|
5707
|
+
m(target, anchor) {
|
5708
|
+
insert(target, span1, anchor);
|
5709
|
+
},
|
5710
|
+
d(detaching) {
|
5711
|
+
if (detaching) detach(span1);
|
5712
|
+
}
|
5713
|
+
};
|
5714
|
+
}
|
5715
|
+
|
5676
5716
|
// (30:2) {#each _options as option, i}
|
5677
5717
|
function create_each_block$1(ctx) {
|
5678
5718
|
let label;
|
5679
5719
|
let input;
|
5680
5720
|
let input_checked_value;
|
5681
5721
|
let t0;
|
5682
|
-
let
|
5722
|
+
let span0;
|
5723
|
+
let span0_class_value;
|
5724
|
+
let span0_style_value;
|
5683
5725
|
let t1;
|
5726
|
+
let span1;
|
5727
|
+
let t2_value = /*option*/ ctx[8] + "";
|
5684
5728
|
let t2;
|
5729
|
+
let t3;
|
5685
5730
|
let mounted;
|
5686
5731
|
let dispose;
|
5732
|
+
let if_block = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]] && create_if_block$1();
|
5687
5733
|
|
5688
5734
|
return {
|
5689
5735
|
c() {
|
5690
5736
|
label = element("label");
|
5691
5737
|
input = element("input");
|
5692
5738
|
t0 = space();
|
5693
|
-
|
5694
|
-
|
5739
|
+
span0 = element("span");
|
5740
|
+
if (if_block) if_block.c();
|
5741
|
+
t1 = space();
|
5742
|
+
span1 = element("span");
|
5743
|
+
t2 = text(t2_value);
|
5744
|
+
t3 = space();
|
5745
|
+
attr(input, "class", "check-box-input svelte-1g004f9");
|
5695
5746
|
attr(input, "type", "checkbox");
|
5696
5747
|
attr(input, "name", /*name*/ ctx[0]);
|
5697
5748
|
input.checked = input_checked_value = /*isCheckedArray*/ ctx[2][/*i*/ ctx[10]];
|
5749
|
+
|
5750
|
+
attr(span0, "class", span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
5751
|
+
? ' _checked'
|
5752
|
+
: ''}`) + " svelte-1g004f9"));
|
5753
|
+
|
5754
|
+
attr(span0, "style", span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
5755
|
+
? 'background-color: #2aab9f;'
|
5756
|
+
: ''}`);
|
5757
|
+
|
5758
|
+
attr(span1, "class", "check-box-text svelte-1g004f9");
|
5759
|
+
attr(label, "class", "check-box svelte-1g004f9");
|
5698
5760
|
},
|
5699
5761
|
m(target, anchor) {
|
5700
5762
|
insert(target, label, anchor);
|
5701
5763
|
append(label, input);
|
5702
5764
|
append(label, t0);
|
5765
|
+
append(label, span0);
|
5766
|
+
if (if_block) if_block.m(span0, null);
|
5703
5767
|
append(label, t1);
|
5704
|
-
append(label,
|
5768
|
+
append(label, span1);
|
5769
|
+
append(span1, t2);
|
5770
|
+
append(label, t3);
|
5705
5771
|
|
5706
5772
|
if (!mounted) {
|
5707
5773
|
dispose = listen(input, "change", /*handleChange*/ ctx[4](/*i*/ ctx[10]));
|
@@ -5719,10 +5785,34 @@ function create_each_block$1(ctx) {
|
|
5719
5785
|
input.checked = input_checked_value;
|
5720
5786
|
}
|
5721
5787
|
|
5722
|
-
if (
|
5788
|
+
if (/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]) {
|
5789
|
+
if (if_block) ; else {
|
5790
|
+
if_block = create_if_block$1();
|
5791
|
+
if_block.c();
|
5792
|
+
if_block.m(span0, null);
|
5793
|
+
}
|
5794
|
+
} else if (if_block) {
|
5795
|
+
if_block.d(1);
|
5796
|
+
if_block = null;
|
5797
|
+
}
|
5798
|
+
|
5799
|
+
if (dirty & /*isCheckedArray*/ 4 && span0_class_value !== (span0_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
5800
|
+
? ' _checked'
|
5801
|
+
: ''}`) + " svelte-1g004f9"))) {
|
5802
|
+
attr(span0, "class", span0_class_value);
|
5803
|
+
}
|
5804
|
+
|
5805
|
+
if (dirty & /*isCheckedArray*/ 4 && span0_style_value !== (span0_style_value = `${/*isCheckedArray*/ ctx[2][/*i*/ ctx[10]]
|
5806
|
+
? 'background-color: #2aab9f;'
|
5807
|
+
: ''}`)) {
|
5808
|
+
attr(span0, "style", span0_style_value);
|
5809
|
+
}
|
5810
|
+
|
5811
|
+
if (dirty & /*_options*/ 2 && t2_value !== (t2_value = /*option*/ ctx[8] + "")) set_data(t2, t2_value);
|
5723
5812
|
},
|
5724
5813
|
d(detaching) {
|
5725
5814
|
if (detaching) detach(label);
|
5815
|
+
if (if_block) if_block.d();
|
5726
5816
|
mounted = false;
|
5727
5817
|
dispose();
|
5728
5818
|
}
|
@@ -5746,7 +5836,7 @@ function create_fragment$5(ctx) {
|
|
5746
5836
|
each_blocks[i].c();
|
5747
5837
|
}
|
5748
5838
|
|
5749
|
-
attr(div, "class", "check-boxes svelte-
|
5839
|
+
attr(div, "class", "check-boxes svelte-1g004f9");
|
5750
5840
|
},
|
5751
5841
|
m(target, anchor) {
|
5752
5842
|
insert(target, div, anchor);
|
@@ -5756,7 +5846,7 @@ function create_fragment$5(ctx) {
|
|
5756
5846
|
}
|
5757
5847
|
},
|
5758
5848
|
p(ctx, [dirty]) {
|
5759
|
-
if (dirty & /*_options,
|
5849
|
+
if (dirty & /*_options, isCheckedArray, name, handleChange*/ 23) {
|
5760
5850
|
each_value = /*_options*/ ctx[1];
|
5761
5851
|
let i;
|
5762
5852
|
|