@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.
@@ -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, claim_element, children, detach, insert_hydration, noop, component_subscribe, attr, create_slot, create_component, space, claim_component, claim_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, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, HtmlTagHydration, claim_html_tag, construct_svelte_component, subscribe } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, insert_hydration, noop, component_subscribe, attr, create_slot, create_component, space, claim_component, claim_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, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, set_store_value, run_all, HtmlTagHydration, claim_html_tag, construct_svelte_component, subscribe } from 'svelte/internal';
4
4
  import 'svelte/easing';
5
5
 
6
6
  /** @internal */
@@ -589,6 +589,52 @@ const DefaultModalBreakPoint = {
589
589
  elasticity: DefaultElasticity,
590
590
  },
591
591
  };
592
+ const FormIdentifyTextFields = [
593
+ 'email',
594
+ 'phone',
595
+ 'first_name',
596
+ 'last_name',
597
+ 'address',
598
+ ];
599
+ /** @internal */
600
+ const FormIdentifyTextFieldValidations = {
601
+ email: {
602
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
603
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
604
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
605
+ flags: '',
606
+ },
607
+ phone: {
608
+ pattern: '^(0{1}\\d{9,10})$',
609
+ flags: '',
610
+ },
611
+ first_name: {
612
+ pattern: '',
613
+ flags: '',
614
+ },
615
+ last_name: {
616
+ pattern: '',
617
+ flags: '',
618
+ },
619
+ address: {
620
+ pattern: '',
621
+ flags: '',
622
+ },
623
+ };
624
+ /** @internal */
625
+ const FormIdentifyTextFieldPlaceholders = {
626
+ email: 'メールアドレスを入力',
627
+ phone: '電話番号を入力',
628
+ first_name: '名前(名)を入力',
629
+ last_name: '名前(姓)を入力',
630
+ address: '住所',
631
+ };
632
+ /** @internal */
633
+ const DefaultFormIdentifyTextField = 'email';
634
+ /** @internal */
635
+ const FormIdentifyBooleanFields = ['subscription', 'phone_subscribe'];
636
+ /** @internal */
637
+ const DefaultFormIdentifyBooleanField = 'subscription';
592
638
 
593
639
  /**
594
640
  * Store to handle action setting
@@ -989,6 +1035,12 @@ function resetVariables() {
989
1035
  * @internal
990
1036
  */
991
1037
  const formData = writable({});
1038
+ /**
1039
+ * Store for identify form data
1040
+ *
1041
+ * @internal
1042
+ */
1043
+ const identifyFormData = writable({});
992
1044
 
993
1045
  /**
994
1046
  * アクションのログの記録の管理
@@ -1704,11 +1756,7 @@ function createModal(App, options = {
1704
1756
  context: { api_key: '' },
1705
1757
  }) {
1706
1758
  let app = null;
1707
- const data = {
1708
- ...options.props,
1709
- ...options.variables,
1710
- ...getVariables(),
1711
- };
1759
+ const data = getVariables();
1712
1760
  const actionProps = {
1713
1761
  send: options.send,
1714
1762
  publish: options.publish,
@@ -1991,21 +2039,14 @@ async function runScript$1(options = {
1991
2039
  }) {
1992
2040
  if (!options.onCreate)
1993
2041
  return;
1994
- let data = {
1995
- ...options.props,
1996
- ...options.variables,
1997
- ...getVariables(),
1998
- };
2042
+ let data = getVariables();
1999
2043
  initialize({ send: options.send, initialState: data.initial_state });
2000
2044
  initActionTable(options.localVariablesQuery);
2001
2045
  const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key);
2002
2046
  if (!success)
2003
2047
  return;
2004
2048
  // Action Tableの取得結果を反映する
2005
- data = {
2006
- ...data,
2007
- ...getVariables(),
2008
- };
2049
+ data = getVariables();
2009
2050
  const actionProps = {
2010
2051
  send: options.send,
2011
2052
  publish: options.publish,
@@ -2106,11 +2147,11 @@ function create(App, options = {
2106
2147
  karteTemplate: {},
2107
2148
  context: { api_key: '' },
2108
2149
  }) {
2109
- const data = {
2150
+ setVariables({
2110
2151
  ...options.props,
2111
2152
  ...options.variables,
2112
- ...getVariables(),
2113
- };
2153
+ });
2154
+ const data = getVariables();
2114
2155
  const actionProps = {
2115
2156
  send: options.send,
2116
2157
  publish: options.publish,
@@ -2539,7 +2580,7 @@ function create_if_block$9(ctx) {
2539
2580
  };
2540
2581
  }
2541
2582
 
2542
- function create_fragment$y(ctx) {
2583
+ function create_fragment$A(ctx) {
2543
2584
  let head;
2544
2585
  let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
2545
2586
 
@@ -2581,7 +2622,7 @@ function create_fragment$y(ctx) {
2581
2622
  };
2582
2623
  }
2583
2624
 
2584
- function instance$y($$self, $$props, $$invalidate) {
2625
+ function instance$A($$self, $$props, $$invalidate) {
2585
2626
  let $fonts;
2586
2627
  component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
2587
2628
  let googleFontUrl = '';
@@ -2611,13 +2652,13 @@ function instance$y($$self, $$props, $$invalidate) {
2611
2652
  class Header extends SvelteComponent {
2612
2653
  constructor(options) {
2613
2654
  super();
2614
- init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
2655
+ init(this, options, instance$A, create_fragment$A, safe_not_equal, {});
2615
2656
  }
2616
2657
  }
2617
2658
 
2618
2659
  /* src/components/State.svelte generated by Svelte v3.53.1 */
2619
2660
 
