eat-js-sdk 1.3.2 → 1.3.3
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/eat-prompt-builder.mjs +174 -180
- package/package.json +1 -1
|
@@ -2233,12 +2233,12 @@
|
|
|
2233
2233
|
var { window: window_1 } = globals;
|
|
2234
2234
|
var get_default_slot_changes = (dirty) => ({
|
|
2235
2235
|
dynamicInteractionWidth: dirty[0] & /*dynamicInteractionWidth*/
|
|
2236
|
-
|
|
2236
|
+
65536
|
|
2237
2237
|
});
|
|
2238
2238
|
var get_default_slot_context = (ctx) => ({
|
|
2239
2239
|
dynamicInteractionWidth: (
|
|
2240
2240
|
/*dynamicInteractionWidth*/
|
|
2241
|
-
ctx[
|
|
2241
|
+
ctx[16]
|
|
2242
2242
|
)
|
|
2243
2243
|
});
|
|
2244
2244
|
function create_if_block_11(ctx) {
|
|
@@ -2251,10 +2251,10 @@
|
|
|
2251
2251
|
ctx[0]
|
|
2252
2252
|
),
|
|
2253
2253
|
otherClass: "item-heading mb-4 " + /*dynamicInteractionWidth*/
|
|
2254
|
-
ctx[
|
|
2254
|
+
ctx[16],
|
|
2255
2255
|
htmlHeading: (
|
|
2256
2256
|
/*promptRubricHeaderElem*/
|
|
2257
|
-
ctx[
|
|
2257
|
+
ctx[24]
|
|
2258
2258
|
)
|
|
2259
2259
|
}
|
|
2260
2260
|
});
|
|
@@ -2273,9 +2273,9 @@
|
|
|
2273
2273
|
commonstringtohtml_changes.htmlString = /*rubric*/
|
|
2274
2274
|
ctx2[0];
|
|
2275
2275
|
if (dirty[0] & /*dynamicInteractionWidth*/
|
|
2276
|
-
|
|
2276
|
+
65536)
|
|
2277
2277
|
commonstringtohtml_changes.otherClass = "item-heading mb-4 " + /*dynamicInteractionWidth*/
|
|
2278
|
-
ctx2[
|
|
2278
|
+
ctx2[16];
|
|
2279
2279
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2280
2280
|
},
|
|
2281
2281
|
i(local) {
|
|
@@ -2300,10 +2300,13 @@
|
|
|
2300
2300
|
props: {
|
|
2301
2301
|
htmlString: (
|
|
2302
2302
|
/*stimulusText*/
|
|
2303
|
-
ctx[
|
|
2303
|
+
ctx[11]
|
|
2304
2304
|
),
|
|
2305
|
-
otherClass: "text-stimulus py-2 " + /*
|
|
2306
|
-
ctx[
|
|
2305
|
+
otherClass: "text-stimulus py-2 " + /*shouldUseFullWidth*/
|
|
2306
|
+
(ctx[4]() ? "w-full" : (
|
|
2307
|
+
/*stimulusTextWidth*/
|
|
2308
|
+
ctx[15]
|
|
2309
|
+
))
|
|
2307
2310
|
}
|
|
2308
2311
|
});
|
|
2309
2312
|
return {
|
|
@@ -2317,13 +2320,16 @@
|
|
|
2317
2320
|
p(ctx2, dirty) {
|
|
2318
2321
|
const commonstringtohtml_changes = {};
|
|
2319
2322
|
if (dirty[0] & /*stimulusText*/
|
|
2320
|
-
|
|
2323
|
+
2048)
|
|
2321
2324
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2322
|
-
ctx2[
|
|
2323
|
-
if (dirty[0] & /*stimulusTextWidth*/
|
|
2324
|
-
|
|
2325
|
-
commonstringtohtml_changes.otherClass = "text-stimulus py-2 " + /*
|
|
2326
|
-
ctx2[
|
|
2325
|
+
ctx2[11];
|
|
2326
|
+
if (dirty[0] & /*shouldUseFullWidth, stimulusTextWidth*/
|
|
2327
|
+
32784)
|
|
2328
|
+
commonstringtohtml_changes.otherClass = "text-stimulus py-2 " + /*shouldUseFullWidth*/
|
|
2329
|
+
(ctx2[4]() ? "w-full" : (
|
|
2330
|
+
/*stimulusTextWidth*/
|
|
2331
|
+
ctx2[15]
|
|
2332
|
+
));
|
|
2327
2333
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2328
2334
|
},
|
|
2329
2335
|
i(local) {
|
|
@@ -2350,23 +2356,23 @@
|
|
|
2350
2356
|
props: {
|
|
2351
2357
|
fileType: (
|
|
2352
2358
|
/*fileType*/
|
|
2353
|
-
ctx[
|
|
2359
|
+
ctx[6]
|
|
2354
2360
|
),
|
|
2355
2361
|
fileUrl: (
|
|
2356
2362
|
/*fileUrl*/
|
|
2357
|
-
ctx[
|
|
2363
|
+
ctx[5]
|
|
2358
2364
|
),
|
|
2359
2365
|
altText: (
|
|
2360
2366
|
/*altText*/
|
|
2361
|
-
ctx[
|
|
2367
|
+
ctx[8]
|
|
2362
2368
|
),
|
|
2363
2369
|
longDescription: (
|
|
2364
2370
|
/*longDescription*/
|
|
2365
|
-
ctx[
|
|
2371
|
+
ctx[9]
|
|
2366
2372
|
),
|
|
2367
2373
|
fileCaption: (
|
|
2368
2374
|
/*caption*/
|
|
2369
|
-
ctx[
|
|
2375
|
+
ctx[10]
|
|
2370
2376
|
)
|
|
2371
2377
|
}
|
|
2372
2378
|
});
|
|
@@ -2375,11 +2381,11 @@
|
|
|
2375
2381
|
div = element("div");
|
|
2376
2382
|
create_component(commonmedia.$$.fragment);
|
|
2377
2383
|
attr(div, "class", div_class_value = /*dynamicInteractionWidth*/
|
|
2378
|
-
ctx[
|
|
2379
|
-
(ctx[
|
|
2380
|
-
ctx[
|
|
2381
|
-
(ctx[
|
|
2382
|
-
ctx[
|
|
2384
|
+
ctx[16] + " " + /*showTextAlignmentInline*/
|
|
2385
|
+
(ctx[20] && /*showStimulusLayoutMediaFirst*/
|
|
2386
|
+
ctx[22] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
|
|
2387
|
+
(ctx[20] && /*showStimulusLayoutTextFirst*/
|
|
2388
|
+
ctx[23] ? "" : "pt-6"));
|
|
2383
2389
|
},
|
|
2384
2390
|
m(target, anchor) {
|
|
2385
2391
|
insert(target, div, anchor);
|
|
@@ -2389,33 +2395,33 @@
|
|
|
2389
2395
|
p(ctx2, dirty) {
|
|
2390
2396
|
const commonmedia_changes = {};
|
|
2391
2397
|
if (dirty[0] & /*fileType*/
|
|
2392
|
-
|
|
2398
|
+
64)
|
|
2393
2399
|
commonmedia_changes.fileType = /*fileType*/
|
|
2394
|
-
ctx2[
|
|
2400
|
+
ctx2[6];
|
|
2395
2401
|
if (dirty[0] & /*fileUrl*/
|
|
2396
|
-
|
|
2402
|
+
32)
|
|
2397
2403
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2398
|
-
ctx2[
|
|
2404
|
+
ctx2[5];
|
|
2399
2405
|
if (dirty[0] & /*altText*/
|
|
2400
|
-
|
|
2406
|
+
256)
|
|
2401
2407
|
commonmedia_changes.altText = /*altText*/
|
|
2402
|
-
ctx2[
|
|
2408
|
+
ctx2[8];
|
|
2403
2409
|
if (dirty[0] & /*longDescription*/
|
|
2404
|
-
|
|
2410
|
+
512)
|
|
2405
2411
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2406
|
-
ctx2[
|
|
2412
|
+
ctx2[9];
|
|
2407
2413
|
if (dirty[0] & /*caption*/
|
|
2408
|
-
|
|
2414
|
+
1024)
|
|
2409
2415
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2410
|
-
ctx2[
|
|
2416
|
+
ctx2[10];
|
|
2411
2417
|
commonmedia.$set(commonmedia_changes);
|
|
2412
2418
|
if (!current || dirty[0] & /*dynamicInteractionWidth*/
|
|
2413
|
-
|
|
2414
|
-
ctx2[
|
|
2415
|
-
(ctx2[
|
|
2416
|
-
ctx2[
|
|
2417
|
-
(ctx2[
|
|
2418
|
-
ctx2[
|
|
2419
|
+
65536 && div_class_value !== (div_class_value = /*dynamicInteractionWidth*/
|
|
2420
|
+
ctx2[16] + " " + /*showTextAlignmentInline*/
|
|
2421
|
+
(ctx2[20] && /*showStimulusLayoutMediaFirst*/
|
|
2422
|
+
ctx2[22] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
|
|
2423
|
+
(ctx2[20] && /*showStimulusLayoutTextFirst*/
|
|
2424
|
+
ctx2[23] ? "" : "pt-6"))) {
|
|
2419
2425
|
attr(div, "class", div_class_value);
|
|
2420
2426
|
}
|
|
2421
2427
|
},
|
|
@@ -2444,10 +2450,13 @@
|
|
|
2444
2450
|
props: {
|
|
2445
2451
|
htmlString: (
|
|
2446
2452
|
/*stimulusText*/
|
|
2447
|
-
ctx[
|
|
2453
|
+
ctx[11]
|
|
2448
2454
|
),
|
|
2449
|
-
otherClass: "text-stimulus py-2 " + /*
|
|
2450
|
-
ctx[
|
|
2455
|
+
otherClass: "text-stimulus py-2 " + /*shouldUseFullWidth*/
|
|
2456
|
+
(ctx[4]() ? "w-full" : (
|
|
2457
|
+
/*stimulusTextWidth*/
|
|
2458
|
+
ctx[15]
|
|
2459
|
+
))
|
|
2451
2460
|
}
|
|
2452
2461
|
});
|
|
2453
2462
|
return {
|
|
@@ -2461,13 +2470,16 @@
|
|
|
2461
2470
|
p(ctx2, dirty) {
|
|
2462
2471
|
const commonstringtohtml_changes = {};
|
|
2463
2472
|
if (dirty[0] & /*stimulusText*/
|
|
2464
|
-
|
|
2473
|
+
2048)
|
|
2465
2474
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2466
|
-
ctx2[
|
|
2467
|
-
if (dirty[0] & /*stimulusTextWidth*/
|
|
2468
|
-
|
|
2469
|
-
commonstringtohtml_changes.otherClass = "text-stimulus py-2 " + /*
|
|
2470
|
-
ctx2[
|
|
2475
|
+
ctx2[11];
|
|
2476
|
+
if (dirty[0] & /*shouldUseFullWidth, stimulusTextWidth*/
|
|
2477
|
+
32784)
|
|
2478
|
+
commonstringtohtml_changes.otherClass = "text-stimulus py-2 " + /*shouldUseFullWidth*/
|
|
2479
|
+
(ctx2[4]() ? "w-full" : (
|
|
2480
|
+
/*stimulusTextWidth*/
|
|
2481
|
+
ctx2[15]
|
|
2482
|
+
));
|
|
2471
2483
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2472
2484
|
},
|
|
2473
2485
|
i(local) {
|
|
@@ -2495,10 +2507,10 @@
|
|
|
2495
2507
|
ctx[1]
|
|
2496
2508
|
),
|
|
2497
2509
|
otherClass: "item-heading prompt " + /*dynamicInteractionWidth*/
|
|
2498
|
-
ctx[
|
|
2510
|
+
ctx[16],
|
|
2499
2511
|
htmlHeading: (
|
|
2500
2512
|
/*promptRubricHeaderElem*/
|
|
2501
|
-
ctx[
|
|
2513
|
+
ctx[24]
|
|
2502
2514
|
)
|
|
2503
2515
|
}
|
|
2504
2516
|
});
|
|
@@ -2517,9 +2529,9 @@
|
|
|
2517
2529
|
commonstringtohtml_changes.htmlString = /*prompt*/
|
|
2518
2530
|
ctx2[1];
|
|
2519
2531
|
if (dirty[0] & /*dynamicInteractionWidth*/
|
|
2520
|
-
|
|
2532
|
+
65536)
|
|
2521
2533
|
commonstringtohtml_changes.otherClass = "item-heading prompt " + /*dynamicInteractionWidth*/
|
|
2522
|
-
ctx2[
|
|
2534
|
+
ctx2[16];
|
|
2523
2535
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2524
2536
|
},
|
|
2525
2537
|
i(local) {
|
|
@@ -2544,10 +2556,9 @@
|
|
|
2544
2556
|
props: {
|
|
2545
2557
|
htmlString: (
|
|
2546
2558
|
/*stimulusText*/
|
|
2547
|
-
ctx[
|
|
2559
|
+
ctx[11]
|
|
2548
2560
|
),
|
|
2549
|
-
otherClass: "text-stimulus pb-0 lg:hidden
|
|
2550
|
-
ctx[14]
|
|
2561
|
+
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
2551
2562
|
}
|
|
2552
2563
|
});
|
|
2553
2564
|
return {
|
|
@@ -2561,13 +2572,9 @@
|
|
|
2561
2572
|
p(ctx2, dirty) {
|
|
2562
2573
|
const commonstringtohtml_changes = {};
|
|
2563
2574
|
if (dirty[0] & /*stimulusText*/
|
|
2564
|
-
|
|
2575
|
+
2048)
|
|
2565
2576
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2566
|
-
ctx2[
|
|
2567
|
-
if (dirty[0] & /*stimulusTextWidth*/
|
|
2568
|
-
16384)
|
|
2569
|
-
commonstringtohtml_changes.otherClass = "text-stimulus pb-0 lg:hidden " + /*stimulusTextWidth*/
|
|
2570
|
-
ctx2[14];
|
|
2577
|
+
ctx2[11];
|
|
2571
2578
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2572
2579
|
},
|
|
2573
2580
|
i(local) {
|
|
@@ -2594,23 +2601,23 @@
|
|
|
2594
2601
|
props: {
|
|
2595
2602
|
fileType: (
|
|
2596
2603
|
/*fileType*/
|
|
2597
|
-
ctx[
|
|
2604
|
+
ctx[6]
|
|
2598
2605
|
),
|
|
2599
2606
|
fileUrl: (
|
|
2600
2607
|
/*fileUrl*/
|
|
2601
|
-
ctx[
|
|
2608
|
+
ctx[5]
|
|
2602
2609
|
),
|
|
2603
2610
|
altText: (
|
|
2604
2611
|
/*altText*/
|
|
2605
|
-
ctx[
|
|
2612
|
+
ctx[8]
|
|
2606
2613
|
),
|
|
2607
2614
|
longDescription: (
|
|
2608
2615
|
/*longDescription*/
|
|
2609
|
-
ctx[
|
|
2616
|
+
ctx[9]
|
|
2610
2617
|
),
|
|
2611
2618
|
fileCaption: (
|
|
2612
2619
|
/*caption*/
|
|
2613
|
-
ctx[
|
|
2620
|
+
ctx[10]
|
|
2614
2621
|
)
|
|
2615
2622
|
}
|
|
2616
2623
|
});
|
|
@@ -2618,10 +2625,9 @@
|
|
|
2618
2625
|
c() {
|
|
2619
2626
|
div = element("div");
|
|
2620
2627
|
create_component(commonmedia.$$.fragment);
|
|
2621
|
-
attr(div, "class", div_class_value = "lg:hidden " + /*
|
|
2622
|
-
ctx[
|
|
2623
|
-
|
|
2624
|
-
ctx[22] ? "pt-4" : "pt-6"));
|
|
2628
|
+
attr(div, "class", div_class_value = "lg:hidden " + /*showTextAlignmentDefault*/
|
|
2629
|
+
(ctx[19] && /*showStimulusLayoutTextFirst*/
|
|
2630
|
+
ctx[23] ? "pt-4" : "pt-6"));
|
|
2625
2631
|
},
|
|
2626
2632
|
m(target, anchor) {
|
|
2627
2633
|
insert(target, div, anchor);
|
|
@@ -2631,33 +2637,26 @@
|
|
|
2631
2637
|
p(ctx2, dirty) {
|
|
2632
2638
|
const commonmedia_changes = {};
|
|
2633
2639
|
if (dirty[0] & /*fileType*/
|
|
2634
|
-
|
|
2640
|
+
64)
|
|
2635
2641
|
commonmedia_changes.fileType = /*fileType*/
|
|
2636
|
-
ctx2[
|
|
2642
|
+
ctx2[6];
|
|
2637
2643
|
if (dirty[0] & /*fileUrl*/
|
|
2638
|
-
|
|
2644
|
+
32)
|
|
2639
2645
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2640
|
-
ctx2[
|
|
2646
|
+
ctx2[5];
|
|
2641
2647
|
if (dirty[0] & /*altText*/
|
|
2642
|
-
|
|
2648
|
+
256)
|
|
2643
2649
|
commonmedia_changes.altText = /*altText*/
|
|
2644
|
-
ctx2[
|
|
2650
|
+
ctx2[8];
|
|
2645
2651
|
if (dirty[0] & /*longDescription*/
|
|
2646
|
-
|
|
2652
|
+
512)
|
|
2647
2653
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2648
|
-
ctx2[
|
|
2654
|
+
ctx2[9];
|
|
2649
2655
|
if (dirty[0] & /*caption*/
|
|
2650
|
-
|
|
2656
|
+
1024)
|
|
2651
2657
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2652
|
-
ctx2[
|
|
2658
|
+
ctx2[10];
|
|
2653
2659
|
commonmedia.$set(commonmedia_changes);
|
|
2654
|
-
if (!current || dirty[0] & /*dynamicInteractionWidth*/
|
|
2655
|
-
32768 && div_class_value !== (div_class_value = "lg:hidden " + /*dynamicInteractionWidth*/
|
|
2656
|
-
ctx2[15] + " " + /*showTextAlignmentDefault*/
|
|
2657
|
-
(ctx2[18] && /*showStimulusLayoutTextFirst*/
|
|
2658
|
-
ctx2[22] ? "pt-4" : "pt-6"))) {
|
|
2659
|
-
attr(div, "class", div_class_value);
|
|
2660
|
-
}
|
|
2661
2660
|
},
|
|
2662
2661
|
i(local) {
|
|
2663
2662
|
if (current)
|
|
@@ -2684,10 +2683,9 @@
|
|
|
2684
2683
|
props: {
|
|
2685
2684
|
htmlString: (
|
|
2686
2685
|
/*stimulusText*/
|
|
2687
|
-
ctx[
|
|
2686
|
+
ctx[11]
|
|
2688
2687
|
),
|
|
2689
|
-
otherClass: "text-stimulus pb-0 lg:hidden
|
|
2690
|
-
ctx[15]
|
|
2688
|
+
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
2691
2689
|
}
|
|
2692
2690
|
});
|
|
2693
2691
|
return {
|
|
@@ -2701,13 +2699,9 @@
|
|
|
2701
2699
|
p(ctx2, dirty) {
|
|
2702
2700
|
const commonstringtohtml_changes = {};
|
|
2703
2701
|
if (dirty[0] & /*stimulusText*/
|
|
2704
|
-
|
|
2702
|
+
2048)
|
|
2705
2703
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2706
|
-
ctx2[
|
|
2707
|
-
if (dirty[0] & /*dynamicInteractionWidth*/
|
|
2708
|
-
32768)
|
|
2709
|
-
commonstringtohtml_changes.otherClass = "text-stimulus pb-0 lg:hidden " + /*dynamicInteractionWidth*/
|
|
2710
|
-
ctx2[15];
|
|
2704
|
+
ctx2[11];
|
|
2711
2705
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2712
2706
|
},
|
|
2713
2707
|
i(local) {
|
|
@@ -2733,17 +2727,17 @@
|
|
|
2733
2727
|
let current;
|
|
2734
2728
|
let if_block0 = (
|
|
2735
2729
|
/*showTextAlignmentDefault*/
|
|
2736
|
-
ctx[
|
|
2737
|
-
ctx[
|
|
2730
|
+
ctx[19] && /*showStimulusLayoutTextFirst*/
|
|
2731
|
+
ctx[23] && create_if_block_32(ctx)
|
|
2738
2732
|
);
|
|
2739
2733
|
let if_block1 = (
|
|
2740
2734
|
/*showAssetAlignmentDefault*/
|
|
2741
|
-
ctx[
|
|
2735
|
+
ctx[18] && create_if_block_22(ctx)
|
|
2742
2736
|
);
|
|
2743
2737
|
let if_block2 = (
|
|
2744
2738
|
/*showTextAlignmentDefault*/
|
|
2745
|
-
ctx[
|
|
2746
|
-
ctx[
|
|
2739
|
+
ctx[19] && /*showStimulusLayoutMediaFirst*/
|
|
2740
|
+
ctx[22] && create_if_block_12(ctx)
|
|
2747
2741
|
);
|
|
2748
2742
|
return {
|
|
2749
2743
|
c() {
|
|
@@ -2763,7 +2757,7 @@
|
|
|
2763
2757
|
div1,
|
|
2764
2758
|
"margin-top",
|
|
2765
2759
|
/*dynamicMarginTop*/
|
|
2766
|
-
ctx[
|
|
2760
|
+
ctx[14]
|
|
2767
2761
|
);
|
|
2768
2762
|
},
|
|
2769
2763
|
m(target, anchor) {
|
|
@@ -2783,28 +2777,28 @@
|
|
|
2783
2777
|
p(ctx2, dirty) {
|
|
2784
2778
|
if (
|
|
2785
2779
|
/*showTextAlignmentDefault*/
|
|
2786
|
-
ctx2[
|
|
2787
|
-
ctx2[
|
|
2780
|
+
ctx2[19] && /*showStimulusLayoutTextFirst*/
|
|
2781
|
+
ctx2[23]
|
|
2788
2782
|
)
|
|
2789
2783
|
if_block0.p(ctx2, dirty);
|
|
2790
2784
|
if (
|
|
2791
2785
|
/*showAssetAlignmentDefault*/
|
|
2792
|
-
ctx2[
|
|
2786
|
+
ctx2[18]
|
|
2793
2787
|
)
|
|
2794
2788
|
if_block1.p(ctx2, dirty);
|
|
2795
2789
|
if (
|
|
2796
2790
|
/*showTextAlignmentDefault*/
|
|
2797
|
-
ctx2[
|
|
2798
|
-
ctx2[
|
|
2791
|
+
ctx2[19] && /*showStimulusLayoutMediaFirst*/
|
|
2792
|
+
ctx2[22]
|
|
2799
2793
|
)
|
|
2800
2794
|
if_block2.p(ctx2, dirty);
|
|
2801
2795
|
if (!current || dirty[0] & /*dynamicMarginTop*/
|
|
2802
|
-
|
|
2796
|
+
16384) {
|
|
2803
2797
|
set_style(
|
|
2804
2798
|
div1,
|
|
2805
2799
|
"margin-top",
|
|
2806
2800
|
/*dynamicMarginTop*/
|
|
2807
|
-
ctx2[
|
|
2801
|
+
ctx2[14]
|
|
2808
2802
|
);
|
|
2809
2803
|
}
|
|
2810
2804
|
},
|
|
@@ -2843,7 +2837,7 @@
|
|
|
2843
2837
|
props: {
|
|
2844
2838
|
htmlString: (
|
|
2845
2839
|
/*stimulusText*/
|
|
2846
|
-
ctx[
|
|
2840
|
+
ctx[11]
|
|
2847
2841
|
),
|
|
2848
2842
|
otherClass: "text-stimulus pt-0"
|
|
2849
2843
|
}
|
|
@@ -2859,9 +2853,9 @@
|
|
|
2859
2853
|
p(ctx2, dirty) {
|
|
2860
2854
|
const commonstringtohtml_changes = {};
|
|
2861
2855
|
if (dirty[0] & /*stimulusText*/
|
|
2862
|
-
|
|
2856
|
+
2048)
|
|
2863
2857
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2864
|
-
ctx2[
|
|
2858
|
+
ctx2[11];
|
|
2865
2859
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2866
2860
|
},
|
|
2867
2861
|
i(local) {
|
|
@@ -2886,27 +2880,27 @@
|
|
|
2886
2880
|
props: {
|
|
2887
2881
|
fileType: (
|
|
2888
2882
|
/*fileType*/
|
|
2889
|
-
ctx[
|
|
2883
|
+
ctx[6]
|
|
2890
2884
|
),
|
|
2891
2885
|
fileUrl: (
|
|
2892
2886
|
/*fileUrl*/
|
|
2893
|
-
ctx[
|
|
2887
|
+
ctx[5]
|
|
2894
2888
|
),
|
|
2895
2889
|
altText: (
|
|
2896
2890
|
/*altText*/
|
|
2897
|
-
ctx[
|
|
2891
|
+
ctx[8]
|
|
2898
2892
|
),
|
|
2899
2893
|
longDescription: (
|
|
2900
2894
|
/*longDescription*/
|
|
2901
|
-
ctx[
|
|
2895
|
+
ctx[9]
|
|
2902
2896
|
),
|
|
2903
2897
|
handleImageLoad: (
|
|
2904
2898
|
/*handleImageLoad*/
|
|
2905
|
-
ctx[
|
|
2899
|
+
ctx[25]
|
|
2906
2900
|
),
|
|
2907
2901
|
fileCaption: (
|
|
2908
2902
|
/*caption*/
|
|
2909
|
-
ctx[
|
|
2903
|
+
ctx[10]
|
|
2910
2904
|
)
|
|
2911
2905
|
}
|
|
2912
2906
|
});
|
|
@@ -2921,25 +2915,25 @@
|
|
|
2921
2915
|
p(ctx2, dirty) {
|
|
2922
2916
|
const commonmedia_changes = {};
|
|
2923
2917
|
if (dirty[0] & /*fileType*/
|
|
2924
|
-
|
|
2918
|
+
64)
|
|
2925
2919
|
commonmedia_changes.fileType = /*fileType*/
|
|
2926
|
-
ctx2[
|
|
2920
|
+
ctx2[6];
|
|
2927
2921
|
if (dirty[0] & /*fileUrl*/
|
|
2928
|
-
|
|
2922
|
+
32)
|
|
2929
2923
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2930
|
-
ctx2[
|
|
2924
|
+
ctx2[5];
|
|
2931
2925
|
if (dirty[0] & /*altText*/
|
|
2932
|
-
|
|
2926
|
+
256)
|
|
2933
2927
|
commonmedia_changes.altText = /*altText*/
|
|
2934
|
-
ctx2[
|
|
2928
|
+
ctx2[8];
|
|
2935
2929
|
if (dirty[0] & /*longDescription*/
|
|
2936
|
-
|
|
2930
|
+
512)
|
|
2937
2931
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2938
|
-
ctx2[
|
|
2932
|
+
ctx2[9];
|
|
2939
2933
|
if (dirty[0] & /*caption*/
|
|
2940
|
-
|
|
2934
|
+
1024)
|
|
2941
2935
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2942
|
-
ctx2[
|
|
2936
|
+
ctx2[10];
|
|
2943
2937
|
commonmedia.$set(commonmedia_changes);
|
|
2944
2938
|
},
|
|
2945
2939
|
i(local) {
|
|
@@ -2964,10 +2958,10 @@
|
|
|
2964
2958
|
props: {
|
|
2965
2959
|
htmlString: (
|
|
2966
2960
|
/*stimulusText*/
|
|
2967
|
-
ctx[
|
|
2961
|
+
ctx[11]
|
|
2968
2962
|
),
|
|
2969
2963
|
otherClass: "text-stimulus " + (!/*showAssetAlignmentDefault*/
|
|
2970
|
-
ctx[
|
|
2964
|
+
ctx[18] ? "pt-0" : "")
|
|
2971
2965
|
}
|
|
2972
2966
|
});
|
|
2973
2967
|
return {
|
|
@@ -2981,9 +2975,9 @@
|
|
|
2981
2975
|
p(ctx2, dirty) {
|
|
2982
2976
|
const commonstringtohtml_changes = {};
|
|
2983
2977
|
if (dirty[0] & /*stimulusText*/
|
|
2984
|
-
|
|
2978
|
+
2048)
|
|
2985
2979
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2986
|
-
ctx2[
|
|
2980
|
+
ctx2[11];
|
|
2987
2981
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2988
2982
|
},
|
|
2989
2983
|
i(local) {
|
|
@@ -3030,18 +3024,18 @@
|
|
|
3030
3024
|
);
|
|
3031
3025
|
let if_block1 = (
|
|
3032
3026
|
/*showTextAlignmentInline*/
|
|
3033
|
-
ctx[
|
|
3034
|
-
ctx[
|
|
3027
|
+
ctx[20] && /*showStimulusLayoutTextFirst*/
|
|
3028
|
+
ctx[23] && create_if_block_10(ctx)
|
|
3035
3029
|
);
|
|
3036
3030
|
let if_block2 = (
|
|
3037
3031
|
/*showAsset*/
|
|
3038
|
-
ctx[
|
|
3039
|
-
ctx[
|
|
3032
|
+
ctx[17] && /*fileAlignment*/
|
|
3033
|
+
ctx[7] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
|
|
3040
3034
|
);
|
|
3041
3035
|
let if_block3 = (
|
|
3042
3036
|
/*showTextAlignmentInline*/
|
|
3043
|
-
ctx[
|
|
3044
|
-
ctx[
|
|
3037
|
+
ctx[20] && /*showStimulusLayoutMediaFirst*/
|
|
3038
|
+
ctx[22] && create_if_block_8(ctx)
|
|
3045
3039
|
);
|
|
3046
3040
|
let if_block4 = (
|
|
3047
3041
|
/*prompt*/
|
|
@@ -3049,17 +3043,17 @@
|
|
|
3049
3043
|
);
|
|
3050
3044
|
let if_block5 = (
|
|
3051
3045
|
/*showTextAlignmentDefault*/
|
|
3052
|
-
ctx[
|
|
3053
|
-
ctx[
|
|
3046
|
+
ctx[19] && /*showStimulusLayoutTextFirst*/
|
|
3047
|
+
ctx[23] && create_if_block_6(ctx)
|
|
3054
3048
|
);
|
|
3055
3049
|
let if_block6 = (
|
|
3056
3050
|
/*showAssetAlignmentDefault*/
|
|
3057
|
-
ctx[
|
|
3051
|
+
ctx[18] && create_if_block_5(ctx)
|
|
3058
3052
|
);
|
|
3059
3053
|
let if_block7 = (
|
|
3060
3054
|
/*showTextAlignmentDefault*/
|
|
3061
|
-
ctx[
|
|
3062
|
-
ctx[
|
|
3055
|
+
ctx[19] && /*showStimulusLayoutMediaFirst*/
|
|
3056
|
+
ctx[22] && create_if_block_4(ctx)
|
|
3063
3057
|
);
|
|
3064
3058
|
const default_slot_template = (
|
|
3065
3059
|
/*#slots*/
|
|
@@ -3074,7 +3068,7 @@
|
|
|
3074
3068
|
);
|
|
3075
3069
|
let if_block8 = (
|
|
3076
3070
|
/*showAlignmentDefault*/
|
|
3077
|
-
ctx[
|
|
3071
|
+
ctx[21] && create_if_block4(ctx)
|
|
3078
3072
|
);
|
|
3079
3073
|
return {
|
|
3080
3074
|
c() {
|
|
@@ -3112,10 +3106,10 @@
|
|
|
3112
3106
|
if (if_block8)
|
|
3113
3107
|
if_block8.c();
|
|
3114
3108
|
attr(div0, "class", div0_class_value = "divider my-6 " + /*dynamicInteractionWidth*/
|
|
3115
|
-
ctx[
|
|
3109
|
+
ctx[16] + " " + (!/*hasDivider*/
|
|
3116
3110
|
ctx[2] ? "hidden" : ""));
|
|
3117
3111
|
attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
|
|
3118
|
-
(ctx[
|
|
3112
|
+
(ctx[21] ? "lg:basis-1/2 lg:max-w-[50%]" : "w-full"));
|
|
3119
3113
|
attr(div2, "class", "max-w-full flex");
|
|
3120
3114
|
},
|
|
3121
3115
|
m(target, anchor) {
|
|
@@ -3191,19 +3185,19 @@
|
|
|
3191
3185
|
}
|
|
3192
3186
|
if (
|
|
3193
3187
|
/*showTextAlignmentInline*/
|
|
3194
|
-
ctx2[
|
|
3195
|
-
ctx2[
|
|
3188
|
+
ctx2[20] && /*showStimulusLayoutTextFirst*/
|
|
3189
|
+
ctx2[23]
|
|
3196
3190
|
)
|
|
3197
3191
|
if_block1.p(ctx2, dirty);
|
|
3198
3192
|
if (
|
|
3199
3193
|
/*showAsset*/
|
|
3200
|
-
ctx2[
|
|
3201
|
-
ctx2[
|
|
3194
|
+
ctx2[17] && /*fileAlignment*/
|
|
3195
|
+
ctx2[7] === ASSET_ALIGNMENT_INLINE
|
|
3202
3196
|
) {
|
|
3203
3197
|
if (if_block2) {
|
|
3204
3198
|
if_block2.p(ctx2, dirty);
|
|
3205
3199
|
if (dirty[0] & /*fileAlignment*/
|
|
3206
|
-
|
|
3200
|
+
128) {
|
|
3207
3201
|
transition_in(if_block2, 1);
|
|
3208
3202
|
}
|
|
3209
3203
|
} else {
|
|
@@ -3221,8 +3215,8 @@
|
|
|
3221
3215
|
}
|
|
3222
3216
|
if (
|
|
3223
3217
|
/*showTextAlignmentInline*/
|
|
3224
|
-
ctx2[
|
|
3225
|
-
ctx2[
|
|
3218
|
+
ctx2[20] && /*showStimulusLayoutMediaFirst*/
|
|
3219
|
+
ctx2[22]
|
|
3226
3220
|
)
|
|
3227
3221
|
if_block3.p(ctx2, dirty);
|
|
3228
3222
|
if (
|
|
@@ -3250,30 +3244,30 @@
|
|
|
3250
3244
|
}
|
|
3251
3245
|
if (
|
|
3252
3246
|
/*showTextAlignmentDefault*/
|
|
3253
|
-
ctx2[
|
|
3254
|
-
ctx2[
|
|
3247
|
+
ctx2[19] && /*showStimulusLayoutTextFirst*/
|
|
3248
|
+
ctx2[23]
|
|
3255
3249
|
)
|
|
3256
3250
|
if_block5.p(ctx2, dirty);
|
|
3257
3251
|
if (
|
|
3258
3252
|
/*showAssetAlignmentDefault*/
|
|
3259
|
-
ctx2[
|
|
3253
|
+
ctx2[18]
|
|
3260
3254
|
)
|
|
3261
3255
|
if_block6.p(ctx2, dirty);
|
|
3262
3256
|
if (
|
|
3263
3257
|
/*showTextAlignmentDefault*/
|
|
3264
|
-
ctx2[
|
|
3265
|
-
ctx2[
|
|
3258
|
+
ctx2[19] && /*showStimulusLayoutMediaFirst*/
|
|
3259
|
+
ctx2[22]
|
|
3266
3260
|
)
|
|
3267
3261
|
if_block7.p(ctx2, dirty);
|
|
3268
3262
|
if (!current || dirty[0] & /*dynamicInteractionWidth, hasDivider*/
|
|
3269
|
-
|
|
3270
|
-
ctx2[
|
|
3263
|
+
65540 && div0_class_value !== (div0_class_value = "divider my-6 " + /*dynamicInteractionWidth*/
|
|
3264
|
+
ctx2[16] + " " + (!/*hasDivider*/
|
|
3271
3265
|
ctx2[2] ? "hidden" : ""))) {
|
|
3272
3266
|
attr(div0, "class", div0_class_value);
|
|
3273
3267
|
}
|
|
3274
3268
|
if (default_slot) {
|
|
3275
3269
|
if (default_slot.p && (!current || dirty[0] & /*$$scope, dynamicInteractionWidth*/
|
|
3276
|
-
|
|
3270
|
+
268500992)) {
|
|
3277
3271
|
update_slot_base(
|
|
3278
3272
|
default_slot,
|
|
3279
3273
|
default_slot_template,
|
|
@@ -3296,7 +3290,7 @@
|
|
|
3296
3290
|
}
|
|
3297
3291
|
if (
|
|
3298
3292
|
/*showAlignmentDefault*/
|
|
3299
|
-
ctx2[
|
|
3293
|
+
ctx2[21]
|
|
3300
3294
|
)
|
|
3301
3295
|
if_block8.p(ctx2, dirty);
|
|
3302
3296
|
},
|
|
@@ -3428,9 +3422,9 @@
|
|
|
3428
3422
|
const viewportHeight = window.innerHeight;
|
|
3429
3423
|
const contentHeight = containerElement.scrollHeight;
|
|
3430
3424
|
const calculatedMargin = Math.max(0, (viewportHeight - contentHeight) / 2);
|
|
3431
|
-
$$invalidate(
|
|
3425
|
+
$$invalidate(14, dynamicMarginTop = `${calculatedMargin - EAT_HEADER_OFFSET}px`);
|
|
3432
3426
|
} else {
|
|
3433
|
-
$$invalidate(
|
|
3427
|
+
$$invalidate(14, dynamicMarginTop = "0px");
|
|
3434
3428
|
}
|
|
3435
3429
|
};
|
|
3436
3430
|
const handleImageLoad = () => {
|
|
@@ -3447,9 +3441,9 @@
|
|
|
3447
3441
|
const desiredWidth = maxTableWidth + STIMULUS_TEXT_TABLE_BUFFER;
|
|
3448
3442
|
const clampedWidth = Math.min(Math.max(desiredWidth, minWidth), screenWidth);
|
|
3449
3443
|
if (clampedWidth > screenWidth * EAT_SCREEN_HALF_WIDTH_RATIO) {
|
|
3450
|
-
$$invalidate(
|
|
3444
|
+
$$invalidate(15, stimulusTextWidth = `${clampedWidth}px`);
|
|
3451
3445
|
} else {
|
|
3452
|
-
$$invalidate(
|
|
3446
|
+
$$invalidate(15, stimulusTextWidth = "w-1/2");
|
|
3453
3447
|
}
|
|
3454
3448
|
};
|
|
3455
3449
|
const onResize = () => {
|
|
@@ -3476,13 +3470,13 @@
|
|
|
3476
3470
|
function div1_binding($$value) {
|
|
3477
3471
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
3478
3472
|
containerElement = $$value;
|
|
3479
|
-
$$invalidate(
|
|
3473
|
+
$$invalidate(12, containerElement);
|
|
3480
3474
|
});
|
|
3481
3475
|
}
|
|
3482
3476
|
function div2_binding($$value) {
|
|
3483
3477
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
3484
3478
|
promptBodyContainer = $$value;
|
|
3485
|
-
$$invalidate(
|
|
3479
|
+
$$invalidate(13, promptBodyContainer);
|
|
3486
3480
|
});
|
|
3487
3481
|
}
|
|
3488
3482
|
$$self.$$set = ($$props2) => {
|
|
@@ -3491,11 +3485,11 @@
|
|
|
3491
3485
|
if ("prompt" in $$props2)
|
|
3492
3486
|
$$invalidate(1, prompt = $$props2.prompt);
|
|
3493
3487
|
if ("interactionType" in $$props2)
|
|
3494
|
-
$$invalidate(
|
|
3488
|
+
$$invalidate(26, interactionType = $$props2.interactionType);
|
|
3495
3489
|
if ("hasDivider" in $$props2)
|
|
3496
3490
|
$$invalidate(2, hasDivider = $$props2.hasDivider);
|
|
3497
3491
|
if ("stimulus" in $$props2)
|
|
3498
|
-
$$invalidate(
|
|
3492
|
+
$$invalidate(27, stimulus = $$props2.stimulus);
|
|
3499
3493
|
if ("$$scope" in $$props2)
|
|
3500
3494
|
$$invalidate(28, $$scope = $$props2.$$scope);
|
|
3501
3495
|
};
|
|
@@ -3503,14 +3497,14 @@
|
|
|
3503
3497
|
if ($$self.$$.dirty[0] & /*innerWidth*/
|
|
3504
3498
|
8) {
|
|
3505
3499
|
$:
|
|
3506
|
-
$$invalidate(
|
|
3500
|
+
$$invalidate(4, shouldUseFullWidth = () => {
|
|
3507
3501
|
return !!showAsset && showAssetAlignmentDefault || !!showTextStimulus && showTextAlignmentDefault || innerWidth < SCREEN_LG;
|
|
3508
3502
|
});
|
|
3509
3503
|
}
|
|
3510
3504
|
if ($$self.$$.dirty[0] & /*shouldUseFullWidth*/
|
|
3511
|
-
|
|
3505
|
+
16) {
|
|
3512
3506
|
$:
|
|
3513
|
-
$$invalidate(
|
|
3507
|
+
$$invalidate(16, dynamicInteractionWidth = interactionWidthValue === "50%" && !shouldUseFullWidth() ? "w-1/2" : "w-full");
|
|
3514
3508
|
}
|
|
3515
3509
|
};
|
|
3516
3510
|
$:
|
|
@@ -3522,6 +3516,7 @@
|
|
|
3522
3516
|
prompt,
|
|
3523
3517
|
hasDivider,
|
|
3524
3518
|
innerWidth,
|
|
3519
|
+
shouldUseFullWidth,
|
|
3525
3520
|
fileUrl,
|
|
3526
3521
|
fileType,
|
|
3527
3522
|
fileAlignment,
|
|
@@ -3545,7 +3540,6 @@
|
|
|
3545
3540
|
handleImageLoad,
|
|
3546
3541
|
interactionType,
|
|
3547
3542
|
stimulus,
|
|
3548
|
-
shouldUseFullWidth,
|
|
3549
3543
|
$$scope,
|
|
3550
3544
|
slots,
|
|
3551
3545
|
onwindowresize,
|
|
@@ -3565,9 +3559,9 @@
|
|
|
3565
3559
|
{
|
|
3566
3560
|
rubric: 0,
|
|
3567
3561
|
prompt: 1,
|
|
3568
|
-
interactionType:
|
|
3562
|
+
interactionType: 26,
|
|
3569
3563
|
hasDivider: 2,
|
|
3570
|
-
stimulus:
|
|
3564
|
+
stimulus: 27
|
|
3571
3565
|
},
|
|
3572
3566
|
null,
|
|
3573
3567
|
[-1, -1]
|
|
@@ -3588,7 +3582,7 @@
|
|
|
3588
3582
|
flush();
|
|
3589
3583
|
}
|
|
3590
3584
|
get interactionType() {
|
|
3591
|
-
return this.$$.ctx[
|
|
3585
|
+
return this.$$.ctx[26];
|
|
3592
3586
|
}
|
|
3593
3587
|
set interactionType(interactionType) {
|
|
3594
3588
|
this.$$set({ interactionType });
|
|
@@ -3602,7 +3596,7 @@
|
|
|
3602
3596
|
flush();
|
|
3603
3597
|
}
|
|
3604
3598
|
get stimulus() {
|
|
3605
|
-
return this.$$.ctx[
|
|
3599
|
+
return this.$$.ctx[27];
|
|
3606
3600
|
}
|
|
3607
3601
|
set stimulus(stimulus) {
|
|
3608
3602
|
this.$$set({ stimulus });
|