lido-player 0.0.2-alpha-62 → 0.0.2-alpha-64

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.
Files changed (70) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +150 -15
  3. package/dist/cjs/{utils-b13cba29.js → utils-becabee2.js} +31 -25
  4. package/dist/collection/components/container/lido-container.js +28 -1
  5. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +28 -20
  6. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +4 -4
  7. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +4 -4
  8. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +1 -1
  9. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
  10. package/dist/collection/utils/audioPlayer.js +4 -0
  11. package/dist/collection/utils/utils.js +22 -19
  12. package/dist/collection/utils/utilsHandlers/clickHandler.js +1 -3
  13. package/dist/collection/utils/utilsHandlers/highlightHandler.js +4 -4
  14. package/dist/components/index.js +1 -1
  15. package/dist/components/lido-avatar.js +1 -1
  16. package/dist/components/lido-balance.js +1 -1
  17. package/dist/components/lido-calculator.js +1 -1
  18. package/dist/components/lido-canvas.js +1 -1
  19. package/dist/components/lido-cell.js +1 -1
  20. package/dist/components/lido-col.js +1 -1
  21. package/dist/components/lido-container.js +1 -1
  22. package/dist/components/lido-flash-card.js +1 -1
  23. package/dist/components/lido-float.js +1 -1
  24. package/dist/components/lido-home.js +1 -1
  25. package/dist/components/lido-image.js +1 -1
  26. package/dist/components/lido-keyboard.js +1 -1
  27. package/dist/components/lido-math-matrix.js +1 -1
  28. package/dist/components/lido-pos.js +1 -1
  29. package/dist/components/lido-random.js +1 -1
  30. package/dist/components/lido-root.js +22 -22
  31. package/dist/components/lido-row.js +1 -1
  32. package/dist/components/lido-shape.js +1 -1
  33. package/dist/components/lido-slide-fill.js +1 -1
  34. package/dist/components/lido-text.js +1 -1
  35. package/dist/components/lido-trace.js +1 -1
  36. package/dist/components/lido-wrap.js +1 -1
  37. package/dist/components/{p-40dd6fa3.js → p-2419ea86.js} +1 -1
  38. package/dist/components/{p-cdb5b0e6.js → p-26d79db2.js} +1 -1
  39. package/dist/components/{p-777293d6.js → p-2ca8a79c.js} +1 -1
  40. package/dist/components/{p-5da9c4a0.js → p-5b2e159e.js} +30 -3
  41. package/dist/components/{p-bf0c1e81.js → p-5e01d929.js} +1 -1
  42. package/dist/components/{p-64b85ae6.js → p-5e2fb7e3.js} +1 -1
  43. package/dist/components/{p-fb9e274c.js → p-64ba84fa.js} +21 -21
  44. package/dist/components/{p-7256917d.js → p-6d65a7cd.js} +1 -1
  45. package/dist/components/{p-bd09bc5b.js → p-738d415b.js} +31 -25
  46. package/dist/components/{p-552f581f.js → p-86844c0d.js} +1 -1
  47. package/dist/components/{p-d2d6e641.js → p-a88e9876.js} +1 -1
  48. package/dist/components/{p-da85322a.js → p-acd46f02.js} +2 -2
  49. package/dist/components/{p-f4c980f0.js → p-b4179933.js} +1 -1
  50. package/dist/components/{p-39767aae.js → p-b6f1e3fc.js} +1 -1
  51. package/dist/components/{p-85eaa0b7.js → p-ba031294.js} +1 -1
  52. package/dist/components/{p-d0d890d8.js → p-d5c8eeff.js} +3 -3
  53. package/dist/components/{p-e42ddea5.js → p-de4045c0.js} +1 -1
  54. package/dist/components/{p-21938b85.js → p-de8c9990.js} +2 -2
  55. package/dist/components/{p-8f174468.js → p-e0149bae.js} +1 -1
  56. package/dist/components/{p-3db5a756.js → p-eba44865.js} +1 -1
  57. package/dist/components/{p-5a3a7f41.js → p-ee672850.js} +122 -14
  58. package/dist/components/{p-6c1ea24d.js → p-fd181d67.js} +1 -1
  59. package/dist/esm/index.js +1 -1
  60. package/dist/esm/lido-avatar_22.entry.js +150 -15
  61. package/dist/esm/{utils-b7ed15c2.js → utils-fbfd097f.js} +31 -25
  62. package/dist/lido-player/index.esm.js +1 -1
  63. package/dist/lido-player/lido-player.esm.js +1 -1
  64. package/dist/lido-player/{p-1557f3df.js → p-bc5f9140.js} +2 -2
  65. package/dist/lido-player/p-ded2bd49.entry.js +1 -0
  66. package/dist/types/stories/Templates/matchingCard/matching-card.stories.d.ts +1 -1
  67. package/dist/types/utils/audioPlayer.d.ts +1 -0
  68. package/dist/types/utils/constants.d.ts +28 -1
  69. package/package.json +1 -1
  70. package/dist/lido-player/p-7e79ea93.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const utils = require('./utils-b13cba29.js');
5
+ const utils = require('./utils-becabee2.js');
6
6
  require('./index-baff5c15.js');
7
7
 
8
8
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-baff5c15.js');
6
- const utils = require('./utils-b13cba29.js');
6
+ const utils = require('./utils-becabee2.js');
7
7
 
8
8
  var rive = {exports: {}};
9
9
 
