PageSourceSearch

https://vidgap.com/_next/static/chunks/1139.97004292249871c2.js

js vidgap.com collected 2026-10-08 23:42:43 UTC 8,652 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1139],{12979:e=>{e.exports={shareContainerV3:"ShareComponentV3_shareContainerV3__ObNIJ",dark:"ShareComponentV3_dark__7Bb6L",light:"ShareComponentV3_light___jmws",title:"ShareComponentV3_title__I7r0S",left:"ShareComponentV3_left__mYtfQ",right:"ShareComponentV3_right__MfSDO",mid:"ShareComponentV3_mid__0ohl9",button:"ShareComponentV3_button__vfWmQ",qrCodeModal:"ShareComponentV3_qrCodeModal__LIygr",qrCodeContainer:"ShareComponentV3_qrCodeContainer__T_24g",urlContainer:"ShareComponentV3_urlContainer__KjPB0",urlText:"ShareComponentV3_urlText__AHZoq",urlCopyBtn:"ShareComponentV3_urlCopyBtn__BNCfX"}},28137:(e,t,a)=>{"use strict";a.d(t,{LB:()=>i,S:()=>s,qu:()=>d,uU:()=>r});var l=a(3701),o=a(59034),n=a(57504);function r(e){let t=encodeURIComponent(e),a=`https://web.facebook.com/sharer/sharer.php?u=${t}&src=sdkpreparse`;return{whatsapp:`https://wa.me/?text=${t}`,facebook:a,twitter:`https://twitter.com/intent/tweet?text=${t}`,telegram:`https://t.me/share/url?url=${t}&text=`,messenger:`fb-messenger://share/?link=${t}&app_id=566090842322237`}}function s(e,t){navigator.clipboard.writeText(e.includes("https://vidgap.com")?e:`https://vidgap.com${e}`),t("COPIED")}function i(e,t){let a="";if((0,o.n)(e)){let o="all"==l.eq[t]?"":`/${l.eq[t]}`;a=`https://vidgap.com${o}/download/${e}`}else(0,n.B)(e)&&(a=`https://vidgap.com/profile/download/${e}`);return a}function d(e,t){let a=i(e,t);console.log("generatedShareurl",a),navigator.clipboard.writeText(a)}},31139:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>f});var l=a(95155),o=a(12115),n=a(97991),r=a(73321),s=a(98314),i=a(247),d=a(34519);a(28137);var c=a(39425),h=a(133),u=a(69730),m=a.n(u),p=a(12505),x=a(15079),g=a.n(x),$=a(21338);let f=e=>{let{styles:t,isLoaded:u}=(0,n.Xk)(()=>Promise.all([a.e(2481),a.e(7421)]).then(a.t.bind(a,57421,23)));(0,r.useRouter)();let x=(0,r.usePathname)()||"/",{toastHandlerCtx:f,showSharePromptHandlerCtx:w,isMobileCtx:C,videoDataCtx:k}=o.useContext(i.Ay),{themeCtx:v}=o.useContext(h.A),_="https://vidgap.com";x.match(/\/download\/([\w\n\/]+)/g);let[j,b]=o.useState(null);o.useEffect(()=>{N(e.img).then(e=>{e&&b(e)})},[]);let N=async e=>{try{let t=(await $.A.get(e,{responseType:"blob"})).data;return("image/heic"===t.type||"image/heif"===t.type||e.toLowerCase().includes(".heic"))&&(t=await g()({blob:t,toType:"image/jpeg",quality:1})),URL.createObjectURL(t)}catch(e){return console.error("Error loading thumbnail:",e),null}};if(!u)return null;let y=(0,l.jsxs)("figure",{className:t.figure,children:[(0,l.jsx)(p.eb3,{className:t.shareIcon}),(0,l.jsx)("img",{alt:"video-thumbnail",src:j||e.img,className:t.thumb})]});t.desc,e.desc;let S=[{text:e.leads.video,link:`${_}${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.audio,link:`${_}/audio${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.profile,link:`${_}/profile${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.story,link:`${_}/story${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.thumbnail,link:`${_}/thumbnail${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.slideshow,link:`${_}/slideshow${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.video,link:`${_}${k?`/download/${k.contentId}`:""}/${e.locale}`}],I=[{text:e.leads.slideshow,link:`${_}/slideshow${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.audio,link:`${_}/audio${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.profile,link:`${_}/profile${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.thumbnail,link:`${_}/thumbnail${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.story,link:`${_}/story${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.video,link:`${_}/download${k?`/download/${k.contentId}`:""}/${e.locale}`},{text:e.leads.slideshow,link:`${_}/slideshow${k?`/download/${k.contentId}`:""}/${e.locale}`}];return(()=>{let e=(0,d.getCookie)("sessionCookie"),t=(0,d.getCookie)("ftprints");if(e&&"video"===e&&t){let e=JSON.parse(t),a=[0,1,2,3,4,5,6].find(t=>!e.some(e=>e===t));return void 0!==a?S[a]:S[0]}if(e&&"slideshow"===e&&t){let e=JSON.parse(t),a=[0,1,2,3,4,5,6].find(t=>!e.some(e=>e===t));return void 0!==a?I[a]:I[0]}return S[1]})(),encodeURI("https://vidgap.com"+x),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:m()(t.card,{[t.dark]:"dark"===v,[t.light]:"light"===v}),children:[(0,l.jsx)("button",{type:"button",onClick:()=>{w(!1)},className:t.closeBtn,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22.001",viewBox:"0 0 22 22.001",className:t.closeSVG,children:(0,l.jsx)("path",{id:"close",d:"M7,4a1,1,0,0,0-.707.293l-2,2a1,1,0,0,0,0,1.414L11.586,15,4.293,22.293a1,1,0,0,0,0,1.414l2,2a1,1,0,0,0,1.414,0L15,18.414l7.293,7.293a1,1,0,0,0,1.414,0l2-2a1,1,0,0,0,0-1.414L18.414,15l7.293-7.293a1,1,0,0,0,0-1.414l-2-2a1,1,0,0,0-1.414,0L15,11.586,7.707,4.293A1,1,0,0,0,7,4Z",transform:"translate(-4 -4)"})})}),(0,l.jsx)("div",{className:t.top,children:(0,l.jsxs)("div",{className:t.content,children:[(0,l.jsxs)("div",{className:m()(t.contentTxt,{[t.dark]:"dark"===v,[t.light]:"light"===v}),children:[(0,l.jsx)("p",{className:t.title,children:e.title}),y]}),(0,l.jsx)("div",{className:t.contentShare,children:(0,l.jsx)(c.A,{copyTxt:e.copyTxt,contentVLink:k?.contentId||""})})]})})]}),(0,l.jsx)(s.A,{close:()=>{w(!1)},show:!0,opacity:.5},"share-prompt-backdrop")]})}},39425:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var l=a(95155),o=a(12115),n=a(12979),r=a.n(n),s=a(97307),i=a(73321),d=a(89549),c=a(12505),h=a(48409),u=a(98314),m=a(28137),p=a(247),x=a(69730),g=a.n(x),$=a(57094),f=a(36959),w=a(3701),C=a(133),k=a(68586),v=a(95555),_=a(92843);let j=({contentVLink:e,tabIndexCtx:t,s:a})=>(0,l.jsx)("div",{className:a.qrCodeContainer,children:(0,l.jsx)(d.Ay,{value:e,size:128,
1style:{height:"auto",maxWidth:"100%",width:"100%"},viewBox:"0 0 128 128",fgColor:"#000000",bgColor:"#ffffff"})}),b=({copyTxt:e=w.HK,shareTxt:t=w.i4,contentVLink:a,source:n="share"})=>{(0,i.usePathname)();let d=(0,v.md)(_.B),{toastHandlerCtx:x}=o.useContext(p.Ay),{themeCtx:b}=o.useContext(C.A),[N,y]=o.useState(!0),[S,I]=o.useState(null),[L,V]=o.useState(""),B=o.useRef(null),q=async e=>{if(S)return void I(null);if(B.current){let t=B.current.getBoundingClientRect(),l=e.pageY;console.log({top:l,left:t.x,parentHeight:t.height});let o=await (0,k.G)(a,n);o&&o.shareLink?V(o.shareLink):V(a),I({top:l+t.height,left:t.left,parentHeight:t.height,parentWidth:t.width})}},A=async()=>{try{let e=await (0,k.G)(a,n),t=e?.shareLink||(0,m.LB)(a,0);if(navigator.share)try{await navigator.share({title:document.title,url:t})}catch(e){console.log("Error sharing:",e)}else(0,m.S)(t,x)}catch(t){console.error("Error generating vgshare:",t);let e=(0,m.LB)(a,0);if(navigator.share)try{await navigator.share({title:document.title,url:e})}catch(e){console.log("Error sharing:",e)}else(0,m.S)(e,x)}},E=async()=>{console.log("copy contentVLink",a);try{let e=await (0,k.G)(a,n);e&&e.shareLink?navigator.clipboard.writeText(e.shareLink):(0,m.qu)(a,d),x("COPIED")}catch(e){console.error("Error generating vgshare:",e),(0,m.qu)(a,d),x("COPIED")}};return(0,l.jsxs)("div",{className:g()(r().shareContainerV3,{[r().dark]:"dark"===b,[r().light]:"light"===b}),children:[(0,l.jsxs)("div",{className:r().left,children:[S&&L&&(0,l.jsx)(h.default,{portalElementId:"modal-portal",children:(0,l.jsxs)("div",{style:{top:S.top,left
1:S.left,width:1.5*S.parentWidth},className:g()(r().qrCodeModal,{[r().dark]:"dark"===b,[r().light]:"light"===b}),onClick:E,children:[(0,l.jsx)(j,{contentVLink:L,tabIndexCtx:d,s:r()}),(0,l.jsxs)("div",{className:r().urlContainer,children:[(0,l.jsx)("span",{className:r().urlText,children:L}),(0,l.jsx)("div",{className:r().urlCopyBtn,children:(0,l.jsx)(f.r6e,{className:r().urlCopyIcon})})]})]})}),S&&(0,l.jsx)(u.A,{show:!0,close:()=>I(null),opacity:1e-4}),(0,l.jsxs)("button",{className:r().button,onClick:q,ref:B,children:[(0,l.jsx)(s.aGf,{className:r().icon}),(0,l.jsx)("span",{className:r().text,children:"QR Code"})]})]}),(0,l.jsx)("div",{className:r().mid,children:(0,l.jsxs)("button",{className:r().button,onClick:E,children:[(0,l.jsx)($.ukW,{className:r().icon}),(0,l.jsx)("span",{className:r().text,children:e})]})}),(0,l.jsx)("div",{className:r().right,children:(0,l.jsxs)("button",{className:r().button,onClick:A,children:[(0,l.jsx)(c.Zzu,{className:r().icon}),(0,l.jsx)("span",{className:r().text,children:t})]})})]})}},68586:(e,t,a)=>{"use strict";a.d(t,{G:()=>o});var l=a(9339);let o=(0,l.createServerReference)("60b80c5aaf31749a855a742375ba9c64ddb9ca5e76",l.callServer,void 0,l.findSourceMapURL,"generateVgShareAction")}}]);

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.