@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/hydrate/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}`)
|
@@ -336,10 +340,12 @@ const OnClickOperationOptions = [
|
|
336
340
|
operation: 'linkTo',
|
337
341
|
args: [
|
338
342
|
{
|
343
|
+
name: 'url',
|
339
344
|
type: 'Url',
|
340
345
|
default: '',
|
341
346
|
},
|
342
347
|
{
|
348
|
+
name: 'open_new_tab',
|
343
349
|
type: 'BooleanKeyword',
|
344
350
|
default: true,
|
345
351
|
},
|
@@ -349,6 +355,7 @@ const OnClickOperationOptions = [
|
|
349
355
|
operation: 'moveTo',
|
350
356
|
args: [
|
351
357
|
{
|
358
|
+
name: 'state',
|
352
359
|
type: 'TransitState',
|
353
360
|
default: '/',
|
354
361
|
},
|
@@ -358,6 +365,7 @@ const OnClickOperationOptions = [
|
|
358
365
|
operation: 'closeApp',
|
359
366
|
args: [
|
360
367
|
{
|
368
|
+
name: 'trigger',
|
361
369
|
type: 'Trigger',
|
362
370
|
default: 'button',
|
363
371
|
},
|
@@ -367,6 +375,7 @@ const OnClickOperationOptions = [
|
|
367
375
|
operation: 'runScript',
|
368
376
|
args: [
|
369
377
|
{
|
378
|
+
name: 'handler',
|
370
379
|
type: 'Handler',
|
371
380
|
default: '',
|
372
381
|
},
|
@@ -376,11 +385,73 @@ const OnClickOperationOptions = [
|
|
376
385
|
operation: 'submitForm',
|
377
386
|
args: [
|
378
387
|
{
|
388
|
+
name: 'state',
|
379
389
|
type: 'TransitState',
|
380
390
|
default: '/',
|
381
391
|
},
|
382
392
|
],
|
383
393
|
},
|
394
|
+
{
|
395
|
+
operation: 'bootChat',
|
396
|
+
args: [
|
397
|
+
{
|
398
|
+
name: 'hide_launcher',
|
399
|
+
type: 'BooleanKeyword',
|
400
|
+
default: false,
|
401
|
+
},
|
402
|
+
{
|
403
|
+
name: 'placement_pc',
|
404
|
+
type: 'StringKeyword',
|
405
|
+
default: 'left',
|
406
|
+
},
|
407
|
+
{
|
408
|
+
name: 'placement_mobile',
|
409
|
+
type: 'StringKeyword',
|
410
|
+
default: 'left',
|
411
|
+
},
|
412
|
+
{
|
413
|
+
name: 'horizontal_spacing_pc',
|
414
|
+
type: 'NumberKeyword',
|
415
|
+
default: 20,
|
416
|
+
},
|
417
|
+
{
|
418
|
+
name: 'horizontal_spacing_mobile',
|
419
|
+
type: 'NumberKeyword',
|
420
|
+
default: 20,
|
421
|
+
},
|
422
|
+
{
|
423
|
+
name: 'vertical_spacing_pc',
|
424
|
+
type: 'NumberKeyword',
|
425
|
+
default: 20,
|
426
|
+
},
|
427
|
+
{
|
428
|
+
name: 'vertical_spacing_mobile',
|
429
|
+
type: 'NumberKeyword',
|
430
|
+
default: 20,
|
431
|
+
},
|
432
|
+
{
|
433
|
+
name: 'theme_color',
|
434
|
+
type: 'Color',
|
435
|
+
default: '#2aab9f',
|
436
|
+
},
|
437
|
+
{
|
438
|
+
name: 'header_title',
|
439
|
+
type: 'StringKeyword',
|
440
|
+
default: 'KARTEサポートチーム',
|
441
|
+
},
|
442
|
+
{
|
443
|
+
name: 'header_description',
|
444
|
+
type: 'StringKeyword',
|
445
|
+
default: `ご質問があればお尋ねください。
|
446
|
+
KARTEサポート担当者につながります。サポート受付時間は平日10:30-17:30です。`,
|
447
|
+
},
|
448
|
+
{
|
449
|
+
name: 'launcher_image',
|
450
|
+
type: 'StringKeyword',
|
451
|
+
default: '',
|
452
|
+
},
|
453
|
+
],
|
454
|
+
},
|
384
455
|
];
|
385
456
|
/** @internal */
|
386
457
|
const LengthUnits = ['px', 'em', 'rem', 'vw', 'fr', '%'];
|
@@ -1039,6 +1110,11 @@ const send_event = (event_name, values) => {
|
|
1039
1110
|
setting?.send?.(event_name, values);
|
1040
1111
|
};
|
1041
1112
|
/** @internal */
|
1113
|
+
const publish_edge = (topic, values) => {
|
1114
|
+
const setting = getSetting();
|
1115
|
+
setting?.publish?.(topic, values);
|
1116
|
+
};
|
1117
|
+
/** @internal */
|
1042
1118
|
const initialize = (setting) => {
|
1043
1119
|
const newSetting = setSetting(setting);
|
1044
1120
|
if (newSetting.initialState) {
|
@@ -2719,13 +2795,22 @@ const moveTo = (to) => () => {
|
|
2719
2795
|
};
|
2720
2796
|
/** @internal */
|
2721
2797
|
const linkTo = (to, targetBlank = true) => () => {
|
2722
|
-
|
2798
|
+
async function sleep(ms) {
|
2799
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
2800
|
+
}
|
2801
|
+
async function _send() {
|
2802
|
+
send_event('message_click', { url: to, state: getState$1() });
|
2803
|
+
// # edge.js の retransmitter が送るのを待つ
|
2804
|
+
await sleep(450);
|
2805
|
+
}
|
2723
2806
|
if (targetBlank) {
|
2724
2807
|
window.open(to);
|
2725
2808
|
}
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2809
|
+
Promise.race([_send(), sleep(650)]).then(() => {
|
2810
|
+
if (!targetBlank) {
|
2811
|
+
location.href = to;
|
2812
|
+
}
|
2813
|
+
});
|
2729
2814
|
};
|
2730
2815
|
/** @internal */
|
2731
2816
|
const closeApp = (trigger) => () => {
|
@@ -2751,6 +2836,24 @@ const submitForm = (to) => () => {
|
|
2751
2836
|
_moveTo(to);
|
2752
2837
|
};
|
2753
2838
|
/** @internal */
|
2839
|
+
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) => () => {
|
2840
|
+
const options = {
|
2841
|
+
hide_launcher,
|
2842
|
+
placement_pc,
|
2843
|
+
placement_mobile,
|
2844
|
+
horizontal_spacing_pc,
|
2845
|
+
horizontal_spacing_mobile,
|
2846
|
+
vertical_spacing_pc,
|
2847
|
+
vertical_spacing_mobile,
|
2848
|
+
theme_color,
|
2849
|
+
header_title,
|
2850
|
+
header_description: header_description.replace(/<br\s*\/?>/gi, '\n'),
|
2851
|
+
};
|
2852
|
+
if (launcher_image && launcher_image !== '')
|
2853
|
+
options.launcher_image = launcher_image;
|
2854
|
+
publish_edge('talk', { actionName: 'boot', args: [options] });
|
2855
|
+
};
|
2856
|
+
/** @internal */
|
2754
2857
|
const execOnClickOperation = (onClickOperation) => {
|
2755
2858
|
if (onClickOperation.operation === 'linkTo') {
|
2756
2859
|
linkTo(...onClickOperation.args)();
|
@@ -2767,6 +2870,9 @@ const execOnClickOperation = (onClickOperation) => {
|
|
2767
2870
|
else if (onClickOperation.operation === 'submitForm') {
|
2768
2871
|
submitForm(onClickOperation.args[0])();
|
2769
2872
|
}
|
2873
|
+
else if (onClickOperation.operation === 'bootChat') {
|
2874
|
+
bootChat(...onClickOperation.args)();
|
2875
|
+
}
|
2770
2876
|
};
|
2771
2877
|
/** @internal */
|
2772
2878
|
const haveFunction = (onClickOperation) => {
|
@@ -6960,7 +7066,7 @@ class FormSelect extends SvelteComponent {
|
|
6960
7066
|
/* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
|
6961
7067
|
|
6962
7068
|
function add_css$d(target) {
|
6963
|
-
append_styles(target, "svelte-
|
7069
|
+
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}");
|
6964
7070
|
}
|
6965
7071
|
|
6966
7072
|
function get_each_context$3(ctx, list, i) {
|
@@ -7001,11 +7107,11 @@ function create_each_block$3(ctx) {
|
|
7001
7107
|
this.h();
|
7002
7108
|
},
|
7003
7109
|
l(nodes) {
|
7004
|
-
label = claim_element(nodes, "LABEL", { class: true });
|
7110
|
+
label = claim_element(nodes, "LABEL", { class: true, style: true });
|
7005
7111
|
var label_nodes = children(label);
|
7006
7112
|
input = claim_element(label_nodes, "INPUT", { class: true, type: true, name: true });
|
7007
7113
|
t0 = claim_space(label_nodes);
|
7008
|
-
span1 = claim_element(label_nodes, "SPAN", { class: true
|
7114
|
+
span1 = claim_element(label_nodes, "SPAN", { class: true });
|
7009
7115
|
var span1_nodes = children(span1);
|
7010
7116
|
span0 = claim_element(span1_nodes, "SPAN", { class: true });
|
7011
7117
|
var span0_nodes = children(span0);
|
@@ -7021,20 +7127,20 @@ function create_each_block$3(ctx) {
|
|
7021
7127
|
this.h();
|
7022
7128
|
},
|
7023
7129
|
h() {
|
7024
|
-
attr(input, "class", "check-box-input svelte-
|
7130
|
+
attr(input, "class", "check-box-input svelte-p15pvn");
|
7025
7131
|
attr(input, "type", "checkbox");
|
7026
7132
|
attr(input, "name", /*name*/ ctx[0]);
|
7027
7133
|
input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
|
7028
|
-
attr(span0, "class", "check-box-icon svelte-
|
7134
|
+
attr(span0, "class", "check-box-icon svelte-p15pvn");
|
7029
7135
|
|
7030
7136
|
attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
7031
7137
|
? ' _checked'
|
7032
|
-
: ''}`) + " svelte-
|
7138
|
+
: ''}`) + " svelte-p15pvn"));
|
7033
7139
|
|
7034
|
-
attr(
|
7035
|
-
attr(span2, "class", "check-box-text svelte-o1ztcf");
|
7140
|
+
attr(span2, "class", "check-box-text svelte-p15pvn");
|
7036
7141
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
7037
|
-
attr(label, "class", "check-box svelte-
|
7142
|
+
attr(label, "class", "check-box svelte-p15pvn");
|
7143
|
+
attr(label, "style", /*styleVariables*/ ctx[5]);
|
7038
7144
|
},
|
7039
7145
|
m(target, anchor) {
|
7040
7146
|
insert_hydration(target, label, anchor);
|
@@ -7065,19 +7171,19 @@ function create_each_block$3(ctx) {
|
|
7065
7171
|
|
7066
7172
|
if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
|
7067
7173
|
? ' _checked'
|
7068
|
-
: ''}`) + " svelte-
|
7174
|
+
: ''}`) + " svelte-p15pvn"))) {
|
7069
7175
|
attr(span1, "class", span1_class_value);
|
7070
7176
|
}
|
7071
7177
|
|
7072
|
-
if (dirty & /*styleVariables*/ 32) {
|
7073
|
-
attr(span1, "style", /*styleVariables*/ ctx[5]);
|
7074
|
-
}
|
7075
|
-
|
7076
7178
|
if (dirty & /*_options*/ 8 && t2_value !== (t2_value = /*option*/ ctx[17] + "")) set_data(t2, t2_value);
|
7077
7179
|
|
7078
7180
|
if (dirty & /*_textStyle*/ 4) {
|
7079
7181
|
attr(span2, "style", /*_textStyle*/ ctx[2]);
|
7080
7182
|
}
|
7183
|
+
|
7184
|
+
if (dirty & /*styleVariables*/ 32) {
|
7185
|
+
attr(label, "style", /*styleVariables*/ ctx[5]);
|
7186
|
+
}
|
7081
7187
|
},
|
7082
7188
|
d(detaching) {
|
7083
7189
|
if (detaching) detach(label);
|
@@ -7118,7 +7224,7 @@ function create_fragment$e(ctx) {
|
|
7118
7224
|
this.h();
|
7119
7225
|
},
|
7120
7226
|
h() {
|
7121
|
-
attr(div, "class", "check-boxes svelte-
|
7227
|
+
attr(div, "class", "check-boxes svelte-p15pvn");
|
7122
7228
|
attr(div, "style", /*_layoutStyle*/ ctx[1]);
|
7123
7229
|
},
|
7124
7230
|
m(target, anchor) {
|
@@ -7129,7 +7235,7 @@ function create_fragment$e(ctx) {
|
|
7129
7235
|
}
|
7130
7236
|
},
|
7131
7237
|
p(ctx, [dirty]) {
|
7132
|
-
if (dirty & /*_textStyle, _options, isCheckedArray,
|
7238
|
+
if (dirty & /*styleVariables, _textStyle, _options, isCheckedArray, name, handleChange*/ 189) {
|
7133
7239
|
each_value = /*_options*/ ctx[3];
|
7134
7240
|
let i;
|
7135
7241
|
|
@@ -7292,7 +7398,7 @@ class FormCheckBoxes extends SvelteComponent {
|
|
7292
7398
|
/* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
|
7293
7399
|
|
7294
7400
|
function add_css$c(target) {
|
7295
|
-
append_styles(target, "svelte-
|
7401
|
+
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}");
|
7296
7402
|
}
|
7297
7403
|
|
7298
7404
|
function get_each_context$2(ctx, list, i) {
|
@@ -7303,40 +7409,40 @@ function get_each_context$2(ctx, list, i) {
|
|
7303
7409
|
|
7304
7410
|
// (60:2) {#each [...Array(count).keys()].map(i => i + 1) as i}
|
7305
7411
|
function create_each_block$2(ctx) {
|
7306
|
-
let
|
7412
|
+
let button;
|
7307
7413
|
let t0_value = /*i*/ ctx[12] + "";
|
7308
7414
|
let t0;
|
7309
7415
|
let t1;
|
7310
|
-
let
|
7416
|
+
let button_style_value;
|
7311
7417
|
let mounted;
|
7312
7418
|
let dispose;
|
7313
7419
|
|
7314
7420
|
return {
|
7315
7421
|
c() {
|
7316
|
-
|
7422
|
+
button = element("button");
|
7317
7423
|
t0 = text(t0_value);
|
7318
7424
|
t1 = space();
|
7319
7425
|
this.h();
|
7320
7426
|
},
|
7321
7427
|
l(nodes) {
|
7322
|
-
|
7323
|
-
var
|
7324
|
-
t0 = claim_text(
|
7325
|
-
t1 = claim_space(
|
7326
|
-
|
7428
|
+
button = claim_element(nodes, "BUTTON", { class: true, style: true });
|
7429
|
+
var button_nodes = children(button);
|
7430
|
+
t0 = claim_text(button_nodes, t0_value);
|
7431
|
+
t1 = claim_space(button_nodes);
|
7432
|
+
button_nodes.forEach(detach);
|
7327
7433
|
this.h();
|
7328
7434
|
},
|
7329
7435
|
h() {
|
7330
|
-
attr(
|
7331
|
-
attr(
|
7436
|
+
attr(button, "class", "rating-button svelte-zy2va9");
|
7437
|
+
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]));
|
7332
7438
|
},
|
7333
7439
|
m(target, anchor) {
|
7334
|
-
insert_hydration(target,
|
7335
|
-
append_hydration(
|
7336
|
-
append_hydration(
|
7440
|
+
insert_hydration(target, button, anchor);
|
7441
|
+
append_hydration(button, t0);
|
7442
|
+
append_hydration(button, t1);
|
7337
7443
|
|
7338
7444
|
if (!mounted) {
|
7339
|
-
dispose = listen(
|
7445
|
+
dispose = listen(button, "click", function () {
|
7340
7446
|
if (is_function(/*handleClick*/ ctx[3](/*i*/ ctx[12]))) /*handleClick*/ ctx[3](/*i*/ ctx[12]).apply(this, arguments);
|
7341
7447
|
});
|
7342
7448
|
|
@@ -7347,12 +7453,12 @@ function create_each_block$2(ctx) {
|
|
7347
7453
|
ctx = new_ctx;
|
7348
7454
|
if (dirty & /*count*/ 1 && t0_value !== (t0_value = /*i*/ ctx[12] + "")) set_data(t0, t0_value);
|
7349
7455
|
|
7350
|
-
if (dirty & /*count, _value*/ 3 &&
|
7351
|
-
attr(
|
7456
|
+
if (dirty & /*count, _value*/ 3 && button_style_value !== (button_style_value = /*getTextButtonStyle*/ ctx[4](/*i*/ ctx[12] === /*_value*/ ctx[1]))) {
|
7457
|
+
attr(button, "style", button_style_value);
|
7352
7458
|
}
|
7353
7459
|
},
|
7354
7460
|
d(detaching) {
|
7355
|
-
if (detaching) detach(
|
7461
|
+
if (detaching) detach(button);
|
7356
7462
|
mounted = false;
|
7357
7463
|
dispose();
|
7358
7464
|
}
|
@@ -7390,7 +7496,7 @@ function create_fragment$d(ctx) {
|
|
7390
7496
|
this.h();
|
7391
7497
|
},
|
7392
7498
|
h() {
|
7393
|
-
attr(div, "class", "rating-buttons svelte-
|
7499
|
+
attr(div, "class", "rating-buttons svelte-zy2va9");
|
7394
7500
|
},
|
7395
7501
|
m(target, anchor) {
|
7396
7502
|
insert_hydration(target, div, anchor);
|
@@ -7527,7 +7633,7 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
7527
7633
|
/* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
|
7528
7634
|
|
7529
7635
|
function add_css$b(target) {
|
7530
|
-
append_styles(target, "svelte-
|
7636
|
+
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%)}");
|
7531
7637
|
}
|
7532
7638
|
|
7533
7639
|
function get_each_context$1(ctx, list, i) {
|
@@ -7538,54 +7644,59 @@ function get_each_context$1(ctx, list, i) {
|
|
7538
7644
|
|
7539
7645
|
// (42:2) {#each [...Array(count).keys()].reverse().map(i => i + 1) as i}
|
7540
7646
|
function create_each_block$1(ctx) {
|
7647
|
+
let button;
|
7541
7648
|
let img;
|
7542
7649
|
let img_src_value;
|
7543
7650
|
let img_class_value;
|
7651
|
+
let t;
|
7544
7652
|
let mounted;
|
7545
7653
|
let dispose;
|
7546
7654
|
|
7547
7655
|
return {
|
7548
7656
|
c() {
|
7657
|
+
button = element("button");
|
7549
7658
|
img = element("img");
|
7659
|
+
t = space();
|
7550
7660
|
this.h();
|
7551
7661
|
},
|
7552
7662
|
l(nodes) {
|
7553
|
-
|
7554
|
-
|
7555
|
-
|
7556
|
-
|
7557
|
-
|
7558
|
-
});
|
7559
|
-
|
7663
|
+
button = claim_element(nodes, "BUTTON", { class: true, style: true });
|
7664
|
+
var button_nodes = children(button);
|
7665
|
+
img = claim_element(button_nodes, "IMG", { src: true, class: true, alt: true });
|
7666
|
+
t = claim_space(button_nodes);
|
7667
|
+
button_nodes.forEach(detach);
|
7560
7668
|
this.h();
|
7561
7669
|
},
|
7562
7670
|
h() {
|
7563
7671
|
if (!src_url_equal(img.src, img_src_value = /*ICONS*/ ctx[2][/*i*/ ctx[10]])) attr(img, "src", img_src_value);
|
7564
|
-
attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-
|
7565
|
-
attr(img, "style", /*buttonStyle*/ ctx[0]);
|
7672
|
+
attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"));
|
7566
7673
|
attr(img, "alt", "rate" + /*i*/ ctx[10]);
|
7674
|
+
attr(button, "class", "rating-button svelte-tbunko");
|
7675
|
+
attr(button, "style", /*buttonStyle*/ ctx[0]);
|
7567
7676
|
},
|
7568
7677
|
m(target, anchor) {
|
7569
|
-
insert_hydration(target,
|
7678
|
+
insert_hydration(target, button, anchor);
|
7679
|
+
append_hydration(button, img);
|
7680
|
+
append_hydration(button, t);
|
7570
7681
|
|
7571
7682
|
if (!mounted) {
|
7572
|
-
dispose = listen(
|
7683
|
+
dispose = listen(button, "click", /*handleClick*/ ctx[4](/*i*/ ctx[10]));
|
7573
7684
|
mounted = true;
|
7574
7685
|
}
|
7575
7686
|
},
|
7576
7687
|
p(new_ctx, dirty) {
|
7577
7688
|
ctx = new_ctx;
|
7578
7689
|
|
7579
|
-
if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-
|
7690
|
+
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"))) {
|
7580
7691
|
attr(img, "class", img_class_value);
|
7581
7692
|
}
|
7582
7693
|
|
7583
7694
|
if (dirty & /*buttonStyle*/ 1) {
|
7584
|
-
attr(
|
7695
|
+
attr(button, "style", /*buttonStyle*/ ctx[0]);
|
7585
7696
|
}
|
7586
7697
|
},
|
7587
7698
|
d(detaching) {
|
7588
|
-
if (detaching) detach(
|
7699
|
+
if (detaching) detach(button);
|
7589
7700
|
mounted = false;
|
7590
7701
|
dispose();
|
7591
7702
|
}
|
@@ -7623,7 +7734,7 @@ function create_fragment$c(ctx) {
|
|
7623
7734
|
this.h();
|
7624
7735
|
},
|
7625
7736
|
h() {
|
7626
|
-
attr(div, "class", "rating-buttons svelte-
|
7737
|
+
attr(div, "class", "rating-buttons svelte-tbunko");
|
7627
7738
|
},
|
7628
7739
|
m(target, anchor) {
|
7629
7740
|
insert_hydration(target, div, anchor);
|
@@ -7633,7 +7744,7 @@ function create_fragment$c(ctx) {
|
|
7633
7744
|
}
|
7634
7745
|
},
|
7635
7746
|
p(ctx, [dirty]) {
|
7636
|
-
if (dirty & /*
|
7747
|
+
if (dirty & /*buttonStyle, handleClick, Array, count, ICONS, _value*/ 23) {
|
7637
7748
|
each_value = [...Array(count).keys()].reverse().map(func);
|
7638
7749
|
let i;
|
7639
7750
|
|
@@ -7731,7 +7842,7 @@ class FormRatingButtonsFace extends SvelteComponent {
|
|
7731
7842
|
/* src/components/Slide.svelte generated by Svelte v3.53.1 */
|
7732
7843
|
|
7733
7844
|
function add_css$a(target) {
|
7734
|
-
append_styles(target, "svelte-
|
7845
|
+
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%}");
|
7735
7846
|
}
|
7736
7847
|
|
7737
7848
|
function get_each_context(ctx, list, i) {
|
@@ -7743,8 +7854,8 @@ function get_each_context(ctx, list, i) {
|
|
7743
7854
|
|
7744
7855
|
// (371:2) {#if isVisiblePrevButton}
|
7745
7856
|
function create_if_block_1(ctx) {
|
7746
|
-
let
|
7747
|
-
let
|
7857
|
+
let div;
|
7858
|
+
let button;
|
7748
7859
|
let svg;
|
7749
7860
|
let polygon;
|
7750
7861
|
let mounted;
|
@@ -7752,24 +7863,24 @@ function create_if_block_1(ctx) {
|
|
7752
7863
|
|
7753
7864
|
return {
|
7754
7865
|
c() {
|
7755
|
-
|
7756
|
-
|
7866
|
+
div = element("div");
|
7867
|
+
button = element("button");
|
7757
7868
|
svg = svg_element("svg");
|
7758
7869
|
polygon = svg_element("polygon");
|
7759
7870
|
this.h();
|
7760
7871
|
},
|
7761
7872
|
l(nodes) {
|
7762
|
-
|
7763
|
-
var
|
7764
|
-
|
7765
|
-
var
|
7766
|
-
svg = claim_svg_element(
|
7873
|
+
div = claim_element(nodes, "DIV", { class: true });
|
7874
|
+
var div_nodes = children(div);
|
7875
|
+
button = claim_element(div_nodes, "BUTTON", { class: true, style: true });
|
7876
|
+
var button_nodes = children(button);
|
7877
|
+
svg = claim_svg_element(button_nodes, "svg", { viewBox: true, xmlns: true, style: true });
|
7767
7878
|
var svg_nodes = children(svg);
|
7768
7879
|
polygon = claim_svg_element(svg_nodes, "polygon", { points: true });
|
7769
7880
|
children(polygon).forEach(detach);
|
7770
7881
|
svg_nodes.forEach(detach);
|
7771
|
-
|
7772
|
-
|
7882
|
+
button_nodes.forEach(detach);
|
7883
|
+
div_nodes.forEach(detach);
|
7773
7884
|
this.h();
|
7774
7885
|
},
|
7775
7886
|
h() {
|
@@ -7777,18 +7888,18 @@ function create_if_block_1(ctx) {
|
|
7777
7888
|
attr(svg, "viewBox", "0 0 10 16");
|
7778
7889
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7779
7890
|
attr(svg, "style", /*prevIconStyle*/ ctx[10]);
|
7780
|
-
attr(
|
7781
|
-
attr(
|
7782
|
-
attr(
|
7891
|
+
attr(button, "class", "move-button svelte-re6e5");
|
7892
|
+
attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
|
7893
|
+
attr(div, "class", "prev-button-container svelte-re6e5");
|
7783
7894
|
},
|
7784
7895
|
m(target, anchor) {
|
7785
|
-
insert_hydration(target,
|
7786
|
-
append_hydration(
|
7787
|
-
append_hydration(
|
7896
|
+
insert_hydration(target, div, anchor);
|
7897
|
+
append_hydration(div, button);
|
7898
|
+
append_hydration(button, svg);
|
7788
7899
|
append_hydration(svg, polygon);
|
7789
7900
|
|
7790
7901
|
if (!mounted) {
|
7791
|
-
dispose = listen(
|
7902
|
+
dispose = listen(button, "click", /*prev*/ ctx[15]);
|
7792
7903
|
mounted = true;
|
7793
7904
|
}
|
7794
7905
|
},
|
@@ -7798,11 +7909,11 @@ function create_if_block_1(ctx) {
|
|
7798
7909
|
}
|
7799
7910
|
|
7800
7911
|
if (dirty[0] & /*_prevButtonContainerStyle*/ 512) {
|
7801
|
-
attr(
|
7912
|
+
attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
|
7802
7913
|
}
|
7803
7914
|
},
|
7804
7915
|
d(detaching) {
|
7805
|
-
if (detaching) detach(
|
7916
|
+
if (detaching) detach(div);
|
7806
7917
|
mounted = false;
|
7807
7918
|
dispose();
|
7808
7919
|
}
|
@@ -7811,8 +7922,8 @@ function create_if_block_1(ctx) {
|
|
7811
7922
|
|
7812
7923
|
// (380:2) {#if isVisibleNextButton}
|
7813
7924
|
function create_if_block$1(ctx) {
|
7814
|
-
let
|
7815
|
-
let
|
7925
|
+
let div;
|
7926
|
+
let button;
|
7816
7927
|
let svg;
|
7817
7928
|
let polygon;
|
7818
7929
|
let mounted;
|
@@ -7820,24 +7931,24 @@ function create_if_block$1(ctx) {
|
|
7820
7931
|
|
7821
7932
|
return {
|
7822
7933
|
c() {
|
7823
|
-
|
7824
|
-
|
7934
|
+
div = element("div");
|
7935
|
+
button = element("button");
|
7825
7936
|
svg = svg_element("svg");
|
7826
7937
|
polygon = svg_element("polygon");
|
7827
7938
|
this.h();
|
7828
7939
|
},
|
7829
7940
|
l(nodes) {
|
7830
|
-
|
7831
|
-
var
|
7832
|
-
|
7833
|
-
var
|
7834
|
-
svg = claim_svg_element(
|
7941
|
+
div = claim_element(nodes, "DIV", { class: true });
|
7942
|
+
var div_nodes = children(div);
|
7943
|
+
button = claim_element(div_nodes, "BUTTON", { class: true, style: true });
|
7944
|
+
var button_nodes = children(button);
|
7945
|
+
svg = claim_svg_element(button_nodes, "svg", { viewBox: true, xmlns: true, style: true });
|
7835
7946
|
var svg_nodes = children(svg);
|
7836
7947
|
polygon = claim_svg_element(svg_nodes, "polygon", { points: true });
|
7837
7948
|
children(polygon).forEach(detach);
|
7838
7949
|
svg_nodes.forEach(detach);
|
7839
|
-
|
7840
|
-
|
7950
|
+
button_nodes.forEach(detach);
|
7951
|
+
div_nodes.forEach(detach);
|
7841
7952
|
this.h();
|
7842
7953
|
},
|
7843
7954
|
h() {
|
@@ -7845,18 +7956,18 @@ function create_if_block$1(ctx) {
|
|
7845
7956
|
attr(svg, "viewBox", "0 0 10 16");
|
7846
7957
|
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
7847
7958
|
attr(svg, "style", /*nextIconStyle*/ ctx[8]);
|
7848
|
-
attr(
|
7849
|
-
attr(
|
7850
|
-
attr(
|
7959
|
+
attr(button, "class", "move-button svelte-re6e5");
|
7960
|
+
attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
|
7961
|
+
attr(div, "class", "next-button-container svelte-re6e5");
|
7851
7962
|
},
|
7852
7963
|
m(target, anchor) {
|
7853
|
-
insert_hydration(target,
|
7854
|
-
append_hydration(
|
7855
|
-
append_hydration(
|
7964
|
+
insert_hydration(target, div, anchor);
|
7965
|
+
append_hydration(div, button);
|
7966
|
+
append_hydration(button, svg);
|
7856
7967
|
append_hydration(svg, polygon);
|
7857
7968
|
|
7858
7969
|
if (!mounted) {
|
7859
|
-
dispose = listen(
|
7970
|
+
dispose = listen(button, "click", /*next*/ ctx[16]);
|
7860
7971
|
mounted = true;
|
7861
7972
|
}
|
7862
7973
|
},
|
@@ -7866,11 +7977,11 @@ function create_if_block$1(ctx) {
|
|
7866
7977
|
}
|
7867
7978
|
|
7868
7979
|
if (dirty[0] & /*_nextButtonContainerStyle*/ 128) {
|
7869
|
-
attr(
|
7980
|
+
attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
|
7870
7981
|
}
|
7871
7982
|
},
|
7872
7983
|
d(detaching) {
|
7873
|
-
if (detaching) detach(
|
7984
|
+
if (detaching) detach(div);
|
7874
7985
|
mounted = false;
|
7875
7986
|
dispose();
|
7876
7987
|
}
|
@@ -7879,9 +7990,9 @@ function create_if_block$1(ctx) {
|
|
7879
7990
|
|
7880
7991
|
// (393:4) {#each items as _, i}
|
7881
7992
|
function create_each_block(ctx) {
|
7882
|
-
let
|
7883
|
-
let
|
7884
|
-
let
|
7993
|
+
let button;
|
7994
|
+
let div;
|
7995
|
+
let div_style_value;
|
7885
7996
|
let t;
|
7886
7997
|
let mounted;
|
7887
7998
|
let dispose;
|
@@ -7892,49 +8003,49 @@ function create_each_block(ctx) {
|
|
7892
8003
|
|
7893
8004
|
return {
|
7894
8005
|
c() {
|
7895
|
-
|
7896
|
-
|
8006
|
+
button = element("button");
|
8007
|
+
div = element("div");
|
7897
8008
|
t = space();
|
7898
8009
|
this.h();
|
7899
8010
|
},
|
7900
8011
|
l(nodes) {
|
7901
|
-
|
7902
|
-
var
|
7903
|
-
|
7904
|
-
children(
|
7905
|
-
t = claim_space(
|
7906
|
-
|
8012
|
+
button = claim_element(nodes, "BUTTON", { class: true, style: true });
|
8013
|
+
var button_nodes = children(button);
|
8014
|
+
div = claim_element(button_nodes, "DIV", { class: true, style: true });
|
8015
|
+
children(div).forEach(detach);
|
8016
|
+
t = claim_space(button_nodes);
|
8017
|
+
button_nodes.forEach(detach);
|
7907
8018
|
this.h();
|
7908
8019
|
},
|
7909
8020
|
h() {
|
7910
|
-
attr(
|
7911
|
-
attr(
|
7912
|
-
attr(
|
7913
|
-
attr(
|
8021
|
+
attr(div, "class", "navigation-item-inner circle svelte-re6e5");
|
8022
|
+
attr(div, "style", div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]));
|
8023
|
+
attr(button, "class", "navigation-item svelte-re6e5");
|
8024
|
+
attr(button, "style", /*navigationItemStyle*/ ctx[6]);
|
7914
8025
|
},
|
7915
8026
|
m(target, anchor) {
|
7916
|
-
insert_hydration(target,
|
7917
|
-
append_hydration(
|
7918
|
-
append_hydration(
|
8027
|
+
insert_hydration(target, button, anchor);
|
8028
|
+
append_hydration(button, div);
|
8029
|
+
append_hydration(button, t);
|
7919
8030
|
|
7920
8031
|
if (!mounted) {
|
7921
|
-
dispose = listen(
|
8032
|
+
dispose = listen(button, "click", click_handler);
|
7922
8033
|
mounted = true;
|
7923
8034
|
}
|
7924
8035
|
},
|
7925
8036
|
p(new_ctx, dirty) {
|
7926
8037
|
ctx = new_ctx;
|
7927
8038
|
|
7928
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 &&
|
7929
|
-
attr(
|
8039
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div_style_value !== (div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]))) {
|
8040
|
+
attr(div, "style", div_style_value);
|
7930
8041
|
}
|
7931
8042
|
|
7932
8043
|
if (dirty[0] & /*navigationItemStyle*/ 64) {
|
7933
|
-
attr(
|
8044
|
+
attr(button, "style", /*navigationItemStyle*/ ctx[6]);
|
7934
8045
|
}
|
7935
8046
|
},
|
7936
8047
|
d(detaching) {
|
7937
|
-
if (detaching) detach(
|
8048
|
+
if (detaching) detach(button);
|
7938
8049
|
mounted = false;
|
7939
8050
|
dispose();
|
7940
8051
|
}
|
@@ -8015,14 +8126,14 @@ function create_fragment$b(ctx) {
|
|
8015
8126
|
this.h();
|
8016
8127
|
},
|
8017
8128
|
h() {
|
8018
|
-
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-
|
8129
|
+
attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-re6e5"));
|
8019
8130
|
attr(div0, "style", /*slideStyle*/ ctx[14]);
|
8020
|
-
attr(div1, "class", "container svelte-
|
8131
|
+
attr(div1, "class", "container svelte-re6e5");
|
8021
8132
|
attr(div1, "style", /*_style*/ ctx[0]);
|
8022
|
-
attr(div2, "class", "navigation svelte-
|
8133
|
+
attr(div2, "class", "navigation svelte-re6e5");
|
8023
8134
|
attr(div2, "style", /*navigationStyle*/ ctx[4]);
|
8024
8135
|
set_attributes(div3, div3_data);
|
8025
|
-
toggle_class(div3, "svelte-
|
8136
|
+
toggle_class(div3, "svelte-re6e5", true);
|
8026
8137
|
},
|
8027
8138
|
m(target, anchor) {
|
8028
8139
|
insert_hydration(target, div3, anchor);
|
@@ -8064,7 +8175,7 @@ function create_fragment$b(ctx) {
|
|
8064
8175
|
}
|
8065
8176
|
}
|
8066
8177
|
|
8067
|
-
if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-
|
8178
|
+
if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-re6e5"))) {
|
8068
8179
|
attr(div0, "class", div0_class_value);
|
8069
8180
|
}
|
8070
8181
|
|
@@ -8130,7 +8241,7 @@ function create_fragment$b(ctx) {
|
|
8130
8241
|
}
|
8131
8242
|
|
8132
8243
|
set_attributes(div3, div3_data = get_spread_update(div3_levels, [{ class: "root" }, dataAttrStopPropagation('click')]));
|
8133
|
-
toggle_class(div3, "svelte-
|
8244
|
+
toggle_class(div3, "svelte-re6e5", true);
|
8134
8245
|
},
|
8135
8246
|
i(local) {
|
8136
8247
|
if (current) return;
|