{"version":3,"sources":["webpack:///src/components/Account/EditAccountRights.vue","webpack:///./src/components/Account/EditAccountRights.vue","webpack:///./src/components/Account/EditAccountRights.vue?9b26","webpack:///./src/components/Account/EditAccountRights.vue?4b0e","webpack:///./src/components/Account/EditAccountRights.vue?3e63"],"names":["name","components","props","account","type","Object","required","accountCardColumnClass","String","default","isOwnAccount","Boolean","editModeDisabled","data","accountGroupIds","roleSettings","rightStateLabels","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","render","_vm","_c","_self","staticClass","domProps","innerHTML","_s","$t","_l","roleSetting","key","index","concat","textContent","slice","i","idx","directives","rawName","value","expression","attrs","disabled","checked","_q","on","change","$event","$set","_e","staticRenderFns","_withStripped"],"mappings":";;;;;;;;;;;AAoEe;EACfA,IAAA;EAEAC,UAAA;EAEAC,KAAA;IACAC,OAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,QAAA;IACA;IACAC,sBAAA;MACAH,IAAA,EAAAI,MAAA;MACAC,OAAA;IACA;IAEAC,YAAA;MACAN,IAAA,EAAAO,OAAA;MACAF,OAAA;IACA;IAEAG,gBAAA;MACAR,IAAA,EAAAO,OAAA;MACAF,OAAA;IACA;EACA;EAEAI,IAAA,WAAAA,KAAA;IACA;MACAC,eAAA;MACAC,YAAA;MACAC,gBAAA;IACA;EACA;EAEAC,QAAA;EAEAC,OAAA,WAAAA,QAAA;IACA,KAAAH,YAAA,QAAAI,mBAAA;EACA;EAEAC,OAAA;IACAD,mBAAA,WAAAA,oBAAA;MACA;QACAE,aAAA,OAAAlB,OAAA,CAAAmB,YAAA;QACAC,aAAA,OAAApB,OAAA,CAAAqB,YAAA;QACAC,cAAA,OAAAt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AI,EAAE,OAAO;UACb8D,QAAQ,EAAEtB,GAAG,CAAChC;QAChB,CAAC;QACDoC,QAAQ,EAAE;UACRe,KAAK,EAAEnB,GAAG,CAAC5B,gBAAgB,CAAC4C,GAAG,CAAC;UAChCO,OAAO,EAAEvB,GAAG,CAACwB,EAAE,CACbxB,GAAG,CAAC7B,YAAY,CAACuC,GAAG,CAAC,EACrBV,GAAG,CAAC5B,gBAAgB,CAAC4C,GAAG,CAC1B;QACF,CAAC;QACDS,EAAE,EAAE;UACFC,MAAM,EAAE,SAARA,MAAMA,CAAYC,MAAM,EAAE;YACxB,OAAO3B,GAAG,CAAC4B,IAAI,CACb5B,GAAG,CAAC7B,YAAY,EAChBuC,GAAG,EACHV,GAAG,CAAC5B,gBAAgB,CAAC4C,GAAG,CAC1B,CAAC;UACH;QACF;MACF,CAAC,CAAC,CAEN,CAAC;IACH,CAAC,CAAC,CACH,EACD,CACF,CAAC;EACH,CAAC,CAAC,EACF,CACF,CAAC,GACDhB,GAAG,CAAC6B,EAAE,CAAC,CAAC,CACb,CAAC,CACH,CAAC,CACH,CAAC;AACJ,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;AACxB/B,MAAM,CAACgC,aAAa,GAAG,IAAI;;;;;;;;;;;;;;ACzH3B;AAAA;AAAA;AAAA;AAA+F;AAC3B;AACL;;;AAG/D;AAC6F;AAC7F,gBAAgB,mHAAU;AAC1B,EAAE,8FAAM;AACR,EAAE,mGAAM;AACR,EAAE,4GAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;;ACtCf;AAAyS,CAAgB,mVAAG,EAAC,C;;;;;;;;;;;;;ACA7T;AAAA;AAAA;AAAA;AAAA","file":"js/135.js?id=2c03bf613579fe3b3447","sourcesContent":["<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","var render = function render() {\n  var _vm = this,\n    _c = _vm._self._c\n  return _c(\"div\", { staticClass: \"edit-account-rights\" }, [\n    _c(\"div\", { staticClass: \"accountRights has-margin-top\" }, [\n      _c(\"table\", { staticClass: \"table is-fullwidth is-striped\" }, [\n        _c(\"thead\", [\n          _c(\"tr\", [\n            _c(\"th\"),\n            _c(\"th\", {\n              staticClass: \"has-text-centered\",\n              domProps: {\n                innerHTML: _vm._s(\n                  _vm.$t(\n                    \"Components.Accounts.EditAccountRights.TableHeader_None\"\n                  )\n                ),\n              },\n            }),\n            _c(\"th\", {\n              staticClass: \"has-text-centered\",\n              domProps: {\n                innerHTML: _vm._s(\n                  _vm.$t(\n                    \"Components.Accounts.EditAccountRights.TableHeader_View\"\n                  )\n                ),\n              },\n            }),\n            _c(\"th\", {\n              staticClass: \"has-text-centered\",\n              domProps: {\n                innerHTML: _vm._s(\n                  _vm.$t(\n                    \"Components.Accounts.EditAccountRights.TableHeader_Edit\"\n                  )\n                ),\n              },\n            }),\n            _c(\"th\", {\n              staticClass: \"has-text-centered\",\n              domProps: {\n                innerHTML: _vm._s(\n                  _vm.$t(\n                    \"Components.Accounts.EditAccountRights.TableHeader_Delete\"\n                  )\n                ),\n              },\n            }),\n          ]),\n        ]),\n        _vm.roleSettings\n          ? _c(\n              \"tbody\",\n              _vm._l(_vm.roleSettings, function (roleSetting, key, index) {\n                return _c(\n                  \"tr\",\n                  { key: `as_${index}` },\n                  [\n                    _c(\"td\", {\n                      domProps: {\n                        textContent: _vm._s(\n                          _vm.$t(\n                            `Components.Accounts.EditAccountRights.Label_${key.slice(\n                              0,\n                              -6\n                            )}`\n                          )\n                        ),\n                      },\n                    }),\n                    _vm._l(4, function (i, idx) {\n                      return _c(\n                        \"td\",\n                        { key: `asg_${i}`, staticClass: \"has-text-centered\" },\n                        [\n                          _c(\"input\", {\n                            directives: [\n                              {\n                                name: \"model\",\n                                rawName: \"v-model\",\n                                value: _vm.roleSettings[key],\n                                expression: \"roleSettings[key]\",\n                              },\n                            ],\n                            attrs: {\n                              type: \"radio\",\n                              disabled: _vm.editModeDisabled,\n                            },\n                            domProps: {\n                              value: _vm.rightStateLabels[idx],\n                              checked: _vm._q(\n                                _vm.roleSettings[key],\n                                _vm.rightStateLabels[idx]\n                              ),\n                            },\n                            on: {\n                              change: function ($event) {\n                                return _vm.$set(\n                                  _vm.roleSettings,\n                                  key,\n                                  _vm.rightStateLabels[idx]\n                                )\n                              },\n                            },\n                          }),\n                        ]\n                      )\n                    }),\n                  ],\n                  2\n                )\n              }),\n              0\n            )\n          : _vm._e(),\n      ]),\n    ]),\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./EditAccountRights.vue?vue&type=template&id=a4f5a610\"\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\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/github/workspace/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('a4f5a610')) {\n      api.createRecord('a4f5a610', component.options)\n    } else {\n      api.reload('a4f5a610', component.options)\n    }\n    module.hot.accept(\"./EditAccountRights.vue?vue&type=template&id=a4f5a610\", function () {\n      api.rerender('a4f5a610', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"src/components/Account/EditAccountRights.vue\"\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../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/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 * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"d2a26fb4-vue-loader-template\\\"}!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditAccountRights.vue?vue&type=template&id=a4f5a610\""],"sourceRoot":""}