{"version":3,"sources":["webpack:///./node_modules/core-js/internals/same-value.js","webpack:///./src/views/quotetemplate/QuoteTemplateAvailableSublets.vue?3da2","webpack:///./node_modules/lodash/now.js","webpack:///./node_modules/lodash/_trimmedEndIndex.js","webpack:///./src/views/quotetemplate/QuoteTemplateSubletView.vue","webpack:///./src/views/quotetemplate/QuoteTemplateAvailableSublets.vue","webpack:///src/views/quotetemplate/QuoteTemplateAvailableSublets.vue","webpack:///./src/views/quotetemplate/QuoteTemplateAvailableSublets.vue?f05b","webpack:///./src/views/quotetemplate/QuoteTemplateAvailableSublets.vue?c79b","webpack:///src/views/quotetemplate/QuoteTemplateSubletView.vue","webpack:///./src/views/quotetemplate/QuoteTemplateSubletView.vue?e7b4","webpack:///./src/views/quotetemplate/QuoteTemplateSubletView.vue?4207","webpack:///./node_modules/core-js/modules/es.string.search.js","webpack:///./node_modules/lodash/_baseTrim.js","webpack:///./src/views/quotetemplate/QuoteTemplateItemMixin.js","webpack:///./node_modules/lodash/debounce.js","webpack:///./node_modules/lodash/toNumber.js","webpack:///./src/views/quotetemplate/columns.js"],"names":["module","exports","Object","is","x","y","root","now","Date","reWhitespace","trimmedEndIndex","string","index","length","test","charAt","render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","isAvailableItemsModuleActive","class","_v","_s","addNewItem","model","value","items","callback","$$v","expression","_e","columns","isTableLoading","filter","pageIndex","pageSize","sortColumn","sortOrder","totalRows","sort","_b","itemMoved","endMove","chosen","ghostClass","dragClass","_l","item","key","itemNo","directives","name","rawName","itemDesc","domProps","target","composing","$set","reportOnly","Array","isArray","_i","$$a","$$el","$$c","checked","$$i","concat","slice","_n","deleteItem","slot","staticRenderFns","query","search","reset","$userInfo","countryCode","localeCompare","locale","sensitivity","activeTab","subletTypes","standard","tabClicked","veronz","onPageChange","availableItems","selectedRow","highlightSelected","description","_f","price","components","BulmaTable","filters","mixins","props","type","default","quoteId","labourType","nextLineNumber","isAudanet","data","innerValue","countryId","selectedItems","computed","newItems","created","mounted","methods","getAvailableSublets","QuoteService","event","order","cancel","newItem","subletType","component","draggable","QuoteTemplateAvailableSublets","VueNumeric","itemCategoryTypes","currentMaxSortIndex","Math","newItemData","tempateId","itemId","itemType","sortNo","QuoteTemplateService","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","requireObjectCoercible","sameValue","toString","getMethod","regExpExec","SEARCH","nativeSearch","maybeCallNative","regexp","O","searcher","undefined","RegExp","rx","S","res","done","previousLastIndex","lastIndex","result","reTrimStart","baseTrim","replace","templateId","$route","params","entityId","watch","handler","newVal","oldVal","autoUpdate","deep","getQuoteTemplateItems","initializeAutoUpdate","disableAutoUpdate","getSortedQuoteTemplateItems","templateItems","i","some","_debounce","updateItems","updateNotification","min","map","forEach","_orderBy","deleteQuoteTemplateItem","updateQuoteTemplateItems","status","$notification","openNotificationWithType","beforeRouteLeave","to","from","next","isObject","toNumber","FUNC_ERROR_TEXT","nativeMax","max","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","clearTimeout","flush","debounced","isInvoking","arguments","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","other","valueOf","isBinary","QuoteTemplateListColumns","TableColumn","LabourColumns","AvailableLabourColumns","MiscColumns","SubletColumns"],"mappings":"kHAIAA,EAAOC,QAAUC,OAAOC,IAAM,SAAYC,EAAGC,GAE3C,OAAOD,IAAMC,EAAU,IAAND,GAAW,EAAIA,IAAM,EAAIC,EAAID,IAAMA,GAAKC,IAAMA,I,oCCNjE,W,uBCAA,IAAIC,EAAO,EAAQ,QAkBfC,EAAM,WACR,OAAOD,EAAKE,KAAKD,OAGnBP,EAAOC,QAAUM,G,4CCrBjB,IAAIE,EAAe,KAUnB,SAASC,EAAgBC,GACvB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H,OAAY,SAAU,UAAU,EAAM,MAAO,QACjD,IAAIA,OAAY,cAAe,YAAY,EAAM,MAAO,QACxD,IAAIA,OAAY,MAAO,cAAc,EAAM,OAAQ,QACnD,IAAIA,OAAY,SAAU,SAAS,EAAM,MAAO,QAChD,IAAIA,OAAY,GAAI,UAAU,EAAO,OAAQ,aAGzCI,EAAgB,CACpB,IAAIJ,OAAY,SAAU,UAAU,EAAM,MAAO,QACjD,IAAIA,OAAY,cAAe,YAAY,EAAM,MAAO,QACxD,IAAIA,OAAY,MAAO,cAAc,EAAM,OAAQ,QACnD,IAAIA,OAAY,SAAU,SAAS,EAAM,MAAO,QAChD,IAAIA,OAAY,GAAI,UAAU,EAAO,OAAQ","file":"static/js/chunk-5b155f1f.e336a346.js","sourcesContent":["'use strict';\n// `SameValue` abstract operation\n// https://tc39.es/ecma262/#sec-samevalue\n// eslint-disable-next-line es/no-object-is -- safe\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;\n};\n","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!./QuoteTemplateAvailableSublets.vue?vue&type=style&index=0&id=0d614e9c&prod&lang=scss&scoped=true\"","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"tile is-parent\"},[_c('article',{staticClass:\"tile is-child box\"},[_c('div',{staticClass:\"columns\"},[_vm._m(0),_c('div',{staticClass:\"column\"},[_c('div',{staticClass:\"control is-pulled-right\"},[_c('button',{staticClass:\"button is-primary tooltip is-tooltip\",attrs:{\"data-tooltip\":\"Add new sublet\"},on:{\"click\":function($event){_vm.isAvailableItemsModuleActive = !_vm.isAvailableItemsModuleActive}}},[_c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"mdi\",class:{ 'mdi-plus' : !_vm.isAvailableItemsModuleActive,\n 'mdi-close' : _vm.isAvailableItemsModuleActive }})]),_c('span',[_vm._v(_vm._s(_vm.isAvailableItemsModuleActive ? 'Close' : 'Add'))])])])])]),(_vm.isAvailableItemsModuleActive)?_c('div',[_c('quote-template-available-sublets',{attrs:{\"labour-type\":\"FQT\",\"is-audanet\":false},on:{\"item-added\":_vm.addNewItem},model:{value:(_vm.items),callback:function ($$v) {_vm.items=$$v},expression:\"items\"}}),_c('hr')],1):_vm._e(),_c('bulma-table',{staticClass:\"table is-bordered is-striped is-narrow is-fullwidth\",attrs:{\"columns\":_vm.columns,\"is-loading\":_vm.isTableLoading,\"page-index\":_vm.filter.pageIndex,\"page-size\":_vm.filter.pageSize,\"sort-column\":_vm.filter.sortColumn,\"sort-order\":_vm.filter.sortOrder,\"total-rows\":_vm.totalRows,\"show-pagination\":false,\"draggable\":true},on:{\"sort\":_vm.sort}},[_c('draggable',_vm._b({attrs:{\"tag\":'tbody',\"handle\":\".item-drag-handle\"},on:{\"change\":_vm.itemMoved,\"end\":_vm.endMove},model:{value:(_vm.items),callback:function ($$v) {_vm.items=$$v},expression:\"items\"}},'draggable',{chosen: 'chosen', ghostClass: 'draggable-ghost', dragClass: 'draggable-drag'},false),_vm._l((_vm.items),function(item,index){return _c('tr',{key:index},[_c('td',{staticClass:\"has-vertical-middle\"},[_vm._v(_vm._s(item.itemNo))]),_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(item.itemDesc),expression:\"item.itemDesc\"}],staticClass:\"input\",attrs:{\"type\":\"text\"},domProps:{\"value\":(item.itemDesc)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(item, \"itemDesc\", $event.target.value)}}})]),_c('td',{staticClass:\"has-vertical-middle\"},[_c('div',{staticClass:\"pretty p-icon p-curve p-smooth m-0 p-bigger\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(item.reportOnly),expression:\"item.reportOnly\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(item.reportOnly)?_vm._i(item.reportOnly,null)>-1:(item.reportOnly)},on:{\"change\":function($event){var $$a=item.reportOnly,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(item, \"reportOnly\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(item, \"reportOnly\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(item, \"reportOnly\", $$c)}}}}),_c('div',{staticClass:\"state p-info\"},[_c('i',{staticClass:\"icon mdi mdi-check\"}),_c('label')])])]),_c('td',[_c('vue-numeric',{staticClass:\"input has-text-left\",attrs:{\"precision\":2},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, \"value\", _vm._n($$v))},expression:\"item.value\"}})],1),_c('td',{staticClass:\"has-vertical-middle has-text-centered is-content-width\"},[_c('div',{staticClass:\"icon-container items-center\"},[_c('button',{staticClass:\"button is-danger is-small is-inverted mr-1\",on:{\"click\":function($event){return _vm.deleteItem(item)}}},[_c('span',{staticClass:\"icon is-small\"},[_c('i',{staticClass:\"mdi mdi-delete mdi-24px\"})])]),_c('button',{staticClass:\"button is-primary is-small is-inverted item-drag-handle\"},[_c('span',{staticClass:\"icon is-small\"},[_c('i',{staticClass:\"mdi mdi-drag-vertical mdi-24px\"})])])])])])}),0),_c('template',{slot:\"empty\"},[_c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"content has-text-grey has-text-centered\"},[_c('span',{attrs:{\"icon\":\"icon is-large\"}},[_c('i',{staticClass:\"mdi mdi-48px mdi-emoticon-sad\"})]),_c('p',[_vm._v(\"Nothing\")])])])])],2)],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"column\"},[_c('p',{staticClass:\"title\"},[_vm._v(\"Sublet\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{staticClass:\"columns is-gapless\"},[_c('div',{staticClass:\"column\"},[_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"field is-horizontal\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field-body\"},[_c('div',{staticClass:\"field has-addons\"},[_c('div',{staticClass:\"control has-icons-left has-icons-right\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filter.query),expression:\"filter.query\"}],staticClass:\"input\",attrs:{\"type\":\"text\",\"placeholder\":\"Start typing to filter\"},domProps:{\"value\":(_vm.filter.query)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.$set(_vm.filter, \"query\", $event.target.value)},_vm.search]}}),_vm._m(0)]),_c('div',{staticClass:\"control\"},[_c('a',{staticClass:\"button is-primary is-outlined tooltip\",attrs:{\"data-tooltip\":\"Reset search\"},on:{\"click\":function($event){return _vm.reset()}}},[_vm._m(1)])])])])])])])]),(_vm.$userInfo && _vm.$userInfo.countryCode.localeCompare('NZ', _vm.$userInfo.locale, {sensitivity: 'accent'}) === 0)?_c('div',{staticClass:\"column\"},[_c('div',{staticClass:\"tabs is-toggle is-pulled-right\"},[_c('ul',[_c('li',{class:{ 'is-active' : _vm.activeTab === _vm.subletTypes.standard }},[_c('a',{on:{\"click\":function($event){return _vm.tabClicked(_vm.subletTypes.standard)}}},[_c('span',[_vm._v(\"Standard\")])])]),_c('li',{class:{ 'is-active' : _vm.activeTab === _vm.subletTypes.veronz }},[_c('a',{on:{\"click\":function($event){return _vm.tabClicked(_vm.subletTypes.veronz)}}},[_c('span',[_vm._v(\"Vero-NZ\")])])])])])]):_vm._e()]),_c('bulma-table',{staticClass:\"table is-bordered is-striped is-narrow is-fullwidth\",attrs:{\"columns\":_vm.columns,\"page-index\":_vm.filter.pageIndex,\"page-size\":_vm.filter.pageSize,\"total-rows\":_vm.totalRows,\"is-loading\":_vm.isTableLoading,\"sort-column\":_vm.filter.sortColumn,\"sort-order\":_vm.filter.sortOrder},on:{\"pageChanged\":_vm.onPageChange,\"sort\":_vm.sort}},[_vm._l((_vm.availableItems),function(item,index){return _c('tr',{key:index,class:{ 'is-selected' : _vm.selectedRow === index },on:{\"dblclick\":function($event){return _vm.addNewItem(item, index)},\"click\":function($event){return _vm.highlightSelected(index, $event)}}},[_c('td',[_vm._v(_vm._s(item.itemNo))]),_c('td',[_vm._v(_vm._s(item.description))]),_c('td',{staticClass:\"has-text-right\"},[_vm._v(_vm._s(_vm._f(\"formatNumber\")(item.price,_vm.$userInfo.locale)))]),_c('td',{staticClass:\"has-vertical-middle has-text-centered is-content-width\"},[_c('a',{staticClass:\"button is-primary is-small is-inverted\",on:{\"click\":function($event){return _vm.addNewItem(item, index)}}},[_c('span',{staticClass:\"icon is-medium\"},[_c('i',{staticClass:\"mdi mdi-plus mdi-24px\"})])])])])}),_c('template',{slot:\"empty\"},[_c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"content has-text-grey has-text-centered\"},[_c('span',{attrs:{\"icon\":\"icon is-large\"}},[_c('i',{staticClass:\"mdi mdi-48px mdi-emoticon-sad\"})]),_c('p',[_vm._v(\"Nothing\")])])])])],2)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"icon is-left\"},[_c('i',{staticClass:\"mdi mdi-magnify mdi-18px\"})])\n},function (){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"icon\"},[_c('i',{staticClass:\"mdi mdi-close mdi-24px\"})])\n}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuoteTemplateAvailableSublets.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuoteTemplateAvailableSublets.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./QuoteTemplateAvailableSublets.vue?vue&type=template&id=0d614e9c&scoped=true\"\nimport script from \"./QuoteTemplateAvailableSublets.vue?vue&type=script&lang=js\"\nexport * from \"./QuoteTemplateAvailableSublets.vue?vue&type=script&lang=js\"\nimport style0 from \"./QuoteTemplateAvailableSublets.vue?vue&type=style&index=0&id=0d614e9c&prod&lang=scss&scoped=true\"\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 \"0d614e9c\",\n null\n \n)\n\nexport default component.exports","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuoteTemplateSubletView.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./QuoteTemplateSubletView.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./QuoteTemplateSubletView.vue?vue&type=template&id=3847092b\"\nimport script from \"./QuoteTemplateSubletView.vue?vue&type=script&lang=js\"\nexport * from \"./QuoteTemplateSubletView.vue?vue&type=script&lang=js\"\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","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.es/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);\n return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@search\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeSearch, rx, S);\n\n if (res.done) return res.value;\n\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }\n ];\n});\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","import _debounce from 'lodash/debounce'\nimport _orderBy from 'lodash/orderBy'\nimport QuoteTemplateService from '@/services/QuoteTemplateService'\n\nexport default {\n data() {\n return {\n filter: {\n sortColumn: '',\n sortOrder: '',\n pageIndex: 1,\n pageSize: 100\n },\n isAvailableItemsModuleActive: false,\n isTableLoading: false,\n items: [],\n templateId: this.$route.params.entityId,\n totalRows: 0\n }\n },\n watch: {\n items: {\n handler: async function (newVal, oldVal) {\n if (oldVal.length > 0 && newVal.length > 0 && oldVal.length == newVal.length) {\n await this.autoUpdate(newVal)\n }\n },\n deep: true\n }\n },\n async created() {\n await this.getQuoteTemplateItems()\n this.initializeAutoUpdate()\n },\n methods: {\n disableAutoUpdate() {\n if (typeof this.autoUpdate === 'function'\n && typeof this.autoUpdate.cancel === 'function') {\n this.autoUpdate.cancel()\n }\n this.autoUpdate = () => {}\n },\n\n async endMove() {\n this.filter.sortColumn = ''\n this.filter.sortOrder = ''\n },\n\n async getQuoteTemplateItems() {\n this.isTableLoading = true\n const templateItems = await QuoteTemplateService.getSortedQuoteTemplateItems(this.$route.params.entityId)\n\n this.items = templateItems.filter((i) => this.itemCategoryTypes.some((type) => i.itemType === type))\n\n this.totalRows = this.items.length > 0 ? this.items.length : 0\n this.isTableLoading = false\n },\n\n initializeAutoUpdate() {\n this.autoUpdate = _debounce(async (value) => {\n try {\n await this.updateItems(value)\n this.updateNotification(true)\n } catch (e) {\n this.updateNotification(false)\n }\n }, 3000)\n },\n\n itemMoved() {\n let sortNo = Math.min(...this.items.map((i) => i.sortNo))\n this.items.forEach((item) => {\n item.sortNo = sortNo\n sortNo++\n })\n },\n\n async sort(name, order) {\n this.filter.sortColumn = name\n this.filter.sortOrder = order\n\n this.items = _orderBy(this.items, [this.filter.sortColumn, 'itemDesc'], [this.filter.sortOrder])\n this.itemMoved()\n },\n\n async deleteItem(item) {\n await QuoteTemplateService.deleteQuoteTemplateItem(item)\n await this.getQuoteTemplateItems()\n this.itemMoved()\n },\n\n async updateItems() {\n await QuoteTemplateService.updateQuoteTemplateItems(this.items)\n },\n\n updateNotification(status) {\n if (status) {\n // return this.$toast.open({\n // message: 'Template saved',\n // type: 'is-success'\n // })\n return this.$notification.openNotificationWithType('success','','Template saved')\n\n }\n\n // return this.$toast.open({\n // message: 'Failed to save the template',\n // type: 'is-danger',\n // duration: 5000\n // })\n return this.$notification.openNotificationWithType('danger','','Failed to save the template',5000)\n\n }\n },\n\n async beforeRouteLeave(to, from, next) {\n this.disableAutoUpdate()\n if (this.items.length > 0) {\n try {\n await this.updateItems(this.items)\n this.updateNotification(true)\n } catch(e) {\n this.updateNotification(false)\n }\n }\n next()\n }\n}\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","import { TableColumn } from '@/classes'\r\n\r\nconst QuoteTemplateListColumns = [\r\n new TableColumn('Name', 'name', true, 'asc', 'left'),\r\n new TableColumn('Type', 'quoteType', true, 'asc', 'left'),\r\n new TableColumn('Created Date', 'createdDate', true, 'desc', 'left'),\r\n new TableColumn('Labour Times', 'timesType', true, 'asc', 'left'),\r\n new TableColumn('', 'action', false, 'desc', 'centered')\r\n]\r\n\r\nconst LabourColumns = [\r\n new TableColumn('ItemNo', 'itemNo', true, 'asc', 'left'),\r\n new TableColumn('Description', 'itemDesc', true, 'asc', 'left'),\r\n new TableColumn('Rpt', 'reportOnly', true, 'desc', 'left'),\r\n new TableColumn('Type', 'itemType', true, 'asc', 'left'),\r\n new TableColumn('', 'action', false, 'desc', 'centered')\r\n]\r\n\r\nconst AvailableLabourColumns = [\r\n new TableColumn('ItemNo', 'itemNo', true, 'asc', 'left'),\r\n new TableColumn('Description', 'itemDesc', true, 'asc', 'left'),\r\n new TableColumn('', 'action', false, 'desc', 'centered')\r\n]\r\n\r\nconst MiscColumns = [\r\n new TableColumn('ItemNo', 'itemNo', true, 'asc', 'left'),\r\n new TableColumn('Description', 'itemDesc', true, 'asc', 'left'),\r\n new TableColumn('Rpt', 'reportOnly', true, 'desc', 'left'),\r\n new TableColumn('Charge', 'value', true, 'asc', 'left'),\r\n new TableColumn('', 'action', false, 'desc', 'centered')\r\n]\r\n\r\nconst SubletColumns = [\r\n new TableColumn('ItemNo', 'itemNo', true, 'asc', 'left'),\r\n new TableColumn('Description', 'itemDesc', true, 'asc', 'left'),\r\n new TableColumn('Rpt', 'reportOnly', true, 'desc', 'left'),\r\n new TableColumn('Charge', 'value', true, 'asc', 'left'),\r\n new TableColumn('', 'action', false, 'desc', 'centered')\r\n]\r\nexport { AvailableLabourColumns, LabourColumns, MiscColumns, QuoteTemplateListColumns, SubletColumns }"],"sourceRoot":""}