1import{_ as B}from"./SubnavCurate.vue_vue_type_script_setup_true_lang.BTkjRG_P.js";import{Z as P,V as c,aa as V}from"./app.DbqpAXOi.js";import{u as $}from"./rights-messages.ByvL9DLD.js";import{P as E}from"./pencil-line.CiX_mY92.js";import{T as W}from"./trash-2.D-ilewYR.js";import{j as z,N as p,o as i,q as a,z as d,I as s,A as y,w as k,T as D,O as n,u as e,Q as v,R as G,H as f,E as m,G as l}from"./SkinSwitcher.twk2Bn9a.js";import"./Subnav.vue_vue_type_style_index_0_lang.Cw7RYLXS.js";import"./external-link.CZMCmDy_.js";const H={key:0,class:"table"},I=["onClick"],j=["onClick"],q={key:0},Y=z({__name:"rights-messages",setup(A){const{items:C,addModal:_,editModal:M,deleteMessageConfirm:N}=$(),T=P.getCompany(),g=k(()=>T.features.rightsManagement),b=k(()=>C.value);function h(){_()}function R(r){M(r)}function S(r){N(r)}return(r,t)=>{const x=p("TrWithControls"),u=p("RouterLink"),L=p("LayoutWithSubnav");return a(),i(v,null,[(a(),d(D,{to:"#subnav-actions",defer:""},[g.value?(a(),i("button",{key:0,class:"btn btn-primary",onClick:t[0]||(t[0]=o=>h())},"New message")):y("",!0)])),s(L,{title:"Rights messages"},{nav:n(()=>[s(B,{current:"/curate/rights/messages"})]),default:n(()=>[g.value?(a(),i("table",H,[t[2]||(t[2]=e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"Message"),e("th",null,"Hashtag")])],-1)),e("tbody",null,[(a(!0),i(v,null,G(b.value,o=>(a(),d(x,{key:o.idx,item:o},{controls:n(()=>[e("ul",null,[e("li",null,[s(m(c),{content:"Edit message"},{default:n(()=>[e("button",{type:"button","aria-label":"Edit message",onClick:w=>R(o)},[s(m(E),{size:16})],8,I)]),_:2},1024)]),e("li",null,[s(m(c),{content:"Delete message"},{default:n(()=>[e("button",{type:"button","aria-label":"Delete message",class:"text-danger",onClick:w=>S(o)},[s(m(W),{size:16}
1)],8,j)]),_:2},1024)])])]),default:n(()=>[e("td",null,f(o.name),1),e("td",null,f(o.message),1),e("td",null,f(o.hashtag),1)]),_:2},1032,["item"]))),128)),b.value.length?y("",!0):(a(),i("tr",q,[...t[1]||(t[1]=[e("td",{colspan:"3"},"No messages",-1)])]))])])):(a(),d(V,{key:1,type:"info"},{buttons:n(()=>[e("p",null,[s(u,{to:"/company/subscription/update",class:"btn btn-primary"},{default:n(()=>[...t[9]||(t[9]=[l("Subscriptions",-1)])]),_:1})]),e("p",null,[s(u,{to:"/support",class:"btn btn-primary"},{default:n(()=>[...t[10]||(t[10]=[l("Get in contact",-1)])]),_:1})])]),default:n(()=>[e("p",null,[t[4]||(t[4]=l(" Rights Management is available as a Power-up to our Paid Plans. See the ",-1)),s(u,{to:"/company/subscription/update"},{default:n(()=>[...t[3]||(t[3]=[l("Subscription",-1)])]),_:1}),t[5]||(t[5]=l(" page for more info. ",-1))]),e("p",null,[t[7]||(t[7]=l(" If you'd like a demo of this feature please ",-1)),s(u,{to:"/support"},{default:n(()=>[...t[6]||(t[6]=[l("get in contact",-1)])]),_:1}),t[8]||(t[8]=l(". ",-1))])]),_:1}))]),_:1})],64)}}});export{Y 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.