{"version":3,"sources":["webpack:///./src/pages/manage/crm/clients/id.vue","webpack:///./src/pages/manage/crm/clients/id.vue?d7a1","webpack:///./src/pages/manage/crm/clients/id.vue?545d","webpack:///./src/pages/manage/crm/clients/id.vue?3db6","webpack:///./src/pages/manage/crm/clients/id.vue?3c41"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","caption","dataSource","breadcrumbs","scopedSlots","_u","key","fn","_v","phoneFields","phonelModel","phoneDataSource","staticClass","proxy","item","_s","emailFields","emailModel","emailDataSource","staticRenderFns","Home","Vue","constructor","ObjectDataSource","id","$route","params","config","className","ListDataSource","filter","JSON","stringify","Filter","clientId","phone","description","email","editor","outlined","label","name","validations","required","emailAddres","mask","min","_this$dataSource$mode","model","_this$dataSource$mode2","text","to","exact","disabled","__decorate","Component","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQL,EAAIM,QAAQ,cAAcN,EAAIO,WAAW,YAAcP,EAAIQ,aAAaC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,OAAOC,GAAG,WAAW,MAAO,CAACV,EAAG,KAAK,CAACF,EAAIa,GAAG,cAAcX,EAAG,YAAY,CAACG,MAAM,CAAC,4BAA4BL,EAAIc,YAAY,2BAA2Bd,EAAIe,YAAY,cAAcf,EAAIgB,iBAAiBP,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,iBAAiBC,GAAG,WAAW,MAAO,CAACV,EAAG,MAAM,CAACe,YAAY,WAAWC,OAAM,GAAM,CAACP,IAAI,UAAUC,GAAG,UAAS,KAAEO,IAAQ,MAAO,CAACnB,EAAIa,GAAG,IAAIb,EAAIoB,GAAGD,EAAKb,SAAS,YAAYJ,EAAG,KAAK,CAACF,EAAIa,GAAG,uBAAuBX,EAAG,YAAY,CAACG,MAAM,CAAC,4BAA4BL,EAA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AhC,YAAmB,CACjB,CACE6B,OAAQ,SACRtC,MAAO,CACLuC,UAAU,EACVC,MAAO,aAETC,KAAM,UACNC,YAAa,CAACC,mBAEhB,CACEL,OAAQ,SACRtC,MAAO,CACLwC,MAAO,iBACPD,UAAU,EACVM,KAAM,qBAERJ,KAAM,QACNC,YAAa,CAACC,iBAAYG,eAAI,MAEhC,CACER,OAAQ,OACRtC,MAAO,CACLuC,UAAU,EACVC,MAAO,YAETC,KAAM,gBA7EV,cAAW,IAAAM,EACT,OAA4B,QAA5BA,EAAOnD,KAAKM,WAAW8C,aAAK,IAAAD,OAAA,EAArBA,EAAuBN,KAGhC,kBAAe,IAAAQ,EACb,MAAO,CACL,CACEC,KAAM,UACNC,GAAI,KAEN,CACED,KAAM,UACNC,GAAI,mBACJC,OAAO,GAET,CACEF,KAA2B,QAAvBD,EAAErD,KAAKM,WAAW8C,aAAK,IAAAC,OAAA,EAArBA,EAAuBR,KAC7BY,UAAU,MApDGjC,EAAIkC,eAAA,CADxBC,QACoBnC,WCT6Z,I,wBCQ9aoC,EAAY,eACd,EACA9D,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E,2CCnBf,W","file":"js/chunk-26cff57f.31761428.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('data-item',{attrs:{\"title\":_vm.caption,\"data-source\":_vm.dataSource,\"breadcrumbs\":_vm.breadcrumbs},scopedSlots:_vm._u([{key:\"body\",fn:function(){return [_c('h1',[_vm._v(\"Телефоны\")]),_c('data-list',{attrs:{\"custom-create-item-fields\":_vm.phoneFields,\"custom-create-item-model\":_vm.phonelModel,\"data-source\":_vm.phoneDataSource},scopedSlots:_vm._u([{key:\"filter-section\",fn:function(){return [_c('div',{staticClass:\"mb-3\"})]},proxy:true},{key:\"caption\",fn:function({ item }){return [_vm._v(\" \"+_vm._s(item.caption)+\" \")]}}])}),_c('h1',[_vm._v(\"Электронные почты\")]),_c('data-list',{attrs:{\"custom-create-item-fields\":_vm.emailFields,\"custom-create-item-model\":_vm.emailModel,\"data-source\":_vm.emailDataSource},scopedSlots:_vm._u([{key:\"filter-section\",fn:function(){return [_c('div',{staticClass:\"mb-3\"})]},proxy:true},{key:\"caption\",fn:function({ item }){return [_vm._v(\" \"+_vm._s(item.caption)+\" \")]}}])})]},proxy:true}])})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Vue, Component } from \"vue-property-decorator\";\nimport { ObjectDataSource } from \"@/data/Object/ObjecDatatSource\";\nimport { ListDataSource } from \"@/data/List/ListDataSource\";\nimport { emailAddres, required } from \"@/cms-services/consts\";\nimport { min } from \"@/cms-services/consts\";\nimport { Filter } from \"@/cms-services/filter\";\n\n@Component\nexport default class Home extends Vue {\n dataSource: ObjectDataSource = new ObjectDataSource({\n id: +this.$route.params.id,\n config: {},\n className: \"client\",\n });\n\n phoneDataSource: ListDataSource = new ListDataSource({\n className: \"clientPhone\",\n config: {\n filter: JSON.stringify([new Filter(\"clientId\", +this.$route.params.id)]),\n },\n });\n\n emailDataSource: ListDataSource = new ListDataSource({\n className: \"clientEmail\",\n config: {\n filter: JSON.stringify([new Filter(\"clientId\", +this.$route.params.id)]),\n },\n });\n\n phonelModel: any = {\n clientId: +this.$route.params.id,\n caption: \"\",\n phone: \"\",\n description: \"\",\n };\n\n emailModel: any = {\n clientId: +this.$route.params.id,\n caption: \"\",\n email: \"\",\n description: \"\",\n };\n\n get caption() {\n return this.dataSource.model?.name;\n }\n\n get breadcrumbs() {\n return [\n {\n text: \"Главная\",\n to: \"/\",\n },\n {\n text: \"Клиенты\",\n to: \"/manage/clients/\",\n exact: true,\n },\n {\n text: this.dataSource.model?.name,\n disabled: true,\n },\n ];\n }\n\n emailFields: any = [\n {\n editor: \"string\",\n attrs: {\n outlined: true,\n label: \"Заголовок\",\n },\n name: \"caption\",\n validations: [required()],\n },\n {\n editor: \"string\",\n attrs: {\n outlined: true,\n label: \"Email\",\n },\n name: \"email\",\n validations: [required(), emailAddres()],\n },\n {\n editor: \"memo\",\n attrs: {\n outlined: true,\n label: \"Описание\",\n },\n name: \"description\",\n },\n ];\n\n phoneFields: any = [\n {\n editor: \"string\",\n attrs: {\n outlined: true,\n label: \"Заголовок\",\n },\n name: \"caption\",\n validations: [required()],\n },\n {\n editor: \"string\",\n attrs: {\n label: \"Номер телефона\",\n outlined: true,\n mask: \"+7(###) ###-##-##\",\n },\n name: \"phone\",\n validations: [required(), min(15)],\n },\n {\n editor: \"memo\",\n attrs: {\n outlined: true,\n label: \"Описание\",\n },\n name: \"description\",\n },\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!./id.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!./id.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./id.vue?vue&type=template&id=0d0d1562\"\nimport script from \"./id.vue?vue&type=script&lang=ts\"\nexport * from \"./id.vue?vue&type=script&lang=ts\"\nimport style0 from \"./id.vue?vue&type=style&index=0&id=0d0d1562&prod&lang=scss\"\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","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./id.vue?vue&type=style&index=0&id=0d0d1562&prod&lang=scss\""],"sourceRoot":""}