{"version":3,"sources":["webpack:///./src/gamification/views/RewardsFormView.vue?38f1","webpack:///./src/gamification/views/RewardsFormView.vue?4d3c","webpack:///src/gamification/views/RewardsFormView.vue","webpack:///./src/gamification/views/RewardsFormView.vue?67c6","webpack:///./src/gamification/views/RewardsFormView.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","directives","name","rawName","value","expression","domProps","on","$event","target","composing","rewardTitle","rewardCoins","file","imageMaxSize","error","fileInput","_v","_s","message","_e","Array","isArray","reUse","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","isBeingSaved","sendData","staticRenderFns","data","sessionStore","components","NavBar","InputFile","computed","userIsAParent","childId","childSelectedId","userId","methods","saveFile","event","files","component"],"mappings":"uIAAA,yBAAukB,EAAG,G,yCCA1kB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,MAAM,CAAC,MAAQ,iBAAiBF,EAAG,MAAM,CAACG,YAAY,eAAe,CAACH,EAAG,MAAM,CAACG,YAAY,iFAAiF,CAACH,EAAG,QAAQ,CAACI,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOX,EAAe,YAAEY,WAAW,gBAAgBL,YAAY,6CAA6CD,MAAM,CAAC,KAAO,OAAO,YAAc,4BAA4B,SAAW,IAAIO,SAAS,CAAC,MAASb,EAAe,aAAGc,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,YAAqBjB,EAAIkB,YAAYH,EAAOC,OAAOL,WAAUP,EAAG,QAAQ,CAACI,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOX,EAAe,YAAEY,WAAW,gBAAgBL,YAAY,gCAAgCD,MAAM,CAAC,KAAO,SAAS,YAAc,iBAAiB,SAAW,IAAIO,SAAS,CAAC,MAASb,EAAe,aAAGc,G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["import mod from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardsFormView.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardsFormView.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('nav-bar',{attrs:{\"title\":'New Rewards'}}),_c('div',{staticClass:\"mobile py-4\"},[_c('div',{staticClass:\"atm-desktop-max-width d-flex gap-4 flex-column justify-content-center mx-auto\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.rewardTitle),expression:\"rewardTitle\"}],staticClass:\"atm-input-title font-weight-600 w-100 mt-3\",attrs:{\"type\":\"text\",\"placeholder\":\"Add title for new reward*\",\"required\":\"\"},domProps:{\"value\":(_vm.rewardTitle)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.rewardTitle=$event.target.value}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.rewardCoins),expression:\"rewardCoins\"}],staticClass:\"atm-input border-left-0 w-100\",attrs:{\"type\":\"number\",\"placeholder\":\"Coins required\",\"required\":\"\"},domProps:{\"value\":(_vm.rewardCoins)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.rewardCoins=$event.target.value}}}),_c('div',{staticClass:\"my-2\"},[_c('input-file',{attrs:{\"file\":_vm.file,\"imageMaxSize\":_vm.imageMaxSize,\"error\":_vm.error,\"fileInput\":_vm.fileInput},on:{\"update:fileData\":function($event){_vm.file = $event},\"update:fileInput\":function($event){_vm.fileInput = $event},\"update:error\":function($event){_vm.error = $event}}}),_c('small',{staticClass:\"text-muted d-block\"},[_vm._v(\" Maximum image size 9 MB \")]),(_vm.error.value)?_c('small',{staticClass:\"text-danger d-block\"},[_vm._v(\" \"+_vm._s(_vm.error.message)+\" \")]):_vm._e()],1),_c('div',{staticClass:\"d-flex align-items-center \"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.reUse),expression:\"reUse\"}],attrs:{\"id\":\"reUseCheckBox\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.reUse)?_vm._i(_vm.reUse,null)>-1:(_vm.reUse)},on:{\"change\":function($event){var $$a=_vm.reUse,$$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.reUse=$$a.concat([$$v]))}else{$$i>-1&&(_vm.reUse=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.reUse=$$c}}}}),_c('label',{staticClass:\"material-icons-round ml-0\",attrs:{\"for\":\"reUseCheckBox\"}}),_c('label',{staticClass:\"m-0\"},[_vm._v(\"Allow reuse of this reward\")])]),_c('button',{staticClass:\"atm-button bg-main mt-2 mb-4 w-50 mx-auto\",attrs:{\"type\":\"submit\",\"disabled\":_vm.isBeingSaved},on:{\"click\":_vm.sendData}},[(_vm.isBeingSaved)?_c('b-spinner',{attrs:{\"label\":\"Save\"}}):_c('span',[_vm._v(\"Save\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n \n \n \n \n \n \n Maximum image size 9 MB\n \n \n {{ error.message }}\n \n \n \n \n \n Allow reuse of this reward\n \n \n \n Save\n \n \n \n \n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardsFormView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RewardsFormView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RewardsFormView.vue?vue&type=template&id=61e0a65e&\"\nimport script from \"./RewardsFormView.vue?vue&type=script&lang=js&\"\nexport * from \"./RewardsFormView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RewardsFormView.vue?vue&type=style&index=0&lang=scss&\"\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"],"sourceRoot":""}