1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[438],{8135:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/diversification",function(){return l(8233)}])},5785:function(e,t,l){"use strict";var s=l(5893);l(7294);var r=l(5675),a=l.n(r);t.Z=()=>(0,s.jsxs)("div",{className:"flex flex-col rounded-sm border h-full max-h-full border-stroke bg-white py-6 px-7.5 shadow-default dark:border-strokedark dark:bg-boxdark justify-center",children:[(0,s.jsx)("p",{className:"dark:text-whiten text-center mt-8 text-3xl",children:"Coming Soon"}),(0,s.jsx)("div",{className:"mx-auto mt-8",children:(0,s.jsx)(a(),{className:"block h-70",src:"/assets/construction.svg",alt:"Dividends hero",quality:100,width:612,height:383,priority:!0})})]})},5677:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{noSSR:function(){return n},default:function(){return i}});let s=l(8754),r=(l(7294),s._(l(8976)));function a(e){return{default:(null==e?void 0:e.default)||e}}function n(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let l=r.default,s={loading:e=>{let{error:t,isLoading:l,pastDelay:s}=e;return null}};e instanceof Promise?s.loader=()=>e:"function"==typeof e?s.loader=e:"object"==typeof e&&(s={...s,...e}),s={...s,...t};let i=s.loader;return(s.loadableGenerated&&(s={...s,...s.loadableGenerated},delete s.loadableGenerated),"boolean"!=typeof s.ssr||s.ssr)?l({...s,loader:()=>null!=i?i().then(a):Promise.resolve(a(()=>null))}):(delete s.webpack,delete s.modules,n(l,s))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2254:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let s=l(8754),r=s._(l(7294)),a=r.default.createContext(null)},8976:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let s=l(8754),r=s._(l(7294)),a=l(2254),n=[],i=[],o=!1;function d(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function n(){if(!s){let t=new u(e,l);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!o){let e=l.webpack?l.webpack():l.modules;e&&i.push(t=>{for(let l of e)if(t.includes(l))return n()})}function d(e,t){!function(){n();let e=r.default.useContext(a.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let i=r.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),r.default.useMemo(()=>{var t;return i.loading||i.error?r.default.createElement(l.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:s.retry}):i.loaded?r.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return d.preload=()=>n(),d.displayName="LoadableComponent",r.default.forwardRef(d)}(d,e)}function f(e,t){let l=[];for(;e.length;){let s=e.pop();l.push(s(t))}return Promise.all(l).then(()=>
1{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{f(n).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let l=()=>(o=!0,t());f(i,e).then(l,l)})),window.__NEXT_PRELOADREADY=c.preloadReady;let m=c},8233:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return w}});var s=l(5893),r=l(5785),a=l(7294),n=l(5152),i=l.n(n);let o=i()(()=>Promise.all([l.e(279),l.e(229)]).then(l.bind(l,7229)),{loadableGenerated:{webpack:()=>[7229]},ssr:!1}),d={chart:{type:"donut"},colors:["#10B981","#375E83","#259AE6","#FFA70B"],labels:["Remote","Hybrid","Onsite","Leave"],legend:{show:!0,position:"bottom"},plotOptions:{pie:{donut:{size:"65%",background:"transparent"}}},dataLabels:{enabled:!1},responsive:[{breakpoint:2600,options:{chart:{width:380}}},{breakpoint:640,options:{chart:{width:200}}}]};var u=()=>{let[e,t]=(0,a.useState)({series:[65,34,12,56]});return(0,s.jsxs)("div",{className:"col-span-12 rounded-sm border border-stroke bg-white px-5 pt-7.5 pb-5 shadow-default dark:border-strokedark dark:bg-boxdark sm:px-7.5 xl:col-span-5 mb-7.5",children:[(0,s.jsxs)("div",{className:"mb-3 justify-between gap-4 sm:flex",children:[(0,s.jsx)("div",{children:(0,s.jsx)("h5",{className:"text-xl font-semibold text-black dark:text-white",children:"Visitors Analytics"})}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"relative z-20 inline-block",children:(0,s.jsxs)("select",{name:"",id:"",className:"relative z-20 inline-flex appearance-none bg-transparent py-1 pl-3 pr-8 text-sm font-medium outline-none dark:text-white border-0",children:[(0,s.jsx)("option",{value:"",className:"dark:text-black",children:"Monthly"}),(0,s.jsx)("option",{value:"",className:"dark:text-black",children:"Yearly"})]})})})]}),(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("div",{id:"chartThree",className:"mx-auto flex justify-center",children:(0,s.jsx)(o,{options:d,series:e.series,type:"donut"})})}),(0,s.jsxs)("div",{className:"-mx-8 flex flex-wrap items-center justify-center gap-y-3",children:[(0,s.jsx)("div",{className:"w-full px-8 sm:w-1/2",children:(0,s.jsxs)("div",{className:"flex w-full items-center",children:[(0,s.jsx)("span",{className:"mr-2 block h-3 w-full max-w-3 rounded-full bg-primary"}),(0,s.jsxs)("p",{className:"flex w-full justify-between text-sm font-medium text-black dark:text-white",children:[(0,s.jsx)("span",{children:" Desktop "}),(0,s.jsx)("span",{children:" 65% "})]})]})}),(0,s.jsx)("div",{className:"w-full px-8 sm:w-1/2",children:(0,s.jsxs)("div",{className:"flex w-full items-center",children:[(0,s.jsx)("span",{className:"mr-2 block h-3 w-full max-w-3 rounded-full bg-[#6577F3]"}),(0,s.jsxs)("p",{className:"flex w-full justify-between text-sm font-medium text-black dark:text-white",children:[(0,s.jsx)("span",{children:" Tablet "}),(0,s.jsx)("span",{children:" 34% "})]})]})}),(0,s.jsx)("div",{className:"w-full px-8 sm:w-1/2",children:(0,s.jsxs)("div",{className:"flex w-full items-center",children:[(0,s.jsx)("span",{className:"mr-2 block h-3 w-full max-w-3 rounded-full bg-[#8FD0EF]"}),(0,s.jsxs)("p",{className:"flex w-full justify-between text-sm font-medium text-black dark:text-white",children:[(0,s.jsx)("span",{children:" Mobile "}),(0,s.jsx)("span",{children:" 45% "})]})]})}),(0,s.jsx)("div",{className:"w-full px-8 sm:w-1/2",children:(0,s.jsxs)("div",{className:"flex w-full items-center",children:[(0,s.jsx)("span",{className:"mr-2 block h-3 w-full max-w-3 rounded-full bg-[#0FADCF]"}),(0,s.jsxs)("p",{className:"flex w-full justify-between text-sm font-medium text-black dark:text-white",children:[(0,s.jsx)("span",{children:" Unknown "}),(0,s.jsx)("span",{children:" 12% "})]})]})})]})]})},c=l(8346),f=l(1305),m=l(5510),h=l(6154),p=l(3299),x=l(8767);let b=()=>{let[e,t]=(0,a.useState)(!1),{status:l,data:n}=(0,p.useSession)({required:!0}),i=(0,x.useQuery)(["portfolios"],async()=>{let e=await h.Z.get("/api/portfolios");return e.data});return"loading"===l||i.isLoading?(0,s.jsx)("div",{className:"h-screen w-screen flex flex-col justify-center content-center items-center dark:bg-boxdark-2",children:(0,s.jsx)(f.Z,{className:"h-6 w-6"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.Z,{title:"Dashboard - Stock Analysis"}),(0,s.jsxs)(c.Z,{portfolios:i.data,refetch:i.refetch,open:e,setModalOpen:t,session:n,csrfToken:void 0,children:[(0,s.jsx)(u,{}),(0,s.jsx)(r.Z,{})]})]})};b.auth={redirectTo:"/sign-in"};var w=b},5152:function(e,t,l){e.exports=l(5677)}},function(e){e.O(0,[664,355,576,852,675,759,774,888,179],function(){return e(e.s=8135)}),_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.