PageSourceSearch

https://www.chulabook.com/_next/static/chunks/pages/books/[main_ca…/[category]-21fd26ca01662ba5399c.js

js chulabook.com collected 2026-09-24 09:36:05 UTC 10,478 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[88],{"/Y4h":function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n);a("TSYQ"),a("yzAy"),a("4JyM"),a("nOHt"),a("gdJV"),r.a.createElement},"0PkW":function(e,t,a){"use strict";a.r(t);var n=a("o0o1"),r=a.n(n),o=a("rePB"),c=a("ODXe"),i=a("HaE+"),s=a("nOHt"),u=a("q1tI"),l=a.n(u),m=a("wpBX"),p=a("OwAr"),g=a("CafY"),_=a("PLZj"),y=a("IduN"),b=a("nqUn"),f=a("gdJV"),d=a("pAy3"),h=a("yzAy"),O=a("4JyM"),v=(a("/Y4h"),l.a.createElement);function j(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?j(Object(a),!0).forEach((function(t){Object(o.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):j(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var k=function(e){var t=e.t,a=e.query,n=e.products,r=e.cates,o=e.main_category,c=e.sub_category,i=e.category,h=e.main,O=e.currentLanguage,j=e.seller,w=e.mainData,k=e.subData,D=e.cateData,P=e.cateIndex,E=Object(u.useState)(!1),L=E[0],C=E[1],q=Object(u.useContext)(f.b).local,U=(Object(s.useRouter)(),Object(u.useState)(null)),B=U[0],N=U[1];Object(u.useEffect)((function(){document.getElementsByClassName("main-layout")[0]&&(document.getElementsByClassName("main-layout")[0].style.backgroundColor="#F8F9FA")}),[]),Object(u.useEffect)((function(){if(r){var e=r.filter((function(e){return"book"==e.type})),t=r.filter((function(e){return"stationery"==e.type})),a=r.filter((function(e){return"course"==e.type}));N({book:e,ebook:e,stationery:t,course:a,cate:r})}}),[r]);var S="/books/".concat(o,"/").concat(c,"/").concat(i),x=Object(d.a)(992);return v(g.a,{cateData:P},L&&v(_.a,null),v(b.a,{currentLanguage:O,t:t,type:"book",selected:h,mainData:w,subData:k,cateData:D}),x?v(l.a.Fragment,null,j&&v(y.a,{seller:j}),v(p.a,{cates:r,t:t,query:a,pathname:S,products:n,type:"book",s_category:B,setLoading:C,breadcrumb:!1,level:3,page_path:"books",main:h,level1_id:o,level2_id:c,level3_id:i,currentLanguage:O,isSeller:!!j,shop_name:j?j.shop_name:null,cateData:P})):v(m.a,{t:t,query:a,pathname:S,local:q,products:n,type:"book",s_category:B,setLoading:C,breadcrumb:!1,level:3,page_path:"books",level1_id:o,level2_id:c,level3_id:i,main:h,show_all:!1,currentLanguage:O,seller:j,isSeller:!!j,shop_name:j?j.shop_name:null}))};k.getInitialProps=function(){var e=Object(i.a)(r.a.mark((function e(t){var a,n,o,i,s,u,l,m,p,g,_,y,b,f,d,v,j,k,D,P,E,L,C,q,U,B,N,S,x;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.query,n=t.req,o=a.main_category,i=a.sub_category,s=a.category,u=a.shop_name,l=n?n.language:O.i18n.language,e.prev=3,e.next=6,Promise.all([h.a.getCateByURL(o),h.a.getSubCateByURL(i),h.a.getCateItemByURL(s)]);case 6:return m=e.sent,p=Object(c.a)(m,3),g=p[0],_=p[1],y=p[2],b=g.data,f=_.data,d=y.data,(v=w(w({},a),{},{limit:24,type:"book",search:a.text})).main_category=b.id,v.sub_category=f.id,v.category=d.id,e.next=20,Promise.all([h.a.getProducts(v),h.a.getCateByType({main_category:o,sub_category:i,category:s}),h.a.getCate()]);case 20:if(j=e.sent,k=Object(c.a)(j,3),D=k[0],P=k[1],E=k[2],L=D.data,C=P.data,q=E.data,U=null,B=null,!u){e.next=40;break}return 1==a.preview&&(B=1),N=encodeURI("".concat(h.a.baseUrl,"/seller/basic?name=").concat(u).concat(B?"":"&active=1")),e.next=35,fetch(N);case 35:return S=e.sent,e.next=38,S.json();case 38:x=e.sent,U=x;case 40:return e.abrupt("return",{query:a,products:L,cates:C,cateIndex:q,main_category:b.url_name,sub_category:f.url_name,category:d.url_name,main:d,currentLanguage:l,seller:U,mainData:b,subData:f,cateData:d});case 43:throw e.prev=43,e.t0=e.catch(3),console.log(e.t0),e.t0;case 47:case"end":return e.stop()}}),e,null,[[3,43]])})));return function(t){return e.apply(this,arguments)}}(),t.default=Object(O.withTranslation)(["header","product","filter","mobile_header","mobile_products","mobile_filter"])(k)},IduN:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),o=a("nOHt"),c=(a("gdJV"),a("yzAy")),i=a("OuSE"),s=a("H0BT"),u=a("55Re"),l=r.a.createElement;t.a=function(e){e.query;var t=e.seller,a=Object(n.useState)(),m=a[0],p=a[1],g=Object(n.useState)(),_=g[0],y=g[1],b=Object(o.useRouter)(),f=t.shop_name,d=null;b.query.preview&&(d=b.query.preview);return Object(n.useEffect)((function(){!function(){if(t){var e=f;c.a.getSellerBanner(e,{live:d?0:1}).then((function(e){var t=e.data;p(t.type),y(t.banner_images)})).catch((function(e){console.log(e.response)}))}}()}),[]),l(r.a.Fragment,null,l(s.a,{isSeller:!0}),l("div",{className:"h-64px"}),!!t&&l(r.a.Fragment,null,l(u.a,{seller:t}),_?l(i.a,{items:_,type:m,seller_banner:!0}):""))}},mulH:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/books/[main_category]/[sub_category]/[category]",function(){return a("0PkW")}])},nqUn:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),o=a("8Kt/"),c=a.n(o),i=a("yzAy"),s=a("s02U"),u=r.a.createElement;t.a=function(e){var t=e.t,a=e.type,n=e.selected,o=e.mainData,l=e.subData,m=e.cateData,p=e.currentLanguage,g=t("categories"==a?"header:category":"book"==a?"book":"ebook"==a?"ebook":"course"==a?"filter:course_online":"filter:stationery"),_=n?"th"==p?g+n.name_th:j(g)+" "+n.name_en:g,y=s.a.getUrlCategoryFilter(o,l,m,a,p),b=o?"th"==p?g+o.name_th:j(g)+" "+o.name_en:"",f=l?"th"==p?g+l.name_th:j(g)+" "+l.name_en:"",d=m?"th"==p?g+m.name_th:j(g)+" "+m.name_en:"",h=function(){if(n&&n.seo_de
1scription_th)return"th"==p?n.seo_description_th:n.seo_description_en;var e=_,t="";return t+="\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d".concat(w(_,g)," \u0e17\u0e32\u0e07\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c "),t+=o&&b!==e?"".concat(b," "):"",t+=l&&f!==e?"".concat(f," "):"",t+=m&&d!==e?"".concat(d," "):"",t+=O(),t+="\u0e23\u0e32\u0e04\u0e32\u0e1e\u0e34\u0e40\u0e28\u0e29 \u0e0b\u0e37\u0e49\u0e2d\u0e04\u0e23\u0e1a 700 \u0e1a\u0e32\u0e17\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e1f\u0e23\u0e35"},O=function(){return o&&l&&!m?v(l,"items"):!o||l||m?"":v(o,"subs")},v=function(e,t){return e[t].map((function(e,t){return e["name_"+p]})).join(" ")};function j(e){return e.replace(/^./,e[0].toUpperCase())}function w(e,t){for(var a=t+t;e.startsWith(a);)e=e.replace(a,t);return e}return console.log("selected",n),u(r.a.Fragment,null,u(c.a,null,u("title",null,n&&n.seo_title_th?"th"==p?n.seo_title_th:n.seo_title_en:"".concat(w(_,g)," | \u0e23\u0e49\u0e32\u0e19\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e08\u0e38\u0e2c\u0e32\u0e2f")),u("link",{rel:"canonical",href:"".concat(i.a.frontend_url).concat(y.url)}),u("meta",{name:"description",content:"categories"!=a?h():"\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\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 \u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e2d\u0e35\u0e1a\u0e38\u0e4a\u0e04 \u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e44\u0e25\u0e1f\u0e4c\u0e2a\u0e44\u0e15\u0e25\u0e4c \u0e23\u0e32\u0e04\u0e32\u0e1e\u0e34\u0e40\u0e28\u0e29 \u0e0b\u0e37\u0e49\u0e2d\u0e04\u0e23\u0e1a 700 \u0e1a\u0e32\u0e17\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e1f\u0e23\u0e35"}),u("meta",{property:"og:type",content:"website"}),u("meta",{property:"og:title",content:n&&n.seo_title_th?"th"==p?n.seo_title_th:n.seo_title_en:"".concat(w(_,g)," | \u0e23\u0e49\u0e32\u0e19\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e08\u0e38\u0e2c\u0e32\u0e2f")}),u("meta",{property:"og:description",content:"categories"!=a?h():"\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\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 \u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e2d\u0e35\u0e1a\u0e38\u0e4a\u0e04 \u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e44\u0e25\u0e1f\u0e4c\u0e2a\u0e44\u0e15\u0e25\u0e4c \u0e23\u0e32\u0e04\u0e32\u0e1e\u0e34\u0e40\u0e28\u0e29 \u0e0b\u0e37\u0e49\u0e2d\u0e04\u0e23\u0e1a 700 \u0e1a\u0e32\u0e17\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e1f\u0e23\u0e35"}),u("meta",{property:"og:image",content:"".concat(i.a.frontend_url,"/images/homepage.jpg")}),u("meta",{property:"og:site_name",content:"CHULABOOK"}),u("meta",{name:"twitter:image",content:"".concat(i.a.frontend_url,"/images/homepage.jpg")}),u("meta",{name:"twitter:title",content:n&&n.seo_title_th?"th"==p?n.seo_title_th:n.seo_title_en:"".concat(w(_,g)," | \u0e23\u0e49\u0e32\u0e19\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e08\u0e38\u0e2c\u0e32\u0e2f")}),u("meta",{name:"twitter:description",content:"categories"!=a?h():"\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\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 \u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e2d\u0e35\u0e1a\u0e38\u0e4a\u0e04 \u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e44\u0e25\u0e1f\u0e4c\u0e2a\u0e44\u0e15\u0e25\u0e4c \u0e23\u0e32\u0e04\u0e32\u0e1e\u0e34\u0e40\u0e28\u0e29 \u0e0b\u0e37\u0e49\u0e2d\u0e04\u0e23\u0e1a 700 \u0e1a\u0e32\u0e17\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e1f\u0e23\u0e35"}),u("meta",{name:"twitter:site",content:"CHULABOOK"}),u("meta",{name:"twitter:creator",content:"CHULABOOK"}),u("meta",{name:"google-site-verification",content:"dBDOYd14FFLmHNrRUP
1CDvPoN1zgAFmN9TLJ6ieEhDpU"})))}}},[["mulH",0,2,1,3,5,4,6,7,8,9,10,11,12,13,14,15,17,19,22,21,23]]]);

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.