{"version":3,"sources":["webpack:///./node_modules/bootstrap-vue/esm/components/form/form.js","webpack:///./src/views/Plants/Ingredients/IngredientCodeChange.vue?01b4","webpack:///src/views/Plants/Ingredients/IngredientCodeChange.vue","webpack:///./src/views/Plants/Ingredients/IngredientCodeChange.vue?a173","webpack:///./src/views/Plants/Ingredients/IngredientCodeChange.vue?ac1c","webpack:///./src/views/Plants/Ingredients/IngredientCodeChange.vue?83a7","webpack:///./src/@core/mixins/ui/transition.js","webpack:///./node_modules/vue-ripple-directive/src/ripple.js"],"names":["props","id","inline","novalidate","validated","BForm","extend","name","functional","render","h","_ref","data","children","class","attrs","_vm","this","_h","$createElement","_c","_self","staticClass","$t","on","$event","fetchIngredients","model","value","callback","$$v","searchQuery","expression","updateCodes","_v","_s","ref","style","height","trHeight","preventDefault","repeateAgain","ingredients","fields","scopedSlots","_u","key","fn","item","ingredientname","index","oldcode","editColumn","event","updateKod","staticRenderFns","components","BButton","BFormInput","BCard","BTable","directives","Ripple","mixins","heightTransition","beforeRouteEnter","to","from","next","meta","breadcrumb","push","text","VueI18n","t","active","getUserData","allCodes","cell","label","sortable","filterable","thClass","tdClass","editable","mounted","_this","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","$nextTick","document","querySelectorAll","forEach","x","addEventListener","e","which","backOrForward","code","focusSelectedInput","initTrHeight","stop","created","window","destroyed","removeEventListener","methods","newKod","_this2","_callee2","_yield$_this2$$http$g","_context2","$http","get","catch","$toast","component","ToastificationContent","icon","variant","sent","resultdata","filter","toLowerCase","startsWith","input","querySelector","concat","scrollInput","scrollIntoView","behavior","setTimeout","focus","_this3","_callee3","ikili","existItem","alreadyExists","result","_context3","undefined","map","deger","length","abrupt","some","y","indexOf","put","JSON","stringify","status","position","title","type","_this4","trSetHeight","$refs","form","scrollHeight","trAddHeight","val","heightValue","Number","substring","trTrimHeight","bind","el","binding","transition","setProps","Object","keys","modifiers","rippler","bg","color","zIndex","target","targetBorder","parseInt","getComputedStyle","replace","rect","getBoundingClientRect","left","top","width","offsetWidth","offsetHeight","dx","clientX","dy","clientY","maxX","Math","max","maxY","radius","sqrt","border","ripple","createElement","rippleContainer","className","marginTop","marginLeft","borderRadius","pointerEvents","backgroundColor","overflow","storedTargetPosition","clearRipple","parentNode","removeChild","clearPosition","i","childNodes","appendChild","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","direction","isNaN"],"mappings":"kHAAA,kGAKWA,EAAQ,eAAsB,CACvCC,GAAI,eAAS,QACbC,OAAQ,eAAS,QAAmB,GACpCC,WAAY,eAAS,QAAmB,GACxCC,UAAW,eAAS,QAAmB,IACtC,QAGQC,EAAqB,aAAIC,OAAO,CACzCC,KAAM,OACNC,YAAY,EACZR,MAAOA,EACPS,OAAQ,SAAgBC,EAAGC,GACzB,IAAIX,EAAQW,EAAKX,MACbY,EAAOD,EAAKC,KACZC,EAAWF,EAAKE,SACpB,OAAOH,EAAE,OAAQ,eAAUE,EAAM,CAC/BE,MAAO,CACL,cAAed,EAAME,OACrB,gBAAiBF,EAAMI,WAEzBW,MAAO,CACLd,GAAID,EAAMC,GACVE,WAAYH,EAAMG,cAElBU,O,2CC9BR,IAAIJ,EAAS,WAAa,IAAIO,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,MAAM,CAACE,YAAY,mCAAmC,CAACF,EAAG,eAAe,CAACE,YAAY,sBAAsBP,MAAM,CAAC,YAAcC,EAAIO,GAAG,WAAWC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOT,EAAIU,qBAAqBC,MAAM,CAACC,MAAOZ,EAAe,YAAEa,SAAS,SAAUC,GAAMd,EAAIe,YAAYD,GAAKE,WAAW,iBAAiBZ,EAAG,WAAW,CAACL,MAAM,CAAC,QAAU,WAAWS,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOT,EAAIiB,iBAAiB,CAACjB,EAAIk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rC,EAAOlJ,MAAMwH,SADW,WAAzB2D,EACyBA,EAEA,MAIjCxN,EAAM8K,WAAa,KA5DG,aAAzB0C,IACAjC,EAAOlJ,MAAMwH,SAAW,YAG5BmD,EAAgBe,YAAYjB,GAC5BvB,EAAOwC,YAAYf,GAEnBF,EAAOzK,MAAM8K,WAAehB,EAAK,KACjCW,EAAOzK,MAAM6K,UAAeb,EAAK,KAKjCW,EAAgB3K,MAAM2J,MAAUA,EAAQ,KACxCgB,EAAgB3K,MAAMC,OAAUA,EAAS,KACzC0K,EAAgB3K,MAAM2L,oBAAuB3L,EAAM2L,oBACnDhB,EAAgB3K,MAAM4L,qBAAwB5L,EAAM4L,qBACpDjB,EAAgB3K,MAAM6L,uBAA0B7L,EAAM6L,uBACtDlB,EAAgB3K,MAAM8L,wBAA2B9L,EAAM8L,wBAEvDnB,EAAgB3K,MAAM+L,UAAY,MAElC5F,YAAW,WACPsE,EAAOzK,MAAM2J,MAAkB,EAATW,EAAa,KACnCG,EAAOzK,MAAMC,OAAkB,EAATqK,EAAa,KACnCG,EAAOzK,MAAM8K,WAAehB,EAAKQ,EAAS,KAC1CG,EAAOzK,MAAM6K,UAAeb,EAAKM,EAAS,OAC3C,GAoCe,cAAftJ,EAAM0G,KACLa,EAAGzE,iBAAiB,UAAWsH,GAAa,GAE5CA,OAMhB,SAAS1C,EAASG,EAAUlL,GACxBkL,EAAUjF,SAAQ,SAASjD,GACpBqL,MAAM7D,OAAOxH,IACZhD,EAAMqD,MAAQL,EAEdhD,EAAM8K,WAAa9H,KAIhB","file":"js/chunk-f2de1328.f88c30be.js","sourcesContent":["import { Vue, mergeData } from '../../vue';\nimport { NAME_FORM } from '../../constants/components';\nimport { PROP_TYPE_BOOLEAN, PROP_TYPE_STRING } from '../../constants/props';\nimport { makeProp, makePropsConfigurable } from '../../utils/props'; // --- Props ---\n\nexport var props = makePropsConfigurable({\n id: makeProp(PROP_TYPE_STRING),\n inline: makeProp(PROP_TYPE_BOOLEAN, false),\n novalidate: makeProp(PROP_TYPE_BOOLEAN, false),\n validated: makeProp(PROP_TYPE_BOOLEAN, false)\n}, NAME_FORM); // --- Main component ---\n// @vue/component\n\nexport var BForm = /*#__PURE__*/Vue.extend({\n name: NAME_FORM,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h('form', mergeData(data, {\n class: {\n 'form-inline': props.inline,\n 'was-validated': props.validated\n },\n attrs: {\n id: props.id,\n novalidate: props.novalidate\n }\n }), children);\n }\n});","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',[_c('div',{staticClass:\"mb-2 d-flex justify-content-end\"},[_c('b-form-input',{staticClass:\"d-inline-block mr-1\",attrs:{\"placeholder\":_vm.$t('search')},on:{\"input\":function($event){return _vm.fetchIngredients()}},model:{value:(_vm.searchQuery),callback:function ($$v) {_vm.searchQuery=$$v},expression:\"searchQuery\"}}),_c('b-button',{attrs:{\"variant\":\"success\"},on:{\"click\":function($event){return _vm.updateCodes()}}},[_vm._v(_vm._s(_vm.$t(\"save\")))])],1),_c('div',[_c('b-form',{ref:\"form\",staticClass:\"repeater-form\",style:({ height: _vm.trHeight }),on:{\"submit\":function($event){$event.preventDefault();return _vm.repeateAgain($event)}}},[_c('b-table',{ref:\"refIngredienttListTable\",attrs:{\"items\":_vm.ingredients,\"striped\":\"\",\"small\":false,\"fields\":_vm.fields,\"responsive\":\"\",\"show-empty\":\"\",\"empty-text\":_vm.$t('noRecords')},scopedSlots:_vm._u([{key:\"cell(newKod)\",fn:function(data){return [_c('div',{staticClass:\"editable\"},[_c('b-form-input',{staticClass:\"editable text-right\",attrs:{\"id\":data.item.ingredientname + data.index + 'code',\"value\":data.item.oldcode,\"data-id\":'ingredient-' + data.index,\"autocomplete\":\"off\"},on:{\"focus\":function($event){_vm.editColumn.index = data.index},\"input\":function (event) { return _vm.updateKod(event, data); }}})],1)]}}])})],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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!./IngredientCodeChange.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!./IngredientCodeChange.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./IngredientCodeChange.vue?vue&type=template&id=9251ddda&scoped=true\"\nimport script from \"./IngredientCodeChange.vue?vue&type=script&lang=js\"\nexport * from \"./IngredientCodeChange.vue?vue&type=script&lang=js\"\nimport style0 from \"./IngredientCodeChange.vue?vue&type=style&index=0&id=9251ddda&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 \"9251ddda\",\n null\n \n)\n\nexport default component.exports","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!./IngredientCodeChange.vue?vue&type=style&index=0&id=9251ddda&prod&lang=scss&scoped=true\"","export const heightTransition = {\n /*\n\n HowTo:\n 1. Add dynamic style to element and set style as `trHeight`\n 2. Set transition speed using `transition: 0.35s height;` <= you can use appropriate value;\n 3. Optionally you can set `overflow: hidden;` to hide element overflow while height is animated.\n 4. Set initial height using `trSetHeight` before any operation. [mounted hook is recommended - You can use `ref` for dynamic contents]\n 5. Toggle height using height operations 🍻\n 6. Toggle usage of $nextTick for height operations is any issue occur [experimental] 🔬\n\n */\n\n data() {\n return {\n trHeight: null,\n };\n },\n methods: {\n trAddHeight(val) {\n // Add height to existing height\n // Usage: Where new element is append or more height is added (e.g. list append)\n\n /* Assumes:\n - Height is assigned and is `String`\n - Incoming value is valid number in `Number` or `String`\n */\n const heightValue = Number(\n this.trHeight.substring(0, this.trHeight.length - 2)\n );\n this.trHeight = `${heightValue + Number(val)}px`;\n },\n trTrimHeight(val) {\n // Remove height from existing height\n // Usage: Where new element is removed or height is remove (e.g. list pop/ele remove)\n\n /* Assumes:\n - Height is assigned and is `String`\n - Incoming value is valid number in `Number` or `String`\n */\n const heightValue = Number(\n this.trHeight.substring(0, this.trHeight.length - 2)\n );\n this.trHeight = `${heightValue - Number(val)}px`;\n },\n trSetHeight(val) {\n // Set height\n // Usage: Mostly for assigning initial value from mounted hook\n\n /* Assumes:\n - Height is not assigned and what to assign for add/remove operation\n - What to set height at something for odd usage\n - Incoming value is valid number in `Number` or `String`\n */\n if (val === null) this.trHeight = \"auto\";\n else this.trHeight = `${Number(val)}px`;\n },\n },\n};\n\n// Ignore below for now. We will remove it when we add more transition in future.\nexport const _ = null;\n","var Ripple = {\n bind: function(el, binding){\n\n // Default values.\n var props = {\n event: 'mousedown',\n transition: 600\n };\n\n setProps(Object.keys(binding.modifiers),props);\n\n el.addEventListener(props.event, function(event) {\n rippler(event, el, binding.value);\n });\n\n var bg = binding.value || Ripple.color || 'rgba(0, 0, 0, 0.35)';\n var zIndex = Ripple.zIndex || '9999';\n\n function rippler(event, el) {\n var target = el;\n // Get border to avoid offsetting on ripple container position\n var targetBorder = parseInt((getComputedStyle(target).borderWidth).replace('px', ''));\n\n // Get necessary variables\n var rect = target.getBoundingClientRect(),\n left = rect.left,\n top = rect.top,\n width = target.offsetWidth,\n height = target.offsetHeight,\n dx = event.clientX - left,\n dy = event.clientY - top,\n maxX = Math.max(dx, width - dx),\n maxY = Math.max(dy, height - dy),\n style = window.getComputedStyle(target),\n radius = Math.sqrt((maxX * maxX) + (maxY * maxY)),\n border = (targetBorder > 0 ) ? targetBorder : 0;\n\n // Create the ripple and its container\n var ripple = document.createElement(\"div\"),\n rippleContainer = document.createElement(\"div\");\n rippleContainer.className = 'ripple-container';\n ripple.className = 'ripple';\n\n //Styles for ripple\n ripple.style.marginTop= '0px';\n ripple.style.marginLeft= '0px';\n ripple.style.width= '1px';\n ripple.style.height= '1px';\n ripple.style.transition= 'all ' + props.transition + 'ms cubic-bezier(0.4, 0, 0.2, 1)';\n ripple.style.borderRadius= '50%';\n ripple.style.pointerEvents= 'none';\n ripple.style.position= 'relative';\n ripple.style.zIndex= zIndex;\n ripple.style.backgroundColor = bg;\n\n //Styles for rippleContainer\n rippleContainer.style.position= 'absolute';\n rippleContainer.style.left = 0 - border + 'px';\n rippleContainer.style.top = 0 - border + 'px';\n rippleContainer.style.height = '0';\n rippleContainer.style.width = '0';\n rippleContainer.style.pointerEvents = 'none';\n rippleContainer.style.overflow = 'hidden';\n\n // Store target position to change it after\n var storedTargetPosition = ((target.style.position).length > 0) ? target.style.position : getComputedStyle(target).position;\n // Change target position to relative to guarantee ripples correct positioning\n if (storedTargetPosition !== 'relative') {\n target.style.position = 'relative';\n }\n\n rippleContainer.appendChild(ripple);\n target.appendChild(rippleContainer);\n\n ripple.style.marginLeft = dx + \"px\";\n ripple.style.marginTop = dy + \"px\";\n\n // No need to set positioning because ripple should be child of target and to it's relative position.\n // rippleContainer.style.left = left + (((window.pageXOffset || document.scrollLeft) - (document.clientLeft || 0)) || 0) + \"px\";\n // rippleContainer.style.top = top + (((window.pageYOffset || document.scrollTop) - (document.clientTop || 0)) || 0) + \"px\";\n rippleContainer.style.width = width + \"px\";\n rippleContainer.style.height = height + \"px\";\n rippleContainer.style.borderTopLeftRadius = style.borderTopLeftRadius;\n rippleContainer.style.borderTopRightRadius = style.borderTopRightRadius;\n rippleContainer.style.borderBottomLeftRadius = style.borderBottomLeftRadius;\n rippleContainer.style.borderBottomRightRadius = style.borderBottomRightRadius;\n\n rippleContainer.style.direction = 'ltr';\n\n setTimeout(function() {\n ripple.style.width = radius * 2 + \"px\";\n ripple.style.height = radius * 2 + \"px\";\n ripple.style.marginLeft = dx - radius + \"px\";\n ripple.style.marginTop = dy - radius + \"px\";\n }, 0);\n\n function clearRipple() {\n setTimeout(function() {\n ripple.style.backgroundColor = \"rgba(0, 0, 0, 0)\";\n }, 250);\n\n // Timeout set to get a smooth removal of the ripple\n setTimeout(function() {\n rippleContainer.parentNode.removeChild(rippleContainer);\n }, 850);\n\n el.removeEventListener('mouseup', clearRipple, false);\n\n // After removing event set position to target to it's original one\n // Timeout it's needed to avoid jerky effect of ripple jumping out parent target\n setTimeout(function () {\n\n var clearPosition = true;\n for(var i = 0; i < target.childNodes.length; i++) {\n if(target.childNodes[i].className === 'ripple-container') {\n clearPosition = false;\n }\n }\n\n if(clearPosition) {\n if(storedTargetPosition !== 'static') {\n target.style.position = storedTargetPosition;\n } else {\n target.style.position = '';\n }\n }\n\n }, props.transition + 250)\n }\n\n if(event.type === 'mousedown') {\n el.addEventListener('mouseup', clearRipple, false);\n } else {\n clearRipple();\n }\n }\n }\n};\n\nfunction setProps(modifiers,props) {\n modifiers.forEach(function(item) {\n if(isNaN(Number(item)))\n props.event = item;\n else\n props.transition = item;\n });\n}\n\nexport default Ripple;"],"sourceRoot":""}