@@ -9810,7 +9810,34 @@ const instruction$4 = {
9810
9810
  dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
9811
9811
  mcq: "Select the correct answer from the options provided.",
9812
9812
  tracing: "Trace the shape by following the outline carefully.",
9813
- flashcards: "Review the flashcards to reinforce your learning."
9813
+ flashcards: "Review the flashcards to reinforce your learning.",
9814
+ substractionWithImage: "substractionWithImageEngAudio",
9815
+ substractionWithoutImage: "substractionWithoutImageEngAudio",
9816
+ numberIdentificationWithImage: "numberIdentificationWithImageEngAudio",
9817
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageEngAudio",
9818
+ wordBuildingWithImage: "wordBuildingWithImageEngAudio",
9819
+ wordBuildingWithoutImage: "wordBuildingWithoutImageEngAudio",
9820
+ pictureClues: "pictureCluesEngAudio",
9821
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesEngAudio",
9822
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageEngAudio",
9823
+ sentenceMatch: "sentenceMatchEngAudio",
9824
+ imageMatch: "imageMatchEngAudio",
9825
+ palStoryTale: "palStoryTaleEngAudio",
9826
+ palEgmaPatternMatching: "palEgmaPatternMatchingEngAudio",
9827
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropEngAudio",
9828
+ palEgmaWordProblemClick: "palEgmaWordProblemClickEngAudio",
9829
+ palEgraOddOneOut: "palEgraOddOneOutEngAudio",
9830
+ palEgraArrangePictures: "palEgraArrangePicturesEngAudio",
9831
+ palEgraBuildWord: "palEgraBuildWordEngAudio",
9832
+ palEgraWordFormation: "palEgraWordFormationEngAudio",
9833
+ palInventedSpelling: "palInventedSpellingEngAudio",
9834
+ palLetterIdentification: "palLetterIdentificationEngAudio",
9835
+ palStoryMaking: "palStoryMakingEngAudio",
9836
+ palegmasumtogether: "palegmasumtogetherEngAudio",
9837
+ palegmamultioption: "palegmamultioptionEngAudio",
9838
+ palegraoptionaudio: "palegraoptionaudioEngAudio",
9839
+ palegrawordmatch: "palegrawordmatchEngAudio",
9840
+ palegramcqimages: "palegramcqimagesEngAudio"
9814
9841
  };
