PageSourceSearch

https://loughs-agency.org/build/assets/Anagram-e5326fe7.js

js loughs-agency.org collected 2026-10-01 11:56:43 UTC 2,446 bytes, 1 lines download raw bytes

1import y from"./AnagramDrag-017470f4.js";import w from"./AnagramInput-9e8e0836.js";import{u as A,B as q,C as k,i as _,z as S,c as U,x as L,D as M,y as p,o as i,e as d,F as m,a as g,g as f,d as t,t as l}from"./app-fb54e4c5.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";import"./TextInput-3b872b57.js";function C(n){return q()?(k(n),!0):!1}function D(n){return typeof n=="function"?n():A(n)}const B=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E=B?window:void 0;function x(){const n=_(!1),o=M();return o&&L(()=>{n.value=!0},o),n}function I(n){const o=x();return U(()=>(o.value,!!n()))}function W(n,o={}){const{window:e=E}=o,s=I(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let a;const u=_(!1),r=v=>{u.value=v.matches},c=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},h=S(()=>{s.value&&(c(),a=e.matchMedia(D(n)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),u.value=a.matches)});return C(()=>{h(),c(),a=void 0}),u}const O={props:{question:{type:Object,required:!1},result:{type:Object,required:!1}},emits:["anagramUpdated"],components:{AnagramDrag:y,AnagramInput:w},setup(n,{emit:o}){return{isLargeScreen:W("(min-width: 768px)"),anagramUpdated:a=>{o("anagramUpdated",{questionId:n.question.id,answer:a})}}}},V=t("p",{class:"question__caption"},"Rearrange the word and reveal the hidden combination.",-1),j={class:"question__title"},F={class:"results"},G=t("p",null,[t("b",null,"Your Answer:")],-1),N={key:0},Q=t("p",null,[t("b",null,"Correct Answer:")],-1),z={class:"marks"};function R(n,o,e,s,a,u){const r=p("AnagramDrag"),c=p("AnagramInput");return i(),d(m,null,[V,e.question?(i(),d(m,{key:0},[s.isLargeScreen?(i(),g(r,{key:0,question:e.question,onAnagramUpdated:s.anagramUpdated},null,8,["question","onAnagramUpdated"])):(i(),g(c,{key:1,question:e.question,onAnagramUpdated:s.anagramUpdated},null,8,["question","onAnagramUpdated"]))],64)):f("",!0),e.result?(i(),d(m,{key:1},[t("div",j,[t("h4",null,l(e.result.question),1)]),t("div",F,[t("div",null,[G,t("ul",null,[t("li",null,l(e.result.userAnswer??"--"),1)])]),e.result.isCorrect?f("",!0):(i(),d("div",N,[Q,t("ul",null,[t("li",null,l(e.result.correctAnswer),1)])]))]),t("div",z,[t("p",null,"Marks Awarded: "+l(e.result.score===-1?"0":e.result.score),1)])],64)):f("",!0)],64)}const P=b(O,[["render",R]]);export{P as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.