(self.webpackChunk=self.webpackChunk||[]).push([[404],{37404:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});const a=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}]'),s={props:["requests"],metaInfo:function(){return{title:this.trans("Requests")}},computed:{columns:function(){var t=this;return a.map((function(e){return e.title=t.trans(e.title),e}))},innerColumns:function(){return[{dataIndex:"title",key:"title"},{dataIndex:"count",key:"count",scopedSlots:{customRender:"count"},width:160}]}},methods:{reply:function(t){window.open("mailto:".concat(t.email),"_blank")}}};const o=(0,n(51900).Z)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex bg-white p-4 text-lg border-b border-gray-300 h-20 items-center"},[n("div",{staticClass:"flex-1 font-semibold"},[t._v(t._s(t.trans("Requests")))])]),t._v(" "),n("a-table",{attrs:{dataSource:t.requests,columns:t.columns,pagination:!1,"expand-row-by-click":"",rowKey:"id"},scopedSlots:t._u([{key:"id",fn:function(e,a,s){return n("span",{staticClass:"text-right",domProps:{textContent:t._s(s+1)}})}},{key:"actions",fn:function(e,a){return n("span",{staticClass:"text-center"},[n("a-button",{on:{click:function(e){return e.stopPropagation(),t.reply(a)}}},[t._v(" "+t._s(t.trans("Reply"))+" ")])],1)}},{key:"expandedRowRender",fn:function(e){return n("a-table",{attrs:{columns:t.innerColumns,"data-source":e.items,pagination:!1,"show-header":!1,rowKey:"id"},scopedSlots:t._u([{key:"count",fn:function(e,a){return n("span",{},[t._v("\n        "+t._s(a.count)+" "+t._s(a.unit)+"\n      ")])}}])})}}])})],1)}),[],!1,null,null,null).exports}}]);