PageSourceSearch

https://yaay.com.tr/_next/static/chunks/pages/settings/mutedAccounts-82820a2082ba6a7c.js

js yaay.com.tr collected 2026-10-01 13:11:41 UTC 3,079 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6575],{51642:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/mutedAccounts",function(){return a(61895)}])},61895:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return h}});var s=a(85893),n=a(5636),r=a(54947),l=a(16884),i=a(46003),c=a(20026),u=a(77489),d=a(41664),o=a.n(d),m=a(67294),f=a(34978),h=!0;t.default=()=>{let{loading:e}=(0,i.Z)(),{get:t,post:a}=(0,r.ZP)(),[d,h]=(0,m.useState)([]),[x,y]=(0,m.useState)(!0),[p,b]=(0,m.useState)(new Set),[w,j]=(0,m.useState)(new Map),{i18n:g}=(0,f.Q)();(0,m.useEffect)(()=>{e||N()},[e]);let N=async()=>{try{y(!0);let e=await t(c.W.MutedUsers+"?limit=20&offset=0");if(e.data&&Array.isArray(e.data)){h(e.data);let t=new Map;e.data.forEach(e=>{t.set(e.id,!0)}),j(t)}}catch(e){console.error("Sessize alınan kullanıcılar y\xfcklenirken hata:",e)}finally{y(!1)}},_=async e=>{var t;if(p.has(e))return;let s=null===(t=w.get(e))||void 0===t||t,n=s?c.W.UnmuteUser:c.W.MuteUser;try{b(t=>new Set(t).add(e)),await a(n,{user_id:e},{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}}),j(t=>{let a=new Map(t);return a.set(e,!s),a})}catch(e){console.error("Mute/unmute işlemi başarısız:",e)}finally{b(t=>{let a=new Set(t);return a.delete(e),a})}};return e?(0,s.jsx)(l.$j,{isLoading:!0,size:80}):(0,s.jsxs)(n.Z,{children:[(0,s.jsx)(l.hb,{path:u.PageRoutes.SETTINGS_PRIVACY,title:g.mutedAccounts}),(0,s.jsx)("div",{className:"w-full mb-[2rem] dark:text-yaay-lightgray",children:x?(0,s.jsx)("div",{className:"flex justify-center items-center py-10",children:(0,s.jsx)(l.$j,{isLoading:!0,size:50})}):0===d.length?(0,s.jsx)("div",{className:"w-full border-b py-5",children:(0,s.jsx)("p",{className:"text-gray-400 text-center",children:g.noMutedAccounts})}):(0,s.jsx)("div",{className:"w-full",children:d.map(e=>{var t;return(0,s.jsxs)("div",{className:"w-full border-b py-4 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center flex-1",children:[(0,s.jsx)(o(),{href:"/".concat(e.username),children:(0,s.jsx)("img",{src:e.profileImage?e.profileImage:"/images/user_blank.png",alt:"".concat(e.username,"-profile-image"),className:"w-12 h-12 rounded-full flex-none cursor-pointer mr-3"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)(o(),{href:"/".concat(e.username),className:"font-semibold text-sm hover:text-yaay-blue hover:underline block",children:e.name}),(0,s.jsxs)("p",{className:"text-sm text-yaay-darkgray-blue",children:["@",e.username]})]})]}),(0,s.jsx)("button",{onClick:()=>_(e.id),disabled:p.has(e.id),className:"px-4 py-2 bg-white text-yaay-blue rounded-2xl hover:bg-yaay-blue hover:text-white disabled:opacity-50 disabled:cursor-not-allowed text-sm font-medium border-2 border-yaay-blue",children:p.has(e.id)?g.processing:null===(t=w.get(e.id))||void 0===t||t?g.unmute:g.mute})]},e.id)})})})]})}}},function(e){e.O(0,[6342,2544,2678,7603,1664,4349,4718,8244,200,9570,6884,1324,3742,8645,911,5636,2888,9774,179],function(){return e(e.s=51642)}),_N_E=e.O()}]);

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.