{"version":3,"sources":["webpack:///./src/pages/manage/events/zones/registrations/index.vue","webpack:///./src/pages/manage/events/zones/registrations/index.vue?ba4e","webpack:///./src/pages/manage/events/zones/registrations/index.vue?33ac","webpack:///./src/pages/manage/events/zones/registrations/index.vue?6732"],"names":["_setup","_vm","attrs","scopedSlots","key","_c","on","_v","fn","loaded","render","staticRenderFns","EventList","Vue","constructor","icons","plus","mdiPlus","headers","text","value","sortable","userProfileDataSource","ListDataSource","className","config","pageIndex","pageSize","fields","editor","type","outlined","label","noDataText","name","getItems","labelKeyName","valueKeyName","eventObjectDataSource","ObjectDataSource","id","this","$route","params","eventId","actions","getUserProfiles","items","model","userProfileId","dataSource","filter","Filter","toFilterString","_this$eventObjectData","to","exact","caption","disabled","get","update","add","$message","__decorate","Ref","Component","components","DataEditorDialog","component"],"mappings":"mJAA4DA,EAAOC,WAAsB,MAAU,KAAuBC,EAAK,EAAC,SAAC,QAAgB,Y,OAAa,QAAQ,gB,MAA6B,CAA8B,2BAAuC,mCAA6B,0BAACC,4BAAoB,SAACC,cAAS,c,YAAuBC,EAAG,K,IAASH,M,oBAAyB,WAACI,MAAG,CAAC,MAAQL,WAAS,GAAI,CAAWC,MAAM,QAAU,WAAE,MAAMK,CAA+D,UAAa,6DAAgBC,OAAG,G,CAAgB,IAAE,W,GAAC,UAAYD,KAA8C,IAAQN,MAAIQ,CAAM,EAAEJ,GAAG,uBAAqB,sBAAqB,SAAQ,uBAA4B,C,IAAC,S,MAAoB,CAAqB,mCAAG,OAAU,EAAG,OACvwB,qBAGD,EAASK,MAAQC,I,yFCMjB,IAAqBC,EAArB,cAAuCC,OAAvCC,c,oBAEE,KAAAC,MAAa,CACXC,KAAMC,SAGR,KAAAC,QAAe,CACb,CACEC,KAAM,KACNC,MAAO,KACPC,UAAU,GAEZ,CACEF,KAAM,gBACNC,MAAO,aACPC,UAAU,GAEZ,CACEF,KAAM,MACNC,MAAO,WACPC,UAAU,GAEZ,CACEF,KAAM,SACNC,MAAO,kBACP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,CAH7BE,eAAU,CACTC,WAAY,CAAEC,4BAEKvD,WCVkb,I,YCOncwD,EAAY,eACd,EACA,EACAzD,GACA,EACA,KACA,KACA,MAIa,aAAAyD,E","file":"js/chunk-2d208328.8465c6b9.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('data-list',{attrs:{\"custom-headers\":_vm.headers,\"title\":\"Регистрация на мероприятия\",\"breadcrumbs\":_vm.breadcrumbs,\"custom-create-item-fields\":_vm.fields,\"data-source\":_vm.dataSource},scopedSlots:_vm._u([{key:\"add\",fn:function(){return [_c('v-btn',{attrs:{\"color\":\"primary\"},on:{\"click\":_vm.add}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.icons.plus)+\" \")]),_vm._v(\" Добавить \")],1)]},proxy:true},{key:\"fullName\",fn:function({ item }){return [_vm._v(\" \"+_vm._s(item.userProfile.fullName)+\" \")]}}])}),(_vm.loaded)?_c('data-editor-dialog',{ref:\"editor\",attrs:{\"title\":\"Добавить новую регистрацию\",\"fields\":_vm.fields,\"actions\":_vm.actions}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Vue, Component, Ref } from \"vue-property-decorator\";\nimport { ListDataSource } from \"@/data/List/ListDataSource\";\nimport DataEditorDialog from \"@/components/helpers/data/editor-dialog.vue\";\nimport { mdiPlus } from \"@mdi/js\";\nimport { ObjectDataSource } from \"@/data/Object/ObjecDatatSource\";\nimport { Filter } from \"@/cms-services/filter\";\n@Component({\n components: { DataEditorDialog },\n})\nexport default class EventList extends Vue {\n @Ref(\"editor\") editor!: DataEditorDialog;\n icons: any = {\n plus: mdiPlus,\n };\n\n headers: any = [\n {\n text: \"ID\",\n value: \"id\",\n sortable: true,\n },\n {\n text: \"Дата создания\",\n value: \"createDate\",\n sortable: true,\n },\n {\n text: \"ФИО\",\n value: \"fullName\",\n sortable: true,\n },\n {\n text: \"Статус\",\n value: \"instanceStateId\",\n sortable: false,\n },\n ];\n\n userProfileDataSource: ListDataSource = new ListDataSource({\n className: \"userProfile\",\n config: {\n pageIndex: 1,\n pageSize: 3000,\n },\n });\n\n fields: any = [\n {\n editor: \"auto-complete-select\",\n attrs: {\n type: \"text\",\n outlined: true,\n label: \"Выберите пользователя\",\n noDataText: \"Данные не найдены\",\n },\n name: \"userProfileId\",\n config: {\n getItems: \"getUserProfiles\",\n labelKeyName: \"fullName\",\n valueKeyName: \"id\",\n type: \"select\",\n },\n },\n ];\n\n eventObjectDataSource = new ObjectDataSource({\n id: +this.$route.params.eventId,\n config: {},\n className: \"event\",\n });\n\n actions: any = {\n getUserProfiles: () => this.userProfileDataSource.items,\n };\n\n model: any = {\n eventId: +this.$route.params.eventId,\n userProfileId: null,\n };\n\n dataSource: any = new ListDataSource({\n config: {\n pageIndex: 1,\n pageSize: 15,\n filter: [\n new Filter(\"eventId\", +this.$route.params.eventId),\n ].toFilterString(),\n },\n className: \"EventRegistration\",\n });\n loaded: boolean = false;\n $message: any;\n\n get breadcrumbs() {\n return [\n {\n text: \"Главная\",\n to: \"/\",\n },\n {\n text: \"События\",\n to: \"/manage/events/\",\n exact: true,\n },\n {\n text: this.eventObjectDataSource.model?.caption,\n to: `/manage/events/${this.$route.params.eventId}`,\n exact: true,\n },\n {\n text: \"Регистрация\",\n disabled: true,\n },\n ];\n }\n\n async created() {\n await this.eventObjectDataSource.get();\n await this.userProfileDataSource.get();\n this.loaded = true;\n }\n\n async add() {\n const model: any = await this.editor.update(this.model);\n if (!model) return;\n\n await this.dataSource.add(model);\n this.$message(\"Успешно добавлено\");\n }\n}\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=25e0bdac\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}