1import{r as m,j as je,m as Ne,b7 as Ce,k as $e,o as Ee,v as fe,be as Ie,b9 as ue,c as ee,cU as We,bn as ze,bJ as Oe,I as qe,a as Re,y as e,S as M,F as te,d5 as Te,ay as Pe,ax as Le,aw as Ae,av as Fe,at as Ue,as as Me,ar as Ge,aq as He,au as Be,ap as Ve,Z as De,dy as re,dz as Xe,aM as Ye,dA as Je,dB as Ze,aW as oe,dC as Ke,B as Qe,dD as et,dE as tt,D as at,x as st,H as ie,R as rt,G as Q,aG as it,aC as nt,E as ne}from"./bundle.DW4i66Zl.js";import{u as y}from"./selector.Bt2kOPZn.chunk.js";import{S as Y}from"./Skeleton.BiMOqKS8.chunk.js";import{I as ot}from"./index.DEldjwrl.chunk.js";import{c as ae,R as de,C as ct}from"./content_with_mid_ad.CimJDzSj.chunk.js";import{G as lt,A as dt}from"./ad_slots.DfMROQq5.chunk.js";import se from"./tweet_iframe.COeaohba.chunk.js";import mt from"./join_whatsapp_channel.CCiFv9hJ.chunk.js";import{L as _t}from"./index.C9uPJGji.chunk.js";import{P as ve}from"./index.DYgPFFJB.chunk.js";import{u as me}from"./hooks.B1R6uO1z.chunk.js";import{c as pt,e as ht}from"./graphql_single_fact_check.BZI_NHjC.chunk.js";import{b as ft}from"./index.DEFTq7T0.chunk.js";import{G as ge}from"./iconBase.C7Es6wVn.chunk.js";import{E as ut}from"./index.B13tTtW5.chunk.js";import{I as _e}from"./index.DuIccAcR.chunk.js";import{a as vt,r as gt}from"./useBreakpoint.BEHjtQmz.chunk.js";import"./EyeOutlined.CH2-Mich.chunk.js";import"./index.FCxwl0jm.chunk.js";import"./index.DRuBCV31.chunk.js";import"./fade.dDit9QV4.chunk.js";import"./addEventListener.BSBsu2ak.chunk.js";import"./LeftOutlined.C-tWzeMs.chunk.js";import"./Helmet.r8_nxh_N.chunk.js";import"./index.D9n_Hm_D.chunk.js";import"./Input.Dh2nb-u9.chunk.js";import"./EyeInvisibleOutlined.2S-5WOPj.chunk.js";import"./SearchOutlined.CmbEPQS3.chunk.js";const ce=m.createContext({}),xt=d=>{const{antCls:l,componentCls:_,iconCls:p,avatarBg:h,avatarColor:v,containerSize:x,containerSizeLG:a,containerSizeSM:n,textFontSize:r,textFontSizeLG:t,textFontSizeSM:s,iconFontSize:i,iconFontSizeLG:c,iconFontSizeSM:u,borderRadius:w,borderRadiusLG:O,borderRadiusSM:T,lineWidth:f,lineType:S}=d,k=(I,q,F,R)=>({width:I,height:I,borderRadius:"50%",fontSize:q,[`&${_}-square`]:{borderRadius:R},[`&${_}-icon`]:{fontSize:F,[`> ${p}`]:{margin:0}}});return{[_]:Object.assign(Object.assign(Object.assign(Object.assign({},Ce(d)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:v,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:h,border:`${$e(f)} ${S} transparent`,"&-image":{background:"transparent"},[`${l}-image-img`]:{display:"block"}}),k(x,r,i,w)),{"&-lg":Object.assign({},k(a,t,c,O)),"&-sm":Object.assign({},k(n,s,u,T)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},wt=d=>{const{componentCls:l,groupBorderColor:_,groupOverlapping:p,groupSpace:h}=d;return{[`${l}-group`]:{display:"inline-flex",[l]:{borderColor:_},"> *:not(:first-child)":{marginInlineStart:p}},[`${l}-group-popover`]:{[`${l} + ${l}`]:{marginInlineStart:h}}}},kt=d=>{const{controlHeight:l,controlHeightLG:_,controlHeightSM:p,fontSize:h,fontSizeLG:v,fontSizeXL:x,fontSizeHeading3:a,marginXS:n,marginXXS:r,colorBorderBg:t}=d;return{containerSize:l,containerSizeLG:_,containerSizeSM:p,textFontSize:h,textFontSizeLG:h,textFontSizeSM:h,iconFontSize:Math.round((v+x)/2),iconFontSizeLG:a,iconFontSizeSM:h,groupSpace:r,groupOverlapping:-n,groupBorderColor:t}},xe=je("Avatar",d=>{const{colorTextLightSolid:l,colorTextPlaceholder:_}=d,p=Ne(d,{avatarBg:_,avatarColor:l});return[xt(p),wt(p)]},kt);var yt=function(d,l){var _={};for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&l.indexOf(p)<0&&(_[p]=d[p]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,p=Object.getOwnPropertySymbols(d);h<p.length;h++)l.indexOf(p[h])<0&&Object.prototype.propertyIsEnumerable.call(d,p[h])&&(_[p[h]]=d[p[h]]);return _};const we=m.forwardRef((d,l)=>{const{prefixCls:_,shape:p,size:h,src:v,srcSet:x,icon:a,className:n,rootClassName:r,style:t,alt:s,draggable:i,children:c,crossOrigin:u,gap:w=4,onError:O}=d,T=yt(d,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[f,S]=m.useState(1),[k,I]=m.useState(!1),[q,F]=m.useState(!0),R=m.useRef(null),P=m.useRef(null),L=Ee(l,R),{getPrefixCls:A,avatar:C}=m.useContext(fe),W=m.useContext(ce),U=()=>
1{if(!P.current||!R.current)return;const E=P.current.offsetWidth,b=R.current.offsetWidth;E!==0&&b!==0&&w*2<b&&S(b-w*2<E?(b-w*2)/E:1)};m.useEffect(()=>{I(!0)},[]),m.useEffect(()=>{F(!0),S(1)},[v]),m.useEffect(U,[w]);const B=()=>{(O==null?void 0:O())!==!1&&F(!1)},j=Ie(E=>{var b,X;return(X=(b=h??(W==null?void 0:W.size))!==null&&b!==void 0?b:E)!==null&&X!==void 0?X:"default"}),V=Object.keys(typeof j=="object"?j||{}:{}).some(E=>["xs","sm","md","lg","xl","xxl"].includes(E)),G=vt(V),g=m.useMemo(()=>{if(typeof j!="object")return{};const E=gt.find(X=>G[X]),b=j[E];return b?{width:b,height:b,fontSize:b&&(a||c)?b/2:18}:{}},[G,j,a,c]),o=A("avatar",_),z=ue(o),[N,J,Z]=xe(o,z),K=ee({[`${o}-lg`]:j==="large",[`${o}-sm`]:j==="small"}),D=m.isValidElement(v),ye=p||(W==null?void 0:W.shape)||"circle",be=ee(o,K,C==null?void 0:C.className,`${o}-${ye}`,{[`${o}-image`]:D||v&&q,[`${o}-icon`]:!!a},Z,z,n,r,J),Se=typeof j=="number"?{width:j,height:j,fontSize:a?j/2:18}:{};let H;if(typeof v=="string"&&q)H=m.createElement("img",{src:v,draggable:i,srcSet:x,onError:B,alt:s,crossOrigin:u});else if(D)H=v;else if(a)H=a;else if(k||f!==1){const E=`scale(${f})`,b={msTransform:E,WebkitTransform:E,transform:E};H=m.createElement(We,{onResize:U},m.createElement("span",{className:`${o}-string`,ref:P,style:b},c))}else H=m.createElement("span",{className:`${o}-string`,style:{opacity:0},ref:P},c);return N(m.createElement("span",Object.assign({},T,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Se),g),C==null?void 0:C.style),t),className:be,ref:L}),H))}),pe=d=>{const{size:l,shape:_}=m.useContext(ce),p=m.useMemo(()=>({size:d.size||l,shape:d.shape||_}),[d.size,d.shape,l,_]);return m.createElement(ce.Provider,{value:p},d.children)},bt=d=>{var l,_,p,h;const{getPrefixCls:v,direction:x}=m.useContext(fe),{prefixCls:a,className:n,rootClassName:r,style:t,maxCount:s,maxStyle:i,size:c,shape:u,maxPopoverPlacement:w,maxPopoverTrigger:O,children:T,max:f}=d,S=v("avatar",a),k=`${S}-group`,I=ue(S),[q,F,R]=xe(S,I),P=ee(k,{[`${k}-rtl`]:x==="rtl"},R,I,n,r,F),L=ze(T).map((W,U)=>Oe(W,{key:`avatar-key-${U}`})),A=(f==null?void 0:f.count)||s,C=L.length;if(A&&A<C){const W=L.slice(0,A),U=L.slice(A,C),B=(f==null?void 0:f.style)||i,j=((l=f==null?void 0:f.popover)===null||l===void 0?void 0:l.trigger)||O||"hover",V=((_=f==null?void 0:f.popover)===null||_===void 0?void 0:_.placement)||w||"top",G=Object.assign(Object.assign({content:U},f==null?void 0:f.popover),{classNames:{root:ee(`${k}-popover`,(h=(p=f==null?void 0:f.popover)===null||p===void 0?void 0:p.classNames)===null||h===void 0?void 0:h.root)},placement:V,trigger:j});return W.push(m.createElement(ve,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},G),m.createElement(we,{style:B},`+${C-A}`))),q(m.createElement(pe,{shape:u,size:c},m.createElement("div",{className:P,style:t},W)))}return q(m.createElement(pe,{shape:u,size:c},m.createElement("div",{className:P,style:t},L)))},le=we;le.Group=bt;var St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},jt=function(l,_){return m.createElement(qe,Re({},l,{ref:_,icon:St}))},he=m.forwardRef(jt);const Nt=()=>e.jsx("div",{className:"single_fact_check_rating_container",children:e.jsx(Y.Input,{className:"single_fact_check_rating_skeleton",active:!0})}),Ct=({class_name:d,text:l,font_family:_})=>e.jsx("span",{className:d,style:{fontFamily:_},children:l}),$t=()=>{const{t:d}=M(),l=te("language"),_=()=>{(l==null?void 0:l.name)==="tamil"?window.open("https://whatsapp.com/channel/0029Va4HSHgLikgBHdfkX53V","_blank"):window.open("https://whatsapp.com/channel/0029Va4ndSk11ulVi5VkkN30","_blank")};
1return e.jsxs("div",{className:"whatsapp_channel_container",onClick:_,children:[e.jsx(ot,{preview:!1,src:Te,className:"whatsapp_channel_icon"}),e.jsx(Ct,{class_name:"whatsapp_channel_text",text:d("join_our_whatsapp_channel_for_quick_updates"),font_family:"lato"})]})},ke=()=>{const{t:d}=M(),{is_fact:l,loading:_}=y("get_fact_check"),h={true:Ve,false:Be,fake:He,mix:Ge,sarcasm:Me,misleading:Ue,scam:Fe,old_image:Ae,old_video:Le,old_visual:Pe}[l]||null;return e.jsxs("div",{children:[e.jsx("div",{className:"single_fact_claim_title",children:e.jsx("h5",{children:d("youTurn_rating")})}),_?e.jsx(Nt,{}):e.jsx("div",{className:"single_fact_check_rating_container",children:e.jsx("img",{alt:"YouTurn Rating",visible:!1,preview:!1,src:h,className:"youTurn_rating_image"})}),e.jsx("div",{className:"single_fact_check_whats_app_container",children:e.jsx($t,{})})]})},Et=()=>{const{t:d}=M(),{short_story:l}=y("get_fact_check"),[_,p]=m.useState(""),{dark_mode:h}=y("dark_mode"),v={replace:({name:a,attribs:n,children:r})=>a==="TweetIframe"||a==="tweetiframe"?e.jsx(se,{...n,children:r}):null},x=a=>{const r=$(a).parent().find(".loading-spinner");setTimeout(()=>{r.css("display","none")},5e3)};return m.useEffect(()=>{if(l){const a=ae.load(l.replace(/\[/g,"<").replace(/\]/g,">").replace(/</g,"<").replace(/>/g,">"));a("blockquote.instagram-media").each((n,r)=>{const t=a(r),s=t.attr("data-instgrm-permalink");if(s){const c=`<iframe src="${s.split("?")[0]}embed" width="500" height="800" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("blockquote").each((n,r)=>{const t=a(r),s=t.find('a[href^="https://twitter.com/"]').last().attr("href");if(s){const i=`<TweetIframe tweeturl=${s}>`;t.parent()[0]?t.replaceWith(i):console.warn("Parent node does not exist for this blockquote.")}}),a("video").each((n,r)=>{const t=a(r),s=t.attr("mp4");t.attr("width"),t.attr("height");const i=` 2 <div class="video-wrapper"> 3 <video width="100%" height="auto" controls> 4 <source src="${s}" type="video/mp4"/> 5 </video> 6 </div>`;t.replaceWith(i)}),a("div[data-lexical-tweet-id]").each((n,r)=>{const t=a(r),s=a(t).attr("data-lexical-tweet-id");if(s){const i=`https://twitter.com/twitter/status/${s}`;if(i){const c=`<TweetIframe tweeturl=${i}>`;a(r).replaceWith(c)}}}),a("div[data-lexical-instagram-id]").each((n,r)=>{const t=a(r),s=t.attr("data-lexical-instagram-id");if(s){const c=`<iframe src="${`https://www.instagram.com/p/${s}`}/embed" width="500" height="500" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("iframe[data-lexical-video-url]").each((n,r)=>{const t=a(r),i=` 7 <div class="video-wrapper"> 8 <video class="video-content" controls> 9 <source src="${t.attr("data-lexical-video-url")}" type="video/mp4"/> 10 </video> 11 </div>`;t.replaceWith(i)}),a("iframe[data-lexical-iframe-id]").each((n,r)=>{const t=a(r),i=` 12 <div class="iframe-wrapper"> 13 <iframe src="${t.attr("data-lexical-iframe-id")}" width="100%" height="600" frameborder="0" allowfullscreen></iframe> 14 </div>`;t.replaceWith(i)}),a("div.flourish-embed").each((n,r)=>{const t=a(r),c=` 15 <div class="iframe-loading"> 16 <div class="iframe-wrapper"> 17 <iframe src="${`https://flo.uri.sh/${t.attr("data-src")}/embed`}" width="100%" height="600" frameborder="0" allowfullscreen 18 onload="this.parentElement.querySelector('.loading-spinner').style.display = 'none';"> 19 </iframe> 20 </div> 21 </div>`;t.replaceWith(c),x(c)}),h?a("body").addClass("dark_mode article-content"):a("body").addClass("article-content"),p(a.html())}},[l,h]),e.jsx("div",{className:"single_fact_check_spread_news_container",children:_&&de(_,v)})},It=()=>{const{t:d}=M(),{source:l}=y("get_fact_check"),[_,p]=m.useState(""),{dark_mode:h}=y("dark_mode"),v={replace:({name:a,attribs:n,children:r})=>a==="TweetIframe"||a==="tweetiframe"?e.jsx(se,{...n,children:r}):null},x=a=>{const r=$(a).parent().find(".loading-spinner");setTimeout(()=>{r.css("display","none")},5e3)};return m.useEffect(()=>{if(l){const a=ae.load(l.replace(/\[/g,"<").replace(/\]/g,">").replace(/</g,"<").replace(/>/g,">"));a("blockquote.instagram-media").each((n,r)=>{const t=a(r),s=t.attr("data-instgrm-permalink");if(s){const c=`<iframe src="${s.split("?")[0]}embed" width="500" height="800" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("blockquote").each((n,r)=>{const t=a(r),s=t.find('a[href^="https://twitter.com/"]').last().attr("href");if(s){const i=`<TweetIframe tweeturl=${s}>`;t.parent()[0]?t.replaceWith(i):console.warn("Parent node does not exist for this blockquote.")}}),a("video").each((n,r)=>{const t=a(r),s=t.attr("mp4");t.attr("width"),t.attr("height");const i=` 22 <div class="video-wrapper"> 23 <video width="100%" height="auto" controls> 24 <source src="${s}" type="video/mp4"/> 25 </video> 26 </div>`;t.replaceWith(i)}),a("div[data-lexical-tweet-id]").each((n,r)=>{const t=a(r),s=a(t).attr("data-lexical-tweet-id");if(s){const i=`https://twitter.com/twitter/status/${s}`;if(i){const c=`<TweetIframe tweeturl=${i}>`;a(r).replaceWith(c)}}}),a("div[data-lexical-instagram-id]").each((n,r)=>{const t=a(r),s=t.attr("data-lexical-instagram-id");if(s){const c=`<iframe src="${`https://www.instagram.com/p/${s}`}/embed" width="500" height="500" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("iframe[data-lexical-video-url]").each((n,r)=>{const t=a(r),i=` 27 <div class="video-wrapper">
28 <video class="video-content" controls> 29 <source src="${t.attr("data-lexical-video-url")}" type="video/mp4"/> 30 </video> 31 </div>`;t.replaceWith(i)}),a("iframe[data-lexical-iframe-id]").each((n,r)=>{const t=a(r),i=` 32 <div class="iframe-wrapper"> 33 <iframe src="${t.attr("data-lexical-iframe-id")}" width="100%" height="600" frameborder="0" allowfullscreen></iframe> 34 </div>`;t.replaceWith(i)}),a("div.flourish-embed").each((n,r)=>{const t=a(r),c=` 35 <div class="iframe-loading"> 36 <div class="iframe-wrapper"> 37 <iframe src="${`https://flo.uri.sh/${t.attr("data-src")}/embed`}" width="100%" height="600" frameborder="0" allowfullscreen 38 onload="this.parentElement.querySelector('.loading-spinner').style.display = 'none';"> 39 </iframe> 40 </div> 41 </div>`;t.replaceWith(c),x(c)}),h?a("body").addClass("dark_mode article-content"):a("body").addClass("article-content"),p(a.html())}},[l,h]),e.jsx("div",{className:"single_fact_check_spread_news_container",children:_&&de(_,v)})},Wt=()=>{const{t:d}=M(),{spread_news:l}=y("get_fact_check"),[_,p]=m.useState(""),{dark_mode:h}=y("dark_mode"),v={replace:({name:a,attribs:n,children:r})=>a==="TweetIframe"||a==="tweetiframe"?e.jsx(se,{...n,children:r}):null},x=a=>{const r=$(a).parent().find(".loading-spinner");setTimeout(()=>{r.css("display","none")},5e3)};return m.useEffect(()=>{if(l){const a=ae.load(l.replace(/\[/g,"<").replace(/\]/g,">").replace(/</g,"<").replace(/>/g,">"));a("blockquote.instagram-media").each((n,r)=>{const t=a(r),s=t.attr("data-instgrm-permalink");if(s){const c=`<iframe src="${s.split("?")[0]}embed" width="500" height="800" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("blockquote").each((n,r)=>{const t=a(r),s=t.find('a[href^="https://twitter.com/"]').last().attr("href");if(s){const i=`<TweetIframe tweeturl=${s}>`;t.parent()[0]?t.replaceWith(i):console.warn("Parent node does not exist for this blockquote.")}}),a("video").each((n,r)=>{const t=a(r),s=t.attr("mp4");t.attr("width"),t.attr("height");const i=` 42 <div class="video-wrapper"> 43 <video width="100%" height="auto" controls> 44 <source src="${s}" type="video/mp4"/> 45 </video> 46 </div>`;t.replaceWith(i)}),a("div[data-lexical-tweet-id]").each((n,r)=>{const t=a(r),s=a(t).attr("data-lexical-tweet-id");if(s){const i=`https://twitter.com/twitter/status/${s}`;if(i){const c=`<TweetIframe tweeturl=${i}>`;a(r).replaceWith(c)}}}),a("div[data-lexical-instagram-id]").each((n,r)=>{const t=a(r),s=t.attr("data-lexical-instagram-id");if(s){const c=`<iframe src="${`https://www.instagram.com/p/${s}`}/embed" width="500" height="500" frameborder="0" scrolling="no" allowtransparency></iframe>`;t.parent()[0]?t.replaceWith(c):console.warn("Parent node does not exist for this blockquote.")}}),a("iframe[data-lexical-video-url]").each((n,r)=>{const t=a(r),i=` 47 <div class="video-wrapper"> 48 <video class="video-content" controls> 49 <source src="${t.attr("data-lexical-video-url")}" type="video/mp4"/> 50 </video> 51 </div>`;t.replaceWith(i)}),a("iframe[data-lexical-iframe-id]").each((n,r)=>{const t=a(r),i=` 52 <div class="iframe-wrapper"> 53 <iframe src="${t.attr("data-lexical-iframe-id")}" width="100%" height="600" frameborder="0" allowfullscreen></iframe> 54 </div>`;t.replaceWith(i)}),a("div.flourish-embed").each((n,r)=>{const t=a(r),c=` 55 <div class="iframe-loading"> 56 <div class="iframe-wrapper"> 57 <iframe src="${`https://flo.uri.sh/${t.attr("data-src")}/embed`}" width="100%" height="600" frameborder="0" allowfullscreen 58 onload="this.parentElement.querySelector('.loading-spinner').style.display = 'none';"> 59 </iframe> 60 </div> 61 </div>`;t.replaceWith(c),x(c)}),h?a("body").addClass("dark_mode article-content"):a("body").addClass("article-content"),p(a.html())}},[l,h]),e.jsxs("div",{className:"single_fact_check_spread_news_container",children:[e.jsx("div",{className:"single_fact_details_title",children:e.jsx("h5",{children:d("claim")})}),_?de(_,v):""]})},zt=d=>{const{handle_save:l}=d,{pathname:_}=De();let p=te("language");const{t:h}=M(),[v,x]=m.useState(),[a,n]=m.useState(!1),[r,t]=m.useState(!1),[s,i]=m.useState(!1),c=y("get_fact_check"),{is_saved:u}=y("get_bookmark"),{dark_mode:w}=y("dark_mode"),O=async()=>
61{if(v)try{await navigator.clipboard.writeText(v),i(!0)}catch(f){console.error("Failed to copy the link:",f)}};m.useEffect(()=>{s&&(t(!0),setTimeout(()=>{t(!1),i(!1)},500))},[s]),m.useEffect(()=>{u&&(n(!0),setTimeout(()=>{n(!1)},5e3))},[u]),m.useEffect(()=>{if((p==null?void 0:p.name)==="tamil"){const S=new URL(re).hostname,k=_==null?void 0:_.replace(".html",""),I=`https://share.${S}${k}`;x(I)}else{const S=new URL(re).hostname,k=_==null?void 0:_.replace(".html",""),I=`https://share.${S}/en${k}`;x(I)}},[_,re]);const T=Xe(c==null?void 0:c.title,v,c==null?void 0:c.thumbnail_img,O,r);return e.jsxs("div",{className:"share_save_container",children:[e.jsxs("div",{className:"single_article_icons_wrapper",children:[e.jsx(_t,{color:"red"}),e.jsx("text",{className:"single_article_view_count",children:Ye(c==null?void 0:c.views)})]}),e.jsxs("div",{className:"share_save_container_second_column",children:[e.jsxs(ve,{className:"single_article_icons",placement:"top",content:T,trigger:"hover",children:[e.jsx("img",{alt:"share_icon",className:"save_share_icon",src:w?Je:Ze}),e.jsx("text",{className:"save_share_text",children:h("share")})]}),e.jsx("div",{className:"single_article_icons",children:u?e.jsxs(oe,{title:"Bookmark Saved",open:a,children:[e.jsx("img",{alt:"save_filled_icon",className:"save_share_icon",src:Ke,onClick:l}),e.jsx("text",{className:"save_share_text",onClick:l,children:h("save")})]}):e.jsxs(Qe.Fragment,{children:[e.jsx("img",{alt:"save_icon",className:"save_share_icon",src:w?et:tt,onClick:l}),e.jsx("text",{className:"save_share_text",onClick:l,children:h("save")})]})})]})]})};function Ot(d){return ge({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M212,224a12,12,0,0,1-12,12A108.12,108.12,0,0,1,92,128V61L64.49,88.49a12,12,0,0,1-17-17l48-48a12,12,0,0,1,17,0l48,48a12,12,0,0,1-17,17L116,61v67a84.09,84.09,0,0,0,84,84A12,12,0,0,1,212,224Z"},child:[]}]})(d)}function qt(d){return ge({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232.49,160.49l-48,48a12,12,0,0,1-17-17L195,164H128A108.12,108.12,0,0,1,20,56a12,12,0,0,1,24,0,84.09,84.09,0,0,0,84,84h67l-27.52-27.51a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,160.49Z"},child:[]}]})(d)}const Rt=()=>e.jsxs("div",{className:"reply_comments_skeleton_container",children:[e.jsxs("div",{className:"reply_comments_skeleton_profile_wrapper",children:[e.jsx("div",{className:"reply_comments_skeleton_profile",children:e.jsx(Y.Avatar,{active:!0,size:"large"})}),e.jsxs("div",{className:"reply_comments_skeleton_info",children:[e.jsx(Y.Input,{active:!0,className:"reply_comments_skeleton_name"}),e.jsx(Y.Input,{active:!0,className:"reply_comments_skeleton_name"})]})]}),e.jsx("div",{children:e.jsx(Y.Input,{className:"reply_comments_skeleton_content",active:!0})})]}),Tt=()=>{const{t:d}=M(),l=at(),_=st(),p=te("user_id"),[h,v]=m.useState(""),[x,a]=m.useState({}),[n,r]=m.useState({}),[t,s]=m.useState({}),[i,c]=m.useState(1),[u,w]=m.useState(2),[O,T]=m.useState(!1);te("language");const{id:f}=y("get_fact_check"),{type:S}=y("comment_type"),{items:k,loading:I,pagination:q}=y("get_fact_check_comment_list"),F=me("get_fact_check_comment_list",pt),{status:R,error:P}=y("create_comment");m.useEffect(()=>{R==="Success"?(T(!0),setTimeout(()=>{l(ie("comment_type")),T(!1)},5e3),l(ie("create_comment")),v(""),s("")):R==="Failure"&&(_(rt.LOGIN),l(ie("create_comment")))},[R,P]);const L=me("create_comment",ht),A=()=>{u>2?w(2):w(q==null?void 0:q.total_count)};m.useEffect(()=>{C()},[u,f]);const C=()=>{F({fact_check_id:f,page_number:i,page_limit:u},!0)},W=g=>{a(o=>({...o,[g]:!o[g]}))},U=g=>{l(ne("comment_type",{type:"parent"})),r(o=>({...o,[g]:!o[g]}))},B=(g,o)=>{s(z=>({...z,[o]:g.target.value}))},j=()=>
61{if(p){l(ne("comment_type",{type:"main"}));const g=L({json:{fact_check_id:f,content:h}});g&&g.then&&g.then(()=>{v(""),C()}).catch(o=>{console.error("Error creating comment:",o)})}else{const g=new URLSearchParams;g.set("type","comment"),g.set("types","fact_check"),g.set("id",f),g.set("redirecturl",window.location.pathname),_({pathname:"/login",search:`?${g.toString()}`})}},V=g=>{l(ne("comment_type",{type:"parent"}));const o=L({json:{fact_check_id:f,content:t[g],parent_comment_id:g}});o&&o.then?o.then(()=>{s(z=>({...z,[g]:""})),r(z=>({...z,[g]:!1})),C()}).catch(z=>{console.error("Error creating reply:",z)}):console.error("create_comment_request did not return a promise.")},G=g=>g==null?void 0:g.map(o=>{var z;return e.jsxs("div",{className:"comment",children:[e.jsxs("div",{className:"comment_content",children:[e.jsxs("div",{className:"comment_header",children:[e.jsx(le,{src:o==null?void 0:o.commented_by.user_profile.profile_pic,size:"large"}),e.jsxs("div",{className:"comment_details",children:[e.jsx("span",{className:"comment_details_user_name",children:o==null?void 0:o.commented_by.user_profile.name}),e.jsx("span",{className:"comment_details_time",children:it(o==null?void 0:o.created_date_time)})]})]}),e.jsxs("div",{className:"comment_body",children:[e.jsxs("div",{className:"comments_parent_reply_row_content",children:[e.jsx("span",{className:"comments_parent_comment_text",children:o==null?void 0:o.content}),e.jsx(Q,{type:"link",icon:e.jsx(ft,{size:30,className:"reply_icon"}),onClick:()=>U(o==null?void 0:o.id),className:"comments_parent_comment_reply_button",children:"Reply"})]}),(o==null?void 0:o.child_comments.length)>0&&e.jsx(Q,{icon:x[o==null?void 0:o.id]?e.jsx(Ot,{size:20}):e.jsx(qt,{size:20}),type:"link",onClick:()=>W(o==null?void 0:o.id),children:x[o==null?void 0:o.id]?"Hide Replies":"View Replies"}),e.jsx("div",{className:"comment_actions",children:n[o==null?void 0:o.id]&&e.jsxs("div",{className:"reply_input_container",children:[e.jsx(oe,{open:O&&S==="parent",title:"We have received your comments. We will review your comment and publish.",id:"comment-content",children:e.jsx(_e,{placeholder:"Enter reply here",value:t[o==null?void 0:o.id]||"",onChange:N=>B(N,o==null?void 0:o.id),className:"reply_input"})}),e.jsx(Q,{type:"primary",icon:e.jsx(he,{}),onClick:()=>V(o.id),children:d("post")})]})})]})]}),x[o.id]&&o.child_comments.length>0&&e.jsx("div",{className:"replies",children:(z=o.child_comments)==null?void 0:z.map(N=>{var J,Z,K,D;return e.jsxs("div",{className:"reply",children:[e.jsx(le,{src:(Z=(J=N.commented_by)==null?void 0:J.user_profile)==null?void 0:Z.profile_pic,size:"small"}),e.jsxs("div",{className:"reply_details",children:[e.jsxs("p",{className:"reply_comment_container",children:[e.jsxs("text",{className:"reply_comment_name_text",children:[(D=(K=N==null?void 0:N.commented_by)==null?void 0:K.user_profile)==null?void 0:D.name," "]}),e.jsx("text",{className:"reply_comment_date_text",children:nt(N==null?void 0:N.created_date_time).format("MMM DD, YYYY")})]}),e.jsx("p",{className:"reply_comment_text",children:N==null?void 0:N.content})]})]},N.id)})})]},o.id)});return e.jsxs("div",{className:"comments_container",children:[e.jsx("div",{className:"comments_title_container",children:e.jsx("h5",{className:"comments_title",children:d("comments")})}),e.jsx("div",{className:"comments_bordered_div",children:(k==null?void 0:k.length)===0?e.jsx(ut,{description:e.jsx("span",{children:d("no_comments")})}):e.jsx(e.Fragment,{children:I?e.jsx(Rt,{}):e.jsxs(e.Fragment,{children:[G(k),e.jsx("div",{className:"show_all_button_container",children:u>3&&e.jsx("span",{className:"see_more_text",onClick:A,children:u>3?d("see_less"):d("see_more")})})]})})}),e.jsxs("div",{className:"comments_input_button_group",children:[e.jsx(oe,{open:O&&S==="main",title:"We have received your comments. We will review your comment and publish.",id:"comment-content",children:e.jsx(_e,{placeholder:p?d("enter_text_here"):"Please login to comment",className:"comments_primary_input",value:h,onChange:g=>v(g.target.value),disabled:!p})}),e.jsx(Q,{onClick:j,type:"primary",className:"comments_send_button",icon:e.jsx(he,{}),children:d("post")})]})]})},Pt=d=>{const{handle_save:l}=d,{t:_}=M(),[p,h]=m.useState(""),{content:v}=y("get_fact_check"),{dark_mode:x}=y("dark_mode"),a={replace:({name:n,attribs:r,children:t})=>n==="TweetIframe"||n==="tweetiframe"?e.jsx(se,{...r,children:t}):null};return m.useEffect(()=>{if(v){const n=ae.load(v.replace(/\[/g,"<").replace(/\]/g,">").replace(/</g,"<").replace(/>/g,">")),r=t=>{const i=n(t).parent().find(".loading-spinner");setTimeout(()=>{i.css("display","none")},5e3)};n("blockquote.instagram-media").each((t,s)=>{const i=n(s),c=i.attr("data-instgrm-permalink");if(c){const w=`<iframe src="${c.split("?")[0]}embed" width="500" height="800" frameborder="0" scrolling="no" allowtransparency></iframe>`;i.parent()[0]?i.replaceWith(w):console.warn("Parent node does not exist for this blockquote.")}}),n("blockquote").each((t,s)=>{const i=n(s),c=i.find('a[href^="https://twitter.com/"]').last().attr("href");if(c){const u=`<TweetIframe tweeturl=${c}>`;i.parent()[0]?i.replaceWith(u):console.warn("Parent node does not exist for this blockquote.")}}),n("video").each((t,s)=>{const i=n(s),u=` 62 <div class="video-wrapper"> 63 <video width="100%" height="auto" controls> 64 <source src="${i.attr("mp4")}" type="video/mp4"/> 65 </video> 66 </div>`;i.replaceWith(u)}),n("div[data-lexical-tweet-id]").each((t,s)=>{const i=n(s),c=n(i).attr("data-lexical-tweet-id");if(c){const u=`https://twitter.com/twitter/status/${c}`;if(u){const w=`<TweetIframe tweeturl=${u}>`;n(s).replaceWith(w)}}}),n("div[data-lexical-instagram-id]").each((t,s)=>{const i=n(s),c=i.attr("data-lexical-instagram-id");if(c){const w=`<iframe src="${`https://www.instagram.com/p/${c}`}/embed" width="500" height="500" frameborder="0" scrolling="no" allowtransparency></iframe>`;i.parent()[0]?i.replaceWith(w):console.warn("Parent node does not exist for this blockquote.")}}),n("iframe[data-lexical-video-url]").each((t,s)=>{const i=n(s),u=` 67 <div class="video-wrapper">
68 <video class="video-content" controls> 69 <source src="${i.attr("data-lexical-video-url")}" type="video/mp4"/> 70 </video> 71 </div>`;i.replaceWith(u)}),n("iframe[data-lexical-iframe-id]").each((t,s)=>{const i=n(s),u=` 72 <div class="iframe-loading"> 73 <div class="iframe-wrapper"> 74 <iframe src="${i.attr("data-lexical-iframe-id")}" width="100%" height="600" frameborder="0" allowfullscreen onload="this.parentElement.querySelector('.loading-spinner').style.display = 'none';"></iframe> 75 </div> 76 </div>`;i.replaceWith(u),r(u)}),n("div.flourish-embed").each((t,s)=>{const i=n(s),w=` 77 <div class="iframe-loading"> 78 <div class="iframe-wrapper"> 79 <iframe src="${`https://flo.uri.sh/${i.attr("data-src")}/embed`}" width="100%" height="600" frameborder="0" allowfullscreen 80 onload="this.parentElement.querySelector('.loading-spinner').style.display = 'none';"> 81 </iframe> 82 </div> 83 </div>`;i.replaceWith(w),r(w)}),x?n("body").addClass("dark_mode article-content"):n("body").addClass("article-content"),h(n.html())}},[v,x]),e.jsxs("div",{className:"single_fact_check_content_container",children:[e.jsx(Wt,{}),e.jsx("div",{className:"claim_wrapper_mob_screen",children:e.jsx(ke,{})}),e.jsx(lt,{slot:dt.IN_ARTICLE,className:"google_ad_in_article"}),e.jsx("div",{className:"single_fact_details_title",children:e.jsx("h5",{children:_("detailed_explanation")})}),e.jsx("div",{style:{textAlign:"justify"},className:`${x?"dark_mode":""}`,children:e.jsx(ct,{html:p,options:a})}),e.jsx(Et,{}),e.jsx(It,{}),e.jsx("div",{className:"single_fact_check_whats_app_mobile_container",children:e.jsx(mt,{})}),e.jsx("div",{className:"fact_check_share_save_container",children:e.jsx(zt,{handle_save:l})}),e.jsx(Tt,{})]})},_a=d=>{const{handle_save:l}=d;return y("get_fact_check"),e.jsx("div",{children:e.jsx("div",{className:"single_fact_check_claim_content_container",children:e.jsxs("div",{className:"single_fact_check_claim_content_wrapper",children:[e.jsx("div",{className:"single_fact_check_claim_container claim_wrapper",children:e.jsx(ke,{})}),e.jsx(Pt,{handle_save:l})]})})})};export{_a as default};
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.