{"version":3,"sources":["webpack:///./src/components/UsellPermissions.vue?7f25","webpack:///src/components/UsellPermissions.vue","webpack:///./src/components/UsellPermissions.vue?62c9","webpack:///./src/components/UsellPermissions.vue","webpack:///./node_modules/core-js/modules/es.object.entries.js","webpack:///./src/components/UsellPermissions.vue?007f","webpack:///./node_modules/core-js/internals/object-to-array.js","webpack:///./src/views/Roles/List.vue?804a","webpack:///./src/@core/components/b-card-actions/BCardActions.vue?0afd","webpack:///./src/@core/components/b-card-actions/BCardActionsContainer.vue?8e9f","webpack:///src/@core/components/b-card-actions/BCardActionsContainer.vue","webpack:///./src/@core/components/b-card-actions/BCardActionsContainer.vue?784d","webpack:///./src/@core/components/b-card-actions/BCardActionsContainer.vue","webpack:///src/@core/components/b-card-actions/BCardActions.vue","webpack:///./src/@core/components/b-card-actions/BCardActions.vue?791a","webpack:///./src/@core/components/b-card-actions/BCardActions.vue","webpack:///src/views/Roles/List.vue","webpack:///./src/views/Roles/List.vue?8d72","webpack:///./src/views/Roles/List.vue","webpack:///./src/@core/components/b-card-actions/BCardActions.vue?7b1d"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","model","value","callback","$$v","selected","expression","_l","item","index","key","name","permission","id","_v","_s","description","staticRenderFns","props","user_permissions","type","default","data","permissions","filtred","watch","handler","newValue","oldValue","deep","mounted","methods","mapActions","initialize","acc","map","children","component","$","$entries","entries","target","stat","O","DESCRIPTORS","uncurryThis","objectKeys","toIndexedObject","$propertyIsEnumerable","f","propertyIsEnumerable","push","createMethod","TO_ENTRIES","it","keys","length","i","result","module","exports","values","$t","staticClass","on","$event","dialog","filter","items","fields","currentPage","perPage","filterOn","sortBy","sortDesc","sortDirection","onFiltered","scopedSlots","_u","fn","row","editItem","pageOptions","totalRows","ref","formTitle","stopPropagation","preventDefault","handleSubmit","apply","arguments","errors","editedItem","$set","test","save","cardClosed","_e","showLoading","_g","_b","style","content_visible","parentID","cardAttrs","$listeners","$attrs","count","staticStyle","title","availableActions","triggerCollapse","triggerRefresh","triggerClose","undefined","_t","includes","class","rotate","isCollapsed","$emit","requried","components","BCardActionsContainer","inheritAttrs","collapsed","noActions","actionCollapse","actionRefresh","actionClose","disabled","cardStyles","computed","showHeader","showActions","created","removeCard","setTimeout","ValidationProvider","ValidationObserver","BCardActions","Permissions","editedIndex","display_name","defaultItem","label","sortable","formatter","text","infoModal","content","sortOptions","val","current_page","created_at","updated_at","categories_count","categories","first_page_url","from","last_page","last_page_url","next_page_url","path","per_page","prev_page_url","to","total","group","restrictions","info","msg","close","Object","filteredItems"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACA,EAAG,wBAAwB,CAACE,MAAM,CAAC,GAAK,UAAU,SAAW,IAAIC,MAAM,CAACC,MAAOR,EAAY,SAAES,SAAS,SAAUC,GAAMV,EAAIW,SAASD,GAAKE,WAAW,aAAa,CAAC,CAACR,EAAG,SAAS,CAACE,MAAM,CAAC,SAAW,GAAG,oBAAoB,iBAAiBN,EAAIa,GAAIb,EAAW,SAAE,SAASc,EAAKC,GAAO,OAAOX,EAAG,QAAQ,CAACY,IAAID,EAAMT,MAAM,CAAC,MAAQQ,EAAKG,OAAOjB,EAAIa,GAAIC,EAAa,UAAE,SAASI,GAAY,OAAOd,EAAG,cAAc,CAACY,IAAIE,EAAWC,IAAI,CAACf,EAAG,kBAAkB,CAACY,IAAIE,EAAWC,GAAGb,MAAM,CAAC,KAAO,eAAe,OAAS,GAAG,OAAS,GAAG,MAAQY,EAAWC,KAAK,CAACnB,EAAIoB,GAAG,IAAIpB,EAAIqB,GAAGH,EAAWI,aAAa,QAAQ,MAAK,MAAK,KAAK,IAAI,IACxsBC,EAAkB,G,sICwCP,kBACfC,OACAC,kBACAC,WACAC,mBAAA,YAGAC,KAPA,WAQA,OACAC,eACAC,WACAnB,cAIAoB,OACApB,UACAqB,QADA,SACAC,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ACA,uBC9JoX,ICQhX,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIa,I,oBCiLf,G,UAAA,GACAS,YACAgB,0BACAC,0BACAC,eACAC,oBAEAvH,KAPA,WAOA,WACA,OACAwH,eACAlD,YACAjF,QACAoI,gBACAxH,gBAEAyH,aACArI,QACAoI,gBACAxH,gBAEA6C,SACA7C,eACA8C,QACA,CACA3D,WACAuI,YACAC,YACAvE,sBAEA,CACAjE,mBACAuI,wBACAC,YACA7B,qBAEA,CACA3G,uBACAuI,gCACAC,aAEA,CACAxI,iBACAuI,eACAC,YACAC,sBAAA,SACA,kCACA,2CAEA,CAAAzI,cAAAuI,kBAEA9D,YACAb,cACAC,WACAW,sBAAAhF,UAAAkJ,oBACA3E,UACAC,YACAC,oBACAR,YACAK,YACA6E,WACAxI,gBACAgG,SACAyC,YAEApF,YAGAkE,UACA/C,UADA,WAEA,4BACA,oBACA,wBAvEA,4BA0EA,CACAkE,YADA,WAGA,mBACApF,QAAA,iCACAhC,KAAA,mBAAAiH,aAAAlJ,mBA/EA,yBAkFA,CACAgE,OADA,SACAsF,GACAA,mBApFA,uCAmGA,OACAC,eACAnI,MACA,CACAT,MACAF,iCACAoI,yCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,kCACAoI,0CACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,6BACAoI,qCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,iCACAoI,yCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,gCACAoI,wCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,6BACAoI,qCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,MACAF,iCACAoI,yCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,yBACAoI,iCACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,qBACAoI,6BACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,gBACAoI,wBACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,eACAoI,uBACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,iBACAoI,yBACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,UACAoI,kBACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,mBACAoI,2BACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,eAEA,CACAhJ,KACAF,qBACAoI,6BACA3H,gBACAsI,yCACAC,yCACAC,mBACAC,gBAGAC,0BACAC,OACAC,YACAC,yBACAC,yBACAC,SACAC,YACAC,mBACAC,MACAC,UAEA,kBACA,iCACA,gCACA,wBAEA,kBACA,CACA1J,KACAF,aACAoI,2BACA/H,4CACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,oBACAoI,4BACA/H,+DACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,yBACAoI,iCACA/H,kDACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,kBACAoI,0BACA/H,uCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,oBACAoI,4BACA/H,+CACAwJ,kBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,KACAF,yBACAoI,iCACA/H,8CACAwJ,qBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,2BACAoI,mCACA/H,+CACAwJ,qBACAC,cACA,CACA9J,aACAS,cACAJ,2CAGA0I,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,2BACAoI,mCACA/H,+CACAwJ,qBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,2BACAoI,mCACA/H,+CACAwJ,qBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,kBACAoI,0BACA/H,uCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,kBACAoI,0BACA/H,uCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,wCACAwJ,cACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,0BACAoI,kCACA/H,+CACAwJ,sBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,4BACAoI,oCACA/H,gDACAwJ,sBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,4BACAoI,oCACA/H,gDACAwJ,sBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,4BACAoI,oCACA/H,gDACAwJ,sBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,2BACAoI,mCACA/H,gDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,6BACAoI,qCACA/H,iDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,qBACAoI,6BACA/H,0CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,iBACAoI,yBACA/H,sCACAwJ,aACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,mBACAoI,2BACA/H,uCACAwJ,aACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,mBACAoI,2BACA/H,uCACAwJ,aACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,mBACAoI,2BACA/H,uCACAwJ,aACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,qBACAoI,6BACA/H,0CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,4CACAwJ,mBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,yBACAoI,iCACA/H,6CACAwJ,mBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,yBACAoI,iCACA/H,6CACAwJ,mBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,yBACAoI,iCACA/H,6CACAwJ,mBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,yCACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,yCACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,sBACAoI,8BACA/H,0CACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,2BACAoI,mCACA/H,gDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,6BACAoI,qCACA/H,iDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,6BACAoI,qCACA/H,iDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,6BACAoI,qCACA/H,iDACAwJ,uBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,qBACAoI,6BACA/H,0CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,2CACAwJ,iBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,uBACAoI,+BACA/H,4CACAwJ,mBACAC,gBACAf,yCACAC,yCACAvI,iBAEA,CACAP,MACAF,oBACAoI,4BACA/H,yCACAwJ,gBACAC,gBACAf,yCACAC,yCACAvI,kBAIA,4BACA,uCAGA,OAFAc,0BACAA,mBACA,IACA,KACAC,KAAA,sCAAI,EAAJ,KAAI,EAAJ,YAAAxB,OAAAyB,kBAp4BA,2BAs4BA,CACA0D,KADA,SACAA,KACA4E,KAFA,SAEAlK,EAAAmK,GACA,uBACA,gBAEA1F,SANA,SAMAzE,GACA,uCACA,qCACA,gBAEAoK,MAXA,WAWA,WACA,eACA,2BACA,8CACA,qBAGA7E,KAlBA,WAkBA,WACA,oLACA,IACA,iBACA8E,mDAEA,2BAEA,WAPA,mGAWAjG,WA9BA,SA8BAkG,GAEA,wBACA,sBAv6BA,GCpM6V,ICOzV,EAAY,eACd,EACArL,EACAwB,GACA,EACA,KACA,KACA,MAIa,e,2CClBf","file":"Roles~31ecd969.25b984f7.js?version=1727726453033","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',[_c('b-form-checkbox-group',{attrs:{\"id\":\"flavors\",\"switches\":\"\"},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}},[[_c('b-tabs',{attrs:{\"vertical\":\"\",\"nav-wrapper-class\":\"nav-vertical\"}},_vm._l((_vm.filtred),function(item,index){return _c('b-tab',{key:index,attrs:{\"title\":item.name}},_vm._l((item.children),function(permission){return _c('b-card-text',{key:permission.id},[_c('b-form-checkbox',{key:permission.id,attrs:{\"name\":\"check-button\",\"switch\":\"\",\"inline\":\"\",\"value\":permission.id}},[_vm._v(\" \"+_vm._s(permission.description)+\" \")])],1)}),1)}),1)]],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <b-card>\n    <!-- left position -->\n    <b-form-checkbox-group\n      id=\"flavors\"\n      v-model=\"selected\"\n      switches\n    >\n      <template>\n        <b-tabs\n          vertical\n          nav-wrapper-class=\"nav-vertical\"\n        >\n          <b-tab\n            v-for=\"(item, index) in filtred\"\n            :key=\"index\"\n            :title=\"item.name\"\n          >\n            <b-card-text\n              v-for=\"permission in item.children\"\n              :key=\"permission.id\"\n            >\n              <b-form-checkbox\n                :key=\"permission.id\"\n                name=\"check-button\"\n                switch\n                inline\n                :value=\"permission.id\"\n              >\n                {{ permission.description }}\n              </b-form-checkbox>\n            </b-card-text>\n          </b-tab>\n        </b-tabs>\n      </template>\n    </b-form-checkbox-group>\n  </b-card>\n</template>\n<script>\nimport { mapActions } from 'vuex'\n\nexport default {\n  props: {\n    user_permissions: {\n      type: Array,\n      default: () => [],\n    },\n  },\n  data() {\n    return {\n      permissions: [],\n      filtred: [],\n      selected: [],\n    }\n  },\n\n  watch: {\n    selected: {\n      handler(newValue, oldValue) {\n        this.$emit('update_permissions', newValue)\n      },\n      deep: true,\n    },\n  },\n  async mounted() {\n    await this.initialize()\n  },\n  methods: {},\n  methods: {\n    ...mapActions('permissions_usell', ['GET_PERMISSIONS']),\n    async initialize() {\n      return this.GET_PERMISSIONS().then(permissions => {\n        this.permissions = permissions\n        this.permissions = this.permissions.map(permission => {\n          permission.action = permission.name.split('.')[0]\n          permission.group = permission.name.split('.')[1]\n          return permission\n        })\n        this.filtred = Object.entries(\n          this.permissions.reduce((acc, el) => {\n            acc[el.group] = acc[el.group] || []\n            acc[el.group].push(el)\n            return acc\n          }, {}),\n        ).map(([key, value]) => ({ name: key, children: value }))\n        this.selected = this.user_permissions\n      })\n    },\n  },\n}\n</script>\n\n<style>\n.nav-pills .nav-link,\n.nav-tabs .nav-link {\n  justify-content: start !important;\n}\n</style>\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!./UsellPermissions.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!./UsellPermissions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UsellPermissions.vue?vue&type=template&id=a6c3983a&\"\nimport script from \"./UsellPermissions.vue?vue&type=script&lang=js&\"\nexport * from \"./UsellPermissions.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UsellPermissions.vue?vue&type=style&index=0&lang=css&\"\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","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n  entries: function entries(O) {\n    return $entries(O);\n  }\n});\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UsellPermissions.vue?vue&type=style&index=0&lang=css&\"","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n  return function (it) {\n    var O = toIndexedObject(it);\n    var keys = objectKeys(O);\n    var length = keys.length;\n    var i = 0;\n    var result = [];\n    var key;\n    while (length > i) {\n      key = keys[i++];\n      if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n        push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n      }\n    }\n    return result;\n  };\n};\n\nmodule.exports = {\n  // `Object.entries` method\n  // https://tc39.es/ecma262/#sec-object.entries\n  entries: createMethod(true),\n  // `Object.values` method\n  // https://tc39.es/ecma262/#sec-object.values\n  values: createMethod(false)\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{attrs:{\"title\":_vm.$t('Rôles')}},[_c('b-row',[_c('Can',{attrs:{\"i\":\"create\",\"a\":\"role\"}},[_c('b-col',{staticClass:\"my-1\",attrs:{\"sm\":\"5\",\"md\":\"2\"}},[_c('b-button',{attrs:{\"variant\":\"outline-primary\"},on:{\"click\":function($event){_vm.dialog = !_vm.dialog}}},[_vm._v(\" Ajouter \")])],1)],1),_c('b-col',{staticClass:\"my-1\",attrs:{\"sm\":\"7\",\"md\":\"10\"}},[_c('b-form-group',{staticClass:\"mb-0\",attrs:{\"label\":_vm.$t('Filtrer'),\"label-for\":\"filter-input\",\"label-cols-sm\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\"}},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"id\":\"filter-input\",\"type\":\"search\",\"placeholder\":\"Filtrez vos résultats\"},model:{value:(_vm.filter),callback:function ($$v) {_vm.filter=$$v},expression:\"filter\"}}),_c('b-input-group-append',[_c('b-button',{attrs:{\"disabled\":!_vm.filter},on:{\"click\":function($event){_vm.filter = ''}}},[_vm._v(\"Clear\")])],1)],1)],1)],1)],1),_c('b-table',{attrs:{\"items\":_vm.items,\"fields\":_vm.fields,\"current-page\":_vm.currentPage,\"per-page\":_vm.perPage,\"filter\":_vm.filter,\"filter-included-fields\":_vm.filterOn,\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"sort-direction\":_vm.sortDirection,\"show-empty\":\"\"},on:{\"update:sortBy\":function($event){_vm.sortBy=$event},\"update:sort-by\":function($event){_vm.sortBy=$event},\"update:sortDesc\":function($event){_vm.sortDesc=$event},\"update:sort-desc\":function($event){_vm.sortDesc=$event},\"filtered\":_vm.onFiltered},scopedSlots:_vm._u([{key:\"cell(actions)\",fn:function(row){return [_c('feather-icon',{attrs:{\"icon\":\"Edit2Icon\"},on:{\"click\":function($event){return _vm.editItem(row.item)}}})]}}])}),_c('b-row',[_c('b-col',{staticClass:\"my-1\",attrs:{\"sm\":\"5\",\"md\":\"2\"}},[_c('b-form-group',{staticClass:\"mb-0\",attrs:{\"label\":_vm.$t('Per page'),\"label-for\":\"per-page-select\",\"label-cols-sm\":\"6\",\"label-cols-md\":\"4\",\"label-cols-lg\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\"}},[_c('b-form-select',{attrs:{\"id\":\"per-page-select\",\"options\":_vm.pageOptions,\"size\":\"sm\"},model:{value:(_vm.perPage),callback:function ($$v) {_vm.perPage=$$v},expression:\"perPage\"}})],1)],1),_c('b-col',{staticClass:\"my-1\",attrs:{\"sm\":\"7\",\"md\":\"10\"}},[_c('b-pagination',{staticClass:\"my-0\",attrs:{\"total-rows\":_vm.totalRows,\"per-page\":_vm.perPage,\"align\":\"fill\",\"size\":\"sm\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1)],1),_c('b-modal',{ref:\"modal\",attrs:{\"id\":\"modal-prevent-closing\",\"title\":_vm.formTitle,\"hide-footer\":\"\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('validation-observer',{ref:\"form\"},[_c('b-form',{staticClass:\"auth-login-form mt-2\",on:{\"submit\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handleSubmit.apply(null, arguments)}}},[_c('b-form-group',{attrs:{\"label\":_vm.$t('Nom'),\"label-for\":\"name\"}},[_c('validation-provider',{attrs:{\"name\":_vm.$t('Nom'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-input',{attrs:{\"id\":\"name\",\"state\":errors.length > 0 ? false : null,\"name\":\"name\"},model:{value:(_vm.editedItem.name),callback:function ($$v) {_vm.$set(_vm.editedItem, \"name\", $$v)},expression:\"editedItem.name\"}}),_c('small',{staticClass:\"text-danger\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1),_c('b-form-group',{attrs:{\"label\":_vm.$t('Description'),\"label-for\":\"name\"}},[_c('validation-provider',{attrs:{\"name\":_vm.$t('Description'),\"rules\":\"required\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('b-form-input',{attrs:{\"id\":\"name\",\"state\":errors.length > 0 ? false : null,\"name\":\"name\"},model:{value:(_vm.editedItem.description),callback:function ($$v) {_vm.$set(_vm.editedItem, \"description\", $$v)},expression:\"editedItem.description\"}}),_c('small',{staticClass:\"text-danger\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1),_c('Permissions',{attrs:{\"user_permissions\":[]},on:{\"update_permissions\":_vm.test}}),_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\",\"block\":\"\"},on:{\"click\":_vm.save}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Enregistrer\"))+\" \")])],1)],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 (!_vm.cardClosed)?_c('b-overlay',{attrs:{\"variant\":\"white\",\"show\":_vm.showLoading,\"spinner-variant\":\"primary\",\"blur\":\"0\",\"opacity\":\".75\",\"rounded\":\"sm\"}},[_c('b-card',_vm._g(_vm._b({ref:\"bCard\",style:(_vm.cardStyles),attrs:{\"no-body\":\"\",\"aria-expanded\":!_vm.content_visible ? 'true' : 'false',\"aria-controls\":_vm.parentID}},'b-card',_vm.cardAttrs,false),_vm.$listeners),[(_vm.showHeader)?_c('div',{staticClass:\"card-header\"},[_c('div',[_c('b-card-title',[_c('b-badge',{attrs:{\"pill\":\"\",\"variant\":\"primary\"}},[_vm._v(\" \"+_vm._s(_vm.$attrs.count)+\" \")]),_vm._v(\"  \"),_c('span',{staticStyle:{\"font-size\":\"14px\"}},[_vm._v(_vm._s(_vm.$attrs.title))])],1),(_vm.$attrs['sub-title'])?_c('b-card-sub-title',[_vm._v(\" \"+_vm._s(_vm.$attrs[\"sub-title\"])+\" \")]):_vm._e()],1),(_vm.showActions)?_c('b-card-actions-container',{attrs:{\"available-actions\":_vm.availableActions,\"is-collapsed\":!_vm.content_visible},on:{\"collapse\":_vm.triggerCollapse,\"refresh\":_vm.triggerRefresh,\"close\":_vm.triggerClose}}):_vm._e()],1):_vm._e(),_c('b-collapse',{staticClass:\"card-content\",attrs:{\"id\":_vm.parentID,\"visible\":_vm.content_visible},model:{value:(_vm.content_visible),callback:function ($$v) {_vm.content_visible=$$v},expression:\"content_visible\"}},[(_vm.$attrs['no-body'] !== undefined)?_vm._t(\"default\"):_c('b-card-body',[_vm._t(\"default\")],2)],2)],1)],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"heading-elements\"},[_c('ul',{staticClass:\"list-inline mb-0\"},[(_vm.availableActions.includes('collapse'))?_c('li',[_c('a',{class:{ rotate: _vm.isCollapsed },attrs:{\"data-action\":\"collapse\"},on:{\"click\":function($event){return _vm.$emit('collapse')}}},[_c('feather-icon',{attrs:{\"icon\":\"ChevronDownIcon\",\"size\":\"16\"}})],1)]):_vm._e(),(_vm.availableActions.includes('refresh'))?_c('li',[_c('a',{attrs:{\"data-action\":\"reload\"},on:{\"click\":function($event){return _vm.$emit('refresh')}}},[_c('feather-icon',{attrs:{\"icon\":\"RotateCwIcon\",\"size\":\"14\"}})],1)]):_vm._e(),(_vm.availableActions.includes('close'))?_c('li',[_c('a',{attrs:{\"data-action\":\"close\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_c('feather-icon',{attrs:{\"icon\":\"XIcon\",\"size\":\"14\"}})],1)]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"heading-elements\">\n    <ul class=\"list-inline mb-0\">\n      <li v-if=\"availableActions.includes('collapse')\">\n        <a\n          data-action=\"collapse\"\n          :class=\"{ rotate: isCollapsed }\"\n          @click=\"$emit('collapse')\"\n        >\n          <feather-icon\n            icon=\"ChevronDownIcon\"\n            size=\"16\"\n          />\n        </a>\n      </li>\n      <li v-if=\"availableActions.includes('refresh')\">\n        <a\n          data-action=\"reload\"\n          @click=\"$emit('refresh')\"\n        >\n          <feather-icon\n            icon=\"RotateCwIcon\"\n            size=\"14\"\n          />\n        </a>\n      </li>\n      <li v-if=\"availableActions.includes('close')\">\n        <a\n          data-action=\"close\"\n          @click=\"$emit('close')\"\n        >\n          <feather-icon\n            icon=\"XIcon\"\n            size=\"14\"\n          />\n        </a>\n      </li>\n    </ul>\n  </div>\n</template>\n\n<script>\nexport default {\n  props: {\n    isCollapsed: {\n      type: Boolean,\n      requried: true,\n    },\n    availableActions: {\n      type: Array,\n      default: () => [],\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!./BCardActionsContainer.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!./BCardActionsContainer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BCardActionsContainer.vue?vue&type=template&id=7de64d6c&\"\nimport script from \"./BCardActionsContainer.vue?vue&type=script&lang=js&\"\nexport * from \"./BCardActionsContainer.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","<template>\n  <b-overlay\n    v-if=\"!cardClosed\"\n    variant=\"white\"\n    :show=\"showLoading\"\n    spinner-variant=\"primary\"\n    blur=\"0\"\n    opacity=\".75\"\n    rounded=\"sm\"\n  >\n    <b-card\n      ref=\"bCard\"\n      v-bind=\"cardAttrs\"\n      no-body\n      :aria-expanded=\"!content_visible ? 'true' : 'false'\"\n      :aria-controls=\"parentID\"\n      :style=\"cardStyles\"\n      v-on=\"$listeners\"\n    >\n      <div\n        v-if=\"showHeader\"\n        class=\"card-header\"\n      >\n        <!-- Title & SubTitle -->\n        <div>\n          <b-card-title>\n            <b-badge\n              pill\n              variant=\"primary\"\n            >\n              {{ $attrs.count }}\n            </b-badge>&nbsp;\n            <span style=\"font-size: 14px\">{{ $attrs.title }}</span>\n          </b-card-title>\n          <b-card-sub-title v-if=\"$attrs['sub-title']\">\n            {{ $attrs[\"sub-title\"] }}\n          </b-card-sub-title>\n        </div>\n\n        <!-- Card Actions -->\n        <b-card-actions-container\n          v-if=\"showActions\"\n          :available-actions=\"availableActions\"\n          :is-collapsed=\"!content_visible\"\n          @collapse=\"triggerCollapse\"\n          @refresh=\"triggerRefresh\"\n          @close=\"triggerClose\"\n        />\n      </div>\n\n      <!-- Collapsible Content -->\n      <b-collapse\n        :id=\"parentID\"\n        v-model=\"content_visible\"\n        :visible=\"content_visible\"\n        class=\"card-content\"\n      >\n        <!-- Handle no-body -->\n        <slot v-if=\"$attrs['no-body'] !== undefined\" />\n        <b-card-body v-else>\n          <slot />\n        </b-card-body>\n      </b-collapse>\n    </b-card>\n  </b-overlay>\n</template>\n\n<script>\nimport BCardActionsContainer from './BCardActionsContainer.vue'\n\nexport default {\n  components: {\n    BCardActionsContainer,\n  },\n  inheritAttrs: false,\n  props: {\n    collapsed: {\n      type: Boolean,\n      default: true,\n    },\n    noActions: {\n      type: Boolean,\n      default: false,\n    },\n    actionCollapse: {\n      type: Boolean,\n      default: false,\n    },\n    actionRefresh: {\n      type: Boolean,\n      default: false,\n    },\n    actionClose: {\n      type: Boolean,\n      default: false,\n    },\n  },\n  data() {\n    return {\n      disabled: false,\n      parentID: '',\n      content_visible: !this.collapsed,\n      showLoading: false,\n      cardClosed: false,\n      cardStyles: {},\n    }\n  },\n  computed: {\n    cardAttrs() {\n      const cardAttrs = JSON.parse(JSON.stringify(this.$attrs))\n      delete cardAttrs.title\n      delete cardAttrs['sub-title']\n      return cardAttrs\n    },\n    showHeader() {\n      return this.$attrs.title || this.$attrs['sub-title'] || !this.noActions\n    },\n    showActions() {\n      if (this.noActions) return false\n      return true\n    },\n    availableActions() {\n      const actions = []\n      const allFalse = (this.actionCollapse || this.actionRefresh || this.actionClose)\n        === false\n\n      if (this.actionCollapse || allFalse) actions.push('collapse')\n      if (this.actionRefresh || allFalse) actions.push('refresh')\n      if (this.actionClose || allFalse) actions.push('close')\n      return actions\n    },\n  },\n  created() {\n    this.parentID = String(Math.floor(Math.random() * 10) + 1)\n  },\n  methods: {\n    removeCard() {\n      this.$set(\n        this.cardStyles,\n        'maxHeight',\n        `${this.$refs.bCard.clientHeight}px`,\n      )\n      setTimeout(() => {\n        this.$set(this.cardStyles, 'maxHeight', '0px')\n        this.$set(this.cardStyles, 'overflow', 'hidden')\n        // this.$set(this.cardStyles, 'marginBottom', '0')\n      }, 10)\n    },\n    triggerCollapse() {\n      this.content_visible = !this.content_visible\n      this.$emit('collapse')\n    },\n    triggerRefresh() {\n      this.showLoading = true\n      this.$emit('refresh')\n    },\n    triggerClose() {\n      this.removeCard()\n      this.$emit('close')\n    },\n  },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"~@core/scss/base/bootstrap-extended/include\";\n@import \"~@core/scss/base/components/variables-dark\";\n\n.card {\n  ::v-deep .card-header {\n    .heading-elements {\n      position: static;\n      cursor: inherit;\n\n      .list-inline {\n        display: block;\n\n        li {\n          a {\n            padding: 0;\n          }\n\n          &:not(:last-child) {\n            margin-right: 1rem;\n          }\n        }\n      }\n    }\n  }\n}\n\n.dark-layout {\n  .b-overlay-wrap ::v-deep .b-overlay {\n    // border: 10px solid red;\n    .bg-white {\n      background-color: $theme-dark-body-bg !important;\n    }\n  }\n}\n</style>\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!./BCardActions.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!./BCardActions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BCardActions.vue?vue&type=template&id=58e9c0ee&scoped=true&\"\nimport script from \"./BCardActions.vue?vue&type=script&lang=js&\"\nexport * from \"./BCardActions.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BCardActions.vue?vue&type=style&index=0&id=58e9c0ee&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  \"58e9c0ee\",\n  null\n  \n)\n\nexport default component.exports","<template>\n  <b-card :title=\"$t('Rôles')\">\n    <!-- User Interface controls -->\n    <b-row>\n      <Can\n        i=\"create\"\n        a=\"role\"\n      >\n        <b-col\n          sm=\"5\"\n          md=\"2\"\n          class=\"my-1\"\n        >\n          <b-button\n            variant=\"outline-primary\"\n            @click=\"dialog = !dialog\"\n          >\n            Ajouter\n          </b-button>\n        </b-col>\n      </Can>\n\n      <b-col\n        sm=\"7\"\n        md=\"10\"\n        class=\"my-1\"\n      >\n        <b-form-group\n          :label=\"$t('Filtrer')\"\n          label-for=\"filter-input\"\n          label-cols-sm=\"3\"\n          label-align-sm=\"right\"\n          label-size=\"sm\"\n          class=\"mb-0\"\n        >\n          <b-input-group size=\"sm\">\n            <b-form-input\n              id=\"filter-input\"\n              v-model=\"filter\"\n              type=\"search\"\n              placeholder=\"Filtrez vos résultats\"\n            />\n\n            <b-input-group-append>\n              <b-button\n                :disabled=\"!filter\"\n                @click=\"filter = ''\"\n              >Clear</b-button>\n            </b-input-group-append>\n          </b-input-group>\n        </b-form-group>\n      </b-col>\n    </b-row>\n    <!-- Main table element -->\n    <b-table\n      :items=\"items\"\n      :fields=\"fields\"\n      :current-page=\"currentPage\"\n      :per-page=\"perPage\"\n      :filter=\"filter\"\n      :filter-included-fields=\"filterOn\"\n      :sort-by.sync=\"sortBy\"\n      :sort-desc.sync=\"sortDesc\"\n      :sort-direction=\"sortDirection\"\n      show-empty\n      @filtered=\"onFiltered\"\n    >\n      <template #cell(actions)=\"row\">\n        <feather-icon\n          icon=\"Edit2Icon\"\n          @click=\"editItem(row.item)\"\n        />\n      </template>\n    </b-table>\n    <b-row>\n      <b-col\n        sm=\"5\"\n        md=\"2\"\n        class=\"my-1\"\n      >\n        <b-form-group\n          :label=\"$t('Per page')\"\n          label-for=\"per-page-select\"\n          label-cols-sm=\"6\"\n          label-cols-md=\"4\"\n          label-cols-lg=\"3\"\n          label-align-sm=\"right\"\n          label-size=\"sm\"\n          class=\"mb-0\"\n        >\n          <b-form-select\n            id=\"per-page-select\"\n            v-model=\"perPage\"\n            :options=\"pageOptions\"\n            size=\"sm\"\n          />\n        </b-form-group>\n      </b-col>\n\n      <b-col\n        sm=\"7\"\n        md=\"10\"\n        class=\"my-1\"\n      >\n        <b-pagination\n          v-model=\"currentPage\"\n          :total-rows=\"totalRows\"\n          :per-page=\"perPage\"\n          align=\"fill\"\n          size=\"sm\"\n          class=\"my-0\"\n        />\n      </b-col>\n    </b-row>\n\n    <!-- Info modal -->\n    <b-modal\n      id=\"modal-prevent-closing\"\n      ref=\"modal\"\n      v-model=\"dialog\"\n      :title=\"formTitle\"\n      hide-footer\n    >\n      <validation-observer ref=\"form\">\n        <b-form\n          class=\"auth-login-form mt-2\"\n          @submit.stop.prevent=\"handleSubmit\"\n        >\n          <!-- Nom -->\n          <b-form-group\n            :label=\"$t('Nom')\"\n            label-for=\"name\"\n          >\n            <validation-provider\n              v-slot=\"{ errors }\"\n              :name=\"$t('Nom')\"\n              rules=\"required\"\n            >\n              <b-form-input\n                id=\"name\"\n                v-model=\"editedItem.name\"\n                :state=\"errors.length > 0 ? false : null\"\n                name=\"name\"\n              />\n              <small class=\"text-danger\">{{ errors[0] }}</small>\n            </validation-provider>\n          </b-form-group>\n\n          <!-- Description -->\n          <b-form-group\n            :label=\"$t('Description')\"\n            label-for=\"name\"\n          >\n            <validation-provider\n              v-slot=\"{ errors }\"\n              :name=\"$t('Description')\"\n              rules=\"required\"\n            >\n              <b-form-input\n                id=\"name\"\n                v-model=\"editedItem.description\"\n                :state=\"errors.length > 0 ? false : null\"\n                name=\"name\"\n              />\n              <small class=\"text-danger\">{{ errors[0] }}</small>\n            </validation-provider>\n          </b-form-group>\n\n          <!-- Autorisations -->\n          <Permissions\n            :user_permissions=\"[]\"\n            @update_permissions=\"test\"\n          />\n\n          <!-- submit buttons -->\n          <b-button\n            type=\"submit\"\n            variant=\"primary\"\n            block\n            @click=\"save\"\n          >\n            {{ $t(\"Enregistrer\") }}\n          </b-button>\n        </b-form>\n      </validation-observer>\n    </b-modal>\n  </b-card>\n</template>\n\n<script>\nimport { ValidationProvider, ValidationObserver } from 'vee-validate'\n\nimport BCardActions from '@core/components/b-card-actions/BCardActions.vue'\nimport Permissions from '@/components/UsellPermissions.vue'\nimport ToastificationContent from '@core/components/toastification/ToastificationContent.vue'\n\nexport default {\n  components: {\n    ValidationProvider,\n    ValidationObserver,\n    BCardActions,\n    Permissions,\n  },\n  data() {\n    return {\n      editedIndex: -1,\n      editedItem: {\n        name: '',\n        display_name: '',\n        permissions: [],\n      },\n      defaultItem: {\n        name: '',\n        display_name: '',\n        permissions: [],\n      },\n      items: [],\n      permissions: [],\n      fields: [\n        {\n          key: 'name',\n          label: 'Nom',\n          sortable: true,\n          sortDirection: 'desc',\n        },\n        {\n          key: 'display_name',\n          label: 'Afficher un nom',\n          sortable: true,\n          class: 'text-center',\n        },\n        {\n          key: 'categories_count',\n          label: \"\tCatégories d'articles\",\n          sortable: true,\n        },\n        {\n          key: 'created_at',\n          label: 'Créé à',\n          sortable: true,\n          formatter: value => (value\n            ? this.$moment(value).format('DD/MM/YYYY')\n            : this.$moment(new Date()).format('DD/MM/YYYY')),\n        },\n        { key: 'actions', label: 'Actions' },\n      ],\n      totalRows: 1,\n      currentPage: 1,\n      perPage: 15,\n      pageOptions: [5, 10, 15, { value: 100, text: 'Show a lot' }],\n      sortBy: '',\n      sortDesc: false,\n      sortDirection: 'asc',\n      filter: null,\n      filterOn: [],\n      infoModal: {\n        id: 'info-modal',\n        title: '',\n        content: '',\n      },\n      dialog: false,\n    }\n  },\n  computed: {\n    formTitle() {\n      return this.editedIndex === -1\n        ? this.$t('New Item')\n        : this.$t('Edit Item')\n    },\n  },\n  computed: {\n    sortOptions() {\n      // Create an options list from our fields\n      return this.fields\n        .filter(f => f.sortable)\n        .map(f => ({ text: f.label, value: f.key }))\n    },\n  },\n  watch: {\n    dialog(val) {\n      val || this.close()\n    },\n  },\n  mounted() {\n    // Set the initial number of items\n    //  {\n    //       id: 25,\n    //       name: \"Welcome Call (BackOffice)\",\n    //       display_name: \"Welcome Call (BackOffice)\",\n    //       type: \"category\",\n    //       created_at: \"2021-11-12T11:23:33.000000Z\",\n    //       updated_at: \"2021-11-12T11:23:33.000000Z\",\n    //       categories_count: 0,\n    //       categories: [],\n    //     },\n    const json = {\n      current_page: 1,\n      data: [\n        {\n          id: 25,\n          name: 'Welcome Call (BackOffice)',\n          display_name: 'Welcome Call (BackOffice)',\n          type: 'category',\n          created_at: '2021-11-12T11:23:33.000000Z',\n          updated_at: '2021-11-12T11:23:33.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 24,\n          name: 'Contrats Proximus (URGENT)',\n          display_name: 'Contrats Proximus (URGENT)',\n          type: 'category',\n          created_at: '2021-11-04T10:44:35.000000Z',\n          updated_at: '2021-11-04T10:44:35.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 23,\n          name: 'Feedback (BackOffice)',\n          display_name: 'Feedback (BackOffice)',\n          type: 'category',\n          created_at: '2021-10-21T13:50:05.000000Z',\n          updated_at: '2021-10-21T13:50:05.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 22,\n          name: 'Welcome Call (Consultant)',\n          display_name: 'Welcome Call (Consultant)',\n          type: 'category',\n          created_at: '2021-10-21T13:48:03.000000Z',\n          updated_at: '2021-10-21T13:48:03.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 21,\n          name: 'Welcome Call (Corporate)',\n          display_name: 'Welcome Call (Corporate)',\n          type: 'category',\n          created_at: '2021-10-21T13:47:49.000000Z',\n          updated_at: '2021-10-21T13:47:49.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 19,\n          name: 'U-Smile Claims (Mega)',\n          display_name: 'U-Smile Claims (Mega)',\n          type: 'category',\n          created_at: '2021-09-26T12:35:19.000000Z',\n          updated_at: '2021-09-26T12:35:19.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 12,\n          name: 'U-Smile Claims (Proximus)',\n          display_name: 'U-Smile Claims (Proximus)',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-09-26T12:35:06.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 1,\n          name: 'Contrats Proximus',\n          display_name: 'Contrats Proximus',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 2,\n          name: 'Contrats Mega',\n          display_name: 'Contrats Mega',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 3,\n          name: 'Finances',\n          display_name: 'Finances',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 4,\n          name: 'Academy',\n          display_name: 'Academy',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 5,\n          name: 'Corporate',\n          display_name: 'Corporate',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 6,\n          name: 'IT',\n          display_name: 'IT',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 7,\n          name: 'Consultants',\n          display_name: 'Consultants',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n        {\n          id: 8,\n          name: 'Clients S.A.V',\n          display_name: 'Clients S.A.V',\n          type: 'category',\n          created_at: '2021-07-29T10:18:23.000000Z',\n          updated_at: '2021-07-29T10:18:23.000000Z',\n          categories_count: 0,\n          categories: [],\n        },\n      ],\n      first_page_url: '/?page=1',\n      from: 1,\n      last_page: 2,\n      last_page_url: '/?page=2',\n      next_page_url: '/?page=2',\n      path: '/',\n      per_page: 15,\n      prev_page_url: null,\n      to: 15,\n      total: 20,\n    }\n    this.items = json.data\n    this.totalRows = this.items.length\n    this.currentPage = json.current_page\n    this.perPage = json.per_page\n\n    this.permissions = [\n      {\n        id: 1,\n        name: 'admin',\n        display_name: 'Super Admin',\n        description: 'Give all permissions to user.',\n        group: 'admin',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 2,\n        name: 'admin.access',\n        display_name: 'Access Admin',\n        description: 'Required in order to access any admin area page.',\n        group: 'admin',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 3,\n        name: 'appearance.update',\n        display_name: 'Update Appearance',\n        description: 'Allows access to appearance editor.',\n        group: 'admin',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 4,\n        name: 'roles.view',\n        display_name: 'View Roles',\n        description: 'Allow viewing ALL roles.',\n        group: 'roles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 5,\n        name: 'roles.create',\n        display_name: 'Create Roles',\n        description: 'Allow creating new roles.',\n        group: 'roles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 6,\n        name: 'roles.update',\n        display_name: 'Update Roles',\n        description: 'Allow updating ALL roles.',\n        group: 'roles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 7,\n        name: 'roles.delete',\n        display_name: 'Delete Roles',\n        description: 'Allow deleting ALL roles.',\n        group: 'roles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 8,\n        name: 'reports.view',\n        display_name: 'View Reports',\n        description: 'Allows access to analytics page.',\n        group: 'analytics',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 9,\n        name: 'custom_pages.view',\n        display_name: 'View Custom Pages',\n        description: 'Allow viewing ALL custom pages.',\n        group: 'custom_pages',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 10,\n        name: 'custom_pages.create',\n        display_name: 'Create Custom Pages',\n        description: 'Allow creating new custom pages.',\n        group: 'custom_pages',\n        restrictions: [\n          {\n            name: 'count',\n            type: 'number',\n            description: 'policies.count_description',\n          },\n        ],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 11,\n        name: 'custom_pages.update',\n        display_name: 'Update Custom Pages',\n        description: 'Allow updating ALL custom pages.',\n        group: 'custom_pages',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 12,\n        name: 'custom_pages.delete',\n        display_name: 'Delete Custom Pages',\n        description: 'Allow deleting ALL custom pages.',\n        group: 'custom_pages',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 17,\n        name: 'files.view',\n        display_name: 'View Files',\n        description: 'Allow viewing ALL files.',\n        group: 'files',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 18,\n        name: 'files.create',\n        display_name: 'Create Files',\n        description: 'Allow creating new files.',\n        group: 'files',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 19,\n        name: 'files.delete',\n        display_name: 'Delete Files',\n        description: 'Allow deleting ALL files.',\n        group: 'files',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 20,\n        name: 'users.view',\n        display_name: 'View Users',\n        description: 'Allow viewing ALL users.',\n        group: 'users',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 21,\n        name: 'users.create',\n        display_name: 'Create Users',\n        description: 'Allow creating new users.',\n        group: 'users',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 22,\n        name: 'users.update',\n        display_name: 'Update Users',\n        description: 'Allow updating ALL users.',\n        group: 'users',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 23,\n        name: 'users.delete',\n        display_name: 'Delete Users',\n        description: 'Allow deleting ALL users.',\n        group: 'users',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 24,\n        name: 'localizations.view',\n        display_name: 'View Localizations',\n        description: 'Allow viewing ALL localizations.',\n        group: 'localizations',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 25,\n        name: 'localizations.create',\n        display_name: 'Create Localizations',\n        description: 'Allow creating new localizations.',\n        group: 'localizations',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 26,\n        name: 'localizations.update',\n        display_name: 'Update Localizations',\n        description: 'Allow updating ALL localizations.',\n        group: 'localizations',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 27,\n        name: 'localizations.delete',\n        display_name: 'Delete Localizations',\n        description: 'Allow deleting ALL localizations.',\n        group: 'localizations',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 28,\n        name: 'mail_templates.view',\n        display_name: 'View Mail Templates',\n        description: 'Allow viewing ALL mail templates.',\n        group: 'mail_templates',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 29,\n        name: 'mail_templates.update',\n        display_name: 'Update Mail Templates',\n        description: 'Allow updating ALL mail templates.',\n        group: 'mail_templates',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 30,\n        name: 'settings.view',\n        display_name: 'View Settings',\n        description: 'Allow viewing ALL settings.',\n        group: 'settings',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 31,\n        name: 'settings.update',\n        display_name: 'Update Settings',\n        description: 'Allow updating ALL settings.',\n        group: 'settings',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 36,\n        name: 'tags.view',\n        display_name: 'View Tags',\n        description: 'Allow viewing ALL tags.',\n        group: 'tags',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 37,\n        name: 'tags.create',\n        display_name: 'Create Tags',\n        description: 'Allow creating new tags.',\n        group: 'tags',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 38,\n        name: 'tags.update',\n        display_name: 'Update Tags',\n        description: 'Allow updating ALL tags.',\n        group: 'tags',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 39,\n        name: 'tags.delete',\n        display_name: 'Delete Tags',\n        description: 'Allow deleting ALL tags.',\n        group: 'tags',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 47,\n        name: 'articles.view',\n        display_name: 'View Articles',\n        description: 'Allow viewing ALL articles.',\n        group: 'articles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 48,\n        name: 'articles.create',\n        display_name: 'Create Articles',\n        description: 'Allow creating new articles.',\n        group: 'articles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 49,\n        name: 'articles.update',\n        display_name: 'Update Articles',\n        description: 'Allow updating ALL articles.',\n        group: 'articles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 50,\n        name: 'articles.delete',\n        display_name: 'Delete Articles',\n        description: 'Allow deleting ALL articles.',\n        group: 'articles',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 51,\n        name: 'categories.view',\n        display_name: 'View Categories',\n        description: 'Allow viewing ALL categories.',\n        group: 'categories',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 52,\n        name: 'categories.create',\n        display_name: 'Create Categories',\n        description: 'Allow creating new categories.',\n        group: 'categories',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 53,\n        name: 'categories.update',\n        display_name: 'Update Categories',\n        description: 'Allow updating ALL categories.',\n        group: 'categories',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 54,\n        name: 'categories.delete',\n        display_name: 'Delete Categories',\n        description: 'Allow deleting ALL categories.',\n        group: 'categories',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 55,\n        name: 'tickets.view',\n        display_name: 'View Tickets',\n        description: 'Allow viewing ALL tickets.',\n        group: 'tickets',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 56,\n        name: 'tickets.create',\n        display_name: 'Create Tickets',\n        description: 'Allow creating new tickets.',\n        group: 'tickets',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 57,\n        name: 'tickets.update',\n        display_name: 'Update Tickets',\n        description: 'Allow updating ALL tickets.',\n        group: 'tickets',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 58,\n        name: 'tickets.delete',\n        display_name: 'Delete Tickets',\n        description: 'Allow deleting ALL tickets.',\n        group: 'tickets',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 59,\n        name: 'replies.view',\n        display_name: 'View Replies',\n        description: 'Allow viewing ALL replies.',\n        group: 'replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 60,\n        name: 'replies.create',\n        display_name: 'Create Replies',\n        description: 'Allow creating new replies.',\n        group: 'replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 61,\n        name: 'replies.update',\n        display_name: 'Update Replies',\n        description: 'Allow updating ALL replies.',\n        group: 'replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 62,\n        name: 'replies.delete',\n        display_name: 'Delete Replies',\n        description: 'Allow deleting ALL replies.',\n        group: 'replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 63,\n        name: 'canned_replies.view',\n        display_name: 'View Canned Replies',\n        description: 'Allow viewing ALL canned replies.',\n        group: 'canned_replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 64,\n        name: 'canned_replies.create',\n        display_name: 'Create Canned Replies',\n        description: 'Allow creating new canned replies.',\n        group: 'canned_replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 65,\n        name: 'canned_replies.update',\n        display_name: 'Update Canned Replies',\n        description: 'Allow updating ALL canned replies.',\n        group: 'canned_replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 66,\n        name: 'canned_replies.delete',\n        display_name: 'Delete Canned Replies',\n        description: 'Allow deleting ALL canned replies.',\n        group: 'canned_replies',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 67,\n        name: 'triggers.view',\n        display_name: 'View Triggers',\n        description: 'Allow viewing ALL triggers.',\n        group: 'triggers',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 68,\n        name: 'triggers.create',\n        display_name: 'Create Triggers',\n        description: 'Allow creating new triggers.',\n        group: 'triggers',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 69,\n        name: 'triggers.update',\n        display_name: 'Update Triggers',\n        description: 'Allow updating ALL triggers.',\n        group: 'triggers',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 70,\n        name: 'conditions.view',\n        display_name: 'View Conditions',\n        description: 'Allow viewing ALL conditions.',\n        group: 'conditions',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n      {\n        id: 71,\n        name: 'actions.view',\n        display_name: 'View Actions',\n        description: 'Allow viewing ALL actions.',\n        group: 'actions',\n        restrictions: [],\n        created_at: '2021-07-17T18:49:33.000000Z',\n        updated_at: '2021-07-17T18:49:33.000000Z',\n        type: 'sitewide',\n      },\n    ]\n\n    this.filtred = Object.entries(\n      this.permissions.reduce((acc, el) => {\n        acc[el.group] = acc[el.group] || []\n        acc[el.group].push(el)\n        return acc\n      }, {}),\n    ).map(([key, value]) => ({ name: key, children: value }))\n  },\n  methods: {\n    test(test) {},\n    info(item, msg) {\n      this.infoModal.title = msg\n      this.dialog = true\n    },\n    editItem(item) {\n      this.editedIndex = this.items.indexOf(item)\n      this.editedItem = { ...item }\n      this.dialog = true\n    },\n    close() {\n      this.dialog = false\n      this.$nextTick(() => {\n        this.editedItem = { ...this.defaultItem }\n        this.editedIndex = -1\n      })\n    },\n    save() {\n      this.$refs.form.validate().then(async success => {\n        if (success) {\n          if (this.editedIndex > -1) {\n            Object.assign(this.items[this.editedIndex], this.editedItem)\n          } else {\n            this.items.push(this.editedItem)\n          }\n          this.close()\n        }\n      })\n    },\n    onFiltered(filteredItems) {\n      // Trigger pagination to update the number of buttons/pages due to filtering\n      this.totalRows = filteredItems.length\n      this.currentPage = 1\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!./List.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!./List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=b0bffe1c&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.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 * 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!./BCardActions.vue?vue&type=style&index=0&id=58e9c0ee&lang=scss&scoped=true&\""],"sourceRoot":""}