PageSourceSearch

http://www.kitco.com/_next/static/chunks/pages/news/category/[parent]/[subcategory]-c8649c87b32e3094.js

js kitco.com collected 2026-09-24 08:36:21 UTC 16,468 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[919],{7124:function(e){var l;l=function(){return function(e,l,n){l.prototype.isToday=function(){var e="YYYY-MM-DD",l=n();return this.format(e)===l.format(e)}}},e.exports=l()},84110:function(e){var l;l=function(){return function(e,l,n){e=e||{};var t=l.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,l,n,r){return t.fromToBase(e,l,n,r)}n.en.relativeTime=r,t.fromToBase=function(l,t,i,s,o){for(var d,a,c,u=i.$locale().relativeTime||r,v=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=v.length,x=0;x<m;x+=1){var h=v[x];h.d&&(d=s?n(l).diff(i,h.d,!0):i.diff(l,h.d,!0));var p=(e.rounding||Math.round)(Math.abs(d));if(c=d>0,p<=h.r||!h.r){p<=1&&x>0&&(h=v[x-1]);var f=u[h.l];o&&(p=o(""+p)),a="string"==typeof f?f.replace("%d",p):f(p,t,h.l,c);break}}if(t)return a;var g=c?u.future:u.past;return"function"==typeof g?g(a):g.replace("%s",a)},t.to=function(e,l){return i(e,l,this,!0)},t.from=function(e,l){return i(e,l,this)};var s=function(e){return e.$u?n.utc():n()};t.toNow=function(e){return this.to(s(this),e)},t.fromNow=function(e){return this.from(s(this),e)}}},e.exports=l()},84438:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/category/[parent]/[subcategory]",function(){return n(5285)}])},46807:function(e,l,n){"use strict";n.d(l,{z:function(){return u}});var t=n(85893),r=n(41664),i=n.n(r),s=n(32271),o=n(87089),d=n(77727),a=(e,l)=>{let n=new URL(e,window.location.origin);return n.searchParams.set("utm_source",l.source),n.searchParams.set("utm_medium",l.medium),n.searchParams.set("utm_campaign",l.campaign),l.term&&n.searchParams.set("utm_term",l.term),l.content&&n.searchParams.set("utm_content",l.content),n.toString()},c=n(46761);let u=e=>{var l,n,r,u,v,m,x;let{node:h,size:p,hideCategory:f,hideSummary:g,utmParams:b=null}=e;if(!h)return(0,t.jsx)(t.Fragment,{});let y=b?a(null!==(u=null==h?void 0:h.urlAlias)&&void 0!==u?u:"/",b):null!==(v=null==h?void 0:h.urlAlias)&&void 0!==v?v:"/",j=b?a(null!==(m=null==h?void 0:null===(l=h.category)||void 0===l?void 0:l.urlAlias)&&void 0!==m?m:"/",b):null==h?void 0:null===(n=h.category)||void 0===n?void 0:n.urlAlias;return(0,t.jsxs)("div",{className:"w-full",children:[!f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.I,{urlAlias:j,text:null==h?void 0:null===(r=h.category)||void 0===r?void 0:r.name}),(0,t.jsx)("div",{className:"h-1 bg-transparent"})]}),(0,t.jsx)(i(),{href:y,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:(0,c.Z)([{sm:"text-[16px] leading-[130%]",md:"text-[20px] leading-[130%]",lg:"text-[24px] leading-[130%]",xl:"text-[24px] leading-[130%]"}[p],"text-kitco-black"]),children:null!==(x=null==h?void 0:h.teaserHeadline)&&void 0!==x?x:null==h?void 0:h.title}),g?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.L,{className:"h-2"}),(0,t.jsx)("div",{className:"summary",dangerouslySetInnerHTML:{__html:null==h?void 0:h.teaserSnippet}})]}),(0,t.jsx)(d.L,{className:"h-2"}),(0,t.jsx)(o.K,{stamp:null==h?void 0:h.createdAt})]})})]})}},73347:function(e,l,n){"use strict";n.d(l,{K:function(){return p},d:function(){return N}});var t=n(85893),r=n(41664),i=n.n(r),s=n(11163),o=n(67294),d=n(30303),a=n(68506),c=n(83193),u=n(46761),v=n(53263),m=n(96670),x=n.n(m);let h=(e,l)=>{let n=!1,t=!1,r=!1,i=!1;for(let a of(null==e?void 0:e.categoriesTree)||[]){var s,o,d;let e=(null==a?void 0:a.urlAlias)==="/opinion",c=(null==a?void 0:a.urlAlias)==="/news/category/".concat(null==l?void 0:null===(s=l.query)||void 0===s?void 0:s.parent)&&(null==a?void 0:a.urlAlias)===(null==l?void 0:l.asPath);if(e&&((null==l?void 0:l.asPath)==="/opinion"||(null==l?void 0:null===(o=l.query)||void 0===o?void 0:o.parent)==="opinion")&&(n=!0),e&&(null==l?void 0:l.asPath)==="/opinion/investment-trends"&&(r=!0),(null==a?void 0:a.urlAlias)==="/news/category/mining"&&(null==l?void 0:l.asPath)==="/news/category/mining"&&(i=!0),(c||n||r||i)&&(null==a?void 0:null===(d=a.children)||void 0===d?void 0:d.length)>0&&(t=!0),n&&t&&r&&i)break}return{isOpinions:n,isInvestmentTrend:r,isMining:i,hasChildren:t}},p=()=>{var e,l,n;let{isMobile:r}=(0,v.Z)(),[d,m]=(0,o.useState)(!1),x=(0,o.useRef)(null),[p,y]=(0,o.useState)(!1),j=(0,s.useRouter)(),{data:w}=(0,c.ZP)(a.r.newsCategoriesTree()),{isOpinions:N,isInvestmentTrend:k,isMining:_,hasChildren:C}=h(w,j),S="uppercase text-[32px] md:text-[48px]",M="uppercase text-[32px] md:leading-[58px] leading-[38px] md:text-[48px]",P=(null==j?void 0:null===(e=j.query)||void 0===e?void 0:e.subcategory)||(null==j?void 0:null===(l=j.query)||void 0===l?void 0:l.opinion)||"/opinion/investment-trends"===j.asPath?"text-ktc-date-gray hidden md:block":"text-kitco-black";(0,o.useEffect)(()=>{r?m(!0):m(!1)},[r]);let A=N||k?"/opinion":_?"/news/category/mining":"/news/category/".concat(j.query.parent),L=N||k?"Opinion":_?"Mining":null==j?void 0:null===(n=j.query)||void 0===n?void 0:n.parent;return(0,o.useEffect)(()=>{r&&!p&&x.current&&(y(!0),["click","touchstart"].forEach(()=>{document.addEventListener("click",e=>{let l=x.current,n=e.target;null!=l&&l.contains(n)||m(!0)})}))}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center leading-[38px] md:leading-[58px]",ref:x,children:[(0,t.jsx)(i(),{href:A,children:(0,t.jsx)("h1",{className:(0,u.Z)([S,P]),children:L})}),(0,t.jsx)(g,{r:j,baseH1:S,baseSubH1:M,parentCSS:P}),(0,t.jsx)(f,{hasChildren:C,r:j,setOpenSectionsMenu:m,openSectionsMenu:d,baseSubH1:M})]})}),(0,t.jsx)(b,{openSectionsMenu:d,currentParentCategory:function(){var e;return null==w?void 0:null===(e=w.categoriesTree)||void 0===e?void 0:e.find(e=>{var l;return(null==e?void 0:e.urlAlias)==="/news/category/".concat(null==j?void 0:null===(l=j.query)||void 0===l?void 0:l.parent)||(null==e?void 0:e.urlAlias)==="/opinion"})},data:w,setOpenSectionsMenu:m,isInvestmentTrend:k})]})},f=e=>{var l,n,r,i;let{hasChildren:s,r:o,setOpenSectionsMenu:a,openSectionsMenu:c,baseSubH1:v}=e;
1return s||(null==o?void 0:null===(l=o.query)||void 0===l?void 0:l.subcategory)?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex items-center text-base text-[#0C87D2] md:hidden",onClick:()=>a(!c),children:[(0,t.jsx)("h1",{className:(0,u.Z)([v,"text-[#232323]"]),children:null!==(i=null==o?void 0:null===(n=o.query)||void 0===n?void 0:n.subcategory)&&void 0!==i?i:null==o?void 0:null===(r=o.query)||void 0===r?void 0:r.opinion}),c?(0,t.jsx)("div",{className:"relative h-4 w-4",children:(0,t.jsx)(d.OId,{className:"absolute z-[-1] ml-1 text-kitco-black",size:16})}):(0,t.jsx)("div",{className:"relative h-4 w-4",children:(0,t.jsx)(d.Vmf,{className:"absolute ml-1 text-kitco-black",size:16})})]})}):(null==o?void 0:o.asPath)==="/opinion/investment-trends"?(0,t.jsx)("div",{className:"flex items-center text-base text-[#0C87D2] md:hidden",children:(0,t.jsx)("h1",{className:(0,u.Z)([v,"text-[#232323]"]),children:"investment trends"})}):null},g=e=>{var l,n,r,i,s;let{r:o,baseH1:d,baseSubH1:a,parentCSS:c}=e;return(null==o?void 0:null===(l=o.query)||void 0===l?void 0:l.subcategory)||(null==o?void 0:null===(n=o.query)||void 0===n?void 0:n.opinion)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:(0,u.Z)([d,c,"px-1 md:px-2"]),children:"/"}),(0,t.jsx)("h1",{className:(0,u.Z)([a,"hidden md:block","text-kitco-black"]),children:null!==(s=null==o?void 0:null===(r=o.query)||void 0===r?void 0:r.subcategory)&&void 0!==s?s:null==o?void 0:null===(i=o.query)||void 0===i?void 0:i.opinion})]}):(null==o?void 0:o.asPath)==="/opinion/investment-trends"?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:(0,u.Z)([d,c,"px-1 md:px-2"]),children:"/"}),(0,t.jsx)("h1",{className:(0,u.Z)([a,"hidden md:block","text-kitco-black"]),children:"investment trends"})]}):null},b=e=>{let{openSectionsMenu:l,currentParentCategory:n,data:r,setOpenSectionsMenu:i,isInvestmentTrend:s}=e;if(s)return(0,t.jsx)("div",{className:"flex flex-col md:flex-row md:items-center md:pb-5"});if(!l){var o,d,a;return(0,t.jsx)("div",{className:x().sectionsWrap,children:(null==r?void 0:null===(o=r.categoriesTree)||void 0===o?void 0:o.length)>0&&(0,t.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:pb-5",children:[(null===(a=n())||void 0===a?void 0:null===(d=a.children)||void 0===d?void 0:d.length)>0?(0,t.jsx)("h5",{className:"hidden pr-[3px] text-[16px] font-bold md:block",children:(0,t.jsx)("span",{children:"Sections:"})}):null,(0,t.jsx)(y,{setOpenSectionsMenu:i,currentParentCategory:n}),(0,t.jsx)(j,{currentParentCategory:n})]})})}return null},y=e=>{var l,n;let{setOpenSectionsMenu:r,currentParentCategory:i}=e;return(0,t.jsx)("ul",{className:"flex flex-grow flex-col md:hidden md:flex-row md:items-center",onClick:()=>r(!0),children:null===(n=i())||void 0===n?void 0:null===(l=n.children)||void 0===l?void 0:l.map(e=>e.status?(0,t.jsx)(w,{category:e,setOpenSectionsMenu:r},e.id):null)})},j=e=>{var l,n;let{currentParentCategory:r}=e;return(0,t.jsx)("ul",{className:"hidden font-normal md:flex md:flex-grow md:flex-row md:items-center",children:null===(n=r())||void 0===n?void 0:null===(l=n.children)||void 0===l?void 0:l.map((e,l)=>{if(e.status){var n,i;return(0,t.jsx)(w,{category:e,dots:l!==(null===(i=r())||void 0===i?void 0:null===(n=i.children)||void 0===n?void 0:n.length)-1},e.id)}return null})})},w=e=>{var l;let{category:n,dots:r,setOpenSectionsMenu:s}=e;return(0,t.jsxs)("li",{className:x().itemLi,children:[(0,t.jsx)(i(),{className:x().itemAnchor,href:n.urlAlias,children:null==n?void 0:n.name}),(0,t.jsx)("ul",{className:x().subChildren,children:null==n?void 0:null===(l=n.children)||void 0===l?void 0:l.map((e,l)=>(0,t.jsx)("li",{children:(0,t.jsx)(i(),{onClick:()=>s(!0),className:x().itemAnchor,href:e.urlAlias,children:null==e?void 0:e.name})},"".concat(e.id,"-").concat(l)))}),r&&(0,t.jsx)("span",{className:"hidden text-[10px] md:inline-block",children:"•"})]})},N=e=>{let{category:l}=e,n=null==l?void 0:l.split("/").filter(e=>!("news"===e||"category"===e||""===e)),r="!uppercase !text-[24px] !font-normal font-babasNeue text-kitco-black",s=(null==n?void 0:n[1])?"!text-[#23232333]":"!text-kitco-black";(null==l?void 0:l.includes("/opinion/"))&&(n=null==l?void 0:l.split("/").filter(e=>!("news"===e||"category"===e||""===e))),"/news"===l&&(n=null==l?void 0:l.split("/").filter(e=>"news"===e));let o=k(l);return l?(0,t.jsx)("div",{className:"mb-5 mt-2.5 flex w-full flex-wrap items-start border-b border-ktc-borders pb-[0.625rem] leading-[29px] md:mb-0 md:mt-1 md:pb-5",children:(0,t.jsxs)("div",{className:"flex flex-wrap",children:[(0,t.jsx)(i(),{href:"".concat(o,"/").concat(null==n?void 0:n[0]),children:(0,t.jsx)("h3",{className:"".concat(r," ").concat(s),children:null==n?void 0:n[0]})}),(null==n?void 0:n[1])&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:"".concat(r," px-2 ").concat(s),children:"/"}),(0,t.jsx)(i(),{href:"".concat(o,"/").concat(null==n?void 0:n[0],"/").concat(null==n?void 0:n[1]),children:(0,t.jsx)("h3",{className:"text-kitco-black ".concat(r),children:null==n?void 0:n[1]})})]})]})}):(0,t.jsx)(t.Fragment,{})},k=e=>"opinion/investment-trends"===e||(null==e?void 0:e.startsWith("/opinion"))||"/news"===e?"":"news/off-the-wire"===e?"/news":"/news/category"},5285:function(e,l,n){"use strict";n.r(l),n.d(l,{__N_SSP:function(){return j}});var t=n(85893),r=n(9008),i=n.n(r),s=n(11163),o=n(67294),d=n(44478),a=n(98577),c=n(46807),u=n(7628),v=n(80193),m=n(7449),x=n(73347),h=n(77727),p=n(68506),f=n(83193),g=n(43571),b=n(5514),y=n(53263),j=!0;l.default=e=>{var l,n,r;let{variables:a}=e,c=(0,s.useRouter)().query.subcategory.toUpperCase(),{params:u,incrementParam
1s:j}=(0,g.U)(40),{data:k}=(0,f.ZP)(p.r.newsByCategoryGeneric({variables:{...u,urlAlias:a.urlAlias},options:{enabled:!0,select:(0,o.useCallback)(e=>{var l;let n=null==e?void 0:e.nodeListByCategory;return{nodeListByCategory:{...n,items:null==n?void 0:null===(l=n.items)||void 0===l?void 0:l.filter(e=>(null==e?void 0:e.__typename)!=="Commentary"&&0!==Object.keys(e).length)}}},[])}})),{ref:_,items:C,loading:S}=(0,g.F)({items:null==k?void 0:null===(l=k.nodeListByCategory)||void 0===l?void 0:l.items,incrementParams:j,total:null==k?void 0:null===(n=k.nodeListByCategory)||void 0===n?void 0:n.total}),M=(null==C?void 0:C.length)?C:null==k?void 0:null===(r=k.nodeListByCategory)||void 0===r?void 0:r.items;M=null==M?void 0:M.map(e=>{if(!e.teaserSnippet){var l,n;let t=null===(l=(0,b.Z)(null==e?void 0:null===(n=e.source)||void 0===n?void 0:n.description))||void 0===l?void 0:l.replace("&nbsp;"," ");return{...e,teaserSnippet:t}}return{...e}});let{isMobile:P}=(0,y.Z)();return(0,t.jsxs)(v.Z,{title:"".concat(c," News | KITCO"),children:[(0,t.jsx)(i(),{children:(0,t.jsx)("meta",{name:"description",content:"KITCO Covers The Latest Gold News, Silver News, Live Gold Prices, Silver Prices, Gold Charts, Gold Rate, Mining News, ETF, FOREX, Bitcoin, Crypto, Stock Markets"})}),(0,t.jsxs)("div",{className:"mx-auto box-border w-full max-w-full px-5 md:px-10 lg:px-10 xl:w-[1240px] xl:px-0",children:[(0,t.jsx)(x.K,{}),P?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.L,{className:"h-2.5 border-b border-ktc-borders"}),(0,t.jsx)(N,{data:null==M?void 0:M.slice(0,4)})]}):(0,t.jsx)(w,{data:null==M?void 0:M.slice(0,4)}),(0,t.jsx)(d.Z,{id:"banner-2",className:"mx-auto my-12 h-[280px] w-[336px] md:h-[90px] md:w-[728px] no-print"}),(0,t.jsx)(h.L,{className:"h-5"}),(0,t.jsx)(m.zb,{data:null==M?void 0:M.slice(4,null==M?void 0:M.length),hideCategory:!0,layoutSecond:!0}),(0,t.jsx)("div",{ref:_,children:S&&(0,t.jsx)("div",{children:"Loading..."})})]}),(0,t.jsx)(d.Z,{id:"footer",className:"after:font-['Font Awesome 5 Pro]' fixed bottom-0 left-1/2 z-20 w-[320px] -translate-x-1/2 after:absolute after:right-0 after:top-[-25px] after:w-[20px] after:cursor-pointer after:rounded after:bg-[#373737] after:text-center after:text-lg after:font-bold after:leading-[1.1] after:text-white after:content-['X'] tablet:h-[90px] tablet:w-[728px] desktop:hidden no-print"})]})};let w=e=>{let{data:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col border-b border-ktc-borders pb-10 md:pb-0 lg:flex-row lg:pb-10",children:[(0,t.jsx)("div",{className:"w-full border-0 border-ktc-borders md:border-b md:pb-[40px] lg:w-[53.4%] lg:border-0 lg:pb-0 lg:pr-[40px]",children:(0,t.jsx)(a.TeaserCard,{node:null==l?void 0:l[0],size:"lg",sizeImg:"lg",hideCategory:!0})}),(0,t.jsx)("div",{className:"mt-10 flex w-full flex-col border-l-ktc-borders pl-0 lg:mt-0 lg:w-[calc(100%_-_53.4%_+_40px)] lg:border-l lg:pl-[40px]",children:(0,t.jsx)("div",{className:"block",children:null==l?void 0:l.slice(1,null==l?void 0:l.length).map((e,l)=>{var n;return(0,t.jsx)("div",{className:"mb-10",children:(0,t.jsx)(c.z,{node:e,size:"md",hideCategory:!0},e.id)},null!==(n=e.id)&&void 0!==n?n:l)})})})]})},N=e=>{let{data:l}=e;return(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)("div",{className:"flex w-full flex-col border-l-ktc-borders pl-0 lg:mt-0 lg:w-1/2 lg:border-l lg:pl-[40px]",children:(0,t.jsx)("div",{className:"block",children:null==l?void 0:l.slice(0,null==l?void 0:l.length).map((e,l)=>{var n;return(0,t.jsx)("div",{className:"border-b border-ktc-borders pt-5",children:(0,t.jsx)(u.p,{node:e,size:"md",aspectRatio:"16x9",hideCategory:!0},e.id)},null!==(n=e.id)&&void 0!==n?n:l)})})})})}},5514:function(e,l,n){"use strict";l.Z=e=>{if(!e)return"";if("undefined"!=typeof DOMParser)try{let n=new DOMParser().parseFromString(e,"text/html").querySelectorAll("p");for(let e=0;e<n.length;e++){var l;let t=n[e],r=null===(l=t.textContent)||void 0===l?void 0:l.trim();if(r&&!t.querySelector("style"))return r}}catch(e){console.error("Error parsing HTML with DOMParser:",e)}try{return e.replace(/<\/?[^>]+(>|$)/g,"").trim()}catch(e){return console.error("Error stripping HTML tags:",e),""}}},96670:function(e){e.exports={sectionsWrap:"news-category_sectionsWrap__99RkF",itemLi:"news-category_itemLi__2wKx4",itemAnchor:"news-category_itemAnchor__MlIHU",subChildren:"news-category_subChildren__meLxG"}}},function(e){e.O(0,[4396,6724,5026,4738,3365,648,7472,4034,7128,7035,6660,4817,594,509,4321,4873,1595,7536,9652,362,7561,9177,8506,8953,1780,2888,9774,179],function(){return e(e.s=84438)}),_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.