PageSourceSearch

https://app.yeahub.ru/5334.a61fec2952ca5c73a567.js

js yeahub.ru collected 2026-10-05 18:54:42 UTC 5,492 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkyeahub_platform=self.webpackChunkyeahub_platform||[]).push([[5334],{15334:(t,e,s)=>{s.r(e),s.d(e,{default:()=>B});var i=s(32389),a=s(47767),n=s(84976),r=s(15705),c=s(29436),o=s(76981),d=s(82258),l=s(36135),T=s(52035),_=s(75355),u=s(72711),h=s(39855),E=s(28787);const p="MheuQ",I="k35hU";var A=s(74848);const j=({topic:t})=>{const{t:e}=(0,i.Bd)(r.m.topic);return(0,A.jsxs)(_.s,{direction:"column",gap:"24",className:p,children:[(0,A.jsx)(h.Z,{withOutsideShadow:!0,className:I,children:(0,A.jsx)(_.s,{gap:"16",children:(0,A.jsx)(E.EY,{variant:"body6",children:t.title})})}),(0,A.jsx)(h.Z,{withOutsideShadow:!0,expandable:!0,className:I,children:(0,A.jsxs)(_.s,{direction:"column",gap:"20",children:[(0,A.jsx)(E.EY,{variant:"body5-accent",children:e(o.nl.DESCRIPTION_FULL)}),(0,A.jsx)(E.EY,{variant:"body3",children:t.description})]})})]})};var O=s(46942),x=s.n(O),g=s(78170),D=s(61027);const y="qP2pi",L=({topic:t,className:e})=>{const{t:s}=(0,i.Bd)(r.m.topic);return(0,A.jsx)(h.Z,{className:x()(y,e),withOutsideShadow:!0,children:(0,A.jsxs)(_.s,{direction:"column",gap:"24",children:[(0,A.jsx)(D.R,{title:s(o.nl.ADDITIONAL_INFO_SKILL),data:[t.skill],isAllActive:!0}),(0,A.jsx)(D.R,{title:s(o.nl.ADDITIONAL_INFO_CREATED_AT),data:[{id:"createdAt",title:(0,g.Y)(new Date(t.createdAt),"dd.MM.yyyy")}],isAllActive:!0}),(0,A.jsx)(D.R,{title:s(o.nl.ADDITIONAL_INFO_UPDATED_AT),data:[{id:"updatedAt",title:(0,g.Y)(new Date(t.updatedAt),"dd.MM.yyyy")}],isAllActive:!0})]})})};var w=s(71997),m=s(80232),S=(s(96540),s(81124)),N=s(82272),C=s(84634),P=s(51102);const v=()=>(0,A.jsxs)(_.s,{direction:"column",gap:"24",className:p,children:[(0,A.jsx)(h.Z,{withOutsideShadow:!0,className:I,children:(0,A.jsx)(_.s,{gap:"16",children:(0,A.jsx)(P.r,{variant:"body6",width:"50%"})})}),(0,A.jsx)(h.Z,{withOutsideShadow:!0,expandable:!0,className:I,children:(0,A.jsxs)(_.s,{direction:"column",gap:"20",children:[(0,A.jsx)(P.r,{variant:"body5",width:"50%"}),(0,A.jsx)(P.r,{variant:"body3",width:"100%"})]})})]});var b=s(33598),U=s(97740);const f=({className:t})=>(0,A.jsx)(A.Fragment,{children:(0,A.jsx)(U.Q,{className:x()(y,t),withOutsideShadow:!0,children:(0,A.jsxs)(_.s,{direction:"column",gap:"24",children:[(0,A.jsx)(b.E,{length:1}),(0,A.jsx)(b.E,{length:1}),(0,A.jsx)(b.E,{length:1})]})})}),k=()=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(S.u,{children:[(0,A.jsx)(C.T,{isDetailPage:!0}),(0,A.jsx)(N.k,{width:180})]}),(0,A.jsxs)(_.s,{gap:"24",children:[(0,A.jsx)(v,{}),(0,A.jsx)(f,{})]})]}),B=()=>{const{topicId:t=""}=(0,a.g)(),{t:e}=(0,i.Bd)(r.m.translation),{data:s,isLoading:h,isError:E,refetch:p}=(0,u.jf)(t),I=s&&Object.keys(s).length>0,O=I?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(_.s,{align:"center",justify:"between",gap:"8",style:{marginBottom:34},children:(0,A.jsxs)(l.t,{children:[(0,A.jsx)(w.J,{topicId:s.id,isDetailPage:!0}),(0,A.jsx)(n.k2,{style:{marginLeft:"auto"},to:(0,d.w)(c.b.admin.topics.edit.page,s.id),children:(0,A.jsx)(T.$,{children:e(o.wD.EDIT)})})]})}),(0,A.jsxs)(_.s,{gap:"20",direction:"row",children:[(0,A.jsx)(j,{topic:s}),(0,A.jsx)(L,{topic:s})]})]}):null,x={empty:{title:e(o.nl.STUB_EMPTY_TOPIC_TITLE),subtitle:e(o.nl.STUB_EMPTY_TOPIC_SUBTITLE),buttonText:e(o.nl.STUB_EMPTY_TOPIC_SUBMIT),onClick:p},error:{onClick:p}};return(0,A.jsx)(m.f,{hasData:I,isLoading:h,hasError:E,stubs:x,content:O,roles:["admin","author"],skeleton:(0,A.jsx)(k,{}),children:({content:t})=>t})}},27003:(t,e,s)=>{s.d(e,{X:()=>a,q:()=>i});const i=5,a={getTopicsList:"topics",getTopicById:"topics/:topicId"}},71997:(t,e,s)=>{s.d(e,{J:()=>p});var i=s(5989),a=s(40432),n=s(43781),r=s(76981),c=s(29436),o=s(43858),d=s(82258),l=s(86820),T=s(56262);const _=t=>{switch(t.message){case"storage.image.url.invalid":return n.A.t(r.wD.TOAST_TOPIC_DELETE_SINGLE_IMAGE_URL_INVALID);case"auth.auth.unauthorized":return n.A.t(r.wD.TOAST_TOPIC_DELETE_AUTH_UNAUTHORIZED);case"auth.user.verified":return n.A.t(r.wD.TOAST_TOPIC_DELETE_AUTH_USER_VERIFIED);case"auth.roles.author_can_change_only_own":return n.A.t(r.wD.TOAST_TOPIC_DELETE_AUTH_ROLES_AUTHOR_CAN_CHANGE_ONLY_OWN);case"topic.topic.not_found":return n.A.t(r.wD.TOAST_TOPIC_DELETE_SINGLE_NOTFOUND);case"storage.image.not_found":return n.A.t(r.wD.TOAST_TOPIC_DELETE_SINGLE_IMAGE_NOT_FOUND);case"topic.question.constraint.foreign_key_violation":case"topic.topic.constraint.foreign_key_violation":return n.A.t(r.wD.TOAST_TOPIC_DELETE_CONSTRAINT_KEY_VIOLATION);default:return n.A.t(r.wD.TOAST_TOPIC_DELETE_SINGLE_FAILED)}},u=a.q.injectEndpoints({endpoints:t=>({deleteTopic:t.mutation({query:t=>({url:(0,d.w)("topics/:topicId",t),method:"DELETE"}),async onQueryStarted(t,{queryFulfilled:e,extra:s}){const i=s;try{await e,T.o.success(n.A.t(r.wD.TOAST_TOPIC_DELETE_SINGLE_SUCCESS)),i.navigate(c.b.admin.topics.page)}catch(t){T.o.error(n.A.t((0,l.h)(t,_)))}},invalidatesTags:[o.K.TOPICS,o.K.TOPIC_DETAIL]})})}),{useDeleteTopicMutation:h}=u;var E=s(74848);const p=({topicId:t,isDetailPage:e=!1,disabled:s=!1})=>{const[a]=h();return(0,E.jsx)(i.e,{onDelete:()=>a(t),isDetailPage:e,disabled:s})}},72711:(t,e,s)=>{s.d(e,{cz:()=>o,jf:()=>d});var i=s(40432),a=s(43858),n=s(82258),r=s(27003);const c=i.q.injectEndpoints({endpoints:t=>({getTopicsList:t.query({query:t=>({url:r.X.getTopicsList,params:t}),providesTags:[a.K.TOPICS]}),getTopicById:t.query({query:t=>({url:(0,n.w)(r.X.getTopicById,t||"")}),providesTags:[a.K.TOPIC_DETAIL]})})}),{useGetTopicsListQuery:o,useGetTopicByIdQuery:d}=c}}]);
2//# sourceMappingURL=5334.a61fec2952ca5c73a567.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.