PageSourceSearch

https://www.chulabook.com/_next/static/chunks/pages/courses-f081cf740ba999047069.js

js chulabook.com collected 2026-10-01 11:49:34 UTC 9,724 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[93],{"/Y4h":function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r);n("TSYQ"),n("yzAy"),n("4JyM"),n("nOHt"),n("gdJV"),a.a.createElement},IduN:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("nOHt"),c=(n("gdJV"),n("yzAy")),s=n("OuSE"),u=n("H0BT"),i=n("55Re"),l=a.a.createElement;t.a=function(e){e.query;var t=e.seller,n=Object(r.useState)(),p=n[0],m=n[1],g=Object(r.useState)(),f=g[0],_=g[1],y=Object(o.useRouter)(),b=t.shop_name,h=null;y.query.preview&&(h=y.query.preview);return Object(r.useEffect)((function(){!function(){if(t){var e=b;c.a.getSellerBanner(e,{live:h?0:1}).then((function(e){var t=e.data;m(t.type),_(t.banner_images)})).catch((function(e){console.log(e.response)}))}}()}),[]),l(a.a.Fragment,null,l(u.a,{isSeller:!0}),l("div",{className:"h-64px"}),!!t&&l(a.a.Fragment,null,l(i.a,{seller:t}),f?l(s.a,{items:f,type:p,seller_banner:!0}):""))}},KbtZ:function(e,t,n){"use strict";n.r(t);var r=n("o0o1"),a=n.n(r),o=n("ODXe"),c=n("rePB"),s=n("HaE+"),u=n("nOHt"),i=n("q1tI"),l=n.n(i),p=n("wpBX"),m=n("OwAr"),g=n("CafY"),f=n("PLZj"),_=n("IduN"),y=n("nqUn"),b=n("gdJV"),h=n("pAy3"),d=n("yzAy"),O=n("4JyM"),v=(n("/Y4h"),l.a.createElement);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(c.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){var t=e.t,n=e.query,r=e.products,a=e.cates,o=e.currentLanguage,c=e.seller,s=e.cateIndex,d=Object(i.useState)(!1),O=d[0],w=d[1],j=Object(i.useContext)(b.b).local,E=Object(u.useRouter)().pathname,P=Object(i.useState)(null),q=P[0],k=P[1];Object(i.useEffect)((function(){document.getElementsByClassName("main-layout")[0]&&(document.getElementsByClassName("main-layout")[0].style.backgroundColor="#F8F9FA")}),[]),Object(i.useEffect)((function(){if(a){var e=a.filter((function(e){return"book"==e.type})),t=a.filter((function(e){return"stationery"==e.type})),n=a.filter((function(e){return"course"==e.type}));k({book:e,ebook:e,stationery:t,course:n,cate:a})}}),[a]);var L=Object(h.a)(992);return v(g.a,{cateData:s},O&&v(f.a,null),v(y.a,{currentLanguage:o,t:t,type:"course"}),L?v(l.a.Fragment,null,c&&v(_.a,{seller:c}),v(m.a,{cates:a,t:t,query:n,pathname:E,products:r,type:"course",s_category:q,setLoading:w,breadcrumb:!1,level:0,page_path:"courses",currentLanguage:o,isSeller:!!c,shop_name:c?c.shop_name:null,cateData:s})):v(p.a,{t:t,query:n,pathname:E,local:j,products:r,type:"course",s_category:q,setLoading:w,breadcrumb:!1,level:0,page_path:"courses",show_all:!1,currentLanguage:o,seller:c,isSeller:!!c,shop_name:c?c.shop_name:null}))};E.getInitialProps=function(){var e=Object(s.a)(a.a.mark((function e(t){var n,r,c,s,u,i,l,p,m,g,f,_,y,b,h,v,w,E;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.query,r=t.req,c=n.shop_name,s=r?r.language:O.i18n.language,e.prev=3,u=j(j({},n),{},{limit:24,type:"course",search:n.text}),e.next=7,Promise.all([d.a.getProducts(u),d.a.getCateByType(),d.a.getCate()]);case 7:if(i=e.sent,l=Object(o.a)(i,3),p=l[0],m=l[1],g=l[2],f=p.data,_=m.data,y=g.data,b=null,h=null,!c){e.next=27;break}return 1==n.preview&&(h=1),v=encodeURI("".concat(d.a.baseUrl,"/seller/basic?name=").concat(c).concat(h?"":"&active=1")),e.next=22,fetch(v);case 22:return w=e.sent,e.next=25,w.json();case 25:E=e.sent,b=E;case 27:return e.abrupt("return",{query:n,products:f,cates:_,currentLanguage:s,seller:b,cateIndex:y});case 30:throw e.prev=30,e.t0=e.catch(3),console.log(e.t0),e.t0;case 34:case"end":return e.stop()}}),e,null,[[3,30]])})));return function(t){return e.apply(this,arguments)}}(),t.default=Object(O.withTranslation)(["header","product","filter","mobile_header","mobile_products","mobile_filter"])(E)},nqUn:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("8Kt/"),c=n.n(o),s=n("yzAy"),u=n("s02U"),i=a.a.createElement;t.a=function(e){var t=e.t,n=e.type,r=e.selected,o=e.mainData,l=e.subData,p=e.cateData,m=e.currentLanguage,g=t("categories"==n?"header:category":"book"==n?"book":"ebook"==n?"ebook":"course"==n?"filter:course_online":"filter:stationery"),f=r?"th"==m?g+r.name_th:w(g)+" "+r.name_en:g,_=u.a.getUrlCategoryFilter(o,l,p,n,m),y=o?"th"==m?g+o.name_th:w(g)+" "+o.name_en:"",b=l?"th"==m?g+l.name_th:w(g)+" "+l.name_en:"",h=p?"th"==m?g+p.name_th:w(g)+" "+p.name_en:"",d=function(){if(r&&r.seo_description_th)return"th"==m?r.seo_description_th:r.seo_description_en;var e=f,t="";return t+="\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d".concat(j(f,g)," \u0e17\u0e32\u0e07\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c "),t+=o&&y!==e?"".concat(y," "):"",t+=l&&b!==e?"".concat(b," "):"",t+=p&&h!==e?"".concat(h," "):"",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&&!p?v(l,"items"):!o||l||p?"":v(o,"subs")},v=function(e,t){return e[t].map((function(e,t){return e["name_"+m]})).join(" ")};function w(e){return e.replace(/^./,e[0].toUpperCase())}function j(e,t){for(var n=t+t;e.startsWith(n);)e=e.replace(n,t);return e}return console.log("selected",r),i(a.a.Fragment,null,i(c.a,null,i("title",null,r&&r.seo_title_th?"th"==m?r.seo_title_th:r.seo_title_en:"".concat(j(f,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")),i("link",{rel:"canonical",href:"".concat(s.a.frontend_url).concat(_.url)}),i("meta",{name:"description",content:"categories"!=n?d():"\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"}),i("meta",{property:"og:type",content:"website"}),i("meta",{property:"og:title",content:r&&r.seo_title_th?"th"==m?r.seo_title_th:r.seo_title_en:"".concat(j(f,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")}),i("meta",{property:"og:description",content:"categories"!=n?d():"\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"}),i("meta",{property:"og:image",content:"".concat(s.a.frontend_url,"/images/homepage.jpg")}),i("meta",{property:"og:site_name",content:"CHULABOOK"}),i("meta",{name:"twitter:image",content:"".concat(s.a.frontend_url,"/images/homepage.jpg")}),i("meta",{name:"twitter:title",content:r&&r.seo_title_th?"th"==m?r.seo_title_th:r.seo_title_en:"".concat(j(f,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")}),i("meta",{name:"twitter:description",content:"categories"!=n?d():"\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"}),i("meta",{name:"twitter:site",content:"CHULABOOK"}),i("meta",{name:"twitter:creator",content:"CHULABOOK"}),i("meta",{name:"google-site-verification",content:"dBDOYd14FFLmHNrRUP
1CDvPoN1zgAFmN9TLJ6ieEhDpU"})))}},"o/vz":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses",function(){return n("KbtZ")}])}},[["o/vz",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.