{"version":3,"sources":["webpack:///./src/views/faq/ListAll.vue?c2ac","webpack:///src/views/faq/ListAll.vue","webpack:///./src/views/faq/ListAll.vue?d560","webpack:///./src/views/faq/ListAll.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","on","$event","type","indexOf","_k","keyCode","key","getFaqs","apply","arguments","model","value","serverParams","callback","$$v","$set","expression","_v","totalRecords","isLoading","enabled","rows","columns","onPageChange","onSortChange","onColumnFilter","onPerPageChange","scopedSlots","_u","fn","props","column","field","_s","row","full_name","$moment","created_at","format","opt_gdpr","class","is_dncm","is_proximus_blacklisted","latest_solvability","solvabilite","statusVariant","directives","name","rawName","modifiers","deleteEl","details","edit","status","publish","_e","staticRenderFns","components","VueGoodTable","data","disabled","search","sort","page","perPage","label","sortable","computed","mapGetters","user","is_reject_blocked","orange","red","green","direction","created","mounted","methods","item","title","text","icon","showCancelButton","confirmButtonText","cancelButtonText","customClass","confirmButton","cancelButton","buttonsStyling","then","id","component","variant","mapActions","params","updateParams","newProps","Ripple"],"mappings":"8HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,GAAG,CAACA,EAAG,eAAe,CAACA,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,YAAcP,EAAIQ,GAAG,yBAAyB,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,KAAKC,QAAQ,QAAQZ,EAAIa,GAAGH,EAAOI,QAAQ,QAAQ,GAAGJ,EAAOK,IAAI,SAAkB,KAAcf,EAAIgB,QAAQC,MAAM,KAAMC,aAAaC,MAAM,CAACC,MAAOpB,EAAIqB,aAAmB,OAAEC,SAAS,SAAUC,GAAMvB,EAAIwB,KAAKxB,EAAIqB,aAAc,SAAUE,IAAME,WAAW,yB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AAmC,E","file":"FaqListAll~cba7f08b.25b984f7.js?version=1727726453033","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{},[_c('b-form-group',[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('b-form-input',{attrs:{\"placeholder\":_vm.$t('Filtrez vos résultats'),\"type\":\"text\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.getFaqs.apply(null, arguments)}},model:{value:(_vm.serverParams.search),callback:function ($$v) {_vm.$set(_vm.serverParams, \"search\", $$v)},expression:\"serverParams.search\"}}),_c('b-btn',{on:{\"click\":_vm.getFaqs}},[_vm._v(\" Filtrer \")])],1)])],1),_c('vue-good-table',{attrs:{\"mode\":\"remote\",\"total-rows\":_vm.totalRecords,\"is-loading\":_vm.isLoading,\"pagination-options\":{\n      enabled: true,\n    },\"rows\":_vm.rows,\"columns\":_vm.columns},on:{\"update:isLoading\":function($event){_vm.isLoading=$event},\"update:is-loading\":function($event){_vm.isLoading=$event},\"on-page-change\":_vm.onPageChange,\"on-sort-change\":_vm.onSortChange,\"on-column-filter\":_vm.onColumnFilter,\"on-per-page-change\":_vm.onPerPageChange},scopedSlots:_vm._u([{key:\"table-row\",fn:function(props){return [(props.column.field === 'nom')?_c('span',{staticClass:\"text-nowrap\"},[_c('span',{staticClass:\"text-nowrap\"},[_vm._v(_vm._s(props.row.full_name))])]):(props.column.field === 'created_at')?_c('span',{staticClass:\"text-nowrap\"},[_c('span',{staticClass:\"text-nowrap\"},[_c('span',[_vm._v(_vm._s(_vm.$moment(props.row.created_at).format(\"DD/MM/YYYY hh:mm\")))])])]):(props.column.field === 'opt_gdpr')?_c('span',{staticClass:\"text-nowrap\"},[_c('span',{staticClass:\"text-nowrap\"},[_vm._v(_vm._s(_vm.$t(props.row.opt_gdpr)))])]):(props.column.field === 'is_dncm')?_c('span',{staticClass:\"text-nowrap\"},[_c('feather-icon',{class:{\n            'text-danger': props.row.is_dncm,\n            'text-success': !props.row.is_dncm,\n          },attrs:{\"icon\":(\"\" + (props.row.is_dncm ? 'XIcon' : 'CheckIcon'))}})],1):(props.column.field === 'is_proximus_blacklisted')?_c('span',{staticClass:\"text-nowrap\"},[_c('feather-icon',{class:{\n            'text-danger': props.row.is_proximus_blacklisted,\n            'text-success': !props.row.is_proximus_blacklisted,\n          },attrs:{\"icon\":(\"\" + (props.row.is_proximus_blacklisted ? 'XIcon' : 'CheckIcon'))}})],1):(props.column.field === 'latest_solvability.solvabilite')?_c('span',[(\n            props.row.latest_solvability &&\n              props.row.latest_solvability.solvabilite\n          )?_c('b-badge',{attrs:{\"variant\":_vm.statusVariant(props.row.latest_solvability.solvabilite)}},[_vm._v(\" \"+_vm._s(props.row.latest_solvability.solvabilite)+\" \")]):_c('b-badge',{attrs:{\"variant\":\"secondary\"}},[_vm._v(_vm._s(_vm.$t(\"En cours\")))])],1):(props.column.field === 'action')?_c('span',[_c('b-button-group',[_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(113, 102, 240, 0.15)'),expression:\"'rgba(113, 102, 240, 0.15)'\",modifiers:{\"400\":true}},{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"variant\":\"outline-primary\",\"title\":_vm.$t('Supprimer')},on:{\"click\":function($event){return _vm.deleteEl(props.row)}}},[_c('feather-icon',{attrs:{\"icon\":\"TrashIcon\"}})],1),_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(113, 102, 240, 0.15)'),expression:\"'rgba(113, 102, 240, 0.15)'\",modifiers:{\"400\":true}},{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"variant\":\"outline-primary\",\"title\":_vm.$t('Afficher')},on:{\"click\":function($event){return _vm.details(props.row)}}},[_c('feather-icon',{attrs:{\"icon\":\"EyeIcon\"}})],1),_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(113, 102, 240, 0.15)'),expression:\"'rgba(113, 102, 240, 0.15)'\",modifiers:{\"400\":true}},{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"variant\":\"outline-primary\",\"title\":_vm.$t('Modifier')},on:{\"click\":function($event){return _vm.edit(props.row)}}},[_c('feather-icon',{attrs:{\"icon\":\"EditIcon\"}})],1),_c('b-button',{directives:[{name:\"ripple\",rawName:\"v-ripple.400\",value:('rgba(113, 102, 240, 0.15)'),expression:\"'rgba(113, 102, 240, 0.15)'\",modifiers:{\"400\":true}},{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],attrs:{\"disabled\":props.row.status != 'pending',\"variant\":props.row.status == 'pending'\n                ? 'outline-primary'\n                : 'outline-secondary',\"title\":\"Publier \"},on:{\"click\":function($event){return _vm.publish(props.row)}}},[_c('feather-icon',{attrs:{\"icon\":\"UploadCloudIcon\"}})],1)],1)],1):_vm._e()]}}])}),_c('br')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <!-- search input -->\n    <div class=\"\">\n      <b-form-group>\n        <div class=\"d-flex align-items-center\">\n          <b-form-input\n            v-model=\"serverParams.search\"\n            :placeholder=\"$t('Filtrez vos résultats')\"\n            type=\"text\"\n            @keyup.enter=\"getFaqs\"\n          />\n          <b-btn @click=\"getFaqs\">\n            Filtrer\n          </b-btn>\n        </div>\n      </b-form-group>\n    </div>\n\n    <vue-good-table\n      mode=\"remote\"\n      :total-rows=\"totalRecords\"\n      :is-loading.sync=\"isLoading\"\n      :pagination-options=\"{\n        enabled: true,\n      }\"\n      :rows=\"rows\"\n      :columns=\"columns\"\n      @on-page-change=\"onPageChange\"\n      @on-sort-change=\"onSortChange\"\n      @on-column-filter=\"onColumnFilter\"\n      @on-per-page-change=\"onPerPageChange\"\n    >\n      <template\n        slot=\"table-row\"\n        slot-scope=\"props\"\n      >\n        <!-- Column: Name -->\n        <span\n          v-if=\"props.column.field === 'nom'\"\n          class=\"text-nowrap\"\n        >\n          <span class=\"text-nowrap\">{{ props.row.full_name }}</span>\n        </span>\n        <span\n          v-else-if=\"props.column.field === 'created_at'\"\n          class=\"text-nowrap\"\n        >\n          <span class=\"text-nowrap\"><span>{{\n            $moment(props.row.created_at).format(\"DD/MM/YYYY hh:mm\")\n          }}</span></span>\n        </span>\n        <!-- Column: Status -->\n        <span\n          v-else-if=\"props.column.field === 'opt_gdpr'\"\n          class=\"text-nowrap\"\n        >\n          <span class=\"text-nowrap\">{{ $t(props.row.opt_gdpr) }}</span>\n        </span>\n        <span\n          v-else-if=\"props.column.field === 'is_dncm'\"\n          class=\"text-nowrap\"\n        >\n          <feather-icon\n            :icon=\"`${props.row.is_dncm ? 'XIcon' : 'CheckIcon'}`\"\n            :class=\"{\n              'text-danger': props.row.is_dncm,\n              'text-success': !props.row.is_dncm,\n            }\"\n          />\n        </span>\n\n        <span\n          v-else-if=\"props.column.field === 'is_proximus_blacklisted'\"\n          class=\"text-nowrap\"\n        >\n          <feather-icon\n            :icon=\"`${\n              props.row.is_proximus_blacklisted ? 'XIcon' : 'CheckIcon'\n            }`\"\n            :class=\"{\n              'text-danger': props.row.is_proximus_blacklisted,\n              'text-success': !props.row.is_proximus_blacklisted,\n            }\"\n          />\n        </span>\n        <span\n          v-else-if=\"props.column.field === 'latest_solvability.solvabilite'\"\n        >\n          <b-badge\n            v-if=\"\n              props.row.latest_solvability &&\n                props.row.latest_solvability.solvabilite\n            \"\n            :variant=\"statusVariant(props.row.latest_solvability.solvabilite)\"\n          >\n            {{ props.row.latest_solvability.solvabilite }}\n          </b-badge>\n          <b-badge\n            v-else\n            variant=\"secondary\"\n          >{{ $t(\"En cours\") }}</b-badge>\n        </span>\n\n        <!-- Column: Action -->\n        <span v-else-if=\"props.column.field === 'action'\">\n          <b-button-group>\n            <b-button\n              v-ripple.400=\"'rgba(113, 102, 240, 0.15)'\"\n              v-b-tooltip.hover\n              variant=\"outline-primary\"\n              :title=\"$t('Supprimer')\"\n              @click=\"deleteEl(props.row)\"\n            >\n              <feather-icon icon=\"TrashIcon\" />\n            </b-button>\n            <b-button\n              v-ripple.400=\"'rgba(113, 102, 240, 0.15)'\"\n              v-b-tooltip.hover\n              variant=\"outline-primary\"\n              :title=\"$t('Afficher')\"\n              @click=\"details(props.row)\"\n            >\n              <feather-icon icon=\"EyeIcon\" />\n            </b-button>\n            <b-button\n              v-ripple.400=\"'rgba(113, 102, 240, 0.15)'\"\n              v-b-tooltip.hover\n              variant=\"outline-primary\"\n              :title=\"$t('Modifier')\"\n              @click=\"edit(props.row)\"\n            >\n              <feather-icon icon=\"EditIcon\" />\n            </b-button>\n            <b-button\n              v-ripple.400=\"'rgba(113, 102, 240, 0.15)'\"\n              v-b-tooltip.hover\n              :disabled=\"props.row.status != 'pending'\"\n              :variant=\"\n                props.row.status == 'pending'\n                  ? 'outline-primary'\n                  : 'outline-secondary'\n              \"\n              title=\"Publier \"\n              @click=\"publish(props.row)\"\n            >\n              <feather-icon icon=\"UploadCloudIcon\" />\n            </b-button>\n          </b-button-group>\n        </span>\n      </template>\n    </vue-good-table>\n    <br>\n  </div>\n</template>\n\n<script>\nimport { VueGoodTable } from 'vue-good-table'\nimport store from '@/store/index'\nimport Ripple from 'vue-ripple-directive'\nimport { mapActions, mapGetters } from 'vuex'\nimport ToastificationContentVue from '@/@core/components/toastification/ToastificationContent.vue'\n\nexport default {\n  components: {\n    VueGoodTable,\n  },\n  data() {\n    return {\n      disabled: false,\n      isLoading: false,\n      rows: [],\n      totalRecords: 0,\n      serverParams: {\n        search: '',\n        sort: [\n          {\n            field: '',\n            type: '',\n          },\n        ],\n        page: 1,\n        perPage: 10,\n      },\n      columns: [\n        { label: 'ID', field: 'id' },\n        {\n          label: this.$t('Date de création'),\n          field: 'created_at',\n        },\n        {\n          label: this.$t('Language'),\n          field: 'lang',\n        },\n        {\n          label: this.$t('Sujet'),\n          field: 'subject',\n        },\n        {\n          label: this.$t('Auteur'),\n          field: 'created_by.firstname',\n        },\n        {\n          label: this.$t('Catégorie'),\n          field: 'tag.name',\n        },\n        {\n          label: this.$t('Etat de FAQ'),\n          field: 'status',\n        },\n        {\n          label: this.$t('Actions'),\nsortable: false,\n          field: 'action',\n        },\n      ],\n    }\n  },\n  computed: {\n    ...mapGetters('auth', {\n      user: 'GET_USER_DATA',\n      is_reject_blocked: 'IS_REJECTED',\n    }),\n    statusVariant(key) {\n      const statusColor = {\n        /* eslint-disable key-spacing */\n        orange: 'light-warning',\n        red: 'light-danger',\n        green: 'light-success',\n\n        /* eslint-enable key-spacing */\n      }\n\n      return key => statusColor[key]\n    },\n    direction() {\n      if (store.state.appConfig.isRTL) {\n        // eslint-disable-next-line vue/no-side-effects-in-computed-properties\n        this.dir = true\n        return this.dir\n      }\n      // eslint-disable-next-line vue/no-side-effects-in-computed-properties\n      this.dir = false\n      return this.dir\n    },\n  },\n  created() {},\n  async mounted() {\n    this.getFaqs()\n  },\n  methods: {\n    deleteEl(item) {\n      this.$swal({\n        title: this.$t('Supprimer cet Article ?'),\n        text: this.$t('Vous êtes sur le point de supprimer cet Article'),\n        icon: 'warning',\n        showCancelButton: true,\n        confirmButtonText: this.$t('Oui, supprimer'),\n        cancelButtonText: this.$t('Annuler'),\n        customClass: {\n          confirmButton: 'btn btn-primary',\n          cancelButton: 'btn btn-outline-danger ml-1',\n        },\n        buttonsStyling: false,\n      }).then(result => {\n        if (result.value) {\n          this.DELETE_FAQ(item)\n            .then(() => this.$swal({\n              icon: 'success',\n              title: 'Supprimé',\n              text: this.$t('Le Document a été supprimé'),\n              customClass: {\n                confirmButton: 'btn btn-success',\n              },\n            }))\n            .then(async () => {\n              await this.getFaqs()\n            })\n        } else if (result.dismiss === 'cancel') {\n          this.$swal({\n            title: this.$t('Annulée'),\n            text: this.$t(\"Votre Article n'a pas été supprimé :)\"),\n            icon: 'error',\n            customClass: {\n              confirmButton: 'btn btn-success',\n            },\n          })\n        }\n      })\n    },\n    publish(item) {\n      this.PUBLISH_FAQ({ id: item.id }).then(() => {\n        item.status = 'published'\n        this.$toast({\n          component: ToastificationContentVue,\n          props: {\n            title: this.$t('Faq publiée avec Success'),\n            icon: 'success',\n            variant: 'success',\n          },\n        })\n      })\n    },\n    async getFaqs() {\n      this.isLoading = true\n      await this.GET_ALL_FAQS(this.serverParams).then(res => {\n        if (res) {\n          this.rows = res.data\n          this.isLoading = false\n          this.totalRecords = res.count\n        }\n      })\n    },\n    ...mapActions('faqs', ['GET_ALL_FAQS', 'PUBLISH_FAQ', 'DELETE_FAQ']),\n    details(item) {\n      this.$router.push({ name: 'Faq', params: { id: item.id } })\n    },\n    updateParams(newProps) {\n      this.serverParams = { ...this.serverParams, ...newProps }\n    },\n\n    onPageChange(params) {\n      this.updateParams({ page: params.currentPage })\n      this.getFaqs()\n    },\n\n    onPerPageChange(params) {\n      this.updateParams({ perPage: params.currentPerPage, page: 1 })\n\n      this.getFaqs()\n    },\n\n    onSortChange(params) {\n      this.updateParams({\n        sort: params,\n      })\n      this.getFaqs()\n    },\n\n    onColumnFilter(params) {\n      this.updateParams(params)\n      this.getFaqs()\n    },\n\n    // load items is what brings back the rows from server\n  },\n  directives: {\n    Ripple,\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!./ListAll.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!./ListAll.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ListAll.vue?vue&type=template&id=df5436c6&\"\nimport script from \"./ListAll.vue?vue&type=script&lang=js&\"\nexport * from \"./ListAll.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":""}