Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o=Object.keys(Object(n)),a=0,b=o.length;a<b;a++){var c=o[a],i=Object.getOwnPropertyDescriptor(n,c);void 0!==i&&i.enumerable&&(r[c]=n[c])}}return r}});(()=>{function t(){this.$body=$("body"),this.target=".pure-menu",this.$scrollElement=$(window),this.activeTarget=null,this.scrollHeight=0,this.targetOffset=10,this.offsets=[],this.targets=[],this.$scrollElement.on("scroll",$.proxy(this.scrollHandler,this))}t.prototype.refresh=function(){var i=this,t=window.location.pathname,e=window.location.hash;this.$body.find(this.target+' a[href*="'+t+'"], '+this.target+' a[href^="#"]').each(function(t,e){var e=$(e).attr("href"),s=e.split("#").pop(),s=$('[id="'+s+'"]');e&&s.length&&(i.offsets.push(s.offset().top),i.targets.push(e))}),this.highlight(t+e)},t.prototype.scrollHandler=function(){var t=window.location.pathname,e=this.$scrollElement.scrollTop()+this.targetOffset,s=this.getScrollingHeight(),s=this.targetOffset+s-this.$scrollElement.height(),i=this.offsets,h=this.targets,o=this.activeTarget;if(s<=e)return(s=h[h.length-1])&&s!==o&&this.highlight(s);if(o&&e<=i[0])return this.highlight(t);for(var r=i.length;r--;)o!==h[r]&&e>=i[r]&&(!i[r+1]||e<=i[r+1])&&this.highlight(h[r])},t.prototype.highlight=function(t){this.activeTarget=t,$(this.target).find("li").removeClass("active").closest(".docs-nav-section").removeClass("active"),$(this.target+' a[href="'+t+'"]').parent().addClass("active").closest(".docs-nav-section").addClass("active"),$(this.target+' a[href="'+t+'"]').closest(".docs-nav-subsection").addClass("active")},t.prototype.getScrollingHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},(new t).refresh()})();(a=>{a.fn.serializeJSON=function(){var e={},i=this.serializeArray();return a.each(i,function(){e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e}})(jQuery);var YDN=YDN||{};YDN.whitelist={},YDN.config={},(()=>{var t,a,e,i,o,r,n,s,d;function l(e){e.preventDefault();e="<p id='content'><b>First Name: </b>"+$(e.target).closest("tr").data("first-name")+"<br><br><b>Last Name: </b>"+$(e.target).closest("tr").data("last-name")+"<br><br><b>Corporate Email: </b>"+$(e.target).closest("tr").data("corp-email")+"<br><br><b>Yahoo Email: </b>"+$(e.target).closest("tr").data("yahoo-email")+"<br><br><b>Phone Number: </b>"+$(e.target).closest("tr").data("phone-number")+"<br><br><b>Company Name: </b>"+$(e.target).closest("tr").data("company-name")+"<br><br><b> 1.  What is the name of your company?  What domains do your services operate from? </b><br><br>"+$(e.target).closest("tr").data("q1")+"<br><br><b> 2. Please describe the service would you like to offer to Yahoo’s users, why your offering is the best fit for our needs, and what specific technologies you employ to provide it. </b><br><br>"+$(e.target).closest("tr").data("q2")+"<br><br><b> 3.  What Yahoo properties and regions will be involved? </b><br><br>"+$(e.target).closest("tr").data("q3")+"<br><br><b> 4.  Do you have an existing contractual relationship with Yahoo?  If yes, what kind? </b><br><br>"+$(e.target).closest("tr").data("q4")+"<br><br><b> 5.  What will the final user experience look like?  Please provide a link to a non-Yahoo site that demonstrates your service (even if the implementation is transparent to the user e.g. a tag or on page JS code) in a similarly expected implementation. </b><br><br>"+$(e.target).closest("tr").data("q5")+"<br><br><b> 6.  What data does your technology collect passively?  Do you expect Yahoo users (or Yahoo on their behalf) to share data with your service?  If yes, what data elements are you expecting to be passed?  Why are these elements needed?  What restrictions and retention periods do place on the information passed to your service? </b><br><br>"+$(e.target).closest("tr").data("q6")+"<br><br><b> 7.  Will the data you collect from users, either passive or declared, be shared with other 3rd parties?  Will your implementation include technologies for companies other than your own?  If yes to either question, why is the data shared? </b><br><br>"+$(e.target).closest("tr").data("q7")+"<br><br><b> 8.  Do you expect to have independent rights to the data collected from your service implemented on Yahoo?  Or will data collected be maintained only on Yahoo’s behalf?  What information will be used for your own purposes outside of the Yahoo relationship?  Why is this necessary? </b><br><br>"+$(e.target).closest("tr").data("q8")+"<br><br><b> 8(A).  For those prospective partners that will be collecting data from Yahoo users with limited independent rights, will this data be blended with any other data you hold?  If yes, how will this blended data be used by your organization? </b><br><br>"+$(e.target).closest("tr").data("q8a")+"<br><br><b> 9.  How is your product or service technically delivered to users?  Can your technology be safely executed from an iFrame?   If no, Yahoo will need to host all JS elements within our own CDN - is this acceptable?  What cookies are set and in what domains?  Do you set any cookies within the Yahoo.com domain? </b><br><br>"+$(e.target).closest("tr").data("q9")+"<br><br><b> 10.  Do you support Mobile environments with your technology?  Please explain the different approaches you may take by mobile OS, mobile app, and mobile web?  Please provide details on the design of any SDKs or Libs, platform APIs, Device ID used, how these are stored, user choice with respect to IDs, format and frequency of data transmission, and typical impact to the user’s computing environment (CPU, memory, and payload size consumption), threading, cookie management, and authentication (if any). </b><br><br>"+$(e.target).closest("tr").data("q10")+"</p>";n.css("display","block"),d.append(e)}function c(e){console.log("clicked on span"),n.css("display","none"),$("#content").remove()}function p(e){var e=$(e.target),t=e.parent();t.hasClass("error")&&(t.removeClass("error"),e.siblings(".error-message").text(""))}function b(e){e.preventDefault(),$.ajax({url:"/admin/whitelist/",type:"POST",data:t.serialize()}).done(f).fail(g)}function h(e){e.preventDefault();var t=$(e.target).data("yid"),a=$(e.target).data("scope"),i=$(e.target).data("corp-email"),o=$(e.target).data("yahoo-email"),r=$(e.target).data("first-name"),e=$(e.target).data("last-name");$.ajax({url:"/admin/whitelist-pending",type:"POST",data:{yid:t,scope:a,corp_email:i,yahoo_email:o,first_name:r,last_name:e,type:"approve"}}).done(u)}function f(){location.reload()}function u(){location.reload()}function g(e){var t=$("#yid","#whitelist");a.find(".help-info").text(""),a.removeClass("error"),t.focus(),t.closest(".form-group").addClass("error"),t.closest(".form-group").find(".help-info").text(e.responseText)}function m(e){e.preventDefault();var t=$(e.target).data("yid"),e=$(e.target).data("scope");$.ajax({url:"/admin/whitelist/delete/"+t,type:"POST",data:{scope:e}}).done(v)}function y(e){e.preventDefault();var t=$(e.target).data("yid"),a=$(e.target).data("scope"),i=$(e.target).data("corp-email"),o=$(e.target).data("yahoo-email"),r=$(e.target).data("first-name"),e=$(e.target).data("last-name");$.ajax({url:"/admin/whitelist/reject/"+t,type:"POST",data:{yid:t,scope:a,corp_email:i,yahoo_email:o,first_name:r,last_name:e,type:"reject"}}).done(x)}function v(){location.reload()}function x(){location.reload()}YDN.whitelist={init:function(){t=$("form","#whitelist"),a=t.find(".form-group"),e=$(".whitelist-delete","#whitelist"),i=$(".whitelist-approve","#whitelist"),o=$(".whitelist-reject","#whitelist"),r=$(".view","#whitelist"),n=$("#myModal"),s=$(".close"),d=$(".modal-content"),r.click(l),s.click(c),i.click(h),o.click(y),e.click(m),t.submit(b),t.find("input").keyup(p)},addUserHandler:b,addUserSuccessHandler:f,addUserErrorHandler:g,approveUserHandler:h,approveUserSuccessHandler:u,rejectUserHandler:y,rejectUserSuccessHandler:x,deleteUserHandler:m,deleteUserSuccessHandler:v}})(),(()=>{var e,t,a,i,o,r,n,s,d,l;function c(e){e.preventDefault(),$.ajax({url:"/admin/db/podcasts/refresh/",type:"POST"}).done(x)}function p(e){e.preventDefault();var e=$(e.target).data("id"),t=$("#podcast-"+e),a=t.find(".podcast-id").text(),i=t.find(".podcast-title").text(),o=t.find(".podcast-description").text(),r=t.find(".podcast-link").text(),n=t.find(".podcast-pubDate").text(),s=t.find(".podcast-duration").text(),t=t.find(".podcast-transcript").text(),e=JSON.stringify({id:e,podcast_id:a,title:i,description:o,link:r,pubDate:n,duration:s,transcript:t});$.ajax({url:"/admin/db/podcasts/update/"+a,type:"POST",data:e,headers:{"Content-Type":"application/json","Content-Length":e.length}}).done(x)}function b(e){e.preventDefault();e=$(e.target).data("id"),e=$("#podcast-"+e).find(".podcast-id").text();$.ajax({url:"/admin/db/podcasts/delete/"+e,type:"POST"}).done(x)}function h(e){e.preventDefault();var e=$("textarea#event_ICS").val(),a=[],u=[],e=((e=e.split("BEGIN:VEVENT")).shift(),e.forEach(function(e,t){a.push(e.split("\n"))}),a.forEach(function(e,t){for(var a,i,o,r,n,s,d,l,c="",p=0;p<e.length;p++){var b=e[p];if(!b.startsWith(" ")){if(b.startsWith("END:VEVENT"))break;if(b.startsWith("DTSTART"))a=b.substring(b.indexOf(":")+1).trim();else if(b.startsWith("DTEND"))i=b.substring(b.indexOf(":")+1).trim();else if(b.startsWith("LOCATION")){for(r=r?r+" && ":"",r+=b.substring(b.indexOf(":")+1);p+1<e.length&&e[p+1].startsWith(" ");)r+=e[p+=1].substring(1);r=r.replace(/\\,/g,",")}else if(b.startsWith("SUMMARY")){for(o=b.substring(b.indexOf(":")+1);p+1<e.length&&e[p+1].startsWith(" ");)o+=e[p+=1].substring(1);o=o.trim()}else if(b.startsWith("DESCRIPTION")){for(var h=b.substring(b.indexOf(":")+1);p+1<e.length&&e[p+1].startsWith(" ");)h+=e[p+=1].substring(1);var f=/(\\n)|(<br\s*\/?>)/g;(h=h.split(f)).forEach(function(e,t){e&&!e.match(f)&&((e=e.replace(/\\,/g,",").replace(/\\;/g,";").replace("&nbsp;","")).toUpperCase().startsWith("HOST:")?n=e.substring(e.indexOf(":")+1).trim():e.toUpperCase().startsWith("SLIDES")?d=e.substring(e.indexOf(":")+1).replace(/<a.*>(.*)<\/a>/,"$1").trim():e.toUpperCase().startsWith("VIDEO")?s=e.substring(e.indexOf(":")+1).replace(/<a.*>(.*)<\/a>/,"$1").trim():e.toUpperCase().startsWith("EVENT:")?l=e.substring(e.indexOf(":")+1).replace(/<a.*>(.*)<\/a>/,"$1").trim():e.toUpperCase().startsWith("LOCATION:")?r=r?e.substring(e.indexOf(":")+1).replace(/\\,/g,",")+" && "+r:e.substring(e.indexOf(":")+1):c+=e+"\n")})}}}u.push({title:o,startDate:a,endDate:i,location:r.trim(),host:n,eventLink:l,videoLink:s,slideLink:d,description:c.trim()})}),JSON.stringify(u));$.ajax({url:"/admin/db/events/refresh/",type:"POST",data:e,headers:{"Content-Type":"application/json","Content-Length":e.length}}).done(x)}function f(e){e.preventDefault();var e=$(e.target).data("id"),t=$("#event-"+e),a=t.find(".startDate").text(),i=t.find(".endDate").text(),o=t.find(".location").text(),r=t.find(".host").text(),n=t.find(".title").text(),s=t.find(".description").text(),d=t.find(".eventLink").text(),l=t.find(".videoLink").text(),c=t.find(".slideLink").text(),t=t.find(".isFeatured #featured")[0].checked?1:0,a=JSON.stringify({startDate:a,endDate:i,location:o,host:r,title:n,description:s,eventLink:d,videoLink:l,slideLink:c,isFeatured:t});$.ajax({url:"/admin/db/events/update/"+e,type:"POST",data:a,headers:{"Content-Type":"application/json","Content-Length":a.length}}).done(x)}function u(e){e.preventDefault();e=$(e.target).data("id");$.ajax({url:"/admin/db/events/delete/"+e,type:"POST"}).done(x)}function g(e){e.preventDefault(),$.ajax({url:"/admin/db/blogs/refresh/",type:"POST"}).done(x)}function m(e){e.preventDefault();e=$("#blog-add-new"),e=JSON.stringify({blog_id:e.find(".blog-id").text(),title:e.find(".blog-title").text(),body:e.find(".blog-body").text(),pubDate:e.find(".blog-pubDate").text(),author:e.find(".blog-author").text(),link:e.find(".blog-link").text(),categoriesJSON:e.find(".blog-categories").text()});$.ajax({url:"/admin/db/blogs/add",type:"POST",data:e,headers:{"Content-Type":"application/json","Content-Length":e.length}}).done(x)}function y(e){e.preventDefault();var e=$(e.target).data("id"),t=$("#blog-"+e),a=t.find(".blog-id").text(),i=t.find(".blog-title").text(),o=t.find(".blog-body").text(),r=t.find(".blog-pubDate").text(),n=t.find(".blog-author").text(),s=t.find(".blog-link").text(),t=t.find(".blog-categories").text(),e=JSON.stringify({id:e,blog_id:a,title:i,body:o,pubDate:r,author:n,link:s,categoriesJSON:t});$.ajax({url:"/admin/db/blogs/update/"+a,type:"POST",data:e,headers:{"Content-Type":"application/json","Content-Length":e.length}}).done(x)}function v(e){e.preventDefault(),e.stopPropagation();e=$(e.target).data("id"),e=$("#blog-"+e).find(".blog-id").text();$.ajax({url:"/admin/db/blogs/delete/"+e,type:"POST"}).done(x).fail(D)}function x(){location.reload()}function D(e){console.log(e.responseText)}YDN.config={init:function(){e=$(".podcasts-refresh","#podcasts"),t=$(".podcast-update","#podcasts"),a=$(".podcast-delete","#podcasts"),i=$(".event-refresh","#events"),o=$(".event-update","#events"),r=$(".event-delete","#events"),n=$(".blog-refresh","#blogs"),s=$(".blog-add","#blogs"),d=$(".blog-update","#blogs"),l=$(".blog-delete","#blogs"),e.click(c),t.click(p),a.click(b),i.click(h),o.click(f),r.click(u),n.click(g),s.click(m),d.click(y),l.click(v)},podcastRefreshHandler:c,podcastUpdateHandler:p,podcastDeleteHandler:b,eventRefreshHandler:h,eventUpdateHandler:f,eventDeleteHandler:u,blogRefreshHandler:g,blogAddHandler:m,blogUpdateHandler:y,blogDeleteHandler:v,successHandler:x}})(),"object"==typeof exports?module.exports=YDN:(window.YDN=YDN,window.YDN.whitelist.init(),window.YDN.config.init());