TelegramPWA/dist/6596.404d2e04de8984ab05fa.js
Alexander Zinchuk 14b8ab39d7 [Build]
2025-07-29 14:50:50 +02:00

2 lines
20 KiB
JavaScript

"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[6596],{1526:(e,t,a)=>{a.d(t,{A:()=>A});var i=a(84051),n=a(87357),r=a(17142),o=a(14242),s=a(4961),c=a(37661),l=a(39351),f=a(59030),d=a(18276),m=a(9267),u=a(64493);const h={options:"OnCj9kef",option:"tpTHQAUF",active:"U_9MXPG5",wideOption:"dJcJl33b",optionTop:"x9G4lqMf",stackedStars:"etXLebjM",stackedStar:"swttXv9P",optionBottom:"tK7La7L2",moreOptions:"AWXBaWLW",iconDown:"zWYHZJmd"};var p=a(20021);const A=(0,i.ph)((({isActive:e,className:t,options:a,selectedStarOption:A,selectedStarCount:b,starsNeeded:g,onClick:v})=>{const _=(0,f.A)(),F=(0,l.A)(),[w,R,T]=(0,c.A)();(0,i.vJ)((()=>{e||T()}),[e]);const[S,y]=(0,i.Kr)((()=>{if(!a)return[void 0,!1];const e=a.reduce(((e,t)=>e.stars>t.stars?e:t)),t=g&&e.stars<g,i=[];let n=0,r=!1;return a.forEach(((e,o)=>{e.isExtended||n++,g&&!t&&e.stars<g||(w||!e.isExtended?i.push({option:e,starsCount:Math.min(n,6),isWide:o===a.length-1}):r=!0)})),[i,r]}),[w,a,g]);return(0,p.FD)("div",{className:(0,n.A)(h.options,t),children:[S?.map((({option:e,starsCount:t,isWide:a})=>{const i=S?.length,c=i%2==0,l=e===A;let f;if(e&&"winners"in e){const t=e.winners.find((e=>e.users===b))||e.winners.reduce(((e,t)=>t.users>e.users?t:e),e.winners[0]);f=t?.perUserStars}return(0,p.FD)("div",{className:(0,n.A)(h.option,!c&&a&&h.wideOption,l&&h.active),onClick:()=>v?.(e),children:[(0,p.FD)("div",{className:h.optionTop,children:["+",(0,o.Sm)(e.stars),(0,p.Y)("div",{className:h.stackedStars,dir:F.isRtl?"ltr":"rtl",children:Array.from({length:t}).map((()=>(0,p.Y)(m.A,{className:h.stackedStar,type:"gold",size:"big"})))})]}),(0,p.Y)("div",{className:h.optionBottom,children:(0,r.vv)(F,e.amount,e.currency)}),(l||A&&"winners"in A)&&Boolean(f)&&(0,p.Y)("div",{className:h.optionBottom,children:(0,p.Y)("div",{className:h.perUserStars,children:(0,s.A)(_("BoostGift.Stars.PerUser",(0,o.Sm)(f)))})})]},e.stars)})),!w&&y&&(0,p.FD)(u.A,{className:h.moreOptions,isText:!0,noForcedUpperCase:!0,onClick:R,children:[_("Stars.Purchase.ShowMore"),(0,p.Y)(d.A,{className:h.iconDown,name:"down"})]})]})}))},2739:(e,t,a)=>{a.d(t,{A:()=>N});var i=a(84051),n=a(14235),r=a(61157);const o={blue:[0,152/255,234/255],blueGradient:[[1/255,88/255,175/255],[103/255,208/255,1]],purple:[150/255,111/255,254/255],purpleGradient:[[107/255,147/255,1],[228/255,106/255,206/255]],gold:[1,191/255,10/255],goldGradient:[[253/255,235/255,50/255],[215/255,89/255,2/255]]},s={particleCount:5,distanceLimit:1,fadeInTime:.05,minLifetime:3,maxLifetime:3,maxStartTimeDelay:0,selfDestroyTime:3,minSpawnRadius:5,maxSpawnRadius:50},c={width:350,height:230,particleCount:100,color:[0,152/255,234/255],speed:18,baseSize:6,minSpawnRadius:35,maxSpawnRadius:70,distanceLimit:.7,fadeInTime:.25,fadeOutTime:1,minLifetime:4,maxLifetime:6,maxStartTimeDelay:3,edgeFadeZone:50,centerShift:[0,0],accelerationFactor:3,selfDestroyTime:0},l=new Map;function f(e,t){let a=l.get(e);return a||(a=function(e){const t=e.getContext("webgl",{alpha:!0,antialias:!1,preserveDrawingBuffer:!1});if(!t)throw new Error("WebGL not supported");const a=u(t,t.VERTEX_SHADER,d),i=u(t,t.FRAGMENT_SHADER,m);if(!a||!i)throw new Error("Failed to create shaders");const o=function(e,t,a){const i=e.createProgram();if(i){if(e.attachShader(i,t),e.attachShader(i,a),e.linkProgram(i),e.getProgramParameter(i,e.LINK_STATUS))return i;e.deleteProgram(i)}}(t,a,i);if(!o)throw new Error("Failed to create shader program");const s=window.devicePixelRatio||1,f=new Map,b={attributes:{startPosition:t.getAttribLocation(o,"a_startPosition"),velocity:t.getAttribLocation(o,"a_velocity"),startTime:t.getAttribLocation(o,"a_startTime"),lifetime:t.getAttribLocation(o,"a_lifetime"),size:t.getAttribLocation(o,"a_size"),baseOpacity:t.getAttribLocation(o,"a_baseOpacity"),color:t.getAttribLocation(o,"a_color")},uniforms:{resolution:t.getUniformLocation(o,"u_resolution"),time:t.getUniformLocation(o,"u_time"),canvasWidth:t.getUniformLocation(o,"u_canvasWidth"),canvasHeight:t.getUniformLocation(o,"u_canvasHeight"),accelerationFactor:t.getUniformLocation(o,"u_accelerationFactor"),fadeInTime:t.getUniformLocation(o,"u_fadeInTime"),fadeOutTime:t.getUniformLocation(o,"u_fadeOutTime"),edgeFadeZone:t.getUniformLocation(o,"u_edgeFadeZone"),rotationMatrices:t.getUniformLocation(o,"u_rotationMatrices"),spawnCenter:t.getUniformLocation(o,"u_spawnCenter")}};let g,v;function _(e){g&&(t.clear(t.COLOR_BUFFER_BIT),f.forEach((a=>{const i=(e-a.startTime)/1e3;t.uniform1f(b.uniforms.time,i),t.uniform1f(b.uniforms.canvasWidth,a.config.width*s),t.uniform1f(b.uniforms.canvasHeight,a.config.height*s),t.uniform1f(b.uniforms.accelerationFactor,a.config.accelerationFactor),t.uniform1f(b.uniforms.fadeInTime,a.config.fadeInTime),t.uniform1f(b.uniforms.fadeOutTime,a.config.fadeOutTime),t.uniform1f(b.uniforms.edgeFadeZone,a.config.edgeFadeZone*s),t.uniform2f(b.uniforms.spawnCenter,a.centerX*s,a.centerY*s),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.startPosition),t.enableVertexAttribArray(b.attributes.startPosition),t.vertexAttribPointer(b.attributes.startPosition,2,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.velocity),t.enableVertexAttribArray(b.attributes.velocity),t.vertexAttribPointer(b.attributes.velocity,2,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.startTime),t.enableVertexAttribArray(b.attributes.startTime),t.vertexAttribPointer(b.attributes.startTime,1,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.lifetime),t.enableVertexAttribArray(b.attributes.lifetime),t.vertexAttribPointer(b.attributes.lifetime,1,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.size),t.enableVertexAttribArray(b.attributes.size),t.vertexAttribPointer(b.attributes.size,1,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.baseOpacity),t.enableVertexAttribArray(b.attributes.baseOpacity),t.vertexAttribPointer(b.attributes.baseOpacity,1,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,a.buffers.color),t.enableVertexAttribArray(b.attributes.color),t.vertexAttribPointer(b.attributes.color,3,t.FLOAT,!1,0,0),t.drawArrays(t.POINTS,0,a.config.particleCount)})),g=requestAnimationFrame(_))}function F(n){const r=f.get(n);r&&(r.selfDestroyTimeout&&clearTimeout(r.selfDestroyTimeout),Object.values(r.buffers).forEach((e=>{e&&t.deleteBuffer(e)})),f.delete(n),0===f.size&&(void 0!==g&&(cancelAnimationFrame(g),g=void 0),v?.(),f.clear(),t.deleteProgram(o),t.deleteShader(a),t.deleteShader(i),l.delete(e)))}return{addSystem:function(a){const i=(0,n.A)(),l={...c,...a},d={startPosition:t.createBuffer(),velocity:t.createBuffer(),startTime:t.createBuffer(),lifetime:t.createBuffer(),size:t.createBuffer(),baseOpacity:t.createBuffer(),color:t.createBuffer()},m={id:i,config:l,buffers:d,startTime:performance.now(),seed:Math.floor(1e6*Math.random()),centerX:l.width/2+l.centerShift[0],centerY:l.height/2+l.centerShift[1],avgDistance:(l.width/2+l.height/2)/2};return f.set(i,m),function(e){const a=new h(e.seed),{config:i}=e,n=new Float32Array(2*i.particleCount),r=new Float32Array(2*i.particleCount),o=new Float32Array(i.particleCount),c=new Float32Array(i.particleCount),l=new Float32Array(i.particleCount),f=new Float32Array(i.particleCount),d=new Float32Array(3*i.particleCount);for(let t=0;t<i.particleCount;t++){const m=a.next()*Math.PI*2,u=a.nextBetween(i.minSpawnRadius,i.maxSpawnRadius),h=Math.cos(m),p=Math.sin(m),b=e.centerX+h*u,g=e.centerY+p*u;n[2*t]=b*s,n[2*t+1]=g*s,c[t]=a.nextBetween(i.minLifetime,i.maxLifetime),o[t]=a.next()*i.maxStartTimeDelay;const v=a.nextBetween(e.avgDistance*i.distanceLimit*.5,e.avgDistance*i.distanceLimit)/c[t]*s;r[2*t]=h*v,r[2*t+1]=p*v;const _=a.next();l[t]=_<.3?.67*i.baseSize*s:_<.7?1.33*i.baseSize*s:2.2*i.baseSize*s,f[t]=a.nextBetween(.3,.8);const F=A(i.color,a);d[3*t]=F[0],d[3*t+1]=F[1],d[3*t+2]=F[2]}t.bindBuffer(t.ARRAY_BUFFER,e.buffers.startPosition),t.bufferData(t.ARRAY_BUFFER,n,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.velocity),t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.startTime),t.bufferData(t.ARRAY_BUFFER,o,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.lifetime),t.bufferData(t.ARRAY_BUFFER,c,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.size),t.bufferData(t.ARRAY_BUFFER,l,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.baseOpacity),t.bufferData(t.ARRAY_BUFFER,f,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,e.buffers.color),t.bufferData(t.ARRAY_BUFFER,d,t.STATIC_DRAW)}(m),function(){let a=0,i=0;f.forEach((e=>{a=Math.max(a,e.config.width),i=Math.max(i,e.config.height)})),0===f.size&&(a=c.width,i=c.height),e.width===a*s&&e.height===i*s||(e.width=a*s,e.height=i*s,e.style.width=a+"px",e.style.height=i+"px"),t.viewport(0,0,e.width,e.height)}(),l.selfDestroyTime&&(m.selfDestroyTimeout=window.setTimeout((()=>{F(i)}),1e3*l.selfDestroyTime)),1===f.size&&(t.useProgram(o),t.uniform2f(b.uniforms.resolution,e.width,e.height),t.uniformMatrix2fv(b.uniforms.rotationMatrices,!1,function(){if(!p){const e=18,t=220;p=new Float32Array(4*e);for(let a=0;a<e;a++){const e=t*Math.PI/180*a,i=Math.cos(e),n=Math.sin(e);p[4*a]=i,p[4*a+1]=n,p[4*a+2]=-n,p[4*a+3]=i}}return p}()),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),t.clearColor(0,0,0,0),v=r.GE.subscribe((()=>{const e=!(0,r.GE)();e&&!g?g=requestAnimationFrame(_):!e&&g&&(cancelAnimationFrame(g),g=void 0)})),g=requestAnimationFrame(_)),()=>F(i)}}}(e),l.set(e,a)),a.addSystem(t)}const d="\n attribute vec2 a_startPosition;\n attribute vec2 a_velocity;\n attribute float a_startTime;\n attribute float a_lifetime;\n attribute float a_size;\n attribute float a_baseOpacity;\n attribute vec3 a_color;\n\n uniform vec2 u_resolution;\n uniform float u_time;\n uniform float u_canvasWidth;\n uniform float u_canvasHeight;\n uniform float u_accelerationFactor;\n uniform float u_fadeInTime;\n uniform float u_fadeOutTime;\n uniform float u_edgeFadeZone;\n uniform mat2 u_rotationMatrices[18];\n uniform vec2 u_spawnCenter;\n\n varying float v_opacity;\n varying vec3 v_color;\n\n void main() {\n float totalAge = u_time - a_startTime;\n float age = mod(totalAge, a_lifetime);\n\n // For the initial animation, fade in all particles\n float globalFadeIn = min(u_time / u_fadeInTime, 1.0);\n\n float lifeRatio = age / a_lifetime;\n\n // Calculate rotation based on completed lifecycles\n float lifecycleCount = floor(totalAge / a_lifetime);\n int rotationIndex = int(mod(lifecycleCount, 18.0));\n\n // Get rotation matrix\n mat2 rotationMatrix = u_rotationMatrices[rotationIndex];\n\n // Rotate start position around spawn center\n vec2 startOffset = a_startPosition - u_spawnCenter;\n vec2 rotatedStartOffset = rotationMatrix * startOffset;\n vec2 rotatedStartPosition = u_spawnCenter + rotatedStartOffset;\n\n // Apply rotation matrix to velocity\n vec2 rotatedVelocity = rotationMatrix * a_velocity;\n\n // Apply shoot-out effect: fast initial speed that slows down\n float speedMultiplier = 1.0 + u_accelerationFactor * exp(-3.0 * lifeRatio);\n\n vec2 position = rotatedStartPosition + rotatedVelocity * age * speedMultiplier;\n\n float opacity = 1.0;\n if (lifeRatio < u_fadeInTime / a_lifetime) {\n opacity = (lifeRatio * a_lifetime) / u_fadeInTime;\n } else if (lifeRatio > 1.0 - u_fadeOutTime / a_lifetime) {\n opacity = (1.0 - lifeRatio) * a_lifetime / u_fadeOutTime;\n }\n opacity *= a_baseOpacity * globalFadeIn;\n\n float distToLeft = position.x;\n float distToRight = u_canvasWidth - position.x;\n float distToTop = position.y;\n float distToBottom = u_canvasHeight - position.y;\n float distToEdge = min(min(distToLeft, distToRight), min(distToTop, distToBottom));\n\n if (distToEdge < u_edgeFadeZone) {\n opacity *= distToEdge / u_edgeFadeZone;\n }\n\n vec2 clipSpace = ((position / u_resolution) * 2.0 - 1.0) * vec2(1, -1);\n gl_Position = vec4(clipSpace, 0, 1);\n gl_PointSize = a_size;\n v_opacity = opacity;\n v_color = a_color;\n }\n",m="\n precision mediump float;\n\n varying float v_opacity;\n varying vec3 v_color;\n\n void main() {\n vec2 coord = gl_PointCoord - vec2(0.5);\n\n // Create a four-pointed star\n float absX = abs(coord.x);\n float absY = abs(coord.y);\n\n // Star parameters\n float innerSize = 0.12; // Size of center square\n float armLength = 0.45; // Length of star arms\n float armWidth = 0.08; // Half-width of star arms at base\n\n float dist = 1.0; // Default to outside\n\n // Center square\n if (absX <= innerSize && absY <= innerSize) {\n dist = max(absX, absY) - innerSize;\n }\n // Horizontal arms (left and right points)\n else if (absY <= armWidth && absX <= armLength) {\n // Taper the arms - they get narrower toward the tips\n float normalizedX = (absX - innerSize) / (armLength - innerSize);\n float taperFactor = 1.0 - normalizedX * 0.8; // Taper to 20% of original width\n float currentArmWidth = armWidth * taperFactor;\n dist = absY - currentArmWidth;\n }\n // Vertical arms (top and bottom points)\n else if (absX <= armWidth && absY <= armLength) {\n // Taper the arms - they get narrower toward the tips\n float normalizedY = (absY - innerSize) / (armLength - innerSize);\n float taperFactor = 1.0 - normalizedY * 0.8; // Taper to 20% of original width\n float currentArmWidth = armWidth * taperFactor;\n dist = absX - currentArmWidth;\n }\n\n // Use smoothstep for anti-aliasing to reduce subpixel artifacts\n float alpha = 1.0 - smoothstep(-0.01, 0.01, dist);\n\n if (alpha <= 0.0) {\n discard;\n }\n\n gl_FragColor = vec4(v_color * v_opacity * alpha, v_opacity * alpha);\n }\n";function u(e,t,a){const i=e.createShader(t);if(i){if(e.shaderSource(i,a),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS))return i;e.deleteShader(i)}}class h{constructor(e){this.seed=e}next(){return this.seed=(9301*this.seed+49297)%233280,this.seed/233280}nextBetween(e,t){return e+(t-e)*this.next()}}let p;function A(e,t){if(Array.isArray(e[0])){const[a,i]=e;return[t.nextBetween(a[0],i[0]),t.nextBetween(a[1],i[1]),t.nextBetween(a[2],i[2])]}return e}var b=a(17712),g=a(66644),v=a(19822),_=a(83108),F=a(64489);const w=a.p+"diamond.9926e8364655a28cecf3.png";var R=a(20021);let T,S=!0;const y=(0,i.ph)((function({onMouseMove:e}){const[t,a]=(0,i.J0)(1),n=(0,b.A)((()=>{T&&(clearTimeout(T),T=void 0),T=window.setTimeout((()=>{const e=Date.now();S=!0,(0,v.S0)((()=>{if(!S)return!1;const t=Math.min((Date.now()-e)/1500,1),i=4*(1-function(e){return 1-(1-e)**2}(t));return a(i),S=t<1&&i>1,S}),g.RK)}),300),S=!1,a(5),e()}));return(0,R.Y)("div",{className:"lIc96mwM",children:(0,R.Y)("div",{className:"vIrSZr0L",onMouseMove:n,children:(0,R.Y)(F.A,{speed:t,size:130,tgsUrl:_.w.Diamond,previewUrl:w,nonInteractive:!0,noLoop:!1})})})}));var C=a(87357);const B={root:"KQ61en7j",star:"no11eFNA",star_purple:"NXn1Bbql",starPurple:"NXn1Bbql"},Y=(0,i.ph)((function({color:e,centerShift:t,onMouseMove:a}){const n=(0,i.li)(),r=(0,b.A)((e=>{const i=e.currentTarget.getBoundingClientRect(),r=i.left+i.width/2+t[0],o=i.top+i.height/2+t[1],s=e.clientX-r,c=e.clientY-o,l=Math.max(-1,Math.min(1,s/50)),f=Math.max(-1,Math.min(1,c/50)),d=40*l,m=40*-f;(0,g.RK)((()=>{n.current.style.transform=`scale(1.1) rotateX(${m}deg) rotateY(${d}deg)`})),a()})),o=(0,b.A)((()=>{(0,g.RK)((()=>{n.current.style.transform=""}))}));return(0,R.Y)("div",{className:B.root,onMouseMove:r,onMouseLeave:o,children:(0,R.Y)("div",{ref:n,className:(0,C.A)(B.star,B[`star_${e}`]),role:"img","aria-label":"Telegram Stars"})})})),x={centerShift:[0,-36]},N=(0,i.ph)((function({model:e,color:t,title:a,description:n,isDisabled:r}){const c=(0,i.li)();(0,i.Nf)((()=>{if(!r)return f(c.current,{color:o[`${t}Gradient`],...x})}),[t,r]);const l=(0,b.A)((()=>{f(c.current,{color:o[`${t}Gradient`],...x,...s})}));return(0,R.FD)("div",{className:"gibpMWRW",children:[(0,R.Y)("canvas",{ref:c,className:"ptK2PtrY"}),"swaying-star"===e?(0,R.Y)(Y,{color:t,centerShift:x.centerShift,onMouseMove:l}):"speeding-diamond"===e&&(0,R.Y)(y,{onMouseMove:l}),(0,R.Y)("h2",{className:"uHi7dzFK",children:a}),(0,R.Y)("div",{className:"y4GHVbyq",children:n})]})}))},5463:(e,t,a)=>{a.d(t,{A:()=>d});var i=a(84051),n=a(87357),r=a(18276),o=a(64493),s=a(22720),c=a(22337),l=a(32581);var f=a(20021);const d=(0,i.ph)((({isOpen:e,listItemData:t,headerIconName:a,header:i,footer:d,buttonText:m,hasBackdrop:u,withSeparator:h,onClose:p,onButtonClick:A,contentClassName:b})=>(0,f.FD)(c.A,{isOpen:e,className:(0,n.A)("LAh8evux",b),contentClassName:"hrizpMDe",hasAbsoluteCloseButton:!0,absoluteCloseButtonColor:u?"translucent-white":void 0,onClose:p,children:[a&&(0,f.Y)("div",{className:"jySLtQNG",children:(0,f.Y)(r.A,{name:a})}),i,(0,f.Y)("div",{children:t?.map((([e,t,a])=>(0,f.FD)(s.A,{isStatic:!0,multiline:!0,icon:e,iconClassName:"hQbEPsTU",children:[(0,f.Y)("span",{className:"title",children:t}),(0,f.Y)("span",{className:"subtitle",children:a})]})))}),h&&(0,f.Y)(l.A,{className:"En1zD2cT"}),d,m&&(0,f.Y)(o.A,{size:"smaller",onClick:A||p,children:m})]})))},34642:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(84051),n=a(87357),r=a(59030),o=a(64493),s=a(22337);var c=a(20021);const l=(0,i.ph)((({confirmButtonText:e,isConfirmDisabled:t,shouldAdaptToSearch:a,withFixedHeight:i,onConfirm:l,withPremiumGradient:f,...d})=>{const m=(0,r.A)(),u=Boolean(e||l);return(0,c.FD)(s.A,{...d,isSlim:!0,className:(0,n.A)(a&&"WGSZ8u75",i&&"CrEsDylb",d.className),contentClassName:(0,n.A)("FuFYE0AA",d.contentClassName),headerClassName:(0,n.A)("iEptOmIp",d.headerClassName),children:[d.children,u&&(0,c.Y)("div",{className:"HqeDTaSr",children:(0,c.Y)(o.A,{withPremiumGradient:f,onClick:l||d.onClose,color:"primary",size:"smaller",disabled:t,children:e||m("Confirm")})})]})}))},70046:(e,t,a)=>{a.d(t,{A:()=>u});var i=a(84051),n=a(13439),r=a(87357),o=a(17712),s=a(21849),c=a(10187),l=a(64493),f=a(22337);const d="Cnh5ENvm";var m=a(20021);const u=(0,i.ph)((({isOpen:e,title:t,tableData:a,headerAvatarPeer:i,header:u,modalHeader:h,footer:p,buttonText:A,className:b,hasBackdrop:g,onClose:v,onButtonClick:_,withBalanceBar:F,isLowStackPriority:w})=>{const{openChat:R}=(0,n.ko)(),T=(0,o.A)((e=>{R({id:e}),v()}));return(0,m.FD)(f.A,{isOpen:e,hasCloseButton:Boolean(t),hasAbsoluteCloseButton:!t,absoluteCloseButtonColor:g?"translucent-white":void 0,isSlim:!0,header:h,title:t,className:b,contentClassName:"KYHkJ9Qf",onClose:v,withBalanceBar:F,isLowStackPriority:w,children:[i&&(0,m.Y)(s.A,{peer:i,size:"jumbo",className:"SHQbPR5Y"}),u,(0,m.Y)("div",{className:"DFRB0Ad4",children:a?.map((([e,t])=>(0,m.FD)(m.FK,{children:[Boolean(e)&&(0,m.Y)("div",{className:(0,r.A)(d,"AwnUe4Qk"),children:e}),(0,m.Y)("div",{className:(0,r.A)(d,"JGH6P9Az",!e&&"UssCZwgy"),children:"object"==typeof t&&"chatId"in t?(0,m.Y)(c.A,{peerId:t.chatId,className:"aS9U4hiQ",forceShowSelf:!0,withEmojiStatus:t.withEmojiStatus,clickArg:t.chatId,onClick:T}):t})]})))}),p,A&&(0,m.Y)(l.A,{className:p?void 0:"cSamlkt9",size:"smaller",onClick:_||v,children:A})]})}))},84991:(e,t,a)=>{a.d(t,{A:()=>f});var i=a(84051),n=a(87357),r=a(39351),o=a(21849),s=a(18276);const c={root:"hyRfEyRz",top:"p_Ny8jqJ",badge:"QRrryqp4",text:"I5jdPgFL"};var l=a(20021);const f=(0,i.ph)((({peer:e,avatarWebPhoto:t,avatarSize:a,text:i,badgeText:f,badgeIcon:d,className:m,badgeClassName:u,badgeIconClassName:h,textClassName:p,onClick:A})=>{const b=(0,r.A)();return(0,l.FD)("div",{className:(0,n.A)(c.root,A&&c.clickable,m),onClick:A,children:[(0,l.FD)("div",{className:c.top,children:[(0,l.Y)(o.A,{size:a,peer:e,webPhoto:t}),f&&(0,l.FD)("div",{className:(0,n.A)(c.badge,u),dir:b.isRtl?"rtl":"ltr",children:[d&&(0,l.Y)(s.A,{name:d,className:h}),f]})]}),i&&(0,l.Y)("p",{className:(0,n.A)(c.text,p),children:i})]})}))}}]);
//# sourceMappingURL=6596.404d2e04de8984ab05fa.js.map