{"version":3,"sources":["webpack:///./src/@core/components/b-card-code/index.js","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue?54ae","webpack:///./src/views/forms/form-repeater/FormRepeater.vue?cf28","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue?632b","webpack:///./src/views/forms/form-repeater/code.js","webpack:///src/views/forms/form-repeater/FormRepeaterBasic.vue","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue?d6e4","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue","webpack:///src/views/forms/form-repeater/FormRepeater.vue","webpack:///./src/views/forms/form-repeater/FormRepeater.vue?b4f1","webpack:///./src/views/forms/form-repeater/FormRepeater.vue","webpack:///./src/@core/mixins/ui/transition.js"],"names":["BCardCode","render","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","scopedSlots","_u","key","fn","_v","_s","codeBasic","proxy","ref","staticClass","style","height","trHeight","on","$event","preventDefault","repeateAgain","apply","arguments","_l","item","index","id","refInFor","directives","name","rawName","value","expression","modifiers","removeItem","components","BForm","BRow","BCol","BButton","BFormGroup","BFormInput","Ripple","mixins","data","items","selected","selected1","prevHeight","nextTodoId","mounted","initTrHeight","created","window","addEventListener","destroyed","removeEventListener","methods","push","$nextTick","splice","trTrimHeight","$refs","row","offsetHeight","trSetHeight","component","FormRepeaterBasic","heightTransition","trAddHeight","val","heightValue","Number","substring","length"],"mappings":"gHAAA,gBAEeA,e,oCCFf,W,qECAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,OAAO,CAACF,EAAG,wBAAwB,IAAI,IAAI,IACvLG,EAAkB,G,yBCDlB,EAAS,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF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AGEwC,QA1BF,WA2BIrD,KAAKsD,gBAEPC,QA7BF,WA8BIC,OAAOC,iBAAiB,SAAUzD,KAAKsD,eAEzCI,UAhCF,WAiCIF,OAAOG,oBAAoB,SAAU3D,KAAKsD,eAE5CM,QAAS,CACPrC,aADJ,WACA,WACMvB,KAAKgD,MAAMa,KAAK,CACdhC,GAAI7B,KAAKoD,YAAcpD,KAAKoD,aAG9BpD,KAAK8D,WAAU,WACb,EAAR,6CAGIzB,WAVJ,SAUA,GACMrC,KAAKgD,MAAMe,OAAOnC,EAAO,GACzB5B,KAAKgE,aAAahE,KAAKiE,MAAMC,IAAI,GAAGC,eAEtCb,aAdJ,WAcA,WACMtD,KAAKoE,YAAY,MACjBpE,KAAK8D,WAAU,WACb,EAAR,6CCtLyX,I,wBCQrXO,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCJf,GACE/B,WAAY,CACVE,KAAJ,OACIC,KAAJ,OAEI6B,kBAAJ,ICpBoX,ICOhX,EAAY,eACd,EACAxE,EACAQ,GACA,EACA,KACA,KACA,MAIa,e,2FClBFiE,EAAmB,CAa9BxB,KAb8B,WAc5B,MAAO,CACL5B,SAAU,OAGdyC,QAAS,CACPY,YADO,SACKC,GAQV,IAAMC,EAAcC,OAAO3E,KAAKmB,SAASyD,UAAU,EAAG5E,KAAKmB,SAAS0D,OAAS,IAC7E7E,KAAKmB,SAAL,UAAmBuD,EAAcC,OAAOF,GAAxC,OAEFT,aAZO,SAYMS,GAQX,IAAMC,EAAcC,OAAO3E,KAAKmB,SAASyD,UAAU,EAAG5E,KAAKmB,SAAS0D,OAAS,IAC7E7E,KAAKmB,SAAL,UAAmBuD,EAAcC,OAAOF,GAAxC,OAEFL,YAvBO,SAuBKK,GASQzE,KAAKmB,SAAX,OAARsD,EAA8B,OAC7B,UAAmBE,OAAOF,GAA1B","file":"js/chunk-11e88388.90255201.js","sourcesContent":["import BCardCode from './BCardCode.vue'\n\nexport default BCardCode\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!./FormRepeaterBasic.vue?vue&type=style&index=0&id=75419b40&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('form-repeater-basic')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card-code',{attrs:{\"title\":\"Repeating Forms\"},scopedSlots:_vm._u([{key:\"code\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.codeBasic)+\" \")]},proxy:true}])},[_c('div',[_c('b-form',{ref:\"form\",staticClass:\"repeater-form\",style:({height: _vm.trHeight}),on:{\"submit\":function($event){$event.preventDefault();return _vm.repeateAgain.apply(null, arguments)}}},_vm._l((_vm.items),function(item,index){return _c('b-row',{key:item.id,ref:\"row\",refInFor:true,attrs:{\"id\":item.id}},[_c('b-col',{attrs:{\"md\":\"4\"}},[_c('b-form-group',{attrs:{\"label\":\"Item Name\",\"label-for\":\"item-name\"}},[_c('b-form-input',{attrs:{\"id\":\"item-name\",\"type\":\"text\",\"placeholder\":\"Vuexy Admin Template\"}})],1)],1),_c('b-col',{attrs:{\"md\":\"2\"}},[_c('b-form-group',{attrs:{\"label\":\"Cost\",\"label-for\":\"cost\"}},[_c('b-form-input',{attrs:{\"id\":\"cost\",\"type\":\"number\",\"placeholder\":\"32\"}})],1)],1),_c('b-col',{attrs:{\"md\":\"2\"}},[_c('b-form-group',{attrs:{\"label\":\"Quantity\",\"label-for\":\"quantity\"}},[_c('b-form-input',{attrs:{\"id\":\"quantity\",\"type\":\"number\",\"placeholder\":\"1\"}})],1)],1),_c('b-col',{attrs:{\"lg\":\"2\",\"md\":\"1\"}},[_c('b-form-group',{attrs:{\"label\":\"Price\",\"label-for\":\"price\"}},[_c('b-form-input',{attrs:{\"id\":\"pzrice\",\"value\":\"32$\",\"plaintext\":\"\"}})],1)],1),_c('b-col',{staticClass:\"mb-50\",attrs:{\"lg\":\"2\",\"md\":\"3\"}},[_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(234, 84, 85, 0.15)'),expression:\"'rgba(234, 84, 85, 0.15)'\",modifiers:{\"400\":true}}],staticClass:\"mt-0 mt-md-2\",attrs:{\"variant\":\"outline-danger\"},on:{\"click\":function($event){return _vm.removeItem(index)}}},[_c('feather-icon',{staticClass:\"mr-25\",attrs:{\"icon\":\"XIcon\"}}),_c('span',[_vm._v(\"Delete\")])],1)],1),_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('hr')])],1)}),1)],1),_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(255, 255, 255, 0.15)'),expression:\"'rgba(255, 255, 255, 0.15)'\",modifiers:{\"400\":true}}],attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.repeateAgain}},[_c('feather-icon',{staticClass:\"mr-25\",attrs:{\"icon\":\"PlusIcon\"}}),_c('span',[_vm._v(\"Add New\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const codeBasic = `\n\n\n\n\n\n`\n\nexport const codeInfo = 'default'\n","\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!./FormRepeaterBasic.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!./FormRepeaterBasic.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormRepeaterBasic.vue?vue&type=template&id=75419b40&scoped=true&\"\nimport script from \"./FormRepeaterBasic.vue?vue&type=script&lang=js&\"\nexport * from \"./FormRepeaterBasic.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FormRepeaterBasic.vue?vue&type=style&index=0&id=75419b40&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 \"75419b40\",\n null\n \n)\n\nexport default component.exports","\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!./FormRepeater.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!./FormRepeater.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormRepeater.vue?vue&type=template&id=6e9a039c&\"\nimport script from \"./FormRepeater.vue?vue&type=script&lang=js&\"\nexport * from \"./FormRepeater.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","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(this.trHeight.substring(0, this.trHeight.length - 2))\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(this.trHeight.substring(0, this.trHeight.length - 2))\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"],"sourceRoot":""}