{"version":3,"sources":["webpack:///./src/@core/components/b-card-code/index.js","webpack:///./src/views/forms/form-repeater/FormRepeater.vue?bfc8","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue?7a2f","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","webpack:///./src/views/forms/form-repeater/FormRepeaterBasic.vue?83d8"],"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","_l","item","index","id","refInFor","directives","name","rawName","value","expression","modifiers","removeItem","components","BForm","BRow","BCol","BButton","BFormGroup","BFormInput","Ripple","mixins","heightTransition","data","items","selected","selected1","prevHeight","nextTodoId","mounted","initTrHeight","created","window","addEventListener","destroyed","removeEventListener","methods","push","$nextTick","trAddHeight","$refs","row","offsetHeight","splice","trTrimHeight","trSetHeight","form","scrollHeight","component","FormRepeaterBasic","val","heightValue","Number","substring","length"],"mappings":"gHAAA,gBAEeA,e,kECFf,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,wBCDlB,EAAS,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EA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AA,CACApC,eACA,KAAAwB,MAAAa,KAAA,CACAjC,GAAA,KAAAwB,YAAA,KAAAA,aAGA,KAAAU,UAAA,KACA,KAAAC,YAAA,KAAAC,MAAAC,IAAA,GAAAC,iBAGA9B,WAAAT,GACA,KAAAqB,MAAAmB,OAAAxC,EAAA,GACA,KAAAyC,aAAA,KAAAJ,MAAAC,IAAA,GAAAC,eAEAZ,eACA,KAAAe,YAAA,MACA,KAAAP,UAAA,KACA,KAAAO,YAAA,KAAAL,MAAAM,KAAAC,mBCtLyX,I,wBCQrXC,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCJA,GACfnC,WAAA,CACAE,YACAC,YAEAiC,sBCpBoX,ICOhX,EAAY,eACd,EACA1E,EACAQ,GACA,EACA,KACA,KACA,MAIa,e,2CClBf,kCAAO,MAAMuC,EAAmB,CAa9BC,OACE,MAAO,CACL3B,SAAU,OAGdwC,QAAS,CACPG,YAAYW,GAQV,MAAMC,EAAcC,OAAO3E,KAAKmB,SAASyD,UAAU,EAAG5E,KAAKmB,SAAS0D,OAAS,IAC7E7E,KAAKmB,SAAcuD,EAAcC,OAAOF,GAAvB,MAEnBN,aAAaM,GAQX,MAAMC,EAAcC,OAAO3E,KAAKmB,SAASyD,UAAU,EAAG5E,KAAKmB,SAAS0D,OAAS,IAC7E7E,KAAKmB,SAAcuD,EAAcC,OAAOF,GAAvB,MAEnBL,YAAYK,GASQzE,KAAKmB,SAAX,OAARsD,EAA8B,OACVE,OAAOF,GAAT,S,kCCnD5B","file":"js/chunk-150822ff.4daa8d87.js","sourcesContent":["import BCardCode from './BCardCode.vue'\r\n\r\nexport default BCardCode\r\n","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($event)}}},_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 = `\r\n\r\n\r\n\r\n\r\n\r\n`\r\n\r\nexport const codeInfo = 'default'\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!./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&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 \"75419b40\",\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!./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 = {\r\n /*\r\n\r\n HowTo:\r\n 1. Add dynamic style to element and set style as `trHeight`\r\n 2. Set transition speed using `transition: 0.35s height;` <= you can use appropriate value;\r\n 3. Optionally you can set `overflow: hidden;` to hide element overflow while height is animated.\r\n 4. Set initial height using `trSetHeight` before any operation. [mounted hook is recommended - You can use `ref` for dynamic contents]\r\n 5. Toggle height using height operations 🍻\r\n 6. Toggle usage of $nextTick for height operations is any issue occur [experimental] 🔬\r\n\r\n */\r\n\r\n data() {\r\n return {\r\n trHeight: null,\r\n }\r\n },\r\n methods: {\r\n trAddHeight(val) {\r\n // Add height to existing height\r\n // Usage: Where new element is append or more height is added (e.g. list append)\r\n\r\n /* Assumes:\r\n - Height is assigned and is `String`\r\n - Incoming value is valid number in `Number` or `String`\r\n */\r\n const heightValue = Number(this.trHeight.substring(0, this.trHeight.length - 2))\r\n this.trHeight = `${heightValue + Number(val)}px`\r\n },\r\n trTrimHeight(val) {\r\n // Remove height from existing height\r\n // Usage: Where new element is removed or height is remove (e.g. list pop/ele remove)\r\n\r\n /* Assumes:\r\n - Height is assigned and is `String`\r\n - Incoming value is valid number in `Number` or `String`\r\n */\r\n const heightValue = Number(this.trHeight.substring(0, this.trHeight.length - 2))\r\n this.trHeight = `${heightValue - Number(val)}px`\r\n },\r\n trSetHeight(val) {\r\n // Set height\r\n // Usage: Mostly for assigning initial value from mounted hook\r\n\r\n /* Assumes:\r\n - Height is not assigned and what to assign for add/remove operation\r\n - What to set height at something for odd usage\r\n - Incoming value is valid number in `Number` or `String`\r\n */\r\n if (val === null) this.trHeight = 'auto'\r\n else this.trHeight = `${Number(val)}px`\r\n },\r\n },\r\n}\r\n\r\n// Ignore below for now. We will remove it when we add more transition in future.\r\nexport const _ = null\r\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&prod&lang=scss&scoped=true&\""],"sourceRoot":""}