@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.
@@ -1608,20 +1608,20 @@ var widget = /*#__PURE__*/Object.freeze({
1608
1608
 
1609
1609
  /* src/components/Normalize.svelte generated by Svelte v3.53.1 */
1610
1610
 
1611
- function add_css$i(target) {
1611
+ function add_css$k(target) {
1612
1612
  append_styles(target, "svelte-tr4qnr", "@import 'https://esm.sh/normalize.css';");
1613
1613
  }
1614
1614
 
1615
1615
  class Normalize extends SvelteComponent {
1616
1616
  constructor(options) {
1617
1617
  super();
1618
- init(this, options, null, null, safe_not_equal, {}, add_css$i);
1618
+ init(this, options, null, null, safe_not_equal, {}, add_css$k);
1619
1619
  }
1620
1620
  }
1621
1621
 
1622
1622
  /* src/components/State.svelte generated by Svelte v3.53.1 */
1623
1623
 
1624
- function create_fragment$m(ctx) {
1624
+ function create_fragment$o(ctx) {
1625
1625
  let normalize;
1626
1626
  let t;
1627
1627
  let current;
@@ -1685,7 +1685,7 @@ function create_fragment$m(ctx) {
1685
1685
  };
1686
1686
  }
1687
1687
 
1688
- function instance$m($$self, $$props, $$invalidate) {
1688
+ function instance$o($$self, $$props, $$invalidate) {
1689
1689
  let { $$slots: slots = {}, $$scope } = $$props;
1690
1690
 
1691
1691
  $$self.$$set = $$props => {
@@ -1698,13 +1698,13 @@ function instance$m($$self, $$props, $$invalidate) {
1698
1698
  class State extends SvelteComponent {
1699
1699
  constructor(options) {
1700
1700
  super();
1701
- init(this, options, instance$m, create_fragment$m, safe_not_equal, {});
1701
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, {});
1702
1702
  }
1703
1703
  }
1704
1704
 
1705
1705
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
1706
1706
 
1707
- function add_css$h(target) {
1707
+ function add_css$j(target) {
1708
1708
  append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
1709
1709
  }
1710
1710
 
@@ -1781,7 +1781,7 @@ function create_if_block$3(ctx) {
1781
1781
  };
1782
1782
  }
1783
1783
 
1784
- function create_fragment$l(ctx) {
1784
+ function create_fragment$n(ctx) {
1785
1785
  let if_block_anchor;
1786
1786
  let current;
1787
1787
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$3(ctx);
@@ -1840,7 +1840,7 @@ function create_fragment$l(ctx) {
1840
1840
  };
1841
1841
  }
1842
1842
 
1843
- function instance$l($$self, $$props, $$invalidate) {
1843
+ function instance$n($$self, $$props, $$invalidate) {
1844
1844
  let $state;
1845
1845
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
1846
1846
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -1865,13 +1865,13 @@ function instance$l($$self, $$props, $$invalidate) {
1865
1865
  class StateItem extends SvelteComponent {
1866
1866
  constructor(options) {
1867
1867
  super();
1868
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { path: 0 }, add_css$h);
1868
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { path: 0 }, add_css$j);
1869
1869
  }
1870
1870
  }
1871
1871
 
1872
1872
  /* src/components/BackgroundOverray.svelte generated by Svelte v3.53.1 */
1873
1873
 
1874
- function add_css$g(target) {
1874
+ function add_css$i(target) {
1875
1875
  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}");
1876
1876
  }
1877
1877
 
@@ -1911,7 +1911,7 @@ function create_if_block$2(ctx) {
1911
1911
  };
1912
1912
  }
1913
1913
 
1914
- function create_fragment$k(ctx) {
1914
+ function create_fragment$m(ctx) {
1915
1915
  let if_block_anchor;
1916
1916
  let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$2(ctx);
1917
1917
 
@@ -1951,7 +1951,7 @@ function create_fragment$k(ctx) {
1951
1951
  };
1952
1952
  }
1953
1953
 
1954
- function instance$k($$self, $$props, $$invalidate) {
1954
+ function instance$m($$self, $$props, $$invalidate) {
1955
1955
  let { backgroundOverray = false } = $$props;
1956
1956
  const dispatch = createEventDispatcher();
1957
1957
  const click_handler = () => dispatch('click');
@@ -1966,13 +1966,13 @@ function instance$k($$self, $$props, $$invalidate) {
1966
1966
  class BackgroundOverray extends SvelteComponent {
1967
1967
  constructor(options) {
1968
1968
  super();
1969
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { backgroundOverray: 0 }, add_css$g);
1969
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { backgroundOverray: 0 }, add_css$i);
1970
1970
  }
1971
1971
  }
1972
1972
 
1973
1973
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
1974
1974
 
1975
- function add_css$f(target) {
1975
+ function add_css$h(target) {
1976
1976
  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}");
1977
1977
  }
1978
1978
 
@@ -2202,7 +2202,7 @@ function create_if_block_1(ctx) {
2202
2202
  };
2203
2203
  }
2204
2204
 
2205
- function create_fragment$j(ctx) {
2205
+ function create_fragment$l(ctx) {
2206
2206
  let backgroundoverray;
2207
2207
  let t;
2208
2208
  let if_block_anchor;
@@ -2301,7 +2301,7 @@ function create_fragment$j(ctx) {
2301
2301
  };
2302
2302
  }
2303
2303
 
2304
- function instance$j($$self, $$props, $$invalidate) {
2304
+ function instance$l($$self, $$props, $$invalidate) {
2305
2305
  let click;
2306
2306
  let close;
2307
2307
  let closable;
@@ -2492,8 +2492,8 @@ class Modal extends SvelteComponent {
2492
2492
  init(
2493
2493
  this,
2494
2494
  options,
2495
- instance$j,
2496
- create_fragment$j,
2495
+ instance$l,
2496
+ create_fragment$l,
2497
2497
  safe_not_equal,
2498
2498
  {
2499
2499
  onClick: 17,
@@ -2509,14 +2509,14 @@ class Modal extends SvelteComponent {
2509
2509
  closeButtonColor: 2,
2510
2510
  _closeStyle: 3
2511
2511
  },
2512
- add_css$f
2512
+ add_css$h
2513
2513
  );
2514
2514
  }
2515
2515
  }
2516
2516
 
2517
2517
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
2518
2518
 
2519
- function create_fragment$i(ctx) {
2519
+ function create_fragment$k(ctx) {
2520
2520
  let div;
2521
2521
  let current;
2522
2522
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -2584,7 +2584,7 @@ function create_fragment$i(ctx) {
2584
2584
  };
2585
2585
  }
2586
2586
 
2587
- function instance$i($$self, $$props, $$invalidate) {
2587
+ function instance$k($$self, $$props, $$invalidate) {
2588
2588
  let _style;
2589
2589
  let { $$slots: slots = {}, $$scope } = $$props;
2590
2590
  let { width = '512px' } = $$props;
@@ -2629,7 +2629,7 @@ class Grid extends SvelteComponent {
2629
2629
  constructor(options) {
2630
2630
  super();
2631
2631
 
2632
- init(this, options, instance$i, create_fragment$i, safe_not_equal, {
2632
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, {
2633
2633
  width: 1,
2634
2634
  height: 2,
2635
2635
  rows: 3,
@@ -2820,7 +2820,7 @@ function create_default_slot(ctx) {
2820
2820
  };
2821
2821
  }
2822
2822
 
2823
- function create_fragment$h(ctx) {
2823
+ function create_fragment$j(ctx) {
2824
2824
  let stateitem;
2825
2825
  let current;
2826
2826
 
@@ -2868,7 +2868,7 @@ function create_fragment$h(ctx) {
2868
2868
  };
2869
2869
  }
2870
2870
 
2871
- function instance$h($$self, $$props, $$invalidate) {
2871
+ function instance$j($$self, $$props, $$invalidate) {
2872
2872
  let { $$slots: slots = {}, $$scope } = $$props;
2873
2873
  let { path } = $$props;
2874
2874
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -2939,7 +2939,7 @@ class GridModalState extends SvelteComponent {
2939
2939
  constructor(options) {
2940
2940
  super();
2941
2941
 
2942
- init(this, options, instance$h, create_fragment$h, safe_not_equal, {
2942
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, {
2943
2943
  path: 0,
2944
2944
  onClick: 1,
2945
2945
  clickEventName: 2,
@@ -2964,11 +2964,11 @@ class GridModalState extends SvelteComponent {
2964
2964
 
2965
2965
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
2966
2966
 
2967
- function add_css$e(target) {
2967
+ function add_css$g(target) {
2968
2968
  append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
2969
2969
  }
2970
2970
 
2971
- function create_fragment$g(ctx) {
2971
+ function create_fragment$i(ctx) {
2972
2972
  let div1;
2973
2973
  let div0;
2974
2974
  let current;
@@ -3049,7 +3049,7 @@ function create_fragment$g(ctx) {
3049
3049
  };
3050
3050
  }
3051
3051
 
3052
- function instance$g($$self, $$props, $$invalidate) {
3052
+ function instance$i($$self, $$props, $$invalidate) {
3053
3053
  let _style;
3054
3054
  let { $$slots: slots = {}, $$scope } = $$props;
3055
3055
  let { x1 } = $$props;
@@ -3102,8 +3102,8 @@ class GridItem extends SvelteComponent {
3102
3102
  init(
3103
3103
  this,
3104
3104
  options,
3105
- instance$g,
3106
- create_fragment$g,
3105
+ instance$i,
3106
+ create_fragment$i,
3107
3107
  safe_not_equal,
3108
3108
  {
3109
3109
  x1: 2,
@@ -3113,18 +3113,18 @@ class GridItem extends SvelteComponent {
3113
3113
  z: 6,
3114
3114
  background: 7
3115
3115
  },
3116
- add_css$e
3116
+ add_css$g
3117
3117
  );
3118
3118
  }
3119
3119
  }
3120
3120
 
3121
3121
  /* src/components/Flex.svelte generated by Svelte v3.53.1 */
3122
3122
 
3123
- function add_css$d(target) {
3123
+ function add_css$f(target) {
3124
3124
  append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
3125
3125
  }
3126
3126
 
3127
- function create_fragment$f(ctx) {
3127
+ function create_fragment$h(ctx) {
3128
3128
  let div;
3129
3129
  let div_style_value;
3130
3130
  let current;
@@ -3199,7 +3199,7 @@ function getFlexContext() {
3199
3199
  return getContext(FlexContextKey);
3200
3200
  }
3201
3201
 
3202
- function instance$f($$self, $$props, $$invalidate) {
3202
+ function instance$h($$self, $$props, $$invalidate) {
3203
3203
  let { $$slots: slots = {}, $$scope } = $$props;
3204
3204
  let { direction = 'row' } = $$props;
3205
3205
  let { width = '100%' } = $$props;
@@ -3225,8 +3225,8 @@ class Flex extends SvelteComponent {
3225
3225
  init(
3226
3226
  this,
3227
3227
  options,
3228
- instance$f,
3229
- create_fragment$f,
3228
+ instance$h,
3229
+ create_fragment$h,
3230
3230
  safe_not_equal,
3231
3231
  {
3232
3232
  direction: 0,
@@ -3234,18 +3234,18 @@ class Flex extends SvelteComponent {
3234
3234
  height: 2,
3235
3235
  _style: 3
3236
3236
  },
3237
- add_css$d
3237
+ add_css$f
3238
3238
  );
3239
3239
  }
3240
3240
  }
3241
3241
 
3242
3242
  /* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
3243
3243
 
3244
- function add_css$c(target) {
3244
+ function add_css$e(target) {
3245
3245
  append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
3246
3246
  }
3247
3247
 
3248
- function create_fragment$e(ctx) {
3248
+ function create_fragment$g(ctx) {
3249
3249
  let div;
3250
3250
  let current;
3251
3251
  const default_slot_template = /*#slots*/ ctx[4].default;
@@ -3313,7 +3313,7 @@ function create_fragment$e(ctx) {
3313
3313
  };
3314
3314
  }
3315
3315
 
3316
- function instance$e($$self, $$props, $$invalidate) {
3316
+ function instance$g($$self, $$props, $$invalidate) {
3317
3317
  let { $$slots: slots = {}, $$scope } = $$props;
3318
3318
  let { length } = $$props;
3319
3319
  let { _style = '' } = $$props;
@@ -3356,7 +3356,7 @@ function instance$e($$self, $$props, $$invalidate) {
3356
3356
  class FlexItem extends SvelteComponent {
3357
3357
  constructor(options) {
3358
3358
  super();
3359
- init(this, options, instance$e, create_fragment$e, safe_not_equal, { length: 1, _style: 2 }, add_css$c);
3359
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, { length: 1, _style: 2 }, add_css$e);
3360
3360
  }
3361
3361
  }
3362
3362
 
@@ -3461,7 +3461,7 @@ function create_each_block$1(ctx) {
3461
3461
  };
3462
3462
  }
3463
3463
 
3464
- function create_fragment$d(ctx) {
3464
+ function create_fragment$f(ctx) {
3465
3465
  let each_1_anchor;
3466
3466
  let each_value = /*items*/ ctx[0];
3467
3467
  let each_blocks = [];
@@ -3527,7 +3527,7 @@ function create_fragment$d(ctx) {
3527
3527
 
3528
3528
  const regexp = /(\r?\n)/;
3529
3529
 
3530
- function instance$d($$self, $$props, $$invalidate) {
3530
+ function instance$f($$self, $$props, $$invalidate) {
3531
3531
  let items;
3532
3532
  let { text = 'サンプルSample' } = $$props;
3533
3533
 
@@ -3547,17 +3547,17 @@ function instance$d($$self, $$props, $$invalidate) {
3547
3547
  class RenderText extends SvelteComponent {
3548
3548
  constructor(options) {
3549
3549
  super();
3550
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { text: 1 });
3550
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, { text: 1 });
3551
3551
  }
3552
3552
  }
3553
3553
 
3554
3554
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
3555
3555
 
3556
- function add_css$b(target) {
3556
+ function add_css$d(target) {
3557
3557
  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%}");
3558
3558
  }
3559
3559
 
3560
- function create_fragment$c(ctx) {
3560
+ function create_fragment$e(ctx) {
3561
3561
  let div1;
3562
3562
  let div0;
3563
3563
  let rendertext;
@@ -3622,7 +3622,7 @@ function create_fragment$c(ctx) {
3622
3622
  };
3623
3623
  }
3624
3624
 
3625
- function instance$c($$self, $$props, $$invalidate) {
3625
+ function instance$e($$self, $$props, $$invalidate) {
3626
3626
  let style;
3627
3627
  let { text = 'サンプルSample' } = $$props;
3628
3628
  let { _textStyle = 'font-size:12px;' } = $$props;
@@ -3652,8 +3652,8 @@ class TextElement extends SvelteComponent {
3652
3652
  init(
3653
3653
  this,
3654
3654
  options,
3655
- instance$c,
3656
- create_fragment$c,
3655
+ instance$e,
3656
+ create_fragment$e,
3657
3657
  safe_not_equal,
3658
3658
  {
3659
3659
  text: 0,
@@ -3661,18 +3661,18 @@ class TextElement extends SvelteComponent {
3661
3661
  textDirection: 1,
3662
3662
  _style: 4
3663
3663
  },
3664
- add_css$b
3664
+ add_css$d
3665
3665
  );
3666
3666
  }
3667
3667
  }
3668
3668
 
3669
3669
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
3670
3670
 
3671
- function add_css$a(target) {
3671
+ function add_css$c(target) {
3672
3672
  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)}");
3673
3673
  }
3674
3674
 
3675
- function create_fragment$b(ctx) {
3675
+ function create_fragment$d(ctx) {
3676
3676
  let div;
3677
3677
  let button;
3678
3678
  let rendertext;
@@ -3746,7 +3746,7 @@ function create_fragment$b(ctx) {
3746
3746
  };
3747
3747
  }
3748
3748
 
3749
- function instance$b($$self, $$props, $$invalidate) {
3749
+ function instance$d($$self, $$props, $$invalidate) {
3750
3750
  let { text = 'ボタンラベル' } = $$props;
3751
3751
  let { onClick = { operation: 'none', args: [] } } = $$props;
3752
3752
 
@@ -3780,8 +3780,8 @@ class TextButtonElement extends SvelteComponent {
3780
3780
  init(
3781
3781
  this,
3782
3782
  options,
3783
- instance$b,
3784
- create_fragment$b,
3783
+ instance$d,
3784
+ create_fragment$d,
3785
3785
  safe_not_equal,
3786
3786
  {
3787
3787
  text: 0,
@@ -3790,18 +3790,18 @@ class TextButtonElement extends SvelteComponent {
3790
3790
  _buttonStyle: 1,
3791
3791
  _style: 2
3792
3792
  },
3793
- add_css$a
3793
+ add_css$c
3794
3794
  );
3795
3795
  }
3796
3796
  }
3797
3797
 
3798
3798
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
3799
3799
 
3800
- function add_css$9(target) {
3800
+ function add_css$b(target) {
3801
3801
  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)}");
3802
3802
  }
3803
3803
 
3804
- function create_fragment$a(ctx) {
3804
+ function create_fragment$c(ctx) {
3805
3805
  let div;
3806
3806
  let img;
3807
3807
  let img_src_value;
@@ -3883,7 +3883,7 @@ function create_fragment$a(ctx) {
3883
3883
  };
3884
3884
  }
3885
3885
 
3886
- function instance$a($$self, $$props, $$invalidate) {
3886
+ function instance$c($$self, $$props, $$invalidate) {
3887
3887
  let { src = 'https://admin.karte.io/action-editor2/public/images/no_image_en.svg' } = $$props;
3888
3888
  let { alt = 'No Image' } = $$props;
3889
3889
  let { transport = false } = $$props;
@@ -3921,8 +3921,8 @@ class ImageElement extends SvelteComponent {
3921
3921
  init(
3922
3922
  this,
3923
3923
  options,
3924
- instance$a,
3925
- create_fragment$a,
3924
+ instance$c,
3925
+ create_fragment$c,
3926
3926
  safe_not_equal,
3927
3927
  {
3928
3928
  src: 0,
@@ -3933,18 +3933,18 @@ class ImageElement extends SvelteComponent {
3933
3933
  _imageStyle: 3,
3934
3934
  _style: 4
3935
3935
  },
3936
- add_css$9
3936
+ add_css$b
3937
3937
  );
3938
3938
  }
3939
3939
  }
3940
3940
 
3941
3941
  /* src/components/List.svelte generated by Svelte v3.53.1 */
3942
3942
 
3943
- function add_css$8(target) {
3943
+ function add_css$a(target) {
3944
3944
  append_styles(target, "svelte-dfqtyx", ".list.svelte-dfqtyx{display:flex;width:100%;height:100%;overflow:hidden}");
3945
3945
  }
3946
3946
 
3947
- function create_fragment$9(ctx) {
3947
+ function create_fragment$b(ctx) {
3948
3948
  let div;
3949
3949
  let current;
3950
3950
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -4014,7 +4014,7 @@ function create_fragment$9(ctx) {
4014
4014
 
4015
4015
  const LIST_CONTEXT_KEY = Symbol();
4016
4016
 
4017
- function instance$9($$self, $$props, $$invalidate) {
4017
+ function instance$b($$self, $$props, $$invalidate) {
4018
4018
  let style;
4019
4019
  let { $$slots: slots = {}, $$scope } = $$props;
4020
4020
  let { direction = 'vertical' } = $$props;
@@ -4081,8 +4081,8 @@ class List extends SvelteComponent {
4081
4081
  init(
4082
4082
  this,
4083
4083
  options,
4084
- instance$9,
4085
- create_fragment$9,
4084
+ instance$b,
4085
+ create_fragment$b,
4086
4086
  safe_not_equal,
4087
4087
  {
4088
4088
  direction: 1,
@@ -4090,18 +4090,18 @@ class List extends SvelteComponent {
4090
4090
  background: 3,
4091
4091
  _style: 4
4092
4092
  },
4093
- add_css$8
4093
+ add_css$a
4094
4094
  );
4095
4095
  }
4096
4096
  }
4097
4097
 
4098
4098
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
4099
4099
 
4100
- function add_css$7(target) {
4100
+ function add_css$9(target) {
4101
4101
  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}");
4102
4102
  }
4103
4103
 
4104
- function create_fragment$8(ctx) {
4104
+ function create_fragment$a(ctx) {
4105
4105
  let div1;
4106
4106
  let div0;
4107
4107
  let current;
@@ -4195,7 +4195,7 @@ function create_fragment$8(ctx) {
4195
4195
  };
4196
4196
  }
4197
4197
 
4198
- function instance$8($$self, $$props, $$invalidate) {
4198
+ function instance$a($$self, $$props, $$invalidate) {
4199
4199
  let click;
4200
4200
  let listItemStyle;
4201
4201
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -4285,17 +4285,17 @@ function instance$8($$self, $$props, $$invalidate) {
4285
4285
  class ListItem extends SvelteComponent {
4286
4286
  constructor(options) {
4287
4287
  super();
4288
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$7);
4288
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { onClick: 3, clickEventName: 4, _style: 0 }, add_css$9);
4289
4289
  }
4290
4290
  }
4291
4291
 
4292
4292
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
4293
4293
 
4294
- function add_css$6(target) {
4294
+ function add_css$8(target) {
4295
4295
  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%}");
4296
4296
  }
4297
4297
 
4298
- function create_fragment$7(ctx) {
4298
+ function create_fragment$9(ctx) {
4299
4299
  let div;
4300
4300
 
4301
4301
  return {
@@ -4331,7 +4331,7 @@ function create_fragment$7(ctx) {
4331
4331
  };
4332
4332
  }
4333
4333
 
4334
- function instance$7($$self, $$props, $$invalidate) {
4334
+ function instance$9($$self, $$props, $$invalidate) {
4335
4335
  let { code } = $$props;
4336
4336
  let { _style = '' } = $$props;
4337
4337
 
@@ -4346,7 +4346,461 @@ function instance$7($$self, $$props, $$invalidate) {
4346
4346
  class EmbedElement extends SvelteComponent {
4347
4347
  constructor(options) {
4348
4348
  super();
4349
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { code: 0, _style: 1 }, add_css$6);
4349
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { code: 0, _style: 1 }, add_css$8);
4350
+ }
4351
+ }
4352
+
4353
+ /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
4354
+
4355
+ function add_css$7(target) {
4356
+ 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%}");
4357
+ }
4358
+
4359
+ function create_fragment$8(ctx) {
4360
+ let div1;
4361
+ let div0;
4362
+
4363
+ return {
4364
+ c() {
4365
+ div1 = element("div");
4366
+ div0 = element("div");
4367
+ this.h();
4368
+ },
4369
+ l(nodes) {
4370
+ div1 = claim_element(nodes, "DIV", { class: true, style: true });
4371
+ var div1_nodes = children(div1);
4372
+ div0 = claim_element(div1_nodes, "DIV", { class: true });
4373
+ children(div0).forEach(detach);
4374
+ div1_nodes.forEach(detach);
4375
+ this.h();
4376
+ },
4377
+ h() {
4378
+ attr(div0, "class", "karte-player");
4379
+ attr(div1, "class", "embed svelte-k86zna");
4380
+ attr(div1, "style", /*_style*/ ctx[0]);
4381
+ },
4382
+ m(target, anchor) {
4383
+ insert_hydration(target, div1, anchor);
4384
+ append_hydration(div1, div0);
4385
+ /*div0_binding*/ ctx[7](div0);
4386
+ },
4387
+ p(ctx, [dirty]) {
4388
+ if (dirty & /*_style*/ 1) {
4389
+ attr(div1, "style", /*_style*/ ctx[0]);
4390
+ }
4391
+ },
4392
+ i: noop,
4393
+ o: noop,
4394
+ d(detaching) {
4395
+ if (detaching) detach(div1);
4396
+ /*div0_binding*/ ctx[7](null);
4397
+ }
4398
+ };
4399
+ }
4400
+
4401
+ function instance$8($$self, $$props, $$invalidate) {
4402
+ let $system;
4403
+ component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4404
+ let { videoId } = $$props;
4405
+ let { sendEvent } = $$props;
4406
+ let { autoplay = false } = $$props;
4407
+ let { loop = false } = $$props;
4408
+ let { mute = false } = $$props;
4409
+ let { _style = "" } = $$props;
4410
+
4411
+ // @ts-ignore
4412
+ if (!window.YT) {
4413
+ const tag = document.createElement("script");
4414
+ tag.src = "//www.youtube.com/iframe_api";
4415
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4416
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4417
+ }
4418
+
4419
+ let startDate = 0;
4420
+ let totalPlaySeconds = 0;
4421
+ let alreadyPlay = false;
4422
+ let player = null;
4423
+ let domRef = null;
4424
+
4425
+ function sendMovieEvent(event_name, values = {}) {
4426
+ if (!sendEvent) {
4427
+ return;
4428
+ }
4429
+
4430
+ const sentValues = {
4431
+ campaign_id: $system.campaignId,
4432
+ shorten_id: $system.shortenId,
4433
+ ...values
4434
+ };
4435
+
4436
+ send_event(event_name, sentValues);
4437
+ }
4438
+
4439
+ function sendPlaytime() {
4440
+ if (!startDate) {
4441
+ return;
4442
+ }
4443
+
4444
+ const currentDate = Date.now();
4445
+ const playSeconds = Math.round((currentDate - startDate) / 1000);
4446
+ totalPlaySeconds += playSeconds;
4447
+
4448
+ sendMovieEvent("_movie_playtime", {
4449
+ seconds: playSeconds,
4450
+ total_seconds: totalPlaySeconds
4451
+ });
4452
+ }
4453
+
4454
+ // @ts-ignore
4455
+ function onPlayerReady(event) {
4456
+ if (mute) {
4457
+ player.mute();
4458
+ }
4459
+ }
4460
+
4461
+ function onStart() {
4462
+ startDate = Date.now();
4463
+
4464
+ if (!alreadyPlay) {
4465
+ alreadyPlay = true;
4466
+ sendMovieEvent("_movie_play");
4467
+ }
4468
+ }
4469
+
4470
+ function onPause() {
4471
+ sendPlaytime();
4472
+ startDate = null;
4473
+ }
4474
+
4475
+ function onFinish() {
4476
+ sendMovieEvent("_movie_finish");
4477
+ sendPlaytime();
4478
+ startDate = null;
4479
+ }
4480
+
4481
+ function onPlayerStateChange(event) {
4482
+ switch (event.data) {
4483
+ case 1:
4484
+ // 再生中
4485
+ onStart();
4486
+ break;
4487
+ case 2:
4488
+ // 停止
4489
+ onPause();
4490
+ break;
4491
+ case 0:
4492
+ // 終了
4493
+ onFinish();
4494
+ break;
4495
+ }
4496
+ }
4497
+
4498
+ function createPlayer() {
4499
+ if (!domRef) {
4500
+ return;
4501
+ }
4502
+
4503
+ const playerVars = {
4504
+ autoplay: autoplay ? 1 : 0,
4505
+ loop: loop ? 1 : 0,
4506
+ rel: 0,
4507
+ playlist: null
4508
+ };
4509
+
4510
+ if (loop) {
4511
+ playerVars.playlist = videoId;
4512
+ }
4513
+
4514
+ // @ts-ignore
4515
+ player = new window.YT.Player(domRef,
4516
+ {
4517
+ videoId,
4518
+ playerVars,
4519
+ events: {
4520
+ onReady: onPlayerReady,
4521
+ onStateChange: onPlayerStateChange
4522
+ }
4523
+ });
4524
+ }
4525
+
4526
+ onDestroy$1(() => {
4527
+ if (player) {
4528
+ player.stopVideo();
4529
+ }
4530
+
4531
+ player.destroy();
4532
+ });
4533
+
4534
+ onMount(() => {
4535
+ setTimeout(
4536
+ () => {
4537
+ // @ts-ignore
4538
+ if (window.YT) {
4539
+ createPlayer();
4540
+ }
4541
+ },
4542
+ 200
4543
+ );
4544
+ });
4545
+
4546
+ // @ts-ignore
4547
+ window.onYouTubeIframeAPIReady = () => {
4548
+ createPlayer();
4549
+ };
4550
+
4551
+ window.addEventListener("beforeunload", () => {
4552
+ sendPlaytime();
4553
+ });
4554
+
4555
+ function div0_binding($$value) {
4556
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4557
+ domRef = $$value;
4558
+ $$invalidate(1, domRef);
4559
+ });
4560
+ }
4561
+
4562
+ $$self.$$set = $$props => {
4563
+ if ('videoId' in $$props) $$invalidate(2, videoId = $$props.videoId);
4564
+ if ('sendEvent' in $$props) $$invalidate(3, sendEvent = $$props.sendEvent);
4565
+ if ('autoplay' in $$props) $$invalidate(4, autoplay = $$props.autoplay);
4566
+ if ('loop' in $$props) $$invalidate(5, loop = $$props.loop);
4567
+ if ('mute' in $$props) $$invalidate(6, mute = $$props.mute);
4568
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
4569
+ };
4570
+
4571
+ return [_style, domRef, videoId, sendEvent, autoplay, loop, mute, div0_binding];
4572
+ }
4573
+
4574
+ class MovieYouTubeElement extends SvelteComponent {
4575
+ constructor(options) {
4576
+ super();
4577
+
4578
+ init(
4579
+ this,
4580
+ options,
4581
+ instance$8,
4582
+ create_fragment$8,
4583
+ safe_not_equal,
4584
+ {
4585
+ videoId: 2,
4586
+ sendEvent: 3,
4587
+ autoplay: 4,
4588
+ loop: 5,
4589
+ mute: 6,
4590
+ _style: 0
4591
+ },
4592
+ add_css$7
4593
+ );
4594
+ }
4595
+ }
4596
+
4597
+ /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
4598
+
4599
+ function add_css$6(target) {
4600
+ 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%}");
4601
+ }
4602
+
4603
+ function create_fragment$7(ctx) {
4604
+ let div1;
4605
+ let div0;
4606
+
4607
+ return {
4608
+ c() {
4609
+ div1 = element("div");
4610
+ div0 = element("div");
4611
+ this.h();
4612
+ },
4613
+ l(nodes) {
4614
+ div1 = claim_element(nodes, "DIV", { class: true, style: true });
4615
+ var div1_nodes = children(div1);
4616
+ div0 = claim_element(div1_nodes, "DIV", { class: true });
4617
+ children(div0).forEach(detach);
4618
+ div1_nodes.forEach(detach);
4619
+ this.h();
4620
+ },
4621
+ h() {
4622
+ attr(div0, "class", "karte-player");
4623
+ attr(div1, "class", "embed svelte-k86zna");
4624
+ attr(div1, "style", /*_style*/ ctx[0]);
4625
+ },
4626
+ m(target, anchor) {
4627
+ insert_hydration(target, div1, anchor);
4628
+ append_hydration(div1, div0);
4629
+ /*div0_binding*/ ctx[7](div0);
4630
+ },
4631
+ p(ctx, [dirty]) {
4632
+ if (dirty & /*_style*/ 1) {
4633
+ attr(div1, "style", /*_style*/ ctx[0]);
4634
+ }
4635
+ },
4636
+ i: noop,
4637
+ o: noop,
4638
+ d(detaching) {
4639
+ if (detaching) detach(div1);
4640
+ /*div0_binding*/ ctx[7](null);
4641
+ }
4642
+ };
4643
+ }
4644
+
4645
+ function instance$7($$self, $$props, $$invalidate) {
4646
+ let $system;
4647
+ component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4648
+ let { videoId } = $$props;
4649
+ let { sendEvent } = $$props;
4650
+ let { autoplay = false } = $$props;
4651
+ let { loop = false } = $$props;
4652
+ let { mute = false } = $$props;
4653
+ let { _style = "" } = $$props;
4654
+
4655
+ // @ts-ignore
4656
+ if (!window.Vimeo) {
4657
+ const tag = document.createElement("script");
4658
+ tag.src = "//player.vimeo.com/api/player.js";
4659
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4660
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4661
+ }
4662
+
4663
+ let startDate = 0;
4664
+ let totalPlaySeconds = 0;
4665
+ let alreadyPlay = false;
4666
+ let player = null;
4667
+ let domRef = null;
4668
+
4669
+ function sendMovieEvent(event_name, values = {}) {
4670
+ if (!sendEvent) {
4671
+ return;
4672
+ }
4673
+
4674
+ const sentValues = {
4675
+ campaign_id: $system.campaignId,
4676
+ shorten_id: $system.shortenId,
4677
+ ...values
4678
+ };
4679
+
4680
+ send_event(event_name, sentValues);
4681
+ }
4682
+
4683
+ function sendPlaytime() {
4684
+ if (!startDate) {
4685
+ return;
4686
+ }
4687
+
4688
+ const currentDate = Date.now();
4689
+ const playSeconds = Math.round((currentDate - startDate) / 1000);
4690
+ totalPlaySeconds += playSeconds;
4691
+
4692
+ sendMovieEvent("_movie_playtime", {
4693
+ seconds: playSeconds,
4694
+ total_seconds: totalPlaySeconds
4695
+ });
4696
+ }
4697
+
4698
+ function onPlayerReady() {
4699
+ if (mute) {
4700
+ player.setMuted(true);
4701
+ }
4702
+ }
4703
+
4704
+ function onStart() {
4705
+ startDate = Date.now();
4706
+
4707
+ if (!alreadyPlay) {
4708
+ alreadyPlay = true;
4709
+ sendMovieEvent("_movie_play");
4710
+ }
4711
+ }
4712
+
4713
+ function onPause() {
4714
+ sendPlaytime();
4715
+ startDate = null;
4716
+ }
4717
+
4718
+ function onFinish() {
4719
+ sendMovieEvent("_movie_finish");
4720
+ sendPlaytime();
4721
+ startDate = null;
4722
+ }
4723
+
4724
+ function createPlayer() {
4725
+ if (!domRef) {
4726
+ return;
4727
+ }
4728
+
4729
+ const playerOptions = { id: videoId, autoplay, loop };
4730
+ console.log("createPlayer1");
4731
+
4732
+ // @ts-ignore
4733
+ player = new window.Vimeo.Player(domRef, playerOptions);
4734
+
4735
+ console.log("createPlayer2");
4736
+ player.on("play", onStart);
4737
+ player.on("pause", onPause);
4738
+ player.on("ended", onFinish);
4739
+ onPlayerReady();
4740
+ }
4741
+
4742
+ onDestroy$1(() => {
4743
+ player.destroy();
4744
+ });
4745
+
4746
+ onMount(() => {
4747
+ console.log("onMount1");
4748
+
4749
+ setTimeout(
4750
+ () => {
4751
+ // @ts-ignore
4752
+ if (window.Vimeo) {
4753
+ console.log("onMount2");
4754
+ createPlayer();
4755
+ }
4756
+ },
4757
+ 1000
4758
+ );
4759
+ });
4760
+
4761
+ window.addEventListener("beforeunload", () => {
4762
+ sendPlaytime();
4763
+ });
4764
+
4765
+ function div0_binding($$value) {
4766
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4767
+ domRef = $$value;
4768
+ $$invalidate(1, domRef);
4769
+ });
4770
+ }
4771
+
4772
+ $$self.$$set = $$props => {
4773
+ if ('videoId' in $$props) $$invalidate(2, videoId = $$props.videoId);
4774
+ if ('sendEvent' in $$props) $$invalidate(3, sendEvent = $$props.sendEvent);
4775
+ if ('autoplay' in $$props) $$invalidate(4, autoplay = $$props.autoplay);
4776
+ if ('loop' in $$props) $$invalidate(5, loop = $$props.loop);
4777
+ if ('mute' in $$props) $$invalidate(6, mute = $$props.mute);
4778
+ if ('_style' in $$props) $$invalidate(0, _style = $$props._style);
4779
+ };
4780
+
4781
+ return [_style, domRef, videoId, sendEvent, autoplay, loop, mute, div0_binding];
4782
+ }
4783
+
4784
+ class MovieVimeoElement extends SvelteComponent {
4785
+ constructor(options) {
4786
+ super();
4787
+
4788
+ init(
4789
+ this,
4790
+ options,
4791
+ instance$7,
4792
+ create_fragment$7,
4793
+ safe_not_equal,
4794
+ {
4795
+ videoId: 2,
4796
+ sendEvent: 3,
4797
+ autoplay: 4,
4798
+ loop: 5,
4799
+ mute: 6,
4800
+ _style: 0
4801
+ },
4802
+ add_css$6
4803
+ );
4350
4804
  }
4351
4805
  }
4352
4806
 
@@ -5363,4 +5817,4 @@ class ImageBlock extends SvelteComponent {
5363
5817
  }
5364
5818
  }
5365
5819
 
5366
- 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 };
5820
+ 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 };