@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.mjs CHANGED
@@ -74,6 +74,9 @@ function compute_rest_props(props, keys) {
74
74
  rest[k] = props[k];
75
75
  return rest;
76
76
  }
77
+ function null_to_empty(value) {
78
+ return value == null ? '' : value;
79
+ }
77
80
  function action_destroyer(action_result) {
78
81
  return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
79
82
  }
@@ -161,11 +164,35 @@ function set_input_value(input, value) {
161
164
  function toggle_class(element, name, toggle) {
162
165
  element.classList[toggle ? 'add' : 'remove'](name);
163
166
  }
167
+ function custom_event(type, detail) {
168
+ const e = document.createEvent('CustomEvent');
169
+ e.initCustomEvent(type, false, false, detail);
170
+ return e;
171
+ }
164
172
 
165
173
  let current_component;
166
174
  function set_current_component(component) {
167
175
  current_component = component;
168
176
  }
177
+ function get_current_component() {
178
+ if (!current_component)
179
+ throw new Error('Function called outside component initialization');
180
+ return current_component;
181
+ }
182
+ function createEventDispatcher() {
183
+ const component = get_current_component();
184
+ return (type, detail) => {
185
+ const callbacks = component.$$.callbacks[type];
186
+ if (callbacks) {
187
+ // TODO are there situations where events could be dispatched
188
+ // in a server (non-DOM) environment?
189
+ const event = custom_event(type, detail);
190
+ callbacks.slice().forEach(fn => {
191
+ fn.call(component, event);
192
+ });
193
+ }
194
+ };
195
+ }
169
196
  // TODO figure out if we still want to support
170
197
  // shorthand events, or if we want to implement
171
198
  // a real bubbling mechanism
@@ -439,22 +466,25 @@ class SvelteComponent {
439
466
 
440
467
  /* src/Button.svelte generated by Svelte v3.38.2 */
441
468
 
442
- function create_fragment$a(ctx) {
469
+ function create_fragment$g(ctx) {
443
470
  let button;
471
+ let button_class_value;
444
472
  let current;
445
473
  let mounted;
446
474
  let dispose;
447
- const default_slot_template = /*#slots*/ ctx[3].default;
448
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
475
+ const default_slot_template = /*#slots*/ ctx[7].default;
476
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
449
477
 
450
478
  return {
451
479
  c() {
452
480
  button = element("button");
453
481
  if (default_slot) default_slot.c();
454
- attr(button, "class", "iroco-ui-button svelte-1dvdooy");
482
+ attr(button, "id", /*id*/ ctx[5]);
483
+ 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"));
455
484
  attr(button, "type", /*type*/ ctx[0]);
456
485
  button.disabled = /*disabled*/ ctx[1];
457
486
  toggle_class(button, "disabled", /*disabled*/ ctx[1]);
487
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
458
488
  },
459
489
  m(target, anchor) {
460
490
  insert(target, button, anchor);
@@ -466,17 +496,25 @@ function create_fragment$a(ctx) {
466
496
  current = true;
467
497
 
468
498
  if (!mounted) {
469
- dispose = listen(button, "click", /*click_handler*/ ctx[4]);
499
+ dispose = listen(button, "click", /*click_handler*/ ctx[8]);
470
500
  mounted = true;
471
501
  }
472
502
  },
473
503
  p(ctx, [dirty]) {
474
504
  if (default_slot) {
475
- if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
476
- update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[2], dirty, null, null);
505
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {
506
+ update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null);
477
507
  }
478
508
  }
479
509
 
510
+ if (!current || dirty & /*id*/ 32) {
511
+ attr(button, "id", /*id*/ ctx[5]);
512
+ }
513
+
514
+ 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"))) {
515
+ attr(button, "class", button_class_value);
516
+ }
517
+
480
518
  if (!current || dirty & /*type*/ 1) {
481
519
  attr(button, "type", /*type*/ ctx[0]);
482
520
  }
@@ -485,9 +523,13 @@ function create_fragment$a(ctx) {
485
523
  button.disabled = /*disabled*/ ctx[1];
486
524
  }
487
525
 
488
- if (dirty & /*disabled*/ 2) {
526
+ if (dirty & /*size, kind, disabled*/ 14) {
489
527
  toggle_class(button, "disabled", /*disabled*/ ctx[1]);
490
528
  }
529
+
530
+ if (dirty & /*size, kind, rounded*/ 28) {
531
+ toggle_class(button, "rounded", /*rounded*/ ctx[4]);
532
+ }
491
533
  },
492
534
  i(local) {
493
535
  if (current) return;
@@ -507,10 +549,14 @@ function create_fragment$a(ctx) {
507
549
  };
508
550
  }
509
551
 
510
- function instance$a($$self, $$props, $$invalidate) {
552
+ function instance$f($$self, $$props, $$invalidate) {
511
553
  let { $$slots: slots = {}, $$scope } = $$props;
512
554
  let { type = "button" } = $$props;
513
555
  let { disabled = false } = $$props;
556
+ let { kind = "basic" } = $$props;
557
+ let { size = "regular" } = $$props;
558
+ let { rounded = false } = $$props;
559
+ let { id } = $$props;
514
560
 
515
561
  function click_handler(event) {
516
562
  bubble($$self, event);
@@ -519,16 +565,28 @@ function instance$a($$self, $$props, $$invalidate) {
519
565
  $$self.$$set = $$props => {
520
566
  if ("type" in $$props) $$invalidate(0, type = $$props.type);
521
567
  if ("disabled" in $$props) $$invalidate(1, disabled = $$props.disabled);
522
- if ("$$scope" in $$props) $$invalidate(2, $$scope = $$props.$$scope);
568
+ if ("kind" in $$props) $$invalidate(2, kind = $$props.kind);
569
+ if ("size" in $$props) $$invalidate(3, size = $$props.size);
570
+ if ("rounded" in $$props) $$invalidate(4, rounded = $$props.rounded);
571
+ if ("id" in $$props) $$invalidate(5, id = $$props.id);
572
+ if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope);
523
573
  };
524
574
 
525
- return [type, disabled, $$scope, slots, click_handler];
575
+ return [type, disabled, kind, size, rounded, id, $$scope, slots, click_handler];
526
576
  }
527
577
 
528
578
  class Button extends SvelteComponent {
529
579
  constructor(options) {
530
580
  super();
531
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { type: 0, disabled: 1 });
581
+
582
+ init(this, options, instance$f, create_fragment$g, safe_not_equal, {
583
+ type: 0,
584
+ disabled: 1,
585
+ kind: 2,
586
+ size: 3,
587
+ rounded: 4,
588
+ id: 5
589
+ });
532
590
  }
533
591
  }
534
592
 
@@ -542,7 +600,7 @@ function create_if_block_1$1(ctx) {
542
600
  c() {
543
601
  label_1 = element("label");
544
602
  t = text(/*label*/ ctx[2]);
545
- attr(label_1, "class", "iroco-ui-label");
603
+ attr(label_1, "class", "iroco-ui-label svelte-11iawkb");
546
604
  attr(label_1, "for", /*id*/ ctx[1]);
547
605
  },
548
606
  m(target, anchor) {
@@ -562,8 +620,8 @@ function create_if_block_1$1(ctx) {
562
620
  };
563
621
  }
564
622
 
565
- // (26:2) {#if error !=null}
566
- function create_if_block$3(ctx) {
623
+ // (40:1) {#if error != null}
624
+ function create_if_block$4(ctx) {
567
625
  let p;
568
626
  let t_value = (/*error*/ ctx[4] !== null ? /*error*/ ctx[4] : "") + "";
569
627
  let t;
@@ -573,7 +631,7 @@ function create_if_block$3(ctx) {
573
631
  p = element("p");
574
632
  t = text(t_value);
575
633
  attr(p, "data-testid", "error");
576
- attr(p, "class", "error");
634
+ attr(p, "class", "error svelte-11iawkb");
577
635
  },
578
636
  m(target, anchor) {
579
637
  insert(target, p, anchor);
@@ -588,7 +646,7 @@ function create_if_block$3(ctx) {
588
646
  };
589
647
  }
590
648
 
591
- function create_fragment$9(ctx) {
649
+ function create_fragment$f(ctx) {
592
650
  let div;
593
651
  let t0;
594
652
  let input;
@@ -596,7 +654,7 @@ function create_fragment$9(ctx) {
596
654
  let mounted;
597
655
  let dispose;
598
656
  let if_block0 = /*label*/ ctx[2] && create_if_block_1$1(ctx);
599
- let if_block1 = /*error*/ ctx[4] != null && create_if_block$3(ctx);
657
+ let if_block1 = /*error*/ ctx[4] != null && create_if_block$4(ctx);
600
658
 
601
659
  return {
602
660
  c() {
@@ -610,9 +668,11 @@ function create_fragment$9(ctx) {
610
668
  attr(input, "type", "text");
611
669
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
612
670
  input.readOnly = /*readonly*/ ctx[7];
671
+ attr(input, "class", "svelte-11iawkb");
672
+ toggle_class(input, "border", /*border*/ ctx[8]);
613
673
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
614
674
  toggle_class(input, "readonlyInput", /*readonly*/ ctx[7] == true);
615
- attr(div, "class", "iroco-ui-input");
675
+ attr(div, "class", "iroco-ui-input svelte-11iawkb");
616
676
  },
617
677
  m(target, anchor) {
618
678
  insert(target, div, anchor);
@@ -625,15 +685,15 @@ function create_fragment$9(ctx) {
625
685
 
626
686
  if (!mounted) {
627
687
  dispose = [
628
- listen(input, "input", /*input_handler*/ ctx[11]),
629
- listen(input, "input", /*input_input_handler*/ ctx[12]),
688
+ listen(input, "input", /*input_handler*/ ctx[12]),
689
+ listen(input, "input", /*input_input_handler*/ ctx[13]),
630
690
  listen(input, "focus", function () {
631
691
  if (is_function(/*onFocus*/ ctx[5])) /*onFocus*/ ctx[5].apply(this, arguments);
632
692
  }),
633
693
  listen(input, "blur", function () {
634
694
  if (is_function(/*onBlur*/ ctx[6])) /*onBlur*/ ctx[6].apply(this, arguments);
635
695
  }),
636
- action_destroyer(/*typeAction*/ ctx[8].call(null, input))
696
+ action_destroyer(/*typeAction*/ ctx[9].call(null, input))
637
697
  ];
638
698
 
639
699
  mounted = true;
@@ -671,6 +731,10 @@ function create_fragment$9(ctx) {
671
731
  set_input_value(input, /*value*/ ctx[0]);
672
732
  }
673
733
 
734
+ if (dirty & /*border*/ 256) {
735
+ toggle_class(input, "border", /*border*/ ctx[8]);
736
+ }
737
+
674
738
  if (dirty & /*error*/ 16) {
675
739
  toggle_class(input, "error", /*error*/ ctx[4] !== null);
676
740
  }
@@ -683,7 +747,7 @@ function create_fragment$9(ctx) {
683
747
  if (if_block1) {
684
748
  if_block1.p(ctx, dirty);
685
749
  } else {
686
- if_block1 = create_if_block$3(ctx);
750
+ if_block1 = create_if_block$4(ctx);
687
751
  if_block1.c();
688
752
  if_block1.m(div, null);
689
753
  }
@@ -704,7 +768,7 @@ function create_fragment$9(ctx) {
704
768
  };
705
769
  }
706
770
 
707
- function instance$9($$self, $$props, $$invalidate) {
771
+ function instance$e($$self, $$props, $$invalidate) {
708
772
  var { TextType } = $$props;
709
773
 
710
774
  (function (TextType) {
@@ -716,12 +780,13 @@ function instance$9($$self, $$props, $$invalidate) {
716
780
  let { id } = $$props;
717
781
  let { type } = $$props;
718
782
  let { label = null } = $$props;
719
- let { placeholder = null } = $$props;
783
+ let { placeholder } = $$props;
720
784
  let { error = null } = $$props;
721
785
  let { value = null } = $$props;
722
786
  let { onFocus } = $$props;
723
787
  let { onBlur } = $$props;
724
788
  let { readonly = false } = $$props;
789
+ let { border = false } = $$props;
725
790
 
726
791
  function typeAction(node) {
727
792
  node.type = type;
@@ -737,9 +802,9 @@ function instance$9($$self, $$props, $$invalidate) {
737
802
  }
738
803
 
739
804
  $$self.$$set = $$props => {
740
- if ("TextType" in $$props) $$invalidate(9, TextType = $$props.TextType);
805
+ if ("TextType" in $$props) $$invalidate(10, TextType = $$props.TextType);
741
806
  if ("id" in $$props) $$invalidate(1, id = $$props.id);
742
- if ("type" in $$props) $$invalidate(10, type = $$props.type);
807
+ if ("type" in $$props) $$invalidate(11, type = $$props.type);
743
808
  if ("label" in $$props) $$invalidate(2, label = $$props.label);
744
809
  if ("placeholder" in $$props) $$invalidate(3, placeholder = $$props.placeholder);
745
810
  if ("error" in $$props) $$invalidate(4, error = $$props.error);
@@ -747,6 +812,7 @@ function instance$9($$self, $$props, $$invalidate) {
747
812
  if ("onFocus" in $$props) $$invalidate(5, onFocus = $$props.onFocus);
748
813
  if ("onBlur" in $$props) $$invalidate(6, onBlur = $$props.onBlur);
749
814
  if ("readonly" in $$props) $$invalidate(7, readonly = $$props.readonly);
815
+ if ("border" in $$props) $$invalidate(8, border = $$props.border);
750
816
  };
751
817
 
752
818
  return [
@@ -758,6 +824,7 @@ function instance$9($$self, $$props, $$invalidate) {
758
824
  onFocus,
759
825
  onBlur,
760
826
  readonly,
827
+ border,
761
828
  typeAction,
762
829
  TextType,
763
830
  type,
@@ -770,24 +837,25 @@ class TextInput extends SvelteComponent {
770
837
  constructor(options) {
771
838
  super();
772
839
 
773
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
774
- TextType: 9,
840
+ init(this, options, instance$e, create_fragment$f, safe_not_equal, {
841
+ TextType: 10,
775
842
  id: 1,
776
- type: 10,
843
+ type: 11,
777
844
  label: 2,
778
845
  placeholder: 3,
779
846
  error: 4,
780
847
  value: 0,
781
848
  onFocus: 5,
782
849
  onBlur: 6,
783
- readonly: 7
850
+ readonly: 7,
851
+ border: 8
784
852
  });
785
853
  }
786
854
  }
787
855
 
788
856
  /* src/RadioButton.svelte generated by Svelte v3.38.2 */
789
857
 
790
- function create_fragment$8(ctx) {
858
+ function create_fragment$e(ctx) {
791
859
  let label_1;
792
860
  let input;
793
861
  let t0;
@@ -883,7 +951,7 @@ function create_fragment$8(ctx) {
883
951
  };
884
952
  }
885
953
 
886
- function instance$8($$self, $$props, $$invalidate) {
954
+ function instance$d($$self, $$props, $$invalidate) {
887
955
  let { $$slots: slots = {}, $$scope } = $$props;
888
956
  const label = "";
889
957
  let { value } = $$props;
@@ -934,7 +1002,7 @@ class RadioButton extends SvelteComponent {
934
1002
  constructor(options) {
935
1003
  super();
936
1004
 
937
- init(this, options, instance$8, create_fragment$8, safe_not_equal, {
1005
+ init(this, options, instance$d, create_fragment$e, safe_not_equal, {
938
1006
  label: 5,
939
1007
  value: 2,
940
1008
  group: 0,
@@ -979,7 +1047,7 @@ function create_if_block_1(ctx) {
979
1047
  }
980
1048
 
981
1049
  // (15:2) {#if error}
982
- function create_if_block$2(ctx) {
1050
+ function create_if_block$3(ctx) {
983
1051
  let p;
984
1052
  let t;
985
1053
 
@@ -1003,7 +1071,7 @@ function create_if_block$2(ctx) {
1003
1071
  };
1004
1072
  }
1005
1073
 
1006
- function create_fragment$7(ctx) {
1074
+ function create_fragment$d(ctx) {
1007
1075
  let div;
1008
1076
  let t0;
1009
1077
  let input;
@@ -1027,7 +1095,7 @@ function create_fragment$7(ctx) {
1027
1095
  input_data = assign(input_data, input_levels[i]);
1028
1096
  }
1029
1097
 
1030
- let if_block1 = /*error*/ ctx[4] && create_if_block$2(ctx);
1098
+ let if_block1 = /*error*/ ctx[4] && create_if_block$3(ctx);
1031
1099
 
1032
1100
  return {
1033
1101
  c() {
@@ -1089,7 +1157,7 @@ function create_fragment$7(ctx) {
1089
1157
  if (if_block1) {
1090
1158
  if_block1.p(ctx, dirty);
1091
1159
  } else {
1092
- if_block1 = create_if_block$2(ctx);
1160
+ if_block1 = create_if_block$3(ctx);
1093
1161
  if_block1.c();
1094
1162
  if_block1.m(div, null);
1095
1163
  }
@@ -1110,7 +1178,7 @@ function create_fragment$7(ctx) {
1110
1178
  };
1111
1179
  }
1112
1180
 
1113
- function instance$7($$self, $$props, $$invalidate) {
1181
+ function instance$c($$self, $$props, $$invalidate) {
1114
1182
  const omit_props_names = ["id","label","placeholder","error","value","min","max"];
1115
1183
  let $$restProps = compute_rest_props($$props, omit_props_names);
1116
1184
  let { id } = $$props;
@@ -1160,7 +1228,7 @@ class NumberInput extends SvelteComponent {
1160
1228
  constructor(options) {
1161
1229
  super();
1162
1230
 
1163
- init(this, options, instance$7, create_fragment$7, safe_not_equal, {
1231
+ init(this, options, instance$c, create_fragment$d, safe_not_equal, {
1164
1232
  id: 1,
1165
1233
  label: 2,
1166
1234
  placeholder: 3,
@@ -3568,7 +3636,7 @@ var feather = /*@__PURE__*/getDefaultExportFromCjs(feather$1.exports);
3568
3636
 
3569
3637
  /* src/Icon.svelte generated by Svelte v3.38.2 */
3570
3638
 
3571
- function create_if_block$1(ctx) {
3639
+ function create_if_block$2(ctx) {
3572
3640
  let svg;
3573
3641
  let g;
3574
3642
  let raw_value = /*icon*/ ctx[3].contents + "";
@@ -3614,9 +3682,9 @@ function create_if_block$1(ctx) {
3614
3682
  };
3615
3683
  }
3616
3684
 
3617
- function create_fragment$6(ctx) {
3685
+ function create_fragment$c(ctx) {
3618
3686
  let if_block_anchor;
3619
- let if_block = /*icon*/ ctx[3] && create_if_block$1(ctx);
3687
+ let if_block = /*icon*/ ctx[3] && create_if_block$2(ctx);
3620
3688
 
3621
3689
  return {
3622
3690
  c() {
@@ -3632,7 +3700,7 @@ function create_fragment$6(ctx) {
3632
3700
  if (if_block) {
3633
3701
  if_block.p(ctx, dirty);
3634
3702
  } else {
3635
- if_block = create_if_block$1(ctx);
3703
+ if_block = create_if_block$2(ctx);
3636
3704
  if_block.c();
3637
3705
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3638
3706
  }
@@ -3650,7 +3718,7 @@ function create_fragment$6(ctx) {
3650
3718
  };
3651
3719
  }
3652
3720
 
3653
- function instance$6($$self, $$props, $$invalidate) {
3721
+ function instance$b($$self, $$props, $$invalidate) {
3654
3722
  let { name } = $$props;
3655
3723
  let { stroke } = $$props;
3656
3724
  let { strokeWidth } = $$props;
@@ -3684,7 +3752,7 @@ class Icon extends SvelteComponent {
3684
3752
  constructor(options) {
3685
3753
  super();
3686
3754
 
3687
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {
3755
+ init(this, options, instance$b, create_fragment$c, safe_not_equal, {
3688
3756
  name: 4,
3689
3757
  stroke: 5,
3690
3758
  strokeWidth: 6,
@@ -3695,9 +3763,115 @@ class Icon extends SvelteComponent {
3695
3763
  }
3696
3764
  }
3697
3765
 
3766
+ /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
3767
+
3768
+ function create_fragment$b(ctx) {
3769
+ let svg;
3770
+ let path0;
3771
+ let path1;
3772
+
3773
+ return {
3774
+ c() {
3775
+ svg = svg_element("svg");
3776
+ path0 = svg_element("path");
3777
+ path1 = svg_element("path");
3778
+ 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");
3779
+ attr(path0, "fill", "white");
3780
+ 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");
3781
+ attr(path1, "fill", "#00D692");
3782
+ attr(svg, "width", /*width*/ ctx[0]);
3783
+ attr(svg, "height", /*height*/ ctx[1]);
3784
+ attr(svg, "viewBox", "0 0 54 53");
3785
+ attr(svg, "fill", "none");
3786
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
3787
+ },
3788
+ m(target, anchor) {
3789
+ insert(target, svg, anchor);
3790
+ append(svg, path0);
3791
+ append(svg, path1);
3792
+ },
3793
+ p(ctx, [dirty]) {
3794
+ if (dirty & /*width*/ 1) {
3795
+ attr(svg, "width", /*width*/ ctx[0]);
3796
+ }
3797
+
3798
+ if (dirty & /*height*/ 2) {
3799
+ attr(svg, "height", /*height*/ ctx[1]);
3800
+ }
3801
+ },
3802
+ i: noop,
3803
+ o: noop,
3804
+ d(detaching) {
3805
+ if (detaching) detach(svg);
3806
+ }
3807
+ };
3808
+ }
3809
+
3810
+ function instance$a($$self, $$props, $$invalidate) {
3811
+ let { width = "5rem" } = $$props;
3812
+ let { height = "5rem" } = $$props;
3813
+
3814
+ $$self.$$set = $$props => {
3815
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
3816
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
3817
+ };
3818
+
3819
+ return [width, height];
3820
+ }
3821
+
3822
+ class IconIrocoLogo extends SvelteComponent {
3823
+ constructor(options) {
3824
+ super();
3825
+ init(this, options, instance$a, create_fragment$b, safe_not_equal, { width: 0, height: 1 });
3826
+ }
3827
+ }
3828
+
3829
+ /* src/Loader.svelte generated by Svelte v3.38.2 */
3830
+
3831
+ function create_fragment$a(ctx) {
3832
+ let div;
3833
+ let iconirocologo;
3834
+ let current;
3835
+ iconirocologo = new IconIrocoLogo({ props: { width: "4em", height: "4em" } });
3836
+
3837
+ return {
3838
+ c() {
3839
+ div = element("div");
3840
+ create_component(iconirocologo.$$.fragment);
3841
+ attr(div, "class", "rotate linear infinite svelte-1dns1yx");
3842
+ },
3843
+ m(target, anchor) {
3844
+ insert(target, div, anchor);
3845
+ mount_component(iconirocologo, div, null);
3846
+ current = true;
3847
+ },
3848
+ p: noop,
3849
+ i(local) {
3850
+ if (current) return;
3851
+ transition_in(iconirocologo.$$.fragment, local);
3852
+ current = true;
3853
+ },
3854
+ o(local) {
3855
+ transition_out(iconirocologo.$$.fragment, local);
3856
+ current = false;
3857
+ },
3858
+ d(detaching) {
3859
+ if (detaching) detach(div);
3860
+ destroy_component(iconirocologo);
3861
+ }
3862
+ };
3863
+ }
3864
+
3865
+ class Loader extends SvelteComponent {
3866
+ constructor(options) {
3867
+ super();
3868
+ init(this, options, null, create_fragment$a, safe_not_equal, {});
3869
+ }
3870
+ }
3871
+
3698
3872
  /* src/IconInfo.svelte generated by Svelte v3.38.2 */
3699
3873
 
3700
- function create_fragment$5(ctx) {
3874
+ function create_fragment$9(ctx) {
3701
3875
  let svg;
3702
3876
  let path;
3703
3877
 
@@ -3738,7 +3912,7 @@ function create_fragment$5(ctx) {
3738
3912
  };
3739
3913
  }
3740
3914
 
3741
- function instance$5($$self, $$props, $$invalidate) {
3915
+ function instance$9($$self, $$props, $$invalidate) {
3742
3916
  let { width = "5rem" } = $$props;
3743
3917
  let { height = "5rem" } = $$props;
3744
3918
 
@@ -3753,13 +3927,13 @@ function instance$5($$self, $$props, $$invalidate) {
3753
3927
  class IconInfo extends SvelteComponent {
3754
3928
  constructor(options) {
3755
3929
  super();
3756
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { width: 0, height: 1 });
3930
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { width: 0, height: 1 });
3757
3931
  }
3758
3932
  }
3759
3933
 
3760
3934
  /* src/IconClose.svelte generated by Svelte v3.38.2 */
3761
3935
 
3762
- function create_fragment$4(ctx) {
3936
+ function create_fragment$8(ctx) {
3763
3937
  let svg;
3764
3938
  let path;
3765
3939
 
@@ -3799,7 +3973,7 @@ function create_fragment$4(ctx) {
3799
3973
  };
3800
3974
  }
3801
3975
 
3802
- function instance$4($$self, $$props, $$invalidate) {
3976
+ function instance$8($$self, $$props, $$invalidate) {
3803
3977
  let { width = "5rem" } = $$props;
3804
3978
  let { height = "5rem" } = $$props;
3805
3979
 
@@ -3814,27 +3988,32 @@ function instance$4($$self, $$props, $$invalidate) {
3814
3988
  class IconClose extends SvelteComponent {
3815
3989
  constructor(options) {
3816
3990
  super();
3817
- init(this, options, instance$4, create_fragment$4, safe_not_equal, { width: 0, height: 1 });
3991
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { width: 0, height: 1 });
3818
3992
  }
3819
3993
  }
3820
3994
 
3821
3995
  /* src/SideBar.svelte generated by Svelte v3.38.2 */
3822
3996
 
3823
- function get_each_context(ctx, list, i) {
3997
+ function get_each_context$1(ctx, list, i) {
3824
3998
  const child_ctx = ctx.slice();
3825
- child_ctx[2] = list[i].destination;
3826
- child_ctx[3] = list[i].name;
3999
+ child_ctx[6] = list[i];
3827
4000
  return child_ctx;
3828
4001
  }
3829
4002
 
3830
- // (12:2) {#each navigationItems as { destination, name }}
3831
- function create_each_block(ctx) {
4003
+ // (22:2) {#each navigationItems as item}
4004
+ function create_each_block$1(ctx) {
3832
4005
  let li;
3833
4006
  let a;
3834
- let t0_value = /*name*/ ctx[3] + "";
4007
+ let t0_value = /*item*/ ctx[6].name + "";
3835
4008
  let t0;
3836
4009
  let a_href_value;
3837
4010
  let t1;
4011
+ let mounted;
4012
+ let dispose;
4013
+
4014
+ function click_handler_1() {
4015
+ return /*click_handler_1*/ ctx[4](/*item*/ ctx[6]);
4016
+ }
3838
4017
 
3839
4018
  return {
3840
4019
  c() {
@@ -3842,30 +4021,49 @@ function create_each_block(ctx) {
3842
4021
  a = element("a");
3843
4022
  t0 = text(t0_value);
3844
4023
  t1 = space();
3845
- attr(a, "href", a_href_value = /*destination*/ ctx[2]);
3846
- attr(a, "class", "svelte-1rnpdw0");
3847
- attr(li, "class", "account__sidebar__item svelte-1rnpdw0");
4024
+
4025
+ attr(a, "href", a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4026
+ ? /*item*/ ctx[6].hrefOrCallback
4027
+ : "#");
4028
+
4029
+ attr(a, "class", "svelte-jkys2k");
4030
+ attr(li, "class", "account__sidebar__item svelte-jkys2k");
4031
+ toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
3848
4032
  },
3849
4033
  m(target, anchor) {
3850
4034
  insert(target, li, anchor);
3851
4035
  append(li, a);
3852
4036
  append(a, t0);
3853
4037
  append(li, t1);
4038
+
4039
+ if (!mounted) {
4040
+ dispose = listen(a, "click", click_handler_1);
4041
+ mounted = true;
4042
+ }
3854
4043
  },
3855
- p(ctx, dirty) {
3856
- if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*name*/ ctx[3] + "")) set_data(t0, t0_value);
4044
+ p(new_ctx, dirty) {
4045
+ ctx = new_ctx;
4046
+ if (dirty & /*navigationItems*/ 1 && t0_value !== (t0_value = /*item*/ ctx[6].name + "")) set_data(t0, t0_value);
3857
4047
 
3858
- if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = /*destination*/ ctx[2])) {
4048
+ if (dirty & /*navigationItems*/ 1 && a_href_value !== (a_href_value = typeof /*item*/ ctx[6].hrefOrCallback === "string"
4049
+ ? /*item*/ ctx[6].hrefOrCallback
4050
+ : "#")) {
3859
4051
  attr(a, "href", a_href_value);
3860
4052
  }
4053
+
4054
+ if (dirty & /*active, navigationItems*/ 3) {
4055
+ toggle_class(li, "active", /*active*/ ctx[1] === /*item*/ ctx[6].name);
4056
+ }
3861
4057
  },
3862
4058
  d(detaching) {
3863
4059
  if (detaching) detach(li);
4060
+ mounted = false;
4061
+ dispose();
3864
4062
  }
3865
4063
  };
3866
4064
  }
3867
4065
 
3868
- function create_fragment$3(ctx) {
4066
+ function create_fragment$7(ctx) {
3869
4067
  let nav;
3870
4068
  let button;
3871
4069
  let iconclose;
@@ -3879,7 +4077,7 @@ function create_fragment$3(ctx) {
3879
4077
  let each_blocks = [];
3880
4078
 
3881
4079
  for (let i = 0; i < each_value.length; i += 1) {
3882
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4080
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
3883
4081
  }
3884
4082
 
3885
4083
  return {
@@ -3894,10 +4092,10 @@ function create_fragment$3(ctx) {
3894
4092
  each_blocks[i].c();
3895
4093
  }
3896
4094
 
3897
- attr(button, "class", "account__sidebar__close svelte-1rnpdw0");
3898
- attr(ul, "class", "account__sidebar__item_container svelte-1rnpdw0");
4095
+ attr(button, "class", "account__sidebar__close svelte-jkys2k");
4096
+ attr(ul, "class", "account__sidebar__item_container svelte-jkys2k");
3899
4097
  attr(nav, "data-testid", "sidebar");
3900
- attr(nav, "class", "account__sidebar svelte-1rnpdw0");
4098
+ attr(nav, "class", "account__sidebar svelte-jkys2k");
3901
4099
  },
3902
4100
  m(target, anchor) {
3903
4101
  insert(target, nav, anchor);
@@ -3913,22 +4111,22 @@ function create_fragment$3(ctx) {
3913
4111
  current = true;
3914
4112
 
3915
4113
  if (!mounted) {
3916
- dispose = listen(button, "click", /*click_handler*/ ctx[1]);
4114
+ dispose = listen(button, "click", /*click_handler*/ ctx[3]);
3917
4115
  mounted = true;
3918
4116
  }
3919
4117
  },
3920
4118
  p(ctx, [dirty]) {
3921
- if (dirty & /*navigationItems*/ 1) {
4119
+ if (dirty & /*active, navigationItems, handleClickLink*/ 7) {
3922
4120
  each_value = /*navigationItems*/ ctx[0];
3923
4121
  let i;
3924
4122
 
3925
4123
  for (i = 0; i < each_value.length; i += 1) {
3926
- const child_ctx = get_each_context(ctx, each_value, i);
4124
+ const child_ctx = get_each_context$1(ctx, each_value, i);
3927
4125
 
3928
4126
  if (each_blocks[i]) {
3929
4127
  each_blocks[i].p(child_ctx, dirty);
3930
4128
  } else {
3931
- each_blocks[i] = create_each_block(child_ctx);
4129
+ each_blocks[i] = create_each_block$1(child_ctx);
3932
4130
  each_blocks[i].c();
3933
4131
  each_blocks[i].m(ul, null);
3934
4132
  }
@@ -3960,31 +4158,45 @@ function create_fragment$3(ctx) {
3960
4158
  };
3961
4159
  }
3962
4160
 
3963
- function instance$3($$self, $$props, $$invalidate) {
4161
+ function instance$7($$self, $$props, $$invalidate) {
3964
4162
 
3965
4163
  let { navigationItems } = $$props;
4164
+ let active;
4165
+ const dispatch = createEventDispatcher();
4166
+
4167
+ const handleClickLink = menuItem => {
4168
+ $$invalidate(1, active = menuItem.name);
4169
+
4170
+ if (typeof menuItem.hrefOrCallback === "function") {
4171
+ menuItem.hrefOrCallback();
4172
+ }
4173
+
4174
+ dispatch("click_link");
4175
+ };
3966
4176
 
3967
4177
  function click_handler(event) {
3968
4178
  bubble($$self, event);
3969
4179
  }
3970
4180
 
4181
+ const click_handler_1 = item => handleClickLink(item);
4182
+
3971
4183
  $$self.$$set = $$props => {
3972
4184
  if ("navigationItems" in $$props) $$invalidate(0, navigationItems = $$props.navigationItems);
3973
4185
  };
3974
4186
 
3975
- return [navigationItems, click_handler];
4187
+ return [navigationItems, active, handleClickLink, click_handler, click_handler_1];
3976
4188
  }
3977
4189
 
3978
4190
  class SideBar extends SvelteComponent {
3979
4191
  constructor(options) {
3980
4192
  super();
3981
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { navigationItems: 0 });
4193
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { navigationItems: 0 });
3982
4194
  }
3983
4195
  }
3984
4196
 
3985
4197
  /* src/IconBurger.svelte generated by Svelte v3.38.2 */
3986
4198
 
3987
- function create_fragment$2(ctx) {
4199
+ function create_fragment$6(ctx) {
3988
4200
  let svg;
3989
4201
  let path;
3990
4202
 
@@ -4024,7 +4236,7 @@ function create_fragment$2(ctx) {
4024
4236
  };
4025
4237
  }
4026
4238
 
4027
- function instance$2($$self, $$props, $$invalidate) {
4239
+ function instance$6($$self, $$props, $$invalidate) {
4028
4240
  let { width = "5rem" } = $$props;
4029
4241
  let { height = "5rem" } = $$props;
4030
4242
 
@@ -4039,76 +4251,13 @@ function instance$2($$self, $$props, $$invalidate) {
4039
4251
  class IconBurger extends SvelteComponent {
4040
4252
  constructor(options) {
4041
4253
  super();
4042
- init(this, options, instance$2, create_fragment$2, safe_not_equal, { width: 0, height: 1 });
4043
- }
4044
- }
4045
-
4046
- /* src/IconIrocoLogo.svelte generated by Svelte v3.38.2 */
4047
-
4048
- function create_fragment$1(ctx) {
4049
- let svg;
4050
- let path0;
4051
- let path1;
4052
-
4053
- return {
4054
- c() {
4055
- svg = svg_element("svg");
4056
- path0 = svg_element("path");
4057
- path1 = svg_element("path");
4058
- 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");
4059
- attr(path0, "fill", "white");
4060
- 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");
4061
- attr(path1, "fill", "#00D692");
4062
- attr(svg, "width", /*width*/ ctx[0]);
4063
- attr(svg, "height", /*height*/ ctx[1]);
4064
- attr(svg, "viewBox", "0 0 54 53");
4065
- attr(svg, "fill", "none");
4066
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
4067
- },
4068
- m(target, anchor) {
4069
- insert(target, svg, anchor);
4070
- append(svg, path0);
4071
- append(svg, path1);
4072
- },
4073
- p(ctx, [dirty]) {
4074
- if (dirty & /*width*/ 1) {
4075
- attr(svg, "width", /*width*/ ctx[0]);
4076
- }
4077
-
4078
- if (dirty & /*height*/ 2) {
4079
- attr(svg, "height", /*height*/ ctx[1]);
4080
- }
4081
- },
4082
- i: noop,
4083
- o: noop,
4084
- d(detaching) {
4085
- if (detaching) detach(svg);
4086
- }
4087
- };
4088
- }
4089
-
4090
- function instance$1($$self, $$props, $$invalidate) {
4091
- let { width = "5rem" } = $$props;
4092
- let { height = "5rem" } = $$props;
4093
-
4094
- $$self.$$set = $$props => {
4095
- if ("width" in $$props) $$invalidate(0, width = $$props.width);
4096
- if ("height" in $$props) $$invalidate(1, height = $$props.height);
4097
- };
4098
-
4099
- return [width, height];
4100
- }
4101
-
4102
- class IconIrocoLogo extends SvelteComponent {
4103
- constructor(options) {
4104
- super();
4105
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { width: 0, height: 1 });
4254
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { width: 0, height: 1 });
4106
4255
  }
4107
4256
  }
4108
4257
 
4109
4258
  /* src/Navigation.svelte generated by Svelte v3.38.2 */
4110
4259
 
4111
- function create_if_block(ctx) {
4260
+ function create_if_block$1(ctx) {
4112
4261
  let sidebar;
4113
4262
  let current;
4114
4263
 
@@ -4118,7 +4267,8 @@ function create_if_block(ctx) {
4118
4267
  }
4119
4268
  });
4120
4269
 
4121
- sidebar.$on("click", /*click_handler_1*/ ctx[4]);
4270
+ sidebar.$on("click_link", /*click_link_handler*/ ctx[4]);
4271
+ sidebar.$on("click", /*click_handler_1*/ ctx[5]);
4122
4272
 
4123
4273
  return {
4124
4274
  c() {
@@ -4148,7 +4298,7 @@ function create_if_block(ctx) {
4148
4298
  };
4149
4299
  }
4150
4300
 
4151
- function create_fragment(ctx) {
4301
+ function create_fragment$5(ctx) {
4152
4302
  let div1;
4153
4303
  let div0;
4154
4304
  let iconirocologo0;
@@ -4173,7 +4323,7 @@ function create_fragment(ctx) {
4173
4323
  let dispose;
4174
4324
  iconirocologo0 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4175
4325
  iconburger = new IconBurger({ props: { width: "3em", height: "3em" } });
4176
- let if_block = /*showMenu*/ ctx[2] && create_if_block(ctx);
4326
+ let if_block = /*showMenu*/ ctx[2] && create_if_block$1(ctx);
4177
4327
  iconirocologo1 = new IconIrocoLogo({ props: { width: "3em", height: "3em" } });
4178
4328
 
4179
4329
  sidebar = new SideBar({
@@ -4204,13 +4354,13 @@ function create_fragment(ctx) {
4204
4354
  t6 = text(/*title*/ ctx[1]);
4205
4355
  t7 = space();
4206
4356
  create_component(sidebar.$$.fragment);
4207
- attr(h10, "class", "svelte-ff4jq1");
4208
- attr(div0, "class", "account__navigation--mobile__title-container svelte-ff4jq1");
4209
- attr(button, "class", "account__navigation--mobile__button svelte-ff4jq1");
4210
- attr(div1, "class", "account__navigation--mobile svelte-ff4jq1");
4211
- attr(h11, "class", "svelte-ff4jq1");
4212
- attr(div2, "class", "account__navigation__title-container svelte-ff4jq1");
4213
- attr(div3, "class", "account__navigation svelte-ff4jq1");
4357
+ attr(h10, "class", "svelte-1uu9ytm");
4358
+ attr(div0, "class", "account__navigation--mobile__title-container svelte-1uu9ytm");
4359
+ attr(button, "class", "account__navigation--mobile__button svelte-1uu9ytm");
4360
+ attr(div1, "class", "account__navigation--mobile svelte-1uu9ytm");
4361
+ attr(h11, "class", "svelte-1uu9ytm");
4362
+ attr(div2, "class", "account__navigation__title-container svelte-1uu9ytm");
4363
+ attr(div3, "class", "account__navigation svelte-1uu9ytm");
4214
4364
  },
4215
4365
  m(target, anchor) {
4216
4366
  insert(target, div1, anchor);
@@ -4251,7 +4401,7 @@ function create_fragment(ctx) {
4251
4401
  transition_in(if_block, 1);
4252
4402
  }
4253
4403
  } else {
4254
- if_block = create_if_block(ctx);
4404
+ if_block = create_if_block$1(ctx);
4255
4405
  if_block.c();
4256
4406
  transition_in(if_block, 1);
4257
4407
  if_block.m(div1, null);
@@ -4303,12 +4453,13 @@ function create_fragment(ctx) {
4303
4453
  };
4304
4454
  }
4305
4455
 
4306
- function instance($$self, $$props, $$invalidate) {
4456
+ function instance$5($$self, $$props, $$invalidate) {
4307
4457
 
4308
4458
  let { navigationItems } = $$props;
4309
4459
  let { title } = $$props;
4310
4460
  let showMenu = false;
4311
4461
  const click_handler = () => $$invalidate(2, showMenu = true);
4462
+ const click_link_handler = () => $$invalidate(2, showMenu = false);
4312
4463
  const click_handler_1 = () => $$invalidate(2, showMenu = false);
4313
4464
 
4314
4465
  $$self.$$set = $$props => {
@@ -4316,14 +4467,750 @@ function instance($$self, $$props, $$invalidate) {
4316
4467
  if ("title" in $$props) $$invalidate(1, title = $$props.title);
4317
4468
  };
4318
4469
 
4319
- return [navigationItems, title, showMenu, click_handler, click_handler_1];
4470
+ return [
4471
+ navigationItems,
4472
+ title,
4473
+ showMenu,
4474
+ click_handler,
4475
+ click_link_handler,
4476
+ click_handler_1
4477
+ ];
4320
4478
  }
4321
4479
 
4322
4480
  class Navigation extends SvelteComponent {
4323
4481
  constructor(options) {
4324
4482
  super();
4325
- init(this, options, instance, create_fragment, safe_not_equal, { navigationItems: 0, title: 1 });
4483
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, { navigationItems: 0, title: 1 });
4484
+ }
4485
+ }
4486
+
4487
+ /* src/DataTable.svelte generated by Svelte v3.38.2 */
4488
+
4489
+ function get_each_context(ctx, list, i) {
4490
+ const child_ctx = ctx.slice();
4491
+ child_ctx[3] = list[i];
4492
+ return child_ctx;
4493
+ }
4494
+
4495
+ function get_each_context_1(ctx, list, i) {
4496
+ const child_ctx = ctx.slice();
4497
+ child_ctx[6] = list[i].key;
4498
+ child_ctx[7] = list[i].renderComponent;
4499
+ return child_ctx;
4500
+ }
4501
+
4502
+ function get_each_context_2(ctx, list, i) {
4503
+ const child_ctx = ctx.slice();
4504
+ child_ctx[10] = list[i];
4505
+ return child_ctx;
4506
+ }
4507
+
4508
+ // (9:3) {#each collumns as collumn}
4509
+ function create_each_block_2(ctx) {
4510
+ let th;
4511
+ let t0_value = /*collumn*/ ctx[10].title + "";
4512
+ let t0;
4513
+ let t1;
4514
+
4515
+ return {
4516
+ c() {
4517
+ th = element("th");
4518
+ t0 = text(t0_value);
4519
+ t1 = space();
4520
+ attr(th, "class", "data-table__header__cell svelte-1ju5y8t");
4521
+ },
4522
+ m(target, anchor) {
4523
+ insert(target, th, anchor);
4524
+ append(th, t0);
4525
+ append(th, t1);
4526
+ },
4527
+ p(ctx, dirty) {
4528
+ if (dirty & /*collumns*/ 2 && t0_value !== (t0_value = /*collumn*/ ctx[10].title + "")) set_data(t0, t0_value);
4529
+ },
4530
+ d(detaching) {
4531
+ if (detaching) detach(th);
4532
+ }
4533
+ };
4534
+ }
4535
+
4536
+ // (27:6) {:else}
4537
+ function create_else_block(ctx) {
4538
+ let t_value = /*row*/ ctx[3][/*key*/ ctx[6]] + "";
4539
+ let t;
4540
+
4541
+ return {
4542
+ c() {
4543
+ t = text(t_value);
4544
+ },
4545
+ m(target, anchor) {
4546
+ insert(target, t, anchor);
4547
+ },
4548
+ p(ctx, dirty) {
4549
+ if (dirty & /*rows, collumns*/ 3 && t_value !== (t_value = /*row*/ ctx[3][/*key*/ ctx[6]] + "")) set_data(t, t_value);
4550
+ },
4551
+ i: noop,
4552
+ o: noop,
4553
+ d(detaching) {
4554
+ if (detaching) detach(t);
4555
+ }
4556
+ };
4557
+ }
4558
+
4559
+ // (22:6) {#if renderComponent}
4560
+ function create_if_block(ctx) {
4561
+ let switch_instance;
4562
+ let switch_instance_anchor;
4563
+ let current;
4564
+
4565
+ function click_handler() {
4566
+ return /*click_handler*/ ctx[2](/*renderComponent*/ ctx[7], /*row*/ ctx[3]);
4567
+ }
4568
+
4569
+ var switch_value = /*renderComponent*/ ctx[7].component;
4570
+
4571
+ function switch_props(ctx) {
4572
+ return {};
4573
+ }
4574
+
4575
+ if (switch_value) {
4576
+ switch_instance = new switch_value(switch_props());
4577
+ switch_instance.$on("click", click_handler);
4578
+ }
4579
+
4580
+ return {
4581
+ c() {
4582
+ if (switch_instance) create_component(switch_instance.$$.fragment);
4583
+ switch_instance_anchor = empty();
4584
+ },
4585
+ m(target, anchor) {
4586
+ if (switch_instance) {
4587
+ mount_component(switch_instance, target, anchor);
4588
+ }
4589
+
4590
+ insert(target, switch_instance_anchor, anchor);
4591
+ current = true;
4592
+ },
4593
+ p(new_ctx, dirty) {
4594
+ ctx = new_ctx;
4595
+
4596
+ if (switch_value !== (switch_value = /*renderComponent*/ ctx[7].component)) {
4597
+ if (switch_instance) {
4598
+ group_outros();
4599
+ const old_component = switch_instance;
4600
+
4601
+ transition_out(old_component.$$.fragment, 1, 0, () => {
4602
+ destroy_component(old_component, 1);
4603
+ });
4604
+
4605
+ check_outros();
4606
+ }
4607
+
4608
+ if (switch_value) {
4609
+ switch_instance = new switch_value(switch_props());
4610
+ switch_instance.$on("click", click_handler);
4611
+ create_component(switch_instance.$$.fragment);
4612
+ transition_in(switch_instance.$$.fragment, 1);
4613
+ mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
4614
+ } else {
4615
+ switch_instance = null;
4616
+ }
4617
+ }
4618
+ },
4619
+ i(local) {
4620
+ if (current) return;
4621
+ if (switch_instance) transition_in(switch_instance.$$.fragment, local);
4622
+ current = true;
4623
+ },
4624
+ o(local) {
4625
+ if (switch_instance) transition_out(switch_instance.$$.fragment, local);
4626
+ current = false;
4627
+ },
4628
+ d(detaching) {
4629
+ if (detaching) detach(switch_instance_anchor);
4630
+ if (switch_instance) destroy_component(switch_instance, detaching);
4631
+ }
4632
+ };
4633
+ }
4634
+
4635
+ // (20:4) {#each collumns as { key, renderComponent }}
4636
+ function create_each_block_1(ctx) {
4637
+ let td;
4638
+ let current_block_type_index;
4639
+ let if_block;
4640
+ let current;
4641
+ const if_block_creators = [create_if_block, create_else_block];
4642
+ const if_blocks = [];
4643
+
4644
+ function select_block_type(ctx, dirty) {
4645
+ if (/*renderComponent*/ ctx[7]) return 0;
4646
+ return 1;
4647
+ }
4648
+
4649
+ current_block_type_index = select_block_type(ctx);
4650
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4651
+
4652
+ return {
4653
+ c() {
4654
+ td = element("td");
4655
+ if_block.c();
4656
+ attr(td, "class", "data-table__body__cell svelte-1ju5y8t");
4657
+ },
4658
+ m(target, anchor) {
4659
+ insert(target, td, anchor);
4660
+ if_blocks[current_block_type_index].m(td, null);
4661
+ current = true;
4662
+ },
4663
+ p(ctx, dirty) {
4664
+ let previous_block_index = current_block_type_index;
4665
+ current_block_type_index = select_block_type(ctx);
4666
+
4667
+ if (current_block_type_index === previous_block_index) {
4668
+ if_blocks[current_block_type_index].p(ctx, dirty);
4669
+ } else {
4670
+ group_outros();
4671
+
4672
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
4673
+ if_blocks[previous_block_index] = null;
4674
+ });
4675
+
4676
+ check_outros();
4677
+ if_block = if_blocks[current_block_type_index];
4678
+
4679
+ if (!if_block) {
4680
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4681
+ if_block.c();
4682
+ } else {
4683
+ if_block.p(ctx, dirty);
4684
+ }
4685
+
4686
+ transition_in(if_block, 1);
4687
+ if_block.m(td, null);
4688
+ }
4689
+ },
4690
+ i(local) {
4691
+ if (current) return;
4692
+ transition_in(if_block);
4693
+ current = true;
4694
+ },
4695
+ o(local) {
4696
+ transition_out(if_block);
4697
+ current = false;
4698
+ },
4699
+ d(detaching) {
4700
+ if (detaching) detach(td);
4701
+ if_blocks[current_block_type_index].d();
4702
+ }
4703
+ };
4704
+ }
4705
+
4706
+ // (18:2) {#each rows as row}
4707
+ function create_each_block(ctx) {
4708
+ let tr;
4709
+ let t;
4710
+ let current;
4711
+ let each_value_1 = /*collumns*/ ctx[1];
4712
+ let each_blocks = [];
4713
+
4714
+ for (let i = 0; i < each_value_1.length; i += 1) {
4715
+ each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
4716
+ }
4717
+
4718
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
4719
+ each_blocks[i] = null;
4720
+ });
4721
+
4722
+ return {
4723
+ c() {
4724
+ tr = element("tr");
4725
+
4726
+ for (let i = 0; i < each_blocks.length; i += 1) {
4727
+ each_blocks[i].c();
4728
+ }
4729
+
4730
+ t = space();
4731
+ attr(tr, "class", "data-table__body__row");
4732
+ },
4733
+ m(target, anchor) {
4734
+ insert(target, tr, anchor);
4735
+
4736
+ for (let i = 0; i < each_blocks.length; i += 1) {
4737
+ each_blocks[i].m(tr, null);
4738
+ }
4739
+
4740
+ append(tr, t);
4741
+ current = true;
4742
+ },
4743
+ p(ctx, dirty) {
4744
+ if (dirty & /*collumns, rows*/ 3) {
4745
+ each_value_1 = /*collumns*/ ctx[1];
4746
+ let i;
4747
+
4748
+ for (i = 0; i < each_value_1.length; i += 1) {
4749
+ const child_ctx = get_each_context_1(ctx, each_value_1, i);
4750
+
4751
+ if (each_blocks[i]) {
4752
+ each_blocks[i].p(child_ctx, dirty);
4753
+ transition_in(each_blocks[i], 1);
4754
+ } else {
4755
+ each_blocks[i] = create_each_block_1(child_ctx);
4756
+ each_blocks[i].c();
4757
+ transition_in(each_blocks[i], 1);
4758
+ each_blocks[i].m(tr, t);
4759
+ }
4760
+ }
4761
+
4762
+ group_outros();
4763
+
4764
+ for (i = each_value_1.length; i < each_blocks.length; i += 1) {
4765
+ out(i);
4766
+ }
4767
+
4768
+ check_outros();
4769
+ }
4770
+ },
4771
+ i(local) {
4772
+ if (current) return;
4773
+
4774
+ for (let i = 0; i < each_value_1.length; i += 1) {
4775
+ transition_in(each_blocks[i]);
4776
+ }
4777
+
4778
+ current = true;
4779
+ },
4780
+ o(local) {
4781
+ each_blocks = each_blocks.filter(Boolean);
4782
+
4783
+ for (let i = 0; i < each_blocks.length; i += 1) {
4784
+ transition_out(each_blocks[i]);
4785
+ }
4786
+
4787
+ current = false;
4788
+ },
4789
+ d(detaching) {
4790
+ if (detaching) detach(tr);
4791
+ destroy_each(each_blocks, detaching);
4792
+ }
4793
+ };
4794
+ }
4795
+
4796
+ function create_fragment$4(ctx) {
4797
+ let table;
4798
+ let thead;
4799
+ let tr;
4800
+ let t;
4801
+ let tbody;
4802
+ let current;
4803
+ let each_value_2 = /*collumns*/ ctx[1];
4804
+ let each_blocks_1 = [];
4805
+
4806
+ for (let i = 0; i < each_value_2.length; i += 1) {
4807
+ each_blocks_1[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
4808
+ }
4809
+
4810
+ let each_value = /*rows*/ ctx[0];
4811
+ let each_blocks = [];
4812
+
4813
+ for (let i = 0; i < each_value.length; i += 1) {
4814
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4815
+ }
4816
+
4817
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
4818
+ each_blocks[i] = null;
4819
+ });
4820
+
4821
+ return {
4822
+ c() {
4823
+ table = element("table");
4824
+ thead = element("thead");
4825
+ tr = element("tr");
4826
+
4827
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
4828
+ each_blocks_1[i].c();
4829
+ }
4830
+
4831
+ t = space();
4832
+ tbody = element("tbody");
4833
+
4834
+ for (let i = 0; i < each_blocks.length; i += 1) {
4835
+ each_blocks[i].c();
4836
+ }
4837
+
4838
+ attr(thead, "class", "data-table__header svelte-1ju5y8t");
4839
+ attr(tbody, "class", "data-table__body");
4840
+ attr(table, "class", "data-table svelte-1ju5y8t");
4841
+ },
4842
+ m(target, anchor) {
4843
+ insert(target, table, anchor);
4844
+ append(table, thead);
4845
+ append(thead, tr);
4846
+
4847
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
4848
+ each_blocks_1[i].m(tr, null);
4849
+ }
4850
+
4851
+ append(table, t);
4852
+ append(table, tbody);
4853
+
4854
+ for (let i = 0; i < each_blocks.length; i += 1) {
4855
+ each_blocks[i].m(tbody, null);
4856
+ }
4857
+
4858
+ current = true;
4859
+ },
4860
+ p(ctx, [dirty]) {
4861
+ if (dirty & /*collumns*/ 2) {
4862
+ each_value_2 = /*collumns*/ ctx[1];
4863
+ let i;
4864
+
4865
+ for (i = 0; i < each_value_2.length; i += 1) {
4866
+ const child_ctx = get_each_context_2(ctx, each_value_2, i);
4867
+
4868
+ if (each_blocks_1[i]) {
4869
+ each_blocks_1[i].p(child_ctx, dirty);
4870
+ } else {
4871
+ each_blocks_1[i] = create_each_block_2(child_ctx);
4872
+ each_blocks_1[i].c();
4873
+ each_blocks_1[i].m(tr, null);
4874
+ }
4875
+ }
4876
+
4877
+ for (; i < each_blocks_1.length; i += 1) {
4878
+ each_blocks_1[i].d(1);
4879
+ }
4880
+
4881
+ each_blocks_1.length = each_value_2.length;
4882
+ }
4883
+
4884
+ if (dirty & /*collumns, rows*/ 3) {
4885
+ each_value = /*rows*/ ctx[0];
4886
+ let i;
4887
+
4888
+ for (i = 0; i < each_value.length; i += 1) {
4889
+ const child_ctx = get_each_context(ctx, each_value, i);
4890
+
4891
+ if (each_blocks[i]) {
4892
+ each_blocks[i].p(child_ctx, dirty);
4893
+ transition_in(each_blocks[i], 1);
4894
+ } else {
4895
+ each_blocks[i] = create_each_block(child_ctx);
4896
+ each_blocks[i].c();
4897
+ transition_in(each_blocks[i], 1);
4898
+ each_blocks[i].m(tbody, null);
4899
+ }
4900
+ }
4901
+
4902
+ group_outros();
4903
+
4904
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
4905
+ out(i);
4906
+ }
4907
+
4908
+ check_outros();
4909
+ }
4910
+ },
4911
+ i(local) {
4912
+ if (current) return;
4913
+
4914
+ for (let i = 0; i < each_value.length; i += 1) {
4915
+ transition_in(each_blocks[i]);
4916
+ }
4917
+
4918
+ current = true;
4919
+ },
4920
+ o(local) {
4921
+ each_blocks = each_blocks.filter(Boolean);
4922
+
4923
+ for (let i = 0; i < each_blocks.length; i += 1) {
4924
+ transition_out(each_blocks[i]);
4925
+ }
4926
+
4927
+ current = false;
4928
+ },
4929
+ d(detaching) {
4930
+ if (detaching) detach(table);
4931
+ destroy_each(each_blocks_1, detaching);
4932
+ destroy_each(each_blocks, detaching);
4933
+ }
4934
+ };
4935
+ }
4936
+
4937
+ function instance$4($$self, $$props, $$invalidate) {
4938
+
4939
+ let { rows } = $$props;
4940
+ let { collumns } = $$props;
4941
+ const click_handler = (renderComponent, row) => renderComponent.props.onclick(row);
4942
+
4943
+ $$self.$$set = $$props => {
4944
+ if ("rows" in $$props) $$invalidate(0, rows = $$props.rows);
4945
+ if ("collumns" in $$props) $$invalidate(1, collumns = $$props.collumns);
4946
+ };
4947
+
4948
+ return [rows, collumns, click_handler];
4949
+ }
4950
+
4951
+ class DataTable extends SvelteComponent {
4952
+ constructor(options) {
4953
+ super();
4954
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { rows: 0, collumns: 1 });
4955
+ }
4956
+ }
4957
+
4958
+ /* src/IconMoreSign.svelte generated by Svelte v3.38.2 */
4959
+
4960
+ function create_fragment$3(ctx) {
4961
+ let svg;
4962
+ let path;
4963
+
4964
+ return {
4965
+ c() {
4966
+ svg = svg_element("svg");
4967
+ path = svg_element("path");
4968
+ attr(path, "stroke-linecap", "round");
4969
+ attr(path, "stroke-linejoin", "round");
4970
+ attr(path, "stroke-width", "2");
4971
+ attr(path, "d", "M12 4v16m8-8H4");
4972
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
4973
+ attr(svg, "height", /*height*/ ctx[1]);
4974
+ attr(svg, "width", /*width*/ ctx[0]);
4975
+ attr(svg, "fill", "none");
4976
+ attr(svg, "viewBox", "0 0 24 24");
4977
+ attr(svg, "stroke", "currentColor");
4978
+ },
4979
+ m(target, anchor) {
4980
+ insert(target, svg, anchor);
4981
+ append(svg, path);
4982
+ },
4983
+ p(ctx, [dirty]) {
4984
+ if (dirty & /*height*/ 2) {
4985
+ attr(svg, "height", /*height*/ ctx[1]);
4986
+ }
4987
+
4988
+ if (dirty & /*width*/ 1) {
4989
+ attr(svg, "width", /*width*/ ctx[0]);
4990
+ }
4991
+ },
4992
+ i: noop,
4993
+ o: noop,
4994
+ d(detaching) {
4995
+ if (detaching) detach(svg);
4996
+ }
4997
+ };
4998
+ }
4999
+
5000
+ function instance$3($$self, $$props, $$invalidate) {
5001
+ let { width = "3rem" } = $$props;
5002
+ let { height = "3rem" } = $$props;
5003
+
5004
+ $$self.$$set = $$props => {
5005
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5006
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5007
+ };
5008
+
5009
+ return [width, height];
5010
+ }
5011
+
5012
+ class IconMoreSign extends SvelteComponent {
5013
+ constructor(options) {
5014
+ super();
5015
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { width: 0, height: 1 });
5016
+ }
5017
+ }
5018
+
5019
+ /* src/IconFloppyDisk.svelte generated by Svelte v3.38.2 */
5020
+
5021
+ function create_fragment$2(ctx) {
5022
+ let svg;
5023
+ let path;
5024
+
5025
+ return {
5026
+ c() {
5027
+ svg = svg_element("svg");
5028
+ path = svg_element("path");
5029
+ 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");
5030
+ attr(path, "fill", /*fill*/ ctx[2]);
5031
+ attr(svg, "width", /*width*/ ctx[0]);
5032
+ attr(svg, "height", /*height*/ ctx[1]);
5033
+ attr(svg, "viewBox", "0 0 12 12");
5034
+ attr(svg, "fill", "none");
5035
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
5036
+ },
5037
+ m(target, anchor) {
5038
+ insert(target, svg, anchor);
5039
+ append(svg, path);
5040
+ },
5041
+ p(ctx, [dirty]) {
5042
+ if (dirty & /*fill*/ 4) {
5043
+ attr(path, "fill", /*fill*/ ctx[2]);
5044
+ }
5045
+
5046
+ if (dirty & /*width*/ 1) {
5047
+ attr(svg, "width", /*width*/ ctx[0]);
5048
+ }
5049
+
5050
+ if (dirty & /*height*/ 2) {
5051
+ attr(svg, "height", /*height*/ ctx[1]);
5052
+ }
5053
+ },
5054
+ i: noop,
5055
+ o: noop,
5056
+ d(detaching) {
5057
+ if (detaching) detach(svg);
5058
+ }
5059
+ };
5060
+ }
5061
+
5062
+ function instance$2($$self, $$props, $$invalidate) {
5063
+ let { width = "5rem" } = $$props;
5064
+ let { height = "5rem" } = $$props;
5065
+ let { fill = "currentColor" } = $$props;
5066
+
5067
+ $$self.$$set = $$props => {
5068
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5069
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5070
+ if ("fill" in $$props) $$invalidate(2, fill = $$props.fill);
5071
+ };
5072
+
5073
+ return [width, height, fill];
5074
+ }
5075
+
5076
+ class IconFloppyDisk extends SvelteComponent {
5077
+ constructor(options) {
5078
+ super();
5079
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { width: 0, height: 1, fill: 2 });
5080
+ }
5081
+ }
5082
+
5083
+ /* src/IconTrashCan.svelte generated by Svelte v3.38.2 */
5084
+
5085
+ function create_fragment$1(ctx) {
5086
+ let svg;
5087
+ let path;
5088
+
5089
+ return {
5090
+ c() {
5091
+ svg = svg_element("svg");
5092
+ path = svg_element("path");
5093
+ attr(path, "stroke-linecap", "round");
5094
+ attr(path, "stroke-linejoin", "round");
5095
+ attr(path, "stroke-width", "2");
5096
+ 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");
5097
+ attr(svg, "width", /*width*/ ctx[0]);
5098
+ attr(svg, "height", /*height*/ ctx[1]);
5099
+ attr(svg, "fill", "none");
5100
+ attr(svg, "stroke", /*stroke*/ ctx[2]);
5101
+ attr(svg, "viewBox", "0 0 24 24");
5102
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
5103
+ },
5104
+ m(target, anchor) {
5105
+ insert(target, svg, anchor);
5106
+ append(svg, path);
5107
+ },
5108
+ p(ctx, [dirty]) {
5109
+ if (dirty & /*width*/ 1) {
5110
+ attr(svg, "width", /*width*/ ctx[0]);
5111
+ }
5112
+
5113
+ if (dirty & /*height*/ 2) {
5114
+ attr(svg, "height", /*height*/ ctx[1]);
5115
+ }
5116
+
5117
+ if (dirty & /*stroke*/ 4) {
5118
+ attr(svg, "stroke", /*stroke*/ ctx[2]);
5119
+ }
5120
+ },
5121
+ i: noop,
5122
+ o: noop,
5123
+ d(detaching) {
5124
+ if (detaching) detach(svg);
5125
+ }
5126
+ };
5127
+ }
5128
+
5129
+ function instance$1($$self, $$props, $$invalidate) {
5130
+ let { width = "5rem" } = $$props;
5131
+ let { height = "5rem" } = $$props;
5132
+ let { stroke = "currentColor" } = $$props;
5133
+
5134
+ $$self.$$set = $$props => {
5135
+ if ("width" in $$props) $$invalidate(0, width = $$props.width);
5136
+ if ("height" in $$props) $$invalidate(1, height = $$props.height);
5137
+ if ("stroke" in $$props) $$invalidate(2, stroke = $$props.stroke);
5138
+ };
5139
+
5140
+ return [width, height, stroke];
5141
+ }
5142
+
5143
+ class IconTrashCan extends SvelteComponent {
5144
+ constructor(options) {
5145
+ super();
5146
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { width: 0, height: 1, stroke: 2 });
5147
+ }
5148
+ }
5149
+
5150
+ /* src/Alert.svelte generated by Svelte v3.38.2 */
5151
+
5152
+ function create_fragment(ctx) {
5153
+ let div;
5154
+ let t;
5155
+ let div_class_value;
5156
+ let mounted;
5157
+ let dispose;
5158
+
5159
+ return {
5160
+ c() {
5161
+ div = element("div");
5162
+ t = text(/*content*/ ctx[1]);
5163
+ attr(div, "class", div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"));
5164
+ },
5165
+ m(target, anchor) {
5166
+ insert(target, div, anchor);
5167
+ append(div, t);
5168
+
5169
+ if (!mounted) {
5170
+ dispose = listen(div, "click", function () {
5171
+ if (is_function(/*callback*/ ctx[2])) /*callback*/ ctx[2].apply(this, arguments);
5172
+ });
5173
+
5174
+ mounted = true;
5175
+ }
5176
+ },
5177
+ p(new_ctx, [dirty]) {
5178
+ ctx = new_ctx;
5179
+ if (dirty & /*content*/ 2) set_data(t, /*content*/ ctx[1]);
5180
+
5181
+ if (dirty & /*type*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(`alert alert--${/*type*/ ctx[0]}`) + " svelte-1oun6o6"))) {
5182
+ attr(div, "class", div_class_value);
5183
+ }
5184
+ },
5185
+ i: noop,
5186
+ o: noop,
5187
+ d(detaching) {
5188
+ if (detaching) detach(div);
5189
+ mounted = false;
5190
+ dispose();
5191
+ }
5192
+ };
5193
+ }
5194
+
5195
+ function instance($$self, $$props, $$invalidate) {
5196
+ let { type = "success" } = $$props;
5197
+ let { content } = $$props;
5198
+ let { callback } = $$props;
5199
+
5200
+ $$self.$$set = $$props => {
5201
+ if ("type" in $$props) $$invalidate(0, type = $$props.type);
5202
+ if ("content" in $$props) $$invalidate(1, content = $$props.content);
5203
+ if ("callback" in $$props) $$invalidate(2, callback = $$props.callback);
5204
+ };
5205
+
5206
+ return [type, content, callback];
5207
+ }
5208
+
5209
+ class Alert extends SvelteComponent {
5210
+ constructor(options) {
5211
+ super();
5212
+ init(this, options, instance, create_fragment, safe_not_equal, { type: 0, content: 1, callback: 2 });
4326
5213
  }
4327
5214
  }
4328
5215
 
4329
- export { Button, Icon, IconInfo, Navigation, NumberInput, RadioButton, SideBar, TextInput };
5216
+ export { Alert, Button, DataTable, Icon, IconFloppyDisk, IconInfo, IconMoreSign as IconMore, IconTrashCan, Loader, Navigation, NumberInput, RadioButton, SideBar, TextInput };