{"version":3,"sources":["webpack:///./node_modules/lodash/now.js","webpack:///./node_modules/lodash/_trimmedEndIndex.js","webpack:///./src/views/companysetting/CompanyItemCategorySetting.vue","webpack:///src/views/companysetting/CompanyItemCategorySetting.vue","webpack:///./src/views/companysetting/CompanyItemCategorySetting.vue?75d1","webpack:///./src/views/companysetting/CompanyItemCategorySetting.vue?77da","webpack:///./src/views/companysetting/storeMixin.js","webpack:///./node_modules/lodash/_baseTrim.js","webpack:///./node_modules/lodash/debounce.js","webpack:///./node_modules/lodash/toNumber.js","webpack:///./src/views/companysetting/CompanyItemCategorySetting.vue?ca21"],"names":["root","now","Date","module","exports","reWhitespace","trimmedEndIndex","string","index","length","test","charAt","render","_vm","this","_c","_self","$userInfo","isSupportUser","isCustomerAdministrator","staticClass","_m","hasError","showSavingStatus","toastNotificationEnabled","_e","saving","staticStyle","class","_v","_s","savingStatus","_l","companyItemCategories","companyItemCategory","key","categoryName","directives","name","rawName","value","displayName","expression","attrs","domProps","on","$event","target","composing","$set","printName","isEnabled","Array","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","staticRenderFns","mixins","data","watch","handler","entity","deep","created","_cloneDeep","serviceFunction","methods","disableAutoUpdate","initializeAutoUpdate","updateItemCategories","itemCategories","item","baseItem","diff","DeepDiff","beforeRouteLeave","to","from","next","component","moduleName","computed","mapGetters","baseSnapshot","currentSnapshot","snapshotDiff","snapshots","val","$notification","error","setTimeout","mapActions","openToastNotification","success","reTrimStart","baseTrim","replace","isObject","toNumber","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","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,EAAcA,GAASA,EAEhCA,EAAQ8D,EAAS9D,GACjB,IAAIoH,EAAWN,EAAW5I,KAAK8B,GAC/B,OAAQoH,GAAYL,EAAU7I,KAAK8B,GAC/BgH,EAAahH,EAAMsB,MAAM,GAAI8F,EAAW,EAAI,GAC3CP,EAAW3I,KAAK8B,GAAS4G,GAAO5G,EAGvCrC,EAAOC,QAAUqG,G,yDC/DjB","file":"static/js/chunk-24e7ffda.f0d598c3.js","sourcesContent":["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',[(_vm.$userInfo.isSupportUser || _vm.$userInfo.isCustomerAdministrator)?_c('div',{staticClass:\"tile is-parent pl-1\"},[_c('article',{staticClass:\"tile is-child box\"},[_c('div',{staticClass:\"columns is-flex is-align-items-center\"},[_vm._m(0),(!_vm.hasError && _vm.showSavingStatus && !_vm.toastNotificationEnabled)?_c('div',{staticClass:\"column is-flex is-justify-content-flex-end is-align-items-center\"},[(_vm.saving)?_c('span',{staticClass:\"button is-loading is-white\",staticStyle:{\"height\":\"27px\"}}):_c('span',{staticClass:\"text has-text-success\"},[_c('i',{staticClass:\"mdi mdi-checkbox-marked-circle-outline mdi-18px\"})]),_c('span',{staticClass:\"is-size-6\",class:_vm.saving ? 'has-text-warning' : 'has-text-success'},[_vm._v(_vm._s(_vm.savingStatus))])]):_vm._e()]),_vm._m(1),_vm._l((_vm.companyItemCategories),function(companyItemCategory,index){return _c('div',{key:index,staticClass:\"item-category-row\"},[_c('div',{staticClass:\"field columns is-flex is-align-items-center\"},[_c('div',{staticClass:\"column is-one-quarter pl-5\"},[_c('div',[_vm._v(_vm._s(companyItemCategory.categoryName))])]),_c('div',{staticClass:\"column is-one-quarter\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(companyItemCategory.displayName),expression:\"companyItemCategory.displayName\"}],staticClass:\"input\",attrs:{\"type\":\"text\"},domProps:{\"value\":(companyItemCategory.displayName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(companyItemCategory, \"displayName\", $event.target.value)}}})]),_c('div',{staticClass:\"column is-one-quarter\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(companyItemCategory.printName),expression:\"companyItemCategory.printName\"}],staticClass:\"input\",attrs:{\"type\":\"text\"},domProps:{\"value\":(companyItemCategory.printName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(companyItemCategory, \"printName\", $event.target.value)}}})]),_c('div',{staticClass:\"column is-one-quarter is-flex is-justify-content-center\"},[_c('div',{staticClass:\"pretty p-icon p-curve p-smooth m-0 p-bigger is-two-third\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(companyItemCategory.isEnabled),expression:\"companyItemCategory.isEnabled\"}],attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(companyItemCategory.isEnabled)?_vm._i(companyItemCategory.isEnabled,null)>-1:(companyItemCategory.isEnabled)},on:{\"change\":function($event){var $$a=companyItemCategory.isEnabled,$$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(companyItemCategory, \"isEnabled\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(companyItemCategory, \"isEnabled\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(companyItemCategory, \"isEnabled\", $$c)}}}}),_vm._m(2,true)])])])])})],2)]):_c('div',{staticClass:\"is-flex is-justify-content-center pt-5\"},[_c('div',{staticClass:\"notification is-danger is-flex is-justify-content-center is-size-4\",staticStyle:{\"width\":\"50%\"}},[_vm._v(\" You do not have permissions on this page \")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"column\"},[_c('p',{staticClass:\"title\"},[_vm._v(\"Item Category\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"category-title mb-2 mt-5\"},[_c('div',{staticClass:\"columns\"},[_c('div',{staticClass:\"column is-one-quarter\"},[_c('label',{staticClass:\"label pl-1\"},[_vm._v(\"Category Name\")])]),_c('div',{staticClass:\"column is-one-quarter\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Display Name\")])]),_c('div',{staticClass:\"column is-one-quarter\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Print Name\")])]),_c('div',{staticClass:\"column is-one-quarter is-flex is-justify-content-center\"},[_c('label',{staticClass:\"label\"},[_vm._v(\"Enabled\")])])])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"state p-info\"},[_c('i',{staticClass:\"icon mdi mdi-check\"}),_c('label')])\n}]\n\nexport { render, staticRenderFns }","\r\n
\r\n
\r\n \r\n
\r\n
\r\n
Item Category
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n {{ savingStatus }}\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
{{ companyItemCategory.categoryName }}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n You do not have permissions on this page\r\n
\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--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!./CompanyItemCategorySetting.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!./CompanyItemCategorySetting.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./CompanyItemCategorySetting.vue?vue&type=template&id=d86a44d4&scoped=true\"\nimport script from \"./CompanyItemCategorySetting.vue?vue&type=script&lang=js\"\nexport * from \"./CompanyItemCategorySetting.vue?vue&type=script&lang=js\"\nimport style0 from \"./CompanyItemCategorySetting.vue?vue&type=style&index=0&id=d86a44d4&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 \"d86a44d4\",\n null\n \n)\n\nexport default component.exports","import { mapGetters, mapActions } from 'vuex'\n\nconst moduleName = 'companysetting'\n\nexport default {\n data() {\n return {\n savingStatus: null,\n showSavingStatus: false,\n toastNotificationEnabled: false\n }\n },\n computed: {\n ...mapGetters(moduleName, {\n baseSnapshot: 'baseSnapshot',\n currentSnapshot: 'currentSnapshot',\n hasError: 'hasError',\n saving: 'saving',\n snapshotDiff: 'snapshotDiff',\n snapshots: 'snapshots'\n }),\n ...mapGetters([\n 'debounceDelay'\n ])\n },\n watch: {\n hasError(val) {\n if (val) {\n this.$notification.error('','Save Failed')\n // this.$toast.open({\n // message: 'Save Failed',\n // type: 'is-danger',\n // duration: 3000\n // })\n }\n },\n saving(val) {\n if (!this.toastNotificationEnabled) {\n this.showSavingStatus = true\n }\n this.savingStatus = val ? 'Saving ...' : 'Saved'\n !this.hasError && !val && setTimeout(() => {\n this.showSavingStatus = false\n }, 5000)\n }\n },\n methods: {\n ...mapActions(moduleName, ['getStoreItem', 'editStoreItem',\n 'clearSnapshots', 'saveSnapshot']),\n\n openToastNotification() {\n if (!this.hasError) {\n this.$notification.success('','Information has been successfully saved')\n\n // this.$toast.open({\n // message: 'Information has been successfully saved',\n // type: 'is-success',\n // duration: 3000\n // })\n }\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","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","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!./CompanyItemCategorySetting.vue?vue&type=style&index=0&id=d86a44d4&prod&lang=scss&scoped=true\""],"sourceRoot":""}