PageSourceSearch

https://mirage.co.jp/static/js/2471.2830e78c.chunk.js

js mirage.co.jp collected 2026-10-07 15:32:14 UTC 10,130 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[2471],{84625:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(72791),a=n(80184),o=function(e){var t=e.menuItems,n=e.activeItem,i=e.onHandleActiveItem;return(0,a.jsx)("div",{className:"horizontal__menu__wrap",children:(0,a.jsx)("nav",{className:"horizontal-menu",children:(0,a.jsx)("div",{className:"menu-container",children:(0,a.jsx)("ul",{children:t.map((function(e,t){return(0,a.jsx)("li",{className:n===e.key?"active":"",onClick:function(){return i(e.key)},children:e.name},"horizontal-menu-".concat(t))}))})})})})},r=i.memo(o)},66752:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(1413),a=n(44222),o=n(72791),r=n(80184),s=a.Z.RangePicker,l=function(e){var t=e.onChange,n=e.placeholder,a=e.disabled,o=e.disabledTime,l=e.disabledDate,u=e.value,c=e.onOk,d=e.format,m=e.suffixIcon,p=void 0!==m&&m,f=e.defaultValue,h=e.picker,y=void 0===h?"date":h,v=e.field,x=e.width,g=e.showTime,k=e.allowEmpty,T=(0,i.Z)({disabled:a,disabledTime:o,disabledDate:l,placeholder:n,onChange:t,value:u,onOk:c,format:d,defaultValue:f,showTime:g,allowEmpty:k},!p&&{suffixIcon:null});return(0,r.jsx)(s,(0,i.Z)((0,i.Z)((0,i.Z)({style:{width:x},className:"rangepicker__wrap",picker:y},T),v),{},{showTime:g,disabledTime:o,disabledDate:l,allowEmpty:k}))},u=o.memo(l)},33861:function(e,t,n){var i=n(29439),a=n(93433),o=n(72791),r=n(33168),s=n(91933),l=n(57689),u=n(84625),c=n(47301),d=n(79159),m=n(80184);t.Z=function(){var e=(0,r.$)().t,t=(0,l.s0)(),n=(0,l.TH)(),p=(0,s.useQueryClient)().getQueryData("me").roleLevel===d.u.PART_TIME_STAFF,f=[{name:e("ticket:TAB_TEMPLATE_MANAGEMENT"),path:"/".concat(c.V.APP_MANAGEMENT.TICKET.ROOT),key:"template-management"},{name:e("ticket:TAB_TICKET_USAGE"),path:"/".concat(c.V.APP_MANAGEMENT.USE_TICKET.USE),key:"ticket-usage"}].concat((0,a.Z)(p?[]:[{name:e("ticket:TAB_USAGE_HISTORY"),path:"/".concat(c.V.APP_MANAGEMENT.USE_TICKET.HISTORY),key:"usage-history"},{name:e("ticket:TAB_ISSUE_HISTORY"),path:"/".concat(c.V.APP_MANAGEMENT.ISSUED_TICKET),key:"issue-history"}])),h=function(){var e=n.pathname,t=f.find((function(t){return e===t.path}));return t?t.key:f[0].key},y=(0,o.useState)(h()),v=(0,i.Z)(y,2),x=v[0],g=v[1];(0,o.useEffect)((function(){g(h())}),[n.pathname]);return(0,m.jsx)(u.Z,{menuItems:f,activeItem:x,onHandleActiveItem:function(e){g(e);var n=f.find((function(t){return t.key===e}));n&&t(n.path)}})}},98866:function(e,t,n){var i;n.d(t,{S:function(){return i}}),function(e){e.listRoom="list-room",e.listRoomDetail="list-room-detail",e.mainDetail="main-detail",e.mainStatus="main-status",e.mainPayment="main-payment",e.searchMember="search-member",e.informationMember="information-member",e.productDailyReport="product-daily-report",e.me="me",e.category="category",e.product="item",e.productType="item-type",e.productPrice="item-price",e.productStore="item-store",e.customerType="customer-type",e.feeType="fee-type",e.coupon="coupon",e.store="store",e.rank="rank",e.customerMobile="customer-mobile",e.customerMobileDetail="customer-mobile-detail",e.historyUseRoom="history-use-room",e.historyCoupon="history-coupon",e.historyPoint="history-point",e.historyTicket="history-ticket",e.historySentMessage="history-sent-message",e.listCustomerMobile="list-customer-mobile",e.listCustomerMobileWithoutPagination="list-customer-mobile-without-pagination",e.ticket="ticket",e.issuedTicket="issued-ticket",e.usedTicket="used-ticket",e.historyUseCoupon="history-use-coupon",e.bannerSettings="banner-settings",e.visitStoreHistory="visit-store-history",e.rankCoupon="rank-coupon",e.ticketDetail="ticket-detail",e.normalCouponDetail="normal-coupon-detail",e.customerMobilesByMobileNos="customer-mobiles-by-mobile-nos",e.historyIssuedStamps="history-issued-stamps",e.usedTicketByMobileNo="used-ticket-by-mobile-no",e.usedTicketUpdate="used-ticket-update",e.outTimeBundle="out-time-bundle",e.appDownloads="app-downloads",e.storesRemote="stores-remote",e.callHistory="call-history",e.callRecordingFiles="call-recording-files",e.periodCallChart="period-call-chart",e.timeRangeCallChart="time-range-call-chart",e.topStoresChart="top-stores-chart",e.appDiscountHistory="app-discount-history",e.appDiscountHistoryDetail="app-discount-history-detail"}(i||(i={}))},52471:function(e,t,n){n.r(t),n.d(t,{default:function(){return D}});var i=n(1413),a=n(29439),o=n(37083),r=n(72426),s=n.n(r),l=n(72791),u=n(33168),c=n(91933),d=n(93021),m=n(80184),p=function(e){var t,n=e.data,i=e.onCh
1angePage,a=(0,u.$)(["common","ticket"]).t,o=n.pageResult,r=(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.map((function(e,t){var n,i,a,o;return{key:t,id:null===e||void 0===e?void 0:e.id,name:null===e||void 0===e||null===(n=e.payload)||void 0===n||null===(i=n.ticket)||void 0===i?void 0:i.name,issuedQuantity:null===e||void 0===e||null===(a=e.payload)||void 0===a?void 0:a.issuedQuantity,mobileNo:null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.mobileNo,createdAt:null===e||void 0===e?void 0:e.createdAt}})))||[],c=(0,l.useMemo)((function(){return[{id:1,title:a("ticket:ISSUED_AT"),align:"center",dataIndex:"createdAt",render:function(e){return(0,m.jsx)("span",{children:s()(e).format("YYYY/MM/DD HH:mm")})}},{id:2,title:a("ticket:NAME"),dataIndex:"name",align:"center"},{id:3,title:a("ticket:ISSUED_QUANTITY"),align:"center",dataIndex:"issuedQuantity"},{id:4,title:a("ticket:MOBILE_NO"),align:"center",dataIndex:"mobileNo"}]}),[a]);return(0,m.jsx)("div",{className:"p-ticket-content",children:(0,m.jsx)(d.Z,{showSizeChanger:!1,columns:c,data:r,pagination:!0,total:o.total,currentPage:Number(o.currentPage),pageSize:o.pageSize,onChangePage:function(e,t){i(e,t)}})})},f=n(11095),h=n(66106),y=n(30914),v=n(61134),x=n(6830),g=n(18905),k=n(29541),T=n(96974),Z=n(85550),A=n(33861),b=n(66752),E=function(e){var t=e.onHandleData,n=e.onClearData,i=(0,u.$)(["common","ticket"]).t,a=(0,v.cI)({defaultValues:{name:"",date:null}}),o=a.control,r=a.handleSubmit,s=a.reset;return(0,m.jsxs)("div",{className:"p-issue-ticket-header",children:[(0,m.jsx)(A.Z,{}),(0,m.jsx)(f.Z,{onFinish:r((function(e){t(e)})),children:(0,m.jsxs)(h.Z,{gutter:{xxl:20},children:[(0,m.jsx)(y.Z,{span:24,xxl:16,children:(0,m.jsxs)(h.Z,{gutter:16,children:[(0,m.jsx)(y.Z,{span:8,xxl:{span:8},children:(0,m.jsx)(k.Z,{labelAlign:"left",label:i("ticket:NAME"),colon:!1,children:(0,m.jsx)(v.Qr,{name:"name",control:o,render:function(e){var t=e.field;return(0,m.jsx)(Z.Z,{field:t})}})})}),(0,m.jsx)(y.Z,{span:10,xxl:{span:10},children:(0,m.jsx)(k.Z,{labelAlign:"left",label:i("ticket:VALID_PERIOD"),colon:!1,children:(0,m.jsx)(v.Qr,{name:"date",control:o,render:function(e){var t=e.field;return(0,m.jsx)(b.Z,{field:t,suffixIcon:"true"})}})})})]})}),(0,m.jsx)(y.Z,{span:24,xxl:8,children:(0,m.jsxs)(h.Z,{gutter:16,justify:"end",children:[(0,m.jsx)(y.Z,{span:12,xl:{span:6,offset:6},xxl:{span:10,offset:0},children:(0,m.jsx)(g.Z,{icon:(0,m.jsx)(x.Du,{}),width:"100%",onClick:function(){s({name:"",date:null}),n()},text:"".concat(i("CLEAR"))})}),(0,m.jsx)(y.Z,{span:12,xl:{span:6},xxl:10,children:(0,m.jsx)(g.Z,{icon:(0,m.jsx)(T.Z,{icon:(0,m.jsx)(x.W1,{})}),text:"".concat(i("SEARCH")),type:"primary",width:"100%",htmlType:"submit"})})]})})]})})]})},S=1,j=n(98866),I=n(39115),M=n(91711),C=n(90056),_=n(35661),D=function(){var e=(0,u.$)(["common","ticket"]).t,t={type:S,currentPage:1,name:null,pageSize:10,issuedAtFrom:null,issuedAtTo:null},n=(0,l.useState)(t),r=(0,a.Z)(n,2),d=r[0],f=r[1],h=(0,l.useState)([]),y=(0,a.Z)(h,2),v=y[0],x=y[1],g=(0,l.useState)(0),k=(0,a.Z)(g,2),T=k[0],Z=k[1],A=(0,c.useQuery)([j.S.appDiscountHistory,d],(function(){return M.Z.getAll(d)}),{enabled:!1,onSuccess:function(e){var t;null!==e&&void 0!==e&&e.data?(x(e.data),Z((null===(t=e.pageResult)||void 0===t?void 0:t.total)||0)):(x([]),Z(0))},onError:function(t){(0,C.j)(t,e)}}),b=A.isLoading,D=A.refetch;(0,l.useEffect)((function(){D()}),[]);return(0,l.useEffect)((function(){d&&D()}),[d]),(0,m.jsxs)(I.Z,{className:"p-ticket",title:(0,_.f)([e("APP_MANAGEMENT"),e("TICKET_MANAGEMENT"),e("ticket:TAB_ISSUE_HISTORY")]),children:[(0,m.jsx)(E,{onClearData:function(){f(t)},onHandleData:function(e){var t,n,i={type:S,name:(null===e||void 0===e?void 0:e.name)||null,issuedAtFrom:null!==e&&void 0!==e&&null!==(t=e.date)&&void 0!==t&&t[0]?s()(e.date[0]).format("YYYY-MM-DD"):null,issuedAtTo:null!==e&&void 0!==e&&null!==(n=e.date)&&void 0!==n&&n[1]?s()(e.date[1]).format("YYYY-MM-DD"):null,currentPage:1,pageSize:10};f(i)}}),(0,m.jsx)(o.Z,{spinning:b,children:(0,m.jsx)(p,{data:{data:v,pageResult:{currentPage:d.currentPage||1,pageSize:d.pageSize||10,total:T}},onChangePage:function(e,t){f((0,i.Z)((0,i.Z)({},d),{},{currentPage:e,pageSize:t}))},filter:d,fetchData:D})})]})}},91711:function(e,t,n){var i=n(74165),a=n(15861),o=n(43144),r=n(15671),s=n(8287),l=(0,o.Z)((function e(){(0,r.Z)(this,e),this.getAll=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/app-discount-history",{params:t});case 2:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getAllByCouponType=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/app-discount-history/coupon",{params:t});case 2:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getById=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/app-discount-history/".concat(t));case 2:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}));t.Z=new l},35661:function(e,t,n){n.d(t,{f:function(){return i}});var i=function(e){return e.join(" / ")}}}]);
2//# sourceMappingURL=2471.2830e78c.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.