@plaidev/karte-action-sdk 1.1.212 → 1.1.213

Sign up to get free protection for your applications and to get access to all the features.
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
  * アクションのログの記録の管理
@@ -2589,7 +2641,7 @@ function create_if_block$9(ctx) {
2589
2641
  };
2590
2642
  }
2591
2643
 
2592
- function create_fragment$y(ctx) {
2644
+ function create_fragment$A(ctx) {
2593
2645
  let head;
2594
2646
  let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
2595
2647
 
@@ -2625,7 +2677,7 @@ function create_fragment$y(ctx) {
2625
2677
  };
2626
2678
  }
2627
2679
 
2628
- function instance$y($$self, $$props, $$invalidate) {
2680
+ function instance$A($$self, $$props, $$invalidate) {
2629
2681
  let $fonts;
2630
2682
  component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
2631
2683
  let googleFontUrl = '';
@@ -2654,13 +2706,13 @@ function instance$y($$self, $$props, $$invalidate) {
2654
2706
  class Header extends SvelteComponent {
2655
2707
  constructor(options) {
2656
2708
  super();
2657
- init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
2709
+ init(this, options, instance$A, create_fragment$A, safe_not_equal, {});
2658
2710
  }
2659
2711
  }
2660
2712
 
2661
2713
  /* src/components/State.svelte generated by Svelte v3.53.1 */
2662
2714
 
2663
- function create_fragment$x(ctx) {
2715
+ function create_fragment$z(ctx) {
2664
2716
  let header;
2665
2717
  let t;
2666
2718
  let current;
@@ -2719,7 +2771,7 @@ function create_fragment$x(ctx) {
2719
2771
  };
2720
2772
  }
2721
2773
 
2722
- function instance$x($$self, $$props, $$invalidate) {
2774
+ function instance$z($$self, $$props, $$invalidate) {
2723
2775
  let { $$slots: slots = {}, $$scope } = $$props;
2724
2776
 
2725
2777
  $$self.$$set = $$props => {
@@ -2732,13 +2784,13 @@ function instance$x($$self, $$props, $$invalidate) {
2732
2784
  class State extends SvelteComponent {
2733
2785
  constructor(options) {
2734
2786
  super();
2735
- init(this, options, instance$x, create_fragment$x, safe_not_equal, {});
2787
+ init(this, options, instance$z, create_fragment$z, safe_not_equal, {});
2736
2788
  }
2737
2789
  }
2738
2790
 
2739
2791
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
2740
2792
 
2741
- function add_css$t(target) {
2793
+ function add_css$v(target) {
2742
2794
  append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
2743
2795
  }
2744
2796
 
@@ -2805,7 +2857,7 @@ function create_if_block$8(ctx) {
2805
2857
  };
2806
2858
  }
2807
2859
 
2808
- function create_fragment$w(ctx) {
2860
+ function create_fragment$y(ctx) {
2809
2861
  let if_block_anchor;
2810
2862
  let current;
2811
2863
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
@@ -2866,7 +2918,7 @@ function getStateItemContext() {
2866
2918
  return getContext(STATE_ITEM_CONTEXT_KEY);
2867
2919
  }
2868
2920
 
2869
- function instance$w($$self, $$props, $$invalidate) {
2921
+ function instance$y($$self, $$props, $$invalidate) {
2870
2922
  let $state;
2871
2923
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
2872
2924
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -2892,7 +2944,7 @@ function instance$w($$self, $$props, $$invalidate) {
2892
2944
  class StateItem extends SvelteComponent {
2893
2945
  constructor(options) {
2894
2946
  super();
2895
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { path: 0 }, add_css$t);
2947
+ init(this, options, instance$y, create_fragment$y, safe_not_equal, { path: 0 }, add_css$v);
2896
2948
  }
2897
2949
  }
2898
2950
 
@@ -2905,51 +2957,74 @@ function isEmpty(value) {
2905
2957
  }
2906
2958
  }
2907
2959
  /** @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 {
2960
+ function createInputRegisterer(formData) {
2961
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2962
+ const writableValue = {
2963
+ subscribe(run) {
2964
+ return formData.subscribe(formData => {
2965
+ run(formData[name]?.value);
2966
+ });
2967
+ },
2968
+ set(value) {
2969
+ formData.update(prev => ({
2929
2970
  ...prev,
2930
2971
  [name]: {
2931
2972
  statePath,
2932
- value: updater(prevValue),
2933
- isValid: validator(prevValue),
2973
+ value,
2974
+ isValid: validator(value),
2934
2975
  },
2935
- };
2936
- });
2937
- },
2976
+ }));
2977
+ },
2978
+ update(updater) {
2979
+ formData.update(prev => {
2980
+ const prevValue = prev[name]?.value;
2981
+ if (prevValue === undefined)
2982
+ return prev;
2983
+ const value = updater(prevValue);
2984
+ return {
2985
+ ...prev,
2986
+ [name]: {
2987
+ statePath,
2988
+ value,
2989
+ isValid: validator(value),
2990
+ },
2991
+ };
2992
+ });
2993
+ },
2994
+ };
2995
+ const readableIsValid = {
2996
+ subscribe(run) {
2997
+ return formData.subscribe(formData => {
2998
+ run(formData[name]?.isValid);
2999
+ });
3000
+ },
3001
+ };
3002
+ if (isEmpty(get(writableValue))) {
3003
+ writableValue.set(initialValue);
3004
+ }
3005
+ return {
3006
+ value: writableValue,
3007
+ isValid: readableIsValid,
3008
+ };
2938
3009
  };
2939
- if (isEmpty(get(writableValue))) {
2940
- writableValue.set(initialValue);
2941
- }
2942
- return writableValue;
3010
+ return registerInput;
3011
+ }
3012
+ /** @internal */
3013
+ const registerInput = createInputRegisterer(formData);
3014
+ /** @internal */
3015
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
3016
+ function validateFormData(formData, statePath) {
3017
+ return Object.entries(formData)
3018
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
3019
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2943
3020
  }
2944
3021
  /** @internal */
2945
- const getValuesAreValidReader = statePath => ({
3022
+ const getValuesAreValidReadable = statePath => ({
2946
3023
  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
3024
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
3025
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2951
3026
  callback(valuesAreValid);
2952
- });
3027
+ }));
2953
3028
  },
2954
3029
  });
2955
3030
  function formDataToEventValues(campaignId, formData) {
@@ -2977,14 +3052,22 @@ function formDataToEventValues(campaignId, formData) {
2977
3052
  },
2978
3053
  };
2979
3054
  }
3055
+ function formDataToIdentifyEventValues(formData) {
3056
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
3057
+ const value = dataItem.value;
3058
+ return [name, value];
3059
+ }));
3060
+ }
2980
3061
  /** @internal */
2981
3062
  function submit() {
2982
3063
  const systemConfig = getSystem();
2983
3064
  const campaignId = systemConfig.campaignId;
2984
3065
  if (campaignId) {
2985
3066
  const formData$1 = get(formData);
3067
+ const identifyFormData$1 = get(identifyFormData);
2986
3068
  const values = formDataToEventValues(campaignId, formData$1);
2987
- return values;
3069
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
3070
+ return { values, identifyValues };
2988
3071
  }
2989
3072
  return {};
2990
3073
  }
@@ -3043,8 +3126,11 @@ const runScript = (handlerName) => () => {
3043
3126
  };
3044
3127
  /** @internal */
3045
3128
  const submitForm = (to) => () => {
3046
- const values = submit();
3129
+ const { values, identifyValues } = submit();
3047
3130
  send_event('_answer_question', values);
3131
+ if (Object.keys(identifyValues).length > 0) {
3132
+ send_event('identify', identifyValues);
3133
+ }
3048
3134
  _moveTo(to);
3049
3135
  };
3050
3136
  /** @internal */
@@ -3160,7 +3246,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
3160
3246
 
3161
3247
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3162
3248
 
3163
- function add_css$s(target) {
3249
+ function add_css$u(target) {
3164
3250
  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
3251
  }
3166
3252
 
@@ -3197,7 +3283,7 @@ function create_if_block$7(ctx) {
3197
3283
  };
3198
3284
  }
3199
3285
 
3200
- function create_fragment$v(ctx) {
3286
+ function create_fragment$x(ctx) {
3201
3287
  let if_block_anchor;
3202
3288
  let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$7(ctx);
3203
3289
 
@@ -3233,7 +3319,7 @@ function create_fragment$v(ctx) {
3233
3319
  };
3234
3320
  }
3235
3321
 
3236
- function instance$v($$self, $$props, $$invalidate) {
3322
+ function instance$x($$self, $$props, $$invalidate) {
3237
3323
  let { backgroundOverlay = false } = $$props;
3238
3324
  let { class: className = undefined } = $$props;
3239
3325
  const dispatch = createEventDispatcher();
@@ -3250,7 +3336,7 @@ function instance$v($$self, $$props, $$invalidate) {
3250
3336
  class BackgroundOverlay extends SvelteComponent {
3251
3337
  constructor(options) {
3252
3338
  super();
3253
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3339
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$u);
3254
3340
  }
3255
3341
  }
3256
3342
 
@@ -3290,8 +3376,8 @@ function checkStopPropagation(eventName, handler) {
3290
3376
 
3291
3377
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3292
3378
 
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}");
3379
+ function add_css$t(target) {
3380
+ 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
3381
  }
3296
3382
 
3297
3383
  // (50:0) {:else}
@@ -3320,7 +3406,7 @@ function create_else_block$4(ctx) {
3320
3406
  button = element("button");
3321
3407
  if (default_slot) default_slot.c();
3322
3408
  set_attributes(button, button_data);
3323
- toggle_class(button, "svelte-1dtbrzj", true);
3409
+ toggle_class(button, "svelte-1kmu8zp", true);
3324
3410
  },
3325
3411
  m(target, anchor) {
3326
3412
  insert(target, button, anchor);
@@ -3359,7 +3445,7 @@ function create_else_block$4(ctx) {
3359
3445
  dataAttrStopPropagation('click')
3360
3446
  ]));
3361
3447
 
3362
- toggle_class(button, "svelte-1dtbrzj", true);
3448
+ toggle_class(button, "svelte-1kmu8zp", true);
3363
3449
  },
3364
3450
  i(local) {
3365
3451
  if (current) return;
@@ -3390,7 +3476,7 @@ function create_if_block_2$1(ctx) {
3390
3476
  c() {
3391
3477
  div = element("div");
3392
3478
  if (default_slot) default_slot.c();
3393
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1dtbrzj"));
3479
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
3394
3480
  attr(div, "style", /*style*/ ctx[1]);
3395
3481
  },
3396
3482
  m(target, anchor) {
@@ -3474,7 +3560,7 @@ function create_if_block_1$2(ctx) {
3474
3560
  a = element("a");
3475
3561
  if (default_slot) default_slot.c();
3476
3562
  set_attributes(a, a_data);
3477
- toggle_class(a, "svelte-1dtbrzj", true);
3563
+ toggle_class(a, "svelte-1kmu8zp", true);
3478
3564
  },
3479
3565
  m(target, anchor) {
3480
3566
  insert(target, a, anchor);
@@ -3516,7 +3602,7 @@ function create_if_block_1$2(ctx) {
3516
3602
  dataAttrStopPropagation('click')
3517
3603
  ]));
3518
3604
 
3519
- toggle_class(a, "svelte-1dtbrzj", true);
3605
+ toggle_class(a, "svelte-1kmu8zp", true);
3520
3606
  },
3521
3607
  i(local) {
3522
3608
  if (current) return;
@@ -3547,7 +3633,7 @@ function create_if_block$6(ctx) {
3547
3633
  c() {
3548
3634
  div = element("div");
3549
3635
  if (default_slot) default_slot.c();
3550
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1dtbrzj"));
3636
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
3551
3637
  attr(div, "style", /*style*/ ctx[1]);
3552
3638
  },
3553
3639
  m(target, anchor) {
@@ -3595,7 +3681,7 @@ function create_if_block$6(ctx) {
3595
3681
  };
3596
3682
  }
3597
3683
 
3598
- function create_fragment$u(ctx) {
3684
+ function create_fragment$w(ctx) {
3599
3685
  let current_block_type_index;
3600
3686
  let if_block;
3601
3687
  let if_block_anchor;
@@ -3668,7 +3754,7 @@ function create_fragment$u(ctx) {
3668
3754
 
3669
3755
  const BUTTON_CLASS = 'button';
3670
3756
 
3671
- function instance$u($$self, $$props, $$invalidate) {
3757
+ function instance$w($$self, $$props, $$invalidate) {
3672
3758
  let disabled;
3673
3759
  let $valuesAreValid;
3674
3760
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -3686,7 +3772,7 @@ function instance$u($$self, $$props, $$invalidate) {
3686
3772
  }
3687
3773
 
3688
3774
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3689
- const valuesAreValid = getValuesAreValidReader(statePath);
3775
+ const valuesAreValid = getValuesAreValidReadable(statePath);
3690
3776
  component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3691
3777
 
3692
3778
  $$self.$$set = $$props => {
@@ -3734,8 +3820,8 @@ class Button extends SvelteComponent {
3734
3820
  init(
3735
3821
  this,
3736
3822
  options,
3737
- instance$u,
3738
- create_fragment$u,
3823
+ instance$w,
3824
+ create_fragment$w,
3739
3825
  safe_not_equal,
3740
3826
  {
3741
3827
  onClick: 0,
@@ -3743,14 +3829,14 @@ class Button extends SvelteComponent {
3743
3829
  eventValue: 6,
3744
3830
  style: 1
3745
3831
  },
3746
- add_css$r
3832
+ add_css$t
3747
3833
  );
3748
3834
  }
3749
3835
  }
3750
3836
 
3751
3837
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
3752
3838
 
3753
- function add_css$q(target) {
3839
+ function add_css$s(target) {
3754
3840
  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
3841
  }
3756
3842
 
@@ -4145,7 +4231,7 @@ function create_default_slot$6(ctx) {
4145
4231
  };
4146
4232
  }
4147
4233
 
4148
- function create_fragment$t(ctx) {
4234
+ function create_fragment$v(ctx) {
4149
4235
  let show_if;
4150
4236
  let current_block_type_index;
4151
4237
  let if_block0;
@@ -4263,7 +4349,7 @@ function create_fragment$t(ctx) {
4263
4349
  };
4264
4350
  }
4265
4351
 
4266
- function instance$t($$self, $$props, $$invalidate) {
4352
+ function instance$v($$self, $$props, $$invalidate) {
4267
4353
  let close;
4268
4354
  let closable;
4269
4355
  let backgroundClick;
@@ -4566,8 +4652,8 @@ class Modal extends SvelteComponent {
4566
4652
  init(
4567
4653
  this,
4568
4654
  options,
4569
- instance$t,
4570
- create_fragment$t,
4655
+ instance$v,
4656
+ create_fragment$v,
4571
4657
  safe_not_equal,
4572
4658
  {
4573
4659
  onClick: 0,
@@ -4585,7 +4671,7 @@ class Modal extends SvelteComponent {
4585
4671
  closeButtonColor: 9,
4586
4672
  _closeStyle: 10
4587
4673
  },
4588
- add_css$q,
4674
+ add_css$s,
4589
4675
  [-1, -1]
4590
4676
  );
4591
4677
  }
@@ -4593,7 +4679,7 @@ class Modal extends SvelteComponent {
4593
4679
 
4594
4680
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
4595
4681
 
4596
- function create_fragment$s(ctx) {
4682
+ function create_fragment$u(ctx) {
4597
4683
  let div;
4598
4684
  let current;
4599
4685
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -4651,7 +4737,7 @@ function create_fragment$s(ctx) {
4651
4737
  };
4652
4738
  }
4653
4739
 
4654
- function instance$s($$self, $$props, $$invalidate) {
4740
+ function instance$u($$self, $$props, $$invalidate) {
4655
4741
  let _style;
4656
4742
  let { $$slots: slots = {}, $$scope } = $$props;
4657
4743
  let { width = '512px' } = $$props;
@@ -4696,7 +4782,7 @@ class Grid extends SvelteComponent {
4696
4782
  constructor(options) {
4697
4783
  super();
4698
4784
 
4699
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
4785
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, {
4700
4786
  width: 1,
4701
4787
  height: 2,
4702
4788
  rows: 3,
@@ -4709,11 +4795,11 @@ class Grid extends SvelteComponent {
4709
4795
 
4710
4796
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
4711
4797
 
4712
- function add_css$p(target) {
4798
+ function add_css$r(target) {
4713
4799
  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
4800
  }
4715
4801
 
4716
- function create_fragment$r(ctx) {
4802
+ function create_fragment$t(ctx) {
4717
4803
  let div1;
4718
4804
  let div0;
4719
4805
  let current;
@@ -4787,7 +4873,7 @@ function create_fragment$r(ctx) {
4787
4873
 
4788
4874
  const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
4789
4875
 
4790
- function instance$r($$self, $$props, $$invalidate) {
4876
+ function instance$t($$self, $$props, $$invalidate) {
4791
4877
  let _style;
4792
4878
  let { $$slots: slots = {}, $$scope } = $$props;
4793
4879
  let { x1 } = $$props;
@@ -4836,8 +4922,8 @@ class GridItem extends SvelteComponent {
4836
4922
  init(
4837
4923
  this,
4838
4924
  options,
4839
- instance$r,
4840
- create_fragment$r,
4925
+ instance$t,
4926
+ create_fragment$t,
4841
4927
  safe_not_equal,
4842
4928
  {
4843
4929
  x1: 2,
@@ -4848,7 +4934,7 @@ class GridItem extends SvelteComponent {
4848
4934
  background: 7,
4849
4935
  gridItemId: 0
4850
4936
  },
4851
- add_css$p
4937
+ add_css$r
4852
4938
  );
4853
4939
  }
4854
4940
  }
@@ -4944,7 +5030,7 @@ function create_each_block$6(ctx) {
4944
5030
  };
4945
5031
  }
4946
5032
 
4947
- function create_fragment$q(ctx) {
5033
+ function create_fragment$s(ctx) {
4948
5034
  let each_1_anchor;
4949
5035
  let each_value = /*items*/ ctx[0];
4950
5036
  let each_blocks = [];
@@ -5003,7 +5089,7 @@ function create_fragment$q(ctx) {
5003
5089
 
5004
5090
  const regexp = /(\r?\n)/;
5005
5091
 
5006
- function instance$q($$self, $$props, $$invalidate) {
5092
+ function instance$s($$self, $$props, $$invalidate) {
5007
5093
  let items;
5008
5094
  let { text = 'サンプルSample' } = $$props;
5009
5095
 
@@ -5024,13 +5110,13 @@ function instance$q($$self, $$props, $$invalidate) {
5024
5110
  class RenderText extends SvelteComponent {
5025
5111
  constructor(options) {
5026
5112
  super();
5027
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { text: 1 });
5113
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { text: 1 });
5028
5114
  }
5029
5115
  }
5030
5116
 
5031
5117
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5032
5118
 
5033
- function add_css$o(target) {
5119
+ function add_css$q(target) {
5034
5120
  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
5121
  }
5036
5122
 
@@ -5174,7 +5260,7 @@ function create_if_block$3(ctx) {
5174
5260
  };
5175
5261
  }
5176
5262
 
5177
- function create_fragment$p(ctx) {
5263
+ function create_fragment$r(ctx) {
5178
5264
  let div;
5179
5265
  let current_block_type_index;
5180
5266
  let if_block;
@@ -5244,7 +5330,7 @@ function create_fragment$p(ctx) {
5244
5330
  };
5245
5331
  }
5246
5332
 
5247
- function instance$p($$self, $$props, $$invalidate) {
5333
+ function instance$r($$self, $$props, $$invalidate) {
5248
5334
  let style;
5249
5335
  let { text = 'テキストのコンテンツ' } = $$props;
5250
5336
  let { font = SYSTEM_FONT } = $$props;
@@ -5340,8 +5426,8 @@ class TextElement extends SvelteComponent {
5340
5426
  init(
5341
5427
  this,
5342
5428
  options,
5343
- instance$p,
5344
- create_fragment$p,
5429
+ instance$r,
5430
+ create_fragment$r,
5345
5431
  safe_not_equal,
5346
5432
  {
5347
5433
  text: 0,
@@ -5352,14 +5438,14 @@ class TextElement extends SvelteComponent {
5352
5438
  enableCopy: 2,
5353
5439
  eventName: 10
5354
5440
  },
5355
- add_css$o
5441
+ add_css$q
5356
5442
  );
5357
5443
  }
5358
5444
  }
5359
5445
 
5360
5446
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
5361
5447
 
5362
- function add_css$n(target) {
5448
+ function add_css$p(target) {
5363
5449
  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
5450
  }
5365
5451
 
@@ -5397,7 +5483,7 @@ function create_default_slot$5(ctx) {
5397
5483
  };
5398
5484
  }
5399
5485
 
5400
- function create_fragment$o(ctx) {
5486
+ function create_fragment$q(ctx) {
5401
5487
  let div;
5402
5488
  let button;
5403
5489
  let current;
@@ -5451,7 +5537,7 @@ function create_fragment$o(ctx) {
5451
5537
  };
5452
5538
  }
5453
5539
 
5454
- function instance$o($$self, $$props, $$invalidate) {
5540
+ function instance$q($$self, $$props, $$invalidate) {
5455
5541
  let style;
5456
5542
  let { text = 'ボタンのラベル' } = $$props;
5457
5543
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -5489,8 +5575,8 @@ class TextButtonElement extends SvelteComponent {
5489
5575
  init(
5490
5576
  this,
5491
5577
  options,
5492
- instance$o,
5493
- create_fragment$o,
5578
+ instance$q,
5579
+ create_fragment$q,
5494
5580
  safe_not_equal,
5495
5581
  {
5496
5582
  text: 0,
@@ -5500,14 +5586,14 @@ class TextButtonElement extends SvelteComponent {
5500
5586
  _buttonStyle: 5,
5501
5587
  _style: 6
5502
5588
  },
5503
- add_css$n
5589
+ add_css$p
5504
5590
  );
5505
5591
  }
5506
5592
  }
5507
5593
 
5508
5594
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
5509
5595
 
5510
- function add_css$m(target) {
5596
+ function add_css$o(target) {
5511
5597
  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
5598
  }
5513
5599
 
@@ -5562,7 +5648,7 @@ function create_default_slot$4(ctx) {
5562
5648
  };
5563
5649
  }
5564
5650
 
5565
- function create_fragment$n(ctx) {
5651
+ function create_fragment$p(ctx) {
5566
5652
  let div;
5567
5653
  let button;
5568
5654
  let div_class_value;
@@ -5621,7 +5707,7 @@ function create_fragment$n(ctx) {
5621
5707
  };
5622
5708
  }
5623
5709
 
5624
- function instance$n($$self, $$props, $$invalidate) {
5710
+ function instance$p($$self, $$props, $$invalidate) {
5625
5711
  let { src = '' } = $$props;
5626
5712
  let { alt = '画像の説明' } = $$props;
5627
5713
  let { transport = false } = $$props;
@@ -5652,8 +5738,8 @@ class ImageElement extends SvelteComponent {
5652
5738
  init(
5653
5739
  this,
5654
5740
  options,
5655
- instance$n,
5656
- create_fragment$n,
5741
+ instance$p,
5742
+ create_fragment$p,
5657
5743
  safe_not_equal,
5658
5744
  {
5659
5745
  src: 0,
@@ -5665,18 +5751,18 @@ class ImageElement extends SvelteComponent {
5665
5751
  _imageStyle: 6,
5666
5752
  _style: 7
5667
5753
  },
5668
- add_css$m
5754
+ add_css$o
5669
5755
  );
5670
5756
  }
5671
5757
  }
5672
5758
 
5673
5759
  /* src/components/List.svelte generated by Svelte v3.53.1 */
5674
5760
 
5675
- function add_css$l(target) {
5761
+ function add_css$n(target) {
5676
5762
  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
5763
  }
5678
5764
 
5679
- function create_fragment$m(ctx) {
5765
+ function create_fragment$o(ctx) {
5680
5766
  let div;
5681
5767
  let current;
5682
5768
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -5736,7 +5822,7 @@ function create_fragment$m(ctx) {
5736
5822
 
5737
5823
  const LIST_CONTEXT_KEY = Symbol();
5738
5824
 
5739
- function instance$m($$self, $$props, $$invalidate) {
5825
+ function instance$o($$self, $$props, $$invalidate) {
5740
5826
  let style;
5741
5827
  let { $$slots: slots = {}, $$scope } = $$props;
5742
5828
  let { direction = 'vertical' } = $$props;
@@ -5803,8 +5889,8 @@ class List extends SvelteComponent {
5803
5889
  init(
5804
5890
  this,
5805
5891
  options,
5806
- instance$m,
5807
- create_fragment$m,
5892
+ instance$o,
5893
+ create_fragment$o,
5808
5894
  safe_not_equal,
5809
5895
  {
5810
5896
  direction: 1,
@@ -5812,14 +5898,14 @@ class List extends SvelteComponent {
5812
5898
  background: 3,
5813
5899
  _style: 4
5814
5900
  },
5815
- add_css$l
5901
+ add_css$n
5816
5902
  );
5817
5903
  }
5818
5904
  }
5819
5905
 
5820
5906
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
5821
5907
 
5822
- function add_css$k(target) {
5908
+ function add_css$m(target) {
5823
5909
  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
5910
  }
5825
5911
 
@@ -5871,7 +5957,7 @@ function create_default_slot$3(ctx) {
5871
5957
  };
5872
5958
  }
5873
5959
 
5874
- function create_fragment$l(ctx) {
5960
+ function create_fragment$n(ctx) {
5875
5961
  let div;
5876
5962
  let button;
5877
5963
  let current;
@@ -5930,7 +6016,7 @@ function create_fragment$l(ctx) {
5930
6016
  };
5931
6017
  }
5932
6018
 
5933
- function instance$l($$self, $$props, $$invalidate) {
6019
+ function instance$n($$self, $$props, $$invalidate) {
5934
6020
  let listItemStyle;
5935
6021
  let { $$slots: slots = {}, $$scope } = $$props;
5936
6022
  const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
@@ -6009,17 +6095,17 @@ function instance$l($$self, $$props, $$invalidate) {
6009
6095
  class ListItem extends SvelteComponent {
6010
6096
  constructor(options) {
6011
6097
  super();
6012
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$k);
6098
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$m);
6013
6099
  }
6014
6100
  }
6015
6101
 
6016
6102
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6017
6103
 
6018
- function add_css$j(target) {
6104
+ function add_css$l(target) {
6019
6105
  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
6106
  }
6021
6107
 
6022
- function create_fragment$k(ctx) {
6108
+ function create_fragment$m(ctx) {
6023
6109
  let div;
6024
6110
 
6025
6111
  return {
@@ -6046,7 +6132,7 @@ function create_fragment$k(ctx) {
6046
6132
  };
6047
6133
  }
6048
6134
 
6049
- function instance$k($$self, $$props, $$invalidate) {
6135
+ function instance$m($$self, $$props, $$invalidate) {
6050
6136
  let { code } = $$props;
6051
6137
  let { _style = '' } = $$props;
6052
6138
 
@@ -6061,17 +6147,17 @@ function instance$k($$self, $$props, $$invalidate) {
6061
6147
  class EmbedElement extends SvelteComponent {
6062
6148
  constructor(options) {
6063
6149
  super();
6064
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { code: 0, _style: 1 }, add_css$j);
6150
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { code: 0, _style: 1 }, add_css$l);
6065
6151
  }
6066
6152
  }
6067
6153
 
6068
6154
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6069
6155
 
6070
- function add_css$i(target) {
6156
+ function add_css$k(target) {
6071
6157
  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
6158
  }
6073
6159
 
6074
- function create_fragment$j(ctx) {
6160
+ function create_fragment$l(ctx) {
6075
6161
  let div1;
6076
6162
  let div0;
6077
6163
 
@@ -6112,7 +6198,7 @@ function _setValue(obj, key, value) {
6112
6198
  }
6113
6199
  }
6114
6200
 
6115
- function instance$j($$self, $$props, $$invalidate) {
6201
+ function instance$l($$self, $$props, $$invalidate) {
6116
6202
  let $system;
6117
6203
  component_subscribe($$self, system, $$value => $$invalidate(31, $system = $$value));
6118
6204
  let { videoId = 'wt0OjOeX-JA' } = $$props;
@@ -6383,8 +6469,8 @@ class MovieYouTubeElement extends SvelteComponent {
6383
6469
  init(
6384
6470
  this,
6385
6471
  options,
6386
- instance$j,
6387
- create_fragment$j,
6472
+ instance$l,
6473
+ create_fragment$l,
6388
6474
  safe_not_equal,
6389
6475
  {
6390
6476
  videoId: 2,
@@ -6413,7 +6499,7 @@ class MovieYouTubeElement extends SvelteComponent {
6413
6499
  mute: 25,
6414
6500
  _style: 0
6415
6501
  },
6416
- add_css$i,
6502
+ add_css$k,
6417
6503
  [-1, -1]
6418
6504
  );
6419
6505
  }
@@ -6421,11 +6507,11 @@ class MovieYouTubeElement extends SvelteComponent {
6421
6507
 
6422
6508
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
6423
6509
 
6424
- function add_css$h(target) {
6510
+ function add_css$j(target) {
6425
6511
  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
6512
  }
6427
6513
 
6428
- function create_fragment$i(ctx) {
6514
+ function create_fragment$k(ctx) {
6429
6515
  let div1;
6430
6516
  let div0;
6431
6517
 
@@ -6456,7 +6542,7 @@ function create_fragment$i(ctx) {
6456
6542
  };
6457
6543
  }
6458
6544
 
6459
- function instance$i($$self, $$props, $$invalidate) {
6545
+ function instance$k($$self, $$props, $$invalidate) {
6460
6546
  let $system;
6461
6547
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
6462
6548
  let { videoId = "201239468" } = $$props;
@@ -6599,8 +6685,8 @@ class MovieVimeoElement extends SvelteComponent {
6599
6685
  init(
6600
6686
  this,
6601
6687
  options,
6602
- instance$i,
6603
- create_fragment$i,
6688
+ instance$k,
6689
+ create_fragment$k,
6604
6690
  safe_not_equal,
6605
6691
  {
6606
6692
  videoId: 2,
@@ -6610,18 +6696,18 @@ class MovieVimeoElement extends SvelteComponent {
6610
6696
  mute: 6,
6611
6697
  _style: 0
6612
6698
  },
6613
- add_css$h
6699
+ add_css$j
6614
6700
  );
6615
6701
  }
6616
6702
  }
6617
6703
 
6618
6704
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
6619
6705
 
6620
- function add_css$g(target) {
6706
+ function add_css$i(target) {
6621
6707
  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
6708
  }
6623
6709
 
6624
- function create_fragment$h(ctx) {
6710
+ function create_fragment$j(ctx) {
6625
6711
  let div;
6626
6712
  let textarea;
6627
6713
  let mounted;
@@ -6679,7 +6765,7 @@ function create_fragment$h(ctx) {
6679
6765
  };
6680
6766
  }
6681
6767
 
6682
- function instance$h($$self, $$props, $$invalidate) {
6768
+ function instance$j($$self, $$props, $$invalidate) {
6683
6769
  let style;
6684
6770
  let styleVariables;
6685
6771
  let $value;
@@ -6693,7 +6779,7 @@ function instance$h($$self, $$props, $$invalidate) {
6693
6779
  let { _placeholderStyle = 'color: #ccc;' } = $$props;
6694
6780
  const { path: statePath } = getStateItemContext();
6695
6781
 
6696
- const value = registerInput({
6782
+ const { value } = registerInput({
6697
6783
  name,
6698
6784
  statePath,
6699
6785
  initialValue: '',
@@ -6767,8 +6853,8 @@ class FormTextarea extends SvelteComponent {
6767
6853
  init(
6768
6854
  this,
6769
6855
  options,
6770
- instance$h,
6771
- create_fragment$h,
6856
+ instance$j,
6857
+ create_fragment$j,
6772
6858
  safe_not_equal,
6773
6859
  {
6774
6860
  name: 7,
@@ -6780,14 +6866,14 @@ class FormTextarea extends SvelteComponent {
6780
6866
  _textStyle: 11,
6781
6867
  _placeholderStyle: 12
6782
6868
  },
6783
- add_css$g
6869
+ add_css$i
6784
6870
  );
6785
6871
  }
6786
6872
  }
6787
6873
 
6788
6874
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
6789
6875
 
6790
- function add_css$f(target) {
6876
+ function add_css$h(target) {
6791
6877
  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
6878
  }
6793
6879
 
@@ -6877,7 +6963,7 @@ function create_each_block$5(ctx) {
6877
6963
  };
6878
6964
  }
6879
6965
 
6880
- function create_fragment$g(ctx) {
6966
+ function create_fragment$i(ctx) {
6881
6967
  let div;
6882
6968
  let each_value = /*_options*/ ctx[4];
6883
6969
  let each_blocks = [];
@@ -6941,7 +7027,7 @@ function create_fragment$g(ctx) {
6941
7027
  };
6942
7028
  }
6943
7029
 
6944
- function instance$g($$self, $$props, $$invalidate) {
7030
+ function instance$i($$self, $$props, $$invalidate) {
6945
7031
  let _options;
6946
7032
  let buttonStyle;
6947
7033
  let _value;
@@ -6958,7 +7044,7 @@ function instance$g($$self, $$props, $$invalidate) {
6958
7044
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
6959
7045
  const { path: statePath } = getStateItemContext();
6960
7046
 
6961
- const value = registerInput({
7047
+ const { value } = registerInput({
6962
7048
  name,
6963
7049
  statePath,
6964
7050
  initialValue: [],
@@ -7041,8 +7127,8 @@ class FormRadioButtons extends SvelteComponent {
7041
7127
  init(
7042
7128
  this,
7043
7129
  options,
7044
- instance$g,
7045
- create_fragment$g,
7130
+ instance$i,
7131
+ create_fragment$i,
7046
7132
  safe_not_equal,
7047
7133
  {
7048
7134
  name: 0,
@@ -7055,14 +7141,14 @@ class FormRadioButtons extends SvelteComponent {
7055
7141
  buttonColor: 13,
7056
7142
  buttonColorActive: 14
7057
7143
  },
7058
- add_css$f
7144
+ add_css$h
7059
7145
  );
7060
7146
  }
7061
7147
  }
7062
7148
 
7063
7149
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
7064
7150
 
7065
- function add_css$e(target) {
7151
+ function add_css$g(target) {
7066
7152
  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
7153
  }
7068
7154
 
@@ -7172,7 +7258,7 @@ function create_each_block$4(ctx) {
7172
7258
  };
7173
7259
  }
7174
7260
 
7175
- function create_fragment$f(ctx) {
7261
+ function create_fragment$h(ctx) {
7176
7262
  let div1;
7177
7263
  let select;
7178
7264
  let t;
@@ -7262,7 +7348,7 @@ function create_fragment$f(ctx) {
7262
7348
  };
7263
7349
  }
7264
7350
 
7265
- function instance$f($$self, $$props, $$invalidate) {
7351
+ function instance$h($$self, $$props, $$invalidate) {
7266
7352
  let _options;
7267
7353
  let style;
7268
7354
  let styleVariables;
@@ -7281,7 +7367,7 @@ function instance$f($$self, $$props, $$invalidate) {
7281
7367
  let { iconSize = '12px' } = $$props;
7282
7368
  const { path: statePath } = getStateItemContext();
7283
7369
 
7284
- const value = registerInput({
7370
+ const { value } = registerInput({
7285
7371
  name,
7286
7372
  statePath,
7287
7373
  initialValue: [],
@@ -7378,8 +7464,8 @@ class FormSelect extends SvelteComponent {
7378
7464
  init(
7379
7465
  this,
7380
7466
  options,
7381
- instance$f,
7382
- create_fragment$f,
7467
+ instance$h,
7468
+ create_fragment$h,
7383
7469
  safe_not_equal,
7384
7470
  {
7385
7471
  name: 7,
@@ -7394,14 +7480,14 @@ class FormSelect extends SvelteComponent {
7394
7480
  iconColor: 15,
7395
7481
  iconSize: 16
7396
7482
  },
7397
- add_css$e
7483
+ add_css$g
7398
7484
  );
7399
7485
  }
7400
7486
  }
7401
7487
 
7402
7488
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
7403
7489
 
7404
- function add_css$d(target) {
7490
+ function add_css$f(target) {
7405
7491
  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
7492
  }
7407
7493
 
@@ -7507,7 +7593,7 @@ function create_each_block$3(ctx) {
7507
7593
  };
7508
7594
  }
7509
7595
 
7510
- function create_fragment$e(ctx) {
7596
+ function create_fragment$g(ctx) {
7511
7597
  let div;
7512
7598
  let each_value = /*_options*/ ctx[3];
7513
7599
  let each_blocks = [];
@@ -7571,7 +7657,7 @@ function create_fragment$e(ctx) {
7571
7657
  };
7572
7658
  }
7573
7659
 
7574
- function instance$e($$self, $$props, $$invalidate) {
7660
+ function instance$g($$self, $$props, $$invalidate) {
7575
7661
  let _options;
7576
7662
  let styleVariables;
7577
7663
  let isCheckedArray;
@@ -7588,7 +7674,7 @@ function instance$e($$self, $$props, $$invalidate) {
7588
7674
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7589
7675
  const { path: statePath } = getStateItemContext();
7590
7676
 
7591
- const value = registerInput({
7677
+ const { value } = registerInput({
7592
7678
  name,
7593
7679
  statePath,
7594
7680
  initialValue: [],
@@ -7677,8 +7763,8 @@ class FormCheckBoxes extends SvelteComponent {
7677
7763
  init(
7678
7764
  this,
7679
7765
  options,
7680
- instance$e,
7681
- create_fragment$e,
7766
+ instance$g,
7767
+ create_fragment$g,
7682
7768
  safe_not_equal,
7683
7769
  {
7684
7770
  name: 0,
@@ -7691,14 +7777,14 @@ class FormCheckBoxes extends SvelteComponent {
7691
7777
  buttonColor: 13,
7692
7778
  buttonColorActive: 14
7693
7779
  },
7694
- add_css$d
7780
+ add_css$f
7695
7781
  );
7696
7782
  }
7697
7783
  }
7698
7784
 
7699
7785
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
7700
7786
 
7701
- function add_css$c(target) {
7787
+ function add_css$e(target) {
7702
7788
  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
7789
  }
7704
7790
 
@@ -7755,7 +7841,7 @@ function create_each_block$2(ctx) {
7755
7841
  };
7756
7842
  }
7757
7843
 
7758
- function create_fragment$d(ctx) {
7844
+ function create_fragment$f(ctx) {
7759
7845
  let div;
7760
7846
  let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
7761
7847
  let each_blocks = [];
@@ -7816,7 +7902,7 @@ function create_fragment$d(ctx) {
7816
7902
 
7817
7903
  const func$1 = i => i + 1;
7818
7904
 
7819
- function instance$d($$self, $$props, $$invalidate) {
7905
+ function instance$f($$self, $$props, $$invalidate) {
7820
7906
  let _value;
7821
7907
  let $value;
7822
7908
  let { name = '' } = $$props;
@@ -7827,7 +7913,7 @@ function instance$d($$self, $$props, $$invalidate) {
7827
7913
  let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
7828
7914
  const { path: statePath } = getStateItemContext();
7829
7915
 
7830
- const value = registerInput({
7916
+ const { value } = registerInput({
7831
7917
  name,
7832
7918
  statePath,
7833
7919
  initialValue: [],
@@ -7892,8 +7978,8 @@ class FormRatingButtonsNumber extends SvelteComponent {
7892
7978
  init(
7893
7979
  this,
7894
7980
  options,
7895
- instance$d,
7896
- create_fragment$d,
7981
+ instance$f,
7982
+ create_fragment$f,
7897
7983
  safe_not_equal,
7898
7984
  {
7899
7985
  name: 5,
@@ -7903,14 +7989,14 @@ class FormRatingButtonsNumber extends SvelteComponent {
7903
7989
  buttonStyle: 8,
7904
7990
  buttonActiveStyle: 9
7905
7991
  },
7906
- add_css$c
7992
+ add_css$e
7907
7993
  );
7908
7994
  }
7909
7995
  }
7910
7996
 
7911
7997
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
7912
7998
 
7913
- function add_css$b(target) {
7999
+ function add_css$d(target) {
7914
8000
  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
8001
  }
7916
8002
 
@@ -7970,7 +8056,7 @@ function create_each_block$1(ctx) {
7970
8056
  };
7971
8057
  }
7972
8058
 
7973
- function create_fragment$c(ctx) {
8059
+ function create_fragment$e(ctx) {
7974
8060
  let div;
7975
8061
  let each_value = [...Array(count).keys()].reverse().map(func);
7976
8062
  let each_blocks = [];
@@ -8032,7 +8118,7 @@ function create_fragment$c(ctx) {
8032
8118
  const count = 5;
8033
8119
  const func = i => i + 1;
8034
8120
 
8035
- function instance$c($$self, $$props, $$invalidate) {
8121
+ function instance$e($$self, $$props, $$invalidate) {
8036
8122
  let _value;
8037
8123
  let buttonStyle;
8038
8124
  let $value;
@@ -8050,7 +8136,7 @@ function instance$c($$self, $$props, $$invalidate) {
8050
8136
 
8051
8137
  const { path: statePath } = getStateItemContext();
8052
8138
 
8053
- const value = registerInput({
8139
+ const { value } = registerInput({
8054
8140
  name,
8055
8141
  statePath,
8056
8142
  initialValue: [],
@@ -8088,7 +8174,439 @@ function instance$c($$self, $$props, $$invalidate) {
8088
8174
  class FormRatingButtonsFace extends SvelteComponent {
8089
8175
  constructor(options) {
8090
8176
  super();
8091
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$b);
8177
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$d);
8178
+ }
8179
+ }
8180
+
8181
+ /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
8182
+
8183
+ function add_css$c(target) {
8184
+ 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}");
8185
+ }
8186
+
8187
+ function create_fragment$d(ctx) {
8188
+ let div;
8189
+ let input;
8190
+ let input_class_value;
8191
+ let mounted;
8192
+ let dispose;
8193
+
8194
+ return {
8195
+ c() {
8196
+ div = element("div");
8197
+ input = element("input");
8198
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"));
8199
+ attr(input, "type", "text");
8200
+ input.value = /*$value*/ ctx[4];
8201
+ input.required = /*required*/ ctx[0];
8202
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8203
+ attr(input, "style", /*style*/ ctx[3]);
8204
+ attr(div, "class", "input-wrapper svelte-17a0wgl");
8205
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8206
+ },
8207
+ m(target, anchor) {
8208
+ insert(target, div, anchor);
8209
+ append(div, input);
8210
+
8211
+ if (!mounted) {
8212
+ dispose = listen(input, "input", /*stringInputHandler*/ ctx[8]);
8213
+ mounted = true;
8214
+ }
8215
+ },
8216
+ p(ctx, [dirty]) {
8217
+ if (dirty & /*$isValid*/ 32 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"))) {
8218
+ attr(input, "class", input_class_value);
8219
+ }
8220
+
8221
+ if (dirty & /*$value*/ 16 && input.value !== /*$value*/ ctx[4]) {
8222
+ input.value = /*$value*/ ctx[4];
8223
+ }
8224
+
8225
+ if (dirty & /*required*/ 1) {
8226
+ input.required = /*required*/ ctx[0];
8227
+ }
8228
+
8229
+ if (dirty & /*placeholder*/ 2) {
8230
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8231
+ }
8232
+
8233
+ if (dirty & /*style*/ 8) {
8234
+ attr(input, "style", /*style*/ ctx[3]);
8235
+ }
8236
+
8237
+ if (dirty & /*styleVariables*/ 4) {
8238
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8239
+ }
8240
+ },
8241
+ i: noop,
8242
+ o: noop,
8243
+ d(detaching) {
8244
+ if (detaching) detach(div);
8245
+ mounted = false;
8246
+ dispose();
8247
+ }
8248
+ };
8249
+ }
8250
+
8251
+ function instance$d($$self, $$props, $$invalidate) {
8252
+ let style;
8253
+ let styleVariables;
8254
+ let $value;
8255
+ let $isValid;
8256
+ let { field = 'email' } = $$props;
8257
+
8258
+ let { validation = {
8259
+ // FormIdentifyTextFieldValidations[DefaultFormIdentifyTextField]
8260
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
8261
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
8262
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
8263
+ flags: ''
8264
+ } } = $$props;
8265
+
8266
+ let { required = true } = $$props;
8267
+ let { placeholder = 'メールアドレスを入力' } = $$props;
8268
+ let { _style = '' } = $$props;
8269
+ let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
8270
+ let { _errorStyle = 'border-width: 2px; border-color: #ff8726; border-style: solid' } = $$props;
8271
+ let { font = SYSTEM_FONT } = $$props;
8272
+ let { _textStyle = '' } = $$props;
8273
+ let { _placeholderStyle = 'color: #ccc;' } = $$props;
8274
+ const { path: statePath } = getStateItemContext();
8275
+
8276
+ const validationRegExp = (() => {
8277
+ try {
8278
+ return new RegExp(validation.pattern, validation.flags);
8279
+ } catch(e) {
8280
+ return undefined;
8281
+ }
8282
+ })();
8283
+
8284
+ const { value, isValid } = registerIdentifyInput({
8285
+ name: field,
8286
+ statePath,
8287
+ initialValue: '',
8288
+ validator(value) {
8289
+ if (value.length > 0 && validationRegExp && validationRegExp.test(value)) {
8290
+ return true;
8291
+ } else if (!required && value === '') {
8292
+ return true;
8293
+ } else {
8294
+ return false;
8295
+ }
8296
+ }
8297
+ });
8298
+
8299
+ component_subscribe($$self, value, value => $$invalidate(4, $value = value));
8300
+ component_subscribe($$self, isValid, value => $$invalidate(5, $isValid = value));
8301
+
8302
+ function stringInputHandler(event) {
8303
+ set_store_value(value, $value = event.target.value, $value);
8304
+ }
8305
+
8306
+ $$self.$$set = $$props => {
8307
+ if ('field' in $$props) $$invalidate(9, field = $$props.field);
8308
+ if ('validation' in $$props) $$invalidate(10, validation = $$props.validation);
8309
+ if ('required' in $$props) $$invalidate(0, required = $$props.required);
8310
+ if ('placeholder' in $$props) $$invalidate(1, placeholder = $$props.placeholder);
8311
+ if ('_style' in $$props) $$invalidate(11, _style = $$props._style);
8312
+ if ('_focusStyle' in $$props) $$invalidate(12, _focusStyle = $$props._focusStyle);
8313
+ if ('_errorStyle' in $$props) $$invalidate(13, _errorStyle = $$props._errorStyle);
8314
+ if ('font' in $$props) $$invalidate(14, font = $$props.font);
8315
+ if ('_textStyle' in $$props) $$invalidate(15, _textStyle = $$props._textStyle);
8316
+ if ('_placeholderStyle' in $$props) $$invalidate(16, _placeholderStyle = $$props._placeholderStyle);
8317
+ };
8318
+
8319
+ $$self.$$.update = () => {
8320
+ if ($$self.$$.dirty & /*font*/ 16384) {
8321
+ addFont(font);
8322
+ }
8323
+
8324
+ if ($$self.$$.dirty & /*_style, _textStyle, font*/ 51200) {
8325
+ $$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
8326
+ }
8327
+
8328
+ if ($$self.$$.dirty & /*_focusStyle, _errorStyle, _placeholderStyle*/ 77824) {
8329
+ $$invalidate(2, styleVariables = (() => {
8330
+ const variables = {};
8331
+ const focusStyleObj = parseStyle(_focusStyle);
8332
+ const errorStyleObj = parseStyle(_errorStyle);
8333
+ const placeholderStyle = parseStyle(_placeholderStyle);
8334
+ if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
8335
+ if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
8336
+ if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
8337
+ if (errorStyleObj['border-width']) variables['--error-border-width'] = errorStyleObj['border-width'];
8338
+ if (errorStyleObj['border-color']) variables['--error-border-color'] = errorStyleObj['border-color'];
8339
+ if (errorStyleObj['border-style']) variables['--error-border-style'] = errorStyleObj['border-style'];
8340
+ if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
8341
+ return stringifyStyleObj(variables);
8342
+ })());
8343
+ }
8344
+ };
8345
+
8346
+ return [
8347
+ required,
8348
+ placeholder,
8349
+ styleVariables,
8350
+ style,
8351
+ $value,
8352
+ $isValid,
8353
+ value,
8354
+ isValid,
8355
+ stringInputHandler,
8356
+ field,
8357
+ validation,
8358
+ _style,
8359
+ _focusStyle,
8360
+ _errorStyle,
8361
+ font,
8362
+ _textStyle,
8363
+ _placeholderStyle
8364
+ ];
8365
+ }
8366
+
8367
+ class FormIdentifyInput extends SvelteComponent {
8368
+ constructor(options) {
8369
+ super();
8370
+
8371
+ init(
8372
+ this,
8373
+ options,
8374
+ instance$d,
8375
+ create_fragment$d,
8376
+ safe_not_equal,
8377
+ {
8378
+ field: 9,
8379
+ validation: 10,
8380
+ required: 0,
8381
+ placeholder: 1,
8382
+ _style: 11,
8383
+ _focusStyle: 12,
8384
+ _errorStyle: 13,
8385
+ font: 14,
8386
+ _textStyle: 15,
8387
+ _placeholderStyle: 16
8388
+ },
8389
+ add_css$c
8390
+ );
8391
+ }
8392
+ }
8393
+
8394
+ /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
8395
+
8396
+ function add_css$b(target) {
8397
+ 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}");
8398
+ }
8399
+
8400
+ function create_fragment$c(ctx) {
8401
+ let div;
8402
+ let label0;
8403
+ let input0;
8404
+ let input0_checked_value;
8405
+ let t0;
8406
+ let span0;
8407
+ let t1;
8408
+ let span0_style_value;
8409
+ let t2;
8410
+ let label1;
8411
+ let input1;
8412
+ let input1_checked_value;
8413
+ let t3;
8414
+ let span1;
8415
+ let t4;
8416
+ let span1_style_value;
8417
+ let mounted;
8418
+ let dispose;
8419
+
8420
+ return {
8421
+ c() {
8422
+ div = element("div");
8423
+ label0 = element("label");
8424
+ input0 = element("input");
8425
+ t0 = space();
8426
+ span0 = element("span");
8427
+ t1 = text("はい");
8428
+ t2 = space();
8429
+ label1 = element("label");
8430
+ input1 = element("input");
8431
+ t3 = space();
8432
+ span1 = element("span");
8433
+ t4 = text("いいえ");
8434
+ attr(input0, "type", "radio");
8435
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
8436
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8437
+ input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
8438
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
8439
+ attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8440
+ attr(label0, "class", "radio-button svelte-pzrwlo");
8441
+ attr(input1, "type", "radio");
8442
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
8443
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8444
+ input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
8445
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
8446
+ attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8447
+ attr(label1, "class", "radio-button svelte-pzrwlo");
8448
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
8449
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8450
+ },
8451
+ m(target, anchor) {
8452
+ insert(target, div, anchor);
8453
+ append(div, label0);
8454
+ append(label0, input0);
8455
+ append(label0, t0);
8456
+ append(label0, span0);
8457
+ append(span0, t1);
8458
+ append(div, t2);
8459
+ append(div, label1);
8460
+ append(label1, input1);
8461
+ append(label1, t3);
8462
+ append(label1, span1);
8463
+ append(span1, t4);
8464
+
8465
+ if (!mounted) {
8466
+ dispose = [
8467
+ listen(input0, "change", /*change_handler*/ ctx[12]),
8468
+ listen(input1, "change", /*change_handler_1*/ ctx[13])
8469
+ ];
8470
+
8471
+ mounted = true;
8472
+ }
8473
+ },
8474
+ p(ctx, [dirty]) {
8475
+ if (dirty & /*buttonStyle*/ 4) {
8476
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8477
+ }
8478
+
8479
+ if (dirty & /*$value*/ 8 && input0_checked_value !== (input0_checked_value = /*$value*/ ctx[3] === true)) {
8480
+ input0.checked = input0_checked_value;
8481
+ }
8482
+
8483
+ if (dirty & /*_textStyle*/ 2 && span0_style_value !== (span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8484
+ attr(span0, "style", span0_style_value);
8485
+ }
8486
+
8487
+ if (dirty & /*buttonStyle*/ 4) {
8488
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8489
+ }
8490
+
8491
+ if (dirty & /*$value*/ 8 && input1_checked_value !== (input1_checked_value = /*$value*/ ctx[3] === false)) {
8492
+ input1.checked = input1_checked_value;
8493
+ }
8494
+
8495
+ if (dirty & /*_textStyle*/ 2 && span1_style_value !== (span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8496
+ attr(span1, "style", span1_style_value);
8497
+ }
8498
+
8499
+ if (dirty & /*_layoutStyle*/ 1) {
8500
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8501
+ }
8502
+ },
8503
+ i: noop,
8504
+ o: noop,
8505
+ d(detaching) {
8506
+ if (detaching) detach(div);
8507
+ mounted = false;
8508
+ run_all(dispose);
8509
+ }
8510
+ };
8511
+ }
8512
+
8513
+ function instance$c($$self, $$props, $$invalidate) {
8514
+ let buttonStyle;
8515
+ let $value;
8516
+ let { field = 'subscription' } = $$props;
8517
+ let { required = false } = $$props;
8518
+ let { _layoutStyle = 'flex-direction: row; gap: 0px;' } = $$props;
8519
+ let { font = SYSTEM_FONT } = $$props;
8520
+ const fontCss = font ? 'font-family:' + font : '';
8521
+ let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
8522
+ let { buttonSize = '16px' } = $$props;
8523
+ let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
8524
+ let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
8525
+ const { path: statePath } = getStateItemContext();
8526
+
8527
+ const { value } = registerIdentifyInput({
8528
+ name: field,
8529
+ statePath,
8530
+ initialValue: null,
8531
+ validator(value) {
8532
+ if (!required) return true;
8533
+ return typeof value === 'boolean';
8534
+ }
8535
+ });
8536
+
8537
+ component_subscribe($$self, value, value => $$invalidate(3, $value = value));
8538
+ const change_handler = () => value.set(true);
8539
+ const change_handler_1 = () => value.set(false);
8540
+
8541
+ $$self.$$set = $$props => {
8542
+ if ('field' in $$props) $$invalidate(6, field = $$props.field);
8543
+ if ('required' in $$props) $$invalidate(7, required = $$props.required);
8544
+ if ('_layoutStyle' in $$props) $$invalidate(0, _layoutStyle = $$props._layoutStyle);
8545
+ if ('font' in $$props) $$invalidate(8, font = $$props.font);
8546
+ if ('_textStyle' in $$props) $$invalidate(1, _textStyle = $$props._textStyle);
8547
+ if ('buttonSize' in $$props) $$invalidate(9, buttonSize = $$props.buttonSize);
8548
+ if ('buttonColor' in $$props) $$invalidate(10, buttonColor = $$props.buttonColor);
8549
+ if ('buttonColorActive' in $$props) $$invalidate(11, buttonColorActive = $$props.buttonColorActive);
8550
+ };
8551
+
8552
+ $$self.$$.update = () => {
8553
+ if ($$self.$$.dirty & /*font*/ 256) {
8554
+ addFont(font);
8555
+ }
8556
+
8557
+ if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 3584) {
8558
+ $$invalidate(2, buttonStyle = (() => {
8559
+ return stringifyStyleObj({
8560
+ '--color-main': buttonColor.main,
8561
+ '--color-sub': buttonColor.sub,
8562
+ '--color-main-active': buttonColorActive.main,
8563
+ '--color-sub-active': buttonColorActive.sub,
8564
+ '--size': buttonSize
8565
+ });
8566
+ })());
8567
+ }
8568
+ };
8569
+
8570
+ return [
8571
+ _layoutStyle,
8572
+ _textStyle,
8573
+ buttonStyle,
8574
+ $value,
8575
+ fontCss,
8576
+ value,
8577
+ field,
8578
+ required,
8579
+ font,
8580
+ buttonSize,
8581
+ buttonColor,
8582
+ buttonColorActive,
8583
+ change_handler,
8584
+ change_handler_1
8585
+ ];
8586
+ }
8587
+
8588
+ class FormIdentifyChoices extends SvelteComponent {
8589
+ constructor(options) {
8590
+ super();
8591
+
8592
+ init(
8593
+ this,
8594
+ options,
8595
+ instance$c,
8596
+ create_fragment$c,
8597
+ safe_not_equal,
8598
+ {
8599
+ field: 6,
8600
+ required: 7,
8601
+ _layoutStyle: 0,
8602
+ font: 8,
8603
+ _textStyle: 1,
8604
+ buttonSize: 9,
8605
+ buttonColor: 10,
8606
+ buttonColorActive: 11
8607
+ },
8608
+ add_css$b
8609
+ );
8092
8610
  }
8093
8611
  }
8094
8612
 
@@ -10555,4 +11073,4 @@ class ImageBlock extends SvelteComponent {
10555
11073
  }
10556
11074
  }
10557
11075
 
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 };
11076
+ 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 };