{"version":3,"file":"EventEmitter-BMEcMKxX.js","sources":["../../../node_modules/mitt/dist/mitt.mjs","../../../Frontend/vue/services/EventEmitter.ts"],"sourcesContent":["export default function(n){return{all:n=n||new Map,on:function(t,e){var i=n.get(t);i?i.push(e):n.set(t,[e])},off:function(t,e){var i=n.get(t);i&&(e?i.splice(i.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var i=n.get(t);i&&i.slice().map(function(n){n(e)}),(i=n.get(\"*\"))&&i.slice().map(function(n){n(t,e)})}}}\n//# sourceMappingURL=mitt.mjs.map\n","import {IFilter, IFilterItem} from '@/view-models/IFilter';\r\nimport mitt from 'mitt'\r\nimport {IExtraPerson} from \"@/components/EducationEnroll/IExtraPerson\";\r\nexport const emitter = mitt<{\r\n    filterChangedEvent: FilterChangedEvent;\r\n    filterRemovedEvent: FilterRemovedEvent;\r\n    personChangedEvent: PersonChangedEvent;\r\n    updateFiltersEvent: any;\r\n}>();\r\n\r\nexport type FilterChangedEvent = {\r\n    filter: IFilter;\r\n}\r\n\r\nexport type FilterRemovedEvent = {\r\n    filterItem: IFilterItem;\r\n}\r\n\r\nexport type PersonChangedEvent = {\r\n    person: IExtraPerson;\r\n}\r\n\r\nexport enum EventConstants {\r\n    FilterChangedEvent = \"filterChangedEvent\",\r\n    FilterRemovedEvent = \"filterRemovedEvent\",\r\n    UpdateFiltersEvent = \"updateFiltersEvent\",\r\n    PersonChangedEvent = \"personChangedEvent\",\r\n}"],"names":["n","EventConstants"],"mappings":"AAAe,SAAA,KAAS,GAAE;AAAC,SAAM,EAAC,KAAI,IAAE,KAAG,oBAAI,OAAI,IAAG,SAAS,GAAE,GAAE;AAAC,QAAI,IAAE,EAAE,IAAI,CAAC;AAAE,QAAE,EAAE,KAAK,CAAC,IAAE,EAAE,IAAI,GAAE,CAAC,CAAC,CAAC;AAAA,EAAC,GAAE,KAAI,SAAS,GAAE,GAAE;AAAC,QAAI,IAAE,EAAE,IAAI,CAAC;AAAE,UAAI,IAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAI,GAAE,CAAC,IAAE,EAAE,IAAI,GAAE,EAAE;AAAA,EAAE,GAAE,MAAK,SAAS,GAAE,GAAE;AAAC,QAAI,IAAE,EAAE,IAAI,CAAC;AAAE,SAAG,EAAE,QAAQ,IAAI,SAASA,IAAE;AAAC,MAAAA,GAAE,CAAC;AAAA,IAAC,CAAC,IAAG,IAAE,EAAE,IAAI,GAAG,MAAI,EAAE,MAAO,EAAC,IAAI,SAASA,IAAE;AAAC,MAAAA,GAAE,GAAE,CAAC;AAAA,IAAC,CAAC;AAAA,EAAC,EAAC;AAAC;ACGlT,MAAM,UAAU,KAKpB;AAcS,IAAA,mCAAAC,oBAAL;AACHA,kBAAA,oBAAqB,IAAA;AACrBA,kBAAA,oBAAqB,IAAA;AACrBA,kBAAA,oBAAqB,IAAA;AACrBA,kBAAA,oBAAqB,IAAA;AAJbA,SAAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;","x_google_ignoreList":[0]}