PageSourceSearch

https://cdn2.tenchat.ru/tenchat-main-ssr-nuxt/CfyJNsnl.js

js tenchat.ru collected 2026-09-24 08:45:39 UTC 8,084 bytes, 5 lines download raw bytes

1import{L as N}from"./DyUSqYut.js";import M from"./CV6EvNpp.js";import{_ as j}from"./DtqYZcjI.js";import{i as w,o as u,c as f,b as d,e as k,G as B,w as b,z as m,a as x,g,n as U,t as H,F as R,l as E,r as T,f as V,aL as G,j as O,ar as v,aM as z,aK as I,aN as D,M as F,aO as q,aP as K,K as W}from"./Bhvy1f66.js";import{_ as P}from"./DlAUqK2U.js";import{_ as X}from"./t1vBocPX.js";import{_ as J}from"./ClxLacSj.js";import{e as Q}from"./DnllObNB.js";import{g as Y}from"./U0Vq84Pe.js";import{_ as Z}from"./DAnC-Ci1.js";import{E as ee}from"./CDr1IRf9.js";import{useModal as te}from"./CsxKHwBl.js";const se={};function ne(t,e){const n=M;return u(),w(n,{name:"tc:premium"})}const oe=Object.assign(P(se,[["render",ne]]),{__name:"UserStatusPremium"}),ae={},re={class:"text-sm text-blue-300"};function ie(t,e){const n=M;return u(),f("div",re,[d(n,{name:"tc:verified"})])}const ce=Object.assign(P(ae,[["render",ie]]),{__name:"UserStatusVerified"}),le={class:"flex w-fit items-center gap-1"},ue=k({__name:"UserProfileStatus",props:{isVefified:{type:Boolean},isPremium:{type:Boolean}},setup(t){return(e,n)=>{const o=oe,r=X,i=ce;return u(),f("div",le,[t.isPremium?(u(),w(r,{key:0,text:"Владелец Premium"},{default:b(()=>[d(o,{class:"shrink-0"})]),_:1})):B("",!0),t.isVefified?(u(),w(r,{key:1,text:"Официальная страница"},{default:b(()=>[d(i,{class:"shrink-0"})]),_:1})):B("",!0)])}}}),me=Object.assign(ue,{__name:"UserProfileStatus"}),de={class:"tc-success-card-shadow flex h-full w-115 flex-col justify-between gap-6 rounded-[20px] border-2 border-gray-40 px-8 pb-6 pt-5 max-xl:pt-4 max-md:w-82 max-md:p-5 max-md:pt-4"},_e={class:"flex flex-col gap-4 max-xl:gap-4.5 max-md:gap-3"},fe={class:"h-3.5 w-4 text-2xl text-gray-60 max-md:-ml-1"},pe=["innerHTML"],xe={class:"group flex w-full min-w-0 flex-col"},he={class:"inline-flex items-center gap-1.5"},ge={class:"truncate text-lg font-semibold text-gray-900 underline-offset-2 group-hover:underline max-md:text-base"},ve={class:"text-sm text-gray-300"},ye=k({__name:"StoryMainSuccessCard",props:{story:{}},setup(t){const e=t,n=m(()=>{const _=e.story?.history?.length||0;return _<=150?"text-2xl max-md:text-xl":_<=250?"text-xl max-md:text-lg":_<=350?"text-lg max-md:text-base":"text-base max-md:text-sm"}),o=m(()=>Y(e.story||{})),r=m(()=>e.story?.position?.name||""),i=m(()=>!!e.story?.confirmationType),p=m(()=>Q(e.story?.history||""));return(_,s)=>{const a=M,l=j,c=me,h=J;return u(),f("div",de,[x("div",_e,[x("div",fe,[d(a,{name:"dashicons:editor-quote"})]),x("blockquote",{class:U(["font-semibold",g(n)]),innerHTML:g(p)},null,10,pe)]),d(h,{to:t.story?.username,target:"_blank",external:"",class:"flex items-start gap-3"},{default:b(()=>[d(l,{width:48,height:48,"size-class":"size-12",rounded:"full",picture:t.story?.userPicture,alt:`Аватар пользователя ${g(o)}`},null,8,["picture","alt"]),x("div",xe,[x("div",he,[x("p",ge,H(g(o)),1),d(c,{class:"inline","is-vefified":g(i)},null,8,["is-vefified"])]),x("p",ve,H(g(r)),1)])]),_:1},8,["to"])])}}}),be=Object.assign(P(ye,[["__scopeId","data-v-6fd547ef"]]),{__name:"StoryMainSuccessCard"}),Se={class:"grid"},we={class:"flex max-w-full flex-col overflow-hidden max-sm:mb-6 max-sm:pb-6"},ke=k({__name:"StoryMainSuccessSwiper",props:{stories:{}},setup(t){const e={slidesPerView:"auto",spaceBetween:0,loop:!0,speed:500,centeredSlides:!0,pagination:{enabled:!0,clickable:!0}};return(n,o)=>{const r=be,i=Z,p=ee;return u(),f("div",Se,[x("div",we,[d(i,{"pause-on-hover":"","marquee-class":"pb-6 pt-1",class:"max-md:hidden","slide-change-duration":60},{default:b(()=>[(u(!0),f(R,null,E(t.stories,_=>(u(),f("div",{key:_.history,class:"h-full! w-fit! grow list-none"},[d(r,{story:_,class:"mr-9 size-full max-xl:mr-6 max-md:mx-2.5 max-sm:mx-2"},null,8,["story"])]))),128))]),_:1}),d(p,{class:"hidden max-md:flex",options:e,"pagination-class":`
2          tc-wide-thin-active-pagination max-w-full w-86.5! flex gap-2.5 flex-nowrap
3          mx-auto -bottom-4! inset-x-0
4          max-sm:w-82! max-sm:-bottom-6!
5        `},{"swiper-slides":b(({slideClass:_})=>[(u(!0),f(R,null,E(t.stories,s=>(u(),f("div",{key:s.history,class:U(["h-full! w-fit! grow select-none list-none",_])},[d(r,{story:s,class:"mr-9 size-full max-xl:mr-6 max-md:mx-2.5 max-sm:mx-2"},null,8,["story"])],2))),128))]),_:1})])])}}}),$e=Object.assign(ke,{__name:"StoryMainSuccessSwiper"}),Be={key:0,class:"flex h-100 w-full items-center justify-center max-md:h-105"},Me=k({__name:"StoryMainSuccessBanner",props:{loading:{type:Boolean},stories:{}},setup(t){return(e,n)=>{const o=N,r=$e,i=T("block-overflow-gradient");return t.loading?(u(),f("div",Be,[d(o)])):t.stories?.length?V((u(),w(r,{
5key:1,stories:t.stories,class:"relative"},null,8,["stories"])),[[i,{direction:"hor",width:300,classes:"max-xl:hidden pointer-events-none"}]]):B("",!0)}}}),We=Object.assign(Me,{__name:"StoryMainSuccessBanner"});function Pe(t={}){const e=te({...t,attrs:{...t.attrs}});function n(o){return e.patchOptions(o),e.open()}return{...e,openWithOptions:n}}const L=G(()=>{const t=O(!1),e=O({});function n(s,a){s&&(e.value[s]||(e.value[s]=[]),e.value[s].unshift(a))}function o(s){return[s.fullPath,s.name].some(l=>l&&!!e.value[l]&&e.value[l].some(({condition:c})=>v(c)))}function r(s){let a=[];return s.fullPath&&e.value[s.fullPath]&&(a=a.concat(e.value[s.fullPath])),s.name&&e.value[s.name]&&(a=a.concat(e.value[s.name])),a.find(({condition:l})=>v(l))}function i(s,a){e.value?.[s]?.splice(a,1),e.value?.[s]?.length===0&&delete e.value?.[s]}async function p(s){try{t.value=!0;for(const a of[s.fullPath,s.name]){if(!a||!e.value?.[a])continue;const l=[];for(let c=0;c<(e.value[a]?.length??0);c++){const{condition:h,handler:S,stopAfterFirstHandlerExecute:C}=e.value[a][c];if(v(h)&&(await z(S,s),l.push(c),C))break}l.forEach(c=>{e.value?.[a]?.[c].notRemoveAfterExecute||i(a,c)})}}finally{t.value=!1}}function _(s,a={}){const{isPathChange:l=!0,isRouteChange:c=!0,key:h,force:S}=a;if(t.value&&!S)return;(l&&c?[s.fullPath,s.name]:l&&!c?[s.fullPath]:[]).forEach(y=>{if(!y||!e.value[y])return;if(!h||S){delete e.value[y];return}const $=e.value[y]?.findIndex(({key:A})=>A===h);$===void 0||$===-1||i(y,$)})}return{sharedStopGoBackConditionStore:e,addRouteHandler:n,runRouteHandlers:p,removeRouteHandlers:_,shouldStopGoBackForRoute:o,getGoBackConditionStoreItem:r}});function Ce(t){const{addRouteHandler:e}=L(),n=I(),o=t.manualRouteName?t.manualRouteName:t.shouldUseRouteName?n.name:n.fullPath;o&&e(o,t)}const He=767,Re=1279,Ee=(t=m(()=>!0))=>{const e=D({mobile:He+1,tablet:Re+1}),n=e.smaller("mobile"),o=e.between("mobile","tablet"),r=e.greaterOrEqual("tablet");return{isMobile:m(()=>v(t)&&n.value),isTablet:m(()=>v(t)&&o.value),isDesktop:m(()=>v(t)&&r.value)}};function Oe(){return parseInt(`${Date.now()%1e7}${Math.round(Math.random()*1e7)}`)}function Xe(t={}){const{$safeExecute:e}=F(),n=`modal-${Oe()}`,o=I(),{isDesktop:r}=Ee(),{removeRouteHandlers:i}=L(),p=Pe({...t,attrs:{titleClass:"text-xl font-semibold leading-7 max-mobile:text-lg",btnCloseClass:"bg-white/35 text-white -mr-2 max-tablet:hidden",...t.attrs,onOpened(){e(()=>t.attrs?.onOpened?.()),Ce({key:n,condition:m(()=>!r.value),handler:p.close,stopAfterFirstHandlerExecute:!0})},onClosed(){e(()=>t.attrs?.onClosed?.()),i(o,{key:n})}}});return{...p}}function Ue(t,e={}){return t.fetch("/gostinder/api/web/dictionary/users-success-histories",{...e,method:"GET"})}function Ie(t){const{state:e,reset:n}=q({getInitialState(){return{data:void 0,promise:void 0,status:"idle"}}}),o=m(()=>e.status==="loading");async function r(){try{e.status="loading",e.promise=t();const i=await e.promise;return Object.assign(e,{data:i}),e.status="loaded",e.data}catch(i){throw e.status="error",e.data=void 0,i}finally{e.promise=void 0}}return{...K(e),isLoading:o,load:r,reset:n}}const Je=W("usersSuccessHistoriesStore",()=>{const{data:t,isLoading:e,load:n,reset:o}=Ie(()=>Ue({fetch:$fetch})),r=m(()=>t.value?.slice(0,10)??[]),i=m(()=>t.value?.slice(11)??[]);return{successStories:r,partnersStories:i,isLoading:e,getHistories:n,$reset:o}});export{me as _,ce as a,Je as b,We as c,Ee as d,Pe as e,Xe as u};

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.