PageSourceSearch

https://spotifyplaylistarchive.com/_nuxt/index.3c8d8fc8.mjs

js spotifyplaylistarchive.com collected 2026-10-09 00:55:27 UTC 2,834 bytes, 1 lines download raw bytes

1import{k as Y,D as J,q as i,o as r,c as f,w as u,b as p,u as t,s as Q,E as g,F as U,G as K,H as T,I as z,J as A,h as D,t as x,j as G,e as k,a as H}from"./entry.8d9ca374.mjs";import{u as S}from"./state.40cd771d.mjs";import{u as W}from"./fetch.deee6fa1.mjs";import{_ as b}from"./_plugin-vue_export-helper.7287ed4b.mjs";import"./asyncData.dc1f9fd7.mjs";const X={key:1,class:"text-2xl"},Z={class:"w-full h-full flex justify-content-center align-items-center bg-primary hover:bg-green-400 text-0 border-round"},ee={key:1,class:"m-2"},te=Y({__name:"Calendar",props:{page:null},setup($){const n=J().params.playlistId,l=new Date,s=S(`queryMonth${n}`,()=>l.getMonth(),"$E5MDafv7SD"),c=S(`queryYear${n}`,()=>l.getFullYear(),"$SRQKTOkRkw"),d=new Date(c.value,s.value),O=new Date("2021-12-01"),m=-(d.getTimezoneOffset()/60),q=i(()=>new Date(c.value,s.value,1,m).toISOString().substring(0,10)),N=i(()=>new Date(c.value,s.value+1,1,m).toISOString().substring(0,10)),E=i(()=>{const e=new URLSearchParams;return e.set("sinceDate",q.value),e.set("untilDate",N.value),e.toString()}),{pending:_,error:v,data:M,refresh:I}=W(()=>`/api/playlists/${n}/snapshots?${E.value}`,{key:`snapshots-calendar-of-${n}`,server:!1},"$1NqsdqSeo0"),y=i(()=>(M.value||[]).reduce((e,a)=>{const h=a.dateCaptured.substring(8,10);return e[h]=`./snapshots/show/${a.commitSha}`,e},{})),L=i(()=>Object.keys(JSON.parse(JSON.stringify(y.value))).map(e=>new Date(c.value,s.value,Number(e),m))),R=async({month:e,year:a})=>{s.value=e,c.value=a,await I()},w=e=>y.value[e.toString().padStart(2,"0")],V=e=>!!w(e),j=e=>e.getMonth()===s.value;return(e,a)=>{const h=G,B=k,F=H;return r(),f(F,{name:"centered-content"},{default:u(()=>[p(B,null,{default:u(()=>[t(_)?(r(),f(t(Q),{key:0,class:"abosulte top-0 right-0"})):!t(_)&&t(v)?(r(),g("p",X," Something went wrong while fetching archive entries ")):U("",!0),K(p(t(z),{modelValue:t(d),"onUpdate:modelValue":a[0]||(a[0]=o=>A(d)?d.value=o:null),class:"md:px-0 px-4","min-date":t(O),"max-date":t(l),"allowed-dates":t(L),"enable-time-picker":!1,"month-change-on-arrows":!1,"month-change-on-scroll":!1,"no-swipe":"","no-today":"","prevent-min-max-navigation":"",inline:"",dark:"",onUpdateMonthYear:R},{day:u(({day:o,date:P})=>[j(P)&&V(o)?(r(),f(h,{key:0,class:"w-full h-full",to:w(o)},{default:u(()=>[D("div",Z,x(o),1)]),_:2},1032,["to"])):(r(),g("div",ee,x(o),1))]),_:1},8,["modelValue","min-date","max-date","allowed-dates"]),[[T,!(t(_)||t(v))]])]),_:1})]),_:1})}}}),ae=b(te,[["__scopeId","data-v-ca2410ad"]]),ne={},se={class:"md:text-lg text-base"},oe=D("p",{class:"mt-0 mb-4 mx-3 text-center"}," Click on a highlighted date to show a snapshot captured that day. ",-1);function re($,C){const n=ae,l=k;return r(),g("div",se,[oe,p(l,null,{default:u(()=>[p(n,{page:"snapshot-pick"})]),_:1})])}const pe=b(ne,[["render",re]]);export{pe as default};

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.