PageSourceSearch

https://www.chulabook.com/_next/static/chunks/pages/courses/[main_category]-bd91d14811a65bca727e.js

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

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[94],{"/Y4h":function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a);n("TSYQ"),n("yzAy"),n("4JyM"),n("nOHt"),n("gdJV"),r.a.createElement},IduN:function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a),o=n("nOHt"),c=(n("gdJV"),n("yzAy")),i=n("OuSE"),s=n("H0BT"),u=n("55Re"),l=r.a.createElement;t.a=function(e){e.query;var t=e.seller,n=Object(a.useState)(),m=n[0],p=n[1],g=Object(a.useState)(),_=g[0],y=g[1],f=Object(o.useRouter)(),d=t.shop_name,b=null;f.query.preview&&(b=f.query.preview);return Object(a.useEffect)((function(){!function(){if(t){var e=d;c.a.getSellerBanner(e,{live:b?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}):""))}},dMPR:function(e,t,n){"use strict";n.r(t);var a=n("o0o1"),r=n.n(a),o=n("rePB"),c=n("ODXe"),i=n("HaE+"),s=n("nOHt"),u=n("q1tI"),l=n.n(u),m=n("wpBX"),p=n("OwAr"),g=n("CafY"),_=n("PLZj"),y=n("IduN"),f=n("nqUn"),d=n("gdJV"),b=n("pAy3"),h=n("yzAy"),O=n("4JyM"),v=(n("/Y4h"),l.a.createElement);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function(e){var t=e.t,n=e.query,a=e.products,r=e.cates,o=e.main_category,c=e.main,i=e.currentLanguage,h=e.seller,O=e.mainData,j=e.cateIndex,w=Object(u.useState)(!1),P=w[0],E=w[1],k=Object(u.useContext)(d.b).local,D=(Object(s.useRouter)(),Object(u.useState)(null)),q=D[0],L=D[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})),n=r.filter((function(e){return"course"==e.type}));L({book:e,ebook:e,stationery:t,course:n,cate:r})}}),[r]);var C="/courses/".concat(o),x=Object(b.a)(992);return v(g.a,{cateData:j},P&&v(_.a,null),v(f.a,{currentLanguage:i,t:t,type:"course",selected:c,mainData:O}),x?v(l.a.Fragment,null,h&&v(y.a,{seller:h}),v(p.a,{cates:r,t:t,query:n,pathname:C,products:a,type:"course",s_category:q,setLoading:E,breadcrumb:!1,level:1,page_path:"courses",level1_id:o,main:c,currentLanguage:i,isSeller:!!h,shop_name:h?h.shop_name:null,cateData:j})):v(m.a,{t:t,query:n,pathname:C,local:k,products:a,type:"course",s_category:q,setLoading:E,breadcrumb:!1,level:1,page_path:"courses",level1_id:o,main:c,show_all:!1,currentLanguage:i,seller:h,isSeller:!!h,shop_name:h?h.shop_name:null}))};P.getInitialProps=function(){var e=Object(i.a)(r.a.mark((function e(t){var n,a,o,i,s,u,l,m,p,g,_,y,f,d,b,v,j,P,E,k,D,q,L;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query,a=t.req,o=n.main_category,i=n.shop_name,s=a?a.language:O.i18n.language,e.prev=3,e.next=6,Promise.all([h.a.getCateByURL(o)]);case 6:if(u=e.sent,l=Object(c.a)(u,1),m=l[0],!(p=m.data)){e.next=37;break}return delete(g=w(w({},n),{},{limit:24,type:"course",search:n.text,main_category:p.id})).sub_category,delete g.category,e.next=16,Promise.all([h.a.getProducts(g),h.a.getCateByType({main_category:p.id}),h.a.getCate()]);case 16:if(_=e.sent,y=Object(c.a)(_,3),f=y[0],d=y[1],b=y[2],v=f.data,j=d.data,P=b.data,E=null,k=null,!i){e.next=36;break}return 1==n.preview&&(k=1),D=encodeURI("".concat(h.a.baseUrl,"/seller/basic?name=").concat(i).concat(k?"":"&active=1")),e.next=31,fetch(D);case 31:return q=e.sent,e.next=34,q.json();case 34:L=e.sent,E=L;case 36:return e.abrupt("return",{query:n,products:v,cates:j,cateIndex:P,main_category:p.url_name,main:p,currentLanguage:s,seller:E,mainData:p});case 37:e.next=43;break;case 39:throw e.prev=39,e.t0=e.catch(3),console.log(e.t0),e.t0;case 43:case"end":return e.stop()}}),e,null,[[3,39]])})));return function(t){return e.apply(this,arguments)}}(),t.default=Object(O.withTranslation)(["header","product","filter","mobile_header","mobile_products","mobile_filter"])(P)},"eu1+":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses/[main_category]",function(){return n("dMPR")}])},nqUn:function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a),o=n("8Kt/"),c=n.n(o),i=n("yzAy"),s=n("s02U"),u=r.a.createElement;t.a=function(e){var t=e.t,n=e.type,a=e.selected,o=e.mainData,l=e.subData,m=e.cateData,p=e.currentLanguage,g=t("categories"==n?"header:category":"book"==n?"book":"ebook"==n?"ebook":"course"==n?"filter:course_online":"filter:stationery"),_=a?"th"==p?g+a.name_th:j(g)+" "+a.name_en:g,y=s.a.getUrlCategoryFilter(o,l,m,n,p),f=o?"th"==p?g+o.name_th:j(g)+" "+o.name_en:"",d=l?"th"==p?g+l.name_th:j(g)+" "+l.name_en:"",b=m?"th"==p?g+m.name_th:j(g)+" "+m.name_en:"",h=function(){if(a&&a.seo_description_th)return"th"==p?a.seo_description_th:a.seo_de
1scription_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&&f!==e?"".concat(f," "):"",t+=l&&d!==e?"".concat(d," "):"",t+=m&&b!==e?"".concat(b," "):"",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 n=t+t;e.startsWith(n);)e=e.replace(n,t);return e}return console.log("selected",a),u(r.a.Fragment,null,u(c.a,null,u("title",null,a&&a.seo_title_th?"th"==p?a.seo_title_th:a.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"!=n?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:a&&a.seo_title_th?"th"==p?a.seo_title_th:a.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"!=n?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:a&&a.seo_title_th?"th"==p?a.seo_title_th:a.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"!=n?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"})))}}},[["eu1+",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.