PageSourceSearch

https://www.radiorock.com.br/build/assets/Index-fPj5Y8td.js

js radiorock.com.br collected 2026-09-24 09:59:51 UTC 4,799 bytes, 1 lines download raw bytes

1import{n as S,g as C,p as $,l as L,c as _,o as d,a as i,u as s,m as M,w as u,d as t,b as c,e as E,f as A,j as D,q as I,s as N,F}from"./app-NQbLN-3Z.js";import{_ as G}from"./AdminLayout-BqsvnMY8.js";import{G as O}from"./IndexGrid-mPHkI4WX.js";import{D as j}from"./Default-COYN_0Mt.js";import{V as m,D as T}from"./dataTables.responsive-Bz5a09XM.js";import"./buttons.html5-DtiFHiav.js";import{g as U}from"./goBack-DSYXgVhs.js";import{C as q}from"./ClickMenu-DuFYIvSF.js";import{u as R}from"./useDatatabletUtils-dPJkIXrj.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Padrao-sK87S89e.js";import"./CardSquare89_02-CVa7VxR7.js";import"./strings-BAGEavMC.js";import"./MessageError-Drx4cPe7.js";import"./Gif-CGorngwu.js";import"./Image-2WLy5G-z.js";/* empty css                                                                  *//* empty css                                                                */import"./calendar-DXLKUAt0.js";const H={class:"sticky z-40 py-5 shadow top-16 admin-page-title bg-black-920"},J={class:"flex items-end justify-between"},K={class:"hidden gap-5 lg:flex"},P={class:"grid w-full grid-cols-7 gap-2 md:grid-cols-16 lg:grid-cols-37"},Q={key:0,class:"py-10"},W={class:"w-full"},X={class:"fixed bottom-0 left-0 flex justify-end w-screen gap-4 p-2 shadow z-999 save-row sm:rounded"},Y={class:"block w-2/12 lg:hidden md:w-1/12"},bt={__name:"Index",props:{status:{type:String},authors:{type:Object}},setup(p){const n=R();m.use(T),m.use(T);const l=S().props.auth.permissions??{},r=C("table"),f=a=>{r.value=a??"table"},h=p;$("authors",h.authors??{});const V=[{title:"Thumb",dataIndex:"thumb",key:"thumb",data:"thumb",class:"md:table-cell text-center",render:function(a,e,o){return n.imgCell(a,e,o)}},{title:"Nome",dataIndex:"name",key:"name",data:"name",class:"text-center"},{title:"Sobrenome",dataIndex:"lastname",key:"lastname",data:"lastname",class:"text-center"},{title:"Telefone",dataIndex:"phone",key:"phone",data:"phone",class:"text-center"},{title:"Email",dataIndex:"email",key:"email",data:"email",class:"text-center"},{title:"Ativo",dataIndex:"active",key:"active",data:"active",class:"md:table-cell text-center",render:function(a,e,o){return n.checkCell(a,e,o)}}],z={data:h.authors,columns:V,...n.getDefaultOptions()};let x;const v=C();L(function(){x=v.value.dt});const B=a=>{switch(a.action){case"go-back":U();break}};return(a,e)=>(d(),_(F,null,[i(s(M),{title:"Autor"}),i(G,{errors:a.errors},{default:u(()=>{var o,b,k,g,y;return[t("div",H,[t("div",J,[e[5]||(e[5]=t("h2",{class:"gap-6 mt-5 text-xl md:text-3xl text-lead-50"},[t("i",{class:"fa-solid fa-at"}),E("Todos os Autores ")],-1)),t("div",K,[(o=s(l))!=null&&o.authors_create?(d(),A(j,{key:0,href:a.route("author.create"),type:"inertia-link",color:"blue",level:"tertiary"},{default:u(()=>e[3]||(e[3]=[t("div",{class:"flex items-center gap-3"},[t("i",{class:"fa-solid fa-plus"}),t("span",{class:""},"Novo Autor")],-1)])),_:1},8,["href"])):c("",!0),(b=s(l))!=null&&b.authors_destroy?(d(),A(j,{key:1,href:a.route("author.trash"),type:"inertia-link",color:"red",level:"tertiary"},{default:u(()=>e[4]||(e[4]=[t("div",{class:"flex items-center gap-3"},[t("i",{class:"fa-solid fa-trash-can"}),t("span",{class:""},"Lixeira")],-1)])),_:1},8,["href"])):c("",!0)])])]),t("div",P,[t("span",{class:D(["flex justify-center p-2 rounded text-black-500 hover:cursor-pointer",{"bg-red-600 text-white-50":r.value==="table"}]),onClick:e[0]||(e[0]=w=>f("table"))},e[6]||(e[6]=[t("i",{class:"flex items-center fa-solid fa-list"},null,-1)]),2),t("span",{class:D(["flex justify-center p-2 rounded text-black-500 hover:cursor-pointer",{"bg-red-600 text-white-50":r.value==="grid"}]),onClick:e[1]||(e[1]=w=>f("grid"))},e[7]||(e[7]=[t("i",{class:"flex items-center fa-solid fa-grip-vertical"},null,-1)]),2)]),(k=s(l))!=null&&k.authors_list?(d(),_("div",Q,[t("div",W,[I(t("div",null,[i(s(m),{onSelect:e[2]||(e[2]=w=>s(n).rowClickToRoute(s(x),"author.edit")),ref_key:"tableAll",ref:v,class:"text-white display datatable clicked-table",width:"100%",options:z},null,512)],512),[[N,r.value==="table"]]),I(t("div",null,[i(O,{data:p.authors,"base-route":"author.edit"},null,8,["data"])],512),[[N,r.value==="grid"]])])])):c("",!0),t("div",X,[t("div",Y,[i(q,{bgcolor:"lead-to-yellow",textcolor:"text-white-50",rounded:"rounded-full",size:"p-1",textsize:"text-1r",onClick:B,items:[{text:"Novo Autor",type:"inertia-link",icon:"fa-solid fa-plus",url:a.route("author.create"),can:((g=s(l))==null?void 0:g.authors_create)??!1}
1,{text:"Lixeira",type:"inertia-link",icon:"fa-solid fa-trash-can",url:a.route("author.trash"),can:((y=s(l))==null?void 0:y.authors_destroy)??!1},{text:"Voltar",type:"event",action:"go-back",icon:"fa-solid fa-chevron-left",can:!0}],class:""},null,8,["items"])])])]}),_:1},8,["errors"])],64))}};export{bt 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.