{"version":3,"sources":["webpack:///./src/components/Panels.vue?ed51","webpack:///src/components/Panels.vue","webpack:///./src/components/Panels.vue?f141","webpack:///./src/components/Panels.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","data_object","staticRenderFns","name","components","VForm","props","object_name","String","object_id","data","panels","expanded","loading","comps","mounted","that","console","log","response","beforeDestroy","methods","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,YAAcN,EAAIO,gBAAgB,IAC5JC,EAAkB,G,kECsFtB,0BACA,OACEC,KAAM,SACNC,WAAY,CACVC,MAAO,WAAX,8FAEEC,MAAO,CACLC,YAAaC,OACbC,UAAWD,QAEbE,KATF,WAUI,MAAO,CACLC,OAAQ,GACRC,SAAU,GACVC,SAAS,EACTC,MAAO,GACPb,YAAa,KAGjBc,QAlBF,WAmBI,IAAIL,EAAO,CAAf,uDACQM,EAAOrB,KACX,EAAJ,uDACMsB,QAAQC,IAAIC,EAAST,MAErBM,EAAKf,YAAckB,EAAST,SAgBhCU,cAxCF,aAyCEC,QAAS,ICjIqU,I,6CCO5UC,EAAY,eACd,EACA7B,EACAS,GACA,EACA,KACA,WACA,MAIa,aAAAoB,EAAiB,QAKhC,IAAkBA,EAAW,CAACjB,QAAA","file":"js/chunk-2d0d7510.25183e39.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-form',{attrs:{\"data_object\":_vm.data_object}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div>\r\n    <v-form :data_object=\"data_object\">\r\n      <!-- <v-expansion-panels v-model=\"expanded\" multiple>\r\n        <template v-for=\"(n, i) in panels\">\r\n          <v-slide-y-transition :key=\"i\">\r\n            <v-expansion-panel\r\n              elevation-20\r\n              :class=\"{\r\n                'ma-2 pa-2': $vuetify.breakpoint.mdAndUp,\r\n              }\"\r\n            >\r\n              <v-expansion-panel-header>\r\n                <h4 class=\"subheading grey--text\" elevation-10>\r\n                  {{ n.title.text }}\r\n                </h4>\r\n              </v-expansion-panel-header>\r\n              <v-expansion-panel-content>\r\n             \r\n                <component\r\n                  :is=\"comps[i] || n.data_object.schema[`x-display`]\"\r\n                  :ref=\"'comp_' + i\"\r\n                  v-if=\"\r\n                    n.data_object.schema ||\r\n                      n.data_object.listSchema ||\r\n                      n.getFreshData\r\n                  \"\r\n                  v-bind=\"n\"\r\n                  :v-bind=\"n\"\r\n                />\r\n              </v-expansion-panel-content>\r\n          \r\n\r\n              <v-container\r\n                :style=\"\r\n                  $vuetify.breakpoint.mdAndUp\r\n                    ? {\r\n                        position: 'fixed',\r\n                        bottom: '2px',\r\n                        left: '80px',\r\n                        'margin-left': '100px',\r\n                        'background-color': '#f8f8f8',\r\n                        'z-index': '10000',\r\n                      }\r\n                    : {\r\n                        position: 'fixed',\r\n                        bottom: '0',\r\n                        'background-color': '#f8f8f8',\r\n                        'z-index': '10000',\r\n                      }\r\n                \"\r\n              >\r\n                <div\r\n                  :style=\"{\r\n                    width: '100%',\r\n                  }\"\r\n                >\r\n                  <v-btn\r\n                    color=\"primary\"\r\n                    :loading=\"loading\"\r\n                    :style=\"\r\n                      $vuetify.breakpoint.mdAndUp\r\n                        ? {\r\n                            display: 'block !important',\r\n                            margin: '0 auto !important',\r\n                          }\r\n                        : ''\r\n                    \"\r\n                  >\r\n                    Save\r\n                  </v-btn>\r\n                </div>\r\n              </v-container>\r\n\r\n            </v-expansion-panel>\r\n\r\n          </v-slide-y-transition>\r\n        </template>\r\n      </v-expansion-panels> -->\r\n    </v-form>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport Vue from \"vue\";\r\nimport VueAxios from \"vue-axios\";\r\nimport axios from \"axios\";\r\nVue.use(VueAxios, axios);\r\nexport default {\r\n  name: \"Panels\",\r\n  components: {\r\n    VForm: () => import(\"../components/Form.vue\")\r\n  },\r\n  props: {\r\n    object_name: String,\r\n    object_id: String\r\n  },\r\n  data() {\r\n    return {\r\n      panels: [],\r\n      expanded: [],\r\n      loading: false,\r\n      comps: [],\r\n      data_object: {}\r\n    };\r\n  },\r\n  mounted() {\r\n    var data = { object_name: this.object_name, object_id: this.object_id };\r\n    var that = this;\r\n    axios.post(this.serverURL + \"/get_data\", data).then(response => {\r\n      console.log(response.data);\r\n\r\n      that.data_object = response.data;\r\n\r\n      // response.data.headers.forEach((h, i) => {\r\n      //   var panel = {};\r\n      //   panel.title = h;\r\n      //   panel.data_object = {};\r\n\r\n      //   panel.data_object.schema = response.data.schema.properties[h.value];\r\n      //   var step_type = panel.data_object.schema.step_type || \"Form\";\r\n      //   that.comps.push(() => import(\"@/components/\" + step_type));\r\n      //   panel.data_object.model = response.data.model[h.value];\r\n      //   that.panels.push(panel);\r\n      //   that.expanded.push(i);\r\n      // });\r\n    });\r\n  },\r\n  beforeDestroy() {},\r\n  methods: {}\r\n};\r\n</script>\r\n\r\n<style lang=\"css\" scoped></style>\r\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!./Panels.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!./Panels.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Panels.vue?vue&type=template&id=a91a0f54&scoped=true&\"\nimport script from \"./Panels.vue?vue&type=script&lang=js&\"\nexport * from \"./Panels.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  \"a91a0f54\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VForm } from 'vuetify/lib/components/VForm';\ninstallComponents(component, {VForm})\n"],"sourceRoot":""}