@plaidev/karte-action-sdk 1.1.240 → 1.1.241

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -1817,6 +1817,8 @@ function createModal(App, options = {
1817
1817
  context: { api_key: '', collection_endpoint: undefined },
1818
1818
  }) {
1819
1819
  let app = null;
1820
+ let hasAlreadySentMessageOpenEvent = false;
1821
+ let hasAlreadySentMessageCloseEvent = false;
1820
1822
  const data = getVariables();
1821
1823
  const actionProps = {
1822
1824
  send: options.send,
@@ -1827,8 +1829,9 @@ function createModal(App, options = {
1827
1829
  if (!app) {
1828
1830
  return NOOP;
1829
1831
  }
1830
- if (trigger !== 'auto') {
1832
+ if (trigger !== 'auto' && !hasAlreadySentMessageCloseEvent) {
1831
1833
  options.send('message_close', { trigger, state: getState$1() });
1834
+ hasAlreadySentMessageCloseEvent = true;
1832
1835
  }
1833
1836
  options.send('_message_state_changed', {
1834
1837
  trigger,
@@ -1867,8 +1870,9 @@ function createModal(App, options = {
1867
1870
  if (!result.success)
1868
1871
  return;
1869
1872
  }
1870
- if (trigger !== 'auto') {
1873
+ if (!hasAlreadySentMessageOpenEvent) {
1871
1874
  options.send('message_open', { state: getState$1() });
1875
+ hasAlreadySentMessageOpenEvent = true;
1872
1876
  }
1873
1877
  options.send('_message_state_changed', {
1874
1878
  trigger,
@@ -2894,7 +2898,7 @@ const LAYOUT_COMPONENT_NAMES = [
2894
2898
 
2895
2899
  /* src/components/Header.svelte generated by Svelte v3.53.1 */
2896
2900
 
2897
- function create_if_block$e(ctx) {
2901
+ function create_if_block$f(ctx) {
2898
2902
  let link;
2899
2903
 
2900
2904
  return {
@@ -2920,7 +2924,7 @@ function create_if_block$e(ctx) {
2920
2924
 
2921
2925
  function create_fragment$1a(ctx) {
2922
2926
  let head;
2923
- let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$e(ctx);
2927
+ let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$f(ctx);
2924
2928
 
2925
2929
  return {
2926
2930
  c() {
@@ -2936,7 +2940,7 @@ function create_fragment$1a(ctx) {
2936
2940
  if (if_block) {
2937
2941
  if_block.p(ctx, dirty);
2938
2942
  } else {
2939
- if_block = create_if_block$e(ctx);
2943
+ if_block = create_if_block$f(ctx);
2940
2944
  if_block.c();
2941
2945
  if_block.m(head, null);
2942
2946
  }
@@ -3072,7 +3076,7 @@ function add_css$F(target) {
3072
3076
  }
3073
3077
 
3074
3078
  // (23:0) {#if $state === path}
3075
- function create_if_block$d(ctx) {
3079
+ function create_if_block$e(ctx) {
3076
3080
  let div;
3077
3081
  let t;
3078
3082
  let current;
@@ -3137,7 +3141,7 @@ function create_if_block$d(ctx) {
3137
3141
  function create_fragment$18(ctx) {
3138
3142
  let if_block_anchor;
3139
3143
  let current;
3140
- let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$d(ctx);
3144
+ let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$e(ctx);
3141
3145
 
3142
3146
  return {
3143
3147
  c() {
@@ -3158,7 +3162,7 @@ function create_fragment$18(ctx) {
3158
3162
  transition_in(if_block, 1);
3159
3163
  }
3160
3164
  } else {
3161
- if_block = create_if_block$d(ctx);
3165
+ if_block = create_if_block$e(ctx);
3162
3166
  if_block.c();
3163
3167
  transition_in(if_block, 1);
3164
3168
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -3411,7 +3415,7 @@ function add_css$E(target) {
3411
3415
  }
3412
3416
 
3413
3417
  // (14:0) {#if backgroundOverlay}
3414
- function create_if_block$c(ctx) {
3418
+ function create_if_block$d(ctx) {
3415
3419
  let div;
3416
3420
  let div_class_value;
3417
3421
  let mounted;
@@ -3445,7 +3449,7 @@ function create_if_block$c(ctx) {
3445
3449
 
3446
3450
  function create_fragment$17(ctx) {
3447
3451
  let if_block_anchor;
3448
- let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$c(ctx);
3452
+ let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$d(ctx);
3449
3453
 
3450
3454
  return {
3451
3455
  c() {
@@ -3461,7 +3465,7 @@ function create_fragment$17(ctx) {
3461
3465
  if (if_block) {
3462
3466
  if_block.p(ctx, dirty);
3463
3467
  } else {
3464
- if_block = create_if_block$c(ctx);
3468
+ if_block = create_if_block$d(ctx);
3465
3469
  if_block.c();
3466
3470
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3467
3471
  }
@@ -3783,7 +3787,7 @@ function create_if_block_1$3(ctx) {
3783
3787
  }
3784
3788
 
3785
3789
  // (31:0) {#if disabled}
3786
- function create_if_block$b(ctx) {
3790
+ function create_if_block$c(ctx) {
3787
3791
  let div;
3788
3792
  let current;
3789
3793
  const default_slot_template = /*#slots*/ ctx[9].default;
@@ -3846,7 +3850,7 @@ function create_fragment$16(ctx) {
3846
3850
  let if_block;
3847
3851
  let if_block_anchor;
3848
3852
  let current;
3849
- const if_block_creators = [create_if_block$b, create_if_block_1$3, create_if_block_2$2, create_else_block$5];
3853
+ const if_block_creators = [create_if_block$c, create_if_block_1$3, create_if_block_2$2, create_else_block$5];
3850
3854
  const if_blocks = [];
3851
3855
 
3852
3856
  function select_block_type(ctx, dirty) {
@@ -4045,7 +4049,7 @@ function create_else_block$4(ctx) {
4045
4049
  }
4046
4050
 
4047
4051
  // (266:24)
4048
- function create_if_block_3$1(ctx) {
4052
+ function create_if_block_3(ctx) {
4049
4053
  let backgroundoverlay0;
4050
4054
  let t;
4051
4055
  let backgroundoverlay1;
@@ -4126,7 +4130,7 @@ function create_if_block_2$1(ctx) {
4126
4130
  }
4127
4131
 
4128
4132
  // (280:0) {#if visible}
4129
- function create_if_block$a(ctx) {
4133
+ function create_if_block$b(ctx) {
4130
4134
  let div;
4131
4135
  let button;
4132
4136
  let div_class_value;
@@ -4400,7 +4404,7 @@ function create_fragment$15(ctx) {
4400
4404
  let current;
4401
4405
  let mounted;
4402
4406
  let dispose;
4403
- const if_block_creators = [create_if_block_2$1, create_if_block_3$1, create_else_block$4];
4407
+ const if_block_creators = [create_if_block_2$1, create_if_block_3, create_else_block$4];
4404
4408
  const if_blocks = [];
4405
4409
 
4406
4410
  function select_block_type(ctx, dirty) {
@@ -4412,7 +4416,7 @@ function create_fragment$15(ctx) {
4412
4416
 
4413
4417
  current_block_type_index = select_block_type(ctx);
4414
4418
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
4415
- let if_block1 = /*visible*/ ctx[16] && create_if_block$a(ctx);
4419
+ let if_block1 = /*visible*/ ctx[16] && create_if_block$b(ctx);
4416
4420
 
4417
4421
  return {
4418
4422
  c() {
@@ -4472,7 +4476,7 @@ function create_fragment$15(ctx) {
4472
4476
  transition_in(if_block1, 1);
4473
4477
  }
4474
4478
  } else {
4475
- if_block1 = create_if_block$a(ctx);
4479
+ if_block1 = create_if_block$b(ctx);
4476
4480
  if_block1.c();
4477
4481
  transition_in(if_block1, 1);
4478
4482
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -5137,7 +5141,7 @@ function create_else_block$3(ctx) {
5137
5141
  }
5138
5142
 
5139
5143
  // (11:2) {#if item.match(regexp)}
5140
- function create_if_block$9(ctx) {
5144
+ function create_if_block$a(ctx) {
5141
5145
  let br;
5142
5146
 
5143
5147
  return {
@@ -5162,7 +5166,7 @@ function create_each_block$6(ctx) {
5162
5166
  function select_block_type(ctx, dirty) {
5163
5167
  if (dirty & /*items*/ 1) show_if = null;
5164
5168
  if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
5165
- if (show_if) return create_if_block$9;
5169
+ if (show_if) return create_if_block$a;
5166
5170
  return create_else_block$3;
5167
5171
  }
5168
5172
 
@@ -5342,7 +5346,7 @@ function create_else_block$2(ctx) {
5342
5346
  }
5343
5347
 
5344
5348
  // (80:2) {#if enableCopy}
5345
- function create_if_block$8(ctx) {
5349
+ function create_if_block$9(ctx) {
5346
5350
  let a;
5347
5351
  let div0;
5348
5352
  let rendertext;
@@ -5433,7 +5437,7 @@ function create_fragment$11(ctx) {
5433
5437
  let current_block_type_index;
5434
5438
  let if_block;
5435
5439
  let current;
5436
- const if_block_creators = [create_if_block$8, create_else_block$2];
5440
+ const if_block_creators = [create_if_block$9, create_else_block$2];
5437
5441
  const if_blocks = [];
5438
5442
 
5439
5443
  function select_block_type(ctx, dirty) {
@@ -7348,7 +7352,7 @@ function create_else_block$1(ctx) {
7348
7352
  }
7349
7353
 
7350
7354
  // (105:10) {#if option}
7351
- function create_if_block$7(ctx) {
7355
+ function create_if_block$8(ctx) {
7352
7356
  let t_value = /*option*/ ctx[19] + "";
7353
7357
  let t;
7354
7358
 
@@ -7376,7 +7380,7 @@ function create_each_block$4(ctx) {
7376
7380
  let option_selected_value;
7377
7381
 
7378
7382
  function select_block_type(ctx, dirty) {
7379
- if (/*option*/ ctx[19]) return create_if_block$7;
7383
+ if (/*option*/ ctx[19]) return create_if_block$8;
7380
7384
  return create_else_block$1;
7381
7385
  }
7382
7386
 
@@ -8856,7 +8860,7 @@ function create_if_block_1$1(ctx) {
8856
8860
  }
8857
8861
 
8858
8862
  // (380:2) {#if isVisibleNextButton}
8859
- function create_if_block$6(ctx) {
8863
+ function create_if_block$7(ctx) {
8860
8864
  let div;
8861
8865
  let button;
8862
8866
  let svg;
@@ -8971,7 +8975,7 @@ function create_fragment$N(ctx) {
8971
8975
  const default_slot_template = /*#slots*/ ctx[32].default;
8972
8976
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[31], null);
8973
8977
  let if_block0 = /*isVisiblePrevButton*/ ctx[12] && create_if_block_1$1(ctx);
8974
- let if_block1 = /*isVisibleNextButton*/ ctx[11] && create_if_block$6(ctx);
8978
+ let if_block1 = /*isVisibleNextButton*/ ctx[11] && create_if_block$7(ctx);
8975
8979
  let each_value = /*items*/ ctx[1];
8976
8980
  let each_blocks = [];
8977
8981
 
@@ -9081,7 +9085,7 @@ function create_fragment$N(ctx) {
9081
9085
  if (if_block1) {
9082
9086
  if_block1.p(ctx, dirty);
9083
9087
  } else {
9084
- if_block1 = create_if_block$6(ctx);
9088
+ if_block1 = create_if_block$7(ctx);
9085
9089
  if_block1.c();
9086
9090
  if_block1.m(div3, t2);
9087
9091
  }
@@ -10062,7 +10066,7 @@ function add_css$g(target) {
10062
10066
  }
10063
10067
 
10064
10068
  // (56:4) {#if svg}
10065
- function create_if_block$5(ctx) {
10069
+ function create_if_block$6(ctx) {
10066
10070
  let html_tag;
10067
10071
  let html_anchor;
10068
10072
 
@@ -10089,7 +10093,7 @@ function create_if_block$5(ctx) {
10089
10093
  // (55:2) <Button {onClick} {style} {eventName}>
10090
10094
  function create_default_slot$1(ctx) {
10091
10095
  let if_block_anchor;
10092
- let if_block = /*svg*/ ctx[3] && create_if_block$5(ctx);
10096
+ let if_block = /*svg*/ ctx[3] && create_if_block$6(ctx);
10093
10097
 
10094
10098
  return {
10095
10099
  c() {
@@ -10105,7 +10109,7 @@ function create_default_slot$1(ctx) {
10105
10109
  if (if_block) {
10106
10110
  if_block.p(ctx, dirty);
10107
10111
  } else {
10108
- if_block = create_if_block$5(ctx);
10112
+ if_block = create_if_block$6(ctx);
10109
10113
  if_block.c();
10110
10114
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
10111
10115
  }
@@ -12981,7 +12985,7 @@ function add_css$8(target) {
12981
12985
  }
12982
12986
 
12983
12987
  // (20:0) {#if (IconComponent)}
12984
- function create_if_block$4(ctx) {
12988
+ function create_if_block$5(ctx) {
12985
12989
  let div;
12986
12990
  let switch_instance;
12987
12991
  let current;
@@ -13065,7 +13069,7 @@ function create_if_block$4(ctx) {
13065
13069
  function create_fragment$8(ctx) {
13066
13070
  let if_block_anchor;
13067
13071
  let current;
13068
- let if_block = /*IconComponent*/ ctx[2] && create_if_block$4(ctx);
13072
+ let if_block = /*IconComponent*/ ctx[2] && create_if_block$5(ctx);
13069
13073
 
13070
13074
  return {
13071
13075
  c() {
@@ -13086,7 +13090,7 @@ function create_fragment$8(ctx) {
13086
13090
  transition_in(if_block, 1);
13087
13091
  }
13088
13092
  } else {
13089
- if_block = create_if_block$4(ctx);
13093
+ if_block = create_if_block$5(ctx);
13090
13094
  if_block.c();
13091
13095
  transition_in(if_block, 1);
13092
13096
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -13258,7 +13262,7 @@ function add_css$7(target) {
13258
13262
  }
13259
13263
 
13260
13264
  // (47:2) {#if (props.isIcon && props.iconVariant)}
13261
- function create_if_block$3(ctx) {
13265
+ function create_if_block$4(ctx) {
13262
13266
  let div;
13263
13267
  let icon;
13264
13268
  let current;
@@ -13318,7 +13322,7 @@ function create_fragment$7(ctx) {
13318
13322
  let current;
13319
13323
  let mounted;
13320
13324
  let dispose;
13321
- let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$3(ctx);
13325
+ let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$4(ctx);
13322
13326
 
13323
13327
  return {
13324
13328
  c() {
@@ -13353,7 +13357,7 @@ function create_fragment$7(ctx) {
13353
13357
  transition_in(if_block, 1);
13354
13358
  }
13355
13359
  } else {
13356
- if_block = create_if_block$3(ctx);
13360
+ if_block = create_if_block$4(ctx);
13357
13361
  if_block.c();
13358
13362
  transition_in(if_block, 1);
13359
13363
  if_block.m(button, t0);
@@ -13510,7 +13514,7 @@ function add_css$6(target) {
13510
13514
  }
13511
13515
 
13512
13516
  // (103:4) {#if props.isIcon && props.iconVariant}
13513
- function create_if_block$2(ctx) {
13517
+ function create_if_block$3(ctx) {
13514
13518
  let div;
13515
13519
  let icon;
13516
13520
  let current;
@@ -13570,7 +13574,7 @@ function create_fragment$6(ctx) {
13570
13574
  let current;
13571
13575
  let mounted;
13572
13576
  let dispose;
13573
- let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$2(ctx);
13577
+ let if_block = /*props*/ ctx[0].isIcon && /*props*/ ctx[0].iconVariant && create_if_block$3(ctx);
13574
13578
 
13575
13579
  return {
13576
13580
  c() {
@@ -13605,7 +13609,7 @@ function create_fragment$6(ctx) {
13605
13609
  transition_in(if_block, 1);
13606
13610
  }
13607
13611
  } else {
13608
- if_block = create_if_block$2(ctx);
13612
+ if_block = create_if_block$3(ctx);
13609
13613
  if_block.c();
13610
13614
  transition_in(if_block, 1);
13611
13615
  if_block.m(button, t0);
@@ -13799,22 +13803,76 @@ const TEXT_BUTTON_ICON_ANGLE = {
13799
13803
  'row-reverse': '右側',
13800
13804
  };
13801
13805
 
13806
+ const CLOSE_BUTTON_PLACEMENT = {
13807
+ topRight: 'topRight',
13808
+ topLeft: 'topLeft',
13809
+ bottomRight: 'bottomRight',
13810
+ bottomLeft: 'bottomLeft',
13811
+ };
13812
+ const CLOSE_BUTTON_ROUND = {
13813
+ default: 'デフォルト',
13814
+ none: 'なし',
13815
+ fulled: '円形',
13816
+ };
13817
+ const CLOSE_BUTTON_LABEL_PLACEMENT = {
13818
+ right: 'right',
13819
+ left: 'left',
13820
+ };
13821
+
13802
13822
  /* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
13803
13823
 
13804
13824
  function add_css$5(target) {
13805
- append_styles(target, "svelte-103rmqy", ".close-button.svelte-103rmqy{display:inline-flex;align-items:center;justify-content:center;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s}");
13825
+ append_styles(target, "svelte-3fbvvp", ".close.svelte-3fbvvp{position:absolute;top:8px;right:8px}.close-button-row.svelte-3fbvvp{display:flex;flex-direction:row;align-items:center;gap:4px}.close-button.svelte-3fbvvp{display:inline-flex;align-items:center;justify-content:center;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3fbvvp:hover{transform:rotate(90deg)}.close-button-order-one.svelte-3fbvvp{order:1}.close-button-order-two.svelte-3fbvvp{order:2}.close-button-label.svelte-3fbvvp{color:var(--close-button-label-color, '#ccc')}");
13826
+ }
13827
+
13828
+ // (99:4) {#if hasLabel}
13829
+ function create_if_block$2(ctx) {
13830
+ let span;
13831
+ let t;
13832
+
13833
+ return {
13834
+ c() {
13835
+ span = element("span");
13836
+ t = text(/*label*/ ctx[7]);
13837
+ attr(span, "style", /*labelCssVariable*/ ctx[2]);
13838
+
13839
+ attr(span, "class", "close-button-label " + (/*isLeftLabelPlacement*/ ctx[8]
13840
+ ? 'close-button-order-one'
13841
+ : '') + " svelte-3fbvvp");
13842
+ },
13843
+ m(target, anchor) {
13844
+ insert(target, span, anchor);
13845
+ append(span, t);
13846
+ },
13847
+ p(ctx, dirty) {
13848
+ if (dirty & /*labelCssVariable*/ 4) {
13849
+ attr(span, "style", /*labelCssVariable*/ ctx[2]);
13850
+ }
13851
+ },
13852
+ d(detaching) {
13853
+ if (detaching) detach(span);
13854
+ }
13855
+ };
13806
13856
  }
13807
13857
 
13808
13858
  function create_fragment$5(ctx) {
13859
+ let div1;
13860
+ let div0;
13809
13861
  let button;
13810
13862
  let svg;
13811
13863
  let path;
13864
+ let button_class_value;
13865
+ let t;
13812
13866
  let mounted;
13813
13867
  let dispose;
13814
13868
 
13815
13869
  let button_levels = [
13816
13870
  { "data-layer-id": /*layerId*/ ctx[0] },
13817
- { class: "close-button" },
13871
+ {
13872
+ class: button_class_value = "close-button " + (/*isLeftLabelPlacement*/ ctx[8]
13873
+ ? 'close-button-order-two'
13874
+ : '')
13875
+ },
13818
13876
  { style: /*style*/ ctx[1] },
13819
13877
  dataAttrStopPropagation('click')
13820
13878
  ];
@@ -13825,45 +13883,76 @@ function create_fragment$5(ctx) {
13825
13883
  button_data = assign(button_data, button_levels[i]);
13826
13884
  }
13827
13885
 
13886
+ let if_block = /*hasLabel*/ ctx[4] && create_if_block$2(ctx);
13887
+
13828
13888
  return {
13829
13889
  c() {
13890
+ div1 = element("div");
13891
+ div0 = element("div");
13830
13892
  button = element("button");
13831
13893
  svg = svg_element("svg");
13832
13894
  path = svg_element("path");
13895
+ t = space();
13896
+ if (if_block) if_block.c();
13833
13897
  attr(path, "d", "M 9.15625 6.3125 L 6.3125 9.15625 L 22.15625 25 L 6.21875 40.96875 L 9.03125 43.78125 L 25 27.84375 L 40.9375 43.78125 L 43.78125 40.9375 L 27.84375 25 L 43.6875 9.15625 L 40.84375 6.3125 L 25 22.15625 Z");
13834
13898
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
13835
13899
  set_style(svg, "width", "75%");
13836
13900
  set_style(svg, "height", "75%");
13837
13901
  attr(svg, "viewBox", "0 0 50 50");
13838
- attr(svg, "fill", "#666666");
13902
+ attr(svg, "fill", /*color*/ ctx[6]);
13839
13903
  set_attributes(button, button_data);
13840
- toggle_class(button, "svelte-103rmqy", true);
13904
+ toggle_class(button, "svelte-3fbvvp", true);
13905
+ attr(div0, "class", "close-button-row svelte-3fbvvp");
13906
+ attr(div1, "class", "close svelte-3fbvvp");
13907
+ attr(div1, "style", /*rootStyle*/ ctx[3]);
13841
13908
  },
13842
13909
  m(target, anchor) {
13843
- insert(target, button, anchor);
13910
+ insert(target, div1, anchor);
13911
+ append(div1, div0);
13912
+ append(div0, button);
13844
13913
  append(button, svg);
13845
13914
  append(svg, path);
13846
13915
  if (button.autofocus) button.focus();
13916
+ append(div0, t);
13917
+ if (if_block) if_block.m(div0, null);
13847
13918
 
13848
13919
  if (!mounted) {
13849
- dispose = listen(button, "click", prevent_default(checkStopPropagation('click', /*handleClick*/ ctx[2])));
13920
+ dispose = listen(button, "click", prevent_default(checkStopPropagation('click', /*handleClick*/ ctx[5])));
13850
13921
  mounted = true;
13851
13922
  }
13852
13923
  },
13853
13924
  p(ctx, [dirty]) {
13854
13925
  set_attributes(button, button_data = get_spread_update(button_levels, [
13855
13926
  dirty & /*layerId*/ 1 && { "data-layer-id": /*layerId*/ ctx[0] },
13856
- { class: "close-button" },
13927
+ { class: button_class_value },
13857
13928
  dirty & /*style*/ 2 && { style: /*style*/ ctx[1] },
13858
13929
  dataAttrStopPropagation('click')
13859
13930
  ]));
13860
13931
 
13861
- toggle_class(button, "svelte-103rmqy", true);
13932
+ toggle_class(button, "svelte-3fbvvp", true);
13933
+
13934
+ if (/*hasLabel*/ ctx[4]) {
13935
+ if (if_block) {
13936
+ if_block.p(ctx, dirty);
13937
+ } else {
13938
+ if_block = create_if_block$2(ctx);
13939
+ if_block.c();
13940
+ if_block.m(div0, null);
13941
+ }
13942
+ } else if (if_block) {
13943
+ if_block.d(1);
13944
+ if_block = null;
13945
+ }
13946
+
13947
+ if (dirty & /*rootStyle*/ 8) {
13948
+ attr(div1, "style", /*rootStyle*/ ctx[3]);
13949
+ }
13862
13950
  },
13863
13951
  i: noop,
13864
13952
  o: noop,
13865
13953
  d(detaching) {
13866
- if (detaching) detach(button);
13954
+ if (detaching) detach(div1);
13955
+ if (if_block) if_block.d();
13867
13956
  mounted = false;
13868
13957
  dispose();
13869
13958
  }
@@ -13871,14 +13960,34 @@ function create_fragment$5(ctx) {
13871
13960
  }
13872
13961
 
13873
13962
  function instance$5($$self, $$props, $$invalidate) {
13963
+ let hasLabel;
13964
+ let rootStyle;
13965
+ let labelCssVariable;
13874
13966
  let style;
13875
- let { onClick = { operation: 'closeApp', args: ['button'] } } = $$props;
13967
+ let $maximumZindex;
13968
+ component_subscribe($$self, maximumZindex, $$value => $$invalidate(12, $maximumZindex = $$value));
13876
13969
  let { props = {} } = $$props;
13877
13970
  let { layerId = '' } = $$props;
13878
13971
  let { eventName = '' } = $$props;
13879
13972
  let { eventValue = undefined } = $$props;
13880
13973
 
13974
+ const VARIANTS = {
13975
+ placement: {
13976
+ topRight: { top: '8px', right: '8px' },
13977
+ topLeft: { top: '8px', left: '8px' },
13978
+ bottomRight: { bottom: '8px', right: '8px' },
13979
+ bottomLeft: { bottom: '8px', left: '8px' }
13980
+ },
13981
+ round: {
13982
+ none: { borderRadius: 0 },
13983
+ default: {},
13984
+ fulled: { borderRadius: '56px' }
13985
+ }
13986
+ };
13987
+
13881
13988
  function handleClick() {
13989
+ const onClick = { operation: 'closeApp', args: ['button'] };
13990
+
13882
13991
  if (eventName) {
13883
13992
  send_event(eventName, eventValue);
13884
13993
  }
@@ -13887,27 +13996,64 @@ function instance$5($$self, $$props, $$invalidate) {
13887
13996
  }
13888
13997
 
13889
13998
  const size = props.size ?? 24;
13999
+ const color = props.color ?? '#666';
14000
+ const label = props.label;
14001
+ const isLeftLabelPlacement = props.labelPlacement === 'left';
14002
+
14003
+ const getCssPlacement = () => {
14004
+ return {
14005
+ top: props.top ?? VARIANTS.placement[props.placement ?? 'topRight'].top,
14006
+ right: props.right ?? VARIANTS.placement[props.placement ?? 'topRight'].right,
14007
+ left: props.left ?? VARIANTS.placement[props.placement ?? 'topRight'].left,
14008
+ bottom: props.bottom ?? VARIANTS.placement[props.placement ?? 'topRight'].bottom
14009
+ };
14010
+ };
13890
14011
 
13891
14012
  $$self.$$set = $$props => {
13892
- if ('onClick' in $$props) $$invalidate(3, onClick = $$props.onClick);
13893
- if ('props' in $$props) $$invalidate(4, props = $$props.props);
14013
+ if ('props' in $$props) $$invalidate(9, props = $$props.props);
13894
14014
  if ('layerId' in $$props) $$invalidate(0, layerId = $$props.layerId);
13895
- if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
13896
- if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
14015
+ if ('eventName' in $$props) $$invalidate(10, eventName = $$props.eventName);
14016
+ if ('eventValue' in $$props) $$invalidate(11, eventValue = $$props.eventValue);
13897
14017
  };
13898
14018
 
13899
14019
  $$self.$$.update = () => {
13900
- if ($$self.$$.dirty & /*props*/ 16) {
14020
+ if ($$self.$$.dirty & /*$maximumZindex*/ 4096) {
14021
+ $$invalidate(3, rootStyle = objToStyle({
14022
+ ...getCssPlacement(),
14023
+ zIndex: $maximumZindex + 1
14024
+ }));
14025
+ }
14026
+
14027
+ if ($$self.$$.dirty & /*props*/ 512) {
13901
14028
  $$invalidate(1, style = objToStyle({
13902
14029
  width: `${size}px`,
13903
14030
  height: `${size}px`,
13904
14031
  ...props.bordered && { border: '1px solid #666' },
14032
+ backgroundColor: props.backgroundColor ?? 'transparent',
14033
+ ...VARIANTS.round[props.round ?? 'default'],
13905
14034
  ...toCssCommon(props)
13906
14035
  }));
13907
14036
  }
13908
14037
  };
13909
14038
 
13910
- return [layerId, style, handleClick, onClick, props, eventName, eventValue];
14039
+ $$invalidate(4, hasLabel = label !== undefined && label !== '');
14040
+ $$invalidate(2, labelCssVariable = '--close-button-label-color: {props.labelColor}');
14041
+
14042
+ return [
14043
+ layerId,
14044
+ style,
14045
+ labelCssVariable,
14046
+ rootStyle,
14047
+ hasLabel,
14048
+ handleClick,
14049
+ color,
14050
+ label,
14051
+ isLeftLabelPlacement,
14052
+ props,
14053
+ eventName,
14054
+ eventValue,
14055
+ $maximumZindex
14056
+ ];
13911
14057
  }
13912
14058
 
13913
14059
  class CloseButton extends SvelteComponent {
@@ -13921,11 +14067,10 @@ class CloseButton extends SvelteComponent {
13921
14067
  create_fragment$5,
13922
14068
  safe_not_equal,
13923
14069
  {
13924
- onClick: 3,
13925
- props: 4,
14070
+ props: 9,
13926
14071
  layerId: 0,
13927
- eventName: 5,
13928
- eventValue: 6
14072
+ eventName: 10,
14073
+ eventValue: 11
13929
14074
  },
13930
14075
  add_css$5
13931
14076
  );
@@ -14397,22 +14542,22 @@ class BackgroundOverlay extends SvelteComponent {
14397
14542
  /* src/components-flex/modal/Modal.svelte generated by Svelte v3.53.1 */
14398
14543
 
14399
14544
  function add_css(target) {
14400
- append_styles(target, "svelte-f7e8di", ".modal.svelte-f7e8di{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-f7e8di > .button{flex:auto;display:flex}.close.svelte-f7e8di{position:absolute;top:8px;right:8px}.close.svelte-f7e8di > .button{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-f7e8di > .button:hover{transform:rotate(90deg)}@media screen and (min-width: 641px){.modal-bp.svelte-f7e8di{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-f7e8di{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
14545
+ append_styles(target, "svelte-1kg29ce", ".modal.svelte-1kg29ce{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1kg29ce > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-1kg29ce{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1kg29ce{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
14401
14546
  }
14402
14547
 
14403
- // (264:0) {:else}
14548
+ // (253:0) {:else}
14404
14549
  function create_else_block(ctx) {
14405
14550
  let backgroundoverlay;
14406
14551
  let current;
14407
14552
 
14408
14553
  backgroundoverlay = new BackgroundOverlay({
14409
14554
  props: {
14410
- backgroundOverlay: /*backgroundOverlay*/ ctx[7]
14555
+ backgroundOverlay: /*backgroundOverlay*/ ctx[3]
14411
14556
  }
14412
14557
  });
14413
14558
 
14414
14559
  backgroundoverlay.$on("click", function () {
14415
- if (is_function(/*backgroundClick*/ ctx[15])) /*backgroundClick*/ ctx[15].apply(this, arguments);
14560
+ if (is_function(/*backgroundClick*/ ctx[11])) /*backgroundClick*/ ctx[11].apply(this, arguments);
14416
14561
  });
14417
14562
 
14418
14563
  return {
@@ -14426,7 +14571,7 @@ function create_else_block(ctx) {
14426
14571
  p(new_ctx, dirty) {
14427
14572
  ctx = new_ctx;
14428
14573
  const backgroundoverlay_changes = {};
14429
- if (dirty[0] & /*backgroundOverlay*/ 128) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[7];
14574
+ if (dirty & /*backgroundOverlay*/ 8) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[3];
14430
14575
  backgroundoverlay.$set(backgroundoverlay_changes);
14431
14576
  },
14432
14577
  i(local) {
@@ -14444,8 +14589,8 @@ function create_else_block(ctx) {
14444
14589
  };
14445
14590
  }
14446
14591
 
14447
- // (253:24)
14448
- function create_if_block_3(ctx) {
14592
+ // (242:24)
14593
+ function create_if_block_2(ctx) {
14449
14594
  let backgroundoverlay0;
14450
14595
  let t;
14451
14596
  let backgroundoverlay1;
@@ -14454,23 +14599,23 @@ function create_if_block_3(ctx) {
14454
14599
  backgroundoverlay0 = new BackgroundOverlay({
14455
14600
  props: {
14456
14601
  class: "background-bp-pc",
14457
- backgroundOverlay: /*backgroundOverlayPC*/ ctx[8]
14602
+ backgroundOverlay: /*backgroundOverlayPC*/ ctx[4]
14458
14603
  }
14459
14604
  });
14460
14605
 
14461
14606
  backgroundoverlay0.$on("click", function () {
14462
- if (is_function(/*backgroundClickPC*/ ctx[14])) /*backgroundClickPC*/ ctx[14].apply(this, arguments);
14607
+ if (is_function(/*backgroundClickPC*/ ctx[10])) /*backgroundClickPC*/ ctx[10].apply(this, arguments);
14463
14608
  });
14464
14609
 
14465
14610
  backgroundoverlay1 = new BackgroundOverlay({
14466
14611
  props: {
14467
14612
  class: "background-bp-sp ",
14468
- backgroundOverlay: /*backgroundOverlaySP*/ ctx[9]
14613
+ backgroundOverlay: /*backgroundOverlaySP*/ ctx[5]
14469
14614
  }
14470
14615
  });
14471
14616
 
14472
14617
  backgroundoverlay1.$on("click", function () {
14473
- if (is_function(/*backgroundClickSP*/ ctx[13])) /*backgroundClickSP*/ ctx[13].apply(this, arguments);
14618
+ if (is_function(/*backgroundClickSP*/ ctx[9])) /*backgroundClickSP*/ ctx[9].apply(this, arguments);
14474
14619
  });
14475
14620
 
14476
14621
  return {
@@ -14488,10 +14633,10 @@ function create_if_block_3(ctx) {
14488
14633
  p(new_ctx, dirty) {
14489
14634
  ctx = new_ctx;
14490
14635
  const backgroundoverlay0_changes = {};
14491
- if (dirty[0] & /*backgroundOverlayPC*/ 256) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[8];
14636
+ if (dirty & /*backgroundOverlayPC*/ 16) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[4];
14492
14637
  backgroundoverlay0.$set(backgroundoverlay0_changes);
14493
14638
  const backgroundoverlay1_changes = {};
14494
- if (dirty[0] & /*backgroundOverlaySP*/ 512) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[9];
14639
+ if (dirty & /*backgroundOverlaySP*/ 32) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[5];
14495
14640
  backgroundoverlay1.$set(backgroundoverlay1_changes);
14496
14641
  },
14497
14642
  i(local) {
@@ -14513,8 +14658,8 @@ function create_if_block_3(ctx) {
14513
14658
  };
14514
14659
  }
14515
14660
 
14516
- // (251:0) {#if isPreview()}
14517
- function create_if_block_2(ctx) {
14661
+ // (240:0) {#if isPreview()}
14662
+ function create_if_block_1(ctx) {
14518
14663
  return {
14519
14664
  c: noop,
14520
14665
  m: noop,
@@ -14525,94 +14670,64 @@ function create_if_block_2(ctx) {
14525
14670
  };
14526
14671
  }
14527
14672
 
14528
- // (267:0) {#if visible}
14673
+ // (256:0) {#if visible}
14529
14674
  function create_if_block(ctx) {
14530
14675
  let div;
14531
- let t;
14532
14676
  let div_class_value;
14533
14677
  let div_intro;
14534
14678
  let current;
14535
- let if_block = /*closable*/ ctx[16] && create_if_block_1(ctx);
14536
- const default_slot_template = /*#slots*/ ctx[30].default;
14537
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);
14679
+ const default_slot_template = /*#slots*/ ctx[26].default;
14680
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[25], null);
14538
14681
 
14539
14682
  return {
14540
14683
  c() {
14541
14684
  div = element("div");
14542
- if (if_block) if_block.c();
14543
- t = space();
14544
14685
  if (default_slot) default_slot.c();
14545
- attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"));
14686
+ attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-1kg29ce"));
14546
14687
  attr(div, "role", "dialog");
14547
14688
  attr(div, "aria-modal", "true");
14548
- attr(div, "style", Array.from(/*modalStyles*/ ctx[18]).join(';'));
14689
+ attr(div, "style", Array.from(/*modalStyles*/ ctx[12]).join(';'));
14549
14690
  },
14550
14691
  m(target, anchor) {
14551
14692
  insert(target, div, anchor);
14552
- if (if_block) if_block.m(div, null);
14553
- append(div, t);
14554
14693
 
14555
14694
  if (default_slot) {
14556
14695
  default_slot.m(div, null);
14557
14696
  }
14558
14697
 
14559
- /*div_binding*/ ctx[31](div);
14698
+ /*div_binding*/ ctx[27](div);
14560
14699
  current = true;
14561
14700
  },
14562
14701
  p(new_ctx, dirty) {
14563
14702
  ctx = new_ctx;
14564
14703
 
14565
- if (/*closable*/ ctx[16]) {
14566
- if (if_block) {
14567
- if_block.p(ctx, dirty);
14568
-
14569
- if (dirty[0] & /*closable*/ 65536) {
14570
- transition_in(if_block, 1);
14571
- }
14572
- } else {
14573
- if_block = create_if_block_1(ctx);
14574
- if_block.c();
14575
- transition_in(if_block, 1);
14576
- if_block.m(div, t);
14577
- }
14578
- } else if (if_block) {
14579
- group_outros();
14580
-
14581
- transition_out(if_block, 1, 1, () => {
14582
- if_block = null;
14583
- });
14584
-
14585
- check_outros();
14586
- }
14587
-
14588
14704
  if (default_slot) {
14589
- if (default_slot.p && (!current || dirty[0] & /*$$scope*/ 536870912)) {
14705
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 33554432)) {
14590
14706
  update_slot_base(
14591
14707
  default_slot,
14592
14708
  default_slot_template,
14593
14709
  ctx,
14594
- /*$$scope*/ ctx[29],
14710
+ /*$$scope*/ ctx[25],
14595
14711
  !current
14596
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[29])
14597
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[29], dirty, null),
14712
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[25])
14713
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[25], dirty, null),
14598
14714
  null
14599
14715
  );
14600
14716
  }
14601
14717
  }
14602
14718
 
14603
- if (!current || dirty[0] & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-f7e8di"))) {
14719
+ if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-1kg29ce"))) {
14604
14720
  attr(div, "class", div_class_value);
14605
14721
  }
14606
14722
  },
14607
14723
  i(local) {
14608
14724
  if (current) return;
14609
- transition_in(if_block);
14610
14725
  transition_in(default_slot, local);
14611
14726
 
14612
14727
  if (!div_intro) {
14613
14728
  add_render_callback(() => {
14614
14729
  div_intro = create_in_transition(div, customAnimation, {
14615
- transforms: /*transforms*/ ctx[6],
14730
+ transforms: /*transforms*/ ctx[2],
14616
14731
  animationStyle: /*animation*/ ctx[1]
14617
14732
  });
14618
14733
 
@@ -14623,70 +14738,13 @@ function create_if_block(ctx) {
14623
14738
  current = true;
14624
14739
  },
14625
14740
  o(local) {
14626
- transition_out(if_block);
14627
14741
  transition_out(default_slot, local);
14628
14742
  current = false;
14629
14743
  },
14630
14744
  d(detaching) {
14631
14745
  if (detaching) detach(div);
14632
- if (if_block) if_block.d();
14633
14746
  if (default_slot) default_slot.d(detaching);
14634
- /*div_binding*/ ctx[31](null);
14635
- }
14636
- };
14637
- }
14638
-
14639
- // (279:4) {#if closable}
14640
- function create_if_block_1(ctx) {
14641
- let div;
14642
- let closebutton;
14643
- let current;
14644
-
14645
- closebutton = new CloseButton({
14646
- props: {
14647
- onClick: /*onClose*/ ctx[2],
14648
- eventName: /*closeEventName*/ ctx[3],
14649
- eventValue: /*closeEventValue*/ ctx[4],
14650
- props: /*closeButtonProps*/ ctx[5]
14651
- }
14652
- });
14653
-
14654
- return {
14655
- c() {
14656
- div = element("div");
14657
- create_component(closebutton.$$.fragment);
14658
- attr(div, "class", "close svelte-f7e8di");
14659
- set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
14660
- },
14661
- m(target, anchor) {
14662
- insert(target, div, anchor);
14663
- mount_component(closebutton, div, null);
14664
- current = true;
14665
- },
14666
- p(ctx, dirty) {
14667
- const closebutton_changes = {};
14668
- if (dirty[0] & /*onClose*/ 4) closebutton_changes.onClick = /*onClose*/ ctx[2];
14669
- if (dirty[0] & /*closeEventName*/ 8) closebutton_changes.eventName = /*closeEventName*/ ctx[3];
14670
- if (dirty[0] & /*closeEventValue*/ 16) closebutton_changes.eventValue = /*closeEventValue*/ ctx[4];
14671
- if (dirty[0] & /*closeButtonProps*/ 32) closebutton_changes.props = /*closeButtonProps*/ ctx[5];
14672
- closebutton.$set(closebutton_changes);
14673
-
14674
- if (!current || dirty[0] & /*$maximumZindex*/ 131072) {
14675
- set_style(div, "z-index", /*$maximumZindex*/ ctx[17] + 1);
14676
- }
14677
- },
14678
- i(local) {
14679
- if (current) return;
14680
- transition_in(closebutton.$$.fragment, local);
14681
- current = true;
14682
- },
14683
- o(local) {
14684
- transition_out(closebutton.$$.fragment, local);
14685
- current = false;
14686
- },
14687
- d(detaching) {
14688
- if (detaching) detach(div);
14689
- destroy_component(closebutton);
14747
+ /*div_binding*/ ctx[27](null);
14690
14748
  }
14691
14749
  };
14692
14750
  }
@@ -14700,7 +14758,7 @@ function create_fragment(ctx) {
14700
14758
  let current;
14701
14759
  let mounted;
14702
14760
  let dispose;
14703
- const if_block_creators = [create_if_block_2, create_if_block_3, create_else_block];
14761
+ const if_block_creators = [create_if_block_1, create_if_block_2, create_else_block];
14704
14762
  const if_blocks = [];
14705
14763
 
14706
14764
  function select_block_type(ctx, dirty) {
@@ -14712,7 +14770,7 @@ function create_fragment(ctx) {
14712
14770
 
14713
14771
  current_block_type_index = select_block_type(ctx);
14714
14772
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
14715
- let if_block1 = /*visible*/ ctx[11] && create_if_block(ctx);
14773
+ let if_block1 = /*visible*/ ctx[7] && create_if_block(ctx);
14716
14774
 
14717
14775
  return {
14718
14776
  c() {
@@ -14730,13 +14788,13 @@ function create_fragment(ctx) {
14730
14788
 
14731
14789
  if (!mounted) {
14732
14790
  dispose = listen(window, "keydown", function () {
14733
- if (is_function(/*handle_keydown*/ ctx[12])) /*handle_keydown*/ ctx[12].apply(this, arguments);
14791
+ if (is_function(/*handle_keydown*/ ctx[8])) /*handle_keydown*/ ctx[8].apply(this, arguments);
14734
14792
  });
14735
14793
 
14736
14794
  mounted = true;
14737
14795
  }
14738
14796
  },
14739
- p(new_ctx, dirty) {
14797
+ p(new_ctx, [dirty]) {
14740
14798
  ctx = new_ctx;
14741
14799
  let previous_block_index = current_block_type_index;
14742
14800
  current_block_type_index = select_block_type(ctx);
@@ -14764,11 +14822,11 @@ function create_fragment(ctx) {
14764
14822
  if_block0.m(t.parentNode, t);
14765
14823
  }
14766
14824
 
14767
- if (/*visible*/ ctx[11]) {
14825
+ if (/*visible*/ ctx[7]) {
14768
14826
  if (if_block1) {
14769
14827
  if_block1.p(ctx, dirty);
14770
14828
 
14771
- if (dirty[0] & /*visible*/ 2048) {
14829
+ if (dirty & /*visible*/ 128) {
14772
14830
  transition_in(if_block1, 1);
14773
14831
  }
14774
14832
  } else {
@@ -14811,14 +14869,11 @@ function create_fragment(ctx) {
14811
14869
 
14812
14870
  function instance($$self, $$props, $$invalidate) {
14813
14871
  let close;
14814
- let closable;
14815
14872
  let backgroundClick;
14816
14873
  let backgroundClickPC;
14817
14874
  let backgroundClickSP;
14818
14875
  let handle_keydown;
14819
14876
  let visible;
14820
- let $maximumZindex;
14821
- component_subscribe($$self, maximumZindex, $$value => $$invalidate(17, $maximumZindex = $$value));
14822
14877
  let { $$slots: slots = {}, $$scope } = $$props;
14823
14878
  let { onClick = { operation: 'none', args: [] } } = $$props;
14824
14879
  let { clickEventName = '' } = $$props;
@@ -14828,10 +14883,8 @@ function instance($$self, $$props, $$invalidate) {
14828
14883
  let { breakPoint } = $$props;
14829
14884
  let { elasticity } = $$props;
14830
14885
  let { animation = 'none' } = $$props;
14831
- let { onClose = { operation: 'closeApp', args: ['button'] } } = $$props;
14832
14886
  let { closeEventName = '' } = $$props;
14833
14887
  let { closeEventValue = null } = $$props;
14834
- let { closeButtonProps = {} } = $$props;
14835
14888
 
14836
14889
  // モーダル背景の設定
14837
14890
  let backgroundOverlay = DefaultModalPlacement.backgroundOverlay;
@@ -14849,7 +14902,7 @@ function instance($$self, $$props, $$invalidate) {
14849
14902
  let modal;
14850
14903
 
14851
14904
  onMount$1(() => {
14852
- $$invalidate(11, visible = true);
14905
+ $$invalidate(7, visible = true);
14853
14906
  });
14854
14907
 
14855
14908
  onDestroy$1(() => setPreviousFocus());
@@ -14857,29 +14910,29 @@ function instance($$self, $$props, $$invalidate) {
14857
14910
  function div_binding($$value) {
14858
14911
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
14859
14912
  modal = $$value;
14860
- $$invalidate(10, modal);
14913
+ $$invalidate(6, modal);
14861
14914
  });
14862
14915
  }
14863
14916
 
14864
14917
  $$self.$$set = $$props => {
14865
- if ('onClick' in $$props) $$invalidate(19, onClick = $$props.onClick);
14866
- if ('clickEventName' in $$props) $$invalidate(20, clickEventName = $$props.clickEventName);
14867
- if ('clickEventValue' in $$props) $$invalidate(21, clickEventValue = $$props.clickEventValue);
14918
+ if ('onClick' in $$props) $$invalidate(13, onClick = $$props.onClick);
14919
+ if ('clickEventName' in $$props) $$invalidate(14, clickEventName = $$props.clickEventName);
14920
+ if ('clickEventValue' in $$props) $$invalidate(15, clickEventValue = $$props.clickEventValue);
14868
14921
  if ('useBreakPoint' in $$props) $$invalidate(0, useBreakPoint = $$props.useBreakPoint);
14869
- if ('placement' in $$props) $$invalidate(22, placement = $$props.placement);
14870
- if ('breakPoint' in $$props) $$invalidate(23, breakPoint = $$props.breakPoint);
14871
- if ('elasticity' in $$props) $$invalidate(24, elasticity = $$props.elasticity);
14922
+ if ('placement' in $$props) $$invalidate(16, placement = $$props.placement);
14923
+ if ('breakPoint' in $$props) $$invalidate(17, breakPoint = $$props.breakPoint);
14924
+ if ('elasticity' in $$props) $$invalidate(18, elasticity = $$props.elasticity);
14872
14925
  if ('animation' in $$props) $$invalidate(1, animation = $$props.animation);
14873
- if ('onClose' in $$props) $$invalidate(2, onClose = $$props.onClose);
14874
- if ('closeEventName' in $$props) $$invalidate(3, closeEventName = $$props.closeEventName);
14875
- if ('closeEventValue' in $$props) $$invalidate(4, closeEventValue = $$props.closeEventValue);
14876
- if ('closeButtonProps' in $$props) $$invalidate(5, closeButtonProps = $$props.closeButtonProps);
14877
- if ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);
14926
+ if ('closeEventName' in $$props) $$invalidate(19, closeEventName = $$props.closeEventName);
14927
+ if ('closeEventValue' in $$props) $$invalidate(20, closeEventValue = $$props.closeEventValue);
14928
+ if ('$$scope' in $$props) $$invalidate(25, $$scope = $$props.$$scope);
14878
14929
  };
14879
14930
 
14880
14931
  $$self.$$.update = () => {
14881
- if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, onClose*/ 28) {
14882
- $$invalidate(28, close = () => {
14932
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue*/ 1572864) {
14933
+ $$invalidate(24, close = () => {
14934
+ const onClose = { operation: 'closeApp', args: ['button'] };
14935
+
14883
14936
  if (closeEventName) {
14884
14937
  send_event(closeEventName, closeEventValue);
14885
14938
  }
@@ -14888,49 +14941,45 @@ function instance($$self, $$props, $$invalidate) {
14888
14941
  });
14889
14942
  }
14890
14943
 
14891
- if ($$self.$$.dirty[0] & /*onClose*/ 4) {
14892
- $$invalidate(16, closable = haveFunction(onClose));
14893
- }
14894
-
14895
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
14944
+ if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 196609) {
14896
14945
  {
14897
14946
  if (placement && placement.backgroundOverlay) {
14898
- $$invalidate(7, backgroundOverlay = placement.backgroundOverlay);
14947
+ $$invalidate(3, backgroundOverlay = placement.backgroundOverlay);
14899
14948
  }
14900
14949
 
14901
14950
  if (useBreakPoint) {
14902
14951
  const pc = breakPoint?.PC?.placement?.backgroundOverlay;
14903
- $$invalidate(8, backgroundOverlayPC = pc ?? false);
14952
+ $$invalidate(4, backgroundOverlayPC = pc ?? false);
14904
14953
  const sp = breakPoint?.SP?.placement?.backgroundOverlay;
14905
- $$invalidate(9, backgroundOverlaySP = sp ?? false);
14954
+ $$invalidate(5, backgroundOverlaySP = sp ?? false);
14906
14955
  }
14907
14956
  }
14908
14957
  }
14909
14958
 
14910
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
14959
+ if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 196609) {
14911
14960
  {
14912
14961
  if (placement && placement.backgroundClick) {
14913
- $$invalidate(25, backgroundClickFunction = placement.backgroundClick);
14962
+ $$invalidate(21, backgroundClickFunction = placement.backgroundClick);
14914
14963
  }
14915
14964
 
14916
14965
  if (useBreakPoint) {
14917
14966
  const pc = breakPoint?.PC?.placement?.backgroundClick;
14918
14967
 
14919
14968
  if (pc) {
14920
- $$invalidate(26, backgroundClickFunctionPC = pc);
14969
+ $$invalidate(22, backgroundClickFunctionPC = pc);
14921
14970
  }
14922
14971
 
14923
14972
  const sp = breakPoint?.SP?.placement?.backgroundClick;
14924
14973
 
14925
14974
  if (sp) {
14926
- $$invalidate(27, backgroundClickFunctionSP = sp);
14975
+ $$invalidate(23, backgroundClickFunctionSP = sp);
14927
14976
  }
14928
14977
  }
14929
14978
  }
14930
14979
  }
14931
14980
 
14932
- if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunction*/ 33554456) {
14933
- $$invalidate(15, backgroundClick = () => {
14981
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunction*/ 3670016) {
14982
+ $$invalidate(11, backgroundClick = () => {
14934
14983
  if (closeEventName) {
14935
14984
  send_event(closeEventName, closeEventValue);
14936
14985
  }
@@ -14939,8 +14988,8 @@ function instance($$self, $$props, $$invalidate) {
14939
14988
  });
14940
14989
  }
14941
14990
 
14942
- if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 67108888) {
14943
- $$invalidate(14, backgroundClickPC = () => {
14991
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionPC*/ 5767168) {
14992
+ $$invalidate(10, backgroundClickPC = () => {
14944
14993
  if (closeEventName) {
14945
14994
  send_event(closeEventName, closeEventValue);
14946
14995
  }
@@ -14949,8 +14998,8 @@ function instance($$self, $$props, $$invalidate) {
14949
14998
  });
14950
14999
  }
14951
15000
 
14952
- if ($$self.$$.dirty[0] & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 134217752) {
14953
- $$invalidate(13, backgroundClickSP = () => {
15001
+ if ($$self.$$.dirty & /*closeEventName, closeEventValue, backgroundClickFunctionSP*/ 9961472) {
15002
+ $$invalidate(9, backgroundClickSP = () => {
14954
15003
  if (closeEventName) {
14955
15004
  send_event(closeEventName, closeEventValue);
14956
15005
  }
@@ -14959,7 +15008,7 @@ function instance($$self, $$props, $$invalidate) {
14959
15008
  });
14960
15009
  }
14961
15010
 
14962
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 12582977) {
15011
+ if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint, transforms*/ 196613) {
14963
15012
  // 表示位置のスタイルとアニメーションの動きを設定
14964
15013
  {
14965
15014
  // 表示位置のスタイルの設定
@@ -14975,7 +15024,7 @@ function instance($$self, $$props, $$invalidate) {
14975
15024
  modalStyles.add(positionStyle);
14976
15025
  }
14977
15026
 
14978
- $$invalidate(6, transforms = []);
15027
+ $$invalidate(2, transforms = []);
14979
15028
 
14980
15029
  DEVICE_IDS.forEach(deviceId => {
14981
15030
  if (useBreakPoint) {
@@ -15003,7 +15052,7 @@ function instance($$self, $$props, $$invalidate) {
15003
15052
  }
15004
15053
  }
15005
15054
 
15006
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 12582913) {
15055
+ if ($$self.$$.dirty & /*placement, useBreakPoint, breakPoint*/ 196609) {
15007
15056
  // 表示位置の調整のスタイルを設定
15008
15057
  {
15009
15058
  let margin = DefaultModalPlacement.margin;
@@ -15035,7 +15084,7 @@ function instance($$self, $$props, $$invalidate) {
15035
15084
  }
15036
15085
  }
15037
15086
 
15038
- if ($$self.$$.dirty[0] & /*elasticity, useBreakPoint, breakPoint*/ 25165825) {
15087
+ if ($$self.$$.dirty & /*elasticity, useBreakPoint, breakPoint*/ 393217) {
15039
15088
  // 拡大方法のスタイルを設定
15040
15089
  {
15041
15090
  let elasticStyle = ElasticityStyle[elasticity];
@@ -15061,23 +15110,19 @@ function instance($$self, $$props, $$invalidate) {
15061
15110
  }
15062
15111
  }
15063
15112
 
15064
- if ($$self.$$.dirty[0] & /*close*/ 268435456) {
15065
- $$invalidate(12, handle_keydown = handleKeydown({ Escape: close }));
15113
+ if ($$self.$$.dirty & /*close*/ 16777216) {
15114
+ $$invalidate(8, handle_keydown = handleKeydown({ Escape: close }));
15066
15115
  }
15067
15116
  };
15068
15117
 
15069
- $$invalidate(10, modal = null);
15118
+ $$invalidate(6, modal = null);
15070
15119
 
15071
15120
  // svelteコンポーネントのアニメーションを発火させるためにマウント時にvisibleをtrueにする。
15072
- $$invalidate(11, visible = false);
15121
+ $$invalidate(7, visible = false);
15073
15122
 
15074
15123
  return [
15075
15124
  useBreakPoint,
15076
15125
  animation,
15077
- onClose,
15078
- closeEventName,
15079
- closeEventValue,
15080
- closeButtonProps,
15081
15126
  transforms,
15082
15127
  backgroundOverlay,
15083
15128
  backgroundOverlayPC,
@@ -15088,8 +15133,6 @@ function instance($$self, $$props, $$invalidate) {
15088
15133
  backgroundClickSP,
15089
15134
  backgroundClickPC,
15090
15135
  backgroundClick,
15091
- closable,
15092
- $maximumZindex,
15093
15136
  modalStyles,
15094
15137
  onClick,
15095
15138
  clickEventName,
@@ -15097,6 +15140,8 @@ function instance($$self, $$props, $$invalidate) {
15097
15140
  placement,
15098
15141
  breakPoint,
15099
15142
  elasticity,
15143
+ closeEventName,
15144
+ closeEventValue,
15100
15145
  backgroundClickFunction,
15101
15146
  backgroundClickFunctionPC,
15102
15147
  backgroundClickFunctionSP,
@@ -15118,23 +15163,20 @@ class Modal extends SvelteComponent {
15118
15163
  create_fragment,
15119
15164
  safe_not_equal,
15120
15165
  {
15121
- onClick: 19,
15122
- clickEventName: 20,
15123
- clickEventValue: 21,
15166
+ onClick: 13,
15167
+ clickEventName: 14,
15168
+ clickEventValue: 15,
15124
15169
  useBreakPoint: 0,
15125
- placement: 22,
15126
- breakPoint: 23,
15127
- elasticity: 24,
15170
+ placement: 16,
15171
+ breakPoint: 17,
15172
+ elasticity: 18,
15128
15173
  animation: 1,
15129
- onClose: 2,
15130
- closeEventName: 3,
15131
- closeEventValue: 4,
15132
- closeButtonProps: 5
15174
+ closeEventName: 19,
15175
+ closeEventValue: 20
15133
15176
  },
15134
- add_css,
15135
- [-1, -1]
15177
+ add_css
15136
15178
  );
15137
15179
  }
15138
15180
  }
15139
15181
 
15140
- export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANTS, BackgroundSizes, Box, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
15182
+ export { ACTION_HOOK_LABEL, AVATAR_SHAPE, AVATAR_SIZE, Alignments, AnimationStyles, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_ROUND, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANTS, BackgroundSizes, Box, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, COMPONENT_PARAMETER_TYPES, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, Avatar as FlexAvatar, Button as FlexButton, CloseButton as FlexCloseButton, FlexDirections, Icon as FlexIcon, Image as FlexImage, FlexItem, Layout as FlexLayout, Modal as FlexModal, Text as FlexText, TextButton as FlexTextButton, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ICON_PARAMS, ICON_SIZE, ICON_VARIANTS, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_ALIGN_VALUES, LAYER_TEXT_FONT_WEIGHT_VALUES, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal$1 as Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TEXT_BUTTON_COLOR, TEXT_BUTTON_ICON_ANGLE, TEXT_BUTTON_LINK_TARGET, TEXT_BUTTON_ROUND, TEXT_BUTTON_SIZE, TEXT_VARIANTS, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getCssVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };