@astl/astrolabe 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/LICENSE +202 -0
  3. package/README.md +64 -2
  4. package/dist/cdn/astrolabe-editor.js +1441 -0
  5. package/dist/cdn/astrolabe-editor.js.map +1 -0
  6. package/dist/cdn/astrolabe-player.js +2 -0
  7. package/dist/cdn/astrolabe-player.js.map +1 -0
  8. package/dist/cdn/astrolabe.css +238 -0
  9. package/dist/cdn/astrolabe.js +3 -0
  10. package/dist/cdn/astrolabe.js.map +1 -0
  11. package/dist/cdn/astrolabe.standalone.js +8007 -0
  12. package/dist/cdn/chunks/audio-B0LSIn5N.js +48 -0
  13. package/dist/cdn/chunks/audio-B0LSIn5N.js.map +1 -0
  14. package/dist/cdn/chunks/audio-manifest-B9FWQzRy.js +2 -0
  15. package/dist/cdn/chunks/audio-manifest-B9FWQzRy.js.map +1 -0
  16. package/dist/cdn/chunks/block-styles-CKo9x7Vt.js +68 -0
  17. package/dist/cdn/chunks/block-styles-CKo9x7Vt.js.map +1 -0
  18. package/dist/cdn/chunks/book-CHzDDaim.js +15 -0
  19. package/dist/cdn/chunks/book-CHzDDaim.js.map +1 -0
  20. package/dist/cdn/chunks/callout-QFLFLPc5.js +49 -0
  21. package/dist/cdn/chunks/callout-QFLFLPc5.js.map +1 -0
  22. package/dist/cdn/chunks/callout-manifest-Cb12O4jl.js +2 -0
  23. package/dist/cdn/chunks/callout-manifest-Cb12O4jl.js.map +1 -0
  24. package/dist/cdn/chunks/categorise-BO2tNVJ3.js +203 -0
  25. package/dist/cdn/chunks/categorise-BO2tNVJ3.js.map +1 -0
  26. package/dist/cdn/chunks/categorise-manifest-C_hEDVYQ.js +2 -0
  27. package/dist/cdn/chunks/categorise-manifest-C_hEDVYQ.js.map +1 -0
  28. package/dist/cdn/chunks/chip-styles-Dme5daTO.js +77 -0
  29. package/dist/cdn/chunks/chip-styles-Dme5daTO.js.map +1 -0
  30. package/dist/cdn/chunks/choice-CExBvqKj.js +136 -0
  31. package/dist/cdn/chunks/choice-CExBvqKj.js.map +1 -0
  32. package/dist/cdn/chunks/choice-manifest-C-XahD7m.js +2 -0
  33. package/dist/cdn/chunks/choice-manifest-C-XahD7m.js.map +1 -0
  34. package/dist/cdn/chunks/color-control-Cl5cuMSO.js +91 -0
  35. package/dist/cdn/chunks/color-control-Cl5cuMSO.js.map +1 -0
  36. package/dist/cdn/chunks/crossword-Cb-a3Tjj.js +270 -0
  37. package/dist/cdn/chunks/crossword-Cb-a3Tjj.js.map +1 -0
  38. package/dist/cdn/chunks/crossword-manifest-2qlu7AYd.js +2 -0
  39. package/dist/cdn/chunks/crossword-manifest-2qlu7AYd.js.map +1 -0
  40. package/dist/cdn/chunks/declarations-BhqOz1ap.js +2 -0
  41. package/dist/cdn/chunks/declarations-BhqOz1ap.js.map +1 -0
  42. package/dist/cdn/chunks/definitions-CNX90WtL.js +6 -0
  43. package/dist/cdn/chunks/definitions-CNX90WtL.js.map +1 -0
  44. package/dist/cdn/chunks/directive-helpers-D7lOZKnB.js +14 -0
  45. package/dist/cdn/chunks/directive-helpers-D7lOZKnB.js.map +1 -0
  46. package/dist/cdn/chunks/drop-manifest-bzNOa5ks.js +2 -0
  47. package/dist/cdn/chunks/drop-manifest-bzNOa5ks.js.map +1 -0
  48. package/dist/cdn/chunks/drop-vRXndjHu.js +86 -0
  49. package/dist/cdn/chunks/drop-vRXndjHu.js.map +1 -0
  50. package/dist/cdn/chunks/flash-cards-0NrrKdrx.js +87 -0
  51. package/dist/cdn/chunks/flash-cards-0NrrKdrx.js.map +1 -0
  52. package/dist/cdn/chunks/flash-cards-manifest-B8nWXbRy.js +2 -0
  53. package/dist/cdn/chunks/flash-cards-manifest-B8nWXbRy.js.map +1 -0
  54. package/dist/cdn/chunks/gap-lor-khst.js +78 -0
  55. package/dist/cdn/chunks/gap-lor-khst.js.map +1 -0
  56. package/dist/cdn/chunks/gap-manifest-RSydA41N.js +2 -0
  57. package/dist/cdn/chunks/gap-manifest-RSydA41N.js.map +1 -0
  58. package/dist/cdn/chunks/help-C-woafz5.js +138 -0
  59. package/dist/cdn/chunks/help-C-woafz5.js.map +1 -0
  60. package/dist/cdn/chunks/help-form-DaC6KaFG.js +160 -0
  61. package/dist/cdn/chunks/help-form-DaC6KaFG.js.map +1 -0
  62. package/dist/cdn/chunks/hotspot-manifest-CNs1oiZ_.js +2 -0
  63. package/dist/cdn/chunks/hotspot-manifest-CNs1oiZ_.js.map +1 -0
  64. package/dist/cdn/chunks/hotspot-oel1Eelo.js +154 -0
  65. package/dist/cdn/chunks/hotspot-oel1Eelo.js.map +1 -0
  66. package/dist/cdn/chunks/image-drop-Dkprw0Kn.js +295 -0
  67. package/dist/cdn/chunks/image-drop-Dkprw0Kn.js.map +1 -0
  68. package/dist/cdn/chunks/image-drop-manifest-BZ6hCoAd.js +2 -0
  69. package/dist/cdn/chunks/image-drop-manifest-BZ6hCoAd.js.map +1 -0
  70. package/dist/cdn/chunks/image-label-Dm5shQSh.js +177 -0
  71. package/dist/cdn/chunks/image-label-Dm5shQSh.js.map +1 -0
  72. package/dist/cdn/chunks/image-label-manifest--1CLRJzd.js +2 -0
  73. package/dist/cdn/chunks/image-label-manifest--1CLRJzd.js.map +1 -0
  74. package/dist/cdn/chunks/inline-styles-CTgXWnHb.js +80 -0
  75. package/dist/cdn/chunks/inline-styles-CTgXWnHb.js.map +1 -0
  76. package/dist/cdn/chunks/insert-menu-LgrifBYT.js +80 -0
  77. package/dist/cdn/chunks/insert-menu-LgrifBYT.js.map +1 -0
  78. package/dist/cdn/chunks/issue-list-BgnXzXRM.js +51 -0
  79. package/dist/cdn/chunks/issue-list-BgnXzXRM.js.map +1 -0
  80. package/dist/cdn/chunks/keys-DU-Qknmz.js +2 -0
  81. package/dist/cdn/chunks/keys-DU-Qknmz.js.map +1 -0
  82. package/dist/cdn/chunks/live-jdiyYln2.js +7 -0
  83. package/dist/cdn/chunks/live-jdiyYln2.js.map +1 -0
  84. package/dist/cdn/chunks/long-answer-CtzClLAx.js +71 -0
  85. package/dist/cdn/chunks/long-answer-CtzClLAx.js.map +1 -0
  86. package/dist/cdn/chunks/long-answer-manifest-BYJpZRtB.js +2 -0
  87. package/dist/cdn/chunks/long-answer-manifest-BYJpZRtB.js.map +1 -0
  88. package/dist/cdn/chunks/mark-words-CpH3gTcX.js +131 -0
  89. package/dist/cdn/chunks/mark-words-CpH3gTcX.js.map +1 -0
  90. package/dist/cdn/chunks/mark-words-manifest-Cs2pXCEx.js +2 -0
  91. package/dist/cdn/chunks/mark-words-manifest-Cs2pXCEx.js.map +1 -0
  92. package/dist/cdn/chunks/match-DKE_4o-x.js +352 -0
  93. package/dist/cdn/chunks/match-DKE_4o-x.js.map +1 -0
  94. package/dist/cdn/chunks/match-manifest-D0UfoajU.js +2 -0
  95. package/dist/cdn/chunks/match-manifest-D0UfoajU.js.map +1 -0
  96. package/dist/cdn/chunks/memory-B6hSyHyz.js +187 -0
  97. package/dist/cdn/chunks/memory-B6hSyHyz.js.map +1 -0
  98. package/dist/cdn/chunks/memory-manifest-D1589iR0.js +2 -0
  99. package/dist/cdn/chunks/memory-manifest-D1589iR0.js.map +1 -0
  100. package/dist/cdn/chunks/menu-messages-Dx3jYUEp.js +2 -0
  101. package/dist/cdn/chunks/menu-messages-Dx3jYUEp.js.map +1 -0
  102. package/dist/cdn/chunks/messages-9xiYDvRT.js +2 -0
  103. package/dist/cdn/chunks/messages-9xiYDvRT.js.map +1 -0
  104. package/dist/cdn/chunks/option-styles-WKzjKmCH.js +50 -0
  105. package/dist/cdn/chunks/option-styles-WKzjKmCH.js.map +1 -0
  106. package/dist/cdn/chunks/order-BhG_6IC-.js +225 -0
  107. package/dist/cdn/chunks/order-BhG_6IC-.js.map +1 -0
  108. package/dist/cdn/chunks/order-manifest-J5IXN0he.js +2 -0
  109. package/dist/cdn/chunks/order-manifest-J5IXN0he.js.map +1 -0
  110. package/dist/cdn/chunks/pick-and-place-DVQIPYuL.js +2 -0
  111. package/dist/cdn/chunks/pick-and-place-DVQIPYuL.js.map +1 -0
  112. package/dist/cdn/chunks/picture-D10YRMYH.js +2 -0
  113. package/dist/cdn/chunks/picture-D10YRMYH.js.map +1 -0
  114. package/dist/cdn/chunks/picture-view-BKnAyScQ.js +92 -0
  115. package/dist/cdn/chunks/picture-view-BKnAyScQ.js.map +1 -0
  116. package/dist/cdn/chunks/repeat-CY2W2URZ.js +8 -0
  117. package/dist/cdn/chunks/repeat-CY2W2URZ.js.map +1 -0
  118. package/dist/cdn/chunks/roving-focus-BxGgi2DD.js +2 -0
  119. package/dist/cdn/chunks/roving-focus-BxGgi2DD.js.map +1 -0
  120. package/dist/cdn/chunks/runtime-DxAbpr3S.js +526 -0
  121. package/dist/cdn/chunks/runtime-DxAbpr3S.js.map +1 -0
  122. package/dist/cdn/chunks/scan-jWgPnVxA.js +2 -0
  123. package/dist/cdn/chunks/scan-jWgPnVxA.js.map +1 -0
  124. package/dist/cdn/chunks/select-DTA3dJzr.js +345 -0
  125. package/dist/cdn/chunks/select-DTA3dJzr.js.map +1 -0
  126. package/dist/cdn/chunks/select-manifest-BBMbvdkH.js +2 -0
  127. package/dist/cdn/chunks/select-manifest-BBMbvdkH.js.map +1 -0
  128. package/dist/cdn/chunks/source-view-DXKPFCl9.js +29 -0
  129. package/dist/cdn/chunks/source-view-DXKPFCl9.js.map +1 -0
  130. package/dist/cdn/chunks/style-form-D5haJtWM.js +240 -0
  131. package/dist/cdn/chunks/style-form-D5haJtWM.js.map +1 -0
  132. package/dist/cdn/chunks/style-messages-BbZpeD2a.js +2 -0
  133. package/dist/cdn/chunks/style-messages-BbZpeD2a.js.map +1 -0
  134. package/dist/cdn/chunks/style-model-ZXNe_c8R.js +2 -0
  135. package/dist/cdn/chunks/style-model-ZXNe_c8R.js.map +1 -0
  136. package/dist/cdn/chunks/style-placing-DPw1zyrz.js +2 -0
  137. package/dist/cdn/chunks/style-placing-DPw1zyrz.js.map +1 -0
  138. package/dist/cdn/chunks/style-popups-BobgX1WK.js +74 -0
  139. package/dist/cdn/chunks/style-popups-BobgX1WK.js.map +1 -0
  140. package/dist/cdn/chunks/style-rules-D45PZLCv.js +136 -0
  141. package/dist/cdn/chunks/style-rules-D45PZLCv.js.map +1 -0
  142. package/dist/cdn/chunks/styled-Dmx5Yjv7.js +57 -0
  143. package/dist/cdn/chunks/styled-Dmx5Yjv7.js.map +1 -0
  144. package/dist/cdn/chunks/styles-DxJJxVNH.js +136 -0
  145. package/dist/cdn/chunks/styles-DxJJxVNH.js.map +1 -0
  146. package/dist/cdn/chunks/surface-CgxfAwCR.js +1019 -0
  147. package/dist/cdn/chunks/surface-CgxfAwCR.js.map +1 -0
  148. package/dist/cdn/chunks/true-false-DP3MO599.js +146 -0
  149. package/dist/cdn/chunks/true-false-DP3MO599.js.map +1 -0
  150. package/dist/cdn/chunks/true-false-manifest-B4exv60u.js +2 -0
  151. package/dist/cdn/chunks/true-false-manifest-B4exv60u.js.map +1 -0
  152. package/dist/cdn/chunks/video-j9MCH6Kw.js +98 -0
  153. package/dist/cdn/chunks/video-j9MCH6Kw.js.map +1 -0
  154. package/dist/cdn/chunks/video-manifest-8OwkhhAI.js +2 -0
  155. package/dist/cdn/chunks/video-manifest-8OwkhhAI.js.map +1 -0
  156. package/dist/cdn/chunks/word-bank-ARjwUKZf.js +80 -0
  157. package/dist/cdn/chunks/word-bank-ARjwUKZf.js.map +1 -0
  158. package/dist/cdn/chunks/word-bank-manifest-C1FSo1kH.js +2 -0
  159. package/dist/cdn/chunks/word-bank-manifest-C1FSo1kH.js.map +1 -0
  160. package/dist/cdn/chunks/word-search-AHvM7yCJ.js +274 -0
  161. package/dist/cdn/chunks/word-search-AHvM7yCJ.js.map +1 -0
  162. package/dist/cdn/chunks/word-search-manifest-Fg1a59Z1.js +2 -0
  163. package/dist/cdn/chunks/word-search-manifest-Fg1a59Z1.js.map +1 -0
  164. package/dist/editor.d.ts +32 -0
  165. package/dist/editor.d.ts.map +1 -0
  166. package/dist/editor.js +51 -0
  167. package/dist/editor.js.map +1 -0
  168. package/dist/engine.d.ts +33 -0
  169. package/dist/engine.d.ts.map +1 -0
  170. package/dist/engine.js +53 -0
  171. package/dist/engine.js.map +1 -0
  172. package/dist/player.d.ts +19 -0
  173. package/dist/player.d.ts.map +1 -0
  174. package/dist/player.js +22 -0
  175. package/dist/player.js.map +1 -0
  176. package/dist/server.d.ts +8 -0
  177. package/dist/server.d.ts.map +1 -0
  178. package/dist/server.js +8 -0
  179. package/dist/server.js.map +1 -0
  180. package/package.json +70 -3
  181. package/src/bundles/astrolabe-editor.ts +11 -0
  182. package/src/bundles/astrolabe-player.ts +10 -0
  183. package/src/bundles/astrolabe-standalone.ts +23 -0
  184. package/src/bundles/astrolabe.ts +12 -0
  185. package/src/editor.ts +98 -0
  186. package/src/engine.ts +59 -0
  187. package/src/player.ts +23 -0
  188. package/src/server.ts +7 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-DKE_4o-x.js","names":["en","pl","LitElement","unsafeCSS","nothing","ifDefined","html","b","r","i$1","w","A","verdictIcon","renderVerdict","AstlElement","o","i","en_default","matchManifest","pl_default","PickAndPlace","blockStyles","optionStyles","namespace","matchUiMessages","NONE","LONG_PRESS","textOf","el","slotOf","index","MatchElement","#facing","item","#dragged","#pointer","x","y","#aim","box","#tile","#draw","#isRow","#join","to","#message","moment","#children","row","rows","columns","column","next","id","value","answers","#pick","#observer","ui","lines","#lines","group","#renderLines","#renderGrid","key","params","names","content","picked","#feedback","label","verdict","j","refs","notes","pick","from","drafting","#palette","#remove","#renderTile","event","partners","first","#press","#keydown","marked","correct","answer","root","prompt","child","items","slot","tag","tile","dragged","name","canvas","centre","dot","aim","g","a","x1","y1","x2","y2","line","matchElement"],"sources":["../../../../components/src/match/ui-messages.ts","../../../../components/src/match/element.ts"],"sourcesContent":["import type { MessageCatalog } from '@astl/core';\nimport en from './messages/ui/en.json' with { type: 'json' };\nimport pl from './messages/ui/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.match';\n\n/**\n * The student strings (`ui.*`): the element's catalogs. A module of their own, because bundlers split by module: one\n * that also built `matchMessages` would put the authoring strings into the element's chunk.\n */\nexport const matchUiMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","import type { Answers, ComponentManifest, MessageCatalog, Units } from '@astl/core';\nimport { AstlElement, type ElementRegistration, renderVerdict, verdictIcon } from '@astl/player';\nimport { PickAndPlace, type PickMoment } from '@astl/player/interaction';\nimport {\n type CSSResultGroup,\n css,\n html,\n LitElement,\n nothing,\n type PropertyDeclarations,\n svg,\n type TemplateResult,\n unsafeCSS,\n} from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { blockStyles } from '../block-styles.js';\nimport { optionStyles } from '../option-styles.js';\nimport { matchManifest } from './manifest.js';\nimport { matchUiMessages } from './ui-messages.js';\n\n/** The answer of a row without a partner, and the first destination of a picked item (Enter there: no line). */\nconst NONE = '';\n\n/** A touch held this long (ms) without moving starts a drag; a touch that moves sooner scrolls the page. */\nconst LONG_PRESS = 250;\n\nconst textOf = (el: Element | undefined): string => (el?.textContent ?? '').replace(/\\s+/g, ' ').trim();\n\n/** Palette slot 1 to 8 of the row at `index`, starting again after the eighth. */\nconst slotOf = (index: number): number => (index % 8) + 1;\n\n/**\n * `<astl-match>`: every row gets one partner from the columns. Slots: one per row (its id), answered with the id of\n * a column. The light-DOM `<astl-prompt>`, `<astl-row>` and `<astl-column>` children are slotted manually and never\n * moved or changed; where a name repeats (option buttons, lists, announcements) it is the child's text.\n * - `grid`: a table whose rows each hold a native radio group named by the row, one radio per column, each named\n * \"row: column\"; the browser gives the keyboard. Narrower than 34rem, each row is a card of option buttons.\n * - `lines`: rows and columns as two sides of toggle buttons with dots. Press an item, then its partner (either side\n * first), or choose the partner with the arrow keys and press Enter; or drag from one to the other (a touch after\n * a long press). Tapping a line, pressing a picked row again, or Delete and Backspace on a row remove its line.\n * Lines are for the eye only: the buttons say what they are joined to, and a disclosure offers one native select\n * per row.\n */\nexport class MatchElement extends AstlElement {\n static override manifest: ComponentManifest = matchManifest;\n static override messages: readonly MessageCatalog[] = matchUiMessages;\n static override shadowRootOptions: ShadowRootInit = {\n ...LitElement.shadowRootOptions,\n slotAssignment: 'manual',\n };\n\n static override properties: PropertyDeclarations = {\n joined: { state: true },\n };\n\n static override styles: CSSResultGroup = [\n // Narrow first: each row a card, its options as buttons. The layout follows the width the block gets, through a\n // container that is that width divided by max(1, columns / 5): from six columns on, the table needs more room\n // before it replaces the cards. The table inside takes the full width back.\n css`\n .fit {\n --astl-match-k: max(1, var(--astl-match-columns) / 5);\n container-type: inline-size;\n inline-size: calc(100% / var(--astl-match-k));\n }\n .table {\n display: flex;\n flex-direction: column;\n gap: var(--astl-space-2);\n inline-size: calc(100% * var(--astl-match-k));\n }\n .head {\n display: none;\n }\n .row,\n .tile {\n position: relative;\n border: var(--astl-outline-width) solid var(--astl-line);\n border-radius: var(--astl-radius-m);\n background: var(--astl-surface);\n }\n .row {\n display: grid;\n gap: var(--astl-space-2);\n padding: var(--astl-space-3);\n }\n .tile {\n border-color: var(--astl-outline);\n }\n .label,\n .column,\n .text {\n min-inline-size: 0;\n overflow-wrap: anywhere;\n }\n .options {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--astl-space-2);\n }\n `,\n // Selected: an option takes the fill and the bar of optionStyles, a picked tile the same here; in hc also bold text\n // (selected-weight), so a pick shows without the radio mark and without colour.\n css`\n .option {\n position: relative;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: var(--astl-space-2);\n min-block-size: var(--astl-target-min);\n padding-block: var(--astl-space-1);\n padding-inline: var(--astl-space-3);\n border: var(--astl-outline-width) solid var(--astl-outline);\n border-radius: var(--astl-radius-m);\n font-size: var(--astl-size-ui);\n cursor: pointer;\n overflow: clip;\n }\n .option:has(input:disabled) {\n cursor: default;\n }\n .option[data-selected],\n .tile[data-picked] {\n font-weight: var(--astl-selected-weight);\n }\n .tile[data-picked] {\n border-color: var(--astl-selected);\n background: var(--astl-selected-soft);\n }\n .tile[data-picked]::before {\n content: '';\n position: absolute;\n inset-block: 0;\n inset-inline-start: 0;\n inline-size: var(--astl-selected-bar);\n background: var(--astl-selected);\n }\n `,\n // The solution line (block-styles.ts) closes its row or tile; the verdict line sits under the task. In the cards,\n // a row's verdict icon stands by the row's label, at the end of its first line (the label keeps room for it), so\n // it never reads as the verdict of the option before it.\n css`\n .options > .astl-solution {\n flex-basis: 100%;\n }\n .options > .astl-verdict {\n position: absolute;\n inset-block-start: var(--astl-space-3);\n inset-inline-end: var(--astl-space-3);\n block-size: 1lh;\n }\n .row:has(.options > .astl-verdict) > .label {\n margin-inline-end: calc(1.1em + var(--astl-space-2));\n }\n .group-verdict {\n margin-block: var(--astl-space-3) 0;\n }\n `,\n // Wide: one table. Rows, their answer cell and its radio group share the table's columns (subgrids): the row\n // label, one column per option under its header (each half the label's share), then the verdict; the solution\n // line runs under the options. Option names move to the headers, and the checked radio alone shows the pick (by\n // its shape, also in hc). The radio sits at the inline start of its cell, like every radio, so the cell keeps\n // more room after it than before. A cell is no option box, so no look's box shadow (a ::part() rule from outside)\n // draws one: only an important rule inside wins over it.\n css`\n @container (min-inline-size: 34rem) {\n .table {\n display: grid;\n grid-template-columns:\n minmax(0, 1fr) repeat(var(--astl-match-columns), minmax(var(--astl-target-min), 0.5fr))\n auto;\n column-gap: var(--astl-space-1);\n }\n .head,\n .row,\n .cell,\n .options {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n }\n .head {\n align-items: end;\n padding-inline: calc(var(--astl-space-3) + var(--astl-outline-width));\n font-size: var(--astl-size-ui);\n font-weight: 600;\n }\n .cell {\n grid-column: 2 / -1;\n }\n .options > .astl-verdict {\n position: static;\n grid-column: -2;\n }\n .row:has(.options > .astl-verdict) > .label {\n margin-inline-end: 0;\n }\n .options > .astl-solution {\n grid-column: 1 / -1;\n }\n .option,\n .cell .option[data-selected] {\n padding-inline: var(--astl-space-1) var(--astl-space-3);\n border-color: transparent;\n background: none;\n box-shadow: none !important;\n }\n .cell .option[data-selected]::before {\n content: none;\n }\n .name {\n display: none;\n }\n }\n `,\n // Lines: rows on the inline-start side, columns on the inline-end side, the lines between them. The SVG lies\n // under the tiles, so a press near a dot reaches the tile; only the wide, invisible stroke of a line takes taps.\n css`\n .board {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(var(--astl-space-7), 0.4fr) minmax(0, 1fr);\n align-items: center;\n }\n .side {\n display: flex;\n flex-direction: column;\n gap: var(--astl-space-3);\n }\n .side + .side {\n grid-column: 3;\n }\n .lines {\n position: absolute;\n inset: 0;\n inline-size: 100%;\n block-size: 100%;\n overflow: visible;\n pointer-events: none;\n }\n .lines line {\n stroke: var(--astl-match-ink);\n stroke-width: 3px;\n stroke-linecap: round;\n }\n .lines .hit {\n stroke: transparent;\n stroke-width: 24px;\n pointer-events: stroke;\n cursor: pointer;\n }\n .lines .draft {\n stroke: var(--astl-selected);\n opacity: 0.6;\n }\n `,\n // A tile: its button, the verdict icon (at the end, on a line of its own when the text needs the room) and a dot\n // on the edge facing the other side: a ring in the row's palette colour, filled once joined (also under forced\n // colours). The solution line wraps under them.\n css`\n .tile {\n --astl-match-ink: var(--astl-outline);\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n }\n .tile[data-target] {\n border-color: var(--astl-accent);\n outline: var(--astl-outline-width) solid var(--astl-accent);\n outline-offset: calc(-2 * var(--astl-outline-width));\n }\n .tile > button {\n flex: 1 1 auto;\n min-inline-size: var(--astl-target-min);\n min-block-size: var(--astl-target-min);\n margin: 0;\n padding-block: var(--astl-space-2);\n padding-inline: var(--astl-space-3);\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n touch-action: manipulation;\n user-select: none;\n -webkit-user-select: none;\n -webkit-touch-callout: none;\n }\n .tile > .astl-verdict {\n margin-inline-start: auto;\n padding-inline-end: var(--astl-space-3);\n }\n .tile > .astl-solution {\n flex-basis: 100%;\n padding-inline: var(--astl-space-3);\n padding-block-end: var(--astl-space-2);\n }\n .dot {\n position: absolute;\n inset-block-start: calc(50% - 0.5rem);\n inset-inline-end: -0.5rem;\n box-sizing: border-box;\n inline-size: 1rem;\n block-size: 1rem;\n border: 3px solid var(--astl-match-ink);\n border-radius: 50%;\n background: var(--astl-surface);\n forced-color-adjust: none;\n }\n .side + .side .dot {\n inset-inline: -0.5rem auto;\n }\n [data-joined] > .dot {\n background: var(--astl-match-ink);\n }\n `,\n // The disclosure with one native select per row.\n css`\n .fallback {\n margin-block-start: var(--astl-space-4);\n font-size: var(--astl-size-ui);\n }\n summary {\n min-block-size: var(--astl-target-min);\n align-content: center;\n color: var(--astl-accent);\n cursor: pointer;\n }\n .pick {\n display: grid;\n gap: var(--astl-space-1);\n margin-block-start: var(--astl-space-3);\n }\n select {\n min-block-size: var(--astl-target-min);\n max-inline-size: 100%;\n font: inherit;\n }\n `,\n // Palette slots of rows and their lines, through an attribute: a strict Content Security Policy blocks inline\n // style attributes.\n unsafeCSS(\n Array.from(\n { length: 8 },\n (_, i) => `[data-palette='${i + 1}']{--astl-match-ink:var(--astl-palette-${i + 1})}`,\n ).join(''),\n ),\n optionStyles,\n blockStyles,\n ];\n\n /** Row id to column id, in the order they were joined: a column's dot takes the colour of its first row. */\n declare protected joined: ReadonlyMap<string, string>;\n /** Where a drag points (viewport) and the partner under it: the end of the line being drawn. */\n #pointer: readonly [number, number] | null = null;\n #aim: string | null = null;\n /** A press turned into a drag: the click after its release is not a tap. */\n #dragged = false;\n #observer: ResizeObserver | null = null;\n\n /**\n * Joining with the keyboard, taps or a drag: an item (a row or a column) is picked; its destinations are \"no\n * partner\", then the items of the other side, in arrow key order with wrap-around. A touch drags after a long press.\n */\n readonly #pick: PickAndPlace<string> = new PickAndPlace<string>(this, {\n destinations: (item) => [NONE, ...this.#facing(item).map((el) => el.id)],\n // A row is where its line goes; a column is never anywhere (it may have many lines).\n current: (item) => this.joined.get(item) ?? NONE,\n at: (x, y, item) => {\n this.#dragged = true;\n this.#pointer = [x, y];\n this.#aim =\n this.#facing(item).find((el) => {\n const box = this.#tile(el.id)?.getBoundingClientRect();\n return box !== undefined && x >= box.left && x <= box.right && y >= box.top && y <= box.bottom;\n })?.id ?? null;\n this.#draw();\n return this.#aim;\n },\n commit: (item, to) => (this.#isRow(item) ? this.#join(item, to) : this.#join(to, item)),\n say: (moment, item, to) => this.#message(moment, item, to),\n wrap: true,\n hold: LONG_PRESS,\n });\n\n constructor() {\n super();\n this.joined = new Map();\n }\n\n /** `<astl-row>` children in rendered order: view order, or shuffled per attempt with a seed. */\n get rows(): readonly HTMLElement[] {\n return this.shuffled(this.#children('astl-row'));\n }\n\n /** `<astl-column>` children, always in view order (the authored order). */\n get columns(): readonly HTMLElement[] {\n return this.#children('astl-column');\n }\n\n get slotIds(): readonly string[] {\n return this.rows.map((row) => row.id);\n }\n\n getAnswers(): Answers {\n return Object.fromEntries(this.joined);\n }\n\n setAnswers(answers: Answers): void {\n const rows = new Set(this.slotIds);\n const columns = new Set(this.columns.map((column) => column.id));\n const next = new Map(this.joined);\n for (const [id, value] of Object.entries(answers)) {\n if (!rows.has(id) || next.get(id) === value) continue;\n next.delete(id);\n // '' removes the line; an unknown column cannot be shown, so the row is unanswered, as the player sends it.\n if (columns.has(value)) next.set(id, value);\n }\n this.joined = next;\n this.#pick.reset();\n }\n\n units(): Units {\n return { answered: this.joined.size, total: this.rows.length };\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.#observer?.observe(this);\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n this.#observer?.disconnect();\n }\n\n protected override render(): TemplateResult {\n const ui = this.uiLanguage;\n const lines = this.#lines;\n const group = this.groupVerdict;\n return html`<fieldset part=\"match\">\n <legend part=\"prompt\">\n <slot class=\"prompt-slot\"></slot>\n <span class=\"hint\" lang=${ui.lang}><bdi>${this.t(lines ? 'ui.hint.lines' : 'ui.hint.grid')}</bdi></span>\n </legend>\n ${lines ? this.#renderLines() : this.#renderGrid()}\n ${\n group === null\n ? nothing\n : html`<p class=\"group-verdict\" part=\"verdict\" data-verdict=${group}>\n ${renderVerdict(group, (key, params) => this.t(key, params), ui)}\n </p>`\n }\n </fieldset>`;\n }\n\n #renderGrid(): TemplateResult {\n const columns = this.columns;\n const names = columns.map(textOf);\n const content = this.contentLang || undefined;\n return html`<div class=\"fit\"><div class=\"table\" role=\"table\">\n <div class=\"head\" role=\"row\">\n <span role=\"cell\"></span>\n ${columns.map(\n (column) =>\n html`<span class=\"column\" part=\"column\" role=\"columnheader\"><slot data-item=${column.id}></slot></span>`,\n )}\n </div>\n ${this.rows.map((row, i) => {\n const picked = this.joined.get(row.id);\n const { verdict, refs, notes } = this.#feedback(row.id, i);\n const label = textOf(row);\n return html`<div class=\"row astl-box\" part=\"row\" role=\"row\" data-verdict=${ifDefined(verdict)}>\n <span class=\"label\" role=\"rowheader\" id=\"row-${i}\"><slot data-item=${row.id}></slot></span>\n <div class=\"cell\" role=\"cell\" aria-colspan=${columns.length}>\n <div class=\"options\" role=\"radiogroup\" aria-labelledby=\"row-${i}\">\n ${columns.map(\n (\n column,\n j,\n ) => html`<label class=\"option astl-ring\" part=\"option\" ?data-selected=${picked === column.id}>\n <input\n part=\"control\"\n type=\"radio\"\n name=${row.id}\n value=${column.id}\n .checked=${picked === column.id}\n ?disabled=${this.disabled}\n aria-label=${this.t('ui.option', { row: label, column: names[j] ?? '' })}\n aria-describedby=${refs || nothing}\n @change=${() => this.#join(row.id, column.id)}\n /><span class=\"name\" lang=${ifDefined(content)} aria-hidden=\"true\">${names[j]}</span>\n </label>`,\n )}\n ${notes}\n </div>\n </div>\n </div>`;\n })}\n </div></div>`;\n }\n\n #renderLines(): TemplateResult {\n const ui = this.uiLanguage;\n const rows = this.rows;\n const columns = this.columns;\n const pick = this.#pick;\n const from = pick.dragging ?? pick.picked;\n const drafting = from !== null && (pick.dragging !== null || (pick.target ?? NONE) !== NONE);\n const content = this.contentLang || undefined;\n return html`<span class=\"astl-vh\" id=\"instructions\" lang=${ui.lang} dir=${ui.dir}>${this.t('ui.instructions')}</span>\n <div class=\"board\">\n <svg class=\"lines\" part=\"line\" aria-hidden=\"true\" focusable=\"false\">\n ${[...this.joined].map(\n ([row, column]) =>\n svg`<g data-palette=${this.#palette(row)} data-from=${row} data-to=${column}><line></line>${\n this.disabled ? nothing : svg`<line class=\"hit\" @click=${() => this.#remove(row)}></line>`\n }</g>`,\n )}\n ${drafting ? svg`<g data-from=${from}><line class=\"draft\"></line></g>` : nothing}\n </svg>\n <div class=\"side\">${rows.map((row) => this.#renderTile(row, true))}</div>\n <div class=\"side\">${columns.map((column) => this.#renderTile(column, false))}</div>\n </div>\n <details class=\"fallback\" part=\"fallback\">\n <summary lang=${ui.lang} dir=${ui.dir}>${this.t('ui.fallback')}</summary>\n ${rows.map((row, i) => {\n const picked = this.joined.get(row.id) ?? NONE;\n return html`<label class=\"pick\">\n <span lang=${ifDefined(content)}>${textOf(row)}</span>\n <select\n part=\"control\"\n lang=${ifDefined(content)}\n ?disabled=${this.disabled}\n aria-describedby=${this.#feedback(row.id, i).refs || nothing}\n @change=${(event: Event) => this.#join(row.id, (event.target as HTMLSelectElement).value)}\n >\n <option value=\"\" lang=${ui.lang} .selected=${picked === NONE}>${this.t('ui.choose')}</option>\n ${columns.map(\n (column) =>\n html`<option value=${column.id} .selected=${picked === column.id}>${textOf(column)}</option>`,\n )}\n </select>\n </label>`;\n })}\n </details>`;\n }\n\n #renderTile(item: HTMLElement, row: boolean): TemplateResult {\n const id = item.id;\n const pick = this.#pick;\n const i = this.rows.indexOf(item);\n const partners = row\n ? this.columns.filter((column) => column.id === this.joined.get(id))\n : this.rows.filter((r) => this.joined.get(r.id) === id);\n const first = row ? id : [...this.joined].find(([, column]) => column === id)?.[0];\n const { verdict, refs, notes } = row\n ? this.#feedback(id, i)\n : { verdict: undefined, refs: '', notes: nothing };\n const ui = this.uiLanguage;\n const names = new Intl.ListFormat(ui.lang).format(partners.map(textOf));\n return html`<div\n class=\"tile astl-box astl-ring\"\n part=${row ? 'row' : 'column'}\n data-item=${id}\n data-palette=${ifDefined(first === undefined ? undefined : this.#palette(first))}\n data-verdict=${ifDefined(verdict)}\n ?data-joined=${partners.length > 0}\n ?data-picked=${pick.picked === id || pick.dragging === id}\n ?data-target=${pick.target === id || (pick.dragging !== null && pick.over === id)}\n >\n <button\n type=\"button\"\n data-item=${id}\n aria-pressed=${pick.picked === id ? 'true' : 'false'}\n aria-describedby=${this.disabled ? refs || nothing : `instructions ${refs}`.trim()}\n ?disabled=${this.disabled}\n @click=${(event: MouseEvent) => this.#press(event, id)}\n @keydown=${(event: KeyboardEvent) => this.#keydown(event, id)}\n @pointerdown=${(event: PointerEvent) => {\n this.#dragged = false;\n this.#pointer = null;\n pick.pointerdown(event, id);\n }}\n @touchmove=${pick.touchmove}\n >\n <span class=\"text\"><slot data-item=${id}></slot></span\n ><span class=\"astl-vh\" lang=${ui.lang} dir=${ui.dir}\n >, ${partners.length > 0 ? this.t('ui.joined', { names }) : this.t('ui.notJoined')}</span\n >\n </button>\n <span class=\"dot\" part=\"dot\"></span>\n ${notes}\n </div>`;\n }\n\n /**\n * A row's verdict (answered rows; where rows are marked one by one, an unanswered one shows \"no answer\"), its\n * solution line (unless the answer is the correct one) and their ids.\n */\n #feedback(id: string, i: number) {\n const picked = this.joined.get(id);\n const marked = Object.keys(this.feedback?.slots ?? {}).length > 0;\n const verdict = (picked === undefined ? (marked ? 'empty' : null) : this.slotVerdict(id)) ?? undefined;\n const correct = this.solution?.[id];\n const answer = correct === picked ? undefined : this.columns.find((column) => column.id === correct);\n const ui = this.uiLanguage;\n const content = this.contentLang || undefined;\n const refs = [verdict && `verdict-${i}`, answer && `solution-${i}`].filter(Boolean).join(' ');\n const notes = html`${\n verdict === undefined\n ? nothing\n : renderVerdict(verdict, (key, params) => this.t(key, params), {\n hiddenWord: true,\n id: `verdict-${i}`,\n part: 'verdict',\n ...ui,\n })\n }${\n answer === undefined\n ? nothing\n : // A UI sentence around a content name: it reads in the UI's direction, the name keeps its language.\n html`<p class=\"astl-solution\" part=\"solution\" id=\"solution-${i}\" data-column=${answer.id} lang=${ui.lang} dir=${ui.dir}>\n ${verdictIcon('correct')}<span class=\"astl-solution-label\">${this.t('ui.solution')}</span>\n <bdi lang=${ifDefined(content)}>${textOf(answer)}</bdi>\n </p>`\n }`;\n return { verdict, refs, notes };\n }\n\n protected override updated(): void {\n // Manual slot assignment: the view's light DOM is projected as is, never moved or rewritten.\n const root = this.renderRoot as ShadowRoot;\n const prompt = Array.from(this.children).find((child) => child.localName === 'astl-prompt');\n root.querySelector<HTMLSlotElement>('slot.prompt-slot')?.assign(...(prompt ? [prompt] : []));\n const items = new Map([...this.rows, ...this.columns].map((el) => [el.id, el]));\n for (const slot of root.querySelectorAll<HTMLSlotElement>('slot[data-item]')) {\n const item = items.get(slot.dataset.item ?? '');\n slot.assign(...(item ? [item] : []));\n }\n // Through the CSSOM, which a strict Content Security Policy allows (an inline style attribute it blocks).\n root\n .querySelector<HTMLElement>('.fit')\n ?.style.setProperty('--astl-match-columns', `${this.columns.length}`);\n if (this.#lines && this.#observer === null) {\n // Lines follow the tiles: on resize (the host's size changes with every tile) and once fonts are loaded.\n this.#observer = new ResizeObserver(() => this.#draw());\n this.#observer.observe(this);\n void document.fonts.ready.then(() => this.#draw());\n }\n this.#draw();\n }\n\n // Joining\n\n get #lines(): boolean {\n return this.stringAttribute('variant') === 'lines';\n }\n\n #children(tag: string): HTMLElement[] {\n return Array.from(this.children).filter(\n (child): child is HTMLElement => child.localName === tag && child.id !== '',\n );\n }\n\n #isRow(id: string): boolean {\n return this.rows.some((row) => row.id === id);\n }\n\n /** The items on the other side from `id`. */\n #facing(id: string): readonly HTMLElement[] {\n return this.#isRow(id) ? this.columns : this.rows;\n }\n\n #palette(row: string): number {\n return slotOf(this.rows.findIndex((r) => r.id === row));\n }\n\n #tile(id: string): HTMLElement | undefined {\n return [...(this.renderRoot as ShadowRoot).querySelectorAll<HTMLElement>('.tile')].find(\n (tile) => tile.dataset.item === id,\n );\n }\n\n /** Gives `row` the partner `column` (NONE: none) and reports it. */\n #join(row: string, column: string): void {\n if (this.disabled || (this.joined.get(row) ?? NONE) === column) return;\n const next = new Map(this.joined);\n next.delete(row);\n if (column !== NONE) next.set(row, column);\n this.joined = next;\n this.emitChange({ [row]: column });\n }\n\n /** Removes the line of `row` (a tap on the line, Delete or Backspace, a second press), announced. */\n #remove(row: string): void {\n if (this.disabled || !this.joined.has(row)) return;\n this.#pick.reset();\n this.#join(row, NONE);\n this.announce(this.#message('put', row, NONE));\n }\n\n /**\n * A press on an item (a tap, Space or Enter). A picked row pressed again, with no other partner chosen, loses its\n * line (\"tap the row again\"); else PickAndPlace picks, and a press on the other side puts the picked item there.\n */\n #press(event: MouseEvent, id: string): void {\n const pick = this.#pick;\n const picked = pick.picked;\n const dragged = this.#dragged && event.detail !== 0;\n this.#dragged = false;\n if (!dragged && picked === id && pick.target === null && this.joined.has(id)) this.#remove(id);\n else pick.click(event, id, picked !== null && this.#isRow(picked) !== this.#isRow(id) ? id : undefined);\n }\n\n #keydown(event: KeyboardEvent, id: string): void {\n if ((event.key === 'Delete' || event.key === 'Backspace') && this.joined.has(id)) {\n event.preventDefault();\n this.#remove(id);\n } else this.#pick.keydown(event, id);\n }\n\n /** `ui.announce.pick`, `target` (or `none`), `cancel`, and for a put `join` (or `unjoin`: no partner). */\n #message(moment: PickMoment, item: string, to: string): string {\n const name = (id: string) => textOf([...this.rows, ...this.columns].find((el) => el.id === id));\n const [row, column] = this.#isRow(item) ? [item, to] : [to, item];\n const key =\n moment === 'put'\n ? column === NONE\n ? 'unjoin'\n : 'join'\n : moment === 'target' && to === NONE\n ? 'none'\n : moment;\n return this.t(`ui.announce.${key}`, {\n item: name(moment === 'target' ? to : item),\n row: name(row),\n column: name(column),\n joined: this.joined.size,\n total: this.rows.length,\n });\n }\n\n /** Puts every line between the centres of its dots, and the line being made towards its partner or the pointer. */\n #draw(): void {\n const canvas = (this.renderRoot as ShadowRoot).querySelector('svg.lines');\n if (canvas === null) return;\n // The viewBox is the box on screen: no correction needed for CSS zoom or scaling.\n const box = canvas.getBoundingClientRect();\n canvas.setAttribute('viewBox', `0 0 ${box.width} ${box.height}`);\n const centre = (id: string | null | undefined): readonly [number, number] | null => {\n const dot = id ? this.#tile(id)?.querySelector('.dot')?.getBoundingClientRect() : undefined;\n return dot ? [dot.x + dot.width / 2, dot.y + dot.height / 2] : null;\n };\n const pick = this.#pick;\n const aim = centre(pick.dragging === null ? pick.target : this.#aim) ?? this.#pointer;\n for (const g of canvas.querySelectorAll('g')) {\n const a = centre(g.dataset.from);\n // A line without an end yet stays a point under its own dot.\n const b = (g.dataset.to === undefined ? aim : centre(g.dataset.to)) ?? a;\n const [x1, y1, x2, y2] =\n a && b ? [a[0] - box.x, a[1] - box.y, b[0] - box.x, b[1] - box.y] : [0, 0, 0, 0];\n for (const line of g.querySelectorAll('line')) {\n line.setAttribute('x1', `${x1}`);\n line.setAttribute('y1', `${y1}`);\n line.setAttribute('x2', `${x2}`);\n line.setAttribute('y2', `${y2}`);\n }\n }\n }\n}\n\nexport const matchElement: ElementRegistration = {\n manifest: matchManifest,\n element: MatchElement,\n messages: matchUiMessages,\n};\n"],"mappings":"A,wTAIA,IAAMuB,EAAY,aAMLC,EAA6C,CACxD,CAAE,YAAW,OAAQ,KAAM,SAAUxB,CAAG,EACxC,CAAE,YAAW,OAAQ,KAAM,SAAUC,CAAG,CAC1C,ECQMwB,EAAO,GAGPC,EAAa,IAEbC,EAAU,IAAqCC,GAAI,aAAe,GAAA,CAAI,QAAQ,OAAQ,GAAG,CAAC,CAAC,KAAK,EAGhGC,EAAU,GAA2BC,EAAQ,EAAK,EAc3CC,EAAb,cAAkCjB,CAAY,CAC5C,OAAgB,SAA8BI,EAC9C,OAA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,GAClF,OAAO+C,EAAM,CAACA,EAAI,EAAIA,EAAI,MAAQ,EAAGA,EAAI,EAAIA,EAAI,OAAS,CAAC,EAAI,IACjE,EACMzB,EAAO,KAAKnB,GACZ6C,EAAMF,EAAOxB,EAAK,WAAa,KAAOA,EAAK,OAAS,KAAKrC,EAAI,GAAK,KAAKH,GAC7E,IAAK,IAAMmE,KAAKJ,EAAO,iBAAiB,GAAG,EAAG,CAC5C,IAAMK,EAAIJ,EAAOG,EAAE,QAAQ,IAAI,EAEzB/F,GAAK+F,EAAE,QAAQ,KAAO,IAAA,GAAYD,EAAMF,EAAOG,EAAE,QAAQ,EAAE,IAAMC,EACjE,CAACC,EAAIC,EAAIC,EAAIC,GACjBJ,GAAKhG,EAAI,CAACgG,EAAE,GAAKhE,EAAI,EAAGgE,EAAE,GAAKhE,EAAI,EAAGhC,EAAE,GAAKgC,EAAI,EAAGhC,EAAE,GAAKgC,EAAI,CAAC,EAAI,CAAC,EAAG,EAAG,EAAG,CAAC,EACjF,IAAK,IAAMqE,KAAQN,EAAE,iBAAiB,MAAM,EAC1CM,EAAK,aAAa,KAAM,GAAGJ,GAAI,EAC/BI,EAAK,aAAa,KAAM,GAAGH,GAAI,EAC/BG,EAAK,aAAa,KAAM,GAAGF,GAAI,EAC/BE,EAAK,aAAa,KAAM,GAAGD,GAAI,CAEnC,CACF,CACF,EAEaE,EAAoC,CAC/C,SAAU3F,EACV,QAASa,EACT,SAAUP,CACZ,E"}
@@ -0,0 +1,2 @@
1
+ var e={tag:`astl-match`,version:1,display:`block`,graded:!0,attributes:[],children:[{tag:`astl-prompt`,visibility:`public`,content:`inline`,min:0,max:1,attributes:[]},{tag:`astl-row`,visibility:`public`,content:`inline`,min:1,max:12,attributes:[{name:`id`,type:`id`,visibility:`public`,required:!0},{name:`column`,type:`string`,visibility:`private`,required:!0}]},{tag:`astl-column`,visibility:`public`,content:`inline`,min:2,max:8,attributes:[{name:`id`,type:`id`,visibility:`public`,required:!0}]}],scoring:{default:`per-row`,modes:{"per-row":`proportional`,all:`all-correct`}},variants:{default:`grid`,values:[`grid`,`lines`]},slotKinds:[`choice`],issues:[`MATCH_ROW_EMPTY`,`MATCH_ROW_DUPLICATE`,`MATCH_ROW_AMBIGUOUS`,`MATCH_ROW_COLUMN_UNKNOWN`,`MATCH_COLUMN_EMPTY`,`MATCH_COLUMN_DUPLICATE`,`MATCH_LINK`,`MATCH_PROMPT_EMPTY`],messages:`astl.match`,a11y:{pattern:`grid: a table whose rows each hold a radio group named by the row, every radio named "row: column" | lines: toggle buttons, press an item and then its partner (or choose it with the arrow keys and press Enter), Delete removes a line, Escape cancels; plus one native select per row in a disclosure`,keys:[`Tab`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`,`Enter`,`Delete`,`Backspace`,`Escape`]},cssParts:[`match`,`prompt`,`row`,`column`,`option`,`control`,`dot`,`line`,`fallback`,`verdict`,`solution`]},t={"ui.hint.grid":`Choose one answer in each row.`,"ui.hint.lines":`Join each item with its partner.`,"ui.option":`{row}: {column}`,"ui.solution":`Correct answer:`,"ui.instructions":`Press an item, then its partner. Or choose the partner with the arrow keys and press Enter. Delete removes a line, Escape cancels.`,"ui.joined":`joined to {names}`,"ui.notJoined":`not joined`,"ui.fallback":`Use drop-down lists`,"ui.choose":`Choose`,"ui.announce.pick":`Picked “{item}”. Press its partner, or choose it with the arrow keys and press Enter.`,"ui.announce.target":`“{item}”`,"ui.announce.none":`No partner`,"ui.announce.join":`Joined “{row}” with “{column}”, {joined} of {total}`,"ui.announce.unjoin":`“{row}” is no longer joined, {joined} of {total}`,"ui.announce.cancel":`“{item}” stays as it was.`},n={"ui.hint.grid":`Zaznacz jedną odpowiedź w każdym wierszu.`,"ui.hint.lines":`Połącz każdy element z jego parą.`,"ui.option":`{row}: {column}`,"ui.solution":`Poprawna odpowiedź:`,"ui.instructions":`Naciśnij element, a potem jego parę. Możesz też wybrać parę strzałkami i nacisnąć Enter. Delete usuwa linię, Escape anuluje.`,"ui.joined":`połączono z: {names}`,"ui.notJoined":`bez połączenia`,"ui.fallback":`Użyj list rozwijanych`,"ui.choose":`Wybierz`,"ui.announce.pick":`Wybrano „{item}”. Naciśnij jego parę albo wybierz ją strzałkami i naciśnij Enter.`,"ui.announce.target":`„{item}”`,"ui.announce.none":`Bez pary`,"ui.announce.join":`Połączono „{row}” z „{column}”, {joined} z {total}`,"ui.announce.unjoin":`„{row}” nie ma już pary, {joined} z {total}`,"ui.announce.cancel":`„{item}” zostaje bez zmian.`};export{t as n,e as r,n as t};
2
+ //# sourceMappingURL=match-manifest-D0UfoajU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"match-manifest-D0UfoajU.js","names":["matchManifest","en_default","pl_default"],"sources":["../../../../components/src/match/manifest.ts","../../../../components/src/match/messages/ui/en.json","../../../../components/src/match/messages/ui/pl.json"],"sourcesContent":["import type { ComponentManifest } from '@astl/core';\n\n/**\n * Matching: the student gives every row one partner from the columns (cities to countries, words to word classes).\n * Several rows may share a column. Each row grades one `choice` slot whose answer is the opaque id of a column.\n * Variants: `grid` (a table with one radio per row and column) and `lines` (two sides of tiles joined by lines);\n * both grade the same.\n */\nexport const matchManifest: ComponentManifest = {\n tag: 'astl-match',\n version: 1,\n display: 'block',\n graded: true,\n attributes: [],\n children: [\n /** The task. */\n { tag: 'astl-prompt', visibility: 'public', content: 'inline', min: 0, max: 1, attributes: [] },\n /**\n * A row to match: `id` is local to the task, `column` (private) is the id of its one correct column. The view\n * shows the rows in a keyed shuffle, never in the authored order (pairs written side by side would show the\n * answer). At most 12, so the task stays workable on a phone.\n */\n {\n tag: 'astl-row',\n visibility: 'public',\n content: 'inline',\n min: 1,\n max: 12,\n attributes: [\n { name: 'id', type: 'id', visibility: 'public', required: true },\n { name: 'column', type: 'string', visibility: 'private', required: true },\n ],\n },\n /** A partner rows are matched to, kept in the authored order. At most 8, so a grid row still fits a phone. */\n {\n tag: 'astl-column',\n visibility: 'public',\n content: 'inline',\n min: 2,\n max: 8,\n attributes: [{ name: 'id', type: 'id', visibility: 'public', required: true }],\n },\n ],\n scoring: { default: 'per-row', modes: { 'per-row': 'proportional', all: 'all-correct' } },\n /** `grid`: a table of radios (cards on a phone). `lines`: join each row to its partner with a line. */\n variants: { default: 'grid', values: ['grid', 'lines'] },\n slotKinds: ['choice'],\n issues: [\n 'MATCH_ROW_EMPTY',\n 'MATCH_ROW_DUPLICATE',\n 'MATCH_ROW_AMBIGUOUS',\n 'MATCH_ROW_COLUMN_UNKNOWN',\n 'MATCH_COLUMN_EMPTY',\n 'MATCH_COLUMN_DUPLICATE',\n 'MATCH_LINK',\n 'MATCH_PROMPT_EMPTY',\n ],\n messages: 'astl.match',\n a11y: {\n pattern:\n 'grid: a table whose rows each hold a radio group named by the row, every radio named \"row: column\" | lines: toggle buttons, press an item and then its partner (or choose it with the arrow keys and press Enter), Delete removes a line, Escape cancels; plus one native select per row in a disclosure',\n keys: [\n 'Tab',\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'Space',\n 'Enter',\n 'Delete',\n 'Backspace',\n 'Escape',\n ],\n },\n cssParts: [\n 'match',\n 'prompt',\n 'row',\n 'column',\n 'option',\n 'control',\n 'dot',\n 'line',\n 'fallback',\n 'verdict',\n 'solution',\n ],\n};\n","{\n \"ui.hint.grid\": \"Choose one answer in each row.\",\n \"ui.hint.lines\": \"Join each item with its partner.\",\n \"ui.option\": \"{row}: {column}\",\n \"ui.solution\": \"Correct answer:\",\n \"ui.instructions\": \"Press an item, then its partner. Or choose the partner with the arrow keys and press Enter. Delete removes a line, Escape cancels.\",\n \"ui.joined\": \"joined to {names}\",\n \"ui.notJoined\": \"not joined\",\n \"ui.fallback\": \"Use drop-down lists\",\n \"ui.choose\": \"Choose\",\n \"ui.announce.pick\": \"Picked “{item}”. Press its partner, or choose it with the arrow keys and press Enter.\",\n \"ui.announce.target\": \"“{item}”\",\n \"ui.announce.none\": \"No partner\",\n \"ui.announce.join\": \"Joined “{row}” with “{column}”, {joined} of {total}\",\n \"ui.announce.unjoin\": \"“{row}” is no longer joined, {joined} of {total}\",\n \"ui.announce.cancel\": \"“{item}” stays as it was.\"\n}\n","{\n \"ui.hint.grid\": \"Zaznacz jedną odpowiedź w każdym wierszu.\",\n \"ui.hint.lines\": \"Połącz każdy element z jego parą.\",\n \"ui.option\": \"{row}: {column}\",\n \"ui.solution\": \"Poprawna odpowiedź:\",\n \"ui.instructions\": \"Naciśnij element, a potem jego parę. Możesz też wybrać parę strzałkami i nacisnąć Enter. Delete usuwa linię, Escape anuluje.\",\n \"ui.joined\": \"połączono z: {names}\",\n \"ui.notJoined\": \"bez połączenia\",\n \"ui.fallback\": \"Użyj list rozwijanych\",\n \"ui.choose\": \"Wybierz\",\n \"ui.announce.pick\": \"Wybrano „{item}”. Naciśnij jego parę albo wybierz ją strzałkami i naciśnij Enter.\",\n \"ui.announce.target\": \"„{item}”\",\n \"ui.announce.none\": \"Bez pary\",\n \"ui.announce.join\": \"Połączono „{row}” z „{column}”, {joined} z {total}\",\n \"ui.announce.unjoin\": \"„{row}” nie ma już pary, {joined} z {total}\",\n \"ui.announce.cancel\": \"„{item}” zostaje bez zmian.\"\n}\n"],"mappings":"AAQA,IAAaA,EAAmC,CAC9C,IAAK,aACL,QAAS,EACT,QAAS,QACT,OAAQ,GACR,WAAY,CAAC,EACb,SAAU,CAER,CAAE,IAAK,cAAe,WAAY,SAAU,QAAS,SAAU,IAAK,EAAG,IAAK,EAAG,WAAY,CAAC,CAAE,EAM9F,CACE,IAAK,WACL,WAAY,SACZ,QAAS,SACT,IAAK,EACL,IAAK,GACL,WAAY,CACV,CAAE,KAAM,KAAM,KAAM,KAAM,WAAY,SAAU,SAAU,EAAK,EAC/D,CAAE,KAAM,SAAU,KAAM,SAAU,WAAY,UAAW,SAAU,EAAK,CAC1E,CACF,EAEA,CACE,IAAK,cACL,WAAY,SACZ,QAAS,SACT,IAAK,EACL,IAAK,EACL,WAAY,CAAC,CAAE,KAAM,KAAM,KAAM,KAAM,WAAY,SAAU,SAAU,EAAK,CAAC,CAC/E,CACF,EACA,QAAS,CAAE,QAAS,UAAW,MAAO,CAAE,UAAW,eAAgB,IAAK,aAAc,CAAE,EAExF,SAAU,CAAE,QAAS,OAAQ,OAAQ,CAAC,OAAQ,OAAO,CAAE,EACvD,UAAW,CAAC,QAAQ,EACpB,OAAQ,CACN,kBACA,sBACA,sBACA,2BACA,qBACA,yBACA,aACA,oBACF,EACA,SAAU,aACV,KAAM,CACJ,QACE,2SACF,KAAM,CACJ,MACA,UACA,YACA,YACA,aACA,QACA,QACA,SACA,YACA,QACF,CACF,EACA,SAAU,CACR,QACA,SACA,MACA,SACA,SACA,UACA,MACA,OACA,WACA,UACA,UACF,CACF,E"}
@@ -0,0 +1,187 @@
1
+ import{C as e,D as t,E as n,b as r,h as i,n as a,v as o,y as s}from"./runtime-DxAbpr3S.js";import{n as c,r as l,t as u}from"./memory-manifest-D1589iR0.js";import{t as d}from"./roving-focus-BxGgi2DD.js";import{t as f}from"./block-styles-CKo9x7Vt.js";var p=`astl.memory`,m=[{namespace:p,locale:`en`,messages:c},{namespace:p,locale:`pl`,messages:u}],h={a:null,b:null},g=e=>e.localName===`astl-card-a`?`a`:`b`,_=e=>e instanceof HTMLImageElement?` ${e.alt} `:e.nodeType===Node.TEXT_NODE?e.textContent??``:[...e.childNodes].map(_).join(``),v=e=>(e?_(e):``).replace(/\s+/g,` `).trim();function y(e,t){let n=e.indexOf(null);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}var b=class extends a{static manifest=l;static messages=m;static shadowRootOptions={...s.shadowRootOptions,slotAssignment:`manual`};static properties={pairs:{state:!0},open:{state:!0}};static styles=[n`
2
+ .cards {
3
+ display: grid;
4
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, max(8rem, 22%)), 1fr));
5
+ grid-auto-rows: 1fr;
6
+ gap: var(--astl-space-5) var(--astl-space-3);
7
+ padding-block-start: var(--astl-space-3);
8
+ overflow-wrap: anywhere;
9
+ hyphens: auto;
10
+ }
11
+ .cards[data-solution] {
12
+ grid-auto-rows: auto;
13
+ }
14
+ .card {
15
+ position: relative;
16
+ display: flex;
17
+ flex-direction: column;
18
+ min-inline-size: 0;
19
+ border: var(--astl-outline-width) solid var(--astl-outline);
20
+ border-radius: var(--astl-radius-m);
21
+ background: var(--astl-accent-soft);
22
+ }
23
+ .card[data-up] {
24
+ background: var(--astl-surface);
25
+ }
26
+ .card[data-open] {
27
+ border-color: var(--astl-selected);
28
+ background: var(--astl-selected-soft);
29
+ font-weight: var(--astl-selected-weight);
30
+ }
31
+ .card[data-open]::before {
32
+ content: '';
33
+ position: absolute;
34
+ inset-block: 0;
35
+ inset-inline-start: 0;
36
+ inline-size: var(--astl-selected-bar);
37
+ background: var(--astl-selected);
38
+ }
39
+ .card[data-palette] {
40
+ border-color: var(--astl-memory-ink);
41
+ background: var(--astl-memory-soft);
42
+ }
43
+ .card > button {
44
+ flex: 1 1 auto;
45
+ display: grid;
46
+ min-block-size: 5.5rem;
47
+ margin: 0;
48
+ padding: var(--astl-space-3);
49
+ border: 0;
50
+ background: none;
51
+ color: inherit;
52
+ font: inherit;
53
+ cursor: pointer;
54
+ touch-action: manipulation;
55
+ }
56
+ .card > button:disabled {
57
+ cursor: default;
58
+ }
59
+ .back,
60
+ .face {
61
+ grid-area: 1 / 1;
62
+ display: grid;
63
+ place-content: center;
64
+ min-inline-size: 0;
65
+ text-align: center;
66
+ }
67
+ .back {
68
+ color: var(--astl-accent);
69
+ font-size: 1.75rem;
70
+ font-weight: 700;
71
+ }
72
+ .face,
73
+ [aria-pressed='true'] > .back {
74
+ visibility: hidden;
75
+ }
76
+ [aria-pressed='true'] > .face {
77
+ visibility: visible;
78
+ animation: turn var(--astl-duration-normal) ease-out;
79
+ }
80
+ @keyframes turn {
81
+ from {
82
+ transform: rotateY(90deg);
83
+ }
84
+ }
85
+ @media (prefers-reduced-motion: reduce) {
86
+ [aria-pressed='true'] > .face {
87
+ animation: none;
88
+ }
89
+ }
90
+ `,n`
91
+ .number,
92
+ .card > .astl-verdict {
93
+ position: absolute;
94
+ inset-block-start: 0;
95
+ translate: 0 -50%;
96
+ border-radius: var(--astl-radius-pill);
97
+ background: var(--astl-surface);
98
+ font-size: var(--astl-size-small);
99
+ }
100
+ .number {
101
+ inset-inline-start: var(--astl-space-2);
102
+ min-inline-size: 1.5rem;
103
+ padding-inline: var(--astl-space-1);
104
+ border: var(--astl-outline-width) solid var(--astl-memory-ink);
105
+ background: var(--astl-memory-soft);
106
+ color: var(--astl-memory-ink);
107
+ font-weight: 700;
108
+ line-height: 1.4;
109
+ }
110
+ .card > .astl-verdict {
111
+ inset-inline-end: var(--astl-space-2);
112
+ padding: 0.125rem;
113
+ }
114
+ .card > .astl-solution {
115
+ padding-inline: var(--astl-space-2);
116
+ padding-block-end: var(--astl-space-2);
117
+ text-align: center;
118
+ }
119
+ .actions {
120
+ position: sticky;
121
+ inset-block-end: 0;
122
+ display: flex;
123
+ flex-wrap: wrap;
124
+ gap: var(--astl-space-2);
125
+ margin-block-start: var(--astl-space-3);
126
+ padding-block: var(--astl-space-2);
127
+ background: var(--astl-surface);
128
+ }
129
+ .actions > button {
130
+ min-inline-size: var(--astl-target-min);
131
+ min-block-size: var(--astl-target-min);
132
+ padding-inline: var(--astl-space-4);
133
+ border: var(--astl-outline-width) solid var(--astl-outline);
134
+ border-radius: var(--astl-radius-m);
135
+ background: var(--astl-surface);
136
+ color: var(--astl-ink);
137
+ font: inherit;
138
+ font-weight: 600;
139
+ cursor: pointer;
140
+ }
141
+ .group-verdict {
142
+ margin-block: var(--astl-space-3) 0;
143
+ }
144
+ `,t(Array.from({length:8},(e,t)=>`[data-palette='${t+1}']{--astl-memory-ink:var(--astl-palette-${t+1});--astl-memory-soft:var(--astl-palette-${t+1}-soft)}`).join(``)),f];#e;constructor(){super(),this.pairs=[],this.open=h;let e=this;this.#e=new d(this,{count:()=>this.cards.length,item:e=>this.#n.querySelector(`button[data-index="${e}"]`),axis:`grid`,wrap:!0,get columns(){let t=e.#n.querySelector(`.cards`);return t===null?1:getComputedStyle(t).gridTemplateColumns.split(` `).length}})}get cards(){return this.shuffled(Array.from(this.children).filter(e=>(e.localName===`astl-card-a`||e.localName===`astl-card-b`)&&e.id!==``))}get slotIds(){return this.cards.filter(e=>g(e)===`a`).map(e=>e.id)}getAnswers(){return Object.fromEntries(this.pairs.filter(e=>e!==null))}setAnswers(e){let t=new Set(this.cards.filter(e=>g(e)===`b`).map(e=>e.id)),n=this.getAnswers(),r=this.slotIds.filter(t=>Object.hasOwn(e,t)&&e[t]!==(n[t]??``)),i=this.pairs.map(e=>e!==null&&r.includes(e[0])?null:e);for(let n of r){let r=e[n]??``;t.has(r)&&!i.some(e=>e?.[1]===r)&&(i=y(i,[n,r]))}this.pairs=i,this.open=h}units(){return{answered:this.pairs.filter(e=>e!==null).length,total:this.slotIds.length}}render(){let t=this.uiLanguage,n=this.#r;return e`<fieldset part="memory">
145
+ <legend part="prompt">
146
+ <slot data-tag="astl-prompt"></slot>
147
+ <span class="hint" lang=${t.lang}><bdi>${this.t(`ui.hint`)}</bdi></span>
148
+ </legend>
149
+ <div class="cards" part="cards" ?data-solution=${this.solution!==null}>
150
+ ${this.cards.map((e,t)=>this.#t(e,t))}
151
+ </div>
152
+ ${n.a===null||n.b===null?r:e`<div class="actions" part="actions" lang=${t.lang} dir=${t.dir}>
153
+ <button type="button" @click=${this.#c}>${this.t(`ui.confirm`)}</button>
154
+ <button type="button" @click=${this.#l}>${this.t(`ui.turnBack`)}</button>
155
+ </div>`}
156
+ ${this.renderGroupVerdict()}
157
+ </fieldset>`}#t(t,n){let a=this.uiLanguage,s=t.id,c=g(t),l=this.pairs.findIndex(e=>e?.includes(s))+1,u=this.pairs[l-1]??null,d=u===null&&this.#r[c]===s,f=u!==null||d||this.solution!==null,p=Object.keys(this.feedback?.slots??{}).length>0,m=u===null?p?`empty`:null:this.slotVerdict(u[0]),h=c===`a`?this.solution?.[s]:void 0,_=h===u?.[1]?void 0:this.cards.find(e=>e.id===h),y=[m&&`verdict-${n}`,_&&`solution-${n}`].filter(Boolean).join(` `),b=f?this.t(`ui.cardUp`,{number:n+1,set:this.t(`ui.set.${c}`),state:u===null?this.t(`ui.notPaired`):this.t(`ui.paired`,{number:l})}):this.#i(t,n);return e`<div
158
+ class="card astl-box astl-ring"
159
+ part="card"
160
+ data-palette=${o(u===null?void 0:(l-1)%8+1)}
161
+ data-verdict=${o(m??void 0)}
162
+ ?data-up=${f}
163
+ ?data-open=${d}
164
+ >
165
+ <button
166
+ type="button"
167
+ data-item=${s}
168
+ data-index=${n}
169
+ aria-pressed=${f?`true`:`false`}
170
+ aria-describedby=${y||r}
171
+ tabindex=${this.disabled?-1:this.#e.tabIndex(n)}
172
+ ?disabled=${this.disabled}
173
+ @click=${()=>this.#s(t,n)}
174
+ @keydown=${e=>this.#e.keydown(e,n)}
175
+ >
176
+ <span class="astl-vh" lang=${a.lang} dir=${a.dir}>${b}</span>
177
+ <span class="back" part="back" aria-hidden="true" lang=${a.lang}>${this.t(`ui.set.${c}`)}</span>
178
+ <span class="face" part="face"><slot data-card=${s}></slot></span>
179
+ ${u===null?r:e`<span class="number" part="number" aria-hidden="true">${l}</span>`}
180
+ </button>
181
+ ${this.renderVerdict(m,{hiddenWord:!0,id:`verdict-${n}`})}
182
+ ${_===void 0?r:e`<p class="astl-solution" part="solution" id="solution-${n}" data-card=${_.id} lang=${a.lang} dir=${a.dir}>
183
+ ${i(`correct`)}<span class="astl-solution-label">${this.t(`ui.solution`)}</span>
184
+ <bdi lang=${o(this.contentLang||void 0)}>${v(_)}</bdi>
185
+ </p>`}
186
+ </div>`}get#n(){return this.renderRoot}get#r(){return this.disabled?h:this.open}#i(e,t){return this.t(`ui.card`,{number:t+1,set:this.t(`ui.set.${g(e)}`)})}#a(e){return v(this.cards.find(t=>t.id===e))}#o(e,t,[n,r]){let i=this.pairs.filter(e=>e!==null).length,a={number:t,a:this.#a(n),b:this.#a(r),paired:i,total:this.slotIds.length};this.announce(this.t(`ui.announce.${e}`,a))}#s(e,t){if(this.disabled)return;this.#e.focus(t);let n=this.pairs.findIndex(t=>t?.includes(e.id))+1,r=this.pairs[n-1];if(r){this.pairs=this.pairs.map(e=>e===r?null:e),this.emitChange({[r[0]]:``}),this.#o(`unpair`,n,r);return}let i=g(e),a={...this.open,[i]:this.open[i]===e.id?null:e.id};this.open=a;let o={card:this.#i(e,t),label:v(e)},s=a[i]===null?`down`:a.a!==null&&a.b!==null?`decide`:`turn`;this.announce(this.t(`ui.announce.${s}`,o))}#c=()=>{let{a:e,b:t}=this.#r;e!==null&&t!==null&&(this.pairs=y(this.pairs,[e,t]),this.open=h,this.emitChange({[e]:t}),this.#o(`pair`,this.pairs.findIndex(t=>t?.[0]===e)+1,[e,t]),this.#e.focus(this.#e.active))};#l=()=>{this.open=h,this.announce(this.t(`ui.announce.back`)),this.#e.focus(this.#e.active)}},x={manifest:l,element:b,messages:m};export{x as memoryElement};
187
+ //# sourceMappingURL=memory-B6hSyHyz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-B6hSyHyz.js","names":["en","pl","LitElement","unsafeCSS","nothing","ifDefined","b","r","i$1","A","verdictIcon","AstlElement","i","en_default","memoryManifest","pl_default","RovingFocus","blockStyles","namespace","memoryUiMessages","CLOSED","sideOf","card","words","node","labelOf","placed","free","pairs","pair","p","MemoryElement","element","#roving","#root","grid","child","rights","now","given","answers","slot","ui","open","#open","#renderCard","#confirm","#turnBack","id","side","number","turned","up","marked","verdict","correct","answer","c","refs","name","#name","#press","event","a","paired","params","#label","key","#sayPair","said","memoryElement"],"sources":["../../../../components/src/memory/ui-messages.ts","../../../../components/src/memory/element.ts"],"sourcesContent":["import type { MessageCatalog } from '@astl/core';\nimport en from './messages/ui/en.json' with { type: 'json' };\nimport pl from './messages/ui/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.memory';\n\n/**\n * The student strings (`ui.*`): the element's catalogs. A module of their own, because bundlers split by module: one\n * that also built `memoryMessages` would put the authoring strings into the element's chunk.\n */\nexport const memoryUiMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","import type { Answers, ComponentManifest, MessageCatalog, Units } from '@astl/core';\nimport { AstlElement, type ElementRegistration, verdictIcon } from '@astl/player';\nimport { RovingFocus } from '@astl/player/interaction';\nimport {\n type CSSResultGroup,\n css,\n html,\n LitElement,\n nothing,\n type PropertyDeclarations,\n type TemplateResult,\n unsafeCSS,\n} from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { blockStyles } from '../block-styles.js';\nimport { memoryManifest } from './manifest.js';\nimport { memoryUiMessages } from './ui-messages.js';\n\ntype Side = 'a' | 'b';\n/** A set A card and the set B card paired with it. */\ntype Pair = readonly [string, string];\n/** The face-up card of each set that is not paired yet. */\ntype Open = Readonly<Record<Side, string | null>>;\n\nconst CLOSED: Open = { a: null, b: null };\n\nconst sideOf = (card: Element): Side => (card.localName === 'astl-card-a' ? 'a' : 'b');\nconst words = (node: Node): string =>\n node instanceof HTMLImageElement\n ? ` ${node.alt} `\n : node.nodeType === Node.TEXT_NODE\n ? (node.textContent ?? '')\n : [...node.childNodes].map(words).join('');\n/** What a face says: its text and the alt text of its pictures. */\nconst labelOf = (card: Element | undefined): string => (card ? words(card) : '').replace(/\\s+/g, ' ').trim();\n\n/** `pairs` with `pair` at the smallest free number. */\nfunction placed(pairs: readonly (Pair | null)[], pair: Pair): (Pair | null)[] {\n const free = pairs.indexOf(null);\n return free < 0 ? [...pairs, pair] : pairs.map((p, i) => (i === free ? pair : p));\n}\n\n/**\n * `<astl-memory>`: cards lie face down in a grid, each back showing its set (A or B). The student turns one card of\n * each set; while both are face up, \"Confirm\" pairs them and \"Turn back\" turns them back. Turning another card of a\n * set replaces that set's face-up card, and pressing a paired card undoes its pair. Pairs are never checked live.\n * Slots: one per set A card (its id), answered with the id of the set B card paired with it.\n *\n * Cards are toggle buttons (pressed = face up) with one tab stop for the grid: the arrow keys move it (RovingFocus,\n * wrapping in reading order). A pair keeps its number and palette colour until it is undone; a new pair takes the\n * smallest free number. The light-DOM `<astl-prompt>` and cards are slotted manually and never moved or changed.\n */\nexport class MemoryElement extends AstlElement {\n static override manifest: ComponentManifest = memoryManifest;\n static override messages: readonly MessageCatalog[] = memoryUiMessages;\n static override shadowRootOptions: ShadowRootInit = {\n ...LitElement.shadowRootOptions,\n slotAssignment: 'manual',\n };\n\n static override properties: PropertyDeclarations = {\n pairs: { state: true },\n open: { state: true },\n };\n\n static override styles: CSSResultGroup = [\n // Every card the same size (equal rows and columns), so a face-down card never hints at its face or its partner;\n // rows a little apart: the number and the verdict of a card sit on its top edge. Columns at least 8rem, and at\n // least a fifth of the width less the gaps (four columns in the player's column), so long faces keep a few words a\n // line. With the solution every card is face up: rows take the height of their own cards, so a solution line\n // grows its row only. A card is face down (the back: its set letter on the accent fill), turned (the selected\n // look; in hc also a bar and bold text) or paired (its pair's palette colour and number).\n css`\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(min(100%, max(8rem, 22%)), 1fr));\n grid-auto-rows: 1fr;\n gap: var(--astl-space-5) var(--astl-space-3);\n padding-block-start: var(--astl-space-3);\n overflow-wrap: anywhere;\n hyphens: auto;\n }\n .cards[data-solution] {\n grid-auto-rows: auto;\n }\n .card {\n position: relative;\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n border: var(--astl-outline-width) solid var(--astl-outline);\n border-radius: var(--astl-radius-m);\n background: var(--astl-accent-soft);\n }\n .card[data-up] {\n background: var(--astl-surface);\n }\n .card[data-open] {\n border-color: var(--astl-selected);\n background: var(--astl-selected-soft);\n font-weight: var(--astl-selected-weight);\n }\n .card[data-open]::before {\n content: '';\n position: absolute;\n inset-block: 0;\n inset-inline-start: 0;\n inline-size: var(--astl-selected-bar);\n background: var(--astl-selected);\n }\n .card[data-palette] {\n border-color: var(--astl-memory-ink);\n background: var(--astl-memory-soft);\n }\n .card > button {\n flex: 1 1 auto;\n display: grid;\n min-block-size: 5.5rem;\n margin: 0;\n padding: var(--astl-space-3);\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n touch-action: manipulation;\n }\n .card > button:disabled {\n cursor: default;\n }\n .back,\n .face {\n grid-area: 1 / 1;\n display: grid;\n place-content: center;\n min-inline-size: 0;\n text-align: center;\n }\n .back {\n color: var(--astl-accent);\n font-size: 1.75rem;\n font-weight: 700;\n }\n .face,\n [aria-pressed='true'] > .back {\n visibility: hidden;\n }\n [aria-pressed='true'] > .face {\n visibility: visible;\n animation: turn var(--astl-duration-normal) ease-out;\n }\n @keyframes turn {\n from {\n transform: rotateY(90deg);\n }\n }\n @media (prefers-reduced-motion: reduce) {\n [aria-pressed='true'] > .face {\n animation: none;\n }\n }\n `,\n // Stickers on the top edge of a card: its pair number at the inline start, its verdict icon at the inline end.\n // The solution line (block-styles.ts) closes a set A card; the buttons that confirm or turn back follow the grid,\n // kept in view.\n css`\n .number,\n .card > .astl-verdict {\n position: absolute;\n inset-block-start: 0;\n translate: 0 -50%;\n border-radius: var(--astl-radius-pill);\n background: var(--astl-surface);\n font-size: var(--astl-size-small);\n }\n .number {\n inset-inline-start: var(--astl-space-2);\n min-inline-size: 1.5rem;\n padding-inline: var(--astl-space-1);\n border: var(--astl-outline-width) solid var(--astl-memory-ink);\n background: var(--astl-memory-soft);\n color: var(--astl-memory-ink);\n font-weight: 700;\n line-height: 1.4;\n }\n .card > .astl-verdict {\n inset-inline-end: var(--astl-space-2);\n padding: 0.125rem;\n }\n .card > .astl-solution {\n padding-inline: var(--astl-space-2);\n padding-block-end: var(--astl-space-2);\n text-align: center;\n }\n .actions {\n position: sticky;\n inset-block-end: 0;\n display: flex;\n flex-wrap: wrap;\n gap: var(--astl-space-2);\n margin-block-start: var(--astl-space-3);\n padding-block: var(--astl-space-2);\n background: var(--astl-surface);\n }\n .actions > button {\n min-inline-size: var(--astl-target-min);\n min-block-size: var(--astl-target-min);\n padding-inline: var(--astl-space-4);\n border: var(--astl-outline-width) solid var(--astl-outline);\n border-radius: var(--astl-radius-m);\n background: var(--astl-surface);\n color: var(--astl-ink);\n font: inherit;\n font-weight: 600;\n cursor: pointer;\n }\n .group-verdict {\n margin-block: var(--astl-space-3) 0;\n }\n `,\n // Palette slots of pairs, through an attribute: a strict Content Security Policy blocks inline style attributes.\n unsafeCSS(\n Array.from(\n { length: 8 },\n (_, i) =>\n `[data-palette='${i + 1}']{--astl-memory-ink:var(--astl-palette-${i + 1});--astl-memory-soft:var(--astl-palette-${i + 1}-soft)}`,\n ).join(''),\n ),\n blockStyles,\n ];\n\n /** Pair n at index n - 1 (its number and palette slot); null where a pair was undone, so the others keep theirs. */\n declare protected pairs: readonly (Pair | null)[];\n declare protected open: Open;\n\n /** One tab stop for the grid; the arrow keys follow the columns as laid out now, which change with the width. */\n readonly #roving: RovingFocus;\n\n constructor() {\n super();\n this.pairs = [];\n this.open = CLOSED;\n const element = this;\n this.#roving = new RovingFocus(this, {\n count: () => this.cards.length,\n item: (i) => this.#root.querySelector<HTMLButtonElement>(`button[data-index=\"${i}\"]`),\n axis: 'grid',\n wrap: true,\n get columns() {\n const grid = element.#root.querySelector('.cards');\n return grid === null ? 1 : getComputedStyle(grid).gridTemplateColumns.split(' ').length;\n },\n });\n }\n\n /** Both sets' cards in rendered order: view order, or shuffled per attempt with a seed. */\n get cards(): readonly HTMLElement[] {\n return this.shuffled(\n Array.from(this.children).filter(\n (child): child is HTMLElement =>\n (child.localName === 'astl-card-a' || child.localName === 'astl-card-b') && child.id !== '',\n ),\n );\n }\n\n get slotIds(): readonly string[] {\n return this.cards.filter((card) => sideOf(card) === 'a').map((card) => card.id);\n }\n\n getAnswers(): Answers {\n return Object.fromEntries(this.pairs.filter((pair) => pair !== null));\n }\n\n /**\n * Pairs set from outside, in reading order: '' or an unknown card leaves a set A card unpaired, and a set B card\n * that is paired already keeps its first pair (a restored attempt cannot use a card twice).\n */\n setAnswers(answers: Answers): void {\n const rights = new Set(this.cards.filter((card) => sideOf(card) === 'b').map((card) => card.id));\n const now = this.getAnswers();\n const given = this.slotIds.filter(\n (slot) => Object.hasOwn(answers, slot) && answers[slot] !== (now[slot] ?? ''),\n );\n let pairs = this.pairs.map((pair) => (pair !== null && given.includes(pair[0]) ? null : pair));\n for (const slot of given) {\n const card = answers[slot] ?? '';\n if (rights.has(card) && !pairs.some((pair) => pair?.[1] === card)) pairs = placed(pairs, [slot, card]);\n }\n this.pairs = pairs;\n this.open = CLOSED;\n }\n\n units(): Units {\n return { answered: this.pairs.filter((pair) => pair !== null).length, total: this.slotIds.length };\n }\n\n protected override render(): TemplateResult {\n const ui = this.uiLanguage;\n const open = this.#open;\n return html`<fieldset part=\"memory\">\n <legend part=\"prompt\">\n <slot data-tag=\"astl-prompt\"></slot>\n <span class=\"hint\" lang=${ui.lang}><bdi>${this.t('ui.hint')}</bdi></span>\n </legend>\n <div class=\"cards\" part=\"cards\" ?data-solution=${this.solution !== null}>\n ${this.cards.map((card, i) => this.#renderCard(card, i))}\n </div>\n ${\n open.a === null || open.b === null\n ? nothing\n : html`<div class=\"actions\" part=\"actions\" lang=${ui.lang} dir=${ui.dir}>\n <button type=\"button\" @click=${this.#confirm}>${this.t('ui.confirm')}</button>\n <button type=\"button\" @click=${this.#turnBack}>${this.t('ui.turnBack')}</button>\n </div>`\n }\n ${this.renderGroupVerdict()}\n </fieldset>`;\n }\n\n /**\n * A card: named by its number and set; face up, also by its face and whether it is paired. A paired card shows its\n * pair's verdict; a set A card with a solution that differs from its pair shows the set B card it belongs with.\n */\n #renderCard(card: HTMLElement, i: number): TemplateResult {\n const ui = this.uiLanguage;\n const id = card.id;\n const side = sideOf(card);\n const number = this.pairs.findIndex((pair) => pair?.includes(id)) + 1;\n const pair = this.pairs[number - 1] ?? null;\n const turned = pair === null && this.#open[side] === id;\n const up = pair !== null || turned || this.solution !== null;\n // Where pairs are marked one by one, a card left without a pair shows \"no answer\" (dotted), as in every type.\n const marked = Object.keys(this.feedback?.slots ?? {}).length > 0;\n const verdict = pair === null ? (marked ? 'empty' : null) : this.slotVerdict(pair[0]);\n const correct = side === 'a' ? this.solution?.[id] : undefined;\n const answer = correct === pair?.[1] ? undefined : this.cards.find((c) => c.id === correct);\n const refs = [verdict && `verdict-${i}`, answer && `solution-${i}`].filter(Boolean).join(' ');\n // Face up, the face follows the name: \"Card 3, set A, pair 1:\" then what the card shows.\n const name = up\n ? this.t('ui.cardUp', {\n number: i + 1,\n set: this.t(`ui.set.${side}`),\n state: pair === null ? this.t('ui.notPaired') : this.t('ui.paired', { number }),\n })\n : this.#name(card, i);\n return html`<div\n class=\"card astl-box astl-ring\"\n part=\"card\"\n data-palette=${ifDefined(pair === null ? undefined : ((number - 1) % 8) + 1)}\n data-verdict=${ifDefined(verdict ?? undefined)}\n ?data-up=${up}\n ?data-open=${turned}\n >\n <button\n type=\"button\"\n data-item=${id}\n data-index=${i}\n aria-pressed=${up ? 'true' : 'false'}\n aria-describedby=${refs || nothing}\n tabindex=${this.disabled ? -1 : this.#roving.tabIndex(i)}\n ?disabled=${this.disabled}\n @click=${() => this.#press(card, i)}\n @keydown=${(event: KeyboardEvent) => this.#roving.keydown(event, i)}\n >\n <span class=\"astl-vh\" lang=${ui.lang} dir=${ui.dir}>${name}</span>\n <span class=\"back\" part=\"back\" aria-hidden=\"true\" lang=${ui.lang}>${this.t(`ui.set.${side}`)}</span>\n <span class=\"face\" part=\"face\"><slot data-card=${id}></slot></span>\n ${pair === null ? nothing : html`<span class=\"number\" part=\"number\" aria-hidden=\"true\">${number}</span>`}\n </button>\n ${this.renderVerdict(verdict, { hiddenWord: true, id: `verdict-${i}` })}\n ${\n answer === undefined\n ? nothing\n : // A UI sentence around a content name: it reads in the UI's direction, the name keeps its language.\n html`<p class=\"astl-solution\" part=\"solution\" id=\"solution-${i}\" data-card=${answer.id} lang=${ui.lang} dir=${ui.dir}>\n ${verdictIcon('correct')}<span class=\"astl-solution-label\">${this.t('ui.solution')}</span>\n <bdi lang=${ifDefined(this.contentLang || undefined)}>${labelOf(answer)}</bdi>\n </p>`\n }\n </div>`;\n }\n\n // Turning and pairing\n\n get #root(): ShadowRoot {\n return this.renderRoot as ShadowRoot;\n }\n\n /** A locked element turns nothing over: only its pairs show. */\n get #open(): Open {\n return this.disabled ? CLOSED : this.open;\n }\n\n #name(card: Element, i: number): string {\n return this.t('ui.card', { number: i + 1, set: this.t(`ui.set.${sideOf(card)}`) });\n }\n\n #label(id: string): string {\n return labelOf(this.cards.find((card) => card.id === id));\n }\n\n /** `ui.announce.pair` or `unpair`: the pair's number and faces, and how many pairs there are now. */\n #sayPair(key: 'pair' | 'unpair', number: number, [a, b]: Pair): void {\n const paired = this.pairs.filter((pair) => pair !== null).length;\n const params = { number, a: this.#label(a), b: this.#label(b), paired, total: this.slotIds.length };\n this.announce(this.t(`ui.announce.${key}`, params));\n }\n\n /** A press on a card: a paired one undoes its pair; else it turns over (back down when it was face up). */\n #press(card: HTMLElement, i: number): void {\n if (this.disabled) return;\n this.#roving.focus(i);\n const number = this.pairs.findIndex((pair) => pair?.includes(card.id)) + 1;\n const pair = this.pairs[number - 1];\n if (pair) {\n this.pairs = this.pairs.map((p) => (p === pair ? null : p));\n this.emitChange({ [pair[0]]: '' });\n this.#sayPair('unpair', number, pair);\n return;\n }\n const side = sideOf(card);\n const open = { ...this.open, [side]: this.open[side] === card.id ? null : card.id };\n this.open = open;\n const said = { card: this.#name(card, i), label: labelOf(card) };\n const key = open[side] === null ? 'down' : open.a !== null && open.b !== null ? 'decide' : 'turn';\n this.announce(this.t(`ui.announce.${key}`, said));\n }\n\n /** Pairs the two face-up cards; the focus goes back to the grid. */\n #confirm = (): void => {\n const { a, b } = this.#open;\n if (a === null || b === null) return;\n this.pairs = placed(this.pairs, [a, b]);\n this.open = CLOSED;\n this.emitChange({ [a]: b });\n this.#sayPair('pair', this.pairs.findIndex((pair) => pair?.[0] === a) + 1, [a, b]);\n this.#roving.focus(this.#roving.active);\n };\n\n #turnBack = (): void => {\n this.open = CLOSED;\n this.announce(this.t('ui.announce.back'));\n this.#roving.focus(this.#roving.active);\n };\n}\n\nexport const memoryElement: ElementRegistration = {\n manifest: memoryManifest,\n element: MemoryElement,\n messages: memoryUiMessages,\n};\n"],"mappings":"A,yPAIA,IAAMkB,EAAY,cAMLC,EAA8C,CACzD,CAAE,YAAW,OAAQ,KAAM,SAAUnB,CAAG,EACxC,CAAE,YAAW,OAAQ,KAAM,SAAUC,CAAG,CAC1C,ECWMmB,EAAe,CAAE,EAAG,KAAM,EAAG,IAAK,EAElCC,EAAU,GAAyBC,EAAK,YAAc,cAAgB,IAAM,IAC5EC,EAAS,GACbC,aAAgB,iBACZ,IAAIA,EAAK,IAAI,GACbA,EAAK,WAAa,KAAK,UACpBA,EAAK,aAAe,GACrB,CAAC,GAAGA,EAAK,UAAU,CAAC,CAAC,IAAID,CAAK,CAAC,CAAC,KAAK,EAAE,EAEzCE,EAAW,IAAuCH,EAAOC,EAAMD,CAAI,EAAI,GAAA,CAAI,QAAQ,OAAQ,GAAG,CAAC,CAAC,KAAK,EAG3G,SAASI,EAAO,EAAiC,EAA6B,CAC5E,IAAMC,EAAOC,EAAM,QAAQ,IAAI,EAC/B,OAAOD,EAAO,EAAI,CAAC,GAAGC,EAAOC,CAAI,EAAID,EAAM,KAAK,EAAG,IAAOhB,IAAMe,EAAOE,EAAOC,CAAE,CAClF,CAYA,IAAaC,EAAb,cAAmCpB,CAAY,CAC7C,OAAgB,SAA8BG,EAC9C,OAAgB,SAAsCK,EACtD,OAAgB,kBAAoC,CAClD,GAAGjB,EAAW,kBACd,eAAgB,QAClB,EAEA,OAAgB,WAAmC,CACjD,MAAO,CAAE,MAAO,EAAK,EACrB,KAAM,CAAE,MAAO,EAAK,CACtB,EAEA,OAAgB,OAAyB,CAOvC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6FH,CAAG;;;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,SAAUxD,EACV,QAASiB,EACT,SAAUZ,CACZ,E"}
@@ -0,0 +1,2 @@
1
+ var e={tag:`astl-memory`,version:1,display:`block`,graded:!0,attributes:[],children:[{tag:`astl-prompt`,visibility:`public`,content:`inline`,min:0,max:1,attributes:[]},{tag:`astl-card-a`,visibility:`public`,content:`inline`,min:2,max:15,attributes:[{name:`id`,type:`id`,visibility:`public`,required:!0}]},{tag:`astl-card-b`,visibility:`public`,content:`inline`,min:2,max:15,attributes:[{name:`id`,type:`id`,visibility:`public`,required:!0},{name:`pair`,type:`string`,visibility:`private`,required:!0}]}],scoring:{default:`per-pair`,modes:{"per-pair":`proportional`,all:`all-correct`}},variants:null,slotKinds:[`choice`],issues:[`MEMORY_CARD_EMPTY`,`MEMORY_CARD_DUPLICATE`,`MEMORY_CARD_LINK`,`MEMORY_PAIR_UNKNOWN`,`MEMORY_PAIR_TAKEN`,`MEMORY_PAIR_MISSING`,`MEMORY_PROMPT_EMPTY`],messages:`astl.memory`,a11y:{pattern:`toggle buttons in a grid with one tab stop: the arrow keys move between the cards (Home and End: the ends of the row, Ctrl+Home and Ctrl+End: the first and the last card, PageUp and PageDown: a few rows), Space or Enter turns a card; with one card of each set face up, "Confirm" pairs them and "Turn back" turns them back; pressing a paired card undoes the pair`,keys:[`Tab`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Space`,`Enter`]},cssParts:[`memory`,`prompt`,`cards`,`card`,`back`,`face`,`number`,`actions`,`verdict`,`solution`]},t={"ui.hint":`Turn one card from set A and one from set B. If they belong together, confirm the pair.`,"ui.set.a":`A`,"ui.set.b":`B`,"ui.card":`Card {number}, set {set}`,"ui.cardUp":`Card {number}, set {set}, {state}:`,"ui.paired":`pair {number}`,"ui.notPaired":`not paired`,"ui.confirm":`Confirm`,"ui.turnBack":`Turn back`,"ui.solution":`Correct pair:`,"ui.announce.turn":`{card}: {label}`,"ui.announce.decide":`{card}: {label}. Do the two cards belong together? Confirm the pair, or turn the cards back.`,"ui.announce.down":`{card} is face down again.`,"ui.announce.back":`Both cards are face down again.`,"ui.announce.pair":`Pair {number}: “{a}” and “{b}”. Pairs: {paired} of {total}.`,"ui.announce.unpair":`Pair {number} undone: “{a}” and “{b}” are face down again. Pairs: {paired} of {total}.`},n={"ui.hint":`Odkryj jedną kartę z zestawu A i jedną z zestawu B. Jeśli pasują do siebie, potwierdź parę.`,"ui.set.a":`A`,"ui.set.b":`B`,"ui.card":`Karta {number}, zestaw {set}`,"ui.cardUp":`Karta {number}, zestaw {set}, {state}:`,"ui.paired":`para {number}`,"ui.notPaired":`bez pary`,"ui.confirm":`Potwierdź`,"ui.turnBack":`Zakryj`,"ui.solution":`Poprawna para:`,"ui.announce.turn":`{card}: {label}`,"ui.announce.decide":`{card}: {label}. Czy te dwie karty pasują do siebie? Potwierdź parę albo zakryj karty.`,"ui.announce.down":`{card} jest znowu zakryta.`,"ui.announce.back":`Obie karty są znowu zakryte.`,"ui.announce.pair":`Para {number}: „{a}” i „{b}”. Pary: {paired} z {total}.`,"ui.announce.unpair":`Para {number} rozdzielona: „{a}” i „{b}” są znowu zakryte. Pary: {paired} z {total}.`};export{t as n,e as r,n as t};
2
+ //# sourceMappingURL=memory-manifest-D1589iR0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-manifest-D1589iR0.js","names":["memoryManifest","en_default","pl_default"],"sources":["../../../../components/src/memory/manifest.ts","../../../../components/src/memory/messages/ui/en.json","../../../../components/src/memory/messages/ui/pl.json"],"sourcesContent":["import type { ComponentManifest } from '@astl/core';\n\n/**\n * Memory: cards lie face down, each in set A or set B; the student turns one card of each set and pairs the two that\n * belong together (an animal and its young). Pairs are checked only with the exercise. Each set A card grades one\n * `choice` slot whose answer is the opaque id of the set B card paired with it. The view shows every card in one\n * keyed shuffle; which cards belong together is never in it.\n */\nexport const memoryManifest: ComponentManifest = {\n tag: 'astl-memory',\n version: 1,\n display: 'block',\n graded: true,\n attributes: [],\n children: [\n /** The task. */\n { tag: 'astl-prompt', visibility: 'public', content: 'inline', min: 0, max: 1, attributes: [] },\n /**\n * A card of set A, one per pair: its `id` (local to the task) is the pair's id. At most 15 pairs, so the 30 cards\n * still fit a phone.\n */\n {\n tag: 'astl-card-a',\n visibility: 'public',\n content: 'inline',\n min: 2,\n max: 15,\n attributes: [{ name: 'id', type: 'id', visibility: 'public', required: true }],\n },\n /** A card of set B, one per pair: `pair` (private) is the id of the set A card it belongs with. */\n {\n tag: 'astl-card-b',\n visibility: 'public',\n content: 'inline',\n min: 2,\n max: 15,\n attributes: [\n { name: 'id', type: 'id', visibility: 'public', required: true },\n { name: 'pair', type: 'string', visibility: 'private', required: true },\n ],\n },\n ],\n scoring: { default: 'per-pair', modes: { 'per-pair': 'proportional', all: 'all-correct' } },\n variants: null,\n slotKinds: ['choice'],\n issues: [\n 'MEMORY_CARD_EMPTY',\n 'MEMORY_CARD_DUPLICATE',\n 'MEMORY_CARD_LINK',\n 'MEMORY_PAIR_UNKNOWN',\n 'MEMORY_PAIR_TAKEN',\n 'MEMORY_PAIR_MISSING',\n 'MEMORY_PROMPT_EMPTY',\n ],\n messages: 'astl.memory',\n a11y: {\n pattern:\n 'toggle buttons in a grid with one tab stop: the arrow keys move between the cards (Home and End: the ends of the row, Ctrl+Home and Ctrl+End: the first and the last card, PageUp and PageDown: a few rows), Space or Enter turns a card; with one card of each set face up, \"Confirm\" pairs them and \"Turn back\" turns them back; pressing a paired card undoes the pair',\n keys: [\n 'Tab',\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'Home',\n 'End',\n 'PageUp',\n 'PageDown',\n 'Space',\n 'Enter',\n ],\n },\n cssParts: ['memory', 'prompt', 'cards', 'card', 'back', 'face', 'number', 'actions', 'verdict', 'solution'],\n};\n","{\n \"ui.hint\": \"Turn one card from set A and one from set B. If they belong together, confirm the pair.\",\n \"ui.set.a\": \"A\",\n \"ui.set.b\": \"B\",\n \"ui.card\": \"Card {number}, set {set}\",\n \"ui.cardUp\": \"Card {number}, set {set}, {state}:\",\n \"ui.paired\": \"pair {number}\",\n \"ui.notPaired\": \"not paired\",\n \"ui.confirm\": \"Confirm\",\n \"ui.turnBack\": \"Turn back\",\n \"ui.solution\": \"Correct pair:\",\n \"ui.announce.turn\": \"{card}: {label}\",\n \"ui.announce.decide\": \"{card}: {label}. Do the two cards belong together? Confirm the pair, or turn the cards back.\",\n \"ui.announce.down\": \"{card} is face down again.\",\n \"ui.announce.back\": \"Both cards are face down again.\",\n \"ui.announce.pair\": \"Pair {number}: “{a}” and “{b}”. Pairs: {paired} of {total}.\",\n \"ui.announce.unpair\": \"Pair {number} undone: “{a}” and “{b}” are face down again. Pairs: {paired} of {total}.\"\n}\n","{\n \"ui.hint\": \"Odkryj jedną kartę z zestawu A i jedną z zestawu B. Jeśli pasują do siebie, potwierdź parę.\",\n \"ui.set.a\": \"A\",\n \"ui.set.b\": \"B\",\n \"ui.card\": \"Karta {number}, zestaw {set}\",\n \"ui.cardUp\": \"Karta {number}, zestaw {set}, {state}:\",\n \"ui.paired\": \"para {number}\",\n \"ui.notPaired\": \"bez pary\",\n \"ui.confirm\": \"Potwierdź\",\n \"ui.turnBack\": \"Zakryj\",\n \"ui.solution\": \"Poprawna para:\",\n \"ui.announce.turn\": \"{card}: {label}\",\n \"ui.announce.decide\": \"{card}: {label}. Czy te dwie karty pasują do siebie? Potwierdź parę albo zakryj karty.\",\n \"ui.announce.down\": \"{card} jest znowu zakryta.\",\n \"ui.announce.back\": \"Obie karty są znowu zakryte.\",\n \"ui.announce.pair\": \"Para {number}: „{a}” i „{b}”. Pary: {paired} z {total}.\",\n \"ui.announce.unpair\": \"Para {number} rozdzielona: „{a}” i „{b}” są znowu zakryte. Pary: {paired} z {total}.\"\n}\n"],"mappings":"AAQA,IAAaA,EAAoC,CAC/C,IAAK,cACL,QAAS,EACT,QAAS,QACT,OAAQ,GACR,WAAY,CAAC,EACb,SAAU,CAER,CAAE,IAAK,cAAe,WAAY,SAAU,QAAS,SAAU,IAAK,EAAG,IAAK,EAAG,WAAY,CAAC,CAAE,EAK9F,CACE,IAAK,cACL,WAAY,SACZ,QAAS,SACT,IAAK,EACL,IAAK,GACL,WAAY,CAAC,CAAE,KAAM,KAAM,KAAM,KAAM,WAAY,SAAU,SAAU,EAAK,CAAC,CAC/E,EAEA,CACE,IAAK,cACL,WAAY,SACZ,QAAS,SACT,IAAK,EACL,IAAK,GACL,WAAY,CACV,CAAE,KAAM,KAAM,KAAM,KAAM,WAAY,SAAU,SAAU,EAAK,EAC/D,CAAE,KAAM,OAAQ,KAAM,SAAU,WAAY,UAAW,SAAU,EAAK,CACxE,CACF,CACF,EACA,QAAS,CAAE,QAAS,WAAY,MAAO,CAAE,WAAY,eAAgB,IAAK,aAAc,CAAE,EAC1F,SAAU,KACV,UAAW,CAAC,QAAQ,EACpB,OAAQ,CACN,oBACA,wBACA,mBACA,sBACA,oBACA,sBACA,qBACF,EACA,SAAU,cACV,KAAM,CACJ,QACE,4WACF,KAAM,CACJ,MACA,UACA,YACA,YACA,aACA,OACA,MACA,SACA,WACA,QACA,OACF,CACF,EACA,SAAU,CAAC,SAAU,SAAU,QAAS,OAAQ,OAAQ,OAAQ,SAAU,UAAW,UAAW,UAAU,CAC5G,E"}
@@ -0,0 +1,2 @@
1
+ var e={"editor.description":`A sound to listen to, with an optional transcript.`},t={"editor.description":`Dźwięk do odsłuchania, z opcjonalną transkrypcją.`},n=`astl.audio`,ee=[{namespace:n,locale:`en`,messages:e},{namespace:n,locale:`pl`,messages:t}],r={"editor.description":`A tip, information or a warning in a box.`},te={"editor.description":`Wskazówka, informacja albo ostrzeżenie w ramce.`},i=`astl.callout`,ne=[{namespace:i,locale:`en`,messages:r},{namespace:i,locale:`pl`,messages:te}],a={"editor.description":`The student sorts cards into groups.`,"template.sort.description":`Two groups and four cards to sort`},o={"editor.description":`Uczeń przyporządkowuje karty do grup.`,"template.sort.description":`Dwie grupy i cztery karty do posortowania`},s=`astl.categorise`,c=[{namespace:s,locale:`en`,messages:a},{namespace:s,locale:`pl`,messages:o}],l={"editor.description":`The student picks one answer or several.`,"template.choice.description":`A question with three answers, one of them right`},u={"editor.description":`Uczeń wybiera jedną odpowiedź albo kilka.`,"template.choice.description":`Pytanie z trzema odpowiedziami, z których jedna jest poprawna`},d=`astl.choice`,f=[{namespace:d,locale:`en`,messages:l},{namespace:d,locale:`pl`,messages:u}],re={"editor.description":`Words that cross in a grid of squares, with numbered clues.`,"template.crossword.description":`A 5 by 5 grid, two words crossing at their first letter`},ie={"editor.description":`Hasła krzyżujące się w siatce kratek, z ponumerowanymi wskazówkami.`,"template.crossword.description":`Siatka 5 na 5, dwa hasła ze wspólną pierwszą literą`},p=`astl.crossword`,ae=[{namespace:p,locale:`en`,messages:re},{namespace:p,locale:`pl`,messages:ie}],oe={"editor.description":`The student puts a word from a word bank into the text.`},se={"editor.description":`Uczeń wstawia do tekstu słowo z banku słów.`},m=`astl.drop`,h=[{namespace:m,locale:`en`,messages:oe},{namespace:m,locale:`pl`,messages:se}],g={"editor.description":`Cards to learn from, turned over one by one.`,"editor.template.cards.description":`Four cards to learn from, two with a picture on the front`},_={"editor.description":`Karty do nauki, odwracane po kolei.`,"editor.template.cards.description":`Cztery karty do nauki, dwie z obrazkiem na przodzie`},v=`astl.flash-cards`,y=[{namespace:v,locale:`en`,messages:g},{namespace:v,locale:`pl`,messages:_}],b={"editor.description":`The student types a word or a number.`,"template.fill.description":`A sentence with two words to type in`},x={"editor.description":`Uczeń wpisuje słowo lub liczbę.`,"template.fill.description":`Zdanie z dwoma słowami do wpisania`},S=`astl.gap`,C=[{namespace:S,locale:`en`,messages:b},{namespace:S,locale:`pl`,messages:x}],w={"editor.description":`The student picks the right places on a picture.`,"template.find.description":`A picture with five places to pick, three of them right`},T={"editor.description":`Uczeń wskazuje właściwe miejsca na obrazku.`,"template.find.description":`Obrazek z pięcioma miejscami do wskazania, z których trzy są właściwe`},E=`astl.hotspot`,D=[{namespace:E,locale:`en`,messages:w},{namespace:E,locale:`pl`,messages:T}],O={"editor.description":`The student puts labels on the zones of a picture.`,"template.drag.description":`Three zones on a picture and four labels, one of them extra`},k={"editor.description":`Uczeń umieszcza podpisy w strefach obrazka.`,"template.drag.description":`Trzy strefy na obrazku i cztery podpisy, w tym jeden dodatkowy`},A=`astl.image-drop`,j=[{namespace:A,locale:`en`,messages:O},{namespace:A,locale:`pl`,messages:k}],M={"editor.description":`The student writes a name for each pin on a picture.`,"template.label.description":`Three pins to name, one of them with two accepted spellings`},N={"editor.description":`Uczeń wpisuje nazwę każdej pinezki na obrazku.`,"template.label.description":`Trzy pinezki do podpisania, jedna z dwoma przyjmowanymi zapisami`},P=`astl.image-label`,F=[{namespace:P,locale:`en`,messages:M},{namespace:P,locale:`pl`,messages:N}],I={"editor.description":`An answer in the student's own words, marked by the teacher.`,"editor.template.write.description":`A question answered in a few sentences, read by the teacher`},L={"editor.description":`Odpowiedź własnymi słowami, oceniana przez nauczyciela.`,"editor.template.write.description":`Pytanie, na które uczeń odpowiada kilkoma zdaniami, a czyta je nauczyciel`},R=`astl.long-answer`,z=[{namespace:R,locale:`en`,messages:I},{namespace:R,locale:`pl`,messages:L}],B={"editor.description":`The student highlights or crosses out words in a text.`,"template.select.description":`A sentence with three marked words, two of them correct`,"template.odd.description":`Three lines of four words, one odd word in each`},V={"editor.description":`Uczeń podkreśla albo skreśla wyrazy w tekście.`,"template.select.description":`Zdanie z trzema oznaczonymi wyrazami, dwa z nich poprawne`,"template.odd.description":`Trzy wiersze po cztery wyrazy, w każdym jeden niepasujący`},H=`astl.mark-words`,U=[{namespace:H,locale:`en`,messages:B},{namespace:H,locale:`pl`,messages:V}],W={"editor.description":`The student matches rows with columns or joins lines.`,"template.matching.description":`A grid of three animals and their homes`,"template.lines.description":`Three pairs of opposites to join with lines`},G={"editor.description":`Uczeń dopasowuje wiersze do kolumn albo łączy linie.`,"template.matching.description":`Tabela: trzy zwierzęta i ich domy`,"template.lines.description":`Trzy pary przeciwieństw do połączenia liniami`},K=`astl.match`,ce=[{namespace:K,locale:`en`,messages:W},{namespace:K,locale:`pl`,messages:G}],le={"editor.description":`The student turns two cards at a time and finds the pairs.`,"template.memory.description":`Three pairs of cards: animals and their young`},ue={"editor.description":`Uczeń odkrywa po dwie karty i szuka par.`,"template.memory.description":`Trzy pary kart: zwierzęta i ich młode`},q=`astl.memory`,de=[{namespace:q,locale:`en`,messages:le},{namespace:q,locale:`pl`,messages:ue}],fe={"editor.description":`The student puts items in the right order.`,"template.cycle.description":`Four stages of a life cycle to put in order`},pe={"editor.description":`Uczeń układa elementy we właściwej kolejności.`,"template.cycle.description":`Cztery etapy życia do ułożenia po kolei`},J=`astl.order`,me=[{namespace:J,locale:`en`,messages:fe},{namespace:J,locale:`pl`,messages:pe}],he={"editor.description":`The student picks one answer inside the text.`,"template.list.description":`A sentence with a drop-down list of three words`,"template.click.description":`Two sentences, each with words to click`},ge={"editor.description":`Uczeń wybiera jedną odpowiedź w tekście.`,"template.list.description":`Zdanie z listą rozwijaną trzech słów`,"template.click.description":`Dwa zdania, w każdym słowa do kliknięcia`},Y=`astl.select`,_e=[{namespace:Y,locale:`en`,messages:he},{namespace:Y,locale:`pl`,messages:ge}],ve={"editor.description":`The student marks each statement true or false.`,"template.tf.description":`Three statements to mark true or false`},ye={"editor.description":`Uczeń zaznacza przy każdym zdaniu prawdę albo fałsz.`,"template.tf.description":`Trzy zdania do oceny: prawda czy fałsz`},X=`astl.true-false`,be=[{namespace:X,locale:`en`,messages:ve},{namespace:X,locale:`pl`,messages:ye}],xe={"editor.description":`A video file, or a YouTube or Vimeo video.`,"editor.template.watch.description":`A video with a tip, then a sentence with a gap`},Se={"editor.description":`Plik wideo albo film z YouTube lub Vimeo.`,"editor.template.watch.description":`Film ze wskazówką, a potem zdanie z luką`},Z=`astl.video`,Ce=[{namespace:Z,locale:`en`,messages:xe},{namespace:Z,locale:`pl`,messages:Se}],we={"editor.description":`Words the student puts into the gaps of the text.`,"editor.template.dragWords.description":`A sentence with two gaps and a bank of three words, one of them extra.`},Te={"editor.description":`Słowa, które uczeń wstawia do luk w tekście.`,"editor.template.dragWords.description":`Zdanie z dwiema lukami i bankiem trzech słów, z których jedno jest zbędne.`},Q=`astl.word-bank`,Ee=[{namespace:Q,locale:`en`,messages:we},{namespace:Q,locale:`pl`,messages:Te}],De={"editor.description":`Hidden words in a grid of letters.`,"editor.template.wordSearch.description":`Three animals to find in a grid of letters`},Oe={"editor.description":`Ukryte słowa w siatce liter.`,"editor.template.wordSearch.description":`Trzy zwierzęta do znalezienia w siatce liter`},$=`astl.word-search`,ke=[{namespace:$,locale:`en`,messages:De},{namespace:$,locale:`pl`,messages:Oe}],Ae=[...ee,...ne,...c,...f,...ae,...h,...y,...C,...D,...j,...F,...z,...U,...ce,...de,...me,..._e,...be,...Ce,...Ee,...ke];export{Ae as builtInMenuMessages};
2
+ //# sourceMappingURL=menu-messages-Dx3jYUEp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-messages-Dx3jYUEp.js","names":["namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","namespace","en","pl","en","pl","en_default$20","pl_default$20","namespace$20","audioMenuMessages","en_default$19","pl_default$19","namespace$19","calloutMenuMessages","en_default$18","pl_default$18","namespace$18","categoriseMenuMessages","en_default$17","pl_default$17","namespace$17","choiceMenuMessages","en_default$16","pl_default$16","namespace$16","crosswordMenuMessages","en_default$15","pl_default$15","namespace$15","dropMenuMessages","en_default$14","pl_default$14","namespace$14","flashCardsMenuMessages","en_default$13","pl_default$13","namespace$13","gapMenuMessages","en_default$12","pl_default$12","namespace$12","hotspotMenuMessages","en_default$11","pl_default$11","namespace$11","imageDropMenuMessages","en_default$10","pl_default$10","namespace$10","imageLabelMenuMessages","en_default$9","pl_default$9","namespace$9","longAnswerMenuMessages","en_default$8","pl_default$8","namespace$8","markWordsMenuMessages","en_default$7","pl_default$7","namespace$7","matchMenuMessages","en_default$6","pl_default$6","namespace$6","memoryMenuMessages","en_default$5","pl_default$5","namespace$5","orderMenuMessages","en_default$4","pl_default$4","namespace$4","selectMenuMessages","en_default$3","pl_default$3","namespace$3","trueFalseMenuMessages","en_default$2","pl_default$2","namespace$2","videoMenuMessages","en_default$1","pl_default$1","namespace$1","wordBankMenuMessages","en_default","pl_default","namespace","wordSearchMenuMessages","builtInMenuMessages"],"sources":["../../../../components/src/audio/messages/menu/en.json","../../../../components/src/audio/messages/menu/pl.json","../../../../components/src/audio/menu-messages.ts","../../../../components/src/callout/messages/menu/en.json","../../../../components/src/callout/messages/menu/pl.json","../../../../components/src/callout/menu-messages.ts","../../../../components/src/categorise/messages/menu/en.json","../../../../components/src/categorise/messages/menu/pl.json","../../../../components/src/categorise/menu-messages.ts","../../../../components/src/choice/messages/menu/en.json","../../../../components/src/choice/messages/menu/pl.json","../../../../components/src/choice/menu-messages.ts","../../../../components/src/crossword/messages/menu/en.json","../../../../components/src/crossword/messages/menu/pl.json","../../../../components/src/crossword/menu-messages.ts","../../../../components/src/drop/messages/menu/en.json","../../../../components/src/drop/messages/menu/pl.json","../../../../components/src/drop/menu-messages.ts","../../../../components/src/flash-cards/messages/menu/en.json","../../../../components/src/flash-cards/messages/menu/pl.json","../../../../components/src/flash-cards/menu-messages.ts","../../../../components/src/gap/messages/menu/en.json","../../../../components/src/gap/messages/menu/pl.json","../../../../components/src/gap/menu-messages.ts","../../../../components/src/hotspot/messages/menu/en.json","../../../../components/src/hotspot/messages/menu/pl.json","../../../../components/src/hotspot/menu-messages.ts","../../../../components/src/image-drop/messages/menu/en.json","../../../../components/src/image-drop/messages/menu/pl.json","../../../../components/src/image-drop/menu-messages.ts","../../../../components/src/image-label/messages/menu/en.json","../../../../components/src/image-label/messages/menu/pl.json","../../../../components/src/image-label/menu-messages.ts","../../../../components/src/long-answer/messages/menu/en.json","../../../../components/src/long-answer/messages/menu/pl.json","../../../../components/src/long-answer/menu-messages.ts","../../../../components/src/mark-words/messages/menu/en.json","../../../../components/src/mark-words/messages/menu/pl.json","../../../../components/src/mark-words/menu-messages.ts","../../../../components/src/match/messages/menu/en.json","../../../../components/src/match/messages/menu/pl.json","../../../../components/src/match/menu-messages.ts","../../../../components/src/memory/messages/menu/en.json","../../../../components/src/memory/messages/menu/pl.json","../../../../components/src/memory/menu-messages.ts","../../../../components/src/order/messages/menu/en.json","../../../../components/src/order/messages/menu/pl.json","../../../../components/src/order/menu-messages.ts","../../../../components/src/select/messages/menu/en.json","../../../../components/src/select/messages/menu/pl.json","../../../../components/src/select/menu-messages.ts","../../../../components/src/true-false/messages/menu/en.json","../../../../components/src/true-false/messages/menu/pl.json","../../../../components/src/true-false/menu-messages.ts","../../../../components/src/video/messages/menu/en.json","../../../../components/src/video/messages/menu/pl.json","../../../../components/src/video/menu-messages.ts","../../../../components/src/word-bank/messages/menu/en.json","../../../../components/src/word-bank/messages/menu/pl.json","../../../../components/src/word-bank/menu-messages.ts","../../../../components/src/word-search/messages/menu/en.json","../../../../components/src/word-search/messages/menu/pl.json","../../../../components/src/word-search/menu-messages.ts","../../../../components/src/menu-messages.ts"],"sourcesContent":["{\n \"editor.description\": \"A sound to listen to, with an optional transcript.\"\n}\n","{\n \"editor.description\": \"Dźwięk do odsłuchania, z opcjonalną transkrypcją.\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.audio';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const audioMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"A tip, information or a warning in a box.\"\n}\n","{\n \"editor.description\": \"Wskazówka, informacja albo ostrzeżenie w ramce.\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.callout';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const calloutMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student sorts cards into groups.\",\n \"template.sort.description\": \"Two groups and four cards to sort\"\n}\n","{\n \"editor.description\": \"Uczeń przyporządkowuje karty do grup.\",\n \"template.sort.description\": \"Dwie grupy i cztery karty do posortowania\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.categorise';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const categoriseMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student picks one answer or several.\",\n \"template.choice.description\": \"A question with three answers, one of them right\"\n}\n","{\n \"editor.description\": \"Uczeń wybiera jedną odpowiedź albo kilka.\",\n \"template.choice.description\": \"Pytanie z trzema odpowiedziami, z których jedna jest poprawna\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.choice';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const choiceMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"Words that cross in a grid of squares, with numbered clues.\",\n \"template.crossword.description\": \"A 5 by 5 grid, two words crossing at their first letter\"\n}\n","{\n \"editor.description\": \"Hasła krzyżujące się w siatce kratek, z ponumerowanymi wskazówkami.\",\n \"template.crossword.description\": \"Siatka 5 na 5, dwa hasła ze wspólną pierwszą literą\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.crossword';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const crosswordMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student puts a word from a word bank into the text.\"\n}\n","{\n \"editor.description\": \"Uczeń wstawia do tekstu słowo z banku słów.\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.drop';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const dropMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"Cards to learn from, turned over one by one.\",\n \"editor.template.cards.description\": \"Four cards to learn from, two with a picture on the front\"\n}\n","{\n \"editor.description\": \"Karty do nauki, odwracane po kolei.\",\n \"editor.template.cards.description\": \"Cztery karty do nauki, dwie z obrazkiem na przodzie\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.flash-cards';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const flashCardsMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student types a word or a number.\",\n \"template.fill.description\": \"A sentence with two words to type in\"\n}\n","{\n \"editor.description\": \"Uczeń wpisuje słowo lub liczbę.\",\n \"template.fill.description\": \"Zdanie z dwoma słowami do wpisania\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.gap';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const gapMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student picks the right places on a picture.\",\n \"template.find.description\": \"A picture with five places to pick, three of them right\"\n}\n","{\n \"editor.description\": \"Uczeń wskazuje właściwe miejsca na obrazku.\",\n \"template.find.description\": \"Obrazek z pięcioma miejscami do wskazania, z których trzy są właściwe\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.hotspot';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const hotspotMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student puts labels on the zones of a picture.\",\n \"template.drag.description\": \"Three zones on a picture and four labels, one of them extra\"\n}\n","{\n \"editor.description\": \"Uczeń umieszcza podpisy w strefach obrazka.\",\n \"template.drag.description\": \"Trzy strefy na obrazku i cztery podpisy, w tym jeden dodatkowy\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.image-drop';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const imageDropMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student writes a name for each pin on a picture.\",\n \"template.label.description\": \"Three pins to name, one of them with two accepted spellings\"\n}\n","{\n \"editor.description\": \"Uczeń wpisuje nazwę każdej pinezki na obrazku.\",\n \"template.label.description\": \"Trzy pinezki do podpisania, jedna z dwoma przyjmowanymi zapisami\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.image-label';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const imageLabelMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"An answer in the student's own words, marked by the teacher.\",\n \"editor.template.write.description\": \"A question answered in a few sentences, read by the teacher\"\n}\n","{\n \"editor.description\": \"Odpowiedź własnymi słowami, oceniana przez nauczyciela.\",\n \"editor.template.write.description\": \"Pytanie, na które uczeń odpowiada kilkoma zdaniami, a czyta je nauczyciel\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.long-answer';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const longAnswerMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student highlights or crosses out words in a text.\",\n \"template.select.description\": \"A sentence with three marked words, two of them correct\",\n \"template.odd.description\": \"Three lines of four words, one odd word in each\"\n}\n","{\n \"editor.description\": \"Uczeń podkreśla albo skreśla wyrazy w tekście.\",\n \"template.select.description\": \"Zdanie z trzema oznaczonymi wyrazami, dwa z nich poprawne\",\n \"template.odd.description\": \"Trzy wiersze po cztery wyrazy, w każdym jeden niepasujący\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.mark-words';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const markWordsMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student matches rows with columns or joins lines.\",\n \"template.matching.description\": \"A grid of three animals and their homes\",\n \"template.lines.description\": \"Three pairs of opposites to join with lines\"\n}\n","{\n \"editor.description\": \"Uczeń dopasowuje wiersze do kolumn albo łączy linie.\",\n \"template.matching.description\": \"Tabela: trzy zwierzęta i ich domy\",\n \"template.lines.description\": \"Trzy pary przeciwieństw do połączenia liniami\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.match';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const matchMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student turns two cards at a time and finds the pairs.\",\n \"template.memory.description\": \"Three pairs of cards: animals and their young\"\n}\n","{\n \"editor.description\": \"Uczeń odkrywa po dwie karty i szuka par.\",\n \"template.memory.description\": \"Trzy pary kart: zwierzęta i ich młode\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.memory';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const memoryMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student puts items in the right order.\",\n \"template.cycle.description\": \"Four stages of a life cycle to put in order\"\n}\n","{\n \"editor.description\": \"Uczeń układa elementy we właściwej kolejności.\",\n \"template.cycle.description\": \"Cztery etapy życia do ułożenia po kolei\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.order';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const orderMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student picks one answer inside the text.\",\n \"template.list.description\": \"A sentence with a drop-down list of three words\",\n \"template.click.description\": \"Two sentences, each with words to click\"\n}\n","{\n \"editor.description\": \"Uczeń wybiera jedną odpowiedź w tekście.\",\n \"template.list.description\": \"Zdanie z listą rozwijaną trzech słów\",\n \"template.click.description\": \"Dwa zdania, w każdym słowa do kliknięcia\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.select';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const selectMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"The student marks each statement true or false.\",\n \"template.tf.description\": \"Three statements to mark true or false\"\n}\n","{\n \"editor.description\": \"Uczeń zaznacza przy każdym zdaniu prawdę albo fałsz.\",\n \"template.tf.description\": \"Trzy zdania do oceny: prawda czy fałsz\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.true-false';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const trueFalseMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"A video file, or a YouTube or Vimeo video.\",\n \"editor.template.watch.description\": \"A video with a tip, then a sentence with a gap\"\n}\n","{\n \"editor.description\": \"Plik wideo albo film z YouTube lub Vimeo.\",\n \"editor.template.watch.description\": \"Film ze wskazówką, a potem zdanie z luką\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.video';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const videoMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"Words the student puts into the gaps of the text.\",\n \"editor.template.dragWords.description\": \"A sentence with two gaps and a bank of three words, one of them extra.\"\n}\n","{\n \"editor.description\": \"Słowa, które uczeń wstawia do luk w tekście.\",\n \"editor.template.dragWords.description\": \"Zdanie z dwiema lukami i bankiem trzech słów, z których jedno jest zbędne.\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.word-bank';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const wordBankMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","{\n \"editor.description\": \"Hidden words in a grid of letters.\",\n \"editor.template.wordSearch.description\": \"Three animals to find in a grid of letters\"\n}\n","{\n \"editor.description\": \"Ukryte słowa w siatce liter.\",\n \"editor.template.wordSearch.description\": \"Trzy zwierzęta do znalezienia w siatce liter\"\n}\n","import type { MessageCatalog } from '@astl/core';\nimport en from './messages/menu/en.json' with { type: 'json' };\nimport pl from './messages/menu/pl.json' with { type: 'json' };\n\nconst namespace = 'astl.word-search';\n\n/**\n * The insert menus' one-line descriptions: a module of their own, in `builtInMenuMessages`, which editors load when a\n * menu first opens (the `menuMessages` option), so their first load goes without them.\n */\nexport const wordSearchMenuMessages: readonly MessageCatalog[] = [\n { namespace, locale: 'en', messages: en },\n { namespace, locale: 'pl', messages: pl },\n];\n","/**\n * The built-in types' insert menu descriptions (each type's `menu-messages.ts`), for the editors' `menuMessages`\n * option: `menuMessages: async () => (await import('@astl/components/menu-messages')).builtInMenuMessages` keeps them\n * out of an editor's first load until a menu opens.\n */\nimport type { MessageCatalog } from '@astl/core';\nimport { audioMenuMessages } from './audio/menu-messages.js';\nimport { calloutMenuMessages } from './callout/menu-messages.js';\nimport { categoriseMenuMessages } from './categorise/menu-messages.js';\nimport { choiceMenuMessages } from './choice/menu-messages.js';\nimport { crosswordMenuMessages } from './crossword/menu-messages.js';\nimport { dropMenuMessages } from './drop/menu-messages.js';\nimport { flashCardsMenuMessages } from './flash-cards/menu-messages.js';\nimport { gapMenuMessages } from './gap/menu-messages.js';\nimport { hotspotMenuMessages } from './hotspot/menu-messages.js';\nimport { imageDropMenuMessages } from './image-drop/menu-messages.js';\nimport { imageLabelMenuMessages } from './image-label/menu-messages.js';\nimport { longAnswerMenuMessages } from './long-answer/menu-messages.js';\nimport { markWordsMenuMessages } from './mark-words/menu-messages.js';\nimport { matchMenuMessages } from './match/menu-messages.js';\nimport { memoryMenuMessages } from './memory/menu-messages.js';\nimport { orderMenuMessages } from './order/menu-messages.js';\nimport { selectMenuMessages } from './select/menu-messages.js';\nimport { trueFalseMenuMessages } from './true-false/menu-messages.js';\nimport { videoMenuMessages } from './video/menu-messages.js';\nimport { wordBankMenuMessages } from './word-bank/menu-messages.js';\nimport { wordSearchMenuMessages } from './word-search/menu-messages.js';\n\nexport const builtInMenuMessages: readonly MessageCatalog[] = [\n ...audioMenuMessages,\n ...calloutMenuMessages,\n ...categoriseMenuMessages,\n ...choiceMenuMessages,\n ...crosswordMenuMessages,\n ...dropMenuMessages,\n ...flashCardsMenuMessages,\n ...gapMenuMessages,\n ...hotspotMenuMessages,\n ...imageDropMenuMessages,\n ...imageLabelMenuMessages,\n ...longAnswerMenuMessages,\n ...markWordsMenuMessages,\n ...matchMenuMessages,\n ...memoryMenuMessages,\n ...orderMenuMessages,\n ...selectMenuMessages,\n ...trueFalseMenuMessages,\n ...videoMenuMessages,\n ...wordBankMenuMessages,\n ...wordSearchMenuMessages,\n];\n"],"mappings":"A,+JEIMA,EAAY,aAMLiE,GAA+C,CAC1D,CAAE,UAAAD,EAAW,OAAQ,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