1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2241],{39435:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(67294),o=n(96486),i=n(9008),u=n(11163),c=n(94940),s=n(82164),l=n(36677),a=n(82909),f=n(48258),d=n(94805),v=n(84561),p=n(6270),h=n(56335),w=n(30266),g=n(809),j=n.n(g),x=n(80181),C=function(e,t){var n=(0,r.useState)(!0),o=n[0],i=n[1],u=(0,r.useState)(null),c=u[0],s=u[1],l=(0,r.useCallback)(function(){var e=(0,w.Z)(j().mark((function e(t,n){var r;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.aT)(t,n);case 2:r=e.sent,s(r),i(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[]);return(0,r.useEffect)((function(){e&&l(e,t)}),[e,l,t]),{loading:o,article:c}},b=function(e){var t,n=(null===e||void 0===e||null===(t=e.contents)||void 0===t?void 0:t.length)||0,o=(0,r.useState)(new Array(n).fill(!1)),i=o[0],u=o[1],c=(0,r.useCallback)((function(e){u((function(t){return t[e]=!0,t}))}),[u]);return{totalProgress:i.filter(Boolean).length/n*100,visitContentIndex:c}},y=n(92809);function E(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}var O=function(e,t){var n=(0,u.useRouter)(),o=(0,r.useState)(!0),i=o[0],c=o[1],s=(0,r.useState)(0),l=s[0],a=s[1],f=null===e||void 0===e?void 0:e.contents[l],d=(0,r.useState)(0),v=d[0],p=d[1],h=(0,r.useCallback)((function(e){a(e);var t=n.pathname,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,y.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n.query);n.push({pathname:t,query:r},null,{shallow:!0})}),[]),w=(0,r.useCallback)((function(){var e;window.scroll({left:0,top:(null===(e=t.current)||void 0===e?void 0:e.offsetTop)-50,behavior:"smooth"})}),[t]);(0,r.useEffect)((function(){i||w(),c(!1)}),[w,l]);var g=(0,r.useCallback)((function(){if(t.current){var e,n=null===(e=t.current)||void 0===e?void 0:e.offsetTop;if(window.scrollY+500>n){var r,o=null===(r=t.current)||void 0===r?void 0:r.clientHeight,i=(window.scrollY+500-n)/o*100;(i>100||o<900)&&(i=100),p(i)}}}),[t]);return(0,r.useEffect)((function(){return window.addEventListener("scroll",g),function(){return window.removeEventListener("scroll",g)}}),[g]),{currentContentIndex:l,currentContent:f,changeContentIndex:h,currentContentProgress:v}},P=n(85893);function k(){var e=(0,u.useRouter)().query,t=e.id,n=e.preview_key,c=e.content_id,w=(0,h.a)(),g=w.isLogin,j=w.isEducator,x=w.isStudent,y=w.isProfessional,E=C(t,n),k=E.loading,m=E.article,_=b(m),S=_.totalProgress,I=_.visitContentIndex,Z=(0,r.useRef)(null),N=O(m,Z),L=N.currentContentIndex,R=N.currentContent,T=N.changeContentIndex,D=N.currentContentProgress;return(0,r.useEffect)((function(){I(L)}),[I,L]),(0,r.useEffect)((function(){if(c&&!(0,o.isEmpty)(null===m||void 0===m?void 0:m.contents)){var e=m.contents.findIndex((function(e){return e.id===+c}));T(e)}}),[T,m,c]),k?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.default,{children:(0,P.jsx)("title",{children:"Nikkei BizRuptors - Case Study"})}),(0,P.jsx)(p.Z,{loading:k})]}):(0,P.jsxs)("div",{children:[(0,P.jsx)(i.default,{children:(0,P.jsxs)("title",{children:["[Preview] Nikkei BizRuptors - ",m.title]})}),(0,P.jsx)(s.Z,{hero:(0,P.jsx)(f.Z,{isLogin:g,article:m,isEducator:j}),summary:(0,P.jsx)(l.Z,{article:m}),aside:(0,P.jsx)(v.Z,{article:m,contents:null===m||void 0===m?void 0:m.contents,currentContentIndex:L,currentContentProgress:D,onClickItem:T}),toolbar:(0,P.jsx)(d.Z,{title:null===m||void 0===m?void 0:m.title,progress:S}),children:(0,P.jsx)(a.Z,{article:m,contentElement:Z,currentContent:R,currentContentIndex:L,onChangeContent:T,isEducator:j,isStudent:x,isProfessional:y,isLogin:g})})]})}k.getLayout=function(e){return(0,P.jsx)(c.Z,{children:e})}},75203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/article-preview/[id]",function(){return n(39435)}])}},function(e){e.O(0,[9774,2251,6731,4890,5644,3600,8232,8825,1036,9476,9161,7049,4e3,2888,179],(function(){return t=75203,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.