1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2536],{55259:o=>{o.exports={screen:"DownloadButton_screen___q44R",btn_ctn:"DownloadButton_btn_ctn__2dRdw",ondownload:"DownloadButton_ondownload__NhuYD",ctrl_ctn:"DownloadButton_ctrl_ctn__HonAs",btn_cancel:"DownloadButton_btn_cancel__1izY1",button_ctn_v3:"DownloadButton_button_ctn_v3__L2vP9",button_v3:"DownloadButton_button_v3__8XP1O",button_main:"DownloadButton_button_main__nwyZu",text:"DownloadButton_text__vg1iN",divider:"DownloadButton_divider__LmFLF",button_ctrl:"DownloadButton_button_ctrl__yeQya",button_dropdown:"DownloadButton_button_dropdown__vR_Wc",button:"DownloadButton_button__UDuMt",button_separator:"DownloadButton_button_separator__WO2It",dark:"DownloadButton_dark__e0zwf",icon_ctn:"DownloadButton_icon_ctn__g_xTp",no_bg:"DownloadButton_no_bg__ZeMTd",btn_1:"DownloadButton_btn_1__mZT_S",split_btn_main:"DownloadButton_split_btn_main__CBuAd",split_btn_opt:"DownloadButton_split_btn_opt__qqtFp",opt_window:"DownloadButton_opt_window__UuvJQ",window_1:"DownloadButton_window_1__d_TO2",btn_2:"DownloadButton_btn_2__v_nig",window_2:"DownloadButton_window_2__Es1tY",btn_3:"DownloadButton_btn_3__a_h0S",window_3:"DownloadButton_window_3__dFGnJ",split_btn_ctn:"DownloadButton_split_btn_ctn__tmzL4",opt_ls:"DownloadButton_opt_ls__r45Uw",opt_item:"DownloadButton_opt_item__24ZUs",btn_downloaded:"DownloadButton_btn_downloaded__1f51k"}},85942:(o,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>f});var d=t(95155),e=t(12115),a=t(67564),l=t(247),i=t(34519),_=t(29988),w=t(74473),u=t(3701),r=t(77864),s=t(17585),c=t(36959),p=t(73321),m=t(95555),b=t(86585),D=t(65149),g=t(14185);let v=o=>{let n=(0,p.usePathname)()||"/",t=(0,m.md)(b.S),{addDownloadIdHandlerCtx:v,downloadStatusHandlerCtx:f,downloadIdQueueCtx:h,toastHandlerCtx:B,showSharePromptHandlerCtx:S,isOnRetryHDCtx:x,isOnRetryHDHandlerCtx:k}=e.useContext(l.Ay),T=(0,m.md)(g.Ec),z=o.inputUrl.includes("lemon8-app.com"),y=[`vidgap-com-${o.username}-${o.contentId}-(non-wm).mp4`,`vidgap-com-${o.username}-${o.contentId}-(wm).mp4`,`vidgap-com-${o.username}-${o.contentId}-(non-wm-hd).mp4`],I=(n,t)=>{if(!o.previewerDicts)return u.Kz.find(o=>o.type===n&&o.tag===t);{let d=o.previewerDicts.find(o=>o.type===n&&o.tag===t);return d||u.Kz.find(o=>o.type===n&&o.tag===t)}},L=I("video","video-no-watermark"),A=I("video","video-watermark"),C=I("video","video-no-watermark-hd"),F=[o.contentKey+"-non_wm",o.contentKey+"-wm"],K=o.contentKey+"-non_wm",U=o.contentKey+"-wm",P=o.contentKey+"-hd",N=e.useCallback(n=>{h[0]?h.includes(n)||n.includes("-hd")||(console.log("show download suspended toast id: ",n),B("DOWNLOAD-SUSPENDED")):(console.log("preview video id: ",n),console.log("preview video hdInfSize: ",o.hdInfSize),n.includes("-hd")&&!o.hdInfSize&&(console.log("trigger hd amplification from preview video"),k(!1)),v(n),f("DOWNLOADING"),(0,_.qx)(()=>S(!0)))},[h]),O=[o.downloadURLS[0],o.downloadURLS[1],(0,s.K)(o.contentId,{token:(0,i.getCookie)("download_token"),watermark:!1,hd:!0})],R=(o,n,t)=>(0,D.IO)(t,T,o)?n+"-hd-procedure":n,E=R(o.infSize,K,O[0]),W=R(o.infSize,U,O[1]),$=[{_id:E,icon:a.DTA,downloadClickHandler:()=>N(E),filename:y[0],downloadedIcon:w.KGC,url:O[0],texts:{...L,download:L.download,sub_download:L.sub_download,downloading:L.downloading,downloaded:L.downloaded,downloadFailed:L.downloadFailed},withSpeed:!0,tag:L.tag,sizeMB:o.infSize,featureLabel:"video-no-watermark"},...z?[]:[{_id:W,icon:a.DTA,downloadClickHandler:()=>N(W),filename:y[1],downloadedIcon:w.KGC,url:O[1],texts:{...A,download:A.download,sub_download:A.sub_download,downloading:A.downloading,downloaded:A.downloaded,downloadFailed:A.downloadFailed,waiting:A.waiting||u.Sy},withSpeed:!0,tag:A.tag,sizeMB:o.infSize,featureLabel:"video-watermark"}]],G=[{_id:P,icon:c.s5Q,downloadClickHandler:()=>N(P),filename:y[2],downloadedIcon:w.KGC,url:O[2]||"",texts:{...C,download:C.download,sub_download:C.sub_download,downloading:C.downloading,downloaded:C.downloaded,downloadFailed:C.downloadFailed},withSpeed:!0,tag:C.tag,sizeMB:o.hdInfSize||0,align:"center",contentId:o.contentId,featureLabel:"video-no-watermark-hd"}];return e.useEffect(()=>{(n.includes("/download-hd")||n.includes("/dl-hd"))&&!x&&N(P)},[n]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(r.A,{contentKeys:F,downloadAgain:o.downloadAgain,downloadText:o.downloadText,downloadURLS:o.downloadURLS,downloadedText:o.downloadedText,downloadfailedText:o.downloadfailedText,downloadingText:o.downloadingText,duration:o.duration,timePosted:o.timePosted,findStatus:o.findStatus,infSize:o.infSize,postDownload:o.postDownload,profilePic:o.profilePic,thumbnail:o.thumbnail,title:o.title,username:o.username,views:o.views,withOption:!0,withSize:!0,filenames:y,wmSize:o.wmSize,optionTxt:["Without watermark","With watermark"],inputUrl:o.inputUrl,dataType:"video",opts_1:$,opts_2:G,shareTxt:L.share,copyTxt:L.copy,toastLang:o.toastLang,contentId:o.contentId,friendlyTimeTexts:o.friendlyTimeTexts,handleAgain:o.downloadAgain,handleRedownload:()=>{o.handleFindVideo(t)}
1,globalPreviewer:o.globalPreviewer,handleAmplificationDownload:o.handleAmplificationDownload},"video-preview-v2")})};v.displayName="PreviewVideo";let f=v}}]);
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.