eat-js-sdk 0.0.39 → 0.0.41
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 +433 -218
- package/package.json +1 -1
|
@@ -5331,7 +5331,8 @@
|
|
|
5331
5331
|
openCategoryContainer: [],
|
|
5332
5332
|
currentWordBinIndex: 0,
|
|
5333
5333
|
currentTabContainer: "",
|
|
5334
|
-
lastSelectedTabContainer: ""
|
|
5334
|
+
lastSelectedTabContainer: "",
|
|
5335
|
+
selectedItemName: ""
|
|
5335
5336
|
});
|
|
5336
5337
|
|
|
5337
5338
|
// src/lib/assets/img/product/GripVertical.svelte
|
|
@@ -5598,13 +5599,15 @@
|
|
|
5598
5599
|
categoriseSettings.set({
|
|
5599
5600
|
...storeCategoriseSettings,
|
|
5600
5601
|
selectedItemId: itemId,
|
|
5601
|
-
sourceSelectedContainerId: containerId
|
|
5602
|
+
sourceSelectedContainerId: containerId,
|
|
5603
|
+
selectedItemName: word
|
|
5602
5604
|
});
|
|
5603
5605
|
} else if (currentSelectedItemId === itemId) {
|
|
5604
5606
|
categoriseSettings.set({
|
|
5605
5607
|
...storeCategoriseSettings,
|
|
5606
5608
|
selectedItemId: "",
|
|
5607
|
-
sourceSelectedContainerId: ""
|
|
5609
|
+
sourceSelectedContainerId: "",
|
|
5610
|
+
selectedItemName: ""
|
|
5608
5611
|
});
|
|
5609
5612
|
}
|
|
5610
5613
|
setTimeout(
|
|
@@ -6904,7 +6907,8 @@
|
|
|
6904
6907
|
attr(button2, "aria-label", "Reset");
|
|
6905
6908
|
attr(button2, "class", "focus-ring w-full py-2 px-3 text-white text-base leading-4 rounded-lg font-bold border-2 border-blue-1000 bg-soft-blue hover:bg-yellow-1000 hover:text-charcoal active:bg-yellow-1100 active:text-charcoal md:w-fit");
|
|
6906
6909
|
attr(div1, "class", "flex flex-col-reverse items-center space-y-2 space-y-reverse md:justify-between md:flex-row md:space-y-0");
|
|
6907
|
-
attr(div2, "
|
|
6910
|
+
attr(div2, "tabindex", "0");
|
|
6911
|
+
attr(div2, "class", "absolute inset-y-0 right-4 left-4 w-fit h-fit m-auto bg-white p-6 max-w-[400px] shadow-md rounded-lg focus-visible:outline-none md:inset-0");
|
|
6908
6912
|
},
|
|
6909
6913
|
m(target, anchor) {
|
|
6910
6914
|
insert(target, div2, anchor);
|
|
@@ -6923,6 +6927,7 @@
|
|
|
6923
6927
|
append(div1, button1);
|
|
6924
6928
|
append(div1, t7);
|
|
6925
6929
|
append(div1, button2);
|
|
6930
|
+
ctx[3](div2);
|
|
6926
6931
|
current = true;
|
|
6927
6932
|
if (!mounted) {
|
|
6928
6933
|
dispose = [
|
|
@@ -6930,19 +6935,19 @@
|
|
|
6930
6935
|
button0,
|
|
6931
6936
|
"click",
|
|
6932
6937
|
/*closeResetModal*/
|
|
6933
|
-
ctx[
|
|
6938
|
+
ctx[1]
|
|
6934
6939
|
),
|
|
6935
6940
|
listen(
|
|
6936
6941
|
button1,
|
|
6937
6942
|
"click",
|
|
6938
6943
|
/*closeResetModal*/
|
|
6939
|
-
ctx[
|
|
6944
|
+
ctx[1]
|
|
6940
6945
|
),
|
|
6941
6946
|
listen(
|
|
6942
6947
|
button2,
|
|
6943
6948
|
"click",
|
|
6944
6949
|
/*resetCategories*/
|
|
6945
|
-
ctx[
|
|
6950
|
+
ctx[2]
|
|
6946
6951
|
)
|
|
6947
6952
|
];
|
|
6948
6953
|
mounted = true;
|
|
@@ -6967,6 +6972,7 @@
|
|
|
6967
6972
|
}
|
|
6968
6973
|
destroy_component(alerticon);
|
|
6969
6974
|
destroy_component(crossicon);
|
|
6975
|
+
ctx[3](null);
|
|
6970
6976
|
mounted = false;
|
|
6971
6977
|
run_all(dispose);
|
|
6972
6978
|
}
|
|
@@ -6991,8 +6997,8 @@
|
|
|
6991
6997
|
},
|
|
6992
6998
|
p(ctx2, [dirty]) {
|
|
6993
6999
|
const commonmodal_changes = {};
|
|
6994
|
-
if (dirty & /*$$scope*/
|
|
6995
|
-
|
|
7000
|
+
if (dirty & /*$$scope, categoryModal*/
|
|
7001
|
+
65) {
|
|
6996
7002
|
commonmodal_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6997
7003
|
}
|
|
6998
7004
|
commonmodal.$set(commonmodal_changes);
|
|
@@ -7012,7 +7018,18 @@
|
|
|
7012
7018
|
}
|
|
7013
7019
|
};
|
|
7014
7020
|
}
|
|
7015
|
-
function instance8($$self) {
|
|
7021
|
+
function instance8($$self, $$props, $$invalidate) {
|
|
7022
|
+
let categoryModal;
|
|
7023
|
+
const { isModalOpen } = get_store_value(modalSettings);
|
|
7024
|
+
if (isModalOpen) {
|
|
7025
|
+
setTimeout(
|
|
7026
|
+
() => {
|
|
7027
|
+
categoryModal.focus();
|
|
7028
|
+
$$invalidate(0, categoryModal.tabIndex = -1, categoryModal);
|
|
7029
|
+
},
|
|
7030
|
+
100
|
|
7031
|
+
);
|
|
7032
|
+
}
|
|
7016
7033
|
const closeResetModal = () => {
|
|
7017
7034
|
modalSettings.set({
|
|
7018
7035
|
...get_store_value(modalSettings),
|
|
@@ -7049,7 +7066,13 @@
|
|
|
7049
7066
|
dispatch("resetCategory", { answer_list: [] });
|
|
7050
7067
|
closeResetModal();
|
|
7051
7068
|
};
|
|
7052
|
-
|
|
7069
|
+
function div2_binding($$value) {
|
|
7070
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7071
|
+
categoryModal = $$value;
|
|
7072
|
+
$$invalidate(0, categoryModal);
|
|
7073
|
+
});
|
|
7074
|
+
}
|
|
7075
|
+
return [categoryModal, closeResetModal, resetCategories, div2_binding];
|
|
7053
7076
|
}
|
|
7054
7077
|
var PromptCategoriseModal = class extends SvelteComponent {
|
|
7055
7078
|
constructor(options) {
|
|
@@ -7469,19 +7492,19 @@
|
|
|
7469
7492
|
// src/lib/components/prompt/categorise/PromptCategorise.svelte
|
|
7470
7493
|
function get_each_context3(ctx, list, i) {
|
|
7471
7494
|
const child_ctx = ctx.slice();
|
|
7472
|
-
child_ctx[
|
|
7473
|
-
child_ctx[
|
|
7474
|
-
child_ctx[
|
|
7495
|
+
child_ctx[46] = list[i];
|
|
7496
|
+
child_ctx[47] = list;
|
|
7497
|
+
child_ctx[48] = i;
|
|
7475
7498
|
return child_ctx;
|
|
7476
7499
|
}
|
|
7477
|
-
function
|
|
7500
|
+
function create_if_block_42(ctx) {
|
|
7478
7501
|
let promptcategorisemodal;
|
|
7479
7502
|
let current;
|
|
7480
7503
|
promptcategorisemodal = new PromptCategoriseModal_default({});
|
|
7481
7504
|
promptcategorisemodal.$on(
|
|
7482
7505
|
"resetCategory",
|
|
7483
7506
|
/*saveCategory*/
|
|
7484
|
-
ctx[
|
|
7507
|
+
ctx[28]
|
|
7485
7508
|
);
|
|
7486
7509
|
return {
|
|
7487
7510
|
c() {
|
|
@@ -7507,7 +7530,7 @@
|
|
|
7507
7530
|
}
|
|
7508
7531
|
};
|
|
7509
7532
|
}
|
|
7510
|
-
function
|
|
7533
|
+
function create_if_block_32(ctx) {
|
|
7511
7534
|
let button;
|
|
7512
7535
|
let span0;
|
|
7513
7536
|
let switchicon;
|
|
@@ -7548,7 +7571,7 @@
|
|
|
7548
7571
|
button,
|
|
7549
7572
|
"click",
|
|
7550
7573
|
/*openResetModal*/
|
|
7551
|
-
ctx[
|
|
7574
|
+
ctx[23]
|
|
7552
7575
|
);
|
|
7553
7576
|
mounted = true;
|
|
7554
7577
|
}
|
|
@@ -7584,6 +7607,44 @@
|
|
|
7584
7607
|
}
|
|
7585
7608
|
};
|
|
7586
7609
|
}
|
|
7610
|
+
function create_if_block_23(ctx) {
|
|
7611
|
+
let span;
|
|
7612
|
+
let t0;
|
|
7613
|
+
let t1;
|
|
7614
|
+
let t2;
|
|
7615
|
+
return {
|
|
7616
|
+
c() {
|
|
7617
|
+
span = element("span");
|
|
7618
|
+
t0 = text("Option ");
|
|
7619
|
+
t1 = text(
|
|
7620
|
+
/*selectedItemName*/
|
|
7621
|
+
ctx[13]
|
|
7622
|
+
);
|
|
7623
|
+
t2 = text(" added in:\xA0");
|
|
7624
|
+
attr(span, "class", "sr-only");
|
|
7625
|
+
},
|
|
7626
|
+
m(target, anchor) {
|
|
7627
|
+
insert(target, span, anchor);
|
|
7628
|
+
append(span, t0);
|
|
7629
|
+
append(span, t1);
|
|
7630
|
+
append(span, t2);
|
|
7631
|
+
},
|
|
7632
|
+
p(ctx2, dirty) {
|
|
7633
|
+
if (dirty[0] & /*selectedItemName*/
|
|
7634
|
+
8192)
|
|
7635
|
+
set_data(
|
|
7636
|
+
t1,
|
|
7637
|
+
/*selectedItemName*/
|
|
7638
|
+
ctx2[13]
|
|
7639
|
+
);
|
|
7640
|
+
},
|
|
7641
|
+
d(detaching) {
|
|
7642
|
+
if (detaching) {
|
|
7643
|
+
detach(span);
|
|
7644
|
+
}
|
|
7645
|
+
}
|
|
7646
|
+
};
|
|
7647
|
+
}
|
|
7587
7648
|
function create_else_block3(ctx) {
|
|
7588
7649
|
let smallchevrondown;
|
|
7589
7650
|
let current;
|
|
@@ -7611,7 +7672,7 @@
|
|
|
7611
7672
|
}
|
|
7612
7673
|
};
|
|
7613
7674
|
}
|
|
7614
|
-
function
|
|
7675
|
+
function create_if_block_16(ctx) {
|
|
7615
7676
|
let smallchevronup;
|
|
7616
7677
|
let current;
|
|
7617
7678
|
smallchevronup = new SmallChevronUp_default({});
|
|
@@ -7641,43 +7702,55 @@
|
|
|
7641
7702
|
function create_each_block3(ctx) {
|
|
7642
7703
|
let div1;
|
|
7643
7704
|
let div0;
|
|
7705
|
+
let show_if_1 = (
|
|
7706
|
+
/*checkContainerDroppedItem*/
|
|
7707
|
+
ctx[21](
|
|
7708
|
+
/*category*/
|
|
7709
|
+
ctx[46].id,
|
|
7710
|
+
/*dropContainerId*/
|
|
7711
|
+
ctx[3]
|
|
7712
|
+
)
|
|
7713
|
+
);
|
|
7714
|
+
let t0;
|
|
7644
7715
|
let span0;
|
|
7645
|
-
let
|
|
7716
|
+
let t4;
|
|
7646
7717
|
let span1;
|
|
7647
|
-
let
|
|
7718
|
+
let t6;
|
|
7648
7719
|
let button;
|
|
7649
7720
|
let span2;
|
|
7650
|
-
let
|
|
7721
|
+
let t7_value = (
|
|
7651
7722
|
/*getTotalWords*/
|
|
7652
|
-
ctx[
|
|
7723
|
+
ctx[24](
|
|
7653
7724
|
/*category*/
|
|
7654
|
-
ctx[
|
|
7725
|
+
ctx[46].id,
|
|
7655
7726
|
/*currentAnswer*/
|
|
7656
7727
|
ctx[6]
|
|
7657
7728
|
) + ""
|
|
7658
7729
|
);
|
|
7659
|
-
let t6;
|
|
7660
7730
|
let t7;
|
|
7731
|
+
let t8;
|
|
7661
7732
|
let span3;
|
|
7662
7733
|
let show_if;
|
|
7663
7734
|
let current_block_type_index;
|
|
7664
|
-
let
|
|
7735
|
+
let if_block1;
|
|
7665
7736
|
let button_aria_label_value;
|
|
7666
7737
|
let div0_id_value;
|
|
7738
|
+
let div0_aria_live_value;
|
|
7667
7739
|
let div0_class_value;
|
|
7668
7740
|
let div0_resize_listener;
|
|
7669
|
-
let t8;
|
|
7670
|
-
let promptcategorisedndcontainer;
|
|
7671
7741
|
let t9;
|
|
7742
|
+
let promptcategorisedndcontainer;
|
|
7743
|
+
let t10;
|
|
7672
7744
|
let div1_class_value;
|
|
7673
7745
|
let category = (
|
|
7674
7746
|
/*category*/
|
|
7675
|
-
ctx[
|
|
7747
|
+
ctx[46]
|
|
7676
7748
|
);
|
|
7677
7749
|
let current;
|
|
7678
7750
|
let mounted;
|
|
7679
7751
|
let dispose;
|
|
7680
|
-
|
|
7752
|
+
let if_block0 = show_if_1 && create_if_block_23(ctx);
|
|
7753
|
+
const if_block_creators = [create_if_block_16, create_else_block3];
|
|
7681
7754
|
const if_blocks = [];
|
|
7682
7755
|
function select_block_type(ctx2, dirty) {
|
|
7683
7756
|
if (dirty[0] & /*openCategoryContainer*/
|
|
@@ -7685,9 +7758,9 @@
|
|
|
7685
7758
|
show_if = null;
|
|
7686
7759
|
if (show_if == null)
|
|
7687
7760
|
show_if = !!/*checkifCategoryContainerOpen*/
|
|
7688
|
-
ctx2[
|
|
7761
|
+
ctx2[25](
|
|
7689
7762
|
/*category*/
|
|
7690
|
-
ctx2[
|
|
7763
|
+
ctx2[46].id,
|
|
7691
7764
|
/*openCategoryContainer*/
|
|
7692
7765
|
ctx2[10]
|
|
7693
7766
|
);
|
|
@@ -7696,164 +7769,174 @@
|
|
|
7696
7769
|
return 1;
|
|
7697
7770
|
}
|
|
7698
7771
|
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
7699
|
-
|
|
7772
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7700
7773
|
function div0_elementresize_handler() {
|
|
7701
|
-
ctx[
|
|
7774
|
+
ctx[33].call(
|
|
7702
7775
|
div0,
|
|
7703
7776
|
/*category*/
|
|
7704
|
-
ctx[
|
|
7777
|
+
ctx[46]
|
|
7705
7778
|
);
|
|
7706
7779
|
}
|
|
7707
7780
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
7708
7781
|
props: {
|
|
7709
7782
|
containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
7710
|
-
(ctx[
|
|
7783
|
+
(ctx[20](
|
|
7711
7784
|
/*category*/
|
|
7712
|
-
ctx[
|
|
7785
|
+
ctx[46].id,
|
|
7713
7786
|
/*considerContainerId*/
|
|
7714
7787
|
ctx[1],
|
|
7715
7788
|
/*isDraggingOver*/
|
|
7716
7789
|
ctx[2]
|
|
7717
7790
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
7718
|
-
(ctx[
|
|
7791
|
+
(ctx[25](
|
|
7719
7792
|
/*category*/
|
|
7720
|
-
ctx[
|
|
7793
|
+
ctx[46].id,
|
|
7721
7794
|
/*openCategoryContainer*/
|
|
7722
7795
|
ctx[10]
|
|
7723
7796
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
|
|
7724
7797
|
paddingTop: (
|
|
7725
7798
|
/*checkifCategoryContainerOpen*/
|
|
7726
|
-
ctx[
|
|
7799
|
+
ctx[25](
|
|
7727
7800
|
/*category*/
|
|
7728
|
-
ctx[
|
|
7801
|
+
ctx[46].id,
|
|
7729
7802
|
/*openCategoryContainer*/
|
|
7730
7803
|
ctx[10]
|
|
7731
7804
|
) || !useIsSmallScreen() ? (
|
|
7732
7805
|
/*categoryTitleHeight*/
|
|
7733
|
-
ctx[
|
|
7806
|
+
ctx[15][
|
|
7734
7807
|
/*category*/
|
|
7735
|
-
ctx[
|
|
7808
|
+
ctx[46].id
|
|
7736
7809
|
] + 16
|
|
7737
7810
|
) : (
|
|
7738
7811
|
/*categoryTitleHeight*/
|
|
7739
|
-
ctx[
|
|
7812
|
+
ctx[15][
|
|
7740
7813
|
/*category*/
|
|
7741
|
-
ctx[
|
|
7814
|
+
ctx[46].id
|
|
7742
7815
|
]
|
|
7743
7816
|
)
|
|
7744
7817
|
),
|
|
7745
7818
|
containerId: (
|
|
7746
7819
|
/*category*/
|
|
7747
|
-
ctx[
|
|
7820
|
+
ctx[46].id
|
|
7748
7821
|
),
|
|
7749
7822
|
showButton: (
|
|
7750
7823
|
/*checkifCategoryContainerOpen*/
|
|
7751
|
-
ctx[
|
|
7824
|
+
ctx[25](
|
|
7752
7825
|
/*category*/
|
|
7753
|
-
ctx[
|
|
7826
|
+
ctx[46].id,
|
|
7754
7827
|
/*openCategoryContainer*/
|
|
7755
7828
|
ctx[10]
|
|
7756
7829
|
)
|
|
7757
7830
|
),
|
|
7758
7831
|
ariaLabel: `Category ${/*index*/
|
|
7759
|
-
ctx[
|
|
7760
|
-
ctx[
|
|
7832
|
+
ctx[48] + 1}: ${/*category*/
|
|
7833
|
+
ctx[46].name}`
|
|
7761
7834
|
}
|
|
7762
7835
|
});
|
|
7763
7836
|
promptcategorisedndcontainer.$on(
|
|
7764
7837
|
"saveCategory",
|
|
7765
7838
|
/*saveCategory*/
|
|
7766
|
-
ctx[
|
|
7839
|
+
ctx[28]
|
|
7767
7840
|
);
|
|
7768
7841
|
function keydown_handler(...args) {
|
|
7769
7842
|
return (
|
|
7770
7843
|
/*keydown_handler*/
|
|
7771
|
-
ctx[
|
|
7844
|
+
ctx[34](
|
|
7772
7845
|
/*category*/
|
|
7773
|
-
ctx[
|
|
7846
|
+
ctx[46],
|
|
7774
7847
|
...args
|
|
7775
7848
|
)
|
|
7776
7849
|
);
|
|
7777
7850
|
}
|
|
7778
7851
|
const assign_div1 = () => (
|
|
7779
7852
|
/*div1_binding*/
|
|
7780
|
-
ctx[
|
|
7853
|
+
ctx[35](div1, category)
|
|
7781
7854
|
);
|
|
7782
7855
|
const unassign_div1 = () => (
|
|
7783
7856
|
/*div1_binding*/
|
|
7784
|
-
ctx[
|
|
7857
|
+
ctx[35](null, category)
|
|
7785
7858
|
);
|
|
7786
7859
|
return {
|
|
7787
7860
|
c() {
|
|
7788
7861
|
div1 = element("div");
|
|
7789
7862
|
div0 = element("div");
|
|
7863
|
+
if (if_block0)
|
|
7864
|
+
if_block0.c();
|
|
7865
|
+
t0 = space();
|
|
7790
7866
|
span0 = element("span");
|
|
7791
7867
|
span0.textContent = `Category ${/*index*/
|
|
7792
|
-
ctx[
|
|
7793
|
-
|
|
7868
|
+
ctx[48] + 1}:\xA0`;
|
|
7869
|
+
t4 = space();
|
|
7794
7870
|
span1 = element("span");
|
|
7795
7871
|
span1.textContent = `${/*category*/
|
|
7796
|
-
ctx[
|
|
7797
|
-
|
|
7872
|
+
ctx[46].name}`;
|
|
7873
|
+
t6 = space();
|
|
7798
7874
|
button = element("button");
|
|
7799
7875
|
span2 = element("span");
|
|
7800
|
-
|
|
7801
|
-
t7 = space();
|
|
7802
|
-
span3 = element("span");
|
|
7803
|
-
if_block.c();
|
|
7876
|
+
t7 = text(t7_value);
|
|
7804
7877
|
t8 = space();
|
|
7805
|
-
|
|
7878
|
+
span3 = element("span");
|
|
7879
|
+
if_block1.c();
|
|
7806
7880
|
t9 = space();
|
|
7881
|
+
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
7882
|
+
t10 = space();
|
|
7807
7883
|
attr(span0, "class", "sr-only");
|
|
7808
7884
|
attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
|
|
7809
7885
|
attr(span2, "class", "mx-0.5");
|
|
7810
7886
|
attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
7811
7887
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
7812
|
-
ctx[
|
|
7888
|
+
ctx[24](
|
|
7813
7889
|
/*category*/
|
|
7814
|
-
ctx[
|
|
7890
|
+
ctx[46].id,
|
|
7815
7891
|
/*currentAnswer*/
|
|
7816
7892
|
ctx[6]
|
|
7817
7893
|
));
|
|
7818
7894
|
attr(button, "class", "focus-ring flex items-center rounded-[32px] p-1.5 text-charcoal text-sm border border-gray-800 bg-gray-50 min-w-[85px] ml-3 whitespace-nowrap active:raw-focus-ring active:bg-black-55 md:hidden");
|
|
7819
7895
|
attr(div0, "id", div0_id_value = `category-title${/*index*/
|
|
7820
|
-
ctx[
|
|
7896
|
+
ctx[48]}`);
|
|
7897
|
+
attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
7898
|
+
ctx[21](
|
|
7899
|
+
/*category*/
|
|
7900
|
+
ctx[46].id,
|
|
7901
|
+
/*dropContainerId*/
|
|
7902
|
+
ctx[3]
|
|
7903
|
+
) ? "polite" : "off");
|
|
7821
7904
|
attr(div0, "class", div0_class_value = "absolute flex items-center justify-between border-b border-gray-800 w-full rounded-t-lg p-3 md:p-4 md:justify-center " + /*checkContainerDroppedItem*/
|
|
7822
|
-
(ctx[
|
|
7905
|
+
(ctx[21](
|
|
7823
7906
|
/*category*/
|
|
7824
|
-
ctx[
|
|
7907
|
+
ctx[46].id,
|
|
7825
7908
|
/*dropContainerId*/
|
|
7826
7909
|
ctx[3]
|
|
7827
7910
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
7828
|
-
ctx[
|
|
7911
|
+
ctx[25](
|
|
7829
7912
|
/*category*/
|
|
7830
|
-
ctx[
|
|
7913
|
+
ctx[46].id,
|
|
7831
7914
|
/*openCategoryContainer*/
|
|
7832
7915
|
ctx[10]
|
|
7833
7916
|
) && /*checkContainerDragOver*/
|
|
7834
|
-
ctx[
|
|
7917
|
+
ctx[20](
|
|
7835
7918
|
/*category*/
|
|
7836
|
-
ctx[
|
|
7919
|
+
ctx[46].id,
|
|
7837
7920
|
/*considerContainerId*/
|
|
7838
7921
|
ctx[1],
|
|
7839
7922
|
/*isDraggingOver*/
|
|
7840
7923
|
ctx[2]
|
|
7841
7924
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
7842
|
-
(ctx[
|
|
7925
|
+
(ctx[25](
|
|
7843
7926
|
/*category*/
|
|
7844
|
-
ctx[
|
|
7927
|
+
ctx[46].id,
|
|
7845
7928
|
/*openCategoryContainer*/
|
|
7846
7929
|
ctx[10]
|
|
7847
7930
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
7848
|
-
ctx[
|
|
7931
|
+
ctx[25](
|
|
7849
7932
|
/*category*/
|
|
7850
|
-
ctx[
|
|
7933
|
+
ctx[46].id,
|
|
7851
7934
|
/*openCategoryContainer*/
|
|
7852
7935
|
ctx[10]
|
|
7853
7936
|
) && /*checkSelectedSourceContainer*/
|
|
7854
|
-
ctx[
|
|
7937
|
+
ctx[22](
|
|
7855
7938
|
/*category*/
|
|
7856
|
-
ctx[
|
|
7939
|
+
ctx[46].id,
|
|
7857
7940
|
/*sourceSelectedContainerId*/
|
|
7858
7941
|
ctx[5],
|
|
7859
7942
|
/*currentSelectedItemId*/
|
|
@@ -7868,38 +7951,38 @@
|
|
|
7868
7951
|
);
|
|
7869
7952
|
attr(div1, "role", "group");
|
|
7870
7953
|
attr(div1, "class", div1_class_value = "focus-ring group/itemContainer flex flex-col border border-gray-800 rounded-lg basis-0 grow relative md:min-h-[140px] md:items-center lg:mr-6 lg:last:mr-0 lg:min-h-[224px] " + /*checkContainerDragOver*/
|
|
7871
|
-
(ctx[
|
|
7954
|
+
(ctx[20](
|
|
7872
7955
|
/*category*/
|
|
7873
|
-
ctx[
|
|
7956
|
+
ctx[46].id,
|
|
7874
7957
|
/*considerContainerId*/
|
|
7875
7958
|
ctx[1],
|
|
7876
7959
|
/*isDraggingOver*/
|
|
7877
7960
|
ctx[2]
|
|
7878
7961
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
7879
|
-
(ctx[
|
|
7962
|
+
(ctx[21](
|
|
7880
7963
|
/*category*/
|
|
7881
|
-
ctx[
|
|
7964
|
+
ctx[46].id,
|
|
7882
7965
|
/*dropContainerId*/
|
|
7883
7966
|
ctx[3]
|
|
7884
7967
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
7885
|
-
(ctx[
|
|
7968
|
+
(ctx[21](
|
|
7886
7969
|
/*category*/
|
|
7887
|
-
ctx[
|
|
7970
|
+
ctx[46].id,
|
|
7888
7971
|
/*dropContainerId*/
|
|
7889
7972
|
ctx[3]
|
|
7890
7973
|
) && /*hasAddItemAnimation*/
|
|
7891
7974
|
ctx[8] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
7892
|
-
(ctx[
|
|
7975
|
+
(ctx[22](
|
|
7893
7976
|
/*category*/
|
|
7894
|
-
ctx[
|
|
7977
|
+
ctx[46].id,
|
|
7895
7978
|
/*sourceSelectedContainerId*/
|
|
7896
7979
|
ctx[5],
|
|
7897
7980
|
/*currentSelectedItemId*/
|
|
7898
7981
|
ctx[4]
|
|
7899
7982
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
7900
|
-
(ctx[
|
|
7983
|
+
(ctx[25](
|
|
7901
7984
|
/*category*/
|
|
7902
|
-
ctx[
|
|
7985
|
+
ctx[46].id,
|
|
7903
7986
|
/*openCategoryContainer*/
|
|
7904
7987
|
ctx[10]
|
|
7905
7988
|
) ? "min-h-[140px]" : ""));
|
|
@@ -7907,20 +7990,23 @@
|
|
|
7907
7990
|
m(target, anchor) {
|
|
7908
7991
|
insert(target, div1, anchor);
|
|
7909
7992
|
append(div1, div0);
|
|
7993
|
+
if (if_block0)
|
|
7994
|
+
if_block0.m(div0, null);
|
|
7995
|
+
append(div0, t0);
|
|
7910
7996
|
append(div0, span0);
|
|
7911
|
-
append(div0,
|
|
7997
|
+
append(div0, t4);
|
|
7912
7998
|
append(div0, span1);
|
|
7913
|
-
append(div0,
|
|
7999
|
+
append(div0, t6);
|
|
7914
8000
|
append(div0, button);
|
|
7915
8001
|
append(button, span2);
|
|
7916
|
-
append(span2,
|
|
7917
|
-
append(button,
|
|
8002
|
+
append(span2, t7);
|
|
8003
|
+
append(button, t8);
|
|
7918
8004
|
append(button, span3);
|
|
7919
8005
|
if_blocks[current_block_type_index].m(span3, null);
|
|
7920
8006
|
div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
|
|
7921
|
-
append(div1, t8);
|
|
7922
|
-
mount_component(promptcategorisedndcontainer, div1, null);
|
|
7923
8007
|
append(div1, t9);
|
|
8008
|
+
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8009
|
+
append(div1, t10);
|
|
7924
8010
|
assign_div1();
|
|
7925
8011
|
current = true;
|
|
7926
8012
|
if (!mounted) {
|
|
@@ -7928,16 +8014,16 @@
|
|
|
7928
8014
|
listen(button, "click", function() {
|
|
7929
8015
|
if (is_function(
|
|
7930
8016
|
/*addCategoryContainer*/
|
|
7931
|
-
ctx[
|
|
8017
|
+
ctx[26](
|
|
7932
8018
|
/*category*/
|
|
7933
|
-
ctx[
|
|
8019
|
+
ctx[46].id,
|
|
7934
8020
|
/*openCategoryContainer*/
|
|
7935
8021
|
ctx[10]
|
|
7936
8022
|
)
|
|
7937
8023
|
))
|
|
7938
|
-
ctx[
|
|
8024
|
+
ctx[26](
|
|
7939
8025
|
/*category*/
|
|
7940
|
-
ctx[
|
|
8026
|
+
ctx[46].id,
|
|
7941
8027
|
/*openCategoryContainer*/
|
|
7942
8028
|
ctx[10]
|
|
7943
8029
|
).apply(this, arguments);
|
|
@@ -7947,7 +8033,7 @@
|
|
|
7947
8033
|
div1,
|
|
7948
8034
|
"focus",
|
|
7949
8035
|
/*resetTabCategory*/
|
|
7950
|
-
ctx[
|
|
8036
|
+
ctx[30]
|
|
7951
8037
|
)
|
|
7952
8038
|
];
|
|
7953
8039
|
mounted = true;
|
|
@@ -7955,15 +8041,36 @@
|
|
|
7955
8041
|
},
|
|
7956
8042
|
p(new_ctx, dirty) {
|
|
7957
8043
|
ctx = new_ctx;
|
|
8044
|
+
if (dirty[0] & /*dropContainerId*/
|
|
8045
|
+
8)
|
|
8046
|
+
show_if_1 = /*checkContainerDroppedItem*/
|
|
8047
|
+
ctx[21](
|
|
8048
|
+
/*category*/
|
|
8049
|
+
ctx[46].id,
|
|
8050
|
+
/*dropContainerId*/
|
|
8051
|
+
ctx[3]
|
|
8052
|
+
);
|
|
8053
|
+
if (show_if_1) {
|
|
8054
|
+
if (if_block0) {
|
|
8055
|
+
if_block0.p(ctx, dirty);
|
|
8056
|
+
} else {
|
|
8057
|
+
if_block0 = create_if_block_23(ctx);
|
|
8058
|
+
if_block0.c();
|
|
8059
|
+
if_block0.m(div0, t0);
|
|
8060
|
+
}
|
|
8061
|
+
} else if (if_block0) {
|
|
8062
|
+
if_block0.d(1);
|
|
8063
|
+
if_block0 = null;
|
|
8064
|
+
}
|
|
7958
8065
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
7959
|
-
64) &&
|
|
7960
|
-
ctx[
|
|
8066
|
+
64) && t7_value !== (t7_value = /*getTotalWords*/
|
|
8067
|
+
ctx[24](
|
|
7961
8068
|
/*category*/
|
|
7962
|
-
ctx[
|
|
8069
|
+
ctx[46].id,
|
|
7963
8070
|
/*currentAnswer*/
|
|
7964
8071
|
ctx[6]
|
|
7965
8072
|
) + ""))
|
|
7966
|
-
set_data(
|
|
8073
|
+
set_data(t7, t7_value);
|
|
7967
8074
|
let previous_block_index = current_block_type_index;
|
|
7968
8075
|
current_block_type_index = select_block_type(ctx, dirty);
|
|
7969
8076
|
if (current_block_type_index !== previous_block_index) {
|
|
@@ -7972,62 +8079,72 @@
|
|
|
7972
8079
|
if_blocks[previous_block_index] = null;
|
|
7973
8080
|
});
|
|
7974
8081
|
check_outros();
|
|
7975
|
-
|
|
7976
|
-
if (!
|
|
7977
|
-
|
|
7978
|
-
|
|
8082
|
+
if_block1 = if_blocks[current_block_type_index];
|
|
8083
|
+
if (!if_block1) {
|
|
8084
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8085
|
+
if_block1.c();
|
|
7979
8086
|
} else {
|
|
7980
8087
|
}
|
|
7981
|
-
transition_in(
|
|
7982
|
-
|
|
8088
|
+
transition_in(if_block1, 1);
|
|
8089
|
+
if_block1.m(span3, null);
|
|
7983
8090
|
}
|
|
7984
8091
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
7985
8092
|
64 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
7986
|
-
ctx[
|
|
8093
|
+
ctx[24](
|
|
7987
8094
|
/*category*/
|
|
7988
|
-
ctx[
|
|
8095
|
+
ctx[46].id,
|
|
7989
8096
|
/*currentAnswer*/
|
|
7990
8097
|
ctx[6]
|
|
7991
8098
|
))) {
|
|
7992
8099
|
attr(button, "aria-label", button_aria_label_value);
|
|
7993
8100
|
}
|
|
8101
|
+
if (!current || dirty[0] & /*dropContainerId*/
|
|
8102
|
+
8 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8103
|
+
ctx[21](
|
|
8104
|
+
/*category*/
|
|
8105
|
+
ctx[46].id,
|
|
8106
|
+
/*dropContainerId*/
|
|
8107
|
+
ctx[3]
|
|
8108
|
+
) ? "polite" : "off")) {
|
|
8109
|
+
attr(div0, "aria-live", div0_aria_live_value);
|
|
8110
|
+
}
|
|
7994
8111
|
if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
|
|
7995
8112
|
1086 && div0_class_value !== (div0_class_value = "absolute flex items-center justify-between border-b border-gray-800 w-full rounded-t-lg p-3 md:p-4 md:justify-center " + /*checkContainerDroppedItem*/
|
|
7996
|
-
(ctx[
|
|
8113
|
+
(ctx[21](
|
|
7997
8114
|
/*category*/
|
|
7998
|
-
ctx[
|
|
8115
|
+
ctx[46].id,
|
|
7999
8116
|
/*dropContainerId*/
|
|
8000
8117
|
ctx[3]
|
|
8001
8118
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8002
|
-
ctx[
|
|
8119
|
+
ctx[25](
|
|
8003
8120
|
/*category*/
|
|
8004
|
-
ctx[
|
|
8121
|
+
ctx[46].id,
|
|
8005
8122
|
/*openCategoryContainer*/
|
|
8006
8123
|
ctx[10]
|
|
8007
8124
|
) && /*checkContainerDragOver*/
|
|
8008
|
-
ctx[
|
|
8125
|
+
ctx[20](
|
|
8009
8126
|
/*category*/
|
|
8010
|
-
ctx[
|
|
8127
|
+
ctx[46].id,
|
|
8011
8128
|
/*considerContainerId*/
|
|
8012
8129
|
ctx[1],
|
|
8013
8130
|
/*isDraggingOver*/
|
|
8014
8131
|
ctx[2]
|
|
8015
8132
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8016
|
-
(ctx[
|
|
8133
|
+
(ctx[25](
|
|
8017
8134
|
/*category*/
|
|
8018
|
-
ctx[
|
|
8135
|
+
ctx[46].id,
|
|
8019
8136
|
/*openCategoryContainer*/
|
|
8020
8137
|
ctx[10]
|
|
8021
8138
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8022
|
-
ctx[
|
|
8139
|
+
ctx[25](
|
|
8023
8140
|
/*category*/
|
|
8024
|
-
ctx[
|
|
8141
|
+
ctx[46].id,
|
|
8025
8142
|
/*openCategoryContainer*/
|
|
8026
8143
|
ctx[10]
|
|
8027
8144
|
) && /*checkSelectedSourceContainer*/
|
|
8028
|
-
ctx[
|
|
8145
|
+
ctx[22](
|
|
8029
8146
|
/*category*/
|
|
8030
|
-
ctx[
|
|
8147
|
+
ctx[46].id,
|
|
8031
8148
|
/*sourceSelectedContainerId*/
|
|
8032
8149
|
ctx[5],
|
|
8033
8150
|
/*currentSelectedItemId*/
|
|
@@ -8039,47 +8156,47 @@
|
|
|
8039
8156
|
if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
|
|
8040
8157
|
1030)
|
|
8041
8158
|
promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8042
|
-
(ctx[
|
|
8159
|
+
(ctx[20](
|
|
8043
8160
|
/*category*/
|
|
8044
|
-
ctx[
|
|
8161
|
+
ctx[46].id,
|
|
8045
8162
|
/*considerContainerId*/
|
|
8046
8163
|
ctx[1],
|
|
8047
8164
|
/*isDraggingOver*/
|
|
8048
8165
|
ctx[2]
|
|
8049
8166
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8050
|
-
(ctx[
|
|
8167
|
+
(ctx[25](
|
|
8051
8168
|
/*category*/
|
|
8052
|
-
ctx[
|
|
8169
|
+
ctx[46].id,
|
|
8053
8170
|
/*openCategoryContainer*/
|
|
8054
8171
|
ctx[10]
|
|
8055
8172
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
|
|
8056
8173
|
if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
|
|
8057
|
-
|
|
8174
|
+
33792)
|
|
8058
8175
|
promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
|
|
8059
|
-
ctx[
|
|
8176
|
+
ctx[25](
|
|
8060
8177
|
/*category*/
|
|
8061
|
-
ctx[
|
|
8178
|
+
ctx[46].id,
|
|
8062
8179
|
/*openCategoryContainer*/
|
|
8063
8180
|
ctx[10]
|
|
8064
8181
|
) || !useIsSmallScreen() ? (
|
|
8065
8182
|
/*categoryTitleHeight*/
|
|
8066
|
-
ctx[
|
|
8183
|
+
ctx[15][
|
|
8067
8184
|
/*category*/
|
|
8068
|
-
ctx[
|
|
8185
|
+
ctx[46].id
|
|
8069
8186
|
] + 16
|
|
8070
8187
|
) : (
|
|
8071
8188
|
/*categoryTitleHeight*/
|
|
8072
|
-
ctx[
|
|
8189
|
+
ctx[15][
|
|
8073
8190
|
/*category*/
|
|
8074
|
-
ctx[
|
|
8191
|
+
ctx[46].id
|
|
8075
8192
|
]
|
|
8076
8193
|
);
|
|
8077
8194
|
if (dirty[0] & /*openCategoryContainer*/
|
|
8078
8195
|
1024)
|
|
8079
8196
|
promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
|
|
8080
|
-
ctx[
|
|
8197
|
+
ctx[25](
|
|
8081
8198
|
/*category*/
|
|
8082
|
-
ctx[
|
|
8199
|
+
ctx[46].id,
|
|
8083
8200
|
/*openCategoryContainer*/
|
|
8084
8201
|
ctx[10]
|
|
8085
8202
|
);
|
|
@@ -8095,60 +8212,60 @@
|
|
|
8095
8212
|
}
|
|
8096
8213
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
|
|
8097
8214
|
1342 && div1_class_value !== (div1_class_value = "focus-ring group/itemContainer flex flex-col border border-gray-800 rounded-lg basis-0 grow relative md:min-h-[140px] md:items-center lg:mr-6 lg:last:mr-0 lg:min-h-[224px] " + /*checkContainerDragOver*/
|
|
8098
|
-
(ctx[
|
|
8215
|
+
(ctx[20](
|
|
8099
8216
|
/*category*/
|
|
8100
|
-
ctx[
|
|
8217
|
+
ctx[46].id,
|
|
8101
8218
|
/*considerContainerId*/
|
|
8102
8219
|
ctx[1],
|
|
8103
8220
|
/*isDraggingOver*/
|
|
8104
8221
|
ctx[2]
|
|
8105
8222
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8106
|
-
(ctx[
|
|
8223
|
+
(ctx[21](
|
|
8107
8224
|
/*category*/
|
|
8108
|
-
ctx[
|
|
8225
|
+
ctx[46].id,
|
|
8109
8226
|
/*dropContainerId*/
|
|
8110
8227
|
ctx[3]
|
|
8111
8228
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8112
|
-
(ctx[
|
|
8229
|
+
(ctx[21](
|
|
8113
8230
|
/*category*/
|
|
8114
|
-
ctx[
|
|
8231
|
+
ctx[46].id,
|
|
8115
8232
|
/*dropContainerId*/
|
|
8116
8233
|
ctx[3]
|
|
8117
8234
|
) && /*hasAddItemAnimation*/
|
|
8118
8235
|
ctx[8] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8119
|
-
(ctx[
|
|
8236
|
+
(ctx[22](
|
|
8120
8237
|
/*category*/
|
|
8121
|
-
ctx[
|
|
8238
|
+
ctx[46].id,
|
|
8122
8239
|
/*sourceSelectedContainerId*/
|
|
8123
8240
|
ctx[5],
|
|
8124
8241
|
/*currentSelectedItemId*/
|
|
8125
8242
|
ctx[4]
|
|
8126
8243
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8127
|
-
(ctx[
|
|
8244
|
+
(ctx[25](
|
|
8128
8245
|
/*category*/
|
|
8129
|
-
ctx[
|
|
8246
|
+
ctx[46].id,
|
|
8130
8247
|
/*openCategoryContainer*/
|
|
8131
8248
|
ctx[10]
|
|
8132
8249
|
) ? "min-h-[140px]" : ""))) {
|
|
8133
8250
|
attr(div1, "class", div1_class_value);
|
|
8134
8251
|
}
|
|
8135
8252
|
if (category !== /*category*/
|
|
8136
|
-
ctx[
|
|
8253
|
+
ctx[46]) {
|
|
8137
8254
|
unassign_div1();
|
|
8138
8255
|
category = /*category*/
|
|
8139
|
-
ctx[
|
|
8256
|
+
ctx[46];
|
|
8140
8257
|
assign_div1();
|
|
8141
8258
|
}
|
|
8142
8259
|
},
|
|
8143
8260
|
i(local) {
|
|
8144
8261
|
if (current)
|
|
8145
8262
|
return;
|
|
8146
|
-
transition_in(
|
|
8263
|
+
transition_in(if_block1);
|
|
8147
8264
|
transition_in(promptcategorisedndcontainer.$$.fragment, local);
|
|
8148
8265
|
current = true;
|
|
8149
8266
|
},
|
|
8150
8267
|
o(local) {
|
|
8151
|
-
transition_out(
|
|
8268
|
+
transition_out(if_block1);
|
|
8152
8269
|
transition_out(promptcategorisedndcontainer.$$.fragment, local);
|
|
8153
8270
|
current = false;
|
|
8154
8271
|
},
|
|
@@ -8156,6 +8273,8 @@
|
|
|
8156
8273
|
if (detaching) {
|
|
8157
8274
|
detach(div1);
|
|
8158
8275
|
}
|
|
8276
|
+
if (if_block0)
|
|
8277
|
+
if_block0.d();
|
|
8159
8278
|
if_blocks[current_block_type_index].d();
|
|
8160
8279
|
div0_resize_listener();
|
|
8161
8280
|
destroy_component(promptcategorisedndcontainer);
|
|
@@ -8165,6 +8284,44 @@
|
|
|
8165
8284
|
}
|
|
8166
8285
|
};
|
|
8167
8286
|
}
|
|
8287
|
+
function create_if_block6(ctx) {
|
|
8288
|
+
let span;
|
|
8289
|
+
let t0;
|
|
8290
|
+
let t1;
|
|
8291
|
+
let t2;
|
|
8292
|
+
return {
|
|
8293
|
+
c() {
|
|
8294
|
+
span = element("span");
|
|
8295
|
+
t0 = text("Option ");
|
|
8296
|
+
t1 = text(
|
|
8297
|
+
/*selectedItemName*/
|
|
8298
|
+
ctx[13]
|
|
8299
|
+
);
|
|
8300
|
+
t2 = text(" added in:\xA0");
|
|
8301
|
+
attr(span, "class", "sr-only");
|
|
8302
|
+
},
|
|
8303
|
+
m(target, anchor) {
|
|
8304
|
+
insert(target, span, anchor);
|
|
8305
|
+
append(span, t0);
|
|
8306
|
+
append(span, t1);
|
|
8307
|
+
append(span, t2);
|
|
8308
|
+
},
|
|
8309
|
+
p(ctx2, dirty) {
|
|
8310
|
+
if (dirty[0] & /*selectedItemName*/
|
|
8311
|
+
8192)
|
|
8312
|
+
set_data(
|
|
8313
|
+
t1,
|
|
8314
|
+
/*selectedItemName*/
|
|
8315
|
+
ctx2[13]
|
|
8316
|
+
);
|
|
8317
|
+
},
|
|
8318
|
+
d(detaching) {
|
|
8319
|
+
if (detaching) {
|
|
8320
|
+
detach(span);
|
|
8321
|
+
}
|
|
8322
|
+
}
|
|
8323
|
+
};
|
|
8324
|
+
}
|
|
8168
8325
|
function create_default_slot4(ctx) {
|
|
8169
8326
|
let button0;
|
|
8170
8327
|
let span0;
|
|
@@ -8181,28 +8338,38 @@
|
|
|
8181
8338
|
let t7;
|
|
8182
8339
|
let div4;
|
|
8183
8340
|
let div2;
|
|
8341
|
+
let show_if = (
|
|
8342
|
+
/*checkContainerDroppedItem*/
|
|
8343
|
+
ctx[21](
|
|
8344
|
+
CONTAINER_WORD_BIN_ID,
|
|
8345
|
+
/*dropContainerId*/
|
|
8346
|
+
ctx[3]
|
|
8347
|
+
)
|
|
8348
|
+
);
|
|
8349
|
+
let t8;
|
|
8184
8350
|
let span2;
|
|
8185
|
-
let t9;
|
|
8186
|
-
let span3;
|
|
8187
8351
|
let t10;
|
|
8352
|
+
let span3;
|
|
8188
8353
|
let t11;
|
|
8189
8354
|
let t12;
|
|
8190
8355
|
let t13;
|
|
8191
8356
|
let t14;
|
|
8357
|
+
let t15;
|
|
8192
8358
|
let div3;
|
|
8193
8359
|
let button1;
|
|
8194
8360
|
let span4;
|
|
8195
8361
|
let smallchevronleft;
|
|
8196
8362
|
let button1_class_value;
|
|
8197
8363
|
let button1_disabled_value;
|
|
8198
|
-
let t15;
|
|
8199
|
-
let promptcategorisedndcontainer;
|
|
8200
8364
|
let t16;
|
|
8365
|
+
let promptcategorisedndcontainer;
|
|
8366
|
+
let t17;
|
|
8201
8367
|
let button2;
|
|
8202
8368
|
let span5;
|
|
8203
8369
|
let smallchevronright;
|
|
8204
8370
|
let button2_class_value;
|
|
8205
8371
|
let button2_disabled_value;
|
|
8372
|
+
let div4_aria_live_value;
|
|
8206
8373
|
let div4_class_value;
|
|
8207
8374
|
let current;
|
|
8208
8375
|
let mounted;
|
|
@@ -8210,16 +8377,16 @@
|
|
|
8210
8377
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
8211
8378
|
let if_block0 = (
|
|
8212
8379
|
/*isModalOpen*/
|
|
8213
|
-
ctx[9] &&
|
|
8380
|
+
ctx[9] && create_if_block_42(ctx)
|
|
8214
8381
|
);
|
|
8215
8382
|
let if_block1 = (
|
|
8216
8383
|
/*totalRemainingWordBinItem*/
|
|
8217
8384
|
ctx[7] !== /*totalCategoryItems*/
|
|
8218
|
-
ctx[0] &&
|
|
8385
|
+
ctx[0] && create_if_block_32(ctx)
|
|
8219
8386
|
);
|
|
8220
8387
|
let each_value = ensure_array_like(Object.values(
|
|
8221
8388
|
/*categoryGroups*/
|
|
8222
|
-
ctx[
|
|
8389
|
+
ctx[19]
|
|
8223
8390
|
));
|
|
8224
8391
|
let each_blocks = [];
|
|
8225
8392
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -8228,18 +8395,19 @@
|
|
|
8228
8395
|
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
8229
8396
|
each_blocks[i] = null;
|
|
8230
8397
|
});
|
|
8398
|
+
let if_block2 = show_if && create_if_block6(ctx);
|
|
8231
8399
|
smallchevronleft = new SmallChevronLeft_default({});
|
|
8232
8400
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
8233
8401
|
props: {
|
|
8234
8402
|
containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
8235
|
-
(ctx[
|
|
8403
|
+
(ctx[27](
|
|
8236
8404
|
/*totalRemainingWordBinItem*/
|
|
8237
8405
|
ctx[7]
|
|
8238
8406
|
) && !/*currentSelectedItemId*/
|
|
8239
8407
|
ctx[4] ? "absolute inset-0" : ""),
|
|
8240
8408
|
items: (
|
|
8241
8409
|
/*categoryItems*/
|
|
8242
|
-
ctx[
|
|
8410
|
+
ctx[18]
|
|
8243
8411
|
),
|
|
8244
8412
|
containerId: CONTAINER_WORD_BIN_ID,
|
|
8245
8413
|
ariaLabel: "Word bin"
|
|
@@ -8248,7 +8416,7 @@
|
|
|
8248
8416
|
promptcategorisedndcontainer.$on(
|
|
8249
8417
|
"saveCategory",
|
|
8250
8418
|
/*saveCategory*/
|
|
8251
|
-
ctx[
|
|
8419
|
+
ctx[28]
|
|
8252
8420
|
);
|
|
8253
8421
|
smallchevronright = new SmallChevronRight_default({});
|
|
8254
8422
|
return {
|
|
@@ -8277,28 +8445,31 @@
|
|
|
8277
8445
|
t7 = space();
|
|
8278
8446
|
div4 = element("div");
|
|
8279
8447
|
div2 = element("div");
|
|
8448
|
+
if (if_block2)
|
|
8449
|
+
if_block2.c();
|
|
8450
|
+
t8 = space();
|
|
8280
8451
|
span2 = element("span");
|
|
8281
|
-
span2.textContent = "Word Bin";
|
|
8282
|
-
|
|
8452
|
+
span2.textContent = "Word Bin:\xA0";
|
|
8453
|
+
t10 = space();
|
|
8283
8454
|
span3 = element("span");
|
|
8284
|
-
|
|
8455
|
+
t11 = text(
|
|
8285
8456
|
/*totalRemainingWordBinItem*/
|
|
8286
8457
|
ctx[7]
|
|
8287
8458
|
);
|
|
8288
|
-
|
|
8289
|
-
|
|
8459
|
+
t12 = text(" out of ");
|
|
8460
|
+
t13 = text(
|
|
8290
8461
|
/*totalCategoryItems*/
|
|
8291
8462
|
ctx[0]
|
|
8292
8463
|
);
|
|
8293
|
-
|
|
8294
|
-
|
|
8464
|
+
t14 = text(" left");
|
|
8465
|
+
t15 = space();
|
|
8295
8466
|
div3 = element("div");
|
|
8296
8467
|
button1 = element("button");
|
|
8297
8468
|
span4 = element("span");
|
|
8298
8469
|
create_component(smallchevronleft.$$.fragment);
|
|
8299
|
-
t15 = space();
|
|
8300
|
-
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
8301
8470
|
t16 = space();
|
|
8471
|
+
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
8472
|
+
t17 = space();
|
|
8302
8473
|
button2 = element("button");
|
|
8303
8474
|
span5 = element("span");
|
|
8304
8475
|
create_component(smallchevronright.$$.fragment);
|
|
@@ -8327,7 +8498,7 @@
|
|
|
8327
8498
|
attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
|
|
8328
8499
|
attr(button1, "aria-label", "Left");
|
|
8329
8500
|
attr(button1, "class", button1_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8330
|
-
(ctx[
|
|
8501
|
+
(ctx[27](
|
|
8331
8502
|
/*totalRemainingWordBinItem*/
|
|
8332
8503
|
ctx[7]
|
|
8333
8504
|
) ? "hidden" : ""));
|
|
@@ -8336,7 +8507,7 @@
|
|
|
8336
8507
|
attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
|
|
8337
8508
|
attr(button2, "aria-label", "Right");
|
|
8338
8509
|
attr(button2, "class", button2_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8339
|
-
(ctx[
|
|
8510
|
+
(ctx[27](
|
|
8340
8511
|
/*totalRemainingWordBinItem*/
|
|
8341
8512
|
ctx[7]
|
|
8342
8513
|
) ? "hidden" : ""));
|
|
@@ -8350,27 +8521,33 @@
|
|
|
8350
8521
|
/*categoryTabIndex*/
|
|
8351
8522
|
ctx[12]
|
|
8352
8523
|
);
|
|
8524
|
+
attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
8525
|
+
ctx[21](
|
|
8526
|
+
CONTAINER_WORD_BIN_ID,
|
|
8527
|
+
/*dropContainerId*/
|
|
8528
|
+
ctx[3]
|
|
8529
|
+
) ? "polite" : "off");
|
|
8353
8530
|
attr(div4, "role", "group");
|
|
8354
8531
|
attr(div4, "class", div4_class_value = "focus-ring shadow-[0_-12px_14px_-16px_#00000033] rounded-lg relative min-h-[133px] md:min-h-[164px] md:border md:shadow-[0_0_#0000] md:border-gray-400 " + /*checkContainerDragOver*/
|
|
8355
|
-
(ctx[
|
|
8532
|
+
(ctx[20](
|
|
8356
8533
|
CONTAINER_WORD_BIN_ID,
|
|
8357
8534
|
/*considerContainerId*/
|
|
8358
8535
|
ctx[1],
|
|
8359
8536
|
/*isDraggingOver*/
|
|
8360
8537
|
ctx[2]
|
|
8361
8538
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
8362
|
-
(ctx[
|
|
8539
|
+
(ctx[21](
|
|
8363
8540
|
CONTAINER_WORD_BIN_ID,
|
|
8364
8541
|
/*dropContainerId*/
|
|
8365
8542
|
ctx[3]
|
|
8366
8543
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8367
|
-
(ctx[
|
|
8544
|
+
(ctx[21](
|
|
8368
8545
|
CONTAINER_WORD_BIN_ID,
|
|
8369
8546
|
/*dropContainerId*/
|
|
8370
8547
|
ctx[3]
|
|
8371
8548
|
) && /*hasAddItemAnimation*/
|
|
8372
8549
|
ctx[8] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8373
|
-
(ctx[
|
|
8550
|
+
(ctx[22](
|
|
8374
8551
|
CONTAINER_WORD_BIN_ID,
|
|
8375
8552
|
/*sourceSelectedContainerId*/
|
|
8376
8553
|
ctx[5],
|
|
@@ -8403,25 +8580,28 @@
|
|
|
8403
8580
|
insert(target, t7, anchor);
|
|
8404
8581
|
insert(target, div4, anchor);
|
|
8405
8582
|
append(div4, div2);
|
|
8583
|
+
if (if_block2)
|
|
8584
|
+
if_block2.m(div2, null);
|
|
8585
|
+
append(div2, t8);
|
|
8406
8586
|
append(div2, span2);
|
|
8407
|
-
append(div2,
|
|
8587
|
+
append(div2, t10);
|
|
8408
8588
|
append(div2, span3);
|
|
8409
|
-
append(span3, t10);
|
|
8410
8589
|
append(span3, t11);
|
|
8411
8590
|
append(span3, t12);
|
|
8412
8591
|
append(span3, t13);
|
|
8413
|
-
append(
|
|
8592
|
+
append(span3, t14);
|
|
8593
|
+
append(div4, t15);
|
|
8414
8594
|
append(div4, div3);
|
|
8415
8595
|
append(div3, button1);
|
|
8416
8596
|
append(button1, span4);
|
|
8417
8597
|
mount_component(smallchevronleft, span4, null);
|
|
8418
|
-
append(div3, t15);
|
|
8419
|
-
mount_component(promptcategorisedndcontainer, div3, null);
|
|
8420
8598
|
append(div3, t16);
|
|
8599
|
+
mount_component(promptcategorisedndcontainer, div3, null);
|
|
8600
|
+
append(div3, t17);
|
|
8421
8601
|
append(div3, button2);
|
|
8422
8602
|
append(button2, span5);
|
|
8423
8603
|
mount_component(smallchevronright, span5, null);
|
|
8424
|
-
ctx[
|
|
8604
|
+
ctx[37](div4);
|
|
8425
8605
|
current = true;
|
|
8426
8606
|
if (!mounted) {
|
|
8427
8607
|
dispose = [
|
|
@@ -8429,7 +8609,7 @@
|
|
|
8429
8609
|
button0,
|
|
8430
8610
|
"keypress",
|
|
8431
8611
|
/*goToWordBin*/
|
|
8432
|
-
ctx[
|
|
8612
|
+
ctx[31]
|
|
8433
8613
|
),
|
|
8434
8614
|
listen(button1, "click", function() {
|
|
8435
8615
|
if (is_function(useNavigateItem(
|
|
@@ -8467,13 +8647,13 @@
|
|
|
8467
8647
|
div4,
|
|
8468
8648
|
"keydown",
|
|
8469
8649
|
/*keydown_handler_1*/
|
|
8470
|
-
ctx[
|
|
8650
|
+
ctx[36]
|
|
8471
8651
|
),
|
|
8472
8652
|
listen(
|
|
8473
8653
|
div4,
|
|
8474
8654
|
"focus",
|
|
8475
8655
|
/*resetTabCategory*/
|
|
8476
|
-
ctx[
|
|
8656
|
+
ctx[30]
|
|
8477
8657
|
)
|
|
8478
8658
|
];
|
|
8479
8659
|
mounted = true;
|
|
@@ -8501,7 +8681,7 @@
|
|
|
8501
8681
|
transition_in(if_block0, 1);
|
|
8502
8682
|
}
|
|
8503
8683
|
} else {
|
|
8504
|
-
if_block0 =
|
|
8684
|
+
if_block0 = create_if_block_42(ctx);
|
|
8505
8685
|
if_block0.c();
|
|
8506
8686
|
transition_in(if_block0, 1);
|
|
8507
8687
|
if_block0.m(t3.parentNode, t3);
|
|
@@ -8525,7 +8705,7 @@
|
|
|
8525
8705
|
transition_in(if_block1, 1);
|
|
8526
8706
|
}
|
|
8527
8707
|
} else {
|
|
8528
|
-
if_block1 =
|
|
8708
|
+
if_block1 = create_if_block_32(ctx);
|
|
8529
8709
|
if_block1.c();
|
|
8530
8710
|
transition_in(if_block1, 1);
|
|
8531
8711
|
if_block1.m(div0, null);
|
|
@@ -8546,11 +8726,11 @@
|
|
|
8546
8726
|
ctx[9]
|
|
8547
8727
|
);
|
|
8548
8728
|
}
|
|
8549
|
-
if (dirty[0] & /*categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, checkifCategoryContainerOpen, openCategoryContainer, tabCategory, getContainerTabSelected, resetTabCategory, categoryTitleHeight, saveCategory, getTotalWords, currentAnswer, addCategoryContainer*/
|
|
8550
|
-
|
|
8729
|
+
if (dirty[0] & /*categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, checkifCategoryContainerOpen, openCategoryContainer, tabCategory, getContainerTabSelected, resetTabCategory, categoryTitleHeight, saveCategory, getTotalWords, currentAnswer, addCategoryContainer, selectedItemName*/
|
|
8730
|
+
2004415870) {
|
|
8551
8731
|
each_value = ensure_array_like(Object.values(
|
|
8552
8732
|
/*categoryGroups*/
|
|
8553
|
-
ctx[
|
|
8733
|
+
ctx[19]
|
|
8554
8734
|
));
|
|
8555
8735
|
let i;
|
|
8556
8736
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -8571,23 +8751,43 @@
|
|
|
8571
8751
|
}
|
|
8572
8752
|
check_outros();
|
|
8573
8753
|
}
|
|
8754
|
+
if (dirty[0] & /*dropContainerId*/
|
|
8755
|
+
8)
|
|
8756
|
+
show_if = /*checkContainerDroppedItem*/
|
|
8757
|
+
ctx[21](
|
|
8758
|
+
CONTAINER_WORD_BIN_ID,
|
|
8759
|
+
/*dropContainerId*/
|
|
8760
|
+
ctx[3]
|
|
8761
|
+
);
|
|
8762
|
+
if (show_if) {
|
|
8763
|
+
if (if_block2) {
|
|
8764
|
+
if_block2.p(ctx, dirty);
|
|
8765
|
+
} else {
|
|
8766
|
+
if_block2 = create_if_block6(ctx);
|
|
8767
|
+
if_block2.c();
|
|
8768
|
+
if_block2.m(div2, t8);
|
|
8769
|
+
}
|
|
8770
|
+
} else if (if_block2) {
|
|
8771
|
+
if_block2.d(1);
|
|
8772
|
+
if_block2 = null;
|
|
8773
|
+
}
|
|
8574
8774
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8575
8775
|
128)
|
|
8576
8776
|
set_data(
|
|
8577
|
-
|
|
8777
|
+
t11,
|
|
8578
8778
|
/*totalRemainingWordBinItem*/
|
|
8579
8779
|
ctx[7]
|
|
8580
8780
|
);
|
|
8581
8781
|
if (!current || dirty[0] & /*totalCategoryItems*/
|
|
8582
8782
|
1)
|
|
8583
8783
|
set_data(
|
|
8584
|
-
|
|
8784
|
+
t13,
|
|
8585
8785
|
/*totalCategoryItems*/
|
|
8586
8786
|
ctx[0]
|
|
8587
8787
|
);
|
|
8588
8788
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8589
8789
|
128 && button1_class_value !== (button1_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8590
|
-
(ctx[
|
|
8790
|
+
(ctx[27](
|
|
8591
8791
|
/*totalRemainingWordBinItem*/
|
|
8592
8792
|
ctx[7]
|
|
8593
8793
|
) ? "hidden" : ""))) {
|
|
@@ -8602,7 +8802,7 @@
|
|
|
8602
8802
|
if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
|
|
8603
8803
|
144)
|
|
8604
8804
|
promptcategorisedndcontainer_changes.containerClass = "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
8605
|
-
(ctx[
|
|
8805
|
+
(ctx[27](
|
|
8606
8806
|
/*totalRemainingWordBinItem*/
|
|
8607
8807
|
ctx[7]
|
|
8608
8808
|
) && !/*currentSelectedItemId*/
|
|
@@ -8610,7 +8810,7 @@
|
|
|
8610
8810
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
8611
8811
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8612
8812
|
128 && button2_class_value !== (button2_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8613
|
-
(ctx[
|
|
8813
|
+
(ctx[27](
|
|
8614
8814
|
/*totalRemainingWordBinItem*/
|
|
8615
8815
|
ctx[7]
|
|
8616
8816
|
) ? "hidden" : ""))) {
|
|
@@ -8631,27 +8831,36 @@
|
|
|
8631
8831
|
ctx[12]
|
|
8632
8832
|
);
|
|
8633
8833
|
}
|
|
8834
|
+
if (!current || dirty[0] & /*dropContainerId*/
|
|
8835
|
+
8 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
8836
|
+
ctx[21](
|
|
8837
|
+
CONTAINER_WORD_BIN_ID,
|
|
8838
|
+
/*dropContainerId*/
|
|
8839
|
+
ctx[3]
|
|
8840
|
+
) ? "polite" : "off")) {
|
|
8841
|
+
attr(div4, "aria-live", div4_aria_live_value);
|
|
8842
|
+
}
|
|
8634
8843
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
|
|
8635
8844
|
318 && div4_class_value !== (div4_class_value = "focus-ring shadow-[0_-12px_14px_-16px_#00000033] rounded-lg relative min-h-[133px] md:min-h-[164px] md:border md:shadow-[0_0_#0000] md:border-gray-400 " + /*checkContainerDragOver*/
|
|
8636
|
-
(ctx[
|
|
8845
|
+
(ctx[20](
|
|
8637
8846
|
CONTAINER_WORD_BIN_ID,
|
|
8638
8847
|
/*considerContainerId*/
|
|
8639
8848
|
ctx[1],
|
|
8640
8849
|
/*isDraggingOver*/
|
|
8641
8850
|
ctx[2]
|
|
8642
8851
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
8643
|
-
(ctx[
|
|
8852
|
+
(ctx[21](
|
|
8644
8853
|
CONTAINER_WORD_BIN_ID,
|
|
8645
8854
|
/*dropContainerId*/
|
|
8646
8855
|
ctx[3]
|
|
8647
8856
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8648
|
-
(ctx[
|
|
8857
|
+
(ctx[21](
|
|
8649
8858
|
CONTAINER_WORD_BIN_ID,
|
|
8650
8859
|
/*dropContainerId*/
|
|
8651
8860
|
ctx[3]
|
|
8652
8861
|
) && /*hasAddItemAnimation*/
|
|
8653
8862
|
ctx[8] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8654
|
-
(ctx[
|
|
8863
|
+
(ctx[22](
|
|
8655
8864
|
CONTAINER_WORD_BIN_ID,
|
|
8656
8865
|
/*sourceSelectedContainerId*/
|
|
8657
8866
|
ctx[5],
|
|
@@ -8705,10 +8914,12 @@
|
|
|
8705
8914
|
if (if_block1)
|
|
8706
8915
|
if_block1.d();
|
|
8707
8916
|
destroy_each(each_blocks, detaching);
|
|
8917
|
+
if (if_block2)
|
|
8918
|
+
if_block2.d();
|
|
8708
8919
|
destroy_component(smallchevronleft);
|
|
8709
8920
|
destroy_component(promptcategorisedndcontainer);
|
|
8710
8921
|
destroy_component(smallchevronright);
|
|
8711
|
-
ctx[
|
|
8922
|
+
ctx[37](null);
|
|
8712
8923
|
mounted = false;
|
|
8713
8924
|
run_all(dispose);
|
|
8714
8925
|
}
|
|
@@ -8721,11 +8932,11 @@
|
|
|
8721
8932
|
props: {
|
|
8722
8933
|
rubric: (
|
|
8723
8934
|
/*rubric*/
|
|
8724
|
-
ctx[
|
|
8935
|
+
ctx[16].text
|
|
8725
8936
|
),
|
|
8726
8937
|
prompt: (
|
|
8727
8938
|
/*prompt*/
|
|
8728
|
-
ctx[
|
|
8939
|
+
ctx[17]
|
|
8729
8940
|
),
|
|
8730
8941
|
$$slots: { default: [create_default_slot4] },
|
|
8731
8942
|
$$scope: { ctx }
|
|
@@ -8741,9 +8952,9 @@
|
|
|
8741
8952
|
},
|
|
8742
8953
|
p(ctx2, dirty) {
|
|
8743
8954
|
const promptbody_changes = {};
|
|
8744
|
-
if (dirty[0] & /*categoryTabIndex, considerContainerId, isDraggingOver,
|
|
8745
|
-
|
|
8746
|
-
|
|
8955
|
+
if (dirty[0] & /*categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, isModalOpen*/
|
|
8956
|
+
65535 | dirty[1] & /*$$scope*/
|
|
8957
|
+
262144) {
|
|
8747
8958
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8748
8959
|
}
|
|
8749
8960
|
promptbody.$set(promptbody_changes);
|
|
@@ -8780,12 +8991,13 @@
|
|
|
8780
8991
|
let openCategoryContainer = [];
|
|
8781
8992
|
let currentWordBinIndex = [];
|
|
8782
8993
|
let categoryTabIndex = 0;
|
|
8994
|
+
let selectedItemName = "";
|
|
8783
8995
|
const { rubric, interaction, metadata } = sessionData;
|
|
8784
8996
|
const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
|
|
8785
8997
|
const categoryItems = useFilterUniqueObject(interactionCategoryItems);
|
|
8786
8998
|
const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
|
|
8787
8999
|
const tabCategory = [{ CONTAINER_WORD_BIN_ID: false }];
|
|
8788
|
-
categoryGroups.map((group) => $$invalidate(
|
|
9000
|
+
categoryGroups.map((group) => $$invalidate(14, tabCategory[group.id] = false, tabCategory));
|
|
8789
9001
|
totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
|
|
8790
9002
|
let wordBinItems = categoryItems.map((item) => item.id);
|
|
8791
9003
|
let initialCategoryAnswer = [
|
|
@@ -8796,7 +9008,7 @@
|
|
|
8796
9008
|
];
|
|
8797
9009
|
let categoryTitleHeight = [];
|
|
8798
9010
|
categoryGroups.map((category) => {
|
|
8799
|
-
$$invalidate(
|
|
9011
|
+
$$invalidate(15, categoryTitleHeight[category.id] = "", categoryTitleHeight);
|
|
8800
9012
|
});
|
|
8801
9013
|
if (metadata) {
|
|
8802
9014
|
const { events } = metadata.interactions;
|
|
@@ -8826,7 +9038,7 @@
|
|
|
8826
9038
|
$$invalidate(12, categoryTabIndex = storeIsModalOpen ? -1 : 0);
|
|
8827
9039
|
});
|
|
8828
9040
|
categoriseSettings.subscribe((value) => {
|
|
8829
|
-
const { considerContainerId: storeConsiderContainerId, isDraggingOver: storeIsDraggingOver, dropContainerId: storeDropContainerId, sourceCloneContainerId: storeSourceCloneContainerId, selectedItemId: storeSelectedItemId, sourceSelectedContainerId: storeSourceSelectedContainerId, currentAnswer: storeCurrentAnswer, hasAddItemAnimation: storeHasAddItemAnimation, openCategoryContainer: storeOpenCategoryContainer, currentWordBinIndex: storeCurrentWordBinIndex, lastSelectedTabContainer } = value;
|
|
9041
|
+
const { considerContainerId: storeConsiderContainerId, isDraggingOver: storeIsDraggingOver, dropContainerId: storeDropContainerId, sourceCloneContainerId: storeSourceCloneContainerId, selectedItemId: storeSelectedItemId, sourceSelectedContainerId: storeSourceSelectedContainerId, currentAnswer: storeCurrentAnswer, hasAddItemAnimation: storeHasAddItemAnimation, openCategoryContainer: storeOpenCategoryContainer, currentWordBinIndex: storeCurrentWordBinIndex, selectedItemName: storeSelectedItemName, lastSelectedTabContainer } = value;
|
|
8830
9042
|
$$invalidate(1, considerContainerId = storeConsiderContainerId);
|
|
8831
9043
|
$$invalidate(2, isDraggingOver = storeIsDraggingOver);
|
|
8832
9044
|
$$invalidate(3, dropContainerId = storeDropContainerId);
|
|
@@ -8837,6 +9049,7 @@
|
|
|
8837
9049
|
$$invalidate(8, hasAddItemAnimation = storeHasAddItemAnimation);
|
|
8838
9050
|
$$invalidate(10, openCategoryContainer = storeOpenCategoryContainer);
|
|
8839
9051
|
$$invalidate(11, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
9052
|
+
$$invalidate(13, selectedItemName = storeSelectedItemName);
|
|
8840
9053
|
$$invalidate(12, categoryTabIndex = storeSelectedItemId.length ? -1 : 0);
|
|
8841
9054
|
const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
8842
9055
|
$$invalidate(7, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
|
|
@@ -8903,7 +9116,8 @@
|
|
|
8903
9116
|
categoriseSettings.set({
|
|
8904
9117
|
...get_store_value(categoriseSettings),
|
|
8905
9118
|
selectedItemId: "",
|
|
8906
|
-
sourceSelectedContainerId: ""
|
|
9119
|
+
sourceSelectedContainerId: "",
|
|
9120
|
+
selectedItemName: ""
|
|
8907
9121
|
});
|
|
8908
9122
|
}
|
|
8909
9123
|
};
|
|
@@ -8919,25 +9133,25 @@
|
|
|
8919
9133
|
};
|
|
8920
9134
|
function div0_elementresize_handler(category) {
|
|
8921
9135
|
categoryTitleHeight[category.id] = this.clientHeight;
|
|
8922
|
-
$$invalidate(
|
|
9136
|
+
$$invalidate(15, categoryTitleHeight);
|
|
8923
9137
|
}
|
|
8924
9138
|
const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
|
|
8925
9139
|
function div1_binding($$value, category) {
|
|
8926
9140
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8927
9141
|
tabCategory[category.id] = $$value;
|
|
8928
|
-
$$invalidate(
|
|
9142
|
+
$$invalidate(14, tabCategory);
|
|
8929
9143
|
});
|
|
8930
9144
|
}
|
|
8931
9145
|
const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
|
|
8932
9146
|
function div4_binding($$value) {
|
|
8933
9147
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8934
9148
|
tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
|
|
8935
|
-
$$invalidate(
|
|
9149
|
+
$$invalidate(14, tabCategory);
|
|
8936
9150
|
});
|
|
8937
9151
|
}
|
|
8938
9152
|
$$self.$$set = ($$props2) => {
|
|
8939
9153
|
if ("sessionData" in $$props2)
|
|
8940
|
-
$$invalidate(
|
|
9154
|
+
$$invalidate(32, sessionData = $$props2.sessionData);
|
|
8941
9155
|
};
|
|
8942
9156
|
return [
|
|
8943
9157
|
totalCategoryItems,
|
|
@@ -8953,6 +9167,7 @@
|
|
|
8953
9167
|
openCategoryContainer,
|
|
8954
9168
|
currentWordBinIndex,
|
|
8955
9169
|
categoryTabIndex,
|
|
9170
|
+
selectedItemName,
|
|
8956
9171
|
tabCategory,
|
|
8957
9172
|
categoryTitleHeight,
|
|
8958
9173
|
rubric,
|
|
@@ -8982,10 +9197,10 @@
|
|
|
8982
9197
|
var PromptCategorise = class extends SvelteComponent {
|
|
8983
9198
|
constructor(options) {
|
|
8984
9199
|
super();
|
|
8985
|
-
init(this, options, instance9, create_fragment20, safe_not_equal, { sessionData:
|
|
9200
|
+
init(this, options, instance9, create_fragment20, safe_not_equal, { sessionData: 32 }, null, [-1, -1]);
|
|
8986
9201
|
}
|
|
8987
9202
|
get sessionData() {
|
|
8988
|
-
return this.$$.ctx[
|
|
9203
|
+
return this.$$.ctx[32];
|
|
8989
9204
|
}
|
|
8990
9205
|
set sessionData(sessionData) {
|
|
8991
9206
|
this.$$set({ sessionData });
|
|
@@ -9121,7 +9336,7 @@
|
|
|
9121
9336
|
let if_block;
|
|
9122
9337
|
let if_block_anchor;
|
|
9123
9338
|
let current;
|
|
9124
|
-
const if_block_creators = [create_if_block_24,
|
|
9339
|
+
const if_block_creators = [create_if_block_24, create_if_block_33, create_if_block_43, create_else_block4];
|
|
9125
9340
|
const if_blocks = [];
|
|
9126
9341
|
function select_block_type_1(ctx2, dirty) {
|
|
9127
9342
|
if (
|
|
@@ -9249,7 +9464,7 @@
|
|
|
9249
9464
|
}
|
|
9250
9465
|
};
|
|
9251
9466
|
}
|
|
9252
|
-
function
|
|
9467
|
+
function create_if_block_43(ctx) {
|
|
9253
9468
|
let promptcategorise;
|
|
9254
9469
|
let current;
|
|
9255
9470
|
promptcategorise = new PromptCategorise_default({
|
|
@@ -9294,7 +9509,7 @@
|
|
|
9294
9509
|
}
|
|
9295
9510
|
};
|
|
9296
9511
|
}
|
|
9297
|
-
function
|
|
9512
|
+
function create_if_block_33(ctx) {
|
|
9298
9513
|
let prompttypein;
|
|
9299
9514
|
let current;
|
|
9300
9515
|
prompttypein = new PromptTypeIn_default({
|