(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Requests_vue"],{

/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=script&lang=js&":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=script&lang=js& ***!
  \**********************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _data_request_columns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/data/request-columns */ "./resources/js/data/request-columns.json");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  props: ["requests"],
  metaInfo: function metaInfo() {
    return {
      title: this.trans('Requests')
    };
  },
  computed: {
    columns: function columns() {
      var _this = this;

      return _data_request_columns__WEBPACK_IMPORTED_MODULE_0__.map(function (column) {
        column.title = _this.trans(column.title);
        return column;
      });
    },
    innerColumns: function innerColumns() {
      return [{
        dataIndex: "title",
        key: "title"
      }, {
        dataIndex: "count",
        key: "count",
        scopedSlots: {
          customRender: "count"
        },
        width: 160
      }];
    }
  },
  methods: {
    reply: function reply(row) {
      window.open("mailto:".concat(row.email), "_blank");
    }
  }
});

/***/ }),

/***/ "./resources/js/Pages/Requests.vue":
/*!*****************************************!*\
  !*** ./resources/js/Pages/Requests.vue ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Requests.vue?vue&type=template&id=5891a46d& */ "./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d&");
/* harmony import */ var _Requests_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Requests.vue?vue&type=script&lang=js& */ "./resources/js/Pages/Requests.vue?vue&type=script&lang=js&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");





/* normalize component */
;
var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(
  _Requests_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,
  _Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__.render,
  _Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/Pages/Requests.vue"
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);

/***/ }),

/***/ "./resources/js/Pages/Requests.vue?vue&type=script&lang=js&":
/*!******************************************************************!*\
  !*** ./resources/js/Pages/Requests.vue?vue&type=script&lang=js& ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Requests_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=script&lang=js&");
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Requests_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); 

/***/ }),

/***/ "./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d&":
/*!************************************************************************!*\
  !*** ./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d& ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__.render),
/* harmony export */   "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Requests_vue_vue_type_template_id_5891a46d___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Requests.vue?vue&type=template&id=5891a46d& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d&");


/***/ }),

/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d&":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Requests.vue?vue&type=template&id=5891a46d& ***!
  \***************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* binding */ render),
/* harmony export */   "staticRenderFns": () => (/* binding */ staticRenderFns)
/* harmony export */ });
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    [
      _c(
        "div",
        {
          staticClass:
            "flex bg-white p-4 text-lg border-b border-gray-300 h-20 items-center"
        },
        [
          _c("div", { staticClass: "flex-1 font-semibold" }, [
            _vm._v(_vm._s(_vm.trans("Requests")))
          ])
        ]
      ),
      _vm._v(" "),
      _c("a-table", {
        attrs: {
          dataSource: _vm.requests,
          columns: _vm.columns,
          pagination: false,
          "expand-row-by-click": "",
          rowKey: "id"
        },
        scopedSlots: _vm._u([
          {
            key: "id",
            fn: function(_, __, index) {
              return _c("span", {
                staticClass: "text-right",
                domProps: { textContent: _vm._s(index + 1) }
              })
            }
          },
          {
            key: "actions",
            fn: function(_, row) {
              return _c(
                "span",
                { staticClass: "text-center" },
                [
                  _c(
                    "a-button",
                    {
                      on: {
                        click: function($event) {
                          $event.stopPropagation()
                          return (function() {
                            return _vm.reply(row)
                          })($event)
                        }
                      }
                    },
                    [_vm._v(" " + _vm._s(_vm.trans("Reply")) + " ")]
                  )
                ],
                1
              )
            }
          },
          {
            key: "expandedRowRender",
            fn: function(row) {
              return _c("a-table", {
                attrs: {
                  columns: _vm.innerColumns,
                  "data-source": row.items,
                  pagination: false,
                  "show-header": false,
                  rowKey: "id"
                },
                scopedSlots: _vm._u([
                  {
                    key: "count",
                    fn: function(_, row) {
                      return _c("span", {}, [
                        _vm._v(
                          "\n        " +
                            _vm._s(row.count) +
                            " " +
                            _vm._s(row.unit) +
                            "\n      "
                        )
                      ])
                    }
                  }
                ])
              })
            }
          }
        ])
      })
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ "./resources/js/data/request-columns.json":
/*!************************************************!*\
  !*** ./resources/js/data/request-columns.json ***!
  \************************************************/
/***/ ((module) => {

"use strict";
module.exports = JSON.parse('[{"key":"id","dataIndex":"id","title":"№","width":50,"scopedSlots":{"customRender":"id"}},{"dataIndex":"name","key":"name","title":"Name"},{"dataIndex":"phone","key":"phone","title":"Phone","width":220},{"dataIndex":"email","key":"email","title":"Email","width":220},{"dataIndex":"created_at","key":"created_at","title":"Created date","width":220},{"key":"actions","scopedSlots":{"customRender":"actions"},"width":170}]');

/***/ })

}]);