@iroco/ui 0.6.5 → 0.8.1

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/lib/index.js CHANGED
@@ -80,6 +80,9 @@
80
80
  rest[k] = props[k];
81
81
  return rest;
82
82
  }
83
+ function null_to_empty(value) {
84
+ return value == null ? '' : value;
85
+ }
83
86
  function action_destroyer(action_result) {
84
87
  return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
85
88
  }
@@ -167,11 +170,35 @@
167
170
  function toggle_class(element, name, toggle) {
168
171
  element.classList[toggle ? 'add' : 'remove'](name);
169
172
  }
173
+ function custom_event(type, detail) {
174
+ const e = document.createEvent('CustomEvent');
175
+ e.initCustomEvent(type, false, false, detail);
176
+ return e;
177
+ }
170
178
 
171
179
  let current_component;
172
180
  function set_current_component(component) {
173
181
  current_component = component;
174
182
  }
183
+ function get_current_component() {
184
+ if (!current_component)
185
+ throw new Error('Function called outside component initialization');
186
+ return current_component;
187
+ }
188
+ function createEventDispatcher() {
189
+ const component = get_current_component();
190
+ return (type, detail) => {
191
+ const callbacks = component.$$.callbacks[type];
192
+ if (callbacks) {
193
+ // TODO are there situations where events could be dispatched
194
+ // in a server (non-DOM) environment?
195
+ const event = custom_event(type, detail);
196
+ callbacks.slice().forEach(fn => {
197
+ fn.call(component, event);
198
+ });
199
+ }
200
+ };
201
+ }
175
202
  // TODO figure out if we still want to support
176
203
  // shorthand events, or if we want to implement
177
204
  // a real bubbling mechanism
@@ -445,22 +472,25 @@
445
472
 
446
473
  /* src/Button.svelte generated by Svelte v3.38.2 */
447
474
 
