@plaidev/karte-action-sdk 1.1.130-27958202.2eba0943 → 1.1.130-27959237.f0d1da74

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -1465,6 +1465,8 @@ const Justifies = ['flex-start', 'center', 'flex-end'];
1465
1465
  /** @internal */
1466
1466
  const Alignments = ['flex-start', 'center', 'flex-end'];
1467
1467
  /** @internal */
1468
+ const FlexDirections = ['row', 'column'];
1469
+ /** @internal */
1468
1470
  const ObjectFits = ['fill', 'contain', 'cover'];
1469
1471
  /** @internal */
1470
1472
  const ClipPaths = ['none', 'circle(closest-side)'];
@@ -1545,10 +1547,6 @@ const DefaultFormSelectStyle = {
1545
1547
  colorArrow: '#333',
1546
1548
  colorFocused: '#2aab9f',
1547
1549
  };
1548
- /** @internal */
1549
- const FormRatingButtonTypes = ['star', 'face'];
1550
- /** @internal */
1551
- const DefaultFormRatingButtonType = 'star';
1552
1550
 
1553
1551
  const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__ === 'string'
1554
1552
  ? __FLYER_GEN_COLLECTION_API_ENDPOINT__
@@ -2587,7 +2585,7 @@ function add_css$n(target) {
2587
2585
  }
2588
2586
 
2589
2587
  // (23:0) {#if $state === path}
