PageSourceSearch

https://www.shangri-la.com/fe-static/sl-fe-revamp-prod/_next/stati…/history-2361926562ada032.js

js shangri-la.com collected 2026-09-24 08:31:53 UTC 3,316 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9259],{60736:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/corporate/member-benefit-campaign/history",function(){return n(50162)}])},50162:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return E},default:function(){return x}});var i=n(26042),r=n(10092),s=n(47568),a=n(44946),o=n(90902),u=n(56891),l=n(35829);function m(){return c.apply(this,arguments)}function c(){return(c=(0,s.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,(0,a.v_)({url:o.mobile,data:{service:u.fetchHistoryCampaign,query:{timeZone:(0,l.getTimezoneByPrefix)()}}})];case 1:return[2,e.sent()]}})})).apply(this,arguments)}var p={namespace:"memberBenefitCampaignHistory",state:(0,i.Z)({},{memberCampaignList:[],noResult:!1,requestStatus:0,showError:!1}),reducers:{setValue:function(e,t){var n=t.payload;return(0,i.Z)({},e,n)}},effects:{getCampaignHistory:function(e,t){var n,i,s,a,o,u,l,c;return(0,r.__generator)(this,function(r){switch(r.label){case 0:e.payload,n=t.call,i=t.put,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,n(m)];case 2:return o=(a=r.sent()).data,c=void 0===(l=a.context.requestStatus)?0:l,[4,i({type:"setValue",payload:{memberCampaignList:(null==o?void 0:o.memberCampaignList)||[],noResult:null==o||null===(s=o.memberCampaignList)||void 0===s||!s.length,requestStatus:c}})];case 3:case 5:return r.sent(),[3,6];case 4:return r.sent(),[4,i({type:"setValue",payload:{showError:!0}})];case 6:return[2]}})}}},d=n(85893),g=n(67294),f=n(74555),y=n(66248),v=n(10268),_=n(46730),h=n.n(_),b=n(85870),L=n(63027),C=n(47556),H=n(7e3),w=function(e){var t,n=e.dispatch,i=e.userInitReady,r=e.isLogin,s=e.memberCampaignList,a=e.noResult,o=e.requestStatus,u=e.showError,m=(0,v.$G)().t,c=(0,C.Z)(),p=(0,v.$G)("campaignList").t;return((0,g.useEffect)(function(){if(i&&c){if(!r){(0,l.openLogin)();return}n({type:"memberBenefitCampaignHistory/getCampaignHistory"})}},[i,n,r,c]),(0,g.useEffect)(function(){o!==H.N0.LOGIN&&(0,l.openLogin)()},[o]),i&&c)?(t=r&&o===H.N0.LOGIN?u?(0,d.jsx)(L.Z,{message:p("errorTip")}):a?(0,d.jsx)(L.Z,{message:p("noHistoryResult")}):(0,d.jsx)(b.Z,{className:h().groupList,data:[{memberCampaignList:s}],hiddenGroupName:!0}):(0,d.jsx)(L.Z,{message:p("unLoginTip"),showButton:!0,buttonText:p("toLogin"),onClick:l.openLogin}),(0,d.jsxs)("div",{className:h().campaignHistory,children:[(0,d.jsx)(y.Z,{title:m("rewardHistoryTitle")}),t]})):null},N=(0,f.$j)(function(e){var t,n,i,r,s,a;return{memberCampaignList:null==e?void 0:null===(t=e.memberBenefitCampaignHistory)||void 0===t?void 0:t.memberCampaignList,noResult:null==e?void 0:null===(n=e.memberBenefitCampaignHistory)||void 0===n?void 0:n.noResult,userInitReady:null==e?void 0:null===(i=e.header)||void 0===i?void 0:i.userInitReady,isLogin:null==e?void 0:null===(r=e.header)||void 0===r?void 0:r.isLogin,requestStatus:null==e?void 0:null===(s=e.memberBenefitCampaignHistory)||void 0===s?void 0:s.requestStatus,showError:null==e?void 0:null===(a=e.memberBenefitCampaignHistory)||void 0===a?void 0:a.showError}})(w);N.model=[p];var E=!0,x=N},46730:function(e){e.exports={campaignHistory:"History_campaignHistory__Pd7ap",groupList:"History_groupList___s8_i"}}},function(e){e.O(0,[1243,9774,2888,179],function(){return e(e.s=60736)}),_N_E=e.O()}]);

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.