1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8239,1381,9805],{47356:function(e,t,r){Promise.resolve().then(r.bind(r,97867)),Promise.resolve().then(r.bind(r,31085)),Promise.resolve().then(r.t.bind(r,72972,23)),Promise.resolve().then(r.bind(r,85857))},49988:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{g:function(){return n}})},97867:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var n=r(49988),o=r(27648),i=r(99376),c=r(2265),a=r(48706),l=(0,c.forwardRef)(function(e,t){let{defaultLocale:r,href:l,locale:u,localeCookie:s,onClick:f,prefetch:d,unprefixed:p,...h}=e,m=(0,a.Z)(),v=null!=u&&u!==m,b=u||m,y=function(){let[e,t]=(0,c.useState)();return(0,c.useEffect)(()=>{t(window.location.host)},[]),e}(),g=y&&p&&(p.domains[y]===b||!Object.keys(p.domains).includes(y)&&m===r&&!u)?p.pathname:l,w=(0,i.usePathname)();return v&&(d&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),d=!1),c.createElement(o.default,(0,n.g)({ref:t,href:g,hrefLang:v?u:void 0,onClick:function(e){(function(e,t,r,n){if(!e||!(n!==r&&null!=n)||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:i,...c}=e;c.path||(c.path=""!==o?o:"/");let a="".concat(i,"=").concat(n,";");for(let[e,t]of Object.entries(c))a+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(a+="="+t),a+=";";document.cookie=a})(s,w,m,u),f&&f(e)},prefetch:d},h))})},31085:function(e,t,r){"use strict";r.d(t,{default:function(){return f}});var n=r(49988),o=r(99376),i=r(2265),c=r(48706);function a(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function l(e,t){let r;return"string"==typeof e?r=u(t,e):(r={...e},e.pathname&&(r.pathname=u(t,e.pathname))),r}function u(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}r(40257);var s=r(97867);let f=(0,i.forwardRef)(function(e,t){let{href:r,locale:u,localeCookie:f,localePrefixMode:d,prefix:p,...h}=e,m=(0,o.usePathname)(),v=(0,c.Z)(),b=u!==v,[y,g]=(0,i.useState)(()=>a(r)&&("never"!==d||b)?l(r,p):r);return(0,i.useEffect)(()=>{m&&g(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!a(e))return e;let i=n===o||n.startsWith("".concat(o,"/"));return(t!==r||i)&&null!=o?l(e,o):e}(r,u,v,m,p))},[v,r,u,m,p]),i.createElement(s.default,(0,n.g)({ref:t,href:y,locale:u,localeCookie:f},h))});f.displayName="ClientLink"},48706:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(99376),o=r(526);let i="locale",c=!1;function a(){let e;let t=(0,n.useParams)();try{e=(0,o.useLocale)()}catch(r){if("string"!=typeof(null==t?void 0:t[i]))throw r;c||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),c=!0),e=t[i]}return e}},27648:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o.a}});var n=r(72972),o=r.n(n),i={};for(var c in n)"default"!==c&&(i[c]=(function(e){return n[e]}).bind(0,c));r.d(t,i)},99376:function(e,t,r){"use strict";r.r(t);var n=r(35475),o={};for(var i in n)"default"!==i&&(o[i]=(function(e){return n[e]}).bind(0,i));r.d(t,o)},40257:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(44227)},12119:function(e,t,r){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return o}});let n=r(83079);function o(e){let{createServerReference:t}=r(6671);return t(e,n.callServer)}},44227:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var l=[],u=!1,s=-1;function f(){u&&n&&(u=!1,n.length?l=n.concat(l):s=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(n=l,l=[];++s<t;)n&&n[s].run();s=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},c=!0;try{t[e](i,i.exports,n),c=!1}finally{c&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},23442:function(e,t,r){"use strict";let n=r(2265).createContext(void 0);t.IntlContext=n},76357:function(e,t,r){"use strict";var n=r(2265),o=r(23442);function i(){let e=n.useContext(o.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=i,t.useLocale=function(){return i().locale}},526:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(76357);r(2265),r(23442),t.useLocale=n.useLocale},85857:function(e,t,r){"use strict";var n=r(57437),o=r(2265),i=r(49089),c=r(99376),a=r(42911);t.default=e=>{let{placeholder:t="Search for a company",minChars:r=3}=e,l=(0,c.useRouter)(),[u,s]=(0,o.useState)(""),[f,d]=(0,o.useState)([]),[p,h]=(0,o.useState)(!1),[m,v]=(0,o.useState)(0),b=(0,o.useRef)(0),y=(0,o.useRef)([]);(0,o.useEffect)(()=>{let e=y.current[m];e&&e.scrollIntoView({block:"nearest"})},[m]),(0,o.useEffect)(()=>{y.current=[]},[f]);let g=async e=>{let t=e.target.value;s(t);let n=t.trim();if(n.length<r){h(!1),d([]);return}let o=++b.current,i=await (0,a.SC)({searchText:n});o===b.current&&(d(i||[]),v(0),h(!0))},w=e=>{if(!(null==e?void 0:e.companyname)||!(null==e?void 0:e.companycode))return;let t=e.companyname.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),r=String(e.companycode).split(".")[0];l.push("/share-price/".concat(t,"-").concat(r)),h(!1)};return(0,n.jsx)("div",{className:"row mt-10",children:(0,n.jsx)("div",{className:"offset-lg-4 col-lg-4 col-md-12",children:(0,n.jsx)("div",{className:"d-flex mb-4 mt-1 justify-content-center align-items-center flex-column position-relative p-0",children:(0,n.jsxs)("div",{className:"position-relative w-100",style:{maxWidth:600},children:[(0,n.jsx)("input",{type:"text",className:"form-control border",placeholder:t,value:u,onChange:g,onKeyDown:e=>{p&&f.length&&("ArrowDown"===e.key&&(e.preventDefault(),v(e=>e<f.length-1?e+1:0)),"ArrowUp"===e.key&&(e.preventDefault(),v(e=>e>0?e-1:f.length-1)),"Enter"===e.key&&(e.preventDefault(),w(f[m])),"Escape"===e.key&&h(!1))},onFocus:()=>f.length&&h(!0),style:{width:"100%",borderRadius:"40px",lineHeight:"1.4",height:"auto",padding:"10px 40px 10px 20px"}}),(0,n.jsx)(i.U41,{style:{position:"absolute",right:"15px",top:"50%",transform:"translateY(-50%)",color:"#999"}}),p&&(0,n.jsx)("ul",{className:"list-group position-absolute shadow bg-white fs-15",style:{zIndex:100,top:"100%",overflowY:"auto",maxHeight:250,width:"100%"},children:f.length?f.map((e,t)=>(0,n.jsx)("li",{ref:e=>{y.current[t]=e},className:"list-group-item list-group-item-action pt-1 pb-1 ".concat(t===m?"active":""),onMouseEnter:()=>v(t),onMouseDown:()=>w(e),children:e.companyname},t)):(0,n.jsx)("li",{className:"list-group-item text-bold",children:"No records found"})})]})})})})}},42911:function(e,t,r){"use strict";r.d(t,{SC:function(){return o},rN:function(){return i}}),r(83079);var n=r(12119);(0,n.$)("5d3d6bce1fd32e502b412624064c7e322977cd8e"),(0,n.$)("0a88546527406c2d03fc62831ec1826d561deb69"),(0,n.$)("a70fd4b08dd6c50724bdec6f2a0e6b44a236018f"),(0,n.$)("3085bf66a1d67e719d87bac1730a9df0b50f9d8e");var o=(0,n.$)("bb51d9e43367995243afaaeec758e3b611cfdf64"),i=(0,n.$)("41430404a5c61801055a1699df0d77411cb0b02b");(0,n.$)("dfbce5c968590c75036d7678cc8e58591c97398d"),(0,n.$)("85f8908976db96170da6ad814ef041b2e5ea9ecf"),(0,n.$)("6d061d00035b54d010cbd2743596a3288ded9739")},46231:function(e,t,r){"use strict";r.d(t,{w_:function(){return s}});var n=r(2265),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=n.createContext&&n.createContext(o),c=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){return t=>n.createElement(f,a({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var r,{attr:o,size:i,title:l}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c),f=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==i?n.createElement(i.Consumer,null,e=>t(e)):t(o)}}},function(e){e.O(0,[7699,2972,2971,2117,1744],function(){return e(e.s=47356)}),_N_E=e.O()}]);
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.