{"version":3,"sources":["webpack:///./src/layout/components/DialogMail.vue?dffd","webpack:///./src/layout/components/DialogMail.vue?3ab8","webpack:///./src/layout/components/DialogMail.vue","webpack:///./src/layout/components/DialogMail.vue?0a5f","webpack:///./src/layout/components/DialogMail.vue?7b91","webpack:///./src/layout/model/SendMailModel.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","isMobileDevice","model","value","dialog","callback","$$v","$set","expression","staticClass","_v","mail","class","hover","on","$event","preventDefault","addDropFile","closeDialog","envoyerMail","staticRenderFns","mobileTypeMixin","extend","props","SendMailModel","data","formValid","timeoutHover","methods","$emit","e","files","Array","from","dataTransfer","close","mounted","document","addEventListener","clearTimeout","setTimeout","component","id","corps"],"mappings":"0JAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACE,MAAM,CAAC,aAAaN,EAAIO,iBAAgC,WAAa,GAAG,YAAY,OAAOC,MAAM,CAACC,MAAOT,EAAIU,OAAa,OAAEC,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,EAAIU,OAAQ,SAAUE,IAAME,WAAW,kBAAkB,CAACV,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,GAAG,MAAQ,SAAS,CAACF,EAAG,YAAY,CAACW,YAAY,iBAAiBT,MAAM,CAAC,MAAQ,UAAU,KAAO,GAAG,KAAO,KAAK,CAACF,EAAG,YAAYA,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,KAAK,CAACN,EAAIgB,GAAG,gCAAgCZ,EAAG,OAAO,CAACW,YAAY,WAAW,CAACf,EAAIgB,GAAG,gBAAgBZ,EAAG,aAAa,GAAGA,EAAG,cAAc,CAACW,YAAY,aAAaT,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,SAAS,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,MAAQ,GAAG,aAAa,KAAK,C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cAAc,GAAGZ,EAAG,YAAYA,EAAG,QAAQ,CAACW,YAAY,eAAeG,MAAMlB,EAAIO,iBAAmB,QAAU,QAAQD,MAAM,CAAC,SAAW,GAAG,KAAO,IAAIc,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOrB,EAAIyB,iBAAiB,CAACrB,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,KAAK,CAACN,EAAIgB,GAAG,sBAAsBhB,EAAIgB,GAAG,cAAc,IAAI,IAAI,IAAI,IAAI,IAC7yEU,EAAkB,G,sECuDP,iBAAOC,EAAA,MAAiBC,OAAO,CAC1CC,MAAO,CAAEnB,OAAQ,OAAUO,KAAMa,EAAA,MACjCC,KAF0C,WAGtC,MAAO,CACHC,WAAW,EACXb,OAAO,EACPc,aAAc,OAGtBC,QAAS,CACLT,YADK,WAEDxB,KAAKkC,MAAM,YAAalC,KAAKgB,MAC7BhB,KAAKuB,eAETD,YALK,SAKOa,GACRnC,KAAKkB,OAAQ,EACblB,KAAKgB,KAAKoB,MAAQC,MAAMC,KAAKH,EAAEI,aAAaH,QAEhDb,YATK,WAUDvB,KAAKS,OAAO+B,UAGpBC,QAtB0C,WAsBnC,WACHC,SAASC,iBAAiB,YAAY,WAClC,EAAKzB,OAAQ,EAET,EAAKc,eACLY,aAAa,EAAKZ,cAClB,EAAKA,aAAe,SAG5BU,SAASC,iBAAiB,aAAa,WACnC,EAAKX,aAAea,YAAW,WAC3B,EAAK3B,OAAQ,IACd,WC1FwY,I,wBCQnZ4B,EAAY,eACd,EACAhD,EACA2B,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E,6FCnBMjB,EAArB,oCACW,KAAAkB,GAAK,EACL,KAAA/B,KAAO,GACP,KAAAgC,MAAQ,GACR,KAAAZ,MAAQ","file":"js/chunk-068f4fc7.06c1ef9d.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogMail.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"fullscreen\":_vm.isMobileDevice() ? true : false,\"persistent\":\"\",\"max-width\":\"600\"},model:{value:(_vm.dialog.isOpen),callback:function ($$v) {_vm.$set(_vm.dialog, \"isOpen\", $$v)},expression:\"dialog.isOpen\"}},[_c('v-card',{attrs:{\"tile\":\"\",\"width\":\"100%\"}},[_c('v-app-bar',{staticClass:\"dialog--header\",attrs:{\"color\":\"primary\",\"flat\":\"\",\"dark\":\"\"}},[_c('v-spacer'),_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-file-document-multiple\")]),_c('span',{staticClass:\"text-h5\"},[_vm._v(\"Envoi mail\")]),_c('v-spacer')],1),_c('v-container',{staticClass:\"pb-10 pt-3\",attrs:{\"fluid\":\"\"}},[_c('v-form',[_c('v-row',{attrs:{\"dense\":\"\",\"no-gutters\":\"\"}},[_c('v-text-field',{staticClass:\"col-12\",attrs:{\"outlined\":\"\",\"label\":\"Email destinataire\"},model:{value:(_vm.mail.mail),callback:function ($$v) {_vm.$set(_vm.mail, \"mail\", $$v)},expression:\"mail.mail\"}}),_c('v-textarea',{staticClass:\"col-12\",attrs:{\"outlined\":\"\",\"label\":\"Corps\",\"rows\":3,\"auto-grow\":\"\"},model:{value:(_vm.mail.corps),callback:function ($$v) {_vm.$set(_vm.mail, \"corps\", $$v)},expression:\"mail.corps\"}}),_c('v-col',{staticClass:\"pa-4 mb-3\",class:{ 'can-drop': _vm.hover },attrs:{\"cols\":\"12\"},on:{\"drop\":function($event){$event.preventDefault();return _vm.addDropFile($event)},\"dragover\":function($event){$event.preventDefault();}}},[_c('v-file-input',{staticClass:\"col-12\",attrs:{\"multiple\":\"\",\"label\":\"Sélection des fichiers\",\"accept\":\"application/pdf\",\"outlined\":\"\",\"dense\":\"\"},model:{value:(_vm.mail.files),callback:function ($$v) {_vm.$set(_vm.mail, \"files\", $$v)},expression:\"mail.files\"}})],1)],1)],1)],1),_c('v-card-actions',[_c('v-footer',{staticClass:\"dialog--footer\",attrs:{\"absolute\":\"\",\"color\":\"primary\"}},[_c('v-btn',{staticClass:\"rounded-pill\",class:_vm.isMobileDevice() ? 'col-5' : 'col-4',attrs:{\"outlined\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.closeDialog()}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-close-circle-outline\")]),_vm._v(\" Annuler \")],1),_c('v-spacer'),_c('v-btn',{staticClass:\"rounded-pill\",class:_vm.isMobileDevice() ? 'col-6' : 'col-4',attrs:{\"outlined\":\"\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.envoyerMail()}}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-content-save\")]),_vm._v(\" Envoyer \")],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport mixins from 'vue-typed-mixins'\r\nimport Openable from '@/global/viewmodels/openable'\r\nimport SendMailModel from '../model/SendMailModel'\r\nimport mobileTypeMixin from '@/global/mobile/mobileTypeMixin'\r\n\r\nexport default mixins(mobileTypeMixin).extend({\r\n props: { dialog: Openable, mail: SendMailModel },\r\n data() {\r\n return {\r\n formValid: false, // Passera 'true' si le formulaire est rempli correctement (voir conditions).\r\n hover: false,\r\n timeoutHover: null as NodeJS.Timeout | null\r\n }\r\n },\r\n methods: {\r\n envoyerMail() {\r\n this.$emit('send-mail', this.mail)\r\n this.closeDialog()\r\n },\r\n addDropFile(e: any) {\r\n this.hover = false\r\n this.mail.files = Array.from(e.dataTransfer.files)\r\n },\r\n closeDialog() {\r\n this.dialog.close()\r\n },\r\n },\r\n mounted() {\r\n document.addEventListener('dragover', () => {\r\n this.hover = true\r\n\r\n if (this.timeoutHover) {\r\n clearTimeout(this.timeoutHover)\r\n this.timeoutHover = null\r\n }\r\n })\r\n document.addEventListener('dragleave', () => {\r\n this.timeoutHover = setTimeout(() => {\r\n this.hover = false\r\n }, 500)\r\n })\r\n },\r\n})\r\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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogMail.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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DialogMail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DialogMail.vue?vue&type=template&id=7b4e3610&\"\nimport script from \"./DialogMail.vue?vue&type=script&lang=ts&\"\nexport * from \"./DialogMail.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DialogMail.vue?vue&type=style&index=0&lang=css&\"\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 default class SendMailModel {\r\n public id = 0\r\n public mail = ''\r\n public corps = ''\r\n public files = [] as Blob[]\r\n}\r\n"],"sourceRoot":""}