{"version":3,"file":"quizzes_documents_mixin-DoFgwDxN.js","sources":["../../../app/javascript/components/quiz/documents/quizzes_documents_mixin.js"],"sourcesContent":["import { mapGetters } from \"vuex\"\n\nexport default {\n computed: {\n ...mapGetters([\"quizzesDocumentsByQuizId\"]),\n documents() {\n return this.quizzesDocumentsByQuizId(this.quiz?.id)\n },\n documentsByElement() { return (element) => {\n return this.documents.filter( d => {\n\n return this.element?.attributes?.document_uuids &&\n this.element?.attributes?.document_uuids.includes(d.uuid)\n })\n }\n },\n\n },\n}\n"],"names":["quizzesDocumentsMixin","__spreadProps","__spreadValues","mapGetters","_a","element","d","_b","_d","_c"],"mappings":"s1BAEA,MAAeA,EAAA,CACb,SAAUC,EAAAC,EAAA,GACLC,EAAW,CAAC,0BAA0B,CAAC,GADlC,CAER,WAAY,OACV,OAAO,KAAK,0BAAyBC,EAAA,KAAK,OAAL,YAAAA,EAAW,EAAE,CACnD,EACD,oBAAqB,CAAE,OAAQC,GACrB,KAAK,UAAU,OAAQC,GAAK,aAElC,QAAOC,GAAAH,EAAA,KAAK,UAAL,YAAAA,EAAc,aAAd,YAAAG,EAA0B,mBACxBC,GAAAC,EAAA,KAAK,UAAL,YAAAA,EAAc,aAAd,YAAAD,EAA0B,eAAe,SAASF,EAAE,MAC9D,CAAA,CAEF,CAEF,EACH"}