{"version":3,"sources":["webpack:///./src/components/Account/EditAccountRights.vue","webpack:///src/components/Account/EditAccountRights.vue","webpack:///./src/components/Account/EditAccountRights.vue?50a7","webpack:///./src/components/Account/EditAccountRights.vue?9b26"],"names":["render","_vm","this","_c","_self","staticClass","domProps","_s","$t","roleSettings","_l","roleSetting","key","index","concat","slice","i","idx","directives","name","rawName","value","expression","attrs","editModeDisabled","rightStateLabels","_q","on","$event","$set","_e","staticRenderFns","components","props","account","type","Object","required","accountCardColumnClass","String","default","isOwnAccount","Boolean","data","accountGroupIds","computed","created","buildRightsSettings","methods","AccountRoleId","AccountLevel","InvoiceRoleId","InvoiceLevel","LocationRoleId","LocationLevel","OptionRoleId","OptionLevel","PriceRoleId","PriceLevel","ReportRoleId","ReportLevel","ReservationRoleId","ReservationLevel","SpaceRoleId","SpaceLevel","VoucherRoleId","VoucherLevel","CompanyRoleId","CompanyLevel","CustomerRoleId","CustomerLevel","component"],"mappings":"qIAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,EAAG,QAAQ,CAACE,YAAY,iCAAiC,CAACF,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,MAAMA,EAAG,KAAK,CAACE,YAAY,oBAAoBC,SAAS,CAAC,UAAYL,EAAIM,GACrTN,EAAIO,GAAG,8DACJL,EAAG,KAAK,CAACE,YAAY,oBAAoBC,SAAS,CAAC,UAAYL,EAAIM,GACtEN,EAAIO,GAAG,8DACJL,EAAG,KAAK,CAACE,YAAY,oBAAoBC,SAAS,CAAC,UAAYL,EAAIM,GACtEN,EAAIO,GAAG,8DACJL,EAAG,KAAK,CAACE,YAAY,oBAAoBC,SAAS,CAAC,UAAYL,EAAIM,GACtEN,EAAIO,GAAG,oEACCP,EAAIQ,aAAcN,EAAG,QAAQF,EAAIS,GAAIT,EAA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AAA,KAAAvB,QAAAwB,YAAA,OACAC,aAAA,KAAAzB,QAAA0B,aAAA,OACAC,kBAAA,KAAA3B,QAAA4B,kBAAA,OACAC,YAAA,KAAA7B,QAAA8B,YAAA,OACAC,cAAA,KAAA/B,QAAAgC,cAAA,OACAC,cAAA,KAAAjC,QAAAkC,cAAA,OACAC,eAAA,KAAAnC,QAAAoC,eAAA,WCzHyW,I,YCOrWC,EAAY,eACd,EACAvE,EACA+B,GACA,EACA,KACA,KACA,MAIa,aAAAwC,E","file":"js/chunk-2d209b13.js?id=a20bd68e62aa177405e1","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"edit-account-rights\"},[_c('div',{staticClass:\"accountRights has-margin-top\"},[_c('table',{staticClass:\"table is-fullwidth is-striped\"},[_c('thead',[_c('tr',[_c('th'),_c('th',{staticClass:\"has-text-centered\",domProps:{\"innerHTML\":_vm._s(\n              _vm.$t('Components.Accounts.EditAccountRights.TableHeader_None')\n            )}}),_c('th',{staticClass:\"has-text-centered\",domProps:{\"innerHTML\":_vm._s(\n              _vm.$t('Components.Accounts.EditAccountRights.TableHeader_View')\n            )}}),_c('th',{staticClass:\"has-text-centered\",domProps:{\"innerHTML\":_vm._s(\n              _vm.$t('Components.Accounts.EditAccountRights.TableHeader_Edit')\n            )}}),_c('th',{staticClass:\"has-text-centered\",domProps:{\"innerHTML\":_vm._s(\n              _vm.$t('Components.Accounts.EditAccountRights.TableHeader_Delete')\n            )}})])]),(_vm.roleSettings)?_c('tbody',_vm._l((_vm.roleSettings),function(roleSetting,key,index){return _c('tr',{key:`as_${index}`},[_c('td',{domProps:{\"textContent\":_vm._s(\n              _vm.$t(\n                `Components.Accounts.EditAccountRights.Label_${key.slice(\n                  0,\n                  -6\n                )}`\n              )\n            )}}),_vm._l((4),function(i,idx){return _c('td',{key:`asg_${i}`,staticClass:\"has-text-centered\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.roleSettings[key]),expression:\"roleSettings[key]\"}],attrs:{\"type\":\"radio\",\"disabled\":_vm.editModeDisabled},domProps:{\"value\":_vm.rightStateLabels[idx],\"checked\":_vm._q(_vm.roleSettings[key],_vm.rightStateLabels[idx])},on:{\"change\":function($event){return _vm.$set(_vm.roleSettings, key, _vm.rightStateLabels[idx])}}})])})],2)}),0):_vm._e()])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"edit-account-rights\">\n    <div class=\"accountRights has-margin-top\">\n      <table class=\"table is-fullwidth is-striped\">\n        <thead>\n          <tr>\n            <th></th>\n            <th\n              class=\"has-text-centered\"\n              v-html=\"\n                $t('Components.Accounts.EditAccountRights.TableHeader_None')\n              \"\n            ></th>\n            <th\n              class=\"has-text-centered\"\n              v-html=\"\n                $t('Components.Accounts.EditAccountRights.TableHeader_View')\n              \"\n            ></th>\n            <th\n              class=\"has-text-centered\"\n              v-html=\"\n                $t('Components.Accounts.EditAccountRights.TableHeader_Edit')\n              \"\n            ></th>\n            <th\n              class=\"has-text-centered\"\n              v-html=\"\n                $t('Components.Accounts.EditAccountRights.TableHeader_Delete')\n              \"\n            ></th>\n          </tr>\n        </thead>\n        <tbody v-if=\"roleSettings\">\n          <tr\n            v-for=\"(roleSetting, key, index) in roleSettings\"\n            :key=\"`as_${index}`\"\n          >\n            <td\n              v-text=\"\n                $t(\n                  `Components.Accounts.EditAccountRights.Label_${key.slice(\n                    0,\n                    -6\n                  )}`\n                )\n              \"\n            ></td>\n            <td\n              v-for=\"(i, idx) in 4\"\n              :key=\"`asg_${i}`\"\n              class=\"has-text-centered\"\n            >\n              <input\n                type=\"radio\"\n                :value=\"rightStateLabels[idx]\"\n                v-model=\"roleSettings[key]\"\n                :disabled=\"editModeDisabled\"\n              />\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    </div>\n  </div>\n</template>\n\n<script>\nexport default {\n  name: 'edit-account-rights',\n\n  components: {},\n\n  props: {\n    account: {\n      type: Object,\n      required: true,\n    },\n    accountCardColumnClass: {\n      type: String,\n      default: 'is-half',\n    },\n\n    isOwnAccount: {\n      type: Boolean,\n      default: false,\n    },\n\n    editModeDisabled: {\n      type: Boolean,\n      default: false,\n    },\n  },\n\n  data() {\n    return {\n      accountGroupIds: [],\n      roleSettings: null,\n      rightStateLabels: ['None', 'View', 'Edit', 'Full'],\n    }\n  },\n\n  computed: {},\n\n  created() {\n    this.roleSettings = this.buildRightsSettings()\n  },\n\n  methods: {\n    buildRightsSettings() {\n      return {\n        AccountRoleId: this.account.AccountLevel || 'None',\n        InvoiceRoleId: this.account.InvoiceLevel || 'None',\n        LocationRoleId: this.account.LocationLevel || 'None',\n        OptionRoleId: this.account.OptionLevel || 'None',\n        PriceRoleId: this.account.PriceLevel || 'None',\n        ReportRoleId: this.account.ReportLevel || 'None',\n        ReservationRoleId: this.account.ReservationLevel || 'None',\n        SpaceRoleId: this.account.SpaceLevel || 'None',\n        VoucherRoleId: this.account.VoucherLevel || 'None',\n        CompanyRoleId: this.account.CompanyLevel || 'None',\n        CustomerRoleId: this.account.CustomerLevel || 'None',\n      }\n    },\n  },\n}\n</script>\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!./EditAccountRights.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!./EditAccountRights.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./EditAccountRights.vue?vue&type=template&id=532c2de2\"\nimport script from \"./EditAccountRights.vue?vue&type=script&lang=js\"\nexport * from \"./EditAccountRights.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"],"sourceRoot":""}