1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[7227],{49072:function(e,t,n){n.r(t),n.d(t,{default:function(){return S}});var r=n(1413),s=n(29439),a=n(72426),i=n.n(a),o=n(72791),u=n(33168),c=n(91933),l=n(93021),d=n(98866),m=n(57861),v=n(90056),h=n(80184),p=function(e){var t,n,a,p=e.customerMobileId,S=void 0===p?"":p,f=(0,u.$)(["app-history","common"]).t,g=(0,o.useState)(null),E=(0,s.Z)(g,2),_=E[0],y=E[1],Z=(0,o.useState)({page:1,limit:10}),T=(0,s.Z)(Z,2),x=T[0],M=T[1],A=(0,c.useQuery)([d.S.historySentMessage,S,x],(function(){return m.Z.getSentMessageHistoryInfo(S||"",(0,r.Z)({},x))}),{enabled:!!S,onError:function(e){(0,v.j)(e,f)},onSuccess:function(e){y(e)}}).isLoading,R=[{title:"".concat(f("SENT_MESSAGE_HISTORY.RECEIVED_RATE")),key:"receivedRate",render:function(e){return null!==e&&void 0!==e&&e.createdAt?i()(null===e||void 0===e?void 0:e.createdAt).format("YYYY/MM/DD HH:mm"):""},width:"40%"},{title:"".concat(f("SENT_MESSAGE_HISTORY.MESSAGE_SUBJECT")),key:"messageSubject",render:function(e){var t;return(null===e||void 0===e||null===(t=e.message)||void 0===t?void 0:t.subject)||""},width:"40%"},{title:"".concat(f("SENT_MESSAGE_HISTORY.MESSAGE_STATUS")),key:"messageStatus",align:"center",render:function(e){return null!==e&&void 0!==e&&e.isRead?f("SENT_MESSAGE_HISTORY.READ"):f("SENT_MESSAGE_HISTORY.UNREAD")}}];return(0,h.jsxs)("div",{className:"sent-message-history",children:[(0,h.jsxs)("div",{className:"sent-message-history__header",children:[(0,h.jsxs)("div",{className:"sent-message-history__header-item sent-message-history__header-item--underline",children:[(0,h.jsx)("div",{className:"sent-message-history__header-item-title",children:f("SENT_MESSAGE_HISTORY.TOTAL_MESSAGE_RECEIVED")}),(0,h.jsx)("div",{className:"sent-message-history__header-item-value",children:(null===_||void 0===_||null===(t=_.pageResult)||void 0===t?void 0:t.totalMessagesSent)||0})]}),(0,h.jsxs)("div",{className:"sent-message-history__header-item",children:[(0,h.jsx)("div",{className:"sent-message-history__header-item-title",children:f("SENT_MESSAGE_HISTORY.TOTAL_MESSAGE_OPENED")}),(0,h.jsx)("div",{className:"sent-message-history__header-item-value",children:(null===_||void 0===_||null===(n=_.pageResult)||void 0===n?void 0:n.totalMessagesRead)||0})]})]}),(0,h.jsx)("div",{className:"sent-message-history__content",children:(0,h.jsx)(l.Z,{columns:R,data:(null===_||void 0===_?void 0:_.result)||[],showSizeChanger:!1,pagination:!0,rowKey:"id",total:(null===_||void 0===_||null===(a=_.pageResult)||void 0===a?void 0:a.totalMessagesSent)||0,currentPage:x.page,pageSize:x.limit,onChangePage:function(e,t){M((0,r.Z)((0,r.Z)({},x),{},{page:e,limit:t}))},loading:A})})]})},S=o.memo(p)},57861:function(e,t,n){var r=n(74165),s=n(15861),a=n(43144),i=n(15671),o=n(8287),u=(0,a.Z)((function e(){(0,i.Z)(this,e),this.getRoomHistoryInfo=function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t,n){var s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("/customer-mobile/".concat(t,"/history-use-room"),{params:n});case 2:return s=e.sent,e.abrupt("return",null===s||void 0===s?void 0:s.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getSentMessageHistoryInfo=function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t,n){var s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("/customer-mobile/".concat(t,"/history-open-message"),{params:n});case 2:return s=e.sent,e.abrupt("return",null===s||void 0===s?void 0:s.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getTicketHistoryInfo=function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t,n){var s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("/customer-mobile/".concat(t,"/history-use-ticket"),{params:n});case 2:return s=e.sent,e.abrupt("return",null===s||void 0===s?void 0:s.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getPointHistoryInfo=function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t,n){var s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("/customer-mobile/".concat(t,"/history-issued-stamp"),{params:n});case 2:return s=e.sent,e.abrupt("return",null===s||void 0===s?void 0:s.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getHistoryUseCoupon=function(){var e=(0,s.Z)((0,r.Z)().mark((function e(t,n){var s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.Z.get("/customer-mobile/".concat(t,"/history-use-coupon"),{params:n});case 2:return s=e.sent,e.abrupt("return",null===s||void 0===s?void 0:s.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}));t.Z=new u}}]);
2//# sourceMappingURL=7227.6f4cedc9.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.