2620
- function create_fragment$x(ctx) {
2661
+ function create_fragment$z(ctx) {
2621
2662
  let header;
2622
2663
  let t;
2623
2664
  let current;
@@ -2681,7 +2722,7 @@ function create_fragment$x(ctx) {
2681
2722
  };
2682
2723
  }
2683
2724
 
2684
- function instance$x($$self, $$props, $$invalidate) {
2725
+ function instance$z($$self, $$props, $$invalidate) {
2685
2726
  let { $$slots: slots = {}, $$scope } = $$props;
2686
2727
 
2687
2728
  $$self.$$set = $$props => {
@@ -2694,13 +2735,13 @@ function instance$x($$self, $$props, $$invalidate) {
2694
2735
  class State extends SvelteComponent {
2695
2736
  constructor(options) {
2696
2737
  super();
2697
- init(this, options, instance$x, create_fragment$x, safe_not_equal, {});
2738
+ init(this, options, instance$z, create_fragment$z, safe_not_equal, {});
2698
2739
  }
2699
2740
  }
2700
2741
 
2701
2742
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
2702
2743
 
2703
- function add_css$t(target) {
2744
+ function add_css$v(target) {
2704
2745
  append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
2705
2746
  }
2706
2747
 
@@ -2777,7 +2818,7 @@ function create_if_block$8(ctx) {
2777
2818
  };
2778
2819
  }
2779
2820
 
2780
- function create_fragment$w(ctx) {
2821
+ function create_fragment$y(ctx) {
2781
2822
  let if_block_anchor;
2782
2823
  let current;
2783
2824
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
@@ -2842,7 +2883,7 @@ function getStateItemContext() {
2842
2883
  return getContext(STATE_ITEM_CONTEXT_KEY);
2843
2884
  }
2844
2885
 
2845
- function instance$w($$self, $$props, $$invalidate) {
2886
+ function instance$y($$self, $$props, $$invalidate) {
2846
2887
  let $state;
2847
2888
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
2848
2889
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -2868,10 +2909,11 @@ function instance$w($$self, $$props, $$invalidate) {
2868
2909
  class StateItem extends SvelteComponent {
2869
2910
  constructor(options) {
2870
2911
  super();
2871
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { path: 0 }, add_css$t);
2912
+ init(this, options, instance$y, create_fragment$y, safe_not_equal, { path: 0 }, add_css$v);
2872
2913
  }
2873
2914
  }
2874
2915
 
2916
+ const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2875
2917
  function isEmpty(value) {
2876
2918
  if (Array.isArray(value)) {
2877
2919
  return value.length === 0;
@@ -2881,51 +2923,74 @@ function isEmpty(value) {
2881
2923
  }
2882
2924
  }
2883
2925
  /** @internal */
2884
- function registerInput({ name, statePath, validator = () => true, initialValue, }) {
2885
- const writableValue = {
2886
- subscribe(run) {
2887
- return formData.subscribe(formData => {
2888
- run(formData[name]?.value);
2889
- });
2890
- },
2891
- set(value) {
2892
- formData.update(prev => ({
2893
- ...prev,
2894
- [name]: {
2895
- statePath,
2896
- value,
2897
- isValid: validator(value),
2898
- },
2899
- }));
2900
- },
2901
- update(updater) {
2902
- formData.update(prev => {
2903
- const prevValue = prev[name]?.value;
2904
- return {
2926
+ function createInputRegisterer(formData) {
2927
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2928
+ const writableValue = {
2929
+ subscribe(run) {
2930
+ return formData.subscribe(formData => {
2931
+ run(formData[name]?.value);
2932
+ });
2933
+ },
2934
+ set(value) {
2935
+ formData.update(prev => ({
2905
2936
  ...prev,
2906
2937
  [name]: {
2907
2938
  statePath,
2908
- value: updater(prevValue),
2909
- isValid: validator(prevValue),
2939
+ value,
2940
+ isValid: validator(value),
2910
2941
  },
2911
- };
2912
- });
2913
- },
2942
+ }));
2943
+ },
2944
+ update(updater) {
2945
+ formData.update(prev => {
2946
+ const prevValue = prev[name]?.value;
2947
+ if (prevValue === undefined)
2948
+ return prev;
2949
+ const value = updater(prevValue);
2950
+ return {
2951
+ ...prev,
2952
+ [name]: {
2953
+ statePath,
2954
+ value,
2955
+ isValid: validator(value),
2956
+ },
2957
+ };
2958
+ });
2959
+ },
2960
+ };
2961
+ const readableIsValid = {
2962
+ subscribe(run) {
2963
+ return formData.subscribe(formData => {
2964
+ run(formData[name]?.isValid);
2965
+ });
2966
+ },
2967
+ };
2968
+ if (isEmpty(get(writableValue))) {
2969
+ writableValue.set(initialValue);
2970
+ }
2971
+ return {
2972
+ value: writableValue,
2973
+ isValid: readableIsValid,
2974
+ };
2914
2975
  };
2915
- if (isEmpty(get(writableValue))) {
2916
- writableValue.set(initialValue);
2917
- }
2918
- return writableValue;
2976
+ return registerInput;
2977
+ }
2978
+ /** @internal */
2979
+ const registerInput = createInputRegisterer(formData);
2980
+ /** @internal */
2981
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
2982
+ function validateFormData(formData, statePath) {
2983
+ return Object.entries(formData)
2984
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2985
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2919
2986
  }
2920
2987
  /** @internal */
2921
- const getValuesAreValidReader = statePath => ({
2988
+ const getValuesAreValidReadable = statePath => ({
2922
2989
  subscribe(callback) {
2923
- return formData.subscribe(formData => {
2924
- const valuesAreValid = Object.entries(formData)
2925
- .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2926
- .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2990
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
2991
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2927
2992
  callback(valuesAreValid);
2928
- });
2993
+ }));
2929
2994
  },
2930
2995
  });
2931
2996
  function formDataToEventValues(campaignId, formData) {
@@ -2953,21 +3018,27 @@ function formDataToEventValues(campaignId, formData) {
2953
3018
  },
2954
3019
  };
2955
3020
  }
3021
+ function formDataToIdentifyEventValues(formData) {
3022
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
3023
+ const value = dataItem.value;
3024
+ return [name, value];
3025
+ }));
3026
+ }
2956
3027
  /** @internal */
2957
3028
  function submit() {
2958
3029
  const systemConfig = getSystem();
2959
3030
  const campaignId = systemConfig.campaignId;
2960
3031
  if (campaignId) {
2961
3032
  const formData$1 = get(formData);
3033
+ const identifyFormData$1 = get(identifyFormData);
2962
3034
  const values = formDataToEventValues(campaignId, formData$1);
2963
- return values;
2964
- }
2965
- {
2966
- const formData$1 = get(formData);
2967
- const values = formDataToEventValues('mock', formData$1);
2968
- console.log('values: ', values);
2969
- return values;
3035
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
3036
+ if (Object.keys(identifyValues).length > 0) {
3037
+ identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
3038
+ }
3039
+ return { values, identifyValues };
2970
3040
  }
3041
+ return {};
2971
3042
  }
2972
3043
 
2973
3044
  /**
@@ -3024,8 +3095,11 @@ const runScript = (handlerName) => () => {
3024
3095
  };
3025
3096
  /** @internal */
3026
3097
  const submitForm = (to) => () => {
3027
- const values = submit();
3098
+ const { values, identifyValues } = submit();
3028
3099
  send_event('_answer_question', values);
3100
+ if (Object.keys(identifyValues).length > 0) {
3101
+ send_event('identify', identifyValues);
3102
+ }
3029
3103
  _moveTo(to);
3030
3104
  };
3031
3105
  /** @internal */
@@ -3089,7 +3163,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
3089
3163
 
3090
3164
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3091
3165
 
3092
- function add_css$s(target) {
3166
+ function add_css$u(target) {
3093
3167
  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}");
3094
3168
  }
3095
3169
 
@@ -3134,7 +3208,7 @@ function create_if_block$7(ctx) {
3134
3208
  };
3135
3209
  }
3136
3210
 
3137
- function create_fragment$v(ctx) {
3211
+ function create_fragment$x(ctx) {
3138
3212
  let if_block_anchor;
3139
3213
  let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$7(ctx);
3140
3214
 
@@ -3174,7 +3248,7 @@ function create_fragment$v(ctx) {
3174
3248
  };
3175
3249
  }
3176
3250
 
3177
- function instance$v($$self, $$props, $$invalidate) {
3251
+ function instance$x($$self, $$props, $$invalidate) {
3178
3252
  let { backgroundOverlay = false } = $$props;
3179
3253
  let { class: className = undefined } = $$props;
3180
3254
  const dispatch = createEventDispatcher();
@@ -3191,7 +3265,7 @@ function instance$v($$self, $$props, $$invalidate) {
3191
3265
  class BackgroundOverlay extends SvelteComponent {
3192
3266
  constructor(options) {
3193
3267
  super();
3194
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3268
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$u);
3195
3269
  }
3196
3270
  }
3197
3271
 
@@ -3231,8 +3305,8 @@ function checkStopPropagation(eventName, handler) {
3231
3305
 
3232
3306
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3233
3307
 
3234
- function add_css$r(target) {
3235
- 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}");
3308
+ function add_css$t(target) {
3309
+ 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}");
3236
3310
  }
3237
3311
 
3238
3312
  // (50:0) {:else}
@@ -3271,7 +3345,7 @@ function create_else_block$4(ctx) {
3271
3345
  },
3272
3346
  h() {
3273
3347
  set_attributes(button, button_data);
3274
- toggle_class(button, "svelte-1dtbrzj", true);
3348
+ toggle_class(button, "svelte-1kmu8zp", true);
3275
3349
  },
3276
3350
  m(target, anchor) {
3277
3351
  insert_hydration(target, button, anchor);
@@ -3310,7 +3384,7 @@ function create_else_block$4(ctx) {
3310
3384
  dataAttrStopPropagation('click')
3311
3385
  ]));
3312
3386
 
3313
- toggle_class(button, "svelte-1dtbrzj", true);
3387
+ toggle_class(button, "svelte-1kmu8zp", true);
3314
3388
  },
3315
3389
  i(local) {
3316
3390
  if (current) return;
@@ -3351,7 +3425,7 @@ function create_if_block_2$1(ctx) {
3351
3425
  this.h();
3352
3426
  },
3353
3427
  h() {
3354
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1dtbrzj"));
3428
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
3355
3429
  attr(div, "style", /*style*/ ctx[1]);
3356
3430
  },
3357
3431
  m(target, anchor) {
@@ -3451,7 +3525,7 @@ function create_if_block_1$2(ctx) {
3451
3525
  },
3452
3526
  h() {
3453
3527
  set_attributes(a, a_data);
3454
- toggle_class(a, "svelte-1dtbrzj", true);
3528
+ toggle_class(a, "svelte-1kmu8zp", true);
3455
3529
  },
3456
3530
  m(target, anchor) {
3457
3531
  insert_hydration(target, a, anchor);
@@ -3493,7 +3567,7 @@ function create_if_block_1$2(ctx) {
3493
3567
  dataAttrStopPropagation('click')
3494
3568
  ]));
3495
3569
 
3496
- toggle_class(a, "svelte-1dtbrzj", true);
3570
+ toggle_class(a, "svelte-1kmu8zp", true);
3497
3571
  },
3498
3572
  i(local) {
3499
3573
  if (current) return;
@@ -3534,7 +3608,7 @@ function create_if_block$6(ctx) {
3534
3608
  this.h();
3535
3609
  },
3536
3610
  h() {
3537
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1dtbrzj"));
3611
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
3538
3612
  attr(div, "style", /*style*/ ctx[1]);
3539
3613
  },
3540
3614
  m(target, anchor) {
@@ -3582,7 +3656,7 @@ function create_if_block$6(ctx) {
3582
3656
  };
3583
3657
  }
3584
3658
 
3585
- function create_fragment$u(ctx) {
3659
+ function create_fragment$w(ctx) {
3586
3660
  let current_block_type_index;
3587
3661
  let if_block;
3588
3662
  let if_block_anchor;
@@ -3659,7 +3733,7 @@ function create_fragment$u(ctx) {
3659
3733
 
3660
3734
  const BUTTON_CLASS = 'button';
3661
3735
 
3662
- function instance$u($$self, $$props, $$invalidate) {
3736
+ function instance$w($$self, $$props, $$invalidate) {
3663
3737
  let disabled;
3664
3738
  let $valuesAreValid;
3665
3739
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -3677,7 +3751,7 @@ function instance$u($$self, $$props, $$invalidate) {
3677
3751
  }
3678
3752
 
3679
3753
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3680
- const valuesAreValid = getValuesAreValidReader(statePath);
3754
+ const valuesAreValid = getValuesAreValidReadable(statePath);
3681
3755
  component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3682
3756
 
3683
3757
  $$self.$$set = $$props => {
@@ -3725,8 +3799,8 @@ class Button extends SvelteComponent {
3725
3799
  init(
3726
3800
  this,
3727
3801
  options,
3728
- instance$u,
3729
- create_fragment$u,
3802
+ instance$w,
3803
+ create_fragment$w,
3730
3804
  safe_not_equal,
3731
3805
  {
3732
3806
  onClick: 0,
@@ -3734,14 +3808,14 @@ class Button extends SvelteComponent {
3734
3808
  eventValue: 6,
3735
3809
  style: 1
3736
3810
  },
3737
- add_css$r
3811
+ add_css$t
3738
3812
  );
3739
3813
  }
3740
3814
  }
3741
3815
 
3742
3816
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
3743
3817
 
3744
- function add_css$q(target) {
3818
+ function add_css$s(target) {
3745
3819
  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}}");
3746
3820
  }
3747
3821
 
@@ -4207,7 +4281,7 @@ function create_default_slot$6(ctx) {
4207
4281
  };
4208
4282
  }
4209
4283
 
4210
- function create_fragment$t(ctx) {
4284
+ function create_fragment$v(ctx) {
4211
4285
  let show_if;
4212
4286
  let current_block_type_index;
4213
4287
  let if_block0;
@@ -4331,7 +4405,7 @@ function create_fragment$t(ctx) {
4331
4405
  };
4332
4406
  }
4333
4407
 
4334
- function instance$t($$self, $$props, $$invalidate) {
4408
+ function instance$v($$self, $$props, $$invalidate) {
4335
4409
  let close;
4336
4410
  let closable;
4337
4411
  let backgroundClick;
@@ -4611,8 +4685,8 @@ class Modal extends SvelteComponent {
4611
4685
  init(
4612
4686
  this,
4613
4687
  options,
4614
- instance$t,
4615
- create_fragment$t,
4688
+ instance$v,
4689
+ create_fragment$v,
4616
4690
  safe_not_equal,
4617
4691
  {
4618
4692
  onClick: 0,
@@ -4630,7 +4704,7 @@ class Modal extends SvelteComponent {
4630
4704
  closeButtonColor: 9,
4631
4705
  _closeStyle: 10
4632
4706
  },
4633
- add_css$q,
4707
+ add_css$s,
4634
4708
  [-1, -1]
4635
4709
  );
4636
4710
  }
@@ -4638,7 +4712,7 @@ class Modal extends SvelteComponent {
4638
4712
 
4639
4713
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
4640
4714
 
4641
- function create_fragment$s(ctx) {
4715
+ function create_fragment$u(ctx) {
4642
4716
  let div;
4643
4717
  let current;
4644
4718
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -4706,7 +4780,7 @@ function create_fragment$s(ctx) {
4706
4780
  };
4707
4781
  }
4708
4782
 
4709
- function instance$s($$self, $$props, $$invalidate) {
4783
+ function instance$u($$self, $$props, $$invalidate) {
4710
4784
  let _style;
4711
4785
  let { $$slots: slots = {}, $$scope } = $$props;
4712
4786
  let { width = '512px' } = $$props;
@@ -4751,7 +4825,7 @@ class Grid extends SvelteComponent {
4751
4825
  constructor(options) {
4752
4826
  super();
4753
4827
 
4754
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
4828
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, {
4755
4829
  width: 1,
4756
4830
  height: 2,
4757
4831
  rows: 3,
@@ -4764,11 +4838,11 @@ class Grid extends SvelteComponent {
4764
4838
 
4765
4839
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
4766
4840
 
4767
- function add_css$p(target) {
4841
+ function add_css$r(target) {
4768
4842
  append_styles(target, "svelte-1cryhmb", ".grid-item.svelte-1cryhmb{word-break:break-all;position:relative}.grid-item-inner.svelte-1cryhmb{position:absolute;inset:0}");
4769
4843
  }
4770
4844
 
4771
- function create_fragment$r(ctx) {
4845
+ function create_fragment$t(ctx) {
4772
4846
  let div1;
4773
4847
  let div0;
4774
4848
  let current;
@@ -4861,7 +4935,7 @@ function create_fragment$r(ctx) {
4861
4935
 
4862
4936
  const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
4863
4937
 
4864
- function instance$r($$self, $$props, $$invalidate) {
4938
+ function instance$t($$self, $$props, $$invalidate) {
4865
4939
  let _style;
4866
4940
  let { $$slots: slots = {}, $$scope } = $$props;
4867
4941
  let { x1 } = $$props;
@@ -4910,8 +4984,8 @@ class GridItem extends SvelteComponent {
4910
4984
  init(
4911
4985
  this,
4912
4986
  options,
4913
- instance$r,
4914
- create_fragment$r,
4987
+ instance$t,
4988
+ create_fragment$t,
4915
4989
  safe_not_equal,
4916
4990
  {
4917
4991
  x1: 2,
@@ -4922,7 +4996,7 @@ class GridItem extends SvelteComponent {
4922
4996
  background: 7,
4923
4997
  gridItemId: 0
4924
4998
  },
4925
- add_css$p
4999
+ add_css$r
4926
5000
  );
4927
5001
  }
4928
5002
  }
@@ -5028,7 +5102,7 @@ function create_each_block$6(ctx) {
5028
5102
  };
5029
5103
  }
5030
5104
 
5031
- function create_fragment$q(ctx) {
5105
+ function create_fragment$s(ctx) {
5032
5106
  let each_1_anchor;
5033
5107
  let each_value = /*items*/ ctx[0];
5034
5108
  let each_blocks = [];
@@ -5094,7 +5168,7 @@ function create_fragment$q(ctx) {
5094
5168
 
5095
5169
  const regexp = /(\r?\n)/;
5096
5170
 
5097
- function instance$q($$self, $$props, $$invalidate) {
5171
+ function instance$s($$self, $$props, $$invalidate) {
5098
5172
  let items;
5099
5173
  let { text = 'サンプルSample' } = $$props;
5100
5174
 
@@ -5115,13 +5189,13 @@ function instance$q($$self, $$props, $$invalidate) {
5115
5189
  class RenderText extends SvelteComponent {
5116
5190
  constructor(options) {
5117
5191
  super();
5118
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { text: 1 });
5192
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { text: 1 });
5119
5193
  }
5120
5194
  }
5121
5195
 
5122
5196
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5123
5197
 
5124
- function add_css$o(target) {
5198
+ function add_css$q(target) {
5125
5199
  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}");
5126
5200
  }
5127
5201
 
@@ -5305,7 +5379,7 @@ function create_if_block$3(ctx) {
5305
5379
  };
5306
5380
  }
5307
5381
 
5308
- function create_fragment$p(ctx) {
5382
+ function create_fragment$r(ctx) {
5309
5383
  let div;
5310
5384
  let current_block_type_index;
5311
5385
  let if_block;
@@ -5385,7 +5459,7 @@ function create_fragment$p(ctx) {
5385
5459
  };
5386
5460
  }
5387
5461
 
5388
- function instance$p($$self, $$props, $$invalidate) {
5462
+ function instance$r($$self, $$props, $$invalidate) {
5389
5463
  let style;
5390
5464
  let { text = 'テキストのコンテンツ' } = $$props;
5391
5465
  let { font = SYSTEM_FONT } = $$props;
@@ -5481,8 +5555,8 @@ class TextElement extends SvelteComponent {
5481
5555
  init(
5482
5556
  this,
5483
5557
  options,
5484
- instance$p,
5485
- create_fragment$p,
5558
+ instance$r,
5559
+ create_fragment$r,
5486
5560
  safe_not_equal,
5487
5561
  {
5488
5562
  text: 0,
@@ -5493,14 +5567,14 @@ class TextElement extends SvelteComponent {
5493
5567
  enableCopy: 2,
5494
5568
  eventName: 10
5495
5569
  },
5496
- add_css$o
5570
+ add_css$q
5497
5571
  );
5498
5572
  }
5499
5573
  }
5500
5574
 
5501
5575
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
5502
5576
 
5503
- function add_css$n(target) {
5577
+ function add_css$p(target) {
5504
5578
  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)}");
5505
5579
  }
5506
5580
 
@@ -5541,7 +5615,7 @@ function create_default_slot$5(ctx) {
5541
5615
  };
5542
5616
  }
5543
5617
 
5544
- function create_fragment$o(ctx) {
5618
+ function create_fragment$q(ctx) {
5545
5619
  let div;
5546
5620
  let button;
5547
5621
  let current;
@@ -5605,7 +5679,7 @@ function create_fragment$o(ctx) {
5605
5679
  };
5606
5680
  }
5607
5681
 
5608
- function instance$o($$self, $$props, $$invalidate) {
5682
+ function instance$q($$self, $$props, $$invalidate) {
5609
5683
  let style;
5610
5684
  let { text = 'ボタンのラベル' } = $$props;
5611
5685
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -5643,8 +5717,8 @@ class TextButtonElement extends SvelteComponent {
5643
5717
  init(
5644
5718
  this,
5645
5719
  options,
5646
- instance$o,
5647
- create_fragment$o,
5720
+ instance$q,
5721
+ create_fragment$q,
5648
5722
  safe_not_equal,
5649
5723
  {
5650
5724
  text: 0,
@@ -5654,14 +5728,14 @@ class TextButtonElement extends SvelteComponent {
5654
5728
  _buttonStyle: 5,
5655
5729
  _style: 6
5656
5730
  },
5657
- add_css$n
5731
+ add_css$p
5658
5732
  );
5659
5733
  }
5660
5734
  }
5661
5735
 
5662
5736
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
5663
5737
 
5664
- function add_css$m(target) {
5738
+ function add_css$o(target) {
5665
5739
  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%}");
5666
5740
  }
5667
5741
 
@@ -5732,7 +5806,7 @@ function create_default_slot$4(ctx) {
5732
5806
  };
5733
5807
  }
5734
5808
 
5735
- function create_fragment$n(ctx) {
5809
+ function create_fragment$p(ctx) {
5736
5810
  let div;
5737
5811
  let button;
5738
5812
  let div_class_value;
@@ -5801,7 +5875,7 @@ function create_fragment$n(ctx) {
5801
5875
  };
5802
5876
  }
5803
5877
 
5804
- function instance$n($$self, $$props, $$invalidate) {
5878
+ function instance$p($$self, $$props, $$invalidate) {
5805
5879
  let { src = '' } = $$props;
5806
5880
  let { alt = '画像の説明' } = $$props;
5807
5881
  let { transport = false } = $$props;
@@ -5832,8 +5906,8 @@ class ImageElement extends SvelteComponent {
5832
5906
  init(
5833
5907
  this,
5834
5908
  options,
5835
- instance$n,
5836
- create_fragment$n,
5909
+ instance$p,
5910
+ create_fragment$p,
5837
5911
  safe_not_equal,
5838
5912
  {
5839
5913
  src: 0,
@@ -5845,18 +5919,18 @@ class ImageElement extends SvelteComponent {
5845
5919
  _imageStyle: 6,
5846
5920
  _style: 7
5847
5921
  },
5848
- add_css$m
5922
+ add_css$o
5849
5923
  );
5850
5924
  }
5851
5925
  }
5852
5926
 
5853
5927
  /* src/components/List.svelte generated by Svelte v3.53.1 */
5854
5928
 
5855
- function add_css$l(target) {
5929
+ function add_css$n(target) {
5856
5930
  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}");
5857
5931
  }
5858
5932
 
5859
- function create_fragment$m(ctx) {
5933
+ function create_fragment$o(ctx) {
5860
5934
  let div;
5861
5935
  let current;
5862
5936
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -5926,7 +6000,7 @@ function create_fragment$m(ctx) {
5926
6000
 
5927
6001
  const LIST_CONTEXT_KEY = Symbol();
5928
6002
 
5929
- function instance$m($$self, $$props, $$invalidate) {
6003
+ function instance$o($$self, $$props, $$invalidate) {
5930
6004
  let style;
5931
6005
  let { $$slots: slots = {}, $$scope } = $$props;
5932
6006
  let { direction = 'vertical' } = $$props;
@@ -5993,8 +6067,8 @@ class List extends SvelteComponent {
5993
6067
  init(
5994
6068
  this,
5995
6069
  options,
5996
- instance$m,
5997
- create_fragment$m,
6070
+ instance$o,
6071
+ create_fragment$o,
5998
6072
  safe_not_equal,
5999
6073
  {
6000
6074
  direction: 1,
@@ -6002,14 +6076,14 @@ class List extends SvelteComponent {
6002
6076
  background: 3,
6003
6077
  _style: 4
6004
6078
  },
6005
- add_css$l
6079
+ add_css$n
6006
6080
  );
6007
6081
  }
6008
6082
  }
6009
6083
 
6010
6084
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
6011
6085
 
6012
- function add_css$k(target) {
6086
+ function add_css$m(target) {
6013
6087
  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}");
6014
6088
  }
6015
6089
 
@@ -6064,7 +6138,7 @@ function create_default_slot$3(ctx) {
6064
6138
  };
6065
6139
  }
6066
6140
 
6067
- function create_fragment$l(ctx) {
6141
+ function create_fragment$n(ctx) {
6068
6142
  let div;
6069
6143
  let button;
6070
6144
  let current;
@@ -6133,7 +6207,7 @@ function create_fragment$l(ctx) {
6133
6207
  };
6134
6208
  }
6135
6209
 
6136
- function instance$l($$self, $$props, $$invalidate) {
6210
+ function instance$n($$self, $$props, $$invalidate) {
6137
6211
  let listItemStyle;
6138
6212
  let { $$slots: slots = {}, $$scope } = $$props;
6139
6213
  const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
@@ -6212,17 +6286,17 @@ function instance$l($$self, $$props, $$invalidate) {
6212
6286
  class ListItem extends SvelteComponent {
6213
6287
  constructor(options) {
6214
6288
  super();
6215
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$k);
6289
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$m);
6216
6290
  }
6217
6291
  }
6218
6292
 
6219
6293
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6220
6294
 
6221
- function add_css$j(target) {
6295
+ function add_css$l(target) {
6222
6296
  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}");
6223
6297
  }
6224
6298
 
6225
- function create_fragment$k(ctx) {
6299
+ function create_fragment$m(ctx) {
6226
6300
  let div;
6227
6301
 
6228
6302
  return {
@@ -6258,7 +6332,7 @@ function create_fragment$k(ctx) {
6258
6332
  };
6259
6333
  }
6260
6334
 
6261
- function instance$k($$self, $$props, $$invalidate) {
6335
+ function instance$m($$self, $$props, $$invalidate) {
6262
6336
  let { code } = $$props;
6263
6337
  let { _style = '' } = $$props;
6264
6338
 
@@ -6273,17 +6347,17 @@ function instance$k($$self, $$props, $$invalidate) {
6273
6347
  class EmbedElement extends SvelteComponent {
6274
6348
  constructor(options) {
6275
6349
  super();
6276
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { code: 0, _style: 1 }, add_css$j);
6350
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { code: 0, _style: 1 }, add_css$l);
6277
6351
  }
6278
6352
  }
6279
6353
 
6280
6354
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6281
6355
 
6282
- function add_css$i(target) {
6356
+ function add_css$k(target) {
6283
6357
  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%}");
6284
6358
  }
6285
6359
 
6286
- function create_fragment$j(ctx) {
6360
+ function create_fragment$l(ctx) {
6287
6361
  let div1;
6288
6362
  let div0;
6289
6363
 
@@ -6335,7 +6409,7 @@ function _setValue(obj, key, value) {
6335
6409
  }
6336
6410
  }
6337
6411
 
6338
- function instance$j($$self, $$props, $$invalidate) {
6412
+ function instance$l($$self, $$props, $$invalidate) {
6339
6413
  let $system;
6340
6414
  component_subscribe($$self, system, $$value => $$invalidate(31, $system = $$value));
6341
6415
  let { videoId = 'wt0OjOeX-JA' } = $$props;
@@ -6606,8 +6680,8 @@ class MovieYouTubeElement extends SvelteComponent {
6606
6680
  init(
6607
6681
  this,
6608
6682
  options,
6609
- instance$j,
6610
- create_fragment$j,
6683
+ instance$l,
6684
+ create_fragment$l,
6611
6685
  safe_not_equal,
6612
6686
  {
6613
6687
  videoId: 2,
@@ -6636,7 +6710,7 @@ class MovieYouTubeElement extends SvelteComponent {
6636
6710
  mute: 25,
6637
6711
  _style: 0
6638
6712
  },
6639
- add_css$i,
6713
+ add_css$k,
6640
6714
  [-1, -1]
6641
6715
  );
6642
6716
  }
@@ -6644,11 +6718,11 @@ class MovieYouTubeElement extends SvelteComponent {
6644
6718
 
6645
6719
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
6646
6720
 
6647
- function add_css$h(target) {
6721
+ function add_css$j(target) {
6648
6722
  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%}");
6649
6723
  }
6650
6724
 
6651
- function create_fragment$i(ctx) {
6725
+ function create_fragment$k(ctx) {
6652
6726
  let div1;
6653
6727
  let div0;
6654
6728
 
@@ -6690,7 +6764,7 @@ function create_fragment$i(ctx) {
6690
6764
  };
6691
6765
  }
6692
6766
 
6693
- function instance$i($$self, $$props, $$invalidate) {
6767
+ function instance$k($$self, $$props, $$invalidate) {
6694
6768
  let $system;
6695
6769
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
6696
6770
  let { videoId = "201239468" } = $$props;
@@ -6833,8 +6907,8 @@ class MovieVimeoElement extends SvelteComponent {
6833
6907
  init(
6834
6908
  this,
6835
6909
  options,
6836
- instance$i,
6837
- create_fragment$i,
6910
+ instance$k,
6911
+ create_fragment$k,
6838
6912
  safe_not_equal,
6839
6913
  {
6840
6914
  videoId: 2,
@@ -6844,18 +6918,18 @@ class MovieVimeoElement extends SvelteComponent {
6844
6918
  mute: 6,
6845
6919
  _style: 0
6846
6920
  },
6847
- add_css$h
6921
+ add_css$j
6848
6922
  );
6849
6923
  }
6850
6924
  }
6851
6925
 
6852
6926
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
6853
6927
 
6854
- function add_css$g(target) {
6928
+ function add_css$i(target) {
6855
6929
  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}");
6856
6930
  }
6857
6931
 
6858
- function create_fragment$h(ctx) {
6932
+ function create_fragment$j(ctx) {
6859
6933
  let div;
6860
6934
  let textarea;
6861
6935
  let mounted;
@@ -6930,7 +7004,7 @@ function create_fragment$h(ctx) {
6930
7004
  };
6931
7005
  }
6932
7006
 
6933
- function instance$h($$self, $$props, $$invalidate) {
7007
+ function instance$j($$self, $$props, $$invalidate) {
6934
7008
  let style;
6935
7009
  let styleVariables;
6936
7010
  let $value;
@@ -6944,7 +7018,7 @@ function instance$h($$self, $$props, $$invalidate) {
6944
7018
  let { _placeholderStyle = 'color: #ccc;' } = $$props;
6945
7019
  const { path: statePath } = getStateItemContext();
6946
7020
 
6947
- const value = registerInput({
7021
+ const { value } = registerInput({
6948
7022
  name,
6949
7023
  statePath,
6950
7024
  initialValue: '',
@@ -7018,8 +7092,8 @@ class FormTextarea extends SvelteComponent {
7018
7092
  init(
7019
7093
  this,
7020
7094
  options,
7021
- instance$h,
7022
- create_fragment$h,
7095
+ instance$j,
7096
+ create_fragment$j,
7023
7097
  safe_not_equal,
7024
7098
  {
7025
7099
  name: 7,
@@ -7031,14 +7105,14 @@ class FormTextarea extends SvelteComponent {
7031
7105
  _textStyle: 11,
7032
7106
  _placeholderStyle: 12
7033
7107
  },
7034
- add_css$g
7108
+ add_css$i
7035
7109
  );
7036
7110
  }
7037
7111
  }
7038
7112
 
7039
7113
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
7040
7114
 
7041
- function add_css$f(target) {
7115
+ function add_css$h(target) {
7042
7116
  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}");
7043
7117
  }
7044
7118
 
@@ -7151,7 +7225,7 @@ function create_each_block$5(ctx) {
7151
7225
  };
7152
7226
  }
7153
7227
 
7154
- function create_fragment$g(ctx) {
7228
+ function create_fragment$i(ctx) {
7155
7229
  let div;
7156
7230
  let each_value = /*_options*/ ctx[4];
7157
7231
  let each_blocks = [];
@@ -7229,7 +7303,7 @@ function create_fragment$g(ctx) {
7229
7303
  };
7230
7304
  }
7231
7305
 
7232
- function instance$g($$self, $$props, $$invalidate) {
7306
+ function instance$i($$self, $$props, $$invalidate) {
7233
7307
  let _options;
7234
7308
  let buttonStyle;
7235
7309
  let _value;
@@ -7246,7 +7320,7 @@ function instance$g($$self, $$props, $$invalidate) {
7246
7320
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7247
7321
  const { path: statePath } = getStateItemContext();
7248
7322
 
7249
- const value = registerInput({
7323
+ const { value } = registerInput({
7250
7324
  name,
7251
7325
  statePath,
7252
7326
  initialValue: [],
@@ -7329,8 +7403,8 @@ class FormRadioButtons extends SvelteComponent {
7329
7403
  init(
7330
7404
  this,
7331
7405
  options,
7332
- instance$g,
7333
- create_fragment$g,
7406
+ instance$i,
7407
+ create_fragment$i,
7334
7408
  safe_not_equal,
7335
7409
  {
7336
7410
  name: 0,
@@ -7343,14 +7417,14 @@ class FormRadioButtons extends SvelteComponent {
7343
7417
  buttonColor: 13,
7344
7418
  buttonColorActive: 14
7345
7419
  },
7346
- add_css$f
7420
+ add_css$h
7347
7421
  );
7348
7422
  }
7349
7423
  }
7350
7424
 
7351
7425
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
7352
7426
 
7353
- function add_css$e(target) {
7427
+ function add_css$g(target) {
7354
7428
  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}");
7355
7429
  }
7356
7430
 
@@ -7477,7 +7551,7 @@ function create_each_block$4(ctx) {
7477
7551
  };
7478
7552
  }
7479
7553
 
7480
- function create_fragment$f(ctx) {
7554
+ function create_fragment$h(ctx) {
7481
7555
  let div1;
7482
7556
  let select;
7483
7557
  let t;
@@ -7587,7 +7661,7 @@ function create_fragment$f(ctx) {
7587
7661
  };
7588
7662
  }
7589
7663
 
7590
- function instance$f($$self, $$props, $$invalidate) {
7664
+ function instance$h($$self, $$props, $$invalidate) {
7591
7665
  let _options;
7592
7666
  let style;
7593
7667
  let styleVariables;
@@ -7606,7 +7680,7 @@ function instance$f($$self, $$props, $$invalidate) {
7606
7680
  let { iconSize = '12px' } = $$props;
7607
7681
  const { path: statePath } = getStateItemContext();
7608
7682
 
7609
- const value = registerInput({
7683
+ const { value } = registerInput({
7610
7684
  name,
7611
7685
  statePath,
7612
7686
  initialValue: [],
@@ -7703,8 +7777,8 @@ class FormSelect extends SvelteComponent {
7703
7777
  init(
7704
7778
  this,
7705
7779
  options,
7706
- instance$f,
7707
- create_fragment$f,
7780
+ instance$h,
7781
+ create_fragment$h,
7708
7782
  safe_not_equal,
7709
7783
  {
7710
7784
  name: 7,
@@ -7719,14 +7793,14 @@ class FormSelect extends SvelteComponent {
7719
7793
  iconColor: 15,
7720
7794
  iconSize: 16
7721
7795
  },
7722
- add_css$e
7796
+ add_css$g
7723
7797
  );
7724
7798
  }
7725
7799
  }
7726
7800
 
7727
7801
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
7728
7802
 
7729
- function add_css$d(target) {
7803
+ function add_css$f(target) {
7730
7804
  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}");
7731
7805
  }
7732
7806
 
@@ -7855,7 +7929,7 @@ function create_each_block$3(ctx) {
7855
7929
  };
7856
7930
  }
7857
7931
 
7858
- function create_fragment$e(ctx) {
7932
+ function create_fragment$g(ctx) {
7859
7933
  let div;
7860
7934
  let each_value = /*_options*/ ctx[3];
7861
7935
  let each_blocks = [];
@@ -7933,7 +8007,7 @@ function create_fragment$e(ctx) {
7933
8007
  };
7934
8008
  }
7935
8009
 
7936
- function instance$e($$self, $$props, $$invalidate) {
8010
+ function instance$g($$self, $$props, $$invalidate) {
7937
8011
  let _options;
7938
8012
  let styleVariables;
7939
8013
  let isCheckedArray;
@@ -7950,7 +8024,7 @@ function instance$e($$self, $$props, $$invalidate) {
7950
8024
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7951
8025
  const { path: statePath } = getStateItemContext();
7952
8026
 
7953
- const value = registerInput({
8027
+ const { value } = registerInput({
7954
8028
  name,
7955
8029
  statePath,
7956
8030
  initialValue: [],
@@ -8039,8 +8113,8 @@ class FormCheckBoxes extends SvelteComponent {
8039
8113
  init(
8040
8114
  this,
8041
8115
  options,
8042
- instance$e,
8043
- create_fragment$e,
8116
+ instance$g,
8117
+ create_fragment$g,
8044
8118
  safe_not_equal,
8045
8119
  {
8046
8120
  name: 0,
@@ -8053,14 +8127,14 @@ class FormCheckBoxes extends SvelteComponent {
8053
8127
  buttonColor: 13,
8054
8128
  buttonColorActive: 14
8055
8129
  },
8056
- add_css$d
8130
+ add_css$f
8057
8131
  );
8058
8132
  }
8059
8133
  }
8060
8134
 
8061
8135
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
8062
8136
 
8063
- function add_css$c(target) {
8137
+ function add_css$e(target) {
8064
8138
  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}");
8065
8139
  }
8066
8140
 
@@ -8128,7 +8202,7 @@ function create_each_block$2(ctx) {
8128
8202
  };
8129
8203
  }
8130
8204
 
8131
- function create_fragment$d(ctx) {
8205
+ function create_fragment$f(ctx) {
8132
8206
  let div;
8133
8207
  let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
8134
8208
  let each_blocks = [];
@@ -8203,7 +8277,7 @@ function create_fragment$d(ctx) {
8203
8277
 
8204
8278
  const func$1 = i => i + 1;
8205
8279
 
8206
- function instance$d($$self, $$props, $$invalidate) {
8280
+ function instance$f($$self, $$props, $$invalidate) {
8207
8281
  let _value;
8208
8282
  let $value;
8209
8283
  let { name = '' } = $$props;
@@ -8214,7 +8288,7 @@ function instance$d($$self, $$props, $$invalidate) {
8214
8288
  let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
8215
8289
  const { path: statePath } = getStateItemContext();
8216
8290
 
8217
- const value = registerInput({
8291
+ const { value } = registerInput({
8218
8292
  name,
8219
8293
  statePath,
8220
8294
  initialValue: [],
@@ -8279,8 +8353,8 @@ class FormRatingButtonsNumber extends SvelteComponent {
8279
8353
  init(
8280
8354
  this,
8281
8355
  options,
8282
- instance$d,
8283
- create_fragment$d,
8356
+ instance$f,
8357
+ create_fragment$f,
8284
8358
  safe_not_equal,
8285
8359
  {
8286
8360
  name: 5,
@@ -8290,14 +8364,14 @@ class FormRatingButtonsNumber extends SvelteComponent {
8290
8364
  buttonStyle: 8,
8291
8365
  buttonActiveStyle: 9
8292
8366
  },
8293
- add_css$c
8367
+ add_css$e
8294
8368
  );
8295
8369
  }
8296
8370
  }
8297
8371
 
8298
8372
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
8299
8373
 
8300
- function add_css$b(target) {
8374
+ function add_css$d(target) {
8301
8375
  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%)}");
8302
8376
  }
8303
8377
 
@@ -8368,7 +8442,7 @@ function create_each_block$1(ctx) {
8368
8442
  };
8369
8443
  }
8370
8444
 
8371
- function create_fragment$c(ctx) {
8445
+ function create_fragment$e(ctx) {
8372
8446
  let div;
8373
8447
  let each_value = [...Array(count).keys()].reverse().map(func);
8374
8448
  let each_blocks = [];
@@ -8444,7 +8518,7 @@ function create_fragment$c(ctx) {
8444
8518
  const count = 5;
8445
8519
  const func = i => i + 1;
8446
8520
 
8447
- function instance$c($$self, $$props, $$invalidate) {
8521
+ function instance$e($$self, $$props, $$invalidate) {
8448
8522
  let _value;
8449
8523
  let buttonStyle;
8450
8524
  let $value;
@@ -8462,7 +8536,7 @@ function instance$c($$self, $$props, $$invalidate) {
8462
8536
 
8463
8537
  const { path: statePath } = getStateItemContext();
8464
8538
 
8465
- const value = registerInput({
8539
+ const { value } = registerInput({
8466
8540
  name,
8467
8541
  statePath,
8468
8542
  initialValue: [],
@@ -8500,7 +8574,484 @@ function instance$c($$self, $$props, $$invalidate) {
8500
8574
  class FormRatingButtonsFace extends SvelteComponent {
8501
8575
  constructor(options) {
8502
8576
  super();
8503
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$b);
8577
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$d);
8578
+ }
8579
+ }
8580
+
8581
+ /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
8582
+
8583
+ function add_css$c(target) {
8584
+ 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}");
8585
+ }
8586
+
8587
+ function create_fragment$d(ctx) {
8588
+ let div;
8589
+ let input;
8590
+ let input_class_value;
8591
+ let mounted;
8592
+ let dispose;
8593
+
8594
+ return {
8595
+ c() {
8596
+ div = element("div");
8597
+ input = element("input");
8598
+ this.h();
8599
+ },
8600
+ l(nodes) {
8601
+ div = claim_element(nodes, "DIV", { class: true, style: true });
8602
+ var div_nodes = children(div);
8603
+
8604
+ input = claim_element(div_nodes, "INPUT", {
8605
+ class: true,
8606
+ type: true,
8607
+ placeholder: true,
8608
+ style: true
8609
+ });
8610
+
8611
+ div_nodes.forEach(detach);
8612
+ this.h();
8613
+ },
8614
+ h() {
8615
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"));
8616
+ attr(input, "type", "text");
8617
+ input.value = /*$value*/ ctx[4];
8618
+ input.required = /*required*/ ctx[0];
8619
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8620
+ attr(input, "style", /*style*/ ctx[3]);
8621
+ attr(div, "class", "input-wrapper svelte-17a0wgl");
8622
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8623
+ },
8624
+ m(target, anchor) {
8625
+ insert_hydration(target, div, anchor);
8626
+ append_hydration(div, input);
8627
+
8628
+ if (!mounted) {
8629
+ dispose = listen(input, "input", /*stringInputHandler*/ ctx[8]);
8630
+ mounted = true;
8631
+ }
8632
+ },
8633
+ p(ctx, [dirty]) {
8634
+ if (dirty & /*$isValid*/ 32 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"))) {
8635
+ attr(input, "class", input_class_value);
8636
+ }
8637
+
8638
+ if (dirty & /*$value*/ 16 && input.value !== /*$value*/ ctx[4]) {
8639
+ input.value = /*$value*/ ctx[4];
8640
+ }
8641
+
8642
+ if (dirty & /*required*/ 1) {
8643
+ input.required = /*required*/ ctx[0];
8644
+ }
8645
+
8646
+ if (dirty & /*placeholder*/ 2) {
8647
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8648
+ }
8649
+
8650
+ if (dirty & /*style*/ 8) {
8651
+ attr(input, "style", /*style*/ ctx[3]);
8652
+ }
8653
+
8654
+ if (dirty & /*styleVariables*/ 4) {
8655
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8656
+ }
8657
+ },
8658
+ i: noop,
8659
+ o: noop,
8660
+ d(detaching) {
8661
+ if (detaching) detach(div);
8662
+ mounted = false;
8663
+ dispose();
8664
+ }
8665
+ };
8666
+ }
8667
+
8668
+ function instance$d($$self, $$props, $$invalidate) {
8669
+ let style;
8670
+ let styleVariables;
8671
+ let $value;
8672
+ let $isValid;
8673
+ let { field = 'email' } = $$props;
8674
+
8675
+ let { validation = {
8676
+ // FormIdentifyTextFieldValidations[DefaultFormIdentifyTextField]
8677
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
8678
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
8679
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
8680
+ flags: ''
8681
+ } } = $$props;
8682
+
8683
+ let { required = true } = $$props;
8684
+ let { placeholder = 'メールアドレスを入力' } = $$props;
8685
+ let { _style = '' } = $$props;
8686
+ let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
8687
+ let { _errorStyle = 'border-width: 2px; border-color: #ff8726; border-style: solid' } = $$props;
8688
+ let { font = SYSTEM_FONT } = $$props;
8689
+ let { _textStyle = '' } = $$props;
8690
+ let { _placeholderStyle = 'color: #ccc;' } = $$props;
8691
+ const { path: statePath } = getStateItemContext();
8692
+
8693
+ const validationRegExp = (() => {
8694
+ try {
8695
+ return new RegExp(validation.pattern, validation.flags);
8696
+ } catch(e) {
8697
+ return undefined;
8698
+ }
8699
+ })();
8700
+
8701
+ const { value, isValid } = registerIdentifyInput({
8702
+ name: field,
8703
+ statePath,
8704
+ initialValue: '',
8705
+ validator(value) {
8706
+ if (value.length > 0 && validationRegExp && validationRegExp.test(value)) {
8707
+ return true;
8708
+ } else if (!required && value === '') {
8709
+ return true;
8710
+ } else {
8711
+ return false;
8712
+ }
8713
+ }
8714
+ });
8715
+
8716
+ component_subscribe($$self, value, value => $$invalidate(4, $value = value));
8717
+ component_subscribe($$self, isValid, value => $$invalidate(5, $isValid = value));
8718
+
8719
+ function stringInputHandler(event) {
8720
+ set_store_value(value, $value = event.target.value, $value);
8721
+ }
8722
+
8723
+ $$self.$$set = $$props => {
8724
+ if ('field' in $$props) $$invalidate(9, field = $$props.field);
8725
+ if ('validation' in $$props) $$invalidate(10, validation = $$props.validation);
8726
+ if ('required' in $$props) $$invalidate(0, required = $$props.required);
8727
+ if ('placeholder' in $$props) $$invalidate(1, placeholder = $$props.placeholder);
8728
+ if ('_style' in $$props) $$invalidate(11, _style = $$props._style);
8729
+ if ('_focusStyle' in $$props) $$invalidate(12, _focusStyle = $$props._focusStyle);
8730
+ if ('_errorStyle' in $$props) $$invalidate(13, _errorStyle = $$props._errorStyle);
8731
+ if ('font' in $$props) $$invalidate(14, font = $$props.font);
8732
+ if ('_textStyle' in $$props) $$invalidate(15, _textStyle = $$props._textStyle);
8733
+ if ('_placeholderStyle' in $$props) $$invalidate(16, _placeholderStyle = $$props._placeholderStyle);
8734
+ };
8735
+
8736
+ $$self.$$.update = () => {
8737
+ if ($$self.$$.dirty & /*font*/ 16384) {
8738
+ addFont(font);
8739
+ }
8740
+
8741
+ if ($$self.$$.dirty & /*_style, _textStyle, font*/ 51200) {
8742
+ $$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
8743
+ }
8744
+
8745
+ if ($$self.$$.dirty & /*_focusStyle, _errorStyle, _placeholderStyle*/ 77824) {
8746
+ $$invalidate(2, styleVariables = (() => {
8747
+ const variables = {};
8748
+ const focusStyleObj = parseStyle(_focusStyle);
8749
+ const errorStyleObj = parseStyle(_errorStyle);
8750
+ const placeholderStyle = parseStyle(_placeholderStyle);
8751
+ if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
8752
+ if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
8753
+ if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
8754
+ if (errorStyleObj['border-width']) variables['--error-border-width'] = errorStyleObj['border-width'];
8755
+ if (errorStyleObj['border-color']) variables['--error-border-color'] = errorStyleObj['border-color'];
8756
+ if (errorStyleObj['border-style']) variables['--error-border-style'] = errorStyleObj['border-style'];
8757
+ if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
8758
+ return stringifyStyleObj(variables);
8759
+ })());
8760
+ }
8761
+ };
8762
+
8763
+ return [
8764
+ required,
8765
+ placeholder,
8766
+ styleVariables,
8767
+ style,
8768
+ $value,
8769
+ $isValid,
8770
+ value,
8771
+ isValid,
8772
+ stringInputHandler,
8773
+ field,
8774
+ validation,
8775
+ _style,
8776
+ _focusStyle,
8777
+ _errorStyle,
8778
+ font,
8779
+ _textStyle,
8780
+ _placeholderStyle
8781
+ ];
8782
+ }
8783
+
8784
+ class FormIdentifyInput extends SvelteComponent {
8785
+ constructor(options) {
8786
+ super();
8787
+
8788
+ init(
8789
+ this,
8790
+ options,
8791
+ instance$d,
8792
+ create_fragment$d,
8793
+ safe_not_equal,
8794
+ {
8795
+ field: 9,
8796
+ validation: 10,
8797
+ required: 0,
8798
+ placeholder: 1,
8799
+ _style: 11,
8800
+ _focusStyle: 12,
8801
+ _errorStyle: 13,
8802
+ font: 14,
8803
+ _textStyle: 15,
8804
+ _placeholderStyle: 16
8805
+ },
8806
+ add_css$c
8807
+ );
8808
+ }
8809
+ }
8810
+
8811
+ /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
8812
+
8813
+ function add_css$b(target) {
8814
+ 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}");
8815
+ }
8816
+
8817
+ function create_fragment$c(ctx) {
8818
+ let div;
8819
+ let label0;
8820
+ let input0;
8821
+ let input0_checked_value;
8822
+ let t0;
8823
+ let span0;
8824
+ let t1;
8825
+ let span0_style_value;
8826
+ let t2;
8827
+ let label1;
8828
+ let input1;
8829
+ let input1_checked_value;
8830
+ let t3;
8831
+ let span1;
8832
+ let t4;
8833
+ let span1_style_value;
8834
+ let mounted;
8835
+ let dispose;
8836
+
8837
+ return {
8838
+ c() {
8839
+ div = element("div");
8840
+ label0 = element("label");
8841
+ input0 = element("input");
8842
+ t0 = space();
8843
+ span0 = element("span");
8844
+ t1 = text("はい");
8845
+ t2 = space();
8846
+ label1 = element("label");
8847
+ input1 = element("input");
8848
+ t3 = space();
8849
+ span1 = element("span");
8850
+ t4 = text("いいえ");
8851
+ this.h();
8852
+ },
8853
+ l(nodes) {
8854
+ div = claim_element(nodes, "DIV", { class: true, style: true });
8855
+ var div_nodes = children(div);
8856
+ label0 = claim_element(div_nodes, "LABEL", { class: true });
8857
+ var label0_nodes = children(label0);
8858
+ input0 = claim_element(label0_nodes, "INPUT", { type: true, class: true, style: true });
8859
+ t0 = claim_space(label0_nodes);
8860
+ span0 = claim_element(label0_nodes, "SPAN", { class: true, style: true });
8861
+ var span0_nodes = children(span0);
8862
+ t1 = claim_text(span0_nodes, "はい");
8863
+ span0_nodes.forEach(detach);
8864
+ label0_nodes.forEach(detach);
8865
+ t2 = claim_space(div_nodes);
8866
+ label1 = claim_element(div_nodes, "LABEL", { class: true });
8867
+ var label1_nodes = children(label1);
8868
+ input1 = claim_element(label1_nodes, "INPUT", { type: true, class: true, style: true });
8869
+ t3 = claim_space(label1_nodes);
8870
+ span1 = claim_element(label1_nodes, "SPAN", { class: true, style: true });
8871
+ var span1_nodes = children(span1);
8872
+ t4 = claim_text(span1_nodes, "いいえ");
8873
+ span1_nodes.forEach(detach);
8874
+ label1_nodes.forEach(detach);
8875
+ div_nodes.forEach(detach);
8876
+ this.h();
8877
+ },
8878
+ h() {
8879
+ attr(input0, "type", "radio");
8880
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
8881
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8882
+ input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
8883
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
8884
+ attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8885
+ attr(label0, "class", "radio-button svelte-pzrwlo");
8886
+ attr(input1, "type", "radio");
8887
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
8888
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8889
+ input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
8890
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
8891
+ attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8892
+ attr(label1, "class", "radio-button svelte-pzrwlo");
8893
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
8894
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8895
+ },
8896
+ m(target, anchor) {
8897
+ insert_hydration(target, div, anchor);
8898
+ append_hydration(div, label0);
8899
+ append_hydration(label0, input0);
8900
+ append_hydration(label0, t0);
8901
+ append_hydration(label0, span0);
8902
+ append_hydration(span0, t1);
8903
+ append_hydration(div, t2);
8904
+ append_hydration(div, label1);
8905
+ append_hydration(label1, input1);
8906
+ append_hydration(label1, t3);
8907
+ append_hydration(label1, span1);
8908
+ append_hydration(span1, t4);
8909
+
8910
+ if (!mounted) {
8911
+ dispose = [
8912
+ listen(input0, "change", /*change_handler*/ ctx[12]),
8913
+ listen(input1, "change", /*change_handler_1*/ ctx[13])
8914
+ ];
8915
+
8916
+ mounted = true;
8917
+ }
8918
+ },
8919
+ p(ctx, [dirty]) {
8920
+ if (dirty & /*buttonStyle*/ 4) {
8921
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8922
+ }
8923
+
8924
+ if (dirty & /*$value*/ 8 && input0_checked_value !== (input0_checked_value = /*$value*/ ctx[3] === true)) {
8925
+ input0.checked = input0_checked_value;
8926
+ }
8927
+
8928
+ if (dirty & /*_textStyle*/ 2 && span0_style_value !== (span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8929
+ attr(span0, "style", span0_style_value);
8930
+ }
8931
+
8932
+ if (dirty & /*buttonStyle*/ 4) {
8933
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8934
+ }
8935
+
8936
+ if (dirty & /*$value*/ 8 && input1_checked_value !== (input1_checked_value = /*$value*/ ctx[3] === false)) {
8937
+ input1.checked = input1_checked_value;
8938
+ }
8939
+
8940
+ if (dirty & /*_textStyle*/ 2 && span1_style_value !== (span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8941
+ attr(span1, "style", span1_style_value);
8942
+ }
8943
+
8944
+ if (dirty & /*_layoutStyle*/ 1) {
8945
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8946
+ }
8947
+ },
8948
+ i: noop,
8949
+ o: noop,
8950
+ d(detaching) {
8951
+ if (detaching) detach(div);
8952
+ mounted = false;
8953
+ run_all(dispose);
8954
+ }
8955
+ };
8956
+ }
8957
+
8958
+ function instance$c($$self, $$props, $$invalidate) {
8959
+ let buttonStyle;
8960
+ let $value;
8961
+ let { field = 'subscription' } = $$props;
8962
+ let { required = false } = $$props;
8963
+ let { _layoutStyle = 'flex-direction: row; gap: 0px;' } = $$props;
8964
+ let { font = SYSTEM_FONT } = $$props;
8965
+ const fontCss = font ? 'font-family:' + font : '';
8966
+ let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
8967
+ let { buttonSize = '16px' } = $$props;
8968
+ let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
8969
+ let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
8970
+ const { path: statePath } = getStateItemContext();
8971
+
8972
+ const { value } = registerIdentifyInput({
8973
+ name: field,
8974
+ statePath,
8975
+ initialValue: null,
8976
+ validator(value) {
8977
+ if (!required) return true;
8978
+ return typeof value === 'boolean';
8979
+ }
8980
+ });
8981
+
8982
+ component_subscribe($$self, value, value => $$invalidate(3, $value = value));
8983
+ const change_handler = () => value.set(true);
8984
+ const change_handler_1 = () => value.set(false);
8985
+
8986
+ $$self.$$set = $$props => {
8987
+ if ('field' in $$props) $$invalidate(6, field = $$props.field);
8988
+ if ('required' in $$props) $$invalidate(7, required = $$props.required);
8989
+ if ('_layoutStyle' in $$props) $$invalidate(0, _layoutStyle = $$props._layoutStyle);
8990
+ if ('font' in $$props) $$invalidate(8, font = $$props.font);
8991
+ if ('_textStyle' in $$props) $$invalidate(1, _textStyle = $$props._textStyle);
8992
+ if ('buttonSize' in $$props) $$invalidate(9, buttonSize = $$props.buttonSize);
8993
+ if ('buttonColor' in $$props) $$invalidate(10, buttonColor = $$props.buttonColor);
8994
+ if ('buttonColorActive' in $$props) $$invalidate(11, buttonColorActive = $$props.buttonColorActive);
8995
+ };
8996
+
8997
+ $$self.$$.update = () => {
8998
+ if ($$self.$$.dirty & /*font*/ 256) {
8999
+ addFont(font);
9000
+ }
9001
+
9002
+ if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 3584) {
9003
+ $$invalidate(2, buttonStyle = (() => {
9004
+ return stringifyStyleObj({
9005
+ '--color-main': buttonColor.main,
9006
+ '--color-sub': buttonColor.sub,
9007
+ '--color-main-active': buttonColorActive.main,
9008
+ '--color-sub-active': buttonColorActive.sub,
9009
+ '--size': buttonSize
9010
+ });
9011
+ })());
9012
+ }
9013
+ };
9014
+
9015
+ return [
9016
+ _layoutStyle,
9017
+ _textStyle,
9018
+ buttonStyle,
9019
+ $value,
9020
+ fontCss,
9021
+ value,
9022
+ field,
9023
+ required,
9024
+ font,
9025
+ buttonSize,
9026
+ buttonColor,
9027
+ buttonColorActive,
9028
+ change_handler,
9029
+ change_handler_1
9030
+ ];
9031
+ }
9032
+
9033
+ class FormIdentifyChoices extends SvelteComponent {
9034
+ constructor(options) {
9035
+ super();
9036
+
9037
+ init(
9038
+ this,
9039
+ options,
9040
+ instance$c,
9041
+ create_fragment$c,
9042
+ safe_not_equal,
9043
+ {
9044
+ field: 6,
9045
+ required: 7,
9046
+ _layoutStyle: 0,
9047
+ font: 8,
9048
+ _textStyle: 1,
9049
+ buttonSize: 9,
9050
+ buttonColor: 10,
9051
+ buttonColorActive: 11
9052
+ },
9053
+ add_css$b
9054
+ );
8504
9055
  }
8505
9056
  }
8506
9057
 
@@ -11187,4 +11738,4 @@ class ImageBlock extends SvelteComponent {
11187
11738
  }
11188
11739
  }
11189
11740
 
11190
- 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 };
11741
+ 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 };