9815
9842
  const en = {
9816
9843
  "Do you want to exit?": "Do you want to exit?",
@@ -9839,10 +9866,37 @@ const fr = {
9839
9866
 
9840
9867
  const Exit$3 = "बाहर निकलें";
9841
9868
  const instruction$2 = {
9842
- dragAndDrop: "वस्तुओं को सही स्थानों पर खींचकर और छोड़कर मिलाएँ।",
9843
- mcq: "दिए गए विकल्पों में से सही उत्तर चुनें।",
9844
- tracing: "रेखा का सावधानीपूर्वक अनुसरण करते हुए आकृति बनाएँ।",
9845
- flashcards: "सीख को मजबूत करने के लिए फ्लैशकार्ड देखें।"
9869
+ dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
9870
+ mcq: "Select the correct answer from the options provided.",
9871
+ tracing: "Trace the shape by following the outline carefully.",
9872
+ flashcards: "Review the flashcards to reinforce your learning.",
9873
+ substractionWithImage: "substractionWithImageHiAudio",
9874
+ substractionWithoutImage: "substractionWithoutImageHiAudio",
9875
+ numberIdentificationWithImage: "numberIdentificationWithImageHiAudio",
9876
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageHiAudio",
9877
+ wordBuildingWithImage: "wordBuildingWithImageHiAudio",
9878
+ wordBuildingWithoutImage: "wordBuildingWithoutImageHiAudio",
9879
+ pictureClues: "pictureCluesHiAudio",
9880
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesHiAudio",
9881
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageHiAudio",
9882
+ sentenceMatch: "sentenceMatchHiAudio",
9883
+ imageMatch: "imageMatchHiAudio",
9884
+ palStoryTale: "palStoryTaleHiAudio",
9885
+ palEgmaPatternMatching: "palEgmaPatternMatchingHiAudio",
9886
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropHiAudio",
9887
+ palEgmaWordProblemClick: "palEgmaWordProblemClickHiAudio",
9888
+ palEgraOddOneOut: "palEgraOddOneOutHiAudio",
9889
+ palEgraArrangePictures: "palEgraArrangePicturesHiAudio",
9890
+ palEgraBuildWord: "palEgraBuildWordHiAudio",
9891
+ palEgraWordFormation: "palEgraWordFormationHiAudio",
9892
+ palInventedSpelling: "palInventedSpellingHiAudio",
9893
+ palLetterIdentification: "palLetterIdentificationHiAudio",
9894
+ palStoryMaking: "palStoryMakingHiAudio",
9895
+ palegmasumtogether: "palegmasumtogetherHiAudio",
9896
+ palegmamultioption: "palegmamultioptionHiAudio",
9897
+ palegraoptionaudio: "palegraoptionaudioHiAudio",
9898
+ palegrawordmatch: "palegrawordmatchHiAudio",
9899
+ palegramcqimages: "palegramcqimagesHiAudio"
9846
9900
  };
9847
9901
  const hi = {
9848
9902
  "Do you want to exit?": "क्या आप बाहर निकलना चाहते हैं?",
@@ -9855,10 +9909,37 @@ const hi = {
9855
9909
 
9856
9910
  const Exit$2 = "ನಿರ್ಗಮಿಸು";
9857
9911
  const instruction$1 = {
9858
- dragAndDrop: "ವಸ್ತುಗಳನ್ನು ಸರಿಯಾದ ಸ್ಥಳಗಳಿಗೆ ಎಳೆದು ಬಿಟ್ಟು ಹೊಂದಿಸಿ.",
9859
- mcq: "ನೀಡಿದ ಆಯ್ಕೆಗಳಲ್ಲಿ ಸರಿಯಾದ ಉತ್ತರವನ್ನು ಆಯ್ಕೆಮಾಡಿ.",
9860
- tracing: "ರೆಖೆಯನ್ನು ಗಮನದಿಂದ ಅನುಸರಿಸಿ ಆಕಾರವನ್ನು ಬಿಡಿಸಿ.",
9861
- flashcards: "ಕಲಿಕೆಯನ್ನು ಬಲಪಡಿಸಲು ಫ್ಲ್ಯಾಶ್ ಕಾರ್ಡ್‌ಗಳನ್ನು ನೋಡಿ."
9912
+ dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
9913
+ mcq: "Select the correct answer from the options provided.",
9914
+ tracing: "Trace the shape by following the outline carefully.",
9915
+ flashcards: "Review the flashcards to reinforce your learning.",
9916
+ substractionWithImage: "substractionWithImageKaAudio",
9917
+ substractionWithoutImage: "substractionWithoutImageKaAudio",
9918
+ numberIdentificationWithImage: "numberIdentificationWithImageKaAudio",
9919
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageKaAudio",
9920
+ wordBuildingWithImage: "wordBuildingWithImageKaAudio",
9921
+ wordBuildingWithoutImage: "wordBuildingWithoutImageKaAudio",
9922
+ pictureClues: "pictureCluesKaAudio",
9923
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesKaAudio",
9924
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageKaAudio",
9925
+ sentenceMatch: "sentenceMatchKaAudio",
9926
+ imageMatch: "imageMatchKaAudio",
9927
+ palStoryTale: "palStoryTaleKaAudio",
9928
+ palEgmaPatternMatching: "palEgmaPatternMatchingKaAudio",
9929
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropKaAudio",
9930
+ palEgmaWordProblemClick: "palEgmaWordProblemClickKaAudio",
9931
+ palEgraOddOneOut: "palEgraOddOneOutKaAudio",
9932
+ palEgraArrangePictures: "palEgraArrangePicturesKaAudio",
9933
+ palEgraBuildWord: "palEgraBuildWordKaAudio",
9934
+ palEgraWordFormation: "palEgraWordFormationKaAudio",
9935
+ palInventedSpelling: "palInventedSpellingKaAudio",
9936
+ palLetterIdentification: "palLetterIdentificationKaAudio",
9937
+ palStoryMaking: "palStoryMakingKaAudio",
9938
+ palegmasumtogether: "palegmasumtogetherKaAudio",
9939
+ palegmamultioption: "palegmamultioptionKaAudio",
9940
+ palegraoptionaudio: "palegraoptionaudioKaAudio",
9941
+ palegrawordmatch: "palegrawordmatchKaAudio",
9942
+ palegramcqimages: "palegramcqimagesKaAudio"
9862
9943
  };
9863
9944
  const ka = {
9864
9945
  "Do you want to exit?": "ನೀವು ನಿರ್ಗಮಿಸಲು ಬಯಸುವಿರಾ?",
@@ -9888,10 +9969,37 @@ const port = {
9888
9969
  };
9889
9970
 
9890
9971
  const instruction = {
9891
- dragAndDrop: "वस्तू योग्य ठिकाणी ओढून आणि सोडून जुळवा.",
9892
- mcq: "दिलेल्या पर्यायांमधून योग्य उत्तर निवडा.",
9893
- tracing: "रेषेचा काळजीपूर्वक मागोवा घेत आकृती काढा.",
9894
- flashcards: "तुमचे शिक्षण मजबूत करण्यासाठी फ्लॅशकार्ड्स पाहा."
9972
+ dragAndDrop: "Match the items by dragging and dropping them into the correct places.",
9973
+ mcq: "Select the correct answer from the options provided.",
9974
+ tracing: "Trace the shape by following the outline carefully.",
9975
+ flashcards: "Review the flashcards to reinforce your learning.",
9976
+ substractionWithImage: "substractionWithImageMaAudio ",
9977
+ substractionWithoutImage: "substractionWithoutImageMaAudio",
9978
+ numberIdentificationWithImage: "numberIdentificationWithImageMaAudio",
9979
+ numberIdentificationWithoutImage: "numberIdentificationWithoutImageMaAudio",
9980
+ wordBuildingWithImage: "wordBuildingWithImageMaAudio",
9981
+ wordBuildingWithoutImage: "wordBuildingWithoutImageMaAudio",
9982
+ pictureClues: "pictureCluesMaAudio",
9983
+ pictureWordMatchMultipleImages: "pictureWordMatchMultipleImagesMaAudio",
9984
+ pictureWordMatchSingleImage: "pictureWordMatchSingleImageMaAudio",
9985
+ sentenceMatch: "sentenceMatchMaAudio",
9986
+ imageMatch: "imageMatchMaAudio",
9987
+ palStoryTale: "palStoryTaleMaAudio",
9988
+ palEgmaPatternMatching: "palEgmaPatternMatchingMaAudio",
9989
+ palEgmaWordProblemDragnDrop: "palEgmaWordProblemDragnDropMaAudio",
9990
+ palEgmaWordProblemClick: "palEgmaWordProblemClickMaAudio",
9991
+ palEgraOddOneOut: "palEgraOddOneOutMaAudio",
9992
+ palEgraArrangePictures: "palEgraArrangePicturesMaAudio",
9993
+ palEgraBuildWord: "palEgraBuildWordMaAudio",
9994
+ palEgraWordFormation: "palEgraWordFormationMaAudio",
9995
+ palInventedSpelling: "palInventedSpellingMaAudio",
9996
+ palLetterIdentification: "palLetterIdentificationMaAudio",
9997
+ palStoryMaking: "palStoryMakingMaAudio",
9998
+ palegmasumtogether: "palegmasumtogetherMaAudio",
9999
+ palegmamultioption: "palegmamultioptionMaAudio",
10000
+ palegraoptionaudio: "palegraoptionaudioMaAudio",
10001
+ palegrawordmatch: "palegrawordmatchMaAudio",
10002
+ palegramcqimages: "palegramcqimagesMaAudio"
9895
10003
  };
9896
10004
  const ma = {
9897
10005
  instruction: instruction
@@ -9985,6 +10093,33 @@ const LidoContainer = class {
9985
10093
  mcq: "instruction.mcq" /* templateAudio.mcq */,
9986
10094
  tracing: "instruction.tracing" /* templateAudio.tracing */,
9987
10095
  dragAndDrop: "instruction.dragAndDrop" /* templateAudio.dragAndDrop */,
10096
+ substractionWithImage: "instruction.substractionWithImage" /* templateAudio.substractionWithImage */,
10097
+ "substractionWithoutImage": "instruction.substractionWithoutImage" /* templateAudio.substractionWithoutImage */,
10098
+ "numberIdentificationWithImage": "instruction.numberIdentificationWithImage" /* templateAudio.numberIdentificationWithImage */,
10099
+ "numberIdentificationWithoutImage": "instruction.numberIdentificationWithoutImage" /* templateAudio.numberIdentificationWithoutImage */,
10100
+ "wordBuildingWithImage": "instruction.wordBuildingWithImage" /* templateAudio.wordBuildingWithImage */,
10101
+ "wordBuildingWithoutImage": "instruction.wordBuildingWithoutImage" /* templateAudio.wordBuildingWithoutImage */,
10102
+ "pictureClues": "instruction.pictureClues" /* templateAudio.pictureClues */,
10103
+ "pictureWordMatchMultipleImages": "instruction.pictureWordMatchMultipleImages" /* templateAudio.pictureWordMatchMultipleImages */,
10104
+ "pictureWordMatchSingleImage": "instruction.pictureWordMatchSingleImage" /* templateAudio.pictureWordMatchSingleImage */,
10105
+ "sentenceMatch": "instruction.sentenceMatch" /* templateAudio.sentenceMatch */,
10106
+ "imageMatch": "instruction.imageMatch" /* templateAudio.imageMatch */,
10107
+ "palStoryTale": "instruction.palStoryTale" /* templateAudio.palStoryTale */,
10108
+ "palEgmaPatternMatching": "instruction.palEgmaPatternMatching" /* templateAudio.palEgmaPatternMatching */,
10109
+ "palEgmaWordProblemDragnDrop": "instruction.palEgmaWordProblemDragnDrop" /* templateAudio.palEgmaWordProblemDragnDrop */,
10110
+ "palEgmaWordProblemClick": "instruction.palEgmaWordProblemClick" /* templateAudio.palEgmaWordProblemClick */,
10111
+ "palEgraOddOneOut": "instruction.palEgraOddOneOut" /* templateAudio.palEgraOddOneOut */,
10112
+ "palEgraArrangePictures": "instruction.palEgraArrangePictures" /* templateAudio.palEgraArrangePictures */,
10113
+ "palEgraBuildWord": "instruction.palEgraBuildWord" /* templateAudio.palEgraBuildWord */,
10114
+ "palEgraWordFormation": "instruction.palEgraWordFormation" /* templateAudio.palEgraWordFormation */,
10115
+ "palInventedSpelling": "instruction.palInventedSpelling" /* templateAudio.palInventedSpelling */,
10116
+ "palLetterIdentification": "instruction.palLetterIdentification" /* templateAudio.palLetterIdentification */,
10117
+ "palStoryMaking": "instruction.palStoryMaking" /* templateAudio.palStoryMaking */,
10118
+ "palegmasumtogether": "instruction.palegmasumtogether" /* templateAudio.palegmasumtogether */,
10119
+ "palegmamultioption": "instruction.palegmamultioption" /* templateAudio.palegmamultioption */,
10120
+ "palegraoptionaudio": "instruction.palegraoptionaudio" /* templateAudio.palegraoptionaudio */,
10121
+ "palegrawordmatch": "instruction.palegrawordmatch" /* templateAudio.palegrawordmatch */,
10122
+ "palegramcqimages": "instruction.palegramcqimages" /* templateAudio.palegramcqimages */,
9988
10123
  }[this.templateId]) !== null && _a !== void 0 ? _a : '';
9989
10124
  this.instructName = key ? instance.t(key) : '';
9990
10125
  const home = document.querySelector('lido-home');
@@ -10140,7 +10275,7 @@ const LidoContainer = class {
10140
10275
  userSelect: 'none', // Prevent any field selection
10141
10276
  };
10142
10277
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
10143
- return (index.h(index.Host, { key: 'b2b35ac6c3be99cabf0eeaf2708611bfd4c3360c', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, index.h("lido-text", { key: 'ebd91c0603caa4e52d583dd86a1692b57b99afb4', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '76f7f53558af814bbd0ce4516b80d4fa970e3c48' })));
10278
+ return (index.h(index.Host, { key: '63931aa1e8ffe4b1b427f851f7a7f0197f4c0c33', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, index.h("lido-text", { key: 'b8857a16147d8eac74f8c4bc70eec2558ddc888b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '7b6369dd2d859ee824d3fca53486aa8f5dd6fa34' })));
10144
10279
  }
10145
10280
  get el() { return index.getElement(this); }
10146
10281
  static get watchers() { return {
@@ -1202,12 +1202,12 @@ function highlightElement() {
1202
1202
  if (!container)
1203
1203
  return;
1204
1204
  const dropElements = buildDropHasDragFromDOM();
1205
+ const dropEls = container.querySelectorAll(`[type="drop"]`);
1206
+ dropEls.forEach(dropEl => {
1207
+ dropEl.classList.remove('highlight-element');
1208
+ });
1205
1209
  let firstFalse = Object.values(dropElements).find(item => !item.isFull);
1206
1210
  if (firstFalse) {
1207
- const dropEls = container.querySelectorAll(`[type="drop"]`);
1208
- dropEls.forEach(dropEl => {
1209
- dropEl.classList.remove('highlight-element');
1210
- });
1211
1211
  const dropEle = container.querySelector(`#${firstFalse.drop}`);
1212
1212
  if (dropEle) {
1213
1213
  dropEle.classList.add('highlight-element');
@@ -1245,6 +1245,10 @@ function highlightElement() {
1245
1245
  }
1246
1246
 
1247
1247
  class AudioPlayer {
1248
+ isSpeakDisabled(element) {
1249
+ const text = element.closest('lido-text');
1250
+ return (text === null || text === void 0 ? void 0 : text.getAttribute('disable-speak')) === 'true';
1251
+ }
1248
1252
  constructor() {
1249
1253
  this.handleUserClick = () => {
1250
1254
  this.stop();
@@ -3342,9 +3346,7 @@ function addClickListenerForClickType(element) {
3342
3346
  // storingEachActivityScore(isCorrect);
3343
3347
  // }
3344
3348
  highlightElement();
3345
- if (!container.getAttribute("click-completed")) {
3346
- handleShowCheck();
3347
- }
3349
+ handleShowCheck();
3348
3350
  return;
3349
3351
  }
3350
3352
  if (showCheck) {
@@ -68973,6 +68975,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
68973
68975
  dummyElement.classList.remove('dropped');
68974
68976
  dummyElement.removeAttribute('drop-to');
68975
68977
  dummyElement.removeAttribute('drop-time');
68978
+ dummyElement.style.opacity = "1";
68976
68979
  dragElement.style.width = dropElement.style.width;
68977
68980
  dragElement.style.height = dropElement.style.height;
68978
68981
  dragElement.setAttribute('hasDummy', 'true');
@@ -69048,6 +69051,7 @@ function cloneElementWithComputedStyles(originalEl) {
69048
69051
  clone.style.margin = originalEl.style.margin;
69049
69052
  clone.style.opacity = originalEl.style.opacity;
69050
69053
  clone.style.transform = originalEl.style.transform;
69054
+ clone.style.borderRadius = originalEl.style.borderRadius;
69051
69055
  clone.setAttribute("visible", "true");
69052
69056
  clone.setAttribute("data-dummy", "true");
69053
69057
  if (tag === "lido-math-matrix") {
@@ -69198,10 +69202,10 @@ async function onActivityComplete(dragElement, dropElement) {
69198
69202
  drag[index].push(dragElement.id);
69199
69203
  const allElements = document.querySelectorAll("[type='drop']");
69200
69204
  allElements.forEach(otherElement => {
69201
- var _a;
69205
+ var _a, _b;
69202
69206
  const storedTabIndexes = Object.keys(dragScore).map(Number);
69203
69207
  if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
69204
- if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
69208
+ if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal) && !(((_b = container.getAttribute('drop-action')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === DropMode.InfiniteDrop)) {
69205
69209
  if (otherElement) {
69206
69210
  otherElement.style.opacity = "0";
69207
69211
  }
@@ -69242,7 +69246,6 @@ const storeActivityScore = (score) => {
69242
69246
  const handleShowCheck = () => {
69243
69247
  var _a, _b;
69244
69248
  const container = document.getElementById(LidoContainer);
69245
- container.setAttribute("click-completed", "true");
69246
69249
  const objectiveString = container['objective'];
69247
69250
  const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
69248
69251
  const checkButton = document.querySelector('#lido-checkButton');
@@ -69267,7 +69270,10 @@ const handleShowCheck = () => {
69267
69270
  }
69268
69271
  }
69269
69272
  else {
69270
- validateObjectiveStatus();
69273
+ if (!container.getAttribute("game-completed")) {
69274
+ validateObjectiveStatus();
69275
+ }
69276
+ container.setAttribute("game-completed", "true");
69271
69277
  }
69272
69278
  };
69273
69279
  let res;
@@ -69317,7 +69323,9 @@ const validateObjectiveStatus = async () => {
69317
69323
  if (attach === 'true') {
69318
69324
  appendingDragElementsInDrop();
69319
69325
  }
69320
- storingEachActivityScore(true);
69326
+ if (container.querySelectorAll("[type='click']").length > 0) {
69327
+ storingEachActivityScore(true);
69328
+ }
69321
69329
  await executeActions(onCorrect, container);
69322
69330
  }
69323
69331
  if (container.getAttribute('dropAttr') === 'EnableAnimation') {
@@ -69343,7 +69351,7 @@ const validateObjectiveStatus = async () => {
69343
69351
  const onInCorrect = container.getAttribute('onInCorrect');
69344
69352
  storingEachActivityScore(false);
69345
69353
  await executeActions(onInCorrect, container);
69346
- container.removeAttribute("click-completed");
69354
+ container.removeAttribute("game-completed");
69347
69355
  }
69348
69356
  }
69349
69357
  };
@@ -69826,20 +69834,18 @@ const questionBoxAnimation = async (element, value) => {
69826
69834
  const dragElements = Array.from(element.querySelectorAll("[type='drag']"));
69827
69835
  // Ensure all drag childrens which is dropped disappear
69828
69836
  dragElements.forEach(dragElement => {
69829
- if (dragElement.hasAttribute('drop-to')) {
69837
+ const dropToAttr = dragElement.getAttribute('drop-to');
69838
+ if (dropToAttr && dropToAttr !== '') {
69830
69839
  dragElement.style.transition = 'opacity 0.5s ease';
69831
69840
  dragElement.style.opacity = '0'; // Fade out
69832
- setTimeout(() => {
69833
- dragElement.remove(); // Remove from view after fade-out
69834
- }, 500);
69835
- }
69836
- });
69837
- // Reveal all drop childrens which is hidden
69838
- const dropElements = Array.from(element.querySelectorAll("[type='drop']"));
69839
- dropElements.forEach(dropEl => {
69840
- const dropVal = dropEl.getAttribute("value");
69841
- if (dropVal && dropEl.innerText.trim() === "?") {
69842
- dropEl.innerText = dropVal;
69841
+ const dropEl = document.getElementById(dropToAttr);
69842
+ const dragVal = dragElement.getAttribute("value");
69843
+ if (dragVal && dropEl.innerText.trim() === "?") {
69844
+ dropEl.innerText = dragVal;
69845
+ }
69846
+ // setTimeout(() => {
69847
+ // // dragElement.remove() // Remove from view after fade-out
69848
+ // }, 500);
69843
69849
  }
69844
69850
  });
69845
69851
  };
@@ -71,6 +71,33 @@ export class LidoContainer {
71
71
  mcq: "instruction.mcq" /* templateAudio.mcq */,
72
72
  tracing: "instruction.tracing" /* templateAudio.tracing */,
73
73
  dragAndDrop: "instruction.dragAndDrop" /* templateAudio.dragAndDrop */,
74
+ substractionWithImage: "instruction.substractionWithImage" /* templateAudio.substractionWithImage */,
75
+ "substractionWithoutImage": "instruction.substractionWithoutImage" /* templateAudio.substractionWithoutImage */,
76
+ "numberIdentificationWithImage": "instruction.numberIdentificationWithImage" /* templateAudio.numberIdentificationWithImage */,
77
+ "numberIdentificationWithoutImage": "instruction.numberIdentificationWithoutImage" /* templateAudio.numberIdentificationWithoutImage */,
78
+ "wordBuildingWithImage": "instruction.wordBuildingWithImage" /* templateAudio.wordBuildingWithImage */,
79
+ "wordBuildingWithoutImage": "instruction.wordBuildingWithoutImage" /* templateAudio.wordBuildingWithoutImage */,
80
+ "pictureClues": "instruction.pictureClues" /* templateAudio.pictureClues */,
81
+ "pictureWordMatchMultipleImages": "instruction.pictureWordMatchMultipleImages" /* templateAudio.pictureWordMatchMultipleImages */,
82
+ "pictureWordMatchSingleImage": "instruction.pictureWordMatchSingleImage" /* templateAudio.pictureWordMatchSingleImage */,
83
+ "sentenceMatch": "instruction.sentenceMatch" /* templateAudio.sentenceMatch */,
84
+ "imageMatch": "instruction.imageMatch" /* templateAudio.imageMatch */,
85
+ "palStoryTale": "instruction.palStoryTale" /* templateAudio.palStoryTale */,
86
+ "palEgmaPatternMatching": "instruction.palEgmaPatternMatching" /* templateAudio.palEgmaPatternMatching */,
87
+ "palEgmaWordProblemDragnDrop": "instruction.palEgmaWordProblemDragnDrop" /* templateAudio.palEgmaWordProblemDragnDrop */,
88
+ "palEgmaWordProblemClick": "instruction.palEgmaWordProblemClick" /* templateAudio.palEgmaWordProblemClick */,
89
+ "palEgraOddOneOut": "instruction.palEgraOddOneOut" /* templateAudio.palEgraOddOneOut */,
90
+ "palEgraArrangePictures": "instruction.palEgraArrangePictures" /* templateAudio.palEgraArrangePictures */,
91
+ "palEgraBuildWord": "instruction.palEgraBuildWord" /* templateAudio.palEgraBuildWord */,
92
+ "palEgraWordFormation": "instruction.palEgraWordFormation" /* templateAudio.palEgraWordFormation */,
93
+ "palInventedSpelling": "instruction.palInventedSpelling" /* templateAudio.palInventedSpelling */,
94
+ "palLetterIdentification": "instruction.palLetterIdentification" /* templateAudio.palLetterIdentification */,
95
+ "palStoryMaking": "instruction.palStoryMaking" /* templateAudio.palStoryMaking */,
96
+ "palegmasumtogether": "instruction.palegmasumtogether" /* templateAudio.palegmasumtogether */,
97
+ "palegmamultioption": "instruction.palegmamultioption" /* templateAudio.palegmamultioption */,
98
+ "palegraoptionaudio": "instruction.palegraoptionaudio" /* templateAudio.palegraoptionaudio */,
99
+ "palegrawordmatch": "instruction.palegrawordmatch" /* templateAudio.palegrawordmatch */,
100
+ "palegramcqimages": "instruction.palegramcqimages" /* templateAudio.palegramcqimages */,
74
101
  }[this.templateId]) !== null && _a !== void 0 ? _a : '';
75
102
  this.instructName = key ? i18next.t(key) : '';
76
103
  const home = document.querySelector('lido-home');
@@ -226,7 +253,7 @@ export class LidoContainer {
226
253
  userSelect: 'none', // Prevent any field selection
227
254
  };
228
255
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
229
- return (h(Host, { key: 'b2b35ac6c3be99cabf0eeaf2708611bfd4c3360c', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'ebd91c0603caa4e52d583dd86a1692b57b99afb4', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '76f7f53558af814bbd0ce4516b80d4fa970e3c48' })));
256
+ return (h(Host, { key: '63931aa1e8ffe4b1b427f851f7a7f0197f4c0c33', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'b8857a16147d8eac74f8c4bc70eec2558ddc888b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '7b6369dd2d859ee824d3fca53486aa8f5dd6fa34' })));
230
257
  }
231
258
  static get is() { return "lido-container"; }
232
259
  static get originalStyleUrls() {
@@ -10,11 +10,11 @@ const meta = {
10
10
  },
11
11
  };
12
12
  export default meta;
13
- export const OrderTractor = {
13
+ export const matchCard = {
14
14
  args: {
15
15
  answer: 'correct',
16
16
  option1: 'incorrect', option2: 'correct', option3: 'incorrect',
17
- isAllowOnlyCorrect: 'true',
17
+ isAllowOnlyCorrect: true,
18
18
  },
19
19
  render: args => {
20
20
  const xml = getContainerXml(args);
@@ -24,26 +24,34 @@ export const OrderTractor = {
24
24
  function getContainerXml(args) {
25
25
  return `
26
26
  <main>
27
- <lido-container id="lido-container" is-allow-only-correct="${args.isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Matching%20card.png" objective="${args.answer}" width="100%" bg-color="transparent" visible="true" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='2000'; truck.animation='placeToLeft 2.5s linear'; imgs.animation='placeToLeft 2.5s linear'; dragEle.animation='placeToLeft 2.5s linear'; this.sleep='2000'; " onEntry="this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="true" after-drop="false" custom-style="#dropEle{border: none !important} #drag1,#drag2,#drag3{box-shadow: none !important}">
28
- <!-- Chimple Avatar -->
29
- <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.402px" width="landscape.350px,portrait.398px" x="landscape.1px, portrait.20px" y="landscape.5px, portrait.318px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
30
- <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
31
- </lido-avatar>
32
- </lido-cell>
27
+ <lido-container id="lido-container" is-allow-only-correct="${args.isAllowOnlyCorrect}" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Matching%20card.png" objective="${args.answer}" width="100%" bg-color="transparent" visible="true" onCorrect="drag1.disableType='true'; drag2.disableType='true'; drag3.disableType='true'; lido-avatar.avatarAnimate='Success'; this.sleep='2000'; truck.animation='placeToLeft 2.5s linear'; imgs.animation='placeToLeft 2.5s linear'; dragEle.animation='placeToLeft 2.5s linear'; trainAudio.speak='true'; this.sleep='2000'; " onEntry="trainAudio.speak='true'; invisible-text.speak='true'; this.justifyContent='space-around';" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false" is-continue-on-correct="${args.isAllowOnlyCorrect}" after-drop="false" custom-style="#dropEle{border: none !important} #drag1,#drag2,#drag3{box-shadow: none !important}">
33
28
 
34
- <lido-text id="trainAudio" visible="false" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train1%20(1).m4a" onEntry="this.speak='true';"></lido-text>
35
- <lido-image id="truck" height="60%" width="landscape.100%,portrait.200%" visible="true" bg-Color="transparent" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train.svg" margin="landscape.14px 0px 0px 0px,portrait.452px 0px 0px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';"></lido-image>
36
- <lido-cell id="imgs" visible="true" x="landscape.-158px,portrait.0" y="landscape.-495px,portrait.-652px" layout="row" height="80%" width="landscape.35%,portrait.70%" bg-color="transparent" margin="landscape.-115px 0px 0px 345px,portrait.0px 0px 0px 95px" onEntry="this.position='relative';this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
37
- <lido-image id="qn" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="2" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png"></lido-image>
38
- <lido-image id="dropEle" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="1" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/dropbox-%20matching%20card.png" type="drop"></lido-image>
39
- </lido-cell>
40
- <lido-cell id="dragEle" visible="true" layout="row" width="100%" height="40%" bg-color="transparent" margin="landscape.-580px 0px 50px 0px,portrait.-532px 0px 162px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
41
- <lido-image id="drag1" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="1" value="${args.option1}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047093.png" type="drag"></lido-image>
42
- <lido-image id="drag2" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="2" value="${args.option2}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png" type="drag"></lido-image>
43
- <lido-image id="drag3" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="3" value="${args.option3}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047095.png" type="drag"></lido-image>
44
- </lido-cell>
29
+ <!-- Chimple Avatar -->
30
+ <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.448px,portrait.402px" width="landscape.350px,portrait.398px" x="landscape.1px, portrait.20px" y="landscape.5px, portrait.318px" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
31
+ <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
32
+ </lido-avatar>
33
+ </lido-cell>
45
34
 
46
- </lido-container>
35
+ <lido-text id="trainAudio" visible="false" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train1%20(1).m4a" onEntry="">
36
+ </lido-text>
37
+
38
+ <lido-text id="invisible-text" visible="false" value="match the correct card from the drag option to the given drop place" string="match the correct card from the drag option to the given drop place" onEntry="">
39
+ </lido-text>
40
+
41
+ <lido-image id="truck" height="60%" width="landscape.100%,portrait.200%" visible="true" bg-Color="transparent" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/train.svg" margin="landscape.14px 0px 0px 0px,portrait.452px 0px 0px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
42
+ </lido-image>
43
+
44
+ <lido-cell id="imgs" visible="true" x="landscape.-158px,portrait.0" y="landscape.-495px,portrait.-652px" layout="row" height="80%" width="landscape.35%,portrait.70%" bg-color="transparent" margin="landscape.-115px 0px 0px 345px,portrait.0px 0px 0px 95px" onEntry="this.position='relative';this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
45
+ <lido-image id="qn" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="2" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png"></lido-image>
46
+ <lido-image id="dropEle" height="landscape.320px,portrait.320px" value="${args.answer}" width="landscape.320px,portrait.320px" tab-index="1" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/dropbox-%20matching%20card.png" type="drop"></lido-image>
47
+ </lido-cell>
48
+
49
+ <lido-cell id="dragEle" delay-visible="2500" visible="true" layout="row" width="100%" height="40%" bg-color="transparent" margin="landscape.-580px 0px 50px 0px,portrait.-532px 0px 162px 0px" onEntry="this.animation='rightToPlace 2.5s linear';" onCorrect="this.animation='placeToLeft 2.5s linear';">
50
+ <lido-image id="drag1" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="1" value="${args.option1}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047093.png" type="drag"></lido-image>
51
+ <lido-image id="drag2" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="2" value="${args.option2}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047094.png" type="drag"></lido-image>
52
+ <lido-image id="drag3" height="landscape.320px,portrait.320px" width="landscape.273px,portrait.320px" tab-index="3" value="${args.option3}" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/MatchingCard/Group%2047095.png" type="drag"></lido-image>
53
+ </lido-cell>
54
+ </lido-container>
47
55
  </main>
48
56
  `;
49
57
  }
@@ -58,14 +58,14 @@ function getContainerXml(args) {
58
58
 
59
59
  <lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option1}">
60
60
 
61
- <lido-text id="text1" tab-index="3" disable-speak="true" visible="true" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
61
+ <lido-text id="text1" tab-index="3" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
62
62
  onEntry="this.fontWeight='700';">
63
63
  </lido-text>
64
64
  </lido-cell>
65
65
 
66
66
  <lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option2}">
67
67
 
68
- <lido-text id="text2" tab-index="4" disable-speak="true" visible="true" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
68
+ <lido-text id="text2" tab-index="4" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
69
69
  onEntry="this.fontWeight='700';">
70
70
  </lido-text>
71
71
  </lido-cell>
@@ -73,14 +73,14 @@ function getContainerXml(args) {
73
73
 
74
74
  <lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option3}">
75
75
 
76
- <lido-text id="text3" tab-index="5" disable-speak="true" visible="true" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
76
+ <lido-text id="text3" tab-index="5" disable-speak="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" visible="true" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.140px, portrait.100px" bg-color="orange"
77
77
  onEntry="this.fontWeight='700';">
78
78
  </lido-text>
79
79
  </lido-cell>
80
80
 
81
81
  <lido-cell layout="row" visible="true" margin="" onEntry="this.border-radius='24px';" height="228px" width="landscape.280px,portrait.300px" bg-color="orange" type="click" value="${args.option4}">
82
82
 
83
- <lido-text id="text4" tab-index="6" disable-speak="true" visible="true" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.130px, portrait.100px" bg-color="orange"
83
+ <lido-text id="text4" tab-index="6" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" visible="true" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="landscape.130px, portrait.100px" bg-color="orange"
84
84
  onEntry="this.fontWeight='800';">
85
85
  </lido-text>
86
86
  </lido-cell>
@@ -96,10 +96,10 @@ function getContainerXml(args) {
96
96
 
97
97
  </lido-cell>
98
98
  <lido-cell layout="row" visible="true" width="84%" height="300px">
99
- <lido-text visible="true" disable-speak="true" value="${args.option1}" type="click" id="option1" tab-index="8" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
100
- <lido-text visible="true" disable-speak="true" value="${args.option2}" type="click" id="option2" tab-index="9" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
101
- <lido-text visible="true" disable-speak="true" value="${args.option3}" type="click" id="option3" tab-index="10" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
102
- <lido-text visible="true" disable-speak="true" type="click" value="${args.option4}" id="option4" tab-index="11" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
99
+ <lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option1}" type="click" id="option1" tab-index="8" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option1}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
100
+ <lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option2}" type="click" id="option2" tab-index="9" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option2}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
101
+ <lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" value="${args.option3}" type="click" id="option3" tab-index="10" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option3}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
102
+ <lido-text visible="true" audio="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/fill-upAudio.mp3" disable-speak="true" type="click" value="${args.option4}" id="option4" tab-index="11" bg-color="#FFAC4C" height="212.4px" width="280px" string="${args.option4}" font-family="'Baloo Bhai 2'" font-color="black" font-size="140px" onEntry="this.fontWeight='700';this.border-radius='16px';"></lido-text>
103
103
 
104
104
 
105
105
 
@@ -38,7 +38,7 @@ export const wordBuildingwithimg = {
38
38
  function getContainerXml(args) {
39
39
  const { isAllowOnlyCorrect = true } = args;
40
40
  return `<main>
41
- <lido-container disable-speak="true" visible="true" id="lido-container" template-id="mcq" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/WordBuilding/bgImage.png" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='1200';data.z-index='100'; data.boxShadow='0 0 40px #FFC107';this.sleep='300'; this.sleep='400'; data.boxShadow='none';this.sleep='2000';" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="blank.z-index='12';">
41
+ <lido-container lang="ka" disable-speak="true" visible="true" id="lido-container" template-id="wordBuildingWithImage" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/WordBuilding/bgImage.png" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='1200';data.z-index='100'; data.boxShadow='0 0 40px #FFC107';this.sleep='300'; this.sleep='400'; data.boxShadow='none';this.sleep='2000';" is-continue-on-correct="${args.PracticeMode}" is-allow-only-correct="${args.PracticeMode}" onEntry="blank.z-index='12';">
42
42
  <!-- Chimple Avatar -->
43
43
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape. 373px,portrait.402px" width="landscape.304px,portrait.398px" x="landscape.0%, portrait.28%" y="landscape.51%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" >
44
44
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
@@ -37,7 +37,7 @@ export const wordBuildingwithoutimg = {
37
37
  function getContainerXml(args) {
38
38
  const { isAllowOnlyCorrect = true } = args;
39
39
  return `<main>
40
- <lido-container disable-speak="true" visible="true" id="lido-container" template-id="mcq" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/WordBuilding/bgImage.png" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';data.speak='true';this.sleep='1200';data.z-index='100'; data.boxShadow='0 0 40px #FFC107';this.sleep='300'; this.sleep='400'; data.boxShadow='none';this.sleep='2000';" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="true" onEntry="blank.z-index='12';">
40
+ <lido-container disable-speak="true" visible="true" id="lido-container" template-id="wordBuildingWithoutImage" objective="${args.answer}" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/WordBuilding/bgImage.png" onInCorrect="lido-avatar.avatarAnimate='Fail';this.sleep='2000';" onCorrect="lido-avatar.avatarAnimate='Success';data.speak='true';this.sleep='1200';data.z-index='100'; data.boxShadow='0 0 40px #FFC107';this.sleep='300'; this.sleep='400'; data.boxShadow='none';this.sleep='2000';" is-continue-on-correct="${isAllowOnlyCorrect}" is-allow-only-correct="true" onEntry="blank.z-index='12';">
41
41
  <!-- Chimple Avatar -->
42
42
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape. 373px,portrait.402px" width="landscape.304px,portrait.398px" x="landscape.0%, portrait.28%" y="landscape.51%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" >
43
43
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
@@ -3,6 +3,10 @@ import { highlightSpeakingElement, stopHighlightForSpeakingElement } from "./uti
3
3
  import { setDraggingDisabled } from "./utilsHandlers/dragDropHandler";
4
4
  import { NextContainerKey, PrevContainerKey, ActivityChangeKey, GameCompletedKey, GameExitKey, ActivityEndKey, LessonEndKey } from "./constants";
5
5
  export class AudioPlayer {
6
+ isSpeakDisabled(element) {
7
+ const text = element.closest('lido-text');
8
+ return (text === null || text === void 0 ? void 0 : text.getAttribute('disable-speak')) === 'true';
9
+ }
6
10
  constructor() {
7
11
  this.handleUserClick = () => {
8
12
  this.stop();