PageSourceSearch

https://www.filmpro.ru/_nuxt/B1HM56Y_.js

js filmpro.ru collected 2026-10-02 03:53:52 UTC 2,773 bytes, 1 lines download raw bytes

1import{h as z,_ as A,b as B,a as F}from"./BwiywTlr.js";import{z as T,a2 as I,G as r,Y as n,a7 as t,V as l,y as a,ag as M,c as Z,al as D,b as w,ah as G,P as c,N as h,a3 as b,aj as P,$ as W,a4 as Y,a1 as p,k as E}from"./pEjZETfw.js";import{_ as K}from"./xvRhSBEW.js";import{u as O}from"./C5P-lpf1.js";import{u as R}from"./CKHnToZc.js";import{u as q}from"./DvJakqkG.js";import"./gfLliCm3.js";const H={class:"px-4 py-6 md:px-0"},J={class:"text-accent"},Q={class:"mb-6 px-4 md:px-0"},X={class:"line-clamp-1 justify-end font-semibold"},ee=["onClick"],ce=T({__name:"subscriptions",async setup(se){let m,d;const _=[{label:"Все",key:"all"},{label:"Личные",key:"users"},{label:"Компании",key:"companys"},{label:"Редакция",key:"editors"}],u=w(_[0].key),o=w(""),{data:i,refresh:x}=O("/api/profile/authorSubscriptions",{method:"POST"},"$WSYLKZZWZg"),{toggleAuthorSubscription:v,fetchSubscriptions:k}=R();[m,d]=I(()=>q("subscriptions",()=>k())),await m,d();async function S(e){await v(e),await x()}const f=E(()=>({all:i.value?.filter(e=>e.fullname?.toLowerCase().includes(o.value.toLowerCase()))||[],users:i.value?.filter(e=>!e.isCompany&&e.fullname?.toLowerCase().includes(o.value.toLowerCase()))||[],companys:i.value?.filter(e=>e.isCompany&&e.fullname?.toLowerCase().includes(o.value.toLowerCase()))||[],editors:i.value?.filter(e=>e.roleId<=3&&e.fullname?.toLowerCase().includes(o.value.toLowerCase()))||[]}));return(e,y)=>{const C=z,g=P,L=G,V=K,$=B,N=A,U=F;return c(),r("div",null,[n("div",H,[t(L,{"space-between":5,"slides-per-view":"auto","free-mode":!0,modules:["SwiperFreeMode"in e?e.SwiperFreeMode:a(M)]},{default:l(()=>[(c(),r(h,null,b(_,s=>t(g,{key:s.key,style:{width:"fit-content"}},{default:l(()=>[t(C,{size:"md",color:"white",class:W(`text-lg font-semibold ${a(u)===s.key?"bg-white":"bg-transparent"}`),onClick:j=>u.value=s.key},{default:l(()=>[Y(p(s.label)+" ",1),n("span",J," ("+p(a(f)[s.key].length)+") ",1)]),_:2},1032,["class","onClick"])]),_:2},1024)),64))]),_:1},8,["modules"])]),n("div",Q,[t(V,{modelValue:a(o),"onUpdate:modelValue":y[0]||(y[0]=s=>Z(o)?o.value=s:null),size:"lg",placeholder:"Введите имя",icon:"i-ci-search"},null,8,["modelValue"])]),t(D,{name:"list",tag:"div",class:"space-y-4 px-4 md:px-0"},{default:l(()=>[(c(!0),r(h,null,b(a(f)[a(u)],s=>(c(),r("div",{key:s.id,class:"flex items-center justify-between gap-x-3 rounded-md bg-white p-6"},[t(N,{class:"flex items-center gap-x-3",to:{name:"users-id",params:{id:s.id}}},{default:l(()=>[t($,{"img-class":"object-cover",src:s.photo?.url,icon:"i-ci-image-01"},null,8,["src"]),n("span",X,p(s.fullname),1)]),_:2},1032,["to"]),n("button",{type:"button",class:"flex p-1",onClick:j=>S(s.id)},[t(U,{name:"i-ci-close-md"})],8,ee)]))),128))]),_:1})])}}});export{ce 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.