{"version":3,"sources":["webpack:///./src/modules/etat-stock/ImportRotation.vue?b584","webpack:///./src/modules/etat-stock/ImportRotation.vue","webpack:///./src/modules/etat-stock/ImportRotation.vue?a09d","webpack:///./src/modules/etat-stock/ImportRotation.vue?ceed","webpack:///./src/plugins/mixins/mobileTypeMixin.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","messageConfirmationUpload","_e","on","ajouterFichier","model","value","callback","$$v","file","expression","staticRenderFns","mobileTypeMixin","extend","data","methods","formData","FormData","append","name","$loader","go","$http","api","post","then","$swal","toast","success","catch","x","errorApi","finally","stop","component","isAndroid","navigator","userAgent","match","isBlackBerry","isiOS","isOpera","isWindows","isMobileDevice"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,MAAM,CAAC,MAAQ,GAAG,QAAU,WAAW,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,GAAK,IAAI,KAAO,OAAO,CAACF,EAAG,SAAS,CAACG,YAAY,YAAYD,MAAM,CAAC,UAAY,OAAO,CAACF,EAAG,UAAU,CAACE,MAAM,CAAC,KAAO,OAAO,MAAQ,GAAG,KAAO,GAAG,KAAO,4BAA4B,CAACN,EAAIQ,GAAG,mDAAoDR,EAA6B,0BAAEI,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQ,GAAG,KAAO,GAAG,KAAO,YAAY,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,2BAA2B,OAAOV,EAAIW,KAAKX,EAAIQ,GAAG,wBAAwBJ,EAAG,eAAe,CAACE,MAAM,CAAC,MAAQ,uBAAuB,OAAS,iDAAiD,SAAW,GAAG,MAAQ,IAAIM,GAAG,CAAC,OAASZ,EAAIa,gBAAgBC,MAAM,CAACC,MAAOf,EAAQ,KAAEgB,SAAS,SAAUC,GAAMjB,EAAIkB,KAAKD,GAAKE,WAAW,WAAW,IAAI,IAAI,IAC11BC,EAAkB,G,8CCkBP,iBAAOC,EAAA,MAAiBC,OAAO,CAC1CC,KAD0C,WAEtC,MAAO,CACHL,KAAM,KACNR,0BAA2B,OAGnCc,QAAS,CACLX,eADK,WACS,WACV,GAAKZ,KAAKiB,KAAV,CAEA,IAAMO,EAAW,IAAIC,SACrBD,EAASE,OAAO,OAAQ1B,KAAKiB,KAAMjB,KAAKiB,KAAKU,MAC7C3B,KAAK4B,QAAQC,KACb7B,KAAK8B,MACAC,IADL,mBAEKC,KAAKR,GACLS,MAAK,WACF,EAAKC,MAAMC,MAAMC,QAAQ,6CACzB,EAAKnB,KAAO,KACZ,EAAKR,0BAA4B,gCAEpC4B,OAAM,SAAAC,GAAC,OAAI,EAAKJ,MAAMC,MAAMI,SAASD,MACrCE,SAAQ,kBAAM,EAAKZ,QAAQa,eC1C+W,I,YCOvZC,EAAY,eACd,EACA5C,EACAqB,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E,+ECbA,oBAAIrB,OAAO,CACtBE,QAAS,CACLoB,UADK,WAED,OAAOC,UAAUC,UAAUC,MAAM,aAErCC,aAAc,WACV,OAAOH,UAAUC,UAAUC,MAAM,gBAErCE,MAAO,WACH,OAAOJ,UAAUC,UAAUC,MAAM,sBAErCG,QAAS,WACL,OAAOL,UAAUC,UAAUC,MAAM,gBAErCI,UAAW,WACP,OAAON,UAAUC,UAAUC,MAAM,cAAgBF,UAAUC,UAAUC,MAAM,eAE/EK,eAhBK,WAiBD,OAAOnD,KAAK2C,aAAe3C,KAAK+C,gBAAkB/C,KAAKgD,SAAWhD,KAAKiD,WAAajD,KAAKkD","file":"js/chunk-d6b81d9c.b206380f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',{attrs:{\"dense\":\"\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"md\":\"6\",\"cols\":\"12\"}},[_c('v-card',{staticClass:\"pa-4 my-3\",attrs:{\"elevation\":\"24\"}},[_c('v-alert',{attrs:{\"type\":\"info\",\"dense\":\"\",\"text\":\"\",\"icon\":\"mdi-hand-pointing-right\"}},[_vm._v(\"Importer un tableau de la rotation des stocks\")]),(_vm.messageConfirmationUpload)?_c('v-alert',{attrs:{\"dense\":\"\",\"text\":\"\",\"type\":\"success\"}},[_vm._v(\" \"+_vm._s(_vm.messageConfirmationUpload)+\" \")]):_vm._e(),_vm._v(\" Fichier Excel xlsm \"),_c('v-file-input',{attrs:{\"label\":\"Sélection du fichier\",\"accept\":\"application/vnd.ms-excel.sheet.macroEnabled.12\",\"outlined\":\"\",\"dense\":\"\"},on:{\"change\":_vm.ajouterFichier},model:{value:(_vm.file),callback:function ($$v) {_vm.file=$$v},expression:\"file\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport mobileTypeMixin from '@/plugins/mixins/mobileTypeMixin'\r\nimport mixins from 'vue-typed-mixins'\r\n\r\nexport default mixins(mobileTypeMixin).extend({\r\n data() {\r\n return {\r\n file: null as null | File,\r\n messageConfirmationUpload: null as null | string\r\n }\r\n },\r\n methods: {\r\n ajouterFichier() {\r\n if (!this.file) return\r\n\r\n const formData = new FormData()\r\n formData.append('file', this.file, this.file.name)\r\n this.$loader.go()\r\n this.$http\r\n .api(`rotationProduit`)\r\n .post(formData)\r\n .then(() => {\r\n this.$swal.toast.success('Le fichier de rotation a bien été traité.')\r\n this.file = null\r\n this.messageConfirmationUpload = 'Import réalisé avec succès'\r\n })\r\n .catch(x => this.$swal.toast.errorApi(x))\r\n .finally(() => this.$loader.stop())\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!./ImportRotation.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!./ImportRotation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ImportRotation.vue?vue&type=template&id=01f10464&\"\nimport script from \"./ImportRotation.vue?vue&type=script&lang=ts&\"\nexport * from \"./ImportRotation.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","// Pour le mixin :https://stackoverflow.com/questions/48515023/display-different-vuejs-components-for-mobile-browsers\r\n\r\nimport Vue from 'vue'\r\n\r\n// Pour la détection : https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser\r\nexport default Vue.extend({\r\n methods: {\r\n isAndroid() {\r\n return navigator.userAgent.match(/Android/i)\r\n },\r\n isBlackBerry: function() {\r\n return navigator.userAgent.match(/BlackBerry/i)\r\n },\r\n isiOS: function() {\r\n return navigator.userAgent.match(/iPhone|iPad|iPod/i)\r\n },\r\n isOpera: function() {\r\n return navigator.userAgent.match(/Opera Mini/i)\r\n },\r\n isWindows: function() {\r\n return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i)\r\n },\r\n isMobileDevice() {\r\n return this.isAndroid() || this.isBlackBerry() || this.isiOS() || this.isOpera() || this.isWindows()\r\n }\r\n }\r\n})\r\n"],"sourceRoot":""}