@plaidev/karte-action-sdk 1.1.102-27907506.fdeccea7 → 1.1.102-27907779.4c21459a

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import { writable, get } from 'svelte/store';
2
2
  import 'svelte/easing';
3
- import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, src_url_equal, null_to_empty } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, claim_component, claim_space, mount_component, insert_hydration, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, claim_element, children, attr, noop, listen, is_function, append_hydration, add_render_callback, create_in_transition, svg_element, claim_svg_element, binding_callbacks, destroy_each, text, claim_text, set_data, src_url_equal, null_to_empty, set_style } from 'svelte/internal';
4
4
  import { createEventDispatcher, onMount, onDestroy as onDestroy$1, setContext, getContext } from 'svelte';
5
5
 
6
6
  /**
@@ -1611,20 +1611,20 @@ var widget = /*#__PURE__*/Object.freeze({
1611
1611
 
1612
1612
  /* src/components/Normalize.svelte generated by Svelte v3.53.1 */
1613
1613
 
1614
- function add_css$f(target) {
1614
+ function add_css$i(target) {
1615
1615
  append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
1616
1616
  }
1617
1617
 
1618
1618
  class Normalize extends SvelteComponent {
1619
1619
  constructor(options) {
1620
1620
  super();
1621
- init(this, options, null, null, safe_not_equal, {}, add_css$f);
1621
+ init(this, options, null, null, safe_not_equal, {}, add_css$i);
1622
1622
  }
1623
1623
  }
1624
1624
 
1625
1625
  /* src/components/State.svelte generated by Svelte v3.53.1 */
1626
1626
 
1627
- function create_fragment$i(ctx) {
1627
+ function create_fragment$m(ctx) {
1628
1628
  let normalize;
1629
1629
  let t;
1630
1630
  let current;
@@ -1688,7 +1688,7 @@ function create_fragment$i(ctx) {
1688
1688
  };
1689
1689
  }
1690
1690
 
1691
- function instance$i($$self, $$props, $$invalidate) {
1691
+ function instance$m($$self, $$props, $$invalidate) {
1692
1692
  let { $$slots: slots = {}, $$scope } = $$props;
1693
1693
 
1694
1694
  $$self.$$set = $$props => {
@@ -1701,13 +1701,13 @@ function instance$i($$self, $$props, $$invalidate) {
1701
1701
  class State extends SvelteComponent {
1702
1702
  constructor(options) {
1703
1703
  super();
1704
- init(this, options, instance$i, create_fragment$i, safe_not_equal, {});
1704
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, {});
1705
1705
  }
1706
1706
  }
1707
1707
 
1708
1708
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
1709
1709
 
1710
- function add_css$e(target) {
1710
+ function add_css$h(target) {
1711
1711
  append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
1712
1712
  }
1713
1713
 
@@ -1784,7 +1784,7 @@ function create_if_block$3(ctx) {
1784
1784
  };
1785
1785
  }
1786
1786
 
1787
- function create_fragment$h(ctx) {
1787
+ function create_fragment$l(ctx) {
1788
1788
  let if_block_anchor;
1789
1789
  let current;
1790
1790
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$3(ctx);
@@ -1843,7 +1843,7 @@ function create_fragment$h(ctx) {
1843
1843
  };
1844
1844
  }
1845
1845
 
1846
- function instance$h($$self, $$props, $$invalidate) {
1846
+ function instance$l($$self, $$props, $$invalidate) {
1847
1847
  let $state;
1848
1848
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
1849
1849
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -1868,13 +1868,13 @@ function instance$h($$self, $$props, $$invalidate) {
1868
1868
  class StateItem extends SvelteComponent {
1869
1869
  constructor(options) {
1870
1870
  super();
1871
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { path: 0 }, add_css$e);
1871
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, { path: 0 }, add_css$h);
1872
1872
  }
1873
1873
  }
1874
1874
 
1875
1875
  /* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
1876
1876
 
1877
- function add_css$d(target) {
1877
+ function add_css$g(target) {
1878
1878
  append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
1879
1879
  }
1880
1880
 
@@ -1914,7 +1914,7 @@ function create_if_block$2(ctx) {
1914
1914
  };
1915
1915
  }
1916
1916
 
1917
- function create_fragment$g(ctx) {
1917
+ function create_fragment$k(ctx) {
1918
1918
  let if_block_anchor;
1919
1919
  let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$2(ctx);
1920
1920
 
@@ -1954,7 +1954,7 @@ function create_fragment$g(ctx) {
1954
1954
  };
1955
1955
  }
1956
1956
 
1957
- function instance$g($$self, $$props, $$invalidate) {
1957
+ function instance$k($$self, $$props, $$invalidate) {
1958
1958
  let { backgroundOverray = false } = $$props;
1959
1959
  const dispatch = createEventDispatcher();
1960
1960
  const click_handler = () => dispatch('click');
@@ -1969,13 +1969,13 @@ function instance$g($$self, $$props, $$invalidate) {
1969
1969
  class BackgroundOverray extends SvelteComponent {
1970
1970
  constructor(options) {
1971
1971
  super();
1972
- init(this, options, instance$g, create_fragment$g, safe_not_equal, { backgroundOverray: 0 }, add_css$d);
1972
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { backgroundOverray: 0 }, add_css$g);
1973
1973
  }
1974
1974
  }
1975
1975
 
1976
1976
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
1977
1977
 
1978
- function add_css$c(target) {
1978
+ function add_css$f(target) {
1979
1979
  append_styles(target, "svelte-1bxl6mz", ".modal.svelte-1bxl6mz{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-1bxl6mz{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1bxl6mz:hover{transform:rotate(90deg)}");
1980
1980
  }
1981
1981
 
@@ -2204,7 +2204,7 @@ function create_if_block_1(ctx) {
2204
2204
  };
2205
2205
  }
2206
2206
 
2207
- function create_fragment$f(ctx) {
2207
+ function create_fragment$j(ctx) {
2208
2208
  let backgroundoverray;
2209
2209
  let t;
2210
2210
  let if_block_anchor;
@@ -2303,7 +2303,7 @@ function create_fragment$f(ctx) {
2303
2303
  };
2304
2304
  }
2305
2305
 
2306
- function instance$f($$self, $$props, $$invalidate) {
2306
+ function instance$j($$self, $$props, $$invalidate) {
2307
2307
  let click;
2308
2308
  let close;
2309
2309
  let closable;
@@ -2485,8 +2485,8 @@ class Modal extends SvelteComponent {
2485
2485
  init(
2486
2486
  this,
2487
2487
  options,
2488
- instance$f,
2489
- create_fragment$f,
2488
+ instance$j,
2489
+ create_fragment$j,
2490
2490
  safe_not_equal,
2491
2491
  {
2492
2492
  onClick: 16,
@@ -2501,14 +2501,14 @@ class Modal extends SvelteComponent {
2501
2501
  closeEventValue: 22,
2502
2502
  _closeStyle: 3
2503
2503
  },
2504
- add_css$c
2504
+ add_css$f
2505
2505
  );
2506
2506
  }
2507
2507
  }
2508
2508
 
2509
2509
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
2510
2510
 
2511
- function create_fragment$e(ctx) {
2511
+ function create_fragment$i(ctx) {
2512
2512
  let div;
2513
2513
  let current;
2514
2514
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -2576,7 +2576,7 @@ function create_fragment$e(ctx) {
2576
2576
  };
2577
2577
  }
2578
2578
 
2579
- function instance$e($$self, $$props, $$invalidate) {
2579
+ function instance$i($$self, $$props, $$invalidate) {
2580
2580
  let _style;
2581
2581
  let { $$slots: slots = {}, $$scope } = $$props;
2582
2582
  let { width = '512px' } = $$props;
@@ -2621,7 +2621,7 @@ class Grid extends SvelteComponent {
2621
2621
  constructor(options) {
2622
2622
  super();
2623
2623
 
2624
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {
2624
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, {
2625
2625
  width: 1,
2626
2626
  height: 2,
2627
2627
  rows: 3,
@@ -2812,7 +2812,7 @@ function create_default_slot(ctx) {
2812
2812
  };
2813
2813
  }
2814
2814
 
2815
- function create_fragment$d(ctx) {
2815
+ function create_fragment$h(ctx) {
2816
2816
  let stateitem;
2817
2817
  let current;
2818
2818
 
@@ -2860,7 +2860,7 @@ function create_fragment$d(ctx) {
2860
2860
  };
2861
2861
  }
2862
2862
 
2863
- function instance$d($$self, $$props, $$invalidate) {
2863
+ function instance$h($$self, $$props, $$invalidate) {
2864
2864
  let { $$slots: slots = {}, $$scope } = $$props;
2865
2865
  let { path } = $$props;
2866
2866
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -2931,7 +2931,7 @@ class GridModalState extends SvelteComponent {
2931
2931
  constructor(options) {
2932
2932
  super();
2933
2933
 
2934
- init(this, options, instance$d, create_fragment$d, safe_not_equal, {
2934
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, {
2935
2935
  path: 0,
2936
2936
  onClick: 1,
2937
2937
  clickEventName: 2,
@@ -2956,11 +2956,11 @@ class GridModalState extends SvelteComponent {
2956
2956
 
2957
2957
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
2958
2958
 
2959
- function add_css$b(target) {
2959
+ function add_css$e(target) {
2960
2960
  append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
2961
2961
  }
2962
2962
 
2963
- function create_fragment$c(ctx) {
2963
+ function create_fragment$g(ctx) {
2964
2964
  let div1;
2965
2965
  let div0;
2966
2966
  let current;
@@ -3041,7 +3041,7 @@ function create_fragment$c(ctx) {
3041
3041
  };
3042
3042
  }
3043
3043
 
3044
- function instance$c($$self, $$props, $$invalidate) {
3044
+ function instance$g($$self, $$props, $$invalidate) {
3045
3045
  let _style;
3046
3046
  let { $$slots: slots = {}, $$scope } = $$props;
3047
3047
  let { x1 } = $$props;
@@ -3094,8 +3094,8 @@ class GridItem extends SvelteComponent {
3094
3094
  init(
3095
3095
  this,
3096
3096
  options,
3097
- instance$c,
3098
- create_fragment$c,
3097
+ instance$g,
3098
+ create_fragment$g,
3099
3099
  safe_not_equal,
3100
3100
  {
3101
3101
  x1: 2,
@@ -3105,18 +3105,18 @@ class GridItem extends SvelteComponent {
3105
3105
  z: 6,
3106
3106
  background: 7
3107
3107
  },
3108
- add_css$b
3108
+ add_css$e
3109
3109
  );
3110
3110
  }
3111
3111
  }
3112
3112
 
3113
3113
  /* src/components/Flex.svelte generated by Svelte v3.53.1 */
3114
3114
 
3115
- function add_css$a(target) {
3115
+ function add_css$d(target) {
3116
3116
  append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
3117
3117
  }
3118
3118
 
3119
- function create_fragment$b(ctx) {
3119
+ function create_fragment$f(ctx) {
3120
3120
  let div;
3121
3121
  let div_style_value;
3122
3122
  let current;
@@ -3191,7 +3191,7 @@ function getFlexContext() {
3191
3191
  return getContext(FlexContextKey);
3192
3192
  }
3193
3193
 
3194
- function instance$b($$self, $$props, $$invalidate) {
3194
+ function instance$f($$self, $$props, $$invalidate) {
3195
3195
  let { $$slots: slots = {}, $$scope } = $$props;
3196
3196
  let { direction = 'row' } = $$props;
3197
3197
  let { width = '100%' } = $$props;
@@ -3217,8 +3217,8 @@ class Flex extends SvelteComponent {
3217
3217
  init(
3218
3218
  this,
3219
3219
  options,
3220
- instance$b,
3221
- create_fragment$b,
3220
+ instance$f,
3221
+ create_fragment$f,
3222
3222
  safe_not_equal,
3223
3223
  {
3224
3224
  direction: 0,
@@ -3226,18 +3226,18 @@ class Flex extends SvelteComponent {
3226
3226
  height: 2,
3227
3227
  _style: 3
3228
3228
  },
3229
- add_css$a
3229
+ add_css$d
3230
3230
  );
3231
3231
  }
3232
3232
  }
3233
3233
 
3234
3234
  /* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
3235
3235
 
3236
- function add_css$9(target) {
3236
+ function add_css$c(target) {
3237
3237
  append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
3238
3238
  }
3239
3239
 
3240
- function create_fragment$a(ctx) {
3240
+ function create_fragment$e(ctx) {
3241
3241
  let div;
3242
3242
  let current;
3243
3243
  const default_slot_template = /*#slots*/ ctx[4].default;
@@ -3305,7 +3305,7 @@ function create_fragment$a(ctx) {
3305
3305
  };
3306
3306
  }
3307
3307
 
3308
- function instance$a($$self, $$props, $$invalidate) {
3308
+ function instance$e($$self, $$props, $$invalidate) {
3309
3309
  let { $$slots: slots = {}, $$scope } = $$props;
3310
3310
  let { length } = $$props;
3311
3311
  let { _style = '' } = $$props;
@@ -3348,13 +3348,13 @@ function instance$a($$self, $$props, $$invalidate) {
3348
3348
  class FlexItem extends SvelteComponent {
3349
3349
  constructor(options) {
3350
3350
  super();
3351
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { length: 1, _style: 2 }, add_css$9);
3351
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { length: 1, _style: 2 }, add_css$c);
3352
3352
  }
3353
3353
  }
3354
3354
 
3355
3355
  /* src/components/RenderText.svelte generated by Svelte v3.53.1 */
3356
3356
 
3357
- function get_each_context(ctx, list, i) {
3357
+ function get_each_context$1(ctx, list, i) {
3358
3358
  const child_ctx = ctx.slice();
3359
3359
  child_ctx[2] = list[i];
3360
3360
  return child_ctx;
@@ -3406,7 +3406,7 @@ function create_if_block(ctx) {
3406
3406
  }
3407
3407
 
3408
3408
  // (9:0) {#each items as item}
3409
- function create_each_block(ctx) {
3409
+ function create_each_block$1(ctx) {
3410
3410
  let show_if;
3411
3411
  let if_block_anchor;
3412
3412
 
@@ -3453,13 +3453,13 @@ function create_each_block(ctx) {
3453
3453
  };
3454
3454
  }
3455
3455
 
3456
- function create_fragment$9(ctx) {
3456
+ function create_fragment$d(ctx) {
3457
3457
  let each_1_anchor;
3458
3458
  let each_value = /*items*/ ctx[0];
3459
3459
  let each_blocks = [];
3460
3460
 
3461
3461
  for (let i = 0; i < each_value.length; i += 1) {
3462
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
3462
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
3463
3463
  }
3464
3464
 
3465
3465
  return {
@@ -3490,12 +3490,12 @@ function create_fragment$9(ctx) {
3490
3490
  let i;
3491
3491
 
3492
3492
  for (i = 0; i < each_value.length; i += 1) {
3493
- const child_ctx = get_each_context(ctx, each_value, i);
3493
+ const child_ctx = get_each_context$1(ctx, each_value, i);
3494
3494
 
3495
3495
  if (each_blocks[i]) {
3496
3496
  each_blocks[i].p(child_ctx, dirty);
3497
3497
  } else {
3498
- each_blocks[i] = create_each_block(child_ctx);
3498
+ each_blocks[i] = create_each_block$1(child_ctx);
3499
3499
  each_blocks[i].c();
3500
3500
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
3501
3501
  }
@@ -3519,7 +3519,7 @@ function create_fragment$9(ctx) {
3519
3519
 
3520
3520
  const regexp = /(\r?\n)/;
3521
3521
 
3522
- function instance$9($$self, $$props, $$invalidate) {
3522
+ function instance$d($$self, $$props, $$invalidate) {
3523
3523
  let items;
3524
3524
  let { text = 'サンプルSample' } = $$props;
3525
3525
 
@@ -3539,17 +3539,17 @@ function instance$9($$self, $$props, $$invalidate) {
3539
3539
  class RenderText extends SvelteComponent {
3540
3540
  constructor(options) {
3541
3541
  super();
3542
- init(this, options, instance$9, create_fragment$9, safe_not_equal, { text: 1 });
3542
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, { text: 1 });
3543
3543
  }
3544
3544
  }
3545
3545
 
3546
3546
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
3547
3547
 
3548
- function add_css$8(target) {
3548
+ function add_css$b(target) {
3549
3549
  append_styles(target, "svelte-ww7ebs", ".text-element.svelte-ww7ebs{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-ww7ebs{width:100%}");
3550
3550
  }
3551
3551
 
3552
- function create_fragment$8(ctx) {
3552
+ function create_fragment$c(ctx) {
3553
3553
  let div1;
3554
3554
  let div0;
3555
3555
  let rendertext;
@@ -3609,7 +3609,7 @@ function create_fragment$8(ctx) {
3609
3609
  };
3610
3610
  }
3611
3611
 
3612
- function instance$8($$self, $$props, $$invalidate) {
3612
+ function instance$c($$self, $$props, $$invalidate) {
3613
3613
  let style;
3614
3614
  let { text = 'サンプルSample' } = $$props;
3615
3615
  let { _textStyle = 'font-size:12px;' } = $$props;
@@ -3633,17 +3633,17 @@ function instance$8($$self, $$props, $$invalidate) {
3633
3633
  class TextElement extends SvelteComponent {
3634
3634
  constructor(options) {
3635
3635
  super();
3636
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { text: 0, _textStyle: 2, _style: 3 }, add_css$8);
3636
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, { text: 0, _textStyle: 2, _style: 3 }, add_css$b);
3637
3637
  }
3638
3638
  }
3639
3639
 
3640
3640
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
3641
3641
 
3642
- function add_css$7(target) {
3642
+ function add_css$a(target) {
3643
3643
  append_styles(target, "svelte-tx5xf5", ".text-button-element.svelte-tx5xf5{width:100%;height:100%}.text-button.svelte-tx5xf5{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden}.text-button.svelte-tx5xf5:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-tx5xf5:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
3644
3644
  }
3645
3645
 
3646
- function create_fragment$7(ctx) {
3646
+ function create_fragment$b(ctx) {
3647
3647
  let div;
3648
3648
  let button;
3649
3649
  let rendertext;
@@ -3717,7 +3717,7 @@ function create_fragment$7(ctx) {
3717
3717
  };
3718
3718
  }
3719
3719
 
3720
- function instance$7($$self, $$props, $$invalidate) {
3720
+ function instance$b($$self, $$props, $$invalidate) {
3721
3721
  let { text = 'ボタンラベル' } = $$props;
3722
3722
  let { onClick = { operation: 'none', args: [] } } = $$props;
3723
3723
 
@@ -3751,8 +3751,8 @@ class TextButtonElement extends SvelteComponent {
3751
3751
  init(
3752
3752
  this,
3753
3753
  options,
3754
- instance$7,
3755
- create_fragment$7,
3754
+ instance$b,
3755
+ create_fragment$b,
3756
3756
  safe_not_equal,
3757
3757
  {
3758
3758
  text: 0,
@@ -3761,18 +3761,18 @@ class TextButtonElement extends SvelteComponent {
3761
3761
  _buttonStyle: 1,
3762
3762
  _style: 2
3763
3763
  },
3764
- add_css$7
3764
+ add_css$a
3765
3765
  );
3766
3766
  }
3767
3767
  }
3768
3768
 
3769
3769
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
3770
3770
 
3771
- function add_css$6(target) {
3771
+ function add_css$9(target) {
3772
3772
  append_styles(target, "svelte-t8kpqw", ".image-element.svelte-t8kpqw{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.image.svelte-t8kpqw{width:100%;height:100%}.transport.svelte-t8kpqw:hover,.transport.svelte-t8kpqw:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
3773
3773
  }
3774
3774
 
3775
- function create_fragment$6(ctx) {
3775
+ function create_fragment$a(ctx) {
3776
3776
  let div;
3777
3777
  let img;
3778
3778
  let img_src_value;
@@ -3854,7 +3854,7 @@ function create_fragment$6(ctx) {
3854
3854
  };
3855
3855
  }
3856
3856
 
3857
- function instance$6($$self, $$props, $$invalidate) {
3857
+ function instance$a($$self, $$props, $$invalidate) {
3858
3858
  let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
3859
3859
  let { alt = 'No Image' } = $$props;
3860
3860
  let { transport = false } = $$props;
@@ -3892,8 +3892,8 @@ class ImageElement extends SvelteComponent {
3892
3892
  init(
3893
3893
  this,
3894
3894
  options,
3895
- instance$6,
3896
- create_fragment$6,
3895
+ instance$a,
3896
+ create_fragment$a,
3897
3897
  safe_not_equal,
3898
3898
  {
3899
3899
  src: 0,
@@ -3904,18 +3904,18 @@ class ImageElement extends SvelteComponent {
3904
3904
  _imageStyle: 3,
3905
3905
  _style: 4
3906
3906
  },
3907
- add_css$6
3907
+ add_css$9
3908
3908
  );
3909
3909
  }
3910
3910
  }
3911
3911
 
3912
3912
  /* src/components/List.svelte generated by Svelte v3.53.1 */
3913
3913
 
3914
- function add_css$5(target) {
3914
+ function add_css$8(target) {
3915
3915
  append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
3916
3916
  }
3917
3917
 
3918
- function create_fragment$5(ctx) {
3918
+ function create_fragment$9(ctx) {
3919
3919
  let div;
3920
3920
  let current;
3921
3921
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -3985,7 +3985,7 @@ function create_fragment$5(ctx) {
3985
3985
 
3986
3986
  const LIST_CONTEXT_KEY = Symbol();
3987
3987
 
3988
- function instance$5($$self, $$props, $$invalidate) {
3988
+ function instance$9($$self, $$props, $$invalidate) {
3989
3989
  let style;
3990
3990
  let { $$slots: slots = {}, $$scope } = $$props;
3991
3991
  let { direction = 'vertical' } = $$props;
@@ -4052,8 +4052,8 @@ class List extends SvelteComponent {
4052
4052
  init(
4053
4053
  this,
4054
4054
  options,
4055
- instance$5,
4056
- create_fragment$5,
4055
+ instance$9,
4056
+ create_fragment$9,
4057
4057
  safe_not_equal,
4058
4058
  {
4059
4059
  direction: 1,
@@ -4061,18 +4061,18 @@ class List extends SvelteComponent {
4061
4061
  background: 3,
4062
4062
  _style: 4
4063
4063
  },
4064
- add_css$5
4064
+ add_css$8
4065
4065
  );
4066
4066
  }
4067
4067
  }
4068
4068
 
4069
4069
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
4070
4070
 
4071
- function add_css$4(target) {
4071
+ function add_css$7(target) {
4072
4072
  append_styles(target, "svelte-h5j4xe", ".list-item.svelte-h5j4xe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item-inner.svelte-h5j4xe{position:absolute;inset:0}");
4073
4073
  }
4074
4074
 
4075
- function create_fragment$4(ctx) {
4075
+ function create_fragment$8(ctx) {
4076
4076
  let div1;
4077
4077
  let div0;
4078
4078
  let current;
@@ -4166,7 +4166,7 @@ function create_fragment$4(ctx) {
4166
4166
  };
4167
4167
  }
4168
4168
 
4169
- function instance$4($$self, $$props, $$invalidate) {
4169
+ function instance$8($$self, $$props, $$invalidate) {
4170
4170
  let click;
4171
4171
  let listItemStyle;
4172
4172
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -4256,17 +4256,17 @@ function instance$4($$self, $$props, $$invalidate) {
4256
4256
  class ListItem extends SvelteComponent {
4257
4257
  constructor(options) {
4258
4258
  super();
4259
- init(this, options, instance$4, create_fragment$4, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$4);
4259
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$7);
4260
4260
  }
4261
4261
  }
4262
4262
 
4263
4263
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
4264
4264
 
4265
- function add_css$3(target) {
4265
+ function add_css$6(target) {
4266
4266
  append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4267
4267
  }
4268
4268
 
4269
- function create_fragment$3(ctx) {
4269
+ function create_fragment$7(ctx) {
4270
4270
  let div;
4271
4271
 
4272
4272
  return {
@@ -4302,7 +4302,7 @@ function create_fragment$3(ctx) {
4302
4302
  };
4303
4303
  }
4304
4304
 
4305
- function instance$3($$self, $$props, $$invalidate) {
4305
+ function instance$7($$self, $$props, $$invalidate) {
4306
4306
  let { code } = $$props;
4307
4307
  let { _style = '' } = $$props;
4308
4308
 
@@ -4317,7 +4317,633 @@ function instance$3($$self, $$props, $$invalidate) {
4317
4317
  class EmbedElement extends SvelteComponent {
4318
4318
  constructor(options) {
4319
4319
  super();
4320
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { code: 0, _style: 1 }, add_css$3);
4320
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, { code: 0, _style: 1 }, add_css$6);
4321
+ }
4322
+ }
4323
+
4324
+ /* src/components/Form.svelte generated by Svelte v3.53.1 */
4325
+
4326
+ function add_css$5(target) {
4327
+ append_styles(target, "svelte-1il0aow", ".form.svelte-1il0aow{width:100%;height:100%}");
4328
+ }
4329
+
4330
+ function create_fragment$6(ctx) {
4331
+ let div;
4332
+ let current;
4333
+ const default_slot_template = /*#slots*/ ctx[4].default;
4334
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
4335
+
4336
+ return {
4337
+ c() {
4338
+ div = element("div");
4339
+ if (default_slot) default_slot.c();
4340
+ this.h();
4341
+ },
4342
+ l(nodes) {
4343
+ div = claim_element(nodes, "DIV", { class: true });
4344
+ var div_nodes = children(div);
4345
+ if (default_slot) default_slot.l(div_nodes);
4346
+ div_nodes.forEach(detach);
4347
+ this.h();
4348
+ },
4349
+ h() {
4350
+ attr(div, "class", "form svelte-1il0aow");
4351
+ },
4352
+ m(target, anchor) {
4353
+ insert_hydration(target, div, anchor);
4354
+
4355
+ if (default_slot) {
4356
+ default_slot.m(div, null);
4357
+ }
4358
+
4359
+ current = true;
4360
+ },
4361
+ p(ctx, [dirty]) {
4362
+ if (default_slot) {
4363
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 8)) {
4364
+ update_slot_base(
4365
+ default_slot,
4366
+ default_slot_template,
4367
+ ctx,
4368
+ /*$$scope*/ ctx[3],
4369
+ !current
4370
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[3])
4371
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[3], dirty, null),
4372
+ null
4373
+ );
4374
+ }
4375
+ }
4376
+ },
4377
+ i(local) {
4378
+ if (current) return;
4379
+ transition_in(default_slot, local);
4380
+ current = true;
4381
+ },
4382
+ o(local) {
4383
+ transition_out(default_slot, local);
4384
+ current = false;
4385
+ },
4386
+ d(detaching) {
4387
+ if (detaching) detach(div);
4388
+ if (default_slot) default_slot.d(detaching);
4389
+ }
4390
+ };
4391
+ }
4392
+
4393
+ const FORM_CONTEXT_KEY = Symbol();
4394
+
4395
+ function getValue($formData, name) {
4396
+ return $formData._data[name];
4397
+ }
4398
+
4399
+ function updateValue(data, name, update) {
4400
+ data.update(prev => {
4401
+ const { value, isValid } = update(prev._data[name]);
4402
+ prev._data[name] = value;
4403
+ prev._isValidMap[name] = isValid;
4404
+ return { ...prev };
4405
+ });
4406
+ }
4407
+
4408
+ function checkIfDataAreValid($formData) {
4409
+ const dataAreValid = Object.entries($formData._data).reduce(
4410
+ (dataAreValid, [name]) => {
4411
+ return dataAreValid && ($formData._isValidMap[name] ?? true);
4412
+ },
4413
+ true
4414
+ );
4415
+
4416
+ return dataAreValid;
4417
+ }
4418
+
4419
+ const createFormDataAccessor = formId => {
4420
+ const variableKey = `_form_${formId}`;
4421
+
4422
+ const update = updater => {
4423
+ customVariables.update(prev => {
4424
+ const updatedFormData = updater(prev[variableKey] ?? {});
4425
+ return { ...prev, [variableKey]: updatedFormData };
4426
+ });
4427
+ };
4428
+
4429
+ const subscribe = run => {
4430
+ return customVariables.subscribe(value => {
4431
+ const formData = value[variableKey] ?? {};
4432
+ run(formData);
4433
+ });
4434
+ };
4435
+
4436
+ const set = value => {
4437
+ customVariables.update(prev => {
4438
+ return { ...prev, [variableKey]: value };
4439
+ });
4440
+ };
4441
+
4442
+ return { update, set, subscribe };
4443
+ };
4444
+
4445
+ function instance$6($$self, $$props, $$invalidate) {
4446
+ let $formData;
4447
+ let $formComponentData;
4448
+ let { $$slots: slots = {}, $$scope } = $$props;
4449
+ let { formId = 'form0' } = $$props;
4450
+ const formComponentData = writable({ _data: {}, _isValidMap: {} });
4451
+ component_subscribe($$self, formComponentData, value => $$invalidate(6, $formComponentData = value));
4452
+
4453
+ setContext(FORM_CONTEXT_KEY, {
4454
+ formComponentData,
4455
+ submit: ({ stateId }) => {
4456
+ if (checkIfDataAreValid($formComponentData)) {
4457
+ formData.update(prev => ({ ...prev, ...$formComponentData._data }));
4458
+ console.log('will send', $formData);
4459
+ setState$1(stateId, true);
4460
+ }
4461
+ },
4462
+ next: ({ stateId }) => {
4463
+ if (checkIfDataAreValid($formComponentData)) {
4464
+ formData.update(prev => ({ ...prev, ...$formComponentData._data }));
4465
+ setState$1(stateId, true);
4466
+ console.log('formData after next()', $formData);
4467
+ }
4468
+ },
4469
+ prev: ({ stateId }) => {
4470
+ formData.update(prev => {
4471
+ Object.keys($formComponentData._data).forEach(name => {
4472
+ delete prev[name];
4473
+ });
4474
+
4475
+ return { ...prev };
4476
+ });
4477
+
4478
+ setState$1(stateId, true);
4479
+ console.log('formData after prev()', $formData);
4480
+ }
4481
+ });
4482
+
4483
+ const formData = createFormDataAccessor(formId);
4484
+ component_subscribe($$self, formData, value => $$invalidate(5, $formData = value));
4485
+
4486
+ $$self.$$set = $$props => {
4487
+ if ('formId' in $$props) $$invalidate(2, formId = $$props.formId);
4488
+ if ('$$scope' in $$props) $$invalidate(3, $$scope = $$props.$$scope);
4489
+ };
4490
+
4491
+ return [formComponentData, formData, formId, $$scope, slots];
4492
+ }
4493
+
4494
+ class Form extends SvelteComponent {
4495
+ constructor(options) {
4496
+ super();
4497
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { formId: 2 }, add_css$5);
4498
+ }
4499
+ }
4500
+
4501
+ /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
4502
+
4503
+ function add_css$4(target) {
4504
+ append_styles(target, "svelte-kyay3k", ".textarea-wrapper.svelte-kyay3k{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-kyay3k{width:100%;resize:none}");
4505
+ }
4506
+
4507
+ function create_fragment$5(ctx) {
4508
+ let div;
4509
+ let textarea;
4510
+ let mounted;
4511
+ let dispose;
4512
+
4513
+ return {
4514
+ c() {
4515
+ div = element("div");
4516
+ textarea = element("textarea");
4517
+ this.h();
4518
+ },
4519
+ l(nodes) {
4520
+ div = claim_element(nodes, "DIV", { class: true });
4521
+ var div_nodes = children(div);
4522
+
4523
+ textarea = claim_element(div_nodes, "TEXTAREA", {
4524
+ class: true,
4525
+ rows: true,
4526
+ placeholder: true
4527
+ });
4528
+
4529
+ children(textarea).forEach(detach);
4530
+ div_nodes.forEach(detach);
4531
+ this.h();
4532
+ },
4533
+ h() {
4534
+ attr(textarea, "class", "textarea svelte-kyay3k");
4535
+ textarea.value = /*value*/ ctx[3];
4536
+ textarea.required = /*required*/ ctx[0];
4537
+ attr(textarea, "rows", /*rows*/ ctx[1]);
4538
+ attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
4539
+ attr(div, "class", "textarea-wrapper svelte-kyay3k");
4540
+ },
4541
+ m(target, anchor) {
4542
+ insert_hydration(target, div, anchor);
4543
+ append_hydration(div, textarea);
4544
+
4545
+ if (!mounted) {
4546
+ dispose = listen(textarea, "input", /*handleInput*/ ctx[5]);
4547
+ mounted = true;
4548
+ }
4549
+ },
4550
+ p(ctx, [dirty]) {
4551
+ if (dirty & /*value*/ 8) {
4552
+ textarea.value = /*value*/ ctx[3];
4553
+ }
4554
+
4555
+ if (dirty & /*required*/ 1) {
4556
+ textarea.required = /*required*/ ctx[0];
4557
+ }
4558
+
4559
+ if (dirty & /*rows*/ 2) {
4560
+ attr(textarea, "rows", /*rows*/ ctx[1]);
4561
+ }
4562
+
4563
+ if (dirty & /*placeholder*/ 4) {
4564
+ attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
4565
+ }
4566
+ },
4567
+ i: noop,
4568
+ o: noop,
4569
+ d(detaching) {
4570
+ if (detaching) detach(div);
4571
+ mounted = false;
4572
+ dispose();
4573
+ }
4574
+ };
4575
+ }
4576
+
4577
+ function instance$5($$self, $$props, $$invalidate) {
4578
+ let value;
4579
+ let $formComponentData;
4580
+ let { name = '' } = $$props;
4581
+ let { required = true } = $$props;
4582
+ let { rows = 2 } = $$props;
4583
+ let { placeholder = '' } = $$props;
4584
+ const { formComponentData } = getContext(FORM_CONTEXT_KEY);
4585
+ component_subscribe($$self, formComponentData, value => $$invalidate(7, $formComponentData = value));
4586
+
4587
+ function setValue(value) {
4588
+ updateValue(formComponentData, name, () => ({
4589
+ value,
4590
+ isValid: required ? !!value : true
4591
+ }));
4592
+ }
4593
+
4594
+ function handleInput(event) {
4595
+ const value = event.target.value;
4596
+ setValue(value);
4597
+ }
4598
+
4599
+ setValue(value);
4600
+
4601
+ $$self.$$set = $$props => {
4602
+ if ('name' in $$props) $$invalidate(6, name = $$props.name);
4603
+ if ('required' in $$props) $$invalidate(0, required = $$props.required);
4604
+ if ('rows' in $$props) $$invalidate(1, rows = $$props.rows);
4605
+ if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
4606
+ };
4607
+
4608
+ $$self.$$.update = () => {
4609
+ if ($$self.$$.dirty & /*$formComponentData, name*/ 192) {
4610
+ $$invalidate(3, value = getValue($formComponentData, name) ?? '');
4611
+ }
4612
+ };
4613
+
4614
+ return [
4615
+ required,
4616
+ rows,
4617
+ placeholder,
4618
+ value,
4619
+ formComponentData,
4620
+ handleInput,
4621
+ name,
4622
+ $formComponentData
4623
+ ];
4624
+ }
4625
+
4626
+ class FormTextarea extends SvelteComponent {
4627
+ constructor(options) {
4628
+ super();
4629
+
4630
+ init(
4631
+ this,
4632
+ options,
4633
+ instance$5,
4634
+ create_fragment$5,
4635
+ safe_not_equal,
4636
+ {
4637
+ name: 6,
4638
+ required: 0,
4639
+ rows: 1,
4640
+ placeholder: 2
4641
+ },
4642
+ add_css$4
4643
+ );
4644
+ }
4645
+ }
4646
+
4647
+ /* src/components/FormButton.svelte generated by Svelte v3.53.1 */
4648
+
4649
+ function create_fragment$4(ctx) {
4650
+ let input;
4651
+ let mounted;
4652
+ let dispose;
4653
+
4654
+ return {
4655
+ c() {
4656
+ input = element("input");
4657
+ this.h();
4658
+ },
4659
+ l(nodes) {
4660
+ input = claim_element(nodes, "INPUT", { type: true, style: true });
4661
+ this.h();
4662
+ },
4663
+ h() {
4664
+ attr(input, "type", "button");
4665
+ set_style(input, "width", "100%");
4666
+ set_style(input, "height", "100%");
4667
+ input.value = /*text*/ ctx[0];
4668
+ input.disabled = /*disabled*/ ctx[1];
4669
+ },
4670
+ m(target, anchor) {
4671
+ insert_hydration(target, input, anchor);
4672
+
4673
+ if (!mounted) {
4674
+ dispose = listen(input, "click", /*handleClick*/ ctx[3]);
4675
+ mounted = true;
4676
+ }
4677
+ },
4678
+ p(ctx, [dirty]) {
4679
+ if (dirty & /*text*/ 1) {
4680
+ input.value = /*text*/ ctx[0];
4681
+ }
4682
+
4683
+ if (dirty & /*disabled*/ 2) {
4684
+ input.disabled = /*disabled*/ ctx[1];
4685
+ }
4686
+ },
4687
+ i: noop,
4688
+ o: noop,
4689
+ d(detaching) {
4690
+ if (detaching) detach(input);
4691
+ mounted = false;
4692
+ dispose();
4693
+ }
4694
+ };
4695
+ }
4696
+
4697
+ function instance$4($$self, $$props, $$invalidate) {
4698
+ let disabled;
4699
+ let $formComponentData;
4700
+ let { text = '' } = $$props;
4701
+ let { type = { type: 'submit' } } = $$props;
4702
+ const { formComponentData, submit, next, prev } = getContext(FORM_CONTEXT_KEY);
4703
+ component_subscribe($$self, formComponentData, value => $$invalidate(5, $formComponentData = value));
4704
+
4705
+ function handleClick() {
4706
+ switch (type.type) {
4707
+ case 'submit':
4708
+ {
4709
+ const stateId = type.stateId;
4710
+ submit({ stateId });
4711
+ break;
4712
+ }
4713
+ case 'next':
4714
+ {
4715
+ const stateId = type.stateId;
4716
+ next({ stateId });
4717
+ break;
4718
+ }
4719
+ case 'prev':
4720
+ {
4721
+ const stateId = type.stateId;
4722
+ prev({ stateId });
4723
+ break;
4724
+ }
4725
+ }
4726
+ }
4727
+
4728
+ $$self.$$set = $$props => {
4729
+ if ('text' in $$props) $$invalidate(0, text = $$props.text);
4730
+ if ('type' in $$props) $$invalidate(4, type = $$props.type);
4731
+ };
4732
+
4733
+ $$self.$$.update = () => {
4734
+ if ($$self.$$.dirty & /*type, $formComponentData*/ 48) {
4735
+ $$invalidate(1, disabled = (() => {
4736
+ if (type.type === 'prev') return false;
4737
+
4738
+ const dataAreValid = Object.entries($formComponentData._data).reduce(
4739
+ (dataAreValid, [name]) => {
4740
+ return dataAreValid && ($formComponentData._isValidMap[name] ?? true);
4741
+ },
4742
+ true
4743
+ );
4744
+
4745
+ return !dataAreValid;
4746
+ })());
4747
+ }
4748
+ };
4749
+
4750
+ return [text, disabled, formComponentData, handleClick, type, $formComponentData];
4751
+ }
4752
+
4753
+ class FormButton extends SvelteComponent {
4754
+ constructor(options) {
4755
+ super();
4756
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { text: 0, type: 4 });
4757
+ }
4758
+ }
4759
+
4760
+ /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
4761
+
4762
+ function add_css$3(target) {
4763
+ append_styles(target, "svelte-1ajmbw1", ".radio-buttons.svelte-1ajmbw1{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%}");
4764
+ }
4765
+
4766
+ function get_each_context(ctx, list, i) {
4767
+ const child_ctx = ctx.slice();
4768
+ child_ctx[5] = list[i];
4769
+ child_ctx[7] = i;
4770
+ return child_ctx;
4771
+ }
4772
+
4773
+ // (16:2) {#each _options as option, i}
4774
+ function create_each_block(ctx) {
4775
+ let label;
4776
+ let input;
4777
+ let input_value_value;
4778
+ let t0;
4779
+ let t1_value = /*option*/ ctx[5] + "";
4780
+ let t1;
4781
+ let t2;
4782
+ let mounted;
4783
+ let dispose;
4784
+
4785
+ return {
4786
+ c() {
4787
+ label = element("label");
4788
+ input = element("input");
4789
+ t0 = space();
4790
+ t1 = text(t1_value);
4791
+ t2 = space();
4792
+ this.h();
4793
+ },
4794
+ l(nodes) {
4795
+ label = claim_element(nodes, "LABEL", {});
4796
+ var label_nodes = children(label);
4797
+ input = claim_element(label_nodes, "INPUT", { type: true, name: true });
4798
+ t0 = claim_space(label_nodes);
4799
+ t1 = claim_text(label_nodes, t1_value);
4800
+ t2 = claim_space(label_nodes);
4801
+ label_nodes.forEach(detach);
4802
+ this.h();
4803
+ },
4804
+ h() {
4805
+ attr(input, "type", "radio");
4806
+ attr(input, "name", /*name*/ ctx[0]);
4807
+ input.value = input_value_value = /*option*/ ctx[5];
4808
+ },
4809
+ m(target, anchor) {
4810
+ insert_hydration(target, label, anchor);
4811
+ append_hydration(label, input);
4812
+ append_hydration(label, t0);
4813
+ append_hydration(label, t1);
4814
+ append_hydration(label, t2);
4815
+
4816
+ if (!mounted) {
4817
+ dispose = listen(input, "change", /*handleChange*/ ctx[2](/*i*/ ctx[7]));
4818
+ mounted = true;
4819
+ }
4820
+ },
4821
+ p(new_ctx, dirty) {
4822
+ ctx = new_ctx;
4823
+
4824
+ if (dirty & /*name*/ 1) {
4825
+ attr(input, "name", /*name*/ ctx[0]);
4826
+ }
4827
+
4828
+ if (dirty & /*_options*/ 2 && input_value_value !== (input_value_value = /*option*/ ctx[5])) {
4829
+ input.value = input_value_value;
4830
+ }
4831
+
4832
+ if (dirty & /*_options*/ 2 && t1_value !== (t1_value = /*option*/ ctx[5] + "")) set_data(t1, t1_value);
4833
+ },
4834
+ d(detaching) {
4835
+ if (detaching) detach(label);
4836
+ mounted = false;
4837
+ dispose();
4838
+ }
4839
+ };
4840
+ }
4841
+
4842
+ function create_fragment$3(ctx) {
4843
+ let div;
4844
+ let each_value = /*_options*/ ctx[1];
4845
+ let each_blocks = [];
4846
+
4847
+ for (let i = 0; i < each_value.length; i += 1) {
4848
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4849
+ }
4850
+
4851
+ return {
4852
+ c() {
4853
+ div = element("div");
4854
+
4855
+ for (let i = 0; i < each_blocks.length; i += 1) {
4856
+ each_blocks[i].c();
4857
+ }
4858
+
4859
+ this.h();
4860
+ },
4861
+ l(nodes) {
4862
+ div = claim_element(nodes, "DIV", { class: true });
4863
+ var div_nodes = children(div);
4864
+
4865
+ for (let i = 0; i < each_blocks.length; i += 1) {
4866
+ each_blocks[i].l(div_nodes);
4867
+ }
4868
+
4869
+ div_nodes.forEach(detach);
4870
+ this.h();
4871
+ },
4872
+ h() {
4873
+ attr(div, "class", "radio-buttons svelte-1ajmbw1");
4874
+ },
4875
+ m(target, anchor) {
4876
+ insert_hydration(target, div, anchor);
4877
+
4878
+ for (let i = 0; i < each_blocks.length; i += 1) {
4879
+ each_blocks[i].m(div, null);
4880
+ }
4881
+ },
4882
+ p(ctx, [dirty]) {
4883
+ if (dirty & /*_options, name, handleChange*/ 7) {
4884
+ each_value = /*_options*/ ctx[1];
4885
+ let i;
4886
+
4887
+ for (i = 0; i < each_value.length; i += 1) {
4888
+ const child_ctx = get_each_context(ctx, each_value, i);
4889
+
4890
+ if (each_blocks[i]) {
4891
+ each_blocks[i].p(child_ctx, dirty);
4892
+ } else {
4893
+ each_blocks[i] = create_each_block(child_ctx);
4894
+ each_blocks[i].c();
4895
+ each_blocks[i].m(div, null);
4896
+ }
4897
+ }
4898
+
4899
+ for (; i < each_blocks.length; i += 1) {
4900
+ each_blocks[i].d(1);
4901
+ }
4902
+
4903
+ each_blocks.length = each_value.length;
4904
+ }
4905
+ },
4906
+ i: noop,
4907
+ o: noop,
4908
+ d(detaching) {
4909
+ if (detaching) detach(div);
4910
+ destroy_each(each_blocks, detaching);
4911
+ }
4912
+ };
4913
+ }
4914
+
4915
+ function instance$3($$self, $$props, $$invalidate) {
4916
+ let _options;
4917
+ let { name = '' } = $$props;
4918
+ let { options = '人参,レタス,キャベツ' } = $$props;
4919
+ const { formComponentData } = getContext(FORM_CONTEXT_KEY);
4920
+
4921
+ const handleChange = index => event => {
4922
+ if (event.target.checked) {
4923
+ updateValue(formComponentData, name, () => ({ value: _options[index], isValid: true }));
4924
+ }
4925
+ };
4926
+
4927
+ updateValue(formComponentData, name, () => ({ value: '', isValid: false }));
4928
+
4929
+ $$self.$$set = $$props => {
4930
+ if ('name' in $$props) $$invalidate(0, name = $$props.name);
4931
+ if ('options' in $$props) $$invalidate(3, options = $$props.options);
4932
+ };
4933
+
4934
+ $$self.$$.update = () => {
4935
+ if ($$self.$$.dirty & /*options*/ 8) {
4936
+ $$invalidate(1, _options = options.split(','));
4937
+ }
4938
+ };
4939
+
4940
+ return [name, _options, handleChange, options];
4941
+ }
4942
+
4943
+ class FormRadioButtons extends SvelteComponent {
4944
+ constructor(options) {
4945
+ super();
4946
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { name: 0, options: 3 }, add_css$3);
4321
4947
  }
4322
4948
  }
4323
4949
 
@@ -4687,4 +5313,4 @@ class ImageBlock extends SvelteComponent {
4687
5313
  }
4688
5314
  }
4689
5315
 
4690
- export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, EmbedElement, Flex, FlexItem, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListItem, MediaQueries, Modal, ModalPositions, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextElement, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };
5316
+ export { ACTION_CHANGE_STATE_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_SHOW_EVENT, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, Alignments, AnimationStyles, BackgroundSizes, Cursors, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, Directions, EmbedElement, Flex, FlexItem, Form, FormButton, FormRadioButtons, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_ACTION_RID, KARTE_ACTION_ROOT, KARTE_ACTION_SHORTEN_ID, KARTE_MODAL_ROOT, LengthUnits, List, ListItem, MediaQueries, Modal, ModalPositions, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextElement, actionId, actionSetting, addState, applyCss, applyGlobalCss, close, closeAction, closeApp, closed, collection$1 as collection, create, createApp, createFog, customAnimation, customHandlers, customVariables, destroy, destroyed, dispatchDestroyEvent, embed, ensureActionRoot, ensureModalRoot, execOnClickOperation, finalize, getActionSetting, getActionShadowRoot, getCustomHandlers, getCustomVariables, getInternalHandlers, getMarginStyle, getPositionStyle, getState$1 as getState, getStates, getStoreState, getSystem, getTransform, h, handleFocus, handleKeydown, handleState, hasSuffix, hashCode, haveFunction, hideOnScroll, hideOnTime, initialize, internalHandlers, isClosed, isDestroyed, isOpened, isPreview, isStopped, linkTo, loadGlobalScript, loadGlobalStyle, loadStyle, maximumZindex, moveTo, none, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, randStr, resetActionSetting, runScript, send_event, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setDestroyed, setInternalHandlers, setMaximumZindex, setOpened, setPreviousFocus, setState$1 as setState, setStopped, setSystem, show, showAction, showModal, showOnScroll, showOnTime, state, states, stopped, system, toBr, updateCustomHandlers, updateCustomVariables, updateInternalHandlers, widget };