PageSourceSearch

https://app.hellothematic.com/_nuxt/Pjz4NthX.js

js hellothematic.com collected 2026-10-01 11:26:17 UTC 2,690 bytes, 1 lines download raw bytes

1import{k as f,a as k,u as y,n,K as I,p as w,g as c,q as B,D as o,o as s,w as P,M as S,h as p}from"./CHWWsaLB.js";import L from"./DPWBAT2Z.js";import{_}from"./DlAUqK2U.js";const x=["d","stroke"],A=["data-gtm-track","data-gtm-location","data-gtm-event"],C={class:"add-song-icon icon-button",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","xml:space":"preserve","enable-background":"new 0 0 512 512"},M=["d"],b="M10.0013 4.16699V15.8337M4.16797 10.0003H15.8346",z="M4.16797 10.417L8.33464 14.5837L15.8346 6.66699",T="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm128 217H264v119h-17V265H128v-17h119V128h17v120h120v17z",V="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm103.7 147.3L232.4 322.6l-64-64 22.6-22.6 41.4 41.4 104.7-104.7 22.6 22.6z",j=f({__name:"AddToPlaylist",props:{song:{type:Object,required:!0},inAISearch:{type:Boolean,default:!1},isButton:{type:Boolean,default:!1},inMusicPlayer:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},white:{type:Boolean,default:!1}},setup(e){const l=k(),t=y(),i=e,r=n(()=>i.song.songId||i.song.id),u=n(()=>r.value===void 0?!1:t.playlists.some(a=>{var d;return(d=a.songs)==null?void 0:d.some(v=>v.id===r.value)})),h=n(()=>u.value?z:b),m=n(()=>u.value?V:T);I(()=>{var a;return(a=t.user)==null?void 0:a.id},a=>{a&&t.getPlaylists(!1)},{immediate:!0});const g=()=>{t.isLoggedIn?(l.showAddToPlaylistWrapper=!0,l.songAddedToPlaylist=i.song):l.joinFree=!0};return(a,d)=>(o(t).isLoggedIn||e.inAISearch)&&e.isButton?(s(),w(L,{key:0,class:"icon-container add-to-playlist-icon",variant:"secondary",shape:"circle",type:"ghost","data-gtm-track":o(t).isLoggedIn?null:"signup_click","data-gtm-location":o(t).isLoggedIn?null:"Add to Playlist Button","data-gtm-event":o(t).isLoggedIn?null:"Open signup popup",onClick:g},{default:P(()=>[(s(),c("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:S({pointerEvents:"none",color:e.dark?"#323241":e.white?"#fff":"currentColor"})},[p("path",{d:h.value,stroke:e.dark?"#323241":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,x)],4))]),_:1},8,["data-gtm-track","data-gtm-location","data-gtm-event"])):(o(t).isLoggedIn||e.inAISearch)&&!e.isButton?(s(),c("div",{key:1,class:"add-song-icon-wrapper","data-gtm-track":o(t).isLoggedIn?null:"signup_click","data-gtm-location":o(t).isLoggedIn?null:"Add to Playlist Icon","data-gtm-event":o(t).isLoggedIn?null:"Open signup popup",onClick:g},[(s(),c("svg",C,[p("path",{d:m.value,class:"fill-000000"},null,8,M)]))],8,A)):B("",!0)}}),E=_(j,[["__scopeId","data-v-a24a00a6"]]);export{E 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.