@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.
@@ -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
  * アクションのログの記録の管理
@@ -2539,7 +2591,7 @@ function create_if_block$9(ctx) {
2539
2591
  };
2540
2592
  }
2541
2593
 
2542
- function create_fragment$y(ctx) {
2594
+ function create_fragment$A(ctx) {
2543
2595
  let head;
2544
2596
  let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$9(ctx);
2545
2597
 
@@ -2581,7 +2633,7 @@ function create_fragment$y(ctx) {
2581
2633
  };
2582
2634
  }
2583
2635
 
2584
- function instance$y($$self, $$props, $$invalidate) {
2636
+ function instance$A($$self, $$props, $$invalidate) {
2585
2637
  let $fonts;
2586
2638
  component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
2587
2639
  let googleFontUrl = '';
@@ -2611,13 +2663,13 @@ function instance$y($$self, $$props, $$invalidate) {
2611
2663
  class Header extends SvelteComponent {
2612
2664
  constructor(options) {
2613
2665
  super();
2614
- init(this, options, instance$y, create_fragment$y, safe_not_equal, {});
2666
+ init(this, options, instance$A, create_fragment$A, safe_not_equal, {});
2615
2667
  }
2616
2668
  }
2617
2669
 
2618
2670
  /* src/components/State.svelte generated by Svelte v3.53.1 */
2619
2671
 
2620
- function create_fragment$x(ctx) {
2672
+ function create_fragment$z(ctx) {
2621
2673
  let header;
2622
2674
  let t;
2623
2675
  let current;
@@ -2681,7 +2733,7 @@ function create_fragment$x(ctx) {
2681
2733
  };
2682
2734
  }
2683
2735
 
2684
- function instance$x($$self, $$props, $$invalidate) {
2736
+ function instance$z($$self, $$props, $$invalidate) {
2685
2737
  let { $$slots: slots = {}, $$scope } = $$props;
2686
2738
 
2687
2739
  $$self.$$set = $$props => {
@@ -2694,13 +2746,13 @@ function instance$x($$self, $$props, $$invalidate) {
2694
2746
  class State extends SvelteComponent {
2695
2747
  constructor(options) {
2696
2748
  super();
2697
- init(this, options, instance$x, create_fragment$x, safe_not_equal, {});
2749
+ init(this, options, instance$z, create_fragment$z, safe_not_equal, {});
2698
2750
  }
2699
2751
  }
2700
2752
 
2701
2753
  /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
2702
2754
 
2703
- function add_css$t(target) {
2755
+ function add_css$v(target) {
2704
2756
  append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
2705
2757
  }
2706
2758
 
@@ -2777,7 +2829,7 @@ function create_if_block$8(ctx) {
2777
2829
  };
2778
2830
  }
2779
2831
 
2780
- function create_fragment$w(ctx) {
2832
+ function create_fragment$y(ctx) {
2781
2833
  let if_block_anchor;
2782
2834
  let current;
2783
2835
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$8(ctx);
@@ -2842,7 +2894,7 @@ function getStateItemContext() {
2842
2894
  return getContext(STATE_ITEM_CONTEXT_KEY);
2843
2895
  }
2844
2896
 
2845
- function instance$w($$self, $$props, $$invalidate) {
2897
+ function instance$y($$self, $$props, $$invalidate) {
2846
2898
  let $state;
2847
2899
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
2848
2900
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -2868,7 +2920,7 @@ function instance$w($$self, $$props, $$invalidate) {
2868
2920
  class StateItem extends SvelteComponent {
2869
2921
  constructor(options) {
2870
2922
  super();
2871
- init(this, options, instance$w, create_fragment$w, safe_not_equal, { path: 0 }, add_css$t);
2923
+ init(this, options, instance$y, create_fragment$y, safe_not_equal, { path: 0 }, add_css$v);
2872
2924
  }
2873
2925
  }
2874
2926
 
@@ -2881,51 +2933,74 @@ function isEmpty(value) {
2881
2933
  }
2882
2934
  }
2883
2935
  /** @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 {
2936
+ function createInputRegisterer(formData) {
2937
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2938
+ const writableValue = {
2939
+ subscribe(run) {
2940
+ return formData.subscribe(formData => {
2941
+ run(formData[name]?.value);
2942
+ });
2943
+ },
2944
+ set(value) {
2945
+ formData.update(prev => ({
2905
2946
  ...prev,
2906
2947
  [name]: {
2907
2948
  statePath,
2908
- value: updater(prevValue),
2909
- isValid: validator(prevValue),
2949
+ value,
2950
+ isValid: validator(value),
2910
2951
  },
2911
- };
2912
- });
2913
- },
2952
+ }));
2953
+ },
2954
+ update(updater) {
2955
+ formData.update(prev => {
2956
+ const prevValue = prev[name]?.value;
2957
+ if (prevValue === undefined)
2958
+ return prev;
2959
+ const value = updater(prevValue);
2960
+ return {
2961
+ ...prev,
2962
+ [name]: {
2963
+ statePath,
2964
+ value,
2965
+ isValid: validator(value),
2966
+ },
2967
+ };
2968
+ });
2969
+ },
2970
+ };
2971
+ const readableIsValid = {
2972
+ subscribe(run) {
2973
+ return formData.subscribe(formData => {
2974
+ run(formData[name]?.isValid);
2975
+ });
2976
+ },
2977
+ };
2978
+ if (isEmpty(get(writableValue))) {
2979
+ writableValue.set(initialValue);
2980
+ }
2981
+ return {
2982
+ value: writableValue,
2983
+ isValid: readableIsValid,
2984
+ };
2914
2985
  };
2915
- if (isEmpty(get(writableValue))) {
2916
- writableValue.set(initialValue);
2917
- }
2918
- return writableValue;
2986
+ return registerInput;
2919
2987
  }
2920
2988
  /** @internal */
2921
- const getValuesAreValidReader = statePath => ({
2989
+ const registerInput = createInputRegisterer(formData);
2990
+ /** @internal */
2991
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
2992
+ function validateFormData(formData, statePath) {
2993
+ return Object.entries(formData)
2994
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2995
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2996
+ }
2997
+ /** @internal */
2998
+ const getValuesAreValidReadable = statePath => ({
2922
2999
  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
3000
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
3001
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2927
3002
  callback(valuesAreValid);
2928
- });
3003
+ }));
2929
3004
  },
2930
3005
  });
2931
3006
  function formDataToEventValues(campaignId, formData) {
@@ -2953,21 +3028,24 @@ function formDataToEventValues(campaignId, formData) {
2953
3028
  },
2954
3029
  };
2955
3030
  }
3031
+ function formDataToIdentifyEventValues(formData) {
3032
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
3033
+ const value = dataItem.value;
3034
+ return [name, value];
3035
+ }));
3036
+ }
2956
3037
  /** @internal */
2957
3038
  function submit() {
2958
3039
  const systemConfig = getSystem();
2959
3040
  const campaignId = systemConfig.campaignId;
2960
3041
  if (campaignId) {
2961
3042
  const formData$1 = get(formData);
3043
+ const identifyFormData$1 = get(identifyFormData);
2962
3044
  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;
3045
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
3046
+ return { values, identifyValues };
2970
3047
  }
3048
+ return {};
2971
3049
  }
2972
3050
 
2973
3051
  /**
@@ -3024,8 +3102,11 @@ const runScript = (handlerName) => () => {
3024
3102
  };
3025
3103
  /** @internal */
3026
3104
  const submitForm = (to) => () => {
3027
- const values = submit();
3105
+ const { values, identifyValues } = submit();
3028
3106
  send_event('_answer_question', values);
3107
+ if (Object.keys(identifyValues).length > 0) {
3108
+ send_event('identify', identifyValues);
3109
+ }
3029
3110
  _moveTo(to);
3030
3111
  };
3031
3112
  /** @internal */
@@ -3089,7 +3170,7 @@ function customAnimation(node, { transform, animationStyle, delay = 0, duration
3089
3170
 
3090
3171
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3091
3172
 
3092
- function add_css$s(target) {
3173
+ function add_css$u(target) {
3093
3174
  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
3175
  }
3095
3176
 
@@ -3134,7 +3215,7 @@ function create_if_block$7(ctx) {
3134
3215
  };
3135
3216
  }
3136
3217
 
3137
- function create_fragment$v(ctx) {
3218
+ function create_fragment$x(ctx) {
3138
3219
  let if_block_anchor;
3139
3220
  let if_block = /*backgroundOverlay*/ ctx[0] && create_if_block$7(ctx);
3140
3221
 
@@ -3174,7 +3255,7 @@ function create_fragment$v(ctx) {
3174
3255
  };
3175
3256
  }
3176
3257
 
3177
- function instance$v($$self, $$props, $$invalidate) {
3258
+ function instance$x($$self, $$props, $$invalidate) {
3178
3259
  let { backgroundOverlay = false } = $$props;
3179
3260
  let { class: className = undefined } = $$props;
3180
3261
  const dispatch = createEventDispatcher();
@@ -3191,7 +3272,7 @@ function instance$v($$self, $$props, $$invalidate) {
3191
3272
  class BackgroundOverlay extends SvelteComponent {
3192
3273
  constructor(options) {
3193
3274
  super();
3194
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3275
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$u);
3195
3276
  }
3196
3277
  }
3197
3278
 
@@ -3231,8 +3312,8 @@ function checkStopPropagation(eventName, handler) {
3231
3312
 
3232
3313
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3233
3314
 
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}");
3315
+ function add_css$t(target) {
3316
+ 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
3317
  }
3237
3318
 
3238
3319
  // (50:0) {:else}
@@ -3271,7 +3352,7 @@ function create_else_block$4(ctx) {
3271
3352
  },
3272
3353
  h() {
3273
3354
  set_attributes(button, button_data);
3274
- toggle_class(button, "svelte-1dtbrzj", true);
3355
+ toggle_class(button, "svelte-1kmu8zp", true);
3275
3356
  },
3276
3357
  m(target, anchor) {
3277
3358
  insert_hydration(target, button, anchor);
@@ -3310,7 +3391,7 @@ function create_else_block$4(ctx) {
3310
3391
  dataAttrStopPropagation('click')
3311
3392
  ]));
3312
3393
 
3313
- toggle_class(button, "svelte-1dtbrzj", true);
3394
+ toggle_class(button, "svelte-1kmu8zp", true);
3314
3395
  },
3315
3396
  i(local) {
3316
3397
  if (current) return;
@@ -3351,7 +3432,7 @@ function create_if_block_2$1(ctx) {
3351
3432
  this.h();
3352
3433
  },
3353
3434
  h() {
3354
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1dtbrzj"));
3435
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
3355
3436
  attr(div, "style", /*style*/ ctx[1]);
3356
3437
  },
3357
3438
  m(target, anchor) {
@@ -3451,7 +3532,7 @@ function create_if_block_1$2(ctx) {
3451
3532
  },
3452
3533
  h() {
3453
3534
  set_attributes(a, a_data);
3454
- toggle_class(a, "svelte-1dtbrzj", true);
3535
+ toggle_class(a, "svelte-1kmu8zp", true);
3455
3536
  },
3456
3537
  m(target, anchor) {
3457
3538
  insert_hydration(target, a, anchor);
@@ -3493,7 +3574,7 @@ function create_if_block_1$2(ctx) {
3493
3574
  dataAttrStopPropagation('click')
3494
3575
  ]));
3495
3576
 
3496
- toggle_class(a, "svelte-1dtbrzj", true);
3577
+ toggle_class(a, "svelte-1kmu8zp", true);
3497
3578
  },
3498
3579
  i(local) {
3499
3580
  if (current) return;
@@ -3534,7 +3615,7 @@ function create_if_block$6(ctx) {
3534
3615
  this.h();
3535
3616
  },
3536
3617
  h() {
3537
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1dtbrzj"));
3618
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
3538
3619
  attr(div, "style", /*style*/ ctx[1]);
3539
3620
  },
3540
3621
  m(target, anchor) {
@@ -3582,7 +3663,7 @@ function create_if_block$6(ctx) {
3582
3663
  };
3583
3664
  }
3584
3665
 
3585
- function create_fragment$u(ctx) {
3666
+ function create_fragment$w(ctx) {
3586
3667
  let current_block_type_index;
3587
3668
  let if_block;
3588
3669
  let if_block_anchor;
@@ -3659,7 +3740,7 @@ function create_fragment$u(ctx) {
3659
3740
 
3660
3741
  const BUTTON_CLASS = 'button';
3661
3742
 
3662
- function instance$u($$self, $$props, $$invalidate) {
3743
+ function instance$w($$self, $$props, $$invalidate) {
3663
3744
  let disabled;
3664
3745
  let $valuesAreValid;
3665
3746
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -3677,7 +3758,7 @@ function instance$u($$self, $$props, $$invalidate) {
3677
3758
  }
3678
3759
 
3679
3760
  const { path: statePath } = getStateItemContext() ?? { path: '/' };
3680
- const valuesAreValid = getValuesAreValidReader(statePath);
3761
+ const valuesAreValid = getValuesAreValidReadable(statePath);
3681
3762
  component_subscribe($$self, valuesAreValid, value => $$invalidate(7, $valuesAreValid = value));
3682
3763
 
3683
3764
  $$self.$$set = $$props => {
@@ -3725,8 +3806,8 @@ class Button extends SvelteComponent {
3725
3806
  init(
3726
3807
  this,
3727
3808
  options,
3728
- instance$u,
3729
- create_fragment$u,
3809
+ instance$w,
3810
+ create_fragment$w,
3730
3811
  safe_not_equal,
3731
3812
  {
3732
3813
  onClick: 0,
@@ -3734,14 +3815,14 @@ class Button extends SvelteComponent {
3734
3815
  eventValue: 6,
3735
3816
  style: 1
3736
3817
  },
3737
- add_css$r
3818
+ add_css$t
3738
3819
  );
3739
3820
  }
3740
3821
  }
3741
3822
 
3742
3823
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
3743
3824
 
3744
- function add_css$q(target) {
3825
+ function add_css$s(target) {
3745
3826
  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
3827
  }
3747
3828
 
@@ -4207,7 +4288,7 @@ function create_default_slot$6(ctx) {
4207
4288
  };
4208
4289
  }
4209
4290
 
4210
- function create_fragment$t(ctx) {
4291
+ function create_fragment$v(ctx) {
4211
4292
  let show_if;
4212
4293
  let current_block_type_index;
4213
4294
  let if_block0;
@@ -4331,7 +4412,7 @@ function create_fragment$t(ctx) {
4331
4412
  };
4332
4413
  }
4333
4414
 
4334
- function instance$t($$self, $$props, $$invalidate) {
4415
+ function instance$v($$self, $$props, $$invalidate) {
4335
4416
  let close;
4336
4417
  let closable;
4337
4418
  let backgroundClick;
@@ -4611,8 +4692,8 @@ class Modal extends SvelteComponent {
4611
4692
  init(
4612
4693
  this,
4613
4694
  options,
4614
- instance$t,
4615
- create_fragment$t,
4695
+ instance$v,
4696
+ create_fragment$v,
4616
4697
  safe_not_equal,
4617
4698
  {
4618
4699
  onClick: 0,
@@ -4630,7 +4711,7 @@ class Modal extends SvelteComponent {
4630
4711
  closeButtonColor: 9,
4631
4712
  _closeStyle: 10
4632
4713
  },
4633
- add_css$q,
4714
+ add_css$s,
4634
4715
  [-1, -1]
4635
4716
  );
4636
4717
  }
@@ -4638,7 +4719,7 @@ class Modal extends SvelteComponent {
4638
4719
 
4639
4720
  /* src/components/Grid.svelte generated by Svelte v3.53.1 */
4640
4721
 
4641
- function create_fragment$s(ctx) {
4722
+ function create_fragment$u(ctx) {
4642
4723
  let div;
4643
4724
  let current;
4644
4725
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -4706,7 +4787,7 @@ function create_fragment$s(ctx) {
4706
4787
  };
4707
4788
  }
4708
4789
 
4709
- function instance$s($$self, $$props, $$invalidate) {
4790
+ function instance$u($$self, $$props, $$invalidate) {
4710
4791
  let _style;
4711
4792
  let { $$slots: slots = {}, $$scope } = $$props;
4712
4793
  let { width = '512px' } = $$props;
@@ -4751,7 +4832,7 @@ class Grid extends SvelteComponent {
4751
4832
  constructor(options) {
4752
4833
  super();
4753
4834
 
4754
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
4835
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, {
4755
4836
  width: 1,
4756
4837
  height: 2,
4757
4838
  rows: 3,
@@ -4764,11 +4845,11 @@ class Grid extends SvelteComponent {
4764
4845
 
4765
4846
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
4766
4847
 
4767
- function add_css$p(target) {
4848
+ function add_css$r(target) {
4768
4849
  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
4850
  }
4770
4851
 
4771
- function create_fragment$r(ctx) {
4852
+ function create_fragment$t(ctx) {
4772
4853
  let div1;
4773
4854
  let div0;
4774
4855
  let current;
@@ -4861,7 +4942,7 @@ function create_fragment$r(ctx) {
4861
4942
 
4862
4943
  const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
4863
4944
 
4864
- function instance$r($$self, $$props, $$invalidate) {
4945
+ function instance$t($$self, $$props, $$invalidate) {
4865
4946
  let _style;
4866
4947
  let { $$slots: slots = {}, $$scope } = $$props;
4867
4948
  let { x1 } = $$props;
@@ -4910,8 +4991,8 @@ class GridItem extends SvelteComponent {
4910
4991
  init(
4911
4992
  this,
4912
4993
  options,
4913
- instance$r,
4914
- create_fragment$r,
4994
+ instance$t,
4995
+ create_fragment$t,
4915
4996
  safe_not_equal,
4916
4997
  {
4917
4998
  x1: 2,
@@ -4922,7 +5003,7 @@ class GridItem extends SvelteComponent {
4922
5003
  background: 7,
4923
5004
  gridItemId: 0
4924
5005
  },
4925
- add_css$p
5006
+ add_css$r
4926
5007
  );
4927
5008
  }
4928
5009
  }
@@ -5028,7 +5109,7 @@ function create_each_block$6(ctx) {
5028
5109
  };
5029
5110
  }
5030
5111
 
5031
- function create_fragment$q(ctx) {
5112
+ function create_fragment$s(ctx) {
5032
5113
  let each_1_anchor;
5033
5114
  let each_value = /*items*/ ctx[0];
5034
5115
  let each_blocks = [];
@@ -5094,7 +5175,7 @@ function create_fragment$q(ctx) {
5094
5175
 
5095
5176
  const regexp = /(\r?\n)/;
5096
5177
 
5097
- function instance$q($$self, $$props, $$invalidate) {
5178
+ function instance$s($$self, $$props, $$invalidate) {
5098
5179
  let items;
5099
5180
  let { text = 'サンプルSample' } = $$props;
5100
5181
 
@@ -5115,13 +5196,13 @@ function instance$q($$self, $$props, $$invalidate) {
5115
5196
  class RenderText extends SvelteComponent {
5116
5197
  constructor(options) {
5117
5198
  super();
5118
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { text: 1 });
5199
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, { text: 1 });
5119
5200
  }
5120
5201
  }
5121
5202
 
5122
5203
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5123
5204
 
5124
- function add_css$o(target) {
5205
+ function add_css$q(target) {
5125
5206
  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
5207
  }
5127
5208
 
@@ -5305,7 +5386,7 @@ function create_if_block$3(ctx) {
5305
5386
  };
5306
5387
  }
5307
5388
 
5308
- function create_fragment$p(ctx) {
5389
+ function create_fragment$r(ctx) {
5309
5390
  let div;
5310
5391
  let current_block_type_index;
5311
5392
  let if_block;
@@ -5385,7 +5466,7 @@ function create_fragment$p(ctx) {
5385
5466
  };
5386
5467
  }
5387
5468
 
5388
- function instance$p($$self, $$props, $$invalidate) {
5469
+ function instance$r($$self, $$props, $$invalidate) {
5389
5470
  let style;
5390
5471
  let { text = 'テキストのコンテンツ' } = $$props;
5391
5472
  let { font = SYSTEM_FONT } = $$props;
@@ -5481,8 +5562,8 @@ class TextElement extends SvelteComponent {
5481
5562
  init(
5482
5563
  this,
5483
5564
  options,
5484
- instance$p,
5485
- create_fragment$p,
5565
+ instance$r,
5566
+ create_fragment$r,
5486
5567
  safe_not_equal,
5487
5568
  {
5488
5569
  text: 0,
@@ -5493,14 +5574,14 @@ class TextElement extends SvelteComponent {
5493
5574
  enableCopy: 2,
5494
5575
  eventName: 10
5495
5576
  },
5496
- add_css$o
5577
+ add_css$q
5497
5578
  );
5498
5579
  }
5499
5580
  }
5500
5581
 
5501
5582
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
5502
5583
 
5503
- function add_css$n(target) {
5584
+ function add_css$p(target) {
5504
5585
  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
5586
  }
5506
5587
 
@@ -5541,7 +5622,7 @@ function create_default_slot$5(ctx) {
5541
5622
  };
5542
5623
  }
5543
5624
 
5544
- function create_fragment$o(ctx) {
5625
+ function create_fragment$q(ctx) {
5545
5626
  let div;
5546
5627
  let button;
5547
5628
  let current;
@@ -5605,7 +5686,7 @@ function create_fragment$o(ctx) {
5605
5686
  };
5606
5687
  }
5607
5688
 
5608
- function instance$o($$self, $$props, $$invalidate) {
5689
+ function instance$q($$self, $$props, $$invalidate) {
5609
5690
  let style;
5610
5691
  let { text = 'ボタンのラベル' } = $$props;
5611
5692
  let { onClick = { operation: 'none', args: [] } } = $$props;
@@ -5643,8 +5724,8 @@ class TextButtonElement extends SvelteComponent {
5643
5724
  init(
5644
5725
  this,
5645
5726
  options,
5646
- instance$o,
5647
- create_fragment$o,
5727
+ instance$q,
5728
+ create_fragment$q,
5648
5729
  safe_not_equal,
5649
5730
  {
5650
5731
  text: 0,
@@ -5654,14 +5735,14 @@ class TextButtonElement extends SvelteComponent {
5654
5735
  _buttonStyle: 5,
5655
5736
  _style: 6
5656
5737
  },
5657
- add_css$n
5738
+ add_css$p
5658
5739
  );
5659
5740
  }
5660
5741
  }
5661
5742
 
5662
5743
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
5663
5744
 
5664
- function add_css$m(target) {
5745
+ function add_css$o(target) {
5665
5746
  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
5747
  }
5667
5748
 
@@ -5732,7 +5813,7 @@ function create_default_slot$4(ctx) {
5732
5813
  };
5733
5814
  }
5734
5815
 
5735
- function create_fragment$n(ctx) {
5816
+ function create_fragment$p(ctx) {
5736
5817
  let div;
5737
5818
  let button;
5738
5819
  let div_class_value;
@@ -5801,7 +5882,7 @@ function create_fragment$n(ctx) {
5801
5882
  };
5802
5883
  }
5803
5884
 
5804
- function instance$n($$self, $$props, $$invalidate) {
5885
+ function instance$p($$self, $$props, $$invalidate) {
5805
5886
  let { src = '' } = $$props;
5806
5887
  let { alt = '画像の説明' } = $$props;
5807
5888
  let { transport = false } = $$props;
@@ -5832,8 +5913,8 @@ class ImageElement extends SvelteComponent {
5832
5913
  init(
5833
5914
  this,
5834
5915
  options,
5835
- instance$n,
5836
- create_fragment$n,
5916
+ instance$p,
5917
+ create_fragment$p,
5837
5918
  safe_not_equal,
5838
5919
  {
5839
5920
  src: 0,
@@ -5845,18 +5926,18 @@ class ImageElement extends SvelteComponent {
5845
5926
  _imageStyle: 6,
5846
5927
  _style: 7
5847
5928
  },
5848
- add_css$m
5929
+ add_css$o
5849
5930
  );
5850
5931
  }
5851
5932
  }
5852
5933
 
5853
5934
  /* src/components/List.svelte generated by Svelte v3.53.1 */
5854
5935
 
5855
- function add_css$l(target) {
5936
+ function add_css$n(target) {
5856
5937
  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
5938
  }
5858
5939
 
5859
- function create_fragment$m(ctx) {
5940
+ function create_fragment$o(ctx) {
5860
5941
  let div;
5861
5942
  let current;
5862
5943
  const default_slot_template = /*#slots*/ ctx[6].default;
@@ -5926,7 +6007,7 @@ function create_fragment$m(ctx) {
5926
6007
 
5927
6008
  const LIST_CONTEXT_KEY = Symbol();
5928
6009
 
5929
- function instance$m($$self, $$props, $$invalidate) {
6010
+ function instance$o($$self, $$props, $$invalidate) {
5930
6011
  let style;
5931
6012
  let { $$slots: slots = {}, $$scope } = $$props;
5932
6013
  let { direction = 'vertical' } = $$props;
@@ -5993,8 +6074,8 @@ class List extends SvelteComponent {
5993
6074
  init(
5994
6075
  this,
5995
6076
  options,
5996
- instance$m,
5997
- create_fragment$m,
6077
+ instance$o,
6078
+ create_fragment$o,
5998
6079
  safe_not_equal,
5999
6080
  {
6000
6081
  direction: 1,
@@ -6002,14 +6083,14 @@ class List extends SvelteComponent {
6002
6083
  background: 3,
6003
6084
  _style: 4
6004
6085
  },
6005
- add_css$l
6086
+ add_css$n
6006
6087
  );
6007
6088
  }
6008
6089
  }
6009
6090
 
6010
6091
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
6011
6092
 
6012
- function add_css$k(target) {
6093
+ function add_css$m(target) {
6013
6094
  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
6095
  }
6015
6096
 
@@ -6064,7 +6145,7 @@ function create_default_slot$3(ctx) {
6064
6145
  };
6065
6146
  }
6066
6147
 
6067
- function create_fragment$l(ctx) {
6148
+ function create_fragment$n(ctx) {
6068
6149
  let div;
6069
6150
  let button;
6070
6151
  let current;
@@ -6133,7 +6214,7 @@ function create_fragment$l(ctx) {
6133
6214
  };
6134
6215
  }
6135
6216
 
6136
- function instance$l($$self, $$props, $$invalidate) {
6217
+ function instance$n($$self, $$props, $$invalidate) {
6137
6218
  let listItemStyle;
6138
6219
  let { $$slots: slots = {}, $$scope } = $$props;
6139
6220
  const { separator, background, direction, registerItem, unregisterItem } = getContext(LIST_CONTEXT_KEY);
@@ -6212,17 +6293,17 @@ function instance$l($$self, $$props, $$invalidate) {
6212
6293
  class ListItem extends SvelteComponent {
6213
6294
  constructor(options) {
6214
6295
  super();
6215
- init(this, options, instance$l, create_fragment$l, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$k);
6296
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { onClick: 0, clickEventName: 1, _style: 2 }, add_css$m);
6216
6297
  }
6217
6298
  }
6218
6299
 
6219
6300
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6220
6301
 
6221
- function add_css$j(target) {
6302
+ function add_css$l(target) {
6222
6303
  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
6304
  }
6224
6305
 
6225
- function create_fragment$k(ctx) {
6306
+ function create_fragment$m(ctx) {
6226
6307
  let div;
6227
6308
 
6228
6309
  return {
@@ -6258,7 +6339,7 @@ function create_fragment$k(ctx) {
6258
6339
  };
6259
6340
  }
6260
6341
 
6261
- function instance$k($$self, $$props, $$invalidate) {
6342
+ function instance$m($$self, $$props, $$invalidate) {
6262
6343
  let { code } = $$props;
6263
6344
  let { _style = '' } = $$props;
6264
6345
 
@@ -6273,17 +6354,17 @@ function instance$k($$self, $$props, $$invalidate) {
6273
6354
  class EmbedElement extends SvelteComponent {
6274
6355
  constructor(options) {
6275
6356
  super();
6276
- init(this, options, instance$k, create_fragment$k, safe_not_equal, { code: 0, _style: 1 }, add_css$j);
6357
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, { code: 0, _style: 1 }, add_css$l);
6277
6358
  }
6278
6359
  }
6279
6360
 
6280
6361
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6281
6362
 
6282
- function add_css$i(target) {
6363
+ function add_css$k(target) {
6283
6364
  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
6365
  }
6285
6366
 
6286
- function create_fragment$j(ctx) {
6367
+ function create_fragment$l(ctx) {
6287
6368
  let div1;
6288
6369
  let div0;
6289
6370
 
@@ -6335,7 +6416,7 @@ function _setValue(obj, key, value) {
6335
6416
  }
6336
6417
  }
6337
6418
 
6338
- function instance$j($$self, $$props, $$invalidate) {
6419
+ function instance$l($$self, $$props, $$invalidate) {
6339
6420
  let $system;
6340
6421
  component_subscribe($$self, system, $$value => $$invalidate(31, $system = $$value));
6341
6422
  let { videoId = 'wt0OjOeX-JA' } = $$props;
@@ -6606,8 +6687,8 @@ class MovieYouTubeElement extends SvelteComponent {
6606
6687
  init(
6607
6688
  this,
6608
6689
  options,
6609
- instance$j,
6610
- create_fragment$j,
6690
+ instance$l,
6691
+ create_fragment$l,
6611
6692
  safe_not_equal,
6612
6693
  {
6613
6694
  videoId: 2,
@@ -6636,7 +6717,7 @@ class MovieYouTubeElement extends SvelteComponent {
6636
6717
  mute: 25,
6637
6718
  _style: 0
6638
6719
  },
6639
- add_css$i,
6720
+ add_css$k,
6640
6721
  [-1, -1]
6641
6722
  );
6642
6723
  }
@@ -6644,11 +6725,11 @@ class MovieYouTubeElement extends SvelteComponent {
6644
6725
 
6645
6726
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
6646
6727
 
6647
- function add_css$h(target) {
6728
+ function add_css$j(target) {
6648
6729
  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
6730
  }
6650
6731
 
6651
- function create_fragment$i(ctx) {
6732
+ function create_fragment$k(ctx) {
6652
6733
  let div1;
6653
6734
  let div0;
6654
6735
 
@@ -6690,7 +6771,7 @@ function create_fragment$i(ctx) {
6690
6771
  };
6691
6772
  }
6692
6773
 
6693
- function instance$i($$self, $$props, $$invalidate) {
6774
+ function instance$k($$self, $$props, $$invalidate) {
6694
6775
  let $system;
6695
6776
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
6696
6777
  let { videoId = "201239468" } = $$props;
@@ -6833,8 +6914,8 @@ class MovieVimeoElement extends SvelteComponent {
6833
6914
  init(
6834
6915
  this,
6835
6916
  options,
6836
- instance$i,
6837
- create_fragment$i,
6917
+ instance$k,
6918
+ create_fragment$k,
6838
6919
  safe_not_equal,
6839
6920
  {
6840
6921
  videoId: 2,
@@ -6844,18 +6925,18 @@ class MovieVimeoElement extends SvelteComponent {
6844
6925
  mute: 6,
6845
6926
  _style: 0
6846
6927
  },
6847
- add_css$h
6928
+ add_css$j
6848
6929
  );
6849
6930
  }
6850
6931
  }
6851
6932
 
6852
6933
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
6853
6934
 
6854
- function add_css$g(target) {
6935
+ function add_css$i(target) {
6855
6936
  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
6937
  }
6857
6938
 
6858
- function create_fragment$h(ctx) {
6939
+ function create_fragment$j(ctx) {
6859
6940
  let div;
6860
6941
  let textarea;
6861
6942
  let mounted;
@@ -6930,7 +7011,7 @@ function create_fragment$h(ctx) {
6930
7011
  };
6931
7012
  }
6932
7013
 
6933
- function instance$h($$self, $$props, $$invalidate) {
7014
+ function instance$j($$self, $$props, $$invalidate) {
6934
7015
  let style;
6935
7016
  let styleVariables;
6936
7017
  let $value;
@@ -6944,7 +7025,7 @@ function instance$h($$self, $$props, $$invalidate) {
6944
7025
  let { _placeholderStyle = 'color: #ccc;' } = $$props;
6945
7026
  const { path: statePath } = getStateItemContext();
6946
7027
 
6947
- const value = registerInput({
7028
+ const { value } = registerInput({
6948
7029
  name,
6949
7030
  statePath,
6950
7031
  initialValue: '',
@@ -7018,8 +7099,8 @@ class FormTextarea extends SvelteComponent {
7018
7099
  init(
7019
7100
  this,
7020
7101
  options,
7021
- instance$h,
7022
- create_fragment$h,
7102
+ instance$j,
7103
+ create_fragment$j,
7023
7104
  safe_not_equal,
7024
7105
  {
7025
7106
  name: 7,
@@ -7031,14 +7112,14 @@ class FormTextarea extends SvelteComponent {
7031
7112
  _textStyle: 11,
7032
7113
  _placeholderStyle: 12
7033
7114
  },
7034
- add_css$g
7115
+ add_css$i
7035
7116
  );
7036
7117
  }
7037
7118
  }
7038
7119
 
7039
7120
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
7040
7121
 
7041
- function add_css$f(target) {
7122
+ function add_css$h(target) {
7042
7123
  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
7124
  }
7044
7125
 
@@ -7151,7 +7232,7 @@ function create_each_block$5(ctx) {
7151
7232
  };
7152
7233
  }
7153
7234
 
7154
- function create_fragment$g(ctx) {
7235
+ function create_fragment$i(ctx) {
7155
7236
  let div;
7156
7237
  let each_value = /*_options*/ ctx[4];
7157
7238
  let each_blocks = [];
@@ -7229,7 +7310,7 @@ function create_fragment$g(ctx) {
7229
7310
  };
7230
7311
  }
7231
7312
 
7232
- function instance$g($$self, $$props, $$invalidate) {
7313
+ function instance$i($$self, $$props, $$invalidate) {
7233
7314
  let _options;
7234
7315
  let buttonStyle;
7235
7316
  let _value;
@@ -7246,7 +7327,7 @@ function instance$g($$self, $$props, $$invalidate) {
7246
7327
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7247
7328
  const { path: statePath } = getStateItemContext();
7248
7329
 
7249
- const value = registerInput({
7330
+ const { value } = registerInput({
7250
7331
  name,
7251
7332
  statePath,
7252
7333
  initialValue: [],
@@ -7329,8 +7410,8 @@ class FormRadioButtons extends SvelteComponent {
7329
7410
  init(
7330
7411
  this,
7331
7412
  options,
7332
- instance$g,
7333
- create_fragment$g,
7413
+ instance$i,
7414
+ create_fragment$i,
7334
7415
  safe_not_equal,
7335
7416
  {
7336
7417
  name: 0,
@@ -7343,14 +7424,14 @@ class FormRadioButtons extends SvelteComponent {
7343
7424
  buttonColor: 13,
7344
7425
  buttonColorActive: 14
7345
7426
  },
7346
- add_css$f
7427
+ add_css$h
7347
7428
  );
7348
7429
  }
7349
7430
  }
7350
7431
 
7351
7432
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
7352
7433
 
7353
- function add_css$e(target) {
7434
+ function add_css$g(target) {
7354
7435
  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
7436
  }
7356
7437
 
@@ -7477,7 +7558,7 @@ function create_each_block$4(ctx) {
7477
7558
  };
7478
7559
  }
7479
7560
 
7480
- function create_fragment$f(ctx) {
7561
+ function create_fragment$h(ctx) {
7481
7562
  let div1;
7482
7563
  let select;
7483
7564
  let t;
@@ -7587,7 +7668,7 @@ function create_fragment$f(ctx) {
7587
7668
  };
7588
7669
  }
7589
7670
 
7590
- function instance$f($$self, $$props, $$invalidate) {
7671
+ function instance$h($$self, $$props, $$invalidate) {
7591
7672
  let _options;
7592
7673
  let style;
7593
7674
  let styleVariables;
@@ -7606,7 +7687,7 @@ function instance$f($$self, $$props, $$invalidate) {
7606
7687
  let { iconSize = '12px' } = $$props;
7607
7688
  const { path: statePath } = getStateItemContext();
7608
7689
 
7609
- const value = registerInput({
7690
+ const { value } = registerInput({
7610
7691
  name,
7611
7692
  statePath,
7612
7693
  initialValue: [],
@@ -7703,8 +7784,8 @@ class FormSelect extends SvelteComponent {
7703
7784
  init(
7704
7785
  this,
7705
7786
  options,
7706
- instance$f,
7707
- create_fragment$f,
7787
+ instance$h,
7788
+ create_fragment$h,
7708
7789
  safe_not_equal,
7709
7790
  {
7710
7791
  name: 7,
@@ -7719,14 +7800,14 @@ class FormSelect extends SvelteComponent {
7719
7800
  iconColor: 15,
7720
7801
  iconSize: 16
7721
7802
  },
7722
- add_css$e
7803
+ add_css$g
7723
7804
  );
7724
7805
  }
7725
7806
  }
7726
7807
 
7727
7808
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
7728
7809
 
7729
- function add_css$d(target) {
7810
+ function add_css$f(target) {
7730
7811
  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
7812
  }
7732
7813
 
@@ -7855,7 +7936,7 @@ function create_each_block$3(ctx) {
7855
7936
  };
7856
7937
  }
7857
7938
 
7858
- function create_fragment$e(ctx) {
7939
+ function create_fragment$g(ctx) {
7859
7940
  let div;
7860
7941
  let each_value = /*_options*/ ctx[3];
7861
7942
  let each_blocks = [];
@@ -7933,7 +8014,7 @@ function create_fragment$e(ctx) {
7933
8014
  };
7934
8015
  }
7935
8016
 
7936
- function instance$e($$self, $$props, $$invalidate) {
8017
+ function instance$g($$self, $$props, $$invalidate) {
7937
8018
  let _options;
7938
8019
  let styleVariables;
7939
8020
  let isCheckedArray;
@@ -7950,7 +8031,7 @@ function instance$e($$self, $$props, $$invalidate) {
7950
8031
  let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
7951
8032
  const { path: statePath } = getStateItemContext();
7952
8033
 
7953
- const value = registerInput({
8034
+ const { value } = registerInput({
7954
8035
  name,
7955
8036
  statePath,
7956
8037
  initialValue: [],
@@ -8039,8 +8120,8 @@ class FormCheckBoxes extends SvelteComponent {
8039
8120
  init(
8040
8121
  this,
8041
8122
  options,
8042
- instance$e,
8043
- create_fragment$e,
8123
+ instance$g,
8124
+ create_fragment$g,
8044
8125
  safe_not_equal,
8045
8126
  {
8046
8127
  name: 0,
@@ -8053,14 +8134,14 @@ class FormCheckBoxes extends SvelteComponent {
8053
8134
  buttonColor: 13,
8054
8135
  buttonColorActive: 14
8055
8136
  },
8056
- add_css$d
8137
+ add_css$f
8057
8138
  );
8058
8139
  }
8059
8140
  }
8060
8141
 
8061
8142
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
8062
8143
 
8063
- function add_css$c(target) {
8144
+ function add_css$e(target) {
8064
8145
  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
8146
  }
8066
8147
 
@@ -8128,7 +8209,7 @@ function create_each_block$2(ctx) {
8128
8209
  };
8129
8210
  }
8130
8211
 
8131
- function create_fragment$d(ctx) {
8212
+ function create_fragment$f(ctx) {
8132
8213
  let div;
8133
8214
  let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func$1);
8134
8215
  let each_blocks = [];
@@ -8203,7 +8284,7 @@ function create_fragment$d(ctx) {
8203
8284
 
8204
8285
  const func$1 = i => i + 1;
8205
8286
 
8206
- function instance$d($$self, $$props, $$invalidate) {
8287
+ function instance$f($$self, $$props, $$invalidate) {
8207
8288
  let _value;
8208
8289
  let $value;
8209
8290
  let { name = '' } = $$props;
@@ -8214,7 +8295,7 @@ function instance$d($$self, $$props, $$invalidate) {
8214
8295
  let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
8215
8296
  const { path: statePath } = getStateItemContext();
8216
8297
 
8217
- const value = registerInput({
8298
+ const { value } = registerInput({
8218
8299
  name,
8219
8300
  statePath,
8220
8301
  initialValue: [],
@@ -8279,8 +8360,8 @@ class FormRatingButtonsNumber extends SvelteComponent {
8279
8360
  init(
8280
8361
  this,
8281
8362
  options,
8282
- instance$d,
8283
- create_fragment$d,
8363
+ instance$f,
8364
+ create_fragment$f,
8284
8365
  safe_not_equal,
8285
8366
  {
8286
8367
  name: 5,
@@ -8290,14 +8371,14 @@ class FormRatingButtonsNumber extends SvelteComponent {
8290
8371
  buttonStyle: 8,
8291
8372
  buttonActiveStyle: 9
8292
8373
  },
8293
- add_css$c
8374
+ add_css$e
8294
8375
  );
8295
8376
  }
8296
8377
  }
8297
8378
 
8298
8379
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
8299
8380
 
8300
- function add_css$b(target) {
8381
+ function add_css$d(target) {
8301
8382
  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
8383
  }
8303
8384
 
@@ -8368,7 +8449,7 @@ function create_each_block$1(ctx) {
8368
8449
  };
8369
8450
  }
8370
8451
 
8371
- function create_fragment$c(ctx) {
8452
+ function create_fragment$e(ctx) {
8372
8453
  let div;
8373
8454
  let each_value = [...Array(count).keys()].reverse().map(func);
8374
8455
  let each_blocks = [];
@@ -8444,7 +8525,7 @@ function create_fragment$c(ctx) {
8444
8525
  const count = 5;
8445
8526
  const func = i => i + 1;
8446
8527
 
8447
- function instance$c($$self, $$props, $$invalidate) {
8528
+ function instance$e($$self, $$props, $$invalidate) {
8448
8529
  let _value;
8449
8530
  let buttonStyle;
8450
8531
  let $value;
@@ -8462,7 +8543,7 @@ function instance$c($$self, $$props, $$invalidate) {
8462
8543
 
8463
8544
  const { path: statePath } = getStateItemContext();
8464
8545
 
8465
- const value = registerInput({
8546
+ const { value } = registerInput({
8466
8547
  name,
8467
8548
  statePath,
8468
8549
  initialValue: [],
@@ -8500,7 +8581,484 @@ function instance$c($$self, $$props, $$invalidate) {
8500
8581
  class FormRatingButtonsFace extends SvelteComponent {
8501
8582
  constructor(options) {
8502
8583
  super();
8503
- init(this, options, instance$c, create_fragment$c, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$b);
8584
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { name: 5, required: 6, size: 7 }, add_css$d);
8585
+ }
8586
+ }
8587
+
8588
+ /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
8589
+
8590
+ function add_css$c(target) {
8591
+ 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}");
8592
+ }
8593
+
8594
+ function create_fragment$d(ctx) {
8595
+ let div;
8596
+ let input;
8597
+ let input_class_value;
8598
+ let mounted;
8599
+ let dispose;
8600
+
8601
+ return {
8602
+ c() {
8603
+ div = element("div");
8604
+ input = element("input");
8605
+ this.h();
8606
+ },
8607
+ l(nodes) {
8608
+ div = claim_element(nodes, "DIV", { class: true, style: true });
8609
+ var div_nodes = children(div);
8610
+
8611
+ input = claim_element(div_nodes, "INPUT", {
8612
+ class: true,
8613
+ type: true,
8614
+ placeholder: true,
8615
+ style: true
8616
+ });
8617
+
8618
+ div_nodes.forEach(detach);
8619
+ this.h();
8620
+ },
8621
+ h() {
8622
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"));
8623
+ attr(input, "type", "text");
8624
+ input.value = /*$value*/ ctx[4];
8625
+ input.required = /*required*/ ctx[0];
8626
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8627
+ attr(input, "style", /*style*/ ctx[3]);
8628
+ attr(div, "class", "input-wrapper svelte-17a0wgl");
8629
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8630
+ },
8631
+ m(target, anchor) {
8632
+ insert_hydration(target, div, anchor);
8633
+ append_hydration(div, input);
8634
+
8635
+ if (!mounted) {
8636
+ dispose = listen(input, "input", /*stringInputHandler*/ ctx[8]);
8637
+ mounted = true;
8638
+ }
8639
+ },
8640
+ p(ctx, [dirty]) {
8641
+ if (dirty & /*$isValid*/ 32 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*$isValid*/ ctx[5] ? '' : '_error'].join(' ')) + " svelte-17a0wgl"))) {
8642
+ attr(input, "class", input_class_value);
8643
+ }
8644
+
8645
+ if (dirty & /*$value*/ 16 && input.value !== /*$value*/ ctx[4]) {
8646
+ input.value = /*$value*/ ctx[4];
8647
+ }
8648
+
8649
+ if (dirty & /*required*/ 1) {
8650
+ input.required = /*required*/ ctx[0];
8651
+ }
8652
+
8653
+ if (dirty & /*placeholder*/ 2) {
8654
+ attr(input, "placeholder", /*placeholder*/ ctx[1]);
8655
+ }
8656
+
8657
+ if (dirty & /*style*/ 8) {
8658
+ attr(input, "style", /*style*/ ctx[3]);
8659
+ }
8660
+
8661
+ if (dirty & /*styleVariables*/ 4) {
8662
+ attr(div, "style", /*styleVariables*/ ctx[2]);
8663
+ }
8664
+ },
8665
+ i: noop,
8666
+ o: noop,
8667
+ d(detaching) {
8668
+ if (detaching) detach(div);
8669
+ mounted = false;
8670
+ dispose();
8671
+ }
8672
+ };
8673
+ }
8674
+
8675
+ function instance$d($$self, $$props, $$invalidate) {
8676
+ let style;
8677
+ let styleVariables;
8678
+ let $value;
8679
+ let $isValid;
8680
+ let { field = 'email' } = $$props;
8681
+
8682
+ let { validation = {
8683
+ // FormIdentifyTextFieldValidations[DefaultFormIdentifyTextField]
8684
+ pattern: '^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}.[A-Za-z0-9]{1,}$',
8685
+ // gをつけない!test()を繰り返し呼び出した時に、テキストの途中から判定しようとしてしまう。
8686
+ // https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
8687
+ flags: ''
8688
+ } } = $$props;
8689
+
8690
+ let { required = true } = $$props;
8691
+ let { placeholder = 'メールアドレスを入力' } = $$props;
8692
+ let { _style = '' } = $$props;
8693
+ let { _focusStyle = 'border-width: 2px; border-color: #2aab9f; border-style: solid' } = $$props;
8694
+ let { _errorStyle = 'border-width: 2px; border-color: #ff8726; border-style: solid' } = $$props;
8695
+ let { font = SYSTEM_FONT } = $$props;
8696
+ let { _textStyle = '' } = $$props;
8697
+ let { _placeholderStyle = 'color: #ccc;' } = $$props;
8698
+ const { path: statePath } = getStateItemContext();
8699
+
8700
+ const validationRegExp = (() => {
8701
+ try {
8702
+ return new RegExp(validation.pattern, validation.flags);
8703
+ } catch(e) {
8704
+ return undefined;
8705
+ }
8706
+ })();
8707
+
8708
+ const { value, isValid } = registerIdentifyInput({
8709
+ name: field,
8710
+ statePath,
8711
+ initialValue: '',
8712
+ validator(value) {
8713
+ if (value.length > 0 && validationRegExp && validationRegExp.test(value)) {
8714
+ return true;
8715
+ } else if (!required && value === '') {
8716
+ return true;
8717
+ } else {
8718
+ return false;
8719
+ }
8720
+ }
8721
+ });
8722
+
8723
+ component_subscribe($$self, value, value => $$invalidate(4, $value = value));
8724
+ component_subscribe($$self, isValid, value => $$invalidate(5, $isValid = value));
8725
+
8726
+ function stringInputHandler(event) {
8727
+ set_store_value(value, $value = event.target.value, $value);
8728
+ }
8729
+
8730
+ $$self.$$set = $$props => {
8731
+ if ('field' in $$props) $$invalidate(9, field = $$props.field);
8732
+ if ('validation' in $$props) $$invalidate(10, validation = $$props.validation);
8733
+ if ('required' in $$props) $$invalidate(0, required = $$props.required);
8734
+ if ('placeholder' in $$props) $$invalidate(1, placeholder = $$props.placeholder);
8735
+ if ('_style' in $$props) $$invalidate(11, _style = $$props._style);
8736
+ if ('_focusStyle' in $$props) $$invalidate(12, _focusStyle = $$props._focusStyle);
8737
+ if ('_errorStyle' in $$props) $$invalidate(13, _errorStyle = $$props._errorStyle);
8738
+ if ('font' in $$props) $$invalidate(14, font = $$props.font);
8739
+ if ('_textStyle' in $$props) $$invalidate(15, _textStyle = $$props._textStyle);
8740
+ if ('_placeholderStyle' in $$props) $$invalidate(16, _placeholderStyle = $$props._placeholderStyle);
8741
+ };
8742
+
8743
+ $$self.$$.update = () => {
8744
+ if ($$self.$$.dirty & /*font*/ 16384) {
8745
+ addFont(font);
8746
+ }
8747
+
8748
+ if ($$self.$$.dirty & /*_style, _textStyle, font*/ 51200) {
8749
+ $$invalidate(3, style = [..._style.split(';'), ..._textStyle.split(';'), `font-family:${font}`].join(';'));
8750
+ }
8751
+
8752
+ if ($$self.$$.dirty & /*_focusStyle, _errorStyle, _placeholderStyle*/ 77824) {
8753
+ $$invalidate(2, styleVariables = (() => {
8754
+ const variables = {};
8755
+ const focusStyleObj = parseStyle(_focusStyle);
8756
+ const errorStyleObj = parseStyle(_errorStyle);
8757
+ const placeholderStyle = parseStyle(_placeholderStyle);
8758
+ if (focusStyleObj['border-width']) variables['--focus-border-width'] = focusStyleObj['border-width'];
8759
+ if (focusStyleObj['border-color']) variables['--focus-border-color'] = focusStyleObj['border-color'];
8760
+ if (focusStyleObj['border-style']) variables['--focus-border-style'] = focusStyleObj['border-style'];
8761
+ if (errorStyleObj['border-width']) variables['--error-border-width'] = errorStyleObj['border-width'];
8762
+ if (errorStyleObj['border-color']) variables['--error-border-color'] = errorStyleObj['border-color'];
8763
+ if (errorStyleObj['border-style']) variables['--error-border-style'] = errorStyleObj['border-style'];
8764
+ if (placeholderStyle.color) variables['--placeholder-color'] = placeholderStyle.color;
8765
+ return stringifyStyleObj(variables);
8766
+ })());
8767
+ }
8768
+ };
8769
+
8770
+ return [
8771
+ required,
8772
+ placeholder,
8773
+ styleVariables,
8774
+ style,
8775
+ $value,
8776
+ $isValid,
8777
+ value,
8778
+ isValid,
8779
+ stringInputHandler,
8780
+ field,
8781
+ validation,
8782
+ _style,
8783
+ _focusStyle,
8784
+ _errorStyle,
8785
+ font,
8786
+ _textStyle,
8787
+ _placeholderStyle
8788
+ ];
8789
+ }
8790
+
8791
+ class FormIdentifyInput extends SvelteComponent {
8792
+ constructor(options) {
8793
+ super();
8794
+
8795
+ init(
8796
+ this,
8797
+ options,
8798
+ instance$d,
8799
+ create_fragment$d,
8800
+ safe_not_equal,
8801
+ {
8802
+ field: 9,
8803
+ validation: 10,
8804
+ required: 0,
8805
+ placeholder: 1,
8806
+ _style: 11,
8807
+ _focusStyle: 12,
8808
+ _errorStyle: 13,
8809
+ font: 14,
8810
+ _textStyle: 15,
8811
+ _placeholderStyle: 16
8812
+ },
8813
+ add_css$c
8814
+ );
8815
+ }
8816
+ }
8817
+
8818
+ /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
8819
+
8820
+ function add_css$b(target) {
8821
+ 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}");
8822
+ }
8823
+
8824
+ function create_fragment$c(ctx) {
8825
+ let div;
8826
+ let label0;
8827
+ let input0;
8828
+ let input0_checked_value;
8829
+ let t0;
8830
+ let span0;
8831
+ let t1;
8832
+ let span0_style_value;
8833
+ let t2;
8834
+ let label1;
8835
+ let input1;
8836
+ let input1_checked_value;
8837
+ let t3;
8838
+ let span1;
8839
+ let t4;
8840
+ let span1_style_value;
8841
+ let mounted;
8842
+ let dispose;
8843
+
8844
+ return {
8845
+ c() {
8846
+ div = element("div");
8847
+ label0 = element("label");
8848
+ input0 = element("input");
8849
+ t0 = space();
8850
+ span0 = element("span");
8851
+ t1 = text("はい");
8852
+ t2 = space();
8853
+ label1 = element("label");
8854
+ input1 = element("input");
8855
+ t3 = space();
8856
+ span1 = element("span");
8857
+ t4 = text("いいえ");
8858
+ this.h();
8859
+ },
8860
+ l(nodes) {
8861
+ div = claim_element(nodes, "DIV", { class: true, style: true });
8862
+ var div_nodes = children(div);
8863
+ label0 = claim_element(div_nodes, "LABEL", { class: true });
8864
+ var label0_nodes = children(label0);
8865
+ input0 = claim_element(label0_nodes, "INPUT", { type: true, class: true, style: true });
8866
+ t0 = claim_space(label0_nodes);
8867
+ span0 = claim_element(label0_nodes, "SPAN", { class: true, style: true });
8868
+ var span0_nodes = children(span0);
8869
+ t1 = claim_text(span0_nodes, "はい");
8870
+ span0_nodes.forEach(detach);
8871
+ label0_nodes.forEach(detach);
8872
+ t2 = claim_space(div_nodes);
8873
+ label1 = claim_element(div_nodes, "LABEL", { class: true });
8874
+ var label1_nodes = children(label1);
8875
+ input1 = claim_element(label1_nodes, "INPUT", { type: true, class: true, style: true });
8876
+ t3 = claim_space(label1_nodes);
8877
+ span1 = claim_element(label1_nodes, "SPAN", { class: true, style: true });
8878
+ var span1_nodes = children(span1);
8879
+ t4 = claim_text(span1_nodes, "いいえ");
8880
+ span1_nodes.forEach(detach);
8881
+ label1_nodes.forEach(detach);
8882
+ div_nodes.forEach(detach);
8883
+ this.h();
8884
+ },
8885
+ h() {
8886
+ attr(input0, "type", "radio");
8887
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
8888
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8889
+ input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
8890
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
8891
+ attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8892
+ attr(label0, "class", "radio-button svelte-pzrwlo");
8893
+ attr(input1, "type", "radio");
8894
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
8895
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8896
+ input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
8897
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
8898
+ attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
8899
+ attr(label1, "class", "radio-button svelte-pzrwlo");
8900
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
8901
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8902
+ },
8903
+ m(target, anchor) {
8904
+ insert_hydration(target, div, anchor);
8905
+ append_hydration(div, label0);
8906
+ append_hydration(label0, input0);
8907
+ append_hydration(label0, t0);
8908
+ append_hydration(label0, span0);
8909
+ append_hydration(span0, t1);
8910
+ append_hydration(div, t2);
8911
+ append_hydration(div, label1);
8912
+ append_hydration(label1, input1);
8913
+ append_hydration(label1, t3);
8914
+ append_hydration(label1, span1);
8915
+ append_hydration(span1, t4);
8916
+
8917
+ if (!mounted) {
8918
+ dispose = [
8919
+ listen(input0, "change", /*change_handler*/ ctx[12]),
8920
+ listen(input1, "change", /*change_handler_1*/ ctx[13])
8921
+ ];
8922
+
8923
+ mounted = true;
8924
+ }
8925
+ },
8926
+ p(ctx, [dirty]) {
8927
+ if (dirty & /*buttonStyle*/ 4) {
8928
+ attr(input0, "style", /*buttonStyle*/ ctx[2]);
8929
+ }
8930
+
8931
+ if (dirty & /*$value*/ 8 && input0_checked_value !== (input0_checked_value = /*$value*/ ctx[3] === true)) {
8932
+ input0.checked = input0_checked_value;
8933
+ }
8934
+
8935
+ if (dirty & /*_textStyle*/ 2 && span0_style_value !== (span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8936
+ attr(span0, "style", span0_style_value);
8937
+ }
8938
+
8939
+ if (dirty & /*buttonStyle*/ 4) {
8940
+ attr(input1, "style", /*buttonStyle*/ ctx[2]);
8941
+ }
8942
+
8943
+ if (dirty & /*$value*/ 8 && input1_checked_value !== (input1_checked_value = /*$value*/ ctx[3] === false)) {
8944
+ input1.checked = input1_checked_value;
8945
+ }
8946
+
8947
+ if (dirty & /*_textStyle*/ 2 && span1_style_value !== (span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`)) {
8948
+ attr(span1, "style", span1_style_value);
8949
+ }
8950
+
8951
+ if (dirty & /*_layoutStyle*/ 1) {
8952
+ attr(div, "style", /*_layoutStyle*/ ctx[0]);
8953
+ }
8954
+ },
8955
+ i: noop,
8956
+ o: noop,
8957
+ d(detaching) {
8958
+ if (detaching) detach(div);
8959
+ mounted = false;
8960
+ run_all(dispose);
8961
+ }
8962
+ };
8963
+ }
8964
+
8965
+ function instance$c($$self, $$props, $$invalidate) {
8966
+ let buttonStyle;
8967
+ let $value;
8968
+ let { field = 'subscription' } = $$props;
8969
+ let { required = false } = $$props;
8970
+ let { _layoutStyle = 'flex-direction: row; gap: 0px;' } = $$props;
8971
+ let { font = SYSTEM_FONT } = $$props;
8972
+ const fontCss = font ? 'font-family:' + font : '';
8973
+ let { _textStyle = 'color: #333; font-size: 12px; line-height:1.5;' } = $$props;
8974
+ let { buttonSize = '16px' } = $$props;
8975
+ let { buttonColor = { main: '#f0f1f1', sub: '#f0f1f1' } } = $$props;
8976
+ let { buttonColorActive = { main: '#2aab9f', sub: '#fff' } } = $$props;
8977
+ const { path: statePath } = getStateItemContext();
8978
+
8979
+ const { value } = registerIdentifyInput({
8980
+ name: field,
8981
+ statePath,
8982
+ initialValue: null,
8983
+ validator(value) {
8984
+ if (!required) return true;
8985
+ return typeof value === 'boolean';
8986
+ }
8987
+ });
8988
+
8989
+ component_subscribe($$self, value, value => $$invalidate(3, $value = value));
8990
+ const change_handler = () => value.set(true);
8991
+ const change_handler_1 = () => value.set(false);
8992
+
8993
+ $$self.$$set = $$props => {
8994
+ if ('field' in $$props) $$invalidate(6, field = $$props.field);
8995
+ if ('required' in $$props) $$invalidate(7, required = $$props.required);
8996
+ if ('_layoutStyle' in $$props) $$invalidate(0, _layoutStyle = $$props._layoutStyle);
8997
+ if ('font' in $$props) $$invalidate(8, font = $$props.font);
8998
+ if ('_textStyle' in $$props) $$invalidate(1, _textStyle = $$props._textStyle);
8999
+ if ('buttonSize' in $$props) $$invalidate(9, buttonSize = $$props.buttonSize);
9000
+ if ('buttonColor' in $$props) $$invalidate(10, buttonColor = $$props.buttonColor);
9001
+ if ('buttonColorActive' in $$props) $$invalidate(11, buttonColorActive = $$props.buttonColorActive);
9002
+ };
9003
+
9004
+ $$self.$$.update = () => {
9005
+ if ($$self.$$.dirty & /*font*/ 256) {
9006
+ addFont(font);
9007
+ }
9008
+
9009
+ if ($$self.$$.dirty & /*buttonColor, buttonColorActive, buttonSize*/ 3584) {
9010
+ $$invalidate(2, buttonStyle = (() => {
9011
+ return stringifyStyleObj({
9012
+ '--color-main': buttonColor.main,
9013
+ '--color-sub': buttonColor.sub,
9014
+ '--color-main-active': buttonColorActive.main,
9015
+ '--color-sub-active': buttonColorActive.sub,
9016
+ '--size': buttonSize
9017
+ });
9018
+ })());
9019
+ }
9020
+ };
9021
+
9022
+ return [
9023
+ _layoutStyle,
9024
+ _textStyle,
9025
+ buttonStyle,
9026
+ $value,
9027
+ fontCss,
9028
+ value,
9029
+ field,
9030
+ required,
9031
+ font,
9032
+ buttonSize,
9033
+ buttonColor,
9034
+ buttonColorActive,
9035
+ change_handler,
9036
+ change_handler_1
9037
+ ];
9038
+ }
9039
+
9040
+ class FormIdentifyChoices extends SvelteComponent {
9041
+ constructor(options) {
9042
+ super();
9043
+
9044
+ init(
9045
+ this,
9046
+ options,
9047
+ instance$c,
9048
+ create_fragment$c,
9049
+ safe_not_equal,
9050
+ {
9051
+ field: 6,
9052
+ required: 7,
9053
+ _layoutStyle: 0,
9054
+ font: 8,
9055
+ _textStyle: 1,
9056
+ buttonSize: 9,
9057
+ buttonColor: 10,
9058
+ buttonColorActive: 11
9059
+ },
9060
+ add_css$b
9061
+ );
8504
9062
  }
8505
9063
  }
8506
9064
 
@@ -11187,4 +11745,4 @@ class ImageBlock extends SvelteComponent {
11187
11745
  }
11188
11746
  }
11189
11747
 
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 };
11748
+ 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 };