@plaidev/karte-action-sdk 1.1.212 → 1.1.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { writable, get } from 'svelte/store';
2
2
  import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1, setContext, getContext, createEventDispatcher } from 'svelte';
3
- import { SvelteComponent, init, safe_not_equal, element, insert, noop, detach, component_subscribe, attr, create_slot, create_component, space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, null_to_empty, listen, assign, set_attributes, toggle_class, get_spread_update, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, HtmlTag, construct_svelte_component, subscribe } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, element, insert, noop, detach, component_subscribe, attr, create_slot, create_component, space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, null_to_empty, listen, assign, set_attributes, toggle_class, get_spread_update, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, set_store_value, run_all, HtmlTag, construct_svelte_component, subscribe } from 'svelte/internal';
4
4
  import { linear, elasticOut, cubicOut } from 'svelte/easing';
5
5
 
6
6
  /** @internal */
@@ -593,6 +593,52 @@ const DefaultModalBreakPoint = {
593
593
  elasticity: DefaultElasticity,
594
594
  },
595
595
  };
596
+ const FormIdentifyTextFields = [
597
+ 'email',
598
+ 'phone',
599
+ 'first_name',
600
+ 'last_name',
601
+ 'address',
602
+ ];
603
+ /** @internal */
604
+ const FormIdentifyTextFieldValidations = {
605
+ email: {
606
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
607
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
608
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
609
+ flags: '',
610
+ },
611
+ phone: {
612
+ pattern: '^(0{1}\\d{9,10})$',
613
+ flags: '',
614
+ },
615
+ first_name: {
616
+ pattern: '',
617
+ flags: '',
618
+ },
619
+ last_name: {
620
+ pattern: '',
621
+ flags: '',
622
+ },
623
+ address: {
624
+ pattern: '',
625
+ flags: '',
626
+ },
627
+ };
628
+ /** @internal */
629
+ const FormIdentifyTextFieldPlaceholders = {
630
+ email: 'メールアドレスを入力',
631
+ phone: '電話番号を入力',
632
+ first_name: '名前(名)を入力',
633
+ last_name: '名前(姓)を入力',
634
+ address: '住所',
635
+ };
636
+ /** @internal */
637
+ const DefaultFormIdentifyTextField = 'email';
638
+ /** @internal */
639
+ const FormIdentifyBooleanFields = ['subscription', 'phone_subscribe'];
640
+ /** @internal */
641
+ const DefaultFormIdentifyBooleanField = 'subscription';
596
642
 
597
643
  /**
598
644
  * Store to handle action setting
@@ -991,6 +1037,12 @@ function resetVariables() {
991
1037
  * @internal
992
1038
  */
993
1039
  const formData = writable({});
1040
+ /**
1041
+ * Store for identify form data
1042
+ *
1043
+ * @internal
1044
+ */
1045
+ const identifyFormData = writable({});
994
1046
 
995
1047
  /**
996
1048
  * アクションのログの記録の管理
@@ -1740,11 +1792,7 @@ function createModal(App, options = {
1740
1792
  context: { api_key: '' },
1741
1793
  }) {
1742
1794
  let app = null;
1743
- const data = {
1744
- ...options.props,
1745
- ...options.variables,
1746
- ...getVariables(),
1747
- };
1795
+ const data = getVariables();
1748
1796
  const actionProps = {
1749
1797
  send: options.send,
1750
1798
  publish: options.publish,
@@ -2050,21 +2098,14 @@ async function runScript$1(options = {
2050
2098
  }) {
2051
2099
  if (!options.onCreate)
2052
2100
  return;
2053
- let data = {
2054
- ...options.props,
2055
- ...options.variables,
2056
- ...getVariables(),
2057
- };
2101
+ let data = getVariables();
2058
2102
  initialize({ send: options.send, initialState: data.initial_state });
2059
2103
  initActionTable(options.localVariablesQuery);
2060
2104
  const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key);
2061
2105
  if (!success)
2062
2106
  return;
2063
2107
  // Action Tableの取得結果を反映する
2064
- data = {
2065
- ...data,
2066
- ...getVariables(),
2067
- };
2108
+ data = getVariables();
2068
2109
  const actionProps = {
2069
2110
  send: options.send,
2070
2111
  publish: options.publish,
@@ -2165,11 +2206,11 @@ function create(App, options = {
2165
2206
  karteTemplate: {},
2166
2207
  context: { api_key: '' },
2167
2208
  }) {
2168
- const data = {
2209
+ setVariables({
2169
2210
  ...options.props,
2170
2211
  ...options.variables,
2171
- ...getVariables(),
2172
- };
2212
+ });
2213
+ const data = getVariables();
2173
2214
  const actionProps = {
2174
2215
  send: options.send,
2175
2216
  publish: options.publish,
@@ -2589,7 +2630,7 @@ function create_if_block$9(ctx) {
2589
2630
  };
2590
2631
  }
2591
2632
 
2592
- function create_fragment$y(ctx) {
2633
+ function create_fragment$A(ctx) {
2593
2634
  let head;
2594
2635
  let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
2595
2636
 
@@ -2625,7 +2666,7 @@ function create_fragment$y(ctx) {
2625
2666
  };
2626
2667
  }
2627
2668
 
2628
- function instance$y($$self, $$props, $$invalidate) {
2669
+ function instance$A($$self, $$props, $$invalidate) {
2629
2670
  let $fonts;
2630
2671
  component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
2631
2672
  let googleFontUrl = '';
@@ -2654,13 +2695,13 @@ function instance$y($$self, $$props, $$invalidate) {
2654
2695
  class Header extends SvelteComponent {
2655
2696
  constructor(options) {
2656
2697
  super();
2657
- init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
2698
+ init(this, options, instance$A, create_fragment$A, safe_not_equal, {});
2658
2699
  }
2659
2700
  }
2660
2701
 
2661
2702
  /* src/components/State.svelte generated by Svelte v3.53.1 */
2662
2703
 
