PageSourceSearch

https://beccato.com/_next/static/chunks/pages/reward-b7f2524603147cb4.js

js beccato.com collected 2026-10-09 23:22:39 UTC 4,063 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8648],{21427:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reward",function(){return t(61993)}])},61993:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return _}});var n=t(52322),a=t(28679),s=t(42670),c=t(24189),i=t(92766),o=t(94776),l=t.n(o),d=t(2784),u=t(47952),m=t(17962),x=t(39097),h=t.n(x);function f(e){var r=e.product;e.prefix,e.category;return(0,n.jsx)("div",{className:"p-4 mb-8 border border-gray-300 rounded-xl",children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"h-52 w-full flex justify-center items-center my-4",children:r.images.length>0&&(0,n.jsx)(h(),{href:"/reward/".concat(r.url_key,"/").concat(r.id),children:(0,n.jsx)("a",{children:(0,n.jsx)("img",{src:r.images[0].medium_image_url,alt:r.name,className:"object-contain h-52"})})})||(0,n.jsx)(h(),{href:"/reward/".concat(r.url_key,"/").concat(r.id),children:(0,n.jsx)("a",{children:(0,n.jsx)("img",{loading:"lazy",src:"https://ik.imagekit.io/tfrbjwrrmbq/logo_sNCjL6G8V.png",alt:"Beccato logo",className:"object-contain h-52"})})})}),(0,n.jsx)("p",{className:"text-xl text-center mb-4 overflow-hidden text-ellipsis whitespace-nowrap",children:r.name}),(0,n.jsxs)("p",{className:"font-semibold text-center mb-4 text-main-400",children:[r.redemption_point," B-Coins"]}),(0,n.jsx)(h(),{href:"/reward/".concat(r.url_key,"/").concat(r.id),children:(0,n.jsx)("a",{children:(0,n.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 w-20 border border-gray-300 bg-white p-2 -bottom-14 rounded-2xl",children:(0,n.jsx)(m.Q1y,{className:"h-8 w-8 mx-auto"})})})})]})},r.id)}var p=t(2342),j=t(52679),g=t(37319);function v(e,r,t,n,a,s,c){try{var i=e[s](c),o=i.value}catch(l){return void t(l)}i.done?r(o):Promise.resolve(o).then(n,a)}function w(){var e=(0,d.useState)([]),r=e[0],t=e[1],a=(0,d.useContext)(u.R).locale;return(0,d.useEffect)((function(){var e;(e=l().mark((function e(){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.T_.get("/v1/member/rewards",{params:{locale:a,limit:20}});case 3:200===(r=e.sent).status&&r.data&&r.data.data&&t(r.data.data),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var r=this,t=arguments;return new Promise((function(n,a){var s=e.apply(r,t);function c(e){v(s,n,a,c,i,"next",e)}function i(e){v(s,n,a,c,i,"throw",e)}c(void 0)}))})()}),[a]),(0,n.jsxs)("div",{className:"bg-white",children:[(0,n.jsx)("h3",{className:"text-4xl font-bold text-center",children:(0,n.jsx)(s.Z,{id:"app.menu.b_coin_reward",defaultMessage:"B Coins"})}),(0,n.jsx)(j.Z,{}),(0,n.jsx)(g.Z,{showEmpty:0===r.length,children:(0,n.jsx)("div",{className:"grid grid-cols-2 gap-y-10 gap-x-1 lg:grid-cols-3 xl:grid-cols-4",children:r.map((function(e){return e&&(0,n.jsx)(f,{category:"all",prefix:"reward",product:e},e.id)}))})})]})}function _(){return(0,n.jsx)(i.Z,{title:"Beccato | Reward",children:(0,n.jsxs)(c.default,{children:[(0,n.jsxs)(a.Z,{separator:">",children:[(0,n.jsxs)(a.Z.Item,{children:[(0,n.jsx)("i",{className:"fas fa-home"}),(0,n.jsx)(s.Z,{defaultMessage:"Home",id:"app.common.home"})]}),(0,n.jsx)(a.Z.Item,{children:(0,n.jsx)(s.Z,{defaultMessage:"B Coins",id:"app.common.b_coin_reward"})})]}),(0,n.jsx)("div",{className:"shop",children:(0,n.jsx)("div",{className:"shop-content",children:(0,n.jsx)(w,{})})})]})})}},52679:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(52322);function a(){return(0,n.jsx)("div",{className:"w-20 h-1 bg-green-600 mx-auto my-4"})}},37319:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});var n=t(52322),a=t(18020);function s(e){var r=e.showEmpty,t=void 0===r||r,s=e.children;return t?(0,n.jsx)(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,description:"Empty"}):(0,n.jsx)(n.Fragment,{children:s})}}},function(e){e.O(0,[669,8022,8679,2766,9774,2888,179],(function(){return r=21427,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
2//# sourceMappingURL=reward-b7f2524603147cb4.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.