@plaidev/karte-action-sdk 1.1.106-27910965.2bd7d973 → 1.1.106-27913102.1715f7db

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1721,20 +1721,20 @@ var widget = /*#__PURE__*/Object.freeze({
1721
1721
 
1722
1722
  /* src/components/Normalize.svelte generated by Svelte v3.53.1 */
1723
1723
 
1724
- function add_css$i(target) {
1724
+ function add_css$k(target) {
1725
1725
  append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
1726
1726
  }
1727
1727
 
1728
1728
  class Normalize extends SvelteComponent {
1729
1729
  constructor(options) {
1730
1730
  super();
1731
- init(this, options, null, null, safe_not_equal, {}, add_css$i);
1731
+ init(this, options, null, null, safe_not_equal, {}, add_css$k);
1732
1732
  }
1733
1733
  }
1734
1734
 
1735
1735
  /* src/components/State.svelte generated by Svelte v3.53.1 */
1736
1736
 
1737
- function create_fragment$m(ctx) {
1737
+ function create_fragment$o(ctx) {
1738
1738
  let normalize;
1739
1739
  let t;
1740
1740
  let current;
@@ -1793,7 +1793,7 @@ function create_fragment$m(ctx) {
1793
1793
  };
1794
1794
  }
1795
1795
 
1796
- function instance$m($$self, $$props, $$invalidate) {
1796
+ function instance$o($$self, $$props, $$invalidate) {
1797
1797
  let { $$slots: slots = {}, $$scope } = $$props;
1798
1798
 
1799
1799
  $$self.$$set = $$props => {
@@ -1806,13 +1806,13 @@ function instance$m($$self, $$props, $$invalidate) {
1806
1806
  class State extends SvelteComponent {
1807
1807
  constructor(options) {
1808
1808
  super();
1809
- init(this, options, instance$m, create_fragment$m, safe_not_equal, {});
1809
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, {});
1810
1810
  }
1811
1811
  }
1812
1812
 
1813
1813
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
1814
1814
 
1815
- function add_css$h(target) {
1815
+ function add_css$j(target) {
1816
1816
  append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
1817
1817
  }
1818
1818
 
@@ -1879,7 +1879,7 @@ function create_if_block$3(ctx) {
1879
1879
  };
1880
1880
  }
1881
1881
 
1882
- function create_fragment$l(ctx) {
1882
+ function create_fragment$n(ctx) {
1883
1883
  let if_block_anchor;
1884
1884
  let current;
1885
1885
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$3(ctx);
@@ -1934,7 +1934,7 @@ function create_fragment$l(ctx) {
1934
1934
  };
1935
1935
  }
1936
1936
 
1937
- function instance$l($$self, $$props, $$invalidate) {
1937
+ function instance$n($$self, $$props, $$invalidate) {
1938
1938
  let $state;
1939
1939
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
1940
1940
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -1959,13 +1959,13 @@ function instance$l($$self, $$props, $$invalidate) {
1959
1959
  class StateItem extends SvelteComponent {
1960
1960
  constructor(options) {
1961
1961
  super();
1962
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { path: 0 }, add_css$h);
1962
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { path: 0 }, add_css$j);
1963
1963
  }
1964
1964
  }
1965
1965
 
1966
1966
  /* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
1967
1967
 
1968
- function add_css$g(target) {
1968
+ function add_css$i(target) {
1969
1969
  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}");
1970
1970
  }
1971
1971
 
@@ -1997,7 +1997,7 @@ function create_if_block$2(ctx) {
1997
1997
  };
1998
1998
  }
1999
1999
 
2000
- function create_fragment$k(ctx) {
2000
+ function create_fragment$m(ctx) {
2001
2001
  let if_block_anchor;
2002
2002
  let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$2(ctx);
2003
2003
 
@@ -2033,7 +2033,7 @@ function create_fragment$k(ctx) {
2033
2033
  };
2034
2034
  }
2035
2035
 
2036
- function instance$k($$self, $$props, $$invalidate) {
2036
+ function instance$m($$self, $$props, $$invalidate) {
2037
2037
  let { backgroundOverray = false } = $$props;
2038
2038
  const dispatch = createEventDispatcher();
2039
2039
  const click_handler = () => dispatch('click');
@@ -2048,13 +2048,13 @@ function instance$k($$self, $$props, $$invalidate) {
2048
2048
  class BackgroundOverray extends SvelteComponent {
2049
2049
  constructor(options) {
2050
2050
  super();
2051
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { backgroundOverray: 0 }, add_css$g);
2051
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { backgroundOverray: 0 }, add_css$i);
2052
2052
  }
2053
2053
  }
2054
2054
 
2055
2055
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
2056
2056
 
2057
- function add_css$f(target) {
2057
+ function add_css$h(target) {
2058
2058
  append_styles(target, "svelte-12dkw0q", ".modal.svelte-12dkw0q{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-12dkw0q{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-12dkw0q:hover{transform:rotate(90deg)}.modal-content.svelte-12dkw0q{display:flex;justify-content:center;align-items:center}");
2059
2059
  }
2060
2060
 
@@ -2235,7 +2235,7 @@ function create_if_block_1(ctx) {
2235
2235
  };
2236
2236
  }
2237
2237
 
2238
- function create_fragment$j(ctx) {
2238
+ function create_fragment$l(ctx) {
2239
2239
  let backgroundoverray;
2240
2240
  let t;
2241
2241
  let if_block_anchor;
@@ -2328,7 +2328,7 @@ function create_fragment$j(ctx) {
2328
2328
  };
2329
2329
  }
2330
2330
 
2331
- function instance$j($$self, $$props, $$invalidate) {
2331
+ function instance$l($$self, $$props, $$invalidate) {
2332
2332
  let click;
2333
2333
  let close;
2334
2334
  let closable;
@@ -2516,8 +2516,8 @@ class Modal extends SvelteComponent {
2516
2516
  init(
2517
2517
  this,
2518
2518
  options,
2519
- instance$j,
2520
- create_fragment$j,
2519
+ instance$l,
2520
+ create_fragment$l,
2521
2521
  safe_not_equal,
2522
2522
  {
2523
2523
  onClick: 17,
@@ -2533,14 +2533,14 @@ class Modal extends SvelteComponent {
2533
2533
  closeButtonColor: 2,
2534
2534
  _closeStyle: 3
2535
2535
  },
2536
- add_css$f
2536
+ add_css$h
2537
2537
  );
2538
2538
  }
2539
2539
  }
2540
2540
 
2541
2541
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
2542
2542
 
2543
- function create_fragment$i(ctx) {
2543
+ function create_fragment$k(ctx) {
2544
2544
  let div;
2545
2545
  let current;
2546
2546
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -2598,7 +2598,7 @@ function create_fragment$i(ctx) {
2598
2598
  };
2599
2599
  }
2600
2600
 
2601
- function instance$i($$self, $$props, $$invalidate) {
2601
+ function instance$k($$self, $$props, $$invalidate) {
2602
2602
  let _style;
2603
2603
  let { $$slots: slots = {}, $$scope } = $$props;
2604
2604
  let { width = '512px' } = $$props;
@@ -2643,7 +2643,7 @@ class Grid extends SvelteComponent {
2643
2643
  constructor(options) {
2644
2644
  super();
2645
2645
 
2646
- init(this, options, instance$i, create_fragment$i, safe_not_equal, {
2646
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, {
2647
2647
  width: 1,
2648
2648
  height: 2,
2649
2649
  rows: 3,
@@ -2825,7 +2825,7 @@ function create_default_slot(ctx) {
2825
2825
  };
2826
2826
  }
2827
2827
 
2828
- function create_fragment$h(ctx) {
2828
+ function create_fragment$j(ctx) {
2829
2829
  let stateitem;
2830
2830
  let current;
2831
2831
 
@@ -2870,7 +2870,7 @@ function create_fragment$h(ctx) {
2870
2870
  };
2871
2871
  }
2872
2872
 
2873
- function instance$h($$self, $$props, $$invalidate) {
2873
+ function instance$j($$self, $$props, $$invalidate) {
2874
2874
  let { $$slots: slots = {}, $$scope } = $$props;
2875
2875
  let { path } = $$props;
2876
2876
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -2941,7 +2941,7 @@ class GridModalState extends SvelteComponent {
2941
2941
  constructor(options) {
2942
2942
  super();
2943
2943
 
2944
- init(this, options, instance$h, create_fragment$h, safe_not_equal, {
2944
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, {
2945
2945
  path: 0,
2946
2946
  onClick: 1,
2947
2947
  clickEventName: 2,
@@ -2966,11 +2966,11 @@ class GridModalState extends SvelteComponent {
2966
2966
 
2967
2967
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
2968
2968
 
2969
- function add_css$e(target) {
2969
+ function add_css$g(target) {
2970
2970
  append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
2971
2971
  }
2972
2972
 
2973
- function create_fragment$g(ctx) {
2973
+ function create_fragment$i(ctx) {
2974
2974
  let div1;
2975
2975
  let div0;
2976
2976
  let current;
@@ -3033,7 +3033,7 @@ function create_fragment$g(ctx) {
3033
3033
  };
3034
3034
  }
3035
3035
 
3036
- function instance$g($$self, $$props, $$invalidate) {
3036
+ function instance$i($$self, $$props, $$invalidate) {
3037
3037
  let _style;
3038
3038
  let { $$slots: slots = {}, $$scope } = $$props;
3039
3039
  let { x1 } = $$props;
@@ -3086,8 +3086,8 @@ class GridItem extends SvelteComponent {
3086
3086
  init(
3087
3087
  this,
3088
3088
  options,
3089
- instance$g,
3090
- create_fragment$g,
3089
+ instance$i,
3090
+ create_fragment$i,
3091
3091
  safe_not_equal,
3092
3092
  {
3093
3093
  x1: 2,
@@ -3097,18 +3097,18 @@ class GridItem extends SvelteComponent {
3097
3097
  z: 6,
3098
3098
  background: 7
3099
3099
  },
3100
- add_css$e
3100
+ add_css$g
3101
3101
  );
3102
3102
  }
3103
3103
  }
3104
3104
 
3105
3105
  /* src/components/Flex.svelte generated by Svelte v3.53.1 */
3106
3106
 
3107
- function add_css$d(target) {
3107
+ function add_css$f(target) {
3108
3108
  append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
3109
3109
  }
3110
3110
 
3111
- function create_fragment$f(ctx) {
3111
+ function create_fragment$h(ctx) {
3112
3112
  let div;
3113
3113
  let div_style_value;
3114
3114
  let current;
@@ -3173,7 +3173,7 @@ function getFlexContext() {
3173
3173
  return getContext(FlexContextKey);
3174
3174
  }
3175
3175
 
3176
- function instance$f($$self, $$props, $$invalidate) {
3176
+ function instance$h($$self, $$props, $$invalidate) {
3177
3177
  let { $$slots: slots = {}, $$scope } = $$props;
3178
3178
  let { direction = 'row' } = $$props;
3179
3179
  let { width = '100%' } = $$props;
@@ -3199,8 +3199,8 @@ class Flex extends SvelteComponent {
3199
3199
  init(
3200
3200
  this,
3201
3201
  options,
3202
- instance$f,
3203
- create_fragment$f,
3202
+ instance$h,
3203
+ create_fragment$h,
3204
3204
  safe_not_equal,
3205
3205
  {
3206
3206
  direction: 0,
@@ -3208,18 +3208,18 @@ class Flex extends SvelteComponent {
3208
3208
  height: 2,
3209
3209
  _style: 3
3210
3210
  },
3211
- add_css$d
3211
+ add_css$f
3212
3212
  );
3213
3213
  }
3214
3214
  }
3215
3215
 
3216
3216
  /* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
3217
3217
 
3218
- function add_css$c(target) {
3218
+ function add_css$e(target) {
3219
3219
  append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
3220
3220
  }
3221
3221
 
3222
- function create_fragment$e(ctx) {
3222
+ function create_fragment$g(ctx) {
3223
3223
  let div;
3224
3224
  let current;
3225
3225
  const default_slot_template = /*#slots*/ ctx[4].default;
@@ -3277,7 +3277,7 @@ function create_fragment$e(ctx) {
3277
3277
  };
3278
3278
  }
3279
3279
 
3280
- function instance$e($$self, $$props, $$invalidate) {
3280
+ function instance$g($$self, $$props, $$invalidate) {
3281
3281
  let { $$slots: slots = {}, $$scope } = $$props;
3282
3282
  let { length } = $$props;
3283
3283
  let { _style = '' } = $$props;
@@ -3320,7 +3320,7 @@ function instance$e($$self, $$props, $$invalidate) {
3320
3320
  class FlexItem extends SvelteComponent {
3321
3321
  constructor(options) {
3322
3322
  super();
3323
- init(this, options, instance$e, create_fragment$e, safe_not_equal, { length: 1, _style: 2 }, add_css$c);
3323
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, { length: 1, _style: 2 }, add_css$e);
3324
3324
  }
3325
3325
  }
3326
3326
 
@@ -3415,7 +3415,7 @@ function create_each_block$1(ctx) {
3415
3415
  };
3416
3416
  }
3417
3417
 
3418
- function create_fragment$d(ctx) {
3418
+ function create_fragment$f(ctx) {
3419
3419
  let each_1_anchor;
3420
3420
  let each_value = /*items*/ ctx[0];
3421
3421
  let each_blocks = [];
@@ -3474,7 +3474,7 @@ function create_fragment$d(ctx) {
3474
3474
 
3475
3475
  const regexp = /(\r?\n)/;
3476
3476
 
3477
- function instance$d($$self, $$props, $$invalidate) {
3477
+ function instance$f($$self, $$props, $$invalidate) {
3478
3478
  let items;
3479
3479
  let { text = 'サンプルSample' } = $$props;
3480
3480
 
@@ -3494,17 +3494,17 @@ function instance$d($$self, $$props, $$invalidate) {
3494
3494
  class RenderText extends SvelteComponent {
3495
3495
  constructor(options) {
3496
3496
  super();
3497
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { text: 1 });
3497
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, { text: 1 });
3498
3498
  }
3499
3499
  }
3500
3500
 
3501
3501
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
3502
3502
 
3503
- function add_css$b(target) {
3503
+ function add_css$d(target) {
3504
3504
  append_styles(target, "svelte-9en2jg", ".text-element.svelte-9en2jg.svelte-9en2jg{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:auto}.text-element-inner.svelte-9en2jg.svelte-9en2jg{width:100%;height:auto}.text-direction-vertical.svelte-9en2jg.svelte-9en2jg{writing-mode:vertical-rl}.text-direction-vertical.svelte-9en2jg .text-element-inner.svelte-9en2jg{width:auto;height:100%}");
3505
3505
  }
3506
3506
 
3507
- function create_fragment$c(ctx) {
3507
+ function create_fragment$e(ctx) {
3508
3508
  let div1;
3509
3509
  let div0;
3510
3510
  let rendertext;
@@ -3556,7 +3556,7 @@ function create_fragment$c(ctx) {
3556
3556
  };
3557
3557
  }
3558
3558
 
3559
- function instance$c($$self, $$props, $$invalidate) {
3559
+ function instance$e($$self, $$props, $$invalidate) {
3560
3560
  let style;
3561
3561
  let { text = 'サンプルSample' } = $$props;
3562
3562
  let { _textStyle = 'font-size:12px;' } = $$props;
@@ -3586,8 +3586,8 @@ class TextElement extends SvelteComponent {
3586
3586
  init(
3587
3587
  this,
3588
3588
  options,
3589
- instance$c,
3590
- create_fragment$c,
3589
+ instance$e,
3590
+ create_fragment$e,
3591
3591
  safe_not_equal,
3592
3592
  {
3593
3593
  text: 0,
@@ -3595,18 +3595,18 @@ class TextElement extends SvelteComponent {
3595
3595
  textDirection: 1,
3596
3596
  _style: 4
3597
3597
  },
3598
- add_css$b
3598
+ add_css$d
3599
3599
  );
3600
3600
  }
3601
3601
  }
3602
3602
 
3603
3603
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
3604
3604
 
3605
- function add_css$a(target) {
3605
+ function add_css$c(target) {
3606
3606
  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)}");
3607
3607
  }
3608
3608
 
3609
- function create_fragment$b(ctx) {
3609
+ function create_fragment$d(ctx) {
3610
3610
  let div;
3611
3611
  let button;
3612
3612
  let rendertext;
@@ -3667,7 +3667,7 @@ function create_fragment$b(ctx) {
3667
3667
  };
3668
3668
  }
3669
3669
 
3670
- function instance$b($$self, $$props, $$invalidate) {
3670
+ function instance$d($$self, $$props, $$invalidate) {
3671
3671
  let { text = 'ボタンラベル' } = $$props;
3672
3672
  let { onClick = { operation: 'none', args: [] } } = $$props;
3673
3673
 
@@ -3701,8 +3701,8 @@ class TextButtonElement extends SvelteComponent {
3701
3701
  init(
3702
3702
  this,
3703
3703
  options,
3704
- instance$b,
3705
- create_fragment$b,
3704
+ instance$d,
3705
+ create_fragment$d,
3706
3706
  safe_not_equal,
3707
3707
  {
3708
3708
  text: 0,
@@ -3711,18 +3711,18 @@ class TextButtonElement extends SvelteComponent {
3711
3711
  _buttonStyle: 1,
3712
3712
  _style: 2
3713
3713
  },
3714
- add_css$a
3714
+ add_css$c
3715
3715
  );
3716
3716
  }
3717
3717
  }
3718
3718
 
3719
3719
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
3720
3720
 
3721
- function add_css$9(target) {
3721
+ function add_css$b(target) {
3722
3722
  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)}");
3723
3723
  }
3724
3724
 
3725
- function create_fragment$a(ctx) {
3725
+ function create_fragment$c(ctx) {
3726
3726
  let div;
3727
3727
  let img;
3728
3728
  let img_src_value;
@@ -3784,7 +3784,7 @@ function create_fragment$a(ctx) {
3784
3784
  };
3785
3785
  }
3786
3786
 
3787
- function instance$a($$self, $$props, $$invalidate) {
3787
+ function instance$c($$self, $$props, $$invalidate) {
3788
3788
  let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
3789
3789
  let { alt = 'No Image' } = $$props;
3790
3790
  let { transport = false } = $$props;
@@ -3822,8 +3822,8 @@ class ImageElement extends SvelteComponent {
3822
3822
  init(
3823
3823
  this,
3824
3824
  options,
3825
- instance$a,
3826
- create_fragment$a,
3825
+ instance$c,
3826
+ create_fragment$c,
3827
3827
  safe_not_equal,
3828
3828
  {
3829
3829
  src: 0,
@@ -3834,18 +3834,18 @@ class ImageElement extends SvelteComponent {
3834
3834
  _imageStyle: 3,
3835
3835
  _style: 4
3836
3836
  },
3837
- add_css$9
3837
+ add_css$b
3838
3838
  );
3839
3839
  }
3840
3840
  }
3841
3841
 
3842
3842
  /* src/components/List.svelte generated by Svelte v3.53.1 */
3843
3843
 
3844
- function add_css$8(target) {
3844
+ function add_css$a(target) {
3845
3845
  append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
3846
3846
  }
3847
3847
 
3848
- function create_fragment$9(ctx) {
3848
+ function create_fragment$b(ctx) {
3849
3849
  let div;
3850
3850
  let current;
3851
3851
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -3905,7 +3905,7 @@ function create_fragment$9(ctx) {
3905
3905
 
3906
3906
  const LIST_CONTEXT_KEY = Symbol();
3907
3907
 
3908
- function instance$9($$self, $$props, $$invalidate) {
3908
+ function instance$b($$self, $$props, $$invalidate) {
3909
3909
  let style;
3910
3910
  let { $$slots: slots = {}, $$scope } = $$props;
3911
3911
  let { direction = 'vertical' } = $$props;
@@ -3972,8 +3972,8 @@ class List extends SvelteComponent {
3972
3972
  init(
3973
3973
  this,
3974
3974
  options,
3975
- instance$9,
3976
- create_fragment$9,
3975
+ instance$b,
3976
+ create_fragment$b,
3977
3977
  safe_not_equal,
3978
3978
  {
3979
3979
  direction: 1,
@@ -3981,18 +3981,18 @@ class List extends SvelteComponent {
3981
3981
  background: 3,
3982
3982
  _style: 4
3983
3983
  },
3984
- add_css$8
3984
+ add_css$a
3985
3985
  );
3986
3986
  }
3987
3987
  }
3988
3988
 
3989
3989
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
3990
3990
 
3991
- function add_css$7(target) {
3991
+ function add_css$9(target) {
3992
3992
  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}");
3993
3993
  }
3994
3994
 
3995
- function create_fragment$8(ctx) {
3995
+ function create_fragment$a(ctx) {
3996
3996
  let div1;
3997
3997
  let div0;
3998
3998
  let current;
@@ -4073,7 +4073,7 @@ function create_fragment$8(ctx) {
4073
4073
  };
4074
4074
  }
4075
4075
 
4076
- function instance$8($$self, $$props, $$invalidate) {
4076
+ function instance$a($$self, $$props, $$invalidate) {
4077
4077
  let click;
4078
4078
  let listItemStyle;
4079
4079
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -4163,17 +4163,17 @@ function instance$8($$self, $$props, $$invalidate) {
4163
4163
  class ListItem extends SvelteComponent {
4164
4164
  constructor(options) {
4165
4165
  super();
4166
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$7);
4166
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$9);
4167
4167
  }
4168
4168
  }
4169
4169
 
4170
4170
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
4171
4171
 
4172
- function add_css$6(target) {
4172
+ function add_css$8(target) {
4173
4173
  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%}");
4174
4174
  }
4175
4175
 
4176
- function create_fragment$7(ctx) {
4176
+ function create_fragment$9(ctx) {
4177
4177
  let div;
4178
4178
 
4179
4179
  return {
@@ -4200,7 +4200,7 @@ function create_fragment$7(ctx) {
4200
4200
  };
4201
4201
  }
4202
4202
 
4203
- function instance$7($$self, $$props, $$invalidate) {
4203
+ function instance$9($$self, $$props, $$invalidate) {
4204
4204
  let { code } = $$props;
4205
4205
  let { _style = '' } = $$props;
4206
4206
 
@@ -4215,7 +4215,439 @@ function instance$7($$self, $$props, $$invalidate) {
4215
4215
  class EmbedElement extends SvelteComponent {
4216
4216
  constructor(options) {
4217
4217
  super();
4218
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { code: 0, _style: 1 }, add_css$6);
4218
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { code: 0, _style: 1 }, add_css$8);
4219
+ }
4220
+ }
4221
+
4222
+ /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
4223
+
4224
+ function add_css$7(target) {
4225
+ 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%}");
4226
+ }
4227
+
4228
+ function create_fragment$8(ctx) {
4229
+ let div1;
4230
+ let div0;
4231
+
4232
+ return {
4233
+ c() {
4234
+ div1 = element("div");
4235
+ div0 = element("div");
4236
+ attr(div0, "class", "karte-player");
4237
+ attr(div1, "class", "embed svelte-k86zna");
4238
+ attr(div1, "style", /*_style*/ ctx[0]);
4239
+ },
4240
+ m(target, anchor) {
4241
+ insert(target, div1, anchor);
4242
+ append(div1, div0);
4243
+ /*div0_binding*/ ctx[7](div0);
4244
+ },
4245
+ p(ctx, [dirty]) {
4246
+ if (dirty & /*_style*/ 1) {
4247
+ attr(div1, "style", /*_style*/ ctx[0]);
4248
+ }
4249
+ },
4250
+ i: noop,
4251
+ o: noop,
4252
+ d(detaching) {
4253
+ if (detaching) detach(div1);
4254
+ /*div0_binding*/ ctx[7](null);
4255
+ }
4256
+ };
4257
+ }
4258
+
4259
+ function instance$8($$self, $$props, $$invalidate) {
4260
+ let $system;
4261
+ component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4262
+ let { videoId } = $$props;
4263
+ let { sendEvent } = $$props;
4264
+ let { autoplay = false } = $$props;
4265
+ let { loop = false } = $$props;
4266
+ let { mute = false } = $$props;
4267
+ let { _style = "" } = $$props;
4268
+
4269
+ // @ts-ignore
4270
+ if (!window.YT) {
4271
+ const tag = document.createElement("script");
4272
+ tag.src = "//www.youtube.com/iframe_api";
4273
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4274
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4275
+ }
4276
+
4277
+ let startDate = 0;
4278
+ let totalPlaySeconds = 0;
4279
+ let alreadyPlay = false;
4280
+ let player = null;
4281
+ let domRef = null;
4282
+
4283
+ function sendMovieEvent(event_name, values = {}) {
4284
+ if (!sendEvent) {
4285
+ return;
4286
+ }
4287
+
4288
+ const sentValues = {
4289
+ campaign_id: $system.campaignId,
4290
+ shorten_id: $system.shortenId,
4291
+ ...values
4292
+ };
4293
+
4294
+ send_event(event_name, sentValues);
4295
+ }
4296
+
4297
+ function sendPlaytime() {
4298
+ if (!startDate) {
4299
+ return;
4300
+ }
4301
+
4302
+ const currentDate = Date.now();
4303
+ const playSeconds = Math.round((currentDate - startDate) / 1000);
4304
+ totalPlaySeconds += playSeconds;
4305
+
4306
+ sendMovieEvent("_movie_playtime", {
4307
+ seconds: playSeconds,
4308
+ total_seconds: totalPlaySeconds
4309
+ });
4310
+ }
4311
+
4312
+ // @ts-ignore
4313
+ function onPlayerReady(event) {
4314
+ if (mute) {
4315
+ player.mute();
4316
+ }
4317
+ }
4318
+
4319
+ function onStart() {
4320
+ startDate = Date.now();
4321
+
4322
+ if (!alreadyPlay) {
4323
+ alreadyPlay = true;
4324
+ sendMovieEvent("_movie_play");
4325
+ }
4326
+ }
4327
+
4328
+ function onPause() {
4329
+ sendPlaytime();
4330
+ startDate = null;
4331
+ }
4332
+
4333
+ function onFinish() {
4334
+ sendMovieEvent("_movie_finish");
4335
+ sendPlaytime();
4336
+ startDate = null;
4337
+ }
4338
+
4339
+ function onPlayerStateChange(event) {
4340
+ switch (event.data) {
4341
+ case 1:
4342
+ // 再生中
4343
+ onStart();
4344
+ break;
4345
+ case 2:
4346
+ // 停止
4347
+ onPause();
4348
+ break;
4349
+ case 0:
4350
+ // 終了
4351
+ onFinish();
4352
+ break;
4353
+ }
4354
+ }
4355
+
4356
+ function createPlayer() {
4357
+ if (!domRef) {
4358
+ return;
4359
+ }
4360
+
4361
+ const playerVars = {
4362
+ autoplay: autoplay ? 1 : 0,
4363
+ loop: loop ? 1 : 0,
4364
+ rel: 0,
4365
+ playlist: null
4366
+ };
4367
+
4368
+ if (loop) {
4369
+ playerVars.playlist = videoId;
4370
+ }
4371
+
4372
+ // @ts-ignore
4373
+ player = new window.YT.Player(domRef,
4374
+ {
4375
+ videoId,
4376
+ playerVars,
4377
+ events: {
4378
+ onReady: onPlayerReady,
4379
+ onStateChange: onPlayerStateChange
4380
+ }
4381
+ });
4382
+ }
4383
+
4384
+ onDestroy$1(() => {
4385
+ if (player) {
4386
+ player.stopVideo();
4387
+ }
4388
+
4389
+ player.destroy();
4390
+ });
4391
+
4392
+ onMount(() => {
4393
+ setTimeout(
4394
+ () => {
4395
+ // @ts-ignore
4396
+ if (window.YT) {
4397
+ createPlayer();
4398
+ }
4399
+ },
4400
+ 200
4401
+ );
4402
+ });
4403
+
4404
+ // @ts-ignore
4405
+ window.onYouTubeIframeAPIReady = () => {
4406
+ createPlayer();
4407
+ };
4408
+
4409
+ window.addEventListener("beforeunload", () => {
4410
+ sendPlaytime();
4411
+ });
4412
+
4413
+ function div0_binding($$value) {
4414
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4415
+ domRef = $$value;
4416
+ $$invalidate(1, domRef);
4417
+ });
4418
+ }
4419
+
4420
+ $$self.$$set = $$props => {
4421
+ if ('videoId' in $$props) $$invalidate(2, videoId = $$props.videoId);
4422
+ if ('sendEvent' in $$props) $$invalidate(3, sendEvent = $$props.sendEvent);
4423
+ if ('autoplay' in $$props) $$invalidate(4, autoplay = $$props.autoplay);
4424
+ if ('loop' in $$props) $$invalidate(5, loop = $$props.loop);
4425
+ if ('mute' in $$props) $$invalidate(6, mute = $$props.mute);
4426
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
4427
+ };
4428
+
4429
+ return [_style, domRef, videoId, sendEvent, autoplay, loop, mute, div0_binding];
4430
+ }
4431
+
4432
+ class MovieYouTubeElement extends SvelteComponent {
4433
+ constructor(options) {
4434
+ super();
4435
+
4436
+ init(
4437
+ this,
4438
+ options,
4439
+ instance$8,
4440
+ create_fragment$8,
4441
+ safe_not_equal,
4442
+ {
4443
+ videoId: 2,
4444
+ sendEvent: 3,
4445
+ autoplay: 4,
4446
+ loop: 5,
4447
+ mute: 6,
4448
+ _style: 0
4449
+ },
4450
+ add_css$7
4451
+ );
4452
+ }
4453
+ }
4454
+
4455
+ /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
4456
+
4457
+ function add_css$6(target) {
4458
+ 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%}");
4459
+ }
4460
+
4461
+ function create_fragment$7(ctx) {
4462
+ let div1;
4463
+ let div0;
4464
+
4465
+ return {
4466
+ c() {
4467
+ div1 = element("div");
4468
+ div0 = element("div");
4469
+ attr(div0, "class", "karte-player");
4470
+ attr(div1, "class", "embed svelte-k86zna");
4471
+ attr(div1, "style", /*_style*/ ctx[0]);
4472
+ },
4473
+ m(target, anchor) {
4474
+ insert(target, div1, anchor);
4475
+ append(div1, div0);
4476
+ /*div0_binding*/ ctx[7](div0);
4477
+ },
4478
+ p(ctx, [dirty]) {
4479
+ if (dirty & /*_style*/ 1) {
4480
+ attr(div1, "style", /*_style*/ ctx[0]);
4481
+ }
4482
+ },
4483
+ i: noop,
4484
+ o: noop,
4485
+ d(detaching) {
4486
+ if (detaching) detach(div1);
4487
+ /*div0_binding*/ ctx[7](null);
4488
+ }
4489
+ };
4490
+ }
4491
+
4492
+ function instance$7($$self, $$props, $$invalidate) {
4493
+ let $system;
4494
+ component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4495
+ let { videoId } = $$props;
4496
+ let { sendEvent } = $$props;
4497
+ let { autoplay = false } = $$props;
4498
+ let { loop = false } = $$props;
4499
+ let { mute = false } = $$props;
4500
+ let { _style = "" } = $$props;
4501
+
4502
+ // @ts-ignore
4503
+ if (!window.Vimeo) {
4504
+ const tag = document.createElement("script");
4505
+ tag.src = "//player.vimeo.com/api/player.js";
4506
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4507
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4508
+ }
4509
+
4510
+ let startDate = 0;
4511
+ let totalPlaySeconds = 0;
4512
+ let alreadyPlay = false;
4513
+ let player = null;
4514
+ let domRef = null;
4515
+
4516
+ function sendMovieEvent(event_name, values = {}) {
4517
+ if (!sendEvent) {
4518
+ return;
4519
+ }
4520
+
4521
+ const sentValues = {
4522
+ campaign_id: $system.campaignId,
4523
+ shorten_id: $system.shortenId,
4524
+ ...values
4525
+ };
4526
+
4527
+ send_event(event_name, sentValues);
4528
+ }
4529
+
4530
+ function sendPlaytime() {
4531
+ if (!startDate) {
4532
+ return;
4533
+ }
4534
+
4535
+ const currentDate = Date.now();
4536
+ const playSeconds = Math.round((currentDate - startDate) / 1000);
4537
+ totalPlaySeconds += playSeconds;
4538
+
4539
+ sendMovieEvent("_movie_playtime", {
4540
+ seconds: playSeconds,
4541
+ total_seconds: totalPlaySeconds
4542
+ });
4543
+ }
4544
+
4545
+ function onPlayerReady() {
4546
+ if (mute) {
4547
+ player.setMuted(true);
4548
+ }
4549
+ }
4550
+
4551
+ function onStart() {
4552
+ startDate = Date.now();
4553
+
4554
+ if (!alreadyPlay) {
4555
+ alreadyPlay = true;
4556
+ sendMovieEvent("_movie_play");
4557
+ }
4558
+ }
4559
+
4560
+ function onPause() {
4561
+ sendPlaytime();
4562
+ startDate = null;
4563
+ }
4564
+
4565
+ function onFinish() {
4566
+ sendMovieEvent("_movie_finish");
4567
+ sendPlaytime();
4568
+ startDate = null;
4569
+ }
4570
+
4571
+ function createPlayer() {
4572
+ if (!domRef) {
4573
+ return;
4574
+ }
4575
+
4576
+ const playerOptions = { id: videoId, autoplay, loop };
4577
+ console.log("createPlayer1");
4578
+
4579
+ // @ts-ignore
4580
+ player = new window.Vimeo.Player(domRef, playerOptions);
4581
+
4582
+ console.log("createPlayer2");
4583
+ player.on("play", onStart);
4584
+ player.on("pause", onPause);
4585
+ player.on("ended", onFinish);
4586
+ onPlayerReady();
4587
+ }
4588
+
4589
+ onDestroy$1(() => {
4590
+ player.destroy();
4591
+ });
4592
+
4593
+ onMount(() => {
4594
+ console.log("onMount1");
4595
+
4596
+ setTimeout(
4597
+ () => {
4598
+ // @ts-ignore
4599
+ if (window.Vimeo) {
4600
+ console.log("onMount2");
4601
+ createPlayer();
4602
+ }
4603
+ },
4604
+ 1000
4605
+ );
4606
+ });
4607
+
4608
+ window.addEventListener("beforeunload", () => {
4609
+ sendPlaytime();
4610
+ });
4611
+
4612
+ function div0_binding($$value) {
4613
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4614
+ domRef = $$value;
4615
+ $$invalidate(1, domRef);
4616
+ });
4617
+ }
4618
+
4619
+ $$self.$$set = $$props => {
4620
+ if ('videoId' in $$props) $$invalidate(2, videoId = $$props.videoId);
4621
+ if ('sendEvent' in $$props) $$invalidate(3, sendEvent = $$props.sendEvent);
4622
+ if ('autoplay' in $$props) $$invalidate(4, autoplay = $$props.autoplay);
4623
+ if ('loop' in $$props) $$invalidate(5, loop = $$props.loop);
4624
+ if ('mute' in $$props) $$invalidate(6, mute = $$props.mute);
4625
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
4626
+ };
4627
+
4628
+ return [_style, domRef, videoId, sendEvent, autoplay, loop, mute, div0_binding];
4629
+ }
4630
+
4631
+ class MovieVimeoElement extends SvelteComponent {
4632
+ constructor(options) {
4633
+ super();
4634
+
4635
+ init(
4636
+ this,
4637
+ options,
4638
+ instance$7,
4639
+ create_fragment$7,
4640
+ safe_not_equal,
4641
+ {
4642
+ videoId: 2,
4643
+ sendEvent: 3,
4644
+ autoplay: 4,
4645
+ loop: 5,
4646
+ mute: 6,
4647
+ _style: 0
4648
+ },
4649
+ add_css$6
4650
+ );
4219
4651
  }
4220
4652
  }
4221
4653
 
@@ -5125,4 +5557,4 @@ class ImageBlock extends SvelteComponent {
5125
5557
  }
5126
5558
  }
5127
5559
 
5128
- 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, Elasticities, ElasticityStyle, 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, TextDirections, TextElement, WritingModes, 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 };
5560
+ 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, Elasticities, ElasticityStyle, 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, MovieVimeoElement, MovieYouTubeElement, NOOP, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, 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 };