PageSourceSearch

https://www.chulabook.com/_next/static/chunks/90dc91a3c251e4533b8aabddccc621d51183f011.d593ba5f04f90df567bf.js

js chulabook.com collected 2026-09-24 09:33:37 UTC 10,395 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[14],{JCAc:function(e,n,t){"use strict";t.r(n),t.d(n,"useUncontrolled",(function(){return p})),t.d(n,"useUncontrolledProp",(function(){return v})),t.d(n,"uncontrollable",(function(){return h}));var r=t("wx14"),a=t("zLVn"),o=t("q1tI"),c=t.n(o),i=t("QLaP"),u=t.n(i),l=function(){};function s(e,n){return void 0!==e[n]}function f(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}function v(e,n,t){var r=Object(o.useRef)(void 0!==e),a=Object(o.useState)(n),c=a[0],i=a[1],u=void 0!==e,l=r.current;return r.current=u,!u&&l&&c!==n&&i(n),[u?e:c,Object(o.useCallback)((function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t&&t.apply(void 0,[e].concat(r)),i(e)}),[t])]}function p(e,n){return Object.keys(n).reduce((function(t,o){var c,i=t,u=i[f(o)],l=i[o],s=Object(a.a)(i,[f(o),o].map(d)),p=n[o],b=v(l,u,e[p]),m=b[0],h=b[1];return Object(r.a)({},s,((c={})[o]=m,c[p]=h,c))}),e)}var b=t("dI71"),m=t("VCL8");function h(e,n,t){void 0===t&&(t=[]);var o,i=e.displayName||e.name||"Component",d=!!(o=e)&&("function"!==typeof o||o.prototype&&o.prototype.isReactComponent),v=Object.keys(n),p=v.map(f);!d&&t.length&&u()(!1);var O=function(o){function i(){for(var e,a=arguments.length,c=new Array(a),i=0;i<a;i++)c[i]=arguments[i];(e=o.call.apply(o,[this].concat(c))||this).handlers=Object.create(null),v.forEach((function(t){var a=n[t];e.handlers[a]=function(n){if(e.props[a]){var o;e._notifying=!0;for(var c=arguments.length,i=new Array(c>1?c-1:0),u=1;u<c;u++)i[u-1]=arguments[u];(o=e.props)[a].apply(o,[n].concat(i)),e._notifying=!1}e.unmounted||e.setState((function(e){var a,o=e.values;return{values:Object(r.a)(Object.create(null),o,(a={},a[t]=n,a))}}))}})),t.length&&(e.attachRef=function(n){e.inner=n});var u=Object.create(null);return v.forEach((function(n){u[n]=e.props[f(n)]})),e.state={values:u,prevProps:{}},e}Object(b.a)(i,o);var u=i.prototype;return u.shouldComponentUpdate=function(){return!this._notifying},i.getDerivedStateFromProps=function(e,n){var t=n.values,a=n.prevProps,o={values:Object(r.a)(Object.create(null),t),prevProps:{}};return v.forEach((function(n){o.prevProps[n]=e[n],!s(e,n)&&s(a,n)&&(o.values[n]=e[f(n)])})),o},u.componentWillUnmount=function(){this.unmounted=!0},u.render=function(){var n=this,t=this.props,o=t.innerRef,i=Object(a.a)(t,["innerRef"]);p.forEach((function(e){delete i[e]}));var u={};return v.forEach((function(e){var t=n.props[e];u[e]=void 0!==t?t:n.state.values[e]})),c.a.createElement(e,Object(r.a)({},i,u,this.handlers,{ref:o||this.attachRef}))},i}(c.a.Component);Object(m.polyfill)(O),O.displayName="Uncontrolled("+i+")",O.propTypes=Object(r.a)({innerRef:function(){}},function(e,n){var t={};return Object.keys(e).forEach((function(e){t[f(e)]=l})),t}(n)),t.forEach((function(e){O.prototype[e]=function(){var n;return(n=this.inner)[e].apply(n,arguments)}}));var j=O;return c.a.forwardRef&&((j=c.a.forwardRef((function(e,n){return c.a.createElement(O,Object(r.a)({},e,{innerRef:n}))}))).propTypes=O.propTypes),j.ControlledComponent=e,j.deferControlTo=function(e,t,a){return void 0===t&&(t={}),h(e,Object(r.a)({},n,t),a)},j}},QLaP:function(e,n,t){"use strict";e.exports=function(e,n,t,r,a,o,c,i){if(!e){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[t,r,a,o,c,i],s=0;(u=new Error(n.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},"b+jL":function(e,n,t){"use strict";var r=t("wx14"),a=t("zLVn"),o=t("ZCiN"),c=t("q1tI"),i=t.n(c);var u=function(e,n){var t=Object(c.useRef)(!0);Object(c.useEffect)((function(){if(!t.current)return e();t.current=!1}),n)},l=t("Vhrh"),s=t("TSYQ"),f=t.n(s),d=t("YECM"),v=t("dRu9"),p=t("17x9"),b=t.n(p),m=t("JCAc"),h=t("YdCC"),O=Object(h.a)("carousel-caption"),j=Object(h.a)("carousel-item"),y=t("noGa"),E=t("dbZe"),w=t("vUet"),C=t("z+q/"),g=40,x={bsPrefix:b.a.string,as:b.a.elementType,slide:b.a.bool,fade:b.a.bool,controls:b.a.bool,indicators:b.a.bool,activeIndex:b.a.number,onSelect:b.a.func,onSlide:b.a.func,onSlid:b.a.func,interval:b.a.number,keyboard:b.a.bool,pause:b.a.oneOf(["hover",!1]),wrap:b.a.bool,touch:b.a.bool,prevIcon:b.a.node,prevLabel:b.a.string,nextIcon:b.a.node,nextLabel:b.a.string},N={slide:!0,fade:!1,controls:!0,indicators:!0,defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:i.a.createElement("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:i.a.createElement("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"};var S=i.a.forwardRef((function(e,n){var t=Object(m.useUncontrolled)(e,{activeIndex:"onSelect"}),s=t.as,p=void 0===s?"div":s,b=t.bsPrefix,h=t.slide,O=t.fade,j=t.controls,x=t.indicators,N=t.activeIndex,S=t.onSelect,k=t.onSlide,I=t.onSlid,R=t.interval,T=t.keyboard,L=t.onKeyDown,P=t.pause,M=t.onMouseOver,A=t.onMouseOut,D=t.wrap,U=t.touch,V=t.onTouchStart,_=t.onTouchMove,K=t.onTouchEnd,q=t.prevIcon,z=t.prevLabel,J=t.nextIcon,Q=t.nextLabel,Y=t.className,Z=t.children,F=Object(a.a)(t,["as","bsPrefix","slide","fade","controls","indicators","activeIndex","onSelect","onSlide","onSlid","interval","keyboard","onKeyDown","pause","onMouseOver","onMouseOut","wrap","touch","onTouchStart","onTouchMove","onTouchEnd","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]),G=Object(w.a)(b,"carousel"),X=Object(c.useRef)(null),H=Object(c.useState)("next"),W=H[0],B=H[1],$=Object(c.useState)(!1),ee=$[0],ne=$[1],te=Object(c.useState)(N||
10),re=te[0],ae=te[1];ee||N===re||(X.current?(B(X.current),X.current=null):B((N||0)>re?"next":"prev"),h&&ne(!0),ae(N||0));var oe=i.a.Children.toArray(Z).filter(i.a.isValidElement).length,ce=Object(c.useCallback)((function(e){if(!ee){var n=re-1;if(n<0){if(!D)return;n=oe-1}X.current="prev",S&&S(n,e)}}),[ee,re,S,D,oe]),ie=Object(o.a)((function(e){if(!ee){var n=re+1;if(n>=oe){if(!D)return;n=0}X.current="next",S&&S(n,e)}})),ue=Object(c.useRef)();Object(c.useImperativeHandle)(n,(function(){return{element:ue.current,prev:ce,next:ie}}));var le=Object(o.a)((function(){!document.hidden&&function(e){if(!e||!e.style||!e.parentNode||!e.parentNode.style)return!1;var n=getComputedStyle(e);return"none"!==n.display&&"hidden"!==n.visibility&&"none"!==getComputedStyle(e.parentNode).display}(ue.current)&&ie()})),se="next"===W?"left":"right";u((function(){h||(k&&k(re,se),I&&I(re,se))}),[re]);var fe=G+"-item-"+W,de=G+"-item-"+se,ve=Object(c.useCallback)((function(e){Object(C.a)(e),k&&k(re,se)}),[k,re,se]),pe=Object(c.useCallback)((function(){ne(!1),I&&I(re,se)}),[I,re,se]),be=Object(c.useCallback)((function(e){if(T&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void ce(e);case"ArrowRight":return e.preventDefault(),void ie(e)}L&&L(e)}),[T,L,ce,ie]),me=Object(c.useState)(!1),he=me[0],Oe=me[1],je=Object(c.useCallback)((function(e){"hover"===P&&Oe(!0),M&&M(e)}),[P,M]),ye=Object(c.useCallback)((function(e){Oe(!1),A&&A(e)}),[A]),Ee=Object(c.useRef)(0),we=Object(c.useRef)(0),Ce=Object(c.useState)(!1),ge=Ce[0],xe=Ce[1],Ne=Object(l.a)(),Se=Object(c.useCallback)((function(e){Ee.current=e.touches[0].clientX,we.current=0,U&&xe(!0),V&&V(e)}),[U,V]),ke=Object(c.useCallback)((function(e){e.touches&&e.touches.length>1?we.current=0:we.current=e.touches[0].clientX-Ee.current,_&&_(e)}),[_]),Ie=Object(c.useCallback)((function(e){if(U){var n=we.current;if(Math.abs(n)<=g)return;n>0?ce(e):ie(e)}Ne.set((function(){xe(!1)}),R||void 0),K&&K(e)}),[U,ce,ie,Ne,R,K]),Re=null!=R&&!he&&!ge&&!ee,Te=Object(c.useRef)();Object(c.useEffect)((function(){if(Re)return Te.current=window.setInterval(document.visibilityState?le:ie,R||void 0),function(){null!==Te.current&&clearInterval(Te.current)}}),[Re,ie,R,le]);var Le=Object(c.useMemo)((function(){return x&&Array.from({length:oe},(function(e,n){return function(e){S&&S(n,e)}}))}),[x,oe,S]);return(i.a.createElement(p,Object(r.a)({ref:ue},F,{onKeyDown:be,onMouseOver:je,onMouseOut:ye,onTouchStart:Se,onTouchMove:ke,onTouchEnd:Ie,className:f()(Y,G,h&&"slide",O&&G+"-fade")}),x&&i.a.createElement("ol",{className:G+"-indicators"},Object(y.a)(Z,(function(e,n){return i.a.createElement("li",{key:n,className:n===re?"active":void 0,onClick:Le?Le[n]:void 0})}))),i.a.createElement("div",{className:G+"-inner"},Object(y.a)(Z,(function(e,n){var t=n===re;return h?i.a.createElement(v.e,{in:t,onEnter:t?ve:void 0,onEntered:t?pe:void 0,addEndListener:d.a},(function(n){return i.a.cloneElement(e,{className:f()(e.props.className,t&&"entered"!==n&&fe,("entered"===n||"exiting"===n)&&"active",("entering"===n||"exiting"===n)&&de)})})):i.a.cloneElement(e,{className:f()(e.props.className,t&&"active")})}))),j&&i.a.createElement(i.a.Fragment,null,(D||0!==N)&&i.a.createElement(E.a,{className:G+"-control-prev",onClick:ce},q,z&&i.a.createElement("span",{className:"sr-only"},z)),(D||N!==oe-1)&&i.a.createElement(E.a,{className:G+"-control-next",onClick:ie},J,Q&&i.a.createElement("span",{className:"sr-only"},Q)))))}));S.displayName="Carousel",S.propTypes=x,S.defaultProps=N,S.Caption=O,S.Item=j;n.a=S},dbZe:function(e,n,t){"use strict";var r=t("wx14"),a=t("zLVn"),o=t("q1tI"),c=t.n(o),i=t("Qg85");function u(e){return!e||"#"===e.trim()}var l=c.a.forwardRef((function(e,n){var t=e.as,o=void 0===t?"a":t,l=e.disabled,s=e.onKeyDown,f=Object(a.a)(e,["as","disabled","onKeyDown"]),d=function(e){var n=f.href,t=f.onClick;(l||u(n))&&e.preventDefault(),l?e.stopPropagation():t&&t(e)};return u(f.href)&&(f.role=f.role||"button",f.href=f.href||"#"),l&&(f.tabIndex=-1,f["aria-disabled"]=!0),c.a.createElement(o,Object(r.a)({ref:n},f,{onClick:d,onKeyDown:Object(i.a)((function(e){" "===e.key&&(e.preventDefault(),d(e))}),s)}))}));l.displayName="SafeAnchor",n.a=l},noGa:function(e,n,t){"use strict";t.d(n,"a",(function(){return o}
1));var r=t("q1tI"),a=t.n(r);function o(e,n){var t=0;return a.a.Children.map(e,(function(e){return a.a.isValidElement(e)?n(e,t++):e}))}}}]);

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.