PageSourceSearch

https://videotoblog.ai/_next/static/chunks/1972-ba42992b73698985.js

js videotoblog.ai collected 2026-09-24 20:12:32 UTC 12,053 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1972],{17539:function(t,e,n){n.d(e,{Cq:function(){return d},FK:function(){return o},NY:function(){return s},dK:function(){return c},eQ:function(){return f}});var r=n(76258);let i="/blog",o="https://videotoblog.ai".concat(i),l="preview",u=t=>(t||"").split(":")[0].toLowerCase(),a=t=>{let e=u(t).split(".");return e.length>=4&&e[e.length-3]===l&&"videotoblog"===e[e.length-2]&&"ai"===e[e.length-1]?e.slice(0,-3).join(".")||null:e.length>=3&&e[e.length-2]===l&&e[e.length-1].includes("localhost")&&e.slice(0,-2).join(".")||null},c=t=>!!a(t),d=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e&&(null==t?void 0:t.id)===r.AS},s=t=>t===i||(null==t?void 0:t.startsWith("".concat(i,"/"))),f=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(i).concat(t)}},1972:function(t,e,n){n.d(e,{$M:function(){return M},Cf:function(){return Y},Cg:function(){return S},Cw:function(){return q},Gz:function(){return Q},H:function(){return _},Jh:function(){return O},Jj:function(){return g},L1:function(){return h},Mi:function(){return G},Nn:function(){return w},Ny:function(){return j},Oe:function(){return p},Pf:function(){return y},Qm:function(){return R},S3:function(){return F},SZ:function(){return E},VL:function(){return B},_y:function(){return z},aF:function(){return J},b5:function(){return H},bg:function(){return I},dD:function(){return A},f5:function(){return v},gC:function(){return x},gO:function(){return P},ht:function(){return N},j0:function(){return $},lq:function(){return W},mn:function(){return b},nM:function(){return L},o_:function(){return C},ov:function(){return K},pK:function(){return D},q9:function(){return tt},qD:function(){return U},ql:function(){return Z},qz:function(){return T},rR:function(){return X},un:function(){return k},xW:function(){return te},zD:function(){return tn},ze:function(){return V}});var r=n(14859),i=n(18745),o=n(46716),l=n(39828),u=n(30381),a=n.n(u),c=n(9351),d=n(76258),s=n(17539),f=n(31114),m=n(21793);let v=async(t,e,n)=>{let r=Math.max(Math.floor(Math.min(n,t.length)),1),i=[],o=0;return await Promise.all(Array.from({length:r}).map(async(n,r)=>{for(;o<t.length;){let n=o;o++,i[n]=await e(t[n],n,r)}})),i},h=!1,g=!1,p=!1,b=!1;a()("2/12/2025","M/D/YYYY").toDate();let w=!1,y=!0;a()().isBefore(a()("12/2/2025","M/D/YYYY"));let _=a()().isBefore(a()("12/2/2025","M/D/YYYY")),I=h,U=h,Y=h,D=h,M=!0,x=h,A=()=>(0,r.Z)((0,i.Z)().breakpoints.down("md")),P=t=>{var e;return null!==(e=(0,o.zD)(t)("h1").text())&&void 0!==e?e:""},S=()=>"<div ".concat("data-vtb-membership-paywall",'="true" class="publication-membership-preview-divider" contenteditable="false"><span class="publication-membership-preview-divider__label">Member-only content below this line <span class="publication-membership-preview-divider__arrow">↓</span></span></div>'),k=t=>{var e,n;return t.title?t.title:P(null!==(n=null!==(e=null==t?void 0:t.html)&&void 0!==e?e:null==t?void 0:t.publishedHtml)&&void 0!==n?n:"")},C=t=>t.html?(0,o.zD)(t.html).text().slice(0,137).trim()+"...":"",B=t=>{if(!t)return[];let e=(0,o.zD)(t);return e("img").map(function(){return e(this).attr("src")}).toArray().filter(Boolean)},z=function(t){var e;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.featuredImageUrl&&"undefined"!==t.featuredImageUrl)return t.featuredImageUrl;if(n&&!t.publishedHtml||!n&&!t.html)return"";let r=B(null!==(e=n?t.publishedHtml:null==t?void 0:t.html)&&void 0!==e?e:"").filter(t=>"undefined"!=t);return t.featuredImageUrl&&"undefined"!==t.featuredImageUrl&&r.includes(t.featuredImageUrl)?t.featuredImageUrl:null==r?void 0:r[0]},O=t=>/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,8}$/i.test(t),L=t=>{var e,n,r,i,o,l;let u="";try{let n=(0,c.Ei)(null!==(e=null==t?void 0:t.videoUrl)&&void 0!==e?e:"");if(!n)throw Error("No YouTube video ID found");u="https://img.youtube.com/vi/".concat(n,"/0.jpg")}catch(t){}let a=null!==(i=null!==(r=null==t?void 0:t.displayTitle)&&void 0!==r?r:P(null!==(n=null==t?void 0:t.html)&&void 0!==n?n:""))&&void 0!==i?i:"Video To Blog",d=null!==(l=null!==(o=null==t?void 0:t.featuredImageUrl)&&void 0!==o?o:z(t))&&void 0!==l?l:u;return{title:a,description:t.description,openGraph:{images:d?[{url:d}]:[]},twitter:{handle:"@Video_To_Blog",site:"@Video_To_Blog",cardType:"summary_large_image"}}},T=t=>{try{return Array.from(new Intl.Segmenter(N(),{granularity:"word"}).segment(t)).filter(t=>t.isWordLike).map(t=>t.segment)}catch(e){return t.split(" ")}},Z=t=>{try{return Array.from(new Intl.Segmenter(N(),{granularity:"grapheme"}).segment(t)).map(t=>t.segment).filter(t=>!!t.trim())}catch(e){return t.replaceAll(" ","")}},E=t=>{try{return Array.from(new Intl.Segmenter(N(),{granularity:"sentence"}).segment(t),t=>t.segment)}catch(e){return t.match(/[^\.!\?]+[\.!\?]+/g)}},N=()=>{let t="";try{t=navigator.language}catch(e){t="en"}return t},$=t=>{try{let e=new Date(1e3*t).toISOString().slice(12,19);if("0:"===e.slice(0,2))return e.slice(2);return e}catch(t){return""}},j=t=>t<1024?"".concat(t," bytes"):"".concat((t/1024).toFixed(2)," kB"),W=t=>{try{if(0==t)return"0s";
1let e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=Math.floor(t%3600%60);return(e>0?e+"h ":"")+(n>0?n+"m ":"")+(r>0?r+"s":"")}catch(e){return console.error("error converting str",{sec_num:t,e}),"err"}},q=t=>{var e;return{isPublished:!1,publishedHtml:null,publishedPublicationId:null,publishedDate:null,publicationPostStatus:null!==(e=(0,c.OG)({...t,isPublished:!1,publishedPublicationId:null}))&&void 0!==e?e:void 0}},H=t=>{let e={};return t?(Object.keys(t).forEach((n,r)=>{var i;let o=(null===(i=t[n])||void 0===i?void 0:i._seconds)?l.Timestamp.fromMillis(1e3*t[n]._seconds):t[n];e[n]=o}),e):t},R=t=>{t=null==t?void 0:t.trim();try{var e,n;if(!t)return"";if(t.split(" ").length<2)return t[0].toUpperCase();return"".concat(null==t?void 0:null===(e=t.split(" ")[0][0])||void 0===e?void 0:e.toUpperCase()).concat(null==t?void 0:null===(n=t.split(" ")[1][0])||void 0===n?void 0:n.toUpperCase())}catch(t){return""}},V=t=>t.toLowerCase().trim().replaceAll(" ","-").replace(/[\W_]+/g,"-"),G=t=>{let e=(0,f.QT)(t)===f.ew?(0,f.am)(f.ew):"videoToBlog.io";return"".concat(t.subdomain,"@").concat(e)},Q=t=>{var e;if(!t)return;let n=[];for(let r=0;r<(null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0);r++)if(n.push(null==t?void 0:t[r]),r+1<(null==t?void 0:t.length)){let e=a()(t[r+1].dimensions[0]).diff(a()(t[r].dimensions[0]),"days");for(let i=0;i<e-1;i++)n.push({dimensions:[a()(t[r].dimensions[0]).add(i+1,"days").format("YYYY-MM-DD")],metrics:[0]})}return n},F=t=>{let{title:e,link:n,publication:r,buttonBackgroundColor:i}=t,o=null!=i?i:(0,m.eV)(r).colors.accentColor,l=J(o);return'\n    <div class="mceNonEditable vtb-button" >\n  <table  style="border-width: 0px; width: 100%">\n  <tbody>\n\n    \n     <tr>\n       <td width=\'100%\' style="border-width: 0px; text-align: start; justify-content: center; align-items: center;">\n         <a '.concat(n?'href="'.concat(n,'"'):"",' target="_blank" style="display: inline-block; padding: 12px 24px; text-decoration: none; border-radius: 8px; background-color: ').concat(o,"; color: ").concat(l,'; font-size: 16px; line-height: 1.2; font-weight: 600; font-family: inherit;">\n         ').concat(e,"\n      </a>\n    </td>\n    </tr>\n   \n   \n    \n  </tbody>\n  </table>\n  </div>\n  ").trim()},J=t=>{let e=t.replace("#",""),n=+"0x".concat(e.slice(0,2));return .299*n+.587*+"0x".concat(e.slice(2,4))+.114*+"0x".concat(e.slice(4,6))>186?"#15171A":"#ffffff"},K=(t,e,n)=>{var r,i,o,l,u,a,c,d;let s=[null==t?void 0:t.wordpressOrg,...null!==(l=null==t?void 0:t.wordpressOrgs)&&void 0!==l?l:[]].filter(Boolean),f=[null==t?void 0:t.wordpress,...null!==(u=null==t?void 0:t.wordpresses)&&void 0!==u?u:[]].filter(Boolean),m=[null==t?void 0:t.medium,...null!==(a=null==t?void 0:t.mediums)&&void 0!==a?a:[]].filter(Boolean),v=[null==t?void 0:t.ghostOrg,...null!==(c=null==t?void 0:t.ghostOrgs)&&void 0!==c?c:[]].filter(Boolean),h=s.length+f.length+m.length+v.length;return(t.blogger&&(h+=1),(null===(r=t.wixSites)||void 0===r?void 0:r.length)&&(h+=1),(null===(i=t.shopifySites)||void 0===i?void 0:i.length)&&(h+=1),h+=null!==(d=null===(o=t.webflows)||void 0===o?void 0:o.length)&&void 0!==d?d:0,n&&(null==e?void 0:e.website_integrations.hasAccess))?(null==e?void 0:e.website_integrations.isUnlimited)||!(h>=e.website_integrations.limit)?{status:!0}:{status:!1,title:"Upgrade needed",subtitle:"You have reached your max amount of website integrations. Please upgrade to create another website integration."}:{status:!1,title:"Upgrade needed",subtitle:n?"You are currently on an older unlimited plan. Please upgrade to a newer plan to connect a website.":"Please upgrade to connect a website."}},X=t=>t<60?"".concat(t," minutes"):t%60==0?"".concat(t/60," hours"):"".concat(Math.round(10*t/60)/10," hours"),tt=(t,e)=>t.id===d.AS?(0,s.eQ)(e):e,te=t=>{if(!t)return"";let e=t.toLowerCase().trim();return(e=(e=e.replace(/\/+$/,"")).replace(/^https?:\/\//,"")).replace(/^www\./,"")};function tn(t){return new Promise((e,n)=>{let r=new Image;r.crossOrigin="anonymous",r.onload=()=>{e({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=n,r.src=t})}},9351:function(t,e,n){n.d(e,{AY:function(){return d},Ei:function(){return l},OG:function(){return i},Sb:function(){return o},lD:function(){return a},ng:function(){return c}});var r=n(88632);let i=t=>{var e,n;return t&&(t.publishedPublicationId||t.createdForPublicationId||t.emailSentPublicationId)?t.publishedPublicationId&&!0===t.isPublished?(null===(n=t.mailgunMessageIds)||void 0===n?void 0:n.length)||t.emailSentDate?"published_and_sent":"published":(null===(e=t.mailgunMessageIds)||void 0===e?void 0:e.length)||t.emailSentDate?"email_only":"draft":null},o=t=>{var e;return!!(null==t?void 0:null===(e=t.youtubeChannels)||void 0===e?void 0:e.some(t=>{var e,n;return!!(null==t?void 0:null===(e=t.channelId)||void 0===e?void 0:e.trim())||!!(null==t?void 0:null===(n=t.channelUrl)||void 0===n?void 0:n.trim())}))},l=t=>{if(!(null==t?void 0:t.trim()))return null;try{var e,n,r;let i=new URL(t.trim()),o=i.hostname.toLowerCase();if(!new Set(["youtube.com","www.youtube.com","m.youtube.com","music.youtube.com","gaming.youtube.com","www.youtube-nocookie.com","youtube-nocookie.com","youtu.be"]).has(o))return null;
1let l=i.pathname.split("/").filter(Boolean),u=null!==(r=null!==(e=i.searchParams.get("v"))&&void 0!==e?e:"youtu.be"===o?l[0]:void 0)&&void 0!==r?r:["embed","v","shorts","live"].includes(null!==(n=l[0])&&void 0!==n?n:"")?l[1]:void 0;return u&&/^[a-zA-Z0-9_-]{11}$/.test(u)?u:null}catch(t){return null}},u=t=>{let e=new URL(/^[a-zA-Z][a-zA-Z\d+.-]*:/i.test(t.trim())?t.trim():"https://".concat(t.trim())),n=e.hostname.replace(/^www\./,""),r=e.pathname.replace(/\/$/,"")||"/";if(!("vimeo.com"===n?/^\/\d+$/.test(r)||/^\/groups\/[^/]+\/videos\/\d+$/.test(r):"player.vimeo.com"===n&&/^\/video\/\d+$/.test(r)))throw Error("Not a valid Vimeo URL");let i=r.split("/").filter(Boolean);return i[i.length-1]},a=t=>{let e=l(t);if(e)return{provider:"youtube",id:e,key:"youtube:".concat(e),embedUrl:"https://www.youtube.com/embed/".concat(e),watchUrl:"https://www.youtube.com/watch?v=".concat(e),aspectRatio:(null==t?void 0:t.includes("/shorts/"))?"9 / 16":"16 / 9"};try{if(!t)return null;let e=u(t);return{provider:"vimeo",id:e,key:"vimeo:".concat(e),embedUrl:"https://player.vimeo.com/video/".concat(e),watchUrl:"https://vimeo.com/".concat(e),aspectRatio:"16 / 9"}}catch(t){return null}},c=t=>{var e,n;return null!==(n=null===(e=a(t))||void 0===e?void 0:e.key)&&void 0!==n?n:null},d=(t,e)=>t?"".concat((0,r.WZ)(t),"/").concat(e):""},88632:function(t,e,n){n.d(e,{WZ:function(){return l},Mz:function(){return o}});var r=n(31114);let i="ugJ0fOrTG3nNE2dXLlmw",o=t=>{if(!t)return"";if(t.id===i)return"https://videotoblog.ai";if(t.customDomain)return"https://".concat(t.customDomain);let e=(0,r.am)((0,r.QT)(t));return"https://".concat(t.subdomain,".").concat(e)},l=t=>{let e=o(t);return e?t.id===i?"".concat(e).concat("/blog"):e:""}}}]);

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.