PageSourceSearch

https://www.chulabook.com/_next/static/chunks/pages/promotion/[subkey]-d650f90bc4fccb6ecf6e.js

js chulabook.com collected 2026-09-24 09:37:25 UTC 2,926 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[147],{"0o6/":function(e,t,o){"use strict";o.r(t);var n=o("o0o1"),r=o.n(n),a=o("ODXe"),c=o("rePB"),s=o("HaE+"),u=o("nOHt"),i=o("q1tI"),l=o.n(i),b=(o("5LPp"),o("CafY")),p=(o("FY8F"),o("189s")),y=(o("2Yye"),o("gdJV")),O=o("yzAy"),f=o("4JyM"),m=l.a.createElement;function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){Object(c.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var j=function(e){e.t;var t=e.news,o=e.books,n=e.query,r=Object(i.useState)(),a=(r[0],r[1]),c=Object(i.useState)(),s=c[0],l=c[1],f=Object(i.useState)(!1),w=f[0],d=(f[1],Object(i.useContext)(y.b).local,Object(u.useRouter)()),j="promotion",g=d.query.subkey;return Object(i.useEffect)((function(){l("\u0e42\u0e1b\u0e23\u0e42\u0e21\u0e0a\u0e31\u0e48\u0e19"),O.a.getAllContent({key:j,subkey:g}).then((function(e){var t=e.data;a(t)})).catch((function(e){console.log(e)})),document.getElementsByClassName("main-layout")[0]&&(document.getElementsByClassName("main-layout")[0].style.backgroundColor="#FFFFFF")}),[j,g]),console.log("books",o),m(b.a,{title:"".concat(s?"".concat(s,"  | \u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e08\u0e38\u0e2c\u0e32\u0e2f"):"\u0e23\u0e49\u0e32\u0e19\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e41\u0e2b\u0e48\u0e07\u0e08\u0e38\u0e2c\u0e32\u0e25\u0e07\u0e01\u0e23\u0e13\u0e4c\u0e21\u0e2b\u0e32\u0e27\u0e34\u0e17\u0e22\u0e32\u0e25\u0e31\u0e22"),loading:w},m(p.a,{page:j,data:t,books:o,query:n}))};j.getInitialProps=function(){var e=Object(s.a)(r.a.mark((function e(t){var o,n,c,s,u,i,l,b,p;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.query,n=o.subkey,c=d(d({},o),{},{limit:16}),e.prev=3,e.next=6,Promise.all([O.a.getOneNews(n),O.a.getProductPromotion(n,c)]);case 6:return s=e.sent,u=Object(a.a)(s,2),i=u[0],l=u[1],b=i.data,p=l.data,e.abrupt("return",{query:o,news:b,books:p});case 15:throw e.prev=15,e.t0=e.catch(3),console.log(e.t0),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])})));return function(t){return e.apply(this,arguments)}}(),t.default=Object(f.withTranslation)("mobile_home","mobile_header","mobile_footer","mobile_translations","mobile_contact")(j)},KdLI:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/promotion/[subkey]",function(){return o("0o6/")}])}},[["KdLI",0,2,1,3,5,4,6,7,8,9,10,12,13,16,18,25,28,26,29]]]);

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.