@plaidev/karte-action-sdk 1.1.182 → 1.1.183-28059103.79845c01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hydrate/index.es.d.ts +88 -18
- package/dist/hydrate/index.es.js +237 -126
- package/dist/index.es.d.ts +88 -18
- package/dist/index.es.js +205 -92
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -95,6 +95,10 @@ const getMarginStyle = (margin) => {
|
|
95
95
|
return `margin: ${margin?.top ?? 0} ${margin?.right ?? 0} ${margin?.bottom ?? 0} ${margin?.left ?? 0};`;
|
96
96
|
};
|
97
97
|
/** @internal */
|
98
|
+
const parseStyle = (style) => {
|
99
|
+
return Object.fromEntries(style.split(';').map(attr => attr.split(':').map(str => str.trim())));
|
100
|
+
};
|
101
|
+
/** @internal */
|
98
102
|
const stringifyStyleObj = (styleObj) => {
|
99
103
|
return Object.entries(styleObj)
|
100
104
|
.map(([key, value]) => `${key}:${value}`)
|
@@ -340,10 +344,12 @@ const OnClickOperationOptions = [
|
|
340
344
|
operation: 'linkTo',
|
341
345
|
args: [
|
342
346
|
{
|
347
|
+
name: 'url',
|
343
348
|
type: 'Url',
|
344
349
|
default: '',
|
345
350
|
},
|
346
351
|
{
|
352
|
+
name: 'open_new_tab',
|
347
353
|
type: 'BooleanKeyword',
|
348
354
|
default: true,
|
349
355
|
},
|
@@ -353,6 +359,7 @@ const OnClickOperationOptions = [
|
|
353
359
|
operation: 'moveTo',
|
354
360
|
args: [
|
355
361
|
{
|
362
|
+
name: 'state',
|
356
363
|
type: 'TransitState',
|
357
364
|
default: '/',
|
358
365
|
},
|
@@ -362,6 +369,7 @@ const OnClickOperationOptions = [
|
|
362
369
|
operation: 'closeApp',
|
363
370
|
args: [
|
364
371
|
{
|
372
|
+
name: 'trigger',
|
365
373
|
type: 'Trigger',
|
366
374
|
default: 'button',
|
367
375
|
},
|
@@ -371,6 +379,7 @@ const OnClickOperationOptions = [
|
|
371
379
|
operation: 'runScript',
|
372
380
|
args: [
|
373
381
|
{
|
382
|
+
name: 'handler',
|
374
383
|
type: 'Handler',
|
375
384
|
default: '',
|
376
385
|
},
|
@@ -380,11 +389,73 @@ const OnClickOperationOptions = [
|
|
380
389
|
operation: 'submitForm',
|
381
390
|
args: [
|
382
391
|
{
|
392
|
+
name: 'state',
|
383
393
|
type: 'TransitState',
|
384
394
|
default: '/',
|
385
395
|
},
|
386
396
|
],
|
387
397
|
},
|
398
|
+
{
|
399
|
+
operation: 'bootChat',
|
400
|
+
args: [
|
401
|
+
{
|
402
|
+
name: 'hide_launcher',
|
403
|
+
type: 'BooleanKeyword',
|
404
|
+
default: false,
|
405
|
+
},
|
406
|
+
{
|
407
|
+
name: 'placement_pc',
|
408
|
+
type: 'StringKeyword',
|
409
|
+
default: 'left',
|
410
|
+
},
|
411
|
+
{
|
412
|
+
name: 'placement_mobile',
|
413
|
+
type: 'StringKeyword',
|
414
|
+
default: 'left',
|
415
|
+
},
|
416
|
+
{
|
417
|
+
name: 'horizontal_spacing_pc',
|
418
|
+
type: 'NumberKeyword',
|
419
|
+
default: 20,
|
420
|
+
},
|
421
|
+
{
|
422
|
+
name: 'horizontal_spacing_mobile',
|
423
|
+
type: 'NumberKeyword',
|
424
|
+
default: 20,
|
425
|
+
},
|
426
|
+
{
|
427
|
+
name: 'vertical_spacing_pc',
|
428
|
+
type: 'NumberKeyword',
|
429
|
+
default: 20,
|
430
|
+
},
|
431
|
+
{
|
432
|
+
name: 'vertical_spacing_mobile',
|
433
|
+
type: 'NumberKeyword',
|
434
|
+
default: 20,
|
435
|
+
},
|
436
|
+
{
|
437
|
+
name: 'theme_color',
|
438
|
+
type: 'Color',
|
439
|
+
default: '#2aab9f',
|
440
|
+
},
|
441
|
+
{
|
442
|
+
name: 'header_title',
|
443
|
+
type: 'StringKeyword',
|
444
|
+
default: 'KARTEサポートチーム',
|
445
|
+
},
|
446
|
+
{
|
447
|
+
name: 'header_description',
|
448
|
+
type: 'StringKeyword',
|
449
|
+
default: `ご質問があればお尋ねください。
|
450
|
+
KARTEサポート担当者につながります。サポート受付時間は平日10:30-17:30です。`,
|
451
|
+
},
|
452
|
+
{
|
453
|
+
name: 'launcher_image',
|
454
|
+
type: 'StringKeyword',
|
455
|
+
default: '',
|
456
|
+
},
|
457
|
+
],
|
458
|
+
},
|
388
459
|
];
|
389
460
|
/** @internal */
|
390
461
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
@@ -1012,6 +1083,11 @@ const send_event = (event_name, values) => {
|
|
1012
1083
|
setting?.send?.(event_name, values);
|
1013
1084
|
};
|
1014
1085
|
/** @internal */
|
1086
|
+
const publish_edge = (topic, values) => {
|
1087
|
+
const setting = getSetting();
|
1088
|
+
setting?.publish?.(topic, values);
|
1089
|
+
};
|
1090
|
+
/** @internal */
|
1015
1091
|
const initialize = (setting) => {
|
1016
1092
|
const newSetting = setSetting(setting);
|
1017
1093
|
if (newSetting.initialState) {
|
@@ -2743,13 +2819,22 @@ const moveTo = (to) => () => {
|
|
2743
2819
|
};
|
2744
2820
|
/** @internal */
|
2745
2821
|
const linkTo = (to, targetBlank = true) => () => {
|
2746
|
-
|
2822
|
+
async function sleep(ms) {
|
2823
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
2824
|
+
}
|
2825
|
+
async function _send() {
|
2826
|
+
send_event('message_click', { url: to, state: getState$1() });
|
2827
|
+
// # edge.js の retransmitter が送るのを待つ
|
2828
|
+
await sleep(450);
|
2829
|
+
}
|
2747
2830
|
if (targetBlank) {
|
2748
2831
|
window.open(to);
|
2749
2832
|
}
|
2750
|
-
|
2751
|
-
|
2752
|
-
|
2833
|
+
Promise.race([_send(), sleep(650)]).then(() => {
|
2834
|
+
if (!targetBlank) {
|
2835
|
+
location.href = to;
|
2836
|
+
}
|
2837
|
+
});
|
2753
2838
|
};
|
2754
2839
|
/** @internal */
|
2755
2840
|
const closeApp = (trigger) => () => {
|
@@ -2775,6 +2860,24 @@ const submitForm = (to) => () => {
|
|
2775
2860
|
_moveTo(to);
|
2776
2861
|
};
|
2777
2862
|
/** @internal */
|
2863
|
+
const bootChat = (hide_launcher, placement_pc, placement_mobile, horizontal_spacing_pc, horizontal_spacing_mobile, vertical_spacing_pc, vertical_spacing_mobile, theme_color, header_title, header_description, launcher_image) => () => {
|
2864
|
+
const options = {
|
2865
|
+
hide_launcher,
|
2866
|
+
placement_pc,
|
2867
|
+
placement_mobile,
|
2868
|
+
horizontal_spacing_pc,
|
2869
|
+
horizontal_spacing_mobile,
|
2870
|
+
vertical_spacing_pc,
|
2871
|
+
vertical_spacing_mobile,
|
2872
|
+
theme_color,
|
2873
|
+
header_title,
|
2874
|
+
header_description: header_description.replace(/<br\s*\/?>/gi, '\n'),
|
2875
|
+
};
|
2876
|
+
if (launcher_image && launcher_image !== '')
|
2877
|
+
options.launcher_image = launcher_image;
|
2878
|
+
publish_edge('talk', { actionName: 'boot', args: [options] });
|
2879
|
+
};
|
2880
|
+
/** @internal */
|
2778
2881
|
const execOnClickOperation = (onClickOperation) => {
|
2779
2882
|
if (onClickOperation.operation === 'linkTo') {
|
2780
2883
|
linkTo(...onClickOperation.args)();
|
@@ -2791,6 +2894,9 @@ const execOnClickOperation = (onClickOperation) => {
|
|
2791
2894
|
else if (onClickOperation.operation === 'submitForm') {
|
2792
2895
|
submitForm(onClickOperation.args[0])();
|
2793
2896
|
}
|
2897
|
+
else if (onClickOperation.operation === 'bootChat') {
|
2898
|
+
bootChat(...onClickOperation.args)();
|
2899
|
+
}
|
2794
2900
|
};
|
2795
2901
|
/** @internal */
|
2796
2902
|
const haveFunction = (onClickOperation) => {
|
@@ -6623,7 +6729,7 @@ class FormSelect extends SvelteComponent {
|
|
6623
6729
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
6624
6730
|
|
6625
6731
|
function add_css$d(target) {
|
6626
|
-
append_styles(target, "svelte-
|
6732
|
+
append_styles(target, "svelte-p15pvn", ".check-boxes.svelte-p15pvn.svelte-p15pvn{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.check-box.svelte-p15pvn.svelte-p15pvn{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-p15pvn.svelte-p15pvn{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-p15pvn.svelte-p15pvn{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-p15pvn.svelte-p15pvn{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-p15pvn.svelte-p15pvn: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-p15pvn.svelte-p15pvn{background-color:var(--color-main-active)}.check-box-check._checked.svelte-p15pvn .check-box-icon.svelte-p15pvn:after{border-color:var(--color-sub-active)}.check-box-text.svelte-p15pvn.svelte-p15pvn{margin-left:0.5em}");
|
6627
6733
|
}
|
6628
6734
|
|
6629
6735
|
function get_each_context$3(ctx, list, i) {
|
@@ -6661,20 +6767,20 @@ function create_each_block$3(ctx) {
|
|
6661
6767
|
span2 = element("span");
|
6662
6768
|
t2 = text(t2_value);
|
6663
6769
|
t3 = space();
|
6664
|
-
attr(input, "class", "check-box-input svelte-
|
6770
|
+
attr(input, "class", "check-box-input svelte-p15pvn");
|
6665
6771
|
attr(input, "type", "checkbox");
|
6666
6772
|
attr(input, "name", /*name*/ ctx[0]);
|
6667
6773
|
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
|
6668
|
-
attr(span0, "class", "check-box-icon svelte-
|
6774
|
+
attr(span0, "class", "check-box-icon svelte-p15pvn");
|
6669
6775
|
|
6670
6776
|
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6671
6777
|
? ' _checked'
|
6672
|
-
: ''}`) + " svelte-
|
6778
|
+
: ''}`) + " svelte-p15pvn"));
|
6673
6779
|
|
6674
|
-
attr(
|
6675
|
-
attr(span2, "class", "check-box-text svelte-o1ztcf");
|
6780
|
+
attr(span2, "class", "check-box-text svelte-p15pvn");
|
6676
6781
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
6677
|
-
attr(label, "class", "check-box svelte-
|
6782
|
+
attr(label, "class", "check-box svelte-p15pvn");
|
6783
|
+
attr(label, "style", /*styleVariables*/ ctx[5]);
|
6678
6784
|
},
|
6679
6785
|
m(target, anchor) {
|
6680
6786
|
insert(target, label, anchor);
|
@@ -6705,19 +6811,19 @@ function create_each_block$3(ctx) {
|
|
6705
6811
|
|
6706
6812
|
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
6707
6813
|
? ' _checked'
|
6708
|
-
: ''}`) + " svelte-
|
6814
|
+
: ''}`) + " svelte-p15pvn"))) {
|
6709
6815
|
attr(span1, "class", span1_class_value);
|
6710
6816
|
}
|
6711
6817
|
|
6712
|
-
if (dirty & /*styleVariables*/ 32) {
|
6713
|
-
attr(span1, "style", /*styleVariables*/ ctx[5]);
|
6714
|
-
}
|
6715
|
-
|
6716
6818
|
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[17] + "")) set_data(t2, t2_value);
|
6717
6819
|
|
6718
6820
|
if (dirty & /*_textStyle*/ 4) {
|
6719
6821
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
6720
6822
|
}
|
6823
|
+
|
6824
|
+
if (dirty & /*styleVariables*/ 32) {
|
6825
|
+
attr(label, "style", /*styleVariables*/ ctx[5]);
|
6826
|
+
}
|
6721
6827
|
},
|
6722
6828
|
d(detaching) {
|
6723
6829
|
if (detaching) detach(label);
|
@@ -6744,7 +6850,7 @@ function create_fragment$e(ctx) {
|
|
6744
6850
|
each_blocks[i].c();
|
6745
6851
|
}
|
6746
6852
|
|
6747
|
-
attr(div, "class", "check-boxes svelte-
|
6853
|
+
attr(div, "class", "check-boxes svelte-p15pvn");
|
6748
6854
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
6749
6855
|
},
|
6750
6856
|
m(target, anchor) {
|
@@ -6755,7 +6861,7 @@ function create_fragment$e(ctx) {
|
|
6755
6861
|
}
|
6756
6862
|
},
|
6757
6863
|
p(ctx, [dirty]) {
|
6758
|
-
if (dirty & /*_textStyle, _options, isCheckedArray,
|
6864
|
+
if (dirty & /*styleVariables, _textStyle, _options, isCheckedArray, name, handleChange*/ 189) {
|
6759
6865
|
each_value = /*_options*/ ctx[3];
|
6760
6866
|
let i;
|
6761
6867
|
|
@@ -6918,7 +7024,7 @@ class FormCheckBoxes extends SvelteComponent {
|
|
6918
7024
|
/* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
|
6919
7025
|
|
6920
7026
|
function add_css$c(target) {
|
6921
|
-
append_styles(target, "svelte-
|
7027
|
+
append_styles(target, "svelte-zy2va9", ".rating-buttons.svelte-zy2va9{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-zy2va9{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}");
|
6922
7028
|
}
|
6923
7029
|
|
6924
7030
|
function get_each_context$2(ctx, list, i) {
|
@@ -6929,29 +7035,29 @@ function get_each_context$2(ctx, list, i) {
|
|
6929
7035
|
|
6930
7036
|
// (60:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
6931
7037
|
function create_each_block$2(ctx) {
|
6932
|
-
let
|
7038
|
+
let button;
|
6933
7039
|
let t0_value = /*i*/ ctx[12] + "";
|
6934
7040
|
let t0;
|
6935
7041
|
let t1;
|
6936
|
-
let
|
7042
|
+
let button_style_value;
|
6937
7043
|
let mounted;
|
6938
7044
|
let dispose;
|
6939
7045
|
|
6940
7046
|
return {
|
6941
7047
|
c() {
|
6942
|
-
|
7048
|
+
button = element("button");
|
6943
7049
|
t0 = text(t0_value);
|
6944
7050
|
t1 = space();
|
6945
|
-
attr(
|
6946
|
-
attr(
|
7051
|
+
attr(button, "class", "rating-button svelte-zy2va9");
|
7052
|
+
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]));
|
6947
7053
|
},
|
6948
7054
|
m(target, anchor) {
|
6949
|
-
insert(target,
|
6950
|
-
append(
|
6951
|
-
append(
|
7055
|
+
insert(target, button, anchor);
|
7056
|
+
append(button, t0);
|
7057
|
+
append(button, t1);
|
6952
7058
|
|
6953
7059
|
if (!mounted) {
|
6954
|
-
dispose = listen(
|
7060
|
+
dispose = listen(button, "click", function () {
|
6955
7061
|
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[12]))) /*handleClick*/ ctx[3](/*i*/ ctx[12]).apply(this, arguments);
|
6956
7062
|
});
|
6957
7063
|
|
@@ -6962,12 +7068,12 @@ function create_each_block$2(ctx) {
|
|
6962
7068
|
ctx = new_ctx;
|
6963
7069
|
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[12] + "")) set_data(t0, t0_value);
|
6964
7070
|
|
6965
|
-
if (dirty & /*count, _value*/ 3 &&
|
6966
|
-
attr(
|
7071
|
+
if (dirty & /*count, _value*/ 3 && button_style_value !== (button_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]))) {
|
7072
|
+
attr(button, "style", button_style_value);
|
6967
7073
|
}
|
6968
7074
|
},
|
6969
7075
|
d(detaching) {
|
6970
|
-
if (detaching) detach(
|
7076
|
+
if (detaching) detach(button);
|
6971
7077
|
mounted = false;
|
6972
7078
|
dispose();
|
6973
7079
|
}
|
@@ -6991,7 +7097,7 @@ function create_fragment$d(ctx) {
|
|
6991
7097
|
each_blocks[i].c();
|
6992
7098
|
}
|
6993
7099
|
|
6994
|
-
attr(div, "class", "rating-buttons svelte-
|
7100
|
+
attr(div, "class", "rating-buttons svelte-zy2va9");
|
6995
7101
|
},
|
6996
7102
|
m(target, anchor) {
|
6997
7103
|
insert(target, div, anchor);
|
@@ -7128,7 +7234,7 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
7128
7234
|
/* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
|
7129
7235
|
|
7130
7236
|
function add_css$b(target) {
|
7131
|
-
append_styles(target, "svelte-
|
7237
|
+
append_styles(target, "svelte-tbunko", ".rating-buttons.svelte-tbunko{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-tbunko{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-tbunko{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-tbunko:not(._active){filter:grayscale(100%)}");
|
7132
7238
|
}
|
7133
7239
|
|
7134
7240
|
function get_each_context$1(ctx, list, i) {
|
@@ -7139,41 +7245,48 @@ function get_each_context$1(ctx, list, i) {
|
|
7139
7245
|
|
7140
7246
|
// (42:2) {#each [...Array(count).keys()].reverse().map(i => i + 1) as i}
|
7141
7247
|
function create_each_block$1(ctx) {
|
7248
|
+
let button;
|
7142
7249
|
let img;
|
7143
7250
|
let img_src_value;
|
7144
7251
|
let img_class_value;
|
7252
|
+
let t;
|
7145
7253
|
let mounted;
|
7146
7254
|
let dispose;
|
7147
7255
|
|
7148
7256
|
return {
|
7149
7257
|
c() {
|
7258
|
+
button = element("button");
|
7150
7259
|
img = element("img");
|
7260
|
+
t = space();
|
7151
7261
|
if (!src_url_equal(img.src, img_src_value = /*ICONS*/ ctx[2][/*i*/ ctx[10]])) attr(img, "src", img_src_value);
|
7152
|
-
attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-
|
7153
|
-
attr(img, "style", /*buttonStyle*/ ctx[0]);
|
7262
|
+
attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"));
|
7154
7263
|
attr(img, "alt", "rate" + /*i*/ ctx[10]);
|
7264
|
+
attr(button, "class", "rating-button svelte-tbunko");
|
7265
|
+
attr(button, "style", /*buttonStyle*/ ctx[0]);
|
7155
7266
|
},
|
7156
7267
|
m(target, anchor) {
|
7157
|
-
insert(target,
|
7268
|
+
insert(target, button, anchor);
|
7269
|
+
append(button, img);
|
7270
|
+
append(button, t);
|
7158
7271
|
|
7159
7272
|
if (!mounted) {
|
7160
|
-
dispose = listen(
|
7273
|
+
dispose = listen(button, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
7161
7274
|
mounted = true;
|
7162
7275
|
}
|
7163
7276
|
},
|
7164
7277
|
p(new_ctx, dirty) {
|
7165
7278
|
ctx = new_ctx;
|
7166
7279
|
|
7167
|
-
if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-
|
7280
|
+
if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"))) {
|
7168
7281
|
attr(img, "class", img_class_value);
|
7169
7282
|
}
|
7170
7283
|
|
7171
7284
|
if (dirty & /*buttonStyle*/ 1) {
|
7172
|
-
attr(
|
7285
|
+
attr(button, "style", /*buttonStyle*/ ctx[0]);
|
7173
7286
|
}
|
7174
7287
|
},
|
7175
7288
|
d(detaching) {
|
7176
|
-
if (detaching) detach(
|
7289
|
+
if (detaching) detach(button);
|
7177
7290
|
mounted = false;
|
7178
7291
|
dispose();
|
7179
7292
|
}
|
@@ -7197,7 +7310,7 @@ function create_fragment$c(ctx) {
|
|
7197
7310
|
each_blocks[i].c();
|
7198
7311
|
}
|
7199
7312
|
|
7200
|
-
attr(div, "class", "rating-buttons svelte-
|
7313
|
+
attr(div, "class", "rating-buttons svelte-tbunko");
|
7201
7314
|
},
|
7202
7315
|
m(target, anchor) {
|
7203
7316
|
insert(target, div, anchor);
|
@@ -7207,7 +7320,7 @@ function create_fragment$c(ctx) {
|
|
7207
7320
|
}
|
7208
7321
|
},
|
7209
7322
|
p(ctx, [dirty]) {
|
7210
|
-
if (dirty & /*
|
7323
|
+
if (dirty & /*buttonStyle, handleClick, Array, count, ICONS, _value*/ 23) {
|
7211
7324
|
each_value = [...Array(count).keys()].reverse().map(func);
|
7212
7325
|
let i;
|
7213
7326
|
|
@@ -7305,7 +7418,7 @@ class FormRatingButtonsFace extends SvelteComponent {
|
|
7305
7418
|
/* src/components/Slide.svelte generated by Svelte v3.53.1 */
|
7306
7419
|
|
7307
7420
|
function add_css$a(target) {
|
7308
|
-
append_styles(target, "svelte-
|
7421
|
+
append_styles(target, "svelte-re6e5", ".root.svelte-re6e5{width:100%;height:100%;position:relative}.container.svelte-re6e5{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box}.slide.svelte-re6e5{height:100%;position:absolute;display:flex}.transition.svelte-re6e5{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-re6e5{height:100%;flex:none}.prev-button-container.svelte-re6e5,.next-button-container.svelte-re6e5{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button-container.svelte-re6e5{left:0}.next-button-container.svelte-re6e5{right:0}.move-button.svelte-re6e5{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border:none;background:none;margin:0;padding:0}.navigation.svelte-re6e5{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-re6e5{flex-shrink:0;cursor:pointer;border:none;background:none;margin:0;padding:0;appearance:none}.navigation-item-inner.circle.svelte-re6e5{border-radius:51%}");
|
7309
7422
|
}
|
7310
7423
|
|
7311
7424
|
function get_each_context(ctx, list, i) {
|
@@ -7317,8 +7430,8 @@ function get_each_context(ctx, list, i) {
|
|
7317
7430
|
|
7318
7431
|
// (371:2) {#if isVisiblePrevButton}
|
7319
7432
|
function create_if_block_1(ctx) {
|
7320
|
-
let
|
7321
|
-
let
|
7433
|
+
let div;
|
7434
|
+
let button;
|
7322
7435
|
let svg;
|
7323
7436
|
let polygon;
|
7324
7437
|
let mounted;
|
@@ -7326,26 +7439,26 @@ function create_if_block_1(ctx) {
|
|
7326
7439
|
|
7327
7440
|
return {
|
7328
7441
|
c() {
|
7329
|
-
|
7330
|
-
|
7442
|
+
div = element("div");
|
7443
|
+
button = element("button");
|
7331
7444
|
svg = svg_element("svg");
|
7332
7445
|
polygon = svg_element("polygon");
|
7333
7446
|
attr(polygon, "points", "8,0 10,2 4,8 10,14 8,16 0,8");
|
7334
7447
|
attr(svg, "viewBox", "0 0 10 16");
|
7335
7448
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7336
7449
|
attr(svg, "style", /*prevIconStyle*/ ctx[10]);
|
7337
|
-
attr(
|
7338
|
-
attr(
|
7339
|
-
attr(
|
7450
|
+
attr(button, "class", "move-button svelte-re6e5");
|
7451
|
+
attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
|
7452
|
+
attr(div, "class", "prev-button-container svelte-re6e5");
|
7340
7453
|
},
|
7341
7454
|
m(target, anchor) {
|
7342
|
-
insert(target,
|
7343
|
-
append(
|
7344
|
-
append(
|
7455
|
+
insert(target, div, anchor);
|
7456
|
+
append(div, button);
|
7457
|
+
append(button, svg);
|
7345
7458
|
append(svg, polygon);
|
7346
7459
|
|
7347
7460
|
if (!mounted) {
|
7348
|
-
dispose = listen(
|
7461
|
+
dispose = listen(button, "click", /*prev*/ ctx[15]);
|
7349
7462
|
mounted = true;
|
7350
7463
|
}
|
7351
7464
|
},
|
@@ -7355,11 +7468,11 @@ function create_if_block_1(ctx) {
|
|
7355
7468
|
}
|
7356
7469
|
|
7357
7470
|
if (dirty[0] & /*_prevButtonContainerStyle*/ 512) {
|
7358
|
-
attr(
|
7471
|
+
attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
|
7359
7472
|
}
|
7360
7473
|
},
|
7361
7474
|
d(detaching) {
|
7362
|
-
if (detaching) detach(
|
7475
|
+
if (detaching) detach(div);
|
7363
7476
|
mounted = false;
|
7364
7477
|
dispose();
|
7365
7478
|
}
|
@@ -7368,8 +7481,8 @@ function create_if_block_1(ctx) {
|
|
7368
7481
|
|
7369
7482
|
// (380:2) {#if isVisibleNextButton}
|
7370
7483
|
function create_if_block$1(ctx) {
|
7371
|
-
let
|
7372
|
-
let
|
7484
|
+
let div;
|
7485
|
+
let button;
|
7373
7486
|
let svg;
|
7374
7487
|
let polygon;
|
7375
7488
|
let mounted;
|
@@ -7377,26 +7490,26 @@ function create_if_block$1(ctx) {
|
|
7377
7490
|
|
7378
7491
|
return {
|
7379
7492
|
c() {
|
7380
|
-
|
7381
|
-
|
7493
|
+
div = element("div");
|
7494
|
+
button = element("button");
|
7382
7495
|
svg = svg_element("svg");
|
7383
7496
|
polygon = svg_element("polygon");
|
7384
7497
|
attr(polygon, "points", "2,0 10,8 2,16 0,14 6,8 0,2");
|
7385
7498
|
attr(svg, "viewBox", "0 0 10 16");
|
7386
7499
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7387
7500
|
attr(svg, "style", /*nextIconStyle*/ ctx[8]);
|
7388
|
-
attr(
|
7389
|
-
attr(
|
7390
|
-
attr(
|
7501
|
+
attr(button, "class", "move-button svelte-re6e5");
|
7502
|
+
attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
|
7503
|
+
attr(div, "class", "next-button-container svelte-re6e5");
|
7391
7504
|
},
|
7392
7505
|
m(target, anchor) {
|
7393
|
-
insert(target,
|
7394
|
-
append(
|
7395
|
-
append(
|
7506
|
+
insert(target, div, anchor);
|
7507
|
+
append(div, button);
|
7508
|
+
append(button, svg);
|
7396
7509
|
append(svg, polygon);
|
7397
7510
|
|
7398
7511
|
if (!mounted) {
|
7399
|
-
dispose = listen(
|
7512
|
+
dispose = listen(button, "click", /*next*/ ctx[16]);
|
7400
7513
|
mounted = true;
|
7401
7514
|
}
|
7402
7515
|
},
|
@@ -7406,11 +7519,11 @@ function create_if_block$1(ctx) {
|
|
7406
7519
|
}
|
7407
7520
|
|
7408
7521
|
if (dirty[0] & /*_nextButtonContainerStyle*/ 128) {
|
7409
|
-
attr(
|
7522
|
+
attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
|
7410
7523
|
}
|
7411
7524
|
},
|
7412
7525
|
d(detaching) {
|
7413
|
-
if (detaching) detach(
|
7526
|
+
if (detaching) detach(div);
|
7414
7527
|
mounted = false;
|
7415
7528
|
dispose();
|
7416
7529
|
}
|
@@ -7419,9 +7532,9 @@ function create_if_block$1(ctx) {
|
|
7419
7532
|
|
7420
7533
|
// (393:4) {#each items as _, i}
|
7421
7534
|
function create_each_block(ctx) {
|
7422
|
-
let
|
7423
|
-
let
|
7424
|
-
let
|
7535
|
+
let button;
|
7536
|
+
let div;
|
7537
|
+
let div_style_value;
|
7425
7538
|
let t;
|
7426
7539
|
let mounted;
|
7427
7540
|
let dispose;
|
@@ -7432,37 +7545,37 @@ function create_each_block(ctx) {
|
|
7432
7545
|
|
7433
7546
|
return {
|
7434
7547
|
c() {
|
7435
|
-
|
7436
|
-
|
7548
|
+
button = element("button");
|
7549
|
+
div = element("div");
|
7437
7550
|
t = space();
|
7438
|
-
attr(
|
7439
|
-
attr(
|
7440
|
-
attr(
|
7441
|
-
attr(
|
7551
|
+
attr(div, "class", "navigation-item-inner circle svelte-re6e5");
|
7552
|
+
attr(div, "style", div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]));
|
7553
|
+
attr(button, "class", "navigation-item svelte-re6e5");
|
7554
|
+
attr(button, "style", /*navigationItemStyle*/ ctx[6]);
|
7442
7555
|
},
|
7443
7556
|
m(target, anchor) {
|
7444
|
-
insert(target,
|
7445
|
-
append(
|
7446
|
-
append(
|
7557
|
+
insert(target, button, anchor);
|
7558
|
+
append(button, div);
|
7559
|
+
append(button, t);
|
7447
7560
|
|
7448
7561
|
if (!mounted) {
|
7449
|
-
dispose = listen(
|
7562
|
+
dispose = listen(button, "click", click_handler);
|
7450
7563
|
mounted = true;
|
7451
7564
|
}
|
7452
7565
|
},
|
7453
7566
|
p(new_ctx, dirty) {
|
7454
7567
|
ctx = new_ctx;
|
7455
7568
|
|
7456
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 &&
|
7457
|
-
attr(
|
7569
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div_style_value !== (div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]))) {
|
7570
|
+
attr(div, "style", div_style_value);
|
7458
7571
|
}
|
7459
7572
|
|
7460
7573
|
if (dirty[0] & /*navigationItemStyle*/ 64) {
|
7461
|
-
attr(
|
7574
|
+
attr(button, "style", /*navigationItemStyle*/ ctx[6]);
|
7462
7575
|
}
|
7463
7576
|
},
|
7464
7577
|
d(detaching) {
|
7465
|
-
if (detaching) detach(
|
7578
|
+
if (detaching) detach(button);
|
7466
7579
|
mounted = false;
|
7467
7580
|
dispose();
|
7468
7581
|
}
|
@@ -7514,14 +7627,14 @@ function create_fragment$b(ctx) {
|
|
7514
7627
|
each_blocks[i].c();
|
7515
7628
|
}
|
7516
7629
|
|
7517
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-
|
7630
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-re6e5"));
|
7518
7631
|
attr(div0, "style", /*slideStyle*/ ctx[14]);
|
7519
|
-
attr(div1, "class", "container svelte-
|
7632
|
+
attr(div1, "class", "container svelte-re6e5");
|
7520
7633
|
attr(div1, "style", /*_style*/ ctx[0]);
|
7521
|
-
attr(div2, "class", "navigation svelte-
|
7634
|
+
attr(div2, "class", "navigation svelte-re6e5");
|
7522
7635
|
attr(div2, "style", /*navigationStyle*/ ctx[4]);
|
7523
7636
|
set_attributes(div3, div3_data);
|
7524
|
-
toggle_class(div3, "svelte-
|
7637
|
+
toggle_class(div3, "svelte-re6e5", true);
|
7525
7638
|
},
|
7526
7639
|
m(target, anchor) {
|
7527
7640
|
insert(target, div3, anchor);
|
@@ -7563,7 +7676,7 @@ function create_fragment$b(ctx) {
|
|
7563
7676
|
}
|
7564
7677
|
}
|
7565
7678
|
|
7566
|
-
if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-
|
7679
|
+
if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-re6e5"))) {
|
7567
7680
|
attr(div0, "class", div0_class_value);
|
7568
7681
|
}
|
7569
7682
|
|
@@ -7629,7 +7742,7 @@ function create_fragment$b(ctx) {
|
|
7629
7742
|
}
|
7630
7743
|
|
7631
7744
|
set_attributes(div3, div3_data = get_spread_update(div3_levels, [{ class: "root" }, dataAttrStopPropagation('click')]));
|
7632
|
-
toggle_class(div3, "svelte-
|
7745
|
+
toggle_class(div3, "svelte-re6e5", true);
|
7633
7746
|
},
|
7634
7747
|
i(local) {
|
7635
7748
|
if (current) return;
|