1import{i as u,h as p,u as m,P as _}from"../main.ae189850.js";import{G as w}from"./GenericFollow.3aad8e65.js";import{d as g,b as h,p as v,w as c,o as d,q as x,g as t,m as s,u as o,a as b,f as E,T as I,s as S,K as C,aa as N,ab as y}from"./vendor.ab282fad.js";import"./preload-helper.ae39bab8.js";var A=`.tooltip-content[data-v-f5ae0774]{font-size:.875rem;font-weight:400}.c-generic-follow__hint[data-v-f5ae0774]{color:#000;font-size:.875rem;line-height:1.5714285714}.tooltip-content.disabled[data-v-f5ae0774]{color:#505050}.tooltip-content.disabled[data-v-f5ae0774] .c-field__text{text-decoration:line-through} 2`;const T=e=>(N("data-v-f5ae0774"),e=e(),y(),e),k=T(()=>t("button",null,"Notifications",-1)),B={class:"u-align-center"},V={key:0,class:"u-mtxs u-align-center"},$={class:"c-project__generic-follow__hint"},z={href:"/accounts/ircamauth/login/"},O=g({props:{collectionId:null},setup(e){const l=e,{isLogged:i}=p(),{t:n}=m({messages:{fr:{newItemAddedToCollection:"Un nouvel \xE9l\xE9ment a \xE9t\xE9 ajout\xE9 \xE0 la collection",sendEmailWhen:"M'envoyer un email quand",loginOrSignup:"Se connecter ou s'inscrire",toEnableNotifications:"pour recevoir des notifications"},en:{newItemAddedToCollection:"A new item is added to the collection",sendEmailWhen:"Send me an email when",loginOrSignup:"Login or signup",toEnableNotifications:"to enable notifications"}}}),a=h(()=>({following:`/api/collections/${l.collectionId}/following/`,follow:`/api/collections/${l.collectionId}/follow/`,unfollow:`/api/collections/${l.collectionId}/unfollow/`}));return(r,W)=>(d(),v(_,null,{button:c(()=>[x(r.$slots,"default",{},()=>[k],!0)]),tooltip:c(({isOpen:f})=>[t("div",{class:C(["tooltip-content",{disabled:!o(i)}])},[t("div",B,s(o(n)("sendEmailWhen")),1),b(w,{"is-visible":f,text:o(n)("newItemAddedToCollection"),"following-endpoint":o(a).following,"follow-endpoint":o(a).follow,"unfollow-endpoint":o(a).unfollow,"event-name":"collection:new_item",anonymous:!o(i)},null,8,["is-visible","text","following-endpoint","follow-endpoint","unfollow-endpoint","anonymous"]),o(i)?S("",!0):(d(),E("div",V,[t("small",$,[t("a",z,s(o(n)("loginOrSignup")),1),I(" "+s(o(n)("toEnableNotifications")),1)])]))],2)]),_:3}))}});var L=u(O,[["styles",[A]],["__scopeId","data-v-f5ae0774"]]);export{L as default}; 3//# sourceMappingURL=CollectionFollow.ce.3f0f1ae7.js.map
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.