448
- function create_fragment$a(ctx) {
475
+ function create_fragment$g(ctx) {
449
476
  let button;
477
+ let button_class_value;
450
478
  let current;
451
479
  let mounted;
452
480
  let dispose;
453
- const default_slot_template = /*#slots*/ ctx[3].default;
454
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
481
+ const default_slot_template = /*#slots*/ ctx[7].default;
482
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
455
483
 
456
484
  return {
457
485
  c() {
458
486
  button = element("button");
459
487
  if (default_slot) default_slot.c();
460
- attr(button, "class", "iroco-ui-button svelte-1dvdooy");
488
+ attr(button, "id", /*id*/ ctx[5]);
489
+ attr(button, "class", button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[3]} iroco-ui-button--${/*kind*/ ctx[2]}`) + " svelte-hp8sdi"));
461
490
  attr(button, "type", /*type*/ ctx[0]);
462
491
  button.disabled = /*disabled*/ ctx[1];
463
492
  toggle_class(button, "disabled", /*disabled*/ ctx[1]);
493
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
464
494
  },
465
495
  m(target, anchor) {
466
496
  insert(target, button, anchor);
@@ -472,17 +502,25 @@
472
502
  current = true;
473
503
 
474
504
  if (!mounted) {
475
- dispose = listen(button, "click", /*click_handler*/ ctx[4]);
505
+ dispose = listen(button, "click", /*click_handler*/ ctx[8]);
476
506
  mounted = true;
477
507
  }
478
508
  },
479
509
  p(ctx, [dirty]) {
480
510
  if (default_slot) {
481
- if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
482
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[2], dirty, null, null);
511
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
512
+ update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
483
513
  }
484
514
  }
485
515
 
516
+ if (!current || dirty & /*id*/ 32) {
517
+ attr(button, "id", /*id*/ ctx[5]);
518
+ }
519
+
520
+ if (!current || dirty & /*size, kind*/ 12 && button_class_value !== (button_class_value = "" + (null_to_empty(`iroco-ui-button iroco-ui-button--${/*size*/ ctx[3]} iroco-ui-button--${/*kind*/ ctx[2]}`) + " svelte-hp8sdi"))) {
521
+ attr(button, "class", button_class_value);
522
+ }
523
+
486
524
  if (!current || dirty & /*type*/ 1) {
487
525
  attr(button, "type", /*type*/ ctx[0]);
488
526
  }
@@ -491,9 +529,13 @@
491
529
  button.disabled = /*disabled*/ ctx[1];
492
530
  }
493
531
 
494
- if (dirty & /*disabled*/ 2) {
532
+ if (dirty & /*size, kind, disabled*/ 14) {
495
533
  toggle_class(button, "disabled", /*disabled*/ ctx[1]);
496
534
  }
535
+
536
+ if (dirty & /*size, kind, rounded*/ 28) {
537
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
538
+ }
497
539
  },
498
540
  i(local) {
499
541
  if (current) return;
@@ -513,10 +555,14 @@
513
555
  };
514
556
  }
515
557
 
516
- function instance$a($$self, $$props, $$invalidate) {
558
+ function instance$f($$self, $$props, $$invalidate) {
517
559
  let { $$slots: slots = {}, $$scope } = $$props;
518
560
  let { type = "button" } = $$props;
519
561
  let { disabled = false } = $$props;
562
+ let { kind = "basic" } = $$props;
563
+ let { size = "regular" } = $$props;
564
+ let { rounded = false } = $$props;
565
+ let { id } = $$props;
520
566
 
521
567
  function click_handler(event) {
522
568
  bubble($$self, event);
@@ -525,16 +571,28 @@
525
571
  $$self.$$set = $$props => {
526
572
  if ("type" in $$props) $$invalidate(0, type = $$props.type);
527
573
  if ("disabled" in $$props) $$invalidate(1, disabled = $$props.disabled);
528
- if ("$$scope" in $$props) $$invalidate(2, $$scope = $$props.$$scope);
574
+ if ("kind" in $$props) $$invalidate(2, kind = $$props.kind);
575
+ if ("size" in $$props) $$invalidate(3, size = $$props.size);
576
+ if ("rounded" in $$props) $$invalidate(4, rounded = $$props.rounded);
577
+ if ("id" in $$props) $$invalidate(5, id = $$props.id);
578
+ if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
529
579
  };
530
580
 
531
- return [type, disabled, $$scope, slots, click_handler];
581
+ return [type, disabled, kind, size, rounded, id, $$scope, slots, click_handler];
532
582
  }
533
583
 
534
584
  class Button extends SvelteComponent {
535
585
  constructor(options) {
536
586
  super();
537
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { type: 0, disabled: 1 });
587
+
588
+ init(this, options, instance$f, create_fragment$g, safe_not_equal, {
589
+ type: 0,
590
+ disabled: 1,
591
+ kind: 2,
592
+ size: 3,
593
+ rounded: 4,
594
+ id: 5
595
+ });
538
596
  }
539
597
  }
540
598
 
@@ -548,7 +606,7 @@
548
606
  c() {
549
607
  label_1 = element("label");
550
608
  t = text(/*label*/ ctx[2]);
551
- attr(label_1, "class", "iroco-ui-label");
609
+ attr(label_1, "class", "iroco-ui-label svelte-11iawkb");
552
610
  attr(label_1, "for", /*id*/ ctx[1]);
553
611
  },
554
612
  m(target, anchor) {
@@ -568,8 +626,8 @@
568
626
  };
569
627
  }
570
628
 
571
- // (26:2) {#if error !=null}
572
- function create_if_block$3(ctx) {
629
+ // (40:1) {#if error != null}
630
+ function create_if_block$4(ctx) {
573
631
  let p;
574
632
  let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
575
633
  let t;
@@ -579,7 +637,7 @@
579
637
  p = element("p");
580
638
  t = text(t_value);
581
639
  attr(p, "data-testid", "error");
582
- attr(p, "class", "error");
640
+ attr(p, "class", "error svelte-11iawkb");
583
641
  },
584
642
  m(target, anchor) {
585
643
  insert(target, p, anchor);
@@ -594,7 +652,7 @@
594
652
  };
595
653
  }
596
654
 
597
- function create_fragment$9(ctx) {
655
+ function create_fragment$f(ctx) {
598
656
  let div;
599
657
  let t0;
600
658
  let input;
@@ -602,7 +660,7 @@
602
660
  let mounted;
603
661
  let dispose;
604
662
  let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
605
- let if_block1 = /*error*/ ctx[4] != null && create_if_block$3(ctx);
663
+ let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
606
664
 
607
665
  return {
608
666
  c() {
@@ -616,9 +674,11 @@
616
674
  attr(input, "type", "text");
617
675
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
618
676
  input.readOnly = /*readonly*/ ctx[7];
677
+ attr(input, "class", "svelte-11iawkb");
678
+ toggle_class(input, "border", /*border*/ ctx[8]);
619
679
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
620
680
  toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
621
- attr(div, "class", "iroco-ui-input");
681
+ attr(div, "class", "iroco-ui-input svelte-11iawkb");
622
682
  },
623
683
  m(target, anchor) {
624
684
  insert(target, div, anchor);
@@ -631,15 +691,15 @@
631
691
 
632
692
  if (!mounted) {
633
693
  dispose = [
634
- listen(input, "input", /*input_handler*/ ctx[11]),
635
- listen(input, "input", /*input_input_handler*/ ctx[12]),
694
+ listen(input, "input", /*input_handler*/ ctx[12]),
695
+ listen(input, "input", /*input_input_handler*/ ctx[13]),
636
696
  listen(input, "focus", function () {
637
697
  if (is_function(/*onFocus*/ ctx[5])) /*onFocus*/ ctx[5].apply(this, arguments);
638
698
  }),
639
699
  listen(input, "blur", function () {
640
700
  if (is_function(/*onBlur*/ ctx[6])) /*onBlur*/ ctx[6].apply(this, arguments);
641
701
  }),
642
- action_destroyer(/*typeAction*/ ctx[8].call(null, input))
702
+ action_destroyer(/*typeAction*/ ctx[9].call(null, input))
643
703
  ];
644
704
 
645
705
  mounted = true;
@@ -677,6 +737,10 @@
677
737
  set_input_value(input, /*value*/ ctx[0]);
678
738
  }
679
739
 
740
+ if (dirty & /*border*/ 256) {
741
+ toggle_class(input, "border", /*border*/ ctx[8]);
742
+ }
743
+
680
744
  if (dirty & /*error*/ 16) {
681
745
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
682
746
  }
@@ -689,7 +753,7 @@
689
753
  if (if_block1) {
690
754
  if_block1.p(ctx, dirty);
691
755
  } else {
692
- if_block1 = create_if_block$3(ctx);
756
+ if_block1 = create_if_block$4(ctx);
693
757
  if_block1.c();
694
758
  if_block1.m(div, null);
695
759
  }
@@ -710,7 +774,7 @@
710
774
  };
711
775
  }
712
776
 
713
- function instance$9($$self, $$props, $$invalidate) {
777
+ function instance$e($$self, $$props, $$invalidate) {
714
778
  var { TextType } = $$props;
715
779
 
716
780
  (function (TextType) {
@@ -722,12 +786,13 @@
722
786
  let { id } = $$props;
723
787
  let { type } = $$props;
724
788
  let { label = null } = $$props;
725
- let { placeholder = null } = $$props;
789
+ let { placeholder } = $$props;
726
790
  let { error = null } = $$props;
727
791
  let { value = null } = $$props;
728
792
  let { onFocus } = $$props;
729
793
  let { onBlur } = $$props;
730
794
  let { readonly = false } = $$props;
795
+ let { border = false } = $$props;
731
796
 
732
797
  function typeAction(node) {
733
798
  node.type = type;
@@ -743,9 +808,9 @@
743
808
  }
744
809
 
745
810
  $$self.$$set = $$props => {
746
- if ("TextType" in $$props) $$invalidate(9, TextType = $$props.TextType);
811
+ if ("TextType" in $$props) $$invalidate(10, TextType = $$props.TextType);
747
812
  if ("id" in $$props) $$invalidate(1, id = $$props.id);
748
- if ("type" in $$props) $$invalidate(10, type = $$props.type);
813
+ if ("type" in $$props) $$invalidate(11, type = $$props.type);
749
814
  if ("label" in $$props) $$invalidate(2, label = $$props.label);
750
815
  if ("placeholder" in $$props) $$invalidate(3, placeholder = $$props.placeholder);
751
816
  if ("error" in $$props) $$invalidate(4, error = $$props.error);
@@ -753,6 +818,7 @@
753
818
  if ("onFocus" in $$props) $$invalidate(5, onFocus = $$props.onFocus);
754
819
  if ("onBlur" in $$props) $$invalidate(6, onBlur = $$props.onBlur);
755
820
  if ("readonly" in $$props) $$invalidate(7, readonly = $$props.readonly);
821
+ if ("border" in $$props) $$invalidate(8, border = $$props.border);
756
822
  };
757
823
 
758
824
  return [
@@ -764,6 +830,7 @@
764
830
  onFocus,
765
831
  onBlur,
766
832
  readonly,
833
+ border,
767
834
  typeAction,
768
835
  TextType,
769
836
  type,
@@ -776,24 +843,25 @@
776
843
  constructor(options) {
777
844
  super();
778
845
 
779
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
780
- TextType: 9,
846
+ init(this, options, instance$e, create_fragment$f, safe_not_equal, {
847
+ TextType: 10,
781
848
  id: 1,
782
- type: 10,
849
+ type: 11,
783
850
  label: 2,
784
851
  placeholder: 3,
785
852
  error: 4,
786
853
  value: 0,
787
854
  onFocus: 5,
788
855
  onBlur: 6,
789
- readonly: 7
856
+ readonly: 7,
857
+ border: 8
790
858
  });
791
859
  }
792
860
  }
793
861
 
794
862
  /* src/RadioButton.svelte generated by Svelte v3.38.2 */
795
863
 
796
- function create_fragment$8(ctx) {
864
+ function create_fragment$e(ctx) {
797
865
  let label_1;
798
866
  let input;
799
867
  let t0;
@@ -889,7 +957,7 @@
889
957
  };
890
958
  }
891
959
 
892
- function instance$8($$self, $$props, $$invalidate) {
960
+ function instance$d($$self, $$props, $$invalidate) {
893
961
  let { $$slots: slots = {}, $$scope } = $$props;
894
962
  const label = "";
895
963
  let { value } = $$props;
@@ -940,7 +1008,7 @@
940
1008
  constructor(options) {
941
1009
  super();
942
1010
 
943
- init(this, options, instance$8, create_fragment$8, safe_not_equal, {
1011
+ init(this, options, instance$d, create_fragment$e, safe_not_equal, {
944
1012
  label: 5,
945
1013
  value: 2,
946
1014
  group: 0,
@@ -985,7 +1053,7 @@
985
1053
  }
986
1054
 
987
1055
  // (15:2) {#if error}
988
- function create_if_block$2(ctx) {
1056
+ function create_if_block$3(ctx) {
989
1057
  let p;
990
1058
  let t;
991
1059
 
@@ -1009,7 +1077,7 @@
1009
1077
  };
1010
1078
  }
1011
1079
 
1012
- function create_fragment$7(ctx) {
1080
+ function create_fragment$d(ctx) {
1013
1081
  let div;
1014
1082
  let t0;
1015
1083
  let input;
@@ -1033,7 +1101,7 @@
1033
1101
  input_data = assign(input_data, input_levels[i]);
1034
1102
  }
1035
1103
 
1036
- let if_block1 = /*error*/ ctx[4] && create_if_block$2(ctx);
1104
+ let if_block1 = /*error*/ ctx[4] && create_if_block$3(ctx);
1037
1105
 
1038
1106
  return {
1039
1107
  c() {
@@ -1095,7 +1163,7 @@
1095
1163
  if (if_block1) {
1096
1164
  if_block1.p(ctx, dirty);
1097
1165
  } else {
1098
- if_block1 = create_if_block$2(ctx);
1166
+ if_block1 = create_if_block$3(ctx);
1099
1167
  if_block1.c();
1100
1168
  if_block1.m(div, null);
1101
1169
  }
@@ -1116,7 +1184,7 @@
1116
1184
  };
1117
1185
  }
1118
1186
 
1119
- function instance$7($$self, $$props, $$invalidate) {
1187
+ function instance$c($$self, $$props, $$invalidate) {
1120
1188
  const omit_props_names = ["id","label","placeholder","error","value","min","max"];
1121
1189
  let $$restProps = compute_rest_props($$props, omit_props_names);
1122
1190
  let { id } = $$props;
@@ -1166,7 +1234,7 @@
1166
1234
  constructor(options) {
1167
1235
  super();
1168
1236
 
1169
- init(this, options, instance$7, create_fragment$7, safe_not_equal, {
1237
+ init(this, options, instance$c, create_fragment$d, safe_not_equal, {
1170
1238
  id: 1,
1171
1239
  label: 2,
1172
1240
  placeholder: 3,
@@ -3574,7 +3642,7 @@
3574
3642
 
3575
3643
  /* src/Icon.svelte generated by Svelte v3.38.2 */
3576
3644
 
3577
- function create_if_block$1(ctx) {
3645
+ function create_if_block$2(ctx) {
3578
3646
  let svg;
3579
3647
  let g;
3580
3648
  let raw_value = /*icon*/ ctx[3].contents + "";
@@ -3620,9 +3688,9 @@
3620
3688
  };
3621
3689
  }
3622
3690
 
3623
- function create_fragment$6(ctx) {
3691
+ function create_fragment$c(ctx) {
3624
3692
  let if_block_anchor;
3625
- let if_block = /*icon*/ ctx[3] && create_if_block$1(ctx);
3693
+ let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
3626
3694
 
3627
3695
  return {
3628
3696
  c() {
@@ -3638,7 +3706,7 @@
3638
3706
  if (if_block) {
3639
3707
  if_block.p(ctx, dirty);
3640
3708
  } else {
3641
- if_block = create_if_block$1(ctx);
3709
+ if_block = create_if_block$2(ctx);
3642
3710
  if_block.c();
3643
3711
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3644
3712
  }
@@ -3656,7 +3724,7 @@
3656
3724
  };
3657
3725
  }
3658
3726
 
3659
- function instance$6($$self, $$props, $$invalidate) {
3727
+ function instance$b($$self, $$props, $$invalidate) {
3660
3728
  let { name } = $$props;
3661
3729
  let { stroke } = $$props;
3662
3730
  let { strokeWidth } = $$props;
@@ -3690,7 +3758,7 @@
3690
3758
  constructor(options) {
3691
3759
  super();
3692
3760
 
3693
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {
3761
+ init(this, options, instance$b, create_fragment$c, safe_not_equal, {
3694
3762
  name: 4,
3695
3763
  stroke: 5,
3696
3764
  strokeWidth: 6,
@@ -3701,9 +3769,115 @@
3701
3769
  }
3702
3770
  }
3703
3771
 
3772
+ /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
3773
+
3774
+ function create_fragment$b(ctx) {
3775
+ let svg;
3776
+ let path0;
3777
+ let path1;
3778
+
3779
+ return {
3780
+ c() {
3781
+ svg = svg_element("svg");
3782
+ path0 = svg_element("path");
3783
+ path1 = svg_element("path");
3784
+ attr(path0, "d", "M30.009 29.9999C29.3241 30.0677 28.7761 30.1355 28.4336 30.2033C28.0912 30.3389 27.8857 30.5423 27.7487 30.8812C27.6117 31.2202 27.5432 31.7626 27.5432 32.5084V47.1524C27.5432 47.8982 27.6117 48.4406 27.7487 48.7795C27.8857 49.1185 28.0912 49.3219 28.4336 49.4575C28.7761 49.5931 29.2556 49.6609 30.009 49.6609V50.2711C29.1186 50.2033 27.8172 50.2033 26.2419 50.2033C24.5295 50.2033 23.2282 50.2033 22.4062 50.2711V49.7965C23.0912 49.7287 23.6391 49.6609 23.9816 49.5931C24.3241 49.4575 24.5295 49.2541 24.6665 48.9151C24.8035 48.5762 24.872 48.0338 24.872 47.288V32.5762C24.872 31.8304 24.8035 31.288 24.6665 30.949C24.5295 30.6101 24.3241 30.4067 23.9816 30.2711C23.6391 30.1355 23.1597 30.0677 22.4062 30.0677V29.4575C23.2282 29.5253 24.5295 29.5253 26.2419 29.5253C27.8172 29.5253 29.1186 29.5253 30.009 29.4575V29.9999Z");
3785
+ attr(path0, "fill", "white");
3786
+ attr(path1, "d", "M18.7079 40.4406C11.1737 37.3897 6.24219 30.2033 6.24219 22.1355C6.24219 11.2202 15.2148 2.33887 26.2422 2.33887C37.2696 2.33887 46.2422 11.2202 46.2422 22.1355C46.2422 30.2033 41.3107 37.4575 33.7764 40.4406L32.2696 36.9151C38.3655 34.4745 42.3381 28.6439 42.3381 22.0677C42.3381 13.2541 35.0778 6.06768 26.1737 6.06768C17.2696 6.06768 10.0093 13.2541 10.0093 22.0677C10.0093 28.5762 13.9819 34.4067 20.0778 36.9151L18.7079 40.4406Z");
3787
+ attr(path1, "fill", "#00D692");
3788
+ attr(svg, "width", /*width*/ ctx[0]);
3789
+ attr(svg, "height", /*height*/ ctx[1]);
3790
+ attr(svg, "viewBox", "0 0 54 53");
3791
+ attr(svg, "fill", "none");
3792
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
3793
+ },
3794
+ m(target, anchor) {
3795
+ insert(target, svg, anchor);
3796
+ append(svg, path0);
3797
+ append(svg, path1);
3798
+ },
3799
+ p(ctx, [dirty]) {
3800
+ if (dirty & /*width*/ 1) {
3801
+ attr(svg, "width", /*width*/ ctx[0]);
3802
+ }
3803
+
3804
+ if (dirty & /*height*/ 2) {
3805
+ attr(svg, "height", /*height*/ ctx[1]);
3806
+ }
3807
+ },
3808
+ i: noop,
3809
+ o: noop,
3810
+ d(detaching) {
3811
+ if (detaching) detach(svg);
3812
+ }
3813
+ };
3814
+ }
3815
+
3816
+ function instance$a($$self, $$props, $$invalidate) {
3817
+ let { width = "5rem" } = $$props;
3818
+ let { height = "5rem" } = $$props;
3819
+
3820
+ $$self.$$set = $$props => {
3821
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
3822
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
3823
+ };
3824
+
3825
+ return [width, height];
3826
+ }
3827
+
3828
+ class IconIrocoLogo extends SvelteComponent {
3829
+ constructor(options) {
3830
+ super();
3831
+ init(this, options, instance$a, create_fragment$b, safe_not_equal, { width: 0, height: 1 });
3832
+ }
3833
+ }
3834
+
3835
+ /* src/Loader.svelte generated by Svelte v3.38.2 */
3836
+
3837
+ function create_fragment$a(ctx) {
3838
+ let div;
3839
+ let iconirocologo;
3840
+ let current;
3841
+ iconirocologo = new IconIrocoLogo({ props: { width: "4em", height: "4em" } });
3842
+
3843
+ return {
3844
+ c() {
3845
+ div = element("div");
3846
+ create_component(iconirocologo.$$.fragment);
3847
+ attr(div, "class", "rotate linear infinite svelte-1dns1yx");
3848
+ },
3849
+ m(target, anchor) {
3850
+ insert(target, div, anchor);
3851
+ mount_component(iconirocologo, div, null);
3852
+ current = true;
3853
+ },
3854
+ p: noop,
3855
+ i(local) {
3856
+ if (current) return;
3857
+ transition_in(iconirocologo.$$.fragment, local);
3858
+ current = true;
3859
+ },
3860
+ o(local) {
3861
+ transition_out(iconirocologo.$$.fragment, local);
3862
+ current = false;
3863
+ },
3864
+ d(detaching) {
3865
+ if (detaching) detach(div);
3866
+ destroy_component(iconirocologo);
3867
+ }
3868
+ };
3869
+ }
3870
+
3871
+ class Loader extends SvelteComponent {
3872
+ constructor(options) {
3873
+ super();
3874
+ init(this, options, null, create_fragment$a, safe_not_equal, {});
3875
+ }
3876
+ }
3877
+
3704
3878
  /* src/IconInfo.svelte generated by Svelte v3.38.2 */
3705
3879
 
3706
- function create_fragment$5(ctx) {
3880
+ function create_fragment$9(ctx) {
3707
3881
  let svg;
3708
3882
  let path;
3709
3883
 
@@ -3744,7 +3918,7 @@
3744
3918
  };
3745
3919
  }
3746
3920
 
3747
- function instance$5($$self, $$props, $$invalidate) {
3921
+ function instance$9($$self, $$props, $$invalidate) {
3748
3922
  let { width = "5rem" } = $$props;
3749
3923
  let { height = "5rem" } = $$props;
3750
3924
 
@@ -3759,13 +3933,13 @@
3759
3933
  class IconInfo extends SvelteComponent {
3760
3934
  constructor(options) {
3761
3935
  super();
3762
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { width: 0, height: 1 });
3936
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1 });
3763
3937
  }
3764
3938
  }
3765
3939
 
3766
3940
  /* src/IconClose.svelte generated by Svelte v3.38.2 */
3767
3941
 
3768
- function create_fragment$4(ctx) {
3942
+ function create_fragment$8(ctx) {
3769
3943
  let svg;
3770
3944
  let path;
3771
3945
 
@@ -3805,7 +3979,7 @@
3805
3979
  };
3806
3980
  }
3807
3981
 
3808
- function instance$4($$self, $$props, $$invalidate) {
3982
+ function instance$8($$self, $$props, $$invalidate) {
3809
3983
  let { width = "5rem" } = $$props;
3810
3984
  let { height = "5rem" } = $$props;
3811
3985
 
@@ -3820,27 +3994,32 @@
3820
3994
  class IconClose extends SvelteComponent {
3821
3995
  constructor(options) {
3822
3996
  super();
3823
- init(this, options, instance$4, create_fragment$4, safe_not_equal, { width: 0, height: 1 });
3997
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { width: 0, height: 1 });
3824
3998
  }
3825
3999
  }
3826
4000
 
3827
4001
  /* src/SideBar.svelte generated by Svelte v3.38.2 */
3828
4002
 
3829
- function get_each_context(ctx, list, i) {
4003
+ function get_each_context$1(ctx, list, i) {
3830
4004
  const child_ctx = ctx.slice();
3831
- child_ctx[2] = list[i].destination;
3832
- child_ctx[3] = list[i].name;
4005
+ child_ctx[6] = list[i];
3833
4006
  return child_ctx;
3834
4007
  }
3835
4008
 
3836
- // (12:2) {#each navigationItems as { destination, name }}
3837
- function create_each_block(ctx) {
4009
+ // (22:2) {#each navigationItems as item}
4010
+ function create_each_block$1(ctx) {
3838
4011
  let li;
3839
4012
  let a;
3840
- let t0_value = /*name*/ ctx[3] + "";
4013
+ let t0_value = /*item*/ ctx[6].name + "";
3841
4014
  let t0;
3842
4015
  let a_href_value;
3843
4016
  let t1;
4017
+ let mounted;
4018
+ let dispose;
4019
+
4020
+ function click_handler_1() {
4021
+ return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
4022
+ }
3844
4023
 
3845
4024
  return {
3846
4025
  c() {
@@ -3848,30 +4027,49 @@
3848
4027
  a = element("a");
3849
4028
  t0 = text(t0_value);
3850
4029
  t1 = space();
3851
- attr(a, "href", a_href_value = /*destination*/ ctx[2]);
3852
- attr(a, "class", "svelte-1rnpdw0");
3853
- attr(li, "class", "account__sidebar__item svelte-1rnpdw0");
4030
+
4031
+ attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4032
+ ? /*item*/ ctx[6].hrefOrCallback
4033
+ : "#");
4034
+
4035
+ attr(a, "class", "svelte-jkys2k");
4036
+ attr(li, "class", "account__sidebar__item svelte-jkys2k");
4037
+ toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
3854
4038
  },
3855
4039
  m(target, anchor) {
3856
4040
  insert(target, li, anchor);
3857
4041
  append(li, a);
3858
4042
  append(a, t0);
3859
4043
  append(li, t1);
4044
+
4045
+ if (!mounted) {
4046
+ dispose = listen(a, "click", click_handler_1);
4047
+ mounted = true;
4048
+ }
3860
4049
  },
3861
- p(ctx, dirty) {
3862
- if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*name*/ ctx[3] + "")) set_data(t0, t0_value);
4050
+ p(new_ctx, dirty) {
4051
+ ctx = new_ctx;
4052
+ if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
3863
4053
 
3864
- if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = /*destination*/ ctx[2])) {
4054
+ if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4055
+ ? /*item*/ ctx[6].hrefOrCallback
4056
+ : "#")) {
3865
4057
  attr(a, "href", a_href_value);
3866
4058
  }
4059
+
4060
+ if (dirty & /*active, navigationItems*/ 3) {
4061
+ toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4062
+ }
3867
4063
  },
3868
4064
  d(detaching) {
3869
4065
  if (detaching) detach(li);
4066
+ mounted = false;
4067
+ dispose();
3870
4068
  }
3871
4069
  };
3872
4070
  }
3873
4071
 
3874
- function create_fragment$3(ctx) {
4072
+ function create_fragment$7(ctx) {
3875
4073
  let nav;
3876
4074
  let button;
3877
4075
  let iconclose;
@@ -3885,7 +4083,7 @@
3885
4083
  let each_blocks = [];
3886
4084
 
3887
4085
  for (let i = 0; i < each_value.length; i += 1) {
3888
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4086
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
3889
4087
  }
3890
4088
 
3891
4089
  return {
@@ -3900,10 +4098,10 @@
3900
4098
  each_blocks[i].c();
3901
4099
  }
3902
4100
 
3903
- attr(button, "class", "account__sidebar__close svelte-1rnpdw0");
3904
- attr(ul, "class", "account__sidebar__item_container svelte-1rnpdw0");
4101
+ attr(button, "class", "account__sidebar__close svelte-jkys2k");
4102
+ attr(ul, "class", "account__sidebar__item_container svelte-jkys2k");
3905
4103
  attr(nav, "data-testid", "sidebar");
3906
- attr(nav, "class", "account__sidebar svelte-1rnpdw0");
4104
+ attr(nav, "class", "account__sidebar svelte-jkys2k");
3907
4105
  },
3908
4106
  m(target, anchor) {
3909
4107
  insert(target, nav, anchor);
@@ -3919,22 +4117,22 @@
3919
4117
  current = true;
3920
4118
 
3921
4119
  if (!mounted) {
3922
- dispose = listen(button, "click", /*click_handler*/ ctx[1]);
4120
+ dispose = listen(button, "click", /*click_handler*/ ctx[3]);
3923
4121
  mounted = true;
3924
4122
  }
3925
4123
  },
3926
4124
  p(ctx, [dirty]) {
3927
- if (dirty & /*navigationItems*/ 1) {
4125
+ if (dirty & /*active, navigationItems, handleClickLink*/ 7) {
3928
4126
  each_value = /*navigationItems*/ ctx[0];
3929
4127
  let i;
3930
4128
 
3931
4129
  for (i = 0; i < each_value.length; i += 1) {
3932
- const child_ctx = get_each_context(ctx, each_value, i);
4130
+ const child_ctx = get_each_context$1(ctx, each_value, i);
3933
4131
 
3934
4132
  if (each_blocks[i]) {
3935
4133
  each_blocks[i].p(child_ctx, dirty);
3936
4134
  } else {
3937
- each_blocks[i] = create_each_block(child_ctx);
4135
+ each_blocks[i] = create_each_block$1(child_ctx);
3938
4136
  each_blocks[i].c();
3939
4137
  each_blocks[i].m(ul, null);
3940
4138
  }
@@ -3966,31 +4164,45 @@
3966
4164
  };
3967
4165
  }
3968
4166
 
3969
- function instance$3($$self, $$props, $$invalidate) {
4167
+ function instance$7($$self, $$props, $$invalidate) {
3970
4168
 
3971
4169
  let { navigationItems } = $$props;
4170
+ let active;
4171
+ const dispatch = createEventDispatcher();
4172
+
4173
+ const handleClickLink = menuItem => {
4174
+ $$invalidate(1, active = menuItem.name);
4175
+
4176
+ if (typeof menuItem.hrefOrCallback === "function") {
4177
+ menuItem.hrefOrCallback();
4178
+ }
4179
+
4180
+ dispatch("click_link");
4181
+ };
3972
4182
 
3973
4183
  function click_handler(event) {
3974
4184
  bubble($$self, event);
3975
4185
  }
3976
4186
 
4187
+ const click_handler_1 = item => handleClickLink(item);
4188
+
3977
4189
  $$self.$$set = $$props => {
3978
4190
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
3979
4191
  };
3980
4192
 
3981
- return [navigationItems, click_handler];
4193
+ return [navigationItems, active, handleClickLink, click_handler, click_handler_1];
3982
4194
  }
3983
4195
 
3984
4196
  class SideBar extends SvelteComponent {
3985
4197
  constructor(options) {
3986
4198
  super();
3987
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { navigationItems: 0 });
4199
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0 });
3988
4200
  }
3989
4201
  }
3990
4202
 
3991
4203
  /* src/IconBurger.svelte generated by Svelte v3.38.2 */
3992
4204
 
3993
- function create_fragment$2(ctx) {
4205
+ function create_fragment$6(ctx) {
3994
4206
  let svg;
3995
4207
  let path;
3996
4208
 
@@ -4030,7 +4242,7 @@
4030
4242
  };
4031
4243
  }
4032
4244
 
4033
- function instance$2($$self, $$props, $$invalidate) {
4245
+ function instance$6($$self, $$props, $$invalidate) {
4034
4246
  let { width = "5rem" } = $$props;
4035
4247
  let { height = "5rem" } = $$props;
4036
4248
 
@@ -4045,76 +4257,13 @@
4045
4257
  class IconBurger extends SvelteComponent {
4046
4258
  constructor(options) {
4047
4259
  super();
4048
- init(this, options, instance$2, create_fragment$2, safe_not_equal, { width: 0, height: 1 });
4049
- }
4050
- }
4051
-
4052
- /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
4053
-
4054
- function create_fragment$1(ctx) {
4055
- let svg;
4056
- let path0;
4057
- let path1;
4058
-
4059
- return {
4060
- c() {
4061
- svg = svg_element("svg");
4062
- path0 = svg_element("path");
4063
- path1 = svg_element("path");
4064
- attr(path0, "d", "M30.009 29.9999C29.3241 30.0677 28.7761 30.1355 28.4336 30.2033C28.0912 30.3389 27.8857 30.5423 27.7487 30.8812C27.6117 31.2202 27.5432 31.7626 27.5432 32.5084V47.1524C27.5432 47.8982 27.6117 48.4406 27.7487 48.7795C27.8857 49.1185 28.0912 49.3219 28.4336 49.4575C28.7761 49.5931 29.2556 49.6609 30.009 49.6609V50.2711C29.1186 50.2033 27.8172 50.2033 26.2419 50.2033C24.5295 50.2033 23.2282 50.2033 22.4062 50.2711V49.7965C23.0912 49.7287 23.6391 49.6609 23.9816 49.5931C24.3241 49.4575 24.5295 49.2541 24.6665 48.9151C24.8035 48.5762 24.872 48.0338 24.872 47.288V32.5762C24.872 31.8304 24.8035 31.288 24.6665 30.949C24.5295 30.6101 24.3241 30.4067 23.9816 30.2711C23.6391 30.1355 23.1597 30.0677 22.4062 30.0677V29.4575C23.2282 29.5253 24.5295 29.5253 26.2419 29.5253C27.8172 29.5253 29.1186 29.5253 30.009 29.4575V29.9999Z");
4065
- attr(path0, "fill", "white");
4066
- attr(path1, "d", "M18.7079 40.4406C11.1737 37.3897 6.24219 30.2033 6.24219 22.1355C6.24219 11.2202 15.2148 2.33887 26.2422 2.33887C37.2696 2.33887 46.2422 11.2202 46.2422 22.1355C46.2422 30.2033 41.3107 37.4575 33.7764 40.4406L32.2696 36.9151C38.3655 34.4745 42.3381 28.6439 42.3381 22.0677C42.3381 13.2541 35.0778 6.06768 26.1737 6.06768C17.2696 6.06768 10.0093 13.2541 10.0093 22.0677C10.0093 28.5762 13.9819 34.4067 20.0778 36.9151L18.7079 40.4406Z");
4067
- attr(path1, "fill", "#00D692");
4068
- attr(svg, "width", /*width*/ ctx[0]);
4069
- attr(svg, "height", /*height*/ ctx[1]);
4070
- attr(svg, "viewBox", "0 0 54 53");
4071
- attr(svg, "fill", "none");
4072
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
4073
- },
4074
- m(target, anchor) {
4075
- insert(target, svg, anchor);
4076
- append(svg, path0);
4077
- append(svg, path1);
4078
- },
4079
- p(ctx, [dirty]) {
4080
- if (dirty & /*width*/ 1) {
4081
- attr(svg, "width", /*width*/ ctx[0]);
4082
- }
4083
-
4084
- if (dirty & /*height*/ 2) {
4085
- attr(svg, "height", /*height*/ ctx[1]);
4086
- }
4087
- },
4088
- i: noop,
4089
- o: noop,
4090
- d(detaching) {
4091
- if (detaching) detach(svg);
4092
- }
4093
- };
4094
- }
4095
-
4096
- function instance$1($$self, $$props, $$invalidate) {
4097
- let { width = "5rem" } = $$props;
4098
- let { height = "5rem" } = $$props;
4099
-
4100
- $$self.$$set = $$props => {
4101
- if ("width" in $$props) $$invalidate(0, width = $$props.width);
4102
- if ("height" in $$props) $$invalidate(1, height = $$props.height);
4103
- };
4104
-
4105
- return [width, height];
4106
- }
4107
-
4108
- class IconIrocoLogo extends SvelteComponent {
4109
- constructor(options) {
4110
- super();
4111
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { width: 0, height: 1 });
4260
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
4112
4261
  }
4113
4262
  }
4114
4263
 
4115
4264
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4116
4265
 
4117
- function create_if_block(ctx) {
4266
+ function create_if_block$1(ctx) {
4118
4267
  let sidebar;
4119
4268
  let current;
4120
4269
 
@@ -4124,7 +4273,8 @@
4124
4273
  }
4125
4274
  });
4126
4275
 
4127
- sidebar.$on("click", /*click_handler_1*/ ctx[4]);
4276
+ sidebar.$on("click_link", /*click_link_handler*/ ctx[4]);
4277
+ sidebar.$on("click", /*click_handler_1*/ ctx[5]);
4128
4278
 
4129
4279
  return {
4130
4280
  c() {
@@ -4154,7 +4304,7 @@
4154
4304
  };
4155
4305
  }
4156
4306
 
4157
- function create_fragment(ctx) {
4307
+ function create_fragment$5(ctx) {
4158
4308
  let div1;
4159
4309
  let div0;
4160
4310
  let iconirocologo0;
@@ -4179,7 +4329,7 @@
4179
4329
  let dispose;
4180
4330
  iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4181
4331
  iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
4182
- let if_block = /*showMenu*/ ctx[2] && create_if_block(ctx);
4332
+ let if_block = /*showMenu*/ ctx[2] && create_if_block$1(ctx);
4183
4333
  iconirocologo1 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4184
4334
 
4185
4335
  sidebar = new SideBar({
@@ -4210,13 +4360,13 @@
4210
4360
  t6 = text(/*title*/ ctx[1]);
4211
4361
  t7 = space();
4212
4362
  create_component(sidebar.$$.fragment);
4213
- attr(h10, "class", "svelte-ff4jq1");
4214
- attr(div0, "class", "account__navigation--mobile__title-container svelte-ff4jq1");
4215
- attr(button, "class", "account__navigation--mobile__button svelte-ff4jq1");
4216
- attr(div1, "class", "account__navigation--mobile svelte-ff4jq1");
4217
- attr(h11, "class", "svelte-ff4jq1");
4218
- attr(div2, "class", "account__navigation__title-container svelte-ff4jq1");
4219
- attr(div3, "class", "account__navigation svelte-ff4jq1");
4363
+ attr(h10, "class", "svelte-1uu9ytm");
4364
+ attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
4365
+ attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
4366
+ attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
4367
+ attr(h11, "class", "svelte-1uu9ytm");
4368
+ attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
4369
+ attr(div3, "class", "account__navigation svelte-1uu9ytm");
4220
4370
  },
4221
4371
  m(target, anchor) {
4222
4372
  insert(target, div1, anchor);
@@ -4257,7 +4407,7 @@
4257
4407
  transition_in(if_block, 1);
4258
4408
  }
4259
4409
  } else {
4260
- if_block = create_if_block(ctx);
4410
+ if_block = create_if_block$1(ctx);
4261
4411
  if_block.c();
4262
4412
  transition_in(if_block, 1);
4263
4413
  if_block.m(div1, null);
@@ -4309,12 +4459,13 @@
4309
4459
  };
4310
4460
  }
4311
4461
 
4312
- function instance($$self, $$props, $$invalidate) {
4462
+ function instance$5($$self, $$props, $$invalidate) {
4313
4463
 
4314
4464
  let { navigationItems } = $$props;
4315
4465
  let { title } = $$props;
4316
4466
  let showMenu = false;
4317
4467
  const click_handler = () => $$invalidate(2, showMenu = true);
4468
+ const click_link_handler = () => $$invalidate(2, showMenu = false);
4318
4469
  const click_handler_1 = () => $$invalidate(2, showMenu = false);
4319
4470
 
4320
4471
  $$self.$$set = $$props => {
@@ -4322,19 +4473,761 @@
4322
4473
  if ("title" in $$props) $$invalidate(1, title = $$props.title);
4323
4474
  };
4324
4475
 
4325
- return [navigationItems, title, showMenu, click_handler, click_handler_1];
4476
+ return [
4477
+ navigationItems,
4478
+ title,
4479
+ showMenu,
4480
+ click_handler,
4481
+ click_link_handler,
4482
+ click_handler_1
4483
+ ];
4326
4484
  }
4327
4485
 
4328
4486
  class Navigation extends SvelteComponent {
4329
4487
  constructor(options) {
4330
4488
  super();
4331
- init(this, options, instance, create_fragment, safe_not_equal, { navigationItems: 0, title: 1 });
4489
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { navigationItems: 0, title: 1 });
4490
+ }
4491
+ }
4492
+
4493
+ /* src/DataTable.svelte generated by Svelte v3.38.2 */
4494
+
4495
+ function get_each_context(ctx, list, i) {
4496
+ const child_ctx = ctx.slice();
4497
+ child_ctx[3] = list[i];
4498
+ return child_ctx;
4499
+ }
4500
+
4501
+ function get_each_context_1(ctx, list, i) {
4502
+ const child_ctx = ctx.slice();
4503
+ child_ctx[6] = list[i].key;
4504
+ child_ctx[7] = list[i].renderComponent;
4505
+ return child_ctx;
4506
+ }
4507
+
4508
+ function get_each_context_2(ctx, list, i) {
4509
+ const child_ctx = ctx.slice();
4510
+ child_ctx[10] = list[i];
4511
+ return child_ctx;
4512
+ }
4513
+
4514
+ // (9:3) {#each collumns as collumn}
4515
+ function create_each_block_2(ctx) {
4516
+ let th;
4517
+ let t0_value = /*collumn*/ ctx[10].title + "";
4518
+ let t0;
4519
+ let t1;
4520
+
4521
+ return {
4522
+ c() {
4523
+ th = element("th");
4524
+ t0 = text(t0_value);
4525
+ t1 = space();
4526
+ attr(th, "class", "data-table__header__cell svelte-1ju5y8t");
4527
+ },
4528
+ m(target, anchor) {
4529
+ insert(target, th, anchor);
4530
+ append(th, t0);
4531
+ append(th, t1);
4532
+ },
4533
+ p(ctx, dirty) {
4534
+ if (dirty & /*collumns*/ 2 && t0_value !== (t0_value = /*collumn*/ ctx[10].title + "")) set_data(t0, t0_value);
4535
+ },
4536
+ d(detaching) {
4537
+ if (detaching) detach(th);
4538
+ }
4539
+ };
4540
+ }
4541
+
4542
+ // (27:6) {:else}
4543
+ function create_else_block(ctx) {
4544
+ let t_value = /*row*/ ctx[3][/*key*/ ctx[6]] + "";
4545
+ let t;
4546
+
4547
+ return {
4548
+ c() {
4549
+ t = text(t_value);
4550
+ },
4551
+ m(target, anchor) {
4552
+ insert(target, t, anchor);
4553
+ },
4554
+ p(ctx, dirty) {
4555
+ if (dirty & /*rows, collumns*/ 3 && t_value !== (t_value = /*row*/ ctx[3][/*key*/ ctx[6]] + "")) set_data(t, t_value);
4556
+ },
4557
+ i: noop,
4558
+ o: noop,
4559
+ d(detaching) {
4560
+ if (detaching) detach(t);
4561
+ }
4562
+ };
4563
+ }
4564
+
4565
+ // (22:6) {#if renderComponent}
4566
+ function create_if_block(ctx) {
4567
+ let switch_instance;
4568
+ let switch_instance_anchor;
4569
+ let current;
4570
+
4571
+ function click_handler() {
4572
+ return /*click_handler*/ ctx[2](/*renderComponent*/ ctx[7], /*row*/ ctx[3]);
4573
+ }
4574
+
4575
+ var switch_value = /*renderComponent*/ ctx[7].component;
4576
+
4577
+ function switch_props(ctx) {
4578
+ return {};
4579
+ }
4580
+
4581
+ if (switch_value) {
4582
+ switch_instance = new switch_value(switch_props());
4583
+ switch_instance.$on("click", click_handler);
4584
+ }
4585
+
4586
+ return {
4587
+ c() {
4588
+ if (switch_instance) create_component(switch_instance.$$.fragment);
4589
+ switch_instance_anchor = empty();
4590
+ },
4591
+ m(target, anchor) {
4592
+ if (switch_instance) {
4593
+ mount_component(switch_instance, target, anchor);
4594
+ }
4595
+
4596
+ insert(target, switch_instance_anchor, anchor);
4597
+ current = true;
4598
+ },
4599
+ p(new_ctx, dirty) {
4600
+ ctx = new_ctx;
4601
+
4602
+ if (switch_value !== (switch_value = /*renderComponent*/ ctx[7].component)) {
4603
+ if (switch_instance) {
4604
+ group_outros();
4605
+ const old_component = switch_instance;
4606
+
4607
+ transition_out(old_component.$$.fragment, 1, 0, () => {
4608
+ destroy_component(old_component, 1);
4609
+ });
4610
+
4611
+ check_outros();
4612
+ }
4613
+
4614
+ if (switch_value) {
4615
+ switch_instance = new switch_value(switch_props());
4616
+ switch_instance.$on("click", click_handler);
4617
+ create_component(switch_instance.$$.fragment);
4618
+ transition_in(switch_instance.$$.fragment, 1);
4619
+ mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
4620
+ } else {
4621
+ switch_instance = null;
4622
+ }
4623
+ }
4624
+ },
4625
+ i(local) {
4626
+ if (current) return;
4627
+ if (switch_instance) transition_in(switch_instance.$$.fragment, local);
4628
+ current = true;
4629
+ },
4630
+ o(local) {
4631
+ if (switch_instance) transition_out(switch_instance.$$.fragment, local);
4632
+ current = false;
4633
+ },
4634
+ d(detaching) {
4635
+ if (detaching) detach(switch_instance_anchor);
4636
+ if (switch_instance) destroy_component(switch_instance, detaching);
4637
+ }
4638
+ };
4639
+ }
4640
+
4641
+ // (20:4) {#each collumns as { key, renderComponent }}
4642
+ function create_each_block_1(ctx) {
4643
+ let td;
4644
+ let current_block_type_index;
4645
+ let if_block;
4646
+ let current;
4647
+ const if_block_creators = [create_if_block, create_else_block];
4648
+ const if_blocks = [];
4649
+
4650
+ function select_block_type(ctx, dirty) {
4651
+ if (/*renderComponent*/ ctx[7]) return 0;
4652
+ return 1;
4653
+ }
4654
+
4655
+ current_block_type_index = select_block_type(ctx);
4656
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4657
+
4658
+ return {
4659
+ c() {
4660
+ td = element("td");
4661
+ if_block.c();
4662
+ attr(td, "class", "data-table__body__cell svelte-1ju5y8t");
4663
+ },
4664
+ m(target, anchor) {
4665
+ insert(target, td, anchor);
4666
+ if_blocks[current_block_type_index].m(td, null);
4667
+ current = true;
4668
+ },
4669
+ p(ctx, dirty) {
4670
+ let previous_block_index = current_block_type_index;
4671
+ current_block_type_index = select_block_type(ctx);
4672
+
4673
+ if (current_block_type_index === previous_block_index) {
4674
+ if_blocks[current_block_type_index].p(ctx, dirty);
4675
+ } else {
4676
+ group_outros();
4677
+
4678
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
4679
+ if_blocks[previous_block_index] = null;
4680
+ });
4681
+
4682
+ check_outros();
4683
+ if_block = if_blocks[current_block_type_index];
4684
+
4685
+ if (!if_block) {
4686
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4687
+ if_block.c();
4688
+ } else {
4689
+ if_block.p(ctx, dirty);
4690
+ }
4691
+
4692
+ transition_in(if_block, 1);
4693
+ if_block.m(td, null);
4694
+ }
4695
+ },
4696
+ i(local) {
4697
+ if (current) return;
4698
+ transition_in(if_block);
4699
+ current = true;
4700
+ },
4701
+ o(local) {
4702
+ transition_out(if_block);
4703
+ current = false;
4704
+ },
4705
+ d(detaching) {
4706
+ if (detaching) detach(td);
4707
+ if_blocks[current_block_type_index].d();
4708
+ }
4709
+ };
4710
+ }
4711
+
4712
+ // (18:2) {#each rows as row}
4713
+ function create_each_block(ctx) {
4714
+ let tr;
4715
+ let t;
4716
+ let current;
4717
+ let each_value_1 = /*collumns*/ ctx[1];
4718
+ let each_blocks = [];
4719
+
4720
+ for (let i = 0; i < each_value_1.length; i += 1) {
4721
+ each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
4722
+ }
4723
+
4724
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
4725
+ each_blocks[i] = null;
4726
+ });
4727
+
4728
+ return {
4729
+ c() {
4730
+ tr = element("tr");
4731
+
4732
+ for (let i = 0; i < each_blocks.length; i += 1) {
4733
+ each_blocks[i].c();
4734
+ }
4735
+
4736
+ t = space();
4737
+ attr(tr, "class", "data-table__body__row");
4738
+ },
4739
+ m(target, anchor) {
4740
+ insert(target, tr, anchor);
4741
+
4742
+ for (let i = 0; i < each_blocks.length; i += 1) {
4743
+ each_blocks[i].m(tr, null);
4744
+ }
4745
+
4746
+ append(tr, t);
4747
+ current = true;
4748
+ },
4749
+ p(ctx, dirty) {
4750
+ if (dirty & /*collumns, rows*/ 3) {
4751
+ each_value_1 = /*collumns*/ ctx[1];
4752
+ let i;
4753
+
4754
+ for (i = 0; i < each_value_1.length; i += 1) {
4755
+ const child_ctx = get_each_context_1(ctx, each_value_1, i);
4756
+
4757
+ if (each_blocks[i]) {
4758
+ each_blocks[i].p(child_ctx, dirty);
4759
+ transition_in(each_blocks[i], 1);
4760
+ } else {
4761
+ each_blocks[i] = create_each_block_1(child_ctx);
4762
+ each_blocks[i].c();
4763
+ transition_in(each_blocks[i], 1);
4764
+ each_blocks[i].m(tr, t);
4765
+ }
4766
+ }
4767
+
4768
+ group_outros();
4769
+
4770
+ for (i = each_value_1.length; i < each_blocks.length; i += 1) {
4771
+ out(i);
4772
+ }
4773
+
4774
+ check_outros();
4775
+ }
4776
+ },
4777
+ i(local) {
4778
+ if (current) return;
4779
+
4780
+ for (let i = 0; i < each_value_1.length; i += 1) {
4781
+ transition_in(each_blocks[i]);
4782
+ }
4783
+
4784
+ current = true;
4785
+ },
4786
+ o(local) {
4787
+ each_blocks = each_blocks.filter(Boolean);
4788
+
4789
+ for (let i = 0; i < each_blocks.length; i += 1) {
4790
+ transition_out(each_blocks[i]);
4791
+ }
4792
+
4793
+ current = false;
4794
+ },
4795
+ d(detaching) {
4796
+ if (detaching) detach(tr);
4797
+ destroy_each(each_blocks, detaching);
4798
+ }
4799
+ };
4800
+ }
4801
+
4802
+ function create_fragment$4(ctx) {
4803
+ let table;
4804
+ let thead;
4805
+ let tr;
4806
+ let t;
4807
+ let tbody;
4808
+ let current;
4809
+ let each_value_2 = /*collumns*/ ctx[1];
4810
+ let each_blocks_1 = [];
4811
+
4812
+ for (let i = 0; i < each_value_2.length; i += 1) {
4813
+ each_blocks_1[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
4814
+ }
4815
+
4816
+ let each_value = /*rows*/ ctx[0];
4817
+ let each_blocks = [];
4818
+
4819
+ for (let i = 0; i < each_value.length; i += 1) {
4820
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4821
+ }
4822
+
4823
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
4824
+ each_blocks[i] = null;
4825
+ });
4826
+
4827
+ return {
4828
+ c() {
4829
+ table = element("table");
4830
+ thead = element("thead");
4831
+ tr = element("tr");
4832
+
4833
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
4834
+ each_blocks_1[i].c();
4835
+ }
4836
+
4837
+ t = space();
4838
+ tbody = element("tbody");
4839
+
4840
+ for (let i = 0; i < each_blocks.length; i += 1) {
4841
+ each_blocks[i].c();
4842
+ }
4843
+
4844
+ attr(thead, "class", "data-table__header svelte-1ju5y8t");
4845
+ attr(tbody, "class", "data-table__body");
4846
+ attr(table, "class", "data-table svelte-1ju5y8t");
4847
+ },
4848
+ m(target, anchor) {
4849
+ insert(target, table, anchor);
4850
+ append(table, thead);
4851
+ append(thead, tr);
4852
+
4853
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
4854
+ each_blocks_1[i].m(tr, null);
4855
+ }
4856
+
4857
+ append(table, t);
4858
+ append(table, tbody);
4859
+
4860
+ for (let i = 0; i < each_blocks.length; i += 1) {
4861
+ each_blocks[i].m(tbody, null);
4862
+ }
4863
+
4864
+ current = true;
4865
+ },
4866
+ p(ctx, [dirty]) {
4867
+ if (dirty & /*collumns*/ 2) {
4868
+ each_value_2 = /*collumns*/ ctx[1];
4869
+ let i;
4870
+
4871
+ for (i = 0; i < each_value_2.length; i += 1) {
4872
+ const child_ctx = get_each_context_2(ctx, each_value_2, i);
4873
+
4874
+ if (each_blocks_1[i]) {
4875
+ each_blocks_1[i].p(child_ctx, dirty);
4876
+ } else {
4877
+ each_blocks_1[i] = create_each_block_2(child_ctx);
4878
+ each_blocks_1[i].c();
4879
+ each_blocks_1[i].m(tr, null);
4880
+ }
4881
+ }
4882
+
4883
+ for (; i < each_blocks_1.length; i += 1) {
4884
+ each_blocks_1[i].d(1);
4885
+ }
4886
+
4887
+ each_blocks_1.length = each_value_2.length;
4888
+ }
4889
+
4890
+ if (dirty & /*collumns, rows*/ 3) {
4891
+ each_value = /*rows*/ ctx[0];
4892
+ let i;
4893
+
4894
+ for (i = 0; i < each_value.length; i += 1) {
4895
+ const child_ctx = get_each_context(ctx, each_value, i);
4896
+
4897
+ if (each_blocks[i]) {
4898
+ each_blocks[i].p(child_ctx, dirty);
4899
+ transition_in(each_blocks[i], 1);
4900
+ } else {
4901
+ each_blocks[i] = create_each_block(child_ctx);
4902
+ each_blocks[i].c();
4903
+ transition_in(each_blocks[i], 1);
4904
+ each_blocks[i].m(tbody, null);
4905
+ }
4906
+ }
4907
+
4908
+ group_outros();
4909
+
4910
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
4911
+ out(i);
4912
+ }
4913
+
4914
+ check_outros();
4915
+ }
4916
+ },
4917
+ i(local) {
4918
+ if (current) return;
4919
+
4920
+ for (let i = 0; i < each_value.length; i += 1) {
4921
+ transition_in(each_blocks[i]);
4922
+ }
4923
+
4924
+ current = true;
4925
+ },
4926
+ o(local) {
4927
+ each_blocks = each_blocks.filter(Boolean);
4928
+
4929
+ for (let i = 0; i < each_blocks.length; i += 1) {
4930
+ transition_out(each_blocks[i]);
4931
+ }
4932
+
4933
+ current = false;
4934
+ },
4935
+ d(detaching) {
4936
+ if (detaching) detach(table);
4937
+ destroy_each(each_blocks_1, detaching);
4938
+ destroy_each(each_blocks, detaching);
4939
+ }
4940
+ };
4941
+ }
4942
+
4943
+ function instance$4($$self, $$props, $$invalidate) {
4944
+
4945
+ let { rows } = $$props;
4946
+ let { collumns } = $$props;
4947
+ const click_handler = (renderComponent, row) => renderComponent.props.onclick(row);
4948
+
4949
+ $$self.$$set = $$props => {
4950
+ if ("rows" in $$props) $$invalidate(0, rows = $$props.rows);
4951
+ if ("collumns" in $$props) $$invalidate(1, collumns = $$props.collumns);
4952
+ };
4953
+
4954
+ return [rows, collumns, click_handler];
4955
+ }
4956
+
4957
+ class DataTable extends SvelteComponent {
4958
+ constructor(options) {
4959
+ super();
4960
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { rows: 0, collumns: 1 });
4961
+ }
4962
+ }
4963
+
4964
+ /* src/IconMoreSign.svelte generated by Svelte v3.38.2 */
4965
+
4966
+ function create_fragment$3(ctx) {
4967
+ let svg;
4968
+ let path;
4969
+
4970
+ return {
4971
+ c() {
4972
+ svg = svg_element("svg");
4973
+ path = svg_element("path");
4974
+ attr(path, "stroke-linecap", "round");
4975
+ attr(path, "stroke-linejoin", "round");
4976
+ attr(path, "stroke-width", "2");
4977
+ attr(path, "d", "M12 4v16m8-8H4");
4978
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
4979
+ attr(svg, "height", /*height*/ ctx[1]);
4980
+ attr(svg, "width", /*width*/ ctx[0]);
4981
+ attr(svg, "fill", "none");
4982
+ attr(svg, "viewBox", "0 0 24 24");
4983
+ attr(svg, "stroke", "currentColor");
4984
+ },
4985
+ m(target, anchor) {
4986
+ insert(target, svg, anchor);
4987
+ append(svg, path);
4988
+ },
4989
+ p(ctx, [dirty]) {
4990
+ if (dirty & /*height*/ 2) {
4991
+ attr(svg, "height", /*height*/ ctx[1]);
4992
+ }
4993
+
4994
+ if (dirty & /*width*/ 1) {
4995
+ attr(svg, "width", /*width*/ ctx[0]);
4996
+ }
4997
+ },
4998
+ i: noop,
4999
+ o: noop,
5000
+ d(detaching) {
5001
+ if (detaching) detach(svg);
5002
+ }
5003
+ };
5004
+ }
5005
+
5006
+ function instance$3($$self, $$props, $$invalidate) {
5007
+ let { width = "3rem" } = $$props;
5008
+ let { height = "3rem" } = $$props;
5009
+
5010
+ $$self.$$set = $$props => {
5011
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5012
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5013
+ };
5014
+
5015
+ return [width, height];
5016
+ }
5017
+
5018
+ class IconMoreSign extends SvelteComponent {
5019
+ constructor(options) {
5020
+ super();
5021
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { width: 0, height: 1 });
5022
+ }
5023
+ }
5024
+
5025
+ /* src/IconFloppyDisk.svelte generated by Svelte v3.38.2 */
5026
+
5027
+ function create_fragment$2(ctx) {
5028
+ let svg;
5029
+ let path;
5030
+
5031
+ return {
5032
+ c() {
5033
+ svg = svg_element("svg");
5034
+ path = svg_element("path");
5035
+ attr(path, "d", "M12 10.2857C12 10.7404 11.8194 11.1764 11.4979 11.4979C11.1764 11.8194 10.7404 12 10.2857 12L3.10371 12C2.64909 11.9999 2.21313 11.8192 1.89171 11.4977L0.502286 10.1083C0.180773 9.78687 9.70432e-05 9.35091 -2.71336e-07 8.89629L-8.99207e-07 1.71429C-9.38954e-07 1.25963 0.180611 0.823595 0.502102 0.502104C0.823593 0.180613 1.25963 9.38953e-07 1.71428 8.99206e-07L10.2857 1.49868e-07C10.7404 1.1012e-07 11.1764 0.180612 11.4979 0.502103C11.8194 0.823594 12 1.25963 12 1.71429L12 10.2857ZM10.2857 11.1429C10.513 11.1429 10.7311 11.0526 10.8918 10.8918C11.0526 10.7311 11.1429 10.513 11.1429 10.2857L11.1429 1.71429C11.1429 1.48696 11.0526 1.26894 10.8918 1.10819C10.7311 0.947449 10.513 0.857143 10.2857 0.857143L10.2857 4.71429C10.2857 5.05528 10.1503 5.3823 9.90914 5.62342C9.66802 5.86454 9.34099 6 9 6L3 6C2.65901 6 2.33198 5.86454 2.09086 5.62342C1.84974 5.38231 1.71429 5.05528 1.71429 4.71429L1.71428 0.857143C1.48696 0.857143 1.26894 0.94745 1.10819 1.1082C0.947448 1.26894 0.857142 1.48696 0.857142 1.71429L0.857142 8.89629C0.857191 9.1236 0.947529 9.34158 1.10829 9.50229L2.49771 10.8917C2.65842 11.0525 2.8764 11.1428 3.10371 11.1429L3.42857 11.1429L3.42857 9C3.42857 8.65901 3.56403 8.33198 3.80515 8.09086C4.04627 7.84975 4.37329 7.71429 4.71429 7.71429L8.14286 7.71429C8.48385 7.71429 8.81088 7.84974 9.05199 8.09086C9.29311 8.33198 9.42857 8.65901 9.42857 9L9.42857 11.1429L10.2857 11.1429ZM8.57143 11.1429L8.57143 9C8.57143 8.88634 8.52628 8.77733 8.4459 8.69695C8.36553 8.61658 8.25652 8.57143 8.14286 8.57143L4.71429 8.57143C4.60062 8.57143 4.49161 8.61658 4.41124 8.69695C4.33087 8.77733 4.28571 8.88634 4.28571 9L4.28571 11.1429L8.57143 11.1429ZM2.57143 0.857143L2.57143 4.71429C2.57143 4.82795 2.61658 4.93696 2.69695 5.01733C2.77733 5.09771 2.88633 5.14286 3 5.14286L9 5.14286C9.11366 5.14286 9.22267 5.0977 9.30305 5.01733C9.38342 4.93696 9.42857 4.82795 9.42857 4.71429L9.42857 0.857143L2.57143 0.857143Z");
5036
+ attr(path, "fill", /*fill*/ ctx[2]);
5037
+ attr(svg, "width", /*width*/ ctx[0]);
5038
+ attr(svg, "height", /*height*/ ctx[1]);
5039
+ attr(svg, "viewBox", "0 0 12 12");
5040
+ attr(svg, "fill", "none");
5041
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
5042
+ },
5043
+ m(target, anchor) {
5044
+ insert(target, svg, anchor);
5045
+ append(svg, path);
5046
+ },
5047
+ p(ctx, [dirty]) {
5048
+ if (dirty & /*fill*/ 4) {
5049
+ attr(path, "fill", /*fill*/ ctx[2]);
5050
+ }
5051
+
5052
+ if (dirty & /*width*/ 1) {
5053
+ attr(svg, "width", /*width*/ ctx[0]);
5054
+ }
5055
+
5056
+ if (dirty & /*height*/ 2) {
5057
+ attr(svg, "height", /*height*/ ctx[1]);
5058
+ }
5059
+ },
5060
+ i: noop,
5061
+ o: noop,
5062
+ d(detaching) {
5063
+ if (detaching) detach(svg);
5064
+ }
5065
+ };
5066
+ }
5067
+
5068
+ function instance$2($$self, $$props, $$invalidate) {
5069
+ let { width = "5rem" } = $$props;
5070
+ let { height = "5rem" } = $$props;
5071
+ let { fill = "currentColor" } = $$props;
5072
+
5073
+ $$self.$$set = $$props => {
5074
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5075
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5076
+ if ("fill" in $$props) $$invalidate(2, fill = $$props.fill);
5077
+ };
5078
+
5079
+ return [width, height, fill];
5080
+ }
5081
+
5082
+ class IconFloppyDisk extends SvelteComponent {
5083
+ constructor(options) {
5084
+ super();
5085
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { width: 0, height: 1, fill: 2 });
5086
+ }
5087
+ }
5088
+
5089
+ /* src/IconTrashCan.svelte generated by Svelte v3.38.2 */
5090
+
5091
+ function create_fragment$1(ctx) {
5092
+ let svg;
5093
+ let path;
5094
+
5095
+ return {
5096
+ c() {
5097
+ svg = svg_element("svg");
5098
+ path = svg_element("path");
5099
+ attr(path, "stroke-linecap", "round");
5100
+ attr(path, "stroke-linejoin", "round");
5101
+ attr(path, "stroke-width", "2");
5102
+ attr(path, "d", "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16");
5103
+ attr(svg, "width", /*width*/ ctx[0]);
5104
+ attr(svg, "height", /*height*/ ctx[1]);
5105
+ attr(svg, "fill", "none");
5106
+ attr(svg, "stroke", /*stroke*/ ctx[2]);
5107
+ attr(svg, "viewBox", "0 0 24 24");
5108
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
5109
+ },
5110
+ m(target, anchor) {
5111
+ insert(target, svg, anchor);
5112
+ append(svg, path);
5113
+ },
5114
+ p(ctx, [dirty]) {
5115
+ if (dirty & /*width*/ 1) {
5116
+ attr(svg, "width", /*width*/ ctx[0]);
5117
+ }
5118
+
5119
+ if (dirty & /*height*/ 2) {
5120
+ attr(svg, "height", /*height*/ ctx[1]);
5121
+ }
5122
+
5123
+ if (dirty & /*stroke*/ 4) {
5124
+ attr(svg, "stroke", /*stroke*/ ctx[2]);
5125
+ }
5126
+ },
5127
+ i: noop,
5128
+ o: noop,
5129
+ d(detaching) {
5130
+ if (detaching) detach(svg);
5131
+ }
5132
+ };
5133
+ }
5134
+
5135
+ function instance$1($$self, $$props, $$invalidate) {
5136
+ let { width = "5rem" } = $$props;
5137
+ let { height = "5rem" } = $$props;
5138
+ let { stroke = "currentColor" } = $$props;
5139
+
5140
+ $$self.$$set = $$props => {
5141
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5142
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5143
+ if ("stroke" in $$props) $$invalidate(2, stroke = $$props.stroke);
5144
+ };
5145
+
5146
+ return [width, height, stroke];
5147
+ }
5148
+
5149
+ class IconTrashCan extends SvelteComponent {
5150
+ constructor(options) {
5151
+ super();
5152
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { width: 0, height: 1, stroke: 2 });
5153
+ }
5154
+ }
5155
+
5156
+ /* src/Alert.svelte generated by Svelte v3.38.2 */
5157
+
5158
+ function create_fragment(ctx) {
5159
+ let div;
5160
+ let t;
5161
+ let div_class_value;
5162
+ let mounted;
5163
+ let dispose;
5164
+
5165
+ return {
5166
+ c() {
5167
+ div = element("div");
5168
+ t = text(/*content*/ ctx[1]);
5169
+ attr(div, "class", div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"));
5170
+ },
5171
+ m(target, anchor) {
5172
+ insert(target, div, anchor);
5173
+ append(div, t);
5174
+
5175
+ if (!mounted) {
5176
+ dispose = listen(div, "click", function () {
5177
+ if (is_function(/*callback*/ ctx[2])) /*callback*/ ctx[2].apply(this, arguments);
5178
+ });
5179
+
5180
+ mounted = true;
5181
+ }
5182
+ },
5183
+ p(new_ctx, [dirty]) {
5184
+ ctx = new_ctx;
5185
+ if (dirty & /*content*/ 2) set_data(t, /*content*/ ctx[1]);
5186
+
5187
+ if (dirty & /*type*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"))) {
5188
+ attr(div, "class", div_class_value);
5189
+ }
5190
+ },
5191
+ i: noop,
5192
+ o: noop,
5193
+ d(detaching) {
5194
+ if (detaching) detach(div);
5195
+ mounted = false;
5196
+ dispose();
5197
+ }
5198
+ };
5199
+ }
5200
+
5201
+ function instance($$self, $$props, $$invalidate) {
5202
+ let { type = "success" } = $$props;
5203
+ let { content } = $$props;
5204
+ let { callback } = $$props;
5205
+
5206
+ $$self.$$set = $$props => {
5207
+ if ("type" in $$props) $$invalidate(0, type = $$props.type);
5208
+ if ("content" in $$props) $$invalidate(1, content = $$props.content);
5209
+ if ("callback" in $$props) $$invalidate(2, callback = $$props.callback);
5210
+ };
5211
+
5212
+ return [type, content, callback];
5213
+ }
5214
+
5215
+ class Alert extends SvelteComponent {
5216
+ constructor(options) {
5217
+ super();
5218
+ init(this, options, instance, create_fragment, safe_not_equal, { type: 0, content: 1, callback: 2 });
4332
5219
  }
4333
5220
  }
4334
5221
 
5222
+ exports.Alert = Alert;
4335
5223
  exports.Button = Button;
5224
+ exports.DataTable = DataTable;
4336
5225
  exports.Icon = Icon;
5226
+ exports.IconFloppyDisk = IconFloppyDisk;
4337
5227
  exports.IconInfo = IconInfo;
5228
+ exports.IconMore = IconMoreSign;
5229
+ exports.IconTrashCan = IconTrashCan;
5230
+ exports.Loader = Loader;
4338
5231
  exports.Navigation = Navigation;
4339
5232
  exports.NumberInput = NumberInput;
4340
5233
  exports.RadioButton = RadioButton;