2663
- function create_fragment$x(ctx) {
2704
+ function create_fragment$z(ctx) {
2664
2705
  let header;
2665
2706
  let t;
2666
2707
  let current;
@@ -2719,7 +2760,7 @@ function create_fragment$x(ctx) {
2719
2760
  };
2720
2761
  }
2721
2762
 
2722
- function instance$x($$self, $$props, $$invalidate) {
2763
+ function instance$z($$self, $$props, $$invalidate) {
2723
2764
  let { $$slots: slots = {}, $$scope } = $$props;
2724
2765
 
2725
2766
  $$self.$$set = $$props => {
@@ -2732,13 +2773,13 @@ function instance$x($$self, $$props, $$invalidate) {
2732
2773
  class State extends SvelteComponent {
2733
2774
  constructor(options) {
2734
2775
  super();
2735
- init(this, options, instance$x, create_fragment$x, safe_not_equal, {});
2776
+ init(this, options, instance$z, create_fragment$z, safe_not_equal, {});
2736
2777
  }
2737
2778
  }
2738
2779
 
2739
2780
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
2740
2781
 
2741
- function add_css$t(target) {
2782
+ function add_css$v(target) {
2742
2783
  append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
2743
2784
  }
2744
2785
 
@@ -2805,7 +2846,7 @@ function create_if_block$8(ctx) {
2805
2846
  };
2806
2847
  }
2807
2848
 
2808
- function create_fragment$w(ctx) {
2849
+ function create_fragment$y(ctx) {
2809
2850
  let if_block_anchor;
2810
2851
  let current;
2811
2852
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
@@ -2866,7 +2907,7 @@ function getStateItemContext() {
2866
2907
  return getContext(STATE_ITEM_CONTEXT_KEY);
2867
2908
  }
2868
2909
 
2869
- function instance$w($$self, $$props, $$invalidate) {
2910
+ function instance$y($$self, $$props, $$invalidate) {
2870
2911
  let $state;
2871
2912
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
2872
2913
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -2892,10 +2933,11 @@ function instance$w($$self, $$props, $$invalidate) {
2892
2933
  class StateItem extends SvelteComponent {
2893
2934
  constructor(options) {
2894
2935
  super();
2895
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { path: 0 }, add_css$t);
2936
+ init(this, options, instance$y, create_fragment$y, safe_not_equal, { path: 0 }, add_css$v);
2896
2937
  }
2897
2938
  }
2898
2939
 
2940
+ const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2899
2941
  function isEmpty(value) {
2900
2942
  if (Array.isArray(value)) {
2901
2943
  return value.length === 0;
@@ -2905,51 +2947,74 @@ function isEmpty(value) {
2905
2947
  }
2906
2948
  }
2907
2949
  /** @internal */
2908
- function registerInput({ name, statePath, validator = () => true, initialValue, }) {
2909
- const writableValue = {
2910
- subscribe(run) {
2911
- return formData.subscribe(formData => {
2912
- run(formData[name]?.value);
2913
- });
2914
- },
2915
- set(value) {
2916
- formData.update(prev => ({
2917
- ...prev,
2918
- [name]: {
2919
- statePath,
2920
- value,
2921
- isValid: validator(value),
2922
- },
2923
- }));
2924
- },
2925
- update(updater) {
2926
- formData.update(prev => {
2927
- const prevValue = prev[name]?.value;
2928
- return {
2950
+ function createInputRegisterer(formData) {
2951
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2952
+ const writableValue = {
2953
+ subscribe(run) {
2954
+ return formData.subscribe(formData => {
2955
+ run(formData[name]?.value);
2956
+ });
2957
+ },
2958
+ set(value) {
2959
+ formData.update(prev => ({
2929
2960
  ...prev,
2930
2961
  [name]: {
2931
2962
  statePath,
2932
- value: updater(prevValue),
2933
- isValid: validator(prevValue),
2963
+ value,
2964
+ isValid: validator(value),
2934
2965
  },
2935
- };
2936
- });
2937
- },
2966
+ }));
2967
+ },
2968
+ update(updater) {
2969
+ formData.update(prev => {
2970
+ const prevValue = prev[name]?.value;
2971
+ if (prevValue === undefined)
2972
+ return prev;
2973
+ const value = updater(prevValue);
2974
+ return {
2975
+ ...prev,
2976
+ [name]: {
2977
+ statePath,
2978
+ value,
2979
+ isValid: validator(value),
2980
+ },
2981
+ };
2982
+ });
2983
+ },
2984
+ };
2985
+ const readableIsValid = {
2986
+ subscribe(run) {
2987
+ return formData.subscribe(formData => {
2988
+ run(formData[name]?.isValid);
2989
+ });
2990
+ },
2991
+ };
2992
+ if (isEmpty(get(writableValue))) {
2993
+ writableValue.set(initialValue);
2994
+ }
2995
+ return {
2996
+ value: writableValue,
2997
+ isValid: readableIsValid,
2998
+ };
2938
2999
  };
2939
- if (isEmpty(get(writableValue))) {
2940
- writableValue.set(initialValue);
2941
- }
2942
- return writableValue;
3000
+ return registerInput;
2943
3001
  }
2944
3002
  /** @internal */
2945
- const getValuesAreValidReader = statePath => ({
3003
+ const registerInput = createInputRegisterer(formData);
3004
+ /** @internal */
3005
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
3006
+ function validateFormData(formData, statePath) {
3007
+ return Object.entries(formData)
3008
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
3009
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
3010
+ }
3011
+ /** @internal */
3012
+ const getValuesAreValidReadable = statePath => ({
2946
3013
  subscribe(callback) {
2947
- return formData.subscribe(formData => {
2948
- const valuesAreValid = Object.entries(formData)
2949
- .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2950
- .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
3014
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
3015
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2951
3016
  callback(valuesAreValid);
2952
- });
3017
+ }));
2953
3018
  },
2954
3019
  });
2955
3020
  function formDataToEventValues(campaignId, formData) {
@@ -2977,14 +3042,25 @@ function formDataToEventValues(campaignId, formData) {
2977
3042
  },
2978
3043
  };
2979
3044
  }
3045
+ function formDataToIdentifyEventValues(formData) {
3046
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
3047
+ const value = dataItem.value;
3048
+ return [name, value];
3049
+ }));
3050
+ }
2980
3051
  /** @internal */
2981
3052
  function submit() {
2982
3053
  const systemConfig = getSystem();
2983
3054
  const campaignId = systemConfig.campaignId;
2984
3055
  if (campaignId) {
2985
3056
  const formData$1 = get(formData);
3057
+ const identifyFormData$1 = get(identifyFormData);
2986
3058
  const values = formDataToEventValues(campaignId, formData$1);
2987
- return values;
3059
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
3060
+ if (Object.keys(identifyValues).length > 0) {
3061
+ identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
3062
+ }
3063
+ return { values, identifyValues };
2988
3064
  }
2989
3065
  return {};
2990
3066
  }
@@ -3043,8 +3119,11 @@ const runScript = (handlerName) => () => {
3043
3119
  };
3044
3120
  /** @internal */
3045
3121
  const submitForm = (to) => () => {
3046
- const values = submit();
3122
+ const { values, identifyValues } = submit();
3047
3123
  send_event('_answer_question', values);
3124
+ if (Object.keys(identifyValues).length > 0) {
3125
+ send_event('identify', identifyValues);
3126
+ }
3048
3127
  _moveTo(to);
3049
3128
  };
3050
3129
  /** @internal */
@@ -3160,7 +3239,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
3160
3239
 
3161
3240
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3162
3241
 
3163
- function add_css$s(target) {
3242
+ function add_css$u(target) {
3164
3243
  append_styles(target, "svelte-g6ucc2", ".background.svelte-g6ucc2{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3165
3244
  }
3166
3245
 
@@ -3197,7 +3276,7 @@ function create_if_block$7(ctx) {
3197
3276
  };
3198
3277
  }
3199
3278
 
3200
- function create_fragment$v(ctx) {
3279
+ function create_fragment$x(ctx) {
3201
3280
  let if_block_anchor;
3202
3281
  let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$7(ctx);
3203
3282
 
@@ -3233,7 +3312,7 @@ function create_fragment$v(ctx) {
3233
3312
  };
3234
3313
  }
3235
3314
 
3236
- function instance$v($$self, $$props, $$invalidate) {
3315
+ function instance$x($$self, $$props, $$invalidate) {
3237
3316
  let { backgroundOverlay = false } = $$props;
3238
3317
  let { class: className = undefined } = $$props;
3239
3318
  const dispatch = createEventDispatcher();
@@ -3250,7 +3329,7 @@ function instance$v($$self, $$props, $$invalidate) {
3250
3329
  class BackgroundOverlay extends SvelteComponent {
3251
3330
  constructor(options) {
3252
3331
  super();
3253
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3332
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$u);
3254
3333
  }
3255
3334
  }
3256
3335
 
@@ -3290,8 +3369,8 @@ function checkStopPropagation(eventName, handler) {
3290
3369
 
3291
3370
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3292
3371
 
3293
- function add_css$r(target) {
3294
- append_styles(target, "svelte-1dtbrzj", ".button.svelte-1dtbrzj{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-1dtbrzj:link,.button.svelte-1dtbrzj:visited,.button.svelte-1dtbrzj:active,.button.svelte-1dtbrzj:hover{color:inherit}");
3372
+ function add_css$t(target) {
3373
+ append_styles(target, "svelte-1kmu8zp", ".button.svelte-1kmu8zp{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-1kmu8zp:link,.button.svelte-1kmu8zp:visited,.button.svelte-1kmu8zp:active,.button.svelte-1kmu8zp:hover{color:inherit}");
3295
3374
  }
3296
3375
 
3297
3376
  // (50:0) {:else}
@@ -3320,7 +3399,7 @@ function create_else_block$4(ctx) {
3320
3399
  button = element("button");
3321
3400
  if (default_slot) default_slot.c();
3322
3401
  set_attributes(button, button_data);
3323
- toggle_class(button, "svelte-1dtbrzj", true);
3402
+ toggle_class(button, "svelte-1kmu8zp", true);
3324
3403
  },
3325
3404
  m(target, anchor) {
3326
3405
  insert(target, button, anchor);
@@ -3359,7 +3438,7 @@ function create_else_block$4(ctx) {
3359
3438
  dataAttrStopPropagation('click')
3360
3439
  ]));
3361
3440
 
3362
- toggle_class(button, "svelte-1dtbrzj", true);
3441
+ toggle_class(button, "svelte-1kmu8zp", true);
3363
3442
  },
3364
3443
  i(local) {
3365
3444
  if (current) return;
@@ -3390,7 +3469,7 @@ function create_if_block_2$1(ctx) {
3390
3469
  c() {
3391
3470
  div = element("div");
3392
3471
  if (default_slot) default_slot.c();
3393
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1dtbrzj"));
3472
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
3394
3473
  attr(div, "style", /*style*/ ctx[1]);
3395
3474
  },
3396
3475
  m(target, anchor) {
@@ -3474,7 +3553,7 @@ function create_if_block_1$2(ctx) {
3474
3553
  a = element("a");
3475
3554
  if (default_slot) default_slot.c();
3476
3555
  set_attributes(a, a_data);
3477
- toggle_class(a, "svelte-1dtbrzj", true);
3556
+ toggle_class(a, "svelte-1kmu8zp", true);
3478
3557
  },
3479
3558
  m(target, anchor) {
3480
3559
  insert(target, a, anchor);
@@ -3516,7 +3595,7 @@ function create_if_block_1$2(ctx) {
3516
3595
  dataAttrStopPropagation('click')
3517
3596
  ]));
3518
3597
 
3519
- toggle_class(a, "svelte-1dtbrzj", true);
3598
+ toggle_class(a, "svelte-1kmu8zp", true);
3520
3599
  },
3521
3600
  i(local) {
3522
3601
  if (current) return;
@@ -3547,7 +3626,7 @@ function create_if_block$6(ctx) {
3547
3626
  c() {
3548
3627
  div = element("div");
3549
3628
  if (default_slot) default_slot.c();
3550
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1dtbrzj"));
3629
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
3551
3630
  attr(div, "style", /*style*/ ctx[1]);
3552
3631
  },
3553
3632
  m(target, anchor) {
@@ -3595,7 +3674,7 @@ function create_if_block$6(ctx) {
3595
3674
  };
3596
3675
  }
3597
3676
 
3598
- function create_fragment$u(ctx) {
3677
+ function create_fragment$w(ctx) {
3599
3678
  let current_block_type_index;
3600
3679
  let if_block;
3601
3680
  let if_block_anchor;
@@ -3668,7 +3747,7 @@ function create_fragment$u(ctx) {
3668
3747
 
3669
3748
  const BUTTON_CLASS = 'button';
3670
3749
 
3671
- function instance$u($$self, $$props, $$invalidate) {
3750
+ function instance$w($$self, $$props, $$invalidate) {
3672
3751
  let disabled;
3673
3752
  let $valuesAreValid;
3674
3753
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -3686,7 +3765,7 @@ function instance$u($$self, $$props, $$invalidate) {
3686
3765
  }
3687
3766
 
3688
3767
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3689
- const valuesAreValid = getValuesAreValidReader(statePath);
3768
+ const valuesAreValid = getValuesAreValidReadable(statePath);
3690
3769
  component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3691
3770
 
3692
3771
  $$self.$$set = $$props => {
@@ -3734,8 +3813,8 @@ class Button extends SvelteComponent {
3734
3813
  init(
3735
3814
  this,
3736
3815
  options,
3737
- instance$u,
3738
- create_fragment$u,
3816
+ instance$w,
3817
+ create_fragment$w,
3739
3818
  safe_not_equal,
3740
3819
  {
3741
3820
  onClick: 0,
@@ -3743,14 +3822,14 @@ class Button extends SvelteComponent {
3743
3822
  eventValue: 6,
3744
3823
  style: 1
3745
3824
  },
3746
- add_css$r
3825
+ add_css$t
3747
3826
  );
3748
3827
  }
3749
3828
  }
3750
3829
 
3751
3830
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
3752
3831
 
3753
- function add_css$q(target) {
3832
+ function add_css$s(target) {
3754
3833
  append_styles(target, "svelte-fsihgx", ".modal.svelte-fsihgx{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-fsihgx > .button{flex:auto;display:flex}.close.svelte-fsihgx{position:absolute;top:0;right:0}.close.svelte-fsihgx > .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-fsihgx > .button:hover{transform:rotate(90deg)}.modal-content.svelte-fsihgx{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-fsihgx{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) !important;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-fsihgx{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) !important;margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
3755
3834
  }
3756
3835
 
@@ -4145,7 +4224,7 @@ function create_default_slot$6(ctx) {
4145
4224
  };
4146
4225
  }
4147
4226
 
4148
- function create_fragment$t(ctx) {
4227
+ function create_fragment$v(ctx) {
4149
4228
  let show_if;
4150
4229
  let current_block_type_index;
4151
4230
  let if_block0;
@@ -4263,7 +4342,7 @@ function create_fragment$t(ctx) {
4263
4342
  };
4264
4343
  }
4265
4344
 
4266
- function instance$t($$self, $$props, $$invalidate) {
4345
+ function instance$v($$self, $$props, $$invalidate) {
4267
4346
  let close;
4268
4347
  let closable;
4269
4348
  let backgroundClick;
@@ -4566,8 +4645,8 @@ class Modal extends SvelteComponent {
4566
4645
  init(
4567
4646
  this,
4568
4647
  options,
4569
- instance$t,
4570
- create_fragment$t,
4648
+ instance$v,
4649
+ create_fragment$v,
4571
4650
  safe_not_equal,
4572
4651
  {
4573
4652
  onClick: 0,
@@ -4585,7 +4664,7 @@ class Modal extends SvelteComponent {
4585
4664
  closeButtonColor: 9,
4586
4665
  _closeStyle: 10
4587
4666
  },
4588
- add_css$q,
4667
+ add_css$s,
4589
4668
  [-1, -1]
4590
4669
  );
4591
4670
  }
@@ -4593,7 +4672,7 @@ class Modal extends SvelteComponent {
4593
4672
 
4594
4673
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
4595
4674
 
4596
- function create_fragment$s(ctx) {
4675
+ function create_fragment$u(ctx) {
4597
4676
  let div;
4598
4677
  let current;
4599
4678
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -4651,7 +4730,7 @@ function create_fragment$s(ctx) {
4651
4730
  };
4652
4731
  }
4653
4732
 
4654
- function instance$s($$self, $$props, $$invalidate) {
4733
+ function instance$u($$self, $$props, $$invalidate) {
4655
4734
  let _style;
4656
4735
  let { $$slots: slots = {}, $$scope } = $$props;
4657
4736
  let { width = '512px' } = $$props;
@@ -4696,7 +4775,7 @@ class Grid extends SvelteComponent {
4696
4775
  constructor(options) {
4697
4776
  super();
4698
4777
 
4699
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
4778
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, {
4700
4779
  width: 1,
4701
4780
  height: 2,
4702
4781
  rows: 3,
@@ -4709,11 +4788,11 @@ class Grid extends SvelteComponent {
4709
4788
 
4710
4789
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
4711
4790
 
4712
- function add_css$p(target) {
4791
+ function add_css$r(target) {
4713
4792
  append_styles(target, "svelte-1cryhmb", ".grid-item.svelte-1cryhmb{word-break:break-all;position:relative}.grid-item-inner.svelte-1cryhmb{position:absolute;inset:0}");
4714
4793
  }
4715
4794
 
4716
- function create_fragment$r(ctx) {
4795
+ function create_fragment$t(ctx) {
4717
4796
  let div1;
4718
4797
  let div0;
4719
4798
  let current;
@@ -4787,7 +4866,7 @@ function create_fragment$r(ctx) {
4787
4866
 
4788
4867
  const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
4789
4868
 
4790
- function instance$r($$self, $$props, $$invalidate) {
4869
+ function instance$t($$self, $$props, $$invalidate) {
4791
4870
  let _style;
4792
4871
  let { $$slots: slots = {}, $$scope } = $$props;
4793
4872
  let { x1 } = $$props;
@@ -4836,8 +4915,8 @@ class GridItem extends SvelteComponent {
4836
4915
  init(
4837
4916
  this,
4838
4917
  options,
4839
- instance$r,
4840
- create_fragment$r,
4918
+ instance$t,
4919
+ create_fragment$t,
4841
4920
  safe_not_equal,
4842
4921
  {
4843
4922
  x1: 2,
@@ -4848,7 +4927,7 @@ class GridItem extends SvelteComponent {
4848
4927
  background: 7,
4849
4928
  gridItemId: 0
4850
4929
  },
4851
- add_css$p
4930
+ add_css$r
4852
4931
  );
4853
4932
  }
4854
4933
  }
@@ -4944,7 +5023,7 @@ function create_each_block$6(ctx) {
4944
5023
  };
4945
5024
  }
4946
5025
 
4947
- function create_fragment$q(ctx) {
5026
+ function create_fragment$s(ctx) {
4948
5027
  let each_1_anchor;
4949
5028
  let each_value = /*items*/ ctx[0];
4950
5029
  let each_blocks = [];
@@ -5003,7 +5082,7 @@ function create_fragment$q(ctx) {
5003
5082
 
5004
5083
  const regexp = /(\r?\n)/;
5005
5084
 
5006
- function instance$q($$self, $$props, $$invalidate) {
5085
+ function instance$s($$self, $$props, $$invalidate) {
5007
5086
  let items;
5008
5087
  let { text = 'サンプルSample' } = $$props;
5009
5088
 
@@ -5024,13 +5103,13 @@ function instance$q($$self, $$props, $$invalidate) {
5024
5103
  class RenderText extends SvelteComponent {
5025
5104
  constructor(options) {
5026
5105
  super();
5027
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { text: 1 });
5106
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { text: 1 });
5028
5107
  }
5029
5108
  }
5030
5109
 
5031
5110
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5032
5111
 
5033
- function add_css$o(target) {
5112
+ function add_css$q(target) {
5034
5113
  append_styles(target, "svelte-vz6867", ".text-element-wrapper.svelte-vz6867.svelte-vz6867{position:relative;height:100%}.text-element.svelte-vz6867.svelte-vz6867{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;margin:0px;padding:0px;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden;font-size:12px;line-height:1.5}.text-link-element.svelte-vz6867.svelte-vz6867{text-decoration:none;color:inherit}.text-element-inner.svelte-vz6867.svelte-vz6867{width:100%;height:auto}.text-direction-vertical.svelte-vz6867.svelte-vz6867{writing-mode:vertical-rl}.text-direction-vertical.svelte-vz6867 .text-element-inner.svelte-vz6867{width:auto;height:100%}.tooltip.svelte-vz6867.svelte-vz6867{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-vz6867.svelte-vz6867:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-vz6867.svelte-vz6867{display:block}.tooltip-error.svelte-vz6867.svelte-vz6867{background-color:#c00}.tooltip-error.svelte-vz6867.svelte-vz6867:before{border-bottom:7px solid #c00}");
5035
5114
  }
5036
5115
 
@@ -5174,7 +5253,7 @@ function create_if_block$3(ctx) {
5174
5253
  };
5175
5254
  }
5176
5255
 
5177
- function create_fragment$p(ctx) {
5256
+ function create_fragment$r(ctx) {
5178
5257
  let div;
5179
5258
  let current_block_type_index;
5180
5259
  let if_block;
@@ -5244,7 +5323,7 @@ function create_fragment$p(ctx) {
5244
5323
  };
5245
5324
  }
5246
5325
 
5247
- function instance$p($$self, $$props, $$invalidate) {
5326
+ function instance$r($$self, $$props, $$invalidate) {
5248
5327
  let style;
5249
5328
  let { text = 'テキストのコンテンツ' } = $$props;
5250
5329
  let { font = SYSTEM_FONT } = $$props;
@@ -5340,8 +5419,8 @@ class TextElement extends SvelteComponent {
5340
5419
  init(
5341
5420
  this,
5342
5421
  options,
5343
- instance$p,
5344
- create_fragment$p,
5422
+ instance$r,
5423
+ create_fragment$r,
5345
5424
  safe_not_equal,
5346
5425
  {
5347
5426
  text: 0,
@@ -5352,14 +5431,14 @@ class TextElement extends SvelteComponent {
5352
5431
  enableCopy: 2,
5353
5432
  eventName: 10
5354
5433
  },
5355
- add_css$o
5434
+ add_css$q
5356
5435
  );
5357
5436
  }
5358
5437
  }
5359
5438
 
5360
5439
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
5361
5440
 
5362
- function add_css$n(target) {
5441
+ function add_css$p(target) {
5363
5442
  append_styles(target, "svelte-ujdxfc", ".text-button-element.svelte-ujdxfc{width:100%;height:100%}.text-button-element.svelte-ujdxfc > .button{display:flex;width:100%;height:100%;border:none;box-shadow:transparent;box-sizing:border-box;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5;background-color:#33403e;border-radius:4px;cursor:pointer;border-width:0px;border-style:solid;border-color:#000000}.text-button-element.svelte-ujdxfc > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-ujdxfc > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-ujdxfc > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
5364
5443
  }
5365
5444
 
@@ -5397,7 +5476,7 @@ function create_default_slot$5(ctx) {
5397
5476
  };
5398
5477
  }
5399
5478
 
5400
- function create_fragment$o(ctx) {
5479
+ function create_fragment$q(ctx) {
5401
5480
  let div;
5402
5481
  let button;
5403
5482
  let current;
@@ -5451,7 +5530,7 @@ function create_fragment$o(ctx) {
5451
5530
  };
5452
5531
  }
5453
5532
 
5454
- function instance$o($$self, $$props, $$invalidate) {
5533
+ function instance$q($$self, $$props, $$invalidate) {
5455
5534
  let style;
5456
5535
  let { text = 'ボタンのラベル' } = $$props;
5457
5536
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -5489,8 +5568,8 @@ class TextButtonElement extends SvelteComponent {
5489
5568
  init(
5490
5569
  this,
5491
5570
  options,
5492
- instance$o,
5493
- create_fragment$o,
5571
+ instance$q,
5572
+ create_fragment$q,
5494
5573
  safe_not_equal,
5495
5574
  {
5496
5575
  text: 0,
@@ -5500,14 +5579,14 @@ class TextButtonElement extends SvelteComponent {
5500
5579
  _buttonStyle: 5,
5501
5580
  _style: 6
5502
5581
  },
5503
- add_css$n
5582
+ add_css$p
5504
5583
  );
5505
5584
  }
5506
5585
  }
5507
5586
 
5508
5587
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
5509
5588
 
5510
- function add_css$m(target) {
5589
+ function add_css$o(target) {
5511
5590
  append_styles(target, "svelte-1alkh1m", ".image-element.svelte-1alkh1m{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-1alkh1m > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image-element.svelte-1alkh1m > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-1alkh1m > .button:not(._disabled):hover,.image-element.transport.svelte-1alkh1m > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-1alkh1m{width:100%;height:100%}");
5512
5591
  }
5513
5592
 
@@ -5562,7 +5641,7 @@ function create_default_slot$4(ctx) {
5562
5641
  };
5563
5642
  }
5564
5643
 
5565
- function create_fragment$n(ctx) {
5644
+ function create_fragment$p(ctx) {
5566
5645
  let div;
5567
5646
  let button;
5568
5647
  let div_class_value;
@@ -5621,7 +5700,7 @@ function create_fragment$n(ctx) {
5621
5700
  };
5622
5701
  }
5623
5702
 
5624
- function instance$n($$self, $$props, $$invalidate) {
5703
+ function instance$p($$self, $$props, $$invalidate) {
5625
5704
  let { src = '' } = $$props;
5626
5705
  let { alt = '画像の説明' } = $$props;
5627
5706
  let { transport = false } = $$props;
@@ -5652,8 +5731,8 @@ class ImageElement extends SvelteComponent {
5652
5731
  init(
5653
5732
  this,
5654
5733
  options,
5655
- instance$n,
5656
- create_fragment$n,
5734
+ instance$p,
5735
+ create_fragment$p,
5657
5736
  safe_not_equal,
5658
5737
  {
5659
5738
  src: 0,
@@ -5665,18 +5744,18 @@ class ImageElement extends SvelteComponent {
5665
5744
  _imageStyle: 6,
5666
5745
  _style: 7
5667
5746
  },
5668
- add_css$m
5747
+ add_css$o
5669
5748
  );
5670
5749
  }
5671
5750
  }
5672
5751
 
5673
5752
  /* src/components/List.svelte generated by Svelte v3.53.1 */
5674
5753
 
5675
- function add_css$l(target) {
5754
+ function add_css$n(target) {
5676
5755
  append_styles(target, "svelte-1t8r9z", ".list.svelte-1t8r9z{display:flex;width:100%;height:100%;overflow:hidden;border-width:0px;border-style:solid;border-color:#000000}");
5677
5756
  }
5678
5757
 
5679
- function create_fragment$m(ctx) {
5758
+ function create_fragment$o(ctx) {
5680
5759
  let div;
5681
5760
  let current;
5682
5761
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -5736,7 +5815,7 @@ function create_fragment$m(ctx) {
5736
5815
 
5737
5816
  const LIST_CONTEXT_KEY = Symbol();
5738
5817
 
5739
- function instance$m($$self, $$props, $$invalidate) {
5818
+ function instance$o($$self, $$props, $$invalidate) {
5740
5819
  let style;
5741
5820
  let { $$slots: slots = {}, $$scope } = $$props;
5742
5821
  let { direction = 'vertical' } = $$props;
@@ -5803,8 +5882,8 @@ class List extends SvelteComponent {
5803
5882
  init(
5804
5883
  this,
5805
5884
  options,
5806
- instance$m,
5807
- create_fragment$m,
5885
+ instance$o,
5886
+ create_fragment$o,
5808
5887
  safe_not_equal,
5809
5888
  {
5810
5889
  direction: 1,
@@ -5812,14 +5891,14 @@ class List extends SvelteComponent {
5812
5891
  background: 3,
5813
5892
  _style: 4
5814
5893
  },
5815
- add_css$l
5894
+ add_css$n
5816
5895
  );
5817
5896
  }
5818
5897
  }
5819
5898
 
5820
5899
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
5821
5900
 
5822
- function add_css$k(target) {
5901
+ function add_css$m(target) {
5823
5902
  append_styles(target, "svelte-1lbw8v2", ".list-item.svelte-1lbw8v2{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-1lbw8v2 > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
5824
5903
  }
5825
5904
 
@@ -5871,7 +5950,7 @@ function create_default_slot$3(ctx) {
5871
5950
  };
5872
5951
  }
5873
5952
 
5874
- function create_fragment$l(ctx) {
5953
+ function create_fragment$n(ctx) {
5875
5954
  let div;
5876
5955
  let button;
5877
5956
  let current;
@@ -5930,7 +6009,7 @@ function create_fragment$l(ctx) {
5930
6009
  };
5931
6010
  }
5932
6011
 
5933
- function instance$l($$self, $$props, $$invalidate) {
6012
+ function instance$n($$self, $$props, $$invalidate) {
5934
6013
  let listItemStyle;
5935
6014
  let { $$slots: slots = {}, $$scope } = $$props;
5936
6015
  const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
@@ -6009,17 +6088,17 @@ function instance$l($$self, $$props, $$invalidate) {
6009
6088
  class ListItem extends SvelteComponent {
6010
6089
  constructor(options) {
6011
6090
  super();
6012
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$k);
6091
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$m);
6013
6092
  }
6014
6093
  }
6015
6094
 
6016
6095
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6017
6096
 
6018
- function add_css$j(target) {
6097
+ function add_css$l(target) {
6019
6098
  append_styles(target, "svelte-w6jkzh", ".embed.svelte-w6jkzh{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-w6jkzh iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6020
6099
  }
6021
6100
 
6022
- function create_fragment$k(ctx) {
6101
+ function create_fragment$m(ctx) {
6023
6102
  let div;
6024
6103
 
6025
6104
  return {
@@ -6046,7 +6125,7 @@ function create_fragment$k(ctx) {
6046
6125
  };
6047
6126
  }
6048
6127
 
6049
- function instance$k($$self, $$props, $$invalidate) {
6128
+ function instance$m($$self, $$props, $$invalidate) {
6050
6129
  let { code } = $$props;
6051
6130
  let { _style = '' } = $$props;
6052
6131
 
@@ -6061,17 +6140,17 @@ function instance$k($$self, $$props, $$invalidate) {
6061
6140
  class EmbedElement extends SvelteComponent {
6062
6141
  constructor(options) {
6063
6142
  super();
6064
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { code: 0, _style: 1 }, add_css$j);
6143
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { code: 0, _style: 1 }, add_css$l);
6065
6144
  }
6066
6145
  }
6067
6146
 
6068
6147
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6069
6148
 
6070
- function add_css$i(target) {
6149
+ function add_css$k(target) {
6071
6150
  append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6072
6151
  }
6073
6152
 
6074
- function create_fragment$j(ctx) {
6153
+ function create_fragment$l(ctx) {
6075
6154
  let div1;
6076
6155
  let div0;
6077
6156
 
@@ -6112,7 +6191,7 @@ function _setValue(obj, key, value) {
6112
6191
  }
6113
6192
  }
6114
6193
 
6115
- function instance$j($$self, $$props, $$invalidate) {
6194
+ function instance$l($$self, $$props, $$invalidate) {
6116
6195
  let $system;
6117
6196
  component_subscribe($$self, system, $$value => $$invalidate(31, $system = $$value));
6118
6197
  let { videoId = 'wt0OjOeX-JA' } = $$props;
@@ -6383,8 +6462,8 @@ class MovieYouTubeElement extends SvelteComponent {
6383
6462
  init(
6384
6463
  this,
6385
6464
  options,
6386
- instance$j,
6387
- create_fragment$j,
6465
+ instance$l,
6466
+ create_fragment$l,
6388
6467
  safe_not_equal,
6389
6468
  {
6390
6469
  videoId: 2,
@@ -6413,7 +6492,7 @@ class MovieYouTubeElement extends SvelteComponent {
6413
6492
  mute: 25,
6414
6493
  _style: 0
6415
6494
  },
6416
- add_css$i,
6495
+ add_css$k,
6417
6496
  [-1, -1]
6418
6497
  );
6419
6498
  }
@@ -6421,11 +6500,11 @@ class MovieYouTubeElement extends SvelteComponent {
6421
6500
 
6422
6501
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
6423
6502
 
6424
- function add_css$h(target) {
6503
+ function add_css$j(target) {
6425
6504
  append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6426
6505
  }
6427
6506
 
6428
- function create_fragment$i(ctx) {
6507
+ function create_fragment$k(ctx) {
6429
6508
  let div1;
6430
6509
  let div0;
6431
6510
 
@@ -6456,7 +6535,7 @@ function create_fragment$i(ctx) {
6456
6535
  };
6457
6536
  }
6458
6537
 
6459
- function instance$i($$self, $$props, $$invalidate) {
6538
+ function instance$k($$self, $$props, $$invalidate) {
6460
6539
  let $system;
6461
6540
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
6462
6541
  let { videoId = "201239468" } = $$props;
@@ -6599,8 +6678,8 @@ class MovieVimeoElement extends SvelteComponent {
6599
6678
  init(
6600
6679
  this,
6601
6680
  options,
6602
- instance$i,
6603
- create_fragment$i,
6681
+ instance$k,
6682
+ create_fragment$k,
6604
6683
  safe_not_equal,
6605
6684
  {
6606
6685
  videoId: 2,
@@ -6610,18 +6689,18 @@ class MovieVimeoElement extends SvelteComponent {
6610
6689
  mute: 6,
6611
6690
  _style: 0
6612
6691
  },
6613
- add_css$h
6692
+ add_css$j
6614
6693
  );
6615
6694
  }
6616
6695
  }
6617
6696
 
6618
6697
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
6619
6698
 
6620
- function add_css$g(target) {
6699
+ function add_css$i(target) {
6621
6700
  append_styles(target, "svelte-1fjy5oo", ".textarea-wrapper.svelte-1fjy5oo{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-1fjy5oo{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-1fjy5oo::placeholder{color:var(--placeholder-color)}.textarea.svelte-1fjy5oo:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
6622
6701
  }
6623
6702
 
6624
- function create_fragment$h(ctx) {
6703
+ function create_fragment$j(ctx) {
6625
6704
  let div;
6626
6705
  let textarea;
6627
6706
  let mounted;
@@ -6679,7 +6758,7 @@ function create_fragment$h(ctx) {
6679
6758
  };
6680
6759
  }
6681
6760
 
6682
- function instance$h($$self, $$props, $$invalidate) {
6761
+ function instance$j($$self, $$props, $$invalidate) {
6683
6762
  let style;
6684
6763
  let styleVariables;
6685
6764
  let $value;
@@ -6693,7 +6772,7 @@ function instance$h($$self, $$props, $$invalidate) {
6693
6772
  let { _placeholderStyle = 'color: #ccc;' } = $$props;
6694
6773
  const { path: statePath } = getStateItemContext();
6695
6774
 
6696
- const value = registerInput({
6775
+ const { value } = registerInput({
6697
6776
  name,
6698
6777
  statePath,
6699
6778
  initialValue: '',
@@ -6767,8 +6846,8 @@ class FormTextarea extends SvelteComponent {
6767
6846
  init(
6768
6847
  this,
6769
6848
  options,
6770
- instance$h,
6771
- create_fragment$h,
6849
+ instance$j,
6850
+ create_fragment$j,
6772
6851
  safe_not_equal,
6773
6852
  {
6774
6853
  name: 7,
@@ -6780,14 +6859,14 @@ class FormTextarea extends SvelteComponent {
6780
6859
  _textStyle: 11,
6781
6860
  _placeholderStyle: 12
6782
6861
  },
6783
- add_css$g
6862
+ add_css$i
6784
6863
  );
6785
6864
  }
6786
6865
  }
6787
6866
 
6788
6867
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
6789
6868
 
6790
- function add_css$f(target) {
6869
+ function add_css$h(target) {
6791
6870
  append_styles(target, "svelte-1ntb6j8", ".radio-buttons.svelte-1ntb6j8{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1ntb6j8{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1ntb6j8{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-1ntb6j8:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1ntb6j8{margin-left:0.5em}");
6792
6871
  }
6793
6872
 
@@ -6877,7 +6956,7 @@ function create_each_block$5(ctx) {
6877
6956
  };
6878
6957
  }
6879
6958
 
6880
- function create_fragment$g(ctx) {
6959
+ function create_fragment$i(ctx) {
6881
6960
  let div;
6882
6961
  let each_value = /*_options*/ ctx[4];
6883
6962
  let each_blocks = [];
@@ -6941,7 +7020,7 @@ function create_fragment$g(ctx) {
6941
7020
  };
6942
7021
  }
6943
7022
 
6944
- function instance$g($$self, $$props, $$invalidate) {
7023
+ function instance$i($$self, $$props, $$invalidate) {
6945
7024
  let _options;
6946
7025
  let buttonStyle;
6947
7026
  let _value;
@@ -6958,7 +7037,7 @@ function instance$g($$self, $$props, $$invalidate) {
6958
7037
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
6959
7038
  const { path: statePath } = getStateItemContext();
6960
7039
 
6961
- const value = registerInput({
7040
+ const { value } = registerInput({
6962
7041
  name,
6963
7042
  statePath,
6964
7043
  initialValue: [],
@@ -7041,8 +7120,8 @@ class FormRadioButtons extends SvelteComponent {
7041
7120
  init(
7042
7121
  this,
7043
7122
  options,
7044
- instance$g,
7045
- create_fragment$g,
7123
+ instance$i,
7124
+ create_fragment$i,
7046
7125
  safe_not_equal,
7047
7126
  {
7048
7127
  name: 0,
@@ -7055,14 +7134,14 @@ class FormRadioButtons extends SvelteComponent {
7055
7134
  buttonColor: 13,
7056
7135
  buttonColorActive: 14
7057
7136
  },
7058
- add_css$f
7137
+ add_css$h
7059
7138
  );
7060
7139
  }
7061
7140
  }
7062
7141
 
7063
7142
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
7064
7143
 
7065
- function add_css$e(target) {
7144
+ function add_css$g(target) {
7066
7145
  append_styles(target, "svelte-iejizj", ".select.svelte-iejizj{width:100%;height:100%}.select-select.svelte-iejizj{position:relative;appearance:none;width:100%;height:100%;cursor:pointer;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:0 0 0 10px;font-size:12px;line-height:1.5}.select-select.svelte-iejizj:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.select-icon.svelte-iejizj{position:absolute;width:calc(var(--icon-size) / 1.41);height:calc(var(--icon-size) / 1.41);top:calc(50% - calc(var(--icon-size) / 4));right:calc(var(--icon-size) * 1.2);box-sizing:border-box;border-right:solid 2px var(--icon-color);border-top:solid 2px var(--icon-color);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
7067
7146
  }
7068
7147
 
@@ -7172,7 +7251,7 @@ function create_each_block$4(ctx) {
7172
7251
  };
7173
7252
  }
7174
7253
 
7175
- function create_fragment$f(ctx) {
7254
+ function create_fragment$h(ctx) {
7176
7255
  let div1;
7177
7256
  let select;
7178
7257
  let t;
@@ -7262,7 +7341,7 @@ function create_fragment$f(ctx) {
7262
7341
  };
7263
7342
  }
7264
7343
 
7265
- function instance$f($$self, $$props, $$invalidate) {
7344
+ function instance$h($$self, $$props, $$invalidate) {
7266
7345
  let _options;
7267
7346
  let style;
7268
7347
  let styleVariables;
@@ -7281,7 +7360,7 @@ function instance$f($$self, $$props, $$invalidate) {
7281
7360
  let { iconSize = '12px' } = $$props;
7282
7361
  const { path: statePath } = getStateItemContext();
7283
7362
 
7284
- const value = registerInput({
7363
+ const { value } = registerInput({
7285
7364
  name,
7286
7365
  statePath,
7287
7366
  initialValue: [],
@@ -7378,8 +7457,8 @@ class FormSelect extends SvelteComponent {
7378
7457
  init(
7379
7458
  this,
7380
7459
  options,
7381
- instance$f,
7382
- create_fragment$f,
7460
+ instance$h,
7461
+ create_fragment$h,
7383
7462
  safe_not_equal,
7384
7463
  {
7385
7464
  name: 7,
@@ -7394,14 +7473,14 @@ class FormSelect extends SvelteComponent {
7394
7473
  iconColor: 15,
7395
7474
  iconSize: 16
7396
7475
  },
7397
- add_css$e
7476
+ add_css$g
7398
7477
  );
7399
7478
  }
7400
7479
  }
7401
7480
 
7402
7481
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
7403
7482
 
7404
- function add_css$d(target) {
7483
+ function add_css$f(target) {
7405
7484
  append_styles(target, "svelte-2pz1us", ".check-boxes.svelte-2pz1us.svelte-2pz1us{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%;gap:0px}.check-box.svelte-2pz1us.svelte-2pz1us{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-2pz1us.svelte-2pz1us{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-2pz1us.svelte-2pz1us{display:inline-flex;background-color:var(--color-main);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-2pz1us.svelte-2pz1us{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-2pz1us.svelte-2pz1us: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:var(--color-sub)}.check-box-check._checked.svelte-2pz1us.svelte-2pz1us{background-color:var(--color-main-active)}.check-box-check._checked.svelte-2pz1us .check-box-icon.svelte-2pz1us:after{border-color:var(--color-sub-active)}.check-box-text.svelte-2pz1us.svelte-2pz1us{margin-left:0.5em;color:#333;font-size:12px;line-height:1.5}");
7406
7485
  }
7407
7486
 
@@ -7507,7 +7586,7 @@ function create_each_block$3(ctx) {
7507
7586
  };
7508
7587
  }
7509
7588
 
7510
- function create_fragment$e(ctx) {
7589
+ function create_fragment$g(ctx) {
7511
7590
  let div;
7512
7591
  let each_value = /*_options*/ ctx[3];
7513
7592
  let each_blocks = [];
@@ -7571,7 +7650,7 @@ function create_fragment$e(ctx) {
7571
7650
  };
7572
7651
  }
7573
7652
 
7574
- function instance$e($$self, $$props, $$invalidate) {
7653
+ function instance$g($$self, $$props, $$invalidate) {
7575
7654
  let _options;
7576
7655
  let styleVariables;
7577
7656
  let isCheckedArray;
@@ -7588,7 +7667,7 @@ function instance$e($$self, $$props, $$invalidate) {
7588
7667
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7589
7668
  const { path: statePath } = getStateItemContext();
7590
7669
 
7591
- const value = registerInput({
7670
+ const { value } = registerInput({
7592
7671
  name,
7593
7672
  statePath,
7594
7673
  initialValue: [],
@@ -7677,8 +7756,8 @@ class FormCheckBoxes extends SvelteComponent {
7677
7756
  init(
7678
7757
  this,
7679
7758
  options,
7680
- instance$e,
7681
- create_fragment$e,
7759
+ instance$g,
7760
+ create_fragment$g,
7682
7761
  safe_not_equal,
7683
7762
  {
7684
7763
  name: 0,
@@ -7691,14 +7770,14 @@ class FormCheckBoxes extends SvelteComponent {
7691
7770
  buttonColor: 13,
7692
7771
  buttonColorActive: 14
7693
7772
  },
7694
- add_css$d
7773
+ add_css$f
7695
7774
  );
7696
7775
  }
7697
7776
  }
7698
7777
 
7699
7778
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
7700
7779
 
7701
- function add_css$c(target) {
7780
+ function add_css$e(target) {
7702
7781
  append_styles(target, "svelte-18pfy31", ".rating-buttons.svelte-18pfy31{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-18pfy31{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s;appearance:none;background:none;border:none;margin:0;padding:0}");
7703
7782
  }
7704
7783
 
@@ -7755,7 +7834,7 @@ function create_each_block$2(ctx) {
7755
7834
  };
7756
7835
  }
7757
7836
 
7758
- function create_fragment$d(ctx) {
7837
+ function create_fragment$f(ctx) {
7759
7838
  let div;
7760
7839
  let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
7761
7840
  let each_blocks = [];
@@ -7816,7 +7895,7 @@ function create_fragment$d(ctx) {
7816
7895
 
7817
7896
  const func$1 = i => i + 1;
7818
7897
 
7819
- function instance$d($$self, $$props, $$invalidate) {
7898
+ function instance$f($$self, $$props, $$invalidate) {
7820
7899
  let _value;
7821
7900
  let $value;
7822
7901
  let { name = '' } = $$props;
@@ -7827,7 +7906,7 @@ function instance$d($$self, $$props, $$invalidate) {
7827
7906
  let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
7828
7907
  const { path: statePath } = getStateItemContext();
7829
7908
 
7830
- const value = registerInput({
7909
+ const { value } = registerInput({
7831
7910
  name,
7832
7911
  statePath,
7833
7912
  initialValue: [],
@@ -7892,8 +7971,8 @@ class FormRatingButtonsNumber extends SvelteComponent {
7892
7971
  init(
7893
7972
  this,
7894
7973
  options,
7895
- instance$d,
7896
- create_fragment$d,
7974
+ instance$f,
7975
+ create_fragment$f,
7897
7976
  safe_not_equal,
7898
7977
  {
7899
7978
  name: 5,
@@ -7903,14 +7982,14 @@ class FormRatingButtonsNumber extends SvelteComponent {
7903
7982
  buttonStyle: 8,
7904
7983
  buttonActiveStyle: 9
7905
7984
  },
7906
- add_css$c
7985
+ add_css$e
7907
7986
  );
7908
7987
  }
7909
7988
  }
7910
7989
 
7911
7990
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
7912
7991
 
7913
- function add_css$b(target) {
7992
+ function add_css$d(target) {
7914
7993
  append_styles(target, "svelte-1b5dvzw", ".rating-buttons.svelte-1b5dvzw{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-1b5dvzw{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-1b5dvzw{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-1b5dvzw:not(._active){filter:grayscale(100%)}");
7915
7994
  }
7916
7995
 
@@ -7970,7 +8049,7 @@ function create_each_block$1(ctx) {
7970
8049
  };
7971
8050
  }
7972
8051
 
7973
- function create_fragment$c(ctx) {
8052
+ function create_fragment$e(ctx) {
7974
8053
  let div;
7975
8054
  let each_value = [...Array(count).keys()].reverse().map(func);
7976
8055
  let each_blocks = [];
@@ -8032,7 +8111,7 @@ function create_fragment$c(ctx) {
8032
8111
  const count = 5;
8033
8112
  const func = i => i + 1;
8034
8113
 
8035
- function instance$c($$self, $$props, $$invalidate) {
8114
+ function instance$e($$self, $$props, $$invalidate) {
8036
8115
  let _value;
8037
8116
  let buttonStyle;
8038
8117
  let $value;
@@ -8050,7 +8129,7 @@ function instance$c($$self, $$props, $$invalidate) {
8050
8129
 
8051
8130
  const { path: statePath } = getStateItemContext();
8052
8131
 
8053
- const value = registerInput({
8132
+ const { value } = registerInput({
8054
8133
  name,
8055
8134
  statePath,
8056
8135
  initialValue: [],
@@ -8088,7 +8167,439 @@ function instance$c($$self, $$props, $$invalidate) {
8088
8167
  class FormRatingButtonsFace extends SvelteComponent {
8089
8168
  constructor(options) {
8090
8169
  super();
8091
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$b);
8170
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$d);
8171
+ }
8172
+ }
8173
+
8174
+ /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
8175
+
8176
+ function add_css$c(target) {
8177
+ append_styles(target, "svelte-17a0wgl", ".input-wrapper.svelte-17a0wgl{display:flex;align-items:center;width:100%;height:100%}.input.svelte-17a0wgl{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.input.svelte-17a0wgl::placeholder{color:var(--placeholder-color)}.input.svelte-17a0wgl:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.input._error.svelte-17a0wgl{outline:none;border-width:var(--error-border-width) !important;border-color:var(--error-border-color) !important;border-style:var(--error-border-style) !important}");
8178
+ }
8179
+
8180
+ function create_fragment$d(ctx) {
8181
+ let div;
8182
+ let input;
8183
+ let input_class_value;
8184
+ let mounted;
8185
+ let dispose;
8186
+
8187
+ return {
8188
+ c() {
8189
+ div = element("div");
8190
+ input = element("input");
8191
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"));
8192
+ attr(input, "type", "text");
8193
+ input.value = /*$value*/ ctx[4];
8194
+ input.required = /*required*/ ctx[0];
8195
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8196
+ attr(input, "style", /*style*/ ctx[3]);
8197
+ attr(div, "class", "input-wrapper svelte-17a0wgl");
8198
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8199
+ },
8200
+ m(target, anchor) {
8201
+ insert(target, div, anchor);
8202
+ append(div, input);
8203
+
8204
+ if (!mounted) {
8205
+ dispose = listen(input, "input", /*stringInputHandler*/ ctx[8]);
8206
+ mounted = true;
8207
+ }
8208
+ },
8209
+ p(ctx, [dirty]) {
8210
+ if (dirty & /*$isValid*/ 32 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"))) {
8211
+ attr(input, "class", input_class_value);
8212
+ }
8213
+
8214
+ if (dirty & /*$value*/ 16 && input.value !== /*$value*/ ctx[4]) {
8215
+ input.value = /*$value*/ ctx[4];
8216
+ }
8217
+
8218
+ if (dirty & /*required*/ 1) {
8219
+ input.required = /*required*/ ctx[0];
8220
+ }
8221
+
8222
+ if (dirty & /*placeholder*/ 2) {
8223
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8224
+ }
8225
+
8226
+ if (dirty & /*style*/ 8) {
8227
+ attr(input, "style", /*style*/ ctx[3]);
8228
+ }
8229
+
8230
+ if (dirty & /*styleVariables*/ 4) {
8231
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8232
+ }
8233
+ },
8234
+ i: noop,
8235
+ o: noop,
8236
+ d(detaching) {
8237
+ if (detaching) detach(div);
8238
+ mounted = false;
8239
+ dispose();
8240
+ }
8241
+ };
8242
+ }
8243
+
8244
+ function instance$d($$self, $$props, $$invalidate) {
8245
+ let style;
8246
+ let styleVariables;
8247
+ let $value;
8248
+ let $isValid;
8249
+ let { field = 'email' } = $$props;
8250
+
8251
+ let { validation = {
8252
+ // FormIdentifyTextFieldValidations[DefaultFormIdentifyTextField]
8253
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
8254
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
8255
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
8256
+ flags: ''
8257
+ } } = $$props;
8258
+
8259
+ let { required = true } = $$props;
8260
+ let { placeholder = 'メールアドレスを入力' } = $$props;
8261
+ let { _style = '' } = $$props;
8262
+ let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
8263
+ let { _errorStyle = 'border-width: 2px; border-color: #ff8726; border-style: solid' } = $$props;
8264
+ let { font = SYSTEM_FONT } = $$props;
8265
+ let { _textStyle = '' } = $$props;
8266
+ let { _placeholderStyle = 'color: #ccc;' } = $$props;
8267
+ const { path: statePath } = getStateItemContext();
8268
+
8269
+ const validationRegExp = (() => {
8270
+ try {
8271
+ return new RegExp(validation.pattern, validation.flags);
8272
+ } catch(e) {
8273
+ return undefined;
8274
+ }
8275
+ })();
8276
+
8277
+ const { value, isValid } = registerIdentifyInput({
8278
+ name: field,
8279
+ statePath,
8280
+ initialValue: '',
8281
+ validator(value) {
8282
+ if (value.length > 0 && validationRegExp && validationRegExp.test(value)) {
8283
+ return true;
8284
+ } else if (!required && value === '') {
8285
+ return true;
8286
+ } else {
8287
+ return false;
8288
+ }
8289
+ }
8290
+ });
8291
+
8292
+ component_subscribe($$self, value, value => $$invalidate(4, $value = value));
8293
+ component_subscribe($$self, isValid, value => $$invalidate(5, $isValid = value));
8294
+
8295
+ function stringInputHandler(event) {
8296
+ set_store_value(value, $value = event.target.value, $value);
8297
+ }
8298
+
8299
+ $$self.$$set = $$props => {
8300
+ if ('field' in $$props) $$invalidate(9, field = $$props.field);
8301
+ if ('validation' in $$props) $$invalidate(10, validation = $$props.validation);
8302
+ if ('required' in $$props) $$invalidate(0, required = $$props.required);
8303
+ if ('placeholder' in $$props) $$invalidate(1, placeholder = $$props.placeholder);
8304
+ if ('_style' in $$props) $$invalidate(11, _style = $$props._style);
8305
+ if ('_focusStyle' in $$props) $$invalidate(12, _focusStyle = $$props._focusStyle);
8306
+ if ('_errorStyle' in $$props) $$invalidate(13, _errorStyle = $$props._errorStyle);
8307
+ if ('font' in $$props) $$invalidate(14, font = $$props.font);
8308
+ if ('_textStyle' in $$props) $$invalidate(15, _textStyle = $$props._textStyle);
8309
+ if ('_placeholderStyle' in $$props) $$invalidate(16, _placeholderStyle = $$props._placeholderStyle);
8310
+ };
8311
+
8312
+ $$self.$$.update = () => {
8313
+ if ($$self.$$.dirty & /*font*/ 16384) {
8314
+ addFont(font);
8315
+ }
8316
+
8317
+ if ($$self.$$.dirty & /*_style, _textStyle, font*/ 51200) {
8318
+ $$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
8319
+ }
8320
+
8321
+ if ($$self.$$.dirty & /*_focusStyle, _errorStyle, _placeholderStyle*/ 77824) {
8322
+ $$invalidate(2, styleVariables = (() => {
8323
+ const variables = {};
8324
+ const focusStyleObj = parseStyle(_focusStyle);
8325
+ const errorStyleObj = parseStyle(_errorStyle);
8326
+ const placeholderStyle = parseStyle(_placeholderStyle);
8327
+ if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
8328
+ if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
8329
+ if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
8330
+ if (errorStyleObj['border-width']) variables['--error-border-width'] = errorStyleObj['border-width'];
8331
+ if (errorStyleObj['border-color']) variables['--error-border-color'] = errorStyleObj['border-color'];
8332
+ if (errorStyleObj['border-style']) variables['--error-border-style'] = errorStyleObj['border-style'];
8333
+ if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
8334
+ return stringifyStyleObj(variables);
8335
+ })());
8336
+ }
8337
+ };
8338
+
8339
+ return [
8340
+ required,
8341
+ placeholder,
8342
+ styleVariables,
8343
+ style,
8344
+ $value,
8345
+ $isValid,
8346
+ value,
8347
+ isValid,
8348
+ stringInputHandler,
8349
+ field,
8350
+ validation,
8351
+ _style,
8352
+ _focusStyle,
8353
+ _errorStyle,
8354
+ font,
8355
+ _textStyle,
8356
+ _placeholderStyle
8357
+ ];
8358
+ }
8359
+
8360
+ class FormIdentifyInput extends SvelteComponent {
8361
+ constructor(options) {
8362
+ super();
8363
+
8364
+ init(
8365
+ this,
8366
+ options,
8367
+ instance$d,
8368
+ create_fragment$d,
8369
+ safe_not_equal,
8370
+ {
8371
+ field: 9,
8372
+ validation: 10,
8373
+ required: 0,
8374
+ placeholder: 1,
8375
+ _style: 11,
8376
+ _focusStyle: 12,
8377
+ _errorStyle: 13,
8378
+ font: 14,
8379
+ _textStyle: 15,
8380
+ _placeholderStyle: 16
8381
+ },
8382
+ add_css$c
8383
+ );
8384
+ }
8385
+ }
8386
+
8387
+ /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
8388
+
8389
+ function add_css$b(target) {
8390
+ append_styles(target, "svelte-pzrwlo", ".radio-buttons.svelte-pzrwlo{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-pzrwlo{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-pzrwlo{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-pzrwlo:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18, 160, 160, 0.08), 0px 1px 4px -1px rgba(18, 160, 160, 0.24)}.radio-button-text.svelte-pzrwlo{margin-left:0.5em}");
8391
+ }
8392
+
8393
+ function create_fragment$c(ctx) {
8394
+ let div;
8395
+ let label0;
8396
+ let input0;
8397
+ let input0_checked_value;
8398
+ let t0;
8399
+ let span0;
8400
+ let t1;
8401
+ let span0_style_value;
8402
+ let t2;
8403
+ let label1;
8404
+ let input1;
8405
+ let input1_checked_value;
8406
+ let t3;
8407
+ let span1;
8408
+ let t4;
8409
+ let span1_style_value;
8410
+ let mounted;
8411
+ let dispose;
8412
+
8413
+ return {
8414
+ c() {
8415
+ div = element("div");
8416
+ label0 = element("label");
8417
+ input0 = element("input");
8418
+ t0 = space();
8419
+ span0 = element("span");
8420
+ t1 = text("はい");
8421
+ t2 = space();
8422
+ label1 = element("label");
8423
+ input1 = element("input");
8424
+ t3 = space();
8425
+ span1 = element("span");
8426
+ t4 = text("いいえ");
8427
+ attr(input0, "type", "radio");
8428
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
8429
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8430
+ input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
8431
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
8432
+ attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8433
+ attr(label0, "class", "radio-button svelte-pzrwlo");
8434
+ attr(input1, "type", "radio");
8435
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
8436
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8437
+ input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
8438
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
8439
+ attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8440
+ attr(label1, "class", "radio-button svelte-pzrwlo");
8441
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
8442
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8443
+ },
8444
+ m(target, anchor) {
8445
+ insert(target, div, anchor);
8446
+ append(div, label0);
8447
+ append(label0, input0);
8448
+ append(label0, t0);
8449
+ append(label0, span0);
8450
+ append(span0, t1);
8451
+ append(div, t2);
8452
+ append(div, label1);
8453
+ append(label1, input1);
8454
+ append(label1, t3);
8455
+ append(label1, span1);
8456
+ append(span1, t4);
8457
+
8458
+ if (!mounted) {
8459
+ dispose = [
8460
+ listen(input0, "change", /*change_handler*/ ctx[12]),
8461
+ listen(input1, "change", /*change_handler_1*/ ctx[13])
8462
+ ];
8463
+
8464
+ mounted = true;
8465
+ }
8466
+ },
8467
+ p(ctx, [dirty]) {
8468
+ if (dirty & /*buttonStyle*/ 4) {
8469
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8470
+ }
8471
+
8472
+ if (dirty & /*$value*/ 8 && input0_checked_value !== (input0_checked_value = /*$value*/ ctx[3] === true)) {
8473
+ input0.checked = input0_checked_value;
8474
+ }
8475
+
8476
+ if (dirty & /*_textStyle*/ 2 && span0_style_value !== (span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8477
+ attr(span0, "style", span0_style_value);
8478
+ }
8479
+
8480
+ if (dirty & /*buttonStyle*/ 4) {
8481
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8482
+ }
8483
+
8484
+ if (dirty & /*$value*/ 8 && input1_checked_value !== (input1_checked_value = /*$value*/ ctx[3] === false)) {
8485
+ input1.checked = input1_checked_value;
8486
+ }
8487
+
8488
+ if (dirty & /*_textStyle*/ 2 && span1_style_value !== (span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8489
+ attr(span1, "style", span1_style_value);
8490
+ }
8491
+
8492
+ if (dirty & /*_layoutStyle*/ 1) {
8493
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8494
+ }
8495
+ },
8496
+ i: noop,
8497
+ o: noop,
8498
+ d(detaching) {
8499
+ if (detaching) detach(div);
8500
+ mounted = false;
8501
+ run_all(dispose);
8502
+ }
8503
+ };
8504
+ }
8505
+
8506
+ function instance$c($$self, $$props, $$invalidate) {
8507
+ let buttonStyle;
8508
+ let $value;
8509
+ let { field = 'subscription' } = $$props;
8510
+ let { required = false } = $$props;
8511
+ let { _layoutStyle = 'flex-direction: row; gap: 0px;' } = $$props;
8512
+ let { font = SYSTEM_FONT } = $$props;
8513
+ const fontCss = font ? 'font-family:' + font : '';
8514
+ let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
8515
+ let { buttonSize = '16px' } = $$props;
8516
+ let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
8517
+ let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
8518
+ const { path: statePath } = getStateItemContext();
8519
+
8520
+ const { value } = registerIdentifyInput({
8521
+ name: field,
8522
+ statePath,
8523
+ initialValue: null,
8524
+ validator(value) {
8525
+ if (!required) return true;
8526
+ return typeof value === 'boolean';
8527
+ }
8528
+ });
8529
+
8530
+ component_subscribe($$self, value, value => $$invalidate(3, $value = value));
8531
+ const change_handler = () => value.set(true);
8532
+ const change_handler_1 = () => value.set(false);
8533
+
8534
+ $$self.$$set = $$props => {
8535
+ if ('field' in $$props) $$invalidate(6, field = $$props.field);
8536
+ if ('required' in $$props) $$invalidate(7, required = $$props.required);
8537
+ if ('_layoutStyle' in $$props) $$invalidate(0, _layoutStyle = $$props._layoutStyle);
8538
+ if ('font' in $$props) $$invalidate(8, font = $$props.font);
8539
+ if ('_textStyle' in $$props) $$invalidate(1, _textStyle = $$props._textStyle);
8540
+ if ('buttonSize' in $$props) $$invalidate(9, buttonSize = $$props.buttonSize);
8541
+ if ('buttonColor' in $$props) $$invalidate(10, buttonColor = $$props.buttonColor);
8542
+ if ('buttonColorActive' in $$props) $$invalidate(11, buttonColorActive = $$props.buttonColorActive);
8543
+ };
8544
+
8545
+ $$self.$$.update = () => {
8546
+ if ($$self.$$.dirty & /*font*/ 256) {
8547
+ addFont(font);
8548
+ }
8549
+
8550
+ if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 3584) {
8551
+ $$invalidate(2, buttonStyle = (() => {
8552
+ return stringifyStyleObj({
8553
+ '--color-main': buttonColor.main,
8554
+ '--color-sub': buttonColor.sub,
8555
+ '--color-main-active': buttonColorActive.main,
8556
+ '--color-sub-active': buttonColorActive.sub,
8557
+ '--size': buttonSize
8558
+ });
8559
+ })());
8560
+ }
8561
+ };
8562
+
8563
+ return [
8564
+ _layoutStyle,
8565
+ _textStyle,
8566
+ buttonStyle,
8567
+ $value,
8568
+ fontCss,
8569
+ value,
8570
+ field,
8571
+ required,
8572
+ font,
8573
+ buttonSize,
8574
+ buttonColor,
8575
+ buttonColorActive,
8576
+ change_handler,
8577
+ change_handler_1
8578
+ ];
8579
+ }
8580
+
8581
+ class FormIdentifyChoices extends SvelteComponent {
8582
+ constructor(options) {
8583
+ super();
8584
+
8585
+ init(
8586
+ this,
8587
+ options,
8588
+ instance$c,
8589
+ create_fragment$c,
8590
+ safe_not_equal,
8591
+ {
8592
+ field: 6,
8593
+ required: 7,
8594
+ _layoutStyle: 0,
8595
+ font: 8,
8596
+ _textStyle: 1,
8597
+ buttonSize: 9,
8598
+ buttonColor: 10,
8599
+ buttonColorActive: 11
8600
+ },
8601
+ add_css$b
8602
+ );
8092
8603
  }
8093
8604
  }
8094
8605
 
@@ -10555,4 +11066,4 @@ class ImageBlock extends SvelteComponent {
10555
11066
  }
10556
11067
  }
10557
11068
 
10558
- export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, ClipPaths, CodeElement, Countdown, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, 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, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };
11069
+ export { ACTION_HOOK_LABEL, Alignments, AnimationStyles, BackgroundSizes, Box, 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, FlexDirections, FlexItem, Fonts, FormCheckBoxes, FormIdentifyBooleanFields, FormIdentifyChoices, FormIdentifyInput, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, FormRadioButtons, FormRatingButtonsFace, FormRatingButtonsNumber, FormSelect, FormTextarea, Grid, GridItem, GridModalState, IconElement, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LAYOUT_COMPONENT_NAMES, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, SYSTEM_FONT, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, close, closeAction, collection$1 as collection, create, createApp, createFog, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, formData, getActionRoot, 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, resetEventHandlers, resetVariables, setEventHandlers, setSetting, setState$1 as setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, variables, widget };