{"version":3,"sources":["webpack:///./src/views/ui-elements/saleshunter/DocumenttoCustomer.vue","webpack:///src/views/ui-elements/saleshunter/DocumenttoCustomer.vue","webpack:///./src/views/ui-elements/saleshunter/DocumenttoCustomer.vue?e3aa","webpack:///./src/views/ui-elements/saleshunter/DocumenttoCustomer.vue?b290","webpack:///./src/views/ui-elements/saleshunter/DocumenttoCustomer.vue?6663"],"names":["render","_vm","this","_c","_self","ref","_v","attrs","customerDropdown","on","populateData","model","value","customer","callback","$$v","expression","staticClass","itemsPerPage","document","scopedSlots","_u","key","fn","_ref","data","_l","tr","indextr","_s","revision","documentNr","createdate","formatDate","replace","split","$event","stopPropagation","showStatusPrompt","deleteData","selected","slot","addNewData","currentPage","length","statusPromptActive","documentDropdown","addDocumentDB","promptdata","statusPromptActiveViewer","myData","staticRenderFns","customerID","documentID","accountID","datetime","configdateTimePicker","enableTime","dateFormat","date2","sidebarData","isMounted","components","flatPickr","vSelect","computed","$refs","gridTable","currentx","mounted","loadcustomer","methods","moment","String","format","successNotify","$vs","notify","title","text","color","FailedNotify","self","mydata","myFile","GetGrid","getDocumentation","filter","item","documentID2","showLoadingOnElement","onSuccess","response","onFinally","loading","close","$el","$ajaxGet","element","scale","type","container","whenDone","map","label","name","id","statusPrompt","cid","did","component"],"mappings":"wKAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,IAAI,YAAY,CAACF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACF,EAAIK,GAAG,mBAAmBH,EAAG,WAAW,CAACI,MAAM,CAAC,QAAUN,EAAIO,iBAAiB,YAAc,4BAA4BC,GAAG,CAAC,cAAcR,EAAIS,cAAcC,MAAM,CAACC,MAAOX,EAAIY,SAAUC,SAAS,SAAUC,GAAMd,EAAIY,SAASE,GAAKC,WAAW,eAAe,GAAGb,EAAG,WAAW,CAACE,IAAI,YA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e,SACAf,EACA,gEAAAzD,EAAAmF,IAAA,eAAAnF,EAAAoF,IACAlB,EACAE,IAIAR,QAAA,WACA,IAAAH,EAAA,KACAA,EAAAQ,qBAAA,wBAEA,IAAAC,EAAA,SAAAC,GACAV,EAAA/D,SAAAyE,EAAAnE,MAEAoE,EAAA,WACAX,EAAAN,IAAAkB,QAAAC,MAAAb,EAAAhB,MAAAC,UAAA6B,MAEAd,EAAAe,SACAf,EACA,6DAAAA,EAAA9B,WACAuC,EACAE,MClVyX,I,wBCQrXiB,EAAY,eACd,EACA9G,EACAmD,GACA,EACA,KACA,WACA,MAIa,aAAA2D,E,kECnBf","file":"js/chunk-fa12b08a.ee56ebe4.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vx-card',{ref:\"MainCard\"},[_c('div',[_c('div',[_c('label',[_vm._v(\"Customer Name\")]),_c('v-select',{attrs:{\"options\":_vm.customerDropdown,\"placeholder\":\"Search / Select Customer\"},on:{\"search:blur\":_vm.populateData},model:{value:(_vm.customer),callback:function ($$v) {_vm.customer=$$v},expression:\"customer\"}})],1),_c('vs-table',{ref:\"gridTable\",staticClass:\"vs-con-loading__container\",attrs:{\"pagination\":\"\",\"max-items\":_vm.itemsPerPage,\"search\":\"\",\"data\":_vm.document},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.customer}},[_vm._v(_vm._s(tr.customer))]),_c('vs-td',{attrs:{\"data\":tr.document}},[_vm._v(_vm._s(tr.document))]),_c('vs-td',{attrs:{\"data\":tr.revision}},[_vm._v(_vm._s(tr.revision))]),_c('vs-td',{attrs:{\"data\":tr.documentNr}},[_vm._v(_vm._s(tr.documentNr))]),_c('vs-td',{attrs:{\"data\":tr.createdate}},[_vm._v(_vm._s(_vm.formatDate(tr.createdate.replace(\"T\", \" \").split('.')[0])))]),_c('vs-td',{staticClass:\"whitespace-no-wrap\"},[_c('feather-icon',{attrs:{\"icon\":\"EyeIcon\",\"svgClasses\":\"w-5 h-5 hover:text-primary stroke-current\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.showStatusPrompt(tr)}}}),_c('feather-icon',{staticClass:\"ml-2\",attrs:{\"icon\":\"TrashIcon\",\"svgClasses\":\"w-5 h-5 hover:text-danger stroke-current\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.deleteData(tr)}}})],1)],1)})}}]),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},[_c('div',{staticClass:\"flex flex-wrap-reverse items-center flex-grow\",attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('div',{ref:\"addNew\",staticClass:\"p-3 mr-4 rounded-lg cursor-pointer flex items-center justify-between text-lg font-medium text-base text-primary border border-solid border-primary\",on:{\"click\":_vm.addNewData}},[_c('feather-icon',{attrs:{\"icon\":\"PlusIcon\",\"svgClasses\":\"h-4 w-4\"}}),_c('span',{staticClass:\"ml-2 text-base text-primary\"},[_vm._v(\"Assign System documents\")])],1),_c('vs-dropdown',{staticClass:\"cursor-pointer mr-4\",attrs:{\"vs-trigger-click\":\"\"}},[_c('div',{staticClass:\"p-4 border border-solid border-grey-light rounded-full d-theme-dark-bg cursor-pointer flex items-center justify-between font-medium\"},[_c('span',{staticClass:\"mr-2\"},[_vm._v(_vm._s(_vm.currentPage * _vm.itemsPerPage - (_vm.itemsPerPage - 1))+\" - \"+_vm._s(_vm.document.length - _vm.currentPage * _vm.itemsPerPage > 0 ? _vm.currentPage * _vm.itemsPerPage : _vm.document.length)+\" of \"+_vm._s(_vm.document.length))]),_c('feather-icon',{attrs:{\"icon\":\"ChevronDownIcon\",\"svgClasses\":\"h-4 w-4\"}})],1),_c('vs-dropdown-menu',[_c('vs-dropdown-item',{on:{\"click\":function($event){_vm.itemsPerPage=10}}},[_c('span',[_vm._v(\"10\")])]),_c('vs-dropdown-item',{on:{\"click\":function($event){_vm.itemsPerPage=20}}},[_c('span',[_vm._v(\"20\")])]),_c('vs-dropdown-item',{on:{\"click\":function($event){_vm.itemsPerPage=50}}},[_c('span',[_vm._v(\"50\")])]),_c('vs-dropdown-item',{on:{\"click\":function($event){_vm.itemsPerPage=100}}},[_c('span',[_vm._v(\"100\")])])],1)],1)],1),_c('template',{slot:\"thead\"},[_c('vs-th',{attrs:{\"sort-key\":\"customer\"}},[_vm._v(\"Customer\")]),_c('vs-th',{attrs:{\"sort-key\":\"Document\"}},[_vm._v(\"Document\")]),_c('vs-th',{attrs:{\"sort-key\":\"revision\"}},[_vm._v(\"Revision\")]),_c('vs-th',{attrs:{\"sort-key\":\"documentNr\"}},[_vm._v(\"Control Number\")]),_c('vs-th',{attrs:{\"sort-key\":\"createdate\"}},[_vm._v(\"Uploaded\")]),_c('vs-th',[_vm._v(\"Action\")])],1)],2)],1),_c('vs-prompt',{ref:\"statusPrompt\",attrs:{\"title\":\"Documentation to customer\",\"acceptText\":\"Add Document\",\"cancelText\":\"Cancel\",\"active\":_vm.statusPromptActive},on:{\"cancel\":function($event){_vm.documentDropdown=0},\"accept\":_vm.addDocumentDB,\"update:active\":function($event){_vm.statusPromptActive=$event}}},[_c('div',{staticClass:\"con-exemple-prompt\"},[_c('div',[_c('label',[_vm._v(\"Document\")]),_c('v-select',{attrs:{\"placeholder\":\"Choose file\",\"options\":_vm.promptdata},model:{value:(_vm.documentDropdown),callback:function ($$v) {_vm.documentDropdown=$$v},expression:\"documentDropdown\"}})],1)])]),_c('vs-prompt',{ref:\"statusPrompt\",attrs:{\"title\":\"Viewer\",\"acceptText\":\"Close\",\"active\":_vm.statusPromptActiveViewer},on:{\"update:active\":function($event){_vm.statusPromptActiveViewer=$event}}},[_c('div',[_c('iframe',{attrs:{\"src\":_vm.myData,\"frameborder\":\"0\"}})])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumenttoCustomer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumenttoCustomer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DocumenttoCustomer.vue?vue&type=template&id=2b95976c&scoped=true\"\nimport script from \"./DocumenttoCustomer.vue?vue&type=script&lang=js\"\nexport * from \"./DocumenttoCustomer.vue?vue&type=script&lang=js\"\nimport style1 from \"./DocumenttoCustomer.vue?vue&type=style&index=1&id=2b95976c&prod&lang=stylus\"\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 \"2b95976c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumenttoCustomer.vue?vue&type=style&index=1&id=2b95976c&prod&lang=stylus\""],"sourceRoot":""}