403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/Users/SERVERWEB/AppData/Local/Microsoft/OneDrive/26.074.0420.0001/WebAssets/static/views/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/Users/SERVERWEB/AppData/Local/Microsoft/OneDrive/26.074.0420.0001/WebAssets/static/views/time.js
(function(){"use strict";var S=ViewLib.ThemeSync,v=ViewLib.Messages,g=["","January","February","March","April","May","June","July","August","September","October","November","December"];function _(e){return e===12||e===1||e===2?"season-winter":e>=3&&e<=5?"season-spring":e>=6&&e<=8?"season-summer":"season-fall"}function C(){var e={},t=window.__vibeAccountCid;return t&&(e.with={account_scope:{account_id:t}}),ViewLib.SQL.named("gallery_time_years",e).then(function(a){return a.map(function(i){return{year:parseInt(i.year,10),count:i.count}})})}function w(e){var t=String(e),a={params:{year_start:t+"-",year_end:parseInt(t,10)+1+"-"}},i=window.__vibeAccountCid;return i&&(a.with={account_scope:{account_id:i}}),ViewLib.SQL.named("gallery_time_months",a).then(function(r){return r.map(function(n){return{month:parseInt(n.month,10),count:n.count}})})}function L(e){var t=String(e);return ViewLib.SQL.named("gallery_time_samples",{params:{start_date:t+"-",end_date:parseInt(t,10)+1+"-",candidate_limit:6}})}function b(e,t){var a=String(t).padStart(2,"0"),i=parseInt(t,10)+1,r=parseInt(e,10);return i>12&&(i=1,r++),ViewLib.SQL.named("gallery_time_samples",{params:{start_date:e+"-"+a+"-01",end_date:r+"-"+String(i).padStart(2,"0")+"-01",candidate_limit:6}})}function d(){this.currentView="loading",this.selectedYear=null,this.selectedMonth=null,this.yearsData=null,this.monthsData=null,this._pendingNavigatePhoto=null,this._skinParam=new URLSearchParams(location.search).get("skin"),this.navEl=document.getElementById("timeNav"),this.loadingEl=document.getElementById("timeLoading"),this.yearsGrid=document.getElementById("yearsGrid"),this.monthsGrid=document.getElementById("monthsGrid"),this.galleryContainer=document.getElementById("galleryContainer"),this.galleryFrame=document.getElementById("galleryFrame"),this.setupKeyboard(),this.loadYears()}d.prototype.setupKeyboard=function(){var e=this;document.addEventListener("keydown",function(t){t.key==="Escape"&&(e.currentView==="gallery"?e.goToMonths():e.currentView==="months"&&e.goToYears()),(t.ctrlKey||t.metaKey)&&(t.key==="a"||t.key==="d")&&!(t.target instanceof Element&&t.target.closest("input,textarea"))&&t.preventDefault()})},d.prototype._cacheKey=function(e){return"rewind_"+e},d.prototype._readCache=function(e){try{var t=localStorage.getItem(this._cacheKey(e));if(!t)return null;var a=JSON.parse(t);return Date.now()-a.ts>36e5?null:a.data}catch{return null}},d.prototype._writeCache=function(e,t){try{localStorage.setItem(this._cacheKey(e),JSON.stringify({data:t,ts:Date.now()}))}catch{}},d.prototype.loadYears=function(){var e=this,t=this._readCache("years");if(t){this.yearsData=t,this.loadingEl.style.display="none",this.showYears(),this._renderCachedSamples(this.yearsData,this.yearsGrid),this._refreshYearsInBackground();return}v.sendStatusToShell(Od4Strings.t("timeStatusLoading"),0),C().then(function(a){return e.yearsData=a,e.loadingEl.style.display="none",v.sendStatusToShell(Od4Strings.t("timeStatusLoaded"),3e3),e.showYears(),e.loadSamplesForCards(e.yearsData,function(i){return L(i.year)},e.yearsGrid).then(function(){e._writeCache("years",e.yearsData)})}).catch(function(a){e.loadingEl.querySelector("p").textContent=Od4Strings.t("timeFailed"),console.error(a)})},d.prototype._refreshYearsInBackground=function(){var e=this;C().then(function(t){if(e.currentView==="years"){var a=t.length!==e.yearsData.length||t.some(function(r,n){return!e.yearsData[n]||r.year!==e.yearsData[n].year||r.count!==e.yearsData[n].count}),i=e.yearsGrid.querySelector(".time-card-mosaic img.broken")!==null;if(a||i)return e.yearsData=t,e.showYears(),e.loadSamplesForCards(e.yearsData,function(r){return L(r.year)},e.yearsGrid).then(function(){e._writeCache("years",e.yearsData)})}}).catch(function(){})},d.prototype.loadMonths=function(e){var t=this,a=this._readCache("months_"+e);if(a){this.monthsData=a,this.loadingEl.style.display="none",this.showMonths(),this._renderCachedSamples(this.monthsData,this.monthsGrid),this._refreshMonthsInBackground(e);return}this.loadingEl.style.display="",w(e).then(function(i){return t.monthsData=i,t.loadingEl.style.display="none",t.showMonths(),t.loadSamplesForCards(t.monthsData,function(r){return b(e,r.month)},t.monthsGrid).then(function(){t._writeCache("months_"+e,t.monthsData)})}).catch(function(i){t.loadingEl.style.display="none",console.error(i)})},d.prototype._refreshMonthsInBackground=function(e){var t=this;w(e).then(function(a){if(t.currentView==="months"){var i=a.length!==t.monthsData.length||a.some(function(n,s){return!t.monthsData[s]||n.month!==t.monthsData[s].month||n.count!==t.monthsData[s].count}),r=t.monthsGrid.querySelector(".time-card-mosaic img.broken")!==null;if(i||r)return t.monthsData=a,t.showMonths(),t.loadSamplesForCards(t.monthsData,function(n){return b(e,n.month)},t.monthsGrid).then(function(){t._writeCache("months_"+e,t.monthsData)})}}).catch(function(){})},d.prototype._renderCachedSamples=function(e,t){for(var a=t.querySelectorAll(".time-card"),i=0;i<e.length;i++){var r=e[i],n=a[i];!n||!r.samples||r.samples.length===0||this.populateCardSamples(n,r.samples)}},d.prototype.hideAll=function(){this.yearsGrid.classList.add("hidden"),this.monthsGrid.classList.add("hidden"),this.galleryContainer.classList.remove("active")},d.prototype.showYears=function(){this.hideAll(),this.currentView="years",this.selectedYear=null,this.selectedMonth=null,this.galleryFrame.src="about:blank",this.renderNav(),this.renderYears(),this.yearsGrid.classList.remove("hidden"),this.yearsGrid.classList.add("fade-in"),setTimeout(function(){document.getElementById("yearsGrid").classList.remove("fade-in")},200)},d.prototype.showMonths=function(){this.hideAll(),this.currentView="months",this.galleryFrame.src="about:blank",this.renderNav(),this.renderMonths(),this.monthsGrid.classList.remove("hidden"),this.monthsGrid.classList.add("fade-in"),setTimeout(function(){document.getElementById("monthsGrid").classList.remove("fade-in")},200)},d.prototype.showGallery=function(e,t){this.hideAll(),this.currentView="gallery",this.selectedMonth=t,this.renderNav();var a=e+"-"+String(t).padStart(2,"0")+"-01T00:00:00",i=e,r=t+1;r>12&&(r=1,i++);var n=i+"-"+String(r).padStart(2,"0")+"-01T00:00:00",s="/webgl2.html?startDate="+encodeURIComponent(a)+"&endDate="+encodeURIComponent(n)+"&hideDate=1";this._skinParam&&(s+="&skin="+encodeURIComponent(this._skinParam));var o=this;this.galleryFrame.src=s,this.galleryFrame.onload=function(){o._pendingNavigatePhoto&&(o.galleryFrame.contentWindow.postMessage(o._pendingNavigatePhoto,"*"),o._pendingNavigatePhoto=null)},this.galleryContainer.classList.add("active")},d.prototype.goToYears=function(){var e=this;this.yearsGrid.classList.add("fade-out"),this.monthsGrid.classList.add("fade-out"),setTimeout(function(){e.yearsGrid.classList.remove("fade-out"),e.monthsGrid.classList.remove("fade-out"),e.showYears()},200)},d.prototype.goToMonths=function(){var e=this;this.galleryContainer.classList.remove("active"),this.galleryFrame.src="about:blank",this.selectedMonth=null,setTimeout(function(){e.showMonths()},50)},d.prototype.drillToYear=function(e){var t=this;this.selectedYear=e,this.currentView="months",this.yearsGrid.classList.add("fade-out"),setTimeout(function(){t.yearsGrid.classList.remove("fade-out"),t.yearsGrid.classList.add("hidden"),t.loadMonths(e)},200)},d.prototype.drillToMonth=function(e,t){var a=this;this.currentView="gallery",this.monthsGrid.classList.add("fade-out"),setTimeout(function(){a.monthsGrid.classList.remove("fade-out"),a.monthsGrid.classList.add("hidden"),a.showGallery(e,t)},200)},d.prototype.renderNav=function(){var e=this.navEl;e.innerHTML="",e.classList.toggle("at-root",this.currentView==="years");var t=this,a=document.createElement("button");if(a.textContent=Od4Strings.t("timeYears"),a.className=this.currentView==="years"?"chrome-btn-text current":"chrome-btn-text",this.currentView!=="years"&&a.addEventListener("click",function(){t.goToYears()}),e.appendChild(a),this.selectedYear){var i=document.createElement("span");i.className="separator",i.textContent="/",e.appendChild(i);var r=document.createElement("button");r.textContent=this.selectedYear,r.className=this.currentView==="months"?"chrome-btn-text current":"chrome-btn-text",this.currentView!=="months"&&r.addEventListener("click",function(){t.goToMonths()}),e.appendChild(r)}if(this.selectedMonth){var n=document.createElement("span");n.className="separator",n.textContent="/",e.appendChild(n);var s=document.createElement("button");s.textContent=g[this.selectedMonth],s.className="chrome-btn-text current",e.appendChild(s)}},d.prototype.renderYears=function(){var e=this.yearsGrid;e.innerHTML="";var t=this.yearsData.reduce(function(r,n){return r+n.count},0),a=document.createElement("div");a.className="time-grid-title",a.textContent=ViewLib.FormatCount.formatCount(this.yearsData.length,"timeAcrossYear",[t.toLocaleString()]),e.appendChild(a);var i=this;this.yearsData.forEach(function(r,n){var s=i.createCard(String(r.year),r.count,r.samples||[],n);s.addEventListener("click",function(){i.drillToYear(r.year)}),e.appendChild(s)})},d.prototype.renderMonths=function(){var e=this.monthsGrid;e.innerHTML="";var t=document.createElement("div");t.className="time-grid-title";var a=this.monthsData.reduce(function(n,s){return n+s.count},0);t.textContent=String(this.selectedYear);var i=document.createElement("span");i.style.cssText="font-size:14px; color:#666; margin-left:12px; font-weight:400",i.textContent=ViewLib.FormatCount.formatCount(this.monthsData.length,"timeAcrossMonth",[a.toLocaleString()]),t.appendChild(i),e.appendChild(t);var r=this;this.monthsData.forEach(function(n,s){var o=r.createCard(g[n.month],n.count,n.samples||[],s);o.classList.add(_(n.month)),o.addEventListener("click",function(){r.drillToMonth(r.selectedYear,n.month)}),e.appendChild(o)})},d.prototype.createCard=function(e,t,a,i,r){r=r||{};var n=document.createElement("div");n.className="time-card",n.style.animationDelay=i*60+"ms";var s=document.createElement("div");s.className="time-card-mosaic";for(var o=0;o<6;o++){var l=a[o];if(l&&l.thumbnailId){var h=document.createElement("img");h.src="/api/thumbnail/"+l.thumbnailId,h.style.transitionDelay=o*80+"ms",h.onload=function(){this.classList.add("loaded")},h.onerror=function(){this.classList.add("broken")},s.appendChild(h)}else if(l&&l.driveItemId&&l.driveId){var u=document.createElement("img");u.src="http://photosapi.od4"+ViewLib.Thumbnail.buildNucleusThumbnailUrl(l.driveId,l.driveItemId,{width:l.width,height:l.height,neededSize:Math.ceil(200*(window.devicePixelRatio||1)),lastModifiedDateTime:l.lastModifiedDateTime}),u.style.transitionDelay=o*80+"ms",u.onload=function(){this.classList.add("loaded")},u.onerror=function(){this.classList.add("broken")},s.appendChild(u)}else s.appendChild(document.createElement("div"))}if(n.appendChild(s),r.overlay){var m=document.createElement("div");m.className="time-card-mosaic-overlay",m.textContent=e,n.appendChild(m)}var f=document.createElement("div");f.className="time-card-info";var p=document.createElement("div");p.className="time-card-label",p.textContent=e,f.appendChild(p);var y=document.createElement("div");return y.className="time-card-count",y.textContent=ViewLib.FormatCount.formatCount(t,"sourcesPhotoCount"),f.appendChild(y),n.appendChild(f),this.animateCount(y,t),this.addParallax(n),n},d.prototype.animateCount=function(e,t){var a=600,i=performance.now();function r(n){var s=Math.min(1,(n-i)/a),o=1-Math.pow(1-s,3),l=Math.round(o*t);e.textContent=ViewLib.FormatCount.formatCount(l,"sourcesPhotoCount"),s<1&&requestAnimationFrame(r)}requestAnimationFrame(r)},d.prototype.addParallax=function(e){e.addEventListener("mousemove",function(t){var a=e.getBoundingClientRect(),i=(t.clientX-a.left)/a.width-.5,r=(t.clientY-a.top)/a.height-.5;e.style.transform="perspective(600px) rotateY("+i*8+"deg) rotateX("+-r*8+"deg) translateY(-4px)"}),e.addEventListener("mouseleave",function(){e.style.transform=""})},d.prototype.loadSamplesForCards=function(e,t,a){var i=this,r=a.querySelectorAll(".time-card"),n=3;function s(o){if(o>=e.length)return Promise.resolve();for(var l=[],h=o;h<Math.min(o+n,e.length);h++)(function(u){var m=e[u],f=r[u];f&&l.push(t(m).then(function(p){m.samples=p||[],i.populateCardSamples(f,m.samples)}).catch(function(p){console.error("Failed to load samples",p)}))})(h);return Promise.all(l).then(function(){return s(o+n)})}return s(0)},d.prototype.populateCardSamples=function(e,t){var a=e.querySelector(".time-card-mosaic");if(a)for(var i=a.children,r=0;r<6;r++){var n=t[r],s=i[r];if(!(!n||!s)&&s.tagName!=="IMG"){var o;if(n.thumbnailId)o="/api/thumbnail/"+n.thumbnailId;else if(n.driveItemId&&n.driveId)o=ViewLib.Thumbnail.buildNucleusThumbnailUrl(n.driveId,n.driveItemId,{width:n.width,height:n.height,neededSize:Math.ceil(200*(window.devicePixelRatio||1)),lastModifiedDateTime:n.lastModifiedDateTime});else continue;var l=document.createElement("img");l.src=o,l.style.transitionDelay=r*80+"ms",l.onload=function(){this.classList.add("loaded")},l.onerror=function(){this.classList.add("broken")},a.replaceChild(l,s)}}};var c;document.addEventListener("DOMContentLoaded",function(){c=new d,window._timeMachine=c});var E={"navigate-to-photo":!0,"photo-deselected":!0,"one-up-closed":!0,"details-pane-closed":!0,"filters-changed":!0,"get-visible-photos":!0,"theme-changed":!0,zoom:!0,"resolve-neighbors":!0,"resolve-filmstrip":!0},M={"photo-selected":!0,"photo-deselected":!0,status:!0,"view-settings":!0,"view-settings-update":!0,"visible-photos":!0,"collection-created":!0,"collection-changed":!0,"resolve-neighbors-reply":!0,"resolve-filmstrip-reply":!0};S.listenForShellThemeChanges(),window.addEventListener("message",function(e){if(!(!e.data||!e.data.type)){var t=e.data.type,a=c&&c.galleryFrame,i=e.source===window.parent,r=a&&a.contentWindow&&e.source===a.contentWindow;if(t==="get-visible-photos"&&i){if(c&&c.currentView==="gallery"){a.contentWindow.postMessage(e.data,"*");return}var n=[];if(c&&c.yearsData)for(var s=0;s<c.yearsData.length;s++){var o=c.yearsData[s];if(o.samples)for(var l=0;l<o.samples.length;l++)o.samples[l].thumbnailId&&n.push(o.samples[l].thumbnailId)}v.sendVisiblePhotosToShell(n);return}if(i&&E[t]){t==="navigate-to-photo"&&c&&(c._pendingNavigatePhoto=e.data),a&&a.contentWindow&&c&&c.currentView==="gallery"&&a.contentWindow.postMessage(e.data,"*");return}if(r&&M[t]){v.sendToShell(e.data);return}}})})();

Youez - 2016 - github.com/yon3zu
LinuXploit