eat-js-sdk 1.2.5 → 1.3.0
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 +168 -193
- package/package.json +2 -2
|
@@ -2232,16 +2232,16 @@
|
|
|
2232
2232
|
// src/lib/components/prompt/template/PromptBody.svelte
|
|
2233
2233
|
var { window: window_1 } = globals;
|
|
2234
2234
|
function add_css(target) {
|
|
2235
|
-
append_styles(target, "svelte-
|
|
2235
|
+
append_styles(target, "svelte-1llhmb1", "@media only screen and (min-width: 1196px){.container-class.svelte-1llhmb1{max-width:var(--interactionWidthValue);overflow:visible;position:relative}}");
|
|
2236
2236
|
}
|
|
2237
2237
|
var get_default_slot_changes = (dirty) => ({
|
|
2238
2238
|
dynamicInteractionWidth: dirty[0] & /*dynamicInteractionWidth*/
|
|
2239
|
-
|
|
2239
|
+
32768
|
|
2240
2240
|
});
|
|
2241
2241
|
var get_default_slot_context = (ctx) => ({
|
|
2242
2242
|
dynamicInteractionWidth: (
|
|
2243
2243
|
/*dynamicInteractionWidth*/
|
|
2244
|
-
ctx[
|
|
2244
|
+
ctx[15]
|
|
2245
2245
|
)
|
|
2246
2246
|
});
|
|
2247
2247
|
function create_if_block_11(ctx) {
|
|
@@ -2256,7 +2256,7 @@
|
|
|
2256
2256
|
otherClass: "item-heading mb-4",
|
|
2257
2257
|
htmlHeading: (
|
|
2258
2258
|
/*promptRubricHeaderElem*/
|
|
2259
|
-
ctx[
|
|
2259
|
+
ctx[23]
|
|
2260
2260
|
)
|
|
2261
2261
|
}
|
|
2262
2262
|
});
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
props: {
|
|
2299
2299
|
htmlString: (
|
|
2300
2300
|
/*stimulusText*/
|
|
2301
|
-
ctx[
|
|
2301
|
+
ctx[11]
|
|
2302
2302
|
),
|
|
2303
2303
|
otherClass: "text-stimulus py-2"
|
|
2304
2304
|
}
|
|
@@ -2314,9 +2314,9 @@
|
|
|
2314
2314
|
p(ctx2, dirty) {
|
|
2315
2315
|
const commonstringtohtml_changes = {};
|
|
2316
2316
|
if (dirty[0] & /*stimulusText*/
|
|
2317
|
-
|
|
2317
|
+
2048)
|
|
2318
2318
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2319
|
-
ctx2[
|
|
2319
|
+
ctx2[11];
|
|
2320
2320
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2321
2321
|
},
|
|
2322
2322
|
i(local) {
|
|
@@ -2343,23 +2343,23 @@
|
|
|
2343
2343
|
props: {
|
|
2344
2344
|
fileType: (
|
|
2345
2345
|
/*fileType*/
|
|
2346
|
-
ctx[
|
|
2346
|
+
ctx[6]
|
|
2347
2347
|
),
|
|
2348
2348
|
fileUrl: (
|
|
2349
2349
|
/*fileUrl*/
|
|
2350
|
-
ctx[
|
|
2350
|
+
ctx[5]
|
|
2351
2351
|
),
|
|
2352
2352
|
altText: (
|
|
2353
2353
|
/*altText*/
|
|
2354
|
-
ctx[
|
|
2354
|
+
ctx[8]
|
|
2355
2355
|
),
|
|
2356
2356
|
longDescription: (
|
|
2357
2357
|
/*longDescription*/
|
|
2358
|
-
ctx[
|
|
2358
|
+
ctx[9]
|
|
2359
2359
|
),
|
|
2360
2360
|
fileCaption: (
|
|
2361
2361
|
/*caption*/
|
|
2362
|
-
ctx[
|
|
2362
|
+
ctx[10]
|
|
2363
2363
|
)
|
|
2364
2364
|
}
|
|
2365
2365
|
});
|
|
@@ -2368,10 +2368,10 @@
|
|
|
2368
2368
|
div = element("div");
|
|
2369
2369
|
create_component(commonmedia.$$.fragment);
|
|
2370
2370
|
attr(div, "class", div_class_value = /*showTextAlignmentInline*/
|
|
2371
|
-
(ctx[
|
|
2372
|
-
ctx[
|
|
2373
|
-
(ctx[
|
|
2374
|
-
ctx[
|
|
2371
|
+
(ctx[19] && /*showStimulusLayoutMediaFirst*/
|
|
2372
|
+
ctx[21] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
|
|
2373
|
+
(ctx[19] && /*showStimulusLayoutTextFirst*/
|
|
2374
|
+
ctx[22] ? "" : "pt-6"));
|
|
2375
2375
|
},
|
|
2376
2376
|
m(target, anchor) {
|
|
2377
2377
|
insert(target, div, anchor);
|
|
@@ -2381,25 +2381,25 @@
|
|
|
2381
2381
|
p(ctx2, dirty) {
|
|
2382
2382
|
const commonmedia_changes = {};
|
|
2383
2383
|
if (dirty[0] & /*fileType*/
|
|
2384
|
-
|
|
2384
|
+
64)
|
|
2385
2385
|
commonmedia_changes.fileType = /*fileType*/
|
|
2386
|
-
ctx2[
|
|
2386
|
+
ctx2[6];
|
|
2387
2387
|
if (dirty[0] & /*fileUrl*/
|
|
2388
|
-
|
|
2388
|
+
32)
|
|
2389
2389
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2390
|
-
ctx2[
|
|
2390
|
+
ctx2[5];
|
|
2391
2391
|
if (dirty[0] & /*altText*/
|
|
2392
|
-
|
|
2392
|
+
256)
|
|
2393
2393
|
commonmedia_changes.altText = /*altText*/
|
|
2394
|
-
ctx2[
|
|
2394
|
+
ctx2[8];
|
|
2395
2395
|
if (dirty[0] & /*longDescription*/
|
|
2396
|
-
|
|
2396
|
+
512)
|
|
2397
2397
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2398
|
-
ctx2[
|
|
2398
|
+
ctx2[9];
|
|
2399
2399
|
if (dirty[0] & /*caption*/
|
|
2400
|
-
|
|
2400
|
+
1024)
|
|
2401
2401
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2402
|
-
ctx2[
|
|
2402
|
+
ctx2[10];
|
|
2403
2403
|
commonmedia.$set(commonmedia_changes);
|
|
2404
2404
|
},
|
|
2405
2405
|
i(local) {
|
|
@@ -2427,7 +2427,7 @@
|
|
|
2427
2427
|
props: {
|
|
2428
2428
|
htmlString: (
|
|
2429
2429
|
/*stimulusText*/
|
|
2430
|
-
ctx[
|
|
2430
|
+
ctx[11]
|
|
2431
2431
|
),
|
|
2432
2432
|
otherClass: "text-stimulus py-2"
|
|
2433
2433
|
}
|
|
@@ -2443,9 +2443,9 @@
|
|
|
2443
2443
|
p(ctx2, dirty) {
|
|
2444
2444
|
const commonstringtohtml_changes = {};
|
|
2445
2445
|
if (dirty[0] & /*stimulusText*/
|
|
2446
|
-
|
|
2446
|
+
2048)
|
|
2447
2447
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2448
|
-
ctx2[
|
|
2448
|
+
ctx2[11];
|
|
2449
2449
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2450
2450
|
},
|
|
2451
2451
|
i(local) {
|
|
@@ -2475,7 +2475,7 @@
|
|
|
2475
2475
|
otherClass: "item-heading prompt",
|
|
2476
2476
|
htmlHeading: (
|
|
2477
2477
|
/*promptRubricHeaderElem*/
|
|
2478
|
-
ctx[
|
|
2478
|
+
ctx[23]
|
|
2479
2479
|
)
|
|
2480
2480
|
}
|
|
2481
2481
|
});
|
|
@@ -2517,7 +2517,7 @@
|
|
|
2517
2517
|
props: {
|
|
2518
2518
|
htmlString: (
|
|
2519
2519
|
/*stimulusText*/
|
|
2520
|
-
ctx[
|
|
2520
|
+
ctx[11]
|
|
2521
2521
|
),
|
|
2522
2522
|
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
2523
2523
|
}
|
|
@@ -2533,9 +2533,9 @@
|
|
|
2533
2533
|
p(ctx2, dirty) {
|
|
2534
2534
|
const commonstringtohtml_changes = {};
|
|
2535
2535
|
if (dirty[0] & /*stimulusText*/
|
|
2536
|
-
|
|
2536
|
+
2048)
|
|
2537
2537
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2538
|
-
ctx2[
|
|
2538
|
+
ctx2[11];
|
|
2539
2539
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2540
2540
|
},
|
|
2541
2541
|
i(local) {
|
|
@@ -2562,23 +2562,23 @@
|
|
|
2562
2562
|
props: {
|
|
2563
2563
|
fileType: (
|
|
2564
2564
|
/*fileType*/
|
|
2565
|
-
ctx[
|
|
2565
|
+
ctx[6]
|
|
2566
2566
|
),
|
|
2567
2567
|
fileUrl: (
|
|
2568
2568
|
/*fileUrl*/
|
|
2569
|
-
ctx[
|
|
2569
|
+
ctx[5]
|
|
2570
2570
|
),
|
|
2571
2571
|
altText: (
|
|
2572
2572
|
/*altText*/
|
|
2573
|
-
ctx[
|
|
2573
|
+
ctx[8]
|
|
2574
2574
|
),
|
|
2575
2575
|
longDescription: (
|
|
2576
2576
|
/*longDescription*/
|
|
2577
|
-
ctx[
|
|
2577
|
+
ctx[9]
|
|
2578
2578
|
),
|
|
2579
2579
|
fileCaption: (
|
|
2580
2580
|
/*caption*/
|
|
2581
|
-
ctx[
|
|
2581
|
+
ctx[10]
|
|
2582
2582
|
)
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
@@ -2587,8 +2587,8 @@
|
|
|
2587
2587
|
div = element("div");
|
|
2588
2588
|
create_component(commonmedia.$$.fragment);
|
|
2589
2589
|
attr(div, "class", div_class_value = "lg:hidden " + /*showTextAlignmentDefault*/
|
|
2590
|
-
(ctx[
|
|
2591
|
-
ctx[
|
|
2590
|
+
(ctx[18] && /*showStimulusLayoutTextFirst*/
|
|
2591
|
+
ctx[22] ? "pt-4" : "pt-6"));
|
|
2592
2592
|
},
|
|
2593
2593
|
m(target, anchor) {
|
|
2594
2594
|
insert(target, div, anchor);
|
|
@@ -2598,25 +2598,25 @@
|
|
|
2598
2598
|
p(ctx2, dirty) {
|
|
2599
2599
|
const commonmedia_changes = {};
|
|
2600
2600
|
if (dirty[0] & /*fileType*/
|
|
2601
|
-
|
|
2601
|
+
64)
|
|
2602
2602
|
commonmedia_changes.fileType = /*fileType*/
|
|
2603
|
-
ctx2[
|
|
2603
|
+
ctx2[6];
|
|
2604
2604
|
if (dirty[0] & /*fileUrl*/
|
|
2605
|
-
|
|
2605
|
+
32)
|
|
2606
2606
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2607
|
-
ctx2[
|
|
2607
|
+
ctx2[5];
|
|
2608
2608
|
if (dirty[0] & /*altText*/
|
|
2609
|
-
|
|
2609
|
+
256)
|
|
2610
2610
|
commonmedia_changes.altText = /*altText*/
|
|
2611
|
-
ctx2[
|
|
2611
|
+
ctx2[8];
|
|
2612
2612
|
if (dirty[0] & /*longDescription*/
|
|
2613
|
-
|
|
2613
|
+
512)
|
|
2614
2614
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2615
|
-
ctx2[
|
|
2615
|
+
ctx2[9];
|
|
2616
2616
|
if (dirty[0] & /*caption*/
|
|
2617
|
-
|
|
2617
|
+
1024)
|
|
2618
2618
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2619
|
-
ctx2[
|
|
2619
|
+
ctx2[10];
|
|
2620
2620
|
commonmedia.$set(commonmedia_changes);
|
|
2621
2621
|
},
|
|
2622
2622
|
i(local) {
|
|
@@ -2644,7 +2644,7 @@
|
|
|
2644
2644
|
props: {
|
|
2645
2645
|
htmlString: (
|
|
2646
2646
|
/*stimulusText*/
|
|
2647
|
-
ctx[
|
|
2647
|
+
ctx[11]
|
|
2648
2648
|
),
|
|
2649
2649
|
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
2650
2650
|
}
|
|
@@ -2660,9 +2660,9 @@
|
|
|
2660
2660
|
p(ctx2, dirty) {
|
|
2661
2661
|
const commonstringtohtml_changes = {};
|
|
2662
2662
|
if (dirty[0] & /*stimulusText*/
|
|
2663
|
-
|
|
2663
|
+
2048)
|
|
2664
2664
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2665
|
-
ctx2[
|
|
2665
|
+
ctx2[11];
|
|
2666
2666
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2667
2667
|
},
|
|
2668
2668
|
i(local) {
|
|
@@ -2688,17 +2688,17 @@
|
|
|
2688
2688
|
let current;
|
|
2689
2689
|
let if_block0 = (
|
|
2690
2690
|
/*showTextAlignmentDefault*/
|
|
2691
|
-
ctx[
|
|
2692
|
-
ctx[
|
|
2691
|
+
ctx[18] && /*showStimulusLayoutTextFirst*/
|
|
2692
|
+
ctx[22] && create_if_block_32(ctx)
|
|
2693
2693
|
);
|
|
2694
2694
|
let if_block1 = (
|
|
2695
2695
|
/*showAssetAlignmentDefault*/
|
|
2696
|
-
ctx[
|
|
2696
|
+
ctx[17] && create_if_block_22(ctx)
|
|
2697
2697
|
);
|
|
2698
2698
|
let if_block2 = (
|
|
2699
2699
|
/*showTextAlignmentDefault*/
|
|
2700
|
-
ctx[
|
|
2701
|
-
ctx[
|
|
2700
|
+
ctx[18] && /*showStimulusLayoutMediaFirst*/
|
|
2701
|
+
ctx[21] && create_if_block_12(ctx)
|
|
2702
2702
|
);
|
|
2703
2703
|
return {
|
|
2704
2704
|
c() {
|
|
@@ -2718,7 +2718,7 @@
|
|
|
2718
2718
|
div1,
|
|
2719
2719
|
"margin-top",
|
|
2720
2720
|
/*dynamicMarginTop*/
|
|
2721
|
-
ctx[
|
|
2721
|
+
ctx[14]
|
|
2722
2722
|
);
|
|
2723
2723
|
},
|
|
2724
2724
|
m(target, anchor) {
|
|
@@ -2732,34 +2732,34 @@
|
|
|
2732
2732
|
append(div0, t1);
|
|
2733
2733
|
if (if_block2)
|
|
2734
2734
|
if_block2.m(div0, null);
|
|
2735
|
-
ctx[
|
|
2735
|
+
ctx[32](div1);
|
|
2736
2736
|
current = true;
|
|
2737
2737
|
},
|
|
2738
2738
|
p(ctx2, dirty) {
|
|
2739
2739
|
if (
|
|
2740
2740
|
/*showTextAlignmentDefault*/
|
|
2741
|
-
ctx2[
|
|
2742
|
-
ctx2[
|
|
2741
|
+
ctx2[18] && /*showStimulusLayoutTextFirst*/
|
|
2742
|
+
ctx2[22]
|
|
2743
2743
|
)
|
|
2744
2744
|
if_block0.p(ctx2, dirty);
|
|
2745
2745
|
if (
|
|
2746
2746
|
/*showAssetAlignmentDefault*/
|
|
2747
|
-
ctx2[
|
|
2747
|
+
ctx2[17]
|
|
2748
2748
|
)
|
|
2749
2749
|
if_block1.p(ctx2, dirty);
|
|
2750
2750
|
if (
|
|
2751
2751
|
/*showTextAlignmentDefault*/
|
|
2752
|
-
ctx2[
|
|
2753
|
-
ctx2[
|
|
2752
|
+
ctx2[18] && /*showStimulusLayoutMediaFirst*/
|
|
2753
|
+
ctx2[21]
|
|
2754
2754
|
)
|
|
2755
2755
|
if_block2.p(ctx2, dirty);
|
|
2756
2756
|
if (!current || dirty[0] & /*dynamicMarginTop*/
|
|
2757
|
-
|
|
2757
|
+
16384) {
|
|
2758
2758
|
set_style(
|
|
2759
2759
|
div1,
|
|
2760
2760
|
"margin-top",
|
|
2761
2761
|
/*dynamicMarginTop*/
|
|
2762
|
-
ctx2[
|
|
2762
|
+
ctx2[14]
|
|
2763
2763
|
);
|
|
2764
2764
|
}
|
|
2765
2765
|
},
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if_block1.d();
|
|
2788
2788
|
if (if_block2)
|
|
2789
2789
|
if_block2.d();
|
|
2790
|
-
ctx[
|
|
2790
|
+
ctx[32](null);
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
2793
|
}
|
|
@@ -2798,7 +2798,7 @@
|
|
|
2798
2798
|
props: {
|
|
2799
2799
|
htmlString: (
|
|
2800
2800
|
/*stimulusText*/
|
|
2801
|
-
ctx[
|
|
2801
|
+
ctx[11]
|
|
2802
2802
|
),
|
|
2803
2803
|
otherClass: "text-stimulus pt-0"
|
|
2804
2804
|
}
|
|
@@ -2814,9 +2814,9 @@
|
|
|
2814
2814
|
p(ctx2, dirty) {
|
|
2815
2815
|
const commonstringtohtml_changes = {};
|
|
2816
2816
|
if (dirty[0] & /*stimulusText*/
|
|
2817
|
-
|
|
2817
|
+
2048)
|
|
2818
2818
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2819
|
-
ctx2[
|
|
2819
|
+
ctx2[11];
|
|
2820
2820
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2821
2821
|
},
|
|
2822
2822
|
i(local) {
|
|
@@ -2841,27 +2841,27 @@
|
|
|
2841
2841
|
props: {
|
|
2842
2842
|
fileType: (
|
|
2843
2843
|
/*fileType*/
|
|
2844
|
-
ctx[
|
|
2844
|
+
ctx[6]
|
|
2845
2845
|
),
|
|
2846
2846
|
fileUrl: (
|
|
2847
2847
|
/*fileUrl*/
|
|
2848
|
-
ctx[
|
|
2848
|
+
ctx[5]
|
|
2849
2849
|
),
|
|
2850
2850
|
altText: (
|
|
2851
2851
|
/*altText*/
|
|
2852
|
-
ctx[
|
|
2852
|
+
ctx[8]
|
|
2853
2853
|
),
|
|
2854
2854
|
longDescription: (
|
|
2855
2855
|
/*longDescription*/
|
|
2856
|
-
ctx[
|
|
2856
|
+
ctx[9]
|
|
2857
2857
|
),
|
|
2858
2858
|
handleImageLoad: (
|
|
2859
2859
|
/*handleImageLoad*/
|
|
2860
|
-
ctx[
|
|
2860
|
+
ctx[25]
|
|
2861
2861
|
),
|
|
2862
2862
|
fileCaption: (
|
|
2863
2863
|
/*caption*/
|
|
2864
|
-
ctx[
|
|
2864
|
+
ctx[10]
|
|
2865
2865
|
)
|
|
2866
2866
|
}
|
|
2867
2867
|
});
|
|
@@ -2876,25 +2876,25 @@
|
|
|
2876
2876
|
p(ctx2, dirty) {
|
|
2877
2877
|
const commonmedia_changes = {};
|
|
2878
2878
|
if (dirty[0] & /*fileType*/
|
|
2879
|
-
|
|
2879
|
+
64)
|
|
2880
2880
|
commonmedia_changes.fileType = /*fileType*/
|
|
2881
|
-
ctx2[
|
|
2881
|
+
ctx2[6];
|
|
2882
2882
|
if (dirty[0] & /*fileUrl*/
|
|
2883
|
-
|
|
2883
|
+
32)
|
|
2884
2884
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2885
|
-
ctx2[
|
|
2885
|
+
ctx2[5];
|
|
2886
2886
|
if (dirty[0] & /*altText*/
|
|
2887
|
-
|
|
2887
|
+
256)
|
|
2888
2888
|
commonmedia_changes.altText = /*altText*/
|
|
2889
|
-
ctx2[
|
|
2889
|
+
ctx2[8];
|
|
2890
2890
|
if (dirty[0] & /*longDescription*/
|
|
2891
|
-
|
|
2891
|
+
512)
|
|
2892
2892
|
commonmedia_changes.longDescription = /*longDescription*/
|
|
2893
|
-
ctx2[
|
|
2893
|
+
ctx2[9];
|
|
2894
2894
|
if (dirty[0] & /*caption*/
|
|
2895
|
-
|
|
2895
|
+
1024)
|
|
2896
2896
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2897
|
-
ctx2[
|
|
2897
|
+
ctx2[10];
|
|
2898
2898
|
commonmedia.$set(commonmedia_changes);
|
|
2899
2899
|
},
|
|
2900
2900
|
i(local) {
|
|
@@ -2919,10 +2919,10 @@
|
|
|
2919
2919
|
props: {
|
|
2920
2920
|
htmlString: (
|
|
2921
2921
|
/*stimulusText*/
|
|
2922
|
-
ctx[
|
|
2922
|
+
ctx[11]
|
|
2923
2923
|
),
|
|
2924
2924
|
otherClass: "text-stimulus " + (!/*showAssetAlignmentDefault*/
|
|
2925
|
-
ctx[
|
|
2925
|
+
ctx[17] ? "pt-0" : "")
|
|
2926
2926
|
}
|
|
2927
2927
|
});
|
|
2928
2928
|
return {
|
|
@@ -2936,9 +2936,9 @@
|
|
|
2936
2936
|
p(ctx2, dirty) {
|
|
2937
2937
|
const commonstringtohtml_changes = {};
|
|
2938
2938
|
if (dirty[0] & /*stimulusText*/
|
|
2939
|
-
|
|
2939
|
+
2048)
|
|
2940
2940
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2941
|
-
ctx2[
|
|
2941
|
+
ctx2[11];
|
|
2942
2942
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2943
2943
|
},
|
|
2944
2944
|
i(local) {
|
|
@@ -2978,7 +2978,7 @@
|
|
|
2978
2978
|
let dispose;
|
|
2979
2979
|
add_render_callback(
|
|
2980
2980
|
/*onwindowresize*/
|
|
2981
|
-
ctx[
|
|
2981
|
+
ctx[31]
|
|
2982
2982
|
);
|
|
2983
2983
|
let if_block0 = (
|
|
2984
2984
|
/*rubric*/
|
|
@@ -2986,18 +2986,18 @@
|
|
|
2986
2986
|
);
|
|
2987
2987
|
let if_block1 = (
|
|
2988
2988
|
/*showTextAlignmentInline*/
|
|
2989
|
-
ctx[
|
|
2990
|
-
ctx[
|
|
2989
|
+
ctx[19] && /*showStimulusLayoutTextFirst*/
|
|
2990
|
+
ctx[22] && create_if_block_10(ctx)
|
|
2991
2991
|
);
|
|
2992
2992
|
let if_block2 = (
|
|
2993
2993
|
/*showAsset*/
|
|
2994
|
-
ctx[
|
|
2995
|
-
ctx[
|
|
2994
|
+
ctx[16] && /*fileAlignment*/
|
|
2995
|
+
ctx[7] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
|
|
2996
2996
|
);
|
|
2997
2997
|
let if_block3 = (
|
|
2998
2998
|
/*showTextAlignmentInline*/
|
|
2999
|
-
ctx[
|
|
3000
|
-
ctx[
|
|
2999
|
+
ctx[19] && /*showStimulusLayoutMediaFirst*/
|
|
3000
|
+
ctx[21] && create_if_block_8(ctx)
|
|
3001
3001
|
);
|
|
3002
3002
|
let if_block4 = (
|
|
3003
3003
|
/*prompt*/
|
|
@@ -3005,32 +3005,32 @@
|
|
|
3005
3005
|
);
|
|
3006
3006
|
let if_block5 = (
|
|
3007
3007
|
/*showTextAlignmentDefault*/
|
|
3008
|
-
ctx[
|
|
3009
|
-
ctx[
|
|
3008
|
+
ctx[18] && /*showStimulusLayoutTextFirst*/
|
|
3009
|
+
ctx[22] && create_if_block_6(ctx)
|
|
3010
3010
|
);
|
|
3011
3011
|
let if_block6 = (
|
|
3012
3012
|
/*showAssetAlignmentDefault*/
|
|
3013
|
-
ctx[
|
|
3013
|
+
ctx[17] && create_if_block_5(ctx)
|
|
3014
3014
|
);
|
|
3015
3015
|
let if_block7 = (
|
|
3016
3016
|
/*showTextAlignmentDefault*/
|
|
3017
|
-
ctx[
|
|
3018
|
-
ctx[
|
|
3017
|
+
ctx[18] && /*showStimulusLayoutMediaFirst*/
|
|
3018
|
+
ctx[21] && create_if_block_4(ctx)
|
|
3019
3019
|
);
|
|
3020
3020
|
const default_slot_template = (
|
|
3021
3021
|
/*#slots*/
|
|
3022
|
-
ctx[
|
|
3022
|
+
ctx[30].default
|
|
3023
3023
|
);
|
|
3024
3024
|
const default_slot = create_slot(
|
|
3025
3025
|
default_slot_template,
|
|
3026
3026
|
ctx,
|
|
3027
3027
|
/*$$scope*/
|
|
3028
|
-
ctx[
|
|
3028
|
+
ctx[29],
|
|
3029
3029
|
get_default_slot_context
|
|
3030
3030
|
);
|
|
3031
3031
|
let if_block8 = (
|
|
3032
3032
|
/*showAlignmentDefault*/
|
|
3033
|
-
ctx[
|
|
3033
|
+
ctx[20] && create_if_block4(ctx)
|
|
3034
3034
|
);
|
|
3035
3035
|
return {
|
|
3036
3036
|
c() {
|
|
@@ -3070,22 +3070,20 @@
|
|
|
3070
3070
|
attr(div0, "class", div0_class_value = "divider my-6 " + (!/*hasDivider*/
|
|
3071
3071
|
ctx[2] ? "hidden" : ""));
|
|
3072
3072
|
attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
|
|
3073
|
-
(ctx[
|
|
3073
|
+
(ctx[20] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
|
|
3074
3074
|
attr(div2, "class", div2_class_value = null_to_empty(`${/*showAlignmentDefault*/
|
|
3075
|
-
ctx[
|
|
3076
|
-
ctx[4] ? !/*stimulus*/
|
|
3077
|
-
ctx[3] ? "mcq-media-container" : "mcq-media-container-stimulus" : ""}`) + " svelte-qwvrrk");
|
|
3075
|
+
ctx[20] ? "lg:w-full lg:flex" : "container-class"}`) + " svelte-1llhmb1");
|
|
3078
3076
|
set_style(
|
|
3079
3077
|
div2,
|
|
3080
3078
|
"--interactionWidthValue",
|
|
3081
3079
|
/*interactionWidthValue*/
|
|
3082
|
-
ctx[
|
|
3083
|
-
ctx[
|
|
3080
|
+
ctx[24] === "50%" && /*stimulusTextWidth*/
|
|
3081
|
+
ctx[3] !== "100%" ? (
|
|
3084
3082
|
/*stimulusTextWidth*/
|
|
3085
|
-
ctx[
|
|
3083
|
+
ctx[3]
|
|
3086
3084
|
) : (
|
|
3087
3085
|
/*interactionWidthValue*/
|
|
3088
|
-
ctx[
|
|
3086
|
+
ctx[24]
|
|
3089
3087
|
)
|
|
3090
3088
|
);
|
|
3091
3089
|
},
|
|
@@ -3124,14 +3122,14 @@
|
|
|
3124
3122
|
append(div2, t9);
|
|
3125
3123
|
if (if_block8)
|
|
3126
3124
|
if_block8.m(div2, null);
|
|
3127
|
-
ctx[
|
|
3125
|
+
ctx[33](div2);
|
|
3128
3126
|
current = true;
|
|
3129
3127
|
if (!mounted) {
|
|
3130
3128
|
dispose = listen(
|
|
3131
3129
|
window_1,
|
|
3132
3130
|
"resize",
|
|
3133
3131
|
/*onwindowresize*/
|
|
3134
|
-
ctx[
|
|
3132
|
+
ctx[31]
|
|
3135
3133
|
);
|
|
3136
3134
|
mounted = true;
|
|
3137
3135
|
}
|
|
@@ -3162,19 +3160,19 @@
|
|
|
3162
3160
|
}
|
|
3163
3161
|
if (
|
|
3164
3162
|
/*showTextAlignmentInline*/
|
|
3165
|
-
ctx2[
|
|
3166
|
-
ctx2[
|
|
3163
|
+
ctx2[19] && /*showStimulusLayoutTextFirst*/
|
|
3164
|
+
ctx2[22]
|
|
3167
3165
|
)
|
|
3168
3166
|
if_block1.p(ctx2, dirty);
|
|
3169
3167
|
if (
|
|
3170
3168
|
/*showAsset*/
|
|
3171
|
-
ctx2[
|
|
3172
|
-
ctx2[
|
|
3169
|
+
ctx2[16] && /*fileAlignment*/
|
|
3170
|
+
ctx2[7] === ASSET_ALIGNMENT_INLINE
|
|
3173
3171
|
) {
|
|
3174
3172
|
if (if_block2) {
|
|
3175
3173
|
if_block2.p(ctx2, dirty);
|
|
3176
3174
|
if (dirty[0] & /*fileAlignment*/
|
|
3177
|
-
|
|
3175
|
+
128) {
|
|
3178
3176
|
transition_in(if_block2, 1);
|
|
3179
3177
|
}
|
|
3180
3178
|
} else {
|
|
@@ -3192,8 +3190,8 @@
|
|
|
3192
3190
|
}
|
|
3193
3191
|
if (
|
|
3194
3192
|
/*showTextAlignmentInline*/
|
|
3195
|
-
ctx2[
|
|
3196
|
-
ctx2[
|
|
3193
|
+
ctx2[19] && /*showStimulusLayoutMediaFirst*/
|
|
3194
|
+
ctx2[21]
|
|
3197
3195
|
)
|
|
3198
3196
|
if_block3.p(ctx2, dirty);
|
|
3199
3197
|
if (
|
|
@@ -3221,19 +3219,19 @@
|
|
|
3221
3219
|
}
|
|
3222
3220
|
if (
|
|
3223
3221
|
/*showTextAlignmentDefault*/
|
|
3224
|
-
ctx2[
|
|
3225
|
-
ctx2[
|
|
3222
|
+
ctx2[18] && /*showStimulusLayoutTextFirst*/
|
|
3223
|
+
ctx2[22]
|
|
3226
3224
|
)
|
|
3227
3225
|
if_block5.p(ctx2, dirty);
|
|
3228
3226
|
if (
|
|
3229
3227
|
/*showAssetAlignmentDefault*/
|
|
3230
|
-
ctx2[
|
|
3228
|
+
ctx2[17]
|
|
3231
3229
|
)
|
|
3232
3230
|
if_block6.p(ctx2, dirty);
|
|
3233
3231
|
if (
|
|
3234
3232
|
/*showTextAlignmentDefault*/
|
|
3235
|
-
ctx2[
|
|
3236
|
-
ctx2[
|
|
3233
|
+
ctx2[18] && /*showStimulusLayoutMediaFirst*/
|
|
3234
|
+
ctx2[21]
|
|
3237
3235
|
)
|
|
3238
3236
|
if_block7.p(ctx2, dirty);
|
|
3239
3237
|
if (!current || dirty[0] & /*hasDivider*/
|
|
@@ -3243,20 +3241,20 @@
|
|
|
3243
3241
|
}
|
|
3244
3242
|
if (default_slot) {
|
|
3245
3243
|
if (default_slot.p && (!current || dirty[0] & /*$$scope, dynamicInteractionWidth*/
|
|
3246
|
-
|
|
3244
|
+
536903680)) {
|
|
3247
3245
|
update_slot_base(
|
|
3248
3246
|
default_slot,
|
|
3249
3247
|
default_slot_template,
|
|
3250
3248
|
ctx2,
|
|
3251
3249
|
/*$$scope*/
|
|
3252
|
-
ctx2[
|
|
3250
|
+
ctx2[29],
|
|
3253
3251
|
!current ? get_all_dirty_from_scope(
|
|
3254
3252
|
/*$$scope*/
|
|
3255
|
-
ctx2[
|
|
3253
|
+
ctx2[29]
|
|
3256
3254
|
) : get_slot_changes(
|
|
3257
3255
|
default_slot_template,
|
|
3258
3256
|
/*$$scope*/
|
|
3259
|
-
ctx2[
|
|
3257
|
+
ctx2[29],
|
|
3260
3258
|
dirty,
|
|
3261
3259
|
get_default_slot_changes
|
|
3262
3260
|
),
|
|
@@ -3266,29 +3264,22 @@
|
|
|
3266
3264
|
}
|
|
3267
3265
|
if (
|
|
3268
3266
|
/*showAlignmentDefault*/
|
|
3269
|
-
ctx2[
|
|
3267
|
+
ctx2[20]
|
|
3270
3268
|
)
|
|
3271
3269
|
if_block8.p(ctx2, dirty);
|
|
3272
|
-
if (!current || dirty[0] & /*optionHasMedia, stimulus*/
|
|
3273
|
-
24 && div2_class_value !== (div2_class_value = null_to_empty(`${/*showAlignmentDefault*/
|
|
3274
|
-
ctx2[22] ? "lg:w-full lg:flex" : "container-class"} ${INTERACTION_TYPE_MCQ && /*optionHasMedia*/
|
|
3275
|
-
ctx2[4] ? !/*stimulus*/
|
|
3276
|
-
ctx2[3] ? "mcq-media-container" : "mcq-media-container-stimulus" : ""}`) + " svelte-qwvrrk")) {
|
|
3277
|
-
attr(div2, "class", div2_class_value);
|
|
3278
|
-
}
|
|
3279
3270
|
if (!current || dirty[0] & /*stimulusTextWidth*/
|
|
3280
|
-
|
|
3271
|
+
8) {
|
|
3281
3272
|
set_style(
|
|
3282
3273
|
div2,
|
|
3283
3274
|
"--interactionWidthValue",
|
|
3284
3275
|
/*interactionWidthValue*/
|
|
3285
|
-
ctx2[
|
|
3286
|
-
ctx2[
|
|
3276
|
+
ctx2[24] === "50%" && /*stimulusTextWidth*/
|
|
3277
|
+
ctx2[3] !== "100%" ? (
|
|
3287
3278
|
/*stimulusTextWidth*/
|
|
3288
|
-
ctx2[
|
|
3279
|
+
ctx2[3]
|
|
3289
3280
|
) : (
|
|
3290
3281
|
/*interactionWidthValue*/
|
|
3291
|
-
ctx2[
|
|
3282
|
+
ctx2[24]
|
|
3292
3283
|
)
|
|
3293
3284
|
);
|
|
3294
3285
|
}
|
|
@@ -3345,7 +3336,7 @@
|
|
|
3345
3336
|
default_slot.d(detaching);
|
|
3346
3337
|
if (if_block8)
|
|
3347
3338
|
if_block8.d();
|
|
3348
|
-
ctx[
|
|
3339
|
+
ctx[33](null);
|
|
3349
3340
|
mounted = false;
|
|
3350
3341
|
dispose();
|
|
3351
3342
|
}
|
|
@@ -3360,7 +3351,6 @@
|
|
|
3360
3351
|
let { interactionType = "" } = $$props;
|
|
3361
3352
|
let { hasDivider = true } = $$props;
|
|
3362
3353
|
let { stimulus = null } = $$props;
|
|
3363
|
-
let { optionHasMedia = false } = $$props;
|
|
3364
3354
|
let fileUrl = "";
|
|
3365
3355
|
let fileType = "";
|
|
3366
3356
|
let fileAlignment = ASSET_ALIGNMENT_DEFAULT;
|
|
@@ -3416,15 +3406,15 @@
|
|
|
3416
3406
|
const showStimulusLayoutMediaFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_MEDIA_FIRST;
|
|
3417
3407
|
const showStimulusLayoutTextFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_TEXT_FIRST;
|
|
3418
3408
|
const promptRubricHeaderElem = get_store_value(promptRubricElem);
|
|
3419
|
-
const interactionWidthValue = interactionType === INTERACTION_TYPE_CATEGORISE && !stimulus ? "100%" :
|
|
3409
|
+
const interactionWidthValue = interactionType === INTERACTION_TYPE_CATEGORISE && !stimulus ? "100%" : get_store_value(interactionWidth);
|
|
3420
3410
|
const calculateDynamicMargin = () => {
|
|
3421
3411
|
if (typeof window !== "undefined" && containerElement && showAssetAlignmentDefault) {
|
|
3422
3412
|
const viewportHeight = window.innerHeight;
|
|
3423
3413
|
const contentHeight = containerElement.scrollHeight;
|
|
3424
3414
|
const calculatedMargin = Math.max(0, (viewportHeight - contentHeight) / 2);
|
|
3425
|
-
$$invalidate(
|
|
3415
|
+
$$invalidate(14, dynamicMarginTop = `${calculatedMargin - EAT_HEADER_OFFSET}px`);
|
|
3426
3416
|
} else {
|
|
3427
|
-
$$invalidate(
|
|
3417
|
+
$$invalidate(14, dynamicMarginTop = "0px");
|
|
3428
3418
|
}
|
|
3429
3419
|
};
|
|
3430
3420
|
const handleImageLoad = () => {
|
|
@@ -3441,7 +3431,7 @@
|
|
|
3441
3431
|
const desiredWidth = maxTableWidth + STIMULUS_TEXT_TABLE_BUFFER;
|
|
3442
3432
|
const clampedWidth = Math.min(Math.max(desiredWidth, minWidth), screenWidth);
|
|
3443
3433
|
if (clampedWidth > screenWidth * EAT_SCREEN_HALF_WIDTH_RATIO) {
|
|
3444
|
-
$$invalidate(
|
|
3434
|
+
$$invalidate(3, stimulusTextWidth = `${clampedWidth}px`);
|
|
3445
3435
|
}
|
|
3446
3436
|
};
|
|
3447
3437
|
const onResize = () => {
|
|
@@ -3469,18 +3459,18 @@
|
|
|
3469
3459
|
return "100%";
|
|
3470
3460
|
};
|
|
3471
3461
|
function onwindowresize() {
|
|
3472
|
-
$$invalidate(
|
|
3462
|
+
$$invalidate(4, innerWidth = window_1.innerWidth);
|
|
3473
3463
|
}
|
|
3474
3464
|
function div1_binding($$value) {
|
|
3475
3465
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
3476
3466
|
containerElement = $$value;
|
|
3477
|
-
$$invalidate(
|
|
3467
|
+
$$invalidate(12, containerElement);
|
|
3478
3468
|
});
|
|
3479
3469
|
}
|
|
3480
3470
|
function div2_binding($$value) {
|
|
3481
3471
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
3482
3472
|
promptBodyContainer = $$value;
|
|
3483
|
-
$$invalidate(
|
|
3473
|
+
$$invalidate(13, promptBodyContainer);
|
|
3484
3474
|
});
|
|
3485
3475
|
}
|
|
3486
3476
|
$$self.$$set = ($$props2) => {
|
|
@@ -3489,34 +3479,32 @@
|
|
|
3489
3479
|
if ("prompt" in $$props2)
|
|
3490
3480
|
$$invalidate(1, prompt = $$props2.prompt);
|
|
3491
3481
|
if ("interactionType" in $$props2)
|
|
3492
|
-
$$invalidate(
|
|
3482
|
+
$$invalidate(26, interactionType = $$props2.interactionType);
|
|
3493
3483
|
if ("hasDivider" in $$props2)
|
|
3494
3484
|
$$invalidate(2, hasDivider = $$props2.hasDivider);
|
|
3495
3485
|
if ("stimulus" in $$props2)
|
|
3496
|
-
$$invalidate(
|
|
3497
|
-
if ("optionHasMedia" in $$props2)
|
|
3498
|
-
$$invalidate(4, optionHasMedia = $$props2.optionHasMedia);
|
|
3486
|
+
$$invalidate(27, stimulus = $$props2.stimulus);
|
|
3499
3487
|
if ("$$scope" in $$props2)
|
|
3500
|
-
$$invalidate(
|
|
3488
|
+
$$invalidate(29, $$scope = $$props2.$$scope);
|
|
3501
3489
|
};
|
|
3502
3490
|
$$self.$$.update = () => {
|
|
3503
3491
|
if ($$self.$$.dirty[0] & /*innerWidth*/
|
|
3504
|
-
|
|
3492
|
+
16) {
|
|
3505
3493
|
$:
|
|
3506
|
-
$$invalidate(
|
|
3494
|
+
$$invalidate(28, shouldUseFullWidth = () => {
|
|
3507
3495
|
return !!showAsset && showAssetAlignmentDefault || !!showTextStimulus && showTextAlignmentDefault || innerWidth < SCREEN_LG;
|
|
3508
3496
|
});
|
|
3509
3497
|
}
|
|
3510
|
-
if ($$self.$$.dirty[0] & /*shouldUseFullWidth,
|
|
3511
|
-
|
|
3498
|
+
if ($$self.$$.dirty[0] & /*shouldUseFullWidth, stimulusTextWidth*/
|
|
3499
|
+
268435464) {
|
|
3512
3500
|
$:
|
|
3513
|
-
$$invalidate(
|
|
3514
|
-
if (
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3501
|
+
$$invalidate(15, dynamicInteractionWidth = (() => {
|
|
3502
|
+
if (interactionWidthValue === "50%") {
|
|
3503
|
+
if (shouldUseFullWidth())
|
|
3504
|
+
return "100%";
|
|
3505
|
+
if (stimulusTextWidth !== "100%")
|
|
3506
|
+
return calculateInteractionWidth(interactionWidthValue);
|
|
3507
|
+
}
|
|
3520
3508
|
return "100%";
|
|
3521
3509
|
})());
|
|
3522
3510
|
}
|
|
@@ -3529,8 +3517,6 @@
|
|
|
3529
3517
|
rubric,
|
|
3530
3518
|
prompt,
|
|
3531
3519
|
hasDivider,
|
|
3532
|
-
stimulus,
|
|
3533
|
-
optionHasMedia,
|
|
3534
3520
|
stimulusTextWidth,
|
|
3535
3521
|
innerWidth,
|
|
3536
3522
|
fileUrl,
|
|
@@ -3555,6 +3541,7 @@
|
|
|
3555
3541
|
interactionWidthValue,
|
|
3556
3542
|
handleImageLoad,
|
|
3557
3543
|
interactionType,
|
|
3544
|
+
stimulus,
|
|
3558
3545
|
shouldUseFullWidth,
|
|
3559
3546
|
$$scope,
|
|
3560
3547
|
slots,
|
|
@@ -3575,10 +3562,9 @@
|
|
|
3575
3562
|
{
|
|
3576
3563
|
rubric: 0,
|
|
3577
3564
|
prompt: 1,
|
|
3578
|
-
interactionType:
|
|
3565
|
+
interactionType: 26,
|
|
3579
3566
|
hasDivider: 2,
|
|
3580
|
-
stimulus:
|
|
3581
|
-
optionHasMedia: 4
|
|
3567
|
+
stimulus: 27
|
|
3582
3568
|
},
|
|
3583
3569
|
add_css,
|
|
3584
3570
|
[-1, -1]
|
|
@@ -3599,7 +3585,7 @@
|
|
|
3599
3585
|
flush();
|
|
3600
3586
|
}
|
|
3601
3587
|
get interactionType() {
|
|
3602
|
-
return this.$$.ctx[
|
|
3588
|
+
return this.$$.ctx[26];
|
|
3603
3589
|
}
|
|
3604
3590
|
set interactionType(interactionType) {
|
|
3605
3591
|
this.$$set({ interactionType });
|
|
@@ -3613,21 +3599,14 @@
|
|
|
3613
3599
|
flush();
|
|
3614
3600
|
}
|
|
3615
3601
|
get stimulus() {
|
|
3616
|
-
return this.$$.ctx[
|
|
3602
|
+
return this.$$.ctx[27];
|
|
3617
3603
|
}
|
|
3618
3604
|
set stimulus(stimulus) {
|
|
3619
3605
|
this.$$set({ stimulus });
|
|
3620
3606
|
flush();
|
|
3621
3607
|
}
|
|
3622
|
-
get optionHasMedia() {
|
|
3623
|
-
return this.$$.ctx[4];
|
|
3624
|
-
}
|
|
3625
|
-
set optionHasMedia(optionHasMedia) {
|
|
3626
|
-
this.$$set({ optionHasMedia });
|
|
3627
|
-
flush();
|
|
3628
|
-
}
|
|
3629
3608
|
};
|
|
3630
|
-
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {}, "interactionType": {}, "hasDivider": { "type": "Boolean" }, "stimulus": {}
|
|
3609
|
+
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {}, "interactionType": {}, "hasDivider": { "type": "Boolean" }, "stimulus": {} }, ["default"], [], true));
|
|
3631
3610
|
var PromptBody_default = PromptBody;
|
|
3632
3611
|
|
|
3633
3612
|
// src/lib/components/prompt/template/PromptResultFeedbackAlert.svelte
|
|
@@ -4106,7 +4085,7 @@
|
|
|
4106
4085
|
|
|
4107
4086
|
// src/lib/components/prompt/mcq/PromptMCQ.svelte
|
|
4108
4087
|
function add_css2(target) {
|
|
4109
|
-
append_styles(target, "svelte-
|
|
4088
|
+
append_styles(target, "svelte-1sgrg21", ".responsive-grid.svelte-1sgrg21.svelte-1sgrg21{display:grid;gap:1rem;width:100%}.responsive-grid.svelte-1sgrg21 .btn-mcq-option.svelte-1sgrg21{width:100%}@media(max-width: 767px){.responsive-grid.svelte-1sgrg21.svelte-1sgrg21{grid-template-columns:1fr;justify-content:center;justify-items:center;place-items:center}.responsive-grid.svelte-1sgrg21 .btn-mcq-option.svelte-1sgrg21{min-width:288px;max-width:288px;min-height:210px;margin:0 auto}}@media(min-width: 768px) and (max-width: 1194px){.responsive-grid.svelte-1sgrg21.svelte-1sgrg21{grid-template-columns:repeat(2, 1fr);justify-content:center;max-width:620px;margin:0 auto}.responsive-grid.svelte-1sgrg21 .btn-mcq-option.svelte-1sgrg21{max-width:304px;min-height:240px}}@media(min-width: 1195px){.responsive-grid.svelte-1sgrg21.svelte-1sgrg21{grid-template-columns:repeat(2, 1fr);justify-content:flex-start;max-width:620px;margin:0}.responsive-grid.svelte-1sgrg21 .btn-mcq-option.svelte-1sgrg21{max-width:304px;min-height:240px}}");
|
|
4110
4089
|
}
|
|
4111
4090
|
function get_each_context(ctx, list, i) {
|
|
4112
4091
|
const child_ctx = ctx.slice();
|
|
@@ -4225,7 +4204,7 @@
|
|
|
4225
4204
|
attr(div1, "class", div1_class_value = null_to_empty(
|
|
4226
4205
|
/*optionHasMedia*/
|
|
4227
4206
|
ctx[13] ? "responsive-grid" : ""
|
|
4228
|
-
) + " svelte-
|
|
4207
|
+
) + " svelte-1sgrg21");
|
|
4229
4208
|
attr(div2, "class", div2_class_value = /*optionHasMedia*/
|
|
4230
4209
|
ctx[13] ? "w-full" : "relative");
|
|
4231
4210
|
},
|
|
@@ -5028,7 +5007,7 @@
|
|
|
5028
5007
|
ctx[4].length === /*correctAnswersLength*/
|
|
5029
5008
|
ctx[5] ? "incorrect" : ""
|
|
5030
5009
|
)) + " " + /*isPreviewModeInteractive*/
|
|
5031
|
-
(ctx[3] ? "interactive" : "") + " svelte-
|
|
5010
|
+
(ctx[3] ? "interactive" : "") + " svelte-1sgrg21");
|
|
5032
5011
|
},
|
|
5033
5012
|
m(target, anchor) {
|
|
5034
5013
|
if (if_block0)
|
|
@@ -5347,7 +5326,7 @@
|
|
|
5347
5326
|
ctx[4].length === /*correctAnswersLength*/
|
|
5348
5327
|
ctx[5] ? "incorrect" : ""
|
|
5349
5328
|
)) + " " + /*isPreviewModeInteractive*/
|
|
5350
|
-
(ctx[3] ? "interactive" : "") + " svelte-
|
|
5329
|
+
(ctx[3] ? "interactive" : "") + " svelte-1sgrg21")) {
|
|
5351
5330
|
attr(button, "class", button_class_value);
|
|
5352
5331
|
}
|
|
5353
5332
|
},
|
|
@@ -5512,10 +5491,6 @@
|
|
|
5512
5491
|
/*stimulus*/
|
|
5513
5492
|
ctx[10]
|
|
5514
5493
|
),
|
|
5515
|
-
optionHasMedia: (
|
|
5516
|
-
/*optionHasMedia*/
|
|
5517
|
-
ctx[13]
|
|
5518
|
-
),
|
|
5519
5494
|
$$slots: {
|
|
5520
5495
|
default: [
|
|
5521
5496
|
create_default_slot,
|