2590
- function create_if_block$7(ctx) {
2588
+ function create_if_block$6(ctx) {
2591
2589
  let div;
2592
2590
  let t;
2593
2591
  let current;
@@ -2652,7 +2650,7 @@ function create_if_block$7(ctx) {
2652
2650
  function create_fragment$q(ctx) {
2653
2651
  let if_block_anchor;
2654
2652
  let current;
2655
- let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$7(ctx);
2653
+ let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$6(ctx);
2656
2654
 
2657
2655
  return {
2658
2656
  c() {
@@ -2673,7 +2671,7 @@ function create_fragment$q(ctx) {
2673
2671
  transition_in(if_block, 1);
2674
2672
  }
2675
2673
  } else {
2676
- if_block = create_if_block$7(ctx);
2674
+ if_block = create_if_block$6(ctx);
2677
2675
  if_block.c();
2678
2676
  transition_in(if_block, 1);
2679
2677
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2747,7 +2745,7 @@ function add_css$m(target) {
2747
2745
  }
2748
2746
 
2749
2747
  // (9:0) {#if backgroundOverray}
2750
- function create_if_block$6(ctx) {
2748
+ function create_if_block$5(ctx) {
2751
2749
  let div;
2752
2750
  let mounted;
2753
2751
  let dispose;
@@ -2776,7 +2774,7 @@ function create_if_block$6(ctx) {
2776
2774
 
2777
2775
  function create_fragment$p(ctx) {
2778
2776
  let if_block_anchor;
2779
- let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$6(ctx);
2777
+ let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$5(ctx);
2780
2778
 
2781
2779
  return {
2782
2780
  c() {
@@ -2792,7 +2790,7 @@ function create_fragment$p(ctx) {
2792
2790
  if (if_block) {
2793
2791
  if_block.p(ctx, dirty);
2794
2792
  } else {
2795
- if_block = create_if_block$6(ctx);
2793
+ if_block = create_if_block$5(ctx);
2796
2794
  if_block.c();
2797
2795
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
2798
2796
  }
@@ -2836,7 +2834,7 @@ function add_css$l(target) {
2836
2834
  }
2837
2835
 
2838
2836
  // (142:0) {#if visible}
2839
- function create_if_block$5(ctx) {
2837
+ function create_if_block$4(ctx) {
2840
2838
  let div1;
2841
2839
  let t;
2842
2840
  let div0;
@@ -2845,7 +2843,7 @@ function create_if_block$5(ctx) {
2845
2843
  let current;
2846
2844
  let mounted;
2847
2845
  let dispose;
2848
- let if_block = /*closable*/ ctx[14] && create_if_block_1$2(ctx);
2846
+ let if_block = /*closable*/ ctx[14] && create_if_block_1$1(ctx);
2849
2847
  const default_slot_template = /*#slots*/ ctx[29].default;
2850
2848
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[28], null);
2851
2849
 
@@ -2891,7 +2889,7 @@ function create_if_block$5(ctx) {
2891
2889
  if (if_block) {
2892
2890
  if_block.p(ctx, dirty);
2893
2891
  } else {
2894
- if_block = create_if_block_1$2(ctx);
2892
+ if_block = create_if_block_1$1(ctx);
2895
2893
  if_block.c();
2896
2894
  if_block.m(div1, t);
2897
2895
  }
@@ -2956,7 +2954,7 @@ function create_if_block$5(ctx) {
2956
2954
  }
2957
2955
 
2958
2956
  // (159:4) {#if closable}
2959
- function create_if_block_1$2(ctx) {
2957
+ function create_if_block_1$1(ctx) {
2960
2958
  let button;
2961
2959
  let svg;
2962
2960
  let path;
@@ -3030,7 +3028,7 @@ function create_fragment$o(ctx) {
3030
3028
  if (is_function(/*backgroundClick*/ ctx[12])) /*backgroundClick*/ ctx[12].apply(this, arguments);
3031
3029
  });
3032
3030
 
3033
- let if_block = /*visible*/ ctx[6] && create_if_block$5(ctx);
3031
+ let if_block = /*visible*/ ctx[6] && create_if_block$4(ctx);
3034
3032
 
3035
3033
  return {
3036
3034
  c() {
@@ -3068,7 +3066,7 @@ function create_fragment$o(ctx) {
3068
3066
  transition_in(if_block, 1);
3069
3067
  }
3070
3068
  } else {
3071
- if_block = create_if_block$5(ctx);
3069
+ if_block = create_if_block$4(ctx);
3072
3070
  if_block.c();
3073
3071
  transition_in(if_block, 1);
3074
3072
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -4131,7 +4129,7 @@ function create_else_block$1(ctx) {
4131
4129
  }
4132
4130
 
4133
4131
  // (10:2) {#if item.match(regexp)}
4134
- function create_if_block$4(ctx) {
4132
+ function create_if_block$3(ctx) {
4135
4133
  let br;
4136
4134
 
4137
4135
  return {
@@ -4156,7 +4154,7 @@ function create_each_block$5(ctx) {
4156
4154
  function select_block_type(ctx, dirty) {
4157
4155
  if (dirty & /*items*/ 1) show_if = null;
4158
4156
  if (show_if == null) show_if = !!/*item*/ ctx[2].match(regexp);
4159
- if (show_if) return create_if_block$4;
4157
+ if (show_if) return create_if_block$3;
4160
4158
  return create_else_block$1;
4161
4159
  }
4162
4160
 
@@ -4282,7 +4280,7 @@ function add_css$h(target) {
4282
4280
  }
4283
4281
 
4284
4282
  // (56:2) {#if enableCopy}
4285
- function create_if_block$3(ctx) {
4283
+ function create_if_block$2(ctx) {
4286
4284
  let div0;
4287
4285
  let t1;
4288
4286
  let div1;
@@ -4326,7 +4324,7 @@ function create_fragment$h(ctx) {
4326
4324
  let mounted;
4327
4325
  let dispose;
4328
4326
  rendertext = new RenderText({ props: { text: /*text*/ ctx[0] } });
4329
- let if_block = /*enableCopy*/ ctx[1] && create_if_block$3(ctx);
4327
+ let if_block = /*enableCopy*/ ctx[1] && create_if_block$2(ctx);
4330
4328
 
4331
4329
  return {
4332
4330
  c() {
@@ -4372,7 +4370,7 @@ function create_fragment$h(ctx) {
4372
4370
  if (if_block) {
4373
4371
  if_block.p(ctx, dirty);
4374
4372
  } else {
4375
- if_block = create_if_block$3(ctx);
4373
+ if_block = create_if_block$2(ctx);
4376
4374
  if_block.c();
4377
4375
  if_block.m(div2, null);
4378
4376
  }
@@ -5705,17 +5703,17 @@ class FormTextarea extends SvelteComponent {
5705
5703
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
5706
5704
 
5707
5705
  function add_css$8(target) {
5708
- append_styles(target, "svelte-1k9zlui", ".radio-buttons.svelte-1k9zlui{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1k9zlui{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1k9zlui{appearance:none;margin:0;width:var(--size);height:var(--size);box-sizing:border-box;border-radius:var(--size);position:relative;background-color:var(--color-inactive);cursor:pointer}.radio-button-input.svelte-1k9zlui:checked{border:solid calc(var(--size) / 3) var(--color-active);background-color:#fff;box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1k9zlui{margin-left:0.5em}");
5706
+ append_styles(target, "svelte-ekeah8", ".radio-buttons.svelte-ekeah8{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.radio-button.svelte-ekeah8{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-ekeah8{appearance:none;margin:0;width:var(--size);height:var(--size);box-sizing:border-box;border-radius:var(--size);position:relative;background-color:var(--color-inactive);cursor:pointer;flex:none}.radio-button-input.svelte-ekeah8:checked{border:solid calc(var(--size) / 3) var(--color-active);background-color:#fff;box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-ekeah8{margin-left:0.5em}");
5709
5707
  }
5710
5708
 
5711
5709
  function get_each_context$4(ctx, list, i) {
5712
5710
  const child_ctx = ctx.slice();
5713
- child_ctx[12] = list[i];
5714
- child_ctx[14] = i;
5711
+ child_ctx[13] = list[i];
5712
+ child_ctx[15] = i;
5715
5713
  return child_ctx;
5716
5714
  }
5717
5715
 
5718
- // (58:2) {#each _options as option, i}
5716
+ // (62:2) {#each _options as option, i}
5719
5717
  function create_each_block$4(ctx) {
5720
5718
  let label;
5721
5719
  let input;
@@ -5723,7 +5721,7 @@ function create_each_block$4(ctx) {
5723
5721
  let input_checked_value;
5724
5722
  let t0;
5725
5723
  let span;
5726
- let t1_value = /*option*/ ctx[12] + "";
5724
+ let t1_value = /*option*/ ctx[13] + "";
5727
5725
  let t1;
5728
5726
  let t2;
5729
5727
  let mounted;
@@ -5738,14 +5736,14 @@ function create_each_block$4(ctx) {
5738
5736
  t1 = text(t1_value);
5739
5737
  t2 = space();
5740
5738
  attr(input, "type", "radio");
5741
- attr(input, "class", "radio-button-input svelte-1k9zlui");
5742
- attr(input, "style", /*_buttonStyle*/ ctx[4]);
5739
+ attr(input, "class", "radio-button-input svelte-ekeah8");
5740
+ attr(input, "style", /*_buttonStyle*/ ctx[5]);
5743
5741
  attr(input, "name", /*name*/ ctx[0]);
5744
- input.value = input_value_value = /*option*/ ctx[12];
5745
- input.checked = input_checked_value = /*option*/ ctx[12] === /*_value*/ ctx[2];
5746
- attr(span, "class", "radio-button-text svelte-1k9zlui");
5747
- attr(span, "style", /*textStyle*/ ctx[1]);
5748
- attr(label, "class", "radio-button svelte-1k9zlui");
5742
+ input.value = input_value_value = /*option*/ ctx[13];
5743
+ input.checked = input_checked_value = /*option*/ ctx[13] === /*_value*/ ctx[3];
5744
+ attr(span, "class", "radio-button-text svelte-ekeah8");
5745
+ attr(span, "style", /*textStyle*/ ctx[2]);
5746
+ attr(label, "class", "radio-button svelte-ekeah8");
5749
5747
  },
5750
5748
  m(target, anchor) {
5751
5749
  insert(target, label, anchor);
@@ -5756,33 +5754,33 @@ function create_each_block$4(ctx) {
5756
5754
  append(label, t2);
5757
5755
 
5758
5756
  if (!mounted) {
5759
- dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[14]));
5757
+ dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[15]));
5760
5758
  mounted = true;
5761
5759
  }
5762
5760
  },
5763
5761
  p(new_ctx, dirty) {
5764
5762
  ctx = new_ctx;
5765
5763
 
5766
- if (dirty & /*_buttonStyle*/ 16) {
5767
- attr(input, "style", /*_buttonStyle*/ ctx[4]);
5764
+ if (dirty & /*_buttonStyle*/ 32) {
5765
+ attr(input, "style", /*_buttonStyle*/ ctx[5]);
5768
5766
  }
5769
5767
 
5770
5768
  if (dirty & /*name*/ 1) {
5771
5769
  attr(input, "name", /*name*/ ctx[0]);
5772
5770
  }
5773
5771
 
5774
- if (dirty & /*_options*/ 8 && input_value_value !== (input_value_value = /*option*/ ctx[12])) {
5772
+ if (dirty & /*_options*/ 16 && input_value_value !== (input_value_value = /*option*/ ctx[13])) {
5775
5773
  input.value = input_value_value;
5776
5774
  }
5777
5775
 
5778
- if (dirty & /*_options, _value*/ 12 && input_checked_value !== (input_checked_value = /*option*/ ctx[12] === /*_value*/ ctx[2])) {
5776
+ if (dirty & /*_options, _value*/ 24 && input_checked_value !== (input_checked_value = /*option*/ ctx[13] === /*_value*/ ctx[3])) {
5779
5777
  input.checked = input_checked_value;
5780
5778
  }
5781
5779
 
5782
- if (dirty & /*_options*/ 8 && t1_value !== (t1_value = /*option*/ ctx[12] + "")) set_data(t1, t1_value);
5780
+ if (dirty & /*_options*/ 16 && t1_value !== (t1_value = /*option*/ ctx[13] + "")) set_data(t1, t1_value);
5783
5781
 
5784
- if (dirty & /*textStyle*/ 2) {
5785
- attr(span, "style", /*textStyle*/ ctx[1]);
5782
+ if (dirty & /*textStyle*/ 4) {
5783
+ attr(span, "style", /*textStyle*/ ctx[2]);
5786
5784
  }
5787
5785
  },
5788
5786
  d(detaching) {
@@ -5795,7 +5793,7 @@ function create_each_block$4(ctx) {
5795
5793
 
5796
5794
  function create_fragment$8(ctx) {
5797
5795
  let div;
5798
- let each_value = /*_options*/ ctx[3];
5796
+ let each_value = /*_options*/ ctx[4];
5799
5797
  let each_blocks = [];
5800
5798
 
5801
5799
  for (let i = 0; i < each_value.length; i += 1) {
@@ -5810,7 +5808,8 @@ function create_fragment$8(ctx) {
5810
5808
  each_blocks[i].c();
5811
5809
  }
5812
5810
 
5813
- attr(div, "class", "radio-buttons svelte-1k9zlui");
5811
+ attr(div, "class", "radio-buttons svelte-ekeah8");
5812
+ attr(div, "style", /*layoutStyle*/ ctx[1]);
5814
5813
  },
5815
5814
  m(target, anchor) {
5816
5815
  insert(target, div, anchor);
@@ -5820,8 +5819,8 @@ function create_fragment$8(ctx) {
5820
5819
  }
5821
5820
  },
5822
5821
  p(ctx, [dirty]) {
5823
- if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 95) {
5824
- each_value = /*_options*/ ctx[3];
5822
+ if (dirty & /*textStyle, _options, _buttonStyle, name, _value, handleChange*/ 189) {
5823
+ each_value = /*_options*/ ctx[4];
5825
5824
  let i;
5826
5825
 
5827
5826
  for (i = 0; i < each_value.length; i += 1) {
@@ -5842,6 +5841,10 @@ function create_fragment$8(ctx) {
5842
5841
 
5843
5842
  each_blocks.length = each_value.length;
5844
5843
  }
5844
+
5845
+ if (dirty & /*layoutStyle*/ 2) {
5846
+ attr(div, "style", /*layoutStyle*/ ctx[1]);
5847
+ }
5845
5848
  },
5846
5849
  i: noop,
5847
5850
  o: noop,
@@ -5860,6 +5863,7 @@ function instance$8($$self, $$props, $$invalidate) {
5860
5863
  let { name = '' } = $$props;
5861
5864
  let { options = 'ラジオボタン1,ラジオボタン2,ラジオボタン3' } = $$props;
5862
5865
  let { required = false } = $$props;
5866
+ let { layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
5863
5867
  let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
5864
5868
 
5865
5869
  let { buttonStyle = {
@@ -5880,7 +5884,7 @@ function instance$8($$self, $$props, $$invalidate) {
5880
5884
  }
5881
5885
  });
5882
5886
 
5883
- component_subscribe($$self, value, value => $$invalidate(10, $value = value));
5887
+ component_subscribe($$self, value, value => $$invalidate(11, $value = value));
5884
5888
 
5885
5889
  const handleChange = index => event => {
5886
5890
  if (event.target.checked) {
@@ -5890,28 +5894,30 @@ function instance$8($$self, $$props, $$invalidate) {
5890
5894
 
5891
5895
  $$self.$$set = $$props => {
5892
5896
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
5893
- if ('options' in $$props) $$invalidate(7, options = $$props.options);
5894
- if ('required' in $$props) $$invalidate(8, required = $$props.required);
5895
- if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
5896
- if ('buttonStyle' in $$props) $$invalidate(9, buttonStyle = $$props.buttonStyle);
5897
+ if ('options' in $$props) $$invalidate(8, options = $$props.options);
5898
+ if ('required' in $$props) $$invalidate(9, required = $$props.required);
5899
+ if ('layoutStyle' in $$props) $$invalidate(1, layoutStyle = $$props.layoutStyle);
5900
+ if ('textStyle' in $$props) $$invalidate(2, textStyle = $$props.textStyle);
5901
+ if ('buttonStyle' in $$props) $$invalidate(10, buttonStyle = $$props.buttonStyle);
5897
5902
  };
5898
5903
 
5899
5904
  $$self.$$.update = () => {
5900
- if ($$self.$$.dirty & /*options*/ 128) {
5901
- $$invalidate(3, _options = options.split(','));
5905
+ if ($$self.$$.dirty & /*options*/ 256) {
5906
+ $$invalidate(4, _options = options.split(','));
5902
5907
  }
5903
5908
 
5904
- if ($$self.$$.dirty & /*buttonStyle*/ 512) {
5905
- $$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
5909
+ if ($$self.$$.dirty & /*buttonStyle*/ 1024) {
5910
+ $$invalidate(5, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
5906
5911
  }
5907
5912
 
5908
- if ($$self.$$.dirty & /*$value*/ 1024) {
5909
- $$invalidate(2, _value = $value[0]);
5913
+ if ($$self.$$.dirty & /*$value*/ 2048) {
5914
+ $$invalidate(3, _value = $value[0]);
5910
5915
  }
5911
5916
  };
5912
5917
 
5913
5918
  return [
5914
5919
  name,
5920
+ layoutStyle,
5915
5921
  textStyle,
5916
5922
  _value,
5917
5923
  _options,
@@ -5937,10 +5943,11 @@ class FormRadioButtons extends SvelteComponent {
5937
5943
  safe_not_equal,
5938
5944
  {
5939
5945
  name: 0,
5940
- options: 7,
5941
- required: 8,
5942
- textStyle: 1,
5943
- buttonStyle: 9
5946
+ options: 8,
5947
+ required: 9,
5948
+ layoutStyle: 1,
5949
+ textStyle: 2,
5950
+ buttonStyle: 10
5944
5951
  },
5945
5952
  add_css$8
5946
5953
  );
@@ -5950,7 +5957,7 @@ class FormRadioButtons extends SvelteComponent {
5950
5957
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
5951
5958
 
5952
5959
  function add_css$7(target) {
5953
- append_styles(target, "svelte-1c94amx", ".select-wrapper.svelte-1c94amx{display:flex;justify-content:center;flex-direction:column;width:100%;height:100%;position:relative\n}.select-select.svelte-1c94amx{position:relative;appearance:none;width:100%}.select-select.svelte-1c94amx:focus{outline:none;border-color:var(--color-focused) !important}.select-icon.svelte-1c94amx{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px var(--color-arrow);border-top:solid 2px var(--color-arrow);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
5960
+ append_styles(target, "svelte-wy1i8s", ".select.svelte-wy1i8s{width:100%;height:100%}.select-select.svelte-wy1i8s{position:relative;appearance:none;width:100%;height:100%}.select-select.svelte-wy1i8s:focus{outline:none;border-color:var(--color-focused) !important}.select-icon.svelte-wy1i8s{position:absolute;width:0.5em;height:0.5em;top:calc(50% - 0.2em);right:0.8em;box-sizing:border-box;border-right:solid 2px var(--color-arrow);border-top:solid 2px var(--color-arrow);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
5954
5961
  }
5955
5962
 
5956
5963
  function get_each_context$3(ctx, list, i) {
@@ -5960,7 +5967,7 @@ function get_each_context$3(ctx, list, i) {
5960
5967
  return child_ctx;
5961
5968
  }
5962
5969
 
5963
- // (56:10) {:else}
5970
+ // (55:10) {:else}
5964
5971
  function create_else_block(ctx) {
5965
5972
  let t;
5966
5973
 
@@ -5978,8 +5985,8 @@ function create_else_block(ctx) {
5978
5985
  };
5979
5986
  }
5980
5987
 
5981
- // (54:10) {#if option}
5982
- function create_if_block$2(ctx) {
5988
+ // (53:10) {#if option}
5989
+ function create_if_block$1(ctx) {
5983
5990
  let t_value = /*option*/ ctx[10] + "";
5984
5991
  let t;
5985
5992
 
@@ -5999,14 +6006,14 @@ function create_if_block$2(ctx) {
5999
6006
  };
6000
6007
  }
6001
6008
 
6002
- // (52:6) {#each _options as option, i}
6009
+ // (51:6) {#each _options as option, i}
6003
6010
  function create_each_block$3(ctx) {
6004
6011
  let option;
6005
6012
  let t;
6006
6013
  let option_value_value;
6007
6014
 
6008
6015
  function select_block_type(ctx, dirty) {
6009
- if (/*option*/ ctx[10]) return create_if_block$2;
6016
+ if (/*option*/ ctx[10]) return create_if_block$1;
6010
6017
  return create_else_block;
6011
6018
  }
6012
6019
 
@@ -6052,7 +6059,6 @@ function create_each_block$3(ctx) {
6052
6059
  }
6053
6060
 
6054
6061
  function create_fragment$7(ctx) {
6055
- let div2;
6056
6062
  let div1;
6057
6063
  let select;
6058
6064
  let t;
@@ -6068,7 +6074,6 @@ function create_fragment$7(ctx) {
6068
6074
 
6069
6075
  return {
6070
6076
  c() {
6071
- div2 = element("div");
6072
6077
  div1 = element("div");
6073
6078
  select = element("select");
6074
6079
 
@@ -6078,16 +6083,14 @@ function create_fragment$7(ctx) {
6078
6083
 
6079
6084
  t = space();
6080
6085
  div0 = element("div");
6081
- attr(select, "class", "select-select svelte-1c94amx");
6086
+ attr(select, "class", "select-select svelte-wy1i8s");
6082
6087
  attr(select, "style", /*_style*/ ctx[0]);
6083
- attr(div0, "class", "select-icon svelte-1c94amx");
6084
- attr(div1, "class", "select");
6088
+ attr(div0, "class", "select-icon svelte-wy1i8s");
6089
+ attr(div1, "class", "select svelte-wy1i8s");
6085
6090
  attr(div1, "style", /*styleVariables*/ ctx[1]);
6086
- attr(div2, "class", "select-wrapper svelte-1c94amx");
6087
6091
  },
6088
6092
  m(target, anchor) {
6089
- insert(target, div2, anchor);
6090
- append(div2, div1);
6093
+ insert(target, div1, anchor);
6091
6094
  append(div1, select);
6092
6095
 
6093
6096
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -6137,7 +6140,7 @@ function create_fragment$7(ctx) {
6137
6140
  i: noop,
6138
6141
  o: noop,
6139
6142
  d(detaching) {
6140
- if (detaching) detach(div2);
6143
+ if (detaching) detach(div1);
6141
6144
  destroy_each(each_blocks, detaching);
6142
6145
  mounted = false;
6143
6146
  dispose();
@@ -6151,7 +6154,7 @@ function instance$7($$self, $$props, $$invalidate) {
6151
6154
  let { name = '' } = $$props;
6152
6155
  let { options = 'プルダウン1,プルダウン2,プルダウン3' } = $$props;
6153
6156
  let { required = false } = $$props;
6154
- let { _style = 'color: #333; cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; font-size: 12px; padding: 10px 30px 10px 10px;' } = $$props;
6157
+ let { _style = 'color: #333; cursor: pointer; background-color: #fff; border: solid 2px #ccc; border-radius: 6px; font-size: 12px; padding: 0 0 0 10px;' } = $$props;
6155
6158
 
6156
6159
  let { selectStyle = {
6157
6160
  colorArrow: '#333',
@@ -6230,17 +6233,17 @@ class FormSelect extends SvelteComponent {
6230
6233
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
6231
6234
 
6232
6235
  function add_css$6(target) {
6233
- append_styles(target, "svelte-15x08a", ".check-boxes.svelte-15x08a.svelte-15x08a{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-15x08a.svelte-15x08a{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-15x08a.svelte-15x08a{width:0;height:0;margin:0}.check-box-check.svelte-15x08a.svelte-15x08a{display:inline-flex;background-color:var(--color-active);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center}.check-box-icon.svelte-15x08a.svelte-15x08a{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-15x08a.svelte-15x08a:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:#fff}.check-box-check.svelte-15x08a.svelte-15x08a:not(._checked){background-color:var(--color-inactive)}.check-box-check.svelte-15x08a:not(._checked) .check-box-icon.svelte-15x08a{display:none}.check-box-text.svelte-15x08a.svelte-15x08a{margin-left:0.5em}");
6236
+ append_styles(target, "svelte-8y6qqs", ".check-boxes.svelte-8y6qqs.svelte-8y6qqs{display:flex;justify-content:space-evenly;flex-direction:column;width:100%;height:100%}.check-box.svelte-8y6qqs.svelte-8y6qqs{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-8y6qqs.svelte-8y6qqs{width:0;height:0;margin:0}.check-box-check.svelte-8y6qqs.svelte-8y6qqs{display:inline-flex;background-color:var(--color-active);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-8y6qqs.svelte-8y6qqs{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-8y6qqs.svelte-8y6qqs:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:#fff}.check-box-check.svelte-8y6qqs.svelte-8y6qqs:not(._checked){background-color:var(--color-inactive)}.check-box-check.svelte-8y6qqs:not(._checked) .check-box-icon.svelte-8y6qqs{display:none}.check-box-text.svelte-8y6qqs.svelte-8y6qqs{margin-left:0.5em}");
6234
6237
  }
6235
6238
 
6236
6239
  function get_each_context$2(ctx, list, i) {
6237
6240
  const child_ctx = ctx.slice();
6238
- child_ctx[12] = list[i];
6239
- child_ctx[14] = i;
6241
+ child_ctx[13] = list[i];
6242
+ child_ctx[15] = i;
6240
6243
  return child_ctx;
6241
6244
  }
6242
6245
 
6243
- // (64:2) {#each _options as option, i}
6246
+ // (68:2) {#each _options as option, i}
6244
6247
  function create_each_block$2(ctx) {
6245
6248
  let label;
6246
6249
  let input;
@@ -6251,7 +6254,7 @@ function create_each_block$2(ctx) {
6251
6254
  let span1_class_value;
6252
6255
  let t1;
6253
6256
  let span2;
6254
- let t2_value = /*option*/ ctx[12] + "";
6257
+ let t2_value = /*option*/ ctx[13] + "";
6255
6258
  let t2;
6256
6259
  let t3;
6257
6260
  let mounted;
@@ -6268,20 +6271,20 @@ function create_each_block$2(ctx) {
6268
6271
  span2 = element("span");
6269
6272
  t2 = text(t2_value);
6270
6273
  t3 = space();
6271
- attr(input, "class", "check-box-input svelte-15x08a");
6274
+ attr(input, "class", "check-box-input svelte-8y6qqs");
6272
6275
  attr(input, "type", "checkbox");
6273
6276
  attr(input, "name", /*name*/ ctx[0]);
6274
- input.checked = input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[14]];
6275
- attr(span0, "class", "check-box-icon svelte-15x08a");
6277
+ input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[15]];
6278
+ attr(span0, "class", "check-box-icon svelte-8y6qqs");
6276
6279
 
6277
- attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[14]]
6280
+ attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[15]]
6278
6281
  ? ' _checked'
6279
- : ''}`) + " svelte-15x08a"));
6282
+ : ''}`) + " svelte-8y6qqs"));
6280
6283
 
6281
- attr(span1, "style", /*_buttonStyle*/ ctx[4]);
6282
- attr(span2, "class", "check-box-text svelte-15x08a");
6283
- attr(span2, "style", /*textStyle*/ ctx[1]);
6284
- attr(label, "class", "check-box svelte-15x08a");
6284
+ attr(span1, "style", /*_buttonStyle*/ ctx[5]);
6285
+ attr(span2, "class", "check-box-text svelte-8y6qqs");
6286
+ attr(span2, "style", /*textStyle*/ ctx[2]);
6287
+ attr(label, "class", "check-box svelte-8y6qqs");
6285
6288
  },
6286
6289
  m(target, anchor) {
6287
6290
  insert(target, label, anchor);
@@ -6295,7 +6298,7 @@ function create_each_block$2(ctx) {
6295
6298
  append(label, t3);
6296
6299
 
6297
6300
  if (!mounted) {
6298
- dispose = listen(input, "change", /*handleChange*/ ctx[6](/*i*/ ctx[14]));
6301
+ dispose = listen(input, "change", /*handleChange*/ ctx[7](/*i*/ ctx[15]));
6299
6302
  mounted = true;
6300
6303
  }
6301
6304
  },
@@ -6306,24 +6309,24 @@ function create_each_block$2(ctx) {
6306
6309
  attr(input, "name", /*name*/ ctx[0]);
6307
6310
  }
6308
6311
 
6309
- if (dirty & /*isCheckedArray*/ 8 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[3][/*i*/ ctx[14]])) {
6312
+ if (dirty & /*isCheckedArray*/ 16 && input_checked_value !== (input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[15]])) {
6310
6313
  input.checked = input_checked_value;
6311
6314
  }
6312
6315
 
6313
- if (dirty & /*isCheckedArray*/ 8 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[3][/*i*/ ctx[14]]
6316
+ if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[15]]
6314
6317
  ? ' _checked'
6315
- : ''}`) + " svelte-15x08a"))) {
6318
+ : ''}`) + " svelte-8y6qqs"))) {
6316
6319
  attr(span1, "class", span1_class_value);
6317
6320
  }
6318
6321
 
6319
- if (dirty & /*_buttonStyle*/ 16) {
6320
- attr(span1, "style", /*_buttonStyle*/ ctx[4]);
6322
+ if (dirty & /*_buttonStyle*/ 32) {
6323
+ attr(span1, "style", /*_buttonStyle*/ ctx[5]);
6321
6324
  }
6322
6325
 
6323
- if (dirty & /*_options*/ 4 && t2_value !== (t2_value = /*option*/ ctx[12] + "")) set_data(t2, t2_value);
6326
+ if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[13] + "")) set_data(t2, t2_value);
6324
6327
 
6325
- if (dirty & /*textStyle*/ 2) {
6326
- attr(span2, "style", /*textStyle*/ ctx[1]);
6328
+ if (dirty & /*textStyle*/ 4) {
6329
+ attr(span2, "style", /*textStyle*/ ctx[2]);
6327
6330
  }
6328
6331
  },
6329
6332
  d(detaching) {
@@ -6336,7 +6339,7 @@ function create_each_block$2(ctx) {
6336
6339
 
6337
6340
  function create_fragment$6(ctx) {
6338
6341
  let div;
6339
- let each_value = /*_options*/ ctx[2];
6342
+ let each_value = /*_options*/ ctx[3];
6340
6343
  let each_blocks = [];
6341
6344
 
6342
6345
  for (let i = 0; i < each_value.length; i += 1) {
@@ -6351,7 +6354,8 @@ function create_fragment$6(ctx) {
6351
6354
  each_blocks[i].c();
6352
6355
  }
6353
6356
 
6354
- attr(div, "class", "check-boxes svelte-15x08a");
6357
+ attr(div, "class", "check-boxes svelte-8y6qqs");
6358
+ attr(div, "style", /*layoutStyle*/ ctx[1]);
6355
6359
  },
6356
6360
  m(target, anchor) {
6357
6361
  insert(target, div, anchor);
@@ -6361,8 +6365,8 @@ function create_fragment$6(ctx) {
6361
6365
  }
6362
6366
  },
6363
6367
  p(ctx, [dirty]) {
6364
- if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 95) {
6365
- each_value = /*_options*/ ctx[2];
6368
+ if (dirty & /*textStyle, _options, isCheckedArray, _buttonStyle, name, handleChange*/ 189) {
6369
+ each_value = /*_options*/ ctx[3];
6366
6370
  let i;
6367
6371
 
6368
6372
  for (i = 0; i < each_value.length; i += 1) {
@@ -6383,6 +6387,10 @@ function create_fragment$6(ctx) {
6383
6387
 
6384
6388
  each_blocks.length = each_value.length;
6385
6389
  }
6390
+
6391
+ if (dirty & /*layoutStyle*/ 2) {
6392
+ attr(div, "style", /*layoutStyle*/ ctx[1]);
6393
+ }
6386
6394
  },
6387
6395
  i: noop,
6388
6396
  o: noop,
@@ -6401,6 +6409,7 @@ function instance$6($$self, $$props, $$invalidate) {
6401
6409
  let { name = '' } = $$props;
6402
6410
  let { options = 'チェックボックス1,チェックボックス2,チェックボックス3' } = $$props;
6403
6411
  let { required = false } = $$props;
6412
+ let { layoutStyle = 'flex-direction: column; gap: 0px;' } = $$props;
6404
6413
  let { textStyle = 'color: #333; font-size: 12px;' } = $$props;
6405
6414
 
6406
6415
  let { buttonStyle = {
@@ -6421,12 +6430,12 @@ function instance$6($$self, $$props, $$invalidate) {
6421
6430
  }
6422
6431
  });
6423
6432
 
6424
- component_subscribe($$self, value, value => $$invalidate(10, $value = value));
6433
+ component_subscribe($$self, value, value => $$invalidate(11, $value = value));
6425
6434
 
6426
6435
  const handleChange = index => event => {
6427
6436
  if (isCheckedArray[index] !== event.target.checked) {
6428
- $$invalidate(3, isCheckedArray[index] = event.target.checked, isCheckedArray);
6429
- $$invalidate(3, isCheckedArray = [...isCheckedArray]);
6437
+ $$invalidate(4, isCheckedArray[index] = event.target.checked, isCheckedArray);
6438
+ $$invalidate(4, isCheckedArray = [...isCheckedArray]);
6430
6439
  const updated = _options.filter((option, i) => isCheckedArray[i]);
6431
6440
  value.set(updated);
6432
6441
  }
@@ -6434,23 +6443,24 @@ function instance$6($$self, $$props, $$invalidate) {
6434
6443
 
6435
6444
  $$self.$$set = $$props => {
6436
6445
  if ('name' in $$props) $$invalidate(0, name = $$props.name);
6437
- if ('options' in $$props) $$invalidate(7, options = $$props.options);
6438
- if ('required' in $$props) $$invalidate(8, required = $$props.required);
6439
- if ('textStyle' in $$props) $$invalidate(1, textStyle = $$props.textStyle);
6440
- if ('buttonStyle' in $$props) $$invalidate(9, buttonStyle = $$props.buttonStyle);
6446
+ if ('options' in $$props) $$invalidate(8, options = $$props.options);
6447
+ if ('required' in $$props) $$invalidate(9, required = $$props.required);
6448
+ if ('layoutStyle' in $$props) $$invalidate(1, layoutStyle = $$props.layoutStyle);
6449
+ if ('textStyle' in $$props) $$invalidate(2, textStyle = $$props.textStyle);
6450
+ if ('buttonStyle' in $$props) $$invalidate(10, buttonStyle = $$props.buttonStyle);
6441
6451
  };
6442
6452
 
6443
6453
  $$self.$$.update = () => {
6444
- if ($$self.$$.dirty & /*options*/ 128) {
6445
- $$invalidate(2, _options = options.split(','));
6454
+ if ($$self.$$.dirty & /*options*/ 256) {
6455
+ $$invalidate(3, _options = options.split(','));
6446
6456
  }
6447
6457
 
6448
- if ($$self.$$.dirty & /*buttonStyle*/ 512) {
6449
- $$invalidate(4, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
6458
+ if ($$self.$$.dirty & /*buttonStyle*/ 1024) {
6459
+ $$invalidate(5, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
6450
6460
  }
6451
6461
 
6452
- if ($$self.$$.dirty & /*$value, _options*/ 1028) {
6453
- $$invalidate(3, isCheckedArray = (() => {
6462
+ if ($$self.$$.dirty & /*$value, _options*/ 2056) {
6463
+ $$invalidate(4, isCheckedArray = (() => {
6454
6464
  const checkedSet = new Set($value);
6455
6465
  return _options.map(option => checkedSet.has(option));
6456
6466
  })());
@@ -6459,6 +6469,7 @@ function instance$6($$self, $$props, $$invalidate) {
6459
6469
 
6460
6470
  return [
6461
6471
  name,
6472
+ layoutStyle,
6462
6473
  textStyle,
6463
6474
  _options,
6464
6475
  isCheckedArray,
@@ -6484,20 +6495,21 @@ class FormCheckBoxes extends SvelteComponent {
6484
6495
  safe_not_equal,
6485
6496
  {
6486
6497
  name: 0,
6487
- options: 7,
6488
- required: 8,
6489
- textStyle: 1,
6490
- buttonStyle: 9
6498
+ options: 8,
6499
+ required: 9,
6500
+ layoutStyle: 1,
6501
+ textStyle: 2,
6502
+ buttonStyle: 10
6491
6503
  },
6492
6504
  add_css$6
6493
6505
  );
6494
6506
  }
6495
6507
  }
6496
6508
 
6497
- /* src/components/FormRatingButtons.svelte generated by Svelte v3.53.1 */
6509
+ /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
6498
6510
 
6499
6511
  function add_css$5(target) {
6500
- append_styles(target, "svelte-1ysi4uv", ".rating-buttons.svelte-1ysi4uv.svelte-1ysi4uv{display:flex;justify-content:space-around;align-items:center;width:100%;height:100%}.rating-button.svelte-1ysi4uv.svelte-1ysi4uv{cursor:pointer;display:flex}.rating-button.svelte-1ysi4uv.svelte-1ysi4uv:not(._selected):hover{opacity:0.5}.rating-button.svelte-1ysi4uv svg.svelte-1ysi4uv{fill:var(--color-inactive);width:var(--size);height:var(--size)}.rating-button._selected.svelte-1ysi4uv svg.svelte-1ysi4uv{fill:var(--color-active)}");
6512
+ append_styles(target, "svelte-11mvrhg", ".rating-buttons.svelte-11mvrhg{display:flex;justify-content:space-around;align-items:center;width:100%;height:100%}.rating-button.svelte-11mvrhg{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s}");
6501
6513
  }
6502
6514
 
6503
6515
  function get_each_context$1(ctx, list, i) {
@@ -6506,108 +6518,43 @@ function get_each_context$1(ctx, list, i) {
6506
6518
  return child_ctx;
6507
6519
  }
6508
6520
 
6509
- // (60:30)
6510
- function create_if_block_1$1(ctx) {
6521
+ // (50:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
6522
+ function create_each_block$1(ctx) {
6511
6523
  let div;
6512
- let svg;
6513
- let path;
6514
- let t;
6515
- let div_class_value;
6524
+ let t0_value = /*i*/ ctx[11] + "";
6525
+ let t0;
6526
+ let t1;
6527
+ let div_style_value;
6516
6528
  let mounted;
6517
6529
  let dispose;
6518
6530
 
6519
6531
  return {
6520
6532
  c() {
6521
6533
  div = element("div");
6522
- svg = svg_element("svg");
6523
- path = svg_element("path");
6524
- t = space();
6525
- attr(path, "d", /*LIKERT_FACE_SVG_DATA*/ ctx[5][/*i*/ ctx[11]]);
6526
- attr(svg, "width", "24");
6527
- attr(svg, "height", "24");
6528
- attr(svg, "viewBox", "0 0 24 24");
6529
- attr(svg, "fill", "none");
6530
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6531
- attr(svg, "class", "svelte-1ysi4uv");
6532
- attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[11] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
6533
- attr(div, "style", /*_buttonStyle*/ ctx[1]);
6534
+ t0 = text(t0_value);
6535
+ t1 = space();
6536
+ attr(div, "class", "rating-button svelte-11mvrhg");
6537
+ attr(div, "style", div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[11] === /*_value*/ ctx[1]));
6534
6538
  },
6535
6539
  m(target, anchor) {
6536
6540
  insert(target, div, anchor);
6537
- append(div, svg);
6538
- append(svg, path);
6539
- append(div, t);
6541
+ append(div, t0);
6542
+ append(div, t1);
6540
6543
 
6541
6544
  if (!mounted) {
6542
- dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[11]));
6543
- mounted = true;
6544
- }
6545
- },
6546
- p(new_ctx, dirty) {
6547
- ctx = new_ctx;
6548
-
6549
- if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[11] === /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
6550
- attr(div, "class", div_class_value);
6551
- }
6552
-
6553
- if (dirty & /*_buttonStyle*/ 2) {
6554
- attr(div, "style", /*_buttonStyle*/ ctx[1]);
6555
- }
6556
- },
6557
- d(detaching) {
6558
- if (detaching) detach(div);
6559
- mounted = false;
6560
- dispose();
6561
- }
6562
- };
6563
- }
6564
-
6565
- // (54:4) {#if type === 'star'}
6566
- function create_if_block$1(ctx) {
6567
- let div;
6568
- let svg;
6569
- let path;
6570
- let t;
6571
- let div_class_value;
6572
- let mounted;
6573
- let dispose;
6574
-
6575
- return {
6576
- c() {
6577
- div = element("div");
6578
- svg = svg_element("svg");
6579
- path = svg_element("path");
6580
- t = space();
6581
- attr(path, "d", "M11.2184 0.80902L8.42249 6.78134L2.09938 7.72433C0.981006 7.90395 0.550862 9.3409 1.36814 10.1941L5.88464 14.8193L4.80928 21.3304C4.63723 22.498 5.84163 23.396 6.83096 22.8572L12.4658 19.7588L18.0577 22.8572C19.047 23.396 20.2514 22.498 20.0794 21.3304L19.004 14.8193L23.5205 10.1941C24.3378 9.3409 23.9077 7.90395 22.7893 7.72433L16.5092 6.78134L13.6702 0.80902C13.1971 -0.223786 11.7346 -0.268691 11.2184 0.80902Z");
6582
- attr(svg, "width", "24");
6583
- attr(svg, "height", "24");
6584
- attr(svg, "viewBox", "0 0 24 24");
6585
- attr(svg, "fill", "none");
6586
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
6587
- attr(svg, "class", "svelte-1ysi4uv");
6588
- attr(div, "class", div_class_value = "rating-button" + (/*i*/ ctx[11] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv");
6589
- attr(div, "style", /*_buttonStyle*/ ctx[1]);
6590
- },
6591
- m(target, anchor) {
6592
- insert(target, div, anchor);
6593
- append(div, svg);
6594
- append(svg, path);
6595
- append(div, t);
6545
+ dispose = listen(div, "click", function () {
6546
+ if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[11]))) /*handleClick*/ ctx[3](/*i*/ ctx[11]).apply(this, arguments);
6547
+ });
6596
6548
 
6597
- if (!mounted) {
6598
- dispose = listen(div, "click", /*handleClick*/ ctx[4](/*i*/ ctx[11]));
6599
6549
  mounted = true;
6600
6550
  }
6601
6551
  },
6602
6552
  p(new_ctx, dirty) {
6603
6553
  ctx = new_ctx;
6554
+ if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[11] + "")) set_data(t0, t0_value);
6604
6555
 
6605
- if (dirty & /*_value*/ 4 && div_class_value !== (div_class_value = "rating-button" + (/*i*/ ctx[11] <= /*_value*/ ctx[2] ? ' _selected' : '') + " svelte-1ysi4uv")) {
6606
- attr(div, "class", div_class_value);
6607
- }
6608
-
6609
- if (dirty & /*_buttonStyle*/ 2) {
6610
- attr(div, "style", /*_buttonStyle*/ ctx[1]);
6556
+ if (dirty & /*count, _value*/ 3 && div_style_value !== (div_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[11] === /*_value*/ ctx[1]))) {
6557
+ attr(div, "style", div_style_value);
6611
6558
  }
6612
6559
  },
6613
6560
  d(detaching) {
@@ -6618,53 +6565,9 @@ function create_if_block$1(ctx) {
6618
6565
  };
6619
6566
  }
6620
6567
 
6621
- // (53:2) {#each [...Array(5).keys()].map(i => i + 1) as i}
6622
- function create_each_block$1(ctx) {
6623
- let if_block_anchor;
6624
-
6625
- function select_block_type(ctx, dirty) {
6626
- if (/*type*/ ctx[0] === 'star') return create_if_block$1;
6627
- if (/*type*/ ctx[0] === 'face') return create_if_block_1$1;
6628
- }
6629
-
6630
- let current_block_type = select_block_type(ctx);
6631
- let if_block = current_block_type && current_block_type(ctx);
6632
-
6633
- return {
6634
- c() {
6635
- if (if_block) if_block.c();
6636
- if_block_anchor = empty();
6637
- },
6638
- m(target, anchor) {
6639
- if (if_block) if_block.m(target, anchor);
6640
- insert(target, if_block_anchor, anchor);
6641
- },
6642
- p(ctx, dirty) {
6643
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
6644
- if_block.p(ctx, dirty);
6645
- } else {
6646
- if (if_block) if_block.d(1);
6647
- if_block = current_block_type && current_block_type(ctx);
6648
-
6649
- if (if_block) {
6650
- if_block.c();
6651
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
6652
- }
6653
- }
6654
- },
6655
- d(detaching) {
6656
- if (if_block) {
6657
- if_block.d(detaching);
6658
- }
6659
-
6660
- if (detaching) detach(if_block_anchor);
6661
- }
6662
- };
6663
- }
6664
-
6665
6568
  function create_fragment$5(ctx) {
6666
6569
  let div;
6667
- let each_value = [...Array(5).keys()].map(func);
6570
+ let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func);
6668
6571
  let each_blocks = [];
6669
6572
 
6670
6573
  for (let i = 0; i < each_value.length; i += 1) {
@@ -6679,7 +6582,7 @@ function create_fragment$5(ctx) {
6679
6582
  each_blocks[i].c();
6680
6583
  }
6681
6584
 
6682
- attr(div, "class", "rating-buttons svelte-1ysi4uv");
6585
+ attr(div, "class", "rating-buttons svelte-11mvrhg");
6683
6586
  },
6684
6587
  m(target, anchor) {
6685
6588
  insert(target, div, anchor);
@@ -6689,8 +6592,8 @@ function create_fragment$5(ctx) {
6689
6592
  }
6690
6593
  },
6691
6594
  p(ctx, [dirty]) {
6692
- if (dirty & /*Array, _value, _buttonStyle, handleClick, type, LIKERT_FACE_SVG_DATA*/ 55) {
6693
- each_value = [...Array(5).keys()].map(func);
6595
+ if (dirty & /*getTextButtonStyle, Array, count, _value, handleClick*/ 27) {
6596
+ each_value = [...Array(/*count*/ ctx[0]).keys()].map(func);
6694
6597
  let i;
6695
6598
 
6696
6599
  for (i = 0; i < each_value.length; i += 1) {
@@ -6725,18 +6628,12 @@ const func = i => i + 1;
6725
6628
 
6726
6629
  function instance$5($$self, $$props, $$invalidate) {
6727
6630
  let _value;
6728
- let _buttonStyle;
6729
6631
  let $value;
6730
6632
  let { name = '' } = $$props;
6731
- let { type = 'star' } = $$props;
6732
6633
  let { required = false } = $$props;
6733
-
6734
- let { buttonStyle = {
6735
- size: '24px',
6736
- colorActive: '#2aab9f',
6737
- colorInactive: 'rgba(0, 16, 14, 0.2)'
6738
- } } = $$props;
6739
-
6634
+ let { count = 5 } = $$props;
6635
+ let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: none;' } = $$props;
6636
+ let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 0px 0px rgba(0, 16, 14, 0.03), 0px 8px 16px rgba(0, 16, 14, 0.3);' } = $$props;
6740
6637
  const { path: statePath } = getStateItemContext();
6741
6638
 
6742
6639
  const value = registerInput({
@@ -6755,47 +6652,41 @@ function instance$5($$self, $$props, $$invalidate) {
6755
6652
  value.set([String(index)]);
6756
6653
  };
6757
6654
 
6758
- // 5段階スケールで使用する顔絵文字のsvgデータ
6759
- const LIKERT_FACE_SVG_DATA = {
6760
- 1: 'M12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.4219 23.625 23.625 18.4219 23.625 12C23.625 5.57812 18.4219 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375ZM18.0469 7.17188C17.8594 6.9375 17.5312 6.89062 17.2969 7.03125L13.5469 9.28125C13.4062 9.375 13.3125 9.5625 13.3125 9.75C13.3125 9.98438 13.4062 10.1719 13.5469 10.2656L17.2969 12.5156C17.5781 12.6562 17.8594 12.5625 18.0469 12.375C18.1875 12.1875 18.2344 11.8594 18.0469 11.6719L16.4531 9.75L18.0469 7.875C18.2344 7.6875 18.1875 7.35938 18.0469 7.17188ZM10.6875 9.75C10.6875 9.5625 10.5469 9.375 10.4062 9.28125L6.65625 7.03125C6.42188 6.89062 6.09375 6.9375 5.90625 7.17188C5.76562 7.35938 5.76562 7.6875 5.90625 7.875L7.5 9.75L5.90625 11.6719C5.76562 11.8594 5.76562 12.1875 5.90625 12.375C6.09375 12.5625 6.375 12.6562 6.65625 12.5156L10.4062 10.2656C10.5469 10.1719 10.6875 9.98438 10.6875 9.75ZM12 12.75C9.84375 12.75 7.26562 14.5781 6.9375 17.1562C6.84375 17.7188 7.26562 18.1406 7.64062 18C8.71875 17.5312 10.3125 17.25 12 17.25C13.6875 17.25 15.2344 17.5312 16.3125 18C16.6875 18.1406 17.1094 17.7188 17.0156 17.1562C16.6875 14.5781 14.1094 12.75 12 12.75Z',
6761
- 2: 'M12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.4219 23.625 23.625 18.4219 23.625 12C23.625 5.57812 18.4219 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375ZM8.25 11.25C9.04688 11.25 9.75 10.5938 9.75 9.75C9.75 8.95312 9.04688 8.25 8.25 8.25C7.40625 8.25 6.75 8.95312 6.75 9.75C6.75 10.5938 7.40625 11.25 8.25 11.25ZM15.75 8.25C14.9062 8.25 14.25 8.95312 14.25 9.75C14.25 10.5938 14.9062 11.25 15.75 11.25C16.5469 11.25 17.25 10.5938 17.25 9.75C17.25 8.95312 16.5469 8.25 15.75 8.25ZM12 14.25C10.0781 14.25 8.34375 15.0938 7.125 16.5469C6.70312 17.0156 6.79688 17.7188 7.26562 18.1406C7.73438 18.5156 8.4375 18.4688 8.85938 18C9.60938 17.0625 10.7812 16.5 12 16.5C13.1719 16.5 14.3438 17.0625 15.0938 18C15.5156 18.4219 16.2188 18.5625 16.6875 18.1406C17.1562 17.7188 17.25 17.0156 16.8281 16.5469C15.6562 15.0938 13.875 14.25 12 14.25Z',
6762
- 3: 'M12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.4219 23.625 23.625 18.4219 23.625 12C23.625 5.57812 18.4219 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375ZM8.25 11.25C9.04688 11.25 9.75 10.5938 9.75 9.75C9.75 8.95312 9.04688 8.25 8.25 8.25C7.40625 8.25 6.75 8.95312 6.75 9.75C6.75 10.5938 7.40625 11.25 8.25 11.25ZM15.75 8.25C14.9062 8.25 14.25 8.95312 14.25 9.75C14.25 10.5938 14.9062 11.25 15.75 11.25C16.5469 11.25 17.25 10.5938 17.25 9.75C17.25 8.95312 16.5469 8.25 15.75 8.25ZM16.125 15H7.875C7.21875 15 6.75 15.5156 6.75 16.125C6.75 16.7812 7.21875 17.25 7.875 17.25H16.125C16.7344 17.25 17.25 16.7812 17.25 16.125C17.25 15.5156 16.7344 15 16.125 15Z',
6763
- 4: 'M15.75 8.4375C14.5312 8.4375 13.125 9.23438 12.9375 10.4531C12.8438 10.9688 13.4531 11.2969 13.8281 10.9219L14.2969 10.5469C15 9.9375 16.4531 9.9375 17.1562 10.5469L17.625 10.9219C18 11.2969 18.6094 10.9688 18.5156 10.4531C18.3281 9.23438 16.9219 8.4375 15.75 8.4375ZM8.25 11.25C9.04688 11.25 9.75 10.5938 9.75 9.75C9.75 8.95312 9.04688 8.25 8.25 8.25C7.40625 8.25 6.75 8.95312 6.75 9.75C6.75 10.5938 7.40625 11.25 8.25 11.25ZM16.9219 14.2969C15.7031 14.6719 13.9219 14.9062 12 14.9062C10.0312 14.9062 8.25 14.6719 7.03125 14.2969C6.5625 14.1562 6.14062 14.5781 6.1875 15C6.5625 17.25 9.5625 18.75 12 18.75C14.3906 18.75 17.3906 17.25 17.7656 15C17.8125 14.5781 17.3906 14.1562 16.9219 14.2969ZM12 0.375C5.57812 0.375 0.375 5.625 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.375 23.625 23.625 18.4219 23.625 12C23.625 5.625 18.375 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375Z',
6764
- 5: 'M12 0.375C5.57812 0.375 0.375 5.57812 0.375 12C0.375 18.4219 5.57812 23.625 12 23.625C18.4219 23.625 23.625 18.4219 23.625 12C23.625 5.57812 18.4219 0.375 12 0.375ZM12 21.375C6.79688 21.375 2.625 17.2031 2.625 12C2.625 6.84375 6.79688 2.625 12 2.625C17.1562 2.625 21.375 6.84375 21.375 12C21.375 17.2031 17.1562 21.375 12 21.375ZM16.9219 14.2969C15.7031 14.6719 13.9219 14.9062 12 14.9062C10.0312 14.9062 8.25 14.6719 7.03125 14.2969C6.5625 14.1562 6.14062 14.5312 6.1875 15C6.5625 17.2031 9.5625 18.75 12 18.75C14.4375 18.75 17.3906 17.2031 17.7656 15C17.8125 14.5781 17.3906 14.1562 16.9219 14.2969ZM5.90625 12.375C6.09375 12.5625 6.375 12.6562 6.65625 12.5156L10.4062 10.2656C10.5469 10.1719 10.6875 9.98438 10.6875 9.75C10.6875 9.5625 10.5469 9.375 10.4062 9.28125L6.65625 7.03125C6.42188 6.89062 6.09375 6.9375 5.90625 7.17188C5.76562 7.35938 5.76562 7.6875 5.90625 7.875L7.5 9.75L5.90625 11.6719C5.76562 11.8594 5.76562 12.1875 5.90625 12.375ZM17.2969 12.5156C17.5781 12.6562 17.8594 12.5625 18.0469 12.375C18.1875 12.1875 18.1875 11.8594 18.0469 11.6719L16.4531 9.75L18.0469 7.875C18.2344 7.6875 18.1875 7.35938 18.0469 7.17188C17.8594 6.9375 17.5312 6.89062 17.2969 7.03125L13.5469 9.28125C13.4062 9.375 13.3125 9.5625 13.3125 9.75C13.3125 9.98438 13.4062 10.1719 13.5469 10.2656L17.2969 12.5156Z'
6765
- };
6655
+ function getTextButtonStyle(isActive) {
6656
+ return isActive
6657
+ ? [...buttonStyle.split(';'), ...buttonActiveStyle.split(';')].join(';')
6658
+ : buttonStyle;
6659
+ }
6766
6660
 
6767
6661
  $$self.$$set = $$props => {
6768
- if ('name' in $$props) $$invalidate(6, name = $$props.name);
6769
- if ('type' in $$props) $$invalidate(0, type = $$props.type);
6770
- if ('required' in $$props) $$invalidate(7, required = $$props.required);
6771
- if ('buttonStyle' in $$props) $$invalidate(8, buttonStyle = $$props.buttonStyle);
6662
+ if ('name' in $$props) $$invalidate(5, name = $$props.name);
6663
+ if ('required' in $$props) $$invalidate(6, required = $$props.required);
6664
+ if ('count' in $$props) $$invalidate(0, count = $$props.count);
6665
+ if ('buttonStyle' in $$props) $$invalidate(7, buttonStyle = $$props.buttonStyle);
6666
+ if ('buttonActiveStyle' in $$props) $$invalidate(8, buttonActiveStyle = $$props.buttonActiveStyle);
6772
6667
  };
6773
6668
 
6774
6669
  $$self.$$.update = () => {
6775
6670
  if ($$self.$$.dirty & /*$value*/ 512) {
6776
- $$invalidate(2, _value = Number($value[0] ?? -1));
6777
- }
6778
-
6779
- if ($$self.$$.dirty & /*buttonStyle*/ 256) {
6780
- $$invalidate(1, _buttonStyle = `--size: ${buttonStyle.size}; --color-active: ${buttonStyle.colorActive}; --color-inactive: ${buttonStyle.colorInactive}`);
6671
+ $$invalidate(1, _value = Number($value[0] ?? -1));
6781
6672
  }
6782
6673
  };
6783
6674
 
6784
6675
  return [
6785
- type,
6786
- _buttonStyle,
6676
+ count,
6787
6677
  _value,
6788
6678
  value,
6789
6679
  handleClick,
6790
- LIKERT_FACE_SVG_DATA,
6680
+ getTextButtonStyle,
6791
6681
  name,
6792
6682
  required,
6793
6683
  buttonStyle,
6684
+ buttonActiveStyle,
6794
6685
  $value
6795
6686
  ];
6796
6687
  }
6797
6688
 
6798
- class FormRatingButtons extends SvelteComponent {
6689
+ class FormRatingButtonsNumber extends SvelteComponent {
6799
6690
  constructor(options) {
6800
6691
  super();
6801
6692
 
@@ -6806,10 +6697,11 @@ class FormRatingButtons extends SvelteComponent {
6806
6697
  create_fragment$5,
6807
6698
  safe_not_equal,
6808
6699
  {
6809
- name: 6,
6810
- type: 0,
6811
- required: 7,
6812
- buttonStyle: 8
6700
+ name: 5,
6701
+ required: 6,
6702
+ count: 0,
6703
+ buttonStyle: 7,
6704
+ buttonActiveStyle: 8
6813
6705
  },
6814
6706
  add_css$5
6815
6707
  );
@@ -8100,4 +7992,4 @@ class ImageBlock extends SvelteComponent {
8100
7992
  }
8101
7993
  }
8102
7994
 
8103
- export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultEdgePosition, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyAction, destroyed, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, updateEventHandlers, updateVariables, variables, widget };
7995
+ export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultEdgePosition, DefaultFormButtonStyle, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyAction, destroyed, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEventHandlers, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, getVariables, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, updateEventHandlers, updateVariables, variables, widget };