(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26],{45874:function(e,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/canada/stocks/[ticker]",function(){return l(13639)}])},13639:function(e,a,l){"use strict";l.r(a),l.d(a,{__N_SSG:function(){return w},default:function(){return E}});var c=l(85893),t=l(67294),o=l(11163),s=l(10682),r=l(59350),i=l(32817),n=l(99927),d=l(25539),p=l.n(d),h=l(58290),x=l.n(h),u=l(39317),_=l(74944),m=l(15639),f=l(72399),j=l.n(f),N=l(3551),g=l(72028),k=l(64451),w=!0;function E(e){let a=(0,o.useRouter)(),{stockItem:l}=e,[d,h]=t.useState(""),[f,w]=t.useState(""),E=(0,k.Rg)(a,(0,o.useRouter)().pathname.replace("/[ticker]",""));return(t.useEffect(()=>{console.log(l),w(window.location.href.substring(window.location.href.lastIndexOf("/")+1).split("?")[0].toUpperCase()),h(u[a.locale+"||stock_monitor"]+" ("+window.location.href.substring(window.location.href.lastIndexOf("/")+1).split("?")[0].toUpperCase()+") - "+u[a.locale+"||product_title"])},[]),l)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(_.Z,{level:"3",titleNivel2:u[a.locale+"||pais_ca"]+" - "+u[a.locale+"||stock_monitor"],rotaNivel2:E,title:d,description:u[a.locale+"||product_paragrafo1"].replaceAll("xxx",f),id_wp_post:22,path:a.pathname.replace("[ticker]",f.toLowerCase())}),(0,c.jsx)(m.Z,{paginaAnterior:u[a.locale+"||pais_ca"]+" - "+u[a.locale+"||stock_monitor"],rotaPaginaAnterior:E,paginaAtual:f}),(0,c.jsxs)("div",{className:j().container,children:[(0,c.jsx)("div",{className:j().itemPost,children:(0,c.jsx)(s.Z,{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h1",{className:p().h1,style:{textAlign:"left"},children:l?e.stockItem[0].name:f}),(0,c.jsx)("p",{children:l?u[a.locale+"||product_paragrafo1"].replaceAll("xxx",e.stockItem[0].name):u[a.locale+"||product_paragrafo1"]}),(0,c.jsx)("p",{children:u[a.locale+"||paragrafo_final"]}),l&&(0,c.jsx)(r.Z,{data:l,country:"canada"}),(0,c.jsx)("h2",{className:p().h2,children:l?"tyo: "+e.stockItem[0].stock+" - "+u[a.locale+"||performance_12_months"]:f+" - "+u[a.locale+"||performance_12_months"]}),(0,c.jsx)("p",{children:u[a.locale+"||grafico_mes_a_mes"].replaceAll("xxx",f.toUpperCase())+":"}),(0,c.jsxs)("ul",{children:[(0,c.jsx)("li",{children:"S&P/TSX COMPOSITE INDEX;"}),(0,c.jsx)("li",{children:"S&P/TSX SMALLCAP INDEX;"}),(0,c.jsx)("li",{children:"S&P/TSX VENTURE COMPOSITE INDEX;"}),(0,c.jsx)("li",{children:"S&P/TSX COMPLETION INDEX."})]}),(0,c.jsx)("div",{className:x().divDetail,children:l?(0,c.jsx)(i.Z,{data:l}):(0,c.jsx)("p",{children:u[a.locale+"||load"]+"..."})}),(0,c.jsx)("br",{}),(0,c.jsx)("h2",{className:p().h2,children:l?l[0].stock+" - "+u[a.locale+"||performace_cumulative"]:f+" - "+u[a.locale+"||performace_cumulative"]}),(0,c.jsx)("p",{children:u[a.locale+"||grafico_acumulado"]}),(0,c.jsx)("div",{className:x().divDetail,children:l?(0,c.jsx)(n.Z,{data:l}):(0,c.jsx)("p",{children:u[a.locale+"||load"]+"..."})})]})})}),(0,c.jsx)("div",{className:j().itemCategorias,children:(0,c.jsx)(N.Z,{})})]})]}):(0,c.jsx)(g.Z,{phrase:u[a.locale+"||load"]})}}},function(e){e.O(0,[3777,2196,3592,2950,716,194,9774,2888,179],function(){return e(e.s=45874)}),_N_E=e.O()}]);