1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[618],{4922:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/portfolio/share/[id]",function(){return s(374)}])},1082:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(5893);s(7294);var r=e=>{let{title:t,total:s,rate:r,levelUp:i,levelDown:n,children:l}=e;return(0,a.jsxs)("div",{className:"rounded-sm border border-stroke bg-white py-6 px-7.5 shadow-default dark:border-strokedark dark:bg-boxdark",children:[(0,a.jsx)("div",{className:"flex h-11.5 w-11.5 items-center justify-center rounded-full bg-meta-2 dark:bg-meta-4",children:l}),(0,a.jsxs)("div",{className:"mt-4 flex items-end justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-title-md font-bold text-black dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm font-medium dark:text-white",children:t})]}),(0,a.jsxs)("span",{className:"flex items-center gap-1 text-sm font-medium ".concat(i&&"text-meta-3"," ").concat(n&&"text-meta-5"," "),children:[r,i&&(0,a.jsx)("svg",{className:"fill-meta-3",width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4.35716 2.47737L0.908974 5.82987L5.0443e-07 4.94612L5 0.0848689L10 4.94612L9.09103 5.82987L5.64284 2.47737L5.64284 10.0849L4.35716 10.0849L4.35716 2.47737Z",fill:""})}),n&&(0,a.jsx)("svg",{className:"fill-meta-5",width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.64284 7.69237L9.09102 4.33987L10 5.22362L5 10.0849L-8.98488e-07 5.22362L0.908973 4.33987L4.35716 7.69237L4.35716 0.0848701L5.64284 0.0848704L5.64284 7.69237Z",fill:""})})]})]})]})},i=s(2844),n=e=>{let{portfolio:t}=e;return(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 pt-7.5 md:grid-cols-2 md:gap-6 xl:grid-cols-4 2xl:gap-7.5",children:[(0,a.jsx)(r,{title:"Portfolio Yield",total:"".concat(t.yield.toFixed(2).toString(),"%"),rate:"",children:(0,a.jsxs)("svg",{className:"fill-primary dark:fill-white",width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M11 15.1156C4.19376 15.1156 0.825012 8.61876 0.687512 8.34376C0.584387 8.13751 0.584387 7.86251 0.687512 7.65626C0.825012 7.38126 4.19376 0.918762 11 0.918762C17.8063 0.918762 21.175 7.38126 21.3125 7.65626C21.4156 7.86251 21.4156 8.13751 21.3125 8.34376C21.175 8.61876 17.8063 15.1156 11 15.1156ZM2.26876 8.00001C3.02501 9.27189 5.98126 13.5688 11 13.5688C16.0188 13.5688 18.975 9.27189 19.7313 8.00001C18.975 6.72814 16.0188 2.43126 11 2.43126C5.98126 2.43126 3.02501 6.72814 2.26876 8.00001Z",fill:""}),(0,a.jsx)("path",{d:"M11 10.9219C9.38438 10.9219 8.07812 9.61562 8.07812 8C8.07812 6.38438 9.38438 5.07812 11 5.07812C12.6156 5.07812 13.9219 6.38438 13.9219 8C13.9219 9.61562 12.6156 10.9219 11 10.9219ZM11 6.625C10.2437 6.625 9.625 7.24375 9.625 8C9.625 8.75625 10.2437 9.375 11 9.375C11.7563 9.375 12.375 8.75625 12.375 8C12.375 7.24375 11.7563 6.625 11 6.625Z",fill:""})]})}),(0,a.jsx)(r,{title:"Yield On Cost",total:"".concat(t.yieldOnCost.toFixed(2).toString(),"%"),rate:"",children:(0,a.jsxs)("svg",{className:"fill-primary dark:fill-white",width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M11.7531 16.4312C10.3781 16.4312 9.27808 17.5312 9.27808 18.9062C9.27808 20.2812 10.3781 21.3812 11.7531 21.3812C13.1281 21.3812 14.2281 20.2812 14.2281 18.9062C14.2281 17.5656 13.0937 16.4312 11.7531 16.4312ZM11.7531 19.8687C11.2375 19.8687 10.825 19.4562 10.825 18.9406C10.825 18.425 11.2375 18.0125 11.7531 18.0125C12.2687 18.0125 12.6812 18.425 12.6812 18.9406C12.6812 19.4219 12.2343 19.8687 11.7531 19.8687Z",fill:""}),(0,a.jsx)("path",{d:"M5.22183 16.4312C3.84683 16.4312 2.74683 17.5312 2.74683 18.9062C2.74683 20.2812 3.84683 21.3812 5.22183 21.3812C6.59683 21.3812 7.69683 20.2812 7.69683 18.9062C7.69683 17.5656 6.56245 16.4312 5.22183 16.4312ZM5.22183 19.8687C4.7062 19.8687 4.2937 19.4562 4.2937 18.9406C4.2937 18.425 4.7062 18.0125 5.22183 18.0125C5.73745 18.0125 6.14995 18.425 6.14995 18.9406C6.14995 19.4219 5.73745 19.8687 5.22183 19.8687Z",fill:""}),(0,a.jsx)("path",{d:"M19.0062 0.618744H17.15C16.325 0.618744 15.6031 1.23749 15.5 2.06249L14.95 6.01562H1.37185C1.0281 6.01562 0.684353 6.18749 0.443728 6.46249C0.237478 6.73749 0.134353 7.11562 0.237478 7.45937C0.237478 7.49374 0.237478 7.49374 0.237478 7.52812L2.36873 13.9562C2.50623 14.4375 2.9531 14.7812 3.46873 14.7812H12.9562C14.228
11 14.7812 15.3281 13.8187 15.5 12.5469L16.9437 2.26874C16.9437 2.19999 17.0125 2.16562 17.0812 2.16562H18.9375C19.35 2.16562 19.7281 1.82187 19.7281 1.37499C19.7281 0.928119 19.4187 0.618744 19.0062 0.618744ZM14.0219 12.3062C13.9531 12.8219 13.5062 13.2 12.9906 13.2H3.7781L1.92185 7.56249H14.7094L14.0219 12.3062Z",fill:""})]})}),(0,a.jsx)(r,{title:"Annual Income",total:"".concat((0,i.R)(t.annualIncome)),rate:"",children:(0,a.jsxs)("svg",{className:"fill-primary dark:fill-white",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M21.1063 18.0469L19.3875 3.23126C19.2157 1.71876 17.9438 0.584381 16.3969 0.584381H5.56878C4.05628 0.584381 2.78441 1.71876 2.57816 3.23126L0.859406 18.0469C0.756281 18.9063 1.03128 19.7313 1.61566 20.3844C2.20003 21.0375 2.99066 21.3813 3.85003 21.3813H18.1157C18.975 21.3813 19.8 21.0031 20.35 20.3844C20.9 19.7656 21.2094 18.9063 21.1063 18.0469ZM19.2157 19.3531C18.9407 19.6625 18.5625 19.8344 18.15 19.8344H3.85003C3.43753 19.8344 3.05941 19.6625 2.78441 19.3531C2.50941 19.0438 2.37191 18.6313 2.44066 18.2188L4.12503 3.43751C4.19378 2.71563 4.81253 2.16563 5.56878 2.16563H16.4313C17.1532 2.16563 17.7719 2.71563 17.875 3.43751L19.5938 18.2531C19.6282 18.6656 19.4907 19.0438 19.2157 19.3531Z",fill:""}),(0,a.jsx)("path",{d:"M14.3345 5.29375C13.922 5.39688 13.647 5.80938 13.7501 6.22188C13.7845 6.42813 13.8189 6.63438 13.8189 6.80625C13.8189 8.35313 12.547 9.625 11.0001 9.625C9.45327 9.625 8.1814 8.35313 8.1814 6.80625C8.1814 6.6 8.21577 6.42813 8.25015 6.22188C8.35327 5.80938 8.07827 5.39688 7.66577 5.29375C7.25327 5.19063 6.84077 5.46563 6.73765 5.87813C6.6689 6.1875 6.63452 6.49688 6.63452 6.80625C6.63452 9.2125 8.5939 11.1719 11.0001 11.1719C13.4064 11.1719 15.3658 9.2125 15.3658 6.80625C15.3658 6.49688 15.3314 6.1875 15.2626 5.87813C15.1595 5.46563 14.747 5.225 14.3345 5.29375Z",fill:""})]})}),(0,a.jsx)(r,{title:"Portfolio Beta",total:"".concat(t.beta.toFixed(2).toString()),rate:"",children:(0,a.jsxs)("svg",{className:"fill-primary dark:fill-white",width:"22",height:"18",viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M7.18418 8.03751C9.31543 8.03751 11.0686 6.35313 11.0686 4.25626C11.0686 2.15938 9.31543 0.475006 7.18418 0.475006C5.05293 0.475006 3.2998 2.15938 3.2998 4.25626C3.2998 6.35313 5.05293 8.03751 7.18418 8.03751ZM7.18418 2.05626C8.45605 2.05626 9.52168 3.05313 9.52168 4.29063C9.52168 5.52813 8.49043 6.52501 7.18418 6.52501C5.87793 6.52501 4.84668 5.52813 4.84668 4.29063C4.84668 3.05313 5.9123 2.05626 7.18418 2.05626Z",fill:""}),(0,a.jsx)("path",{d:"M15.8124 9.6875C17.6687 9.6875 19.1468 8.24375 19.1468 6.42188C19.1468 4.6 17.6343 3.15625 15.8124 3.15625C13.9905 3.15625 12.478 4.6 12.478 6.42188C12.478 8.24375 13.9905 9.6875 15.8124 9.6875ZM15.8124 4.7375C16.8093 4.7375 17.5999 5.49375 17.5999 6.45625C17.5999 7.41875 16.8093 8.175 15.8124 8.175C14.8155 8.175 14.0249 7.41875 14.0249 6.45625C14.0249 5.49375 14.8155 4.7375 15.8124 4.7375Z",fill:""}),(0,a.jsx)("path",{d:"M15.9843 10.0313H15.6749C14.6437 10.0313 13.6468 10.3406 12.7874 10.8563C11.8593 9.61876 10.3812 8.79376 8.73115 8.79376H5.67178C2.85303 8.82814 0.618652 11.0625 0.618652 13.8469V16.3219C0.618652 16.975 1.13428 17.4906 1.7874 17.4906H20.2468C20.8999 17.4906 21.4499 16.9406 21.4499 16.2875V15.4625C21.4155 12.4719 18.9749 10.0313 15.9843 10.0313ZM2.16553 15.9438V13.8469C2.16553 11.9219 3.74678 10.3406 5.67178 10.3406H8.73115C10.6562 10.3406 12.2374 11.9219 12.2374 13.8469V15.9438H2.16553V15.9438ZM19.8687 15.9438H13.7499V13.8469C13.7499 13.2969 13.6468 12.7469 13.4749 12.2313C14.0937 11.7844 14.8499 11.5781 15.6405 11.5781H15.9499C18.0812 11.5781 19.8343 13.3313 19.8343 15.4625V15.9438H19.8687Z",fill:""})]})})]})}},3303:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(5893),r=s(7294),i=function(e,t){let[s,a]=(0,r.useState)(()=>{try{{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}}catch(e){return console.log(e),t}});return(0,r.useEffect)(()=>{try{let t="function"==typeof s?s(s):s;window.localStorage.setItem(e,JSON.stringify(t))}catch(e){console.log(e)}},[e,s]),[s,a]},n=()=>{let[e,t]=i("color-theme","light");return(0,r.useEffect)(()=>{let t="dark",s=window.document.body.classList;"dark"===e?s.add(t):s.remove(t)},[e]),[e,t]},l=()=>{let[e,t]=n();return(0,a.jsx)("div",{className:"mr-4",children:(0,a.jsxs)("label",{className:"relative m-0 block h-7.5 w-14 roun
1ded-full ".concat("dark"===e?"bg-primary":"bg-stroke"),children:[(0,a.jsx)("input",{type:"checkbox",onChange:()=>{"function"==typeof t&&t("light"===e?"dark":"light")},className:"dur absolute top-0 z-50 m-0 h-full w-full cursor-pointer opacity-0"}),(0,a.jsxs)("span",{className:"absolute top-1/2 left-[3px] flex h-6 w-6 -translate-y-1/2 translate-x-0 items-center justify-center rounded-full bg-white shadow-switcher duration-75 ease-linear ".concat("dark"===e&&"!right-[3px] !translate-x-full"),children:[(0,a.jsx)("span",{className:"dark:hidden",children:(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M7.99992 12.6666C10.5772 12.6666 12.6666 10.5772 12.6666 7.99992C12.6666 5.42259 10.5772 3.33325 7.99992 3.33325C5.42259 3.33325 3.33325 5.42259 3.33325 7.99992C3.33325 10.5772 5.42259 12.6666 7.99992 12.6666Z",fill:"#969AA1"}),(0,a.jsx)("path",{d:"M8.00008 15.3067C7.63341 15.3067 7.33342 15.0334 7.33342 14.6667V14.6134C7.33342 14.2467 7.63341 13.9467 8.00008 13.9467C8.36675 13.9467 8.66675 14.2467 8.66675 14.6134C8.66675 14.9801 8.36675 15.3067 8.00008 15.3067ZM12.7601 13.4267C12.5867 13.4267 12.4201 13.3601 12.2867 13.2334L12.2001 13.1467C11.9401 12.8867 11.9401 12.4667 12.2001 12.2067C12.4601 11.9467 12.8801 11.9467 13.1401 12.2067L13.2267 12.2934C13.4867 12.5534 13.4867 12.9734 13.2267 13.2334C13.1001 13.3601 12.9334 13.4267 12.7601 13.4267ZM3.24008 13.4267C3.06675 13.4267 2.90008 13.3601 2.76675 13.2334C2.50675 12.9734 2.50675 12.5534 2.76675 12.2934L2.85342 12.2067C3.11342 11.9467 3.53341 11.9467 3.79341 12.2067C4.05341 12.4667 4.05341 12.8867 3.79341 13.1467L3.70675 13.2334C3.58008 13.3601 3.40675 13.4267 3.24008 13.4267ZM14.6667 8.66675H14.6134C14.2467 8.66675 13.9467 8.36675 13.9467 8.00008C13.9467 7.63341 14.2467 7.33342 14.6134 7.33342C14.9801 7.33342 15.3067 7.63341 15.3067 8.00008C15.3067 8.36675 15.0334 8.66675 14.6667 8.66675ZM1.38675 8.66675H1.33341C0.966748 8.66675 0.666748 8.36675 0.666748 8.00008C0.666748 7.63341 0.966748 7.33342 1.33341 7.33342C1.70008 7.33342 2.02675 7.63341 2.02675 8.00008C2.02675 8.36675 1.75341 8.66675 1.38675 8.66675ZM12.6734 3.99341C12.5001 3.99341 12.3334 3.92675 12.2001 3.80008C11.9401 3.54008 11.9401 3.12008 12.2001 2.86008L12.2867 2.77341C12.5467 2.51341 12.9667 2.51341 13.2267 2.77341C13.4867 3.03341 13.4867 3.45341 13.2267 3.71341L13.1401 3.80008C13.0134 3.92675 12.8467 3.99341 12.6734 3.99341ZM3.32675 3.99341C3.15341 3.99341 2.98675 3.92675 2.85342 3.80008L2.76675 3.70675C2.50675 3.44675 2.50675 3.02675 2.76675 2.76675C3.02675 2.50675 3.44675 2.50675 3.70675 2.76675L3.79341 2.85342C4.05341 3.11342 4.05341 3.53341 3.79341 3.79341C3.66675 3.92675 3.49341 3.99341 3.32675 3.99341ZM8.00008 2.02675C7.63341 2.02675 7.33342 1.75341 7.33342 1.38675V1.33341C7.33342 0.966748 7.63341 0.666748 8.00008 0.666748C8.36675 0.666748 8.66675 0.966748 8.66675 1.33341C8.66675 1.70008 8.36675 2.02675 8.00008 2.02675Z",fill:"#969AA1"})]})}),(0,a.jsx)("span",{className:"hidden dark:inline-block",children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M14.3533 10.62C14.2466 10.44 13.9466 10.16 13.1999 10.2933C12.7866 10.3667 12.3666 10.4 11.9466 10.38C10.3933 10.3133 8.98659 9.6 8.00659 8.5C7.13993 7.53333 6.60659 6.27333 6.59993 4.91333C6.59993 4.15333 6.74659 3.42 7.04659 2.72666C7.33993 2.05333 7.13326 1.7 6.98659 1.55333C6.83326 1.4 6.47326 1.18666 5.76659 1.48C3.03993 2.62666 1.35326 5.36 1.55326 8.28666C1.75326 11.04 3.68659 13.3933 6.24659 14.28C6.85993 14.4933 7.50659 14.62 8.17326 14.6467C8.27993 14.6533 8.38659 14.66 8.49326 14.66C10.7266 14.66 12.8199 13.6067 14.1399 11.8133C14.5866 11.1933 14.4666 10.8 14.3533 10.62Z",fill:"#969AA1"})})})]})]})})}},5510:function(e,t,s){"use strict";var a=s(5893),r=s(9008),i=s.n(r),n=s(1163),l=s(4298),c=s.n(l),o=s(7294);let d={title:"Dividends",siteName:"Dividends",description:"Dividend tracking site",url:"https://dividendtracker.netlify.app",type:"website",robots:"follow, index",image:"https://dividendtracker.netlify.app/assets/google.svg",author:"Edmond Hui"},x=[{rel:"apple-touch-icon",sizes:"57x57",href:"/favicon/apple-icon-57x57.png"},{rel:"apple-touch-icon",sizes:"60x60",href:"/favicon/apple-icon-60x60.png"},{rel:"apple-touch-icon",sizes:"72x72",href:"/favicon/apple-icon-72x72.png"},{rel:"apple-touch-icon",sizes:"76x76",href:"/favicon/apple-icon-76x76.png"},{rel:"apple-touch-icon",sizes:"114x114",href:"/favicon/apple-icon-114x114.png"},{rel:"apple-touch-icon",sizes:"120x120",href:"/favicon/apple-icon-120x120.png"},{rel:"apple-touch-icon",sizes:"144x144",href:"/favicon/apple-icon-144x144.png"},{rel:"apple-touch-icon",sizes:"152x152",href:"/favicon/apple-icon-152x152.png"},{rel:"apple-touch-icon",sizes:"180x180",href:"/favicon/apple-icon-180x180.png"},{rel:"mask-icon",href:"/favicon/safari-pinned-tab.svg",color:"#F59A9A"},{rel:"icon",href:"/favicon/favicon.ico"},{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"},{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"96x96",href:"/favicon/favicon-96x96.png"},{rel:"icon",type:"image/png",sizes:"192x192",href:"/favicon/android-icon-192x192.png"},{rel:"manifest",href:"/site.webmanifest"}];t.Z=e=>{let t=(0,n.useRouter)(),s={...d,...e};return(0,o.useEffect)(()=>{let e=document.createElement("script");e.src="//cdn.trackdesk.com/tracking.js",e.async=!0,document.body.appendChild(e);let t=document.createElement("script");return t.async=!0,t.innerHTML='(function (t, d, k) {\n (t[k] = t[k] || []).push(d);\n t[d] =\n t[d] ||\n t[k].f ||\n function () {\n (t[d
1].q = t[d].q || []).push(arguments);\n };\n })(window, "trackdesk", "TrackdeskObject");\n\n trackdesk("dividendtracker", "click");\n ',document.body.appendChild(t),()=>{document.body.removeChild(e)}},[]),s.title=e.templateTitle?"".concat(e.templateTitle," | ").concat(s.siteName):s.title,(0,a.jsxs)(i(),{children:[(0,a.jsx)(c(),{src:"//cdn.trackdesk.com/tracking.js"}),(0,a.jsx)(c(),{src:"/public/static/trackdesk-script.js"}),(0,a.jsx)("title",{children:s.title}),(0,a.jsx)("meta",{name:"robots",content:s.robots}),(0,a.jsx)("meta",{content:s.description,name:"description"}),(0,a.jsx)("meta",{property:"og:url",content:"".concat(s.url).concat(t.asPath)}),(0,a.jsx)("link",{rel:"canonical",href:"".concat(s.url).concat(t.asPath)}),(0,a.jsx)("meta",{property:"og:type",content:s.type}),(0,a.jsx)("meta",{property:"og:site_name",content:s.siteName}),(0,a.jsx)("meta",{property:"og:description",content:s.description}),(0,a.jsx)("meta",{property:"og:title",content:s.title}),(0,a.jsx)("meta",{name:"image",property:"og:image",content:s.image}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:site",content:"@F2aldi"}),(0,a.jsx)("meta",{name:"twitter:title",content:s.title}),(0,a.jsx)("meta",{name:"twitter:description",content:s.description}),(0,a.jsx)("meta",{name:"twitter:image",content:s.image}),s.date&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{property:"article:published_time",content:s.date}),(0,a.jsx)("meta",{name:"publish_date",property:"og:publish_date",content:s.date}),(0,a.jsx)("meta",{name:"author",property:"article:author",content:s.author})]}),x.map(e=>(0,a.jsx)("link",{...e},e.href)),(0,a.jsx)("meta",{name:"msapplication-TileColor",content:"#F53838"}),(0,a.jsx)("meta",{name:"msapplication-TileImage",content:"/favicon/ms-icon-144x144.png"}),(0,a.jsx)("meta",{name:"theme-color",content:"#F53838"})]})}},2844:function(e,t,s){"use strict";function a(e){return"".concat("https://dividendtracker.netlify.app").concat(e)}s.d(t,{G:function(){return a},R:function(){return r}});let r=e=>e.toLocaleString("en-US",{currency:"USD",style:"currency",minimumFractionDigits:2,maximumFractionDigits:2})},374:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return L},default:function(){return Z}});var a=s(5893),r=s(7294),i=s(1082),n=s(2844),l=e=>{let{portfolio:t}=e;return(0,a.jsx)("div",{className:"rounded-sm border border-stroke bg-white py-12 px-7.5 shadow-default dark:border-strokedark dark:bg-boxdark xl:col-span-4",children:(0,a.jsx)("div",{className:"flex h-11.5 items-center dark:bg-boxdark w-full justify-between align-middle",children:(0,a.jsx)("p",{className:"dark:text-white text-title-xl font-bold",children:(0,n.R)(t.value)})})})},c=e=>{let{portfolio:t}=e,[s,i]=(0,r.useState)(""),l=e=>e.timestamps[0].stocks.filter(e=>e.stock.name.toUpperCase().includes(s.toUpperCase())||e.stock.ticker.toUpperCase().includes(s.toUpperCase()));return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"rounded-sm border border-stroke bg-white px-5 pt-6 pb-2.5 shadow-default dark:border-strokedark dark:bg-boxdark sm:px-7.5 xl:pb-1 mb-6",children:[(0,a.jsxs)("div",{className:"w-full flex justify-left relative",children:[(0,a.jsx)("div",{className:"absolute inset-y-0 rtl:inset-r-0 start-0 flex items-center ps-3 pointer-events-none",children:(0,a.jsx)("svg",{className:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),(0,a.jsx)("input",{type:"text",id:"filter",placeholder:"Search for stock",className:"ps-10 rounded w-1/2 appearance-none py-2 border-gray-100 outline-none leading-6 bg-transparent placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 transition duration-150 ease-in-out dark:text-whiten dark:border-[#6b7280]",onChange:e=>i(e.target.value)})]}),(0,a.jsxs)("div",{className:"flex flex-col overflow-x-auto mt-2",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[repeat(10,minmax(100px,1fr))] rounded-sm text-sm",children:[(0,a.jsx)("div",{className:"p-2.5 text-center xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Ticker"})}),(0,a.jsx)("div",{className:"p-2.5 text-center xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Shares"})}),(0,a.jsx)("div",{className:"p-2.5 text-center xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Price"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Change"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Average Cost"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Profit / Loss"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Dividend Yield"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Yield On Cost"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Annual Income"})}),(0,a.jsx)("div",{className:"p-2.5 text-center sm:block xl:p-5 bg-gray-2 dark:bg-meta-4",children:(0,a.jsx)("h5",{className:"text-sm font-medium uppercase xsm:text-base dark:text-white",children:"Dividend Score"})})]}),l(t).length?l(t).map((e,s)=>(0,a.jsxs)("div",{className:"grid grid-cols-[repeat(10,minmax(100px,1fr))] ".concat(s===t.timestamps[0].stocks.length-1?"":"border-b border-stroke dark:border-strokedark"),children:[(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:e.stock.ticker})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:e.shares.toFixed(2)})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:(0,n.R)(e.stock.price)})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"".concat(e.stock.change>0?"text-meta-3":"text-meta-1"),children:(0,n.R)(e.stock.change)})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:(0,n.R)(e.averageCost)})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"".concat(e.stock.price*e.shares-e.averageCost*e.shares>0?"text-meta-3":"text-meta-1"),children:(0,n.R)(e.stock.price*e.shares-e.averageCost*e.shares)})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsxs)("p",{className:"text-black dark:text-white",children:[e.stock.yield.toFixed(2),"%"]})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsxs)("p",{className:"text-black dark:text-white",children:[e.yieldOnCost.toFixed(2),"%"]})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:(0,n.R)(e.stock.price*e.shares*(e.stock.yield/100))})}),(0,a.jsx)("div",{className:"flex items-center justify-center p-2.5 xl:p-5",children:(0,a.jsx)("p",{className:"text-black dark:text-white",children:e.stock.dividendScore})})]},s)):(0,a.jsxs)("div",{className:"mb-12 flex flex-col w-full justify-center items-center",children:[(0,a.jsx)("img",{className:"mt-4 w-80 h-80",src:"/assets/add-stock.svg",alt:"add stock icon"}),(0,a.jsx)("p",{className:"dark:text-white",children:"Could not find any stocks"})]})]})]})})},o=e=>{let{portfolio:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l,{portfolio:t}),(0,a.jsx)(i.Z,{portfolio:t}),(0,a.jsx)("div",{className:"mt-4 grid grid-cols-12 gap-4 md:mt-6 md:gap-6 2xl:mt-7.5 2xl:gap-7.5",children:(0,a.jsx)("div",{className:"col-span-12",children:(0,a.jsx)(c,{portfolio:t})})})]})},d=s(8695),x=s(4080),m=s(5301),h=s(3342),p=s(4184),u=s.n(p),g=s(3299),f=s(1664),j=s.n(f),k=s(3303),C=()=>{var e;let{status:t,data:s}=(0,g.useSession)({required:!1});return(0,a.jsx)("header",{className:"sticky top-0 z-10 flex w-full bg-white drop-shadow-1 dark:bg-boxdark dark:drop-shadow-none",children:(0,a.jsxs)("div",{className:"flex flex-grow items-center justify-between px-4 py-4 shadow-2 md:px-6 2xl:px-11 border-b dark:border-boxdark-2",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 sm:gap-4",children:(0,a.jsx)(j(),{href:"/",className:"items-center flex",children:(0,a.jsxs)("button",{type:"button",className:"px-4 text-gray-400 focus:outline-none",children:[(0,a.jsx)("img",{className:"h-8 w-8 mx-auto block dark:hidden ",src:"/assets/logo.svg",alt:"Dividends Logo"}),(0,a.jsx)("img",{className:"h-8 w-8 mx-auto hidden dark:block",src:"/assets/logo-dark.svg",alt:"Dividends Logo"})]})})}),(0,a.jsxs)("div",{className:"ml-4 flex items-center md:ml-6",children:[(0,a.jsx)(k.Z,{}),(null==s?void 0:s.user)?(0,a.jsxs)(d.v,{as:"div",className:"ml-3 mr-4 relative",children:[(0,a.jsx)("div",{children:(0,a.jsxs)(d.v.Button,{className:"max-w-xs bg-gray-100 rounded-full flex items-center text-sm focus:outline-none p-2 lg:rounded-md dark:bg-meta-4",children:[(null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.image)?(0,a.jsx)("img",{className:"h-6 w-6 rounded-full",src:s.user.image,alt:"PlanetScale Logo"}):(0,a.jsx)(m.Z,{className:"h-6 w-6 rounded-full dark:stroke-white"}),(0,a.jsx)("span",{className:"hidden text-gray-700 text-sm font-medium lg:block",children:(0,a.jsx)("span",{className:"sr-only",children:"Open user menu for "})}),(0,a.jsx)(h.Z,{className:"flex-shrink-0 h-5 w-5 text-gray-400","aria-hidden":"true"})]})}),(0,a.jsx)(x.u,{as:r.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.jsxs)(d.v.Items,{className:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10",children:[(0,a.jsx)(d.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)(j(),{href:"/dashboard/billing",className:u()(t?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"),children:"Billing"})}}),"authenticated"==t?(0,a.jsx)(d.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)("a",{onClick:()=>(0,g.signOut)({callbackUrl:"/"}),className:u()(t?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 cursor-pointer"),children:"Sign Out"})}}):(0,a.jsx)(d.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)("a",{onClick:()=>(0,g.signIn)(void 0,{callbackUrl:"/dashboard/portfolio/summary"}),className:u()(t?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"),children:"Sign In"})}})]})})]}):(0,a.jsx)("button",{onClick:()=>(0,g.signIn)(void 0,{callbackUrl:"/dashboard/portfolio/summary"}),className:"py-3 px-4 lg:px-8 my-auto text-white font-semibold rounded-lg bg-primary transition-all outline-none hover:bg-[#2341a4]",children:"Login"})]})]})})},b=e=>(0,a.jsx)("div",{className:"flex h-screen overflow-hidden",children:(0,a.jsxs)("div",{className:"relative flex flex-1 flex-col overflow-y-auto overflow-x-hidden bg-whiten dark:bg-boxdark-2 no-scrollbar",children:[(0,a.jsx)(C,{}),(0,a.jsx)("main",{className:"h-full",children:(0,a.jsx)("div",{className:"mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10 h-full",children:e.children})})]})}),w=s(1305),v=s(5510),y=s(6154),N=s(8767),L=!0,Z=e=>{let{params:t}=e,{id:s}=t,r=(0,N.useQuery)(["portfolio-".concat(s)],async()=>{let e=await y.Z.get("/api/portfolio/".concat(s));return e.data});return r.isLoading?(0,a.jsx)("div",{className:"h-screen w-screen flex flex-col justify-center content-center items-center dark:bg-boxdark-2",children:(0,a.jsx)(w.Z,{className:"h-6 w-6"})}):r.isSuccess?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.Z,{title:"Shared Portfolio - ".concat(r.data.name)}),(0,a.jsx)(b,{children:(0,a.jsx)(o,{portfolio:r.data})})]}):(0,a.jsx)(b,{children:(0,a.jsx)("div",{className:"dark:text-white",children:"Unauthorized"})})}}},function(e){e.O(0,[664,576,774,888,179],function(){return e(e.s=4922)}),_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.