@amityco/ui-kit-open-source 3.13.1 → 3.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import J, { createContext, forwardRef, useState, useRef, memo, useImperativeHandle, useMemo, useEffect, useContext, useCallback, Fragment, useDebugValue, createElement } from 'react';
2
2
  import { PostContentType, CommentRepository, CommunityRepository, SubscriptionLevels, ChannelRepository, UserRepository, getUserTopic, FileRepository, PostRepository, CommunityPostSettings, FileType, PollRepository, Client, AdRepository, subscribeTopic, ReactionRepository, StoryRepository, getCommunityStoriesTopic, getPostTopic, MessageRepository, StreamRepository, CategoryRepository, getCommentTopic, SubChannelRepository, FeedRepository, getMessageTopic } from '@amityco/ts-sdk';
3
3
  import * as ao from 'stylis';
4
- import BW, { createPortal } from 'react-dom';
4
+ import LW, { createPortal } from 'react-dom';
5
5
  import lo from 'clsx';
6
6
  import { parseToHsl, darken, hslToColorString, lighten } from 'polished';
7
7
  import { FileTrigger, Button } from 'react-aria-components';
@@ -18,7 +18,7 @@ import OB from 'linkify-react';
18
18
  import rL from 'react-timeago';
19
19
  import { useMedia } from 'react-use';
20
20
  import { SizeMe } from 'react-sizeme';
21
- import H1 from 'hls.js';
21
+ import U1 from 'hls.js';
22
22
  import CD from 'filesize';
23
23
  import { Controller, useForm } from 'react-hook-form';
24
24
  import { ErrorMessage } from '@hookform/error-message';
@@ -28,12 +28,12 @@ import { Popover } from 'react-tiny-popover';
28
28
  import { zodResolver } from '@hookform/resolvers/zod';
29
29
  import * as ur from 'zod';
30
30
  import { z } from 'zod';
31
- import gj from 'react-use/lib/useMeasure';
32
- import yj from 'react-use/lib/useScroll';
31
+ import yj from 'react-use/lib/useMeasure';
32
+ import hj from 'react-use/lib/useScroll';
33
33
  import er from 'dayjs';
34
34
  import Ki from 'react-modal-sheet';
35
- import xR from 'react-insta-stories';
36
- import UX from 'colorthief';
35
+ import bR from 'react-insta-stories';
36
+ import zX from 'colorthief';
37
37
  import { LexicalComposer } from '@lexical/react/LexicalComposer';
38
38
  import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
39
39
  import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin';
@@ -49,18 +49,18 @@ import { AutoLinkPlugin } from '@lexical/react/LexicalAutoLinkPlugin';
49
49
  import { LinkPlugin } from '@lexical/react/LexicalLinkPlugin';
50
50
  import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
51
51
  import { LexicalTypeaheadMenuPlugin, MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin';
52
- import oQ from 'dayjs/plugin/relativeTime';
53
- import rQ from 'dayjs/plugin/updateLocale';
52
+ import rQ from 'dayjs/plugin/relativeTime';
53
+ import nQ from 'dayjs/plugin/updateLocale';
54
54
  import { Drawer } from 'vaul';
55
55
  import 'react-aria';
56
56
  import { useMotionValue, motion } from 'framer-motion';
57
57
  import { trim } from 'lodash';
58
58
  import '@radix-ui/react-tabs';
59
59
 
60
- var TS=Object.create;var o0=Object.defineProperty,NS=Object.defineProperties,kS=Object.getOwnPropertyDescriptor,ES=Object.getOwnPropertyDescriptors,AS=Object.getOwnPropertyNames,pm=Object.getOwnPropertySymbols,BS=Object.getPrototypeOf,r0=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable;var S4=(e,t,o)=>t in e?o0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))r0.call(t,o)&&S4(e,o,t[o]);if(pm)for(var o of pm(t))T4.call(t,o)&&S4(e,o,t[o]);return e},S=(e,t)=>NS(e,ES(t));(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,o)=>(typeof require!="undefined"?require:t)[o]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,t)=>{var o={};for(var r in e)r0.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&pm)for(var r of pm(e))t.indexOf(r)<0&&T4.call(e,r)&&(o[r]=e[r]);return o};var FS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var DS=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of AS(t))!r0.call(e,n)&&n!==o&&o0(e,n,{get:()=>t[n],enumerable:!(r=kS(t,n))||r.enumerable});return e};var VS=(e,t,o)=>(o=e!=null?TS(BS(e)):{},DS(!e||!e.__esModule?o0(o,"default",{value:e,enumerable:!0}):o,e));var n0=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var Kt=(e,t,o)=>(n0(e,t,"read from private field"),o?o.call(e):t.get(e)),Ht=(e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o);},gn=(e,t,o,r)=>(n0(e,t,"write to private field"),t.set(e,o),o);var Io=(e,t,o)=>(n0(e,t,"access private method"),o);var P=(e,t,o)=>new Promise((r,n)=>{var i=l=>{try{s(o.next(l));}catch(c){n(c);}},a=l=>{try{s(o.throw(l));}catch(c){n(c);}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((o=o.apply(e,t)).next());});var A4=FS((_oe,E4)=>{E4.exports=function(t,o,r,n){var i=r?r.call(n,t,o):void 0;if(i!==void 0)return !!i;if(t===o)return !0;if(typeof t!="object"||!t||typeof o!="object"||!o)return !1;var a=Object.keys(t),s=Object.keys(o);if(a.length!==s.length)return !1;for(var l=Object.prototype.hasOwnProperty.bind(o),c=0;c<a.length;c++){var p=a[c];if(!l(p))return !1;var u=t[p],f=o[p];if(i=r?r.call(n,u,f,p):void 0,i===!1||i===void 0&&u!==f)return !1}return !0};});var vt=function(){return vt=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i]);}return t},vt.apply(this,arguments)};function yn(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function N4(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var OS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,k4=N4(function(e){return OS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});VS(A4());var B4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Zr=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Y4="active",xm="data-styled-version",ga="6.1.11",y0=`/*!sc*/
60
+ var TS=Object.create;var o0=Object.defineProperty,NS=Object.defineProperties,kS=Object.getOwnPropertyDescriptor,ES=Object.getOwnPropertyDescriptors,AS=Object.getOwnPropertyNames,pm=Object.getOwnPropertySymbols,BS=Object.getPrototypeOf,r0=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable;var S4=(e,t,o)=>t in e?o0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))r0.call(t,o)&&S4(e,o,t[o]);if(pm)for(var o of pm(t))T4.call(t,o)&&S4(e,o,t[o]);return e},S=(e,t)=>NS(e,ES(t));(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,o)=>(typeof require!="undefined"?require:t)[o]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var w=(e,t)=>{var o={};for(var r in e)r0.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&pm)for(var r of pm(e))t.indexOf(r)<0&&T4.call(e,r)&&(o[r]=e[r]);return o};var FS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var DS=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of AS(t))!r0.call(e,n)&&n!==o&&o0(e,n,{get:()=>t[n],enumerable:!(r=kS(t,n))||r.enumerable});return e};var VS=(e,t,o)=>(o=e!=null?TS(BS(e)):{},DS(!e||!e.__esModule?o0(o,"default",{value:e,enumerable:!0}):o,e));var n0=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var Kt=(e,t,o)=>(n0(e,t,"read from private field"),o?o.call(e):t.get(e)),Ht=(e,t,o)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,o);},gn=(e,t,o,r)=>(n0(e,t,"write to private field"),t.set(e,o),o);var Io=(e,t,o)=>(n0(e,t,"access private method"),o);var P=(e,t,o)=>new Promise((r,n)=>{var i=l=>{try{s(o.next(l));}catch(c){n(c);}},a=l=>{try{s(o.throw(l));}catch(c){n(c);}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((o=o.apply(e,t)).next());});var A4=FS((Moe,E4)=>{E4.exports=function(t,o,r,n){var i=r?r.call(n,t,o):void 0;if(i!==void 0)return !!i;if(t===o)return !0;if(typeof t!="object"||!t||typeof o!="object"||!o)return !1;var a=Object.keys(t),s=Object.keys(o);if(a.length!==s.length)return !1;for(var l=Object.prototype.hasOwnProperty.bind(o),c=0;c<a.length;c++){var p=a[c];if(!l(p))return !1;var u=t[p],f=o[p];if(i=r?r.call(n,u,f,p):void 0,i===!1||i===void 0&&u!==f)return !1}return !0};});var vt=function(){return vt=Object.assign||function(t){for(var o,r=1,n=arguments.length;r<n;r++){o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i]);}return t},vt.apply(this,arguments)};function yn(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function N4(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var OS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,k4=N4(function(e){return OS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});VS(A4());var B4={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Zr=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Y4="active",xm="data-styled-version",ga="6.1.11",y0=`/*!sc*/
61
61
  `,wm=typeof window!="undefined"&&"HTMLElement"in window,$S=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process!="undefined"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production");var F4=/invalid hook call/i,um=new Set,ZS=function(e,t){if(process.env.NODE_ENV!=="production"){var o=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(o,` has been created dynamically.
62
62
  `)+`You may see this warning because you've called styled inside another component.
63
- To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var i=!0;console.error=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];F4.test(a)?(i=!1,um.delete(r)):n.apply(void 0,yn([a],s,!1));},useRef(),i&&!um.has(r)&&(console.warn(r),um.add(r));}catch(a){F4.test(a.message)&&um.delete(r);}finally{console.error=n;}}},_m=Object.freeze([]),ya=Object.freeze({});function qS(e,t,o){return o===void 0&&(o=ya),e.theme!==o.theme&&e.theme||t||o.theme}var l0=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),YS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,WS=/(^-|-$)/g;function D4(e){return e.replace(YS,"-").replace(WS,"")}var QS=/(a)(d)/gi,fm=52,V4=function(e){return String.fromCharCode(e+(e>25?39:97))};function m0(e){var t,o="";for(t=Math.abs(e);t>fm;t=t/fm|0)o=V4(t%fm)+o;return (V4(t%fm)+o).replace(QS,"$1-$2")}var i0,W4=5381,fi=function(e,t){for(var o=t.length;o;)e=33*e^t.charCodeAt(--o);return e},Q4=function(e){return fi(W4,e)};function K4(e){return m0(Q4(e)>>>0)}function J4(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function a0(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var X4=typeof Symbol=="function"&&Symbol.for,R4=X4?Symbol.for("react.memo"):60115,KS=X4?Symbol.for("react.forward_ref"):60112,JS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},XS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RS=((i0={})[KS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i0[R4]=e6,i0);function O4(e){return ("type"in(t=e)&&t.type.$$typeof)===R4?e6:"$$typeof"in e?RS[e.$$typeof]:JS;var t;}var eT=Object.defineProperty,tT=Object.getOwnPropertyNames,H4=Object.getOwnPropertySymbols,oT=Object.getOwnPropertyDescriptor,rT=Object.getPrototypeOf,U4=Object.prototype;function t6(e,t,o){if(typeof t!="string"){if(U4){var r=rT(t);r&&r!==U4&&t6(e,r,o);}var n=tT(t);H4&&(n=n.concat(H4(t)));for(var i=O4(e),a=O4(t),s=0;s<n.length;++s){var l=n[s];if(!(l in XS||o&&o[l]||a&&l in a||i&&l in i)){var c=oT(t,l);try{eT(e,l,c);}catch(p){}}}}return e}function yi(e){return typeof e=="function"}function h0(e){return typeof e=="object"&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function d1(e,t){if(e.length===0)return "";for(var o=e[0],r=1;r<e.length;r++)o+=e[r];return o}function ha(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function d0(e,t,o){if(o===void 0&&(o=!1),!o&&!ha(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=d0(e[r],t[r]);else if(ha(t))for(var r in t)e[r]=d0(e[r],t[r]);return e}function C0(e,t){Object.defineProperty(e,"toString",{value:t});}var nT=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
63
+ To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var i=!0;console.error=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];F4.test(a)?(i=!1,um.delete(r)):n.apply(void 0,yn([a],s,!1));},useRef(),i&&!um.has(r)&&(console.warn(r),um.add(r));}catch(a){F4.test(a.message)&&um.delete(r);}finally{console.error=n;}}},_m=Object.freeze([]),ya=Object.freeze({});function qS(e,t,o){return o===void 0&&(o=ya),e.theme!==o.theme&&e.theme||t||o.theme}var l0=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),YS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,WS=/(^-|-$)/g;function D4(e){return e.replace(YS,"-").replace(WS,"")}var QS=/(a)(d)/gi,fm=52,V4=function(e){return String.fromCharCode(e+(e>25?39:97))};function m0(e){var t,o="";for(t=Math.abs(e);t>fm;t=t/fm|0)o=V4(t%fm)+o;return (V4(t%fm)+o).replace(QS,"$1-$2")}var i0,W4=5381,fi=function(e,t){for(var o=t.length;o;)e=33*e^t.charCodeAt(--o);return e},Q4=function(e){return fi(W4,e)};function K4(e){return m0(Q4(e)>>>0)}function J4(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function a0(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var X4=typeof Symbol=="function"&&Symbol.for,R4=X4?Symbol.for("react.memo"):60115,KS=X4?Symbol.for("react.forward_ref"):60112,JS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},XS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RS=((i0={})[KS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i0[R4]=e6,i0);function O4(e){return ("type"in(t=e)&&t.type.$$typeof)===R4?e6:"$$typeof"in e?RS[e.$$typeof]:JS;var t;}var eT=Object.defineProperty,tT=Object.getOwnPropertyNames,H4=Object.getOwnPropertySymbols,oT=Object.getOwnPropertyDescriptor,rT=Object.getPrototypeOf,U4=Object.prototype;function t6(e,t,o){if(typeof t!="string"){if(U4){var r=rT(t);r&&r!==U4&&t6(e,r,o);}var n=tT(t);H4&&(n=n.concat(H4(t)));for(var i=O4(e),a=O4(t),s=0;s<n.length;++s){var l=n[s];if(!(l in XS||o&&o[l]||a&&l in a||i&&l in i)){var c=oT(t,l);try{eT(e,l,c);}catch(p){}}}}return e}function yi(e){return typeof e=="function"}function h0(e){return typeof e=="object"&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function c1(e,t){if(e.length===0)return "";for(var o=e[0],r=1;r<e.length;r++)o+=e[r];return o}function ha(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function d0(e,t,o){if(o===void 0&&(o=!1),!o&&!ha(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=d0(e[r],t[r]);else if(ha(t))for(var r in t)e[r]=d0(e[r],t[r]);return e}function C0(e,t){Object.defineProperty(e,"toString",{value:t});}var nT=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
64
64
 
65
65
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
66
66
 
@@ -101,7 +101,7 @@ as for instance in your render method then you may be running into this limitati
101
101
 
102
102
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
103
103
  Has styled-components' style tag been unmounted or altered by another script?
104
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function iT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=e[0],r=[],n=1,i=e.length;n<i;n+=1)r.push(e[n]);return r.forEach(function(a){o=o.replace(/%[a-z]/,a);}),o}function io(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(iT.apply(void 0,yn([nT[e]],t,!1)).trim())}var aT=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t;}return e.prototype.indexOfGroup=function(t){for(var o=0,r=0;r<t;r++)o+=this.groupSizes[r];return o},e.prototype.insertRules=function(t,o){if(t>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;t>=i;)if((i<<=1)<0)throw io(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0;}for(var s=this.indexOfGroup(t+1),l=(a=0,o.length);a<l;a++)this.tag.insertRule(s,o[a])&&(this.groupSizes[t]++,s++);},e.prototype.clearGroup=function(t){if(t<this.length){var o=this.groupSizes[t],r=this.indexOfGroup(t),n=r+o;this.groupSizes[t]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r);}},e.prototype.getGroup=function(t){var o="";if(t>=this.length||this.groupSizes[t]===0)return o;for(var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r,a=n;a<i;a++)o+="".concat(this.tag.getRule(a)).concat(y0);return o},e}(),sT=1<<30,Cm=new Map,bm=new Map,vm=1,gm=function(e){if(Cm.has(e))return Cm.get(e);for(;bm.has(vm);)vm++;var t=vm++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>sT))throw io(16,"".concat(t));return Cm.set(e,t),bm.set(t,e),t},lT=function(e,t){vm=t+1,Cm.set(e,t),bm.set(t,e);},mT="style[".concat(Zr,"][").concat(xm,'="').concat(ga,'"]'),dT=new RegExp("^".concat(Zr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cT=function(e,t,o){for(var r,n=o.split(","),i=0,a=n.length;i<a;i++)(r=n[i])&&e.registerName(t,r);},pT=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(y0),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(dT);if(l){var c=0|parseInt(l[1],10),p=l[2];c!==0&&(lT(p,c),cT(e,p,l[3]),e.getTag().insertRules(c,n)),n.length=0;}else n.push(s);}}};function c0(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var o6=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(Zr,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(Zr,Y4),r.setAttribute(xm,ga);var a=c0();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},uT=function(){function e(t){this.element=o6(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var r=document.styleSheets,n=0,i=r.length;n<i;n++){var a=r[n];if(a.ownerNode===o)return a}throw io(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(t,o){try{return this.sheet.insertRule(o,t),this.length++,!0}catch(r){return !1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--;},e.prototype.getRule=function(t){var o=this.sheet.cssRules[t];return o&&o.cssText?o.cssText:""},e}(),fT=function(){function e(t){this.element=o6(t),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(t,o){if(t<=this.length&&t>=0){var r=document.createTextNode(o);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--;},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),gT=function(){function e(t){this.rules=[],this.length=0;}return e.prototype.insertRule=function(t,o){return t<=this.length&&(this.rules.splice(t,0,o),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--;},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),z4=wm,yT={isServer:!wm,useCSSOMInjection:!$S},c1=function(){function e(t,o,r){t===void 0&&(t=ya),o===void 0&&(o={});var n=this;this.options=vt(vt({},yT),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&wm&&z4&&(z4=!1,function(i){for(var a=document.querySelectorAll(mT),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(Zr)!==Y4&&(pT(i,c),c.parentNode&&c.parentNode.removeChild(c));}}(this)),C0(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",c=function(u){var f=function(x){return bm.get(x)}(u);if(f===void 0)return "continue";var g=i.names.get(f),h=a.getGroup(u);if(g===void 0||h.length===0)return "continue";var C="".concat(Zr,".g").concat(u,'[id="').concat(f,'"]'),y="";g!==void 0&&g.forEach(function(x){x.length>0&&(y+="".concat(x,","));}),l+="".concat(h).concat(C,'{content:"').concat(y,'"}').concat(y0);},p=0;p<s;p++)c(p);return l}(n)});}return e.registerId=function(t){return gm(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(vt(vt({},this.options),t),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(o){var r=o.useCSSOMInjection,n=o.target;return o.isServer?new gT(n):r?new uT(n):new fT(n)}(this.options),new aT(t)));var t;},e.prototype.hasNameForId=function(t,o){return this.names.has(t)&&this.names.get(t).has(o)},e.prototype.registerName=function(t,o){if(gm(t),this.names.has(t))this.names.get(t).add(o);else {var r=new Set;r.add(o),this.names.set(t,r);}},e.prototype.insertRules=function(t,o,r){this.registerName(t,o),this.getTag().insertRules(gm(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(gm(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),hT=/&/g,CT=/^\s*\/\/.*$/gm;function r6(e,t){return e.map(function(o){return o.type==="rule"&&(o.value="".concat(t," ").concat(o.value),o.value=o.value.replaceAll(",",",".concat(t," ")),o.props=o.props.map(function(r){return "".concat(t," ").concat(r)})),Array.isArray(o.children)&&o.type!=="@keyframes"&&(o.children=r6(o.children,t)),o})}function n6(e){var t,o,r,n=ya,i=n.options,a=i===void 0?ya:i,s=n.plugins,l=s===void 0?_m:s,c=function(f,g,h){return h.startsWith(o)&&h.endsWith(o)&&h.replaceAll(o,"").length>0?".".concat(t):f},p=l.slice();p.push(function(f){f.type===ao.RULESET&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(hT,o).replace(r,c));}),a.prefix&&p.push(ao.prefixer),p.push(ao.stringify);var u=function(f,g,h,C){g===void 0&&(g=""),h===void 0&&(h=""),C===void 0&&(C="&"),t=C,o=g,r=new RegExp("\\".concat(o,"\\b"),"g");var y=f.replace(CT,""),x=ao.compile(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);a.namespace&&(x=r6(x,a.namespace));var v=[];return ao.serialize(x,ao.middleware(p.concat(ao.rulesheet(function(_){return v.push(_)})))),v};return u.hash=l.length?l.reduce(function(f,g){return g.name||io(15),fi(f,g.name)},W4).toString():"",u}var vT=new c1,p0=n6(),v0=J.createContext({shouldForwardProp:void 0,styleSheet:vT,stylis:p0});v0.Consumer;J.createContext(void 0);function u0(){return useContext(v0)}var f0=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=p0);var a=r.name+i.hash;n.hasNameForId(r.id,a)||n.insertRules(r.id,a,i(r.rules,a,"@keyframes"));},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=o,C0(this,function(){throw io(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=p0),this.name+t.hash},e}(),IT=function(e){return e>="A"&&e<="Z"};function j4(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;IT(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var i6=function(e){return e==null||e===!1||e===""},a6=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!i6(i)&&(Array.isArray(i)&&i.isCss||yi(i)?r.push("".concat(j4(n),":"),i,";"):ha(i)?r.push.apply(r,yn(yn(["".concat(n," {")],a6(i),!1),["}"],!1)):r.push("".concat(j4(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in B4||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function hn(e,t,o,r){if(i6(e))return [];if(h0(e))return [".".concat(e.styledComponentId)];if(yi(e)){if(!yi(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return [e];var n=e(t);return process.env.NODE_ENV==="production"||typeof n!="object"||Array.isArray(n)||n instanceof f0||ha(n)||n===null||console.error("".concat(J4(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),hn(n,t,o,r)}var i;return e instanceof f0?o?(e.inject(o,r),[e.getName(r)]):[e]:ha(e)?a6(e):Array.isArray(e)?Array.prototype.concat.apply(_m,e.map(function(a){return hn(a,t,o,r)})):[e.toString()]}function s6(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(yi(o)&&!h0(o))return !1}return !0}var wT=Q4(ga),_T=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&s6(t),this.componentId=o,this.baseHash=fi(wT,o),this.baseStyle=r,c1.registerId(o);}return e.prototype.generateAndInjectStyles=function(t,o,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,o,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&o.hasNameForId(this.componentId,this.staticRulesId))n=gi(n,this.staticRulesId);else {var i=d1(hn(this.rules,t,o,r)),a=m0(fi(this.baseHash,i)>>>0);if(!o.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);o.insertRules(this.componentId,a,s);}n=gi(n,a),this.staticRulesId=a;}else {for(var l=fi(this.baseHash,r.hash),c="",p=0;p<this.rules.length;p++){var u=this.rules[p];if(typeof u=="string")c+=u,process.env.NODE_ENV!=="production"&&(l=fi(l,u));else if(u){var f=d1(hn(u,t,o,r));l=fi(l,f+p),c+=f;}}if(c){var g=m0(l>>>0);o.hasNameForId(this.componentId,g)||o.insertRules(this.componentId,g,r(c,".".concat(g),void 0,this.componentId)),n=gi(n,g);}}return n},e}(),Im=J.createContext(void 0);Im.Consumer;function l6(e){var t=J.useContext(Im),o=useMemo(function(){return function(r,n){if(!r)throw io(14);if(yi(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw io(7);return i}if(Array.isArray(r)||typeof r!="object")throw io(8);return n?vt(vt({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?J.createElement(Im.Provider,{value:o},e.children):null}var s0={},G4=new Set;function MT(e,t,o){var r=h0(e),n=e,i=!a0(e),a=t.attrs,s=a===void 0?_m:a,l=t.componentId,c=l===void 0?function(M,b){var w=typeof M!="string"?"sc":D4(M);s0[w]=(s0[w]||0)+1;var T="".concat(w,"-").concat(K4(ga+w+s0[w]));return b?"".concat(b,"-").concat(T):T}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(M){return a0(M)?"styled.".concat(M):"Styled(".concat(J4(M),")")}(e):p,f=t.displayName&&t.componentId?"".concat(D4(t.displayName),"-").concat(t.componentId):t.componentId||c,g=r&&n.attrs?n.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&n.shouldForwardProp){var C=n.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;h=function(M,b){return C(M,b)&&y(M,b)};}else h=C;}var x=new _T(o,f,r?n.componentStyle:void 0);function v(M,b){return function(w,T,k){var N=w.attrs,F=w.componentStyle,Z=w.defaultProps,$=w.foldedComponentIds,G=w.styledComponentId,O=w.target,ee=J.useContext(Im),X=u0(),L=w.shouldForwardProp||X.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(G);var H=qS(T,ee,Z)||ya,K=function(W,ae,me){for(var ye,it=vt(vt({},ae),{className:void 0,theme:me}),wr=0;wr<W.length;wr+=1){var _r=yi(ye=W[wr])?ye(it):ye;for(var no in _r)it[no]=no==="className"?gi(it[no],_r[no]):no==="style"?vt(vt({},it[no]),_r[no]):_r[no];}return ae.className&&(it.className=gi(it.className,ae.className)),it}(N,T,H),Y=K.as||O,pe={};for(var z in K)K[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&K.theme===H||(z==="forwardedAs"?pe.as=K.forwardedAs:L&&!L(z,Y)||(pe[z]=K[z],L||process.env.NODE_ENV!=="development"||k4(z)||G4.has(z)||!l0.has(Y)||(G4.add(z),console.warn('styled-components: it looks like an unknown prop "'.concat(z,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(W,ae){var me=u0(),ye=W.generateAndInjectStyles(ae,me.styleSheet,me.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(ye),ye}(F,K);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(E);var D=gi($,G);return E&&(D+=" "+E),K.className&&(D+=" "+K.className),pe[a0(Y)&&!l0.has(Y)?"class":"className"]=D,pe.ref=k,createElement(Y,pe)}(_,M,b)}v.displayName=u;var _=J.forwardRef(v);return _.attrs=g,_.componentStyle=x,_.displayName=u,_.shouldForwardProp=h,_.foldedComponentIds=r?gi(n.foldedComponentIds,n.styledComponentId):"",_.styledComponentId=f,_.target=r?n.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?function(b){for(var w=[],T=1;T<arguments.length;T++)w[T-1]=arguments[T];for(var k=0,N=w;k<N.length;k++)d0(b,N[k],!0);return b}({},n.defaultProps,M):M;}}),process.env.NODE_ENV!=="production"&&(ZS(u,f),_.warnTooManyClasses=function(M,b){var w={},T=!1;return function(k){if(!T&&(w[k]=!0,Object.keys(w).length>=200)){var N=b?' with the id of "'.concat(b,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(N,`.
104
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function iT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=e[0],r=[],n=1,i=e.length;n<i;n+=1)r.push(e[n]);return r.forEach(function(a){o=o.replace(/%[a-z]/,a);}),o}function io(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(iT.apply(void 0,yn([nT[e]],t,!1)).trim())}var aT=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t;}return e.prototype.indexOfGroup=function(t){for(var o=0,r=0;r<t;r++)o+=this.groupSizes[r];return o},e.prototype.insertRules=function(t,o){if(t>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;t>=i;)if((i<<=1)<0)throw io(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0;}for(var s=this.indexOfGroup(t+1),l=(a=0,o.length);a<l;a++)this.tag.insertRule(s,o[a])&&(this.groupSizes[t]++,s++);},e.prototype.clearGroup=function(t){if(t<this.length){var o=this.groupSizes[t],r=this.indexOfGroup(t),n=r+o;this.groupSizes[t]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r);}},e.prototype.getGroup=function(t){var o="";if(t>=this.length||this.groupSizes[t]===0)return o;for(var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r,a=n;a<i;a++)o+="".concat(this.tag.getRule(a)).concat(y0);return o},e}(),sT=1<<30,Cm=new Map,bm=new Map,vm=1,gm=function(e){if(Cm.has(e))return Cm.get(e);for(;bm.has(vm);)vm++;var t=vm++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>sT))throw io(16,"".concat(t));return Cm.set(e,t),bm.set(t,e),t},lT=function(e,t){vm=t+1,Cm.set(e,t),bm.set(t,e);},mT="style[".concat(Zr,"][").concat(xm,'="').concat(ga,'"]'),dT=new RegExp("^".concat(Zr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cT=function(e,t,o){for(var r,n=o.split(","),i=0,a=n.length;i<a;i++)(r=n[i])&&e.registerName(t,r);},pT=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(y0),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(dT);if(l){var c=0|parseInt(l[1],10),p=l[2];c!==0&&(lT(p,c),cT(e,p,l[3]),e.getTag().insertRules(c,n)),n.length=0;}else n.push(s);}}};function c0(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var o6=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(Zr,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(Zr,Y4),r.setAttribute(xm,ga);var a=c0();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},uT=function(){function e(t){this.element=o6(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var r=document.styleSheets,n=0,i=r.length;n<i;n++){var a=r[n];if(a.ownerNode===o)return a}throw io(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(t,o){try{return this.sheet.insertRule(o,t),this.length++,!0}catch(r){return !1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--;},e.prototype.getRule=function(t){var o=this.sheet.cssRules[t];return o&&o.cssText?o.cssText:""},e}(),fT=function(){function e(t){this.element=o6(t),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(t,o){if(t<=this.length&&t>=0){var r=document.createTextNode(o);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--;},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),gT=function(){function e(t){this.rules=[],this.length=0;}return e.prototype.insertRule=function(t,o){return t<=this.length&&(this.rules.splice(t,0,o),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--;},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),z4=wm,yT={isServer:!wm,useCSSOMInjection:!$S},p1=function(){function e(t,o,r){t===void 0&&(t=ya),o===void 0&&(o={});var n=this;this.options=vt(vt({},yT),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&wm&&z4&&(z4=!1,function(i){for(var a=document.querySelectorAll(mT),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(Zr)!==Y4&&(pT(i,c),c.parentNode&&c.parentNode.removeChild(c));}}(this)),C0(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",c=function(u){var f=function(x){return bm.get(x)}(u);if(f===void 0)return "continue";var g=i.names.get(f),h=a.getGroup(u);if(g===void 0||h.length===0)return "continue";var C="".concat(Zr,".g").concat(u,'[id="').concat(f,'"]'),y="";g!==void 0&&g.forEach(function(x){x.length>0&&(y+="".concat(x,","));}),l+="".concat(h).concat(C,'{content:"').concat(y,'"}').concat(y0);},p=0;p<s;p++)c(p);return l}(n)});}return e.registerId=function(t){return gm(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(vt(vt({},this.options),t),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(o){var r=o.useCSSOMInjection,n=o.target;return o.isServer?new gT(n):r?new uT(n):new fT(n)}(this.options),new aT(t)));var t;},e.prototype.hasNameForId=function(t,o){return this.names.has(t)&&this.names.get(t).has(o)},e.prototype.registerName=function(t,o){if(gm(t),this.names.has(t))this.names.get(t).add(o);else {var r=new Set;r.add(o),this.names.set(t,r);}},e.prototype.insertRules=function(t,o,r){this.registerName(t,o),this.getTag().insertRules(gm(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(gm(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),hT=/&/g,CT=/^\s*\/\/.*$/gm;function r6(e,t){return e.map(function(o){return o.type==="rule"&&(o.value="".concat(t," ").concat(o.value),o.value=o.value.replaceAll(",",",".concat(t," ")),o.props=o.props.map(function(r){return "".concat(t," ").concat(r)})),Array.isArray(o.children)&&o.type!=="@keyframes"&&(o.children=r6(o.children,t)),o})}function n6(e){var t,o,r,n=ya,i=n.options,a=i===void 0?ya:i,s=n.plugins,l=s===void 0?_m:s,c=function(f,g,h){return h.startsWith(o)&&h.endsWith(o)&&h.replaceAll(o,"").length>0?".".concat(t):f},p=l.slice();p.push(function(f){f.type===ao.RULESET&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(hT,o).replace(r,c));}),a.prefix&&p.push(ao.prefixer),p.push(ao.stringify);var u=function(f,g,h,C){g===void 0&&(g=""),h===void 0&&(h=""),C===void 0&&(C="&"),t=C,o=g,r=new RegExp("\\".concat(o,"\\b"),"g");var y=f.replace(CT,""),x=ao.compile(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);a.namespace&&(x=r6(x,a.namespace));var v=[];return ao.serialize(x,ao.middleware(p.concat(ao.rulesheet(function(_){return v.push(_)})))),v};return u.hash=l.length?l.reduce(function(f,g){return g.name||io(15),fi(f,g.name)},W4).toString():"",u}var vT=new p1,p0=n6(),v0=J.createContext({shouldForwardProp:void 0,styleSheet:vT,stylis:p0});v0.Consumer;J.createContext(void 0);function u0(){return useContext(v0)}var f0=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=p0);var a=r.name+i.hash;n.hasNameForId(r.id,a)||n.insertRules(r.id,a,i(r.rules,a,"@keyframes"));},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=o,C0(this,function(){throw io(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=p0),this.name+t.hash},e}(),IT=function(e){return e>="A"&&e<="Z"};function j4(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;IT(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var i6=function(e){return e==null||e===!1||e===""},a6=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!i6(i)&&(Array.isArray(i)&&i.isCss||yi(i)?r.push("".concat(j4(n),":"),i,";"):ha(i)?r.push.apply(r,yn(yn(["".concat(n," {")],a6(i),!1),["}"],!1)):r.push("".concat(j4(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in B4||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function hn(e,t,o,r){if(i6(e))return [];if(h0(e))return [".".concat(e.styledComponentId)];if(yi(e)){if(!yi(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return [e];var n=e(t);return process.env.NODE_ENV==="production"||typeof n!="object"||Array.isArray(n)||n instanceof f0||ha(n)||n===null||console.error("".concat(J4(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),hn(n,t,o,r)}var i;return e instanceof f0?o?(e.inject(o,r),[e.getName(r)]):[e]:ha(e)?a6(e):Array.isArray(e)?Array.prototype.concat.apply(_m,e.map(function(a){return hn(a,t,o,r)})):[e.toString()]}function s6(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(yi(o)&&!h0(o))return !1}return !0}var wT=Q4(ga),_T=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&s6(t),this.componentId=o,this.baseHash=fi(wT,o),this.baseStyle=r,p1.registerId(o);}return e.prototype.generateAndInjectStyles=function(t,o,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,o,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&o.hasNameForId(this.componentId,this.staticRulesId))n=gi(n,this.staticRulesId);else {var i=c1(hn(this.rules,t,o,r)),a=m0(fi(this.baseHash,i)>>>0);if(!o.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);o.insertRules(this.componentId,a,s);}n=gi(n,a),this.staticRulesId=a;}else {for(var l=fi(this.baseHash,r.hash),c="",p=0;p<this.rules.length;p++){var u=this.rules[p];if(typeof u=="string")c+=u,process.env.NODE_ENV!=="production"&&(l=fi(l,u));else if(u){var f=c1(hn(u,t,o,r));l=fi(l,f+p),c+=f;}}if(c){var g=m0(l>>>0);o.hasNameForId(this.componentId,g)||o.insertRules(this.componentId,g,r(c,".".concat(g),void 0,this.componentId)),n=gi(n,g);}}return n},e}(),Im=J.createContext(void 0);Im.Consumer;function l6(e){var t=J.useContext(Im),o=useMemo(function(){return function(r,n){if(!r)throw io(14);if(yi(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw io(7);return i}if(Array.isArray(r)||typeof r!="object")throw io(8);return n?vt(vt({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?J.createElement(Im.Provider,{value:o},e.children):null}var s0={},G4=new Set;function MT(e,t,o){var r=h0(e),n=e,i=!a0(e),a=t.attrs,s=a===void 0?_m:a,l=t.componentId,c=l===void 0?function(M,b){var I=typeof M!="string"?"sc":D4(M);s0[I]=(s0[I]||0)+1;var T="".concat(I,"-").concat(K4(ga+I+s0[I]));return b?"".concat(b,"-").concat(T):T}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(M){return a0(M)?"styled.".concat(M):"Styled(".concat(J4(M),")")}(e):p,f=t.displayName&&t.componentId?"".concat(D4(t.displayName),"-").concat(t.componentId):t.componentId||c,g=r&&n.attrs?n.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&n.shouldForwardProp){var C=n.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;h=function(M,b){return C(M,b)&&y(M,b)};}else h=C;}var x=new _T(o,f,r?n.componentStyle:void 0);function v(M,b){return function(I,T,k){var N=I.attrs,F=I.componentStyle,Z=I.defaultProps,$=I.foldedComponentIds,G=I.styledComponentId,O=I.target,ee=J.useContext(Im),X=u0(),L=I.shouldForwardProp||X.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(G);var H=qS(T,ee,Z)||ya,K=function(W,ae,me){for(var ye,at=vt(vt({},ae),{className:void 0,theme:me}),wr=0;wr<W.length;wr+=1){var _r=yi(ye=W[wr])?ye(at):ye;for(var no in _r)at[no]=no==="className"?gi(at[no],_r[no]):no==="style"?vt(vt({},at[no]),_r[no]):_r[no];}return ae.className&&(at.className=gi(at.className,ae.className)),at}(N,T,H),Y=K.as||O,pe={};for(var z in K)K[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&K.theme===H||(z==="forwardedAs"?pe.as=K.forwardedAs:L&&!L(z,Y)||(pe[z]=K[z],L||process.env.NODE_ENV!=="development"||k4(z)||G4.has(z)||!l0.has(Y)||(G4.add(z),console.warn('styled-components: it looks like an unknown prop "'.concat(z,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(W,ae){var me=u0(),ye=W.generateAndInjectStyles(ae,me.styleSheet,me.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(ye),ye}(F,K);process.env.NODE_ENV!=="production"&&I.warnTooManyClasses&&I.warnTooManyClasses(E);var D=gi($,G);return E&&(D+=" "+E),K.className&&(D+=" "+K.className),pe[a0(Y)&&!l0.has(Y)?"class":"className"]=D,pe.ref=k,createElement(Y,pe)}(_,M,b)}v.displayName=u;var _=J.forwardRef(v);return _.attrs=g,_.componentStyle=x,_.displayName=u,_.shouldForwardProp=h,_.foldedComponentIds=r?gi(n.foldedComponentIds,n.styledComponentId):"",_.styledComponentId=f,_.target=r?n.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?function(b){for(var I=[],T=1;T<arguments.length;T++)I[T-1]=arguments[T];for(var k=0,N=I;k<N.length;k++)d0(b,N[k],!0);return b}({},n.defaultProps,M):M;}}),process.env.NODE_ENV!=="production"&&(ZS(u,f),_.warnTooManyClasses=function(M,b){var I={},T=!1;return function(k){if(!T&&(I[k]=!0,Object.keys(I).length>=200)){var N=b?' with the id of "'.concat(b,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(N,`.
105
105
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
106
106
  Example:
107
107
  const Component = styled.div.attrs(props => ({
@@ -110,7 +110,7 @@ Example:
110
110
  },
111
111
  }))\`width: 100%;\`
112
112
 
113
- <Component />`),T=!0,w={};}}}(u,f)),C0(_,function(){return ".".concat(_.styledComponentId)}),i&&t6(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function $4(e,t){for(var o=[e[0]],r=0,n=t.length;r<n;r+=1)o.push(t[r],e[r+1]);return o}var Z4=function(e){return Object.assign(e,{isCss:!0})};function j(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(yi(e)||ha(e))return Z4(hn($4(_m,yn([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?hn(r):Z4(hn($4(r,t)))}function g0(e,t,o){if(o===void 0&&(o=ya),!t)throw io(1,t);var r=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,o,j.apply(void 0,yn([n],i,!1)))};return r.attrs=function(n){return g0(e,t,vt(vt({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},r.withConfig=function(n){return g0(e,t,vt(vt({},o),n))},r}var m6=function(e){return g0(MT,e)},m=m6;l0.forEach(function(e){m[e]=m6(e);});function Mm(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=d1(j.apply(void 0,yn([e],t,!1))),n=K4(r);return new f0(n,r)}process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
113
+ <Component />`),T=!0,I={};}}}(u,f)),C0(_,function(){return ".".concat(_.styledComponentId)}),i&&t6(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function $4(e,t){for(var o=[e[0]],r=0,n=t.length;r<n;r+=1)o.push(t[r],e[r+1]);return o}var Z4=function(e){return Object.assign(e,{isCss:!0})};function j(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(yi(e)||ha(e))return Z4(hn($4(_m,yn([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?hn(r):Z4(hn($4(r,t)))}function g0(e,t,o){if(o===void 0&&(o=ya),!t)throw io(1,t);var r=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,o,j.apply(void 0,yn([n],i,!1)))};return r.attrs=function(n){return g0(e,t,vt(vt({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},r.withConfig=function(n){return g0(e,t,vt(vt({},o),n))},r}var m6=function(e){return g0(MT,e)},m=m6;l0.forEach(function(e){m[e]=m6(e);});function Mm(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=c1(j.apply(void 0,yn([e],t,!1))),n=K4(r);return new f0(n,r)}process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
114
114
  Perhaps you're looking to import 'styled-components/native'?
115
115
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ym="__sc-".concat(Zr,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window!="undefined"&&(window[ym]||(window[ym]=0),window[ym]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
116
116
 
@@ -118,7 +118,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
118
118
  0 12-5.373 12-12v-28c0-6.627-5.373-12-12-12H94.569l155.13-155.13c4.686-4.686
119
119
  4.686-12.284 0-16.971L229.9 38.101c-4.686-4.686-12.284-4.686-16.971 0L3.515
120
120
  247.515c-4.686 4.686-4.686 12.284 0 16.971L212.929 473.9c4.686 4.686 12.284
121
- 4.686 16.971-.001z`})),Sm=ST;var TT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M1.46094 6.33203C1.63281 6.33203 1.77344 6.26172 1.97656 6.16406L6.82422 3.82812C7.18359 3.65234 7.33594 3.45312 7.33594 3.18359C7.33594 2.91406 7.18359 2.71484 6.82422 2.53906L1.97656 0.203125C1.77344 0.105469 1.62891 0.0351562 1.45703 0.0351562C1.12109 0.0351562 0.863281 0.292969 0.863281 0.714844L0.867188 5.65625C0.867188 6.07422 1.125 6.33203 1.46094 6.33203Z",fill:"#636878"})),Tm=TT;var NT=o=>{var r=o,{color:e="#A5A9B5"}=r,t=I(r,["color"]);return J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M39.5107 25.2362C38.8869 25.2362 38.2747 25.3041 37.6818 25.4335C39.2923 23.0401 40.2282 20.2639 40.3918 17.3437H40.9769C41.4947 17.3437 41.9144 16.9239 41.9144 16.4062C41.9144 15.8884 41.4947 15.4687 40.9769 15.4687H40.3906C39.8967 6.85584 32.7344 0 24 0C15.2657 0 8.10337 6.85584 7.60959 15.4687H7.02319C6.50541 15.4687 6.08569 15.8884 6.08569 16.4062C6.08569 16.9239 6.50541 17.3437 7.02319 17.3437H7.60819C7.83019 21.3069 9.47447 25.0053 12.2966 27.8409L18.5743 34.1488V40.8825C17.1898 39.7625 15.4512 39.1327 13.6085 39.1327C11.1596 39.1327 8.89809 40.2416 7.40456 42.1379C6.75394 41.8646 6.05334 41.7226 5.33981 41.7226C2.39541 41.7227 0 44.1181 0 47.0625C0 47.5802 0.419719 48 0.9375 48H26.7872C28.2551 48 29.4494 46.8058 29.4494 45.3378V34.6875H33.7843C34.3021 34.6875 34.7218 34.2677 34.7218 33.75C34.7218 33.2323 34.3021 32.8125 33.7843 32.8125H26.8347C27.2541 31.151 28.7614 29.9174 30.5513 29.9174C31.2803 29.9174 31.9902 30.1238 32.6043 30.5145C32.8151 30.6486 33.0706 30.6929 33.3142 30.6379C33.5579 30.5827 33.7694 30.4328 33.9021 30.2212C35.1218 28.2738 37.2186 27.1112 39.5108 27.1112C42.8483 27.1112 45.6163 29.5958 46.0623 32.8125H42.2219C41.7041 32.8125 41.2844 33.2323 41.2844 33.75C41.2844 34.2677 41.7041 34.6875 42.2219 34.6875H47.0619C47.5728 34.6875 47.9887 34.2787 47.9993 33.7697C47.9997 33.7551 48.0001 33.7403 48.0001 33.7254C48 29.0445 44.1917 25.2362 39.5107 25.2362ZM24.8224 32.8125H23.1776L21.2122 26.8848C20.6679 25.2436 20.2627 23.2201 20.0246 21.0234C21.093 21.9445 22.482 22.5035 24 22.5035C25.518 22.5035 26.907 21.9446 27.9754 21.0234C27.7372 23.22 27.332 25.2435 26.7878 26.8848L24.8224 32.8125ZM24 1.875C24.6738 1.875 25.8003 2.89453 26.7577 5.76816C27.6264 8.37581 28.1352 11.791 28.2102 15.4687H19.79C19.8649 11.7909 20.3738 8.37581 21.2425 5.76806C22.1997 2.89463 23.3262 1.875 24 1.875ZM28.116 17.3437C27.6883 19.2219 26.0059 20.6284 24 20.6284C21.9941 20.6284 20.3117 19.2219 19.884 17.3437H28.116ZM38.5117 15.4687H30.0854C30.009 11.5909 29.466 7.96575 28.5365 5.17547C28.1202 3.92606 27.6695 2.96681 27.2081 2.23219C33.39 3.62953 38.091 8.97506 38.5117 15.4687ZM38.4354 17.3437C38.0078 19.2219 36.3253 20.6284 34.3194 20.6284C32.3136 20.6284 30.6311 19.2219 30.2034 17.3437H38.4354ZM20.7919 2.23228C20.3304 2.96691 19.8798 3.92616 19.4635 5.17556C18.534 7.96575 17.991 11.591 17.9146 15.4688H9.48825C9.909 8.97506 14.61 3.62953 20.7919 2.23228ZM17.7966 17.3437C17.3689 19.2219 15.6864 20.6284 13.6806 20.6284C11.6747 20.6284 9.99225 19.2219 9.56456 17.3437H17.7966ZM10.3957 21.5388C11.3445 22.1482 12.4716 22.5034 13.6806 22.5034C15.4158 22.5034 16.9827 21.7735 18.0941 20.6063C18.3314 23.1704 18.7869 25.5278 19.4325 27.4748L21.2022 32.8125H19.8896L13.6257 26.5184C12.1913 25.0772 11.1009 23.3838 10.3957 21.5388ZM5.33981 43.5977C5.99878 43.5977 6.6405 43.7843 7.19569 44.1375C7.40644 44.2716 7.662 44.316 7.90556 44.2609C8.14922 44.2057 8.36072 44.0557 8.49337 43.8442C9.60572 42.0681 11.5179 41.0077 13.6085 41.0077C15.6067 41.0077 17.445 41.9782 18.5743 43.6152V45.3379C18.5743 45.6118 18.6159 45.8762 18.6932 46.1251H2.00391C2.41369 44.6685 3.75403 43.5977 5.33981 43.5977ZM27.5744 45.3378C27.5744 45.7718 27.2213 46.125 26.7872 46.125H21.2366C20.8026 46.125 20.4494 45.7718 20.4494 45.3378V40.5H27.5744V45.3378ZM27.5744 34.6875V38.625H20.4494V34.6875H27.5744ZM28.2125 28.5457L28.5675 27.4748C29.2131 25.5278 29.6685 23.1704 29.9059 20.6063C31.0173 21.7736 32.5842 22.5034 34.3194 22.5034C35.5285 22.5034 36.6555 22.1482 37.6043 21.5388C36.899 23.3837 35.8087 25.0771 34.3743 26.5184L32.5115 28.3901C31.887 28.1615 31.2246 28.0423 30.5513 28.0423C29.7181 28.0424 28.9268 28.2233 28.2125 28.5457Z",fill:e}))},hi=NT;var kT=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M16.125 20C17.9531 20 19.5 18.5234 19.5 16.625C19.5 14.7969 17.9531 13.25 16.125 13.25C14.2266 13.25 12.75 14.7969 12.75 16.625C12.75 18.5234 14.2266 20 16.125 20ZM16.125 15.5C16.6875 15.5 17.25 16.0625 17.25 16.625C17.25 17.2578 16.6875 17.75 16.125 17.75C15.4922 17.75 15 17.2578 15 16.625C15 16.0625 15.4922 15.5 16.125 15.5ZM37.5 8.75H10.5C9.23438 8.75 8.25 9.80469 8.25 11V38C8.25 39.2656 9.23438 40.25 10.5 40.25H37.5C38.6953 40.25 39.75 39.2656 39.75 38V11C39.75 9.80469 38.6953 8.75 37.5 8.75ZM37.5 38H10.5V32.375H37.5V38ZM14.2266 30.125L17.8828 25.2734L20.6953 29L19.8516 30.125H14.2266ZM22.6641 30.125L28.0078 23.0234L33.3516 30.125H22.6641ZM37.5 30.125H36.1641L28.9219 20.4922C28.4297 19.9297 27.5156 19.9297 27.0938 20.4922L22.1016 27.1719L18.7969 22.7422C18.3047 22.1797 17.3906 22.1797 16.9688 22.7422L11.4141 30.125H10.5V11H37.5V30.125Z"})),x0=kT;var ET=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M10.5 11.9844L9.72656 11.2109C9.65625 11.0703 9.44531 11 9.30469 11C9.16406 11 9.02344 11.0703 8.88281 11.2109C5.57812 14.7969 3.75 19.5078 3.75 24.5C3.75 29.4922 5.57812 34.2031 8.88281 37.8594C9.02344 38 9.16406 38.0703 9.30469 38.0703C9.44531 38.0703 9.65625 38 9.72656 37.8594L10.5 37.0859C10.6406 36.9453 10.7109 36.8047 10.7109 36.6641C10.7109 36.5234 10.6406 36.3828 10.5 36.2422C7.61719 33.0781 6 28.9297 6 24.5C6 20.1406 7.61719 15.9922 10.5 12.8281C10.6406 12.6875 10.7109 12.5469 10.7109 12.4062C10.7109 12.2656 10.6406 12.125 10.5 11.9844ZM16.4062 16.8359L15.6328 16.0625C15.4922 15.9219 15.3516 15.9219 15.2109 15.9219C15.0703 15.9219 14.9297 15.9219 14.7891 16.0625C12.8203 18.3125 11.625 21.2656 11.625 24.5C11.625 27.8047 12.8203 30.7578 14.7891 33.0078C14.9297 33.0781 15.0703 33.1484 15.2109 33.1484C15.3516 33.1484 15.4922 33.1484 15.6328 33.0078L16.4062 32.1641C16.5469 32.0938 16.6172 31.9531 16.6172 31.8125C16.6172 31.6719 16.5469 31.5312 16.4062 31.3906C14.7891 29.5625 13.875 27.1719 13.875 24.5703C13.875 21.8984 14.7891 19.5078 16.4062 17.6797C16.5469 17.5391 16.5469 17.3984 16.5469 17.2578C16.5469 17.1172 16.5469 16.9766 16.4062 16.8359ZM39.0469 11.2109C38.9062 11.0703 38.7656 11 38.625 11C38.4844 11 38.2734 11.0703 38.2031 11.2109L37.4297 11.9844C37.2891 12.125 37.2188 12.2656 37.2188 12.4062C37.2188 12.5469 37.2891 12.6875 37.4297 12.8281C40.3828 15.9922 42 20.1406 42 24.5C42 28.9297 40.3828 33.0781 37.4297 36.2422C37.2891 36.3828 37.2188 36.5234 37.2188 36.6641C37.2188 36.8047 37.2891 36.9453 37.4297 37.0859L38.2031 37.8594C38.2734 38 38.4844 38.0703 38.625 38.0703C38.7656 38.0703 38.9062 38 39.0469 37.8594C42.3516 34.2031 44.25 29.4922 44.25 24.5C44.25 19.5078 42.3516 14.7969 39.0469 11.2109ZM24 20C21.4688 20 19.5 22.0391 19.5 24.5C19.5 27.0312 21.4688 29 24 29C26.4609 29 28.5 27.0312 28.5 24.5C28.5 22.0391 26.4609 20 24 20ZM24 26.75C22.7344 26.75 21.75 25.7656 21.75 24.5C21.75 23.3047 22.7344 22.25 24 22.25C25.1953 22.25 26.25 23.3047 26.25 24.5C26.25 25.7656 25.1953 26.75 24 26.75ZM32.2969 16.0625L31.5234 16.8359C31.3828 16.9766 31.3125 17.1172 31.3125 17.2578C31.3125 17.3984 31.3828 17.5391 31.5234 17.6797C33.1406 19.5078 34.0547 21.8984 34.0547 24.5C34.0547 27.1719 33.1406 29.5625 31.5234 31.3906C31.3828 31.5312 31.3125 31.6719 31.3125 31.8125C31.3125 31.9531 31.3828 32.0938 31.5234 32.2344L32.2969 33.0078C32.4375 33.1484 32.5781 33.2188 32.7188 33.2188C32.8594 33.2188 33 33.1484 33.1406 33.0078C35.1094 30.7578 36.3047 27.8047 36.3047 24.5703C36.3047 21.2656 35.1094 18.3125 33.1406 16.0625C33 15.9922 32.8594 15.9219 32.7188 15.9219C32.5781 15.9219 32.4375 15.9219 32.2969 16.0625Z"})),b0=ET;var AT=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M39.6797 17.75L39.75 20L39.6797 38L33 33.3594V24.7109L39.6797 20V17.75C39.2578 17.8203 38.7656 17.9609 38.4141 18.1719L33 21.9688V21.125C33 19.2969 31.4531 17.75 29.625 17.75H12.75V14.375C12.75 12.5469 14.2266 11 16.125 11H27.9375C28.2188 11 28.5 10.7891 28.5 10.4375V9.3125C28.5 9.03125 28.2188 8.75 27.9375 8.75H16.125C12.9609 8.75 10.5 11.2812 10.5 14.375V17.75H9.375C7.47656 17.75 6 19.2969 6 21.125V36.875C6 38.7734 7.47656 40.25 9.375 40.25H29.625C31.4531 40.25 33 38.7734 33 36.875V36.1016L38.4141 39.8984C38.7656 40.1094 39.2578 40.25 39.6797 40.25C40.875 40.25 42 39.3359 42 38.0703V20C42 18.6641 40.875 17.75 39.6797 17.75ZM30.75 36.875C30.75 37.5078 30.1875 38 29.625 38H9.375C8.74219 38 8.25 37.5078 8.25 36.875V21.125C8.25 20.5625 8.74219 20 9.375 20H29.625C30.1875 20 30.75 20.5625 30.75 21.125V36.875ZM28.0078 22.25H10.9219C10.6406 22.3203 10.5 22.4609 10.5 22.7422V24.0781C10.5 24.3594 10.6406 24.5 10.9219 24.5H28.0078C28.2891 24.5 28.4297 24.3594 28.5 24.0781V22.7422C28.4297 22.4609 28.2891 22.3203 28.0078 22.25Z"})),I0=AT;var BT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M11.824 4.72708L8.63343 7.84786C8.39883 8.05439 8.04692 8.05439 7.83578 7.82492L7.31965 7.32008C7.08504 7.11356 7.08504 6.74641 7.31965 6.53989L8.75073 5.25486L0.56305 5.25486C0.234605 5.25486 0 5.00244 0 4.70413V0.560002C0 0.250721 0.250722 0 0.560002 0L1.31683 4.36807e-06C1.62611 5.39397e-06 1.87683 0.250726 1.87683 0.560004V3.4191L8.75073 3.4191L7.31965 2.11113C7.08504 1.9046 7.08504 1.53745 7.31965 1.33093L7.83578 0.826096C8.04692 0.596627 8.39883 0.596627 8.63343 0.803149L11.824 3.92393C12.0587 4.1534 12.0587 4.49761 11.824 4.72708Z",fill:"#636878"})),w0=BT;var LT=e=>J.createElement("svg",d({width:"48",height:"32",viewBox:"0 0 48 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M46 0H7.33333C6.16667 0 5.33333 0.916667 5.33333 2V2.66667H2C0.833333 2.66667 0 3.58333 0 4.66667V28C0 30.25 1.75 32 4 32H46C47.0833 32 48 31.1667 48 30V2C48 0.916667 47.0833 0 46 0ZM2.66667 28V5.33333H5.33333V28C5.33333 28.75 4.66667 29.3333 4 29.3333C3.25 29.3333 2.66667 28.75 2.66667 28ZM45.3333 29.3333H7.75C7.83333 29 8 28.4167 8 28.0833V28V2.66667H45.3333V29.3333Z",fill:"#A5A9B5"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0231 10.3277L20.0159 10.3366L20.0094 10.3459C19.8498 10.575 19.7771 10.8433 19.8232 11.1079C19.8691 11.3716 20.0275 11.5989 20.2679 11.7554L21.0576 12.3368L21.0728 12.3454C21.498 12.5896 22.0853 12.5106 22.426 12.103L22.4273 12.1014C22.8645 11.5715 23.2846 11.1881 23.7898 10.9333C24.2937 10.6791 24.9063 10.5409 25.7453 10.5409C28.061 10.5409 28.9327 11.6808 28.9327 12.5977C28.9327 13.0993 28.7034 13.4644 28.3052 13.8072C27.9932 14.0759 27.6072 14.3074 27.1754 14.5663L27.1754 14.5664C27.0311 14.6529 26.8817 14.7425 26.7282 14.8376C26.1341 15.2057 25.5066 15.6423 25.0306 16.2624C24.548 16.891 24.2326 17.6923 24.2326 18.7681C24.2326 19.3702 24.7618 19.7677 25.2632 19.7677H26.2274C26.8061 19.7677 27.258 19.3542 27.258 18.7681C27.258 18.2649 27.489 17.8879 27.8895 17.5308C28.2112 17.244 28.6129 16.9941 29.0603 16.7157L29.0603 16.7157C29.1919 16.6339 29.3274 16.5496 29.466 16.4612C30.0584 16.0832 30.684 15.6419 31.1589 15.0321C31.6406 14.4135 31.9582 13.6337 31.9582 12.5977C31.9582 11.0185 31.2094 9.76304 30.0556 8.91183C28.9084 8.0656 27.3647 7.61914 25.7453 7.61914C24.3484 7.61914 23.2438 7.88697 22.3194 8.36743C21.3964 8.84713 20.6724 9.52886 20.0231 10.3277ZM21.2259 12.0787L20.4426 11.5021C20.0944 11.2799 20.0256 10.8973 20.2363 10.5603C20.0258 10.8973 20.0947 11.2797 20.4427 11.5018L21.2261 12.0785C21.5274 12.2515 21.9492 12.1938 22.1902 11.9055C23.0941 10.8098 23.998 10.2331 25.7455 10.2331C28.1558 10.2331 29.2404 11.4441 29.2404 12.5975C29.2404 12.9349 29.1534 13.22 29.003 13.4709C29.1533 13.22 29.2403 12.935 29.2403 12.5977C29.2403 11.4444 28.1556 10.2334 25.7453 10.2334C23.9978 10.2334 23.0939 10.8101 22.1901 11.9057C21.949 12.1941 21.5272 12.2517 21.2259 12.0787ZM25.0838 16.7238C24.7512 17.2542 24.5401 17.9128 24.5401 18.7681C24.5401 19.1718 24.9017 19.4601 25.2632 19.4601H26.2274C26.4954 19.4601 26.7148 19.3437 26.8391 19.1552C26.7148 19.3435 26.4955 19.4599 26.2275 19.4599H25.2634C24.9018 19.4599 24.5403 19.1715 24.5403 18.7678C24.5403 17.9127 24.7513 17.2542 25.0838 16.7238ZM27.2171 17.8382C27.5662 17.2823 28.2162 16.8782 28.9129 16.4451C29.6965 15.9578 30.5394 15.4338 31.0797 14.6156C30.5394 15.4336 29.6966 15.9576 28.913 16.4448C28.2162 16.878 27.5662 17.2822 27.2171 17.8382ZM25.8056 20.5366C24.6772 20.5366 23.8108 21.4184 23.8108 22.4588C23.8108 23.5639 24.6844 24.381 25.8056 24.381C26.8591 24.381 27.8003 23.5709 27.8003 22.4588C27.8003 21.4113 26.8664 20.5366 25.8056 20.5366ZM24.363 21.6208C24.2067 21.868 24.1183 22.1563 24.1183 22.4588C24.1183 23.3815 24.8414 24.0735 25.8056 24.0735C26.4076 24.0735 26.9562 23.7665 27.2554 23.2888C26.9561 23.7663 26.4077 24.0732 25.8057 24.0732C24.8416 24.0732 24.1185 23.3812 24.1185 22.4585C24.1185 22.1562 24.2068 21.8679 24.363 21.6208Z",fill:"#A5A9B5"})),M0=LT;var FT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:`M6.6875 9.3125C9.00195 9.3125 10.9062 7.4375 10.9062 5.09375C10.9062 2.7793 9.00195
121
+ 4.686 16.971-.001z`})),Sm=ST;var TT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M1.46094 6.33203C1.63281 6.33203 1.77344 6.26172 1.97656 6.16406L6.82422 3.82812C7.18359 3.65234 7.33594 3.45312 7.33594 3.18359C7.33594 2.91406 7.18359 2.71484 6.82422 2.53906L1.97656 0.203125C1.77344 0.105469 1.62891 0.0351562 1.45703 0.0351562C1.12109 0.0351562 0.863281 0.292969 0.863281 0.714844L0.867188 5.65625C0.867188 6.07422 1.125 6.33203 1.46094 6.33203Z",fill:"#636878"})),Tm=TT;var NT=o=>{var r=o,{color:e="#A5A9B5"}=r,t=w(r,["color"]);return J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M39.5107 25.2362C38.8869 25.2362 38.2747 25.3041 37.6818 25.4335C39.2923 23.0401 40.2282 20.2639 40.3918 17.3437H40.9769C41.4947 17.3437 41.9144 16.9239 41.9144 16.4062C41.9144 15.8884 41.4947 15.4687 40.9769 15.4687H40.3906C39.8967 6.85584 32.7344 0 24 0C15.2657 0 8.10337 6.85584 7.60959 15.4687H7.02319C6.50541 15.4687 6.08569 15.8884 6.08569 16.4062C6.08569 16.9239 6.50541 17.3437 7.02319 17.3437H7.60819C7.83019 21.3069 9.47447 25.0053 12.2966 27.8409L18.5743 34.1488V40.8825C17.1898 39.7625 15.4512 39.1327 13.6085 39.1327C11.1596 39.1327 8.89809 40.2416 7.40456 42.1379C6.75394 41.8646 6.05334 41.7226 5.33981 41.7226C2.39541 41.7227 0 44.1181 0 47.0625C0 47.5802 0.419719 48 0.9375 48H26.7872C28.2551 48 29.4494 46.8058 29.4494 45.3378V34.6875H33.7843C34.3021 34.6875 34.7218 34.2677 34.7218 33.75C34.7218 33.2323 34.3021 32.8125 33.7843 32.8125H26.8347C27.2541 31.151 28.7614 29.9174 30.5513 29.9174C31.2803 29.9174 31.9902 30.1238 32.6043 30.5145C32.8151 30.6486 33.0706 30.6929 33.3142 30.6379C33.5579 30.5827 33.7694 30.4328 33.9021 30.2212C35.1218 28.2738 37.2186 27.1112 39.5108 27.1112C42.8483 27.1112 45.6163 29.5958 46.0623 32.8125H42.2219C41.7041 32.8125 41.2844 33.2323 41.2844 33.75C41.2844 34.2677 41.7041 34.6875 42.2219 34.6875H47.0619C47.5728 34.6875 47.9887 34.2787 47.9993 33.7697C47.9997 33.7551 48.0001 33.7403 48.0001 33.7254C48 29.0445 44.1917 25.2362 39.5107 25.2362ZM24.8224 32.8125H23.1776L21.2122 26.8848C20.6679 25.2436 20.2627 23.2201 20.0246 21.0234C21.093 21.9445 22.482 22.5035 24 22.5035C25.518 22.5035 26.907 21.9446 27.9754 21.0234C27.7372 23.22 27.332 25.2435 26.7878 26.8848L24.8224 32.8125ZM24 1.875C24.6738 1.875 25.8003 2.89453 26.7577 5.76816C27.6264 8.37581 28.1352 11.791 28.2102 15.4687H19.79C19.8649 11.7909 20.3738 8.37581 21.2425 5.76806C22.1997 2.89463 23.3262 1.875 24 1.875ZM28.116 17.3437C27.6883 19.2219 26.0059 20.6284 24 20.6284C21.9941 20.6284 20.3117 19.2219 19.884 17.3437H28.116ZM38.5117 15.4687H30.0854C30.009 11.5909 29.466 7.96575 28.5365 5.17547C28.1202 3.92606 27.6695 2.96681 27.2081 2.23219C33.39 3.62953 38.091 8.97506 38.5117 15.4687ZM38.4354 17.3437C38.0078 19.2219 36.3253 20.6284 34.3194 20.6284C32.3136 20.6284 30.6311 19.2219 30.2034 17.3437H38.4354ZM20.7919 2.23228C20.3304 2.96691 19.8798 3.92616 19.4635 5.17556C18.534 7.96575 17.991 11.591 17.9146 15.4688H9.48825C9.909 8.97506 14.61 3.62953 20.7919 2.23228ZM17.7966 17.3437C17.3689 19.2219 15.6864 20.6284 13.6806 20.6284C11.6747 20.6284 9.99225 19.2219 9.56456 17.3437H17.7966ZM10.3957 21.5388C11.3445 22.1482 12.4716 22.5034 13.6806 22.5034C15.4158 22.5034 16.9827 21.7735 18.0941 20.6063C18.3314 23.1704 18.7869 25.5278 19.4325 27.4748L21.2022 32.8125H19.8896L13.6257 26.5184C12.1913 25.0772 11.1009 23.3838 10.3957 21.5388ZM5.33981 43.5977C5.99878 43.5977 6.6405 43.7843 7.19569 44.1375C7.40644 44.2716 7.662 44.316 7.90556 44.2609C8.14922 44.2057 8.36072 44.0557 8.49337 43.8442C9.60572 42.0681 11.5179 41.0077 13.6085 41.0077C15.6067 41.0077 17.445 41.9782 18.5743 43.6152V45.3379C18.5743 45.6118 18.6159 45.8762 18.6932 46.1251H2.00391C2.41369 44.6685 3.75403 43.5977 5.33981 43.5977ZM27.5744 45.3378C27.5744 45.7718 27.2213 46.125 26.7872 46.125H21.2366C20.8026 46.125 20.4494 45.7718 20.4494 45.3378V40.5H27.5744V45.3378ZM27.5744 34.6875V38.625H20.4494V34.6875H27.5744ZM28.2125 28.5457L28.5675 27.4748C29.2131 25.5278 29.6685 23.1704 29.9059 20.6063C31.0173 21.7736 32.5842 22.5034 34.3194 22.5034C35.5285 22.5034 36.6555 22.1482 37.6043 21.5388C36.899 23.3837 35.8087 25.0771 34.3743 26.5184L32.5115 28.3901C31.887 28.1615 31.2246 28.0423 30.5513 28.0423C29.7181 28.0424 28.9268 28.2233 28.2125 28.5457Z",fill:e}))},hi=NT;var kT=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M16.125 20C17.9531 20 19.5 18.5234 19.5 16.625C19.5 14.7969 17.9531 13.25 16.125 13.25C14.2266 13.25 12.75 14.7969 12.75 16.625C12.75 18.5234 14.2266 20 16.125 20ZM16.125 15.5C16.6875 15.5 17.25 16.0625 17.25 16.625C17.25 17.2578 16.6875 17.75 16.125 17.75C15.4922 17.75 15 17.2578 15 16.625C15 16.0625 15.4922 15.5 16.125 15.5ZM37.5 8.75H10.5C9.23438 8.75 8.25 9.80469 8.25 11V38C8.25 39.2656 9.23438 40.25 10.5 40.25H37.5C38.6953 40.25 39.75 39.2656 39.75 38V11C39.75 9.80469 38.6953 8.75 37.5 8.75ZM37.5 38H10.5V32.375H37.5V38ZM14.2266 30.125L17.8828 25.2734L20.6953 29L19.8516 30.125H14.2266ZM22.6641 30.125L28.0078 23.0234L33.3516 30.125H22.6641ZM37.5 30.125H36.1641L28.9219 20.4922C28.4297 19.9297 27.5156 19.9297 27.0938 20.4922L22.1016 27.1719L18.7969 22.7422C18.3047 22.1797 17.3906 22.1797 16.9688 22.7422L11.4141 30.125H10.5V11H37.5V30.125Z"})),x0=kT;var ET=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M10.5 11.9844L9.72656 11.2109C9.65625 11.0703 9.44531 11 9.30469 11C9.16406 11 9.02344 11.0703 8.88281 11.2109C5.57812 14.7969 3.75 19.5078 3.75 24.5C3.75 29.4922 5.57812 34.2031 8.88281 37.8594C9.02344 38 9.16406 38.0703 9.30469 38.0703C9.44531 38.0703 9.65625 38 9.72656 37.8594L10.5 37.0859C10.6406 36.9453 10.7109 36.8047 10.7109 36.6641C10.7109 36.5234 10.6406 36.3828 10.5 36.2422C7.61719 33.0781 6 28.9297 6 24.5C6 20.1406 7.61719 15.9922 10.5 12.8281C10.6406 12.6875 10.7109 12.5469 10.7109 12.4062C10.7109 12.2656 10.6406 12.125 10.5 11.9844ZM16.4062 16.8359L15.6328 16.0625C15.4922 15.9219 15.3516 15.9219 15.2109 15.9219C15.0703 15.9219 14.9297 15.9219 14.7891 16.0625C12.8203 18.3125 11.625 21.2656 11.625 24.5C11.625 27.8047 12.8203 30.7578 14.7891 33.0078C14.9297 33.0781 15.0703 33.1484 15.2109 33.1484C15.3516 33.1484 15.4922 33.1484 15.6328 33.0078L16.4062 32.1641C16.5469 32.0938 16.6172 31.9531 16.6172 31.8125C16.6172 31.6719 16.5469 31.5312 16.4062 31.3906C14.7891 29.5625 13.875 27.1719 13.875 24.5703C13.875 21.8984 14.7891 19.5078 16.4062 17.6797C16.5469 17.5391 16.5469 17.3984 16.5469 17.2578C16.5469 17.1172 16.5469 16.9766 16.4062 16.8359ZM39.0469 11.2109C38.9062 11.0703 38.7656 11 38.625 11C38.4844 11 38.2734 11.0703 38.2031 11.2109L37.4297 11.9844C37.2891 12.125 37.2188 12.2656 37.2188 12.4062C37.2188 12.5469 37.2891 12.6875 37.4297 12.8281C40.3828 15.9922 42 20.1406 42 24.5C42 28.9297 40.3828 33.0781 37.4297 36.2422C37.2891 36.3828 37.2188 36.5234 37.2188 36.6641C37.2188 36.8047 37.2891 36.9453 37.4297 37.0859L38.2031 37.8594C38.2734 38 38.4844 38.0703 38.625 38.0703C38.7656 38.0703 38.9062 38 39.0469 37.8594C42.3516 34.2031 44.25 29.4922 44.25 24.5C44.25 19.5078 42.3516 14.7969 39.0469 11.2109ZM24 20C21.4688 20 19.5 22.0391 19.5 24.5C19.5 27.0312 21.4688 29 24 29C26.4609 29 28.5 27.0312 28.5 24.5C28.5 22.0391 26.4609 20 24 20ZM24 26.75C22.7344 26.75 21.75 25.7656 21.75 24.5C21.75 23.3047 22.7344 22.25 24 22.25C25.1953 22.25 26.25 23.3047 26.25 24.5C26.25 25.7656 25.1953 26.75 24 26.75ZM32.2969 16.0625L31.5234 16.8359C31.3828 16.9766 31.3125 17.1172 31.3125 17.2578C31.3125 17.3984 31.3828 17.5391 31.5234 17.6797C33.1406 19.5078 34.0547 21.8984 34.0547 24.5C34.0547 27.1719 33.1406 29.5625 31.5234 31.3906C31.3828 31.5312 31.3125 31.6719 31.3125 31.8125C31.3125 31.9531 31.3828 32.0938 31.5234 32.2344L32.2969 33.0078C32.4375 33.1484 32.5781 33.2188 32.7188 33.2188C32.8594 33.2188 33 33.1484 33.1406 33.0078C35.1094 30.7578 36.3047 27.8047 36.3047 24.5703C36.3047 21.2656 35.1094 18.3125 33.1406 16.0625C33 15.9922 32.8594 15.9219 32.7188 15.9219C32.5781 15.9219 32.4375 15.9219 32.2969 16.0625Z"})),b0=ET;var AT=e=>J.createElement("svg",d({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M39.6797 17.75L39.75 20L39.6797 38L33 33.3594V24.7109L39.6797 20V17.75C39.2578 17.8203 38.7656 17.9609 38.4141 18.1719L33 21.9688V21.125C33 19.2969 31.4531 17.75 29.625 17.75H12.75V14.375C12.75 12.5469 14.2266 11 16.125 11H27.9375C28.2188 11 28.5 10.7891 28.5 10.4375V9.3125C28.5 9.03125 28.2188 8.75 27.9375 8.75H16.125C12.9609 8.75 10.5 11.2812 10.5 14.375V17.75H9.375C7.47656 17.75 6 19.2969 6 21.125V36.875C6 38.7734 7.47656 40.25 9.375 40.25H29.625C31.4531 40.25 33 38.7734 33 36.875V36.1016L38.4141 39.8984C38.7656 40.1094 39.2578 40.25 39.6797 40.25C40.875 40.25 42 39.3359 42 38.0703V20C42 18.6641 40.875 17.75 39.6797 17.75ZM30.75 36.875C30.75 37.5078 30.1875 38 29.625 38H9.375C8.74219 38 8.25 37.5078 8.25 36.875V21.125C8.25 20.5625 8.74219 20 9.375 20H29.625C30.1875 20 30.75 20.5625 30.75 21.125V36.875ZM28.0078 22.25H10.9219C10.6406 22.3203 10.5 22.4609 10.5 22.7422V24.0781C10.5 24.3594 10.6406 24.5 10.9219 24.5H28.0078C28.2891 24.5 28.4297 24.3594 28.5 24.0781V22.7422C28.4297 22.4609 28.2891 22.3203 28.0078 22.25Z"})),I0=AT;var BT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M11.824 4.72708L8.63343 7.84786C8.39883 8.05439 8.04692 8.05439 7.83578 7.82492L7.31965 7.32008C7.08504 7.11356 7.08504 6.74641 7.31965 6.53989L8.75073 5.25486L0.56305 5.25486C0.234605 5.25486 0 5.00244 0 4.70413V0.560002C0 0.250721 0.250722 0 0.560002 0L1.31683 4.36807e-06C1.62611 5.39397e-06 1.87683 0.250726 1.87683 0.560004V3.4191L8.75073 3.4191L7.31965 2.11113C7.08504 1.9046 7.08504 1.53745 7.31965 1.33093L7.83578 0.826096C8.04692 0.596627 8.39883 0.596627 8.63343 0.803149L11.824 3.92393C12.0587 4.1534 12.0587 4.49761 11.824 4.72708Z",fill:"#636878"})),w0=BT;var LT=e=>J.createElement("svg",d({width:"48",height:"32",viewBox:"0 0 48 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M46 0H7.33333C6.16667 0 5.33333 0.916667 5.33333 2V2.66667H2C0.833333 2.66667 0 3.58333 0 4.66667V28C0 30.25 1.75 32 4 32H46C47.0833 32 48 31.1667 48 30V2C48 0.916667 47.0833 0 46 0ZM2.66667 28V5.33333H5.33333V28C5.33333 28.75 4.66667 29.3333 4 29.3333C3.25 29.3333 2.66667 28.75 2.66667 28ZM45.3333 29.3333H7.75C7.83333 29 8 28.4167 8 28.0833V28V2.66667H45.3333V29.3333Z",fill:"#A5A9B5"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0231 10.3277L20.0159 10.3366L20.0094 10.3459C19.8498 10.575 19.7771 10.8433 19.8232 11.1079C19.8691 11.3716 20.0275 11.5989 20.2679 11.7554L21.0576 12.3368L21.0728 12.3454C21.498 12.5896 22.0853 12.5106 22.426 12.103L22.4273 12.1014C22.8645 11.5715 23.2846 11.1881 23.7898 10.9333C24.2937 10.6791 24.9063 10.5409 25.7453 10.5409C28.061 10.5409 28.9327 11.6808 28.9327 12.5977C28.9327 13.0993 28.7034 13.4644 28.3052 13.8072C27.9932 14.0759 27.6072 14.3074 27.1754 14.5663L27.1754 14.5664C27.0311 14.6529 26.8817 14.7425 26.7282 14.8376C26.1341 15.2057 25.5066 15.6423 25.0306 16.2624C24.548 16.891 24.2326 17.6923 24.2326 18.7681C24.2326 19.3702 24.7618 19.7677 25.2632 19.7677H26.2274C26.8061 19.7677 27.258 19.3542 27.258 18.7681C27.258 18.2649 27.489 17.8879 27.8895 17.5308C28.2112 17.244 28.6129 16.9941 29.0603 16.7157L29.0603 16.7157C29.1919 16.6339 29.3274 16.5496 29.466 16.4612C30.0584 16.0832 30.684 15.6419 31.1589 15.0321C31.6406 14.4135 31.9582 13.6337 31.9582 12.5977C31.9582 11.0185 31.2094 9.76304 30.0556 8.91183C28.9084 8.0656 27.3647 7.61914 25.7453 7.61914C24.3484 7.61914 23.2438 7.88697 22.3194 8.36743C21.3964 8.84713 20.6724 9.52886 20.0231 10.3277ZM21.2259 12.0787L20.4426 11.5021C20.0944 11.2799 20.0256 10.8973 20.2363 10.5603C20.0258 10.8973 20.0947 11.2797 20.4427 11.5018L21.2261 12.0785C21.5274 12.2515 21.9492 12.1938 22.1902 11.9055C23.0941 10.8098 23.998 10.2331 25.7455 10.2331C28.1558 10.2331 29.2404 11.4441 29.2404 12.5975C29.2404 12.9349 29.1534 13.22 29.003 13.4709C29.1533 13.22 29.2403 12.935 29.2403 12.5977C29.2403 11.4444 28.1556 10.2334 25.7453 10.2334C23.9978 10.2334 23.0939 10.8101 22.1901 11.9057C21.949 12.1941 21.5272 12.2517 21.2259 12.0787ZM25.0838 16.7238C24.7512 17.2542 24.5401 17.9128 24.5401 18.7681C24.5401 19.1718 24.9017 19.4601 25.2632 19.4601H26.2274C26.4954 19.4601 26.7148 19.3437 26.8391 19.1552C26.7148 19.3435 26.4955 19.4599 26.2275 19.4599H25.2634C24.9018 19.4599 24.5403 19.1715 24.5403 18.7678C24.5403 17.9127 24.7513 17.2542 25.0838 16.7238ZM27.2171 17.8382C27.5662 17.2823 28.2162 16.8782 28.9129 16.4451C29.6965 15.9578 30.5394 15.4338 31.0797 14.6156C30.5394 15.4336 29.6966 15.9576 28.913 16.4448C28.2162 16.878 27.5662 17.2822 27.2171 17.8382ZM25.8056 20.5366C24.6772 20.5366 23.8108 21.4184 23.8108 22.4588C23.8108 23.5639 24.6844 24.381 25.8056 24.381C26.8591 24.381 27.8003 23.5709 27.8003 22.4588C27.8003 21.4113 26.8664 20.5366 25.8056 20.5366ZM24.363 21.6208C24.2067 21.868 24.1183 22.1563 24.1183 22.4588C24.1183 23.3815 24.8414 24.0735 25.8056 24.0735C26.4076 24.0735 26.9562 23.7665 27.2554 23.2888C26.9561 23.7663 26.4077 24.0732 25.8057 24.0732C24.8416 24.0732 24.1185 23.3812 24.1185 22.4585C24.1185 22.1562 24.2068 21.8679 24.363 21.6208Z",fill:"#A5A9B5"})),M0=LT;var FT=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:`M6.6875 9.3125C9.00195 9.3125 10.9062 7.4375 10.9062 5.09375C10.9062 2.7793 9.00195
122
122
  0.875 6.6875 0.875C4.34375 0.875 2.46875 2.7793 2.46875 5.09375C2.46875 7.4375 4.34375 9.3125
123
123
  6.6875 9.3125ZM6.6875 2.28125C8.21094 2.28125 9.5 3.57031 9.5 5.09375C9.5 6.64648 8.21094
124
124
  7.90625 6.6875 7.90625C5.13477 7.90625 3.875 6.64648 3.875 5.09375C3.875 3.57031 5.13477
@@ -175,7 +175,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
175
175
  33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31
176
176
  4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28
177
177
  11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28
178
- 4.32 4.26 11.29-.06 15.56z`})),km=qT;function YT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:"#292B32",d:"M19.453 7.61H4.547a.406.406 0 01-.422-.423V6.063c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.421v1.125c0 .247-.21.422-.422.422zm0 5.624H4.547a.406.406 0 01-.422-.421v-1.126c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.421v1.126c0 .246-.21.421-.422.421zm0 5.625H4.547a.406.406 0 01-.422-.422v-1.125c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.422v1.125c0 .246-.21.421-.422.421z"}))}var p1=YT;function WT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},e),J.createElement("path",{fill:"#fff",d:"M9.688 20.09H6.312c-.949 0-1.687-.738-1.687-1.688V6.027c0-.914.738-1.687 1.688-1.687h3.375c.914 0 1.687.773 1.687 1.687v12.375c0 .95-.773 1.688-1.688 1.688zm10.687-1.688c0 .95-.773 1.688-1.688 1.688h-3.375c-.949 0-1.687-.738-1.687-1.688V6.027c0-.914.738-1.687 1.688-1.687h3.374c.915 0 1.688.773 1.688 1.687v12.375z"}))}var u1=WT;function QT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"none",viewBox:"0 0 17 17"},e),J.createElement("circle",{cx:"8.842",cy:"8.253",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M10.092 11.003c0 .703-.563 1.25-1.25 1.25-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.687 0 1.25.562 1.25 1.25zm-2.36-6.344a.378.378 0 01.375-.406h1.454c.218 0 .39.187.375.406l-.204 4.25a.387.387 0 01-.375.344H8.311a.387.387 0 01-.375-.344l-.204-4.25z"}))}var B0=QT;function KT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none",viewBox:"0 0 16 19"},e),J.createElement("path",{fill:"inherit",d:"M15.313 3.063c.28 0 .562.28.562.562v.563a.578.578 0 01-.563.562h-.562l-.773 11.918c-.036.879-.809 1.582-1.688 1.582H3.676c-.88 0-1.653-.703-1.688-1.582L1.25 4.75H.687a.555.555 0 01-.562-.563v-.562c0-.281.246-.563.563-.563H3.57l1.196-1.968C5.046.637 5.68.25 6.207.25h3.55c.528 0 1.161.387 1.442.844l1.196 1.968h2.918zM6.207 1.937l-.668 1.125h4.887l-.668-1.124H6.207zm6.082 14.626l.738-11.813H2.937l.739 11.813h8.613z"}))}var L0=KT;var JT=n=>{var i=n,{bg:e="#fff",fg:t="#cacaca",children:o}=i,r=I(i,["bg","fg","children"]);return J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 24 28",fill:"none",vectorEffect:"non-scaling-stroke",xmlns:"http://www.w3.org/2000/svg"},r),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.24993 27.8542c-1.158 0-2.099997-.9263-2.099997-2.065V2.21031c0-1.13809.941997-2.064421 2.099997-2.064421H16.4999c.1614 0 .3114.060667.423.172084l6.7506 6.631917c.114.112.1764.26075.1764.41883V25.7892c0 1.1387-.942 2.065-2.1 2.065H2.24993z",fill:e}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4999.00010681H2.24991C1.00911.00010681-.00009155.99119-.00009155 2.21036V25.7899c0 1.2185 1.00920155 2.2102 2.25000155 2.2102H21.7499c1.2402 0 2.25-.9917 2.25-2.2102V7.36877c0-.196-.0792-.38266-.2196-.5215l-6.75-6.63133c-.141-.1394165-.3312-.21583319-.5304-.21583319zm0 .29162219c.1206 0 .2328.0455.3168.1295l6.75 6.631331c.0864.084.1332.19659.1332.31617V25.7898c0 1.0576-.8748 1.9186-1.95 1.9186H2.24995c-1.0752 0-1.950005-.861-1.950005-1.9186V2.21031c0-1.05758.874805-1.918581 1.950005-1.918581H16.4999z",fill:t}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.9999 7.36861c0-.196-.0792-.38267-.2196-.5215l-6.75-6.631338c-.141-.1394164-.3312-.21583304-.5304-.21583304h-.4878V5.63727c0 1.21858 1.0092 2.21025 2.25 2.21025h5.7378v-.47891z",fill:t}),o)},ge=JT;var XT=o=>{var r=o,{color:e="#FFB400"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.75698 23.3835c-.0936.0595-.2088.0951-.3456.1079-.1368.0117-.2736.0304-.4104.0549-.0648.0105-.1278.025-.189.0443-.0612.0198-.1152.0461-.162.0787-.0468.0339-.0834.077-.1104.1313-.027.0548-.0408.1202-.0408.1972 0 .0665.0198.1225.0594.168.0396.0455.087.081.1428.1073.0564.0262.1176.0449.1842.0554.066.0105.1266.0152.1806.0152.0684 0 .1422-.0082.2214-.0257.0792-.0175.1542-.0472.2244-.0892.0702-.042.1284-.0957.1752-.1605.0468-.0647.0702-.144.0702-.2385v-.4463zm.6156.756c0 .0735.0102.126.0294.1569.0198.0321.0588.0473.117.0473h.0642c.0252 0 .054-.0029.0864-.0099v.4147c-.0216.007-.0498.0146-.0834.0233-.0348.0094-.0696.017-.1056.024-.036.007-.072.0116-.108.0157-.036.0035-.0666.0053-.0918.0053-.126 0-.2304-.0245-.3126-.0735-.0834-.049-.1374-.1348-.1626-.2573-.1224.1155-.2724.1989-.4506.252-.1788.0525-.3504.0788-.516.0788-.126 0-.2466-.0164-.3618-.0502-.1152-.0333-.2166-.0823-.3054-.147-.0876-.0642-.1578-.147-.21-.2468-.0522-.0997-.0786-.2158-.0786-.3488 0-.168.0318-.3045.0942-.4095.0636-.105.1458-.1872.2484-.2467s.2184-.1027.3456-.129c.1278-.0262.2568-.046.3864-.0606.1116-.0204.2178-.0356.3186-.0444.1008-.0081.1902-.0233.2676-.0443.0768-.021.1386-.0537.183-.0974.045-.0438.0678-.1091.0678-.1966 0-.077-.0192-.14-.0564-.189-.0384-.049-.0852-.0863-.141-.1126-.0552-.0262-.1176-.0443-.186-.0525-.0678-.0093-.1332-.014-.1938-.014-.1728 0-.3156.0356-.4272.1056-.1116.07-.1746.1785-.189.3255h-.6156c.0108-.175.054-.3202.1296-.4357.0756-.1155.1722-.2083.2892-.2783.1164-.07.249-.119.3966-.147.1476-.028.2988-.042.4536-.042.1368 0 .2718.014.405.042.1332.028.2532.0735.3594.1359.1056.0636.1914.1447.2562.2444.0648.0998.0972.2217.0972.3646v1.3971zM10.6235 24.7433h-.6048v-.378h-.0108c-.07556.1365-.18836.2456-.33776.3278-.1494.0823-.3018.1237-.4566.1237-.3666 0-.6318-.0881-.7962-.2654-.1638-.1768-.2454-.4433-.2454-.8003v-1.722h.615v1.6642c0 .2374.0474.406.141.5034.0936.098.225.147.3942.147.1296 0 .2376-.0186.324-.0571.0864-.0391.1566-.0899.2106-.1552.054-.0648.0924-.1423.1158-.2333.0234-.091.03536-.189.03536-.294v-1.575h.6156v2.7142zM11.8868 23.4149c0 .1155.015.2298.0462.3412.0306.112.0774.2118.1404.2993.063.0875.1434.1575.24.21.0972.0525.2124.0787.3456.0787.1374 0 .255-.028.354-.084.099-.0554.18-.1289.243-.2205.063-.091.1098-.1936.1404-.3068.03-.1137.0462-.2304.0462-.3494 0-.301-.0696-.5355-.2082-.7035-.1386-.168-.327-.252-.564-.252-.1446 0-.2658.0286-.3648.0869-.099.0578-.1806.133-.243.2258-.0636.0927-.108.1977-.135.315-.0276.1172-.0408.2368-.0408.3593zm2.1492 1.3282h-.5832v-.3675h-.0102c-.0834.1575-.204.2701-.3624.339-.1578.0682-.3258.102-.5022.102-.2196 0-.411-.0373-.5748-.1125-.1638-.0753-.3-.178-.4074-.3075-.1086-.1295-.1896-.2829-.2436-.459-.0534-.1768-.0804-.3664-.0804-.57 0-.245.0336-.4567.1026-.6352.0684-.1785.159-.3255.2724-.441.1134-.1155.243-.2007.3888-.2543.1458-.0543.294-.0817.4452-.0817.087 0 .1746.0082.2652.0239.0894.0152.1764.0408.2586.0758.0828.035.1596.08.2298.1336.0702.0543.1284.119.1752.1925h.0114v-1.386h.615v3.7479zM14.8571 24.7433h.615V22.029h-.615v2.7143zm0-3.1815h.615v-.567h-.615v.567zM17.5569 24.344c.1368 0 .2556-.028.3564-.084.1008-.0555.1836-.129.2484-.22.0648-.0915.1122-.1942.1428-.3074.0306-.1137.0462-.2298.0462-.3488 0-.1161-.0156-.2316-.0462-.3465-.0306-.1155-.078-.2182-.1428-.308-.0648-.0887-.1476-.1616-.2484-.2176-.1008-.0554-.2196-.084-.3564-.084-.1374 0-.2556.0286-.3564.084-.1008.056-.1836.1289-.2484.2176-.0648.0898-.1122.1925-.1434.308-.0306.1149-.0456.2304-.0456.3465 0 .119.015.2351.0456.3488.0312.1132.0786.2159.1434.3074.0648.091.1476.1645.2484.22.1008.056.219.084.3564.084zm0 .473c-.2232 0-.4224-.0361-.5964-.1079-.1752-.0717-.3222-.1709-.4428-.2969-.1212-.126-.213-.2759-.2754-.4509-.0636-.1756-.0948-.3681-.0948-.5775 0-.2071.0312-.3973.0948-.5728.0624-.175.1542-.3255.2754-.451.1206-.126.2676-.2251.4428-.2969.174-.0717.3732-.1079.5964-.1079.2232 0 .4218.0362.5964.1079.1746.0718.3222.1709.4428.2969.1212.1255.2124.276.2754.451.063.1755.0948.3657.0948.5728 0 .2094-.0318.4019-.0948.5775-.063.175-.1542.3249-.2754.4509-.1206.126-.2682.2252-.4428.2969-.1746.0718-.3732.1079-.5964.1079zM14.397 16.224c-.723 0-1.203-.294-1.203-.4882 0-.1943.48-.4883 1.203-.4883.723 0 1.203.294 1.203.4883 0 .1942-.48.4882-1.203.4882zm-4.79398 1.2478c-.723 0-1.203-.294-1.203-.4883 0-.1942.48-.4882 1.203-.4882.72298 0 1.20298.294 1.20298.4882 0 .1943-.48.4883-1.20298.4883zm6.48778-6.933c-.0684-.056-.1578-.0787-.2478-.0624l-4.794 1.1194c-.141.0269-.243.147-.243.287v4.2951c-.3156-.1645-.7296-.266-1.20298-.266-1.0278 0-1.803.4609-1.803 1.0716 0 .6113.7752 1.0716 1.803 1.0716 1.02778 0 1.80298-.4603 1.80298-1.0716v-4.8597l4.194-1.0075v3.8139c-.3156-.1651-.7296-.266-1.203-.266-1.0278 0-1.803.4602-1.803 1.0716 0 .6107.7752 1.0715 1.803 1.0715s1.803-.4608 1.803-1.0715v-4.9724c0-.0869-.0402-.1691-.1092-.2246z",clipRule:"evenodd"}))},f1=XT;var RT=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M10.5224 24.0681c0 .0785.0098.1346.0295.1683.0236.0336.0669.0504.1299.0504h.0709c.0276 0 .0591-.0037.0945-.0112v.4431c-.0236.0075-.0551.015-.0945.0225-.0354.0112-.0728.0205-.1122.028-.0394.0075-.0787.0131-.1181.0168-.0394.0038-.0728.0056-.1004.0056-.1378 0-.252-.0261-.3425-.0785-.09057-.0523-.14962-.1439-.17718-.2748-.13386.1234-.29921.2131-.49606.2692-.19291.0561-.37991.0841-.56101.0841-.1378 0-.26968-.0186-.39567-.056-.12598-.0337-.23818-.0842-.3366-.1515-.09449-.071-.17126-.1589-.23032-.2636-.05511-.1084-.08267-.2337-.08267-.3758 0-.1795.03346-.3253.10039-.4375.07087-.1122.16141-.2001.27165-.2636.11417-.0636.24015-.1085.37795-.1346.14173-.03.28346-.0524.42519-.0674.12204-.0224.23818-.0373.34842-.0448.11023-.0112.20669-.0281.28936-.0505.08662-.0224.15354-.0561.20079-.101.05118-.0486.07677-.1196.07677-.2131 0-.0823-.02166-.1496-.06496-.2019-.03937-.0524-.09055-.0916-.15354-.1178-.05906-.0299-.12599-.0486-.20079-.0561-.0748-.0112-.14567-.0168-.21259-.0168-.18898 0-.34449.0374-.46653.1121-.12205.0748-.19094.1907-.20669.3478h-.67322c.01181-.187.05906-.3421.14173-.4655.08268-.1234.18701-.2225.31299-.2973.12992-.0748.27558-.1272.437-.1571.16141-.0299.32677-.0448.49605-.0448.14961 0 .29724.0149.44291.0448.14567.0299.27563.0786.38973.1459.1181.0673.2126.1551.2835.2636.0709.1047.1063.2337.1063.387v1.492zm-.67323-.8077c-.10236.0636-.22834.1028-.37795.1178-.1496.0112-.29921.0299-.44881.0561-.07086.0112-.13976.028-.20669.0505-.06693.0187-.12598.0467-.17716.0841-.05118.0336-.09252.0804-.12402.1402-.02755.0561-.04133.1253-.04133.2075 0 .0711.02165.1309.06496.1795.0433.0486.09448.0879.15354.1178.06299.0262.12992.0449.20078.0561.0748.0112.14173.0168.20079.0168.0748 0 .1555-.0093.24212-.028.08661-.0187.16732-.0505.24212-.0954.07874-.0448.1437-.1009.19488-.1682.05118-.0711.07677-.1571.07677-.258v-.4768zM10.9456 21.8133h.7323l.7736 2.2267h.0118l.7441-2.2267h.6968l-1.0925 2.8998h-.7559l-1.1102-2.8998zM14.3268 20.7083H15v.6058h-.6732v-.6058zm0 1.105H15v2.8998h-.6732v-2.8998zM16.7812 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55623c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0437 1.276c.1125.0729.225.0912.3375.0912.3188 0 .6-.237.6-.5651V12.25c.0188-.3464-.2812-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55623c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},F0=RT;var eN=o=>{var r=o,{color:e="#00BED4"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M9.6869 22.9368c-.0252-.1674-.0942-.2946-.2082-.3803-.1128-.0858-.2556-.1289-.429-.1289-.0792 0-.1638.0134-.2538.0396-.09.0263-.1722.0753-.2478.147-.0762.0718-.1392.1715-.1896.2993-.0504.1277-.0756.2952-.0756.5011 0 .1126.0138.224.0408.3366.0264.112.0702.2117.129.2986.06.0881.1362.1587.2298.2124.0936.0548.207.0816.3408.0816.1794 0 .3276-.0542.4452-.1621.1164-.1091.1896-.2608.2184-.4568h.6156c-.0576.3529-.1956.6236-.4128.8108-.2178.1873-.507.2812-.8664.2812-.2202 0-.4134-.0362-.5808-.1079-.168-.0718-.309-.1698-.4242-.294-.1152-.1243-.2022-.2724-.2622-.4439-.0588-.1715-.0888-.357-.0888-.5565 0-.2024.0288-.3932.0864-.5717.0576-.1791.144-.3337.2592-.4649.1152-.1313.2586-.2345.4296-.3098.171-.0752.3714-.1131.6018-.1131.162 0 .3162.0204.4614.0606.1458.0403.2754.101.3894.1809.1128.0805.2058.1826.2784.3051.0714.1225.1146.2677.129.4351h-.6156zM11.4043 23.8717c.0174.175.0864.2975.2052.3675.1188.07.2604.105.4266.105.057 0 .123-.0041.1968-.0134.0738-.0088.1434-.0251.2082-.0496.0648-.0245.1176-.0601.159-.1073.042-.0473.0606-.1097.057-.1867-.0036-.077-.0324-.14-.087-.189-.0534-.049-.123-.0881-.207-.1178-.0852-.0304-.1812-.0555-.2892-.0765-.108-.021-.2178-.0437-.33-.0682-.1146-.0245-.2256-.0543-.3312-.0893-.1068-.035-.2022-.0822-.2868-.1417-.084-.0595-.1518-.1353-.2022-.2281-.051-.0927-.0756-.2077-.0756-.3442 0-.147.0366-.2706.1104-.3704.0738-.0997.1674-.1796.2814-.2415.1128-.0606.2388-.1038.3774-.1283.1386-.0245.2712-.0368.3972-.0368.144 0 .2814.0146.4128.0444.1314.0303.2502.0781.3564.1446.1068.0665.1944.1535.2646.2596.0702.1074.1146.2357.1326.3862h-.6426c-.0288-.1435-.0966-.2398-.2022-.2888-.1068-.049-.228-.074-.3654-.074-.0426 0-.0942.004-.1536.011-.0594.007-.1152.0199-.1674.0391-.0522.0199-.096.0473-.1326.0846-.0354.0362-.0534.0846-.0534.1441 0 .0735.0264.133.078.1785.0522.0455.1212.0828.2052.1126.0846.0303.1812.0554.2892.0764.1074.021.2196.0437.3342.0682.1122.0245.2214.0543.33.0893.108.035.204.0822.2892.1417.084.0595.1524.1348.2046.2258.0522.091.0786.203.0786.3354 0 .1616-.0378.2981-.1134.4101-.0756.112-.174.203-.294.273-.1212.07-.255.1207-.4026.1522s-.294.0473-.4374.0473c-.1764 0-.3396-.0193-.4884-.0578-.1494-.0385-.2796-.0974-.3894-.1755-.1092-.0794-.1962-.1774-.2586-.294-.0636-.1173-.0972-.2567-.1002-.4177h.6156zM13.6021 22.0288h.669l.708 2.0843h.0108l.6798-2.0843h.6378l-.999 2.7143h-.6918l-1.0146-2.7143zM10.2 17.472h6v-1.1667h-6v1.1667zm-2.39999 0h1.8v-1.1667h-1.8v1.1667zm0-5.25h1.8v-1.1667h-1.8v1.1667zm2.39999 0h6v-1.1667h-6v1.1667zm0 1.75h6v-1.1667h-6v1.1667zm0 1.75h6v-1.1667h-6v1.1667zm-2.39999-1.75h1.8v-1.1667h-1.8v1.1667zm0 1.75h1.8v-1.1667h-1.8v1.1667zM16.5 10.472H7.50001c-.1656 0-.3.1307-.3.2917v7c0 .1616.1344.2916.3.2916H16.5c.1662 0 .3-.13.3-.2916v-7c0-.161-.1338-.2917-.3-.2917z",clipRule:"evenodd"}))},D0=eN;var tN=o=>{var r=o,{color:e="#999"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M16.4998 11.0549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.4998 12.8049H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.4998 14.5549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM13.4998 16.3049H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h6.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM13.4998 18.0549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h6.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}))},V0=tN;var oN=o=>{var r=o,{color:e="#0E86FE"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M7.84262 23.4149c0 .1155.015.2298.0462.3412.03.112.0774.2118.1404.2993.063.0875.1428.1575.24.21.0972.0525.2124.0787.3456.0787.1368 0 .2544-.028.3534-.084.0996-.0554.1806-.1289.2436-.2205.063-.091.1098-.1936.1404-.3068.03-.1138.0456-.2304.0456-.3494 0-.301-.069-.5355-.2076-.7035-.1386-.168-.327-.252-.5646-.252-.144 0-.2652.0286-.3642.0869-.099.0577-.1806.133-.2436.2257-.063.0928-.1074.1978-.1344.315-.0276.1173-.0408.2369-.0408.3594zm2.1492 1.3282h-.5832v-.3675h-.0108c-.0828.1575-.2034.2701-.3618.3389-.1584.0683-.3258.1021-.5022.1021-.2196 0-.411-.0373-.5748-.1126-.1644-.0752-.3-.1779-.408-.3074-.108-.1295-.189-.2829-.243-.4591-.054-.1767-.081-.3663-.081-.5699 0-.245.0342-.4567.1026-.6352.0684-.1785.1596-.3255.273-.441.1134-.1155.243-.2007.3888-.2544.1458-.0542.294-.0816.4452-.0816.0864 0 .1746.0081.2646.0239.09.0152.1764.0408.2592.0758.0828.035.1596.0799.2298.1336.0702.0543.1284.119.1752.1925h.0108v-1.386h.6156v3.7479zM12.0763 24.344c.1368 0 .2556-.028.3564-.084.1008-.0555.1836-.129.2484-.22.0648-.0915.1128-.1942.1434-.3074.03-.1137.0456-.2298.0456-.3488 0-.1161-.0156-.2316-.0456-.3465-.0306-.1155-.0786-.2182-.1434-.308-.0648-.0887-.1476-.1616-.2484-.2176-.1008-.0554-.2196-.084-.3564-.084s-.2556.0286-.3564.084c-.1008.056-.1836.1289-.2484.2176-.0648.0898-.1122.1925-.1434.308-.03.1149-.0456.2304-.0456.3465 0 .119.0156.2351.0456.3488.0312.1132.0786.2159.1434.3074.0648.091.1476.1645.2484.22.1008.056.2196.084.3564.084zm0 .473c-.2232 0-.4224-.0361-.5964-.1079-.1752-.0717-.3222-.1709-.4428-.2969-.1212-.126-.2124-.2759-.2754-.4509-.063-.1756-.0948-.3681-.0948-.5775 0-.2071.0318-.3973.0948-.5728.063-.175.1542-.3255.2754-.451.1206-.126.2676-.2251.4428-.2969.174-.0717.3732-.1079.5964-.1079.2232 0 .4224.0362.597.1079.1746.0718.3222.1709.4422.2969.1212.1255.2124.276.2754.451.063.1755.0948.3657.0948.5728 0 .2094-.0318.4019-.0948.5775-.063.175-.1542.3249-.2754.4509-.12.126-.2676.2252-.4422.2969-.1746.0718-.3738.1079-.597.1079zM16.0182 22.9369c-.0252-.1674-.0948-.2946-.2082-.3803-.1134-.0858-.2562-.129-.429-.129-.0792 0-.1638.0135-.2538.0397-.09.0263-.1728.0753-.2484.147-.0756.0718-.1386.1715-.189.2993-.0504.1277-.0756.2951-.0756.501 0 .1126.0132.224.0408.3366.0264.112.0696.2118.129.2987.0594.0881.1362.1587.2298.2123.0936.0549.207.0817.3402.0817.18 0 .3282-.0543.4452-.1622.117-.1091.1902-.2607.219-.4567h.6156c-.0576.3529-.1956.6236-.4134.8108-.2178.1873-.5064.2812-.8664.2812-.2196 0-.4128-.0362-.5808-.1079-.1674-.0718-.3084-.1698-.4236-.294-.1152-.1243-.2028-.2725-.2622-.444-.0594-.1715-.0888-.357-.0888-.5565 0-.2024.0288-.3931.0864-.5716.0576-.1791.144-.3337.2592-.4649.1152-.1313.258-.2345.429-.3098.171-.0752.372-.1132.6024-.1132.162 0 .3162.0205.4614.0607.1458.0403.2754.1009.3888.1808.1134.0805.2064.1826.2784.3051.072.1225.1152.2678.1296.4352h-.6156zM16.5001 11.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 12.8049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 14.5549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 16.3049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 18.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}))},O0=oN;var rN=o=>{var r=o,{color:e="#5C6070"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M16.2375 15.235l-.6-.3463c0-.1276.0187-.3281.0187-.4557 0-.1094-.0187-.3099-.0187-.4375l.6-.3464c.1875-.0911.2625-.3099.2062-.4922-.2062-.6927-.5812-1.3125-1.0687-1.8229-.15-.1458-.375-.1823-.5625-.0729l-.6.3463c-.2063-.164-.5625-.3645-.8063-.4557v-.6745c0-.2187-.1312-.3828-.3375-.4375-.7125-.16403-1.4437-.16403-2.1562 0-.2063.0547-.3375.2188-.3375.4375v.6745c-.2438.0912-.6.2917-.80625.4557l-.6-.3463c-.1875-.1094-.4125-.0729-.5625.0729-.4875.5104-.8625 1.1302-1.06875 1.8229-.05625.1823.01875.4011.20625.4922l.6.3464c0 .1276-.01875.3281-.01875.4375 0 .1276.01875.3281.01875.4557l-.6.3463c-.1875.0912-.2625.3099-.20625.4922.20625.6927.58125 1.3125 1.06875 1.823.15.1458.375.1822.5625.0729l.6-.3464c.20625.1641.56245.3646.80625.4557v.6745c0 .2188.1312.3828.3375.4375.7125.1641 1.4437.1641 2.1562 0 .2063-.0547.3375-.2187.3375-.4375v-.6745c.2438-.0911.6-.2916.8063-.4557l.6.3464c.1875.1093.4125.0729.5625-.0729.4875-.5105.8625-1.1303 1.0687-1.823.0563-.1823-.0187-.401-.2062-.4922zm-1.2188 1.823l-.8812-.4922c-.5063.4375-.675.5286-1.3313.7656v.9661c-.225.0547-.5812.0912-.8062.0912-.2438 0-.6-.0365-.825-.0912v-.9661c-.6375-.2187-.825-.3281-1.33125-.7656l-.88125.4922c-.35625-.4011-.6375-.875-.825-1.3855l.88125-.4739c-.13125-.6563-.13125-.8568 0-1.513l-.88125-.474c.1875-.5104.46875-.9844.825-1.3854l.88125.4922c.50625-.4375.69375-.5469 1.33125-.7656v-.9662c.225-.0547.5812-.0911.825-.0911.225 0 .5812.0364.8062.0911v.9662c.6375.2187.825.3281 1.3313.7656l.8812-.4922c.3563.401.6375.875.825 1.3854l-.8812.474c.1312.6562.1312.8567 0 1.513l.8812.4739c-.1875.5105-.4687.9844-.825 1.3855zM12 12.683c-.9938 0-1.8.802-1.8 1.75 0 .9661.8062 1.75 1.8 1.75.975 0 1.8-.7839 1.8-1.75 0-.948-.825-1.75-1.8-1.75zm0 2.9166c-.675 0-1.2-.5104-1.2-1.1666 0-.6381.525-1.1667 1.2-1.1667.6562 0 1.2.5286 1.2 1.1667 0 .6562-.5438 1.1666-1.2 1.1666zM9.35869 22.837c-.00757-.0994-.0303-.1951-.06817-.2872-.03408-.092-.08332-.1712-.1477-.2375-.06059-.0699-.13633-.1251-.22723-.1656-.0871-.0442-.18557-.0663-.29539-.0663-.11362 0-.21777.0202-.31244.0607-.0909.0368-.17043.0902-.2386.1602-.06438.0663-.1174.1454-.15906.2375-.03787.092-.0587.1914-.06248.2982h1.51107zm-1.51107.4142c0 .1105.01514.2173.04544.3204.03409.1031.08332.1933.1477.2706.06438.0773.14581.1399.24427.1878.09847.0442.21587.0663.35221.0663.18936 0 .34084-.0387.45446-.116.1174-.081.2045-.2007.26131-.359h.61352c-.03408.1546-.09279.2927-.1761.4142-.08332.1215-.18368.2246-.30108.3093-.1174.081-.24995.1417-.39765.1822-.14392.0442-.2954.0663-.45446.0663-.23102 0-.43553-.0368-.61352-.1104-.178-.0737-.32948-.1768-.45446-.3093-.12119-.1326-.21397-.2909-.27836-.475-.06059-.1841-.09089-.3866-.09089-.6075 0-.2025.03219-.394.09657-.5744.06817-.1841.16285-.3443.28404-.4805.12498-.1399.27457-.2504.44878-.3314.17421-.081.37114-.1215.5908-.1215.23101 0 .43741.0479.6192.1436.18557.0921.33895.2154.46014.37.12118.1547.20829.3333.26131.5358.05685.1988.07195.405.04545.6185H7.84762zM11.2882 23.0138l-1.0168-1.3532h.7839l.6135.8782.642-.8782h.7498l-.9998 1.32 1.1248 1.5354h-.7783l-.7441-1.0549-.7215 1.0549h-.7612l1.1077-1.5022zM15.5664 22.837c-.0075-.0994-.0303-.1951-.0681-.2872-.0341-.092-.0833-.1712-.1477-.2375-.0606-.0699-.1364-.1251-.2273-.1656-.0871-.0442-.1855-.0663-.2953-.0663-.1137 0-.2178.0202-.3125.0607-.0909.0368-.1704.0902-.2386.1602-.0644.0663-.1174.1454-.159.2375-.0379.092-.0587.1914-.0625.2982h1.511zm-1.511.4142c0 .1105.0151.2173.0454.3204.0341.1031.0833.1933.1477.2706.0644.0773.1458.1399.2443.1878.0985.0442.2159.0663.3522.0663.1894 0 .3408-.0387.4545-.116.1174-.081.2045-.2007.2613-.359h.6135c-.0341.1546-.0928.2927-.1761.4142-.0833.1215-.1837.2246-.3011.3093-.1174.081-.2499.1417-.3976.1822-.144.0442-.2954.0663-.4545.0663-.231 0-.4355-.0368-.6135-.1104-.178-.0737-.3295-.1768-.4545-.3093-.1212-.1326-.214-.2909-.2783-.475-.0606-.1841-.0909-.3866-.0909-.6075 0-.2025.0322-.394.0965-.5744.0682-.1841.1629-.3443.2841-.4805.125-.1399.2745-.2504.4488-.3314.1742-.081.3711-.1215.5908-.1215.231 0 .4374.0479.6192.1436.1855.0921.3389.2154.4601.37.1212.1547.2083.3333.2613.5358.0568.1988.072.405.0454.6185h-2.1586z"}))},H0=rN;var nN=o=>{var r=o,{color:e="#1E3868"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.58255 20.9949h.6156v1.3913h.0108c.0756-.1225.1878-.2252.3372-.3074.1494-.0823.3162-.1237.4998-.1237.306 0 .5478.077.7242.2316.1758.154.264.3844.264.6924v1.8643h-.615v-1.7062c-.0078-.2135-.0546-.3687-.141-.4649-.0858-.0963-.2214-.1447-.405-.1447-.1038 0-.198.0187-.2802.0554-.0834.0368-.1536.0875-.2112.1528-.0576.0642-.1026.1406-.135.2275-.0324.0881-.0486.1809-.0486.2789v1.6012h-.6156v-3.7485zM9.53622 22.0289h.46438v-.8138h.6162v.8138h.5562v.4462h-.5562v1.449c0 .063.0024.1173.0078.1628s.018.084.0378.1161c.0198.0309.0492.0542.0888.0705.0402.0158.0942.0234.1626.0234.0426 0 .0858-.0006.1296-.0024.0426-.0017.0858-.0081.1296-.018v.462c-.069.0064-.135.0134-.1998.0204-.0654.007-.1314.0105-.1998.0105-.1626 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2328-.1313-.0552-.0572-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1872-.0354-.2992v-1.6013h-.46438v-.4462zM11.7505 22.0289h.5832v.378h.0162c.0462-.0665.0972-.1278.1512-.1838.054-.056.114-.1032.1806-.1417.0666-.0385.1434-.0688.2298-.0916s.1854-.0344.297-.0344c.1692 0 .327.0373.4722.1102.1458.0735.2496.1873.3102.3413.1044-.14.225-.2503.3624-.3308.1362-.0805.3078-.1207.5124-.1207.2958 0 .525.07.6888.21.1638.1406.246.3745.246.7035v1.8742h-.6156v-1.5849c0-.1091-.0036-.2082-.0108-.2969-.0078-.0898-.0282-.1662-.0618-.2316-.0348-.0641-.0858-.1143-.1542-.1493-.069-.035-.162-.0525-.2808-.0525-.2094 0-.3606.063-.4536.189-.0936.126-.1404.3045-.1404.5355v1.5907h-.6162v-1.743c0-.189-.0348-.3313-.1044-.4275-.0708-.0963-.1998-.1447-.3864-.1447-.0792 0-.156.0157-.2298.0472s-.1386.077-.1944.1365c-.0558.0601-.1008.1336-.135.2205-.0342.0875-.0516.1873-.0516.2993v1.6117h-.615v-2.7142zM16.5996 24.7433h.615v-3.7485h-.615v3.7485zM14.7001 16.5972c-.069 0-.1386-.0234-.195-.0706-.126-.105-.141-.2888-.033-.4107l1.6332-1.8521-1.6332-1.852c-.108-.1225-.093-.3063.033-.4113.1248-.1044.3144-.0904.423.0321l1.8 2.0417c.096.1085.096.27 0 .3791l-1.8 2.0417c-.06.0671-.1434.1021-.228.1021zM9.30013 16.5972c-.0846 0-.168-.035-.228-.1021l-1.8-2.0417c-.096-.1091-.096-.2706 0-.3791l1.8-2.0417c.1092-.1225.2988-.1365.423-.0321.126.105.141.2888.033.4113l-1.6332 1.852 1.6332 1.8521c.108.1219.093.3057-.033.4107-.0564.0472-.126.0706-.195.0706zM10.2001 18.0549c-.045 0-.0906-.0099-.1344-.0309-.14818-.0717-.20758-.2473-.13378-.3908l3.59998-7c.075-.1447.2538-.2013.4026-.1307.1482.0723.2076.2473.1338.392l-3.6 7c-.0528.1015-.1584.1604-.2682.1604z",clipRule:"evenodd"}))},U0=nN;var iN=o=>{var r=o,{color:e="#999"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M7.8002 16.0901c.0078-.007.0168-.0105.024-.0181l2.0952-2.3012 3.3666 3.7007H7.8002v-1.3814zm6.2862 1.3814l-3.9426-4.3342c-.0564-.0624-.138-.098-.2244-.098-.0858 0-.1674.0356-.225.098l-1.8942 2.0819v-4.1644h8.4v6.4167h-2.1138zm2.4138-7h-9c-.1656 0-.3.1306-.3.2916v7c0 .1616.1344.2917.3.2917h9c.1656 0 .3-.1301.3-.2917v-7c0-.161-.1344-.2916-.3-.2916z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M13.7527 13.95c-.3306 0-.6-.2614-.6-.5834s.2694-.5833.6-.5833c.3312 0 .6.2613.6.5833 0 .322-.2688.5834-.6.5834zm0-1.75c-.6618 0-1.2.5232-1.2 1.1666 0 .6434.5382 1.1667 1.2 1.1667.6624 0 1.2-.5233 1.2-1.1667 0-.6434-.5376-1.1666-1.2-1.1666z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M7.79999 20.4167h.60366v.5484h-.60366v-.5484zm0 1.0003h.60366v2.6253h-.60366V21.417zM9.06137 21.417h.57189v.3656h.01589c.04589-.0643.09531-.1235.14826-.1777.05296-.0542.1112-.0999.17475-.1371.06704-.0372.14294-.066.22774-.0863.0847-.0237.1818-.0356.2912-.0356.1659 0 .3195.0356.4607.1067.1447.0711.2471.1811.3071.33.1024-.1354.2206-.242.3548-.3199.1341-.0778.3018-.1168.503-.1168.2895 0 .5137.0677.6725.2031.1624.1355.2436.3623.2436.6805v1.8128h-.6036v-1.5335c0-.105-.0036-.1997-.0106-.2844-.0071-.088-.0283-.1625-.0636-.2234-.0318-.0643-.0812-.1134-.1482-.1473-.0671-.0338-.1589-.0508-.2754-.0508-.2048 0-.353.061-.4448.1829-.0918.1218-.1377.2945-.1377.5179v1.5386h-.6036v-1.6859c0-.1828-.0353-.3199-.1059-.4113-.0671-.0948-.1924-.1422-.376-.1422-.0777 0-.1536.0153-.2277.0457-.0706.0305-.13415.0745-.19063.1321-.05295.0575-.09708.1286-.13238.2132-.03177.0847-.04766.1812-.04766.2895v1.5589h-.60366V21.417zM16.2 23.9052c0 .3961-.1165.6906-.3495.8836-.2295.1963-.5613.2945-.9955.2945-.1377 0-.2771-.0135-.4183-.0406-.1377-.0271-.2648-.0728-.3813-.1371-.113-.0643-.2083-.149-.2859-.2539-.0777-.105-.1236-.2336-.1377-.3859h.6037c.0176.0812.0476.1472.09.198.0423.0508.0918.0897.1482.1168.0601.0305.1254.0491.196.0559.0706.0101.1447.0152.2224.0152.2435 0 .4218-.0576.5348-.1727.1129-.1151.1694-.2809.1694-.4976v-.4012h-.0106c-.0847.1456-.2012.259-.3494.3403-.1448.0812-.3019.1218-.4713.1218-.2189 0-.406-.0355-.5613-.1066-.1518-.0745-.2789-.1743-.3813-.2996-.0988-.1286-.1712-.2759-.2171-.4418-.0459-.1659-.0688-.3436-.0688-.5332 0-.176.0282-.3436.0847-.5027.0565-.1591.1377-.2979.2436-.4164.1059-.1219.2347-.2183.3865-.2894.1554-.0711.3301-.1067.5243-.1067.1729 0 .3318.0356.4765.1067.1448.0677.256.176.3336.325h.0106v-.3606H16.2v2.4882zm-1.3397-.3199c.1341 0 .2471-.0254.3389-.0762.0953-.0541.1712-.1235.2277-.2082.06-.088.1024-.1861.1271-.2945.0282-.1117.0423-.2234.0423-.3351 0-.1117-.0141-.2201-.0423-.325-.0283-.105-.0724-.1981-.1324-.2793-.0565-.0812-.1324-.1456-.2277-.193-.0918-.0474-.203-.0711-.3336-.0711-.1342 0-.2471.0271-.3389.0813-.0918.0542-.1659.1252-.2224.2133-.0565.0846-.0971.1828-.1218.2945-.0247.1083-.0371.2167-.0371.325 0 .1083.0142.2149.0424.3199.0282.1016.0706.193.1271.2742.06.0813.1341.1473.2224.198.0918.0508.2012.0762.3283.0762z"}))},va=iN;var aN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M6.60001 21.9499h.60975v.3853h.01694c.04893-.0677.10163-.1302.15809-.1873.05646-.057.11856-.1052.18631-.1445.07152-.0392.15244-.0695.24278-.0909.09033-.025.19384-.0375.31052-.0375.17691 0 .34064.0375.49119.1124.15433.0749.26348.1909.32747.3478.10915-.1427.23524-.2551.37827-.3371.14303-.0821.32182-.1231.53636-.1231.30861 0 .54761.0714.71701.2141.1732.1427.2597.3817.2597.7171v1.9105h-.6436v-1.6162c0-.1106-.0038-.2105-.0113-.2997-.0075-.0927-.0301-.1712-.0677-.2354-.0339-.0678-.0866-.1196-.15813-.1552-.07151-.0357-.16937-.0535-.29358-.0535-.21831 0-.3764.0642-.47426.1926-.09786.1285-.14679.3104-.14679.5459v1.6215H8.3954V22.94c0-.1927-.03764-.3372-.11291-.4335-.07152-.0999-.20514-.1498-.40086-.1498-.08281 0-.16373.016-.24278.0481-.07528.0321-.14303.0785-.20325.1392-.05646.0606-.10351.1355-.14115.2247-.03387.0892-.05081.1909-.05081.3051v1.6429h-.64363v-2.7668zM12.8507 24.7917c-.2334 0-.4423-.0357-.6267-.1071-.1807-.0749-.335-.1766-.463-.305-.1242-.1285-.2202-.2819-.2879-.4603-.064-.1783-.096-.3746-.096-.5886 0-.2105.032-.405.096-.5834.0677-.1784.1637-.3318.2879-.4602.128-.1285.2823-.2284.463-.2997.1844-.0749.3933-.1124.6267-.1124.2333 0 .4404.0375.621.1124.1845.0713.3388.1712.463.2997.128.1284.224.2818.2879.4602.0678.1784.1017.3729.1017.5834 0 .214-.0339.4103-.1017.5886-.0639.1784-.1599.3318-.2879.4603-.1242.1284-.2785.2301-.463.305-.1806.0714-.3877.1071-.621.1071zm0-.4817c.143 0 .2672-.0285.3726-.0856s.192-.132.2597-.2248c.0678-.0927.1167-.1962.1468-.3104.0339-.1177.0508-.2372.0508-.3585 0-.1178-.0169-.2355-.0508-.3533-.0301-.1177-.079-.2212-.1468-.3104-.0677-.0927-.1543-.1676-.2597-.2247-.1054-.0571-.2296-.0856-.3726-.0856s-.2673.0285-.3726.0856c-.1054.0571-.192.132-.2598.2247-.0677.0892-.1185.1927-.1524.3104-.0301.1178-.0452.2355-.0452.3533 0 .1213.0151.2408.0452.3585.0339.1142.0847.2177.1524.3104.0678.0928.1544.1677.2598.2248.1053.0571.2296.0856.3726.0856zM14.5714 21.9499h.7001l.7396 2.1246h.0113l.7114-2.1246H17.4l-1.0445 2.7668h-.7227l-1.0614-2.7668zM16.7813 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55626c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0438 1.276c.1125.0729.225.0912.3375.0912.3187 0 .6-.237.6-.5651V12.25c.0187-.3464-.2813-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55626c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},z0=aN;var sN=o=>{var r=o,{color:e="#FFB400"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.59998 22.2436h.60542v.3955h.01618c.04853-.0696.1008-.1337.1568-.1923.056-.0586.11822-.108.18791-.1483.06906-.0403.14809-.072.23831-.0958.08898-.0238.19164-.036.308-.036.17484 0 .33849.039.48969.1153.1512.0769.25822.1959.32169.3571.10826-.1465.23333-.2619.3752-.3461.14186-.0842.31982-.1263.532-.1263.30672 0 .54382.0732.71432.2197.1692.1471.2545.3918.2545.736v1.9609h-.6378v-1.6582c0-.1141-.0044-.2179-.0118-.3106-.0075-.094-.0293-.174-.0641-.2423-.0355-.0671-.08899-.1196-.1593-.1563-.07156-.0366-.16862-.0549-.29182-.0549-.21654 0-.37334.0659-.4704.1978-.09707.1318-.14498.3185-.14498.5602v1.6643h-.63902v-1.8236c0-.1977-.03609-.3466-.10889-.4473-.07343-.1007-.20658-.1514-.40071-.1514-.08214 0-.16178.0165-.23769.0495-.07654.0329-.14374.0805-.2016.1428-.05849.0628-.10454.1397-.14063.2307-.03484.0915-.05288.1959-.05288.3131v1.6862h-.6384v-2.8397zM13.732 23.49c0-.1131-.0169-.223-.0527-.3296-.0352-.1067-.0879-.2009-.1576-.2839-.071-.0819-.1582-.1481-.2643-.1987-.1055-.0501-.2266-.0749-.3633-.0749-.2812 0-.4928.0808-.6354.2424-.1426.1621-.2142.3765-.2142.6447 0 .1261.0189.2429.056.3512.0371.1088.0931.2014.1667.279.0742.0776.1634.139.2669.1842.1028.0453.2233.0679.36.0679.1523 0 .2819-.0259.3874-.0776.1054-.0517.192-.119.2604-.2014.0683-.0819.1172-.1756.1465-.2806.0293-.1056.0436-.2128.0436-.3227zM11.4 22.2345h.6334v.3393h.0111c.0944-.1454.2246-.2494.3932-.3124.168-.063.349-.0948.5449-.0948.2377 0 .446.0345.6237.104.1778.0694.3256.1653.4421.2865.1172.1207.2057.2623.2643.4239.058.1616.0873.3345.0873.5187 0 .1681-.0267.3313-.0788.4896-.0527.1584-.1328.2979-.2402.4191-.1075.1217-.2435.2181-.4076.2908-.1641.0733-.3574.1094-.5794.1094-.0983 0-.196-.007-.2936-.0221-.0977-.014-.1915-.0377-.2806-.07-.0905-.0323-.1732-.0733-.2494-.1234-.0762-.0506-.14-.1093-.1907-.1772h-.0118v1.2507H11.4v-3.4321zM15.957 22.7047c.0907.0037.1814-.0037.2721-.0224.0907-.0181.1716-.0511.2429-.0979.0713-.0474.1285-.1116.1722-.1938.0437-.0823.0659-.1833.0659-.303 0-.1683-.0492-.3029-.1485-.4039-.0988-.101-.2256-.1515-.3811-.1515-.0972 0-.1814.0225-.2526.068-.0718.0442-.1307.1047-.1776.182-.047.0767-.0815.1621-.1042.2581-.0227.0953-.0324.1932-.0292.2942h-.5538c.0059-.1902.0372-.3678.0923-.5299.0551-.1626.1306-.3041.2262-.4238.095-.1191.2111-.2132.3471-.2805.136-.0673.2899-.1004.4615-.1004.1328 0 .2629.0219.3908.0667.1285.0449.243.1104.3455.1964.1015.086.1836.1957.2451.3285.0615.1327.0923.2848.0923.4569 0 .1988-.0389.3714-.1166.5186-.0777.1483-.1992.2555-.3644.3228v.0112c.1944.0449.3455.1559.454.3341.1085.1777.163.3934.163.6483 0 .1864-.0323.354-.0971.5011-.0648.1484-.1523.2737-.2624.3765-.1101.1029-.238.182-.3838.2387-.1457.0555-.2996.0836-.4615.0836-.1976 0-.3698-.0324-.5177-.0985-.1474-.0648-.2704-.1577-.3687-.2774-.0993-.1197-.1743-.2636-.2262-.4313-.0518-.1689-.0799-.3559-.0826-.5616h.5539c-.0065.2393.0442.4388.1528.5977.1085.159.2715.2381.4885.2381.1846 0 .339-.061.4642-.182.1242-.1215.1868-.2948.1868-.5192 0-.1533-.0259-.2742-.0777-.3646-.0519-.0898-.1199-.1577-.2041-.2045-.0842-.0467-.1792-.076-.2839-.0872-.1058-.0106-.2133-.0144-.3234-.0106v-.4775zM14.397 16.2524c-.723 0-1.203-.294-1.203-.4882 0-.1943.48-.4883 1.203-.4883.723 0 1.203.294 1.203.4883 0 .1942-.48.4882-1.203.4882zM9.60299 17.5c-.723 0-1.203-.2939-1.203-.4882 0-.1942.48-.4882 1.203-.4882.72301 0 1.20301.294 1.20301.4882 0 .1943-.48.4882-1.20301.4882zm6.48781-6.9324c-.0684-.056-.1578-.0788-.2478-.0624l-4.794 1.1193c-.141.0268-.243.147-.243.287v4.2948c-.3156-.1645-.7296-.266-1.20301-.266-1.0278 0-1.803.4608-1.803 1.0715 0 .6113.7752 1.0715 1.803 1.0715 1.02781 0 1.80301-.4602 1.80301-1.0715v-4.8594L15.6 11.145v3.8136c-.3156-.165-.7296-.266-1.203-.266-1.0278 0-1.803.4603-1.803 1.0716 0 .6107.7752 1.0715 1.803 1.0715s1.803-.4608 1.803-1.0715v-4.972c0-.087-.0402-.1692-.1092-.2246z",clipRule:"evenodd"}))},j0=sN;var lN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M6.60001 21.6977h.60058v.3893h.01668c.0482-.0685.1001-.1316.15571-.1893.05561-.0576.11678-.1063.18351-.1459.07044-.0397.15015-.0703.23913-.0919.08897-.0253.19092-.0379.30585-.0379.17424 0 .33551.0379.4838.1135.152.0757.25952.1929.32254.3515.10751-.1442.23171-.2577.37259-.3406.14087-.0829.31697-.1244.52829-.1244.30401 0 .53941.0721.70621.2163.1706.1441.2558.3856.2558.7244v1.9302h-.6339v-1.6328c0-.1117-.0037-.2127-.0111-.3028-.0074-.0937-.0297-.173-.0668-.2378-.0333-.0685-.08524-.1208-.15567-.1568-.07044-.0361-.16683-.0541-.28917-.0541-.21503 0-.37074.0649-.46713.1946-.09639.1298-.14458.3136-.14458.5515v1.6382H8.3684v-1.795c0-.1946-.03708-.3406-.11122-.4379-.07044-.1009-.20205-.1514-.39483-.1514-.08156 0-.16127.0162-.23912.0487-.07415.0324-.14088.0793-.2002.1405-.05561.0613-.10195.137-.13902.2271-.03337.0901-.05005.1928-.05005.3082v1.6598h-.63395v-2.7952zM11.4554 21.6977h.6006v.3785h.0111c.089-.1622.2132-.2776.3726-.3461.1594-.072.3318-.1081.5172-.1081.2261 0 .4226.0397.5894.119.1706.0756.3114.182.4227.3189.1112.1334.1946.2902.2502.4704.0556.1802.0834.3731.0834.5785 0 .1874-.0259.3694-.0778.5461-.0482.1766-.1242.3334-.228.4703-.1001.1334-.228.2415-.3838.3244-.1557.0793-.3392.119-.5505.119-.0927 0-.1854-.0091-.278-.0271-.0927-.0144-.1817-.0396-.267-.0757-.0852-.036-.1649-.0811-.2391-.1351-.0704-.0577-.1297-.1244-.1779-.2001h-.0112v1.3949h-.6339v-3.8278zm2.2133 1.4003c0-.1262-.0167-.2487-.0501-.3677-.0334-.1189-.0834-.2234-.1501-.3135-.0668-.0937-.1502-.1676-.2503-.2217-.1001-.0577-.215-.0865-.3448-.0865-.2669 0-.4689.0901-.6061.2703-.1335.1802-.2002.4199-.2002.7191 0 .1406.0167.2721.05.3947.0371.1189.0909.2216.1613.3081.0705.0865.1539.155.2503.2055.1001.0504.215.0757.3447.0757.1446 0 .267-.0289.3671-.0865.1001-.0577.1816-.1316.2446-.2217.0668-.0937.1131-.1982.1391-.3136.0296-.1189.0445-.2397.0445-.3622zM15.1275 23.1088h1.1789v-1.6652h-.0111l-1.1678 1.6652zm2.28.4866h-.5005v.8975h-.6006v-.8975h-1.6683v-.6109l1.6683-2.2762h.6006v2.4005h.5005v.4866zM16.7813 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55626c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0438 1.276c.1125.0729.225.0912.3375.0912.3187 0 .6-.237.6-.5651V12.25c.0187-.3464-.2813-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55626c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},G0=lN;var mN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M4.79999 21.6599h.6075v.3937h.01687c.04875-.0692.10125-.133.1575-.1914.05625-.0583.11813-.1075.18563-.1476.07125-.0401.15187-.0711.24187-.093.09-.0255.19313-.0383.30938-.0383.17625 0 .33937.0383.48937.1149.15375.0765.2625.195.32625.3554.10875-.1458.23438-.2607.37688-.3445.1425-.0839.32062-.1258.53437-.1258.3075 0 .54563.0729.71438.2188.1725.1458.25875.3901.25875.7328v1.9523h-.64125v-1.6515c0-.1131-.00375-.2151-.01125-.3063-.0075-.0948-.03-.175-.0675-.2406-.03375-.0693-.08625-.1222-.1575-.1586-.07125-.0365-.16875-.0547-.2925-.0547-.2175 0-.375.0656-.4725.1969-.0975.1312-.14625.3172-.14625.5578v1.657h-.64125v-1.8156c0-.1969-.0375-.3445-.1125-.443-.07125-.1021-.20438-.1531-.39938-.1531-.0825 0-.16312.0164-.24187.0492-.075.0328-.1425.0802-.2025.1422-.05625.062-.10313.1385-.14063.2297-.03375.0911-.05062.195-.05062.3117v1.6789h-.64125v-2.8273zM9.71127 21.6599h.60753v.3828h.0112c.09-.1641.2156-.2807.3769-.35.1612-.0729.3356-.1094.5231-.1094.2288 0 .4275.0401.5963.1203.1725.0766.315.1841.4275.3227.1125.1349.1968.2935.2531.4758.0562.1823.0844.3773.0844.5851 0 .1896-.0263.3737-.0788.5524-.0487.1786-.1256.3372-.2306.4757-.1013.1349-.2306.2443-.3881.3282-.1575.0802-.3432.1203-.5569.1203-.0938 0-.1875-.0091-.2813-.0274-.0937-.0145-.1837-.0401-.27-.0765-.0862-.0365-.1668-.0821-.2418-.1367-.0713-.0584-.1313-.1258-.18-.2024h-.0113v1.411h-.64123v-3.8719zM11.95 23.0763c0-.1276-.0169-.2516-.0506-.3719-.0338-.1203-.0844-.226-.1519-.3172-.0675-.0948-.1519-.1695-.2531-.2242-.1013-.0583-.2175-.0875-.3488-.0875-.27 0-.4743.0911-.6131.2734-.135.1823-.2025.4248-.2025.7274 0 .1422.0169.2752.0506.3992.0375.1203.0919.2242.1632.3117.0712.0875.1556.1568.2531.2078.1012.0511.2175.0766.3487.0766.1463 0 .27-.0292.3713-.0875.1012-.0583.1837-.1331.2475-.2242.0675-.0948.1144-.2005.1406-.3172.03-.1203.045-.2425.045-.3664zM15.13 22.8247c-.0075-.0984-.03-.1932-.0675-.2844-.0338-.0911-.0825-.1695-.1463-.2351-.06-.0693-.135-.124-.225-.1641-.0862-.0437-.1837-.0656-.2925-.0656-.1125 0-.2156.0201-.3093.0602-.09.0364-.1688.0893-.2363.1586-.0637.0656-.1162.144-.1575.2351-.0375.0912-.0581.1896-.0619.2953H15.13zm-1.4963.4102c0 .1094.015.2151.045.3172.0338.102.0825.1914.1463.2679.0637.0766.1444.1386.2419.186.0975.0437.2137.0656.3487.0656.1875 0 .3375-.0383.45-.1148.1163-.0803.2025-.1987.2588-.3555h.6075c-.0338.1531-.0919.2898-.1744.4101-.0825.1204-.1819.2224-.2981.3063-.1163.0802-.2475.1404-.3938.1805-.1425.0437-.2925.0656-.45.0656-.2287 0-.4312-.0365-.6075-.1094-.1762-.0729-.3262-.175-.45-.3062-.12-.1313-.2119-.2881-.2756-.4704-.06-.1822-.09-.3828-.09-.6015 0-.2005.0319-.3901.0956-.5688.0675-.1823.1613-.3409.2813-.4757.1237-.1386.2718-.248.4443-.3282s.3675-.1203.585-.1203c.2288 0 .4332.0474.6132.1422.1837.0911.3356.2133.4556.3664s.2062.33.2587.5305c.0563.1969.0713.401.045.6125h-2.1375zM18.9475 24.3396c0 .4265-.1238.7437-.3713.9515-.2437.2115-.5962.3172-1.0575.3172-.1462 0-.2944-.0146-.4444-.0437-.1462-.0292-.2812-.0784-.4049-.1477-.12-.0693-.2213-.1604-.3038-.2734-.0825-.1131-.1312-.2516-.1462-.4157h.6412c.0187.0875.0506.1586.0956.2133.045.0547.0975.0966.1575.1258.0638.0328.1332.0529.2081.0602.075.0109.1538.0164.2363.0164.2587 0 .4481-.062.5681-.186.12-.1239.18-.3026.18-.5359v-.432h-.0112c-.09.1567-.2138.2789-.3713.3664-.1537.0875-.3206.1312-.5006.1312-.2325 0-.4313-.0383-.5963-.1148-.1612-.0802-.2962-.1878-.4049-.3227-.105-.1385-.1819-.2971-.2307-.4758-.0487-.1786-.0731-.37-.0731-.5742 0-.1896.03-.37.09-.5414.06-.1713.1462-.3208.2587-.4484.1125-.1313.2494-.2352.4107-.3117.165-.0766.3506-.1149.5569-.1149.1837 0 .3524.0383.5062.1149.1537.0729.2719.1895.3544.35h.0112v-.3883h.6413v2.6797zm-1.4231-.3446c.1425 0 .2624-.0273.3599-.082.1013-.0583.1819-.1331.2419-.2242.0638-.0948.1088-.2005.135-.3172.03-.1203.045-.2406.045-.3609 0-.1204-.015-.237-.045-.35-.03-.1131-.0769-.2133-.1406-.3008-.06-.0875-.1406-.1568-.2419-.2078-.0975-.0511-.2156-.0766-.3543-.0766-.1426 0-.2626.0292-.3601.0875-.0975.0583-.1762.1349-.2362.2297-.06.0911-.1031.1969-.1294.3172-.0262.1166-.0394.2333-.0394.35 0 .1166.015.2315.045.3445.03.1094.075.2078.1351.2953.0637.0875.1425.1586.2362.2133.0975.0547.2137.082.3488.082zM16.7812 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55623c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0437 1.276c.1125.0729.225.0912.3375.0912.3188 0 .6-.237.6-.5651V12.25c.0188-.3464-.2812-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55623c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},Bm=mN;var dN=o=>{var r=o,{color:e="#F02B04"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.1143 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.08104-.2176-.14584-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.06304-.0887.10804-.1902.13504-.304.027-.1143.0402-.2304.0402-.3494zm-2.14924-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.16384.0752.29944.179.40744.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.15124.0793-.32944.1184-.53464.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM11.8639 23.4149c0 .1155.015.2298.0462.3412.03.112.0774.2118.1404.2993.063.0875.1428.1575.24.21.0972.0525.2124.0787.3456.0787.1368 0 .2544-.028.3534-.084.0996-.0554.1806-.1289.2436-.2205.063-.091.1098-.1936.1404-.3068.03-.1138.0456-.2304.0456-.3494 0-.301-.069-.5355-.2076-.7035-.1386-.168-.327-.252-.5646-.252-.144 0-.2652.0286-.3642.0869-.099.0577-.1806.133-.2436.2257-.063.0928-.1074.1978-.1344.315-.0276.1173-.0408.2369-.0408.3594zm2.1492 1.3282h-.5832v-.3675h-.0108c-.0828.1575-.2034.2701-.3618.3389-.1584.0683-.3258.1021-.5022.1021-.2196 0-.411-.0373-.5748-.1126-.1644-.0752-.3-.1779-.408-.3074-.108-.1295-.189-.2829-.243-.4591-.054-.1767-.081-.3663-.081-.5699 0-.245.0342-.4567.1026-.6352.0684-.1785.1596-.3255.273-.441.1134-.1155.243-.2007.3888-.2544.1458-.0542.294-.0816.4452-.0816.0864 0 .1746.0081.2646.0239.09.0152.1764.0408.2592.0758.0828.035.1596.0799.2298.1336.0702.0543.1284.119.1752.1925h.0108v-1.386h.6156v3.7479zM14.5422 22.0289h.459v-.2258c0-.1715.0216-.3103.0648-.4176.0432-.1062.1008-.189.1728-.2462.072-.0578.1536-.0963.2454-.1161.0924-.0187.1884-.028.2892-.028.198 0 .342.0117.432.0362v.4672c-.0396-.0105-.0822-.0181-.1266-.0233-.0456-.0053-.0984-.0082-.1596-.0082-.0828 0-.1536.0193-.2136.0578-.0594.0385-.0888.1137-.0888.2257v.2783h.5238v.4462h-.5238v2.268h-.6156v-2.268h-.459v-.4462zM12.3001 11.0555h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917zM16.5001 12.2222h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 13.9722h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 15.7222H7.50013c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h8.99997c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 17.4722H7.50013c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h8.99997c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM7.80001 13.972H10.2v-2.9167H7.80001v2.9167zm-.3.5833H10.5c.1662 0 .3-.1301.3-.2916v-3.5c0-.161-.1338-.2917-.3-.2917H7.50001c-.1656 0-.3.1307-.3.2917v3.5c0 .1615.1344.2916.3.2916z",clipRule:"evenodd"}))},$0=dN;var cN=o=>{var r=o,{color:e="#FF742F"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.0811 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.08101-.2176-.14581-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.063-.0887.10801-.1902.13501-.304.027-.1143.0402-.2304.0402-.3494zm-2.14922-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.16382.0752.29942.179.40742.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.15122.0793-.32942.1184-.53462.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM13.5157 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.081-.2176-.1458-.3074-.0648-.0887-.1458-.1605-.243-.2153-.0972-.0542-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4078-.1974.6983 0 .1365.0174.2631.0516.3803.0336.1178.0852.2182.1536.3022.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2182.063-.0887.108-.1902.135-.3039.027-.1143.0402-.2304.0402-.3494zm-2.1492-1.3598h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3383.1548-.0683.3222-.1027.5022-.1027.2196 0 .4116.0374.5754.1126.1638.0753.2994.1791.4074.3103.108.1307.189.2841.243.4591.054.175.081.3623.081.5618 0 .182-.0246.3587-.0726.5302-.0486.1715-.1224.3226-.2214.4539-.099.1318-.2244.2362-.3756.315-.1512.0793-.3294.1184-.5346.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0409-.2592-.0759-.0828-.035-.159-.0793-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM14.5036 22.0288h.4644v-.8137h.6156v.8137h.5562v.4463h-.5562v1.449c0 .063.003.1172.0084.1627.0054.0455.018.084.0378.1161.0198.0309.0492.0543.0888.0706.0396.0157.0936.0233.162.0233.0432 0 .0864-.0006.1296-.0023.0432-.0018.0864-.0082.1296-.0181v.462c-.0684.0064-.135.0134-.1998.0204-.0648.007-.1314.0105-.1998.0105-.162 0-.2922-.0146-.3912-.0449-.099-.0297-.1764-.0735-.2328-.1312-.0552-.0572-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1873-.0354-.2993v-1.6012h-.4644v-.4463zM11.5263 10.8094c-1.0752 0-2.08619.4072-2.84699 1.1468-.7608.7391-1.179 1.7226-1.179 2.768 0 1.0453.4188 2.0282 1.179 2.7673.7602.7402 1.77179 1.1468 2.84699 1.1468s2.0862-.4071 2.847-1.1468c.7608-.7391 1.179-1.722 1.179-2.7673 0-.1278-.1056-.2305-.2364-.2305h-3.5526v-3.4539c0-.1271-.1062-.2304-.237-.2304zm-.363.602v3.0823c0 .322.2682.5834.6.5834h3.1704c-.0816.7566-.4236 1.4571-.9846 2.002-.648.6294-1.5084.9759-2.4228.9759-.9156 0-1.7754-.3465-2.4228-.9759-.6468-.6294-1.0032-1.4659-1.0032-2.3549 0-.8902.3558-1.7267 1.0032-2.355.561-.546 1.2822-.8785 2.0598-.9578z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M12.5931 9.8882c-.1266 0-.2298.10033-.2298.224v3.5747c0 .1236.1032.224.2298.224h3.6768c.1272 0 .2304-.1004.2304-.224 0-1.0145-.4068-1.9682-1.1448-2.6857-.7374-.7175-1.719-1.113-2.7624-1.113zm.3702.6032c.7434.0805 1.4316.4007 1.968.9222.5364.5221.8658 1.1912.9486 1.9139h-2.9166v-2.8361z",clipRule:"evenodd"}))},Lm=cN;var pN=o=>{var r=o,{color:e="#FF742F"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M16.5001 11.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 12.8049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 14.5549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 16.3049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 18.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M7.20001 21.9525h.61485v.3874h.01138c.09109-.166.21824-.2841.38144-.3542.1632-.0738.33968-.1107.52945-.1107.23151 0 .43267.0406.60346.1218.17459.0775.31881.1863.43267.3265.11386.1366.19925.2971.25614.4816.057.1845.0854.3819.0854.5922 0 .1919-.0265.3782-.0797.559-.0493.1808-.12711.3413-.23338.4816-.10247.1365-.23341.2472-.39281.332-.15941.0812-.34728.1218-.56361.1218-.09489 0-.18977-.0092-.28466-.0277-.09488-.0147-.18597-.0406-.27326-.0775s-.16889-.083-.2448-.1383c-.07211-.0591-.13284-.1273-.18218-.2048h-.01138v1.428h-.64901v-3.9187zm2.26583 1.4335c0-.1291-.01708-.2546-.05124-.3763-.03416-.1218-.0854-.2288-.15371-.3211-.06832-.0959-.15371-.1716-.25619-.2269-.10247-.059-.22013-.0886-.35297-.0886-.27326 0-.48011.0923-.62054.2768-.13663.1845-.20495.4299-.20495.7361 0 .1439.01708.2786.05124.4041.03796.1217.09299.2269.1651.3155.07211.0885.15751.1586.25619.2103.10247.0516.22013.0775.35296.0775.14802 0 .27327-.0295.37574-.0886.10248-.059.18597-.1347.2505-.2269.06831-.096.11575-.203.14232-.321.03036-.1218.04555-.2454.04555-.3709zM10.6803 21.9525h.6149v.3874h.0114c.091-.166.2182-.2841.3814-.3542.1632-.0738.3397-.1107.5294-.1107.2315 0 .4327.0406.6035.1218.1746.0775.3188.1863.4327.3265.1138.1366.1992.2971.2561.4816.057.1845.0854.3819.0854.5922 0 .1919-.0265.3782-.0797.559-.0493.1808-.1271.3413-.2334.4816-.1024.1365-.2334.2472-.3928.332-.1594.0812-.3473.1218-.5636.1218-.0949 0-.1898-.0092-.2847-.0277-.0948-.0147-.1859-.0406-.2732-.0775-.0873-.0369-.1689-.083-.2448-.1383-.0721-.0591-.1329-.1273-.1822-.2048h-.0114v1.428h-.649v-3.9187zm2.2658 1.4335c0-.1291-.017-.2546-.0512-.3763-.0342-.1218-.0854-.2288-.1537-.3211-.0683-.0959-.1537-.1716-.2562-.2269-.1025-.059-.2201-.0886-.353-.0886-.2732 0-.4801.0923-.6205.2768-.1366.1845-.2049.4299-.2049.7361 0 .1439.017.2786.0512.4041.0379.1217.093.2269.1651.3155.0721.0885.1575.1586.2562.2103.1024.0516.2201.0775.3529.0775.1481 0 .2733-.0295.3758-.0886.1025-.059.1859-.1347.2505-.2269.0683-.096.1157-.203.1423-.321.0304-.1218.0455-.2454.0455-.3709zM14.9349 23.3085l-1.0191-1.356h.7857l.6148.88.6433-.88h.7515l-1.002 1.3228 1.1272 1.5387h-.7799l-.7458-1.0571-.723 1.0571h-.7629l1.1102-1.5055z"}))},Y0=pN;var uN=o=>{var r=o,{color:e="#F14B5F"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.2396 14.2917v.5833c0 .161-.1428.2917-.31979.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.17699 0 .31979.1307.31979.2917zM10.8794 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM11.5193 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM12.1597 13.7083v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM12.7996 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM13.4394 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM9.59976 13.7083v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM14.0798 14.2917v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM5.11967 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM5.75953 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM6.39937 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM7.0398 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.1764 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1434-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM7.67964 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM8.31947 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM4.47986 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM1.91929 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM2.55973 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM3.19957 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM3.8394 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM8.95933 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM18.9197 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM18.2798 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM15.0794 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM15.7193 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM16.3597 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM16.9996 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM17.6394 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M14.4396 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M9 21.0773h.60793v.5524h.01136c.01894-.0773.05492-.1528.10795-.2265.05682-.0736.1231-.1399.19886-.1988.0795-.0626.1667-.1123.2614-.1492.0946-.0368.1912-.0552.2897-.0552.0758 0 .1269.0018.1534.0055l.0909.0111v.6076c-.0454-.0074-.0928-.0129-.142-.0166-.0455-.0074-.0909-.011-.1364-.011-.1098 0-.214.0221-.3125.0663-.0947.0405-.17799.1031-.24995.1878-.07197.081-.12879.1822-.17045.3038-.04167.1215-.0625.2614-.0625.4198v1.3588H9v-2.8558zM13.4576 23.2979c0 .0773.0094.1326.0284.1657.0227.0331.0644.0497.125.0497h.0681c.0266 0 .0569-.0037.0909-.011v.4363c-.0227.0074-.053.0148-.0909.0221-.0341.0111-.07.0203-.1079.0277-.0379.0073-.0758.0128-.1136.0165-.0379.0037-.0701.0055-.0966.0055-.1326 0-.2424-.0257-.3296-.0773-.0871-.0515-.1439-.1418-.1704-.2706-.1288.1215-.2879.2099-.4773.2651-.1856.0552-.3655.0828-.5397.0828-.1326 0-.2595-.0184-.3807-.0552-.1212-.0331-.2291-.0828-.3238-.1491-.0909-.07-.1648-.1565-.2216-.2596-.053-.1068-.0796-.2302-.0796-.3701 0-.1768.0322-.3204.0966-.4309.0682-.1105.1553-.197.2614-.2596.1098-.0626.231-.1068.3636-.1326.1364-.0294.2727-.0515.4091-.0663.1174-.0221.2291-.0368.3352-.0442.1061-.011.1989-.0276.2784-.0497.0833-.0221.1477-.0552.1932-.0994.0492-.0479.0738-.1178.0738-.2099 0-.081-.0208-.1473-.0625-.1989-.0378-.0515-.0871-.0902-.1477-.116-.0568-.0294-.1212-.0478-.1932-.0552-.0719-.011-.1401-.0166-.2045-.0166-.1818 0-.3314.0369-.4488.1105-.1175.0737-.1838.1878-.1989.3425h-.6477c.0114-.1841.0568-.337.1364-.4585.0795-.1215.1799-.2191.3011-.2927.125-.0737.2651-.1252.4204-.1547S12.1186 21 12.2815 21c.1439 0 .2859.0147.4261.0442.1401.0295.2651.0773.375.1436.1136.0663.2045.1528.2727.2596.0682.1031.1023.2302.1023.3812v1.4693zm-.6477-.7954c-.0985.0626-.2197.1012-.3637.116-.1439.011-.2878.0294-.4318.0552-.0681.011-.1344.0276-.1988.0497-.0644.0184-.1212.046-.1705.0829-.0492.0331-.089.0791-.1193.1381-.0265.0552-.0398.1233-.0398.2043 0 .07.0209.1289.0625.1768.0417.0479.091.0865.1478.116.0606.0258.125.0442.1931.0552.072.0111.1364.0166.1932.0166.072 0 .1496-.0092.233-.0276.0833-.0184.1609-.0497.2329-.0939.0758-.0442.1383-.0994.1875-.1657.0492-.07.0739-.1547.0739-.2541v-.4695zM14.1545 21.0773h.6079v.5524h.0114c.0189-.0773.0549-.1528.1079-.2265.0568-.0736.1231-.1399.1989-.1988.0795-.0626.1666-.1123.2613-.1492.0947-.0368.1913-.0552.2898-.0552.0757 0 .1269.0018.1534.0055l.0909.0111v.6076c-.0454-.0074-.0928-.0129-.142-.0166-.0455-.0074-.0909-.011-.1364-.011-.1098 0-.214.0221-.3125.0663-.0947.0405-.178.1031-.25.1878-.0719.081-.1288.1822-.1704.3038-.0417.1215-.0625.2614-.0625.4198v1.3588h-.6477v-2.8558z"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M22.4394 14.2917c0 .161-.1428.2916-.3198.2916h-1.6002V14h1.6002c.177 0 .3198.1307.3198.2917zm-3.1998 0c0-.161.1428-.2917.3198-.2917h.3198v.5833h-.3198c-.177 0-.3198-.1306-.3198-.2916zm-.6396 0c0 .4824.4296.875.9594.875h2.5602c.5292 0 .9594-.3926.9594-.875 0-.4825-.4302-.875-.9594-.875h-2.5602c-.5298 0-.9594.3925-.9594.875z",clipRule:"evenodd"}))},W0=uN;var fN=o=>{var r=o,{color:e="#795545"}=r,t=I(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M8.57751 22.0289h.4644v-.8138h.6156v.8138h.55619v.4462h-.55619v1.449c0 .063.003.1173.0078.1628.0054.0455.0186.084.0384.1161.0192.0309.0492.0542.0888.0706.0396.0157.0936.0233.162.0233.0432 0 .08639-.0006.12959-.0023.0432-.0018.0864-.0082.1296-.0181v.462c-.0684.0064-.135.0134-.1998.0204-.06479.007-.13139.0105-.19979.0105-.162 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2322-.1313-.0552-.0571-.0936-.1301-.1134-.2176-.0192-.0875-.0312-.1872-.0348-.2992v-1.6013h-.4644v-.4462zM11.5424 23.3152l-.9666-1.2863h.7452l.5832.8348.6102-.8348h.7128l-.9504 1.2548 1.0692 1.4595h-.7404l-.7068-1.0028-.6858 1.0028h-.7236l1.053-1.428zM13.5451 22.0289h.4644v-.8138h.6162v.8138h.5562v.4462h-.5562v1.449c0 .063.0024.1173.0078.1628s.018.084.0378.1161c.0198.0309.0492.0542.0888.0706.0402.0157.0942.0233.1626.0233.0426 0 .0858-.0006.1296-.0023.0426-.0018.0858-.0082.1296-.0181v.462c-.069.0064-.135.0134-.1998.0204-.0654.007-.1314.0105-.1998.0105-.1626 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2328-.1313-.0552-.0571-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1872-.0354-.2992v-1.6013h-.4644v-.4462zM12.9 11.0549h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916zM16.5 12.2216h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 13.9716h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 15.7216H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916H16.5c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 17.4716H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916H16.5c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM7.50001 11.0549h1.5v3.2813c0 .161.1344.2916.3.2916s.3-.1306.3-.2916v-3.2813H11.1c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916z",clipRule:"evenodd"}))},Q0=fN;var gN=({color:e="#27B740"})=>J.createElement(ge,null,J.createElement("path",{fill:e,fillRule:"evenodd",d:"M9.35494 23.3152l-.9666-1.2863h.7452l.5832.8348.61016-.8348h.7128l-.9504 1.2548 1.0692 1.4595h-.7398l-.70736-1.0028-.6858 1.0028h-.7236l1.053-1.428zM11.6556 24.7432h.6156v-3.7484h-.6156v3.7484zM13.5397 23.8718c.018.175.0864.2974.2052.3674.1188.07.261.105.4266.105.0576 0 .123-.004.1968-.0134.0738-.0087.1434-.0251.2082-.0496.0648-.0245.1176-.06.1596-.1073.0414-.0472.06-.1097.0564-.1866-.0036-.077-.0324-.14-.0864-.189-.054-.049-.1236-.0881-.2076-.1179-.0846-.0303-.1812-.0554-.2892-.0764-.108-.021-.2178-.0437-.3294-.0682-.1152-.0245-.2262-.0543-.3318-.0893-.1068-.035-.2022-.0822-.2862-.1417-.0846-.0595-.1524-.1354-.2028-.2281-.0504-.0928-.0756-.2077-.0756-.3442 0-.147.0366-.2707.1104-.3704.0738-.0998.168-.1797.2814-.2415.1134-.0607.2394-.1038.3774-.1283.1386-.0245.2712-.0368.3972-.0368.144 0 .2814.0146.4134.0443.1308.0304.2502.0782.3558.1447.1068.0665.195.1534.2652.2596.0696.1073.114.2357.132.3862h-.6426c-.0288-.1435-.0966-.2398-.2022-.2888-.1068-.049-.228-.0741-.3648-.0741-.0432 0-.0942.0041-.1542.0111-.0594.007-.1146.0198-.1668.0391-.0528.0198-.0966.0472-.1326.0846-.036.0361-.054.0846-.054.1441 0 .0735.0264.133.078.1785.0522.0455.1212.0828.2058.1125.084.0304.1806.0555.2886.0765.108.021.2196.0437.3348.0682.1116.0245.2214.0543.3294.0893.108.035.204.0822.2892.1417.084.0595.1524.1348.2046.2258.0522.091.0786.203.0786.3354 0 .1615-.0378.298-.1134.41-.0756.112-.174.203-.294.273-.1212.07-.255.1208-.4026.1523-.1476.0315-.2934.0472-.4374.0472-.1764 0-.3396-.0192-.4884-.0577-.1494-.0385-.2796-.0974-.3888-.1756-.1098-.0793-.1962-.1773-.2592-.294-.063-.1172-.0966-.2566-.1002-.4176h.6156zM13.8 17.4714h2.4v-2.9166h-2.4v2.9166zm-3 0h2.4v-2.9166h-2.4v2.9166zm-3.00002 0H10.2v-2.9166H7.79998v2.9166zm0-3.5H10.2v-2.9166H7.79998v2.9166zm6.00002 0h2.4v-2.9166h-2.4v2.9166zm-3 0h2.4v-2.9166h-2.4v2.9166zm5.7-3.5H7.49998c-.1662 0-.3.1307-.3.2917v7c0 .1616.1338.2917.3.2917H16.5c.1656 0 .3-.1301.3-.2917v-7c0-.161-.1344-.2917-.3-.2917z",clipRule:"evenodd"})),Fm=gN;var yN=({color:e="#5856D6"})=>J.createElement(ge,null,J.createElement("path",{fill:e,fillRule:"evenodd",d:"M8.35116 22.0289h2.26804v.42l-1.59844 1.8217h1.67944v.4725H8.24316v-.42l1.5444-1.8211h-1.4364v-.4731zM11.2998 24.7433h.6156V22.029h-.6156v2.7143zm0-3.1816h.6156v-.5669h-.6156v.5669zM14.8852 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.081-.2176-.1458-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.063-.0887.108-.1902.135-.304.027-.1143.0402-.2304.0402-.3494zm-2.1492-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.1638.0752.2994.179.4074.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.1512.0793-.3294.1184-.5346.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM12.0001 10.2465h-.6c-.1656 0-.3-.1388-.3-.31088 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091s-.1344.31088-.3.31088zM12.6001 10.8686h-.6c-.1656 0-.3-.1388-.3-.3109s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3109-.3.3109zM12.0001 11.4907h-.6c-.1656 0-.3-.1389-.3-.3109 0-.1721.1344-.311.3-.311h.6c.1656 0 .3.1389.3.311 0 .172-.1344.3109-.3.3109zM12.6001 12.1133h-.6c-.1656 0-.3-.1394-.3-.3109 0-.1721.1344-.3115.3-.3115h.6c.1656 0 .3.1394.3.3115 0 .1715-.1344.3109-.3.3109zM12.0001 12.7354h-.6c-.1656 0-.3-.1388-.3-.3109s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3109-.3.3109zM12.6001 13.3575h-.6c-.1656 0-.3-.1389-.3-.311 0-.172.1344-.3109.3-.3109h.6c.1656 0 .3.1389.3.3109 0 .1721-.1344.311-.3.311zM12.0001 17.7131c-.1656 0-.3-.1388-.3-.3109v-1.5558h.6v1.5558c0 .1721-.1344.3109-.3.3109zm0-3.1109c.1656 0 .3.1388.3.3109v.3109h-.6v-.3109c0-.1721.1344-.3109.3-.3109zm0-.6219c-.4962 0-.9.4177-.9.9328v2.4891c0 .5145.4038.9327.9.9327.4962 0 .9-.4182.9-.9327v-2.4891c0-.5151-.4038-.9328-.9-.9328zM12.6001 9.62448h-.6c-.1656 0-.3-.13942-.3-.31092 0-.17208.1344-.3115.3-.3115h.6c.1656 0 .3.13942.3.3115 0 .1715-.1344.31092-.3.31092zM12.0001 13.9801h-.6c-.1656 0-.3-.1394-.3-.3115s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3115-.3.3115zM12.0001 5.26884h-.6c-.1656 0-.3-.13942-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .1715-.1344.31092-.3.31092zM12.6001 5.89091h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.0001 6.51298h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.6001 7.13562h-.6c-.1656 0-.3-.13941-.3-.3115 0-.1715.1344-.31091.3-.31091h.6c.1656 0 .3.13941.3.31091 0 .17209-.1344.3115-.3.3115zM12.0001 7.75769h-.6c-.1656 0-.3-.13941-.3-.31091 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .1715-.1344.31091-.3.31091zM12.6001 8.37976h-.6c-.1656 0-.3-.13883-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .17209-.1344.31092-.3.31092zM12.6001 4.64678h-.6c-.1656 0-.3-.13942-.3-.3115 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.3115-.3.3115zM12.0001 1.53528h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.310918.3-.310918h.6c.1656 0 .3.138838.3.310918 0 .17208-.1344.31092-.3.31092zM12.6001 2.15734h-.6c-.1656 0-.3-.13883-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .17209-.1344.31092-.3.31092zM12.0001 2.77999h-.6c-.1656 0-.3-.13941-.3-.31091 0-.17209.1344-.3115.3-.3115h.6c.1656 0 .3.13941.3.3115 0 .1715-.1344.31091-.3.31091zM12.6001 3.40206h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.0001 4.02412h-.6c-.1656 0-.3-.13883-.3-.31091 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.31091-.3.31091zM12.0001 9.00183h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.31092-.3.31092z",clipRule:"evenodd"})),K0=yN;var hN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),J.createElement("path",{d:`M368 224H224V80c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144H16c-8.84 0-16 7.16-16
178
+ 4.32 4.26 11.29-.06 15.56z`})),km=qT;function YT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:"#292B32",d:"M19.453 7.61H4.547a.406.406 0 01-.422-.423V6.063c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.421v1.125c0 .247-.21.422-.422.422zm0 5.624H4.547a.406.406 0 01-.422-.421v-1.126c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.421v1.126c0 .246-.21.421-.422.421zm0 5.625H4.547a.406.406 0 01-.422-.422v-1.125c0-.21.176-.421.422-.421h14.906c.211 0 .422.21.422.422v1.125c0 .246-.21.421-.422.421z"}))}var u1=YT;function WT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},e),J.createElement("path",{fill:"#fff",d:"M9.688 20.09H6.312c-.949 0-1.687-.738-1.687-1.688V6.027c0-.914.738-1.687 1.688-1.687h3.375c.914 0 1.687.773 1.687 1.687v12.375c0 .95-.773 1.688-1.688 1.688zm10.687-1.688c0 .95-.773 1.688-1.688 1.688h-3.375c-.949 0-1.687-.738-1.687-1.688V6.027c0-.914.738-1.687 1.688-1.687h3.374c.915 0 1.688.773 1.688 1.687v12.375z"}))}var f1=WT;function QT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"none",viewBox:"0 0 17 17"},e),J.createElement("circle",{cx:"8.842",cy:"8.253",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M10.092 11.003c0 .703-.563 1.25-1.25 1.25-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.687 0 1.25.562 1.25 1.25zm-2.36-6.344a.378.378 0 01.375-.406h1.454c.218 0 .39.187.375.406l-.204 4.25a.387.387 0 01-.375.344H8.311a.387.387 0 01-.375-.344l-.204-4.25z"}))}var B0=QT;function KT(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none",viewBox:"0 0 16 19"},e),J.createElement("path",{fill:"inherit",d:"M15.313 3.063c.28 0 .562.28.562.562v.563a.578.578 0 01-.563.562h-.562l-.773 11.918c-.036.879-.809 1.582-1.688 1.582H3.676c-.88 0-1.653-.703-1.688-1.582L1.25 4.75H.687a.555.555 0 01-.562-.563v-.562c0-.281.246-.563.563-.563H3.57l1.196-1.968C5.046.637 5.68.25 6.207.25h3.55c.528 0 1.161.387 1.442.844l1.196 1.968h2.918zM6.207 1.937l-.668 1.125h4.887l-.668-1.124H6.207zm6.082 14.626l.738-11.813H2.937l.739 11.813h8.613z"}))}var L0=KT;var JT=n=>{var i=n,{bg:e="#fff",fg:t="#cacaca",children:o}=i,r=w(i,["bg","fg","children"]);return J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 24 28",fill:"none",vectorEffect:"non-scaling-stroke",xmlns:"http://www.w3.org/2000/svg"},r),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.24993 27.8542c-1.158 0-2.099997-.9263-2.099997-2.065V2.21031c0-1.13809.941997-2.064421 2.099997-2.064421H16.4999c.1614 0 .3114.060667.423.172084l6.7506 6.631917c.114.112.1764.26075.1764.41883V25.7892c0 1.1387-.942 2.065-2.1 2.065H2.24993z",fill:e}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4999.00010681H2.24991C1.00911.00010681-.00009155.99119-.00009155 2.21036V25.7899c0 1.2185 1.00920155 2.2102 2.25000155 2.2102H21.7499c1.2402 0 2.25-.9917 2.25-2.2102V7.36877c0-.196-.0792-.38266-.2196-.5215l-6.75-6.63133c-.141-.1394165-.3312-.21583319-.5304-.21583319zm0 .29162219c.1206 0 .2328.0455.3168.1295l6.75 6.631331c.0864.084.1332.19659.1332.31617V25.7898c0 1.0576-.8748 1.9186-1.95 1.9186H2.24995c-1.0752 0-1.950005-.861-1.950005-1.9186V2.21031c0-1.05758.874805-1.918581 1.950005-1.918581H16.4999z",fill:t}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.9999 7.36861c0-.196-.0792-.38267-.2196-.5215l-6.75-6.631338c-.141-.1394164-.3312-.21583304-.5304-.21583304h-.4878V5.63727c0 1.21858 1.0092 2.21025 2.25 2.21025h5.7378v-.47891z",fill:t}),o)},ge=JT;var XT=o=>{var r=o,{color:e="#FFB400"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.75698 23.3835c-.0936.0595-.2088.0951-.3456.1079-.1368.0117-.2736.0304-.4104.0549-.0648.0105-.1278.025-.189.0443-.0612.0198-.1152.0461-.162.0787-.0468.0339-.0834.077-.1104.1313-.027.0548-.0408.1202-.0408.1972 0 .0665.0198.1225.0594.168.0396.0455.087.081.1428.1073.0564.0262.1176.0449.1842.0554.066.0105.1266.0152.1806.0152.0684 0 .1422-.0082.2214-.0257.0792-.0175.1542-.0472.2244-.0892.0702-.042.1284-.0957.1752-.1605.0468-.0647.0702-.144.0702-.2385v-.4463zm.6156.756c0 .0735.0102.126.0294.1569.0198.0321.0588.0473.117.0473h.0642c.0252 0 .054-.0029.0864-.0099v.4147c-.0216.007-.0498.0146-.0834.0233-.0348.0094-.0696.017-.1056.024-.036.007-.072.0116-.108.0157-.036.0035-.0666.0053-.0918.0053-.126 0-.2304-.0245-.3126-.0735-.0834-.049-.1374-.1348-.1626-.2573-.1224.1155-.2724.1989-.4506.252-.1788.0525-.3504.0788-.516.0788-.126 0-.2466-.0164-.3618-.0502-.1152-.0333-.2166-.0823-.3054-.147-.0876-.0642-.1578-.147-.21-.2468-.0522-.0997-.0786-.2158-.0786-.3488 0-.168.0318-.3045.0942-.4095.0636-.105.1458-.1872.2484-.2467s.2184-.1027.3456-.129c.1278-.0262.2568-.046.3864-.0606.1116-.0204.2178-.0356.3186-.0444.1008-.0081.1902-.0233.2676-.0443.0768-.021.1386-.0537.183-.0974.045-.0438.0678-.1091.0678-.1966 0-.077-.0192-.14-.0564-.189-.0384-.049-.0852-.0863-.141-.1126-.0552-.0262-.1176-.0443-.186-.0525-.0678-.0093-.1332-.014-.1938-.014-.1728 0-.3156.0356-.4272.1056-.1116.07-.1746.1785-.189.3255h-.6156c.0108-.175.054-.3202.1296-.4357.0756-.1155.1722-.2083.2892-.2783.1164-.07.249-.119.3966-.147.1476-.028.2988-.042.4536-.042.1368 0 .2718.014.405.042.1332.028.2532.0735.3594.1359.1056.0636.1914.1447.2562.2444.0648.0998.0972.2217.0972.3646v1.3971zM10.6235 24.7433h-.6048v-.378h-.0108c-.07556.1365-.18836.2456-.33776.3278-.1494.0823-.3018.1237-.4566.1237-.3666 0-.6318-.0881-.7962-.2654-.1638-.1768-.2454-.4433-.2454-.8003v-1.722h.615v1.6642c0 .2374.0474.406.141.5034.0936.098.225.147.3942.147.1296 0 .2376-.0186.324-.0571.0864-.0391.1566-.0899.2106-.1552.054-.0648.0924-.1423.1158-.2333.0234-.091.03536-.189.03536-.294v-1.575h.6156v2.7142zM11.8868 23.4149c0 .1155.015.2298.0462.3412.0306.112.0774.2118.1404.2993.063.0875.1434.1575.24.21.0972.0525.2124.0787.3456.0787.1374 0 .255-.028.354-.084.099-.0554.18-.1289.243-.2205.063-.091.1098-.1936.1404-.3068.03-.1137.0462-.2304.0462-.3494 0-.301-.0696-.5355-.2082-.7035-.1386-.168-.327-.252-.564-.252-.1446 0-.2658.0286-.3648.0869-.099.0578-.1806.133-.243.2258-.0636.0927-.108.1977-.135.315-.0276.1172-.0408.2368-.0408.3593zm2.1492 1.3282h-.5832v-.3675h-.0102c-.0834.1575-.204.2701-.3624.339-.1578.0682-.3258.102-.5022.102-.2196 0-.411-.0373-.5748-.1125-.1638-.0753-.3-.178-.4074-.3075-.1086-.1295-.1896-.2829-.2436-.459-.0534-.1768-.0804-.3664-.0804-.57 0-.245.0336-.4567.1026-.6352.0684-.1785.159-.3255.2724-.441.1134-.1155.243-.2007.3888-.2543.1458-.0543.294-.0817.4452-.0817.087 0 .1746.0082.2652.0239.0894.0152.1764.0408.2586.0758.0828.035.1596.08.2298.1336.0702.0543.1284.119.1752.1925h.0114v-1.386h.615v3.7479zM14.8571 24.7433h.615V22.029h-.615v2.7143zm0-3.1815h.615v-.567h-.615v.567zM17.5569 24.344c.1368 0 .2556-.028.3564-.084.1008-.0555.1836-.129.2484-.22.0648-.0915.1122-.1942.1428-.3074.0306-.1137.0462-.2298.0462-.3488 0-.1161-.0156-.2316-.0462-.3465-.0306-.1155-.078-.2182-.1428-.308-.0648-.0887-.1476-.1616-.2484-.2176-.1008-.0554-.2196-.084-.3564-.084-.1374 0-.2556.0286-.3564.084-.1008.056-.1836.1289-.2484.2176-.0648.0898-.1122.1925-.1434.308-.0306.1149-.0456.2304-.0456.3465 0 .119.015.2351.0456.3488.0312.1132.0786.2159.1434.3074.0648.091.1476.1645.2484.22.1008.056.219.084.3564.084zm0 .473c-.2232 0-.4224-.0361-.5964-.1079-.1752-.0717-.3222-.1709-.4428-.2969-.1212-.126-.213-.2759-.2754-.4509-.0636-.1756-.0948-.3681-.0948-.5775 0-.2071.0312-.3973.0948-.5728.0624-.175.1542-.3255.2754-.451.1206-.126.2676-.2251.4428-.2969.174-.0717.3732-.1079.5964-.1079.2232 0 .4218.0362.5964.1079.1746.0718.3222.1709.4428.2969.1212.1255.2124.276.2754.451.063.1755.0948.3657.0948.5728 0 .2094-.0318.4019-.0948.5775-.063.175-.1542.3249-.2754.4509-.1206.126-.2682.2252-.4428.2969-.1746.0718-.3732.1079-.5964.1079zM14.397 16.224c-.723 0-1.203-.294-1.203-.4882 0-.1943.48-.4883 1.203-.4883.723 0 1.203.294 1.203.4883 0 .1942-.48.4882-1.203.4882zm-4.79398 1.2478c-.723 0-1.203-.294-1.203-.4883 0-.1942.48-.4882 1.203-.4882.72298 0 1.20298.294 1.20298.4882 0 .1943-.48.4883-1.20298.4883zm6.48778-6.933c-.0684-.056-.1578-.0787-.2478-.0624l-4.794 1.1194c-.141.0269-.243.147-.243.287v4.2951c-.3156-.1645-.7296-.266-1.20298-.266-1.0278 0-1.803.4609-1.803 1.0716 0 .6113.7752 1.0716 1.803 1.0716 1.02778 0 1.80298-.4603 1.80298-1.0716v-4.8597l4.194-1.0075v3.8139c-.3156-.1651-.7296-.266-1.203-.266-1.0278 0-1.803.4602-1.803 1.0716 0 .6107.7752 1.0715 1.803 1.0715s1.803-.4608 1.803-1.0715v-4.9724c0-.0869-.0402-.1691-.1092-.2246z",clipRule:"evenodd"}))},g1=XT;var RT=o=>{var r=o,{color:e="#5856D6"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M10.5224 24.0681c0 .0785.0098.1346.0295.1683.0236.0336.0669.0504.1299.0504h.0709c.0276 0 .0591-.0037.0945-.0112v.4431c-.0236.0075-.0551.015-.0945.0225-.0354.0112-.0728.0205-.1122.028-.0394.0075-.0787.0131-.1181.0168-.0394.0038-.0728.0056-.1004.0056-.1378 0-.252-.0261-.3425-.0785-.09057-.0523-.14962-.1439-.17718-.2748-.13386.1234-.29921.2131-.49606.2692-.19291.0561-.37991.0841-.56101.0841-.1378 0-.26968-.0186-.39567-.056-.12598-.0337-.23818-.0842-.3366-.1515-.09449-.071-.17126-.1589-.23032-.2636-.05511-.1084-.08267-.2337-.08267-.3758 0-.1795.03346-.3253.10039-.4375.07087-.1122.16141-.2001.27165-.2636.11417-.0636.24015-.1085.37795-.1346.14173-.03.28346-.0524.42519-.0674.12204-.0224.23818-.0373.34842-.0448.11023-.0112.20669-.0281.28936-.0505.08662-.0224.15354-.0561.20079-.101.05118-.0486.07677-.1196.07677-.2131 0-.0823-.02166-.1496-.06496-.2019-.03937-.0524-.09055-.0916-.15354-.1178-.05906-.0299-.12599-.0486-.20079-.0561-.0748-.0112-.14567-.0168-.21259-.0168-.18898 0-.34449.0374-.46653.1121-.12205.0748-.19094.1907-.20669.3478h-.67322c.01181-.187.05906-.3421.14173-.4655.08268-.1234.18701-.2225.31299-.2973.12992-.0748.27558-.1272.437-.1571.16141-.0299.32677-.0448.49605-.0448.14961 0 .29724.0149.44291.0448.14567.0299.27563.0786.38973.1459.1181.0673.2126.1551.2835.2636.0709.1047.1063.2337.1063.387v1.492zm-.67323-.8077c-.10236.0636-.22834.1028-.37795.1178-.1496.0112-.29921.0299-.44881.0561-.07086.0112-.13976.028-.20669.0505-.06693.0187-.12598.0467-.17716.0841-.05118.0336-.09252.0804-.12402.1402-.02755.0561-.04133.1253-.04133.2075 0 .0711.02165.1309.06496.1795.0433.0486.09448.0879.15354.1178.06299.0262.12992.0449.20078.0561.0748.0112.14173.0168.20079.0168.0748 0 .1555-.0093.24212-.028.08661-.0187.16732-.0505.24212-.0954.07874-.0448.1437-.1009.19488-.1682.05118-.0711.07677-.1571.07677-.258v-.4768zM10.9456 21.8133h.7323l.7736 2.2267h.0118l.7441-2.2267h.6968l-1.0925 2.8998h-.7559l-1.1102-2.8998zM14.3268 20.7083H15v.6058h-.6732v-.6058zm0 1.105H15v2.8998h-.6732v-2.8998zM16.7812 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55623c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0437 1.276c.1125.0729.225.0912.3375.0912.3188 0 .6-.237.6-.5651V12.25c.0188-.3464-.2812-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55623c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},F0=RT;var eN=o=>{var r=o,{color:e="#00BED4"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M9.6869 22.9368c-.0252-.1674-.0942-.2946-.2082-.3803-.1128-.0858-.2556-.1289-.429-.1289-.0792 0-.1638.0134-.2538.0396-.09.0263-.1722.0753-.2478.147-.0762.0718-.1392.1715-.1896.2993-.0504.1277-.0756.2952-.0756.5011 0 .1126.0138.224.0408.3366.0264.112.0702.2117.129.2986.06.0881.1362.1587.2298.2124.0936.0548.207.0816.3408.0816.1794 0 .3276-.0542.4452-.1621.1164-.1091.1896-.2608.2184-.4568h.6156c-.0576.3529-.1956.6236-.4128.8108-.2178.1873-.507.2812-.8664.2812-.2202 0-.4134-.0362-.5808-.1079-.168-.0718-.309-.1698-.4242-.294-.1152-.1243-.2022-.2724-.2622-.4439-.0588-.1715-.0888-.357-.0888-.5565 0-.2024.0288-.3932.0864-.5717.0576-.1791.144-.3337.2592-.4649.1152-.1313.2586-.2345.4296-.3098.171-.0752.3714-.1131.6018-.1131.162 0 .3162.0204.4614.0606.1458.0403.2754.101.3894.1809.1128.0805.2058.1826.2784.3051.0714.1225.1146.2677.129.4351h-.6156zM11.4043 23.8717c.0174.175.0864.2975.2052.3675.1188.07.2604.105.4266.105.057 0 .123-.0041.1968-.0134.0738-.0088.1434-.0251.2082-.0496.0648-.0245.1176-.0601.159-.1073.042-.0473.0606-.1097.057-.1867-.0036-.077-.0324-.14-.087-.189-.0534-.049-.123-.0881-.207-.1178-.0852-.0304-.1812-.0555-.2892-.0765-.108-.021-.2178-.0437-.33-.0682-.1146-.0245-.2256-.0543-.3312-.0893-.1068-.035-.2022-.0822-.2868-.1417-.084-.0595-.1518-.1353-.2022-.2281-.051-.0927-.0756-.2077-.0756-.3442 0-.147.0366-.2706.1104-.3704.0738-.0997.1674-.1796.2814-.2415.1128-.0606.2388-.1038.3774-.1283.1386-.0245.2712-.0368.3972-.0368.144 0 .2814.0146.4128.0444.1314.0303.2502.0781.3564.1446.1068.0665.1944.1535.2646.2596.0702.1074.1146.2357.1326.3862h-.6426c-.0288-.1435-.0966-.2398-.2022-.2888-.1068-.049-.228-.074-.3654-.074-.0426 0-.0942.004-.1536.011-.0594.007-.1152.0199-.1674.0391-.0522.0199-.096.0473-.1326.0846-.0354.0362-.0534.0846-.0534.1441 0 .0735.0264.133.078.1785.0522.0455.1212.0828.2052.1126.0846.0303.1812.0554.2892.0764.1074.021.2196.0437.3342.0682.1122.0245.2214.0543.33.0893.108.035.204.0822.2892.1417.084.0595.1524.1348.2046.2258.0522.091.0786.203.0786.3354 0 .1616-.0378.2981-.1134.4101-.0756.112-.174.203-.294.273-.1212.07-.255.1207-.4026.1522s-.294.0473-.4374.0473c-.1764 0-.3396-.0193-.4884-.0578-.1494-.0385-.2796-.0974-.3894-.1755-.1092-.0794-.1962-.1774-.2586-.294-.0636-.1173-.0972-.2567-.1002-.4177h.6156zM13.6021 22.0288h.669l.708 2.0843h.0108l.6798-2.0843h.6378l-.999 2.7143h-.6918l-1.0146-2.7143zM10.2 17.472h6v-1.1667h-6v1.1667zm-2.39999 0h1.8v-1.1667h-1.8v1.1667zm0-5.25h1.8v-1.1667h-1.8v1.1667zm2.39999 0h6v-1.1667h-6v1.1667zm0 1.75h6v-1.1667h-6v1.1667zm0 1.75h6v-1.1667h-6v1.1667zm-2.39999-1.75h1.8v-1.1667h-1.8v1.1667zm0 1.75h1.8v-1.1667h-1.8v1.1667zM16.5 10.472H7.50001c-.1656 0-.3.1307-.3.2917v7c0 .1616.1344.2916.3.2916H16.5c.1662 0 .3-.13.3-.2916v-7c0-.161-.1338-.2917-.3-.2917z",clipRule:"evenodd"}))},D0=eN;var tN=o=>{var r=o,{color:e="#999"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M16.4998 11.0549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.4998 12.8049H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.4998 14.5549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h9.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM13.4998 16.3049H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h6.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM13.4998 18.0549H7.49977c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h6.00003c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}))},V0=tN;var oN=o=>{var r=o,{color:e="#0E86FE"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M7.84262 23.4149c0 .1155.015.2298.0462.3412.03.112.0774.2118.1404.2993.063.0875.1428.1575.24.21.0972.0525.2124.0787.3456.0787.1368 0 .2544-.028.3534-.084.0996-.0554.1806-.1289.2436-.2205.063-.091.1098-.1936.1404-.3068.03-.1138.0456-.2304.0456-.3494 0-.301-.069-.5355-.2076-.7035-.1386-.168-.327-.252-.5646-.252-.144 0-.2652.0286-.3642.0869-.099.0577-.1806.133-.2436.2257-.063.0928-.1074.1978-.1344.315-.0276.1173-.0408.2369-.0408.3594zm2.1492 1.3282h-.5832v-.3675h-.0108c-.0828.1575-.2034.2701-.3618.3389-.1584.0683-.3258.1021-.5022.1021-.2196 0-.411-.0373-.5748-.1126-.1644-.0752-.3-.1779-.408-.3074-.108-.1295-.189-.2829-.243-.4591-.054-.1767-.081-.3663-.081-.5699 0-.245.0342-.4567.1026-.6352.0684-.1785.1596-.3255.273-.441.1134-.1155.243-.2007.3888-.2544.1458-.0542.294-.0816.4452-.0816.0864 0 .1746.0081.2646.0239.09.0152.1764.0408.2592.0758.0828.035.1596.0799.2298.1336.0702.0543.1284.119.1752.1925h.0108v-1.386h.6156v3.7479zM12.0763 24.344c.1368 0 .2556-.028.3564-.084.1008-.0555.1836-.129.2484-.22.0648-.0915.1128-.1942.1434-.3074.03-.1137.0456-.2298.0456-.3488 0-.1161-.0156-.2316-.0456-.3465-.0306-.1155-.0786-.2182-.1434-.308-.0648-.0887-.1476-.1616-.2484-.2176-.1008-.0554-.2196-.084-.3564-.084s-.2556.0286-.3564.084c-.1008.056-.1836.1289-.2484.2176-.0648.0898-.1122.1925-.1434.308-.03.1149-.0456.2304-.0456.3465 0 .119.0156.2351.0456.3488.0312.1132.0786.2159.1434.3074.0648.091.1476.1645.2484.22.1008.056.2196.084.3564.084zm0 .473c-.2232 0-.4224-.0361-.5964-.1079-.1752-.0717-.3222-.1709-.4428-.2969-.1212-.126-.2124-.2759-.2754-.4509-.063-.1756-.0948-.3681-.0948-.5775 0-.2071.0318-.3973.0948-.5728.063-.175.1542-.3255.2754-.451.1206-.126.2676-.2251.4428-.2969.174-.0717.3732-.1079.5964-.1079.2232 0 .4224.0362.597.1079.1746.0718.3222.1709.4422.2969.1212.1255.2124.276.2754.451.063.1755.0948.3657.0948.5728 0 .2094-.0318.4019-.0948.5775-.063.175-.1542.3249-.2754.4509-.12.126-.2676.2252-.4422.2969-.1746.0718-.3738.1079-.597.1079zM16.0182 22.9369c-.0252-.1674-.0948-.2946-.2082-.3803-.1134-.0858-.2562-.129-.429-.129-.0792 0-.1638.0135-.2538.0397-.09.0263-.1728.0753-.2484.147-.0756.0718-.1386.1715-.189.2993-.0504.1277-.0756.2951-.0756.501 0 .1126.0132.224.0408.3366.0264.112.0696.2118.129.2987.0594.0881.1362.1587.2298.2123.0936.0549.207.0817.3402.0817.18 0 .3282-.0543.4452-.1622.117-.1091.1902-.2607.219-.4567h.6156c-.0576.3529-.1956.6236-.4134.8108-.2178.1873-.5064.2812-.8664.2812-.2196 0-.4128-.0362-.5808-.1079-.1674-.0718-.3084-.1698-.4236-.294-.1152-.1243-.2028-.2725-.2622-.444-.0594-.1715-.0888-.357-.0888-.5565 0-.2024.0288-.3931.0864-.5716.0576-.1791.144-.3337.2592-.4649.1152-.1313.258-.2345.429-.3098.171-.0752.372-.1132.6024-.1132.162 0 .3162.0205.4614.0607.1458.0403.2754.1009.3888.1808.1134.0805.2064.1826.2784.3051.072.1225.1152.2678.1296.4352h-.6156zM16.5001 11.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 12.8049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 14.5549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 16.3049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 18.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}))},O0=oN;var rN=o=>{var r=o,{color:e="#5C6070"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M16.2375 15.235l-.6-.3463c0-.1276.0187-.3281.0187-.4557 0-.1094-.0187-.3099-.0187-.4375l.6-.3464c.1875-.0911.2625-.3099.2062-.4922-.2062-.6927-.5812-1.3125-1.0687-1.8229-.15-.1458-.375-.1823-.5625-.0729l-.6.3463c-.2063-.164-.5625-.3645-.8063-.4557v-.6745c0-.2187-.1312-.3828-.3375-.4375-.7125-.16403-1.4437-.16403-2.1562 0-.2063.0547-.3375.2188-.3375.4375v.6745c-.2438.0912-.6.2917-.80625.4557l-.6-.3463c-.1875-.1094-.4125-.0729-.5625.0729-.4875.5104-.8625 1.1302-1.06875 1.8229-.05625.1823.01875.4011.20625.4922l.6.3464c0 .1276-.01875.3281-.01875.4375 0 .1276.01875.3281.01875.4557l-.6.3463c-.1875.0912-.2625.3099-.20625.4922.20625.6927.58125 1.3125 1.06875 1.823.15.1458.375.1822.5625.0729l.6-.3464c.20625.1641.56245.3646.80625.4557v.6745c0 .2188.1312.3828.3375.4375.7125.1641 1.4437.1641 2.1562 0 .2063-.0547.3375-.2187.3375-.4375v-.6745c.2438-.0911.6-.2916.8063-.4557l.6.3464c.1875.1093.4125.0729.5625-.0729.4875-.5105.8625-1.1303 1.0687-1.823.0563-.1823-.0187-.401-.2062-.4922zm-1.2188 1.823l-.8812-.4922c-.5063.4375-.675.5286-1.3313.7656v.9661c-.225.0547-.5812.0912-.8062.0912-.2438 0-.6-.0365-.825-.0912v-.9661c-.6375-.2187-.825-.3281-1.33125-.7656l-.88125.4922c-.35625-.4011-.6375-.875-.825-1.3855l.88125-.4739c-.13125-.6563-.13125-.8568 0-1.513l-.88125-.474c.1875-.5104.46875-.9844.825-1.3854l.88125.4922c.50625-.4375.69375-.5469 1.33125-.7656v-.9662c.225-.0547.5812-.0911.825-.0911.225 0 .5812.0364.8062.0911v.9662c.6375.2187.825.3281 1.3313.7656l.8812-.4922c.3563.401.6375.875.825 1.3854l-.8812.474c.1312.6562.1312.8567 0 1.513l.8812.4739c-.1875.5105-.4687.9844-.825 1.3855zM12 12.683c-.9938 0-1.8.802-1.8 1.75 0 .9661.8062 1.75 1.8 1.75.975 0 1.8-.7839 1.8-1.75 0-.948-.825-1.75-1.8-1.75zm0 2.9166c-.675 0-1.2-.5104-1.2-1.1666 0-.6381.525-1.1667 1.2-1.1667.6562 0 1.2.5286 1.2 1.1667 0 .6562-.5438 1.1666-1.2 1.1666zM9.35869 22.837c-.00757-.0994-.0303-.1951-.06817-.2872-.03408-.092-.08332-.1712-.1477-.2375-.06059-.0699-.13633-.1251-.22723-.1656-.0871-.0442-.18557-.0663-.29539-.0663-.11362 0-.21777.0202-.31244.0607-.0909.0368-.17043.0902-.2386.1602-.06438.0663-.1174.1454-.15906.2375-.03787.092-.0587.1914-.06248.2982h1.51107zm-1.51107.4142c0 .1105.01514.2173.04544.3204.03409.1031.08332.1933.1477.2706.06438.0773.14581.1399.24427.1878.09847.0442.21587.0663.35221.0663.18936 0 .34084-.0387.45446-.116.1174-.081.2045-.2007.26131-.359h.61352c-.03408.1546-.09279.2927-.1761.4142-.08332.1215-.18368.2246-.30108.3093-.1174.081-.24995.1417-.39765.1822-.14392.0442-.2954.0663-.45446.0663-.23102 0-.43553-.0368-.61352-.1104-.178-.0737-.32948-.1768-.45446-.3093-.12119-.1326-.21397-.2909-.27836-.475-.06059-.1841-.09089-.3866-.09089-.6075 0-.2025.03219-.394.09657-.5744.06817-.1841.16285-.3443.28404-.4805.12498-.1399.27457-.2504.44878-.3314.17421-.081.37114-.1215.5908-.1215.23101 0 .43741.0479.6192.1436.18557.0921.33895.2154.46014.37.12118.1547.20829.3333.26131.5358.05685.1988.07195.405.04545.6185H7.84762zM11.2882 23.0138l-1.0168-1.3532h.7839l.6135.8782.642-.8782h.7498l-.9998 1.32 1.1248 1.5354h-.7783l-.7441-1.0549-.7215 1.0549h-.7612l1.1077-1.5022zM15.5664 22.837c-.0075-.0994-.0303-.1951-.0681-.2872-.0341-.092-.0833-.1712-.1477-.2375-.0606-.0699-.1364-.1251-.2273-.1656-.0871-.0442-.1855-.0663-.2953-.0663-.1137 0-.2178.0202-.3125.0607-.0909.0368-.1704.0902-.2386.1602-.0644.0663-.1174.1454-.159.2375-.0379.092-.0587.1914-.0625.2982h1.511zm-1.511.4142c0 .1105.0151.2173.0454.3204.0341.1031.0833.1933.1477.2706.0644.0773.1458.1399.2443.1878.0985.0442.2159.0663.3522.0663.1894 0 .3408-.0387.4545-.116.1174-.081.2045-.2007.2613-.359h.6135c-.0341.1546-.0928.2927-.1761.4142-.0833.1215-.1837.2246-.3011.3093-.1174.081-.2499.1417-.3976.1822-.144.0442-.2954.0663-.4545.0663-.231 0-.4355-.0368-.6135-.1104-.178-.0737-.3295-.1768-.4545-.3093-.1212-.1326-.214-.2909-.2783-.475-.0606-.1841-.0909-.3866-.0909-.6075 0-.2025.0322-.394.0965-.5744.0682-.1841.1629-.3443.2841-.4805.125-.1399.2745-.2504.4488-.3314.1742-.081.3711-.1215.5908-.1215.231 0 .4374.0479.6192.1436.1855.0921.3389.2154.4601.37.1212.1547.2083.3333.2613.5358.0568.1988.072.405.0454.6185h-2.1586z"}))},H0=rN;var nN=o=>{var r=o,{color:e="#1E3868"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.58255 20.9949h.6156v1.3913h.0108c.0756-.1225.1878-.2252.3372-.3074.1494-.0823.3162-.1237.4998-.1237.306 0 .5478.077.7242.2316.1758.154.264.3844.264.6924v1.8643h-.615v-1.7062c-.0078-.2135-.0546-.3687-.141-.4649-.0858-.0963-.2214-.1447-.405-.1447-.1038 0-.198.0187-.2802.0554-.0834.0368-.1536.0875-.2112.1528-.0576.0642-.1026.1406-.135.2275-.0324.0881-.0486.1809-.0486.2789v1.6012h-.6156v-3.7485zM9.53622 22.0289h.46438v-.8138h.6162v.8138h.5562v.4462h-.5562v1.449c0 .063.0024.1173.0078.1628s.018.084.0378.1161c.0198.0309.0492.0542.0888.0705.0402.0158.0942.0234.1626.0234.0426 0 .0858-.0006.1296-.0024.0426-.0017.0858-.0081.1296-.018v.462c-.069.0064-.135.0134-.1998.0204-.0654.007-.1314.0105-.1998.0105-.1626 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2328-.1313-.0552-.0572-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1872-.0354-.2992v-1.6013h-.46438v-.4462zM11.7505 22.0289h.5832v.378h.0162c.0462-.0665.0972-.1278.1512-.1838.054-.056.114-.1032.1806-.1417.0666-.0385.1434-.0688.2298-.0916s.1854-.0344.297-.0344c.1692 0 .327.0373.4722.1102.1458.0735.2496.1873.3102.3413.1044-.14.225-.2503.3624-.3308.1362-.0805.3078-.1207.5124-.1207.2958 0 .525.07.6888.21.1638.1406.246.3745.246.7035v1.8742h-.6156v-1.5849c0-.1091-.0036-.2082-.0108-.2969-.0078-.0898-.0282-.1662-.0618-.2316-.0348-.0641-.0858-.1143-.1542-.1493-.069-.035-.162-.0525-.2808-.0525-.2094 0-.3606.063-.4536.189-.0936.126-.1404.3045-.1404.5355v1.5907h-.6162v-1.743c0-.189-.0348-.3313-.1044-.4275-.0708-.0963-.1998-.1447-.3864-.1447-.0792 0-.156.0157-.2298.0472s-.1386.077-.1944.1365c-.0558.0601-.1008.1336-.135.2205-.0342.0875-.0516.1873-.0516.2993v1.6117h-.615v-2.7142zM16.5996 24.7433h.615v-3.7485h-.615v3.7485zM14.7001 16.5972c-.069 0-.1386-.0234-.195-.0706-.126-.105-.141-.2888-.033-.4107l1.6332-1.8521-1.6332-1.852c-.108-.1225-.093-.3063.033-.4113.1248-.1044.3144-.0904.423.0321l1.8 2.0417c.096.1085.096.27 0 .3791l-1.8 2.0417c-.06.0671-.1434.1021-.228.1021zM9.30013 16.5972c-.0846 0-.168-.035-.228-.1021l-1.8-2.0417c-.096-.1091-.096-.2706 0-.3791l1.8-2.0417c.1092-.1225.2988-.1365.423-.0321.126.105.141.2888.033.4113l-1.6332 1.852 1.6332 1.8521c.108.1219.093.3057-.033.4107-.0564.0472-.126.0706-.195.0706zM10.2001 18.0549c-.045 0-.0906-.0099-.1344-.0309-.14818-.0717-.20758-.2473-.13378-.3908l3.59998-7c.075-.1447.2538-.2013.4026-.1307.1482.0723.2076.2473.1338.392l-3.6 7c-.0528.1015-.1584.1604-.2682.1604z",clipRule:"evenodd"}))},U0=nN;var iN=o=>{var r=o,{color:e="#999"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M7.8002 16.0901c.0078-.007.0168-.0105.024-.0181l2.0952-2.3012 3.3666 3.7007H7.8002v-1.3814zm6.2862 1.3814l-3.9426-4.3342c-.0564-.0624-.138-.098-.2244-.098-.0858 0-.1674.0356-.225.098l-1.8942 2.0819v-4.1644h8.4v6.4167h-2.1138zm2.4138-7h-9c-.1656 0-.3.1306-.3.2916v7c0 .1616.1344.2917.3.2917h9c.1656 0 .3-.1301.3-.2917v-7c0-.161-.1344-.2916-.3-.2916z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M13.7527 13.95c-.3306 0-.6-.2614-.6-.5834s.2694-.5833.6-.5833c.3312 0 .6.2613.6.5833 0 .322-.2688.5834-.6.5834zm0-1.75c-.6618 0-1.2.5232-1.2 1.1666 0 .6434.5382 1.1667 1.2 1.1667.6624 0 1.2-.5233 1.2-1.1667 0-.6434-.5376-1.1666-1.2-1.1666z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M7.79999 20.4167h.60366v.5484h-.60366v-.5484zm0 1.0003h.60366v2.6253h-.60366V21.417zM9.06137 21.417h.57189v.3656h.01589c.04589-.0643.09531-.1235.14826-.1777.05296-.0542.1112-.0999.17475-.1371.06704-.0372.14294-.066.22774-.0863.0847-.0237.1818-.0356.2912-.0356.1659 0 .3195.0356.4607.1067.1447.0711.2471.1811.3071.33.1024-.1354.2206-.242.3548-.3199.1341-.0778.3018-.1168.503-.1168.2895 0 .5137.0677.6725.2031.1624.1355.2436.3623.2436.6805v1.8128h-.6036v-1.5335c0-.105-.0036-.1997-.0106-.2844-.0071-.088-.0283-.1625-.0636-.2234-.0318-.0643-.0812-.1134-.1482-.1473-.0671-.0338-.1589-.0508-.2754-.0508-.2048 0-.353.061-.4448.1829-.0918.1218-.1377.2945-.1377.5179v1.5386h-.6036v-1.6859c0-.1828-.0353-.3199-.1059-.4113-.0671-.0948-.1924-.1422-.376-.1422-.0777 0-.1536.0153-.2277.0457-.0706.0305-.13415.0745-.19063.1321-.05295.0575-.09708.1286-.13238.2132-.03177.0847-.04766.1812-.04766.2895v1.5589h-.60366V21.417zM16.2 23.9052c0 .3961-.1165.6906-.3495.8836-.2295.1963-.5613.2945-.9955.2945-.1377 0-.2771-.0135-.4183-.0406-.1377-.0271-.2648-.0728-.3813-.1371-.113-.0643-.2083-.149-.2859-.2539-.0777-.105-.1236-.2336-.1377-.3859h.6037c.0176.0812.0476.1472.09.198.0423.0508.0918.0897.1482.1168.0601.0305.1254.0491.196.0559.0706.0101.1447.0152.2224.0152.2435 0 .4218-.0576.5348-.1727.1129-.1151.1694-.2809.1694-.4976v-.4012h-.0106c-.0847.1456-.2012.259-.3494.3403-.1448.0812-.3019.1218-.4713.1218-.2189 0-.406-.0355-.5613-.1066-.1518-.0745-.2789-.1743-.3813-.2996-.0988-.1286-.1712-.2759-.2171-.4418-.0459-.1659-.0688-.3436-.0688-.5332 0-.176.0282-.3436.0847-.5027.0565-.1591.1377-.2979.2436-.4164.1059-.1219.2347-.2183.3865-.2894.1554-.0711.3301-.1067.5243-.1067.1729 0 .3318.0356.4765.1067.1448.0677.256.176.3336.325h.0106v-.3606H16.2v2.4882zm-1.3397-.3199c.1341 0 .2471-.0254.3389-.0762.0953-.0541.1712-.1235.2277-.2082.06-.088.1024-.1861.1271-.2945.0282-.1117.0423-.2234.0423-.3351 0-.1117-.0141-.2201-.0423-.325-.0283-.105-.0724-.1981-.1324-.2793-.0565-.0812-.1324-.1456-.2277-.193-.0918-.0474-.203-.0711-.3336-.0711-.1342 0-.2471.0271-.3389.0813-.0918.0542-.1659.1252-.2224.2133-.0565.0846-.0971.1828-.1218.2945-.0247.1083-.0371.2167-.0371.325 0 .1083.0142.2149.0424.3199.0282.1016.0706.193.1271.2742.06.0813.1341.1473.2224.198.0918.0508.2012.0762.3283.0762z"}))},va=iN;var aN=o=>{var r=o,{color:e="#5856D6"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M6.60001 21.9499h.60975v.3853h.01694c.04893-.0677.10163-.1302.15809-.1873.05646-.057.11856-.1052.18631-.1445.07152-.0392.15244-.0695.24278-.0909.09033-.025.19384-.0375.31052-.0375.17691 0 .34064.0375.49119.1124.15433.0749.26348.1909.32747.3478.10915-.1427.23524-.2551.37827-.3371.14303-.0821.32182-.1231.53636-.1231.30861 0 .54761.0714.71701.2141.1732.1427.2597.3817.2597.7171v1.9105h-.6436v-1.6162c0-.1106-.0038-.2105-.0113-.2997-.0075-.0927-.0301-.1712-.0677-.2354-.0339-.0678-.0866-.1196-.15813-.1552-.07151-.0357-.16937-.0535-.29358-.0535-.21831 0-.3764.0642-.47426.1926-.09786.1285-.14679.3104-.14679.5459v1.6215H8.3954V22.94c0-.1927-.03764-.3372-.11291-.4335-.07152-.0999-.20514-.1498-.40086-.1498-.08281 0-.16373.016-.24278.0481-.07528.0321-.14303.0785-.20325.1392-.05646.0606-.10351.1355-.14115.2247-.03387.0892-.05081.1909-.05081.3051v1.6429h-.64363v-2.7668zM12.8507 24.7917c-.2334 0-.4423-.0357-.6267-.1071-.1807-.0749-.335-.1766-.463-.305-.1242-.1285-.2202-.2819-.2879-.4603-.064-.1783-.096-.3746-.096-.5886 0-.2105.032-.405.096-.5834.0677-.1784.1637-.3318.2879-.4602.128-.1285.2823-.2284.463-.2997.1844-.0749.3933-.1124.6267-.1124.2333 0 .4404.0375.621.1124.1845.0713.3388.1712.463.2997.128.1284.224.2818.2879.4602.0678.1784.1017.3729.1017.5834 0 .214-.0339.4103-.1017.5886-.0639.1784-.1599.3318-.2879.4603-.1242.1284-.2785.2301-.463.305-.1806.0714-.3877.1071-.621.1071zm0-.4817c.143 0 .2672-.0285.3726-.0856s.192-.132.2597-.2248c.0678-.0927.1167-.1962.1468-.3104.0339-.1177.0508-.2372.0508-.3585 0-.1178-.0169-.2355-.0508-.3533-.0301-.1177-.079-.2212-.1468-.3104-.0677-.0927-.1543-.1676-.2597-.2247-.1054-.0571-.2296-.0856-.3726-.0856s-.2673.0285-.3726.0856c-.1054.0571-.192.132-.2598.2247-.0677.0892-.1185.1927-.1524.3104-.0301.1178-.0452.2355-.0452.3533 0 .1213.0151.2408.0452.3585.0339.1142.0847.2177.1524.3104.0678.0928.1544.1677.2598.2248.1053.0571.2296.0856.3726.0856zM14.5714 21.9499h.7001l.7396 2.1246h.0113l.7114-2.1246H17.4l-1.0445 2.7668h-.7227l-1.0614-2.7668zM16.7813 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55626c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0438 1.276c.1125.0729.225.0912.3375.0912.3187 0 .6-.237.6-.5651V12.25c.0187-.3464-.2813-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55626c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},z0=aN;var sN=o=>{var r=o,{color:e="#FFB400"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M6.59998 22.2436h.60542v.3955h.01618c.04853-.0696.1008-.1337.1568-.1923.056-.0586.11822-.108.18791-.1483.06906-.0403.14809-.072.23831-.0958.08898-.0238.19164-.036.308-.036.17484 0 .33849.039.48969.1153.1512.0769.25822.1959.32169.3571.10826-.1465.23333-.2619.3752-.3461.14186-.0842.31982-.1263.532-.1263.30672 0 .54382.0732.71432.2197.1692.1471.2545.3918.2545.736v1.9609h-.6378v-1.6582c0-.1141-.0044-.2179-.0118-.3106-.0075-.094-.0293-.174-.0641-.2423-.0355-.0671-.08899-.1196-.1593-.1563-.07156-.0366-.16862-.0549-.29182-.0549-.21654 0-.37334.0659-.4704.1978-.09707.1318-.14498.3185-.14498.5602v1.6643h-.63902v-1.8236c0-.1977-.03609-.3466-.10889-.4473-.07343-.1007-.20658-.1514-.40071-.1514-.08214 0-.16178.0165-.23769.0495-.07654.0329-.14374.0805-.2016.1428-.05849.0628-.10454.1397-.14063.2307-.03484.0915-.05288.1959-.05288.3131v1.6862h-.6384v-2.8397zM13.732 23.49c0-.1131-.0169-.223-.0527-.3296-.0352-.1067-.0879-.2009-.1576-.2839-.071-.0819-.1582-.1481-.2643-.1987-.1055-.0501-.2266-.0749-.3633-.0749-.2812 0-.4928.0808-.6354.2424-.1426.1621-.2142.3765-.2142.6447 0 .1261.0189.2429.056.3512.0371.1088.0931.2014.1667.279.0742.0776.1634.139.2669.1842.1028.0453.2233.0679.36.0679.1523 0 .2819-.0259.3874-.0776.1054-.0517.192-.119.2604-.2014.0683-.0819.1172-.1756.1465-.2806.0293-.1056.0436-.2128.0436-.3227zM11.4 22.2345h.6334v.3393h.0111c.0944-.1454.2246-.2494.3932-.3124.168-.063.349-.0948.5449-.0948.2377 0 .446.0345.6237.104.1778.0694.3256.1653.4421.2865.1172.1207.2057.2623.2643.4239.058.1616.0873.3345.0873.5187 0 .1681-.0267.3313-.0788.4896-.0527.1584-.1328.2979-.2402.4191-.1075.1217-.2435.2181-.4076.2908-.1641.0733-.3574.1094-.5794.1094-.0983 0-.196-.007-.2936-.0221-.0977-.014-.1915-.0377-.2806-.07-.0905-.0323-.1732-.0733-.2494-.1234-.0762-.0506-.14-.1093-.1907-.1772h-.0118v1.2507H11.4v-3.4321zM15.957 22.7047c.0907.0037.1814-.0037.2721-.0224.0907-.0181.1716-.0511.2429-.0979.0713-.0474.1285-.1116.1722-.1938.0437-.0823.0659-.1833.0659-.303 0-.1683-.0492-.3029-.1485-.4039-.0988-.101-.2256-.1515-.3811-.1515-.0972 0-.1814.0225-.2526.068-.0718.0442-.1307.1047-.1776.182-.047.0767-.0815.1621-.1042.2581-.0227.0953-.0324.1932-.0292.2942h-.5538c.0059-.1902.0372-.3678.0923-.5299.0551-.1626.1306-.3041.2262-.4238.095-.1191.2111-.2132.3471-.2805.136-.0673.2899-.1004.4615-.1004.1328 0 .2629.0219.3908.0667.1285.0449.243.1104.3455.1964.1015.086.1836.1957.2451.3285.0615.1327.0923.2848.0923.4569 0 .1988-.0389.3714-.1166.5186-.0777.1483-.1992.2555-.3644.3228v.0112c.1944.0449.3455.1559.454.3341.1085.1777.163.3934.163.6483 0 .1864-.0323.354-.0971.5011-.0648.1484-.1523.2737-.2624.3765-.1101.1029-.238.182-.3838.2387-.1457.0555-.2996.0836-.4615.0836-.1976 0-.3698-.0324-.5177-.0985-.1474-.0648-.2704-.1577-.3687-.2774-.0993-.1197-.1743-.2636-.2262-.4313-.0518-.1689-.0799-.3559-.0826-.5616h.5539c-.0065.2393.0442.4388.1528.5977.1085.159.2715.2381.4885.2381.1846 0 .339-.061.4642-.182.1242-.1215.1868-.2948.1868-.5192 0-.1533-.0259-.2742-.0777-.3646-.0519-.0898-.1199-.1577-.2041-.2045-.0842-.0467-.1792-.076-.2839-.0872-.1058-.0106-.2133-.0144-.3234-.0106v-.4775zM14.397 16.2524c-.723 0-1.203-.294-1.203-.4882 0-.1943.48-.4883 1.203-.4883.723 0 1.203.294 1.203.4883 0 .1942-.48.4882-1.203.4882zM9.60299 17.5c-.723 0-1.203-.2939-1.203-.4882 0-.1942.48-.4882 1.203-.4882.72301 0 1.20301.294 1.20301.4882 0 .1943-.48.4882-1.20301.4882zm6.48781-6.9324c-.0684-.056-.1578-.0788-.2478-.0624l-4.794 1.1193c-.141.0268-.243.147-.243.287v4.2948c-.3156-.1645-.7296-.266-1.20301-.266-1.0278 0-1.803.4608-1.803 1.0715 0 .6113.7752 1.0715 1.803 1.0715 1.02781 0 1.80301-.4602 1.80301-1.0715v-4.8594L15.6 11.145v3.8136c-.3156-.165-.7296-.266-1.203-.266-1.0278 0-1.803.4603-1.803 1.0716 0 .6107.7752 1.0715 1.803 1.0715s1.803-.4608 1.803-1.0715v-4.972c0-.087-.0402-.1692-.1092-.2246z",clipRule:"evenodd"}))},j0=sN;var lN=o=>{var r=o,{color:e="#5856D6"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M6.60001 21.6977h.60058v.3893h.01668c.0482-.0685.1001-.1316.15571-.1893.05561-.0576.11678-.1063.18351-.1459.07044-.0397.15015-.0703.23913-.0919.08897-.0253.19092-.0379.30585-.0379.17424 0 .33551.0379.4838.1135.152.0757.25952.1929.32254.3515.10751-.1442.23171-.2577.37259-.3406.14087-.0829.31697-.1244.52829-.1244.30401 0 .53941.0721.70621.2163.1706.1441.2558.3856.2558.7244v1.9302h-.6339v-1.6328c0-.1117-.0037-.2127-.0111-.3028-.0074-.0937-.0297-.173-.0668-.2378-.0333-.0685-.08524-.1208-.15567-.1568-.07044-.0361-.16683-.0541-.28917-.0541-.21503 0-.37074.0649-.46713.1946-.09639.1298-.14458.3136-.14458.5515v1.6382H8.3684v-1.795c0-.1946-.03708-.3406-.11122-.4379-.07044-.1009-.20205-.1514-.39483-.1514-.08156 0-.16127.0162-.23912.0487-.07415.0324-.14088.0793-.2002.1405-.05561.0613-.10195.137-.13902.2271-.03337.0901-.05005.1928-.05005.3082v1.6598h-.63395v-2.7952zM11.4554 21.6977h.6006v.3785h.0111c.089-.1622.2132-.2776.3726-.3461.1594-.072.3318-.1081.5172-.1081.2261 0 .4226.0397.5894.119.1706.0756.3114.182.4227.3189.1112.1334.1946.2902.2502.4704.0556.1802.0834.3731.0834.5785 0 .1874-.0259.3694-.0778.5461-.0482.1766-.1242.3334-.228.4703-.1001.1334-.228.2415-.3838.3244-.1557.0793-.3392.119-.5505.119-.0927 0-.1854-.0091-.278-.0271-.0927-.0144-.1817-.0396-.267-.0757-.0852-.036-.1649-.0811-.2391-.1351-.0704-.0577-.1297-.1244-.1779-.2001h-.0112v1.3949h-.6339v-3.8278zm2.2133 1.4003c0-.1262-.0167-.2487-.0501-.3677-.0334-.1189-.0834-.2234-.1501-.3135-.0668-.0937-.1502-.1676-.2503-.2217-.1001-.0577-.215-.0865-.3448-.0865-.2669 0-.4689.0901-.6061.2703-.1335.1802-.2002.4199-.2002.7191 0 .1406.0167.2721.05.3947.0371.1189.0909.2216.1613.3081.0705.0865.1539.155.2503.2055.1001.0504.215.0757.3447.0757.1446 0 .267-.0289.3671-.0865.1001-.0577.1816-.1316.2446-.2217.0668-.0937.1131-.1982.1391-.3136.0296-.1189.0445-.2397.0445-.3622zM15.1275 23.1088h1.1789v-1.6652h-.0111l-1.1678 1.6652zm2.28.4866h-.5005v.8975h-.6006v-.8975h-1.6683v-.6109l1.6683-2.2762h.6006v2.4005h.5005v.4866zM16.7813 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55626c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0438 1.276c.1125.0729.225.0912.3375.0912.3187 0 .6-.237.6-.5651V12.25c.0187-.3464-.2813-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55626c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},G0=lN;var mN=o=>{var r=o,{color:e="#5856D6"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,d:"M4.79999 21.6599h.6075v.3937h.01687c.04875-.0692.10125-.133.1575-.1914.05625-.0583.11813-.1075.18563-.1476.07125-.0401.15187-.0711.24187-.093.09-.0255.19313-.0383.30938-.0383.17625 0 .33937.0383.48937.1149.15375.0765.2625.195.32625.3554.10875-.1458.23438-.2607.37688-.3445.1425-.0839.32062-.1258.53437-.1258.3075 0 .54563.0729.71438.2188.1725.1458.25875.3901.25875.7328v1.9523h-.64125v-1.6515c0-.1131-.00375-.2151-.01125-.3063-.0075-.0948-.03-.175-.0675-.2406-.03375-.0693-.08625-.1222-.1575-.1586-.07125-.0365-.16875-.0547-.2925-.0547-.2175 0-.375.0656-.4725.1969-.0975.1312-.14625.3172-.14625.5578v1.657h-.64125v-1.8156c0-.1969-.0375-.3445-.1125-.443-.07125-.1021-.20438-.1531-.39938-.1531-.0825 0-.16312.0164-.24187.0492-.075.0328-.1425.0802-.2025.1422-.05625.062-.10313.1385-.14063.2297-.03375.0911-.05062.195-.05062.3117v1.6789h-.64125v-2.8273zM9.71127 21.6599h.60753v.3828h.0112c.09-.1641.2156-.2807.3769-.35.1612-.0729.3356-.1094.5231-.1094.2288 0 .4275.0401.5963.1203.1725.0766.315.1841.4275.3227.1125.1349.1968.2935.2531.4758.0562.1823.0844.3773.0844.5851 0 .1896-.0263.3737-.0788.5524-.0487.1786-.1256.3372-.2306.4757-.1013.1349-.2306.2443-.3881.3282-.1575.0802-.3432.1203-.5569.1203-.0938 0-.1875-.0091-.2813-.0274-.0937-.0145-.1837-.0401-.27-.0765-.0862-.0365-.1668-.0821-.2418-.1367-.0713-.0584-.1313-.1258-.18-.2024h-.0113v1.411h-.64123v-3.8719zM11.95 23.0763c0-.1276-.0169-.2516-.0506-.3719-.0338-.1203-.0844-.226-.1519-.3172-.0675-.0948-.1519-.1695-.2531-.2242-.1013-.0583-.2175-.0875-.3488-.0875-.27 0-.4743.0911-.6131.2734-.135.1823-.2025.4248-.2025.7274 0 .1422.0169.2752.0506.3992.0375.1203.0919.2242.1632.3117.0712.0875.1556.1568.2531.2078.1012.0511.2175.0766.3487.0766.1463 0 .27-.0292.3713-.0875.1012-.0583.1837-.1331.2475-.2242.0675-.0948.1144-.2005.1406-.3172.03-.1203.045-.2425.045-.3664zM15.13 22.8247c-.0075-.0984-.03-.1932-.0675-.2844-.0338-.0911-.0825-.1695-.1463-.2351-.06-.0693-.135-.124-.225-.1641-.0862-.0437-.1837-.0656-.2925-.0656-.1125 0-.2156.0201-.3093.0602-.09.0364-.1688.0893-.2363.1586-.0637.0656-.1162.144-.1575.2351-.0375.0912-.0581.1896-.0619.2953H15.13zm-1.4963.4102c0 .1094.015.2151.045.3172.0338.102.0825.1914.1463.2679.0637.0766.1444.1386.2419.186.0975.0437.2137.0656.3487.0656.1875 0 .3375-.0383.45-.1148.1163-.0803.2025-.1987.2588-.3555h.6075c-.0338.1531-.0919.2898-.1744.4101-.0825.1204-.1819.2224-.2981.3063-.1163.0802-.2475.1404-.3938.1805-.1425.0437-.2925.0656-.45.0656-.2287 0-.4312-.0365-.6075-.1094-.1762-.0729-.3262-.175-.45-.3062-.12-.1313-.2119-.2881-.2756-.4704-.06-.1822-.09-.3828-.09-.6015 0-.2005.0319-.3901.0956-.5688.0675-.1823.1613-.3409.2813-.4757.1237-.1386.2718-.248.4443-.3282s.3675-.1203.585-.1203c.2288 0 .4332.0474.6132.1422.1837.0911.3356.2133.4556.3664s.2062.33.2587.5305c.0563.1969.0713.401.045.6125h-2.1375zM18.9475 24.3396c0 .4265-.1238.7437-.3713.9515-.2437.2115-.5962.3172-1.0575.3172-.1462 0-.2944-.0146-.4444-.0437-.1462-.0292-.2812-.0784-.4049-.1477-.12-.0693-.2213-.1604-.3038-.2734-.0825-.1131-.1312-.2516-.1462-.4157h.6412c.0187.0875.0506.1586.0956.2133.045.0547.0975.0966.1575.1258.0638.0328.1332.0529.2081.0602.075.0109.1538.0164.2363.0164.2587 0 .4481-.062.5681-.186.12-.1239.18-.3026.18-.5359v-.432h-.0112c-.09.1567-.2138.2789-.3713.3664-.1537.0875-.3206.1312-.5006.1312-.2325 0-.4313-.0383-.5963-.1148-.1612-.0802-.2962-.1878-.4049-.3227-.105-.1385-.1819-.2971-.2307-.4758-.0487-.1786-.0731-.37-.0731-.5742 0-.1896.03-.37.09-.5414.06-.1713.1462-.3208.2587-.4484.1125-.1313.2494-.2352.4107-.3117.165-.0766.3506-.1149.5569-.1149.1837 0 .3524.0383.5062.1149.1537.0729.2719.1895.3544.35h.0112v-.3883h.6413v2.6797zm-1.4231-.3446c.1425 0 .2624-.0273.3599-.082.1013-.0583.1819-.1331.2419-.2242.0638-.0948.1088-.2005.135-.3172.03-.1203.045-.2406.045-.3609 0-.1204-.015-.237-.045-.35-.03-.1131-.0769-.2133-.1406-.3008-.06-.0875-.1406-.1568-.2419-.2078-.0975-.0511-.2156-.0766-.3543-.0766-.1426 0-.2626.0292-.3601.0875-.0975.0583-.1762.1349-.2362.2297-.06.0911-.1031.1969-.1294.3172-.0262.1166-.0394.2333-.0394.35 0 .1166.015.2315.045.3445.03.1094.075.2078.1351.2953.0637.0875.1425.1586.2362.2133.0975.0547.2137.082.3488.082zM16.7812 11.6666c-.1125 0-.225.0365-.3375.1094L14.4 13.0521v-1.0938c0-.4739-.45-.875-.975-.875H7.55623c-.525 0-.95625.4011-.95625.875v5.2682c0 .474.43125.8568.95625.8568H13.425c.525 0 .975-.3828.975-.8568v-1.0937l2.0437 1.276c.1125.0729.225.0912.3375.0912.3188 0 .6-.237.6-.5651V12.25c.0188-.3464-.2812-.5834-.6-.5834zM13.8 17.2265c0 .1459-.1875.2735-.375.2735H7.55623c-.1875 0-.35625-.1276-.35625-.2735v-5.2682c0-.1458.16875-.2917.35625-.2917H13.425c.1875 0 .375.1459.375.2917v5.2682zm3-.2916l-.0375-.0183L14.4 15.4401v-1.6953l2.4-1.4948v4.6849z"}))},Bm=mN;var dN=o=>{var r=o,{color:e="#F02B04"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.1143 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.08104-.2176-.14584-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.06304-.0887.10804-.1902.13504-.304.027-.1143.0402-.2304.0402-.3494zm-2.14924-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.16384.0752.29944.179.40744.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.15124.0793-.32944.1184-.53464.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM11.8639 23.4149c0 .1155.015.2298.0462.3412.03.112.0774.2118.1404.2993.063.0875.1428.1575.24.21.0972.0525.2124.0787.3456.0787.1368 0 .2544-.028.3534-.084.0996-.0554.1806-.1289.2436-.2205.063-.091.1098-.1936.1404-.3068.03-.1138.0456-.2304.0456-.3494 0-.301-.069-.5355-.2076-.7035-.1386-.168-.327-.252-.5646-.252-.144 0-.2652.0286-.3642.0869-.099.0577-.1806.133-.2436.2257-.063.0928-.1074.1978-.1344.315-.0276.1173-.0408.2369-.0408.3594zm2.1492 1.3282h-.5832v-.3675h-.0108c-.0828.1575-.2034.2701-.3618.3389-.1584.0683-.3258.1021-.5022.1021-.2196 0-.411-.0373-.5748-.1126-.1644-.0752-.3-.1779-.408-.3074-.108-.1295-.189-.2829-.243-.4591-.054-.1767-.081-.3663-.081-.5699 0-.245.0342-.4567.1026-.6352.0684-.1785.1596-.3255.273-.441.1134-.1155.243-.2007.3888-.2544.1458-.0542.294-.0816.4452-.0816.0864 0 .1746.0081.2646.0239.09.0152.1764.0408.2592.0758.0828.035.1596.0799.2298.1336.0702.0543.1284.119.1752.1925h.0108v-1.386h.6156v3.7479zM14.5422 22.0289h.459v-.2258c0-.1715.0216-.3103.0648-.4176.0432-.1062.1008-.189.1728-.2462.072-.0578.1536-.0963.2454-.1161.0924-.0187.1884-.028.2892-.028.198 0 .342.0117.432.0362v.4672c-.0396-.0105-.0822-.0181-.1266-.0233-.0456-.0053-.0984-.0082-.1596-.0082-.0828 0-.1536.0193-.2136.0578-.0594.0385-.0888.1137-.0888.2257v.2783h.5238v.4462h-.5238v2.268h-.6156v-2.268h-.459v-.4462zM12.3001 11.0555h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917zM16.5001 12.2222h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 13.9722h-4.2c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h4.2c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 15.7222H7.50013c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h8.99997c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM16.5001 17.4722H7.50013c-.1656 0-.3.1306-.3.2916 0 .161.1344.2917.3.2917h8.99997c.1656 0 .3-.1307.3-.2917s-.1344-.2916-.3-.2916zM7.80001 13.972H10.2v-2.9167H7.80001v2.9167zm-.3.5833H10.5c.1662 0 .3-.1301.3-.2916v-3.5c0-.161-.1338-.2917-.3-.2917H7.50001c-.1656 0-.3.1307-.3.2917v3.5c0 .1615.1344.2916.3.2916z",clipRule:"evenodd"}))},$0=dN;var cN=o=>{var r=o,{color:e="#FF742F"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.0811 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.08101-.2176-.14581-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.063-.0887.10801-.1902.13501-.304.027-.1143.0402-.2304.0402-.3494zm-2.14922-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.16382.0752.29942.179.40742.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.15122.0793-.32942.1184-.53462.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM13.5157 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.081-.2176-.1458-.3074-.0648-.0887-.1458-.1605-.243-.2153-.0972-.0542-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4078-.1974.6983 0 .1365.0174.2631.0516.3803.0336.1178.0852.2182.1536.3022.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2182.063-.0887.108-.1902.135-.3039.027-.1143.0402-.2304.0402-.3494zm-2.1492-1.3598h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3383.1548-.0683.3222-.1027.5022-.1027.2196 0 .4116.0374.5754.1126.1638.0753.2994.1791.4074.3103.108.1307.189.2841.243.4591.054.175.081.3623.081.5618 0 .182-.0246.3587-.0726.5302-.0486.1715-.1224.3226-.2214.4539-.099.1318-.2244.2362-.3756.315-.1512.0793-.3294.1184-.5346.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0409-.2592-.0759-.0828-.035-.159-.0793-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM14.5036 22.0288h.4644v-.8137h.6156v.8137h.5562v.4463h-.5562v1.449c0 .063.003.1172.0084.1627.0054.0455.018.084.0378.1161.0198.0309.0492.0543.0888.0706.0396.0157.0936.0233.162.0233.0432 0 .0864-.0006.1296-.0023.0432-.0018.0864-.0082.1296-.0181v.462c-.0684.0064-.135.0134-.1998.0204-.0648.007-.1314.0105-.1998.0105-.162 0-.2922-.0146-.3912-.0449-.099-.0297-.1764-.0735-.2328-.1312-.0552-.0572-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1873-.0354-.2993v-1.6012h-.4644v-.4463zM11.5263 10.8094c-1.0752 0-2.08619.4072-2.84699 1.1468-.7608.7391-1.179 1.7226-1.179 2.768 0 1.0453.4188 2.0282 1.179 2.7673.7602.7402 1.77179 1.1468 2.84699 1.1468s2.0862-.4071 2.847-1.1468c.7608-.7391 1.179-1.722 1.179-2.7673 0-.1278-.1056-.2305-.2364-.2305h-3.5526v-3.4539c0-.1271-.1062-.2304-.237-.2304zm-.363.602v3.0823c0 .322.2682.5834.6.5834h3.1704c-.0816.7566-.4236 1.4571-.9846 2.002-.648.6294-1.5084.9759-2.4228.9759-.9156 0-1.7754-.3465-2.4228-.9759-.6468-.6294-1.0032-1.4659-1.0032-2.3549 0-.8902.3558-1.7267 1.0032-2.355.561-.546 1.2822-.8785 2.0598-.9578z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M12.5931 9.8882c-.1266 0-.2298.10033-.2298.224v3.5747c0 .1236.1032.224.2298.224h3.6768c.1272 0 .2304-.1004.2304-.224 0-1.0145-.4068-1.9682-1.1448-2.6857-.7374-.7175-1.719-1.113-2.7624-1.113zm.3702.6032c.7434.0805 1.4316.4007 1.968.9222.5364.5221.8658 1.1912.9486 1.9139h-2.9166v-2.8361z",clipRule:"evenodd"}))},Lm=cN;var pN=o=>{var r=o,{color:e="#FF742F"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M16.5001 11.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 12.8049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 14.5549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM14.7001 16.3049H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h7.19997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916zM16.5001 18.0549H7.50013c-.1656 0-.3-.1306-.3-.2916 0-.161.1344-.2917.3-.2917h8.99997c.1656 0 .3.1307.3.2917s-.1344.2916-.3.2916z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M7.20001 21.9525h.61485v.3874h.01138c.09109-.166.21824-.2841.38144-.3542.1632-.0738.33968-.1107.52945-.1107.23151 0 .43267.0406.60346.1218.17459.0775.31881.1863.43267.3265.11386.1366.19925.2971.25614.4816.057.1845.0854.3819.0854.5922 0 .1919-.0265.3782-.0797.559-.0493.1808-.12711.3413-.23338.4816-.10247.1365-.23341.2472-.39281.332-.15941.0812-.34728.1218-.56361.1218-.09489 0-.18977-.0092-.28466-.0277-.09488-.0147-.18597-.0406-.27326-.0775s-.16889-.083-.2448-.1383c-.07211-.0591-.13284-.1273-.18218-.2048h-.01138v1.428h-.64901v-3.9187zm2.26583 1.4335c0-.1291-.01708-.2546-.05124-.3763-.03416-.1218-.0854-.2288-.15371-.3211-.06832-.0959-.15371-.1716-.25619-.2269-.10247-.059-.22013-.0886-.35297-.0886-.27326 0-.48011.0923-.62054.2768-.13663.1845-.20495.4299-.20495.7361 0 .1439.01708.2786.05124.4041.03796.1217.09299.2269.1651.3155.07211.0885.15751.1586.25619.2103.10247.0516.22013.0775.35296.0775.14802 0 .27327-.0295.37574-.0886.10248-.059.18597-.1347.2505-.2269.06831-.096.11575-.203.14232-.321.03036-.1218.04555-.2454.04555-.3709zM10.6803 21.9525h.6149v.3874h.0114c.091-.166.2182-.2841.3814-.3542.1632-.0738.3397-.1107.5294-.1107.2315 0 .4327.0406.6035.1218.1746.0775.3188.1863.4327.3265.1138.1366.1992.2971.2561.4816.057.1845.0854.3819.0854.5922 0 .1919-.0265.3782-.0797.559-.0493.1808-.1271.3413-.2334.4816-.1024.1365-.2334.2472-.3928.332-.1594.0812-.3473.1218-.5636.1218-.0949 0-.1898-.0092-.2847-.0277-.0948-.0147-.1859-.0406-.2732-.0775-.0873-.0369-.1689-.083-.2448-.1383-.0721-.0591-.1329-.1273-.1822-.2048h-.0114v1.428h-.649v-3.9187zm2.2658 1.4335c0-.1291-.017-.2546-.0512-.3763-.0342-.1218-.0854-.2288-.1537-.3211-.0683-.0959-.1537-.1716-.2562-.2269-.1025-.059-.2201-.0886-.353-.0886-.2732 0-.4801.0923-.6205.2768-.1366.1845-.2049.4299-.2049.7361 0 .1439.017.2786.0512.4041.0379.1217.093.2269.1651.3155.0721.0885.1575.1586.2562.2103.1024.0516.2201.0775.3529.0775.1481 0 .2733-.0295.3758-.0886.1025-.059.1859-.1347.2505-.2269.0683-.096.1157-.203.1423-.321.0304-.1218.0455-.2454.0455-.3709zM14.9349 23.3085l-1.0191-1.356h.7857l.6148.88.6433-.88h.7515l-1.002 1.3228 1.1272 1.5387h-.7799l-.7458-1.0571-.723 1.0571h-.7629l1.1102-1.5055z"}))},Y0=pN;var uN=o=>{var r=o,{color:e="#F14B5F"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M10.2396 14.2917v.5833c0 .161-.1428.2917-.31979.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.17699 0 .31979.1307.31979.2917zM10.8794 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM11.5193 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM12.1597 13.7083v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM12.7996 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM13.4394 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM9.59976 13.7083v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM14.0798 14.2917v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM5.11967 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM5.75953 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM6.39937 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM7.0398 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.1764 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1434-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM7.67964 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM8.31947 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM4.47986 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM1.91929 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM2.55973 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM3.19957 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM3.8394 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM8.95933 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM18.9197 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.1764 0 .3198.1307.3198.2917zM18.2798 13.7083v.5833c0 .161-.1434.2917-.3204.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3204.1307.3204.2917zM15.0794 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM15.7193 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM16.3597 14.2917v.5833c0 .161-.1434.2917-.3198.2917-.177 0-.3204-.1307-.3204-.2917v-.5833c0-.161.1434-.2917.3204-.2917.1764 0 .3198.1307.3198.2917zM16.9996 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917zM17.6394 14.2917v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917z",clipRule:"evenodd"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M14.4396 13.7083v.5833c0 .161-.1428.2917-.3198.2917-.177 0-.3198-.1307-.3198-.2917v-.5833c0-.161.1428-.2917.3198-.2917.177 0 .3198.1307.3198.2917z",clipRule:"evenodd"}),J.createElement("path",{fill:e,d:"M9 21.0773h.60793v.5524h.01136c.01894-.0773.05492-.1528.10795-.2265.05682-.0736.1231-.1399.19886-.1988.0795-.0626.1667-.1123.2614-.1492.0946-.0368.1912-.0552.2897-.0552.0758 0 .1269.0018.1534.0055l.0909.0111v.6076c-.0454-.0074-.0928-.0129-.142-.0166-.0455-.0074-.0909-.011-.1364-.011-.1098 0-.214.0221-.3125.0663-.0947.0405-.17799.1031-.24995.1878-.07197.081-.12879.1822-.17045.3038-.04167.1215-.0625.2614-.0625.4198v1.3588H9v-2.8558zM13.4576 23.2979c0 .0773.0094.1326.0284.1657.0227.0331.0644.0497.125.0497h.0681c.0266 0 .0569-.0037.0909-.011v.4363c-.0227.0074-.053.0148-.0909.0221-.0341.0111-.07.0203-.1079.0277-.0379.0073-.0758.0128-.1136.0165-.0379.0037-.0701.0055-.0966.0055-.1326 0-.2424-.0257-.3296-.0773-.0871-.0515-.1439-.1418-.1704-.2706-.1288.1215-.2879.2099-.4773.2651-.1856.0552-.3655.0828-.5397.0828-.1326 0-.2595-.0184-.3807-.0552-.1212-.0331-.2291-.0828-.3238-.1491-.0909-.07-.1648-.1565-.2216-.2596-.053-.1068-.0796-.2302-.0796-.3701 0-.1768.0322-.3204.0966-.4309.0682-.1105.1553-.197.2614-.2596.1098-.0626.231-.1068.3636-.1326.1364-.0294.2727-.0515.4091-.0663.1174-.0221.2291-.0368.3352-.0442.1061-.011.1989-.0276.2784-.0497.0833-.0221.1477-.0552.1932-.0994.0492-.0479.0738-.1178.0738-.2099 0-.081-.0208-.1473-.0625-.1989-.0378-.0515-.0871-.0902-.1477-.116-.0568-.0294-.1212-.0478-.1932-.0552-.0719-.011-.1401-.0166-.2045-.0166-.1818 0-.3314.0369-.4488.1105-.1175.0737-.1838.1878-.1989.3425h-.6477c.0114-.1841.0568-.337.1364-.4585.0795-.1215.1799-.2191.3011-.2927.125-.0737.2651-.1252.4204-.1547S12.1186 21 12.2815 21c.1439 0 .2859.0147.4261.0442.1401.0295.2651.0773.375.1436.1136.0663.2045.1528.2727.2596.0682.1031.1023.2302.1023.3812v1.4693zm-.6477-.7954c-.0985.0626-.2197.1012-.3637.116-.1439.011-.2878.0294-.4318.0552-.0681.011-.1344.0276-.1988.0497-.0644.0184-.1212.046-.1705.0829-.0492.0331-.089.0791-.1193.1381-.0265.0552-.0398.1233-.0398.2043 0 .07.0209.1289.0625.1768.0417.0479.091.0865.1478.116.0606.0258.125.0442.1931.0552.072.0111.1364.0166.1932.0166.072 0 .1496-.0092.233-.0276.0833-.0184.1609-.0497.2329-.0939.0758-.0442.1383-.0994.1875-.1657.0492-.07.0739-.1547.0739-.2541v-.4695zM14.1545 21.0773h.6079v.5524h.0114c.0189-.0773.0549-.1528.1079-.2265.0568-.0736.1231-.1399.1989-.1988.0795-.0626.1666-.1123.2613-.1492.0947-.0368.1913-.0552.2898-.0552.0757 0 .1269.0018.1534.0055l.0909.0111v.6076c-.0454-.0074-.0928-.0129-.142-.0166-.0455-.0074-.0909-.011-.1364-.011-.1098 0-.214.0221-.3125.0663-.0947.0405-.178.1031-.25.1878-.0719.081-.1288.1822-.1704.3038-.0417.1215-.0625.2614-.0625.4198v1.3588h-.6477v-2.8558z"}),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M22.4394 14.2917c0 .161-.1428.2916-.3198.2916h-1.6002V14h1.6002c.177 0 .3198.1307.3198.2917zm-3.1998 0c0-.161.1428-.2917.3198-.2917h.3198v.5833h-.3198c-.177 0-.3198-.1306-.3198-.2916zm-.6396 0c0 .4824.4296.875.9594.875h2.5602c.5292 0 .9594-.3926.9594-.875 0-.4825-.4302-.875-.9594-.875h-2.5602c-.5298 0-.9594.3925-.9594.875z",clipRule:"evenodd"}))},W0=uN;var fN=o=>{var r=o,{color:e="#795545"}=r,t=w(r,["color"]);return J.createElement(ge,d({},t),J.createElement("path",{fill:e,fillRule:"evenodd",d:"M8.57751 22.0289h.4644v-.8138h.6156v.8138h.55619v.4462h-.55619v1.449c0 .063.003.1173.0078.1628.0054.0455.0186.084.0384.1161.0192.0309.0492.0542.0888.0706.0396.0157.0936.0233.162.0233.0432 0 .08639-.0006.12959-.0023.0432-.0018.0864-.0082.1296-.0181v.462c-.0684.0064-.135.0134-.1998.0204-.06479.007-.13139.0105-.19979.0105-.162 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2322-.1313-.0552-.0571-.0936-.1301-.1134-.2176-.0192-.0875-.0312-.1872-.0348-.2992v-1.6013h-.4644v-.4462zM11.5424 23.3152l-.9666-1.2863h.7452l.5832.8348.6102-.8348h.7128l-.9504 1.2548 1.0692 1.4595h-.7404l-.7068-1.0028-.6858 1.0028h-.7236l1.053-1.428zM13.5451 22.0289h.4644v-.8138h.6162v.8138h.5562v.4462h-.5562v1.449c0 .063.0024.1173.0078.1628s.018.084.0378.1161c.0198.0309.0492.0542.0888.0706.0402.0157.0942.0233.1626.0233.0426 0 .0858-.0006.1296-.0023.0426-.0018.0858-.0082.1296-.0181v.462c-.069.0064-.135.0134-.1998.0204-.0654.007-.1314.0105-.1998.0105-.1626 0-.2928-.0146-.3918-.0449-.099-.0298-.1764-.0735-.2328-.1313-.0552-.0571-.093-.1301-.1128-.2176-.0198-.0875-.0318-.1872-.0354-.2992v-1.6013h-.4644v-.4462zM12.9 11.0549h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916zM16.5 12.2216h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 13.9716h-3.6c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916h3.6c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 15.7216H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916H16.5c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM16.5 17.4716H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916H16.5c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917zM7.50001 11.0549h1.5v3.2813c0 .161.1344.2916.3.2916s.3-.1306.3-.2916v-3.2813H11.1c.1656 0 .3-.1306.3-.2916 0-.161-.1344-.2917-.3-.2917H7.50001c-.1656 0-.3.1307-.3.2917s.1344.2916.3.2916z",clipRule:"evenodd"}))},Q0=fN;var gN=({color:e="#27B740"})=>J.createElement(ge,null,J.createElement("path",{fill:e,fillRule:"evenodd",d:"M9.35494 23.3152l-.9666-1.2863h.7452l.5832.8348.61016-.8348h.7128l-.9504 1.2548 1.0692 1.4595h-.7398l-.70736-1.0028-.6858 1.0028h-.7236l1.053-1.428zM11.6556 24.7432h.6156v-3.7484h-.6156v3.7484zM13.5397 23.8718c.018.175.0864.2974.2052.3674.1188.07.261.105.4266.105.0576 0 .123-.004.1968-.0134.0738-.0087.1434-.0251.2082-.0496.0648-.0245.1176-.06.1596-.1073.0414-.0472.06-.1097.0564-.1866-.0036-.077-.0324-.14-.0864-.189-.054-.049-.1236-.0881-.2076-.1179-.0846-.0303-.1812-.0554-.2892-.0764-.108-.021-.2178-.0437-.3294-.0682-.1152-.0245-.2262-.0543-.3318-.0893-.1068-.035-.2022-.0822-.2862-.1417-.0846-.0595-.1524-.1354-.2028-.2281-.0504-.0928-.0756-.2077-.0756-.3442 0-.147.0366-.2707.1104-.3704.0738-.0998.168-.1797.2814-.2415.1134-.0607.2394-.1038.3774-.1283.1386-.0245.2712-.0368.3972-.0368.144 0 .2814.0146.4134.0443.1308.0304.2502.0782.3558.1447.1068.0665.195.1534.2652.2596.0696.1073.114.2357.132.3862h-.6426c-.0288-.1435-.0966-.2398-.2022-.2888-.1068-.049-.228-.0741-.3648-.0741-.0432 0-.0942.0041-.1542.0111-.0594.007-.1146.0198-.1668.0391-.0528.0198-.0966.0472-.1326.0846-.036.0361-.054.0846-.054.1441 0 .0735.0264.133.078.1785.0522.0455.1212.0828.2058.1125.084.0304.1806.0555.2886.0765.108.021.2196.0437.3348.0682.1116.0245.2214.0543.3294.0893.108.035.204.0822.2892.1417.084.0595.1524.1348.2046.2258.0522.091.0786.203.0786.3354 0 .1615-.0378.298-.1134.41-.0756.112-.174.203-.294.273-.1212.07-.255.1208-.4026.1523-.1476.0315-.2934.0472-.4374.0472-.1764 0-.3396-.0192-.4884-.0577-.1494-.0385-.2796-.0974-.3888-.1756-.1098-.0793-.1962-.1773-.2592-.294-.063-.1172-.0966-.2566-.1002-.4176h.6156zM13.8 17.4714h2.4v-2.9166h-2.4v2.9166zm-3 0h2.4v-2.9166h-2.4v2.9166zm-3.00002 0H10.2v-2.9166H7.79998v2.9166zm0-3.5H10.2v-2.9166H7.79998v2.9166zm6.00002 0h2.4v-2.9166h-2.4v2.9166zm-3 0h2.4v-2.9166h-2.4v2.9166zm5.7-3.5H7.49998c-.1662 0-.3.1307-.3.2917v7c0 .1616.1338.2917.3.2917H16.5c.1656 0 .3-.1301.3-.2917v-7c0-.161-.1344-.2917-.3-.2917z",clipRule:"evenodd"})),Fm=gN;var yN=({color:e="#5856D6"})=>J.createElement(ge,null,J.createElement("path",{fill:e,fillRule:"evenodd",d:"M8.35116 22.0289h2.26804v.42l-1.59844 1.8217h1.67944v.4725H8.24316v-.42l1.5444-1.8211h-1.4364v-.4731zM11.2998 24.7433h.6156V22.029h-.6156v2.7143zm0-3.1816h.6156v-.5669h-.6156v.5669zM14.8852 23.3886c0-.1225-.0162-.2415-.0486-.357-.0324-.1155-.081-.2176-.1458-.3074-.0648-.0887-.1458-.1604-.243-.2152-.0972-.0543-.2088-.0811-.3348-.0811-.2592 0-.4542.0875-.5856.2625-.1314.1756-.1974.4077-.1974.6982 0 .1365.0174.2631.0516.3804.0336.1178.0852.2181.1536.3021.0684.084.15.1505.246.1995.0948.049.2058.0735.3318.0735.1404 0 .2592-.028.3564-.084.0972-.056.1776-.1289.2406-.2181.063-.0887.108-.1902.135-.304.027-.1143.0402-.2304.0402-.3494zm-2.1492-1.3597h.5832v.3675h.0108c.0864-.1575.207-.2701.3618-.3384.1548-.0682.3222-.1026.5022-.1026.2196 0 .4116.0373.5754.1126.1638.0752.2994.179.4074.3103.108.1307.189.2841.243.4591.054.175.081.3622.081.5617 0 .182-.0246.3588-.0726.5303-.0486.1715-.1224.3226-.2214.4538-.099.1318-.2244.2363-.3756.315-.1512.0793-.3294.1184-.5346.1184-.09 0-.18-.0076-.27-.0239-.09-.0152-.1764-.0408-.2592-.0758-.0828-.035-.159-.0794-.2298-.1336-.0696-.0548-.1284-.1184-.1752-.1919h-.0108v1.3545h-.6156v-3.717zM12.0001 10.2465h-.6c-.1656 0-.3-.1388-.3-.31088 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091s-.1344.31088-.3.31088zM12.6001 10.8686h-.6c-.1656 0-.3-.1388-.3-.3109s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3109-.3.3109zM12.0001 11.4907h-.6c-.1656 0-.3-.1389-.3-.3109 0-.1721.1344-.311.3-.311h.6c.1656 0 .3.1389.3.311 0 .172-.1344.3109-.3.3109zM12.6001 12.1133h-.6c-.1656 0-.3-.1394-.3-.3109 0-.1721.1344-.3115.3-.3115h.6c.1656 0 .3.1394.3.3115 0 .1715-.1344.3109-.3.3109zM12.0001 12.7354h-.6c-.1656 0-.3-.1388-.3-.3109s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3109-.3.3109zM12.6001 13.3575h-.6c-.1656 0-.3-.1389-.3-.311 0-.172.1344-.3109.3-.3109h.6c.1656 0 .3.1389.3.3109 0 .1721-.1344.311-.3.311zM12.0001 17.7131c-.1656 0-.3-.1388-.3-.3109v-1.5558h.6v1.5558c0 .1721-.1344.3109-.3.3109zm0-3.1109c.1656 0 .3.1388.3.3109v.3109h-.6v-.3109c0-.1721.1344-.3109.3-.3109zm0-.6219c-.4962 0-.9.4177-.9.9328v2.4891c0 .5145.4038.9327.9.9327.4962 0 .9-.4182.9-.9327v-2.4891c0-.5151-.4038-.9328-.9-.9328zM12.6001 9.62448h-.6c-.1656 0-.3-.13942-.3-.31092 0-.17208.1344-.3115.3-.3115h.6c.1656 0 .3.13942.3.3115 0 .1715-.1344.31092-.3.31092zM12.0001 13.9801h-.6c-.1656 0-.3-.1394-.3-.3115s.1344-.3109.3-.3109h.6c.1656 0 .3.1388.3.3109s-.1344.3115-.3.3115zM12.0001 5.26884h-.6c-.1656 0-.3-.13942-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .1715-.1344.31092-.3.31092zM12.6001 5.89091h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.0001 6.51298h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.6001 7.13562h-.6c-.1656 0-.3-.13941-.3-.3115 0-.1715.1344-.31091.3-.31091h.6c.1656 0 .3.13941.3.31091 0 .17209-.1344.3115-.3.3115zM12.0001 7.75769h-.6c-.1656 0-.3-.13941-.3-.31091 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .1715-.1344.31091-.3.31091zM12.6001 8.37976h-.6c-.1656 0-.3-.13883-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .17209-.1344.31092-.3.31092zM12.6001 4.64678h-.6c-.1656 0-.3-.13942-.3-.3115 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.3115-.3.3115zM12.0001 1.53528h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.310918.3-.310918h.6c.1656 0 .3.138838.3.310918 0 .17208-.1344.31092-.3.31092zM12.6001 2.15734h-.6c-.1656 0-.3-.13883-.3-.31092 0-.17208.1344-.31091.3-.31091h.6c.1656 0 .3.13883.3.31091 0 .17209-.1344.31092-.3.31092zM12.0001 2.77999h-.6c-.1656 0-.3-.13941-.3-.31091 0-.17209.1344-.3115.3-.3115h.6c.1656 0 .3.13941.3.3115 0 .1715-.1344.31091-.3.31091zM12.6001 3.40206h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17208.1344-.31092.3-.31092h.6c.1656 0 .3.13884.3.31092 0 .17208-.1344.31092-.3.31092zM12.0001 4.02412h-.6c-.1656 0-.3-.13883-.3-.31091 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.31091-.3.31091zM12.0001 9.00183h-.6c-.1656 0-.3-.13884-.3-.31092 0-.17209.1344-.31092.3-.31092h.6c.1656 0 .3.13883.3.31092 0 .17208-.1344.31092-.3.31092z",clipRule:"evenodd"})),K0=yN;var hN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),J.createElement("path",{d:`M368 224H224V80c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144H16c-8.84 0-16 7.16-16
179
179
  16v32c0 8.84 7.16 16 16 16h144v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V288h144c8.84
180
180
  0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z`})),_o=hN;var CN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M491.609 73.625l-53.861-53.839c-26.378-26.379-69.076-26.383-95.46-.001L24.91 335.089.329
181
181
  484.085c-2.675 16.215 11.368 30.261 27.587 27.587l148.995-24.582 315.326-317.378c26.33-26.331
@@ -194,7 +194,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
194
194
  72.19-54.46C145.47 371.859 157.41 330.2 304 321.66v78.28c0 42.64 51.73 64.15 81.94
195
195
  33.94l175.997-175.94c18.751-18.74 18.751-49.14.001-67.88zM352 400V272.09c-164.521
196
196
  1.79-277.44 33.821-227.98 191.61C88 440 48 397.01 48 330.05c0-142.242 160.819-153.39
197
- 304-154.02V48l176 176-176 176z`})),y1=xN;var bN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416
197
+ 304-154.02V48l176 176-176 176z`})),h1=xN;var bN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416
198
198
  93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2
199
199
  3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4
200
200
  0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z`})),vi=bN;var IN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6
@@ -207,7 +207,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
207
207
  48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6
208
208
  6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909
209
209
  40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971
210
- 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z`})),h1=_N;var MN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M67.508 468.467c-58.005-58.013-58.016-151.92 0-209.943l225.011-225.04c44.643-44.645
210
+ 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z`})),C1=_N;var MN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M67.508 468.467c-58.005-58.013-58.016-151.92 0-209.943l225.011-225.04c44.643-44.645
211
211
  117.279-44.645 161.92 0 44.743 44.749 44.753 117.186 0 161.944l-189.465 189.49c-31.41
212
212
  31.413-82.518 31.412-113.926.001-31.479-31.482-31.49-82.453 0-113.944L311.51
213
213
  110.491c4.687-4.687 12.286-4.687 16.972 0l16.967 16.971c4.685 4.686 4.685 12.283 0
@@ -217,10 +217,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
217
217
  39.252-39.258 102.795-.001 142.057 39.285 39.29 102.885 39.287 142.162-.028A739446.174
218
218
  739446.174 0 0 1 439.497 238.49c4.686-4.687 12.282-4.684 16.969.004l16.967 16.971c4.685
219
219
  4.686 4.689 12.279.004 16.965a755654.128 755654.128 0 0 0-195.881 195.996c-58.034
220
- 58.092-152.004 58.093-210.048.041z`})),C1=MN;var PN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284
220
+ 58.092-152.004 58.093-210.048.041z`})),v1=MN;var PN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284
221
221
  28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686
222
222
  16.971 0l299.813-299.813c4.686-4.686 4.686-12.284
223
- 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z`})),v1=PN;var SN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),J.createElement("path",{d:`M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17
223
+ 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z`})),x1=PN;var SN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),J.createElement("path",{d:`M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17
224
224
  0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7
225
225
  4.7-12.3 0-17z`})),ir=SN;var TN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 256 512",fill:"currentColor"},e),J.createElement("path",{d:`M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092
226
226
  74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971
@@ -265,7 +265,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
265
265
  21.5-48 48-48h32v-48C80 64.5 144.8-.2 224.4 0 304 .2 368 65.8 368 145.4V192h32c26.5 0 48
266
266
  21.5 48 48zm-320-48h192v-48c0-52.9-43.1-96-96-96s-96 43.1-96 96v48zm272 48H48v224h352V240z`})),Pr=FN;var DN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),J.createElement("path",{d:`M140 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4
267
267
  12-12 12H140zm364-28c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-48
268
- 0c0-110.5-89.5-200-200-200S56 145.5 56 256s89.5 200 200 200 200-89.5 200-200z`})),x1=DN;var VN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 576 512",fill:"currentColor"},e),J.createElement("path",{d:`M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0
268
+ 0c0-110.5-89.5-200-200-200S56 145.5 56 256s89.5 200 200 200 200-89.5 200-200z`})),b1=DN;var VN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 576 512",fill:"currentColor"},e),J.createElement("path",{d:`M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0
269
269
  30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48
270
270
  392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480
271
271
  8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0
@@ -291,13 +291,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
291
291
  24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6
292
292
  6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0
293
293
  128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z`})),ip=HN;var UN=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),J.createElement("path",{d:`M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9
294
- 0L24 329c-15.1-15.1-4.4-41 17-41z`})),ap=UN;var ZN=m(v1).attrs({width:18,height:18})`
294
+ 0L24 329c-15.1-15.1-4.4-41 17-41z`})),ap=UN;var ZN=m(x1).attrs({width:18,height:18})`
295
295
  margin-right: 8px;
296
296
  `,qN=m(Ut).attrs({width:18,height:18})`
297
297
  margin-right: 8px;
298
298
  `,YN=m(ft).attrs({width:18,height:18})`
299
299
  margin-right: 8px;
300
- `,sp=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),WN=3e3,x8=({children:e})=>{let[t,o]=useState([]),r=i=>o&&o(a=>a.filter(s=>s.id!==i)),n=i=>{let a=Date.now();o(s=>[...s,d({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||WN);};return J.createElement(sp.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(S(d({},i),{icon:J.createElement(ZN,null)})),info:i=>n(S(d({},i),{icon:J.createElement(qN,null)})),error:i=>n(S(d({},i),{icon:J.createElement(YN,null)})),show:i=>n(i)}}},e)},b8=()=>{let{notifications:e}=useContext(sp);return e},Ce=()=>{let{notificationFunction:e}=useContext(sp);return e};var xa=({children:e})=>createPortal(e,document.body);m(v1).attrs({width:18,height:18})`
300
+ `,sp=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),WN=3e3,x8=({children:e})=>{let[t,o]=useState([]),r=i=>o&&o(a=>a.filter(s=>s.id!==i)),n=i=>{let a=Date.now();o(s=>[...s,d({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||WN);};return J.createElement(sp.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(S(d({},i),{icon:J.createElement(ZN,null)})),info:i=>n(S(d({},i),{icon:J.createElement(qN,null)})),error:i=>n(S(d({},i),{icon:J.createElement(YN,null)})),show:i=>n(i)}}},e)},b8=()=>{let{notifications:e}=useContext(sp);return e},Ce=()=>{let{notificationFunction:e}=useContext(sp);return e};var xa=({children:e})=>createPortal(e,document.body);m(x1).attrs({width:18,height:18})`
301
301
  margin-right: 8px;
302
302
  `;m(Ut).attrs({width:18,height:18})`
303
303
  margin-right: 8px;
@@ -447,7 +447,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
447
447
  }
448
448
  `,tk=m(E8)`
449
449
  width: 440px;
450
- `,A8=o=>{var r=o,{small:e}=r,t=I(r,["small"]);return e?J.createElement(tk,d({},t)):J.createElement(E8,d({},t))},B8=m.div`
450
+ `,A8=o=>{var r=o,{small:e}=r,t=w(r,["small"]);return e?J.createElement(tk,d({},t)):J.createElement(E8,d({},t))},B8=m.div`
451
451
  padding: 16px 16px 12px 16px;
452
452
  ${({clean:e,theme:t})=>!e&&j`
453
453
  border-bottom: 1px solid ${t.palette.base.shade4};
@@ -466,7 +466,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
466
466
  border-top: 1px solid ${t.palette.base.shade4};
467
467
  padding-top: 16px;
468
468
  `}
469
- `;var nk=({"data-qa-anchor":e="",size:t="",className:o,onOverlayClick:r=()=>{},onCancel:n,title:i,footer:a,clean:s,children:l})=>{let c=useRef(null);useEffect(()=>{var u;(u=c==null?void 0:c.current)==null||u.focus();},[c==null?void 0:c.current]);let p=typeof l=="string"||(l==null?void 0:l.type)==="FormattedMessage";return J.createElement(k8,{onClick:r},J.createElement(A8,{small:t==="small",tabIndex:0,className:o,ref:c,"data-qa-anchor":e},(i||n)&&J.createElement(B8,{clean:s},i,n&&J.createElement(N8,{onClick:n})),J.createElement(L8,{isText:p},l),a&&J.createElement(F8,{clean:s},a)))},xt=nk;var ik=r=>{var n=r,{variant:e,fullWidth:t=!1}=n,o=I(n,["variant","fullWidth"]);switch(e){case"primary":return J.createElement(de,S(d({},o),{fullWidth:t}));case"secondary":return J.createElement(Se,S(d({},o),{fullWidth:t}));default:return J.createElement(M8,S(d({},o),{fullWidth:t}))}},q=ik;var D8=m(xt)`
469
+ `;var nk=({"data-qa-anchor":e="",size:t="",className:o,onOverlayClick:r=()=>{},onCancel:n,title:i,footer:a,clean:s,children:l})=>{let c=useRef(null);useEffect(()=>{var u;(u=c==null?void 0:c.current)==null||u.focus();},[c==null?void 0:c.current]);let p=typeof l=="string"||(l==null?void 0:l.type)==="FormattedMessage";return J.createElement(k8,{onClick:r},J.createElement(A8,{small:t==="small",tabIndex:0,className:o,ref:c,"data-qa-anchor":e},(i||n)&&J.createElement(B8,{clean:s},i,n&&J.createElement(N8,{onClick:n})),J.createElement(L8,{isText:p},l),a&&J.createElement(F8,{clean:s},a)))},xt=nk;var ik=r=>{var n=r,{variant:e,fullWidth:t=!1}=n,o=w(n,["variant","fullWidth"]);switch(e){case"primary":return J.createElement(de,S(d({},o),{fullWidth:t}));case"secondary":return J.createElement(Se,S(d({},o),{fullWidth:t}));default:return J.createElement(M8,S(d({},o),{fullWidth:t}))}},q=ik;var D8=m(xt)`
470
470
  max-width: 360px;
471
471
  `,V8=m.div`
472
472
  padding: 1rem 1rem 0.75rem 1rem;
@@ -481,7 +481,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
481
481
  }
482
482
  `,U8=m(q)`
483
483
  margin-right: 10px;
484
- `;var ak=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=H8,cancelText:s="Cancel",CancelButton:l=U8,onCancel:c,type:p="confirm"})=>J.createElement(D8,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:J.createElement(O8,null,p==="confirm"&&J.createElement(l,{"data-qa-anchor":"confirm-modal-cancel-button",onClick:c},s),J.createElement(a,{"data-qa-anchor":`confirm-modal-${e}-ok-button`,onClick:i},n)),onCancel:c},J.createElement(V8,null,r)),z8=()=>{let{confirmData:e,closeConfirm:t}=ue();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk(),e!=null&&e.onSuccess&&(e==null||e.onSuccess());};return J.createElement(xa,null,J.createElement(ak,S(d({},e),{onCancel:o,onOk:r})))};var Om={icon__container:"Lr",icon:"Tr",notifications:"R",notificationContainer:"A",appear:"M"};var lk=t=>{var e=I(t,[]);return J.createElement("svg",d({width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M9 0.0273438C13.7812 0.0273438 17.7188 3.96484 17.7188 8.74609C17.7188 13.5625 13.7812 17.4648 9 17.4648C4.18359 17.4648 0.28125 13.5625 0.28125 8.74609C0.28125 3.96484 4.18359 0.0273438 9 0.0273438ZM9 1.71484C5.09766 1.71484 1.96875 4.87891 1.96875 8.74609C1.96875 12.6484 5.09766 15.7773 9 15.7773C12.8672 15.7773 16.0312 12.6484 16.0312 8.74609C16.0312 4.87891 12.8672 1.71484 9 1.71484ZM13.9219 6.32031C14.0625 6.46094 14.0625 6.74219 13.9219 6.91797L7.83984 12.9297C7.66406 13.1055 7.41797 13.1055 7.24219 12.9297L4.04297 9.69531C3.90234 9.55469 3.90234 9.27344 4.04297 9.09766L4.85156 8.32422C5.02734 8.14844 5.27344 8.14844 5.44922 8.32422L7.55859 10.4336L12.5156 5.51172C12.6914 5.33594 12.9727 5.33594 13.1133 5.51172L13.9219 6.32031Z"}))},G8=lk;var mk=t=>{var e=I(t,[]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504
484
+ `;var ak=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=H8,cancelText:s="Cancel",CancelButton:l=U8,onCancel:c,type:p="confirm"})=>J.createElement(D8,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:J.createElement(O8,null,p==="confirm"&&J.createElement(l,{"data-qa-anchor":"confirm-modal-cancel-button",onClick:c},s),J.createElement(a,{"data-qa-anchor":`confirm-modal-${e}-ok-button`,onClick:i},n)),onCancel:c},J.createElement(V8,null,r)),z8=()=>{let{confirmData:e,closeConfirm:t}=ue();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk(),e!=null&&e.onSuccess&&(e==null||e.onSuccess());};return J.createElement(xa,null,J.createElement(ak,S(d({},e),{onCancel:o,onOk:r})))};var Om={icon__container:"Lr",icon:"Tr",notifications:"R",notificationContainer:"A",appear:"M"};var lk=t=>{var e=w(t,[]);return J.createElement("svg",d({width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M9 0.0273438C13.7812 0.0273438 17.7188 3.96484 17.7188 8.74609C17.7188 13.5625 13.7812 17.4648 9 17.4648C4.18359 17.4648 0.28125 13.5625 0.28125 8.74609C0.28125 3.96484 4.18359 0.0273438 9 0.0273438ZM9 1.71484C5.09766 1.71484 1.96875 4.87891 1.96875 8.74609C1.96875 12.6484 5.09766 15.7773 9 15.7773C12.8672 15.7773 16.0312 12.6484 16.0312 8.74609C16.0312 4.87891 12.8672 1.71484 9 1.71484ZM13.9219 6.32031C14.0625 6.46094 14.0625 6.74219 13.9219 6.91797L7.83984 12.9297C7.66406 13.1055 7.41797 13.1055 7.24219 12.9297L4.04297 9.69531C3.90234 9.55469 3.90234 9.27344 4.04297 9.09766L4.85156 8.32422C5.02734 8.14844 5.27344 8.14844 5.44922 8.32422L7.55859 10.4336L12.5156 5.51172C12.6914 5.33594 12.9727 5.33594 13.1133 5.51172L13.9219 6.32031Z"}))},G8=lk;var mk=t=>{var e=w(t,[]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504
485
485
  119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200
486
486
  110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm42-104c0 23.159-18.841 42-42
487
487
  42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42zm-81.37-211.401l6.8 136c.319 6.387
@@ -497,7 +497,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
497
497
  52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4
498
498
  256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160
499
499
  303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34
500
- 0-22.58L207.6 256z`})),jm=hk;var t7=[.25,.4,.5,.75],wk=(e,t=!1)=>{if(!e)return Array(t7.length).fill("");if(t===!0&&e===Jt.theme.dark.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];if(t===!1&&e===Jt.theme.light.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];let o=parseToHsl(e);return t7.map(n=>t?darken(n,hslToColorString(o)):lighten(n,hslToColorString(o)))};function o7(e){let t=up(),o=useMemo(()=>e!=null&&e.preferred_theme&&(e==null?void 0:e.preferred_theme)!=="default"?e.preferred_theme:"default",[e==null?void 0:e.preferred_theme,t]),r=o==="default"?t:o;return useMemo(()=>{var s;let i=((s=e==null?void 0:e.theme)==null?void 0:s[r])||{},a=wk(i.primary_color);return {"--asc-color-primary-default":i.primary_color,"--asc-color-primary-shade1":a[0],"--asc-color-primary-shade2":a[1],"--asc-color-primary-shade3":a[2],"--asc-color-primary-shade4":a[3],"--asc-color-secondary-default":i.secondary_color,"--asc-color-secondary-shade1":i.secondary_shade1_color,"--asc-color-secondary-shade2":i.secondary_shade2_color,"--asc-color-secondary-shade3":i.secondary_shade3_color,"--asc-color-secondary-shade4":i.secondary_shade4_color,"--asc-color-alert-default":i.alert_color,"--asc-color-base-inverse":i.base_inverse_color,"--asc-color-base-default":i.base_color,"--asc-color-base-shade1":i.base_shade1_color,"--asc-color-base-shade2":i.base_shade2_color,"--asc-color-base-shade3":i.base_shade3_color,"--asc-color-base-shade4":i.base_shade4_color,"--asc-color-base-shade5":i.base_shade5_color,"--asc-color-background-default":i.background_color}},[e,r])}var _k=createContext({currentTheme:"light",toggleTheme:()=>{}});var up=()=>{let{currentTheme:e}=useContext(_k);return e};var fp=({page:e,component:t,element:o})=>o!=="*"?[`${e}/${t}/${o}`,`*/${t}/${o}`,`${e}/*/${o}`,`*/*/${o}`,`${e}/${t}/*`,`*/${t}/*`,`${e}/*/*`]:t!=="*"?[`${e}/${t}/*`,`${e}/*/*`,`*/${t}/*`]:e!=="*"?[`${e}/*/*`]:[],r7=createContext({config:null,parseConfig:()=>{},isExcluded:()=>!1,getConfig:()=>({})}),Gm=()=>{let e=useContext(r7);if(!e)throw new Error("useCustomization must be used within a CustomizationProvider");return e},Jt={preferred_theme:"default",theme:{light:{primary_color:"#36486c",secondary_color:"#292b32",secondary_shade1_color:"#636878",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#a5a9b5",secondary_shade4_color:"#ebecef",base_color:"#292b32",base_shade1_color:"#636878",base_shade2_color:"#898e9e",base_shade3_color:"#a5a9b5",base_shade4_color:"#ebecef",base_shade5_color:"#F9F9FA",alert_color:"#FA4D30",background_color:"#FFFFFF",base_inverse_color:"#000000"},dark:{primary_color:"#1054DE",secondary_color:"#ebecef",secondary_shade1_color:"#a5a9b5",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#40434e",secondary_shade4_color:"#292b32",base_color:"#ebecef",base_shade1_color:"#a5a9b5",base_shade2_color:"#6e7487",base_shade3_color:"#40434e",base_shade4_color:"#292b32",base_shade5_color:"#f9f9fa",alert_color:"#FA4D30",background_color:"#191919",base_inverse_color:"#FFFFFF"}},excludes:[],customizations:{"select_target_page/*/*":{theme:{},title:"Share to"},"select_target_page/*/back_button":{back_icon:"back.png"},"camera_page/*/*":{resolution:"720p"},"camera_page/*/close_button":{close_icon:"close.png"},"create_story_page/*/*":{},"create_story_page/*/back_button":{back_icon:"back.png",background_color:"#1234DB"},"create_story_page/*/aspect_ratio_button":{aspect_ratio_icon:"aspect_ratio.png",background_color:"1234DB"},"create_story_page/*/story_hyperlink_button":{hyperlink_button_icon:"hyperlink_button.png",background_color:"#1234DB"},"create_story_page/*/hyper_link":{hyper_link_icon:"hyper_link.png",background_color:"#1234DB"},"create_story_page/*/share_story_button":{share_icon:"share_story_button.png",background_color:"#1234DB",hide_avatar:!1},"story_page/*/*":{},"story_page/*/progress_bar":{progress_color:"#UD1234",background_color:"#AB1234"},"story_page/*/overflow_menu":{overflow_menu_icon:"threeDot.png"},"story_page/*/close_button":{close_icon:"close.png"},"story_page/*/story_impression_button":{impression_icon:"impressionIcon.png"},"story_page/*/story_comment_button":{comment_icon:"comment.png",background_color:"#2b2b2b"},"story_page/*/story_reaction_button":{reaction_icon:"like.png",background_color:"#2b2b2b"},"story_page/*/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#ffffff"},"story_page/*/speaker_button":{mute_icon:"mute.png",unmute_icon:"unmute.png",background_color:"#1243EE"},"story_page/*/arrow_left_button":{arrow_left_icon:"arrow_left.png",background_color:"#1243EE"},"story_page/*/arrow_right_button":{arrow_right_icon:"arrow_right.png",background_color:"#1243EE"},"*/edit_comment_component/*":{theme:{}},"*/edit_comment_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel",background_color:""},"*/edit_comment_component/save_button":{save_icon:"",save_button_text:"Save",background_color:"#1243EE"},"*/hyper_link_config_component/*":{theme:{}},"*/hyper_link_config_component/done_button":{done_icon:"",done_button_text:"Done",background_color:"#1243EE"},"*/hyper_link_config_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel"},"*/comment_tray_component/*":{theme:{}},"*/comment_tray_component/comment_bubble_deleted_view":{comment_bubble_deleted_icon:"comment_bubble_deleted.png",text:"This reply has been deleted"},"*/story_tab_component/*":{},"*/story_tab_component/story_ring":{progress_color:["#339AF9","#78FA58"],background_color:"#AB1234"},"*/story_tab_component/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#1243EE"},"*/*/close_button":{close_icon:"close.png"},"social_home_page/top_navigation/header_label":{text:"Community"},"social_home_page/top_navigation/global_search_button":{icon:"searchButtonIcon"},"social_home_page/top_navigation/post_creation_button":{icon:"postCreationIcon"},"social_home_page/*/newsfeed_button":{text:"Newsfeed"},"social_home_page/*/explore_button":{text:"Explore"},"social_home_page/*/my_communities_button":{text:"My Communities"},"social_home_page/empty_newsfeed/illustration":{icon:"emptyFeedIcon"},"social_home_page/empty_newsfeed/title":{text:"Your Feed is empty"},"social_home_page/empty_newsfeed/description":{text:"Find community or create your own"},"social_home_page/empty_newsfeed/explore_communities_button":{icon:"exploreCommunityIcon",text:"Explore Community"},"social_home_page/empty_newsfeed/create_community_button":{icon:"createCommunityIcon",text:"Create Community"},"social_home_page/my_communities/community_avatar":{},"social_home_page/my_communities/community_display_name":{},"social_home_page/my_communities/community_private_badge":{icon:"lockIcon"},"social_home_page/my_communities/community_official_badge":{icon:"officalBadgeIcon"},"social_home_page/my_communities/community_category_name":{},"social_home_page/my_communities/community_members_count":{},"social_home_page/newsfeed_component/*":{},"social_home_page/global_feed_component/*":{},"global_search_page/*/*":{},"post_detail_page/*/back_button":{icon:"backButtonIcon"},"post_detail_page/*/menu_button":{icon:"menuIcon"},"*/*/moderator_badge":{icon:"badgeIcon",text:"Moderator"},"*/post_content/timestamp":{},"*/post_content/menu_button":{icon:"menuIcon"},"*/post_content/post_content_view_count":{},"*/post_content/reaction_button":{icon:"likeButtonIcon",text:"Like"},"*/post_content/comment_button":{icon:"commentButtonIcon",text:"Comment"},"*/post_content/share_button":{icon:"shareButtonIcon",text:"Share"},"post_composer_page/*/*":{},"post_composer_page/*/close_button":{image:"platformValue"},"post_composer_page/*/community_display_name":{},"post_composer_page/*/create_new_post_button":{text:"Post"},"post_composer_page/*/edit_post_button":{text:"Save"},"post_composer_page/*/edit_post_title":{text:"Edit post"},"post_composer_page/media_attachment/*":{},"post_composer_page/media_attachment/camera_button":{image:"platformValue"},"post_composer_page/media_attachment/image_button":{image:"platformValue"},"post_composer_page/media_attachment/video_button":{image:"platformValue"},"post_composer_page/media_attachment/file_button":{image:"platformValue"},"post_composer_page/media_attachment/detailed_button":{image:"platformValue"},"post_composer_page/detailed_media_attachment/*":{},"post_composer_page/detailed_media_attachment/camera_button":{text:"Camera",image:"platformValue"},"post_composer_page/detailed_media_attachment/image_button":{text:"Photo",image:"platformValue"},"post_composer_page/detailed_media_attachment/video_button":{text:"Video",image:"platformValue"},"post_composer_page/detailed_media_attachment/file_button":{text:"Attachment",image:"platformValue"},"social_home_page/*/*":{},"social_home_page/create_post_menu/*":{},"social_home_page/create_post_menu/create_post_button":{text:"Post",image:"Post"},"social_home_page/create_post_menu/create_story_button":{text:"Story",image:"Story"},"social_home_page/create_post_menu/create_poll_button":{text:"Poll",image:"Poll"},"social_home_page/create_post_menu/create_livestream_button":{text:"Livestream",image:"Livestream"},"select_post_target_page/*/close_button":{image:"platformValue"},"select_post_target_page/*/my_timeline_avatar":{},"select_post_target_page/*/title":{text:"Post to"},"select_post_target_page/*/my_timeline_text":{text:"My Timeline"},"select_story_target_page/*/close_button":{image:"platformValue"},"select_story_target_page/*/title":{text:"Share to"},"*/*/community_official_badge":{image:"platformValue"},"*/*/community_private_badge":{image:"platformValue"},"social_global_search_page/*/*":{},"social_global_search_page/top_search_bar/*":{text:"Search community and user"},"social_global_search_page/top_search_bar/search_icon":{icon:"search"},"social_global_search_page/top_search_bar/clear_button":{icon:"clear"},"social_global_search_page/top_search_bar/cancel_button":{text:"Cancel"},"social_global_search_page/community_search_result/community_avatar":{},"social_global_search_page/community_search_result/community_display_name":{},"social_global_search_page/community_search_result/community_private_badge":{icon:"lockIcon"},"social_global_search_page/community_search_result/community_official_badge":{icon:"officialBadgeIcon"},"social_global_search_page/community_search_result/community_category_name":{},"social_global_search_page/community_search_result/community_members_count":{},"my_communities_search_page/top_search_bar/*":{text:"Search my community"},"my_communities_search_page/*/community_avatar":{},"my_communities_search_page/*/community_display_name":{},"my_communities_search_page/*/community_private_badge":{icon:"lockIcon"},"my_communities_search_page/*/community_official_badge":{icon:"officialBadgeIcon"},"my_communities_search_page/*/community_category_name":{},"my_communities_search_page/*/community_members_count":{},"my_communities_search_page/top_search_bar/cancel_button":{text:"Cancel"},"community_profile_page/*/*":{},"community_profile_page/community_feed/*":{},"*/post_content/announcement_badge":{image:"value"},"*/post_content/pin_badge":{image:"value"},"*/post_content/non_member_section":{image:"value"},"community_profile_page/community_header/*":{},"community_profile_page/community_header/community_cover":{},"community_profile_page/community_header/community_name":{},"community_profile_page/community_header/community_verify_badge":{image:"value"},"community_profile_page/community_header/community_category":{},"community_profile_page/community_header/community_description":{},"community_profile_page/community_header/community_info":{},"community_profile_page/community_header/community_join_button":{image:"value"},"community_profile_page/community_header/community_pending_post":{image:"value"},"community_profile_page/community_header/back_button":{image:"value"},"community_profile_page/community_header/menu_button":{image:"value"},"community_profile_page/community_profile_tab/*":{},"community_profile_page/community_profile_tab/community_feed_tab_button":{image:"value"},"community_profile_page/community_profile_tab/community_pin_tab_button":{image:"value"},"community_profile_page/community_pin/*":{},"community_profile_page/community_pin/community_create_post_button":{image:"value"},"community_profile_page/post_content/*":{},"social_home_page/explore_community_categories/*":{},"social_home_page/recommended_communities/*":{},"social_home_page/*/explore_empty_image":{image:"value"},"social_home_page/explore_empty/title":{text:"Your explore is empty"},"social_home_page/explore_empty/description":{text:"Find community or create your own"},"social_home_page/explore_empty/explore_create_community":{text:"Create community"},"social_home_page/explore_community_empty/title":{text:"No community yet"},"social_home_page/explore_community_empty/description":{text:"Let's create your own communities"},"social_home_page/explore_community_empty/explore_create_community":{text:"Create community"},"social_home_page/*/explore_trending_title":{text:"Trending now"},"social_home_page/*/explore_recommended_title":{text:"Recommended for you"},"social_home_page/trending_communities/*":{},"all_categories_page/*/*":{},"communities_by_category_page/*/*":{},"*/*/community_join_button":{text:"Join"},"*/*/community_joined_button":{text:"Joined"},"communities_by_category_page/*/community_empty_image":{},"communities_by_category_page/*/community_empty_title":{text:"No community yet"}}},n7=e=>{let[t,o,r]=e.split("/"),n=fp({page:t,component:o,element:r});return new Proxy({},{get(i,a){var s,l;for(let c of n)if((l=(s=Jt==null?void 0:Jt.customizations)==null?void 0:s[c])!=null&&l[a])return Jt.customizations[c][a]}})},i7=({children:e,initialConfig:t={}})=>{let [o,r]=useState(null);up();useEffect(()=>{i()?a(t):console.error("Invalid configuration provided to CustomizationProvider");},[t]);let i=p=>!0,a=p=>{r(p);},c={config:o,parseConfig:a,isExcluded:p=>{var C;let[u,f,g]=p.split("/"),h=fp({page:u,component:f,element:g});return ((C=o==null?void 0:o.excludes)==null?void 0:C.some(y=>h.some(x=>x===y)))||!1},getConfig:p=>{let[u,f,g]=p.split("/"),h=fp({page:u,component:f,element:g}),C=y=>({get(x,v){var _,M,b,w,T,k,N,F,Z,$,G,O,ee,X,L;for(let H of h)if((w=(b=(M=(_=o==null?void 0:o.customizations)==null?void 0:_[H])==null?void 0:M.theme)==null?void 0:b[y])!=null&&w[v])return (k=(T=o.customizations[H].theme)==null?void 0:T[y])==null?void 0:k[v];if((F=(N=o==null?void 0:o.theme)==null?void 0:N[y])!=null&&F[v])return (Z=o.theme[y])==null?void 0:Z[v];for(let H of h)if((ee=(O=(G=($=Jt.customizations)==null?void 0:$[H])==null?void 0:G.theme)==null?void 0:O[y])!=null&&ee[v])return (L=(X=Jt.customizations[H].theme)==null?void 0:X[y])==null?void 0:L[v];return Jt.theme[y][v]}});return new Proxy({},{get(y,x){var v,_,M,b,w;if(x==="theme")return {light:new Proxy({},C("light")),dark:new Proxy({},C("dark"))};if(x==="preferred_theme")return (v=o==null?void 0:o.preferred_theme)!=null?v:Jt.preferred_theme;for(let T of h)if((M=(_=o==null?void 0:o.customizations)==null?void 0:_[T])!=null&&M[x])return o.customizations[T][x];for(let T of h)if((w=(b=Jt==null?void 0:Jt.customizations)==null?void 0:b[T])!=null&&w[x])return Jt.customizations[T][x]}})}};return J.createElement(r7.Provider,{value:c},e)};var B=({pageId:e,componentId:t,elementId:o})=>{let r=`${e}/${t}/${o}`,{getConfig:n,isExcluded:i}=Gm(),a=n(r),s=n7(r),l=o7(a),c=i(r);return {config:a,defaultConfig:s,uiReference:r,accessibilityId:r,themeStyles:l,isExcluded:c}},ce=({pageId:e,componentId:t})=>B({pageId:e,componentId:t,elementId:"*"}),jt=({pageId:e})=>B({pageId:e,componentId:"*",elementId:"*"});var Ak=({pageId:e="*",componentId:t="*",elementId:o="*",size:r="",onOverlayClick:n=()=>{},onCancel:i,title:a,footer:s,children:l})=>{let{accessibilityId:c,themeStyles:p}=B({pageId:e,componentId:t,elementId:o}),u=useRef(null);return useEffect(()=>{var f;(f=u==null?void 0:u.current)==null||f.focus();},[u==null?void 0:u.current]),J.createElement("div",{className:Ii.overlay,onClick:n,style:p},J.createElement("div",{className:lo(Ii.modalWindow),"data-qa-anchor":c,ref:u,tabIndex:0},i&&J.createElement(jm,{"data-qa-anchor":`${e}/${t}/modal_close_icon`,className:Ii.closeIcon,onClick:i}),a&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/modal_title`,className:Ii.title},a),J.createElement("div",{"data-qa-anchor":`${e}/${t}/modal_content`,className:lo(Ii.content)},l),s&&J.createElement("div",{className:Ii.footer},s)))},s7=Ak;var l7={button:"Pr"};var U=o=>{var r=o,{className:e}=r,t=I(r,["className"]);return J.createElement(Button,d({className:lo(l7.button,e)},t))};var m7=createContext({confirmData:null,confirm:e=>{},info:e=>{},closeConfirm:()=>{}}),bt=()=>useContext(m7),d7=({children:e})=>{let[t,o]=useState(null),r=()=>{o(null);},n=a=>{o(S(d({},a),{type:"confirm"}));},i=a=>o(S(d({},a),{type:"info",OkButton:de}));return J.createElement(m7.Provider,{value:{confirmData:t,confirm:n,info:i,closeConfirm:r}},e)};var wa={modal:"Qr",background:"Vr",footer:"Wr",okButton:"Zr",cancelButton:"U"};var ke={typography:"ea","typography-headings":"ra","typography-titles":"aa","typography-sub-title":"oa","typography-body":"ta","typography-body-bold":"ia","typography-caption":"sa","typography-caption-bold":"ca"};var _i=e=>e.renderer!==void 0,Gk={Heading:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-headings"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("h1",d({className:lo(ke.typography,ke["typography-headings"],o),style:r},n),t)},Title:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-titles"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("h2",d({className:lo(ke.typography,ke["typography-titles"],o),style:r},n),t)},Subtitle:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-sub-title"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("h3",d({className:lo(ke.typography,ke["typography-sub-title"],o),style:r},n),t)},Body:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-body"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-body"],o),style:r},n),t)},BodyBold:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-body-bold"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-body-bold"],o),style:r},n),t)},Caption:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-caption"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-caption"],o),style:r},n),t)},CaptionBold:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-caption-bold"])});let i=e,{children:t,className:o,style:r}=i,n=I(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-caption-bold"],o),style:r},n),t)}},A=Gk;var Zk=({pageId:e="*",componentId:t="*",className:o,title:r,content:n,okText:i="Ok",onOk:a,cancelText:s="Cancel",onCancel:l,type:c="confirm"})=>{let p="confirm_modal",{accessibilityId:u,themeStyles:f}=B({pageId:e,componentId:t,elementId:p});return J.createElement(s7,{className:lo(o,wa.modal),pageId:e,componentId:t,elementId:p,"data-qa-anchor":`confirm-modal-${u}`,title:r,footer:J.createElement("div",{className:wa.footer},c==="confirm"&&J.createElement(U,{style:f,className:wa.cancelButton,"data-qa-anchor":"confirm-modal-cancel-button",onPress:l},J.createElement(A.BodyBold,null,s)),J.createElement(U,{style:f,className:wa.okButton,"data-qa-anchor":`confirm-modal-${u}-ok-button`,onPress:a},J.createElement(A.BodyBold,null,i))),onCancel:l},J.createElement("div",null,n))},c7=()=>{let{confirmData:e,closeConfirm:t}=bt();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk();};return J.createElement(Zk,S(d({},e),{onCancel:o,onOk:r,className:wa.background}))};var p7={socialCommunityCreationButtonVisible:!0},u7=createContext(p7),f7=()=>useContext(u7);function gp({children:e,config:t}){let o=useMemo(()=>d(d({},p7),t),[t]);return J.createElement(u7.Provider,{value:o},e)}var g7={"general.action.cancel":"Cancel","general.action.accept":"Accept","general.action.decline":"Decline","general.action.discard":"Discard","general.action.ok":"Ok","general.error.tryAgainLater":"Something went wrong. Please try again later.","general.connection.waiting":"Waiting for connection...",hello:"Hello World","plural.like":"{amount, plural, one {like} other {likes}}",comment:"Comment","plural.comment":"{amount, plural, one {comment} other {comments}}","plural.member":"{amount, plural, one {member} other {members}}",selectACategory:"Select a category",todaysTrendingTitle:"Today's Trending",loadMore:"Load More",categoryList:"Categories",recommendedList:"Recommended for you","exploreHeader.searchCommunityTitle":"Explore communities","exploreHeader.searchCommunityPlaceholder":"Search communities...","exploreHeader.createCommunityTitle":"or create your own!","exploreHeader.createCommunityButton":"Create community",backTitle:"Back",createCommunity:"Create Community",moderator:"Moderator","moderatorMenu.promoteToModerator":"Promote to moderator","moderatorMenu.dismissModerator":"Dismiss moderator","moderatorMenu.removeFromCommunity":"Remove from community","post.readMore":"...Read more","post.editPost":"Edit post","post.deletePost":"Delete post","post.confirmDelete":"This post will be permanently deleted. You\u2019ll no longer to see and find this post. Continue?","post.confirmPendingDelete":"This post will be permanently deleted from the pending list","post.edited":"Edited","post.like":"Like","post.liked":"Liked","post.unknownPost.description":"We couldn\u2019t recognize this post.","post.unknownPost.title":"Something went wrong","post.renderingError.description":"We couldn\u2019t render this post.","post.renderingError.title":"Something went wrong","post.community":"Community","post.myTimeline":"My Timeline","post.wasLive":"was live","post.success.approved":"Post approved","post.success.declined":"Post declined","post.success.submittedToReview":"Your post has been submitted to review by moderator","post.error.cannotReview.title":"Post is not available","post.error.cannotReview.description":"The post has been reviewed by another moderator","post.discard.title":"Discard post?","post.discard.content":"Do you want to discard your post?","collapsible.viewAll":"View all","collapsible.viewAllFiles":"View all files","collapsible.viewMoreComments":"View more comments","collapsible.viewMoreReplies":"View more replies","collapsible.viewMoreReply":"View {count, plural, one {# reply} other {# replies}}","community.createSuccess":"Your community was successfully created","community.updateSuccess":"Your community was successfully updated","community.editProfile":"Edit profile","community.join":"Join","community.communitySettings":"Community Settings","community.returnTo":"Return to {communityName}","community.leaveCommunityTitle":"Leave community?","community.leaveCommunityBody":"You won\u2019t no longer be able to post and interact in this community after leaving.","community.leaveCommunityBodyLastMember":"As you\u2019re the last moderator and member, choose close community to leave.","community.leaveCommunityBodyOnlyModerator":"You\u2019re the only moderator in this group. Nominate other members before leaving community.","community.leaveCommunityButtonText":"Leave","community.leaveCommunityButtonOK":"OK","community.cannotInteract":"Join community to interact with all posts","community.removeUserFromCommunityTitle":"Remove user from community","community.removeUserFromCommunityBody":"This user won't no longer be able to search, post. Continue?","community.name":"Community name","community.about":"About","community.category":"Category","community.onlyadmincanpost":">Only admin can post","community.onlyadmins":"Choose to allow Only Admins to create posts in this community.","community.categorypermission":"Community permission","community.addmembers":"Add members","community.posts":"posts","community.members":"members","community.settings":"Settings","community.leaveCommunity":"Leave Community","CommunityMembers.members":"Members","CommunityMembers.moderators":"Moderators","EmptyFeed.TargetType.globalFeed":"This feed is empty","EmptyFeed.TargetType.communityFeed":"This community's feed is empty","EmptyFeed.TargetType.userFeed":"This user's feed is empty","EmptyFeed.TargetType.myFeed":"Your feed is empty. Start your first post","EmptyFeed.exploreCommunity":"Explore Community","UserFeed.tabs.timeline":"Timeline","community.exploreCommunities":"Explore Community","community.permissions.postReview":"Post review","community.permissions.storyComments":"Story comments","community.permissions.approvePosts":"Approve member posts","community.permissions.allowStoryComments":"Allow comments on community stories","community.permissions.approvePosts.prompt":"Posts by members have to be reviewed and approved by community moderator.","community.permissions.storyComments.prompt":"Turn on to receive comments on stories in this community.","community.permissions.error.needApprovalOnPostCreation.turnOn":"Unable to turn on post review","community.permissions.error.needApprovalOnPostCreation.turnOff":"Unable to turn off post review","community.permissions.error.storyComments.turnOn":"Unable to turn on post review","community.permissions.error.storyComments.turnOff":"Unable to turn off post review","community.review.declinePendingPosts":"Decline pending post will permanently delete the selected post from community.","community.pendingPostsBanner.title":"Pending posts","community.pendingPostsBanner.pendingForReview":"Your posts are pending for review","community.pendingPostsBanner.needApproval":"{formattedAmount} {amount, plural, one {post needs} other {posts need}} approval","communityCreatedModal.title":"Customize your community","communityCreatedModal.message":"You\u2019ve successfully created a community! Now let's manage permissions that work best for you","communityCreatedModal.goToSettings":"Community settings","communityCreatedModal.skip":"Skip for now",post:"Post","upload.attachmentLimit":"You reached the maximum attachment of {maxFiles}","upload.fileSizeLimit":"One of the selected file is larger than 1GB. Please select a new file.","user.editProfile":"Edit profile","user.message":"Message","follow.placeholder.noFollowings":"No followings found","follow.placeholder.noFollowers":"No followers found","ProfileSettings.editProfile":"Edit profile","ProfileSettings.returnTo":"Return to ","SideSectionMyCommunity.myCommunity":"My Community","file.reUpload":"Click to re-upload the file","UserProfileForm.displayname":"Display name","UserProfileForm.about":"About","UserProfileForm.title":"General","UserProfileForm.namePlaceholder":"Enter user display name","UserProfileForm.requiredDisplayName":"Display name is required","UserProfileForm.requiredDescription":"Enter something about yourself","UserSelector.placeholder":"Select user...","report.reportUser":"Report user","report.unreportUser":"Unreport user","report.reportComment":"Report comment","report.unreportComment":"Unreport comment","report.reportSent":"Report sent","report.unreportSent":"Unreport sent","comment.deleted":"This comment has been deleted","comment.delete":"Delete comment","comment.edit":"Edit comment","comment.deleteConfirmContent":"This comment will be permanently deleted. Continue?","comment.deleteConfirmCancelText":"Cancel","comment.deleteConfirmOkText":"Delete","dropdown.first":"First","dropdown.second":"Second","layout.logout":"Log Out","layout.username":"Jackies","chat.details.chatDetailes":"Chat Detail","chat.details.communityName":"Community Name","message.flag":"flag","message.unflag":"Unflag","message.edit":"Edit","message.delete":"Delete","message.deleted":"deleted","message.unsupportedFormat":"Unsupported message format","message.saveOptionsError":"There was an error processing your request","MessageComposeBar.placeholder":"Type your message...","RecentChat.chats":"Chats","AddMemberModal.addMembers":"Add members","AddMemberModal.membersValidationError":"Please select at least one member",add:"Add",save:"Save",close:"Close",reply:"Reply",delete:"Delete",create:"Create",cancel:"Cancel",loading:"Loading...","loading.chat":"Loading chat...",anonymous:"Anonymous","comment.edited":"Edited","comment.readmore":"...Read more","communities.nocommunityfound":"No community found","profile.setting":"Profile Settings","sidesectioncommunity.newfeed":"NewsFeed","sidesectioncommunity.explore":"Explore","sidesectioncommunity.community":"Community","communityFeed.join":"Join community to interact with all posts","communityFeed.members":"Members","communityFeed.moderators":"Moderators","files.all":"View all files","sidebar.community":"Community","sidebar.explore":"Explore","CategoryCommunitiesList.emptyTitle":"It's empty here...","CategoryCommunitiesList.emptyDescription":"No community found in this category","CommentComposeBar.addComment":"Add comment","CommentComposeBar.replayTo":"Reply to ","CommentComposeBar.replayToUser":"Replying to {displayName}","CommentComposeBar.saySomething":"Say something nice","CommentComposeBar.unableToPost":"Unable to post","CommentComposeBar.overCharacter":"You have reached maximum 50,000 characters in a post.","CommentComposeBar.done":"Done","CommentComposeBar.unableToMention":"Unable to mention","CommentComposeBar.overMentionees":"You have reached maximum 30 mentioned users in a post.","CommentComposeBar.okText":"OK","CommunityCreationModal.title":"Leave without finishing?","CommunityCreationModal.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","CommunityCreationModal.cancelText":"Continue editing","CommunityCreationModal.okText":"Leave","PostAsCommunity.title":"Post as community","PostAsCommunity.caption":"Enable this will publish the post on behalf of community account","AddMemberAction.title":"Add members","AddMemberAction.description":"Add your friends to this community to participate in group conversations","CloseCommunityAction.closeConfirm.title":"Close community?","CloseCommunityAction.closeConfirm.description":"All members will be removed from the community. All posts, messages, reactions and media shared in community will be deleted. This cannot be undone.","CloseCommunityAction.title":"Close community","CloseCommunityAction.description":"Closing this community will remove the community page and all its content and comments. This cannot be undone.","report.doReport":"Report","report.undoReport":"Undo Report","comment.deleteBody":"This comment will be permanently removed.","reply.delete":"Delete reply","reply.deleteBody":"This reply will be permanently deleted. Continue?","reply.edit":"Edit reply","reply.deleted":"This reply has been deleted","tabs.editProfile":"Edit profile","tabs.timeline":"Timeline","tabs.followers":"Followers","tabs.followings":"Followings","tabs.pending":"Pending","tabs.members":"Members","tabs.moderators":"Moderators","tabs.pendingPosts":"Pending {amount, select, 0 {} other { ({formattedAmount})}}","tabs.permissions":"Permissions","tabs.gallery":"Gallery","tabs.images":"Photos","tabs.videos":"Videos","tabs.liveStreams":"Livestreams","feed.emptyFeed":"This feed is empty","feed.emptyCommunityPublicFeed":"This community's feed is empty","feed.emptyCommunityReviewingFeed":"No pending posts","feed.emptyJoinedCommunityPublicFeed":"Your feed is empty. Start you first post","feed.emptyUserFeed":"No posts yet","feed.emptyMyFeed":"Your feed is empty. Start your first post","chat.groupSetting":"Group settings","chat.message.deleted":"Message was deleted","chat.message.unsupported":"Unsupported message type","chat.chats":"Chats","chat.details.header":"Chat Details","chat.details.chatName":"Chat Name","chat.leaveChat":"Leave chat","chat.leaveChat.confirm.title":"Leave chat","chat.leaveChat.confirm.content":"Are you sure you want to leave the chat?","chat.leaveChat.confirm.okButton":"Leave","chat.leaveChat.success":"You successfully left chat","chat.leaveChat.error":"Attempt to leave a chat has failed","chat.members.return":"Return to controls","chat.members.count":"{count} members","chat.create.modalTitle":"Create new chat","chat.loading.error":"Couldn't load chat","userSelector.placeholder":"Enter name or email addresses","userSelector.emptyState.title":"It's empty here...","userSelector.emptyState.description":"No contact found here","groupChat.createPopup.fieldName":"Group name","groupChat.createPopup.placeholder":"Please input group name","general.cancel.capital":"Cancel","general.create.capital":"Create","general.done.capital":"Done","chat.member.addMore":"Add or Remove user","video.notReady":"The video is being processed. Please try again later.","liveStream.idle":"This stream is currently unavailable","liveStream.ended.caption":"This liveStream has ended.","liveStream.ended.message":"Playback will be available for you to watch shortly.","user.follow":"Follow","user.unfollow":"Unfollow","user.unfollow.confirm.title":"Unfollow {displayName}","user.unfollow.confirm.body":"You\u2019ll have to send a request again to follow {displayName}. Continue?","user.cancel_follow":"Cancel request","placeholder.noResults":"No results found","request.accept":"Accept","request.decline":"Decline","follower.title.removeUser":"Remove {displayName} from followers?","follower.body.removeUser":"We will not notify {displayName} that they've been removed from your followers","follower.menuItem.removeUser":"Remove user","follower.menuItem.unfollow":"Unfollow","buttonText.cancel":"Cancel","buttonText.remove":"Remove","follow.pendingNotification.title":"Pending requests","follow.pendingNotification.body":"Your requests are waiting for review","notification.done":"Done","counter.followings":"following","counter.followers":"followers","buttonText.unfollow":"Unfollow","privateFeed.title":"This account is private","privateFeed.body":"Follow this user to see all posts","navigationBlocker.title":"Unsaved changes","navigationBlocker.content":"Your changes won`t be saved. Are you sure you want to leave this page now?","user.unfollow.confirm.title.thisUser":"Unfollow this user","mediaGallery.images.empty":"No photos yet","mediaGallery.liveStreams.empty":"No liveStreams yet","mediaGallery.videos.empty":"No videos yet","user.unfollow.confirm.body.thisUser":"You\u2019ll have to send a request again to follow this user. Continue?","navigationBlocker.okText":"Leave","options_composer.button.add":"Add Option","options_composer.title":"Create at least 2 options","poll_modal.answer_type.title":"Selection type","poll_modal.answer_type.body":"Choose to vote with one or multiple options","poll_modal.closed_in.title":"Schedule poll (Optional)","poll_modal.closed_in.body":"Poll will be automatically closed at the end of chosen time frame (UTC)","select.answerType.item":"{answerType} selection","poll_composer.question.label":"Poll options","poll_composer.question.placeholder":"What\u2019s your poll question?","poll_composer.poll_options.label":"Options","poll_modal.title":"Create poll","poll.votes":"{voteCount} votes","poll.vote.closedIn":"Poll ends in {closedIn} days","poll.vote.finalResults":"Final results","poll.vote.submit":"Submit vote","poll.error.deletedOrClosed":"This poll has been closed or deleted.","poll.close":"Close poll","postCreator.unableToPost":"Unable to post","postCreator.overCharacter":"You have reached maximum 50,000 characters in a post.","postCreator.done":"Done","postCreator.unableToMention":"Unable to mention","postCreator.overMentionees":"You have reached maximum 30 mentioned users in a post.","postCreator.okText":"OK","pollComposer.unableToMention":"Unable to mention","pollComposer.overMentionees":"You have reached maximum 30 mentioned users in a post.","pollComposer.okText":"OK","storyCreation.hyperlink.bottomSheet.cancel":"Cancel","storyCreation.hyperlink.bottomSheet.title":"Add link","storyCreation.hyperlink.bottomSheet.submit":"Done","storyCreation.hyperlink.form.urlLabel":"URL","storyCreation.hyperlink.form.urlPlaceholder":"https://example.com","storyCreation.hyperlink.form.linkTextLabel":"Customize link text","storyCreation.hyperlink.form.linkTextPlaceholder":"Name your link","storyCreation.hyperlink.form.linkTextDescription":"This text will show on the link instead of URL.","storyCreation.hyperlink.form.removeButton":"Remove link","storyCreation.hyperlink.removeConfirm.title":"Remove link","storyCreation.hyperlink.removeConfirm.content":"This link will be removed from story.","storyCreation.hyperlink.removeConfirm.cancel":"Cancel","storyCreation.hyperlink.removeConfirm.confirm":"Remove","storyCreation.hyperlink.validation.error.invalidUrl":"Please enter a valid URL.","storyCreation.hyperlink.validation.error.whitelisted":"Please enter a whitelisted URL.","storyCreation.hyperlink.validation.error.blocked":"Your text contains a blocklisted word.","storyCreation.hyperlink.unsavedChanges.title":"Unsaved changes","storyCreation.hyperlink.unsavedChanges.content":"Are you sure you want to cancel? Your changes won't be saved.","storyCreation.hyperlink.unsavedChanges.cancel":"No","storyCreation.hyperlink.unsavedChanges.confirm":"Yes","storyViewer.actions.deleteStory":"Delete story","storyViewer.action.confirmModal.title":"Delete this story?","storyViewer.action.confirmModal.content":"This story will be permanently deleted. You\u2019ll no longer to see and find this story.","storyViewer.notification.deleted":"Story deleted","storyViewer.notification.success":"Successfully shared story","storyViewer.notification.error":"Failed to share story","storyViewer.footer.failed":"Failed to upload","storyViewer.footer.uploading":"Uploading...","storyViewer.commentSheet.title":"Comments","storyViewer.commentSheet.empty":"No comments yet","storyViewer.commentSheet.disabled":"Comments are disabled for this story","storyViewer.commentSheet.replyingTo":"Replying to","storyViewer.toast.like.disabled":"Join community to interact with all stories","storyViewer.toast.comment.reported":"Comment reported","storyViewer.toast.comment.unreported":"Comment unreported","storyViewer.toast.disable.react":"Join community to interact with all stories","storyViewer.commentComposeBar.submit":"Post","storyDraft.button.shareStory":"Share story","storyDraft.notification.hyperlink.error":"Can\u2019t add more than one link to your story.","storyTab.title":"Story","select.chatType.item":"{answerType} type","chatComposer.label.channelId":"Channel ID","chatComposer.label.displayName":"Display Name","chatComposer.label.type":"Channel Type","chatComposer.addUsers":"Add users","chat_modal.title":"Create chat","chat_composer.placeholder.displayName":"Enter display name here","chat_composer.placeholder.channelId":"Enter channel ID here","editChatMembersModal.title":"Add/Edit chat members","editChatMembersModal.confirm.title":"Leave without finishing?","editChatMembersModal.confirm.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","editChatMembersModal.confirm.cancelText":"Continue editing","editChatMembersModal.confirm.okText":"Leave","notification.error.blockedWord":"Amity SDK (400308): Text contain blocked word","livechat.deleted.message":"This message was deleted","livechat.messageBubble.reply.button":"Reply","livechat.messageBubble.copy.button":"Copy","livechat.messageBubble.delete.button":"Delete","livechat.messageBubble.mention.button":"Mention","livechat.messageBubble.report.button":"Report","livechat.messageBubble.unReport.button":"Unreport","livechat.channel.muted":"This channel has been set to read-only by the channel moderator","livechat.modal.delete.message.title":"Delete this message?","livechat.modal.delete.message.content":"This message will also be removed from your friend\u2019s devices.","livechat.mention.all":"All","livechat.mention.all.description":"Notify everyone","livechat.notification.copy.message":"Message copied","livechat.composebar.placeholder":"Write a message","livechat.delete.message.error":"Unable to delete message. Please try again.","livechat.member.muted":"You\u2019ve been muted by the channel moderator","livechat.member.muted.error":"User is muted","livechat.member.banned.title":"You are banned from chat","livechat.member.banned.description":"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned.","livechat.report.message.success":"Message reported","livechat.report.message.error":"This message failed to be reported. Please try again.","livechat.unReport.message.success":"Message unreported","livechat.unReport.message.error":"This message failed to be unreported. Please try again.","livechat.error.tooLongMessage.title":"Unable to send message","livechat.error.tooLongMessage.description":"Your message is too long. Please shorten your message and try again.","livechat.error.sendingMessage.error":"Your message wasn't sent. Please try again.","livechat.error.sendingMessage.blockedWord":"Your message wasn't sent as it contains a blocked word.","livechat.error.sendingMessage.notAllowLink":"Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.","livechat.reaction.errorOnload":"Unable to load reactions","livechat.reaction.emptyState":"No reactions yet","livechat.reaction.emptyState.description":"Be the first to react to this message!","livechat.reaction.label.removeReaction":"Click to remove reaction"};var $m={en:g7};var y7="en",Rk=({locale:e,children:t})=>{let o=$m[e]?$m[e]:$m[y7];return J.createElement(IntlProvider,{defaultLocale:y7,locale:e,messages:o},t)},h7=Rk;var eE={palette:{alert:"#FA4D30",base:"#292B32",primary:"#1054DE",secondary:"#FFD400",tertiary:"#FF305A",neutral:"#17181C",highlight:"#1054DE",system:{borders:"#ebecef",background:"#fff"}},typography:{global:{fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif",fontStyle:"normal"},headline:{fontWeight:600,fontSize:"20px"},title:{fontWeight:600,fontSize:"16px"},subTitle:{fontWight:400,fontSize:"13px"},body:{fontWeight:"normal",fontSize:"14px"},bodyBold:{fontWeight:600,fontSize:"14px"},caption:{fontWeight:"normal",fontSize:"12px"},captionBold:{fontWeight:600,fontSize:"12px"}}},C7=eE;function b1(e){return (e==null?void 0:e.communityMembership)==="member"}function Zm(e){return (e==null?void 0:e.userPrivacySetting)==="private"}function v7(e){return (e||[]).map((t,o)=>{var r;return {id:t.userId,display:(r=t.displayName)!=null?r:t.userId,avatar:t.avatarCustomUrl,isLastItem:(e==null?void 0:e.length)===o+1}})}var qm=1;function oE(e,t,o){let r=o+qm,n=r+t;return e.substring(r,n)}function Ym(e){return e?e.sort((o,r)=>o.index-r.index).map(({index:o,length:r})=>({start:o,end:o+r+qm,highlight:!0})):[]}function Wm(e){let t={},o=[];return (e==null?void 0:e.length)>0?(t.mentioned=[...e.sort((r,n)=>r.plainTextIndex-n.plainTextIndex).map(({plainTextIndex:r,id:n,display:i})=>({index:r,length:i.length-qm,type:"user",userId:n,displayName:i}))],o.push({type:"user",userIds:e.map(({id:r})=>r)})):o.push({type:"user",userIds:[]}),{metadata:t,mentionees:o}}function Qm(e,t){if(!e||tE(t==null?void 0:t.mentioned))return e;let o=e;return ((t||{}).mentioned||[]).sort((r,n)=>n.index-r.index).forEach(({userId:r,length:n,index:i})=>{let a=`@[${oE(e,n,i)}](${r})`;o=o.replace(new RegExp(`(.{${i}}).{${n+qm}}`),`$1${a}`);}),o}function Ue(e){return e!=null}function x7(e,t){var r,n;if(!(e!=null&&e.mentioned)||(t==null?void 0:t.length)===0)return [];let o=((r=t==null?void 0:t.find(i=>i.type==="user"))==null?void 0:r.userIds)||[];return (n=e==null?void 0:e.mentioned)==null?void 0:n.map((i,a)=>{let s=o[a],l=i.displayName,c="@"+(l!=null?l:s);return {plainTextIndex:i.index,id:s,display:c}})}var w7=e=>e.toFixed(1),b7=e=>{let t=Math.min(e*100,100);return w7(t)};function nE(e){return e.alpha!==void 0}var _7=e=>{let{hue:t,saturation:o,lightness:r}=e,n=[`${w7(t)}`,`${b7(o)}%`,`${b7(r)}%`];return nE(e)?`hsla(${[...n,e.alpha].filter(Ue).join(",")})`:`hsl(${n.filter(Ue).join(",")})`},iE=e=>{let t=parseToHsl(e);return _7(t)},aE=(e,t)=>{let o=parseToHsl(t),{lightness:r}=o,n=S(d({},o),{lightness:Math.min(1,r+e)});return _7(n)},sE=[.25,.4,.5,.75],M7=e=>{let i=e,{system:t}=i,o=I(i,["system"]),r=Object.keys(o).reduce((a,s)=>(a[s]={main:iE(o[s])},a),d({},o)),n=Object.keys(r).reduce((a,s)=>{let l=o[s],c=sE.reduce((u,f,g)=>{let h=`shade${g+1}`;return u[h]=aE(f,l),u},{}),p=r[s];return p&&typeof p=="object"?a[s]=d(d({},c),p):a[s]=S(d({},c),{main:p}),a},d({},r));return S(d({},n),{system:t})};var lE=["fontFamily","fontStyle","fontWeight","fontSize"],mE=e=>Object.keys(e).reduce((o,r)=>{let n=e[r];return r&&n&&lE.includes(r)&&(o[r]=n),o},{}),P7=e=>Object.keys(e).reduce((o,r)=>(o[r]=mE(d(d({},e.global),e[r])),o),{});var S7={colors:{primary:{default:"#1054DE",shade1:"#4A82F2",shade2:"#A0BDF8",shade3:"#D9E5FC",shade4:"#FFFFFF"},secondary:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},base:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},baseInverse:{default:"#FFFFFF"},alert:{default:"#FA4D30"},highlight:"#1054DE",messageBubble:{default:"#1054DE",inverse:"#FFFFFF"},storyIndicator:{default:"#EBECEF",active:["#339AF9","#78FA58"]},hyperlink:{default:"#FFFFFFCC"},actionButton:{default:"#00000080"}},typography:{heading:{fontWeight:600,fontSize:"1.25rem",lineHeight:"1.5rem"},title:{fontWeight:600,fontSize:"1rem",lineHeight:"1.25rem"},subTitle:{fontWeight:400,fontSize:"0.8125rem",lineHeight:"1rem"},body:{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"1.25rem"},bodyBold:{fontWeight:600,fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontWeight:"normal",fontSize:"0.75rem",lineHeight:"1rem"},captionBold:{fontWeight:600,fontSize:"0.75rem",lineHeight:"1rem"}}};var cE=(e={})=>{let t=dE(C7,e),o=M7(t.palette),r=P7(t.typography);return S(d({},t),{palette:o,typography:r,v4:S7})},T7=cE;var N7=m.div`
500
+ 0-22.58L207.6 256z`})),jm=hk;var t7=[.25,.4,.5,.75],wk=(e,t=!1)=>{if(!e)return Array(t7.length).fill("");if(t===!0&&e===Jt.theme.dark.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];if(t===!1&&e===Jt.theme.light.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];let o=parseToHsl(e);return t7.map(n=>t?darken(n,hslToColorString(o)):lighten(n,hslToColorString(o)))};function o7(e){let t=up(),o=useMemo(()=>e!=null&&e.preferred_theme&&(e==null?void 0:e.preferred_theme)!=="default"?e.preferred_theme:"default",[e==null?void 0:e.preferred_theme,t]),r=o==="default"?t:o;return useMemo(()=>{var s;let i=((s=e==null?void 0:e.theme)==null?void 0:s[r])||{},a=wk(i.primary_color);return {"--asc-color-primary-default":i.primary_color,"--asc-color-primary-shade1":a[0],"--asc-color-primary-shade2":a[1],"--asc-color-primary-shade3":a[2],"--asc-color-primary-shade4":a[3],"--asc-color-secondary-default":i.secondary_color,"--asc-color-secondary-shade1":i.secondary_shade1_color,"--asc-color-secondary-shade2":i.secondary_shade2_color,"--asc-color-secondary-shade3":i.secondary_shade3_color,"--asc-color-secondary-shade4":i.secondary_shade4_color,"--asc-color-alert-default":i.alert_color,"--asc-color-base-inverse":i.base_inverse_color,"--asc-color-base-default":i.base_color,"--asc-color-base-shade1":i.base_shade1_color,"--asc-color-base-shade2":i.base_shade2_color,"--asc-color-base-shade3":i.base_shade3_color,"--asc-color-base-shade4":i.base_shade4_color,"--asc-color-base-shade5":i.base_shade5_color,"--asc-color-background-default":i.background_color}},[e,r])}var _k=createContext({currentTheme:"light",toggleTheme:()=>{}});var up=()=>{let{currentTheme:e}=useContext(_k);return e};var fp=({page:e,component:t,element:o})=>o!=="*"?[`${e}/${t}/${o}`,`*/${t}/${o}`,`${e}/*/${o}`,`*/*/${o}`,`${e}/${t}/*`,`*/${t}/*`,`${e}/*/*`]:t!=="*"?[`${e}/${t}/*`,`${e}/*/*`,`*/${t}/*`]:e!=="*"?[`${e}/*/*`]:[],r7=createContext({config:null,parseConfig:()=>{},isExcluded:()=>!1,getConfig:()=>({})}),Gm=()=>{let e=useContext(r7);if(!e)throw new Error("useCustomization must be used within a CustomizationProvider");return e},Jt={preferred_theme:"default",theme:{light:{primary_color:"#36486c",secondary_color:"#292b32",secondary_shade1_color:"#636878",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#a5a9b5",secondary_shade4_color:"#ebecef",base_color:"#292b32",base_shade1_color:"#636878",base_shade2_color:"#898e9e",base_shade3_color:"#a5a9b5",base_shade4_color:"#ebecef",base_shade5_color:"#F9F9FA",alert_color:"#FA4D30",background_color:"#FFFFFF",base_inverse_color:"#000000"},dark:{primary_color:"#1054DE",secondary_color:"#ebecef",secondary_shade1_color:"#a5a9b5",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#40434e",secondary_shade4_color:"#292b32",base_color:"#ebecef",base_shade1_color:"#a5a9b5",base_shade2_color:"#6e7487",base_shade3_color:"#40434e",base_shade4_color:"#292b32",base_shade5_color:"#f9f9fa",alert_color:"#FA4D30",background_color:"#191919",base_inverse_color:"#FFFFFF"}},excludes:[],customizations:{"select_target_page/*/*":{theme:{},title:"Share to"},"select_target_page/*/back_button":{back_icon:"back.png"},"camera_page/*/*":{resolution:"720p"},"camera_page/*/close_button":{close_icon:"close.png"},"create_story_page/*/*":{},"create_story_page/*/back_button":{back_icon:"back.png",background_color:"#1234DB"},"create_story_page/*/aspect_ratio_button":{aspect_ratio_icon:"aspect_ratio.png",background_color:"1234DB"},"create_story_page/*/story_hyperlink_button":{hyperlink_button_icon:"hyperlink_button.png",background_color:"#1234DB"},"create_story_page/*/hyper_link":{hyper_link_icon:"hyper_link.png",background_color:"#1234DB"},"create_story_page/*/share_story_button":{share_icon:"share_story_button.png",background_color:"#1234DB",hide_avatar:!1},"story_page/*/*":{},"story_page/*/progress_bar":{progress_color:"#UD1234",background_color:"#AB1234"},"story_page/*/overflow_menu":{overflow_menu_icon:"threeDot.png"},"story_page/*/close_button":{close_icon:"close.png"},"story_page/*/story_impression_button":{impression_icon:"impressionIcon.png"},"story_page/*/story_comment_button":{comment_icon:"comment.png",background_color:"#2b2b2b"},"story_page/*/story_reaction_button":{reaction_icon:"like.png",background_color:"#2b2b2b"},"story_page/*/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#ffffff"},"story_page/*/speaker_button":{mute_icon:"mute.png",unmute_icon:"unmute.png",background_color:"#1243EE"},"story_page/*/arrow_left_button":{arrow_left_icon:"arrow_left.png",background_color:"#1243EE"},"story_page/*/arrow_right_button":{arrow_right_icon:"arrow_right.png",background_color:"#1243EE"},"*/edit_comment_component/*":{theme:{}},"*/edit_comment_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel",background_color:""},"*/edit_comment_component/save_button":{save_icon:"",save_button_text:"Save",background_color:"#1243EE"},"*/hyper_link_config_component/*":{theme:{}},"*/hyper_link_config_component/done_button":{done_icon:"",done_button_text:"Done",background_color:"#1243EE"},"*/hyper_link_config_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel"},"*/comment_tray_component/*":{theme:{}},"*/comment_tray_component/comment_bubble_deleted_view":{comment_bubble_deleted_icon:"comment_bubble_deleted.png",text:"This reply has been deleted"},"*/story_tab_component/*":{},"*/story_tab_component/story_ring":{progress_color:["#339AF9","#78FA58"],background_color:"#AB1234"},"*/story_tab_component/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#1243EE"},"*/*/close_button":{close_icon:"close.png"},"social_home_page/top_navigation/header_label":{text:"Community"},"social_home_page/top_navigation/global_search_button":{icon:"searchButtonIcon"},"social_home_page/top_navigation/post_creation_button":{icon:"postCreationIcon"},"social_home_page/*/newsfeed_button":{text:"Newsfeed"},"social_home_page/*/explore_button":{text:"Explore"},"social_home_page/*/my_communities_button":{text:"My Communities"},"social_home_page/empty_newsfeed/illustration":{icon:"emptyFeedIcon"},"social_home_page/empty_newsfeed/title":{text:"Your Feed is empty"},"social_home_page/empty_newsfeed/description":{text:"Find community or create your own"},"social_home_page/empty_newsfeed/explore_communities_button":{icon:"exploreCommunityIcon",text:"Explore Community"},"social_home_page/empty_newsfeed/create_community_button":{icon:"createCommunityIcon",text:"Create Community"},"social_home_page/my_communities/community_avatar":{},"social_home_page/my_communities/community_display_name":{},"social_home_page/my_communities/community_private_badge":{icon:"lockIcon"},"social_home_page/my_communities/community_official_badge":{icon:"officalBadgeIcon"},"social_home_page/my_communities/community_category_name":{},"social_home_page/my_communities/community_members_count":{},"social_home_page/newsfeed_component/*":{},"social_home_page/global_feed_component/*":{},"global_search_page/*/*":{},"post_detail_page/*/back_button":{icon:"backButtonIcon"},"post_detail_page/*/menu_button":{icon:"menuIcon"},"*/*/moderator_badge":{icon:"badgeIcon",text:"Moderator"},"*/post_content/timestamp":{},"*/post_content/menu_button":{icon:"menuIcon"},"*/post_content/post_content_view_count":{},"*/post_content/reaction_button":{icon:"likeButtonIcon",text:"Like"},"*/post_content/comment_button":{icon:"commentButtonIcon",text:"Comment"},"*/post_content/share_button":{icon:"shareButtonIcon",text:"Share"},"post_composer_page/*/*":{},"post_composer_page/*/close_button":{image:"platformValue"},"post_composer_page/*/community_display_name":{},"post_composer_page/*/create_new_post_button":{text:"Post"},"post_composer_page/*/edit_post_button":{text:"Save"},"post_composer_page/*/edit_post_title":{text:"Edit post"},"post_composer_page/media_attachment/*":{},"post_composer_page/media_attachment/camera_button":{image:"platformValue"},"post_composer_page/media_attachment/image_button":{image:"platformValue"},"post_composer_page/media_attachment/video_button":{image:"platformValue"},"post_composer_page/media_attachment/file_button":{image:"platformValue"},"post_composer_page/media_attachment/detailed_button":{image:"platformValue"},"post_composer_page/detailed_media_attachment/*":{},"post_composer_page/detailed_media_attachment/camera_button":{text:"Camera",image:"platformValue"},"post_composer_page/detailed_media_attachment/image_button":{text:"Photo",image:"platformValue"},"post_composer_page/detailed_media_attachment/video_button":{text:"Video",image:"platformValue"},"post_composer_page/detailed_media_attachment/file_button":{text:"Attachment",image:"platformValue"},"social_home_page/*/*":{},"social_home_page/create_post_menu/*":{},"social_home_page/create_post_menu/create_post_button":{text:"Post",image:"Post"},"social_home_page/create_post_menu/create_story_button":{text:"Story",image:"Story"},"social_home_page/create_post_menu/create_poll_button":{text:"Poll",image:"Poll"},"social_home_page/create_post_menu/create_livestream_button":{text:"Livestream",image:"Livestream"},"select_post_target_page/*/close_button":{image:"platformValue"},"select_post_target_page/*/my_timeline_avatar":{},"select_post_target_page/*/title":{text:"Post to"},"select_post_target_page/*/my_timeline_text":{text:"My Timeline"},"select_story_target_page/*/close_button":{image:"platformValue"},"select_story_target_page/*/title":{text:"Share to"},"*/*/community_official_badge":{image:"platformValue"},"*/*/community_private_badge":{image:"platformValue"},"social_global_search_page/*/*":{},"social_global_search_page/top_search_bar/*":{text:"Search community and user"},"social_global_search_page/top_search_bar/search_icon":{icon:"search"},"social_global_search_page/top_search_bar/clear_button":{icon:"clear"},"social_global_search_page/top_search_bar/cancel_button":{text:"Cancel"},"social_global_search_page/community_search_result/community_avatar":{},"social_global_search_page/community_search_result/community_display_name":{},"social_global_search_page/community_search_result/community_private_badge":{icon:"lockIcon"},"social_global_search_page/community_search_result/community_official_badge":{icon:"officialBadgeIcon"},"social_global_search_page/community_search_result/community_category_name":{},"social_global_search_page/community_search_result/community_members_count":{},"my_communities_search_page/top_search_bar/*":{text:"Search my community"},"my_communities_search_page/*/community_avatar":{},"my_communities_search_page/*/community_display_name":{},"my_communities_search_page/*/community_private_badge":{icon:"lockIcon"},"my_communities_search_page/*/community_official_badge":{icon:"officialBadgeIcon"},"my_communities_search_page/*/community_category_name":{},"my_communities_search_page/*/community_members_count":{},"my_communities_search_page/top_search_bar/cancel_button":{text:"Cancel"},"community_profile_page/*/*":{},"community_profile_page/community_feed/*":{},"*/post_content/announcement_badge":{image:"value"},"*/post_content/pin_badge":{image:"value"},"*/post_content/non_member_section":{image:"value"},"community_profile_page/community_header/*":{},"community_profile_page/community_header/community_cover":{},"community_profile_page/community_header/community_name":{},"community_profile_page/community_header/community_verify_badge":{image:"value"},"community_profile_page/community_header/community_category":{},"community_profile_page/community_header/community_description":{},"community_profile_page/community_header/community_info":{},"community_profile_page/community_header/community_join_button":{image:"value"},"community_profile_page/community_header/community_pending_post":{image:"value"},"community_profile_page/community_header/back_button":{image:"value"},"community_profile_page/community_header/menu_button":{image:"value"},"community_profile_page/community_profile_tab/*":{},"community_profile_page/community_profile_tab/community_feed_tab_button":{image:"value"},"community_profile_page/community_profile_tab/community_pin_tab_button":{image:"value"},"community_profile_page/community_pin/*":{},"community_profile_page/community_pin/community_create_post_button":{image:"value"},"community_profile_page/post_content/*":{},"social_home_page/explore_community_categories/*":{},"social_home_page/recommended_communities/*":{},"social_home_page/*/explore_empty_image":{image:"value"},"social_home_page/explore_empty/title":{text:"Your explore is empty"},"social_home_page/explore_empty/description":{text:"Find community or create your own"},"social_home_page/explore_empty/explore_create_community":{text:"Create community"},"social_home_page/explore_community_empty/title":{text:"No community yet"},"social_home_page/explore_community_empty/description":{text:"Let's create your own communities"},"social_home_page/explore_community_empty/explore_create_community":{text:"Create community"},"social_home_page/*/explore_trending_title":{text:"Trending now"},"social_home_page/*/explore_recommended_title":{text:"Recommended for you"},"social_home_page/trending_communities/*":{},"all_categories_page/*/*":{},"communities_by_category_page/*/*":{},"*/*/community_join_button":{text:"Join"},"*/*/community_joined_button":{text:"Joined"},"communities_by_category_page/*/community_empty_image":{},"communities_by_category_page/*/community_empty_title":{text:"No community yet"}}},n7=e=>{let[t,o,r]=e.split("/"),n=fp({page:t,component:o,element:r});return new Proxy({},{get(i,a){var s,l;for(let c of n)if((l=(s=Jt==null?void 0:Jt.customizations)==null?void 0:s[c])!=null&&l[a])return Jt.customizations[c][a]}})},i7=({children:e,initialConfig:t={}})=>{let [o,r]=useState(null);up();useEffect(()=>{i()?a(t):console.error("Invalid configuration provided to CustomizationProvider");},[t]);let i=p=>!0,a=p=>{r(p);},c={config:o,parseConfig:a,isExcluded:p=>{var C;let[u,f,g]=p.split("/"),h=fp({page:u,component:f,element:g});return ((C=o==null?void 0:o.excludes)==null?void 0:C.some(y=>h.some(x=>x===y)))||!1},getConfig:p=>{let[u,f,g]=p.split("/"),h=fp({page:u,component:f,element:g}),C=y=>({get(x,v){var _,M,b,I,T,k,N,F,Z,$,G,O,ee,X,L;for(let H of h)if((I=(b=(M=(_=o==null?void 0:o.customizations)==null?void 0:_[H])==null?void 0:M.theme)==null?void 0:b[y])!=null&&I[v])return (k=(T=o.customizations[H].theme)==null?void 0:T[y])==null?void 0:k[v];if((F=(N=o==null?void 0:o.theme)==null?void 0:N[y])!=null&&F[v])return (Z=o.theme[y])==null?void 0:Z[v];for(let H of h)if((ee=(O=(G=($=Jt.customizations)==null?void 0:$[H])==null?void 0:G.theme)==null?void 0:O[y])!=null&&ee[v])return (L=(X=Jt.customizations[H].theme)==null?void 0:X[y])==null?void 0:L[v];return Jt.theme[y][v]}});return new Proxy({},{get(y,x){var v,_,M,b,I;if(x==="theme")return {light:new Proxy({},C("light")),dark:new Proxy({},C("dark"))};if(x==="preferred_theme")return (v=o==null?void 0:o.preferred_theme)!=null?v:Jt.preferred_theme;for(let T of h)if((M=(_=o==null?void 0:o.customizations)==null?void 0:_[T])!=null&&M[x])return o.customizations[T][x];for(let T of h)if((I=(b=Jt==null?void 0:Jt.customizations)==null?void 0:b[T])!=null&&I[x])return Jt.customizations[T][x]}})}};return J.createElement(r7.Provider,{value:c},e)};var B=({pageId:e,componentId:t,elementId:o})=>{let r=`${e}/${t}/${o}`,{getConfig:n,isExcluded:i}=Gm(),a=n(r),s=n7(r),l=o7(a),c=i(r);return {config:a,defaultConfig:s,uiReference:r,accessibilityId:r,themeStyles:l,isExcluded:c}},ce=({pageId:e,componentId:t})=>B({pageId:e,componentId:t,elementId:"*"}),jt=({pageId:e})=>B({pageId:e,componentId:"*",elementId:"*"});var Ak=({pageId:e="*",componentId:t="*",elementId:o="*",size:r="",onOverlayClick:n=()=>{},onCancel:i,title:a,footer:s,children:l})=>{let{accessibilityId:c,themeStyles:p}=B({pageId:e,componentId:t,elementId:o}),u=useRef(null);return useEffect(()=>{var f;(f=u==null?void 0:u.current)==null||f.focus();},[u==null?void 0:u.current]),J.createElement("div",{className:Ii.overlay,onClick:n,style:p},J.createElement("div",{className:lo(Ii.modalWindow),"data-qa-anchor":c,ref:u,tabIndex:0},i&&J.createElement(jm,{"data-qa-anchor":`${e}/${t}/modal_close_icon`,className:Ii.closeIcon,onClick:i}),a&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/modal_title`,className:Ii.title},a),J.createElement("div",{"data-qa-anchor":`${e}/${t}/modal_content`,className:lo(Ii.content)},l),s&&J.createElement("div",{className:Ii.footer},s)))},s7=Ak;var l7={button:"Pr"};var U=o=>{var r=o,{className:e}=r,t=w(r,["className"]);return J.createElement(Button,d({className:lo(l7.button,e)},t))};var m7=createContext({confirmData:null,confirm:e=>{},info:e=>{},closeConfirm:()=>{}}),bt=()=>useContext(m7),d7=({children:e})=>{let[t,o]=useState(null),r=()=>{o(null);},n=a=>{o(S(d({},a),{type:"confirm"}));},i=a=>o(S(d({},a),{type:"info",OkButton:de}));return J.createElement(m7.Provider,{value:{confirmData:t,confirm:n,info:i,closeConfirm:r}},e)};var wa={modal:"Qr",background:"Vr",footer:"Wr",okButton:"Zr",cancelButton:"U"};var ke={typography:"ea","typography-headings":"ra","typography-titles":"aa","typography-sub-title":"oa","typography-body":"ta","typography-body-bold":"ia","typography-caption":"sa","typography-caption-bold":"ca"};var _i=e=>e.renderer!==void 0,Gk={Heading:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-headings"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("h1",d({className:lo(ke.typography,ke["typography-headings"],o),style:r},n),t)},Title:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-titles"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("h2",d({className:lo(ke.typography,ke["typography-titles"],o),style:r},n),t)},Subtitle:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-sub-title"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("h3",d({className:lo(ke.typography,ke["typography-sub-title"],o),style:r},n),t)},Body:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-body"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-body"],o),style:r},n),t)},BodyBold:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-body-bold"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-body-bold"],o),style:r},n),t)},Caption:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-caption"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-caption"],o),style:r},n),t)},CaptionBold:e=>{if(_i(e))return e.renderer({typoClassName:lo(ke.typography,ke["typography-caption-bold"])});let i=e,{children:t,className:o,style:r}=i,n=w(i,["children","className","style"]);return J.createElement("span",d({className:lo(ke.typography,ke["typography-caption-bold"],o),style:r},n),t)}},A=Gk;var Zk=({pageId:e="*",componentId:t="*",className:o,title:r,content:n,okText:i="Ok",onOk:a,cancelText:s="Cancel",onCancel:l,type:c="confirm"})=>{let p="confirm_modal",{accessibilityId:u,themeStyles:f}=B({pageId:e,componentId:t,elementId:p});return J.createElement(s7,{className:lo(o,wa.modal),pageId:e,componentId:t,elementId:p,"data-qa-anchor":`confirm-modal-${u}`,title:r,footer:J.createElement("div",{className:wa.footer},c==="confirm"&&J.createElement(U,{style:f,className:wa.cancelButton,"data-qa-anchor":"confirm-modal-cancel-button",onPress:l},J.createElement(A.BodyBold,null,s)),J.createElement(U,{style:f,className:wa.okButton,"data-qa-anchor":`confirm-modal-${u}-ok-button`,onPress:a},J.createElement(A.BodyBold,null,i))),onCancel:l},J.createElement("div",null,n))},c7=()=>{let{confirmData:e,closeConfirm:t}=bt();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk();};return J.createElement(Zk,S(d({},e),{onCancel:o,onOk:r,className:wa.background}))};var p7={socialCommunityCreationButtonVisible:!0},u7=createContext(p7),f7=()=>useContext(u7);function gp({children:e,config:t}){let o=useMemo(()=>d(d({},p7),t),[t]);return J.createElement(u7.Provider,{value:o},e)}var g7={"general.action.cancel":"Cancel","general.action.accept":"Accept","general.action.decline":"Decline","general.action.discard":"Discard","general.action.ok":"Ok","general.error.tryAgainLater":"Something went wrong. Please try again later.","general.connection.waiting":"Waiting for connection...",hello:"Hello World","plural.like":"{amount, plural, one {like} other {likes}}",comment:"Comment","plural.comment":"{amount, plural, one {comment} other {comments}}","plural.member":"{amount, plural, one {member} other {members}}",selectACategory:"Select a category",todaysTrendingTitle:"Today's Trending",loadMore:"Load More",categoryList:"Categories",recommendedList:"Recommended for you","exploreHeader.searchCommunityTitle":"Explore communities","exploreHeader.searchCommunityPlaceholder":"Search communities...","exploreHeader.createCommunityTitle":"or create your own!","exploreHeader.createCommunityButton":"Create community",backTitle:"Back",createCommunity:"Create Community",moderator:"Moderator","moderatorMenu.promoteToModerator":"Promote to moderator","moderatorMenu.dismissModerator":"Dismiss moderator","moderatorMenu.removeFromCommunity":"Remove from community","post.readMore":"...Read more","post.editPost":"Edit post","post.deletePost":"Delete post","post.confirmDelete":"This post will be permanently deleted. You\u2019ll no longer to see and find this post. Continue?","post.confirmPendingDelete":"This post will be permanently deleted from the pending list","post.edited":"Edited","post.like":"Like","post.liked":"Liked","post.unknownPost.description":"We couldn\u2019t recognize this post.","post.unknownPost.title":"Something went wrong","post.renderingError.description":"We couldn\u2019t render this post.","post.renderingError.title":"Something went wrong","post.community":"Community","post.myTimeline":"My Timeline","post.wasLive":"was live","post.success.approved":"Post approved","post.success.declined":"Post declined","post.success.submittedToReview":"Your post has been submitted to review by moderator","post.error.cannotReview.title":"Post is not available","post.error.cannotReview.description":"The post has been reviewed by another moderator","post.discard.title":"Discard post?","post.discard.content":"Do you want to discard your post?","collapsible.viewAll":"View all","collapsible.viewAllFiles":"View all files","collapsible.viewMoreComments":"View more comments","collapsible.viewMoreReplies":"View more replies","collapsible.viewMoreReply":"View {count, plural, one {# reply} other {# replies}}","community.createSuccess":"Your community was successfully created","community.updateSuccess":"Your community was successfully updated","community.editProfile":"Edit profile","community.join":"Join","community.communitySettings":"Community Settings","community.returnTo":"Return to {communityName}","community.leaveCommunityTitle":"Leave community?","community.leaveCommunityBody":"You won\u2019t no longer be able to post and interact in this community after leaving.","community.leaveCommunityBodyLastMember":"As you\u2019re the last moderator and member, choose close community to leave.","community.leaveCommunityBodyOnlyModerator":"You\u2019re the only moderator in this group. Nominate other members before leaving community.","community.leaveCommunityButtonText":"Leave","community.leaveCommunityButtonOK":"OK","community.cannotInteract":"Join community to interact with all posts","community.removeUserFromCommunityTitle":"Remove user from community","community.removeUserFromCommunityBody":"This user won't no longer be able to search, post. Continue?","community.name":"Community name","community.about":"About","community.category":"Category","community.onlyadmincanpost":">Only admin can post","community.onlyadmins":"Choose to allow Only Admins to create posts in this community.","community.categorypermission":"Community permission","community.addmembers":"Add members","community.posts":"posts","community.members":"members","community.settings":"Settings","community.leaveCommunity":"Leave Community","CommunityMembers.members":"Members","CommunityMembers.moderators":"Moderators","EmptyFeed.TargetType.globalFeed":"This feed is empty","EmptyFeed.TargetType.communityFeed":"This community's feed is empty","EmptyFeed.TargetType.userFeed":"This user's feed is empty","EmptyFeed.TargetType.myFeed":"Your feed is empty. Start your first post","EmptyFeed.exploreCommunity":"Explore Community","UserFeed.tabs.timeline":"Timeline","community.exploreCommunities":"Explore Community","community.permissions.postReview":"Post review","community.permissions.storyComments":"Story comments","community.permissions.approvePosts":"Approve member posts","community.permissions.allowStoryComments":"Allow comments on community stories","community.permissions.approvePosts.prompt":"Posts by members have to be reviewed and approved by community moderator.","community.permissions.storyComments.prompt":"Turn on to receive comments on stories in this community.","community.permissions.error.needApprovalOnPostCreation.turnOn":"Unable to turn on post review","community.permissions.error.needApprovalOnPostCreation.turnOff":"Unable to turn off post review","community.permissions.error.storyComments.turnOn":"Unable to turn on post review","community.permissions.error.storyComments.turnOff":"Unable to turn off post review","community.review.declinePendingPosts":"Decline pending post will permanently delete the selected post from community.","community.pendingPostsBanner.title":"Pending posts","community.pendingPostsBanner.pendingForReview":"Your posts are pending for review","community.pendingPostsBanner.needApproval":"{formattedAmount} {amount, plural, one {post needs} other {posts need}} approval","communityCreatedModal.title":"Customize your community","communityCreatedModal.message":"You\u2019ve successfully created a community! Now let's manage permissions that work best for you","communityCreatedModal.goToSettings":"Community settings","communityCreatedModal.skip":"Skip for now",post:"Post","upload.attachmentLimit":"You reached the maximum attachment of {maxFiles}","upload.fileSizeLimit":"One of the selected file is larger than 1GB. Please select a new file.","user.editProfile":"Edit profile","user.message":"Message","follow.placeholder.noFollowings":"No followings found","follow.placeholder.noFollowers":"No followers found","ProfileSettings.editProfile":"Edit profile","ProfileSettings.returnTo":"Return to ","SideSectionMyCommunity.myCommunity":"My Community","file.reUpload":"Click to re-upload the file","UserProfileForm.displayname":"Display name","UserProfileForm.about":"About","UserProfileForm.title":"General","UserProfileForm.namePlaceholder":"Enter user display name","UserProfileForm.requiredDisplayName":"Display name is required","UserProfileForm.requiredDescription":"Enter something about yourself","UserSelector.placeholder":"Select user...","report.reportUser":"Report user","report.unreportUser":"Unreport user","report.reportComment":"Report comment","report.unreportComment":"Unreport comment","report.reportSent":"Report sent","report.unreportSent":"Unreport sent","comment.deleted":"This comment has been deleted","comment.delete":"Delete comment","comment.edit":"Edit comment","comment.deleteConfirmContent":"This comment will be permanently deleted. Continue?","comment.deleteConfirmCancelText":"Cancel","comment.deleteConfirmOkText":"Delete","dropdown.first":"First","dropdown.second":"Second","layout.logout":"Log Out","layout.username":"Jackies","chat.details.chatDetailes":"Chat Detail","chat.details.communityName":"Community Name","message.flag":"flag","message.unflag":"Unflag","message.edit":"Edit","message.delete":"Delete","message.deleted":"deleted","message.unsupportedFormat":"Unsupported message format","message.saveOptionsError":"There was an error processing your request","MessageComposeBar.placeholder":"Type your message...","RecentChat.chats":"Chats","AddMemberModal.addMembers":"Add members","AddMemberModal.membersValidationError":"Please select at least one member",add:"Add",save:"Save",close:"Close",reply:"Reply",delete:"Delete",create:"Create",cancel:"Cancel",loading:"Loading...","loading.chat":"Loading chat...",anonymous:"Anonymous","comment.edited":"Edited","comment.readmore":"...Read more","communities.nocommunityfound":"No community found","profile.setting":"Profile Settings","sidesectioncommunity.newfeed":"NewsFeed","sidesectioncommunity.explore":"Explore","sidesectioncommunity.community":"Community","communityFeed.join":"Join community to interact with all posts","communityFeed.members":"Members","communityFeed.moderators":"Moderators","files.all":"View all files","sidebar.community":"Community","sidebar.explore":"Explore","CategoryCommunitiesList.emptyTitle":"It's empty here...","CategoryCommunitiesList.emptyDescription":"No community found in this category","CommentComposeBar.addComment":"Add comment","CommentComposeBar.replayTo":"Reply to ","CommentComposeBar.replayToUser":"Replying to {displayName}","CommentComposeBar.saySomething":"Say something nice","CommentComposeBar.unableToPost":"Unable to post","CommentComposeBar.overCharacter":"You have reached maximum 50,000 characters in a post.","CommentComposeBar.done":"Done","CommentComposeBar.unableToMention":"Unable to mention","CommentComposeBar.overMentionees":"You have reached maximum 30 mentioned users in a post.","CommentComposeBar.okText":"OK","CommunityCreationModal.title":"Leave without finishing?","CommunityCreationModal.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","CommunityCreationModal.cancelText":"Continue editing","CommunityCreationModal.okText":"Leave","PostAsCommunity.title":"Post as community","PostAsCommunity.caption":"Enable this will publish the post on behalf of community account","AddMemberAction.title":"Add members","AddMemberAction.description":"Add your friends to this community to participate in group conversations","CloseCommunityAction.closeConfirm.title":"Close community?","CloseCommunityAction.closeConfirm.description":"All members will be removed from the community. All posts, messages, reactions and media shared in community will be deleted. This cannot be undone.","CloseCommunityAction.title":"Close community","CloseCommunityAction.description":"Closing this community will remove the community page and all its content and comments. This cannot be undone.","report.doReport":"Report","report.undoReport":"Undo Report","comment.deleteBody":"This comment will be permanently removed.","reply.delete":"Delete reply","reply.deleteBody":"This reply will be permanently deleted. Continue?","reply.edit":"Edit reply","reply.deleted":"This reply has been deleted","tabs.editProfile":"Edit profile","tabs.timeline":"Timeline","tabs.followers":"Followers","tabs.followings":"Followings","tabs.pending":"Pending","tabs.members":"Members","tabs.moderators":"Moderators","tabs.pendingPosts":"Pending {amount, select, 0 {} other { ({formattedAmount})}}","tabs.permissions":"Permissions","tabs.gallery":"Gallery","tabs.images":"Photos","tabs.videos":"Videos","tabs.liveStreams":"Livestreams","feed.emptyFeed":"This feed is empty","feed.emptyCommunityPublicFeed":"This community's feed is empty","feed.emptyCommunityReviewingFeed":"No pending posts","feed.emptyJoinedCommunityPublicFeed":"Your feed is empty. Start you first post","feed.emptyUserFeed":"No posts yet","feed.emptyMyFeed":"Your feed is empty. Start your first post","chat.groupSetting":"Group settings","chat.message.deleted":"Message was deleted","chat.message.unsupported":"Unsupported message type","chat.chats":"Chats","chat.details.header":"Chat Details","chat.details.chatName":"Chat Name","chat.leaveChat":"Leave chat","chat.leaveChat.confirm.title":"Leave chat","chat.leaveChat.confirm.content":"Are you sure you want to leave the chat?","chat.leaveChat.confirm.okButton":"Leave","chat.leaveChat.success":"You successfully left chat","chat.leaveChat.error":"Attempt to leave a chat has failed","chat.members.return":"Return to controls","chat.members.count":"{count} members","chat.create.modalTitle":"Create new chat","chat.loading.error":"Couldn't load chat","userSelector.placeholder":"Enter name or email addresses","userSelector.emptyState.title":"It's empty here...","userSelector.emptyState.description":"No contact found here","groupChat.createPopup.fieldName":"Group name","groupChat.createPopup.placeholder":"Please input group name","general.cancel.capital":"Cancel","general.create.capital":"Create","general.done.capital":"Done","chat.member.addMore":"Add or Remove user","video.notReady":"The video is being processed. Please try again later.","liveStream.idle":"This stream is currently unavailable","liveStream.ended.caption":"This liveStream has ended.","liveStream.ended.message":"Playback will be available for you to watch shortly.","user.follow":"Follow","user.unfollow":"Unfollow","user.unfollow.confirm.title":"Unfollow {displayName}","user.unfollow.confirm.body":"You\u2019ll have to send a request again to follow {displayName}. Continue?","user.cancel_follow":"Cancel request","placeholder.noResults":"No results found","request.accept":"Accept","request.decline":"Decline","follower.title.removeUser":"Remove {displayName} from followers?","follower.body.removeUser":"We will not notify {displayName} that they've been removed from your followers","follower.menuItem.removeUser":"Remove user","follower.menuItem.unfollow":"Unfollow","buttonText.cancel":"Cancel","buttonText.remove":"Remove","follow.pendingNotification.title":"Pending requests","follow.pendingNotification.body":"Your requests are waiting for review","notification.done":"Done","counter.followings":"following","counter.followers":"followers","buttonText.unfollow":"Unfollow","privateFeed.title":"This account is private","privateFeed.body":"Follow this user to see all posts","navigationBlocker.title":"Unsaved changes","navigationBlocker.content":"Your changes won`t be saved. Are you sure you want to leave this page now?","user.unfollow.confirm.title.thisUser":"Unfollow this user","mediaGallery.images.empty":"No photos yet","mediaGallery.liveStreams.empty":"No liveStreams yet","mediaGallery.videos.empty":"No videos yet","user.unfollow.confirm.body.thisUser":"You\u2019ll have to send a request again to follow this user. Continue?","navigationBlocker.okText":"Leave","options_composer.button.add":"Add Option","options_composer.title":"Create at least 2 options","poll_modal.answer_type.title":"Selection type","poll_modal.answer_type.body":"Choose to vote with one or multiple options","poll_modal.closed_in.title":"Schedule poll (Optional)","poll_modal.closed_in.body":"Poll will be automatically closed at the end of chosen time frame (UTC)","select.answerType.item":"{answerType} selection","poll_composer.question.label":"Poll options","poll_composer.question.placeholder":"What\u2019s your poll question?","poll_composer.poll_options.label":"Options","poll_modal.title":"Create poll","poll.votes":"{voteCount} votes","poll.vote.closedIn":"Poll ends in {closedIn} days","poll.vote.finalResults":"Final results","poll.vote.submit":"Submit vote","poll.error.deletedOrClosed":"This poll has been closed or deleted.","poll.close":"Close poll","postCreator.unableToPost":"Unable to post","postCreator.overCharacter":"You have reached maximum 50,000 characters in a post.","postCreator.done":"Done","postCreator.unableToMention":"Unable to mention","postCreator.overMentionees":"You have reached maximum 30 mentioned users in a post.","postCreator.okText":"OK","pollComposer.unableToMention":"Unable to mention","pollComposer.overMentionees":"You have reached maximum 30 mentioned users in a post.","pollComposer.okText":"OK","storyCreation.hyperlink.bottomSheet.cancel":"Cancel","storyCreation.hyperlink.bottomSheet.title":"Add link","storyCreation.hyperlink.bottomSheet.submit":"Done","storyCreation.hyperlink.form.urlLabel":"URL","storyCreation.hyperlink.form.urlPlaceholder":"https://example.com","storyCreation.hyperlink.form.linkTextLabel":"Customize link text","storyCreation.hyperlink.form.linkTextPlaceholder":"Name your link","storyCreation.hyperlink.form.linkTextDescription":"This text will show on the link instead of URL.","storyCreation.hyperlink.form.removeButton":"Remove link","storyCreation.hyperlink.removeConfirm.title":"Remove link","storyCreation.hyperlink.removeConfirm.content":"This link will be removed from story.","storyCreation.hyperlink.removeConfirm.cancel":"Cancel","storyCreation.hyperlink.removeConfirm.confirm":"Remove","storyCreation.hyperlink.validation.error.invalidUrl":"Please enter a valid URL.","storyCreation.hyperlink.validation.error.whitelisted":"Please enter a whitelisted URL.","storyCreation.hyperlink.validation.error.blocked":"Your text contains a blocklisted word.","storyCreation.hyperlink.unsavedChanges.title":"Unsaved changes","storyCreation.hyperlink.unsavedChanges.content":"Are you sure you want to cancel? Your changes won't be saved.","storyCreation.hyperlink.unsavedChanges.cancel":"No","storyCreation.hyperlink.unsavedChanges.confirm":"Yes","storyViewer.actions.deleteStory":"Delete story","storyViewer.action.confirmModal.title":"Delete this story?","storyViewer.action.confirmModal.content":"This story will be permanently deleted. You\u2019ll no longer to see and find this story.","storyViewer.notification.deleted":"Story deleted","storyViewer.notification.success":"Successfully shared story","storyViewer.notification.error":"Failed to share story","storyViewer.footer.failed":"Failed to upload","storyViewer.footer.uploading":"Uploading...","storyViewer.commentSheet.title":"Comments","storyViewer.commentSheet.empty":"No comments yet","storyViewer.commentSheet.disabled":"Comments are disabled for this story","storyViewer.commentSheet.replyingTo":"Replying to","storyViewer.toast.like.disabled":"Join community to interact with all stories","storyViewer.toast.comment.reported":"Comment reported","storyViewer.toast.comment.unreported":"Comment unreported","storyViewer.toast.disable.react":"Join community to interact with all stories","storyViewer.commentComposeBar.submit":"Post","storyDraft.button.shareStory":"Share story","storyDraft.notification.hyperlink.error":"Can\u2019t add more than one link to your story.","storyTab.title":"Story","select.chatType.item":"{answerType} type","chatComposer.label.channelId":"Channel ID","chatComposer.label.displayName":"Display Name","chatComposer.label.type":"Channel Type","chatComposer.addUsers":"Add users","chat_modal.title":"Create chat","chat_composer.placeholder.displayName":"Enter display name here","chat_composer.placeholder.channelId":"Enter channel ID here","editChatMembersModal.title":"Add/Edit chat members","editChatMembersModal.confirm.title":"Leave without finishing?","editChatMembersModal.confirm.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","editChatMembersModal.confirm.cancelText":"Continue editing","editChatMembersModal.confirm.okText":"Leave","notification.error.blockedWord":"Amity SDK (400308): Text contain blocked word","livechat.deleted.message":"This message was deleted","livechat.messageBubble.reply.button":"Reply","livechat.messageBubble.copy.button":"Copy","livechat.messageBubble.delete.button":"Delete","livechat.messageBubble.mention.button":"Mention","livechat.messageBubble.report.button":"Report","livechat.messageBubble.unReport.button":"Unreport","livechat.channel.muted":"This channel has been set to read-only by the channel moderator","livechat.modal.delete.message.title":"Delete this message?","livechat.modal.delete.message.content":"This message will also be removed from your friend\u2019s devices.","livechat.mention.all":"All","livechat.mention.all.description":"Notify everyone","livechat.notification.copy.message":"Message copied","livechat.composebar.placeholder":"Write a message","livechat.delete.message.error":"Unable to delete message. Please try again.","livechat.member.muted":"You\u2019ve been muted by the channel moderator","livechat.member.muted.error":"User is muted","livechat.member.banned.title":"You are banned from chat","livechat.member.banned.description":"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned.","livechat.report.message.success":"Message reported","livechat.report.message.error":"This message failed to be reported. Please try again.","livechat.unReport.message.success":"Message unreported","livechat.unReport.message.error":"This message failed to be unreported. Please try again.","livechat.error.tooLongMessage.title":"Unable to send message","livechat.error.tooLongMessage.description":"Your message is too long. Please shorten your message and try again.","livechat.error.sendingMessage.error":"Your message wasn't sent. Please try again.","livechat.error.sendingMessage.blockedWord":"Your message wasn't sent as it contains a blocked word.","livechat.error.sendingMessage.notAllowLink":"Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.","livechat.reaction.errorOnload":"Unable to load reactions","livechat.reaction.emptyState":"No reactions yet","livechat.reaction.emptyState.description":"Be the first to react to this message!","livechat.reaction.label.removeReaction":"Click to remove reaction"};var $m={en:g7};var y7="en",Rk=({locale:e,children:t})=>{let o=$m[e]?$m[e]:$m[y7];return J.createElement(IntlProvider,{defaultLocale:y7,locale:e,messages:o},t)},h7=Rk;var eE={palette:{alert:"#FA4D30",base:"#292B32",primary:"#1054DE",secondary:"#FFD400",tertiary:"#FF305A",neutral:"#17181C",highlight:"#1054DE",system:{borders:"#ebecef",background:"#fff"}},typography:{global:{fontFamily:"Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif",fontStyle:"normal"},headline:{fontWeight:600,fontSize:"20px"},title:{fontWeight:600,fontSize:"16px"},subTitle:{fontWight:400,fontSize:"13px"},body:{fontWeight:"normal",fontSize:"14px"},bodyBold:{fontWeight:600,fontSize:"14px"},caption:{fontWeight:"normal",fontSize:"12px"},captionBold:{fontWeight:600,fontSize:"12px"}}},C7=eE;function I1(e){return (e==null?void 0:e.communityMembership)==="member"}function Zm(e){return (e==null?void 0:e.userPrivacySetting)==="private"}function v7(e){return (e||[]).map((t,o)=>{var r;return {id:t.userId,display:(r=t.displayName)!=null?r:t.userId,avatar:t.avatarCustomUrl,isLastItem:(e==null?void 0:e.length)===o+1}})}var qm=1;function oE(e,t,o){let r=o+qm,n=r+t;return e.substring(r,n)}function Ym(e){return e?e.sort((o,r)=>o.index-r.index).map(({index:o,length:r})=>({start:o,end:o+r+qm,highlight:!0})):[]}function Wm(e){let t={},o=[];return (e==null?void 0:e.length)>0?(t.mentioned=[...e.sort((r,n)=>r.plainTextIndex-n.plainTextIndex).map(({plainTextIndex:r,id:n,display:i})=>({index:r,length:i.length-qm,type:"user",userId:n,displayName:i}))],o.push({type:"user",userIds:e.map(({id:r})=>r)})):o.push({type:"user",userIds:[]}),{metadata:t,mentionees:o}}function Qm(e,t){if(!e||tE(t==null?void 0:t.mentioned))return e;let o=e;return ((t||{}).mentioned||[]).sort((r,n)=>n.index-r.index).forEach(({userId:r,length:n,index:i})=>{let a=`@[${oE(e,n,i)}](${r})`;o=o.replace(new RegExp(`(.{${i}}).{${n+qm}}`),`$1${a}`);}),o}function Ue(e){return e!=null}function x7(e,t){var r,n;if(!(e!=null&&e.mentioned)||(t==null?void 0:t.length)===0)return [];let o=((r=t==null?void 0:t.find(i=>i.type==="user"))==null?void 0:r.userIds)||[];return (n=e==null?void 0:e.mentioned)==null?void 0:n.map((i,a)=>{let s=o[a],l=i.displayName,c="@"+(l!=null?l:s);return {plainTextIndex:i.index,id:s,display:c}})}var w7=e=>e.toFixed(1),b7=e=>{let t=Math.min(e*100,100);return w7(t)};function nE(e){return e.alpha!==void 0}var _7=e=>{let{hue:t,saturation:o,lightness:r}=e,n=[`${w7(t)}`,`${b7(o)}%`,`${b7(r)}%`];return nE(e)?`hsla(${[...n,e.alpha].filter(Ue).join(",")})`:`hsl(${n.filter(Ue).join(",")})`},iE=e=>{let t=parseToHsl(e);return _7(t)},aE=(e,t)=>{let o=parseToHsl(t),{lightness:r}=o,n=S(d({},o),{lightness:Math.min(1,r+e)});return _7(n)},sE=[.25,.4,.5,.75],M7=e=>{let i=e,{system:t}=i,o=w(i,["system"]),r=Object.keys(o).reduce((a,s)=>(a[s]={main:iE(o[s])},a),d({},o)),n=Object.keys(r).reduce((a,s)=>{let l=o[s],c=sE.reduce((u,f,g)=>{let h=`shade${g+1}`;return u[h]=aE(f,l),u},{}),p=r[s];return p&&typeof p=="object"?a[s]=d(d({},c),p):a[s]=S(d({},c),{main:p}),a},d({},r));return S(d({},n),{system:t})};var lE=["fontFamily","fontStyle","fontWeight","fontSize"],mE=e=>Object.keys(e).reduce((o,r)=>{let n=e[r];return r&&n&&lE.includes(r)&&(o[r]=n),o},{}),P7=e=>Object.keys(e).reduce((o,r)=>(o[r]=mE(d(d({},e.global),e[r])),o),{});var S7={colors:{primary:{default:"#1054DE",shade1:"#4A82F2",shade2:"#A0BDF8",shade3:"#D9E5FC",shade4:"#FFFFFF"},secondary:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},base:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},baseInverse:{default:"#FFFFFF"},alert:{default:"#FA4D30"},highlight:"#1054DE",messageBubble:{default:"#1054DE",inverse:"#FFFFFF"},storyIndicator:{default:"#EBECEF",active:["#339AF9","#78FA58"]},hyperlink:{default:"#FFFFFFCC"},actionButton:{default:"#00000080"}},typography:{heading:{fontWeight:600,fontSize:"1.25rem",lineHeight:"1.5rem"},title:{fontWeight:600,fontSize:"1rem",lineHeight:"1.25rem"},subTitle:{fontWeight:400,fontSize:"0.8125rem",lineHeight:"1rem"},body:{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"1.25rem"},bodyBold:{fontWeight:600,fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontWeight:"normal",fontSize:"0.75rem",lineHeight:"1rem"},captionBold:{fontWeight:600,fontSize:"0.75rem",lineHeight:"1rem"}}};var cE=(e={})=>{let t=dE(C7,e),o=M7(t.palette),r=P7(t.typography);return S(d({},t),{palette:o,typography:r,v4:S7})},T7=cE;var N7=m.div`
501
501
  color-scheme: only light;
502
502
  ${({theme:e})=>e.typography.body};
503
503
  color: ${({theme:e})=>e.palette.base.main};
@@ -573,7 +573,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
573
573
  --pseudo-element-display: none; /* Disable animation */
574
574
  }
575
575
  }
576
- `;var Km=createContext({client:null,currentUserId:void 0,userRoles:[]});var Jm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Xm=()=>useContext(Km),ne=Xm;var k7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r})=>({unsubscribe:()=>{}})}),hp=()=>useContext(k7);function Cp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=ne();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c,config:p})=>{if(n==null)return {unsubscribe(){}};let u=i(s.name,l);if(t.current[u]&&r.current[u])c==null||c(r.current[u]),t.current[u].push(c);else {t.current[u]=[c];let f=s(l,g=>{r.current[u]=g,(t.current[u]||[]).forEach(C=>C(g));},p);o.current[u]=f;}return {unsubscribe(){let f=t.current[u].find(g=>g===c);f&&(t.current[u]=t.current[u].filter(g=>g!==f));}}};return J.createElement(k7.Provider,{value:{subscribe:a}},e)}var E7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),xp=()=>useContext(E7);function bp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=ne();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c=()=>{},options:p})=>{if(n==null)return {unsubscribe(){}};let u=i(s.name,l);if(t.current[u])c(r.current[u]),t.current[u].push(c);else {t.current[u]=[c];let f=s(l,g=>{r.current[u]=g,(t.current[u]||[]).forEach(C=>C(g));},p);o.current[u]=f;}return {unsubscribe(){let f=t.current[u].find(g=>g===c);f&&(t.current[u]=t.current[u].filter(g=>g!==f));}}};return J.createElement(E7.Provider,{value:{subscribe:a}},e)}var ME=createContext({fetch:o=>P(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Ip({children:e}){let t=useRef({}),o=useRef({});function r(i,a){return `${i}.${JSON.stringify(a)}`}let n=({fetchFn:i,params:a})=>{var u;let s=r(i.name,a);if(((u=t.current[s])==null?void 0:u.length)>0){if(o.current[s]!=null)return Promise.resolve(o.current[s]);let f=()=>{},g=()=>{},h=new Promise((C,y)=>{f=C,g=y;});return t.current[s].push({resolve:f,reject:g}),h}let l=()=>{},c=()=>{},p=new Promise((f,g)=>{l=f,c=g;});return t.current[s]=[{resolve:l,reject:c}],i(...a).then(f=>{o.current[s]=f,t.current[s].forEach(({resolve:g})=>g(f));}).catch(f=>{t.current[s].forEach(({reject:g})=>g(f));}).finally(()=>{setTimeout(()=>{o.current[s]=null,t.current[s]=[];},500);}),p};return J.createElement(ME.Provider,{value:{fetch:n}},e)}var L7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),F7=()=>useContext(L7);function wp({children:e}){let t=useRef({}),o=useRef({});useEffect(()=>()=>{Object.values(o.current).forEach(n=>n());},[]);let r=({topic:n,callback:i})=>{if(t.current[n])t.current[n].push(i);else {t.current[n]=[i];let a=subscribeTopic(n,(...s)=>{(t.current[n]||[]).forEach(c=>c(...s));});o.current[n]=a;}return {unsubscribe(){let a=t.current[n].find(s=>s===i);a&&(t.current[n]=t.current[n].filter(s=>s!==a));}}};return J.createElement(L7.Provider,{value:{subscribe:r}},e)}function _p({children:e}){return J.createElement(Cp,null,J.createElement(bp,null,J.createElement(wp,null,J.createElement(Ip,null,e))))}function FE({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=xp(),[s,l]=useState(null),c=useRef(null),p=useCallback(u=>{n&&!n()||t!=null&&(u.data&&l(u.data),o(u));},[n,o]);return useEffect(()=>(i&&(c.current=subscribeTopic(i())),()=>{var u;(u=c.current)==null||u.call(c);}),[i]),useEffect(()=>{if(t==null||n&&!n())return;let{unsubscribe:u}=a({fetcher:e,params:t,callback:p,options:r});return ()=>{u();}},[t,n]),s}var It=FE;function I1({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=F7(),s=useRef(null);return It({fetcher:e,params:t,callback:l=>{let{error:c,loading:p}=l;if(p)return;if(c)throw c;let{unsubscribe:u}=a({topic:i(l),callback:o});s.current=u;},options:r,shouldCall:n}),useEffect(()=>()=>{var l;(l=s.current)==null||l.call(s);},[s]),{unsubscribe:()=>{var l;return (l=s.current)==null?void 0:l.call(s)}}}function Mi({userId:e,level:t,shouldSubscribe:o=()=>!0,callback:r}){return I1({fetcher:UserRepository.getUser,params:e,callback:r,shouldSubscribe:()=>!!e&&o(),getSubscribedTopic:({data:n})=>getUserTopic(n,t)})}var jE=e=>(Mi({userId:e,level:SubscriptionLevels.USER}),It({fetcher:UserRepository.getUser,params:e,shouldCall:()=>!!e})),Me=jE;var xn=Object.freeze({MEMBER:"member",MODERATOR:"moderator",SUPER_MODERATOR:"super-moderator",COMMUNITY_MODERATOR:"community-moderator",CHANNEL_MODERATOR:"channel-moderator"}),bn=Object.freeze({EditUserPermission:"EDIT_USER",BanUserPermission:"BAN_USER",CreateRolePermission:"CREATE_ROLE",EditRolePermission:"EDIT_ROLE",DeleteRolePermission:"DELETE_ROLE",AssignRolePermission:"ASSIGN_USER_ROLE",EditChannelPermission:"EDIT_CHANNEL",EditChannelRatelimitPermission:"EDIT_CHANNEL_RATELIMIT",MuteChannelPermission:"MUTE_CHANNEL",CloseChannelPermission:"CLOSE_CHANNEL",AddChannelUserPermission:"ADD_CHANNEL_USER",EditChannelUserPermission:"EDIT_CHANNEL_USER",RemoveChannelUserPermission:"REMOVE_CHANNEL_USER",MuteChannelUserPermission:"MUTE_CHANNEL_USER",BanChannelUserPermission:"BAN_CHANNEL_USER",EditMessagePermission:"EDIT_MESSAGE",DeleteMessagePermission:"DELETE_MESSAGE",EditCommunityPermission:"EDIT_COMMUNITY",DeleteCommunityPermission:"DELETE_COMMUNITY",AddChannelCommunityPermission:"ADD_COMMUNITY_USER",EditChannelCommunityPermission:"EDIT_COMMUNITY_USER",RemoveChannelCommunityPermission:"REMOVE_COMMUNITY_USER",MuteChannelCommunityPermission:"MUTE_COMMUNITY_USER",BanChannelCommunityPermission:"BAN_COMMUNITY_USER",EditUserFeedPostPermission:"EDIT_USER_FEED_POST",DeleteUserFeedPostPermission:"DELETE_USER_FEED_POST",EditUserFeedCommentPermission:"EDIT_USER_FEED_COMMENT",DeleteUserFeedCommentPermission:"DELETE_USER_FEED_COMMENT",EditCommunityFeedPostPermission:"EDIT_COMMUNITY_POST",DeleteCommunityFeedPostPermission:"DELETE_COMMUNITY_POST",EditCommunityFeedCommentPermission:"EDIT_COMMUNITY_COMMENT",DeleteCommunityFeedCommentPermission:"DELETE_COMMUNITY_COMMENT",CreateCommunityCategoryPermission:"CREATE_COMMUNITY_CATEGORY",EditCommunityCategoryPermission:"EDIT_COMMUNITY_CATEGORY",DeleteCommunityCategoryPermission:"DELETE_COMMUNITY_CATEGORY",ManageStoryPermission:"MANAGE_COMMUNITY_STORY",CreatePivillegedPostPermission:"CREATE_PRIVILEGED_POST"}),V7=30,e2=Object.freeze({Uploaded:"uploaded",Transcoding:"transcoding",Transcoded:"transcoded",TranscodeFailed:"transcodeFailed"}),O7="video/mp4",In=Object.freeze({CONTAIN_BLOCKED_WORD:"Amity SDK (400308): Text contain blocked word",NOT_INCLUDE_WHITELIST_LINK:"Data contains a link that is not in the whitelist",CONTAIN_BLOCKLISTED_WORD:"Your text contains a blocklisted word."});var U7={page:{type:"newsfeed",communityId:void 0},onChangePage:e=>{},onClickCategory:e=>{},onClickCommunity:e=>{},onClickUser:e=>{},onClickStory:(e,t,o)=>{},onCommunityCreated:e=>{},onEditCommunity:e=>{},onEditUser:e=>{},onMessageUser:e=>{},setNavigationBlocker:()=>{},onBack:()=>{},goToDraftStoryPage:e=>{}};process.env.NODE_ENV!=="production"&&(U7={page:{type:"newsfeed",communityId:void 0},onChangePage:e=>console.log(`NavigationContext onChangePage(${e})`),onClickCategory:e=>console.log(`NavigationContext onClickCategory(${e})`),onClickCommunity:e=>console.log(`NavigationContext onClickCommunity(${e})`),onClickUser:e=>console.log(`NavigationContext onClickUser(${e})`),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`),onCommunityCreated:e=>console.log(`NavigationContext onCommunityCreated(${e})`),onEditCommunity:e=>console.log(`NavigationContext onEditCommunity({${e})`),onEditUser:e=>console.log(`NavigationContext onEditUser(${e})`),onMessageUser:e=>console.log(`NavigationContext onMessageUser(${e})`),onBack:()=>console.log("NavigationContext onBack()"),goToDraftStoryPage:(e,t,o,r)=>console.log(`NavigationContext goToDraftStoryPage(${e})`)});var Mp=createContext(U7),Q=()=>useContext(Mp);function Pp({askForConfirmation:e,children:t,onChangePage:o,onClickCategory:r,onClickCommunity:n,onClickUser:i,onCommunityCreated:a,onEditCommunity:s,onEditUser:l,onMessageUser:c,onBack:p}){let[u,f]=useState([{type:"newsfeed",communityId:void 0}]),g=useMemo(()=>u[u.length-1],[u]),[h,C]=useState(),{confirm:y}=ue(),x=e!=null?e:y,v=useCallback(()=>P(this,null,function*(){return h?new Promise(L=>{x(S(d({},h),{onSuccess:()=>{C==null||C(void 0),L(!0);},onCancel:()=>L(!1)}));}):!0}),[e,h,C]),_=useCallback(L=>P(this,null,function*(){(yield v())&&f(H=>[...H,L]);}),[v]),M=()=>{f(L=>L.length>1?L.slice(0,-1):L);},b=o?L=>P(this,null,function*(){(yield v())&&o(L);}):null,w=useCallback(L=>{_({type:L});},[_]),T=useCallback(L=>{let H={type:"communityfeed",communityId:L};if(b)return b(H);if(n)return n(L);_(H);},[b,n,_]),k=useCallback(L=>{let H={type:"communityfeed",communityId:L,isNewCommunity:!0};if(b)return b(H);if(a)return a(L);_(H);},[b,a,_]),N=useCallback(L=>{let H={type:"category",categoryId:L};if(b)return b(H);if(r)return r(L);_(H);},[b,r,_]),F=useCallback((L,H)=>{let K={type:H!=null?H:"userfeed",userId:L};if(b)return b(K);if(i)return i(L);_(K);},[b,i,_]),Z=useCallback(L=>{let H={type:"useredit",userId:L};if(b)return b(H);if(l)return l(L);_(H);},[b,l,_]),$=useCallback((L,H)=>{let K={type:"communityedit",communityId:L,tab:H};if(b)return b(K);if(s)return s(L,{tab:H});_(K);},[b,s,_]),G=useCallback(L=>{let H={type:"conversation",userId:L};if(b)return b(H);if(c)return c(L)},[b,c]),O=useCallback(()=>{p&&p(),M();},[b,p,M]),ee=useCallback((L,H,K)=>{let Y={type:"viewstory",targetId:L,storyType:H,targetIds:K};if(b)return b(Y);_(Y);},[b,_]),X=useCallback((L,H,K,Y)=>{let pe={type:"draftpage",targetId:L,targetType:H,mediaType:K,storyType:Y};if(b)return b(pe);_(pe);},[b,_]);return J.createElement(Mp.Provider,{value:{page:g,onChangePage:w,onClickCategory:N,onClickCommunity:T,onClickUser:F,onClickStory:ee,onCommunityCreated:k,onEditCommunity:$,onEditUser:Z,onMessageUser:G,onBack:O,goToDraftStoryPage:X,setNavigationBlocker:C}},t)}var Sp=()=>useContext(Jm),Oe=Sp;var z7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),Np=()=>useContext(z7);function kp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Oe();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c,config:p,refresh:u=!1})=>{if(n==null)return {unsubscribe(){}};let f=i(s.name,l);if(u&&(delete r.current[f],delete t.current[f]),t.current[f]&&r.current[f])c==null||c(r.current[f]),t.current[f].push(c);else {t.current[f]=[c];let g=s(l,h=>{r.current[f]=h,(t.current[f]||[]).forEach(y=>y(h));},p);o.current[f]=g;}return {unsubscribe(){let g=t.current[f].find(h=>h===c);g&&(t.current[f]=t.current[f].filter(h=>h!==g));}}};return J.createElement(z7.Provider,{value:{subscribe:a}},e)}var j7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),Ap=()=>useContext(j7);function Bp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Oe();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c=()=>{},options:p,refresh:u=!1})=>{if(n==null)return {unsubscribe(){}};let f=i(s.name,l);if(u&&(delete r.current[f],delete t.current[f]),t.current[f])c(r.current[f]),t.current[f].push(c);else {t.current[f]=[c];let g=s(l,h=>{r.current[f]=h,(t.current[f]||[]).forEach(y=>y(h));},p);o.current[f]=g;}return {unsubscribe(){let g=t.current[f].find(h=>h===c);g&&(t.current[f]=t.current[f].filter(h=>h!==g));}}};return J.createElement(j7.Provider,{value:{subscribe:a}},e)}var nA=createContext({fetch:o=>P(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Lp({children:e}){let t=useRef({}),o=useRef({});function r(i,a){return `${i}.${JSON.stringify(a)}`}let n=({fetchFn:i,params:a})=>{var u;let s=r(i.name,a);if(((u=t.current[s])==null?void 0:u.length)>0){if(o.current[s]!=null)return Promise.resolve(o.current[s]);let f=()=>{},g=()=>{},h=new Promise((C,y)=>{f=C,g=y;});return t.current[s].push({resolve:f,reject:g}),h}let l=()=>{},c=()=>{},p=new Promise((f,g)=>{l=f,c=g;});return t.current[s]=[{resolve:l,reject:c}],i(...a).then(f=>{o.current[s]=f,t.current[s].forEach(({resolve:g})=>g(f));}).catch(f=>{t.current[s].forEach(({reject:g})=>g(f));}).finally(()=>{setTimeout(()=>{o.current[s]=null,t.current[s]=[];},500);}),p};return J.createElement(nA.Provider,{value:{fetch:n}},e)}var Z7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),q7=()=>useContext(Z7);function Fp({children:e}){let t=useRef({}),o=useRef({});useEffect(()=>()=>{Object.values(o.current).forEach(n=>n());},[]);let r=({topic:n,callback:i})=>{if(t.current[n])t.current[n].push(i);else {t.current[n]=[i];let a=subscribeTopic(n,(...s)=>{(t.current[n]||[]).forEach(c=>c(...s));});o.current[n]=a;}return {unsubscribe(){let a=t.current[n].find(s=>s===i);a&&(t.current[n]=t.current[n].filter(s=>s!==a));}}};return J.createElement(Z7.Provider,{value:{subscribe:r}},e)}function Dp({children:e}){return J.createElement(kp,null,J.createElement(Bp,null,J.createElement(Fp,null,J.createElement(Lp,null,e))))}var Y7=createContext({}),V=e=>useContext(Y7)[e]||null;function Vp({children:e,config:t}){return J.createElement(Y7.Provider,{value:t},e)}var fA=e=>It({fetcher:PostRepository.getPost,params:e,shouldCall:()=>!!e}),Oo=fA;var Q7=j`
576
+ `;var Km=createContext({client:null,currentUserId:void 0,userRoles:[]});var Jm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Xm=()=>useContext(Km),ne=Xm;var k7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r})=>({unsubscribe:()=>{}})}),hp=()=>useContext(k7);function Cp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=ne();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c,config:p})=>{if(n==null)return {unsubscribe(){}};let u=i(s.name,l);if(t.current[u]&&r.current[u])c==null||c(r.current[u]),t.current[u].push(c);else {t.current[u]=[c];let f=s(l,g=>{r.current[u]=g,(t.current[u]||[]).forEach(C=>C(g));},p);o.current[u]=f;}return {unsubscribe(){let f=t.current[u].find(g=>g===c);f&&(t.current[u]=t.current[u].filter(g=>g!==f));}}};return J.createElement(k7.Provider,{value:{subscribe:a}},e)}var E7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),xp=()=>useContext(E7);function bp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=ne();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c=()=>{},options:p})=>{if(n==null)return {unsubscribe(){}};let u=i(s.name,l);if(t.current[u])c(r.current[u]),t.current[u].push(c);else {t.current[u]=[c];let f=s(l,g=>{r.current[u]=g,(t.current[u]||[]).forEach(C=>C(g));},p);o.current[u]=f;}return {unsubscribe(){let f=t.current[u].find(g=>g===c);f&&(t.current[u]=t.current[u].filter(g=>g!==f));}}};return J.createElement(E7.Provider,{value:{subscribe:a}},e)}var ME=createContext({fetch:o=>P(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Ip({children:e}){let t=useRef({}),o=useRef({});function r(i,a){return `${i}.${JSON.stringify(a)}`}let n=({fetchFn:i,params:a})=>{var u;let s=r(i.name,a);if(((u=t.current[s])==null?void 0:u.length)>0){if(o.current[s]!=null)return Promise.resolve(o.current[s]);let f=()=>{},g=()=>{},h=new Promise((C,y)=>{f=C,g=y;});return t.current[s].push({resolve:f,reject:g}),h}let l=()=>{},c=()=>{},p=new Promise((f,g)=>{l=f,c=g;});return t.current[s]=[{resolve:l,reject:c}],i(...a).then(f=>{o.current[s]=f,t.current[s].forEach(({resolve:g})=>g(f));}).catch(f=>{t.current[s].forEach(({reject:g})=>g(f));}).finally(()=>{setTimeout(()=>{o.current[s]=null,t.current[s]=[];},500);}),p};return J.createElement(ME.Provider,{value:{fetch:n}},e)}var L7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),F7=()=>useContext(L7);function wp({children:e}){let t=useRef({}),o=useRef({});useEffect(()=>()=>{Object.values(o.current).forEach(n=>n());},[]);let r=({topic:n,callback:i})=>{if(t.current[n])t.current[n].push(i);else {t.current[n]=[i];let a=subscribeTopic(n,(...s)=>{(t.current[n]||[]).forEach(c=>c(...s));});o.current[n]=a;}return {unsubscribe(){let a=t.current[n].find(s=>s===i);a&&(t.current[n]=t.current[n].filter(s=>s!==a));}}};return J.createElement(L7.Provider,{value:{subscribe:r}},e)}function _p({children:e}){return J.createElement(Cp,null,J.createElement(bp,null,J.createElement(wp,null,J.createElement(Ip,null,e))))}function FE({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=xp(),[s,l]=useState(null),c=useRef(null),p=useCallback(u=>{n&&!n()||t!=null&&(u.data&&l(u.data),o(u));},[n,o]);return useEffect(()=>(i&&(c.current=subscribeTopic(i())),()=>{var u;(u=c.current)==null||u.call(c);}),[i]),useEffect(()=>{if(t==null||n&&!n())return;let{unsubscribe:u}=a({fetcher:e,params:t,callback:p,options:r});return ()=>{u();}},[t,n]),s}var It=FE;function w1({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=F7(),s=useRef(null);return It({fetcher:e,params:t,callback:l=>{let{error:c,loading:p}=l;if(p)return;if(c)throw c;let{unsubscribe:u}=a({topic:i(l),callback:o});s.current=u;},options:r,shouldCall:n}),useEffect(()=>()=>{var l;(l=s.current)==null||l.call(s);},[s]),{unsubscribe:()=>{var l;return (l=s.current)==null?void 0:l.call(s)}}}function Mi({userId:e,level:t,shouldSubscribe:o=()=>!0,callback:r}){return w1({fetcher:UserRepository.getUser,params:e,callback:r,shouldSubscribe:()=>!!e&&o(),getSubscribedTopic:({data:n})=>getUserTopic(n,t)})}var jE=e=>(Mi({userId:e,level:SubscriptionLevels.USER}),It({fetcher:UserRepository.getUser,params:e,shouldCall:()=>!!e})),Me=jE;var xn=Object.freeze({MEMBER:"member",MODERATOR:"moderator",SUPER_MODERATOR:"super-moderator",COMMUNITY_MODERATOR:"community-moderator",CHANNEL_MODERATOR:"channel-moderator"}),bn=Object.freeze({EditUserPermission:"EDIT_USER",BanUserPermission:"BAN_USER",CreateRolePermission:"CREATE_ROLE",EditRolePermission:"EDIT_ROLE",DeleteRolePermission:"DELETE_ROLE",AssignRolePermission:"ASSIGN_USER_ROLE",EditChannelPermission:"EDIT_CHANNEL",EditChannelRatelimitPermission:"EDIT_CHANNEL_RATELIMIT",MuteChannelPermission:"MUTE_CHANNEL",CloseChannelPermission:"CLOSE_CHANNEL",AddChannelUserPermission:"ADD_CHANNEL_USER",EditChannelUserPermission:"EDIT_CHANNEL_USER",RemoveChannelUserPermission:"REMOVE_CHANNEL_USER",MuteChannelUserPermission:"MUTE_CHANNEL_USER",BanChannelUserPermission:"BAN_CHANNEL_USER",EditMessagePermission:"EDIT_MESSAGE",DeleteMessagePermission:"DELETE_MESSAGE",EditCommunityPermission:"EDIT_COMMUNITY",DeleteCommunityPermission:"DELETE_COMMUNITY",AddChannelCommunityPermission:"ADD_COMMUNITY_USER",EditChannelCommunityPermission:"EDIT_COMMUNITY_USER",RemoveChannelCommunityPermission:"REMOVE_COMMUNITY_USER",MuteChannelCommunityPermission:"MUTE_COMMUNITY_USER",BanChannelCommunityPermission:"BAN_COMMUNITY_USER",EditUserFeedPostPermission:"EDIT_USER_FEED_POST",DeleteUserFeedPostPermission:"DELETE_USER_FEED_POST",EditUserFeedCommentPermission:"EDIT_USER_FEED_COMMENT",DeleteUserFeedCommentPermission:"DELETE_USER_FEED_COMMENT",EditCommunityFeedPostPermission:"EDIT_COMMUNITY_POST",DeleteCommunityFeedPostPermission:"DELETE_COMMUNITY_POST",EditCommunityFeedCommentPermission:"EDIT_COMMUNITY_COMMENT",DeleteCommunityFeedCommentPermission:"DELETE_COMMUNITY_COMMENT",CreateCommunityCategoryPermission:"CREATE_COMMUNITY_CATEGORY",EditCommunityCategoryPermission:"EDIT_COMMUNITY_CATEGORY",DeleteCommunityCategoryPermission:"DELETE_COMMUNITY_CATEGORY",ManageStoryPermission:"MANAGE_COMMUNITY_STORY",CreatePivillegedPostPermission:"CREATE_PRIVILEGED_POST"}),V7=30,e2=Object.freeze({Uploaded:"uploaded",Transcoding:"transcoding",Transcoded:"transcoded",TranscodeFailed:"transcodeFailed"}),O7="video/mp4",In=Object.freeze({CONTAIN_BLOCKED_WORD:"Amity SDK (400308): Text contain blocked word",NOT_INCLUDE_WHITELIST_LINK:"Data contains a link that is not in the whitelist",CONTAIN_BLOCKLISTED_WORD:"Your text contains a blocklisted word."});var U7={page:{type:"newsfeed",communityId:void 0},onChangePage:e=>{},onClickCategory:e=>{},onClickCommunity:e=>{},onClickUser:e=>{},onClickStory:(e,t,o)=>{},onCommunityCreated:e=>{},onEditCommunity:e=>{},onEditUser:e=>{},onMessageUser:e=>{},setNavigationBlocker:()=>{},onBack:()=>{},goToDraftStoryPage:e=>{}};process.env.NODE_ENV!=="production"&&(U7={page:{type:"newsfeed",communityId:void 0},onChangePage:e=>console.log(`NavigationContext onChangePage(${e})`),onClickCategory:e=>console.log(`NavigationContext onClickCategory(${e})`),onClickCommunity:e=>console.log(`NavigationContext onClickCommunity(${e})`),onClickUser:e=>console.log(`NavigationContext onClickUser(${e})`),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`),onCommunityCreated:e=>console.log(`NavigationContext onCommunityCreated(${e})`),onEditCommunity:e=>console.log(`NavigationContext onEditCommunity({${e})`),onEditUser:e=>console.log(`NavigationContext onEditUser(${e})`),onMessageUser:e=>console.log(`NavigationContext onMessageUser(${e})`),onBack:()=>console.log("NavigationContext onBack()"),goToDraftStoryPage:(e,t,o,r)=>console.log(`NavigationContext goToDraftStoryPage(${e})`)});var Mp=createContext(U7),Q=()=>useContext(Mp);function Pp({askForConfirmation:e,children:t,onChangePage:o,onClickCategory:r,onClickCommunity:n,onClickUser:i,onCommunityCreated:a,onEditCommunity:s,onEditUser:l,onMessageUser:c,onBack:p}){let[u,f]=useState([{type:"newsfeed",communityId:void 0}]),g=useMemo(()=>u[u.length-1],[u]),[h,C]=useState(),{confirm:y}=ue(),x=e!=null?e:y,v=useCallback(()=>P(this,null,function*(){return h?new Promise(L=>{x(S(d({},h),{onSuccess:()=>{C==null||C(void 0),L(!0);},onCancel:()=>L(!1)}));}):!0}),[e,h,C]),_=useCallback(L=>P(this,null,function*(){(yield v())&&f(H=>[...H,L]);}),[v]),M=()=>{f(L=>L.length>1?L.slice(0,-1):L);},b=o?L=>P(this,null,function*(){(yield v())&&o(L);}):null,I=useCallback(L=>{_({type:L});},[_]),T=useCallback(L=>{let H={type:"communityfeed",communityId:L};if(b)return b(H);if(n)return n(L);_(H);},[b,n,_]),k=useCallback(L=>{let H={type:"communityfeed",communityId:L,isNewCommunity:!0};if(b)return b(H);if(a)return a(L);_(H);},[b,a,_]),N=useCallback(L=>{let H={type:"category",categoryId:L};if(b)return b(H);if(r)return r(L);_(H);},[b,r,_]),F=useCallback((L,H)=>{let K={type:H!=null?H:"userfeed",userId:L};if(b)return b(K);if(i)return i(L);_(K);},[b,i,_]),Z=useCallback(L=>{let H={type:"useredit",userId:L};if(b)return b(H);if(l)return l(L);_(H);},[b,l,_]),$=useCallback((L,H)=>{let K={type:"communityedit",communityId:L,tab:H};if(b)return b(K);if(s)return s(L,{tab:H});_(K);},[b,s,_]),G=useCallback(L=>{let H={type:"conversation",userId:L};if(b)return b(H);if(c)return c(L)},[b,c]),O=useCallback(()=>{p&&p(),M();},[b,p,M]),ee=useCallback((L,H,K)=>{let Y={type:"viewstory",targetId:L,storyType:H,targetIds:K};if(b)return b(Y);_(Y);},[b,_]),X=useCallback((L,H,K,Y)=>{let pe={type:"draftpage",targetId:L,targetType:H,mediaType:K,storyType:Y};if(b)return b(pe);_(pe);},[b,_]);return J.createElement(Mp.Provider,{value:{page:g,onChangePage:I,onClickCategory:N,onClickCommunity:T,onClickUser:F,onClickStory:ee,onCommunityCreated:k,onEditCommunity:$,onEditUser:Z,onMessageUser:G,onBack:O,goToDraftStoryPage:X,setNavigationBlocker:C}},t)}var Sp=()=>useContext(Jm),Oe=Sp;var z7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),Np=()=>useContext(z7);function kp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Oe();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c,config:p,refresh:u=!1})=>{if(n==null)return {unsubscribe(){}};let f=i(s.name,l);if(u&&(delete r.current[f],delete t.current[f]),t.current[f]&&r.current[f])c==null||c(r.current[f]),t.current[f].push(c);else {t.current[f]=[c];let g=s(l,h=>{r.current[f]=h,(t.current[f]||[]).forEach(y=>y(h));},p);o.current[f]=g;}return {unsubscribe(){let g=t.current[f].find(h=>h===c);g&&(t.current[f]=t.current[f].filter(h=>h!==g));}}};return J.createElement(z7.Provider,{value:{subscribe:a}},e)}var j7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),Ap=()=>useContext(j7);function Bp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Oe();function i(s,l){return `${n}.${s}.${JSON.stringify(l)}`}useEffect(()=>()=>{Object.values(o.current).forEach(s=>s());},[]);let a=({fetcher:s,params:l,callback:c=()=>{},options:p,refresh:u=!1})=>{if(n==null)return {unsubscribe(){}};let f=i(s.name,l);if(u&&(delete r.current[f],delete t.current[f]),t.current[f])c(r.current[f]),t.current[f].push(c);else {t.current[f]=[c];let g=s(l,h=>{r.current[f]=h,(t.current[f]||[]).forEach(y=>y(h));},p);o.current[f]=g;}return {unsubscribe(){let g=t.current[f].find(h=>h===c);g&&(t.current[f]=t.current[f].filter(h=>h!==g));}}};return J.createElement(j7.Provider,{value:{subscribe:a}},e)}var nA=createContext({fetch:o=>P(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Lp({children:e}){let t=useRef({}),o=useRef({});function r(i,a){return `${i}.${JSON.stringify(a)}`}let n=({fetchFn:i,params:a})=>{var u;let s=r(i.name,a);if(((u=t.current[s])==null?void 0:u.length)>0){if(o.current[s]!=null)return Promise.resolve(o.current[s]);let f=()=>{},g=()=>{},h=new Promise((C,y)=>{f=C,g=y;});return t.current[s].push({resolve:f,reject:g}),h}let l=()=>{},c=()=>{},p=new Promise((f,g)=>{l=f,c=g;});return t.current[s]=[{resolve:l,reject:c}],i(...a).then(f=>{o.current[s]=f,t.current[s].forEach(({resolve:g})=>g(f));}).catch(f=>{t.current[s].forEach(({reject:g})=>g(f));}).finally(()=>{setTimeout(()=>{o.current[s]=null,t.current[s]=[];},500);}),p};return J.createElement(nA.Provider,{value:{fetch:n}},e)}var Z7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),q7=()=>useContext(Z7);function Fp({children:e}){let t=useRef({}),o=useRef({});useEffect(()=>()=>{Object.values(o.current).forEach(n=>n());},[]);let r=({topic:n,callback:i})=>{if(t.current[n])t.current[n].push(i);else {t.current[n]=[i];let a=subscribeTopic(n,(...s)=>{(t.current[n]||[]).forEach(c=>c(...s));});o.current[n]=a;}return {unsubscribe(){let a=t.current[n].find(s=>s===i);a&&(t.current[n]=t.current[n].filter(s=>s!==a));}}};return J.createElement(Z7.Provider,{value:{subscribe:r}},e)}function Dp({children:e}){return J.createElement(kp,null,J.createElement(Bp,null,J.createElement(Fp,null,J.createElement(Lp,null,e))))}var Y7=createContext({}),V=e=>useContext(Y7)[e]||null;function Vp({children:e,config:t}){return J.createElement(Y7.Provider,{value:t},e)}var fA=e=>It({fetcher:PostRepository.getPost,params:e,shouldCall:()=>!!e}),Oo=fA;var Q7=j`
577
577
  color: ${({theme:e})=>e.palette.primary.main};
578
578
  fill: ${({theme:e})=>e.palette.primary.main};
579
579
  `,K7=m(Se)`
@@ -585,7 +585,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
585
585
  fill: #a5a9b5;
586
586
  `,gA=m(J7)`
587
587
  ${Q7}
588
- `,X7=({isLiked:e})=>e?J.createElement(gA,null):J.createElement(J7,null);var hA=({onClick:e,isActive:t,isDisabled:o})=>J.createElement(K7,{active:t,disabled:o,"data-qa-anchor":t?"post-liked-button":"post-like-button",onClick:e},J.createElement(X7,{isLiked:t})," ",J.createElement(FormattedMessage,{id:t?"post.liked":"post.like"})),R7=e=>{let t=V("PostLikeButton");return t?t(e):J.createElement(hA,d({},e))};var mo="like";function tf(e){var t,o;return e==null||((t=e.myReactions)==null?void 0:t.length)===0?!1:(o=e==null?void 0:e.myReactions)==null?void 0:o.includes(mo)}var bA=({postId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=Oo(e),[n,i]=useState(tf(r));useEffect(()=>{i(tf(r));},[r==null?void 0:r.myReactions]);let a=()=>P(void 0,null,function*(){r!=null&&(n?(yield ReactionRepository.removeReaction("post",r.postId,mo),o==null||o(r),i(!n)):(yield ReactionRepository.addReaction("post",r.postId,mo),t==null||t(r),i(!n)));});return J.createElement(R7,{isActive:n,isDisabled:r==null,onClick:a})},of=bA;var wA=e=>It({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:()=>!!e}),We=wA;var NA=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r,remoteMentions:n=[]})=>{let i=t==="community",a=We(e),[s,l]=useState(o!=null?o:""),[c,p]=useState(r!=null?r:o),[u,f]=useState(n);useEffect(()=>{l(o||""),p(r!=null?r:"");},[o,r]);let g=({text:_,plainText:M,mentions:b})=>{l(M),p(_),f(b);},h=()=>{l(""),p(""),f([]);},C=()=>{l(o||""),p(r),f([]);},y=useCallback(_=>P(void 0,null,function*(){let M,b=_||"",w;return (b.match(/^@$/)||b==="")&&(b=void 0),i&&!(a!=null&&a.isPublic)&&e!=null?M=yield new Promise(T=>{w==null||w(),w=CommunityRepository.Membership.searchMembers({communityId:e,search:b,limit:20},k=>{k.loading||T(k.data.map(({user:N})=>N).filter(Ue));});}):M=yield new Promise(T=>{w==null||w(),w=UserRepository.searchUserByDisplayName({displayName:b,limit:20},k=>{k.loading||T(k.data);});}),v7(M)}),[i,a==null?void 0:a.isPublic,e]),{mentionees:x,metadata:v}=useMemo(()=>{let{mentionees:_,metadata:M}=Wm(u);return {mentionees:_,metadata:M}},[u]);return {text:s,markup:c,mentions:u,mentionees:x,metadata:v,onChange:g,clearAll:h,resetState:C,queryMentionees:y}},Ho=NA;var Si={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"},EA=Si.REGULAR,_a={[Si.BIG]:64,[Si.REGULAR]:40,[Si.SMALL]:32,[Si.TINY]:28},AA=e=>useMemo(()=>e&&_a[e]?e:EA,[e]),rf=AA;var FA=s=>{var l=s,{circle:e,borderRadius:t=12,primaryColor:o="#EBECEF",secondaryColor:r="#f3f3f3",duration:n=2,style:i}=l,a=I(l,["circle","borderRadius","primaryColor","secondaryColor","duration","style"]);return J.createElement(LA,S(d({},a),{duration:n,circle:e,style:S(d({},i),{backgroundColor:o,backgroundImage:`linear-gradient(90deg, ${o}, ${r}, ${o})`,borderRadius:e?void 0:t})}))},he=FA;var DA=i=>{var a=i,{loading:e,size:t,backgroundImage:o,children:r}=a,n=I(a,["loading","size","backgroundImage","children"]);return J.createElement("div",d({},n),e?J.createElement(he,{circle:!0,width:"100%",height:"100%",style:{display:"block"}}):r)},af=m(DA)`
588
+ `,X7=({isLiked:e})=>e?J.createElement(gA,null):J.createElement(J7,null);var hA=({onClick:e,isActive:t,isDisabled:o})=>J.createElement(K7,{active:t,disabled:o,"data-qa-anchor":t?"post-liked-button":"post-like-button",onClick:e},J.createElement(X7,{isLiked:t})," ",J.createElement(FormattedMessage,{id:t?"post.liked":"post.like"})),R7=e=>{let t=V("PostLikeButton");return t?t(e):J.createElement(hA,d({},e))};var mo="like";function tf(e){var t,o;return e==null||((t=e.myReactions)==null?void 0:t.length)===0?!1:(o=e==null?void 0:e.myReactions)==null?void 0:o.includes(mo)}var bA=({postId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=Oo(e),[n,i]=useState(tf(r));useEffect(()=>{i(tf(r));},[r==null?void 0:r.myReactions]);let a=()=>P(void 0,null,function*(){r!=null&&(n?(yield ReactionRepository.removeReaction("post",r.postId,mo),o==null||o(r),i(!n)):(yield ReactionRepository.addReaction("post",r.postId,mo),t==null||t(r),i(!n)));});return J.createElement(R7,{isActive:n,isDisabled:r==null,onClick:a})},of=bA;var wA=e=>It({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:()=>!!e}),We=wA;var NA=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r,remoteMentions:n=[]})=>{let i=t==="community",a=We(e),[s,l]=useState(o!=null?o:""),[c,p]=useState(r!=null?r:o),[u,f]=useState(n);useEffect(()=>{l(o||""),p(r!=null?r:"");},[o,r]);let g=({text:_,plainText:M,mentions:b})=>{l(M),p(_),f(b);},h=()=>{l(""),p(""),f([]);},C=()=>{l(o||""),p(r),f([]);},y=useCallback(_=>P(void 0,null,function*(){let M,b=_||"",I;return (b.match(/^@$/)||b==="")&&(b=void 0),i&&!(a!=null&&a.isPublic)&&e!=null?M=yield new Promise(T=>{I==null||I(),I=CommunityRepository.Membership.searchMembers({communityId:e,search:b,limit:20},k=>{k.loading||T(k.data.map(({user:N})=>N).filter(Ue));});}):M=yield new Promise(T=>{I==null||I(),I=UserRepository.searchUserByDisplayName({displayName:b,limit:20},k=>{k.loading||T(k.data);});}),v7(M)}),[i,a==null?void 0:a.isPublic,e]),{mentionees:x,metadata:v}=useMemo(()=>{let{mentionees:_,metadata:M}=Wm(u);return {mentionees:_,metadata:M}},[u]);return {text:s,markup:c,mentions:u,mentionees:x,metadata:v,onChange:g,clearAll:h,resetState:C,queryMentionees:y}},Ho=NA;var Si={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"},EA=Si.REGULAR,_a={[Si.BIG]:64,[Si.REGULAR]:40,[Si.SMALL]:32,[Si.TINY]:28},AA=e=>useMemo(()=>e&&_a[e]?e:EA,[e]),rf=AA;var FA=s=>{var l=s,{circle:e,borderRadius:t=12,primaryColor:o="#EBECEF",secondaryColor:r="#f3f3f3",duration:n=2,style:i}=l,a=w(l,["circle","borderRadius","primaryColor","secondaryColor","duration","style"]);return J.createElement(LA,S(d({},a),{duration:n,circle:e,style:S(d({},i),{backgroundColor:o,backgroundImage:`linear-gradient(90deg, ${o}, ${r}, ${o})`,borderRadius:e?void 0:t})}))},he=FA;var DA=i=>{var a=i,{loading:e,size:t,backgroundImage:o,children:r}=a,n=w(a,["loading","size","backgroundImage","children"]);return J.createElement("div",d({},n),e?J.createElement(he,{circle:!0,width:"100%",height:"100%",style:{display:"block"}}):r)},af=m(DA)`
589
589
  position: relative;
590
590
  flex-shrink: 0;
591
591
  overflow: hidden;
@@ -627,13 +627,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
627
627
  &&& {
628
628
  display: none;
629
629
  }
630
- `;m.label``;var HA=s=>{var l=s,{className:e="",avatar:t=null,showOverlay:o,size:r,onClick:n,loading:i}=l,a=I(l,["className","avatar","showOverlay","size","onClick","loading"]);let[c,p]=useState(!1),u=useCallback(()=>p(!0),[]),f=useCallback(()=>p(!1),[]),g=rf(r);return J.createElement(af,d({className:lo(e,{visible:c,clickable:!!n}),loading:i,size:g,onClick:n},a),t?o?J.createElement(sf,d({size:g},a),J.createElement(Hp,{src:t,onError:f,onLoad:u})):J.createElement(Hp,{src:t,onError:f,onLoad:u}):null)},ve=e=>{let t=V("Avatar");return t?t(e):J.createElement(HA,d({},e))};var UA=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256
630
+ `;m.label``;var HA=s=>{var l=s,{className:e="",avatar:t=null,showOverlay:o,size:r,onClick:n,loading:i}=l,a=w(l,["className","avatar","showOverlay","size","onClick","loading"]);let[c,p]=useState(!1),u=useCallback(()=>p(!0),[]),f=useCallback(()=>p(!1),[]),g=rf(r);return J.createElement(af,d({className:lo(e,{visible:c,clickable:!!n}),loading:i,size:g,onClick:n},a),t?o?J.createElement(sf,d({size:g},a),J.createElement(Hp,{src:t,onError:f,onLoad:u})):J.createElement(Hp,{src:t,onError:f,onLoad:u}):null)},ve=e=>{let t=V("Avatar");return t?t(e):J.createElement(HA,d({},e))};var UA=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),J.createElement("path",{d:`M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256
631
631
  8zm141.421 106.579c73.176 73.175 77.05 187.301 15.964 264.865L132.556 98.615c77.588-61.105
632
632
  191.709-57.193 264.865 15.964zM114.579
633
633
  397.421c-73.176-73.175-77.05-187.301-15.964-264.865l280.829 280.829c-77.588 61.105-191.709
634
634
  57.193-264.865-15.964z`})),Sr=m(UA)`
635
635
  fill: ${({theme:e})=>e.palette.base.shade3};
636
- `;var Up={root:null,rootMargin:"0px 0px -15% 0px",threshold:.9},$A=(e,{root:t,rootMargin:o,threshold:r}=Up)=>{let n=useMemo(()=>({root:t,rootMargin:o||Up.rootMargin,threshold:r||Up.threshold}),[t,o,r]),[i,a]=useState(null),s=useRef(new IntersectionObserver(l=>a(l[0]),n));return useEffect(()=>{if(e){let{current:l}=s;return l.observe(e),()=>l.disconnect()}},[e]),useEffect(()=>{if(e){let{current:l}=s;return l.unobserve(e),s.current=new IntersectionObserver(c=>a(c[0]),n),s.current.observe(e),()=>s.current.disconnect()}},[n,o,e]),i},_1=$A;var YA=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},at=YA;var JA=({fileId:e,imageSize:t="medium"})=>{let o=at(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return P(this,null,function*(){if((o==null?void 0:o.fileUrl)==null)return;let a=FileRepository.fileUrlWithSize(o==null?void 0:o.fileUrl,t);n(a);})}i();},[o,t]),r},te=JA;var tB=m.div`
636
+ `;var Up={root:null,rootMargin:"0px 0px -15% 0px",threshold:.9},$A=(e,{root:t,rootMargin:o,threshold:r}=Up)=>{let n=useMemo(()=>({root:t,rootMargin:o||Up.rootMargin,threshold:r||Up.threshold}),[t,o,r]),[i,a]=useState(null),s=useRef(new IntersectionObserver(l=>a(l[0]),n));return useEffect(()=>{if(e){let{current:l}=s;return l.observe(e),()=>l.disconnect()}},[e]),useEffect(()=>{if(e){let{current:l}=s;return l.unobserve(e),s.current=new IntersectionObserver(c=>a(c[0]),n),s.current.observe(e),()=>s.current.disconnect()}},[n,o,e]),i},M1=$A;var YA=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},st=YA;var JA=({fileId:e,imageSize:t="medium"})=>{let o=st(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return P(this,null,function*(){if((o==null?void 0:o.fileUrl)==null)return;let a=FileRepository.fileUrlWithSize(o==null?void 0:o.fileUrl,t);n(a);})}i();},[o,t]),r},te=JA;var tB=m.div`
637
637
  display: flex;
638
638
  align-items: center;
639
639
  padding: 5px 15px;
@@ -648,7 +648,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
648
648
  white-space: nowrap;
649
649
  overflow: hidden;
650
650
  text-overflow: ellipsis;
651
- `,rB=({id:e,focused:t,isLastItem:o,loadMore:r,rootEl:n,containerRef:i})=>{var u,f;let a=useRef(null),s=_1(a==null?void 0:a.current,{root:(u=n==null?void 0:n.current)==null?void 0:u.childNodes[0]}),l=Me(e),c=te({fileId:l==null?void 0:l.avatarFileId,imageSize:"small"});useEffect(()=>{a&&(s!=null&&s.isIntersecting)&&(r==null||r());},[a,s==null?void 0:s.isIntersecting,r]);let p=useCallback((g,h)=>{h&&(g.target.parentNode.style.cursor="not-allowed",g.target.parentNode.style["pointer-events"]="none");},[]);return J.createElement(tB,{ref:o?a:null,"data-qa-anchor":"social-mention-item",focused:t,isBanned:l==null?void 0:l.isGlobalBanned,maxWidth:(f=i==null?void 0:i.current)==null?void 0:f.clientWidth,onMouseEnter:g=>p(g,l==null?void 0:l.isGlobalBanned)},J.createElement(ve,{avatar:c}),J.createElement(oB,null,l==null?void 0:l.displayName),J.createElement("div",{style:{marginLeft:"0.5rem"}},l!=null&&l.isGlobalBanned?J.createElement(Sr,null):null))},cf=rB;var dB=m.div`
651
+ `,rB=({id:e,focused:t,isLastItem:o,loadMore:r,rootEl:n,containerRef:i})=>{var u,f;let a=useRef(null),s=M1(a==null?void 0:a.current,{root:(u=n==null?void 0:n.current)==null?void 0:u.childNodes[0]}),l=Me(e),c=te({fileId:l==null?void 0:l.avatarFileId,imageSize:"small"});useEffect(()=>{a&&(s!=null&&s.isIntersecting)&&(r==null||r());},[a,s==null?void 0:s.isIntersecting,r]);let p=useCallback((g,h)=>{h&&(g.target.parentNode.style.cursor="not-allowed",g.target.parentNode.style["pointer-events"]="none");},[]);return J.createElement(tB,{ref:o?a:null,"data-qa-anchor":"social-mention-item",focused:t,isBanned:l==null?void 0:l.isGlobalBanned,maxWidth:(f=i==null?void 0:i.current)==null?void 0:f.clientWidth,onMouseEnter:g=>p(g,l==null?void 0:l.isGlobalBanned)},J.createElement(ve,{avatar:c}),J.createElement(oB,null,l==null?void 0:l.displayName),J.createElement("div",{style:{marginLeft:"0.5rem"}},l!=null&&l.isGlobalBanned?J.createElement(Sr,null):null))},cf=rB;var dB=m.div`
652
652
  position: relative;
653
653
  display: flex;
654
654
  flex-wrap: wrap;
@@ -707,7 +707,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
707
707
  ${zp}
708
708
  resize: vertical;
709
709
  }
710
- `,yB=forwardRef(({"data-qa-anchor":e="",id:t,name:o="",value:r="",placeholder:n="",multiline:i=!1,disabled:a=!1,invalid:s=!1,rows:l=1,maxRows:c=3,prepend:p,append:u,onChange:f,onClear:g,onClick:h,onKeyPress:C,className:y,mentionAllowed:x=!1,queryMentionees:v,loadMoreMentionees:_},M)=>{let[b,w]=useState([]),T=useRef(null),k=useRef(null),N=(G,[,],O,ee)=>{var H;let X=O.split(" ").pop(),L=((H=X==null?void 0:X[0])==null?void 0:H.match(/^@/g))||!1;f({text:G.target.value,plainText:O,lastMentionText:L?X:void 0,mentions:ee});},F=G=>{G.key==="Backspace"&&(r==null?void 0:r.length)===0&&(g==null||g());},Z=lo(y,{disabled:a,invalid:s}),$={id:t,name:o,value:r,placeholder:n,disabled:a,className:Z,"data-qa-anchor":e};return J.createElement(dB,{ref:k,className:Z},p,J.createElement("div",{ref:T,id:"mention-input"}),i&&x&&J.createElement(gB,S(d({allowSuggestionsAboveCursor:!0,inputRef:M,rows:l,style:uB},$),{onKeyDown:G=>F(G),onChange:N,onClick:h,onKeyPress:G=>C==null?void 0:C(G)}),J.createElement(Mention,{trigger:"@",data:(G,O)=>{if(!v)return O([]);v(G).then(ee=>{O(ee);});},style:fB,renderSuggestion:({id:G},O,ee,X,L)=>{var H;return J.createElement(cf,{focused:L,id:typeof G=="number"?`${G}`:G,isLastItem:G===((H=b[b.length-1])==null?void 0:H.id),containerRef:k,rootEl:T,loadMore:()=>_==null?void 0:_(O)})},displayTransform:(G,O)=>`@${O}`,appendSpaceOnAdd:!0,onAdd:()=>{}})),i?!x&&J.createElement(pB,S(d({ref:M,minRows:l,maxRows:c},$),{onChange:G=>f==null?void 0:f({text:G.target.value,plainText:G.target.value,lastMentionText:"",mentions:[]}),onKeyDown:G=>F(G),onClick:h})):J.createElement(cB,S(d({ref:M},$),{onChange:G=>f==null?void 0:f({text:G.target.value,plainText:G.target.value,lastMentionText:"",mentions:[]}),onKeyDown:G=>F(G),onClick:h})),u)}),uf=yB;var vB=forwardRef((e,t)=>J.createElement(uf,S(d({},e),{ref:t}))),wt=vB;var ff=m(ve)`
710
+ `,yB=forwardRef(({"data-qa-anchor":e="",id:t,name:o="",value:r="",placeholder:n="",multiline:i=!1,disabled:a=!1,invalid:s=!1,rows:l=1,maxRows:c=3,prepend:p,append:u,onChange:f,onClear:g,onClick:h,onKeyPress:C,className:y,mentionAllowed:x=!1,queryMentionees:v,loadMoreMentionees:_},M)=>{let[b,I]=useState([]),T=useRef(null),k=useRef(null),N=(G,[,],O,ee)=>{var H;let X=O.split(" ").pop(),L=((H=X==null?void 0:X[0])==null?void 0:H.match(/^@/g))||!1;f({text:G.target.value,plainText:O,lastMentionText:L?X:void 0,mentions:ee});},F=G=>{G.key==="Backspace"&&(r==null?void 0:r.length)===0&&(g==null||g());},Z=lo(y,{disabled:a,invalid:s}),$={id:t,name:o,value:r,placeholder:n,disabled:a,className:Z,"data-qa-anchor":e};return J.createElement(dB,{ref:k,className:Z},p,J.createElement("div",{ref:T,id:"mention-input"}),i&&x&&J.createElement(gB,S(d({allowSuggestionsAboveCursor:!0,inputRef:M,rows:l,style:uB},$),{onKeyDown:G=>F(G),onChange:N,onClick:h,onKeyPress:G=>C==null?void 0:C(G)}),J.createElement(Mention,{trigger:"@",data:(G,O)=>{if(!v)return O([]);v(G).then(ee=>{O(ee);});},style:fB,renderSuggestion:({id:G},O,ee,X,L)=>{var H;return J.createElement(cf,{focused:L,id:typeof G=="number"?`${G}`:G,isLastItem:G===((H=b[b.length-1])==null?void 0:H.id),containerRef:k,rootEl:T,loadMore:()=>_==null?void 0:_(O)})},displayTransform:(G,O)=>`@${O}`,appendSpaceOnAdd:!0,onAdd:()=>{}})),i?!x&&J.createElement(pB,S(d({ref:M,minRows:l,maxRows:c},$),{onChange:G=>f==null?void 0:f({text:G.target.value,plainText:G.target.value,lastMentionText:"",mentions:[]}),onKeyDown:G=>F(G),onClick:h})):J.createElement(cB,S(d({ref:M},$),{onChange:G=>f==null?void 0:f({text:G.target.value,plainText:G.target.value,lastMentionText:"",mentions:[]}),onKeyDown:G=>F(G),onClick:h})),u)}),uf=yB;var vB=forwardRef((e,t)=>J.createElement(uf,S(d({},e),{ref:t}))),wt=vB;var ff=m(ve)`
711
711
  margin-right: 8px;
712
712
  `,gf=m.div`
713
713
  padding-top: 16px;
@@ -725,7 +725,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
725
725
  height: 40px;
726
726
  padding: 10px 16px;
727
727
  margin-left: 12px;
728
- `;var wB=30,_B=5e4,MB=({className:e,userToReply:t,onSubmit:o,postId:r})=>{let n=Oo(r),{currentUserId:i}=ne(),{info:a}=ue(),s=Me(i),l=te({fileId:s==null?void 0:s.avatarFileId,imageSize:"small"}),{text:c,markup:p,mentions:u,mentionees:f,metadata:g,onChange:h,queryMentionees:C}=Ho({targetId:n==null?void 0:n.targetId,targetType:n==null?void 0:n.targetType}),{formatMessage:y}=useIntl(),x=useRef(null);useEffect(()=>{var w;(w=x.current)==null||w.focus();},[]);let v=()=>{if(c!==""){if(u&&(u==null?void 0:u.length)>wB)return a({title:J.createElement(FormattedMessage,{id:"CommentComposeBar.unableToMention"}),content:J.createElement(FormattedMessage,{id:"CommentComposeBar.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"CommentComposeBar.okText"})});if((c==null?void 0:c.length)>_B)return a({title:J.createElement(FormattedMessage,{id:"CommentComposeBar.unableToPost"}),content:J.createElement(FormattedMessage,{id:"CommentComposeBar.overCharacter"}),okText:J.createElement(FormattedMessage,{id:"CommentComposeBar.done"})});o==null||o(c,f,g);}},_=c==="",M=t?y({id:"CommentComposeBar.replayTo"})+t:y({id:"CommentComposeBar.saySomething"}),b=y(t?{id:"reply"}:{id:"CommentComposeBar.addComment"});return J.createElement(gf,{className:e},J.createElement(ff,{avatar:l,backgroundImage:Ve}),J.createElement(yf,{ref:x,"data-qa-anchor":"comment-compose-bar-textarea",placeholder:M,value:p,multiline:!0,mentionAllowed:!0,queryMentionees:C,onChange:w=>h==null?void 0:h(w),onKeyPress:w=>w.key==="Enter"&&v()}),J.createElement(hf,{"data-qa-anchor":t?"comment-compose-bar-reply-button":"comment-compose-bar-add-comment-button",disabled:_,onClick:v},b))},wn=e=>{let t=V("CommentComposerBar");return t?t(e):J.createElement(MB,d({},e))};var Cf=m.div`
728
+ `;var wB=30,_B=5e4,MB=({className:e,userToReply:t,onSubmit:o,postId:r})=>{let n=Oo(r),{currentUserId:i}=ne(),{info:a}=ue(),s=Me(i),l=te({fileId:s==null?void 0:s.avatarFileId,imageSize:"small"}),{text:c,markup:p,mentions:u,mentionees:f,metadata:g,onChange:h,queryMentionees:C}=Ho({targetId:n==null?void 0:n.targetId,targetType:n==null?void 0:n.targetType}),{formatMessage:y}=useIntl(),x=useRef(null);useEffect(()=>{var I;(I=x.current)==null||I.focus();},[]);let v=()=>{if(c!==""){if(u&&(u==null?void 0:u.length)>wB)return a({title:J.createElement(FormattedMessage,{id:"CommentComposeBar.unableToMention"}),content:J.createElement(FormattedMessage,{id:"CommentComposeBar.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"CommentComposeBar.okText"})});if((c==null?void 0:c.length)>_B)return a({title:J.createElement(FormattedMessage,{id:"CommentComposeBar.unableToPost"}),content:J.createElement(FormattedMessage,{id:"CommentComposeBar.overCharacter"}),okText:J.createElement(FormattedMessage,{id:"CommentComposeBar.done"})});o==null||o(c,f,g);}},_=c==="",M=t?y({id:"CommentComposeBar.replayTo"})+t:y({id:"CommentComposeBar.saySomething"}),b=y(t?{id:"reply"}:{id:"CommentComposeBar.addComment"});return J.createElement(gf,{className:e},J.createElement(ff,{avatar:l,backgroundImage:Ve}),J.createElement(yf,{ref:x,"data-qa-anchor":"comment-compose-bar-textarea",placeholder:M,value:p,multiline:!0,mentionAllowed:!0,queryMentionees:C,onChange:I=>h==null?void 0:h(I),onKeyPress:I=>I.key==="Enter"&&v()}),J.createElement(hf,{"data-qa-anchor":t?"comment-compose-bar-reply-button":"comment-compose-bar-add-comment-button",disabled:_,onClick:v},b))},wn=e=>{let t=V("CommentComposerBar");return t?t(e):J.createElement(MB,d({},e))};var Cf=m.div`
729
729
  color: ${({theme:e})=>e.palette.neutral.shade1};
730
730
  ${({theme:e})=>e.typography.body}
731
731
  `,vf=m.div`
@@ -769,7 +769,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
769
769
  &:hover {
770
770
  text-decoration: underline;
771
771
  }
772
- `;var HB=e=>J.createElement(OB,S(d({},e),{options:{render:({attributes:t,content:o})=>{let i=t,{href:r}=i,n=I(i,["href"]);return J.createElement(kf,d({target:"blank",rel:"noopener noreferrer",href:r},n),o)}}})),Pa=HB;var a2="top",Sa="right",sr="bottom",S1="left",UB=(e="bottom")=>e===sr?"top: 100%;":e===S1?"left: 0px;":e===Sa?"right: 0px;":"bottom: 100%;",s2=UB;var $B=(e=!1)=>{let[t,o]=useState(e),r=useRef(null);return useEffect(()=>{let n=r.current;if(n){let i=a=>{o(n.contains(a.target)||document.activeElement===n||a.target===n);};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)}},[r.current]),[r,t]},T1=$B;var qB=(e,t)=>{useEffect(()=>{if(e){let o=new MutationObserver(()=>{let{height:r,width:n}=e.getBoundingClientRect();t({height:r,width:n});});return o.observe(e,{attributes:!0,childList:!0,subtree:!0}),()=>o.disconnect()}},[t,e]);},Af=qB;var KB=()=>{let e=useRef(null),[t,o]=useState({height:0,width:0});return useEffect(()=>{let r=e.current;if(r){let{height:n,width:i}=r.getBoundingClientRect(),a=[n,i].every(l=>l!==void 0),s=n!==t.height||i!==t.width;a&&s&&o({height:n,width:i});}},[e]),Af(e.current,o),[e,t.height,t.width]},Ta=KB;var Bf=m.div`
772
+ `;var HB=e=>J.createElement(OB,S(d({},e),{options:{render:({attributes:t,content:o})=>{let i=t,{href:r}=i,n=w(i,["href"]);return J.createElement(kf,d({target:"blank",rel:"noopener noreferrer",href:r},n),o)}}})),Pa=HB;var a2="top",Sa="right",sr="bottom",T1="left",UB=(e="bottom")=>e===sr?"top: 100%;":e===T1?"left: 0px;":e===Sa?"right: 0px;":"bottom: 100%;",s2=UB;var $B=(e=!1)=>{let[t,o]=useState(e),r=useRef(null);return useEffect(()=>{let n=r.current;if(n){let i=a=>{o(n.contains(a.target)||document.activeElement===n||a.target===n);};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)}},[r.current]),[r,t]},N1=$B;var qB=(e,t)=>{useEffect(()=>{if(e){let o=new MutationObserver(()=>{let{height:r,width:n}=e.getBoundingClientRect();t({height:r,width:n});});return o.observe(e,{attributes:!0,childList:!0,subtree:!0}),()=>o.disconnect()}},[t,e]);},Af=qB;var KB=()=>{let e=useRef(null),[t,o]=useState({height:0,width:0});return useEffect(()=>{let r=e.current;if(r){let{height:n,width:i}=r.getBoundingClientRect(),a=[n,i].every(l=>l!==void 0),s=n!==t.height||i!==t.width;a&&s&&o({height:n,width:i});}},[e]),Af(e.current,o),[e,t.height,t.width]},Ta=KB;var Bf=m.div`
773
773
  > *:disabled {
774
774
  cursor: default;
775
775
  background: ${({theme:e})=>e.palette.base.shade3};
@@ -792,7 +792,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
792
792
  `}
793
793
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
794
794
  border-radius: 4px;
795
- `;var Ff=200,m2=({parentContainer:e,dropdownRef:t,align:o=S1,scrollableHeight:r=Ff,position:n=sr,buttonContainerHeight:i})=>{let[a,s]=useState(n),l=_1(t.current,{root:e,rootMargin:e?`0px 0px -${Math.ceil(r*100/(e.getBoundingClientRect().height-i))}% 0px`:void 0});return useEffect(()=>{var c;(l==null?void 0:l.isIntersecting)===!1?((c=l.boundingClientRect)==null?void 0:c.top)<0?s(sr):s(a2):s(n);},[l,n]),{align:o,currentPosition:a,scrollableHeight:r}},XB=e=>J.createElement(q,d({},e),J.createElement(ir,{height:14,width:14})),RB=({"data-qa-anchor":e="",isOpen:t,renderTrigger:o=XB,children:r,position:n=sr,align:i=S1,handleClose:a,fullSized:s=!1,scrollable:l=!1,scrollableHeight:c=Ff,parentContainer:p=null,disabled:u=!1,className:f=""})=>{let[g,h]=useState(t),[C,y]=useState(n),[x,v]=T1(t),[_,M]=Ta(),b=useCallback(()=>{a?t&&a():h(!1);},[a,t]),w=_1(x.current,{root:p,rootMargin:p?`0px 0px -${Math.ceil(c*100/(p.getBoundingClientRect().height-M))}% 0px`:void 0}),T={onClick:()=>h(!g),disabled:u};return useEffect(()=>{v||b();},[b,v]),useEffect(()=>{h(t);},[t]),useEffect(()=>{var k;(w==null?void 0:w.isIntersecting)===!1?((k=w.boundingClientRect)==null?void 0:k.top)<0?y(sr):y(a2):y(n);},[w,n]),J.createElement(Lf,{ref:x,className:f},J.createElement(Bf,{ref:_},o(S(d({},T),{"data-qa-anchor":e}))),(t||g)&&J.createElement(Na,null,J.createElement(ka,{position:C,align:i,fullSized:s,scrollable:l,scrollableHeight:c},r)))},d2=RB;var Aa=m(Cn).attrs({width:16,height:16})`
795
+ `;var Ff=200,m2=({parentContainer:e,dropdownRef:t,align:o=T1,scrollableHeight:r=Ff,position:n=sr,buttonContainerHeight:i})=>{let[a,s]=useState(n),l=M1(t.current,{root:e,rootMargin:e?`0px 0px -${Math.ceil(r*100/(e.getBoundingClientRect().height-i))}% 0px`:void 0});return useEffect(()=>{var c;(l==null?void 0:l.isIntersecting)===!1?((c=l.boundingClientRect)==null?void 0:c.top)<0?s(sr):s(a2):s(n);},[l,n]),{align:o,currentPosition:a,scrollableHeight:r}},XB=e=>J.createElement(q,d({},e),J.createElement(ir,{height:14,width:14})),RB=({"data-qa-anchor":e="",isOpen:t,renderTrigger:o=XB,children:r,position:n=sr,align:i=T1,handleClose:a,fullSized:s=!1,scrollable:l=!1,scrollableHeight:c=Ff,parentContainer:p=null,disabled:u=!1,className:f=""})=>{let[g,h]=useState(t),[C,y]=useState(n),[x,v]=N1(t),[_,M]=Ta(),b=useCallback(()=>{a?t&&a():h(!1);},[a,t]),I=M1(x.current,{root:p,rootMargin:p?`0px 0px -${Math.ceil(c*100/(p.getBoundingClientRect().height-M))}% 0px`:void 0}),T={onClick:()=>h(!g),disabled:u};return useEffect(()=>{v||b();},[b,v]),useEffect(()=>{h(t);},[t]),useEffect(()=>{var k;(I==null?void 0:I.isIntersecting)===!1?((k=I.boundingClientRect)==null?void 0:k.top)<0?y(sr):y(a2):y(n);},[I,n]),J.createElement(Lf,{ref:x,className:f},J.createElement(Bf,{ref:_},o(S(d({},T),{"data-qa-anchor":e}))),(t||g)&&J.createElement(Na,null,J.createElement(ka,{position:C,align:i,fullSized:s,scrollable:l,scrollableHeight:c},r)))},d2=RB;var Aa=m(Cn).attrs({width:16,height:16})`
796
796
  cursor: pointer;
797
797
  margin-left: auto;
798
798
  `,Ba=m(Se)`
@@ -924,7 +924,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
924
924
  color: ${({theme:e})=>e.palette.base.shade2};
925
925
  border-radius: 4px;
926
926
  padding: 4px 8px 2px 0px;
927
- `,Yp=m(x1).attrs({width:18,height:18})``,Wp=m.div`
927
+ `,Yp=m(b1).attrs({width:18,height:18})``,Wp=m.div`
928
928
  display: flex;
929
929
  padding-right: 10px;
930
930
 
@@ -936,7 +936,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
936
936
  align-items: center;
937
937
  `,Kp=m.span`
938
938
  font-size: 14px;
939
- `,Jf=m(y1).attrs({width:16,height:16})`
939
+ `,Jf=m(h1).attrs({width:16,height:16})`
940
940
  margin-right: 5px;
941
941
  `,Xf=m(Se)``,Rf=m.div`
942
942
  display: flex;
@@ -954,7 +954,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
954
954
  border-radius: 4px;
955
955
  resize: none;
956
956
  ${({theme:e})=>e.typography.global}
957
- `;var cL=8,pL=({text:e,className:t,mentionees:o,maxLines:r=cL})=>{let[n,i]=useState(!1),a=useMemo(()=>i2(e||"",Ym(o)),[o,e]),s=()=>i(!0),l=e?J.createElement(Zf,{"data-qa-anchor":"comment-content",className:t},J.createElement(og.Atom,null,a.map(c=>{let p=`${e}-${c.start}-${c.end}`,u=e.substring(c.start,c.end);if(c.highlight){let f=o==null?void 0:o.find(g=>g.index===c.start);return f?J.createElement(n2,{key:p,mentionee:f},u):J.createElement("span",{key:p},u)}return J.createElement(Pa,{key:p},u)}))):null;return n?l:l?J.createElement(og,{lines:r,ellipsis:J.createElement(Yf,{onClick:s},J.createElement(FormattedMessage,{id:"comment.readmore"}))},l):null},Jp=pL;var yL=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","CommentRepository","isCommentFlaggedByMe",e],queryFn:()=>CommentRepository.isCommentFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{o(!0),yield CommentRepository.flagComment(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{o(!1),yield CommentRepository.unflagComment(e);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagComment:a,unflagComment:s,toggleFlagComment:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},rg=yL;var xL=({commentId:e,canDelete:t=!1,canEdit:o=!1,canReport:r=!0,handleReportComment:n,startEditing:i,handleDelete:a,isReplyComment:s,onClose:l,buttonContainerHeight:c})=>{let{formatMessage:p}=useIntl(),u=Ce(),f=useRef(null),{currentPosition:g,align:h,scrollableHeight:C}=m2({dropdownRef:f,buttonContainerHeight:c}),{isFlaggedByMe:y,toggleFlagComment:x}=rg(e),v=()=>P(void 0,null,function*(){try{yield x(),n==null||n(),y?u.success({content:p({id:"report.unreportSent"})}):u.success({content:p({id:"report.reportSent"})});}catch(M){M instanceof Error&&u.error({content:M.message});}}),_=[o?{name:p(s?{id:"reply.edit"}:{id:"comment.edit"}),action:i}:null,r?{name:p(y?{id:"report.undoReport"}:{id:"report.doReport"}),action:v}:null,t?{name:p(s?{id:"reply.delete"}:{id:"comment.delete"}),action:a}:null].filter(Ue);return J.createElement(Hf,{ref:f},J.createElement(Na,null,J.createElement(ka,{position:g,align:h,scrollableHeight:C},_.map(({name:M,action:b})=>J.createElement(La,{key:M,"data-qa-anchor":`post-options-button-${M}`,onClick:()=>{b==null||b(),l();}},M)))))},bL=e=>{let {commentId:t,authorName:o,authorAvatar:r,canLike:n=!0,canReply:i=!1,createdAt:a,editedAt:s,text:l,markup:c,onClickReply:p,handleEdit:u,startEditing:f,cancelEditing:g,isEditing:h,onChange:C,queryMentionees:y,isBanned:x,mentionees:v,onClickUser:_}=e;useIntl();let [b,w]=useState(!1),[T,k]=Ta(),N=()=>w(F=>!F);return useEffect(()=>(b?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[b]),J.createElement(J.Fragment,null,J.createElement(Uf,{onClick:_,avatar:r,backgroundImage:Ve}),J.createElement(Gf,null,J.createElement(og,{ellipsis:J.createElement("span",null,"...",J.createElement(Zp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(qp,null,J.createElement(FormattedMessage,{id:"comment.edited"}))),lines:2},J.createElement($f,null,J.createElement(qf,{onClick:_},o),J.createElement(og.Atom,null,J.createElement(J.Fragment,null,x&&J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}),J.createElement(Zp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(qp,null,J.createElement(FormattedMessage,{id:"comment.edited"})))))),h?J.createElement(Rf,null,J.createElement(tg,{multiline:!0,mentionAllowed:!0,value:c,queryMentionees:y,onChange:F=>C==null?void 0:C(F)}),J.createElement(eg,null,J.createElement(q,{"data-qa-anchor":"comment-cancel-edit-button",onClick:g},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(de,{"data-qa-anchor":"comment-save-edit-button",onClick:()=>u==null?void 0:u(l)},J.createElement(FormattedMessage,{id:"save"})))):J.createElement(Jp,{text:l,mentionees:v}),!h&&(n||i)&&J.createElement(Wf,null,n&&J.createElement(Nf,{commentId:t}),i&&J.createElement(Xf,{"data-qa-anchor":"comment-reply-button",onClick:p},J.createElement(Jf,null)," ",J.createElement(FormattedMessage,{id:"reply"})),J.createElement(Of,null,J.createElement("div",{ref:T},J.createElement(Ba,{onClick:F=>{F.stopPropagation(),N();}},J.createElement(Aa,null))),b&&J.createElement(xL,S(d({},e),{onClose:N,onEditCommentClick:()=>f(),buttonContainerHeight:k}))))))},ag=bL;var p2=m.div.attrs(({progress:e})=>({style:{width:`${e||0}%`}}))`
957
+ `;var cL=8,pL=({text:e,className:t,mentionees:o,maxLines:r=cL})=>{let[n,i]=useState(!1),a=useMemo(()=>i2(e||"",Ym(o)),[o,e]),s=()=>i(!0),l=e?J.createElement(Zf,{"data-qa-anchor":"comment-content",className:t},J.createElement(og.Atom,null,a.map(c=>{let p=`${e}-${c.start}-${c.end}`,u=e.substring(c.start,c.end);if(c.highlight){let f=o==null?void 0:o.find(g=>g.index===c.start);return f?J.createElement(n2,{key:p,mentionee:f},u):J.createElement("span",{key:p},u)}return J.createElement(Pa,{key:p},u)}))):null;return n?l:l?J.createElement(og,{lines:r,ellipsis:J.createElement(Yf,{onClick:s},J.createElement(FormattedMessage,{id:"comment.readmore"}))},l):null},Jp=pL;var yL=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","CommentRepository","isCommentFlaggedByMe",e],queryFn:()=>CommentRepository.isCommentFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{o(!0),yield CommentRepository.flagComment(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{o(!1),yield CommentRepository.unflagComment(e);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagComment:a,unflagComment:s,toggleFlagComment:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},rg=yL;var xL=({commentId:e,canDelete:t=!1,canEdit:o=!1,canReport:r=!0,handleReportComment:n,startEditing:i,handleDelete:a,isReplyComment:s,onClose:l,buttonContainerHeight:c})=>{let{formatMessage:p}=useIntl(),u=Ce(),f=useRef(null),{currentPosition:g,align:h,scrollableHeight:C}=m2({dropdownRef:f,buttonContainerHeight:c}),{isFlaggedByMe:y,toggleFlagComment:x}=rg(e),v=()=>P(void 0,null,function*(){try{yield x(),n==null||n(),y?u.success({content:p({id:"report.unreportSent"})}):u.success({content:p({id:"report.reportSent"})});}catch(M){M instanceof Error&&u.error({content:M.message});}}),_=[o?{name:p(s?{id:"reply.edit"}:{id:"comment.edit"}),action:i}:null,r?{name:p(y?{id:"report.undoReport"}:{id:"report.doReport"}),action:v}:null,t?{name:p(s?{id:"reply.delete"}:{id:"comment.delete"}),action:a}:null].filter(Ue);return J.createElement(Hf,{ref:f},J.createElement(Na,null,J.createElement(ka,{position:g,align:h,scrollableHeight:C},_.map(({name:M,action:b})=>J.createElement(La,{key:M,"data-qa-anchor":`post-options-button-${M}`,onClick:()=>{b==null||b(),l();}},M)))))},bL=e=>{let {commentId:t,authorName:o,authorAvatar:r,canLike:n=!0,canReply:i=!1,createdAt:a,editedAt:s,text:l,markup:c,onClickReply:p,handleEdit:u,startEditing:f,cancelEditing:g,isEditing:h,onChange:C,queryMentionees:y,isBanned:x,mentionees:v,onClickUser:_}=e;useIntl();let [b,I]=useState(!1),[T,k]=Ta(),N=()=>I(F=>!F);return useEffect(()=>(b?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[b]),J.createElement(J.Fragment,null,J.createElement(Uf,{onClick:_,avatar:r,backgroundImage:Ve}),J.createElement(Gf,null,J.createElement(og,{ellipsis:J.createElement("span",null,"...",J.createElement(Zp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(qp,null,J.createElement(FormattedMessage,{id:"comment.edited"}))),lines:2},J.createElement($f,null,J.createElement(qf,{onClick:_},o),J.createElement(og.Atom,null,J.createElement(J.Fragment,null,x&&J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}),J.createElement(Zp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(qp,null,J.createElement(FormattedMessage,{id:"comment.edited"})))))),h?J.createElement(Rf,null,J.createElement(tg,{multiline:!0,mentionAllowed:!0,value:c,queryMentionees:y,onChange:F=>C==null?void 0:C(F)}),J.createElement(eg,null,J.createElement(q,{"data-qa-anchor":"comment-cancel-edit-button",onClick:g},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(de,{"data-qa-anchor":"comment-save-edit-button",onClick:()=>u==null?void 0:u(l)},J.createElement(FormattedMessage,{id:"save"})))):J.createElement(Jp,{text:l,mentionees:v}),!h&&(n||i)&&J.createElement(Wf,null,n&&J.createElement(Nf,{commentId:t}),i&&J.createElement(Xf,{"data-qa-anchor":"comment-reply-button",onClick:p},J.createElement(Jf,null)," ",J.createElement(FormattedMessage,{id:"reply"})),J.createElement(Of,null,J.createElement("div",{ref:T},J.createElement(Ba,{onClick:F=>{F.stopPropagation(),N();}},J.createElement(Aa,null))),b&&J.createElement(xL,S(d({},e),{onClose:N,onEditCommentClick:()=>f(),buttonContainerHeight:k}))))))},ag=bL;var p2=m.div.attrs(({progress:e})=>({style:{width:`${e||0}%`}}))`
958
958
  background: ${({lightMode:e,theme:t})=>e?t.palette.primary.main:t.palette.base.shade4};
959
959
  position: absolute;
960
960
  left: 0;
@@ -973,10 +973,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
973
973
  opacity: 0.75;
974
974
  }
975
975
  }
976
- `;function _L({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Ap(),[s,l]=useState(null),[c,p]=useState(void 0),[u,f]=useState(!1),[g,h]=useState(null),C=useRef(null),y=useCallback(v=>{n&&t!=null&&(f(v.loading),v.data&&l(v.data),p(v.origin),h(v.error),o(v));},[n,o]);useEffect(()=>(i&&(C.current=subscribeTopic(i())),()=>{var v;(v=C.current)==null||v.call(C);}),[i]),useEffect(()=>{if(t==null||!n)return;let{unsubscribe:v}=a({fetcher:e,params:t,callback:y,options:r});return ()=>{v();}},[t,n]);let x=useCallback(()=>{if(t==null)return;C.current&&C.current();let{unsubscribe:v}=a({fetcher:e,params:t,callback:y,refresh:!0});return C.current=v,()=>v()},[]);return {item:s,origin:c,isLoading:u||s==null&&g==null,error:g,refresh:x}}var Ni=_L;var Ae=({userId:e,shouldCall:t=!0})=>{let i=Ni({fetcher:UserRepository.getUser,params:e,shouldCall:!!e&&t}),{item:o,refresh:r}=i,n=I(i,["item","refresh"]);return d({user:o,refresh:r},n)};var SL="global-admin",{COMMUNITY_MODERATOR:TL,CHANNEL_MODERATOR:NL,MODERATOR:kL,SUPER_MODERATOR:EL}=xn,lr=e=>{if(!(e!=null&&e.length))return !1;let t=[TL,NL,kL,EL];return e.some(o=>t.includes(o))},E1=e=>e!=null&&e.length?e.includes(SL):!1;var AL=(e,t=!1,o=[])=>{let{currentUserId:r}=ne(),n=(e==null?void 0:e.userId)===r,i=!!(e!=null&&e.parentId);return {canDelete:!t&&n||lr(o),canEdit:!t&&n,canLike:!t,canReply:!t&&!i,canReport:!t&&!n}},f2=AL;var DL=5,VL=()=>J.createElement(Qf,{"data-qa-anchor":"comment-deleted-comment"},J.createElement(Wp,null,J.createElement(Yp,null)),J.createElement(Qp,null,J.createElement(Kp,{"data-qa-anchor":"comment-deleted-comment-text"},J.createElement(FormattedMessage,{id:"comment.deleted"})))),OL=()=>J.createElement("div",null,J.createElement(Kf,{"data-qa-anchor":"reply-deleted-reply"},J.createElement(Wp,{className:"reply"},J.createElement(Yp,null)),J.createElement(Qp,null,J.createElement(Kp,{"data-qa-anchor":"reply-deleted-reply-text"},J.createElement(FormattedMessage,{id:"reply.deleted"})))));function mg(e){var t;return e==null?"":typeof e.data=="string"?e.data:((t=e==null?void 0:e.data)==null?void 0:t.text)||""}var HL=({commentId:e,readonly:t})=>{var D;let{onClickUser:o}=Q(),r=r2(e),n=Oo(r==null?void 0:r.referenceId),{confirm:i}=ue(),a=Ce(),{user:s,refresh:l}=Ae({userId:r==null?void 0:r.userId}),c=at(s==null?void 0:s.avatarFileId),{userRoles:p}=ne(),[u,f]=useState(!1),[g,h]=useState(!1),{formatMessage:C}=useIntl(),[y,x]=useState(!1),{text:v,markup:_,mentions:M,onChange:b,queryMentionees:w,resetState:T,clearAll:k}=Ho({targetId:n==null?void 0:n.targetId,targetType:n==null?void 0:n.targetType,remoteText:mg(r),remoteMarkup:Qm(mg(r),(r==null?void 0:r.metadata)||{})});useEffect(()=>{l();},[]);let{canDelete:N,canEdit:F,canLike:Z,canReply:$,canReport:G}=f2(r,t,p);if(n==null&&r==null)return J.createElement(p2,null);let O=(W,ae,me)=>P(void 0,null,function*(){if(!(!(r!=null&&r.referenceType)||!(r!=null&&r.referenceId)))try{let{referenceType:ye,referenceId:it}=r;yield CommentRepository.createComment({referenceType:ye,referenceId:it,data:{text:W},parentId:e,metadata:me,mentionees:ae}),f(!1),x(!0);}catch(ye){ye instanceof Error&&ye.message===In.CONTAIN_BLOCKED_WORD&&a.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),ee=(W,ae,me)=>P(void 0,null,function*(){return e&&CommentRepository.updateComment(e,{data:{text:W},metadata:me,mentionees:ae})}),X=()=>P(void 0,null,function*(){return e&&CommentRepository.deleteComment(e)}),L=()=>{f(W=>!W);},H=()=>{h(!0);},K=()=>{h(!1),T();},Y=()=>{let{metadata:W,mentionees:ae}=Wm(M);ee(v,ae,W),k(),h(!1);},pe=!!(r!=null&&r.parentId),z=()=>{i({"data-qa-anchor":"delete-comment",title:J.createElement(FormattedMessage,{id:pe?"reply.delete":"comment.delete"}),content:J.createElement(FormattedMessage,{id:pe?"reply.deleteBody":"comment.deleteBody"}),cancelText:C({id:"comment.deleteConfirmCancelText"}),okText:C({id:"comment.deleteConfirmOkText"}),onOk:X});};if(r==null)return null;if(r!=null&&r.isDeleted)return pe?J.createElement(OL,null):J.createElement($p,null,J.createElement(VL,null));let E=J.createElement(ag,{commentId:r==null?void 0:r.commentId,authorName:(s==null?void 0:s.displayName)||(s==null?void 0:s.userId)||C({id:"anonymous"}),authorAvatar:c==null?void 0:c.fileUrl,canDelete:N,canEdit:F,canLike:Z,canReply:$,canReport:G,isBanned:s==null?void 0:s.isGlobalBanned,createdAt:r!=null&&r.createdAt?new Date(r.createdAt):void 0,editedAt:r!=null&&r.editedAt?new Date(r==null?void 0:r.editedAt):void 0,mentionees:(D=r==null?void 0:r.metadata)==null?void 0:D.mentioned,metadata:r==null?void 0:r.metadata,text:v,markup:_,startEditing:H,cancelEditing:K,handleEdit:Y,handleDelete:z,isEditing:g,queryMentionees:w,isReplyComment:pe,onClickReply:L,onChange:b,onClickUser:()=>o(r.userId)});return pe?J.createElement(jf,{"data-qa-anchor":"reply"},E):J.createElement($p,null,J.createElement(zf,{"data-qa-anchor":"comment"},E),r.children.length>0&&J.createElement(B1,{parentId:r.commentId,referenceType:r.referenceType,referenceId:r.referenceId,readonly:t,isExpanded:y,limit:DL}),u&&J.createElement(wn,{postId:n==null?void 0:n.postId,userToReply:s==null?void 0:s.displayName,onSubmit:(W,ae,me)=>{O(W,ae,me);}}))},dg=memo(e=>{let t=V("Comment");return t?t(e):J.createElement(HL,d({},e))});var t3=m(w0).attrs({height:"16px",width:"16px"})``,o3=m.div`
976
+ `;function _L({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Ap(),[s,l]=useState(null),[c,p]=useState(void 0),[u,f]=useState(!1),[g,h]=useState(null),C=useRef(null),y=useCallback(v=>{n&&t!=null&&(f(v.loading),v.data&&l(v.data),p(v.origin),h(v.error),o(v));},[n,o]);useEffect(()=>(i&&(C.current=subscribeTopic(i())),()=>{var v;(v=C.current)==null||v.call(C);}),[i]),useEffect(()=>{if(t==null||!n)return;let{unsubscribe:v}=a({fetcher:e,params:t,callback:y,options:r});return ()=>{v();}},[t,n]);let x=useCallback(()=>{if(t==null)return;C.current&&C.current();let{unsubscribe:v}=a({fetcher:e,params:t,callback:y,refresh:!0});return C.current=v,()=>v()},[]);return {item:s,origin:c,isLoading:u||s==null&&g==null,error:g,refresh:x}}var Ni=_L;var Ae=({userId:e,shouldCall:t=!0})=>{let i=Ni({fetcher:UserRepository.getUser,params:e,shouldCall:!!e&&t}),{item:o,refresh:r}=i,n=w(i,["item","refresh"]);return d({user:o,refresh:r},n)};var SL="global-admin",{COMMUNITY_MODERATOR:TL,CHANNEL_MODERATOR:NL,MODERATOR:kL,SUPER_MODERATOR:EL}=xn,lr=e=>{if(!(e!=null&&e.length))return !1;let t=[TL,NL,kL,EL];return e.some(o=>t.includes(o))},A1=e=>e!=null&&e.length?e.includes(SL):!1;var AL=(e,t=!1,o=[])=>{let{currentUserId:r}=ne(),n=(e==null?void 0:e.userId)===r,i=!!(e!=null&&e.parentId);return {canDelete:!t&&n||lr(o),canEdit:!t&&n,canLike:!t,canReply:!t&&!i,canReport:!t&&!n}},f2=AL;var DL=5,VL=()=>J.createElement(Qf,{"data-qa-anchor":"comment-deleted-comment"},J.createElement(Wp,null,J.createElement(Yp,null)),J.createElement(Qp,null,J.createElement(Kp,{"data-qa-anchor":"comment-deleted-comment-text"},J.createElement(FormattedMessage,{id:"comment.deleted"})))),OL=()=>J.createElement("div",null,J.createElement(Kf,{"data-qa-anchor":"reply-deleted-reply"},J.createElement(Wp,{className:"reply"},J.createElement(Yp,null)),J.createElement(Qp,null,J.createElement(Kp,{"data-qa-anchor":"reply-deleted-reply-text"},J.createElement(FormattedMessage,{id:"reply.deleted"})))));function mg(e){var t;return e==null?"":typeof e.data=="string"?e.data:((t=e==null?void 0:e.data)==null?void 0:t.text)||""}var HL=({commentId:e,readonly:t})=>{var D;let{onClickUser:o}=Q(),r=r2(e),n=Oo(r==null?void 0:r.referenceId),{confirm:i}=ue(),a=Ce(),{user:s,refresh:l}=Ae({userId:r==null?void 0:r.userId}),c=st(s==null?void 0:s.avatarFileId),{userRoles:p}=ne(),[u,f]=useState(!1),[g,h]=useState(!1),{formatMessage:C}=useIntl(),[y,x]=useState(!1),{text:v,markup:_,mentions:M,onChange:b,queryMentionees:I,resetState:T,clearAll:k}=Ho({targetId:n==null?void 0:n.targetId,targetType:n==null?void 0:n.targetType,remoteText:mg(r),remoteMarkup:Qm(mg(r),(r==null?void 0:r.metadata)||{})});useEffect(()=>{l();},[]);let{canDelete:N,canEdit:F,canLike:Z,canReply:$,canReport:G}=f2(r,t,p);if(n==null&&r==null)return J.createElement(p2,null);let O=(W,ae,me)=>P(void 0,null,function*(){if(!(!(r!=null&&r.referenceType)||!(r!=null&&r.referenceId)))try{let{referenceType:ye,referenceId:at}=r;yield CommentRepository.createComment({referenceType:ye,referenceId:at,data:{text:W},parentId:e,metadata:me,mentionees:ae}),f(!1),x(!0);}catch(ye){ye instanceof Error&&ye.message===In.CONTAIN_BLOCKED_WORD&&a.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),ee=(W,ae,me)=>P(void 0,null,function*(){return e&&CommentRepository.updateComment(e,{data:{text:W},metadata:me,mentionees:ae})}),X=()=>P(void 0,null,function*(){return e&&CommentRepository.deleteComment(e)}),L=()=>{f(W=>!W);},H=()=>{h(!0);},K=()=>{h(!1),T();},Y=()=>{let{metadata:W,mentionees:ae}=Wm(M);ee(v,ae,W),k(),h(!1);},pe=!!(r!=null&&r.parentId),z=()=>{i({"data-qa-anchor":"delete-comment",title:J.createElement(FormattedMessage,{id:pe?"reply.delete":"comment.delete"}),content:J.createElement(FormattedMessage,{id:pe?"reply.deleteBody":"comment.deleteBody"}),cancelText:C({id:"comment.deleteConfirmCancelText"}),okText:C({id:"comment.deleteConfirmOkText"}),onOk:X});};if(r==null)return null;if(r!=null&&r.isDeleted)return pe?J.createElement(OL,null):J.createElement($p,null,J.createElement(VL,null));let E=J.createElement(ag,{commentId:r==null?void 0:r.commentId,authorName:(s==null?void 0:s.displayName)||(s==null?void 0:s.userId)||C({id:"anonymous"}),authorAvatar:c==null?void 0:c.fileUrl,canDelete:N,canEdit:F,canLike:Z,canReply:$,canReport:G,isBanned:s==null?void 0:s.isGlobalBanned,createdAt:r!=null&&r.createdAt?new Date(r.createdAt):void 0,editedAt:r!=null&&r.editedAt?new Date(r==null?void 0:r.editedAt):void 0,mentionees:(D=r==null?void 0:r.metadata)==null?void 0:D.mentioned,metadata:r==null?void 0:r.metadata,text:v,markup:_,startEditing:H,cancelEditing:K,handleEdit:Y,handleDelete:z,isEditing:g,queryMentionees:I,isReplyComment:pe,onClickReply:L,onChange:b,onClickUser:()=>o(r.userId)});return pe?J.createElement(jf,{"data-qa-anchor":"reply"},E):J.createElement($p,null,J.createElement(zf,{"data-qa-anchor":"comment"},E),r.children.length>0&&J.createElement(L1,{parentId:r.commentId,referenceType:r.referenceType,referenceId:r.referenceId,readonly:t,isExpanded:y,limit:DL}),u&&J.createElement(wn,{postId:n==null?void 0:n.postId,userToReply:s==null?void 0:s.displayName,onSubmit:(W,ae,me)=>{O(W,ae,me);}}))},dg=memo(e=>{let t=V("Comment");return t?t(e):J.createElement(HL,d({},e))});var t3=m(w0).attrs({height:"16px",width:"16px"})``,o3=m.div`
977
977
  display: flex;
978
978
  margin-right: 8px;
979
- `;var L1=m(q)`
979
+ `;var F1=m(q)`
980
980
  width: 100%;
981
981
  &.text-center {
982
982
  justify-content: center;
@@ -1009,7 +1009,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1009
1009
  }
1010
1010
  `,cg=m(ir).attrs({width:14,height:14})`
1011
1011
  margin-left: 5px;
1012
- `;var GL=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=J.createElement(cg,null),isExpanded:s=!0})=>{let{formatMessage:l}=useIntl(),[c,p]=useState(s);return useEffect(()=>p(s),[s]),c?J.createElement(J.Fragment,null,r,e&&J.createElement(L1,{className:n,onClick:t},i," ",o||l({id:"loadMore"})," ",a)):c?null:J.createElement(J.Fragment,null,J.createElement(L1,{className:n,onClick:()=>p(!0)},i," ",o||l({id:"loadMore"})," ",a))},$t=GL;function qL({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=()=>!0}){let{subscribe:i}=hp(),[a,s]=useState(!1),[l,c]=useState(n?n():!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),x=useCallback(()=>{var _;y.current&&(s(!0),(_=y.current)==null||_.call(y));},[y,a,l,c]),v=useCallback(_=>{n()&&(_.data&&u(_.data),c(_.loading),C(_.hasNextPage),g(_.error),y.current=_.onNextPage,o(_));},[n,u,c,C,y,o]);return useEffect(()=>{if(!n())return;let{unsubscribe:_}=i({fetcher:e,params:t,callback:v});return ()=>{_();}},[t,n]),{items:p,hasMore:h,isLoading:l,loadMore:x,error:f,loadMoreHasBeenCalled:a}}var Pe=qL;function r3({parentId:e,referenceId:t,referenceType:o,limit:r=10}){let a=Pe({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r},shouldCall:()=>!!t&&!!o}),{items:n}=a,i=I(a,["items"]);return d({comments:n},i)}var n3=({parentId:e,referenceId:t,referenceType:o,limit:r=5,readonly:n=!1,isExpanded:i=!0,callLoadMoreAgain:a=!1})=>{let[s,l]=useState(!a),{formatMessage:c}=useIntl(),p=!!e,{comments:u,hasMore:f,loadMore:g}=r3({parentId:e,referenceId:t,referenceType:o,limit:r});useEffect(()=>{s&&u.length>0&&f&&(g(),l(!1));},[u,f,g,s]);let h=c(p?{id:"collapsible.viewMoreReplies"}:{id:"collapsible.viewMoreComments"}),C=p?J.createElement(o3,null,J.createElement(t3,null)):null;return u.length===0?null:J.createElement($t,{hasMore:f,loadMore:g,text:h,className:p?"reply-button":"comments-button",prependIcon:C,appendIcon:null,isExpanded:i,contentSlot:u.map(y=>J.createElement(dg,{key:y.commentId,commentId:y.commentId,readonly:n}))})},KL=e=>J.createElement(n3,S(d({},e),{callLoadMoreAgain:!0})),JL=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=J.createElement(o3,null,J.createElement(t3,null));return t?J.createElement(n3,S(d({},e),{isExpanded:!0})):J.createElement(L1,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewMoreReplies"}))},XL=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?J.createElement(JL,d({},e)):t==="post"&&!r?J.createElement(KL,d({},e)):J.createElement(n3,d({},e))},B1=memo(XL);var yg=5,RL=({post:e,readonly:t,onClickComment:o,isComposeBarDisplayed:r,handleAddComment:n})=>{let{postId:i,targetType:a,targetId:s,reactions:l={},commentsCount:c,latestComments:p}=e,u=l[mo]||0;return J.createElement(Cf,null,J.createElement(vf,null,u>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},gg(u||0)," ",J.createElement(FormattedMessage,{id:"plural.like",values:{amount:u}})),c>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},gg(c||0)," ",J.createElement(FormattedMessage,{id:"plural.comment",values:{amount:c}}))),t?J.createElement(J.Fragment,null,J.createElement(If,null,J.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:yg,readonly:!0}):null):J.createElement(J.Fragment,null,J.createElement(xf,null,J.createElement(of,{postId:i}),J.createElement(Se,{"data-qa-anchor":"engagement-bar-comment-button",onClick:o},J.createElement(bf,null)," ",J.createElement(FormattedMessage,{id:"comment"}))),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:yg}):null,r&&J.createElement(wn,{postId:i,onSubmit:(f,g,h)=>n==null?void 0:n(f,g,h)})))},hg=e=>{let t=V("UIEngagementBar");return t?t(e):J.createElement(RL,d({},e))};var nF=({postId:e,readonly:t=!1})=>{let[o,r]=useState(!1),n=Ce(),i=()=>r(p=>!p),a=()=>r(!1),s=Oo(e),{clearAll:l}=Ho({targetType:s==null?void 0:s.targetType,targetId:s==null?void 0:s.targetId});return s?J.createElement(hg,{post:s,readonly:t,isComposeBarDisplayed:o,handleAddComment:(p,u,f)=>P(void 0,null,function*(){try{yield CommentRepository.createComment({referenceType:"post",referenceId:e,data:{text:p},mentionees:u,metadata:f}),l==null||l(),a();}catch(g){g instanceof Error&&g.message===In.CONTAIN_BLOCKED_WORD&&n.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),onClickComment:i}):null};var a3=memo(e=>{let t=V("EngagementBar");return t?t(e):J.createElement(nF,d({},e))});var iF=m.div`
1012
+ `;var GL=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=J.createElement(cg,null),isExpanded:s=!0})=>{let{formatMessage:l}=useIntl(),[c,p]=useState(s);return useEffect(()=>p(s),[s]),c?J.createElement(J.Fragment,null,r,e&&J.createElement(F1,{className:n,onClick:t},i," ",o||l({id:"loadMore"})," ",a)):c?null:J.createElement(J.Fragment,null,J.createElement(F1,{className:n,onClick:()=>p(!0)},i," ",o||l({id:"loadMore"})," ",a))},$t=GL;function qL({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=()=>!0}){let{subscribe:i}=hp(),[a,s]=useState(!1),[l,c]=useState(n?n():!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),x=useCallback(()=>{var _;y.current&&(s(!0),(_=y.current)==null||_.call(y));},[y,a,l,c]),v=useCallback(_=>{n()&&(_.data&&u(_.data),c(_.loading),C(_.hasNextPage),g(_.error),y.current=_.onNextPage,o(_));},[n,u,c,C,y,o]);return useEffect(()=>{if(!n())return;let{unsubscribe:_}=i({fetcher:e,params:t,callback:v});return ()=>{_();}},[t,n]),{items:p,hasMore:h,isLoading:l,loadMore:x,error:f,loadMoreHasBeenCalled:a}}var Pe=qL;function r3({parentId:e,referenceId:t,referenceType:o,limit:r=10}){let a=Pe({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r},shouldCall:()=>!!t&&!!o}),{items:n}=a,i=w(a,["items"]);return d({comments:n},i)}var n3=({parentId:e,referenceId:t,referenceType:o,limit:r=5,readonly:n=!1,isExpanded:i=!0,callLoadMoreAgain:a=!1})=>{let[s,l]=useState(!a),{formatMessage:c}=useIntl(),p=!!e,{comments:u,hasMore:f,loadMore:g}=r3({parentId:e,referenceId:t,referenceType:o,limit:r});useEffect(()=>{s&&u.length>0&&f&&(g(),l(!1));},[u,f,g,s]);let h=c(p?{id:"collapsible.viewMoreReplies"}:{id:"collapsible.viewMoreComments"}),C=p?J.createElement(o3,null,J.createElement(t3,null)):null;return u.length===0?null:J.createElement($t,{hasMore:f,loadMore:g,text:h,className:p?"reply-button":"comments-button",prependIcon:C,appendIcon:null,isExpanded:i,contentSlot:u.map(y=>J.createElement(dg,{key:y.commentId,commentId:y.commentId,readonly:n}))})},KL=e=>J.createElement(n3,S(d({},e),{callLoadMoreAgain:!0})),JL=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=J.createElement(o3,null,J.createElement(t3,null));return t?J.createElement(n3,S(d({},e),{isExpanded:!0})):J.createElement(F1,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewMoreReplies"}))},XL=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?J.createElement(JL,d({},e)):t==="post"&&!r?J.createElement(KL,d({},e)):J.createElement(n3,d({},e))},L1=memo(XL);var yg=5,RL=({post:e,readonly:t,onClickComment:o,isComposeBarDisplayed:r,handleAddComment:n})=>{let{postId:i,targetType:a,targetId:s,reactions:l={},commentsCount:c,latestComments:p}=e,u=l[mo]||0;return J.createElement(Cf,null,J.createElement(vf,null,u>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},gg(u||0)," ",J.createElement(FormattedMessage,{id:"plural.like",values:{amount:u}})),c>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},gg(c||0)," ",J.createElement(FormattedMessage,{id:"plural.comment",values:{amount:c}}))),t?J.createElement(J.Fragment,null,J.createElement(If,null,J.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?J.createElement(L1,{referenceId:i,referenceType:"post",limit:yg,readonly:!0}):null):J.createElement(J.Fragment,null,J.createElement(xf,null,J.createElement(of,{postId:i}),J.createElement(Se,{"data-qa-anchor":"engagement-bar-comment-button",onClick:o},J.createElement(bf,null)," ",J.createElement(FormattedMessage,{id:"comment"}))),e.commentsCount>0?J.createElement(L1,{referenceId:i,referenceType:"post",limit:yg}):null,r&&J.createElement(wn,{postId:i,onSubmit:(f,g,h)=>n==null?void 0:n(f,g,h)})))},hg=e=>{let t=V("UIEngagementBar");return t?t(e):J.createElement(RL,d({},e))};var nF=({postId:e,readonly:t=!1})=>{let[o,r]=useState(!1),n=Ce(),i=()=>r(p=>!p),a=()=>r(!1),s=Oo(e),{clearAll:l}=Ho({targetType:s==null?void 0:s.targetType,targetId:s==null?void 0:s.targetId});return s?J.createElement(hg,{post:s,readonly:t,isComposeBarDisplayed:o,handleAddComment:(p,u,f)=>P(void 0,null,function*(){try{yield CommentRepository.createComment({referenceType:"post",referenceId:e,data:{text:p},mentionees:u,metadata:f}),l==null||l(),a();}catch(g){g instanceof Error&&g.message===In.CONTAIN_BLOCKED_WORD&&n.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),onClickComment:i}):null};var a3=memo(e=>{let t=V("EngagementBar");return t?t(e):J.createElement(nF,d({},e))});var iF=m.div`
1013
1013
  position: relative;
1014
1014
  width: 100%;
1015
1015
  height: 0;
@@ -1305,9 +1305,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1305
1305
  left: 50%;
1306
1306
  transform: translate(-50%, -50%);
1307
1307
  z-index: 3;
1308
- `,O1=m.div`
1308
+ `,H1=m.div`
1309
1309
  display: flex;
1310
- `;var NF=({className:e,"data-qa-anchor":t="",url:o,progress:r,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,onRetry:l,overlayElements:c})=>{let[p,u]=useState(!1),f=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),g=useCallback(h=>{h.preventDefault(),h.stopPropagation(),l&&l();},[l]);return J.createElement(h2,{className:e,border:!i,"data-qa-anchor":t},J.createElement(Mg,null,o?J.createElement(Sg,{src:o,mediaFit:n,className:s?"darken":void 0,onError:()=>u(!0)}):J.createElement(C2,null),J.createElement(O1,null,(!!s||p)&&J.createElement(Ng,{onClick:g}),!!a&&J.createElement(Tg,{onClick:f}),c)),!Number.isNaN(r)&&J.createElement(Da,{progress:(r||0)*100}))},v2=NF;var EF=({className:e,"data-qa-anchor":t="",file:o,progress:r=-1,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,retry:l=()=>{},overlayElements:c})=>{if(o==null)return null;let p=URL.createObjectURL(o);return J.createElement(v2,{className:e,"data-qa-anchor":t,url:p,progress:r,mediaFit:n,noBorder:i,isRejected:s,overlayElements:c,onRemove:a,onRetry:()=>l()})},Eg=EF;var BF=({className:e,"data-qa-anchor":t="",fileId:o,loading:r=!1,mediaFit:n="cover",noBorder:i,onRemove:a,overlayElements:s=void 0})=>{let l=te({fileId:o});return r||l==null?null:J.createElement(v2,{className:e,"data-qa-anchor":t,url:l,mediaFit:n,noBorder:i,overlayElements:s,onRemove:a})},Ag=BF;function st(e){return "fileId"in e?J.createElement(Ag,d({},e)):"file"in e?J.createElement(Eg,d({},e)):null}var y3=({item:e})=>J.createElement(st,{key:e==null?void 0:e.data.fileId,fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-thumbnail-item",mediaFit:"cover"}),h3=({item:e})=>J.createElement(st,{fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-item",mediaFit:"contain",noBorder:!0});var x2=m(e=>J.createElement("div",d({},e),"LIVE"))`
1310
+ `;var NF=({className:e,"data-qa-anchor":t="",url:o,progress:r,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,onRetry:l,overlayElements:c})=>{let[p,u]=useState(!1),f=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),g=useCallback(h=>{h.preventDefault(),h.stopPropagation(),l&&l();},[l]);return J.createElement(h2,{className:e,border:!i,"data-qa-anchor":t},J.createElement(Mg,null,o?J.createElement(Sg,{src:o,mediaFit:n,className:s?"darken":void 0,onError:()=>u(!0)}):J.createElement(C2,null),J.createElement(H1,null,(!!s||p)&&J.createElement(Ng,{onClick:g}),!!a&&J.createElement(Tg,{onClick:f}),c)),!Number.isNaN(r)&&J.createElement(Da,{progress:(r||0)*100}))},v2=NF;var EF=({className:e,"data-qa-anchor":t="",file:o,fileUrl:r,progress:n=-1,mediaFit:i,noBorder:a,onRemove:s,isRejected:l,retry:c=()=>{},overlayElements:p})=>{if(o==null&&!r)return null;let u=r!=null?r:URL.createObjectURL(o);return J.createElement(v2,{className:e,"data-qa-anchor":t,url:u,progress:n,mediaFit:i,noBorder:a,isRejected:l,overlayElements:p,onRemove:s,onRetry:()=>c()})},Eg=EF;var BF=({className:e,"data-qa-anchor":t="",fileId:o,loading:r=!1,mediaFit:n="cover",noBorder:i,onRemove:a,overlayElements:s=void 0})=>{let l=te({fileId:o});return r||l==null?null:J.createElement(v2,{className:e,"data-qa-anchor":t,url:l,mediaFit:n,noBorder:i,overlayElements:s,onRemove:a})},Ag=BF;function lt(e){return "fileId"in e&&e.fileId?J.createElement(Ag,d({},e)):"file"in e||e.fileUrl?J.createElement(Eg,d({},e)):null}var y3=({item:e})=>J.createElement(lt,{key:e==null?void 0:e.data.fileId,fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-thumbnail-item",mediaFit:"cover"}),h3=({item:e})=>J.createElement(lt,{fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-item",mediaFit:"contain",noBorder:!0});var x2=m(e=>J.createElement("div",d({},e),"LIVE"))`
1311
1311
  display: inline-block;
1312
1312
  padding: 0.25rem 0.5rem;
1313
1313
  background: ${({theme:e})=>e.palette.tertiary.main};
@@ -1337,7 +1337,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1337
1337
  height: 100%;
1338
1338
  object-fit: ${({mediaFit:e})=>e!=null?e:"cover"};
1339
1339
  object-position: center;
1340
- `,DF=J.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=I(a,["src","mimeType","mediaFit"]);return J.createElement("video",S(d({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),J.createElement("source",{src:e,type:t}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))}),Vg=m(DF)`
1340
+ `,DF=J.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=w(a,["src","mimeType","mediaFit"]);return J.createElement("video",S(d({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),J.createElement("source",{src:e,type:t}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))}),Vg=m(DF)`
1341
1341
  ${Dg}
1342
1342
  cursor: pointer;
1343
1343
  `,VF=m.div`
@@ -1371,7 +1371,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1371
1371
  position: absolute;
1372
1372
  top: 1rem;
1373
1373
  left: 1rem;
1374
- `;var jF=({url:e,progress:t=-1,mediaFit:o,noBorder:r,onRemove:n,isRejected:i,onRetry:a,mimeType:s,autoPlay:l,isLive:c})=>{let p=useCallback(h=>{h.preventDefault(),h.stopPropagation(),n&&n();},[n]),u=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),[f,g]=useState(null);return useEffect(()=>{if(!(!f||!e||!e.includes("m3u8"))&&!(f!=null&&f.canPlayType("application/vnd.apple.mpegurl"))&&H1.isSupported()){let h=new H1;return h.loadSource(e),h.attachMedia(f),h.on(H1.Events.ERROR,(C,y)=>{if(y.fatal)switch(y.type){case H1.ErrorTypes.NETWORK_ERROR:h.startLoad();break;case H1.ErrorTypes.MEDIA_ERROR:h.recoverMediaError();break;}}),()=>h.destroy()}},[f,c,e]),J.createElement(Yr,{border:!r},J.createElement(Fg,null,e?J.createElement(Vg,{key:e,ref:h=>g(h),className:i?"darken":void 0,mediaFit:o,mimeType:s,src:e,autoPlay:l}):J.createElement(Og,null),J.createElement(zg,null,c&&J.createElement(jg,null),!!i&&J.createElement(Ug,{onClick:u}),!!n&&J.createElement(Hg,{onClick:p}))),!Number.isNaN(t)&&J.createElement(Da,{progress:(t||0)*100}))},Va=jF;var $F=o=>{var r=o,{file:e}=r,t=I(r,["file"]);if(e==null)return null;let n=URL.createObjectURL(e);return J.createElement(Va,d({url:n},t))},$g=$F;var qF=o=>{var r=o,{fileId:e}=r,t=I(r,["fileId"]);let n=at(e);if(n==null)return null;let i=(()=>{if(n.status===e2.Transcoded){let{videoUrl:a}=n;return (a==null?void 0:a["1080p"])||(a==null?void 0:a["720p"])||(a==null?void 0:a["480p"])||(a==null?void 0:a["360p"])||(a==null?void 0:a.original)||n.fileUrl}return n.fileUrl})();return J.createElement(Va,d({url:i,mimeType:O7},t))},Zg=qF;function Qr(e){return "fileId"in e?J.createElement(Zg,d({},e)):"file"in e?J.createElement($g,d({},e)):null}var Qg=m(q).attrs({variant:"secondary",children:J.createElement(ft,null)})`
1374
+ `;var jF=({url:e,progress:t=-1,mediaFit:o,noBorder:r,onRemove:n,isRejected:i,onRetry:a,mimeType:s,autoPlay:l,isLive:c})=>{let p=useCallback(h=>{h.preventDefault(),h.stopPropagation(),n&&n();},[n]),u=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),[f,g]=useState(null);return useEffect(()=>{if(!(!f||!e||!e.includes("m3u8"))&&!(f!=null&&f.canPlayType("application/vnd.apple.mpegurl"))&&U1.isSupported()){let h=new U1;return h.loadSource(e),h.attachMedia(f),h.on(U1.Events.ERROR,(C,y)=>{if(y.fatal)switch(y.type){case U1.ErrorTypes.NETWORK_ERROR:h.startLoad();break;case U1.ErrorTypes.MEDIA_ERROR:h.recoverMediaError();break;}}),()=>h.destroy()}},[f,c,e]),J.createElement(Yr,{border:!r},J.createElement(Fg,null,e?J.createElement(Vg,{key:e,ref:h=>g(h),className:i?"darken":void 0,mediaFit:o,mimeType:s,src:e,autoPlay:l}):J.createElement(Og,null),J.createElement(zg,null,c&&J.createElement(jg,null),!!i&&J.createElement(Ug,{onClick:u}),!!n&&J.createElement(Hg,{onClick:p}))),!Number.isNaN(t)&&J.createElement(Da,{progress:(t||0)*100}))},Va=jF;var $F=o=>{var r=o,{file:e}=r,t=w(r,["file"]);if(e==null)return null;let n=URL.createObjectURL(e);return J.createElement(Va,d({url:n},t))},$g=$F;var qF=o=>{var r=o,{fileId:e}=r,t=w(r,["fileId"]);let n=st(e);if(n==null)return null;let i=(()=>{if(n.status===e2.Transcoded){let{videoUrl:a}=n;return (a==null?void 0:a["1080p"])||(a==null?void 0:a["720p"])||(a==null?void 0:a["480p"])||(a==null?void 0:a["360p"])||(a==null?void 0:a.original)||n.fileUrl}return n.fileUrl})();return J.createElement(Va,d({url:i,mimeType:O7},t))},Zg=qF;function Qr(e){return "fileId"in e?J.createElement(Zg,d({},e)):"file"in e?J.createElement($g,d({},e)):null}var Qg=m(q).attrs({variant:"secondary",children:J.createElement(ft,null)})`
1375
1375
  position: absolute;
1376
1376
  top: 0.5em;
1377
1377
  right: 0.5em;
@@ -1403,9 +1403,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1403
1403
  && {
1404
1404
  ${({theme:e})=>e.typography.caption}
1405
1405
  }
1406
- `,KF=({className:e,duration:t=0,fileId:o,onRemove:r,overlayElements:n,showPlayIcon:i})=>{let{formatNumber:a}=useIntl(),s=l=>{let c=Math.floor(l/60/60),p=a(c,{minimumIntegerDigits:2,maximumSignificantDigits:2}),u=a(Math.floor(l/60%60),{minimumIntegerDigits:2,maximumSignificantDigits:2}),f=Math.round(l%60%60),g=a(f,{minimumIntegerDigits:2,maximumSignificantDigits:2});return c===0?`${u}:${g}`:`${p}:${u}:${g}`};return o?J.createElement(st,{"data-qa-anchor":"post-gallery-content-thumbnail",className:e,fileId:o,mediaFit:"cover",overlayElements:J.createElement(J.Fragment,null,n,i&&J.createElement(Yg,{"data-qa-anchor":"post-gallery-content-play-button"}),t!=null?J.createElement(Wg,null,s(t)):null),onRemove:r}):J.createElement(h2,{"data-qa-anchor":"post-gallery-content-thumbnail",className:e},J.createElement(O1,null,n,i&&J.createElement(Yg,{"data-qa-anchor":"post-gallery-content-play-button"}),t!=null?J.createElement(Wg,null,s(t)):null,!!r&&J.createElement(Qg,{onClick:l=>{l.preventDefault(),l.stopPropagation(),r();}})))},U1=m(KF)`
1406
+ `,KF=({className:e,duration:t=0,fileId:o,fileUrl:r,onRemove:n,overlayElements:i,showPlayIcon:a})=>{let{formatNumber:s}=useIntl(),l=c=>{let p=Math.floor(c/60/60),u=s(p,{minimumIntegerDigits:2,maximumSignificantDigits:2}),f=s(Math.floor(c/60%60),{minimumIntegerDigits:2,maximumSignificantDigits:2}),g=Math.round(c%60%60),h=s(g,{minimumIntegerDigits:2,maximumSignificantDigits:2});return p===0?`${f}:${h}`:`${u}:${f}:${h}`};return o||r?J.createElement(lt,{"data-qa-anchor":"post-gallery-content-thumbnail",className:e,fileId:o,fileUrl:r,mediaFit:"cover",overlayElements:J.createElement(J.Fragment,null,i,a&&J.createElement(Yg,{"data-qa-anchor":"post-gallery-content-play-button"}),t!=null?J.createElement(Wg,null,l(t)):null),onRemove:n}):J.createElement(h2,{"data-qa-anchor":"post-gallery-content-thumbnail",className:e},J.createElement(H1,null,i,a&&J.createElement(Yg,{"data-qa-anchor":"post-gallery-content-play-button"}),t!=null?J.createElement(Wg,null,l(t)):null,!!n&&J.createElement(Qg,{onClick:c=>{c.preventDefault(),c.stopPropagation(),n();}})))},Oa=m(KF)`
1407
1407
  background: #ebecef;
1408
- `,b2=r=>{var n=r,{fileId:e,videoFileId:t}=n,o=I(n,["fileId","videoFileId"]);var l,c,p,u,f;let i=at(e),a=at(t),s=typeof((p=(c=(l=a==null?void 0:a.attributes)==null?void 0:l.metadata)==null?void 0:c.video)==null?void 0:p.duration)=="number"?((f=(u=a==null?void 0:a.attributes)==null?void 0:u.metadata)==null?void 0:f.video).duration:void 0;return i==null?null:J.createElement(U1,S(d({},o),{duration:s,fileId:e}))},JF=m.div`
1408
+ `,b2=r=>{var n=r,{fileId:e,videoFileId:t}=n,o=w(n,["fileId","videoFileId"]);var l,c,p,u,f;let i=st(e),a=st(t),s=typeof((p=(c=(l=a==null?void 0:a.attributes)==null?void 0:l.metadata)==null?void 0:c.video)==null?void 0:p.duration)=="number"?((f=(u=a==null?void 0:a.attributes)==null?void 0:u.metadata)==null?void 0:f.video).duration:void 0;if(!i){let g=sessionStorage.getItem("thumbnail_"+t);return g?J.createElement(Oa,S(d({},o),{duration:s,fileUrl:g})):null}return J.createElement(Oa,S(d({},o),{duration:s,fileId:e}))},JF=m.div`
1409
1409
  position: absolute;
1410
1410
  top: 50%;
1411
1411
  right: 0;
@@ -1413,7 +1413,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1413
1413
  transform: translateY(-50%);
1414
1414
  padding-bottom: 56%;
1415
1415
  background: #000;
1416
- `,XF=o=>{var r=o,{children:e}=r,t=I(r,["children"]);return J.createElement("div",d({},t),J.createElement(JF,null,e))},z1=m(XF)`
1416
+ `,XF=o=>{var r=o,{children:e}=r,t=w(r,["children"]);return J.createElement("div",d({},t),J.createElement(JF,null,e))},z1=m(XF)`
1417
1417
  position: relative;
1418
1418
  width: 100%;
1419
1419
  height: 100%;
@@ -1430,7 +1430,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1430
1430
  transform: translateY(-50%);
1431
1431
  color: #fff;
1432
1432
  }
1433
- `,Kg=({children:e,className:t,onRemove:o})=>J.createElement(Yr,{className:t},J.createElement(Tn,null,e),J.createElement(O1,null,!!o&&J.createElement(Qg,{onClick:r=>{r.preventDefault(),r.stopPropagation(),o();}})));var Ei=({item:e,showPlayIcon:t,showVideoDuration:o})=>J.createElement(b2,{key:e==null?void 0:e.data.thumbnailFileId,fileId:e==null?void 0:e.data.thumbnailFileId,showPlayIcon:t,videoFileId:o&&(e==null?void 0:e.data.videoFileId.original)}),C3=({item:e})=>{let t=(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original);return t?J.createElement(Qr,{fileId:t,mediaFit:"contain",noBorder:!0}):J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(FormattedMessage,{id:"video.notReady"}))))};var rD=e=>{let[t,o]=useState(null);return useEffect(()=>{e!=null&&StreamRepository.getStreamById(e,({data:r})=>{o(r);});},[e]),t},j1=rD;var Xg=m(Ut)`
1433
+ `,Kg=({children:e,className:t,onRemove:o})=>J.createElement(Yr,{className:t},J.createElement(Tn,null,e),J.createElement(H1,null,!!o&&J.createElement(Qg,{onClick:r=>{r.preventDefault(),r.stopPropagation(),o();}})));var Ei=({item:e,showPlayIcon:t,showVideoDuration:o})=>J.createElement(b2,{key:e==null?void 0:e.data.thumbnailFileId,fileId:e==null?void 0:e.data.thumbnailFileId,showPlayIcon:t,videoFileId:o&&(e==null?void 0:e.data.videoFileId.original)}),C3=({item:e})=>{let t=(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original);return t?J.createElement(Qr,{fileId:t,mediaFit:"contain",noBorder:!0}):J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(FormattedMessage,{id:"video.notReady"}))))};var rD=e=>{let[t,o]=useState(null);return useEffect(()=>{e!=null&&StreamRepository.getStreamById(e,({data:r})=>{o(r);});},[e]),t},j1=rD;var Xg=m(Ut)`
1434
1434
  && {
1435
1435
  font-size: 24px;
1436
1436
  }
@@ -1452,7 +1452,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1452
1452
  overflow: hidden;
1453
1453
  `,t9=m.div`
1454
1454
  margin-top: 0.5rem;
1455
- `,nD=e=>J.createElement(U1,S(d({},e),{overlayElements:J.createElement(Tn,null,J.createElement(Xg,null),J.createElement(t9,null,J.createElement(FormattedMessage,{id:"liveStream.idle"})))})),o9=m(nD)`
1455
+ `,nD=e=>J.createElement(Oa,S(d({},e),{overlayElements:J.createElement(Tn,null,J.createElement(Xg,null),J.createElement(t9,null,J.createElement(FormattedMessage,{id:"liveStream.idle"})))})),o9=m(nD)`
1456
1456
  background: #000;
1457
1457
  `,r9=m.div`
1458
1458
  && {
@@ -1461,9 +1461,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1461
1461
  `,n9=m.div`
1462
1462
  margin: 2px auto 0 auto;
1463
1463
  max-width: 15.5rem;
1464
- `,iD=e=>J.createElement(U1,S(d({},e),{overlayElements:J.createElement(Tn,null,J.createElement(r9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),J.createElement(n9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.message"})))})),i9=m(iD)`
1464
+ `,iD=e=>J.createElement(Oa,S(d({},e),{overlayElements:J.createElement(Tn,null,J.createElement(r9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),J.createElement(n9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.message"})))})),i9=m(iD)`
1465
1465
  background: #000;
1466
- `,a9=m(U1)`
1466
+ `,a9=m(Oa)`
1467
1467
  background: center / 90% no-repeat ${b6} #d9dcec;
1468
1468
  `,aD=e=>J.createElement("div",d({},e),"RECORDED"),s9=m(aD)`
1469
1469
  display: inline-block;
@@ -1471,7 +1471,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1471
1471
  background: rgba(0, 0, 0, 0.7);
1472
1472
  border-radius: 0.25rem;
1473
1473
  color: #fff;
1474
- `,l9=()=>J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(Xg,null),J.createElement(t9,null,J.createElement(FormattedMessage,{id:"liveStream.idle"}))))),m9=()=>J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(r9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),J.createElement(n9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.message"})))));function sD(e){var t,o,r,n;if(e.status==="live")return (o=(t=e.watcherUrl)==null?void 0:t.hls)==null?void 0:o.url;if(e.status==="recorded")return (n=(r=e==null?void 0:e.recordings)==null?void 0:r.find(i=>i.mp4))==null?void 0:n.mp4.url}var Ai=({item:e,showPlayIcon:t,showLivestreamRecordedBadge:o,showLivestreamTitle:r})=>{var s;let n=j1(e==null?void 0:e.data.streamId),i=at(n==null?void 0:n.thumbnailFileId);if(n==null)return null;if(n.status==="idle"||n.isDeleted)return J.createElement(o9,null);if(n.status==="ended")return J.createElement(i9,null);let a=(s=n.recordings.find(l=>l.mp4))==null?void 0:s.mp4;return J.createElement(a9,{key:n.streamId,duration:a==null?void 0:a.duration,fileId:i==null?void 0:i.fileId,overlayElements:J.createElement(Rg,null,n.status==="live"&&J.createElement(x2,null),o&&n.status==="recorded"&&J.createElement(s9,null),r&&n.title&&J.createElement(e9,null,n.title)),showPlayIcon:t})},v3=({item:e})=>{var o;let t=j1((o=e==null?void 0:e.data)==null?void 0:o.streamId);return t==null?null:t.status==="idle"||t.isDeleted?J.createElement(l9,null):t.status==="ended"?J.createElement(m9,null):J.createElement(Va,{isLive:t.status==="live",mediaFit:"contain",noBorder:!0,url:sD(t)})};function zo(e){return !!e.skeleton}var I2=(e,t)=>e&&t?e.hasPermission(bn.ManageStoryPermission).community(t):!1;var c9=e=>e.path.split("/user/")[0];var p9=e=>`${c9(e)}/membership/${e._id}/+/+`,u9=e=>`${c9(e)}/membership/+/${e._id}/+`;var dD=({loading:e,loadingMore:t,items:o})=>{let[r,n]=useState(null);return {newItems:useMemo(()=>e?new Array(6).fill({skeleton:!0}):t?[...o||[],...new Array(6).fill({skeleton:!0})]:o,[o,e,t]),index:r,setIndex:n}},cD=({className:e,items:t=[],loading:o=!1,loadingMore:r=!1,showCounter:n=!1,truncate:i=!1,grid:a=!1,renderVideoItem:s,renderImageItem:l,renderLiveStreamItem:c,renderVideoThumbnail:p,renderImageThumbnail:u,renderLiveStreamThumbnail:f})=>{let{newItems:g,index:h,setIndex:C}=dD({loading:o,loadingMore:r,items:t}),y=v=>{switch(v.dataType){case"image":return u?u(v):J.createElement(y3,{item:v});case"video":return p?p(v):J.createElement(Ei,{item:v});case"liveStream":return f?f(v):J.createElement(Ai,{item:v});default:return null}};return J.createElement(J.Fragment,null,J.createElement(Mn,{className:e,items:t,truncate:i,grid:a,onClick:v=>{zo(t[v])||C(v);},renderItem:v=>v.skeleton?J.createElement(C2,null):y(v)}),h!==null&&J.createElement(_g,{index:h,items:g,showCounter:n,onChange:v=>C(v),renderItem:v=>{switch(v.dataType){case"image":return l?l(v):J.createElement(h3,{item:v});case"video":return s?s(v):J.createElement(C3,{item:v});case"liveStream":return c?c(v):J.createElement(v3,{item:v});default:return null}}}))},Bi=cD;var f9={aac:f1,avi:F0,csv:D0,doc:O0,exe:H0,gif:va,html:U0,jpg:va,mov:z0,mp3:j0,mp4:G0,mpeg:Bm,ogg:f1,pdf:$0,ppt:Lm,pptx:Lm,ppx:Y0,png:va,rar:W0,txt:Q0,xls:Fm,xlsx:Fm,zip:K0,audio:f1,image:va,video:Bm},uD={pptx:["openxmlformats-officedocument.presentationml"],xlsx:["openxmlformats-officedocument.spreadsheetml.sheet"]},fD=o=>{var r=o,{file:e}=r,t=I(r,["file"]);let{name:n,type:i}=e,a=i.toLowerCase(),s=Object.entries(uD).find(([,p])=>p.find(u=>a.includes(u))),l=s?s[0]:n.slice(n.lastIndexOf(".")+1),c=l in f9?f9[l]:V0;return J.createElement(c,d({},t))},g9=fD;var y9=m.a`
1474
+ `,l9=()=>J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(Xg,null),J.createElement(t9,null,J.createElement(FormattedMessage,{id:"liveStream.idle"}))))),m9=()=>J.createElement(Yr,null,J.createElement(z1,null,J.createElement(Tn,null,J.createElement(r9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),J.createElement(n9,null,J.createElement(FormattedMessage,{id:"liveStream.ended.message"})))));function sD(e){var t,o,r,n;if(e.status==="live")return (o=(t=e.watcherUrl)==null?void 0:t.hls)==null?void 0:o.url;if(e.status==="recorded")return (n=(r=e==null?void 0:e.recordings)==null?void 0:r.find(i=>i.mp4))==null?void 0:n.mp4.url}var Ai=({item:e,showPlayIcon:t,showLivestreamRecordedBadge:o,showLivestreamTitle:r})=>{var s,l;let n=j1(e==null?void 0:e.data.streamId),i=st(n==null?void 0:n.thumbnailFileId);if(n==null)return null;if(n.status==="idle"||n.isDeleted)return J.createElement(o9,null);if(n.status==="ended")return J.createElement(i9,null);let a=(l=(s=n==null?void 0:n.recordings)==null?void 0:s.find(c=>c.mp4))==null?void 0:l.mp4;return J.createElement(a9,{key:n.streamId,duration:a==null?void 0:a.duration,fileId:i==null?void 0:i.fileId,overlayElements:J.createElement(Rg,null,n.status==="live"&&J.createElement(x2,null),o&&n.status==="recorded"&&J.createElement(s9,null),r&&n.title&&J.createElement(e9,null,n.title)),showPlayIcon:t})},v3=({item:e})=>{var o;let t=j1((o=e==null?void 0:e.data)==null?void 0:o.streamId);return t==null?null:t.status==="idle"||t.isDeleted?J.createElement(l9,null):t.status==="ended"?J.createElement(m9,null):J.createElement(Va,{isLive:t.status==="live",mediaFit:"contain",noBorder:!0,url:sD(t)})};function zo(e){return !!e.skeleton}var I2=(e,t)=>e&&t?e.hasPermission(bn.ManageStoryPermission).community(t):!1;var c9=e=>e.path.split("/user/")[0];var p9=e=>`${c9(e)}/membership/${e._id}/+/+`,u9=e=>`${c9(e)}/membership/+/${e._id}/+`;var dD=({loading:e,loadingMore:t,items:o})=>{let[r,n]=useState(null);return {newItems:useMemo(()=>e?new Array(6).fill({skeleton:!0}):t?[...o||[],...new Array(6).fill({skeleton:!0})]:o,[o,e,t]),index:r,setIndex:n}},cD=({className:e,items:t=[],loading:o=!1,loadingMore:r=!1,showCounter:n=!1,truncate:i=!1,grid:a=!1,renderVideoItem:s,renderImageItem:l,renderLiveStreamItem:c,renderVideoThumbnail:p,renderImageThumbnail:u,renderLiveStreamThumbnail:f})=>{let{newItems:g,index:h,setIndex:C}=dD({loading:o,loadingMore:r,items:t}),y=v=>{switch(v.dataType){case"image":return u?u(v):J.createElement(y3,{item:v});case"video":return p?p(v):J.createElement(Ei,{item:v});case"liveStream":return f?f(v):J.createElement(Ai,{item:v});default:return null}};return J.createElement(J.Fragment,null,J.createElement(Mn,{className:e,items:t,truncate:i,grid:a,onClick:v=>{zo(t[v])||C(v);},renderItem:v=>v.skeleton?J.createElement(C2,null):y(v)}),h!==null&&J.createElement(_g,{index:h,items:g,showCounter:n,onChange:v=>C(v),renderItem:v=>{switch(v.dataType){case"image":return l?l(v):J.createElement(h3,{item:v});case"video":return s?s(v):J.createElement(C3,{item:v});case"liveStream":return c?c(v):J.createElement(v3,{item:v});default:return null}}}))},Bi=cD;var f9={aac:g1,avi:F0,csv:D0,doc:O0,exe:H0,gif:va,html:U0,jpg:va,mov:z0,mp3:j0,mp4:G0,mpeg:Bm,ogg:g1,pdf:$0,ppt:Lm,pptx:Lm,ppx:Y0,png:va,rar:W0,txt:Q0,xls:Fm,xlsx:Fm,zip:K0,audio:g1,image:va,video:Bm},uD={pptx:["openxmlformats-officedocument.presentationml"],xlsx:["openxmlformats-officedocument.spreadsheetml.sheet"]},fD=o=>{var r=o,{file:e}=r,t=w(r,["file"]);let{name:n,type:i}=e,a=i.toLowerCase(),s=Object.entries(uD).find(([,p])=>p.find(u=>a.includes(u))),l=s?s[0]:n.slice(n.lastIndexOf(".")+1),c=l in f9?f9[l]:V0;return J.createElement(c,d({},t))},g9=fD;var y9=m.a`
1475
1475
  display: block;
1476
1476
  position: relative;
1477
1477
  border: 1px solid ${({theme:e})=>e.palette.base.shade4};
@@ -1516,7 +1516,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1516
1516
  z-index: 2;
1517
1517
  `,w9=e=>J.createElement(q,S(d({},e),{variant:"secondary"}),J.createElement(hD,{width:14,height:14})),_9=m.div`
1518
1518
  display: flex;
1519
- `;var xD=({"data-qa-anchor":e="",name:t,url:o,type:r,size:n,progress:i=-1,onRemove:a,isRejected:s,onRetry:l})=>{useIntl();let p=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),u=useCallback(h=>{h.preventDefault(),h.stopPropagation(),l&&l();},[l]),f=r==null?void 0:r.includes("image"),g=i<100;return J.createElement(y9,{href:o,download:!0,"data-qa-anchor":e},J.createElement(h9,null,f&&o?J.createElement(C9,{src:o}):J.createElement(v9,{file:{name:t,type:r},width:null,height:"100%"}),J.createElement(b9,null,t)," ",J.createElement(I9,null,CD(n||0,{base:2})),J.createElement(_9,null,!!s&&J.createElement(x9,{onClick:u}),!!a&&J.createElement(w9,{"data-qa-anchor":"uploaders-file-remove-button",onClick:p,disabled:i!==-1&&g}))),!Number.isNaN(i)&&J.createElement(Da,{progress:(i||0)*100}))},w2=xD;var ID=({"data-qa-anchor":e="",file:t,progress:o=-1,onRemove:r,isRejected:n,retry:i=()=>{}})=>{if(t==null)return null;let a=t.type.includes("image")?URL.createObjectURL(t):void 0;return J.createElement(w2,{"data-qa-anchor":e,name:t.name,size:t.size,type:t.type,url:a,progress:o,isRejected:n,onRemove:r,onRetry:()=>i()})},P9=ID;var MD=({"data-qa-anchor":e="",fileId:t,onRemove:o})=>{let r=at(t);if(!r)return null;let n=FileRepository.fileUrlWithSize(r==null?void 0:r.fileUrl,"small");return J.createElement(w2,{"data-qa-anchor":e,name:r.attributes.name,size:isNaN(Number(r.attributes.size))?0:Number(r.attributes.size),type:r.attributes.mimeType,url:n,onRemove:o})},S9=MD;function jo(e){return "fileId"in e?J.createElement(S9,d({},e)):"file"in e?J.createElement(P9,d({},e)):null}var TD=5,ND=e=>J.createElement(q,{onClick:e},J.createElement(FormattedMessage,{id:"collapsible.viewAll"})),kD=({items:e=[],onExpand:t=()=>{},visibleAmount:o=TD,renderTrigger:r=ND,renderItem:n})=>{let i=o<e.length?e.slice(0,o):e,[a,s]=useState(o>=e.length),l=()=>{s(!0),t();};return a?J.createElement(J.Fragment,null,e.map(c=>n(c))):J.createElement(J.Fragment,null,i.map(c=>n(c)),r(l))},N9=kD;var AD=m.div`
1519
+ `;var xD=({"data-qa-anchor":e="",name:t,url:o,type:r,size:n,progress:i=-1,onRemove:a,isRejected:s,onRetry:l})=>{useIntl();let p=useCallback(h=>{h.preventDefault(),h.stopPropagation(),a&&a();},[a]),u=useCallback(h=>{h.preventDefault(),h.stopPropagation(),l&&l();},[l]),f=r==null?void 0:r.includes("image"),g=i<100;return J.createElement(y9,{href:o,download:!0,"data-qa-anchor":e},J.createElement(h9,null,f&&o?J.createElement(C9,{src:o}):J.createElement(v9,{file:{name:t,type:r},width:null,height:"100%"}),J.createElement(b9,null,t)," ",J.createElement(I9,null,CD(n||0,{base:2})),J.createElement(_9,null,!!s&&J.createElement(x9,{onClick:u}),!!a&&J.createElement(w9,{"data-qa-anchor":"uploaders-file-remove-button",onClick:p,disabled:i!==-1&&g}))),!Number.isNaN(i)&&J.createElement(Da,{progress:(i||0)*100}))},w2=xD;var ID=({"data-qa-anchor":e="",file:t,progress:o=-1,onRemove:r,isRejected:n,retry:i=()=>{}})=>{if(t==null)return null;let a=t.type.includes("image")?URL.createObjectURL(t):void 0;return J.createElement(w2,{"data-qa-anchor":e,name:t.name,size:t.size,type:t.type,url:a,progress:o,isRejected:n,onRemove:r,onRetry:()=>i()})},P9=ID;var MD=({"data-qa-anchor":e="",fileId:t,onRemove:o})=>{let r=st(t);if(!r)return null;let n=FileRepository.fileUrlWithSize(r==null?void 0:r.fileUrl,"small");return J.createElement(w2,{"data-qa-anchor":e,name:r.attributes.name,size:isNaN(Number(r.attributes.size))?0:Number(r.attributes.size),type:r.attributes.mimeType,url:n,onRemove:o})},S9=MD;function jo(e){return "fileId"in e?J.createElement(S9,d({},e)):"file"in e?J.createElement(P9,d({},e)):null}var TD=5,ND=e=>J.createElement(q,{onClick:e},J.createElement(FormattedMessage,{id:"collapsible.viewAll"})),kD=({items:e=[],onExpand:t=()=>{},visibleAmount:o=TD,renderTrigger:r=ND,renderItem:n})=>{let i=o<e.length?e.slice(0,o):e,[a,s]=useState(o>=e.length),l=()=>{s(!0),t();};return a?J.createElement(J.Fragment,null,e.map(c=>n(c))):J.createElement(J.Fragment,null,i.map(c=>n(c)),r(l))},N9=kD;var AD=m.div`
1520
1520
  display: grid;
1521
1521
  grid-template-columns: 100%;
1522
1522
  grid-gap: 0.5rem;
@@ -1654,7 +1654,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1654
1654
  border-radius: 50%;
1655
1655
  }
1656
1656
  `}
1657
- `;var OD=e=>It({fetcher:PollRepository.getPoll,params:e,shouldCall:()=>!!e}),M2=OD;var jD=864e5,GD=({data:e,onCheck:t,checked:o})=>J.createElement(E9,{checked:o,onClick:t},J.createElement(D9,null,J.createElement(_2,{checked:o}),J.createElement(x3,null,e))),$D=({data:e,voteCount:t,totalVotes:o=0,isVotedByUser:r})=>{let n=t&&o?t/o*100:0;return J.createElement(A9,{checked:r},J.createElement(x3,null,e),J.createElement(O9,null,J.createElement(H9,{percentage:n,checked:r})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll.votes",values:{voteCount:t}})))},ZD=({answers:e,handleCheck:t,answerIds:o})=>J.createElement(J.Fragment,null,e.map(a=>{var s=a,{id:r,data:n}=s,i=I(s,["id","data"]);return J.createElement(GD,d({key:r,checked:o.includes(r),onCheck:()=>t(r),data:n},i))})),j9=({answers:e,totalVotes:t})=>J.createElement(J.Fragment,null,e.map(i=>{var a=i,{id:o,data:r}=a,n=I(a,["id","data"]);return J.createElement($D,S(d({key:o,data:r},n),{totalVotes:t,isVotedByUser:!1}))})),qD=({pollId:e})=>{let t=M2(e),[o,r]=useState([]),{formatMessage:n}=useIntl();if(t==null)return null;let{answers:i=[],answerType:a,closedIn:s,isDeleted:l,isVoted:c,status:p}=t,u=p==="closed",f=i.reduce((x,v)=>x+v.voteCount,0),g=a==="multiple",h=x=>{if(o.includes(x)){let v=o.findIndex(_=>_===x);r(_=>[..._.splice(0,v),..._.splice(v+1)]);}else r(g?v=>[...v,x]:[x]);},C=x=>P(void 0,null,function*(){if(e){if(x.preventDefault(),u||l)throw new Error(n({id:"poll.error.deletedOrClosed"}));yield PollRepository.votePoll(e,o);}}),y=Math.floor((s||0)/jD);return J.createElement(J.Fragment,null,J.createElement(L9,null,J.createElement(B9,null,u?J.createElement(FormattedMessage,{id:"poll.vote.finalResults"}):J.createElement(FormattedMessage,{id:"poll.vote.closedIn",values:{closedIn:y}})),J.createElement(V9,null,J.createElement(FormattedMessage,{id:"poll.votes",values:{voteCount:f}}))),u?J.createElement(j9,{answers:i}):c?J.createElement(j9,{answers:i,totalVotes:f}):J.createElement(ZD,{answers:i,handleCheck:h,answerIds:o}),!c&&J.createElement(F9,{disabled:!o.length,onClick:x=>C(x)},J.createElement(FormattedMessage,{id:"poll.vote.submit"})))},G9=qD;var $9=m(Bi)`
1657
+ `;var OD=e=>It({fetcher:PollRepository.getPoll,params:e,shouldCall:()=>!!e}),M2=OD;var jD=864e5,GD=({data:e,onCheck:t,checked:o})=>J.createElement(E9,{checked:o,onClick:t},J.createElement(D9,null,J.createElement(_2,{checked:o}),J.createElement(x3,null,e))),$D=({data:e,voteCount:t,totalVotes:o=0,isVotedByUser:r})=>{let n=t&&o?t/o*100:0;return J.createElement(A9,{checked:r},J.createElement(x3,null,e),J.createElement(O9,null,J.createElement(H9,{percentage:n,checked:r})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll.votes",values:{voteCount:t}})))},ZD=({answers:e,handleCheck:t,answerIds:o})=>J.createElement(J.Fragment,null,e.map(a=>{var s=a,{id:r,data:n}=s,i=w(s,["id","data"]);return J.createElement(GD,d({key:r,checked:o.includes(r),onCheck:()=>t(r),data:n},i))})),j9=({answers:e,totalVotes:t})=>J.createElement(J.Fragment,null,e.map(i=>{var a=i,{id:o,data:r}=a,n=w(a,["id","data"]);return J.createElement($D,S(d({key:o,data:r},n),{totalVotes:t,isVotedByUser:!1}))})),qD=({pollId:e})=>{let t=M2(e),[o,r]=useState([]),{formatMessage:n}=useIntl();if(t==null)return null;let{answers:i=[],answerType:a,closedIn:s,isDeleted:l,isVoted:c,status:p}=t,u=p==="closed",f=i.reduce((x,v)=>x+v.voteCount,0),g=a==="multiple",h=x=>{if(o.includes(x)){let v=o.findIndex(_=>_===x);r(_=>[..._.splice(0,v),..._.splice(v+1)]);}else r(g?v=>[...v,x]:[x]);},C=x=>P(void 0,null,function*(){if(e){if(x.preventDefault(),u||l)throw new Error(n({id:"poll.error.deletedOrClosed"}));yield PollRepository.votePoll(e,o);}}),y=Math.floor((s||0)/jD);return J.createElement(J.Fragment,null,J.createElement(L9,null,J.createElement(B9,null,u?J.createElement(FormattedMessage,{id:"poll.vote.finalResults"}):J.createElement(FormattedMessage,{id:"poll.vote.closedIn",values:{closedIn:y}})),J.createElement(V9,null,J.createElement(FormattedMessage,{id:"poll.votes",values:{voteCount:f}}))),u?J.createElement(j9,{answers:i}):c?J.createElement(j9,{answers:i,totalVotes:f}):J.createElement(ZD,{answers:i,handleCheck:h,answerIds:o}),!c&&J.createElement(F9,{disabled:!o.length,onClick:x=>C(x)},J.createElement(FormattedMessage,{id:"poll.vote.submit"})))},G9=qD;var $9=m(Bi)`
1658
1658
  margin-right: calc(-1rem - 1px);
1659
1659
  margin-left: calc(-1rem - 1px);
1660
1660
  width: auto;
@@ -1672,13 +1672,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1672
1672
  border: none;
1673
1673
  resize: none;
1674
1674
  font: inherit;
1675
- `,JD=({text:e,placeholder:t,onChange:o,queryMentionees:r})=>J.createElement(QD,null,J.createElement(KD,{"data-qa-anchor":"post-editor-textarea",placeholder:t,value:e,multiline:!0,mentionAllowed:!0,queryMentionees:r,onChange:o})),Y9=JD;var XD=({items:e,onRemove:t})=>J.createElement(Mn,{items:e,renderItem:o=>{var r;return J.createElement(st,{fileId:(r=o==null?void 0:o.data)==null?void 0:r.fileId,onRemove:()=>t(o.postId)})}}),Q9=XD;var tV=m(Kg)`
1675
+ `,JD=({text:e,placeholder:t,onChange:o,queryMentionees:r})=>J.createElement(QD,null,J.createElement(KD,{"data-qa-anchor":"post-editor-textarea",placeholder:t,value:e,multiline:!0,mentionAllowed:!0,queryMentionees:r,onChange:o})),Y9=JD;var XD=({items:e,onRemove:t})=>J.createElement(Mn,{items:e,renderItem:o=>{var r;return J.createElement(lt,{fileId:(r=o==null?void 0:o.data)==null?void 0:r.fileId,onRemove:()=>t(o.postId)})}}),Q9=XD;var tV=m(Kg)`
1676
1676
  background: #ebecef;
1677
1677
  `,oV=({items:e,onRemove:t})=>{let[o,r]=useState(void 0);return J.createElement(Mn,{itemKey:"postId",items:e,onClick:n=>r(e[n].postId),renderItem:n=>{if(o===n.postId){let i=n.data.videoFileId.high||n.data.videoFileId.medium||n.data.videoFileId.low||n.data.videoFileId.original;return i?J.createElement(Qr,{key:n.data.videoFileId.original,fileId:i,mediaFit:"cover",noBorder:!0,autoPlay:!0,onRemove:()=>t(n.postId)}):J.createElement(tV,{onRemove:()=>t(n.postId)},J.createElement(FormattedMessage,{id:"video.notReady"}))}return J.createElement(b2,{key:n.data.thumbnailFileId,fileId:n.data.thumbnailFileId,onRemove:()=>t(n.postId)})}})},K9=oV;var rV=m.div`
1678
1678
  & > * {
1679
1679
  margin-bottom: 12px;
1680
1680
  }
1681
- `,nV=({items:e,onRemove:t})=>J.createElement(rV,null,e.map(o=>{var r;return J.createElement(jo,{key:o.postId,fileId:(r=o==null?void 0:o.data)==null?void 0:r.fileId,onRemove:()=>t(o.postId)})})),X9=nV;var R9=["text"];function aV(e){return R9.includes(e.dataType)}function sV(e){return Array.isArray(e.data)}var lV=e=>{if(e.data==null)return null;if(sV(e)){let s=e,{onRemoveChild:p,dataType:u,data:f}=s,g=I(s,["onRemoveChild","dataType","data"]);switch(u){case"image":return J.createElement(Q9,d({items:f,onRemove:p},g));case"video":return J.createElement(K9,d({items:f,onRemove:p},g));case"file":return J.createElement(X9,d({items:f,onRemove:p},g));default:return null}}if(aV(e)){let l=e,{placeholder:p,onChangeText:u,dataType:f,data:g}=l,h=I(l,["placeholder","onChangeText","dataType","data"]);return J.createElement(Y9,d({text:g,placeholder:p||void 0,onChange:C=>u==null?void 0:u(C)},h))}let c=e,{placeholder:t,onChangeText:o,dataType:r,onRemoveChild:n,data:i}=c,a=I(c,["placeholder","onChangeText","dataType","onRemoveChild","data"]);switch(r){case"image":return J.createElement(st,d({},a));case"video":return J.createElement(Qr,d({},a));case"file":return J.createElement(jo,d({},a));default:return null}},q1=lV;var ey=m.div`
1681
+ `,nV=({items:e,onRemove:t})=>J.createElement(rV,null,e.map(o=>{var r;return J.createElement(jo,{key:o.postId,fileId:(r=o==null?void 0:o.data)==null?void 0:r.fileId,onRemove:()=>t(o.postId)})})),X9=nV;var R9=["text"];function aV(e){return R9.includes(e.dataType)}function sV(e){return Array.isArray(e.data)}var lV=e=>{if(e.data==null)return null;if(sV(e)){let s=e,{onRemoveChild:p,dataType:u,data:f}=s,g=w(s,["onRemoveChild","dataType","data"]);switch(u){case"image":return J.createElement(Q9,d({items:f,onRemove:p},g));case"video":return J.createElement(K9,d({items:f,onRemove:p},g));case"file":return J.createElement(X9,d({items:f,onRemove:p},g));default:return null}}if(aV(e)){let l=e,{placeholder:p,onChangeText:u,dataType:f,data:g}=l,h=w(l,["placeholder","onChangeText","dataType","data"]);return J.createElement(Y9,d({text:g,placeholder:p||void 0,onChange:C=>u==null?void 0:u(C)},h))}let c=e,{placeholder:t,onChangeText:o,dataType:r,onRemoveChild:n,data:i}=c,a=w(c,["placeholder","onChangeText","dataType","onRemoveChild","data"]);switch(r){case"image":return J.createElement(lt,d({},a));case"video":return J.createElement(Qr,d({},a));case"file":return J.createElement(jo,d({},a));default:return null}},q1=lV;var ey=m.div`
1682
1682
  width: 100%;
1683
1683
  padding: 0;
1684
1684
  border: none;
@@ -1694,7 +1694,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1694
1694
  `,ry=m(de)`
1695
1695
  padding: 10px 16px;
1696
1696
  margin-left: auto;
1697
- `;var pV=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)o([]);else {let n=yield PostRepository.getPostByIds(e);o(n.data);}})}r();},[e]),t},Y1=pV;var ny=({post:e,onSave:t})=>{var b,w;let o=Y1(e==null?void 0:e.children),{text:r,markup:n,mentions:i,mentionees:a,metadata:s,clearAll:l,onChange:c,queryMentionees:p}=Ho({targetId:e==null?void 0:e.targetId,targetType:e==null?void 0:e.targetType,remoteText:typeof(e==null?void 0:e.data)=="string"?e==null?void 0:e.data:(b=e==null?void 0:e.data)==null?void 0:b.text,remoteMarkup:Qm(typeof(e==null?void 0:e.data)=="string"?e==null?void 0:e.data:(w=e==null?void 0:e.data)==null?void 0:w.text,e==null?void 0:e.metadata),remoteMentions:x7(e==null?void 0:e.metadata,e==null?void 0:e.mentionees)}),[u,f]=useState([]),g=useMemo(()=>o.filter(T=>!u.includes(T.postId)),[o,u]),h=T=>{f(k=>[...k,T]);},C=T=>{if(T.dataType==="file"||T.dataType==="image")return {type:T.dataType,fileId:T.data.fileId};if(T.dataType==="video")return {type:T.dataType,fileId:T.data.videoFileId.original}},y=()=>P(void 0,null,function*(){yield PostRepository.editPost(e.postId,{data:{text:r},mentionees:a,metadata:s,attachments:g.map(C).filter(T=>!!T)}),l(),t();}),x=(r==null?void 0:r.trim())===""&&!g.length,v=useMemo(()=>g.filter(T=>T.dataType==="file"),[g]),_=useMemo(()=>g.filter(T=>T.dataType==="image"),[g]),M=useMemo(()=>g.filter(T=>T.dataType==="video"),[g]);return {text:r,markup:n,mentions:i,post:e,childrenPosts:g,clearAll:l,onChange:c,queryMentionees:p,childVideoPosts:M,childFilePosts:v,childImagePosts:_,handleRemoveChild:h,isEmpty:x,handleSave:y}};var hV=({post:e,placeholder:t="What's going on...",className:o,onSave:r})=>{let{markup:n,onChange:i,queryMentionees:a,childVideoPosts:s,childFilePosts:l,childImagePosts:c,handleRemoveChild:p,isEmpty:u,handleSave:f}=ny({post:e,onSave:r});return e==null?null:J.createElement(ey,{className:o},J.createElement(ty,null,J.createElement(q1,{"data-qa-anchor":"post-editor-textarea",data:n,dataType:"text",placeholder:t,queryMentionees:a,onChangeText:i}),c.length>0&&J.createElement(q1,{data:c,dataType:"image",onRemoveChild:p}),s.length>0&&J.createElement(q1,{data:s,dataType:"video",onRemoveChild:p}),l.length>0&&J.createElement(q1,{data:l,dataType:"file",onRemoveChild:p})),J.createElement(oy,null,J.createElement(ry,{"data-qa-anchor":"post-editor-save-button",disabled:u,onClick:f},J.createElement(FormattedMessage,{id:"save"}))))},iy=memo(hV);var ay=m.div`
1697
+ `;var pV=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)o([]);else {let n=yield PostRepository.getPostByIds(e);o(n.data);}})}r();},[e]),t},Y1=pV;var ny=({post:e,onSave:t})=>{var b,I;let o=Y1(e==null?void 0:e.children),{text:r,markup:n,mentions:i,mentionees:a,metadata:s,clearAll:l,onChange:c,queryMentionees:p}=Ho({targetId:e==null?void 0:e.targetId,targetType:e==null?void 0:e.targetType,remoteText:typeof(e==null?void 0:e.data)=="string"?e==null?void 0:e.data:(b=e==null?void 0:e.data)==null?void 0:b.text,remoteMarkup:Qm(typeof(e==null?void 0:e.data)=="string"?e==null?void 0:e.data:(I=e==null?void 0:e.data)==null?void 0:I.text,e==null?void 0:e.metadata),remoteMentions:x7(e==null?void 0:e.metadata,e==null?void 0:e.mentionees)}),[u,f]=useState([]),g=useMemo(()=>o.filter(T=>!u.includes(T.postId)),[o,u]),h=T=>{f(k=>[...k,T]);},C=T=>{if(T.dataType==="file"||T.dataType==="image")return {type:T.dataType,fileId:T.data.fileId};if(T.dataType==="video")return {type:T.dataType,fileId:T.data.videoFileId.original}},y=()=>P(void 0,null,function*(){yield PostRepository.editPost(e.postId,{data:{text:r},mentionees:a,metadata:s,attachments:g.map(C).filter(T=>!!T)}),l(),t();}),x=(r==null?void 0:r.trim())===""&&!g.length,v=useMemo(()=>g.filter(T=>T.dataType==="file"),[g]),_=useMemo(()=>g.filter(T=>T.dataType==="image"),[g]),M=useMemo(()=>g.filter(T=>T.dataType==="video"),[g]);return {text:r,markup:n,mentions:i,post:e,childrenPosts:g,clearAll:l,onChange:c,queryMentionees:p,childVideoPosts:M,childFilePosts:v,childImagePosts:_,handleRemoveChild:h,isEmpty:x,handleSave:y}};var hV=({post:e,placeholder:t="What's going on...",className:o,onSave:r})=>{let{markup:n,onChange:i,queryMentionees:a,childVideoPosts:s,childFilePosts:l,childImagePosts:c,handleRemoveChild:p,isEmpty:u,handleSave:f}=ny({post:e,onSave:r});return e==null?null:J.createElement(ey,{className:o},J.createElement(ty,null,J.createElement(q1,{"data-qa-anchor":"post-editor-textarea",data:n,dataType:"text",placeholder:t,queryMentionees:a,onChangeText:i}),c.length>0&&J.createElement(q1,{data:c,dataType:"image",onRemoveChild:p}),s.length>0&&J.createElement(q1,{data:s,dataType:"video",onRemoveChild:p}),l.length>0&&J.createElement(q1,{data:l,dataType:"file",onRemoveChild:p})),J.createElement(oy,null,J.createElement(ry,{"data-qa-anchor":"post-editor-save-button",disabled:u,onClick:f},J.createElement(FormattedMessage,{id:"save"}))))},iy=memo(hV);var ay=m.div`
1698
1698
  display: flex;
1699
1699
  align-items: center;
1700
1700
  `,sy=m.div`
@@ -1746,7 +1746,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1746
1746
  > :not(:first-child) {
1747
1747
  margin-left: 0.25rem;
1748
1748
  }
1749
- `;var vV=({avatarFileUrl:e,postAuthorName:t,postTargetName:o,timeAgo:r,isModerator:n,isEdited:i,onClickCommunity:a,onClickUser:s,hidePostTarget:l,loading:c,isBanned:p})=>{let u=V("UIPostHeader");if(u)return u({avatarFileUrl:e,postAuthorName:t,postTargetName:o,timeAgo:r,isModerator:n,isEdited:i,onClickCommunity:a,onClickUser:s,hidePostTarget:l,loading:c,isBanned:p});let f=()=>J.createElement(py,{"data-qa-anchor":"post-header-post-names"},J.createElement(og,{lines:3},J.createElement(b3,{"data-qa-anchor":"post-header-post-name",className:lo({clickable:!!s}),onClick:s},t)),p&&J.createElement(Sr,null),o&&!l&&J.createElement(J.Fragment,null,J.createElement(ly,null),J.createElement(b3,{"data-qa-anchor":"post-header-post-target-name",className:lo({clickable:!!a}),onClick:a||void 0},o))),g=()=>J.createElement(cy,{"data-qa-anchor":"post-header-additional-info",showTime:!!r},n&&J.createElement(I3,{"data-qa-anchor":"post-header-additional-info-moderator-badge"},J.createElement(my,null)," ",J.createElement(FormattedMessage,{id:"moderator"})),r&&J.createElement(c2,{"data-qa-anchor":"post-header-additional-info-time-ago",date:r.getTime()}),i&&J.createElement(dy,{"data-qa-anchor":"post-header-additional-info-edited-label"},J.createElement(FormattedMessage,{id:"post.edited"})));return J.createElement(ay,{"data-qa-anchor":"post-header"},J.createElement(ve,{"data-qa-anchor":"post-header-avatar",avatar:e,backgroundImage:Ve,loading:c,onClick:s}),J.createElement(sy,{"data-qa-anchor":"post-header-post-info"},c?J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(he,{width:96,style:{fontSize:8}})),J.createElement(he,{width:189,style:{fontSize:8}})):J.createElement(J.Fragment,null,f(),g())))},gy=vV;var bV=10;function Po({targetType:e,targetId:t,feedType:o,limit:r=bV}){let a=Pe({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:()=>!!t&&!!e}),{items:n}=a,i=I(a,["items"]);return d({posts:n},i)}var{COMMUNITY_MODERATOR:wV}=xn;function Jr(e){let r=Pe({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[wV]},shouldCall:()=>!!e}),{items:t}=r,o=I(r,["items"]);return d({moderators:t},o)}var MV=({post:e,childrenPosts:t=[],community:o,userId:r})=>{var g,h,C;let{moderators:n}=Jr(o==null?void 0:o.communityId),{client:i}=ne(),{posts:a}=Po({targetType:"community",targetId:o==null?void 0:o.communityId,feedType:"reviewing"}),s=useMemo(()=>!t.find(y=>y.dataType==="liveStream"||y.dataType==="poll"),[t]),l=n.find(y=>y.userId===r),c=(e==null?void 0:e.postedUserId)===r,p=useMemo(()=>(o==null?void 0:o.postSetting)!=CommunityPostSettings.ANYONE_CAN_POST?a.find(y=>y.postId===(e==null?void 0:e.postId))!=null:!1,[o,a]),u=l!=null,f={canEdit:!1,canReport:!1,canDelete:!1,canReview:!1};if(c)!p&&s&&(f.canEdit=!0),f.canDelete=!0;else {if(o!=null){let y=(g=i==null?void 0:i.hasPermission(bn.EditCommunityFeedPostPermission).community(o.communityId))!=null?g:!1;f.canEdit=y&&s;let x=(h=i==null?void 0:i.hasPermission(bn.DeleteCommunityFeedPostPermission).community(o.communityId))!=null?h:!1;f.canDelete=x;}else {let y=(C=i==null?void 0:i.hasPermission(bn.EditUserFeedPostPermission).currentUser())!=null?C:!1;f.canDelete=y;}p||(f.canReport=!0);}return d({isPostUnderReview:p,isModerator:u},f)},W1=MV;var hy=({post:e,avatarFileUrl:t,loading:o,hidePostTarget:r})=>{let{onClickCommunity:n,onClickUser:i}=Q(),{formatMessage:a}=useIntl(),{user:s,refresh:l}=Ae({userId:e==null?void 0:e.postedUserId}),c=We(e==null?void 0:e.targetId),{isModerator:p}=W1({community:c,post:e});useEffect(()=>{l();},[]);let u=(e==null?void 0:e.targetType)==="community",f=u?c==null?void 0:c.displayName:null,g=u?()=>e&&n(e==null?void 0:e.targetId):null,h=()=>e&&i(e.postedUserId);return {avatarFileUrl:t,postAuthorName:(s==null?void 0:s.displayName)||a({id:"anonymous"}),postTargetName:f,timeAgo:new Date(e==null?void 0:e.createdAt),isModerator:p||lr(s==null?void 0:s.roles)||E1(s==null?void 0:s.roles),isEdited:new Date(e==null?void 0:e.createdAt).getTime()<new Date(e==null?void 0:e.editedAt).getTime(),isBanned:s==null?void 0:s.isGlobalBanned,hidePostTarget:r,loading:o,onClickCommunity:g,onClickUser:h}};var kV=({postId:e,hidePostTarget:t,loading:o})=>{let r=Oo(e),n=Me(r==null?void 0:r.postedUserId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),a=hy({post:r,avatarFileUrl:i,user:n,loading:o,hidePostTarget:t});return J.createElement(gy,d({},a))};var Cy=memo(kV);var FV=m.div.withConfig({shouldForwardProp:e=>e!=="isExpanded"&&e!=="postMaxLines"})`
1749
+ `;var vV=({avatarFileUrl:e,postAuthorName:t,postTargetName:o,timeAgo:r,isModerator:n,isEdited:i,onClickCommunity:a,onClickUser:s,hidePostTarget:l,loading:c,isBanned:p})=>{let u=V("UIPostHeader");if(u)return u({avatarFileUrl:e,postAuthorName:t,postTargetName:o,timeAgo:r,isModerator:n,isEdited:i,onClickCommunity:a,onClickUser:s,hidePostTarget:l,loading:c,isBanned:p});let f=()=>J.createElement(py,{"data-qa-anchor":"post-header-post-names"},J.createElement(og,{lines:3},J.createElement(b3,{"data-qa-anchor":"post-header-post-name",className:lo({clickable:!!s}),onClick:s},t)),p&&J.createElement(Sr,null),o&&!l&&J.createElement(J.Fragment,null,J.createElement(ly,null),J.createElement(b3,{"data-qa-anchor":"post-header-post-target-name",className:lo({clickable:!!a}),onClick:a||void 0},o))),g=()=>J.createElement(cy,{"data-qa-anchor":"post-header-additional-info",showTime:!!r},n&&J.createElement(I3,{"data-qa-anchor":"post-header-additional-info-moderator-badge"},J.createElement(my,null)," ",J.createElement(FormattedMessage,{id:"moderator"})),r&&J.createElement(c2,{"data-qa-anchor":"post-header-additional-info-time-ago",date:r.getTime()}),i&&J.createElement(dy,{"data-qa-anchor":"post-header-additional-info-edited-label"},J.createElement(FormattedMessage,{id:"post.edited"})));return J.createElement(ay,{"data-qa-anchor":"post-header"},J.createElement(ve,{"data-qa-anchor":"post-header-avatar",avatar:e,backgroundImage:Ve,loading:c,onClick:s}),J.createElement(sy,{"data-qa-anchor":"post-header-post-info"},c?J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(he,{width:96,style:{fontSize:8}})),J.createElement(he,{width:189,style:{fontSize:8}})):J.createElement(J.Fragment,null,f(),g())))},gy=vV;var bV=10;function Po({targetType:e,targetId:t,feedType:o,limit:r=bV}){let a=Pe({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:()=>!!t&&!!e}),{items:n}=a,i=w(a,["items"]);return d({posts:n},i)}var{COMMUNITY_MODERATOR:wV}=xn;function Jr(e){let r=Pe({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[wV]},shouldCall:()=>!!e}),{items:t}=r,o=w(r,["items"]);return d({moderators:t},o)}var MV=({post:e,childrenPosts:t=[],community:o,userId:r})=>{var g,h,C;let{moderators:n}=Jr(o==null?void 0:o.communityId),{client:i}=ne(),{posts:a}=Po({targetType:"community",targetId:o==null?void 0:o.communityId,feedType:"reviewing"}),s=useMemo(()=>!t.find(y=>y.dataType==="liveStream"||y.dataType==="poll"),[t]),l=n.find(y=>y.userId===r),c=(e==null?void 0:e.postedUserId)===r,p=useMemo(()=>(o==null?void 0:o.postSetting)!=CommunityPostSettings.ANYONE_CAN_POST?a.find(y=>y.postId===(e==null?void 0:e.postId))!=null:!1,[o,a]),u=l!=null,f={canEdit:!1,canReport:!1,canDelete:!1,canReview:!1};if(c)!p&&s&&(f.canEdit=!0),f.canDelete=!0;else {if(o!=null){let y=(g=i==null?void 0:i.hasPermission(bn.EditCommunityFeedPostPermission).community(o.communityId))!=null?g:!1;f.canEdit=y&&s;let x=(h=i==null?void 0:i.hasPermission(bn.DeleteCommunityFeedPostPermission).community(o.communityId))!=null?h:!1;f.canDelete=x;}else {let y=(C=i==null?void 0:i.hasPermission(bn.EditUserFeedPostPermission).currentUser())!=null?C:!1;f.canDelete=y;}p||(f.canReport=!0);}return d({isPostUnderReview:p,isModerator:u},f)},W1=MV;var hy=({post:e,avatarFileUrl:t,loading:o,hidePostTarget:r})=>{let{onClickCommunity:n,onClickUser:i}=Q(),{formatMessage:a}=useIntl(),{user:s,refresh:l}=Ae({userId:e==null?void 0:e.postedUserId}),c=We(e==null?void 0:e.targetId),{isModerator:p}=W1({community:c,post:e});useEffect(()=>{l();},[]);let u=(e==null?void 0:e.targetType)==="community",f=u?c==null?void 0:c.displayName:null,g=u?()=>e&&n(e==null?void 0:e.targetId):null,h=()=>e&&i(e.postedUserId);return {avatarFileUrl:t,postAuthorName:(s==null?void 0:s.displayName)||a({id:"anonymous"}),postTargetName:f,timeAgo:new Date(e==null?void 0:e.createdAt),isModerator:p||lr(s==null?void 0:s.roles)||A1(s==null?void 0:s.roles),isEdited:new Date(e==null?void 0:e.createdAt).getTime()<new Date(e==null?void 0:e.editedAt).getTime(),isBanned:s==null?void 0:s.isGlobalBanned,hidePostTarget:r,loading:o,onClickCommunity:g,onClickUser:h}};var kV=({postId:e,hidePostTarget:t,loading:o})=>{let r=Oo(e),n=Me(r==null?void 0:r.postedUserId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),a=hy({post:r,avatarFileUrl:i,user:n,loading:o,hidePostTarget:t});return J.createElement(gy,d({},a))};var Cy=memo(kV);var FV=m.div.withConfig({shouldForwardProp:e=>e!=="isExpanded"&&e!=="postMaxLines"})`
1750
1750
  overflow-wrap: break-word;
1751
1751
  color: ${({theme:e})=>e.palette.neutral.main};
1752
1752
  white-space: pre-wrap;
@@ -1763,13 +1763,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1763
1763
  color: ${({theme:e})=>e.palette.primary.main};
1764
1764
  padding: 4px;
1765
1765
  display: inline-block;
1766
- `,VV=({text:e,postMaxLines:t=8,mentionees:o})=>{let r=useMemo(()=>i2(e||"",Ym(o)),[o,e]),n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1);useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:f}=n.current;l(u>f);}},[e,t]);let c=()=>a(!0),p=e?J.createElement(FV,{ref:n,isExpanded:i,postMaxLines:t,"data-qa-anchor":"post-text-content"},r.map(u=>{let f=`${e}-${u.start}-${u.end}`,g=e.substring(u.start,u.end);if(u.highlight){let h=o==null?void 0:o.find(C=>C.index===u.start);return h?J.createElement(n2,{key:f,mentionee:h},g):J.createElement("span",{key:f},g)}return J.createElement(Pa,{key:f},g)})):null;return p?J.createElement(J.Fragment,null,p,!i&&s&&J.createElement(DV,{onClick:c},J.createElement(FormattedMessage,{id:"post.readMore"}))):null},S2=e=>{let t=V("UITextContent");return t?t(e):J.createElement(VV,d({},e))};var HV=({fileId:e})=>J.createElement(st,{fileId:e}),xy=HV;var zV=({videoFileId:e})=>{let t=e.high||e.medium||e.low;return J.createElement(Qr,{fileId:t})},by=zV;var GV=({fileId:e})=>J.createElement(jo,{fileId:e}),Iy=GV;var $V=m.div`
1766
+ `,VV=({text:e,postMaxLines:t=8,mentionees:o})=>{let r=useMemo(()=>i2(e||"",Ym(o)),[o,e]),n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1);useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:f}=n.current;l(u>f);}},[e,t]);let c=()=>a(!0),p=e?J.createElement(FV,{ref:n,isExpanded:i,postMaxLines:t,"data-qa-anchor":"post-text-content"},r.map(u=>{let f=`${e}-${u.start}-${u.end}`,g=e.substring(u.start,u.end);if(u.highlight){let h=o==null?void 0:o.find(C=>C.index===u.start);return h?J.createElement(n2,{key:f,mentionee:h},g):J.createElement("span",{key:f},g)}return J.createElement(Pa,{key:f},g)})):null;return p?J.createElement(J.Fragment,null,p,!i&&s&&J.createElement(DV,{onClick:c},J.createElement(FormattedMessage,{id:"post.readMore"}))):null},S2=e=>{let t=V("UITextContent");return t?t(e):J.createElement(VV,d({},e))};var HV=({fileId:e})=>J.createElement(lt,{fileId:e}),xy=HV;var zV=({videoFileId:e})=>{let t=e.high||e.medium||e.low;return J.createElement(Qr,{fileId:t})},by=zV;var GV=({fileId:e})=>J.createElement(jo,{fileId:e}),Iy=GV;var $V=m.div`
1767
1767
  margin-bottom: 0.75rem;
1768
1768
 
1769
1769
  > :not(:first-child) {
1770
1770
  margin-top: 0.75rem;
1771
1771
  }
1772
- `,ZV=({streamId:e,mentionees:t=[]})=>{let o=j1(e);if(o==null)return null;let r=t.map(a=>{var s=a,{index:n}=s,i=I(s,["index"]);var l;return d({index:n>((l=o==null?void 0:o.title)==null?void 0:l.length)?n-o.title.length-2:n},i)});return J.createElement($V,null,J.createElement("div",null,o==null?void 0:o.title),J.createElement(S2,{text:o==null?void 0:o.description,mentionees:r}))},wy=ZV;var qV=({data:e,dataType:t,postMaxLines:o,mentionees:r})=>!e||!["text","image","video","file","liveStream"].includes(t||"")?null:t==="text"?J.createElement(S2,S(d({},e),{postMaxLines:o,mentionees:r})):t==="image"?J.createElement(xy,S(d({},e),{postMaxLines:o,mentionees:r})):t==="video"?J.createElement(by,S(d({},e),{postMaxLines:o,mentionees:r})):t==="file"?J.createElement(Iy,S(d({},e),{postMaxLines:o,mentionees:r})):t==="liveStream"?J.createElement(wy,S(d({},e),{postMaxLines:o,mentionees:r})):null,_y=qV;var My=m.div`
1772
+ `,ZV=({streamId:e,mentionees:t=[]})=>{let o=j1(e);if(o==null)return null;let r=t.map(a=>{var s=a,{index:n}=s,i=w(s,["index"]);var l;return d({index:n>((l=o==null?void 0:o.title)==null?void 0:l.length)?n-o.title.length-2:n},i)});return J.createElement($V,null,J.createElement("div",null,o==null?void 0:o.title),J.createElement(S2,{text:o==null?void 0:o.description,mentionees:r}))},wy=ZV;var qV=({data:e,dataType:t,postMaxLines:o,mentionees:r})=>!e||!["text","image","video","file","liveStream"].includes(t||"")?null:t==="text"?J.createElement(S2,S(d({},e),{postMaxLines:o,mentionees:r})):t==="image"?J.createElement(xy,S(d({},e),{postMaxLines:o,mentionees:r})):t==="video"?J.createElement(by,S(d({},e),{postMaxLines:o,mentionees:r})):t==="file"?J.createElement(Iy,S(d({},e),{postMaxLines:o,mentionees:r})):t==="liveStream"?J.createElement(wy,S(d({},e),{postMaxLines:o,mentionees:r})):null,_y=qV;var My=m.div`
1773
1773
  display: flex;
1774
1774
  align-items: center;
1775
1775
 
@@ -1778,7 +1778,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1778
1778
  position: absolute;
1779
1779
  `;m(Gt)`
1780
1780
  margin-left: auto;
1781
- `;var WV=o=>{var r=o,{className:e}=r,t=I(r,["className"]);return J.createElement("div",d({className:lo("post",e)},t))},K1=m(WV)`
1781
+ `;var WV=o=>{var r=o,{className:e}=r,t=w(r,["className"]);return J.createElement("div",d({className:lo("post",e)},t))},K1=m(WV)`
1782
1782
  padding: 16px;
1783
1783
  padding-bottom: 8px;
1784
1784
  background: ${({theme:e})=>e.palette.system.background};
@@ -1803,7 +1803,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1803
1803
  margin-left: 12px;
1804
1804
  }
1805
1805
  }
1806
- `,Ny=()=>J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(he,{style:{fontSize:8,maxWidth:374}})),J.createElement("div",null,J.createElement(he,{style:{fontSize:8,maxWidth:448}})),J.createElement("div",{style:{paddingBottom:50}},J.createElement(he,{style:{fontSize:8,maxWidth:279}})));var RV=e=>{let[t,o]=useState(!1),{currentUserId:r}=ne(),n=(e==null?void 0:e.postId)||void 0,i=useMemo(()=>(e==null?void 0:e.creatorId)===r,[e,r]),{data:a,isLoading:s,refetch:l}=useQuery({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",n],queryFn:()=>PostRepository.isPostFlaggedByMe(n),enabled:e!=null});useEffect(()=>{a!=null&&o(a);},[a]);let c=()=>P(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.flagPost(n);}catch(f){o(!1);}finally{l();}}),p=()=>P(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.unflagPost(n);}catch(f){o(!0);}finally{l();}});return {isLoading:s,isFlaggedByMe:t,isUnableToFlag:i,flagPost:c,unflagPost:p,toggleFlagPost:()=>P(void 0,null,function*(){n==null||i||(t?p():c());})}},ky=RV;var oO=8,rO=3,nO="Post has been reviewed",iO=({childrenPosts:e=[],handleDeletePost:t,handleReportPost:o,handleUnreportPost:r,handleClosePoll:n,isPollClosed:i,post:a,onEditPostClick:s,onClose:l,buttonContainerHeight:c})=>{let{formatMessage:p}=useIntl(),{info:u,confirm:f}=ue(),g=Ce(),{isFlaggedByMe:h,toggleFlagPost:C}=ky(a),y=a==null?void 0:a.targetId,x=We(y),{currentUserId:v}=ne(),_=useRef(null),{currentPosition:M,align:b,scrollableHeight:w}=m2({dropdownRef:_,buttonContainerHeight:c,position:sr,align:Sa}),{canEdit:T,canReview:k,canDelete:N,canReport:F,isPostUnderReview:Z}=W1({community:x,post:a,childrenPosts:e,userId:v||void 0}),$=e.find(L=>L.dataType==="poll"),G=()=>P(void 0,null,function*(){C(),yield o==null?void 0:o(),g.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),O=()=>P(void 0,null,function*(){C(),yield r==null?void 0:r(),g.success({content:J.createElement(FormattedMessage,{id:"report.unreportSent"})});}),ee=()=>{f({title:p({id:"post.deletePost"}),content:p({id:Z?"post.confirmPendingDelete":"post.confirmDelete"}),okText:p({id:"delete"}),onOk:()=>t==null?void 0:t(a==null?void 0:a.postId)});},X=[T?{name:p({id:"post.editPost"}),action:()=>s()}:null,N?{name:p({id:"post.deletePost"}),action:ee}:null,F?{name:p(h?{id:"report.undoReport"}:{id:"report.doReport"}),action:h?O:G}:null,$&&!i?{name:p({id:"poll.close"}),action:n}:null].filter(Ue);return J.createElement(Py,{ref:_},J.createElement(Na,null,J.createElement(ka,{position:M,align:b,scrollableHeight:w},X.map(({name:L,action:H})=>J.createElement(La,{key:L,"data-qa-anchor":`post-options-button-${L}`,onClick:()=>{H==null||H(),l();}},L)))))},aO=e=>{var pe,z,E;let{childrenPosts:t=[],className:o,handleApprovePost:r,handleDeclinePost:n,hidePostTarget:i,readonly:a,post:s,loading:l}=e,{formatMessage:c}=useIntl(),[p,u]=useState(!1),f=()=>u(!0),g=()=>u(!1),{info:h,confirm:C}=ue(),y=Ce(),[x,v]=useState(!1),[_,M]=Ta(),[b,w]=useState(!1),[T,k]=useState(!1),N=()=>v(D=>!D);useEffect(()=>(x?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[x]);function F(D){if(D instanceof Error)if(D.message.includes(nO))h({title:J.createElement(FormattedMessage,{id:"post.error.cannotReview.title"}),content:J.createElement(FormattedMessage,{id:"post.error.cannotReview.description"})});else throw D}let Z=s==null?void 0:s.targetId,$=We(Z),{currentUserId:G}=ne(),{canReview:O,isPostUnderReview:ee}=W1({community:$,post:s,childrenPosts:t,userId:G||void 0}),X=()=>P(void 0,null,function*(){try{w(!0),yield r==null?void 0:r(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.approved"})});}catch(D){F(D);}finally{w(!1);}}),L=()=>P(void 0,null,function*(){try{k(!0),yield n==null?void 0:n(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.declined"})});}catch(D){F(D);}finally{k(!1);}}),H=t.length>0,K=H?rO:oO,Y=t.find(D=>D.dataType==="liveStream");return J.createElement(K1,{"data-qa-anchor":"post",className:o},J.createElement(Sy,null,J.createElement(Cy,{postId:s==null?void 0:s.postId,hidePostTarget:i,loading:l}),!l&&J.createElement(My,null,J.createElement("div",{ref:_},J.createElement(Ba,{onClick:D=>{D.stopPropagation(),N();},className:o},J.createElement(Aa,null))),x&&J.createElement(iO,S(d({},e),{onApprove:X,onDecline:L,onClose:N,onEditPostClick:()=>f(),buttonContainerHeight:M})))),l?J.createElement(Ny,null):J.createElement(J.Fragment,null,J.createElement(_y,{data:(pe=Y==null?void 0:Y.data)!=null?pe:s==null?void 0:s.data,dataType:(z=Y==null?void 0:Y.dataType)!=null?z:s==null?void 0:s.dataType,postMaxLines:K,mentionees:(E=s==null?void 0:s.metadata)==null?void 0:E.mentioned}),H&&J.createElement(Z9,{contents:t}),!ee&&J.createElement(a3,{readonly:a,postId:s==null?void 0:s.postId}),ee&&O&&J.createElement(Ty,{"data-qa-anchor":"post-review"},J.createElement(de,{"data-qa-anchor":"post-review-accept-button",disabled:b||T,onClick:X},J.createElement(FormattedMessage,{id:"general.action.accept"})),J.createElement(q,{"data-qa-anchor":"post-review-decline-button",disabled:b||T,onClick:L},J.createElement(FormattedMessage,{id:"general.action.decline"}))),p&&s&&J.createElement(xt,{"data-qa-anchor":"post-editor-modal",title:c({id:"post.editPost"}),onCancel:g},J.createElement(iy,{post:s,onSave:g}))))},po=J.memo(aO);var Ay=m.div`
1806
+ `,Ny=()=>J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(he,{style:{fontSize:8,maxWidth:374}})),J.createElement("div",null,J.createElement(he,{style:{fontSize:8,maxWidth:448}})),J.createElement("div",{style:{paddingBottom:50}},J.createElement(he,{style:{fontSize:8,maxWidth:279}})));var RV=e=>{let[t,o]=useState(!1),{currentUserId:r}=ne(),n=(e==null?void 0:e.postId)||void 0,i=useMemo(()=>(e==null?void 0:e.creatorId)===r,[e,r]),{data:a,isLoading:s,refetch:l}=useQuery({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",n],queryFn:()=>PostRepository.isPostFlaggedByMe(n),enabled:e!=null});useEffect(()=>{a!=null&&o(a);},[a]);let c=()=>P(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.flagPost(n);}catch(f){o(!1);}finally{l();}}),p=()=>P(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.unflagPost(n);}catch(f){o(!0);}finally{l();}});return {isLoading:s,isFlaggedByMe:t,isUnableToFlag:i,flagPost:c,unflagPost:p,toggleFlagPost:()=>P(void 0,null,function*(){n==null||i||(t?p():c());})}},ky=RV;var oO=8,rO=3,nO="Post has been reviewed",iO=({childrenPosts:e=[],handleDeletePost:t,handleReportPost:o,handleUnreportPost:r,handleClosePoll:n,isPollClosed:i,post:a,onEditPostClick:s,onClose:l,buttonContainerHeight:c})=>{let{formatMessage:p}=useIntl(),{info:u,confirm:f}=ue(),g=Ce(),{isFlaggedByMe:h,toggleFlagPost:C}=ky(a),y=a==null?void 0:a.targetId,x=We(y),{currentUserId:v}=ne(),_=useRef(null),{currentPosition:M,align:b,scrollableHeight:I}=m2({dropdownRef:_,buttonContainerHeight:c,position:sr,align:Sa}),{canEdit:T,canReview:k,canDelete:N,canReport:F,isPostUnderReview:Z}=W1({community:x,post:a,childrenPosts:e,userId:v||void 0}),$=e.find(L=>L.dataType==="poll"),G=()=>P(void 0,null,function*(){C(),yield o==null?void 0:o(),g.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),O=()=>P(void 0,null,function*(){C(),yield r==null?void 0:r(),g.success({content:J.createElement(FormattedMessage,{id:"report.unreportSent"})});}),ee=()=>{f({title:p({id:"post.deletePost"}),content:p({id:Z?"post.confirmPendingDelete":"post.confirmDelete"}),okText:p({id:"delete"}),onOk:()=>t==null?void 0:t(a==null?void 0:a.postId)});},X=[T?{name:p({id:"post.editPost"}),action:()=>s()}:null,N?{name:p({id:"post.deletePost"}),action:ee}:null,F?{name:p(h?{id:"report.undoReport"}:{id:"report.doReport"}),action:h?O:G}:null,$&&!i?{name:p({id:"poll.close"}),action:n}:null].filter(Ue);return J.createElement(Py,{ref:_},J.createElement(Na,null,J.createElement(ka,{position:M,align:b,scrollableHeight:I},X.map(({name:L,action:H})=>J.createElement(La,{key:L,"data-qa-anchor":`post-options-button-${L}`,onClick:()=>{H==null||H(),l();}},L)))))},aO=e=>{var pe,z,E;let{childrenPosts:t=[],className:o,handleApprovePost:r,handleDeclinePost:n,hidePostTarget:i,readonly:a,post:s,loading:l}=e,{formatMessage:c}=useIntl(),[p,u]=useState(!1),f=()=>u(!0),g=()=>u(!1),{info:h,confirm:C}=ue(),y=Ce(),[x,v]=useState(!1),[_,M]=Ta(),[b,I]=useState(!1),[T,k]=useState(!1),N=()=>v(D=>!D);useEffect(()=>(x?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[x]);function F(D){if(D instanceof Error)if(D.message.includes(nO))h({title:J.createElement(FormattedMessage,{id:"post.error.cannotReview.title"}),content:J.createElement(FormattedMessage,{id:"post.error.cannotReview.description"})});else throw D}let Z=s==null?void 0:s.targetId,$=We(Z),{currentUserId:G}=ne(),{canReview:O,isPostUnderReview:ee}=W1({community:$,post:s,childrenPosts:t,userId:G||void 0}),X=()=>P(void 0,null,function*(){try{I(!0),yield r==null?void 0:r(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.approved"})});}catch(D){F(D);}finally{I(!1);}}),L=()=>P(void 0,null,function*(){try{k(!0),yield n==null?void 0:n(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.declined"})});}catch(D){F(D);}finally{k(!1);}}),H=t.length>0,K=H?rO:oO,Y=t.find(D=>D.dataType==="liveStream");return J.createElement(K1,{"data-qa-anchor":"post",className:o},J.createElement(Sy,null,J.createElement(Cy,{postId:s==null?void 0:s.postId,hidePostTarget:i,loading:l}),!l&&J.createElement(My,null,J.createElement("div",{ref:_},J.createElement(Ba,{onClick:D=>{D.stopPropagation(),N();},className:o},J.createElement(Aa,null))),x&&J.createElement(iO,S(d({},e),{onApprove:X,onDecline:L,onClose:N,onEditPostClick:()=>f(),buttonContainerHeight:M})))),l?J.createElement(Ny,null):J.createElement(J.Fragment,null,J.createElement(_y,{data:(pe=Y==null?void 0:Y.data)!=null?pe:s==null?void 0:s.data,dataType:(z=Y==null?void 0:Y.dataType)!=null?z:s==null?void 0:s.dataType,postMaxLines:K,mentionees:(E=s==null?void 0:s.metadata)==null?void 0:E.mentioned}),H&&J.createElement(Z9,{contents:t}),!ee&&J.createElement(a3,{readonly:a,postId:s==null?void 0:s.postId}),ee&&O&&J.createElement(Ty,{"data-qa-anchor":"post-review"},J.createElement(de,{"data-qa-anchor":"post-review-accept-button",disabled:b||T,onClick:X},J.createElement(FormattedMessage,{id:"general.action.accept"})),J.createElement(q,{"data-qa-anchor":"post-review-decline-button",disabled:b||T,onClick:L},J.createElement(FormattedMessage,{id:"general.action.decline"}))),p&&s&&J.createElement(xt,{"data-qa-anchor":"post-editor-modal",title:c({id:"post.editPost"}),onCancel:g},J.createElement(iy,{post:s,onSave:g}))))},po=J.memo(aO);var Ay=m.div`
1807
1807
  color: ${({theme:e})=>e.palette.base.shade3};
1808
1808
  display: flex;
1809
1809
  align-items: center;
@@ -1817,7 +1817,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1817
1817
  margin-top: 8px;
1818
1818
  `,Ly=m.div`
1819
1819
  ${({theme:e})=>e.typography.body}
1820
- `;var sO=({className:e,icon:t,title:o,description:r,children:n})=>J.createElement(Ay,{className:e},t,J.createElement(By,null,o),J.createElement(Ly,null,r),n),kr=sO;var lO=()=>J.createElement(K1,null,J.createElement(kr,{title:J.createElement(FormattedMessage,{id:"post.unknownPost.title"}),icon:J.createElement(M0,null)},J.createElement(FormattedMessage,{id:"post.unknownPost.description"}))),Dy=lO;var N2={[PostContentType.FILE]:e=>J.createElement(po,d({},e)),[PostContentType.IMAGE]:e=>J.createElement(po,d({},e)),[PostContentType.LIVESTREAM]:e=>J.createElement(po,d({},e)),[PostContentType.POLL]:e=>J.createElement(po,d({},e)),[PostContentType.TEXT]:e=>J.createElement(po,d({},e)),[PostContentType.VIDEO]:e=>J.createElement(po,d({},e))},Oy=createContext(N2),Hy=e=>{let t=useContext(Oy);return useMemo(()=>e==null?o=>null:t[e]||N2[e]||(o=>J.createElement(Dy,null)),[e])};function P3({children:e,config:t}){let o=useMemo(()=>t==null?N2:d(d({},N2),t),[t]);return J.createElement(Oy.Provider,{value:o},e)}var gO=({apiKey:e,apiRegion:t,apiEndpoint:o,userId:r,displayName:n,customComponents:i={},postRendererConfig:a,theme:s={},children:l,socialCommunityCreationButtonVisible:c,actionHandlers:p,onConnectionStatusChange:u,onDisconnected:f,getAuthToken:g})=>{let h=new QueryClient,[C,y]=useState(!1),[x,v]=useState(null),_=useRef(null),M=useRef(null),b=Me(r),w=useMemo(()=>{var k;return {client:x||null,currentUserId:r||void 0,userRoles:(k=b==null?void 0:b.roles)!=null?k:[]}},[x,r,b==null?void 0:b.roles]);function T(){return P(this,null,function*(){try{let N=Client.getActiveClient();v(N);}catch(N){let F=Client.createClient(e,t,o?{apiEndpoint:o}:{});v(F);}let k={userId:r,displayName:n};if(g){let N=yield g();k=S(d({},k),{authToken:N});}yield Client.login(k,{sessionWillRenewAccessToken(N){g?g().then(F=>{N.renewWithAuthToken(F);}):N.renew();}}),y(!0),_.current==null&&(_.current=Client.onSessionStateChange(N=>{u==null||u(N);})),M.current==null&&(M.current=Client.onClientDisconnected(()=>{f&&f();}));})}return useEffect(()=>{function k(){return P(this,null,function*(){yield T();})}return k(),()=>{var N,F;(N=_.current)==null||N.call(_),(F=M.current)==null||F.call(M);}},[r]),x==null?J.createElement(J.Fragment,null):C?J.createElement(QueryClientProvider,{client:h},J.createElement(h7,{locale:"en"},J.createElement(l6,{theme:T7(s)},J.createElement(N7,null,J.createElement(Km.Provider,{value:w},J.createElement(Jm.Provider,{value:w},J.createElement(_p,null,J.createElement(Dp,null,J.createElement(S8,null,J.createElement(d7,null,J.createElement(x8,null,J.createElement(W8,null,J.createElement(i7,{initialConfig:{preferred_theme:"light"}},J.createElement(Vp,{config:i},J.createElement(gp,{config:{socialCommunityCreationButtonVisible:c||!0}},J.createElement(P3,{config:a},J.createElement(Pp,d({},p),l))),J.createElement(_8,null),J.createElement(J8,null),J.createElement(z8,null),J.createElement(c7,null))))))))))))))):J.createElement(J.Fragment,null)},yO=gO;var vO=()=>{let[e,t]=useState(null),o=zt();return useEffect(()=>{e&&(o.error({content:e}),t(null));},[e]),[t]},jy=vO;var bO=1073741824,IO=1,S3=m.label`
1820
+ `;var sO=({className:e,icon:t,title:o,description:r,children:n})=>J.createElement(Ay,{className:e},t,J.createElement(By,null,o),J.createElement(Ly,null,r),n),kr=sO;var lO=()=>J.createElement(K1,null,J.createElement(kr,{title:J.createElement(FormattedMessage,{id:"post.unknownPost.title"}),icon:J.createElement(M0,null)},J.createElement(FormattedMessage,{id:"post.unknownPost.description"}))),Dy=lO;var N2={[PostContentType.FILE]:e=>J.createElement(po,d({},e)),[PostContentType.IMAGE]:e=>J.createElement(po,d({},e)),[PostContentType.LIVESTREAM]:e=>J.createElement(po,d({},e)),[PostContentType.POLL]:e=>J.createElement(po,d({},e)),[PostContentType.TEXT]:e=>J.createElement(po,d({},e)),[PostContentType.VIDEO]:e=>J.createElement(po,d({},e))},Oy=createContext(N2),Hy=e=>{let t=useContext(Oy);return useMemo(()=>e==null?o=>null:t[e]||N2[e]||(o=>J.createElement(Dy,null)),[e])};function P3({children:e,config:t}){let o=useMemo(()=>t==null?N2:d(d({},N2),t),[t]);return J.createElement(Oy.Provider,{value:o},e)}var gO=({apiKey:e,apiRegion:t,apiEndpoint:o,userId:r,displayName:n,customComponents:i={},postRendererConfig:a,theme:s={},children:l,socialCommunityCreationButtonVisible:c,actionHandlers:p,onConnectionStatusChange:u,onDisconnected:f,getAuthToken:g})=>{let h=new QueryClient,[C,y]=useState(!1),[x,v]=useState(null),_=useRef(null),M=useRef(null),b=Me(r),I=useMemo(()=>{var k;return {client:x||null,currentUserId:r||void 0,userRoles:(k=b==null?void 0:b.roles)!=null?k:[]}},[x,r,b==null?void 0:b.roles]);function T(){return P(this,null,function*(){try{let N=Client.getActiveClient();v(N);}catch(N){let F=Client.createClient(e,t,o?{apiEndpoint:o}:{});v(F);}let k={userId:r,displayName:n};if(g){let N=yield g();k=S(d({},k),{authToken:N});}yield Client.login(k,{sessionWillRenewAccessToken(N){g?g().then(F=>{N.renewWithAuthToken(F);}):N.renew();}}),y(!0),_.current==null&&(_.current=Client.onSessionStateChange(N=>{u==null||u(N);})),M.current==null&&(M.current=Client.onClientDisconnected(()=>{f&&f();}));})}return useEffect(()=>{function k(){return P(this,null,function*(){yield T();})}return k(),()=>{var N,F;(N=_.current)==null||N.call(_),(F=M.current)==null||F.call(M);}},[r]),x==null?J.createElement(J.Fragment,null):C?J.createElement(QueryClientProvider,{client:h},J.createElement(h7,{locale:"en"},J.createElement(l6,{theme:T7(s)},J.createElement(N7,null,J.createElement(Km.Provider,{value:I},J.createElement(Jm.Provider,{value:I},J.createElement(_p,null,J.createElement(Dp,null,J.createElement(S8,null,J.createElement(d7,null,J.createElement(x8,null,J.createElement(W8,null,J.createElement(i7,{initialConfig:{preferred_theme:"light"}},J.createElement(Vp,{config:i},J.createElement(gp,{config:{socialCommunityCreationButtonVisible:c||!0}},J.createElement(P3,{config:a},J.createElement(Pp,d({},p),l))),J.createElement(_8,null),J.createElement(J8,null),J.createElement(z8,null),J.createElement(c7,null))))))))))))))):J.createElement(J.Fragment,null)},yO=gO;var vO=()=>{let[e,t]=useState(null),o=zt();return useEffect(()=>{e&&(o.error({content:e}),t(null));},[e]),[t]},jy=vO;var bO=1073741824,IO=1,S3=m.label`
1821
1821
  cursor: pointer;
1822
1822
  background: rgb(235 236 239 / 60%);
1823
1823
  transition: background 0.1s;
@@ -1847,7 +1847,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1847
1847
  &&& {
1848
1848
  display: none;
1849
1849
  }
1850
- `,_O=({className:e="","data-qa-anchor":t="",mimeType:o,multiple:r,disabled:n,onChange:i,onMaxFilesLimit:a,onFileSizeLimit:s,fileLimitRemaining:l=0,children:c})=>{let[p]=useState(`_${(Date.now()*Math.random()).toString(36)}`),[u,f]=useState(!1),g=useCallback(b=>b.slice(0,r?l:IO),[l,r]),h=b=>b.some(w=>w.size>bO),C=useCallback(b=>(l||0)<b.length,[l]),y=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&(b.dataTransfer.setData(o,p),f(!0));},[n,o,p]),x=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&f(!1);},[n]),v=useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),n)return;let w=b.target.files?[...b.target.files]:[],T=h(w),k=C(w),N=g(w);T?s==null||s():N.length&&(i==null||i(N)),k&&(a==null||a());},[C,n,g,i,s,a]),_=useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),n)return;let w=(o||"").split(",").map(N=>N.replace("*",".*")).map(N=>new RegExp(N)),T=Array.from(b.dataTransfer.files).filter(N=>w.some(F=>F.test(N.type))),k=g(T);k.length&&(i==null||i(k)),f(!1);},[n,g,o,i]),M=b=>{};return J.createElement(S3,{"data-qa-anchor":`${t}`,id:p,className:lo(e,{hover:u,disabled:n}),onDragEnter:y,onDragOver:y,onDragLeave:x,onDrop:_},J.createElement(wO,{accept:o,multiple:r,disabled:n,onChange:b=>{b.target.value&&v(b),b.target.value="";},onClick:M}),c)},k2=_O;var Zy=m.div`
1850
+ `,_O=({className:e="","data-qa-anchor":t="",mimeType:o,multiple:r,disabled:n,onChange:i,onMaxFilesLimit:a,onFileSizeLimit:s,fileLimitRemaining:l=0,children:c})=>{let[p]=useState(`_${(Date.now()*Math.random()).toString(36)}`),[u,f]=useState(!1),g=useCallback(b=>b.slice(0,r?l:IO),[l,r]),h=b=>b.some(I=>I.size>bO),C=useCallback(b=>(l||0)<b.length,[l]),y=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&(b.dataTransfer.setData(o,p),f(!0));},[n,o,p]),x=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&f(!1);},[n]),v=useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),n)return;let I=b.target.files?[...b.target.files]:[],T=h(I),k=C(I),N=g(I);T?s==null||s():N.length&&(i==null||i(N)),k&&(a==null||a());},[C,n,g,i,s,a]),_=useCallback(b=>{if(b.preventDefault(),b.stopPropagation(),n)return;let I=(o||"").split(",").map(N=>N.replace("*",".*")).map(N=>new RegExp(N)),T=Array.from(b.dataTransfer.files).filter(N=>I.some(F=>F.test(N.type))),k=g(T);k.length&&(i==null||i(k)),f(!1);},[n,g,o,i]),M=b=>{};return J.createElement(S3,{"data-qa-anchor":`${t}`,id:p,className:lo(e,{hover:u,disabled:n}),onDragEnter:y,onDragOver:y,onDragLeave:x,onDrop:_},J.createElement(wO,{accept:o,multiple:r,disabled:n,onChange:b=>{b.target.value&&v(b),b.target.value="";},onClick:M}),c)},k2=_O;var Zy=m.div`
1851
1851
  border-radius: 4px;
1852
1852
  border: 1px solid ${({theme:e})=>e.palette.base.shade4};
1853
1853
  `,Xt=m.div`
@@ -1886,7 +1886,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1886
1886
  > * {
1887
1887
  margin: 0 3px;
1888
1888
  }
1889
- `;var SO=({value:e})=>J.createElement("div",null,e),TO=r=>{var n=r,{placeholder:e,selected:t}=n,o=I(n,["placeholder","selected"]);return J.createElement(qy,d({},o),t&&t.length?J.createElement(Yy,null,t.map(({name:i,value:a})=>J.createElement("span",{key:a},i))):J.createElement("div",null,e),J.createElement(ir,{height:14,width:14}))},NO=({value:e=[],onSelect:t=()=>{},options:o=[],multiple:r,disabled:n,parentContainer:i=null,renderItem:a=SO,renderTrigger:s=TO,isOpen:l,handleClose:c,placeholder:p="Select...",className:u="","data-qa-anchor":f=""})=>{let[g,h]=useState(l),[C,y]=useState(e),x=()=>h(!g),v=()=>c?c():h(!1),_=(w,T)=>{y(k=>{let N=k.filter(F=>F.value!==w.value);return T&&T(N.map(F=>F.value)),N});};co("Escape",v),useEffect(()=>{h(l);},[l]);let M=w=>{if(t(w),r){let T=C.findIndex(k=>k.value===w.value);T>=0?_(C[T]):y([...C,w]);}else y([w]),v();},b=w=>{w.preventDefault(),x();};return J.createElement(d2,{"data-qa-anchor":`${f}-select-dropdown`,isOpen:l||g,renderTrigger:w=>s(S(d({},w),{onClick:b,selected:C,remove:_,placeholder:p})),handleClose:v,fullSized:!0,scrollable:!0,parentContainer:i,disabled:n,className:u},o&&o.length>0&&J.createElement(Er,null,o.map(w=>J.createElement(Xt,{key:w.value,"data-qa-anchor":`${f}-select-menu-item`,active:C.find(T=>T.value===w.value)!=null,onClick:()=>M(w)},a(w)))))},Ar=memo(NO);var AO=m.div`
1889
+ `;var SO=({value:e})=>J.createElement("div",null,e),TO=r=>{var n=r,{placeholder:e,selected:t}=n,o=w(n,["placeholder","selected"]);return J.createElement(qy,d({},o),t&&t.length?J.createElement(Yy,null,t.map(({name:i,value:a})=>J.createElement("span",{key:a},i))):J.createElement("div",null,e),J.createElement(ir,{height:14,width:14}))},NO=({value:e=[],onSelect:t=()=>{},options:o=[],multiple:r,disabled:n,parentContainer:i=null,renderItem:a=SO,renderTrigger:s=TO,isOpen:l,handleClose:c,placeholder:p="Select...",className:u="","data-qa-anchor":f=""})=>{let[g,h]=useState(l),[C,y]=useState(e),x=()=>h(!g),v=()=>c?c():h(!1),_=(I,T)=>{y(k=>{let N=k.filter(F=>F.value!==I.value);return T&&T(N.map(F=>F.value)),N});};co("Escape",v),useEffect(()=>{h(l);},[l]);let M=I=>{if(t(I),r){let T=C.findIndex(k=>k.value===I.value);T>=0?_(C[T]):y([...C,I]);}else y([I]),v();},b=I=>{I.preventDefault(),x();};return J.createElement(d2,{"data-qa-anchor":`${f}-select-dropdown`,isOpen:l||g,renderTrigger:I=>s(S(d({},I),{onClick:b,selected:C,remove:_,placeholder:p})),handleClose:v,fullSized:!0,scrollable:!0,parentContainer:i,disabled:n,className:u},o&&o.length>0&&J.createElement(Er,null,o.map(I=>J.createElement(Xt,{key:I.value,"data-qa-anchor":`${f}-select-menu-item`,active:C.find(T=>T.value===I.value)!=null,onClick:()=>M(I)},a(I)))))},Ar=memo(NO);var AO=m.div`
1890
1890
  margin-top: 8px;
1891
1891
  color: ${({theme:e})=>e.palette.alert.main};
1892
1892
  ${({theme:e})=>e.typography.caption}
@@ -1965,7 +1965,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1965
1965
  button {
1966
1966
  width: 100%;
1967
1967
  }
1968
- `,Ga=m.div`
1968
+ `,$a=m.div`
1969
1969
  margin-left: auto;
1970
1970
  color: ${({theme:e})=>e.palette.base.shade1};
1971
1971
  ${({theme:e})=>e.typography.caption}
@@ -1973,7 +1973,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
1973
1973
  position: relative;
1974
1974
  width: 100%;
1975
1975
 
1976
- ${Ga} {
1976
+ ${$a} {
1977
1977
  position: absolute;
1978
1978
  top: 14px;
1979
1979
  right: 8px;
@@ -2080,7 +2080,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2080
2080
  `,Ph=m.div`
2081
2081
  display: flex;
2082
2082
  align-items: center;
2083
- `;var Th=200,DO=({option:e,removeOption:t,updateOption:o})=>{let[r,n]=useState(e.text);return J.createElement(Xy,null,J.createElement(mh,null,J.createElement(eh,{"data-qa-anchor":"poll-composer-option-item-input",value:r,maxLength:Th,onChange:a=>{n(a.target.value),o(a.target.value);}}),J.createElement(Ga,null,`${r.length}/${Th}`)),J.createElement(oh,{"data-qa-anchor":"poll-composer-option-item-close-button",onClick:t},J.createElement(th,{height:16})))},VO=({onChange:e,optionsLimit:t})=>{let[o,r]=useState([]),n=!t||t&&o.length<t,i=c=>{e(c.map(({text:p})=>({dataType:"text",data:p})));},a=()=>{if(n){let c=[...o,{text:"",id:v4()}];r(c),i(c);}},s=(c,p)=>{let u=o.map(f=>f.id===c?S(d({},f),{text:p}):f);r(u),i(u);},l=c=>{let p=o.findIndex(f=>f.id===c),u=[...o.slice(0,p),...o.slice(p+1)];r(u),i(u);};return J.createElement(Jy,null,J.createElement(dh,null,J.createElement(FormattedMessage,{id:"options_composer.title"})),o.map(c=>J.createElement(DO,{key:c.id,option:c,removeOption:()=>l(c.id),updateOption:p=>s(c.id,p)})),J.createElement("div",null,J.createElement(q,{"data-qa-anchor":"poll-composer-add-option-button",fullWidth:!0,disabled:!n,onClick:c=>{c.preventDefault(),a();}},J.createElement(E2,null)," ",J.createElement(FormattedMessage,{id:"options_composer.button.add"}))))},kh=VO;var Eh=m.div`
2083
+ `;var Th=200,DO=({option:e,removeOption:t,updateOption:o})=>{let[r,n]=useState(e.text);return J.createElement(Xy,null,J.createElement(mh,null,J.createElement(eh,{"data-qa-anchor":"poll-composer-option-item-input",value:r,maxLength:Th,onChange:a=>{n(a.target.value),o(a.target.value);}}),J.createElement($a,null,`${r.length}/${Th}`)),J.createElement(oh,{"data-qa-anchor":"poll-composer-option-item-close-button",onClick:t},J.createElement(th,{height:16})))},VO=({onChange:e,optionsLimit:t})=>{let[o,r]=useState([]),n=!t||t&&o.length<t,i=c=>{e(c.map(({text:p})=>({dataType:"text",data:p})));},a=()=>{if(n){let c=[...o,{text:"",id:v4()}];r(c),i(c);}},s=(c,p)=>{let u=o.map(f=>f.id===c?S(d({},f),{text:p}):f);r(u),i(u);},l=c=>{let p=o.findIndex(f=>f.id===c),u=[...o.slice(0,p),...o.slice(p+1)];r(u),i(u);};return J.createElement(Jy,null,J.createElement(dh,null,J.createElement(FormattedMessage,{id:"options_composer.title"})),o.map(c=>J.createElement(DO,{key:c.id,option:c,removeOption:()=>l(c.id),updateOption:p=>s(c.id,p)})),J.createElement("div",null,J.createElement(q,{"data-qa-anchor":"poll-composer-add-option-button",fullWidth:!0,disabled:!n,onClick:c=>{c.preventDefault(),a();}},J.createElement(E2,null)," ",J.createElement(FormattedMessage,{id:"options_composer.button.add"}))))},kh=VO;var Eh=m.div`
2084
2084
  display: flex;
2085
2085
  align-items: center;
2086
2086
  width: 100%;
@@ -2103,7 +2103,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2103
2103
  cursor: pointer;
2104
2104
  }
2105
2105
  }
2106
- `,Lh=m(N0).attrs({width:24,height:24})``,Fh=m(_o).attrs({width:24,height:24})``;var B3="{counter}",Dh=({icon:e=null,onClick:t,disabled:o})=>J.createElement(Bh,{disabled:o,onClick:t},e),HO=({output:e=""})=>J.createElement(Ah,null,e),UO=({renderDecButton:e=Dh,renderIncButton:t=Dh,renderResult:o=HO,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return J.createElement(Eh,null,e({onClick:c=>{c.preventDefault();let p=s-1;l(p),i(p);},icon:J.createElement(Lh,null),disabled:a&&s-1<0}),o({output:r.replace(B3,s)}),t({onClick:c=>{c.preventDefault();let p=s+1;l(p),i(p);},icon:J.createElement(Fh,null)}))},Vh=UO;var jO=({onChange:e,parentContainer:t=null})=>{let{formatMessage:o}=useIntl(),r=Object.values(["single","multiple"]).map(n=>({name:o({id:"select.answerType.item"},{answerType:n}),value:n}));return J.createElement(lh,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>J.createElement("div",null,n),onSelect:({value:n})=>e(n)})},Hh=jO;var Uh=500,rl=2,$a=10,WO=864e5,QO=({children:e})=>J.createElement(nh,null,J.createElement(rh,null,e)),KO=({className:e="",targetId:t,targetType:o,onCancel:r=()=>{},onSubmit:n=(a,s,l)=>{},onIsDirtyChange:i})=>{var G;let{text:a,markup:s,mentions:l,mentionees:c,metadata:p,queryMentionees:u,onChange:f}=Ho({targetId:t||void 0,targetType:o}),[g,h]=useState(!1),{info:C}=ue(),y={question:"",answers:[],answerType:"single",closedIn:0},{handleSubmit:x,setError:v,watch:_,control:M,formState:{errors:b,isDirty:w}}=useForm({defaultValues:y}),{formatMessage:T}=useIntl(),k=_("question",""),N=_("answers",[]);useEffect(()=>i==null?void 0:i(w),[w]);let F=O=>P(void 0,null,function*(){var ee,X,L;try{if(h(!0),!O.question.trim()){v("question",{message:"Question cannot be empty"});return}if(((ee=O==null?void 0:O.answers)==null?void 0:ee.length)<rl){v("answers",{message:`Minimum amount of answers should be ${rl}`});return}if(((X=O==null?void 0:O.answers)==null?void 0:X.length)>$a){v("answers",{message:`Maximum amount of answers should be ${$a}`});return}let H={question:O==null?void 0:O.question,answers:(L=O==null?void 0:O.answers)!=null&&L.length?O.answers:[],answerType:(O==null?void 0:O.answerType)||"single",closedIn:O&&O.closedIn?O.closedIn*WO:void 0};yield n(H,c,p);}finally{h(!1);}}),Z=!w||(k==null?void 0:k.length)===0||g,$=useRef(null);return J.createElement(Qy,null,J.createElement(Ky,{className:e,onSubmit:x(F)},J.createElement(ih,{ref:$},J.createElement(QO,null,J.createElement(R1,null,J.createElement(N3,null,J.createElement(tl,null,J.createElement(el,{className:"required"},J.createElement(FormattedMessage,{id:"poll_composer.question.label"}))),J.createElement(Ga,null,`${(G=a==null?void 0:a.length)!=null?G:0}/${Uh}`)),J.createElement(Controller,{control:M,name:"question",rules:{required:"Question is required",maxLength:{value:Uh,message:"Question is too long"}},render:H=>{var{field:K}=H,Y=K,{value:O,ref:ee,onChange:X}=Y,L=I(Y,["value","ref","onChange"]);return J.createElement(Ry,S(d({},L),{ref:ee,"data-qa-anchor":"poll-composer-options-textarea",mentionAllowed:!0,multiline:!0,value:s,queryMentionees:u,placeholder:T({id:"poll_composer.question.placeholder"}),onChange:D=>{var W=D,{plainText:pe,mentions:z}=W,E=I(W,["plainText","mentions"]);if((z==null?void 0:z.length)>V7)return C({title:J.createElement(FormattedMessage,{id:"pollComposer.unableToMention"}),content:J.createElement(FormattedMessage,{id:"pollComposer.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"pollComposer.okText"}),type:"info"});f(d({plainText:pe,mentions:z},E)),X(pe);}}))}}),J.createElement(T3,{errors:b,name:"question"})),J.createElement(R1,null,J.createElement(N3,null,J.createElement(tl,null,J.createElement(el,{className:"required"},J.createElement(FormattedMessage,{id:"poll_composer.poll_options.label"}))),J.createElement(Ga,null,`${N.length}/${$a}`)),J.createElement(Controller,{rules:{required:`There should be at least ${rl} answers`,minLength:{value:rl,message:`There should be at least ${rl} answers`},maxLength:{value:$a,message:`There can be only ${$a} answers maximum`}},name:"answers",control:M,render:({field:O})=>J.createElement(kh,d({optionsLimit:$a},O))}),J.createElement(T3,{errors:b,name:"answers"})),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(E3,null,J.createElement(tl,null,J.createElement(el,null,J.createElement(FormattedMessage,{id:"poll_modal.answer_type.title"})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll_modal.answer_type.body"}))),J.createElement(k3,null,J.createElement(Controller,{rules:{required:"Answer type is required"},name:"answerType",render:({field:O})=>J.createElement(Hh,d({parentContainer:$.current},O)),control:M})))),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(E3,null,J.createElement(tl,null,J.createElement(el,null,J.createElement(FormattedMessage,{id:"poll_modal.closed_in.title"})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll_modal.closed_in.body"}))),J.createElement(k3,null,J.createElement(Controller,{name:"closedIn",render:({field:O})=>J.createElement(Vh,S(d({},O),{onlyPositiveNumber:!0,resultFormat:`${B3} days`})),control:M})))))),J.createElement(ah,null,J.createElement(q,{onClick:O=>{O.preventDefault(),r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(sh,{"data-qa-anchor":"poll-composer-post-button",disabled:Z},J.createElement(FormattedMessage,{id:"post"})))))},zh=KO;var tH=({targetId:e,targetType:t,onClose:o,onCreatePoll:r})=>{let[n,i]=useState(!1),{formatMessage:a}=useIntl(),{confirm:s}=ue(),l=Ce(),c=(u,f,g)=>P(void 0,null,function*(){try{let h=yield PollRepository.createPoll(u);yield r(h.data.pollId,u.question,f,g),o();}catch(h){h instanceof Error&&h.message===In.CONTAIN_BLOCKED_WORD&&l.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),p=()=>s({title:a({id:"CommunityCreationModal.title"}),content:a({id:"CommunityCreationModal.content"}),cancelText:a({id:"CommunityCreationModal.cancelText"}),okText:a({id:"CommunityCreationModal.okText"}),onOk:o});return J.createElement(xt,{"data-qa-anchor":"poll-composer-modal",title:a({id:"poll_modal.title"}),clean:!1,onCancel:n?p:o},J.createElement(zh,{targetId:e,targetType:t,onIsDirtyChange:u=>i(u),onCancel:p,onSubmit:c}))},jh=tH;var iH=n=>{var i=n,{className:e,fixed:t=!1,children:o}=i,r=I(i,["className","fixed","children"]);return J.createElement(Popover,d({containerClassName:lo(e,{fixed:t})},r),o)},Gh=m(iH)`
2106
+ `,Lh=m(N0).attrs({width:24,height:24})``,Fh=m(_o).attrs({width:24,height:24})``;var B3="{counter}",Dh=({icon:e=null,onClick:t,disabled:o})=>J.createElement(Bh,{disabled:o,onClick:t},e),HO=({output:e=""})=>J.createElement(Ah,null,e),UO=({renderDecButton:e=Dh,renderIncButton:t=Dh,renderResult:o=HO,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return J.createElement(Eh,null,e({onClick:c=>{c.preventDefault();let p=s-1;l(p),i(p);},icon:J.createElement(Lh,null),disabled:a&&s-1<0}),o({output:r.replace(B3,s)}),t({onClick:c=>{c.preventDefault();let p=s+1;l(p),i(p);},icon:J.createElement(Fh,null)}))},Vh=UO;var jO=({onChange:e,parentContainer:t=null})=>{let{formatMessage:o}=useIntl(),r=Object.values(["single","multiple"]).map(n=>({name:o({id:"select.answerType.item"},{answerType:n}),value:n}));return J.createElement(lh,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>J.createElement("div",null,n),onSelect:({value:n})=>e(n)})},Hh=jO;var Uh=500,rl=2,Za=10,WO=864e5,QO=({children:e})=>J.createElement(nh,null,J.createElement(rh,null,e)),KO=({className:e="",targetId:t,targetType:o,onCancel:r=()=>{},onSubmit:n=(a,s,l)=>{},onIsDirtyChange:i})=>{var G;let{text:a,markup:s,mentions:l,mentionees:c,metadata:p,queryMentionees:u,onChange:f}=Ho({targetId:t||void 0,targetType:o}),[g,h]=useState(!1),{info:C}=ue(),y={question:"",answers:[],answerType:"single",closedIn:0},{handleSubmit:x,setError:v,watch:_,control:M,formState:{errors:b,isDirty:I}}=useForm({defaultValues:y}),{formatMessage:T}=useIntl(),k=_("question",""),N=_("answers",[]);useEffect(()=>i==null?void 0:i(I),[I]);let F=O=>P(void 0,null,function*(){var ee,X,L;try{if(h(!0),!O.question.trim()){v("question",{message:"Question cannot be empty"});return}if(((ee=O==null?void 0:O.answers)==null?void 0:ee.length)<rl){v("answers",{message:`Minimum amount of answers should be ${rl}`});return}if(((X=O==null?void 0:O.answers)==null?void 0:X.length)>Za){v("answers",{message:`Maximum amount of answers should be ${Za}`});return}let H={question:O==null?void 0:O.question,answers:(L=O==null?void 0:O.answers)!=null&&L.length?O.answers:[],answerType:(O==null?void 0:O.answerType)||"single",closedIn:O&&O.closedIn?O.closedIn*WO:void 0};yield n(H,c,p);}finally{h(!1);}}),Z=!I||(k==null?void 0:k.length)===0||g,$=useRef(null);return J.createElement(Qy,null,J.createElement(Ky,{className:e,onSubmit:x(F)},J.createElement(ih,{ref:$},J.createElement(QO,null,J.createElement(R1,null,J.createElement(N3,null,J.createElement(tl,null,J.createElement(el,{className:"required"},J.createElement(FormattedMessage,{id:"poll_composer.question.label"}))),J.createElement($a,null,`${(G=a==null?void 0:a.length)!=null?G:0}/${Uh}`)),J.createElement(Controller,{control:M,name:"question",rules:{required:"Question is required",maxLength:{value:Uh,message:"Question is too long"}},render:H=>{var{field:K}=H,Y=K,{value:O,ref:ee,onChange:X}=Y,L=w(Y,["value","ref","onChange"]);return J.createElement(Ry,S(d({},L),{ref:ee,"data-qa-anchor":"poll-composer-options-textarea",mentionAllowed:!0,multiline:!0,value:s,queryMentionees:u,placeholder:T({id:"poll_composer.question.placeholder"}),onChange:D=>{var W=D,{plainText:pe,mentions:z}=W,E=w(W,["plainText","mentions"]);if((z==null?void 0:z.length)>V7)return C({title:J.createElement(FormattedMessage,{id:"pollComposer.unableToMention"}),content:J.createElement(FormattedMessage,{id:"pollComposer.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"pollComposer.okText"}),type:"info"});f(d({plainText:pe,mentions:z},E)),X(pe);}}))}}),J.createElement(T3,{errors:b,name:"question"})),J.createElement(R1,null,J.createElement(N3,null,J.createElement(tl,null,J.createElement(el,{className:"required"},J.createElement(FormattedMessage,{id:"poll_composer.poll_options.label"}))),J.createElement($a,null,`${N.length}/${Za}`)),J.createElement(Controller,{rules:{required:`There should be at least ${rl} answers`,minLength:{value:rl,message:`There should be at least ${rl} answers`},maxLength:{value:Za,message:`There can be only ${Za} answers maximum`}},name:"answers",control:M,render:({field:O})=>J.createElement(kh,d({optionsLimit:Za},O))}),J.createElement(T3,{errors:b,name:"answers"})),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(E3,null,J.createElement(tl,null,J.createElement(el,null,J.createElement(FormattedMessage,{id:"poll_modal.answer_type.title"})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll_modal.answer_type.body"}))),J.createElement(k3,null,J.createElement(Controller,{rules:{required:"Answer type is required"},name:"answerType",render:({field:O})=>J.createElement(Hh,d({parentContainer:$.current},O)),control:M})))),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(E3,null,J.createElement(tl,null,J.createElement(el,null,J.createElement(FormattedMessage,{id:"poll_modal.closed_in.title"})),J.createElement("div",null,J.createElement(FormattedMessage,{id:"poll_modal.closed_in.body"}))),J.createElement(k3,null,J.createElement(Controller,{name:"closedIn",render:({field:O})=>J.createElement(Vh,S(d({},O),{onlyPositiveNumber:!0,resultFormat:`${B3} days`})),control:M})))))),J.createElement(ah,null,J.createElement(q,{onClick:O=>{O.preventDefault(),r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(sh,{"data-qa-anchor":"poll-composer-post-button",disabled:Z},J.createElement(FormattedMessage,{id:"post"})))))},zh=KO;var tH=({targetId:e,targetType:t,onClose:o,onCreatePoll:r})=>{let[n,i]=useState(!1),{formatMessage:a}=useIntl(),{confirm:s}=ue(),l=Ce(),c=(u,f,g)=>P(void 0,null,function*(){try{let h=yield PollRepository.createPoll(u);yield r(h.data.pollId,u.question,f,g),o();}catch(h){h instanceof Error&&h.message===In.CONTAIN_BLOCKED_WORD&&l.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),p=()=>s({title:a({id:"CommunityCreationModal.title"}),content:a({id:"CommunityCreationModal.content"}),cancelText:a({id:"CommunityCreationModal.cancelText"}),okText:a({id:"CommunityCreationModal.okText"}),onOk:o});return J.createElement(xt,{"data-qa-anchor":"poll-composer-modal",title:a({id:"poll_modal.title"}),clean:!1,onCancel:n?p:o},J.createElement(zh,{targetId:e,targetType:t,onIsDirtyChange:u=>i(u),onCancel:p,onSubmit:c}))},jh=tH;var iH=n=>{var i=n,{className:e,fixed:t=!1,children:o}=i,r=w(i,["className","fixed","children"]);return J.createElement(Popover,d({containerClassName:lo(e,{fixed:t})},r),o)},Gh=m(iH)`
2107
2107
  ${({theme:e})=>e.typography.body}
2108
2108
  z-index: 10000;
2109
2109
  background: ${({theme:e})=>e.palette.system.background};
@@ -2179,25 +2179,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2179
2179
  `,oC=m(k0)``;var xH="video/*,.flv,.3gp",V3=m(k2)`
2180
2180
  ${({uploadLoading:e})=>e&&"cursor: wait !important;"}
2181
2181
  ${({disabled:e,theme:t})=>e&&`color: ${t.palette.neutral.shade2};`}
2182
- `,bH=({fileUploadDisabled:e,imageUploadDisabled:t,videoUploadDisabled:o,onChangeImages:r,onChangeVideos:n,onChangeFiles:i,uploadLoading:a,onMaxFilesLimit:s,onFileSizeLimit:l,fileLimitRemaining:c})=>J.createElement(J.Fragment,null,J.createElement(V3,{"data-qa-anchor":"post-creator-image-attachment-button",disabled:t,uploadLoading:a,fileLimitRemaining:c,mimeType:"image/*",multiple:!0,onChange:r,onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(h1,null)),J.createElement(V3,{"data-qa-anchor":"post-creator-video-attachment-button",disabled:o,uploadLoading:a,fileLimitRemaining:c,mimeType:xH,multiple:!0,onChange:p=>{p.forEach(u=>{u.forceType=FileType.VIDEO;}),n==null||n(p);},onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(eC,{icon:"video"})),J.createElement(V3,{"data-qa-anchor":"post-creator-file-attachment-button",disabled:e,uploadLoading:a,fileLimitRemaining:c,multiple:!0,onChange:i,onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(C1,null))),rC=bH;var wH=.999;function Za(e){return e.fileId!==void 0}var H3=e=>Za(e)?e.updatedAt?new Date(e.updatedAt).getTime():Date.now():e.lastModified;function Di({files:e=[],uploadedFiles:t=[],onChange:o=i=>{},onLoadingChange:r=i=>{},onError:n=i=>{}}){let[i,a]=useState({}),[s,l]=useState([]),c=useMemo(()=>Array.isArray(e)?e:Array.from(e),[e]);useEffect(()=>{a(c.reduce((C,y)=>S(d({},C),{[y.name]:0}),{}));},[c]);let p=useCallback((C,y)=>{let x=y<=wH?y:1;a(v=>S(d({},v),{[C.name]:x}));},[]),u=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),f=useCallback(()=>{l([]);},[]),g=useCallback(C=>{if(Za(C)){let y=t.filter(x=>x.fileId!==C.fileId);o({uploaded:y,uploading:c});}else {let y=c.filter(x=>x.name!==C.name);o({uploaded:t,uploading:y});}},[o]);return useEffect(()=>{if(!c.length)return;function C(){return P(this,null,function*(){r(!0);try{let y=yield Promise.all(c.map(v=>P(this,null,function*(){let _=new FormData;_.append("files",v);let M=yield P(this,null,function*(){return v.type.includes(FileType.VIDEO)?FileRepository.uploadVideo(_,void 0,b=>{p(v,b);}):v.type.includes(FileType.IMAGE)?FileRepository.uploadImage(_,b=>{p(v,b);}):FileRepository.uploadFile(_,b=>{p(v,b);})});return M.data.length>0?M.data[0]:null})));a({});let x=[...t,...y].filter(Ue);o({uploaded:x,uploading:[]}),l([]);}catch(y){l(c.map(x=>x.name)),n("Something went wrong. Please try uploading again.");}finally{r(!1);}})}C();},[c]),{allFiles:[...t,...c],uploading:c,uploaded:t,progress:i,removeFile:g,reset:u,rejected:s,retry:f}}var MH=m(Mn)`
2182
+ `,bH=({fileUploadDisabled:e,imageUploadDisabled:t,videoUploadDisabled:o,onChangeImages:r,onChangeVideos:n,onChangeFiles:i,uploadLoading:a,onMaxFilesLimit:s,onFileSizeLimit:l,fileLimitRemaining:c})=>J.createElement(J.Fragment,null,J.createElement(V3,{"data-qa-anchor":"post-creator-image-attachment-button",disabled:t,uploadLoading:a,fileLimitRemaining:c,mimeType:"image/*",multiple:!0,onChange:r,onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(C1,null)),J.createElement(V3,{"data-qa-anchor":"post-creator-video-attachment-button",disabled:o,uploadLoading:a,fileLimitRemaining:c,mimeType:xH,multiple:!0,onChange:p=>{p.forEach(u=>{u.forceType=FileType.VIDEO;}),n==null||n(p);},onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(eC,{icon:"video"})),J.createElement(V3,{"data-qa-anchor":"post-creator-file-attachment-button",disabled:e,uploadLoading:a,fileLimitRemaining:c,multiple:!0,onChange:i,onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(v1,null))),rC=bH;var wH=.999,_H=e=>new Promise((t,o)=>{let r=document.createElement("video"),n=document.createElement("canvas"),i=n.getContext("2d");r.src=URL.createObjectURL(e);let a=()=>{r.currentTime=10;},s=()=>{try{n.width=r.videoWidth,n.height=r.videoHeight,i==null||i.drawImage(r,0,0,n.width,n.height);let c=n.toDataURL("image/png");t(c);}catch(c){o(c);}finally{r.removeEventListener("canplay",a),r.removeEventListener("seeked",s),r.removeEventListener("error",l),URL.revokeObjectURL(r.src);}},l=c=>{o(new Error(`Error loading video: ${c}`));};r.addEventListener("canplay",a),r.addEventListener("seeked",s),r.addEventListener("error",l),r.load();});function qa(e){return e.fileId!==void 0}var H3=e=>qa(e)?e.updatedAt?new Date(e.updatedAt).getTime():Date.now():e.lastModified;function Di({files:e=[],uploadedFiles:t=[],onChange:o=i=>{},onLoadingChange:r=i=>{},onError:n=i=>{}}){let[i,a]=useState({}),[s,l]=useState([]),c=useMemo(()=>Array.isArray(e)?e:Array.from(e),[e]);useEffect(()=>{a(c.reduce((C,y)=>S(d({},C),{[y.name]:0}),{}));},[c]);let p=useCallback((C,y)=>{let x=y<=wH?y:1;a(v=>S(d({},v),{[C.name]:x}));},[]),u=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),f=useCallback(()=>{l([]);},[]),g=useCallback(C=>{if(qa(C)){let y=t.filter(x=>x.fileId!==C.fileId);o({uploaded:y,uploading:c});}else {let y=c.filter(x=>x.name!==C.name);o({uploaded:t,uploading:y});}},[o]);return useEffect(()=>{if(!c.length)return;function C(){return P(this,null,function*(){r(!0);try{let y=yield Promise.all(c.map(v=>P(this,null,function*(){let _=new FormData;_.append("files",v);let M=yield P(this,null,function*(){var b,I;if(v.type.includes(FileType.VIDEO)){let T=yield _H(v),k=yield FileRepository.uploadVideo(_,void 0,F=>{p(v,F);}),N=(I=(b=k.data)==null?void 0:b[0])==null?void 0:I.fileId;return N&&sessionStorage.setItem("thumbnail_"+N,T),k}else return v.type.includes(FileType.IMAGE)?FileRepository.uploadImage(_,T=>{p(v,T);}):FileRepository.uploadFile(_,T=>{p(v,T);})});return M.data.length>0?M.data[0]:null})));a({});let x=[...t,...y].filter(Ue);o({uploaded:x,uploading:[]}),l([]);}catch(y){l(c.map(x=>x.name)),n("Something went wrong. Please try uploading again.");}finally{r(!1);}})}C();},[c]),{allFiles:[...t,...c],uploading:c,uploaded:t,progress:i,removeFile:g,reset:u,rejected:s,retry:f}}var PH=m(Mn)`
2183
2183
  ${({uploadLoading:e})=>e&&j`
2184
2184
  cursor: wait !important;
2185
2185
  `}
2186
- `,PH=({allFiles:e,progress:t,removeFile:o,uploadLoading:r,rejected:n,retry:i})=>J.createElement(MH,{items:e,uploadLoading:r,renderItem:a=>{if(!Za(a))return J.createElement(st,{key:a==null?void 0:a.name,"data-qa-anchor":"post-creator-uploaded-image",file:a,progress:t[a==null?void 0:a.name],isRejected:n.includes(a==null?void 0:a.name)});let{fileId:s}=a;return J.createElement(st,{key:s,fileId:s,"data-qa-anchor":"post-creator-uploaded-image",onRemove:()=>o(a)})}}),SH=({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i})=>{let a=Di({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{info:s}=ue(),{allFiles:l,rejected:c,reset:p}=a;return useEffect(()=>{c&&c.length>0&&s({title:"Error",content:"There was an issue uploading media. Please try again later.",onOk:()=>p(),okText:"Discard",onCancel:()=>p(),OkButton:void 0});},[c]),l.length===0?null:J.createElement(PH,S(d({},a),{uploadLoading:n}))},sC=SH;var NH=m.div`
2186
+ `,SH=({allFiles:e,progress:t,removeFile:o,uploadLoading:r,rejected:n,retry:i})=>J.createElement(PH,{items:e,uploadLoading:r,renderItem:a=>{if(!qa(a))return J.createElement(lt,{key:a==null?void 0:a.name,"data-qa-anchor":"post-creator-uploaded-image",file:a,progress:t[a==null?void 0:a.name],isRejected:n.includes(a==null?void 0:a.name)});let{fileId:s}=a;return J.createElement(lt,{key:s,fileId:s,"data-qa-anchor":"post-creator-uploaded-image",onRemove:()=>o(a)})}}),TH=({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i})=>{let a=Di({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{info:s}=ue(),{allFiles:l,rejected:c,reset:p}=a;return useEffect(()=>{c&&c.length>0&&s({title:"Error",content:"There was an issue uploading media. Please try again later.",onOk:()=>p(),okText:"Discard",onCancel:()=>p(),OkButton:void 0});},[c]),l.length===0?null:J.createElement(SH,S(d({},a),{uploadLoading:n}))},sC=TH;var kH=m.div`
2187
2187
  display: grid;
2188
2188
  grid-template-columns: 100%;
2189
2189
  grid-gap: 0.5em;
2190
2190
  min-height: 1em;
2191
2191
  margin-bottom: 1rem;
2192
2192
  ${({uploadLoading:e})=>e&&"cursor: wait !important;"}
2193
- `,kH=({uploading:e,uploaded:t,progress:o,removeFile:r,uploadLoading:n,rejected:i,retry:a,rowDataQaAnchor:s})=>J.createElement(NH,{uploadLoading:n},t.map(l=>J.createElement(jo,{key:l.fileId,"data-qa-anchor":s,fileId:l.fileId,onRemove:()=>r(l)})),e.map(l=>J.createElement(jo,{key:l.name,"data-qa-anchor":s,file:l,progress:o[l.name],isRejected:i.includes(l.name),onRemove:()=>r(l)}))),EH=({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i,rowDataQaAnchor:a="post-creator-uploaded-file"})=>{let s=Di({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{info:l}=ue(),{allFiles:c,rejected:p,reset:u}=s;return useEffect(()=>{p&&p.length>0&&l({title:"Error",content:"There was an issue uploading file. Please try again later.",onOk:()=>u(),okText:"Discard",onCancel:()=>u(),OkButton:void 0});},[p]),c.length===0?null:J.createElement(kH,S(d({},s),{uploadLoading:n,rowDataQaAnchor:a}))},O2=EH;var BH=e=>J.createElement(O2,S(d({},e),{rowDataQaAnchor:"post-creator-uploaded-video"})),lC=BH;var GH=({targetId:e,targetType:t})=>{let[o,r]=useState(null),[n,i]=useState(null),a=useRef(null);return useEffect(()=>{if(!(e==null||e===""))return a.current&&a.current(),(t==="communityFeed"||t==="community")&&(a.current=CommunityRepository.getCommunity(e,s=>{r(s.data);})),a.current=UserRepository.getUser(e,s=>{i(s.data);}),()=>{var s;(s=a.current)==null||s.call(a);}},[e,t]),{community:o,user:n}},$H=10,ZH=({className:e="",targetType:t,targetId:o,enablePostTargetPicker:r,communities:n=[],placeholder:i="What's going on...",hasMoreCommunities:a,loadMoreCommunities:s,onCreateSuccess:l,maxFiles:c=$H})=>{var ci,pi,ui;let{currentUserId:p}=ne(),{setNavigationBlocker:u}=Q(),f=Me(p),{info:g}=ue(),h=Ce();(t==="global"||t==="myFeed")&&(t="user",o=p||"");let[C,y]=useState({targetType:t,targetId:o}),{user:x,community:v}=GH({targetId:C.targetId,targetType:C.targetType}),{moderators:_}=Jr(v==null?void 0:v.communityId);useEffect(()=>{y({targetType:t,targetId:o});},[t,o]);te({fileId:(x==null?void 0:x.avatarFileId)||(v==null?void 0:v.avatarFileId)||""});let [b,w]=useState([]),[T,k]=useState([]),[N,F]=useState([]),[Z,$]=useState([]),[G,O]=useState([]),[ee,X]=useState([]),[L,H]=useState(!1);jy();let {mentionees:Y,metadata:pe,text:z,markup:E,onChange:D,queryMentionees:W,clearAll:ae}=Ho({targetType:C.targetType,targetId:C.targetId||void 0}),[me,ye]=useState(!1),it=()=>{g({title:J.createElement(FormattedMessage,{id:"postCreator.unableToPost"}),content:J.createElement(FormattedMessage,{id:"postCreator.overCharacter"}),okText:J.createElement(FormattedMessage,{id:"postCreator.done"}),type:"info"});};function wr(De){return P(this,null,function*(){if(C.targetId)try{ye(!0);let Et=(yield PostRepository.createPost(De)).data;if(l==null||l(Et),ae(),w([]),k([]),F([]),$([]),O([]),X([]),v){let Do=(_||[]).find(se=>se.userId===Et.postedUserId)!=null;v.postSetting===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&!Do&&h.success({content:J.createElement(FormattedMessage,{id:"post.success.submittedToReview"})});}}catch(qe){qe instanceof Error&&qe.message===In.CONTAIN_BLOCKED_WORD&&h.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}finally{ye(!1);}})}function _r(){return P(this,null,function*(){var Do;if(!C.targetId)return;let De={},qe=[];if(z&&(De.text=z),b.length&&qe.push(...b.map(se=>({fileId:se.fileId,type:FileType.IMAGE}))),T.length&&qe.push(...T.map(se=>({fileId:se.fileId,type:FileType.VIDEO}))),N.length&&qe.push(...N.map(se=>({fileId:se.fileId,type:FileType.FILE}))),(Do=De.text)!=null&&Do.length&&De.text.length>5e4){it();return}let Et={targetId:C.targetId,targetType:C.targetType,data:De,dataType:"text",attachments:qe,metadata:pe,mentionees:Y};return wr(Et)})}let no=()=>{h.info({content:J.createElement(FormattedMessage,{id:"upload.attachmentLimit",values:{maxFiles:c}})});},s1=()=>{h.info({content:J.createElement(FormattedMessage,{id:"upload.fileSizeLimit"})});},l1=C.targetType==="community"?so:Ve,$r=J.createElement(Yh,{avatar:((ci=f==null?void 0:f.avatar)==null?void 0:ci.fileUrl)||void 0,backgroundImage:l1}),li=!z&&b.length===0&&T.length===0&&N.length===0||L||me,mi=!(!z&&b.length===0&&T.length===0&&N.length===0);useEffect(()=>{mi?u==null||u({title:J.createElement(FormattedMessage,{id:"post.discard.title"}),content:J.createElement(FormattedMessage,{id:"post.discard.content"}),okText:J.createElement(FormattedMessage,{id:"general.action.discard"}),onOk:()=>{ae(),w([]),k([]),F([]),$([]),O([]),X([]),u==null||u(null);}}):u==null||u(null);},[mi,u]);let[m1,ua]=useState(!1),fa=()=>ua(!0),di=(pi=C==null?void 0:C.targetType)!=null?pi:t,un=(ui=C==null?void 0:C.targetId)!=null?ui:o;return J.createElement(Wh,{className:lo("postComposeBar",e)},m1&&J.createElement(jh,{targetId:un||void 0,targetType:di,onCreatePoll:(De,qe,Et,Do)=>P(void 0,null,function*(){un&&wr({targetId:un,targetType:di,data:{pollId:De,text:qe},dataType:"poll",mentionees:Et,metadata:Do});}),onClose:()=>ua(!1)}),r&&f?J.createElement(qh,{user:f,communities:n,hasMoreCommunities:a,loadMoreCommunities:s,currentTargetId:C.targetId,onChange:y},$r):$r,J.createElement(Kh,null,J.createElement(Rh,{"data-qa-anchor":"post-creator-textarea",multiline:!0,value:E,placeholder:i,mentionAllowed:!0,queryMentionees:W,loadMoreMentionees:De=>W(De),append:J.createElement(Xh,null,J.createElement(sC,{files:Z,uploadedFiles:b,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{w(De),$(qe);}}),J.createElement(lC,{files:G,uploadedFiles:T,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{k(De),O(qe);}}),J.createElement(O2,{files:ee,uploadedFiles:N,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{F(De),X(qe);}})),onChange:({text:De,plainText:qe,mentions:Et})=>{if((Et==null?void 0:Et.length)>30)return g({title:J.createElement(FormattedMessage,{id:"postCreator.unableToMention"}),content:J.createElement(FormattedMessage,{id:"postCreator.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"postCreator.okText"}),type:"info"});D({text:De,plainText:qe,mentions:Et});}}),J.createElement(Qh,{"data-qa-anchor":"post-creator-footer"},J.createElement(rC,{imageUploadDisabled:N.length>0||T.length>0||L,videoUploadDisabled:N.length>0||b.length>0||L,fileUploadDisabled:b.length>0||T.length>0||L,fileLimitRemaining:c-N.length-b.length-T.length,uploadLoading:L,onChangeImages:De=>$(De),onChangeVideos:O,onChangeFiles:X,onMaxFilesLimit:no,onFileSizeLimit:s1}),J.createElement(tC,{"data-qa-anchor":"post-creator-poll-button",onClick:fa},J.createElement(S3,null,J.createElement(oC,null))),J.createElement(Jh,{disabled:li,"data-qa-anchor":"post-creator-post-button",onClick:_r},J.createElement(FormattedMessage,{id:"post"})))))},nl=memo(ZH);var WH=({postId:e,className:t,hidePostTarget:o,readonly:r,onDeleted:n})=>{var _;let i=Oo(e),a=Me(i==null?void 0:i.postedUserId),s=te({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"}),l=Y1(i==null?void 0:i.children),{userRoles:c}=ne(),p=Hy(i==null?void 0:i.dataType),{currentUserId:u}=ne(),f=(l||[]).find(M=>M.dataType==="poll"),g=M2((_=f==null?void 0:f.data)==null?void 0:_.pollId),h=(g==null?void 0:g.status)==="closed",C=()=>P(void 0,null,function*(){g!=null&&(yield PollRepository.closePoll(g.pollId));}),y=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.deletePost(i.postId),n==null||n(i.postId));}),x=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.approvePost(i.postId));}),v=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.declinePost(i.postId));});return i==null||p==null?J.createElement(po,{loading:!0}):J.createElement(J.Fragment,null,p({childrenPosts:l||[],handleClosePoll:C,isPollClosed:h,avatarFileUrl:s,user:a,poll:g,className:t,currentUserId:u||void 0,hidePostTarget:o,post:i,userRoles:c,readonly:r,handleApprovePost:x,handleDeclinePost:v,handleDeletePost:y}))},il=memo(e=>{let t=V("Post");return t?t(e):J.createElement(WH,d({},e))});var QH=m(np).attrs({width:48,height:48})`
2193
+ `,EH=({uploading:e,uploaded:t,progress:o,removeFile:r,uploadLoading:n,rejected:i,retry:a,rowDataQaAnchor:s})=>J.createElement(kH,{uploadLoading:n},t.map(l=>J.createElement(jo,{key:l.fileId,"data-qa-anchor":s,fileId:l.fileId,onRemove:()=>r(l)})),e.map(l=>J.createElement(jo,{key:l.name,"data-qa-anchor":s,file:l,progress:o[l.name],isRejected:i.includes(l.name),onRemove:()=>r(l)}))),AH=({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i,rowDataQaAnchor:a="post-creator-uploaded-file"})=>{let s=Di({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{info:l}=ue(),{allFiles:c,rejected:p,reset:u}=s;return useEffect(()=>{p&&p.length>0&&l({title:"Error",content:"There was an issue uploading file. Please try again later.",onOk:()=>u(),okText:"Discard",onCancel:()=>u(),OkButton:void 0});},[p]),c.length===0?null:J.createElement(EH,S(d({},s),{uploadLoading:n,rowDataQaAnchor:a}))},O2=AH;var LH=e=>J.createElement(O2,S(d({},e),{rowDataQaAnchor:"post-creator-uploaded-video"})),lC=LH;var $H=({targetId:e,targetType:t})=>{let[o,r]=useState(null),[n,i]=useState(null),a=useRef(null);return useEffect(()=>{if(!(e==null||e===""))return a.current&&a.current(),(t==="communityFeed"||t==="community")&&(a.current=CommunityRepository.getCommunity(e,s=>{r(s.data);})),a.current=UserRepository.getUser(e,s=>{i(s.data);}),()=>{var s;(s=a.current)==null||s.call(a);}},[e,t]),{community:o,user:n}},ZH=10,qH=({className:e="",targetType:t,targetId:o,enablePostTargetPicker:r,communities:n=[],placeholder:i="What's going on...",hasMoreCommunities:a,loadMoreCommunities:s,onCreateSuccess:l,maxFiles:c=ZH})=>{var ci,pi,ui;let{currentUserId:p}=ne(),{setNavigationBlocker:u}=Q(),f=Me(p),{info:g}=ue(),h=Ce();(t==="global"||t==="myFeed")&&(t="user",o=p||"");let[C,y]=useState({targetType:t,targetId:o}),{user:x,community:v}=$H({targetId:C.targetId,targetType:C.targetType}),{moderators:_}=Jr(v==null?void 0:v.communityId);useEffect(()=>{y({targetType:t,targetId:o});},[t,o]);te({fileId:(x==null?void 0:x.avatarFileId)||(v==null?void 0:v.avatarFileId)||""});let [b,I]=useState([]),[T,k]=useState([]),[N,F]=useState([]),[Z,$]=useState([]),[G,O]=useState([]),[ee,X]=useState([]),[L,H]=useState(!1);jy();let {mentionees:Y,metadata:pe,text:z,markup:E,onChange:D,queryMentionees:W,clearAll:ae}=Ho({targetType:C.targetType,targetId:C.targetId||void 0}),[me,ye]=useState(!1),at=()=>{g({title:J.createElement(FormattedMessage,{id:"postCreator.unableToPost"}),content:J.createElement(FormattedMessage,{id:"postCreator.overCharacter"}),okText:J.createElement(FormattedMessage,{id:"postCreator.done"}),type:"info"});};function wr(De){return P(this,null,function*(){if(C.targetId)try{ye(!0);let Et=(yield PostRepository.createPost(De)).data;if(l==null||l(Et),ae(),I([]),k([]),F([]),$([]),O([]),X([]),v){let Do=(_||[]).find(se=>se.userId===Et.postedUserId)!=null;v.postSetting===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&!Do&&h.success({content:J.createElement(FormattedMessage,{id:"post.success.submittedToReview"})});}}catch(qe){qe instanceof Error&&qe.message===In.CONTAIN_BLOCKED_WORD&&h.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}finally{ye(!1);}})}function _r(){return P(this,null,function*(){var Do;if(!C.targetId)return;let De={},qe=[];if(z&&(De.text=z),b.length&&qe.push(...b.map(se=>({fileId:se.fileId,type:FileType.IMAGE}))),T.length&&qe.push(...T.map(se=>({fileId:se.fileId,type:FileType.VIDEO}))),N.length&&qe.push(...N.map(se=>({fileId:se.fileId,type:FileType.FILE}))),(Do=De.text)!=null&&Do.length&&De.text.length>5e4){at();return}let Et={targetId:C.targetId,targetType:C.targetType,data:De,dataType:"text",attachments:qe,metadata:pe,mentionees:Y};return wr(Et)})}let no=()=>{h.info({content:J.createElement(FormattedMessage,{id:"upload.attachmentLimit",values:{maxFiles:c}})});},l1=()=>{h.info({content:J.createElement(FormattedMessage,{id:"upload.fileSizeLimit"})});},m1=C.targetType==="community"?so:Ve,$r=J.createElement(Yh,{avatar:((ci=f==null?void 0:f.avatar)==null?void 0:ci.fileUrl)||void 0,backgroundImage:m1}),li=!z&&b.length===0&&T.length===0&&N.length===0||L||me,mi=!(!z&&b.length===0&&T.length===0&&N.length===0);useEffect(()=>{mi?u==null||u({title:J.createElement(FormattedMessage,{id:"post.discard.title"}),content:J.createElement(FormattedMessage,{id:"post.discard.content"}),okText:J.createElement(FormattedMessage,{id:"general.action.discard"}),onOk:()=>{ae(),I([]),k([]),F([]),$([]),O([]),X([]),u==null||u(null);}}):u==null||u(null);},[mi,u]);let[d1,ua]=useState(!1),fa=()=>ua(!0),di=(pi=C==null?void 0:C.targetType)!=null?pi:t,un=(ui=C==null?void 0:C.targetId)!=null?ui:o;return J.createElement(Wh,{className:lo("postComposeBar",e)},d1&&J.createElement(jh,{targetId:un||void 0,targetType:di,onCreatePoll:(De,qe,Et,Do)=>P(void 0,null,function*(){un&&wr({targetId:un,targetType:di,data:{pollId:De,text:qe},dataType:"poll",mentionees:Et,metadata:Do});}),onClose:()=>ua(!1)}),r&&f?J.createElement(qh,{user:f,communities:n,hasMoreCommunities:a,loadMoreCommunities:s,currentTargetId:C.targetId,onChange:y},$r):$r,J.createElement(Kh,null,J.createElement(Rh,{"data-qa-anchor":"post-creator-textarea",multiline:!0,value:E,placeholder:i,mentionAllowed:!0,queryMentionees:W,loadMoreMentionees:De=>W(De),append:J.createElement(Xh,null,J.createElement(sC,{files:Z,uploadedFiles:b,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{I(De),$(qe);}}),J.createElement(lC,{files:G,uploadedFiles:T,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{k(De),O(qe);}}),J.createElement(O2,{files:ee,uploadedFiles:N,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:De,uploading:qe})=>{F(De),X(qe);}})),onChange:({text:De,plainText:qe,mentions:Et})=>{if((Et==null?void 0:Et.length)>30)return g({title:J.createElement(FormattedMessage,{id:"postCreator.unableToMention"}),content:J.createElement(FormattedMessage,{id:"postCreator.overMentionees"}),okText:J.createElement(FormattedMessage,{id:"postCreator.okText"}),type:"info"});D({text:De,plainText:qe,mentions:Et});}}),J.createElement(Qh,{"data-qa-anchor":"post-creator-footer"},J.createElement(rC,{imageUploadDisabled:N.length>0||T.length>0||L,videoUploadDisabled:N.length>0||b.length>0||L,fileUploadDisabled:b.length>0||T.length>0||L,fileLimitRemaining:c-N.length-b.length-T.length,uploadLoading:L,onChangeImages:De=>$(De),onChangeVideos:O,onChangeFiles:X,onMaxFilesLimit:no,onFileSizeLimit:l1}),J.createElement(tC,{"data-qa-anchor":"post-creator-poll-button",onClick:fa},J.createElement(S3,null,J.createElement(oC,null))),J.createElement(Jh,{disabled:li,"data-qa-anchor":"post-creator-post-button",onClick:_r},J.createElement(FormattedMessage,{id:"post"})))))},nl=memo(qH);var QH=({postId:e,className:t,hidePostTarget:o,readonly:r,onDeleted:n})=>{var _;let i=Oo(e),a=Me(i==null?void 0:i.postedUserId),s=te({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"}),l=Y1(i==null?void 0:i.children),{userRoles:c}=ne(),p=Hy(i==null?void 0:i.dataType),{currentUserId:u}=ne(),f=(l||[]).find(M=>M.dataType==="poll"),g=M2((_=f==null?void 0:f.data)==null?void 0:_.pollId),h=(g==null?void 0:g.status)==="closed",C=()=>P(void 0,null,function*(){g!=null&&(yield PollRepository.closePoll(g.pollId));}),y=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.deletePost(i.postId),n==null||n(i.postId));}),x=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.approvePost(i.postId));}),v=()=>P(void 0,null,function*(){i!=null&&(yield PostRepository.declinePost(i.postId));});return i==null||p==null?J.createElement(po,{loading:!0}):J.createElement(J.Fragment,null,p({childrenPosts:l||[],handleClosePoll:C,isPollClosed:h,avatarFileUrl:s,user:a,poll:g,className:t,currentUserId:u||void 0,hidePostTarget:o,post:i,userRoles:c,readonly:r,handleApprovePost:x,handleDeclinePost:v,handleDeletePost:y}))},il=memo(e=>{let t=V("Post");return t?t(e):J.createElement(QH,d({},e))});var KH=m(np).attrs({width:48,height:48})`
2194
2194
  margin: 10px;
2195
- `,KH=m(q)`
2195
+ `,JH=m(q)`
2196
2196
  font-size: 14px;
2197
2197
  margin-top: 8px;
2198
- `,JH=m(vi).attrs({width:16,height:16})`
2198
+ `,XH=m(vi).attrs({width:16,height:16})`
2199
2199
  margin-right: 6px;
2200
- `,XH=e=>{switch(e){case"globalFeed":case"global":return ()=>"feed.emptyFeed";case"communityFeed":case"community":return (t,o)=>o==="reviewing"?"feed.emptyCommunityReviewingFeed":t?"feed.emptyJoinedCommunityPublicFeed":"feed.emptyCommunityPublicFeed";case"userFeed":case"user":return ()=>"feed.emptyUserFeed";case"myFeed":return ()=>"feed.emptyMyFeed";default:return ()=>"feed.emptyFeed"}},RH=({targetType:e,canPost:t=!1,className:o=void 0,feedType:r=void 0,goToExplore:n})=>{var i;return J.createElement(kr,{className:o,title:J.createElement(FormattedMessage,{id:(i=XH(e))==null?void 0:i(t,r)}),icon:J.createElement(QH,null)},n&&J.createElement(KH,{onClick:n},J.createElement(JH,null),J.createElement(FormattedMessage,{id:"community.exploreCommunities"})))},al=e=>{let t=V("EmptyFeed");return t?t(e):J.createElement(RH,d({},e))};var oU=j`
2200
+ `,RH=e=>{switch(e){case"globalFeed":case"global":return ()=>"feed.emptyFeed";case"communityFeed":case"community":return (t,o)=>o==="reviewing"?"feed.emptyCommunityReviewingFeed":t?"feed.emptyJoinedCommunityPublicFeed":"feed.emptyCommunityPublicFeed";case"userFeed":case"user":return ()=>"feed.emptyUserFeed";case"myFeed":return ()=>"feed.emptyMyFeed";default:return ()=>"feed.emptyFeed"}},eU=({targetType:e,canPost:t=!1,className:o=void 0,feedType:r=void 0,goToExplore:n})=>{var i;return J.createElement(kr,{className:o,title:J.createElement(FormattedMessage,{id:(i=RH(e))==null?void 0:i(t,r)}),icon:J.createElement(KH,null)},n&&J.createElement(JH,{onClick:n},J.createElement(XH,null),J.createElement(FormattedMessage,{id:"community.exploreCommunities"})))},al=e=>{let t=V("EmptyFeed");return t?t(e):J.createElement(eU,d({},e))};var rU=j`
2201
2201
  > :not(:first-child) {
2202
2202
  margin-top: 20px;
2203
2203
  }
@@ -2210,7 +2210,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2210
2210
  margin-top: 20px;
2211
2211
  margin-bottom: 20px;
2212
2212
  }
2213
- `,sl=e=>J.createElement(dH,S(d({},e),{className:String(oU)}));m.div`
2213
+ `,sl=e=>J.createElement(dH,S(d({},e),{className:String(rU)}));m.div`
2214
2214
  display: flex;
2215
2215
  flex-direction: column;
2216
2216
  align-items: center;
@@ -2257,7 +2257,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2257
2257
  `,fC=m.div`
2258
2258
  font-size: 14px;
2259
2259
  color: ${({theme:e})=>e.palette.base.shade1};
2260
- `;var rU=()=>J.createElement(dC,null,J.createElement(cC,null,J.createElement(pC,null)),J.createElement(uC,null,J.createElement(FormattedMessage,{id:"privateFeed.title"})),J.createElement(fC,null,J.createElement(FormattedMessage,{id:"privateFeed.body"}))),ll=rU;var sU=()=>{let[e,t]=useState([]),[o,r]=useState(!1),[n,i]=useState(null),[a,s]=useState(!1);function l(){return P(this,null,function*(){if(!o)try{r(!0);let g=yield FeedRepository.queryGlobalFeed({limit:10,queryToken:n||void 0});i(g.paging.next||null),t(h=>{let C=new Set([...h.map(y=>y.postId)]);return [...h,...g.data.filter(y=>!C.has(y.postId))]});}finally{r(!1);}})}useEffect(()=>(l(),()=>{t([]),i(null);}),[]);let c=g=>{t(h=>new Set([...h.map(y=>y.postId)]).has(g.postId)?h:[g,...h]);},p=g=>{let h=e.filter(C=>C.postId!==g);t(h);},u=useMemo(()=>n!==null,[n]);return {contents:e,isLoading:o,prependItem:c,removeItem:p,loadMore:()=>{s(!0),u&&!o&&l();},hasMore:u,loadMoreHasBeenCalled:a}},ml=sU;function Br(e,t){let n=Pe({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:()=>!!e&&(!0)}),{items:o}=n,r=I(n,["items"]);return d({communities:o},r)}var cU=({className:e="",feedType:t,showPostCreator:o=!1,goToExplore:r,readonly:n=!1,isHiddenProfile:i=!1})=>{let{currentUserId:a}=ne(),{contents:s,isLoading:l,loadMore:c,prependItem:p,removeItem:u,hasMore:f,loadMoreHasBeenCalled:g}=ml();function h(){return new Array(3).fill(3).map((C,y)=>J.createElement(po,{key:y,loading:!0}))}return J.createElement(J.Fragment,null,o?J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:"user",targetId:a||void 0,enablePostTargetPicker:!1,onCreateSuccess:C=>p(C)}):null,J.createElement(sl,{className:e,dataLength:s.length,next:c,hasMore:f,loader:null},i?J.createElement(ll,null):J.createElement(J.Fragment,null,l&&!g?h():null,(!l||g)&&s.length>0&&J.createElement($t,{hasMore:f,loadMore:c,className:"load-more no-border",contentSlot:s.map(C=>J.createElement(il,{key:C.postId,postId:C.postId,hidePostTarget:!1,readonly:n,onDeleted:y=>u(y)}))}),!l&&s.length===0&&J.createElement(al,{targetType:"global",goToExplore:r,canPost:o,feedType:t}),l&&g?h():null)))},pU=({className:e="",feedType:t,targetType:o="myFeed",onPostCreated:r,goToExplore:n,readonly:i=!1,isHiddenProfile:a=!1})=>{let{currentUserId:s}=ne(),l=s||void 0,{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:"user",targetId:l,feedType:t}),{communities:h,hasMore:C,loadMore:y}=Br({membership:"member"}),{prependItem:x}=ml(),v=useCallback(()=>{y==null||y();},[y]);function _(){return new Array(3).fill(3).map((M,b)=>J.createElement(po,{key:b,loading:!0}))}return J.createElement(J.Fragment,null,J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:"user",targetId:l||void 0,communities:h,enablePostTargetPicker:!1,hasMoreCommunities:C,loadMoreCommunities:v,onCreateSuccess:M=>r||x(M)}),J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},a?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?_():null,(!f||g)&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(M=>J.createElement(il,{key:M.postId,postId:M.postId,hidePostTarget:!0,readonly:i})))}),!f&&c.length===0&&J.createElement(al,{targetType:o,goToExplore:n,canPost:!0,feedType:t}),f&&g?_():null)))},uU=({className:e="",targetType:t,targetId:o="",feedType:r,showPostCreator:n=!1,onPostCreated:i,goToExplore:a,readonly:s=!1,isHiddenProfile:l=!1})=>{let{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:t,targetId:o||void 0,feedType:r}),{prependItem:h}=ml();function C(){return new Array(3).fill(3).map((y,x)=>J.createElement(po,{key:x,loading:!0}))}return J.createElement(J.Fragment,null,n?J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:t,targetId:o,enablePostTargetPicker:!1,onCreateSuccess:y=>i||h(y)}):null,J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},l?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?C():null,!f&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(y=>J.createElement(il,{key:y.postId,postId:y.postId,hidePostTarget:!0,readonly:s})))}),!f&&c.length===0&&J.createElement(al,{targetType:t,goToExplore:a,canPost:n}),f&&g?C():null)))},fU=({className:e="",feedType:t,targetType:o,targetId:r="",showPostCreator:n=!1,onPostCreated:i,goToExplore:a,readonly:s=!1,isHiddenProfile:l=!1})=>{let{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:o,targetId:r||void 0,feedType:t}),{communities:h,hasMore:C,loadMore:y}=Br({membership:"member"}),{prependItem:x}=ml();function v(){return new Array(3).fill(3).map((_,M)=>J.createElement(po,{key:M,loading:!0}))}return J.createElement(J.Fragment,null,n&&J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:o,targetId:r,communities:h,enablePostTargetPicker:!1,hasMoreCommunities:C,loadMoreCommunities:y,onCreateSuccess:_=>i||x(_)}),J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},l?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?v():null,!f&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(_=>J.createElement(il,{key:_.postId,postId:_.postId,hidePostTarget:!0,readonly:s})))}),!f&&c.length===0&&J.createElement(al,{targetType:o,goToExplore:a,canPost:n,feedType:t}),f&&g?v():null)))},gU=e=>e==="communityFeed"?"community":e==="userFeed"?"user":e==="globalFeed"||e==="global"?"feed":e||"myFeed",yU=e=>{let n=e,{targetType:t}=n,o=I(n,["targetType"]),r=gU(t);return r==="feed"?J.createElement(cU,d({},o)):r==="myFeed"?J.createElement(pU,S(d({},o),{targetType:r})):r==="community"?J.createElement(uU,S(d({},o),{targetType:r})):J.createElement(fU,S(d({},o),{targetType:r}))},An=memo(e=>{let t=V("Feed");return t?t(e):J.createElement(yU,d({},e))});var hU=m.div`
2260
+ `;var nU=()=>J.createElement(dC,null,J.createElement(cC,null,J.createElement(pC,null)),J.createElement(uC,null,J.createElement(FormattedMessage,{id:"privateFeed.title"})),J.createElement(fC,null,J.createElement(FormattedMessage,{id:"privateFeed.body"}))),ll=nU;var lU=()=>{let[e,t]=useState([]),[o,r]=useState(!1),[n,i]=useState(null),[a,s]=useState(!1);function l(){return P(this,null,function*(){if(!o)try{r(!0);let g=yield FeedRepository.queryGlobalFeed({limit:10,queryToken:n||void 0});i(g.paging.next||null),t(h=>{let C=new Set([...h.map(y=>y.postId)]);return [...h,...g.data.filter(y=>!C.has(y.postId))]});}finally{r(!1);}})}useEffect(()=>(l(),()=>{t([]),i(null);}),[]);let c=g=>{t(h=>new Set([...h.map(y=>y.postId)]).has(g.postId)?h:[g,...h]);},p=g=>{let h=e.filter(C=>C.postId!==g);t(h);},u=useMemo(()=>n!==null,[n]);return {contents:e,isLoading:o,prependItem:c,removeItem:p,loadMore:()=>{s(!0),u&&!o&&l();},hasMore:u,loadMoreHasBeenCalled:a}},ml=lU;function Br(e,t){let n=Pe({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:()=>!!e&&(!0)}),{items:o}=n,r=w(n,["items"]);return d({communities:o},r)}var pU=({className:e="",feedType:t,showPostCreator:o=!1,goToExplore:r,readonly:n=!1,isHiddenProfile:i=!1})=>{let{currentUserId:a}=ne(),{contents:s,isLoading:l,loadMore:c,prependItem:p,removeItem:u,hasMore:f,loadMoreHasBeenCalled:g}=ml();function h(){return new Array(3).fill(3).map((C,y)=>J.createElement(po,{key:y,loading:!0}))}return J.createElement(J.Fragment,null,o?J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:"user",targetId:a||void 0,enablePostTargetPicker:!1,onCreateSuccess:C=>p(C)}):null,J.createElement(sl,{className:e,dataLength:s.length,next:c,hasMore:f,loader:null},i?J.createElement(ll,null):J.createElement(J.Fragment,null,l&&!g?h():null,(!l||g)&&s.length>0&&J.createElement($t,{hasMore:f,loadMore:c,className:"load-more no-border",contentSlot:s.map(C=>J.createElement(il,{key:C.postId,postId:C.postId,hidePostTarget:!1,readonly:n,onDeleted:y=>u(y)}))}),!l&&s.length===0&&J.createElement(al,{targetType:"global",goToExplore:r,canPost:o,feedType:t}),l&&g?h():null)))},uU=({className:e="",feedType:t,targetType:o="myFeed",onPostCreated:r,goToExplore:n,readonly:i=!1,isHiddenProfile:a=!1})=>{let{currentUserId:s}=ne(),l=s||void 0,{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:"user",targetId:l,feedType:t}),{communities:h,hasMore:C,loadMore:y}=Br({membership:"member"}),{prependItem:x}=ml(),v=useCallback(()=>{y==null||y();},[y]);function _(){return new Array(3).fill(3).map((M,b)=>J.createElement(po,{key:b,loading:!0}))}return J.createElement(J.Fragment,null,J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:"user",targetId:l||void 0,communities:h,enablePostTargetPicker:!1,hasMoreCommunities:C,loadMoreCommunities:v,onCreateSuccess:M=>r||x(M)}),J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},a?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?_():null,(!f||g)&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(M=>J.createElement(il,{key:M.postId,postId:M.postId,hidePostTarget:!0,readonly:i})))}),!f&&c.length===0&&J.createElement(al,{targetType:o,goToExplore:n,canPost:!0,feedType:t}),f&&g?_():null)))},fU=({className:e="",targetType:t,targetId:o="",feedType:r,showPostCreator:n=!1,onPostCreated:i,goToExplore:a,readonly:s=!1,isHiddenProfile:l=!1})=>{let{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:t,targetId:o||void 0,feedType:r}),{prependItem:h}=ml();function C(){return new Array(3).fill(3).map((y,x)=>J.createElement(po,{key:x,loading:!0}))}return J.createElement(J.Fragment,null,n?J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:t,targetId:o,enablePostTargetPicker:!1,onCreateSuccess:y=>i||h(y)}):null,J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},l?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?C():null,!f&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(y=>J.createElement(il,{key:y.postId,postId:y.postId,hidePostTarget:!0,readonly:s})))}),!f&&c.length===0&&J.createElement(al,{targetType:t,goToExplore:a,canPost:n}),f&&g?C():null)))},gU=({className:e="",feedType:t,targetType:o,targetId:r="",showPostCreator:n=!1,onPostCreated:i,goToExplore:a,readonly:s=!1,isHiddenProfile:l=!1})=>{let{posts:c,hasMore:p,loadMore:u,isLoading:f,loadMoreHasBeenCalled:g}=Po({targetType:o,targetId:r||void 0,feedType:t}),{communities:h,hasMore:C,loadMore:y}=Br({membership:"member"}),{prependItem:x}=ml();function v(){return new Array(3).fill(3).map((_,M)=>J.createElement(po,{key:M,loading:!0}))}return J.createElement(J.Fragment,null,n&&J.createElement(nl,{"data-qa-anchor":"feed-post-creator-textarea",targetType:o,targetId:r,communities:h,enablePostTargetPicker:!1,hasMoreCommunities:C,loadMoreCommunities:y,onCreateSuccess:_=>i||x(_)}),J.createElement(sl,{className:e,dataLength:c.length,next:u,hasMore:p,loader:null},l?J.createElement(ll,null):J.createElement(J.Fragment,null,f&&!g?v():null,!f&&c.length>0&&J.createElement($t,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(_=>J.createElement(il,{key:_.postId,postId:_.postId,hidePostTarget:!0,readonly:s})))}),!f&&c.length===0&&J.createElement(al,{targetType:o,goToExplore:a,canPost:n,feedType:t}),f&&g?v():null)))},yU=e=>e==="communityFeed"?"community":e==="userFeed"?"user":e==="globalFeed"||e==="global"?"feed":e||"myFeed",hU=e=>{let n=e,{targetType:t}=n,o=w(n,["targetType"]),r=yU(t);return r==="feed"?J.createElement(pU,d({},o)):r==="myFeed"?J.createElement(uU,S(d({},o),{targetType:r})):r==="community"?J.createElement(fU,S(d({},o),{targetType:r})):J.createElement(gU,S(d({},o),{targetType:r}))},An=memo(e=>{let t=V("Feed");return t?t(e):J.createElement(hU,d({},e))});var CU=m.div`
2261
2261
  overflow: hidden;
2262
2262
  display: grid;
2263
2263
  grid-template-areas: 'side main' 'none main';
@@ -2268,7 +2268,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2268
2268
  height: 100%;
2269
2269
  padding: 0 20px 0 0;
2270
2270
  background: #f7f7f8;
2271
- `,CU=m.div`
2271
+ `,vU=m.div`
2272
2272
  grid-area: main;
2273
2273
  overflow: auto;
2274
2274
  width: 100%;
@@ -2280,25 +2280,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2280
2280
  max-width: unset;
2281
2281
  min-width: unset;
2282
2282
  }
2283
- `,vU=m.div`
2283
+ `,xU=m.div`
2284
2284
  grid-area: side;
2285
2285
  overflow: auto;
2286
- `,xU=({aside:e,children:t})=>J.createElement(hU,null,J.createElement(CU,null,t),J.createElement(vU,null,e)),yC=e=>{let t=V("Layout");return t?t(e):J.createElement(xU,d({},e))};var hC=m.div`
2286
+ `,bU=({aside:e,children:t})=>J.createElement(CU,null,J.createElement(vU,null,t),J.createElement(xU,null,e)),yC=e=>{let t=V("Layout");return t?t(e):J.createElement(bU,d({},e))};var hC=m.div`
2287
2287
  background-color: white;
2288
2288
  border: 1px solid #e6e6e6;
2289
2289
  width: 280px;
2290
2290
  overflow: auto;
2291
2291
  flex-shrink: 0;
2292
2292
  ${({theme:e})=>e.typography.title}
2293
- `;var bU=m.div`
2293
+ `;var IU=m.div`
2294
2294
  border-top: 1px solid #f7f7f8;
2295
2295
  padding: 0 8px;
2296
- `,IU=m.h4`
2296
+ `,wU=m.h4`
2297
2297
  ${({theme:e})=>e.typography.title};
2298
2298
  color: black;
2299
2299
  padding: 0 8px;
2300
2300
  margin: 1em 0;
2301
- `,wU=({heading:e,children:t})=>J.createElement(bU,null,e&&J.createElement(IU,null,e),t),j2=wU;var _U=j`
2301
+ `,_U=({heading:e,children:t})=>J.createElement(IU,null,e&&J.createElement(wU,null,e),t),j2=_U;var MU=j`
2302
2302
  ${({active:e,theme:t})=>e&&`
2303
2303
  background-color: ${t.palette.primary.shade3};
2304
2304
  & > .actionItemChild {
@@ -2319,7 +2319,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2319
2319
  color: ${({theme:e})=>e.palette.neutral.shade2};
2320
2320
  background-color: transparent;
2321
2321
  }
2322
- ${_U}
2322
+ ${MU}
2323
2323
  `,xC=m(Se)`
2324
2324
  ${vC};
2325
2325
  width: 100%;
@@ -2348,9 +2348,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2348
2348
  background: ${t.palette.base.shade4};
2349
2349
  color: inherit;
2350
2350
  `};
2351
- `;var MU=({"data-qa-anchor":e="",icon:t,children:o,active:r,className:n,onClick:i,element:a="a",disabled:s})=>a==="a"?J.createElement(bC,{"data-qa-anchor":e,className:n,onClick:i,active:r},t&&J.createElement(G3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)):J.createElement(xC,{"data-qa-anchor":e,className:n,active:r,disabled:s,onClick:i},t&&J.createElement(G3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)),dl=MU;var PU=m(rp).attrs({width:20,height:20})``,SU=m(vi).attrs({width:20,height:20})``,TU=({shouldHideExplore:e,children:t})=>{let{onChangePage:o,page:r}=Q();return J.createElement(j2,{heading:J.createElement(FormattedMessage,{id:"sidesectioncommunity.community"})},J.createElement(dl,{"data-qa-anchor":"side-section-community-side-menu-action-item-news-feed-button",icon:J.createElement(PU,null),active:r.type==="newsfeed",onClick:()=>o("newsfeed")},J.createElement(FormattedMessage,{id:"sidesectioncommunity.newfeed"})),!e&&J.createElement(dl,{"data-qa-anchor":"side-section-community-side-menu-action-item-explore-button",icon:J.createElement(SU,null),active:r.type==="explore",onClick:()=>o("explore")},J.createElement(FormattedMessage,{id:"sidesectioncommunity.explore"})),t)},IC=TU;var wC=m.span`
2351
+ `;var PU=({"data-qa-anchor":e="",icon:t,children:o,active:r,className:n,onClick:i,element:a="a",disabled:s})=>a==="a"?J.createElement(bC,{"data-qa-anchor":e,className:n,onClick:i,active:r},t&&J.createElement(G3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)):J.createElement(xC,{"data-qa-anchor":e,className:n,active:r,disabled:s,onClick:i},t&&J.createElement(G3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)),dl=PU;var SU=m(rp).attrs({width:20,height:20})``,TU=m(vi).attrs({width:20,height:20})``,NU=({shouldHideExplore:e,children:t})=>{let{onChangePage:o,page:r}=Q();return J.createElement(j2,{heading:J.createElement(FormattedMessage,{id:"sidesectioncommunity.community"})},J.createElement(dl,{"data-qa-anchor":"side-section-community-side-menu-action-item-news-feed-button",icon:J.createElement(SU,null),active:r.type==="newsfeed",onClick:()=>o("newsfeed")},J.createElement(FormattedMessage,{id:"sidesectioncommunity.newfeed"})),!e&&J.createElement(dl,{"data-qa-anchor":"side-section-community-side-menu-action-item-explore-button",icon:J.createElement(TU,null),active:r.type==="explore",onClick:()=>o("explore")},J.createElement(FormattedMessage,{id:"sidesectioncommunity.explore"})),t)},IC=NU;var wC=m.span`
2352
2352
  ${({theme:e,highlight:t})=>t?e.typography.bodyBold:e.typography.body}
2353
- `,NU=({query:e,text:t})=>{if(e==null||(e==null?void 0:e.length)===0)return J.createElement(wC,null,t);let o=t.split(new RegExp(`(${e})`,"gi"));return J.createElement("span",null,o.map((r,n)=>J.createElement(wC,{key:`#${r}#${n}`,highlight:r.toLowerCase()===e.toLowerCase()},r)))},q3=NU;var _C=m(Pr).attrs({width:16,height:16})`
2353
+ `,kU=({query:e,text:t})=>{if(e==null||(e==null?void 0:e.length)===0)return J.createElement(wC,null,t);let o=t.split(new RegExp(`(${e})`,"gi"));return J.createElement("span",null,o.map((r,n)=>J.createElement(wC,{key:`#${r}#${n}`,highlight:r.toLowerCase()===e.toLowerCase()},r)))},q3=kU;var _C=m(Pr).attrs({width:16,height:16})`
2354
2354
  margin-right: 8px;
2355
2355
  `,MC=m(km).attrs({width:16,height:16})`
2356
2356
  margin-left: 8px;
@@ -2368,7 +2368,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2368
2368
  `}
2369
2369
  ${o&&e.typography.title}
2370
2370
  `}
2371
- `;var EU=({"data-qa-anchor":e="",isActive:t=!1,isOfficial:o=!1,isPublic:r=!1,isTitle:n=!1,isSearchResult:i=!1,name:a,searchInput:s="",className:l="",loading:c=!1,truncate:p})=>i?J.createElement(q3,{text:a||"",query:s}):J.createElement(PC,{className:l,isActive:t,isTitle:n},c?J.createElement(Y3,null,J.createElement(he,{width:120,style:{fontSize:12}})):J.createElement(og,{lines:p},J.createElement(Y3,{"data-qa-anchor":`${e}-community-name`,title:a},J.createElement(J.Fragment,null,!r&&J.createElement(_C,{"data-qa-anchor":`${e}-private-icon`}),a))),!c&&o&&J.createElement(MC,null)),Ln=e=>{let t=V("CommunityName");return t?t(e):J.createElement(EU,d({},e))};var SC=m.a.withConfig({shouldForwardProp:e=>!["loading","isActive"].includes(e)})`
2371
+ `;var AU=({"data-qa-anchor":e="",isActive:t=!1,isOfficial:o=!1,isPublic:r=!1,isTitle:n=!1,isSearchResult:i=!1,name:a,searchInput:s="",className:l="",loading:c=!1,truncate:p})=>i?J.createElement(q3,{text:a||"",query:s}):J.createElement(PC,{className:l,isActive:t,isTitle:n},c?J.createElement(Y3,null,J.createElement(he,{width:120,style:{fontSize:12}})):J.createElement(og,{lines:p},J.createElement(Y3,{"data-qa-anchor":`${e}-community-name`,title:a},J.createElement(J.Fragment,null,!r&&J.createElement(_C,{"data-qa-anchor":`${e}-private-icon`}),a))),!c&&o&&J.createElement(MC,null)),Ln=e=>{let t=V("CommunityName");return t?t(e):J.createElement(AU,d({},e))};var SC=m.a.withConfig({shouldForwardProp:e=>!["loading","isActive"].includes(e)})`
2372
2372
  display: grid;
2373
2373
  grid-template-areas: 'avatar title' 'avatar children';
2374
2374
  grid-template-columns: min-content auto;
@@ -2399,20 +2399,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2399
2399
  grid-area: avatar;
2400
2400
  `,NC=m.div`
2401
2401
  grid-area: children;
2402
- `;var AU=({communityId:e,isActive:t,avatarFileUrl:o,onClick:r,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,children:c,loading:p})=>J.createElement(SC,{"data-qa-anchor":"community-header",isActive:t,loading:p,onClick:()=>r==null?void 0:r(e)},J.createElement(TC,{avatar:o,backgroundImage:so,loading:p}),p&&c?J.createElement(he,{style:{fontSize:8,maxWidth:120}}):J.createElement(Ln,{"data-qa-anchor":"community-header",isActive:t,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,loading:p}),c&&J.createElement(NC,null,c)),kC=e=>{let t=V("UICommunityHeader");return t?t(e):J.createElement(AU,d({},e))};var FU=({communityId:e="",onClick:t=()=>{},isActive:o=!1,isSearchResult:r=!1,searchInput:n="",children:i,loading:a=!1})=>{let s=We(e),l=te({fileId:s==null?void 0:s.avatarFileId,imageSize:"small"});return J.createElement(kC,{communityId:e,avatarFileUrl:l,isActive:o,isOfficial:s==null?void 0:s.isOfficial,isPublic:s==null?void 0:s.isPublic,isSearchResult:r,name:s==null?void 0:s.displayName,searchInput:n,loading:a,onClick:t},i)};var cl=memo(FU);var OU=e=>J.createElement(dH,d({},e)),EC=m(OU)`
2402
+ `;var BU=({communityId:e,isActive:t,avatarFileUrl:o,onClick:r,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,children:c,loading:p})=>J.createElement(SC,{"data-qa-anchor":"community-header",isActive:t,loading:p,onClick:()=>r==null?void 0:r(e)},J.createElement(TC,{avatar:o,backgroundImage:so,loading:p}),p&&c?J.createElement(he,{style:{fontSize:8,maxWidth:120}}):J.createElement(Ln,{"data-qa-anchor":"community-header",isActive:t,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,loading:p}),c&&J.createElement(NC,null,c)),kC=e=>{let t=V("UICommunityHeader");return t?t(e):J.createElement(BU,d({},e))};var DU=({communityId:e="",onClick:t=()=>{},isActive:o=!1,isSearchResult:r=!1,searchInput:n="",children:i,loading:a=!1})=>{let s=We(e),l=te({fileId:s==null?void 0:s.avatarFileId,imageSize:"small"});return J.createElement(kC,{communityId:e,avatarFileUrl:l,isActive:o,isOfficial:s==null?void 0:s.isOfficial,isPublic:s==null?void 0:s.isPublic,isSearchResult:r,name:s==null?void 0:s.displayName,searchInput:n,loading:a,onClick:t},i)};var cl=memo(DU);var HU=e=>J.createElement(dH,d({},e)),EC=m(HU)`
2403
2403
  &.no-scroll {
2404
2404
  width: 260px;
2405
2405
  }
2406
2406
  `;m.p`
2407
2407
  text-align: center;
2408
2408
  color: ${({theme:e})=>e.palette.base.shade3};
2409
- `;var GU=m.p`
2409
+ `;var $U=m.p`
2410
2410
  text-align: center;
2411
2411
  color: ${({theme:e})=>e.palette.base.shade3};
2412
- `,$U=({className:e,communitiesQueryParam:t,activeCommunity:o})=>{let{onClickCommunity:r}=Q(),{communities:n,hasMore:i,loadMore:a,isLoading:s,loadMoreHasBeenCalled:l}=Br(t),c=t&&Reflect.has(t,"search"),p=(t==null?void 0:t.displayName)||"",u=useMemo(()=>n.length?n.map(({communityId:C})=>C):[],[n]),f=c&&!u.length,g=[u.length<4?"no-scroll":null,e].filter(Ue);function h(){return new Array(5).fill(1).map((C,y)=>J.createElement(cl,{key:y,loading:!0}))}return J.createElement(EC,{className:lo(g),dataLength:u.length,next:a,hasMore:i,loader:J.createElement("div",null)},J.createElement($t,{hasMore:i,loadMore:a,className:"no-border",contentSlot:J.createElement(J.Fragment,null,f&&J.createElement(GU,null,J.createElement(FormattedMessage,{id:"communities.nocommunityfound"})),s&&!l&&h(),!s||l?u.map(C=>J.createElement(cl,{key:C,communityId:C,isActive:C===o,isSearchResult:c,searchInput:p,onClick:()=>r(C)})):null,s&&l&&h())}))},AC=memo($U);var ZU=i=>{var a=i,{"data-qa-anchor":e="",renderer:t,label:o,className:r}=a,n=I(a,["data-qa-anchor","renderer","label","className"]);return J.createElement(U9,{"data-qa-anchor":`${e}-label`},J.createElement(z9,S(d({},n),{"data-qa-anchor":`${e}-radio`})),J.createElement(J.Fragment,null,t?t():J.createElement("span",{className:r},o),J.createElement(_2,{checked:n.value})))},Qa=ZU;var WU=m(R0).attrs({height:20,width:20})`
2412
+ `,ZU=({className:e,communitiesQueryParam:t,activeCommunity:o})=>{let{onClickCommunity:r}=Q(),{communities:n,hasMore:i,loadMore:a,isLoading:s,loadMoreHasBeenCalled:l}=Br(t),c=t&&Reflect.has(t,"search"),p=(t==null?void 0:t.displayName)||"",u=useMemo(()=>n.length?n.map(({communityId:C})=>C):[],[n]),f=c&&!u.length,g=[u.length<4?"no-scroll":null,e].filter(Ue);function h(){return new Array(5).fill(1).map((C,y)=>J.createElement(cl,{key:y,loading:!0}))}return J.createElement(EC,{className:lo(g),dataLength:u.length,next:a,hasMore:i,loader:J.createElement("div",null)},J.createElement($t,{hasMore:i,loadMore:a,className:"no-border",contentSlot:J.createElement(J.Fragment,null,f&&J.createElement($U,null,J.createElement(FormattedMessage,{id:"communities.nocommunityfound"})),s&&!l&&h(),!s||l?u.map(C=>J.createElement(cl,{key:C,communityId:C,isActive:C===o,isSearchResult:c,searchInput:p,onClick:()=>r(C)})):null,s&&l&&h())}))},AC=memo(ZU);var qU=i=>{var a=i,{"data-qa-anchor":e="",renderer:t,label:o,className:r}=a,n=w(a,["data-qa-anchor","renderer","label","className"]);return J.createElement(U9,{"data-qa-anchor":`${e}-label`},J.createElement(z9,S(d({},n),{"data-qa-anchor":`${e}-radio`})),J.createElement(J.Fragment,null,t?t():J.createElement("span",{className:r},o),J.createElement(_2,{checked:n.value})))},Ka=qU;var QU=m(R0).attrs({height:20,width:20})`
2413
2413
  z-index: 3;
2414
2414
  fill: #fff;
2415
- `,QU=m.div`
2415
+ `,KU=m.div`
2416
2416
  background: ${({theme:e})=>e.palette.base.shade3};
2417
2417
  border-radius: 4px;
2418
2418
  position: relative;
@@ -2422,7 +2422,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2422
2422
  overflow: hidden;
2423
2423
  align-self: center;
2424
2424
  transition: background 0.2s linear;
2425
- `,KU=m.div`
2425
+ `,JU=m.div`
2426
2426
  position: absolute;
2427
2427
  top: 50%;
2428
2428
  left: 50%;
@@ -2440,7 +2440,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2440
2440
  align-items: center;
2441
2441
  text-align: center;
2442
2442
  }
2443
- `,JU=m(k2)`
2443
+ `,XU=m(k2)`
2444
2444
  display: inline-block;
2445
2445
  width: 100%;
2446
2446
  height: 100%;
@@ -2452,14 +2452,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2452
2452
  &:hover {
2453
2453
  background: rgba(0, 0, 0, 0.3);
2454
2454
  }
2455
- `,XU=m.div`
2455
+ `,RU=m.div`
2456
2456
  width: 100%;
2457
2457
  height: 100%;
2458
2458
  background-image: url(${({src:e})=>e});
2459
2459
  background-size: cover;
2460
2460
  background-position: center center;
2461
2461
  background-repeat: no-repeat;
2462
- `,RU=({uploading:e,uploaded:t,progress:o})=>{let r=[...e,...t].sort((a,s)=>{let l=H3(a);return H3(s)-l}),n=r.length>0?r[0]:null;if(!n)return null;if(!Za(n))return J.createElement(st,{key:n==null?void 0:n.name,file:n,progress:o[n==null?void 0:n.name]});let{fileId:i}=n;return J.createElement(st,{key:i,fileId:i})},ez=({"data-qa-anchor":e="",onChange:t,value:o,mimeType:r})=>{let[n,i]=useState([]),[a,s]=useState([]),l=at(o),c=h=>{if(h.length>0){let C=h[h.length-1];C!=null&&C.fileId&&t(C.fileId);}},p=useMemo(()=>l&&FileRepository.fileUrlWithSize(l==null?void 0:l.fileUrl,"medium"),[l]),{uploading:u,uploaded:f,progress:g}=Di({files:n,uploadedFiles:a,onChange:({uploaded:h,uploading:C})=>{c(h),s(h),i(C);}});return J.createElement(QU,null,J.createElement(RU,{uploading:u,uploaded:f,progress:g}),J.createElement(XU,{src:p!=null?p:I6}),J.createElement(JU,{"data-qa-anchor":`${e}-avatar-uploader`,mimeType:r,onChange:h=>i(h)},J.createElement(KU,null,J.createElement(WU,null)," \xA0 Upload image")))},Dn=ez;var nz=e=>{let[t,o]=useState(null);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null)return;let n=yield CategoryRepository.getCategory(e);o(n.data);})}r();},[e]),t},Vn=nz;var LC=m.div`
2462
+ `,ez=({uploading:e,uploaded:t,progress:o})=>{let r=[...e,...t].sort((a,s)=>{let l=H3(a);return H3(s)-l}),n=r.length>0?r[0]:null;if(!n)return null;if(!qa(n))return J.createElement(lt,{key:n==null?void 0:n.name,file:n,progress:o[n==null?void 0:n.name]});let{fileId:i}=n;return J.createElement(lt,{key:i,fileId:i})},tz=({"data-qa-anchor":e="",onChange:t,value:o,mimeType:r})=>{let[n,i]=useState([]),[a,s]=useState([]),l=st(o),c=h=>{if(h.length>0){let C=h[h.length-1];C!=null&&C.fileId&&t(C.fileId);}},p=useMemo(()=>l&&FileRepository.fileUrlWithSize(l==null?void 0:l.fileUrl,"medium"),[l]),{uploading:u,uploaded:f,progress:g}=Di({files:n,uploadedFiles:a,onChange:({uploaded:h,uploading:C})=>{c(h),s(h),i(C);}});return J.createElement(KU,null,J.createElement(ez,{uploading:u,uploaded:f,progress:g}),J.createElement(RU,{src:p!=null?p:I6}),J.createElement(XU,{"data-qa-anchor":`${e}-avatar-uploader`,mimeType:r,onChange:h=>i(h)},J.createElement(JU,null,J.createElement(QU,null)," \xA0 Upload image")))},Dn=tz;var iz=e=>{let[t,o]=useState(null);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null)return;let n=yield CategoryRepository.getCategory(e);o(n.data);})}r();},[e]),t},Vn=iz;var LC=m.div`
2463
2463
  display: grid;
2464
2464
  grid-template-areas: 'avatar title' 'avatar subtitle';
2465
2465
  grid-template-columns: min-content auto;
@@ -2490,11 +2490,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2490
2490
  `,VC=m.div`
2491
2491
  grid-area: subtitle;
2492
2492
  ${({theme:e})=>e.typography.body}
2493
- `;var iz=({className:e,categoryId:t,name:o,avatarFileUrl:r,children:n,onClick:i,loading:a})=>J.createElement(LC,{className:e,title:o,hasNoChildren:!n,clickable:!a&&!!i,onClick:()=>t&&(i==null?void 0:i(t))},J.createElement(FC,{avatar:r,backgroundImage:Pm,loading:a}),J.createElement(DC,{title:t},a?J.createElement(he,{style:{fontSize:12,maxWidth:124}}):o),n&&J.createElement(VC,{onClick:c=>c.stopPropagation()},n)),OC=e=>{let t=V("CategoryHeader");return t?t(e):J.createElement(iz,d({},e))};var sz=({className:e,categoryId:t,children:o,loading:r,onClick:n})=>{let i=Vn(t),a=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"});return J.createElement(OC,{className:e,categoryId:i==null?void 0:i.categoryId,name:i==null?void 0:i.name,avatarFileUrl:a,loading:r||!1,onClick:n},o)},HC=sz;var cz=m.div`
2493
+ `;var az=({className:e,categoryId:t,name:o,avatarFileUrl:r,children:n,onClick:i,loading:a})=>J.createElement(LC,{className:e,title:o,hasNoChildren:!n,clickable:!a&&!!i,onClick:()=>t&&(i==null?void 0:i(t))},J.createElement(FC,{avatar:r,backgroundImage:Pm,loading:a}),J.createElement(DC,{title:t},a?J.createElement(he,{style:{fontSize:12,maxWidth:124}}):o),n&&J.createElement(VC,{onClick:c=>c.stopPropagation()},n)),OC=e=>{let t=V("CategoryHeader");return t?t(e):J.createElement(az,d({},e))};var lz=({className:e,categoryId:t,children:o,loading:r,onClick:n})=>{let i=Vn(t),a=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"});return J.createElement(OC,{className:e,categoryId:i==null?void 0:i.categoryId,name:i==null?void 0:i.name,avatarFileUrl:a,loading:r||!1,onClick:n},o)},HC=lz;var pz=m.div`
2494
2494
  margin-top: 8px;
2495
2495
  color: ${({theme:e})=>e.palette.alert.main};
2496
2496
  ${({theme:e})=>e.typography.caption}
2497
- `,go=e=>J.createElement(ErrorMessage,d({as:cz},e));m.span`
2497
+ `,go=e=>J.createElement(ErrorMessage,d({as:pz},e));m.span`
2498
2498
  color: ${({theme:e})=>e.palette.base.shade1};
2499
2499
  `;var G2=m(op).attrs({width:20,height:20})``,$2=m(Pr).attrs({width:20,height:20})``;m(wo).attrs({width:12,height:12})`
2500
2500
  padding: 5px 12px;
@@ -2556,7 +2556,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2556
2556
  @media (max-width: 768px) {
2557
2557
  min-width: 100%;
2558
2558
  }
2559
- `,Ja=m(de).attrs({type:"submit"})`
2559
+ `,Xa=m(de).attrs({type:"submit"})`
2560
2560
  padding: 10px 16px;
2561
2561
  margin-left: 12px;
2562
2562
  ${({edit:e})=>e&&j`
@@ -2612,12 +2612,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2612
2612
  padding: 0 16px 20px;
2613
2613
  display: flex;
2614
2614
  flex-direction: column;
2615
- `;var Xa=m.div`
2615
+ `;var Ra=m.div`
2616
2616
  border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
2617
2617
  padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
2618
2618
  display: flex;
2619
2619
  justify-content: ${({edit:e})=>e?"flex-start":"flex-end"};
2620
- `,pz=m.div`
2620
+ `,uz=m.div`
2621
2621
  background: rgba(0, 0, 0, 0);
2622
2622
  top: 0;
2623
2623
  left: 0;
@@ -2631,7 +2631,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2631
2631
  height: 100%;
2632
2632
  cursor: pointer;
2633
2633
  pointer-events: none;
2634
- `;m(st)`
2634
+ `;m(lt)`
2635
2635
  display: inline-block;
2636
2636
  width: 100%;
2637
2637
  height: 100%;
@@ -2644,7 +2644,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2644
2644
  border-radius: 50%;
2645
2645
  overflow: hidden;
2646
2646
  align-self: center;
2647
- &:hover ${pz} {
2647
+ &:hover ${uz} {
2648
2648
  background: rgba(0, 0, 0, 0.5);
2649
2649
  }
2650
2650
  `;m.div`
@@ -2710,7 +2710,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2710
2710
  `,qC=m(q)`
2711
2711
  padding: 0.4rem 0.55rem;
2712
2712
  border-radius: 10rem;
2713
- `;var uz=({categoryId:e,name:t,fileUrl:o,onClick:r,onRemove:n})=>{let i=useCallback(s=>{s.stopPropagation(),e&&(r==null||r(e));},[r,e]),a=useCallback(s=>{s.stopPropagation(),e&&(n==null||n(e));},[n,e]);return J.createElement(GC,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:Pm}),J.createElement($C,null,t),!!n&&J.createElement(qC,{onClick:a},J.createElement(ZC,null)))},WC=uz;var gz=({categoryId:e,onClick:t,onRemove:o})=>{let r=Vn(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(WC,{categoryId:r.categoryId,name:r.name,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},QC=gz;function ul(e){let r=Pe({fetcher:CategoryRepository.getCategories,params:e}),{items:t}=r,o=I(r,["items"]);return d({categories:t},o)}var vz=({"data-qa-anchor":e="",value:t,onChange:o,parentContainer:r=null})=>{let n=t!=null?t:[],[i,a]=useState(!1),[s,l]=useState(""),c=()=>a(!i),{formatMessage:p}=useIntl(),u=useRef(null),f=x=>{var v;l(x),a(!!x),x&&((v=u.current)==null||v.focus());},g=()=>{l(""),a(!1);},{categories:h}=ul({includeDeleted:!1,limit:100}),C=h.filter(x=>s?x.name.includes(s):!0).map(x=>({name:x.name,value:x.categoryId})),y=n.map(x=>{var v;return {name:((v=h.find(_=>_.categoryId===x))==null?void 0:v.name)||"",value:x}});return J.createElement(Ar,{"data-qa-anchor":`${e}-category`,value:y,options:C,renderTrigger:M=>{var b=M,{selected:x,remove:v}=b,_=I(b,["selected","remove"]);return J.createElement(UC,S(d({},_),{onClick:c,"data-qa-anchor":`${e}-category-selector`}),x.map(w=>J.createElement(QC,{key:w.value,categoryId:w.value,onRemove:()=>v(w,o)})),J.createElement(jC,{ref:u,"data-qa-anchor":"category-selector-input",type:"text",value:s,placeholder:p({id:"selectACategory"}),onChange:w=>f(w.target.value)}),J.createElement(zC,null))},renderItem:({value:x})=>J.createElement(HC,{categoryId:x}),parentContainer:r,isOpen:i,handleClose:g,multiple:!0,onSelect:({value:x})=>{var v;l(""),(v=u.current)==null||v.focus(),o==null||o([...new Set([...n,x])]);}})},K2=e=>{let t=V("CategorySelector");return t?t(e):J.createElement(vz,d({},e))};var Iz=1,X2=(e,t=Iz)=>{let[o,r]=useState([]),[n,i]=useState(!1),[a,s]=useState(!1),[l,c]=useState(!1),p=useRef(null),u=useRef(null),f=()=>{p.current&&(p.current(),c(!0));};return useEffect(()=>{if(e.length<t)return;u.current&&(u.current(),u.current=null);let g=UserRepository.searchUserByDisplayName({displayName:e,limit:10},h=>{s(h.hasNextPage||!1),i(h.loading),p.current=h.onNextPage||null,r(h.data);});return u.current=g,()=>{var h;(h=u.current)==null||h.call(u),u.current=null;}},[e,t]),{users:o,isLoading:n,hasMore:a,loadMore:f,loadMoreHasBeenCalled:l}};var XC=m.div`
2713
+ `;var fz=({categoryId:e,name:t,fileUrl:o,onClick:r,onRemove:n})=>{let i=useCallback(s=>{s.stopPropagation(),e&&(r==null||r(e));},[r,e]),a=useCallback(s=>{s.stopPropagation(),e&&(n==null||n(e));},[n,e]);return J.createElement(GC,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:Pm}),J.createElement($C,null,t),!!n&&J.createElement(qC,{onClick:a},J.createElement(ZC,null)))},WC=fz;var yz=({categoryId:e,onClick:t,onRemove:o})=>{let r=Vn(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(WC,{categoryId:r.categoryId,name:r.name,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},QC=yz;function ul(e){let r=Pe({fetcher:CategoryRepository.getCategories,params:e}),{items:t}=r,o=w(r,["items"]);return d({categories:t},o)}var xz=({"data-qa-anchor":e="",value:t,onChange:o,parentContainer:r=null})=>{let n=t!=null?t:[],[i,a]=useState(!1),[s,l]=useState(""),c=()=>a(!i),{formatMessage:p}=useIntl(),u=useRef(null),f=x=>{var v;l(x),a(!!x),x&&((v=u.current)==null||v.focus());},g=()=>{l(""),a(!1);},{categories:h}=ul({includeDeleted:!1,limit:100}),C=h.filter(x=>s?x.name.includes(s):!0).map(x=>({name:x.name,value:x.categoryId})),y=n.map(x=>{var v;return {name:((v=h.find(_=>_.categoryId===x))==null?void 0:v.name)||"",value:x}});return J.createElement(Ar,{"data-qa-anchor":`${e}-category`,value:y,options:C,renderTrigger:M=>{var b=M,{selected:x,remove:v}=b,_=w(b,["selected","remove"]);return J.createElement(UC,S(d({},_),{onClick:c,"data-qa-anchor":`${e}-category-selector`}),x.map(I=>J.createElement(QC,{key:I.value,categoryId:I.value,onRemove:()=>v(I,o)})),J.createElement(jC,{ref:u,"data-qa-anchor":"category-selector-input",type:"text",value:s,placeholder:p({id:"selectACategory"}),onChange:I=>f(I.target.value)}),J.createElement(zC,null))},renderItem:({value:x})=>J.createElement(HC,{categoryId:x}),parentContainer:r,isOpen:i,handleClose:g,multiple:!0,onSelect:({value:x})=>{var v;l(""),(v=u.current)==null||v.focus(),o==null||o([...new Set([...n,x])]);}})},K2=e=>{let t=V("CategorySelector");return t?t(e):J.createElement(xz,d({},e))};var wz=1,X2=(e,t=wz)=>{let[o,r]=useState([]),[n,i]=useState(!1),[a,s]=useState(!1),[l,c]=useState(!1),p=useRef(null),u=useRef(null),f=()=>{p.current&&(p.current(),c(!0));};return useEffect(()=>{if(e.length<t)return;u.current&&(u.current(),u.current=null);let g=UserRepository.searchUserByDisplayName({displayName:e,limit:10},h=>{s(h.hasNextPage||!1),i(h.loading),p.current=h.onNextPage||null,r(h.data);});return u.current=g,()=>{var h;(h=u.current)==null||h.call(u),u.current=null;}},[e,t]),{users:o,isLoading:n,hasMore:a,loadMore:f,loadMoreHasBeenCalled:l}};var XC=m.div`
2714
2714
  display: grid;
2715
2715
  grid-template-areas: 'avatar title' 'avatar subtitle';
2716
2716
  grid-template-columns: min-content auto;
@@ -2739,7 +2739,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2739
2739
  `,tv=m.div`
2740
2740
  grid-area: subtitle;
2741
2741
  ${({theme:e})=>e.typography.body}
2742
- `;var wz=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),J.createElement("path",{d:"M13.6435 20.7628C12.5251 21.8728 11.4652 21.8812 10.3552 20.7628L9.10328 19.5109C8.98644 19.394 8.88629 19.3607 8.73606 19.3607H6.9667C5.38931 19.3607 4.63817 18.6095 4.63817 17.0321V15.2628C4.63817 15.1125 4.59644 15.004 4.48794 14.8955L3.23604 13.6353C2.12602 12.5253 2.11767 11.4653 3.23604 10.3553L4.48794 9.10342C4.59644 8.99492 4.63817 8.88642 4.63817 8.73619V6.96684C4.63817 5.37275 5.38931 4.6383 6.9667 4.6383H8.73606C8.88629 4.6383 8.99478 4.59657 9.10328 4.48807L10.3552 3.24452C11.4652 2.11781 12.5251 2.11781 13.6435 3.23617L14.8954 4.48807C15.0039 4.59657 15.1124 4.6383 15.2626 4.6383H17.032C18.6094 4.6383 19.3605 5.38944 19.3605 6.96684V8.73619C19.3605 8.88642 19.4023 8.98657 19.5108 9.10342L20.7627 10.3553C21.8727 11.4653 21.881 12.5253 20.7627 13.6353L19.5108 14.8955C19.4023 15.004 19.3605 15.1125 19.3605 15.2628V17.0321C19.3605 18.6095 18.6094 19.3607 17.032 19.3607H15.2626C15.1124 19.3607 15.0123 19.394 14.8954 19.5109L13.6435 20.7628Z",fill:"url(#paint0_linear_482_20867)"}),J.createElement("path",{d:"M9.90432 15.9736C10.0879 16.1656 10.3216 16.2741 10.6137 16.2741C10.9225 16.2741 11.1729 16.1656 11.3649 15.9152L16.047 9.34691C16.1722 9.17164 16.2389 8.96299 16.2389 8.79607C16.2389 8.312 15.8717 7.95312 15.3543 7.95312C15.0204 7.95312 14.8034 8.06997 14.6031 8.35373L10.5803 14.0958L8.56896 11.8507C8.38535 11.6504 8.1767 11.5586 7.89293 11.5586C7.37548 11.5586 7.0166 11.9175 7.0166 12.4182C7.0166 12.6269 7.09172 12.8355 7.2336 12.9858L9.90432 15.9736Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_482_20867",x1:"5.40039",y1:"4.79844",x2:"5.40039",y2:"23.3984",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#FFDB7D"}),J.createElement("stop",{offset:"1",stopColor:"#D49900"})))),ov=wz;var Gi=({className:e})=>J.createElement(ov,{className:e});var Mz=({userId:e,displayName:t,avatarFileUrl:o,children:r,onClick:n,isBanned:i,isBrand:a})=>{let s=()=>e&&(n==null?void 0:n(e));return J.createElement(XC,{noSubtitle:!!r},J.createElement(RC,{avatar:o,backgroundImage:Ve,onClick:s}),J.createElement(ev,{title:e||void 0,onClick:s},J.createElement("div",null,t)," ",i&&J.createElement(Sr,null)," ",a&&J.createElement(Gi,null)),r&&J.createElement(tv,null,r))},R2=e=>{let t=V("UserHeader");return t?t(e):J.createElement(Mz,d({},e))};var Tz=({userId:e,children:t,onClick:o,isBanned:r=!1})=>{let{user:n,refresh:i}=Ae({userId:e}),a=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return useEffect(()=>{i();},[]),J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:a,isBanned:r,isBrand:n==null?void 0:n.isBrand,onClick:o},t)},Lr=Tz;var rv=m.div`
2742
+ `;var _z=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),J.createElement("path",{d:"M13.6435 20.7628C12.5251 21.8728 11.4652 21.8812 10.3552 20.7628L9.10328 19.5109C8.98644 19.394 8.88629 19.3607 8.73606 19.3607H6.9667C5.38931 19.3607 4.63817 18.6095 4.63817 17.0321V15.2628C4.63817 15.1125 4.59644 15.004 4.48794 14.8955L3.23604 13.6353C2.12602 12.5253 2.11767 11.4653 3.23604 10.3553L4.48794 9.10342C4.59644 8.99492 4.63817 8.88642 4.63817 8.73619V6.96684C4.63817 5.37275 5.38931 4.6383 6.9667 4.6383H8.73606C8.88629 4.6383 8.99478 4.59657 9.10328 4.48807L10.3552 3.24452C11.4652 2.11781 12.5251 2.11781 13.6435 3.23617L14.8954 4.48807C15.0039 4.59657 15.1124 4.6383 15.2626 4.6383H17.032C18.6094 4.6383 19.3605 5.38944 19.3605 6.96684V8.73619C19.3605 8.88642 19.4023 8.98657 19.5108 9.10342L20.7627 10.3553C21.8727 11.4653 21.881 12.5253 20.7627 13.6353L19.5108 14.8955C19.4023 15.004 19.3605 15.1125 19.3605 15.2628V17.0321C19.3605 18.6095 18.6094 19.3607 17.032 19.3607H15.2626C15.1124 19.3607 15.0123 19.394 14.8954 19.5109L13.6435 20.7628Z",fill:"url(#paint0_linear_482_20867)"}),J.createElement("path",{d:"M9.90432 15.9736C10.0879 16.1656 10.3216 16.2741 10.6137 16.2741C10.9225 16.2741 11.1729 16.1656 11.3649 15.9152L16.047 9.34691C16.1722 9.17164 16.2389 8.96299 16.2389 8.79607C16.2389 8.312 15.8717 7.95312 15.3543 7.95312C15.0204 7.95312 14.8034 8.06997 14.6031 8.35373L10.5803 14.0958L8.56896 11.8507C8.38535 11.6504 8.1767 11.5586 7.89293 11.5586C7.37548 11.5586 7.0166 11.9175 7.0166 12.4182C7.0166 12.6269 7.09172 12.8355 7.2336 12.9858L9.90432 15.9736Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_482_20867",x1:"5.40039",y1:"4.79844",x2:"5.40039",y2:"23.3984",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#FFDB7D"}),J.createElement("stop",{offset:"1",stopColor:"#D49900"})))),ov=_z;var Gi=({className:e})=>J.createElement(ov,{className:e});var Pz=({userId:e,displayName:t,avatarFileUrl:o,children:r,onClick:n,isBanned:i,isBrand:a})=>{let s=()=>e&&(n==null?void 0:n(e));return J.createElement(XC,{noSubtitle:!!r},J.createElement(RC,{avatar:o,backgroundImage:Ve,onClick:s}),J.createElement(ev,{title:e||void 0,onClick:s},J.createElement("div",null,t)," ",i&&J.createElement(Sr,null)," ",a&&J.createElement(Gi,null)),r&&J.createElement(tv,null,r))},R2=e=>{let t=V("UserHeader");return t?t(e):J.createElement(Pz,d({},e))};var Nz=({userId:e,children:t,onClick:o,isBanned:r=!1})=>{let{user:n,refresh:i}=Ae({userId:e}),a=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return useEffect(()=>{i();},[]),J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:a,isBanned:r,isBrand:n==null?void 0:n.isBrand,onClick:o},t)},Lr=Nz;var rv=m.div`
2743
2743
  display: flex;
2744
2744
  align-items: center;
2745
2745
  padding: 0.25rem;
@@ -2754,7 +2754,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2754
2754
  `,av=m(q)`
2755
2755
  padding: 0.4rem 0.55rem;
2756
2756
  border-radius: 10rem;
2757
- `;var Nz=({userId:e,displayName:t="Anonymous",fileUrl:o,onClick:r,onRemove:n})=>{let i=useCallback(s=>{s.stopPropagation(),e&&(r==null||r(e));},[r,e]),a=useCallback(s=>{s.stopPropagation(),e&&(n==null||n(e));},[n,e]);return J.createElement(rv,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:Ve}),J.createElement(nv,null,t),!!n&&J.createElement(av,{onClick:a},J.createElement(iv,null)))},lv=e=>{let t=V("UserChip");return t?t(e):J.createElement(Nz,d({},e))};var Ez=({userId:e,onClick:t,onRemove:o})=>{let r=Me(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(lv,{userId:r.userId,displayName:r.displayName,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},mv=Ez;var dv=m.div`
2757
+ `;var kz=({userId:e,displayName:t="Anonymous",fileUrl:o,onClick:r,onRemove:n})=>{let i=useCallback(s=>{s.stopPropagation(),e&&(r==null||r(e));},[r,e]),a=useCallback(s=>{s.stopPropagation(),e&&(n==null||n(e));},[n,e]);return J.createElement(rv,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:Ve}),J.createElement(nv,null,t),!!n&&J.createElement(av,{onClick:a},J.createElement(iv,null)))},lv=e=>{let t=V("UserChip");return t?t(e):J.createElement(kz,d({},e))};var Az=({userId:e,onClick:t,onRemove:o})=>{let r=Me(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(lv,{userId:r.userId,displayName:r.displayName,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},mv=Az;var dv=m.div`
2758
2758
  border: 1px solid #e3e4e8;
2759
2759
  &:focus-within {
2760
2760
  border: 1px solid ${({theme:e})=>e.palette.primary.main};
@@ -2772,7 +2772,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2772
2772
  outline: none;
2773
2773
  border: none;
2774
2774
  width: 100%;
2775
- `;var Fz=({value:e,onChange:t,parentContainer:o=null})=>{let r=e!=null?e:[],{currentUserId:n}=ne(),[i,a]=useState(!1),[s,l]=useState(""),{users:c=[]}=X2(s),{formatMessage:p}=useIntl(),u=c.filter(({displayName:y,userId:x})=>(y==null?void 0:y.toLowerCase().includes(s.toLowerCase()))&&x!==n).map(({displayName:y,userId:x})=>({name:y,value:x})),f=r.map(y=>{var x;return {name:((x=c.find(v=>v.userId===y))==null?void 0:x.displayName)||"",value:y}}),g=()=>{a(!1),l("");},h=useRef(null),C=y=>{var x;l(y),a(!!y),y&&((x=h.current)==null||x.focus());};return J.createElement(Ar,{"data-qa-anchor":"user",value:f,options:s?u:[],renderTrigger:_=>{var M=_,{selected:y,remove:x}=M,v=I(M,["selected","remove"]);return J.createElement(dv,d({},v),y.map(b=>J.createElement(mv,{key:b.value,userId:b.value,onRemove:()=>x(b,t)})),J.createElement(cv,{ref:h,"data-qa-anchor":"user-selector-input",type:"text",value:s,placeholder:p({id:"UserSelector.placeholder"}),onChange:b=>C(b.target.value)}))},renderItem:({value:y})=>J.createElement(Lr,{userId:y}),parentContainer:o,isOpen:i,handleClose:g,multiple:!0,onSelect:({value:y})=>{var x;t==null||t([...new Set([...r,y])]),(x=h.current)==null||x.focus(),l("");}})},Gn=memo(e=>{let t=V("UserSelector");return t?t(e):J.createElement(Fz,d({},e))});var gv=ur.object({displayName:ur.string().max(30),description:ur.string().max(180),categoryIds:ur.string().array().min(1),avatarFileId:ur.string().nullable().optional(),tags:ur.string().array().optional(),isPublic:ur.boolean()}),Dz=gv.extend({userIds:ur.string().array().optional()}).refine(e=>{var t;return !(!e.isPublic&&((t=e.userIds)==null?void 0:t.length)===0)}),Vz=gv.partial(),yv=()=>useForm({defaultValues:{avatarFileId:void 0,description:"",displayName:"",isPublic:!0,tags:[],userIds:[],categoryIds:[]},resolver:zodResolver(Dz)}),hv=e=>useForm({defaultValues:{avatarFileId:e.avatarFileId,description:e.description,displayName:e.displayName,isPublic:e.isPublic,tags:e.tags,categoryIds:e.categoryIds},resolver:zodResolver(Vz)});var W3=({title:e,children:t})=>J.createElement(Hn,null,J.createElement(Un,null,t)),Cv=({type:e,description:t,icon:o})=>J.createElement(Y2,null,J.createElement(Z2,null,o),J.createElement("div",null,e,J.createElement(W2,null,t))),zz=({"data-qa-anchor":e="",className:t,onSubmit:o,onCancel:r})=>{let[n,i]=useState(!1),{register:a,handleSubmit:s,setError:l,watch:c,control:p,formState:u,setValue:f,getValues:g}=yv(),{errors:h}=u,C=c("displayName"),y=c("description"),x=c("isPublic"),v=useRef(null),_=w=>P(void 0,null,function*(){var T;try{if(i(!0),!w.isPublic&&((T=w.userIds)==null?void 0:T.length)===0){l("userIds",{message:"Please select at least one member"});return}yield o==null?void 0:o(S(d({},w),{displayName:w.displayName||"",avatarFileId:w.avatarFileId||void 0}));}finally{i(!1);}}),M=!u.isValid||n,b=v.current&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&v.current&&b<10&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop>10&&v.current.scrollTo({top:v.current.scrollHeight});},[v.current,b,u]),J.createElement(On,{className:t,onSubmit:s(_)},J.createElement(zn,{ref:v},J.createElement(W3,{title:"General"},J.createElement(yo,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:k=>{var {field:N}=k,F=N,T=I(F,["ref"]);return J.createElement(Dn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":e}))}})),J.createElement(yo,{error:h.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(on,null,C.length,"/30")),J.createElement(Ui,S(d({},a("displayName")),{"data-qa-anchor":`${e}-community-name-input`,placeholder:"Enter community name"})),J.createElement(go,{errors:h,name:"displayName"})),J.createElement(yo,{error:h.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(on,null,(y==null?void 0:y.length)||0,"/180")),J.createElement(Hi,S(d({},a("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${e}-community-description-textarea`,placeholder:"Enter description"})),J.createElement(go,{errors:h,name:"description"})),J.createElement(yo,{error:h.categoryIds},J.createElement($o,{htmlFor:"categoryIds",className:"required"},J.createElement(FormattedMessage,{id:"community.category"})),J.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:N=>{var {field:F}=N,Z=F,k=I(Z,["ref","onChange"]);return J.createElement(K2,S(d({parentContainer:v.current,onChange:$=>f("categoryIds",$,{shouldValidate:!0})},k),{"data-qa-anchor":`${e}`}))},control:p}),J.createElement(go,{errors:h,name:"category"}))),J.createElement(W3,{title:J.createElement(FormattedMessage,{id:"community.categorypermission"})},J.createElement(Controller,{name:"isPublic",render:({field:w})=>J.createElement(J.Fragment,null,J.createElement(Qa,S(d({},w),{value:w.value===!0,onChange:T=>w.onChange(T.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>J.createElement(Cv,{type:"Public",description:"Anyone can join, view and search the posts in this page.",icon:J.createElement(G2,null)})})),J.createElement(Qa,S(d({},w),{value:w.value===!1,onChange:T=>w.onChange(!T.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>J.createElement(Cv,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this page.",icon:J.createElement($2,null)})}))),control:p})),!x&&J.createElement(W3,{title:"Community members"},J.createElement(Q2,{error:h.userIds},J.createElement($o,{className:"required"},J.createElement(FormattedMessage,{id:"community.addmembers"})),J.createElement(Controller,{name:"userIds",render:k=>{var {field:N}=k,F=N,T=I(F,["ref"]);return J.createElement(Gn,d({parentContainer:v.current,"data-qa-anchor":e},T))},control:p}),J.createElement(go,{errors:h,name:"userIds"})))),J.createElement(Xa,null,J.createElement(q,{onClick:w=>{w.preventDefault(),r==null||r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(Ja,{"data-qa-anchor":`${e}-save-button`,disabled:M},J.createElement(FormattedMessage,{id:"create"}))))},td=memo(zz);var Zz=({isOpen:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue();if(!e)return null;let n=()=>r({title:o({id:"CommunityCreationModal.title"}),content:o({id:"CommunityCreationModal.content"}),cancelText:o({id:"CommunityCreationModal.cancelText"}),okText:o({id:"CommunityCreationModal.okText"}),onOk:()=>t()});return J.createElement(xt,{"data-qa-anchor":"community-creation-modal",title:"Create community",onCancel:n},J.createElement(td,{"data-qa-anchor":"community-creation",onCancel:n,onSubmit:a=>P(void 0,null,function*(){let s=yield CommunityRepository.createCommunity(a);t(s.data.communityId);})}))},vv=memo(e=>{let t=V("CommunityCreationModal");return t?t(e):J.createElement(Zz,d({},e))});var Wz=({className:e,activeCommunity:t})=>{let{socialCommunityCreationButtonVisible:o}=f7(),{onCommunityCreated:r}=Q(),[n,i]=useState(!1);return J.createElement(j2,{heading:J.createElement(FormattedMessage,{id:"SideSectionMyCommunity.myCommunity"})},o&&J.createElement(dl,{"data-qa-anchor":"side-section-my-community-create-community-button",icon:J.createElement(_o,{height:"20px"}),element:"button",onClick:()=>i(!0)},J.createElement(FormattedMessage,{id:"createCommunity"})),J.createElement(AC,{className:e,communitiesQueryParam:{membership:"member",limit:20},activeCommunity:t}),J.createElement(xa,null,J.createElement(vv,{isOpen:n,onClose:l=>{i(!1),l&&r(l);}})))},bv=memo(Wz);var Xz=m.div`
2775
+ `;var Dz=({value:e,onChange:t,parentContainer:o=null})=>{let r=e!=null?e:[],{currentUserId:n}=ne(),[i,a]=useState(!1),[s,l]=useState(""),{users:c=[]}=X2(s),{formatMessage:p}=useIntl(),u=c.filter(({displayName:y,userId:x})=>(y==null?void 0:y.toLowerCase().includes(s.toLowerCase()))&&x!==n).map(({displayName:y,userId:x})=>({name:y,value:x})),f=r.map(y=>{var x;return {name:((x=c.find(v=>v.userId===y))==null?void 0:x.displayName)||"",value:y}}),g=()=>{a(!1),l("");},h=useRef(null),C=y=>{var x;l(y),a(!!y),y&&((x=h.current)==null||x.focus());};return J.createElement(Ar,{"data-qa-anchor":"user",value:f,options:s?u:[],renderTrigger:_=>{var M=_,{selected:y,remove:x}=M,v=w(M,["selected","remove"]);return J.createElement(dv,d({},v),y.map(b=>J.createElement(mv,{key:b.value,userId:b.value,onRemove:()=>x(b,t)})),J.createElement(cv,{ref:h,"data-qa-anchor":"user-selector-input",type:"text",value:s,placeholder:p({id:"UserSelector.placeholder"}),onChange:b=>C(b.target.value)}))},renderItem:({value:y})=>J.createElement(Lr,{userId:y}),parentContainer:o,isOpen:i,handleClose:g,multiple:!0,onSelect:({value:y})=>{var x;t==null||t([...new Set([...r,y])]),(x=h.current)==null||x.focus(),l("");}})},Gn=memo(e=>{let t=V("UserSelector");return t?t(e):J.createElement(Dz,d({},e))});var gv=ur.object({displayName:ur.string().max(30),description:ur.string().max(180),categoryIds:ur.string().array().min(1),avatarFileId:ur.string().nullable().optional(),tags:ur.string().array().optional(),isPublic:ur.boolean()}),Vz=gv.extend({userIds:ur.string().array().optional()}).refine(e=>{var t;return !(!e.isPublic&&((t=e.userIds)==null?void 0:t.length)===0)}),Oz=gv.partial(),yv=()=>useForm({defaultValues:{avatarFileId:void 0,description:"",displayName:"",isPublic:!0,tags:[],userIds:[],categoryIds:[]},resolver:zodResolver(Vz)}),hv=e=>useForm({defaultValues:{avatarFileId:e.avatarFileId,description:e.description,displayName:e.displayName,isPublic:e.isPublic,tags:e.tags,categoryIds:e.categoryIds},resolver:zodResolver(Oz)});var W3=({title:e,children:t})=>J.createElement(Hn,null,J.createElement(Un,null,t)),Cv=({type:e,description:t,icon:o})=>J.createElement(Y2,null,J.createElement(Z2,null,o),J.createElement("div",null,e,J.createElement(W2,null,t))),jz=({"data-qa-anchor":e="",className:t,onSubmit:o,onCancel:r})=>{let[n,i]=useState(!1),{register:a,handleSubmit:s,setError:l,watch:c,control:p,formState:u,setValue:f,getValues:g}=yv(),{errors:h}=u,C=c("displayName"),y=c("description"),x=c("isPublic"),v=useRef(null),_=I=>P(void 0,null,function*(){var T;try{if(i(!0),!I.isPublic&&((T=I.userIds)==null?void 0:T.length)===0){l("userIds",{message:"Please select at least one member"});return}yield o==null?void 0:o(S(d({},I),{displayName:I.displayName||"",avatarFileId:I.avatarFileId||void 0}));}finally{i(!1);}}),M=!u.isValid||n,b=v.current&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&v.current&&b<10&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop>10&&v.current.scrollTo({top:v.current.scrollHeight});},[v.current,b,u]),J.createElement(On,{className:t,onSubmit:s(_)},J.createElement(zn,{ref:v},J.createElement(W3,{title:"General"},J.createElement(yo,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:k=>{var {field:N}=k,F=N,T=w(F,["ref"]);return J.createElement(Dn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":e}))}})),J.createElement(yo,{error:h.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(on,null,C.length,"/30")),J.createElement(Ui,S(d({},a("displayName")),{"data-qa-anchor":`${e}-community-name-input`,placeholder:"Enter community name"})),J.createElement(go,{errors:h,name:"displayName"})),J.createElement(yo,{error:h.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(on,null,(y==null?void 0:y.length)||0,"/180")),J.createElement(Hi,S(d({},a("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${e}-community-description-textarea`,placeholder:"Enter description"})),J.createElement(go,{errors:h,name:"description"})),J.createElement(yo,{error:h.categoryIds},J.createElement($o,{htmlFor:"categoryIds",className:"required"},J.createElement(FormattedMessage,{id:"community.category"})),J.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:N=>{var {field:F}=N,Z=F,k=w(Z,["ref","onChange"]);return J.createElement(K2,S(d({parentContainer:v.current,onChange:$=>f("categoryIds",$,{shouldValidate:!0})},k),{"data-qa-anchor":`${e}`}))},control:p}),J.createElement(go,{errors:h,name:"category"}))),J.createElement(W3,{title:J.createElement(FormattedMessage,{id:"community.categorypermission"})},J.createElement(Controller,{name:"isPublic",render:({field:I})=>J.createElement(J.Fragment,null,J.createElement(Ka,S(d({},I),{value:I.value===!0,onChange:T=>I.onChange(T.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>J.createElement(Cv,{type:"Public",description:"Anyone can join, view and search the posts in this page.",icon:J.createElement(G2,null)})})),J.createElement(Ka,S(d({},I),{value:I.value===!1,onChange:T=>I.onChange(!T.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>J.createElement(Cv,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this page.",icon:J.createElement($2,null)})}))),control:p})),!x&&J.createElement(W3,{title:"Community members"},J.createElement(Q2,{error:h.userIds},J.createElement($o,{className:"required"},J.createElement(FormattedMessage,{id:"community.addmembers"})),J.createElement(Controller,{name:"userIds",render:k=>{var {field:N}=k,F=N,T=w(F,["ref"]);return J.createElement(Gn,d({parentContainer:v.current,"data-qa-anchor":e},T))},control:p}),J.createElement(go,{errors:h,name:"userIds"})))),J.createElement(Ra,null,J.createElement(q,{onClick:I=>{I.preventDefault(),r==null||r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(Xa,{"data-qa-anchor":`${e}-save-button`,disabled:M},J.createElement(FormattedMessage,{id:"create"}))))},td=memo(jz);var qz=({isOpen:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue();if(!e)return null;let n=()=>r({title:o({id:"CommunityCreationModal.title"}),content:o({id:"CommunityCreationModal.content"}),cancelText:o({id:"CommunityCreationModal.cancelText"}),okText:o({id:"CommunityCreationModal.okText"}),onOk:()=>t()});return J.createElement(xt,{"data-qa-anchor":"community-creation-modal",title:"Create community",onCancel:n},J.createElement(td,{"data-qa-anchor":"community-creation",onCancel:n,onSubmit:a=>P(void 0,null,function*(){let s=yield CommunityRepository.createCommunity(a);t(s.data.communityId);})}))},vv=memo(e=>{let t=V("CommunityCreationModal");return t?t(e):J.createElement(qz,d({},e))});var Qz=({className:e,activeCommunity:t})=>{let{socialCommunityCreationButtonVisible:o}=f7(),{onCommunityCreated:r}=Q(),[n,i]=useState(!1);return J.createElement(j2,{heading:J.createElement(FormattedMessage,{id:"SideSectionMyCommunity.myCommunity"})},o&&J.createElement(dl,{"data-qa-anchor":"side-section-my-community-create-community-button",icon:J.createElement(_o,{height:"20px"}),element:"button",onClick:()=>i(!0)},J.createElement(FormattedMessage,{id:"createCommunity"})),J.createElement(AC,{className:e,communitiesQueryParam:{membership:"member",limit:20},activeCommunity:t}),J.createElement(xa,null,J.createElement(vv,{isOpen:n,onClose:l=>{i(!1),l&&r(l);}})))},bv=memo(Qz);var Rz=m.div`
2776
2776
  flex: 1 1 auto;
2777
2777
  z-index: 1;
2778
2778
  position: relative;
@@ -2783,7 +2783,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2783
2783
  background: #fff;
2784
2784
  border-radius: 4px;
2785
2785
  cursor: pointer;
2786
- `,Rz=m.div`
2786
+ `,ej=m.div`
2787
2787
  flex: 1 1 auto;
2788
2788
  z-index: 1;
2789
2789
  position: relative;
@@ -2794,15 +2794,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2794
2794
  display: flex;
2795
2795
  align-items: center;
2796
2796
  justify-content: center;
2797
- `,ej=({items:e,onPick:t=()=>{},append:o,renderItem:r=n=>J.createElement("span",null,n)})=>{let n=useRef(null),[i,a]=useState(-1),s=f=>()=>a(f),l=()=>a(-1),c=f=>()=>t(f),p=()=>{if(n.current==null)return;let f=i>0?i-1:e.length-1,{scrollTop:g,clientHeight:h}=n.current,C=n.current.children[f],y=(C==null?void 0:C.clientTop)||0,x=(C==null?void 0:C.clientHeight)||0;(y<g||y+x>g+h)&&n.current.scrollTo(0,y),a(f);},u=()=>{if(n.current==null)return;let f=i<e.length-1?i+1:0,{scrollTop:g,clientHeight:h}=n.current,C=n.current.children[f],y=(C==null?void 0:C.clientTop)||0,x=(C==null?void 0:C.clientHeight)||0;(y<g||y+x>g+h)&&n.current.scrollTo(0,y+x-h),a(f);};return co("ArrowUp",p),co("ArrowDown",u),co("Escape",()=>a(-1)),co("Enter",()=>t==null?void 0:t(i)),e.length?J.createElement(Xz,{ref:n,onMouseLeave:l},e.map((f,g)=>J.createElement(Xt,{key:`#${g}`,hover:g===i,onClick:c(g),onMouseEnter:s(g)},r(f))),o&&J.createElement(Xt,null,o)):J.createElement(Rz,{"data-qa-anchor":"suggestions-placeholder-no-results"},J.createElement(FormattedMessage,{id:"placeholder.noResults"}))},fl=ej;var oj=m.div`
2797
+ `,tj=({items:e,onPick:t=()=>{},append:o,renderItem:r=n=>J.createElement("span",null,n)})=>{let n=useRef(null),[i,a]=useState(-1),s=f=>()=>a(f),l=()=>a(-1),c=f=>()=>t(f),p=()=>{if(n.current==null)return;let f=i>0?i-1:e.length-1,{scrollTop:g,clientHeight:h}=n.current,C=n.current.children[f],y=(C==null?void 0:C.clientTop)||0,x=(C==null?void 0:C.clientHeight)||0;(y<g||y+x>g+h)&&n.current.scrollTo(0,y),a(f);},u=()=>{if(n.current==null)return;let f=i<e.length-1?i+1:0,{scrollTop:g,clientHeight:h}=n.current,C=n.current.children[f],y=(C==null?void 0:C.clientTop)||0,x=(C==null?void 0:C.clientHeight)||0;(y<g||y+x>g+h)&&n.current.scrollTo(0,y+x-h),a(f);};return co("ArrowUp",p),co("ArrowDown",u),co("Escape",()=>a(-1)),co("Enter",()=>t==null?void 0:t(i)),e.length?J.createElement(Rz,{ref:n,onMouseLeave:l},e.map((f,g)=>J.createElement(Xt,{key:`#${g}`,hover:g===i,onClick:c(g),onMouseEnter:s(g)},r(f))),o&&J.createElement(Xt,null,o)):J.createElement(ej,{"data-qa-anchor":"suggestions-placeholder-no-results"},J.createElement(FormattedMessage,{id:"placeholder.noResults"}))},fl=tj;var rj=m.div`
2798
2798
  position: relative;
2799
- `,rj=m(Er)`
2799
+ `,nj=m(Er)`
2800
2800
  z-index: 10;
2801
2801
  position: absolute;
2802
2802
  top: calc(100% + 0.25rem);
2803
2803
  width: 100%;
2804
2804
  color: ${({theme:e})=>e.palette.base.main};
2805
- `;var wv=({value:e,disabled:t})=>{let[o,r]=useState(!1),[n,i]=T1(o),a=()=>r(!1),s=()=>r(!0);return useEffect(()=>{t||e&&e.length>0&&r(!0);},[e,t]),useEffect(()=>{!i&&a();},[i]),co("Escape",a),{isOpen:o,open:s,close:a,containerRef:n}},nj=({"data-qa-anchor":e="",items:t,value:o,searchValue:r,placeholder:n,loadMore:i,prepend:a,append:s,invalid:l,disabled:c,renderItem:p,onSearchValueChange:u,onClear:f,onChange:g})=>{let[h,C]=useState(!1),[y,x]=T1(h),v=()=>C(!1);return useEffect(()=>{c||r.length>0&&C(!0);},[r,c]),useEffect(()=>{!x&&v();},[x]),co("Escape",v),J.createElement(oj,{ref:y},J.createElement(wt,{"data-qa-anchor":e,value:r,invalid:l,disabled:c,prepend:a,append:s,placeholder:n,onClear:f,onChange:b=>u==null?void 0:u(b.plainText),onClick:()=>C(!0)}),h&&J.createElement(rj,null,J.createElement(fl,{items:t,append:i&&J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})),onPick:b=>{g==null||g(t[b].value),C(!1),u==null||u("");},renderItem:b=>p(b)})))},_v=nj;var Mv=m.div`
2805
+ `;var wv=({value:e,disabled:t})=>{let[o,r]=useState(!1),[n,i]=N1(o),a=()=>r(!1),s=()=>r(!0);return useEffect(()=>{t||e&&e.length>0&&r(!0);},[e,t]),useEffect(()=>{!i&&a();},[i]),co("Escape",a),{isOpen:o,open:s,close:a,containerRef:n}},ij=({"data-qa-anchor":e="",items:t,value:o,searchValue:r,placeholder:n,loadMore:i,prepend:a,append:s,invalid:l,disabled:c,renderItem:p,onSearchValueChange:u,onClear:f,onChange:g})=>{let[h,C]=useState(!1),[y,x]=N1(h),v=()=>C(!1);return useEffect(()=>{c||r.length>0&&C(!0);},[r,c]),useEffect(()=>{!x&&v();},[x]),co("Escape",v),J.createElement(rj,{ref:y},J.createElement(wt,{"data-qa-anchor":e,value:r,invalid:l,disabled:c,prepend:a,append:s,placeholder:n,onClear:f,onChange:b=>u==null?void 0:u(b.plainText),onClick:()=>C(!0)}),h&&J.createElement(nj,null,J.createElement(fl,{items:t,append:i&&J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})),onPick:b=>{g==null||g(t[b].value),C(!1),u==null||u("");},renderItem:b=>p(b)})))},_v=ij;var Mv=m.div`
2806
2806
  display: flex;
2807
2807
  align-items: center;
2808
2808
  padding-left: 20px;
@@ -2866,7 +2866,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2866
2866
  }
2867
2867
 
2868
2868
  transition: border-color 0.3s;
2869
- `;var aj=({"data-qa-anchor":e="",className:t="",tabs:o,activeTab:r,onChange:n})=>J.createElement(rd,{className:t},J.createElement(nd,{"data-qa-anchor":`${e}-tabs-list`},o.map(({value:i,label:a})=>J.createElement(id,{key:i,"data-qa-anchor":`${e}-${i}-tab-item`},J.createElement(ad,{"data-qa-anchor":i===r?`${e}-${i}-tab-button-active`:`${e}-${i}-tab-button`,className:i===r?"active":"",onClick:()=>n(i)},a))))),ho=memo(e=>{let t=V("Tabs");return t?t(e):J.createElement(aj,d({},e))});var sj=m.div`
2869
+ `;var sj=({"data-qa-anchor":e="",className:t="",tabs:o,activeTab:r,onChange:n})=>J.createElement(rd,{className:t},J.createElement(nd,{"data-qa-anchor":`${e}-tabs-list`},o.map(({value:i,label:a})=>J.createElement(id,{key:i,"data-qa-anchor":`${e}-${i}-tab-item`},J.createElement(ad,{"data-qa-anchor":i===r?`${e}-${i}-tab-button-active`:`${e}-${i}-tab-button`,className:i===r?"active":"",onClick:()=>n(i)},a))))),ho=memo(e=>{let t=V("Tabs");return t?t(e):J.createElement(sj,d({},e))});var lj=m.div`
2870
2870
  position: relative;
2871
2871
  `,Nv=m(Er)`
2872
2872
  z-index: 10;
@@ -2874,19 +2874,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2874
2874
  top: calc(100% + 0.25rem);
2875
2875
  width: 100%;
2876
2876
  color: ${({theme:e})=>e.palette.base.main};
2877
- `,lj=({searchValue:e,isOpen:t})=>{let{onClickCommunity:o}=Q(),{communities:r,hasMore:n,loadMore:i}=Br({displayName:e}),a=r.filter(Ue),s=a.map(l=>l.displayName);return t?J.createElement(Nv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})):null,onPick:l=>a[l]?o(a[l].communityId):null,renderItem:l=>{let c=r.find(p=>p.displayName===l);return c&&J.createElement(cl,{communityId:c.communityId})}})):null},mj=({searchValue:e,isOpen:t})=>{let{onClickUser:o}=Q(),{users:r,hasMore:n,loadMore:i}=X2(e),a=r.filter(Ue),s=a.map(l=>l.displayName);return t?J.createElement(Nv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})):null,onPick:l=>a[l]?o(a[l].userId):null,renderItem:l=>{let c=r.find(p=>p.displayName===l);return c&&J.createElement(Lr,{userId:c.userId,isBanned:c==null?void 0:c.isGlobalBanned})}})):null},dj=({className:e,sticky:t=!1,searchBy:o})=>{let[r,n]=useState(""),[i,a]=useState(o),{open:s,close:l,isOpen:c,containerRef:p}=wv({value:r});function u(){n("");}return J.createElement(Sv,{className:e,sticky:t},J.createElement(FormattedMessage,{id:"exploreHeader.searchCommunityPlaceholder"},([f])=>J.createElement(sj,{ref:p},J.createElement(wt,{"data-qa-anchor":"social-search-input",value:r,prepend:J.createElement(Mv,null,J.createElement(Pv,null)),placeholder:typeof f=="string"?f:void 0,onClear:u,onChange:g=>n==null?void 0:n(g.plainText),onClick:()=>s()}),c?J.createElement(ho,{tabs:[{value:"communities",label:"Communities"},{value:"accounts",label:"Accounts"}],activeTab:i,onChange:g=>a(g)}):null,i==="communities"?J.createElement(lj,{searchValue:r,isOpen:c}):null,i==="accounts"?J.createElement(mj,{searchValue:r,isOpen:c}):null)))},kv=e=>{let t=V("SocialSearch");return t?t(e):J.createElement(dj,d({},e))};var cj=m(kv)`
2877
+ `,mj=({searchValue:e,isOpen:t})=>{let{onClickCommunity:o}=Q(),{communities:r,hasMore:n,loadMore:i}=Br({displayName:e}),a=r.filter(Ue),s=a.map(l=>l.displayName);return t?J.createElement(Nv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})):null,onPick:l=>a[l]?o(a[l].communityId):null,renderItem:l=>{let c=r.find(p=>p.displayName===l);return c&&J.createElement(cl,{communityId:c.communityId})}})):null},dj=({searchValue:e,isOpen:t})=>{let{onClickUser:o}=Q(),{users:r,hasMore:n,loadMore:i}=X2(e),a=r.filter(Ue),s=a.map(l=>l.displayName);return t?J.createElement(Nv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(q,{fullWidth:!0,onClick:i},J.createElement(FormattedMessage,{id:"loadMore"})):null,onPick:l=>a[l]?o(a[l].userId):null,renderItem:l=>{let c=r.find(p=>p.displayName===l);return c&&J.createElement(Lr,{userId:c.userId,isBanned:c==null?void 0:c.isGlobalBanned})}})):null},cj=({className:e,sticky:t=!1,searchBy:o})=>{let[r,n]=useState(""),[i,a]=useState(o),{open:s,close:l,isOpen:c,containerRef:p}=wv({value:r});function u(){n("");}return J.createElement(Sv,{className:e,sticky:t},J.createElement(FormattedMessage,{id:"exploreHeader.searchCommunityPlaceholder"},([f])=>J.createElement(lj,{ref:p},J.createElement(wt,{"data-qa-anchor":"social-search-input",value:r,prepend:J.createElement(Mv,null,J.createElement(Pv,null)),placeholder:typeof f=="string"?f:void 0,onClear:u,onChange:g=>n==null?void 0:n(g.plainText),onClick:()=>s()}),c?J.createElement(ho,{tabs:[{value:"communities",label:"Communities"},{value:"accounts",label:"Accounts"}],activeTab:i,onChange:g=>a(g)}):null,i==="communities"?J.createElement(mj,{searchValue:r,isOpen:c}):null,i==="accounts"?J.createElement(dj,{searchValue:r,isOpen:c}):null)))},kv=e=>{let t=V("SocialSearch");return t?t(e):J.createElement(cj,d({},e))};var pj=m(kv)`
2878
2878
  background: ${({theme:e})=>e.palette.system.background};
2879
2879
  padding: 0.5rem;
2880
- `,pj=({className:e,activeCommunity:t})=>J.createElement(hC,{"data-qa-anchor":"community-side-menu",className:e},J.createElement(cj,{sticky:!0,searchBy:"communities"}),J.createElement(IC,null),J.createElement(bv,{activeCommunity:t})),ld=pj;var X3=16,hj={720:1,1024:2,1280:3,1440:4,1800:5},Cj=m.div`
2880
+ `,uj=({className:e,activeCommunity:t})=>J.createElement(hC,{"data-qa-anchor":"community-side-menu",className:e},J.createElement(pj,{sticky:!0,searchBy:"communities"}),J.createElement(IC,null),J.createElement(bv,{activeCommunity:t})),ld=uj;var X3=16,Cj={720:1,1024:2,1280:3,1440:4,1800:5},vj=m.div`
2881
2881
  display: flex;
2882
2882
  justify-content: space-between;
2883
2883
  margin: 0 0 16px 0;
2884
2884
  align-items: flex-end;
2885
- `,vj=m.h2`
2885
+ `,xj=m.h2`
2886
2886
  ${({theme:e})=>e.typography.headline};
2887
2887
  display: inline-block;
2888
2888
  margin: 0;
2889
- `,xj=m.div`
2889
+ `,bj=m.div`
2890
2890
  display: flex;
2891
2891
  gap: 20px;
2892
2892
  `,Av=m(q).attrs({variant:"secondary"})`
@@ -2900,21 +2900,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2900
2900
  &:disabled {
2901
2901
  color: ${({theme:e})=>e.palette.neutral.shade3};
2902
2902
  }
2903
- `,bj=m.div`
2903
+ `,Ij=m.div`
2904
2904
  overflow-x: hidden;
2905
- `;function Ij(e,t){let r=Object.entries(t).sort(([n],[i])=>Number(n)-Number(i)).find(([n])=>e<=Number(n));return r?r[1]:3}var wj=m.div.withConfig({shouldForwardProp:e=>e!=="currentWidth"&&e!=="columns"})`
2905
+ `;function wj(e,t){let r=Object.entries(t).sort(([n],[i])=>Number(n)-Number(i)).find(([n])=>e<=Number(n));return r?r[1]:3}var _j=m.div.withConfig({shouldForwardProp:e=>e!=="currentWidth"&&e!=="columns"})`
2906
2906
  margin-bottom: 0.188rem; // give the shadow a little space
2907
2907
  display: grid;
2908
2908
  grid-auto-flow: column;
2909
2909
  grid-auto-columns: 100%;
2910
2910
  grid-gap: ${X3}px;
2911
2911
 
2912
- ${({currentWidth:e,columns:t})=>{let o=Ij(e,t);return j`
2912
+ ${({currentWidth:e,columns:t})=>{let o=wj(e,t);return j`
2913
2913
  grid-auto-columns: calc(
2914
2914
  (100% / ${o}) - (${X3}px * ${o-1} / ${o})
2915
2915
  );
2916
2916
  `}}
2917
- `,_j=({title:e="",children:t,columns:o=hj,hasMore:r=!1,loadMore:n=()=>{}})=>{var C,y;let i=useRef(null),{x:a}=yj(i),[s,{width:l}]=gj(),[c,p]=useState(0),u=(y=(C=i.current)==null?void 0:C.scrollWidth)!=null?y:0,f=useMemo(()=>u>l,[u,l]),g=useMemo(()=>a>=u-l,[a,u,l]),h=useMemo(()=>a===0,[a]);return useEffect(()=>{var x;return (x=i.current)==null?void 0:x.scrollTo({left:(l+X3)*c,behavior:"smooth"})},[l,c]),useEffect(()=>{a>=u-l*2&&r&&n();},[a,u,l,r,n]),J.createElement("div",{ref:s},J.createElement(Cj,null,J.createElement(vj,null,e),f&&J.createElement(xj,null,J.createElement(Av,{disabled:h,onClick:()=>p(c-1)},J.createElement(qr,{height:"20px",width:"20px"})),J.createElement(Av,{disabled:g,onClick:()=>p(c+1)},J.createElement(xi,{height:"20px",width:"20px"})))),J.createElement(bj,{ref:i,page:c},i.current?J.createElement(wj,{currentWidth:i.current.clientWidth,columns:o},t):null))},md=_j;var Bv=m.div`
2917
+ `,Mj=({title:e="",children:t,columns:o=Cj,hasMore:r=!1,loadMore:n=()=>{}})=>{var C,y;let i=useRef(null),{x:a}=hj(i),[s,{width:l}]=yj(),[c,p]=useState(0),u=(y=(C=i.current)==null?void 0:C.scrollWidth)!=null?y:0,f=useMemo(()=>u>l,[u,l]),g=useMemo(()=>a>=u-l,[a,u,l]),h=useMemo(()=>a===0,[a]);return useEffect(()=>{var x;return (x=i.current)==null?void 0:x.scrollTo({left:(l+X3)*c,behavior:"smooth"})},[l,c]),useEffect(()=>{a>=u-l*2&&r&&n();},[a,u,l,r,n]),J.createElement("div",{ref:s},J.createElement(vj,null,J.createElement(xj,null,e),f&&J.createElement(bj,null,J.createElement(Av,{disabled:h,onClick:()=>p(c-1)},J.createElement(qr,{height:"20px",width:"20px"})),J.createElement(Av,{disabled:g,onClick:()=>p(c+1)},J.createElement(xi,{height:"20px",width:"20px"})))),J.createElement(Ij,{ref:i,page:c},i.current?J.createElement(_j,{currentWidth:i.current.clientWidth,columns:o},t):null))},md=Mj;var Bv=m.div`
2918
2918
  cursor: pointer;
2919
2919
  box-shadow:
2920
2920
  0 0 1px rgba(40, 41, 61, 0.08),
@@ -2966,7 +2966,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2966
2966
  margin-bottom: 4px;
2967
2967
  `,Uv=m.div`
2968
2968
  ${({theme:e})=>e.typography.caption}
2969
- `;var Sj=u=>{var f=u,{avatarFileUrl:e,community:t,communityCategories:o,membersCount:r,description:n,onClick:i,isOfficial:a,isPublic:s,name:l,loading:c}=f,p=I(f,["avatarFileUrl","community","communityCategories","membersCount","description","onClick","isOfficial","isPublic","name","loading"]);return J.createElement(Bv,d({onClick:()=>(t==null?void 0:t.communityId)&&(i==null?void 0:i(t.communityId))},p),J.createElement(Lv,{backgroundImage:e},J.createElement(Fv,null,J.createElement(Dv,{isOfficial:a,isPublic:s,isTitle:!0,name:l,truncate:2}),J.createElement(og,{lines:1},J.createElement(Vv,null,(o||[]).map(h=>h.name).join(", "))))),J.createElement(Ov,null,c&&J.createElement(he,{style:{fontSize:8}}),!c&&J.createElement(Hv,null,gg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}})),!c&&n?J.createElement(og,{lines:2},J.createElement(Uv,null,n)):null))},rs=e=>{let t=V("UICommunityCard");return t?t(e):J.createElement(Sj,d({},e))};var Ej=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>P(this,null,function*(){return (yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},ns=Ej;var Bj=r=>{var n=r,{communityId:e,onClick:t}=n,o=I(n,["communityId","onClick"]);var u;let i=We(e),a=at(i==null?void 0:i.avatarFileId),s=ns((i==null?void 0:i.categoryIds)||[]),l=te({fileId:(u=a==null?void 0:a.fileId)!=null?u:void 0});if(i==null)return J.createElement(J.Fragment,null);let{membersCount:c,description:p}=i;return J.createElement(rs,d({avatarFileUrl:l,community:i,communityCategories:s,membersCount:c,description:p,isOfficial:i.isOfficial,isPublic:i.isPublic,name:i.displayName,onClick:t},o))},dd=memo(Bj);function e5(e){let r=Pe({fetcher:CommunityRepository.getRecommendedCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=I(r,["items"]);return d({communities:t},o)}var Vj=()=>{let{onClickCommunity:e}=Q(),{communities:t,isLoading:o}=e5(),r=o?J.createElement(he,{style:{fontSize:12,maxWidth:156}}):J.createElement(FormattedMessage,{id:"recommendedList"});return t!=null&&t.length?J.createElement(md,{title:r,columns:{1024:2,1280:3}},o&&new Array(4).fill(1).map((n,i)=>J.createElement(rs,{key:i,loading:!0})),!o&&t.map(({communityId:n})=>J.createElement(dd,{key:n,communityId:n,onClick:e}))):null},jv=memo(Vj);var Uj=m.div`
2969
+ `;var Tj=u=>{var f=u,{avatarFileUrl:e,community:t,communityCategories:o,membersCount:r,description:n,onClick:i,isOfficial:a,isPublic:s,name:l,loading:c}=f,p=w(f,["avatarFileUrl","community","communityCategories","membersCount","description","onClick","isOfficial","isPublic","name","loading"]);return J.createElement(Bv,d({onClick:()=>(t==null?void 0:t.communityId)&&(i==null?void 0:i(t.communityId))},p),J.createElement(Lv,{backgroundImage:e},J.createElement(Fv,null,J.createElement(Dv,{isOfficial:a,isPublic:s,isTitle:!0,name:l,truncate:2}),J.createElement(og,{lines:1},J.createElement(Vv,null,(o||[]).map(h=>h.name).join(", "))))),J.createElement(Ov,null,c&&J.createElement(he,{style:{fontSize:8}}),!c&&J.createElement(Hv,null,gg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}})),!c&&n?J.createElement(og,{lines:2},J.createElement(Uv,null,n)):null))},ns=e=>{let t=V("UICommunityCard");return t?t(e):J.createElement(Tj,d({},e))};var Aj=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>P(this,null,function*(){return (yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},is=Aj;var Lj=r=>{var n=r,{communityId:e,onClick:t}=n,o=w(n,["communityId","onClick"]);var u;let i=We(e),a=st(i==null?void 0:i.avatarFileId),s=is((i==null?void 0:i.categoryIds)||[]),l=te({fileId:(u=a==null?void 0:a.fileId)!=null?u:void 0});if(i==null)return J.createElement(J.Fragment,null);let{membersCount:c,description:p}=i;return J.createElement(ns,d({avatarFileUrl:l,community:i,communityCategories:s,membersCount:c,description:p,isOfficial:i.isOfficial,isPublic:i.isPublic,name:i.displayName,onClick:t},o))},dd=memo(Lj);function e5(e){let r=Pe({fetcher:CommunityRepository.getRecommendedCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=w(r,["items"]);return d({communities:t},o)}var Oj=()=>{let{onClickCommunity:e}=Q(),{communities:t,isLoading:o}=e5(),r=o?J.createElement(he,{style:{fontSize:12,maxWidth:156}}):J.createElement(FormattedMessage,{id:"recommendedList"});return t!=null&&t.length?J.createElement(md,{title:r,columns:{1024:2,1280:3}},o&&new Array(4).fill(1).map((n,i)=>J.createElement(ns,{key:i,loading:!0})),!o&&t.map(({communityId:n})=>J.createElement(dd,{key:n,communityId:n,onClick:e}))):null},jv=memo(Oj);var zj=m.div`
2970
2970
  display: grid;
2971
2971
  grid-template-columns: 118px auto;
2972
2972
  cursor: pointer;
@@ -2977,7 +2977,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2977
2977
  border-radius: 8px;
2978
2978
  background: ${({theme:e})=>e.palette.system.background};
2979
2979
  overflow: hidden;
2980
- `,zj=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
2980
+ `,jj=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
2981
2981
  padding-left: 100%;
2982
2982
 
2983
2983
  ${({backgroundImage:e,theme:t})=>`
@@ -2986,42 +2986,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
2986
2986
  background-position: center;
2987
2987
  background-size: cover;
2988
2988
  `}
2989
- `,jj=m.div`
2989
+ `,Gj=m.div`
2990
2990
  padding: 16px;
2991
2991
  display: flex;
2992
2992
  flex-direction: column;
2993
2993
  justify-content: center;
2994
2994
  overflow: hidden;
2995
- `,Gj=m.span`
2995
+ `,$j=m.span`
2996
2996
  &:after {
2997
2997
  content: ' • ';
2998
2998
  }
2999
- `,$j=m.span`
2999
+ `,Zj=m.span`
3000
3000
  font: inherit;
3001
3001
  &:not(:first-child):before {
3002
3002
  content: ' ';
3003
3003
  }
3004
- `,Zj=m.div`
3004
+ `,qj=m.div`
3005
3005
  ${({theme:e})=>e.typography.caption};
3006
3006
  color: ${({theme:e})=>e.palette.base.shade1};
3007
3007
 
3008
3008
  & > * {
3009
3009
  font: inherit;
3010
3010
  }
3011
- `,qj=m.p`
3011
+ `,Yj=m.p`
3012
3012
  margin: 0.5rem 0 0;
3013
3013
  ${({theme:e})=>e.typography.caption}
3014
- `,Yj=m(Ln)`
3014
+ `,Wj=m(Ln)`
3015
3015
  ${({theme:e})=>e.typography.title};
3016
3016
 
3017
3017
  &:before {
3018
3018
  content: counter(trending, decimal-leading-zero);
3019
3019
  margin-right: 0.375em;
3020
3020
  }
3021
- `,Wj=({avatarFileUrl:e,description:t,categories:o=[],membersCount:r,onClick:n,isOfficial:i,isPublic:a,name:s,loading:l})=>J.createElement(Uj,{onClick:n},J.createElement(zj,{backgroundImage:e}),J.createElement(jj,null,l?J.createElement(J.Fragment,null,J.createElement(he,{style:{fontSize:"0.5rem",maxWidth:"7.5rem"}}),J.createElement("div",null,J.createElement(he,{style:{fontSize:"0.5rem",maxWidth:"13.5rem"}})),J.createElement(he,{width:"2.5rem",style:{fontSize:"0.5rem"}}),J.createElement(he,{width:"2.5rem",style:{fontSize:"0.5rem",marginLeft:"0.75rem"}})):J.createElement(J.Fragment,null,J.createElement(Yj,{isOfficial:i,isPublic:a,name:s}),J.createElement(Zj,null,o.length>0&&J.createElement(og,{lines:1},J.createElement(Gj,null,o.map(c=>J.createElement($j,{key:c.categoryId},c.name)))),J.createElement("span",null,gg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}}))),t&&J.createElement(og,{lines:2},J.createElement(qj,null,t))))),cd=e=>{let t=V("UITrendingItem");return t?t(e):J.createElement(Wj,d({},e))};var Jj=({communityId:e,onClick:t,loading:o})=>{let r=We(e),n=te({fileId:r==null?void 0:r.avatarFileId}),i=ns(r==null?void 0:r.categoryIds),a=()=>t(e);if(r==null)return null;let{membersCount:s,description:l}=r;return J.createElement(cd,{avatarFileUrl:n,description:l,categories:i,membersCount:s,isOfficial:r.isOfficial,isPublic:r.isPublic,name:r.displayName,loading:o,onClick:a})};var $v=memo(Jj);var Xj=m.h2`
3021
+ `,Qj=({avatarFileUrl:e,description:t,categories:o=[],membersCount:r,onClick:n,isOfficial:i,isPublic:a,name:s,loading:l})=>J.createElement(zj,{onClick:n},J.createElement(jj,{backgroundImage:e}),J.createElement(Gj,null,l?J.createElement(J.Fragment,null,J.createElement(he,{style:{fontSize:"0.5rem",maxWidth:"7.5rem"}}),J.createElement("div",null,J.createElement(he,{style:{fontSize:"0.5rem",maxWidth:"13.5rem"}})),J.createElement(he,{width:"2.5rem",style:{fontSize:"0.5rem"}}),J.createElement(he,{width:"2.5rem",style:{fontSize:"0.5rem",marginLeft:"0.75rem"}})):J.createElement(J.Fragment,null,J.createElement(Wj,{isOfficial:i,isPublic:a,name:s}),J.createElement(qj,null,o.length>0&&J.createElement(og,{lines:1},J.createElement($j,null,o.map(c=>J.createElement(Zj,{key:c.categoryId},c.name)))),J.createElement("span",null,gg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}}))),t&&J.createElement(og,{lines:2},J.createElement(Yj,null,t))))),cd=e=>{let t=V("UITrendingItem");return t?t(e):J.createElement(Qj,d({},e))};var Xj=({communityId:e,onClick:t,loading:o})=>{let r=We(e),n=te({fileId:r==null?void 0:r.avatarFileId}),i=is(r==null?void 0:r.categoryIds),a=()=>t(e);if(r==null)return null;let{membersCount:s,description:l}=r;return J.createElement(cd,{avatarFileUrl:n,description:l,categories:i,membersCount:s,isOfficial:r.isOfficial,isPublic:r.isPublic,name:r.displayName,loading:o,onClick:a})};var $v=memo(Xj);var Rj=m.h2`
3022
3022
  ${({theme:e})=>e.typography.headline};
3023
3023
  margin: 0 0 1rem 0;
3024
- `,Zv=Xj;function t5(e){let r=Pe({fetcher:CommunityRepository.getTrendingCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=I(r,["items"]);return d({communities:t},o)}var tG=m.ul`
3024
+ `,Zv=Rj;function t5(e){let r=Pe({fetcher:CommunityRepository.getTrendingCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=w(r,["items"]);return d({communities:t},o)}var oG=m.ul`
3025
3025
  list-style: none;
3026
3026
  counter-reset: trending;
3027
3027
  padding: 0;
@@ -3038,7 +3038,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3038
3038
  @media (min-width: 1800px) {
3039
3039
  grid-template-columns: repeat(3, 1fr);
3040
3040
  }
3041
- `,oG=()=>{let{onClickCommunity:e}=Q(),{communities:t,loadMoreHasBeenCalled:o}=t5(),r=o?J.createElement(he,{style:{fontSize:12,maxWidth:156}}):J.createElement(FormattedMessage,{id:"todaysTrendingTitle"}),n=o?new Array(5).fill(1).map((i,a)=>J.createElement("li",{key:a},J.createElement(cd,{loading:!0}))):t.slice(0,5).map(({communityId:i})=>J.createElement("li",{key:i},J.createElement($v,{communityId:i,onClick:e})));return J.createElement("div",null,J.createElement(Zv,null,r),J.createElement(tG,null,n))},qv=oG;var Yv=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
3041
+ `,rG=()=>{let{onClickCommunity:e}=Q(),{communities:t,loadMoreHasBeenCalled:o}=t5(),r=o?J.createElement(he,{style:{fontSize:12,maxWidth:156}}):J.createElement(FormattedMessage,{id:"todaysTrendingTitle"}),n=o?new Array(5).fill(1).map((i,a)=>J.createElement("li",{key:a},J.createElement(cd,{loading:!0}))):t.slice(0,5).map(({communityId:i})=>J.createElement("li",{key:i},J.createElement($v,{communityId:i,onClick:e})));return J.createElement("div",null,J.createElement(Zv,null,r),J.createElement(oG,null,n))},qv=rG;var Yv=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
3042
3042
  min-width: 160px;
3043
3043
  min-height: 150px;
3044
3044
  cursor: pointer;
@@ -3061,7 +3061,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3061
3061
  color: #ffffff;
3062
3062
  ${({theme:e})=>e.typography.title}
3063
3063
  margin: 0;
3064
- `;var nG=s=>{var l=s,{categoryId:e,name:t,avatarFileUrl:o,avatarFileId:r,onClick:n,loading:i}=l,a=I(l,["categoryId","name","avatarFileUrl","avatarFileId","onClick","loading"]);let c=()=>e&&(n==null?void 0:n(e)),p=te({fileId:r});return J.createElement(Yv,d({backgroundImage:o||p||void 0,onClick:c},a),J.createElement(Wv,null,i&&J.createElement(he,{style:{fontSize:16}}),!i&&J.createElement(og,{lines:2},J.createElement(Qv,null,t))))},pd=e=>{let t=V("UICategoryCard");return t?t(e):J.createElement(nG,d({},e))};var sG=i=>{var a=i,{categoryId:e,className:t,loading:o,onClick:r}=a,n=I(a,["categoryId","className","loading","onClick"]);let s=Vn(e),l=te({fileId:s==null?void 0:s.avatarFileId});return J.createElement(pd,d({avatarFileUrl:l,className:t,categoryId:e,name:s==null?void 0:s.name,loading:o,onClick:r},n))};memo(sG);var Kv=m(pd)`
3064
+ `;var iG=s=>{var l=s,{categoryId:e,name:t,avatarFileUrl:o,avatarFileId:r,onClick:n,loading:i}=l,a=w(l,["categoryId","name","avatarFileUrl","avatarFileId","onClick","loading"]);let c=()=>e&&(n==null?void 0:n(e)),p=te({fileId:r});return J.createElement(Yv,d({backgroundImage:o||p||void 0,onClick:c},a),J.createElement(Wv,null,i&&J.createElement(he,{style:{fontSize:16}}),!i&&J.createElement(og,{lines:2},J.createElement(Qv,null,t))))},pd=e=>{let t=V("UICategoryCard");return t?t(e):J.createElement(iG,d({},e))};var lG=i=>{var a=i,{categoryId:e,className:t,loading:o,onClick:r}=a,n=w(a,["categoryId","className","loading","onClick"]);let s=Vn(e),l=te({fileId:s==null?void 0:s.avatarFileId});return J.createElement(pd,d({avatarFileUrl:l,className:t,categoryId:e,name:s==null?void 0:s.name,loading:o,onClick:r},n))};memo(lG);var Kv=m(pd)`
3065
3065
  > :first-child {
3066
3066
  padding-right: 1rem;
3067
3067
  padding-left: 0;
@@ -3074,7 +3074,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3074
3074
 
3075
3075
  padding-left: 1rem;
3076
3076
  padding-right: 1rem;
3077
- `,dG=()=>{let{onClickCategory:e}=Q(),{categories:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=ul({includeDeleted:!1}),a=useMemo(()=>{function s(){return new Array(6).fill(1).map((l,c)=>({categoryId:c,skeleton:!0}))}return n?s():i?[...t,...s()]:t},[t,n,i]);return J.createElement(md,{columns:{720:2,1024:3,1280:5,1440:6,1800:8},title:J.createElement(FormattedMessage,{id:"categoryList"}),hasMore:o,loadMore:r},a.map(s=>zo(s)?J.createElement(Kv,{key:s.categoryId,loading:!0}):J.createElement(Kv,{key:s.categoryId,categoryId:s.categoryId,name:s.name,avatarFileId:s.avatarFileId,onClick:e})))},Jv=dG;var Xv=m.div`
3077
+ `,cG=()=>{let{onClickCategory:e}=Q(),{categories:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=ul({includeDeleted:!1}),a=useMemo(()=>{function s(){return new Array(6).fill(1).map((l,c)=>({categoryId:c,skeleton:!0}))}return n?s():i?[...t,...s()]:t},[t,n,i]);return J.createElement(md,{columns:{720:2,1024:3,1280:5,1440:6,1800:8},title:J.createElement(FormattedMessage,{id:"categoryList"}),hasMore:o,loadMore:r},a.map(s=>zo(s)?J.createElement(Kv,{key:s.categoryId,loading:!0}):J.createElement(Kv,{key:s.categoryId,categoryId:s.categoryId,name:s.name,avatarFileId:s.avatarFileId,onClick:e})))},Jv=cG;var Xv=m.div`
3078
3078
  max-width: 1450px;
3079
3079
  margin: 0 auto;
3080
3080
  padding: 30px 0;
@@ -3090,9 +3090,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3090
3090
  margin: 0 auto;
3091
3091
  padding: 28px 0;
3092
3092
  overflow-y: auto;
3093
- `,as=m.h2`
3093
+ `,ss=m.h2`
3094
3094
  ${({theme:e})=>e.typography.headline};
3095
- `,ss=m.div`
3095
+ `,ls=m.div`
3096
3096
  @media (min-width: 768px) {
3097
3097
  /* Updated media query for screens wider than 767px */
3098
3098
  display: none; /* Hide on desktop and tablet */
@@ -3108,7 +3108,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3108
3108
  height: 58px;
3109
3109
  padding: 1rem;
3110
3110
  }
3111
- `,ls=m.div.withConfig({shouldForwardProp:e=>e!=="isOpen"})`
3111
+ `,ms=m.div.withConfig({shouldForwardProp:e=>e!=="isOpen"})`
3112
3112
  position: fixed;
3113
3113
  top: 0;
3114
3114
  left: 0;
@@ -3122,7 +3122,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3122
3122
  opacity 0.3s ease-in-out,
3123
3123
  visibility 0.3s ease-in-out;
3124
3124
  cursor: pointer;
3125
- `,ms=m(ld).withConfig({shouldForwardProp:e=>e!=="isOpen"})`
3125
+ `,ds=m(ld).withConfig({shouldForwardProp:e=>e!=="isOpen"})`
3126
3126
  position: fixed;
3127
3127
  top: 0;
3128
3128
  left: 0;
@@ -3131,16 +3131,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3131
3131
  z-index: 999;
3132
3132
  transform: translateX(${({isOpen:e})=>e?0:"-100%"});
3133
3133
  transition: transform 0.3s ease-in-out;
3134
- `,ds=m(p1)`
3134
+ `,cs=m(u1)`
3135
3135
  cursor: pointer;
3136
- `;var pG=m(ss)`
3136
+ `;var uG=m(ls)`
3137
3137
  background-color: #f7f7f8;
3138
- `,uG=m.div`
3138
+ `,fG=m.div`
3139
3139
  height: 100%;
3140
3140
  margin: 0 auto;
3141
3141
  padding: 28px 0;
3142
3142
  overflow-y: auto;
3143
- `,fG=({isOpen:e,toggleOpen:t,hideSideMenu:o})=>{let{formatMessage:r}=useIntl();return J.createElement(uG,null,o!==!0&&J.createElement(J.Fragment,null,J.createElement(ls,{isOpen:e,onClick:t}),J.createElement(ms,{isOpen:e}),J.createElement(pG,null,J.createElement(ds,{onClick:t}),J.createElement(as,null,r({id:"sidebar.explore"})))),J.createElement(Xv,null,J.createElement(jv,null),J.createElement(qv,null),J.createElement(Jv,null)))},ex=fG;var o5={emptyStateRing:"na",errorRing:"la",uploadingProgressRing:"da","upload-progress":"q"};var yG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,className:o5.emptyStateRing}))},hG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none",strokeDasharray:339,strokeDashoffset:0}))},CG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{className:o5.uploadingProgressRing,cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none"}))},hl=s=>{var l=s,{pageId:e="*",componentId:t="*",hasUnseen:o=!1,uploading:r=!1,isErrored:n=!1,size:i=64}=l,a=I(l,["pageId","componentId","hasUnseen","uploading","isErrored","size"]);let c="story_ring",{isExcluded:p}=B({pageId:e,componentId:t,elementId:c});return p?null:n?J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:"none",viewBox:`0 0 ${i} ${i}`},a),J.createElement("circle",{cx:i/2,cy:i/2,r:i/2-1,stroke:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-alert-default"),strokeWidth:"2"})):r?J.createElement(CG,{pageId:e,componentId:t,elementId:c,size:i}):o?J.createElement(hG,{pageId:e,componentId:t,elementId:c,size:i}):J.createElement(yG,{pageId:e,componentId:t,elementId:c,size:i})};function qo(e){return e!=null}var vG=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function tx(e){return e==="https://"||vG.test(e)}function bG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=Np(),[a,s]=useState(!1),[l,c]=useState(n||!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),x=useRef(null),v=useCallback(()=>{var b;y.current&&(s(!0),(b=y.current)==null||b.call(y));},[y,a,l,c]),_=useCallback(b=>{n&&(b.data&&u(b.data),c(b.loading),C(b.hasNextPage),g(b.error),y.current=b.onNextPage,o(b));},[n,y]);useEffect(()=>{if(!n)return;let{unsubscribe:b}=i({fetcher:e,params:t,callback:_});return x.current=b,()=>{b();}},[t,n]);let M=useCallback(()=>{x.current&&x.current();let{unsubscribe:b}=i({fetcher:e,params:t,callback:_,refresh:!0});return x.current=b,()=>b()},[]);return {items:p,hasMore:h,isLoading:l,loadMore:v,error:f,loadMoreHasBeenCalled:a,refresh:M}}var dt=bG;var cs,ps,fd,rx,vl,n5,Zi=class Zi{constructor(){Ht(this,fd);Ht(this,vl);Ht(this,cs,void 0);gn(this,cs,new Map);}static get instance(){return Kt(Zi,ps)||gn(Zi,ps,new Zi),Kt(Zi,ps)}hasReachedLimit(t){let o=Io(this,vl,n5).call(this,t);return Kt(this,cs).get(t)===o}markSeen(t){Kt(this,cs).set(t,Io(this,vl,n5).call(this,t));}};cs=new WeakMap,ps=new WeakMap,fd=new WeakSet,rx=function(t){let o=To.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},vl=new WeakSet,n5=function(t){let o=er(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Io(this,fd,rx).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Ht(Zi,ps,void 0);var us=Zi;var fs,xl,bl,i5,qi=class qi{constructor(){Ht(this,bl);Ht(this,xl,"amity.seenRecencyCache");}static get instance(){return Kt(qi,fs)||gn(qi,fs,new qi),Kt(qi,fs)}getSeenRecencyByAdId(t){if(t)return Io(this,bl,i5).call(this)[t]}setSeenRecencyCache(t,o){let r=Io(this,bl,i5).call(this);r[t]=o,window.localStorage.setItem(Kt(this,xl),JSON.stringify(r));}};fs=new WeakMap,xl=new WeakMap,bl=new WeakSet,i5=function(){return JSON.parse(window.localStorage.getItem(Kt(this,xl))||"{}")},Ht(qi,fs,void 0);var gd=qi,gs,Il,a5,Yi=class Yi{constructor(){Ht(this,Il);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>P(this,null,function*(){if(t==="established"){let o=yield AdRepository.getNetworkAds();this.ads=o.ads,this.settings=o.settings,this.subscribers.forEach(r=>r(o)),this.isLoading=!1;}else t==="terminated"&&(this.ads=[],this.settings=null,this.subscribers.forEach(o=>o(null)));}));}static get instance(){return Kt(Yi,gs)||gn(Yi,gs,new Yi),Kt(Yi,gs)}onNetworkAdsData(t){!this.isLoading&&this.ads.length>0&&this.settings&&t({ads:this.ads,settings:this.settings}),this.subscribers.push(t);}getLastSeen(t){return gd.instance.getSeenRecencyByAdId(t)}markSeen(t,o){var r;gd.instance.setSeenRecencyCache(t.adId,Date.now()),((r=Io(this,Il,a5).call(this,o))==null?void 0:r.type)==="time-window"&&us.instance.markSeen(o),t.analytics.markAsSeen(o);}markClicked(t,o){t.analytics.markLinkAsClicked(o);}getAdFrequencyByPlacement(t){return Io(this,Il,a5).call(this,t)}};gs=new WeakMap,Il=new WeakSet,a5=function(t){if(!this.settings)return null;switch(t){case"feed":return this.settings.frequency.feed;case"comment":return this.settings.frequency.comment;case"story":return this.settings.frequency.story;default:return null}},Ht(Yi,gs,void 0);var To=Yi;var ys,hd,nx,Cd,ix,vd,ax,Wi=class Wi{constructor(){Ht(this,hd);Ht(this,Cd);Ht(this,vd);}static get instance(){return Kt(Wi,ys)||gn(Wi,ys,new Wi),Kt(Wi,ys)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Io(this,hd,nx).call(this,t),a=new Map;return t.forEach(s=>{var u;let l=(((u=s.targets)==null?void 0:u.communityIds)||[]).includes(n||"")?1:0,c=i.get(s.adId);if(c==null)return;let p=l+Math.pow(Math.E,2*c);a.set(s.adId,p);}),Io(this,vd,ax).call(this,{ads:t,scores:a,count:r})}};ys=new WeakMap,hd=new WeakSet,nx=function(t){var a;let o=t.sort((s,l)=>{var u,f;let c=(u=To.instance.getLastSeen(s.adId))!=null?u:0;return ((f=To.instance.getLastSeen(l.adId))!=null?f:0)-c}),r=new Map,n=To.instance.getLastSeen((a=o==null?void 0:o[o.length-1])==null?void 0:a.adId);return To.instance.getLastSeen(o[0].adId)===n?o.forEach(s=>{r.set(s.adId,1);}):o.forEach((s,l)=>{let c=l/o.length;r.set(s.adId,c);}),r},Cd=new WeakSet,ix=function(t){let o=0,r=Math.random();for(let n=0;n<t.length;n++)if(o+=t[n],r<o)return n;return t.length-1},vd=new WeakSet,ax=function({ads:t,scores:o,count:r}){let n=[...t],i=[];for(;i.length<r&&n.length>0;){let a=n.reduce((p,u)=>p+(o.get(u.adId)||0),0),s=n.map(p=>(o.get(p.adId)||0)/a),l=s.map(p=>p/s.reduce((u,f)=>u+f,0)),c=Io(this,Cd,ix).call(this,l);i.push(n[c]),n.splice(c,1);}return i},Ht(Wi,ys,void 0);var yd=Wi;var lx=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var s5=()=>useContext(lx).settings,mx=({count:e,placement:t,communityId:o})=>{let n=useContext(lx).ads,[i,a]=useState([]),s=s5(),l=To.instance.getAdFrequencyByPlacement(t);return useEffect(()=>{s!=null&&s.enabled&&((l==null?void 0:l.type)==="time-window"&&us.instance.hasReachedLimit(t)||a(yd.instance.recommendedAds({ads:n,placement:t,count:e,communityId:o})));},[n,e,t,o]),i};var NG=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=s5(),[i,a]=useState(0),[s,l]=useState([]),[c,p]=useState(0),u=To.instance.getAdFrequencyByPlacement(e),f=(u==null?void 0:u.type)==="fixed"?t/u.value:1,g=mx({count:f,placement:e,communityId:o});return {combineItemsWithAds:y=>{if(!(n!=null&&n.enabled))return y;if((u==null?void 0:u.type)==="fixed"){let x=new Set(y.map($=>r($))),v=s.map($=>{let G=r($[0]);if(!x.has(G))return null;let O=y.find(ee=>r(ee)===G);return O?$.length===1?[O]:[O,$[1]]:$}).filter(qo),_=v[0],M=(()=>{if(_){let $=y.findIndex(G=>r(G)===r(_[0]));return $===-1?0:$}return 0})(),w=[...(y||[]).slice(0,M).map($=>[$]),...v],T=y.slice(M).filter($=>{let G=r($);return !w.some(O=>r(O[0])===G)}),k=i,N=c,F=T.map($=>{if(N=N+1,!(N%u.value===0))return [$];let O=g[k];return k=k+1>g.length-1?0:k+1,[$,O]});a(k),p(N);let Z=[...w,...F];return l([...w,...F]),Z.length===0&&(a(0),p(0)),[...w,...F].flatMap($=>$)}else if((u==null?void 0:u.type)==="time-window")return y.length===0?y:[...y.slice(0,1),g[0],...y.slice(1)].filter(qo);return y},reset:()=>{a(0),l([]),p(0);}}},wl=({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0,placement:i,communityId:a,pageSize:s,getItemId:l})=>{let{combineItemsWithAds:c}=NG({placement:i,pageSize:s,communityId:a,getItemId:l}),g=dt({fetcher:e,params:t,config:r,shouldCall:n}),{items:p}=g,u=I(g,["items"]),f=useMemo(()=>c(p).flatMap(h=>h),[p]);return S(d({},u),{items:f})};var hs=e=>{let r=wl({fetcher:StoryRepository.getActiveStoriesByTarget,params:e,shouldCall:!0,pageSize:10,placement:"story",getItemId:n=>(n==null?void 0:n.storyId)||""}),{items:t}=r,o=I(r,["items"]);return d({stories:t.filter(qo)},o)};var EG="global-admin";var dx=e=>e!=null&&e.length?e.includes(EG):!1;var _l=(i=>(i.MEMBER="member",i.MODERATOR="moderator",i.SUPER_MODERATOR="super-moderator",i.COMMUNITY_MODERATOR="community-moderator",i.CHANNEL_MODERATOR="channel-moderator",i))(_l||{});var BG="global-admin",{COMMUNITY_MODERATOR:LG,CHANNEL_MODERATOR:FG,MODERATOR:DG,SUPER_MODERATOR:VG}=_l,xd=e=>{if(!(e!=null&&e.length))return !1;let t=[LG,FG,DG,VG];return e.some(o=>t.includes(o))},bd=e=>e!=null&&e.length?e.includes(BG):!1;var Zn=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function Id(e){if(!e)return;let t=new Date(e),r=Math.floor((new Date().getTime()-t.getTime())/1e3);return r<60?"Just now":r>=60&&r<3600?`${Math.floor(r/60)}m`:`${Math.floor(r/3600)}h`}var OG=({community:e})=>{let{currentUserId:t,userRoles:o,client:r}=ne(),{moderators:n}=Jr(e==null?void 0:e.communityId),i=n.find(c=>c.userId===t),a=o.find(c=>c==="global-admin")!=null,s=i!=null,l=(e==null?void 0:e.communityId)&&(r==null?void 0:r.hasPermission(bn.CreatePivillegedPostPermission).community(e==null?void 0:e.communityId))||(e==null?void 0:e.postSetting)!=="ONLY_ADMIN_CAN_POST";return {isModerator:s,canEdit:a||s,canReview:a||s,canCreatePost:!!l}},Cs=OG;var zG=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},cx=zG;var ct=({fileId:e,imageSize:t="medium"})=>{let o=cx(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return P(this,null,function*(){if((o==null?void 0:o.fileUrl)==null)return;let a=FileRepository.fileUrlWithSize(o==null?void 0:o.fileUrl,t);n(a);})}i();},[o,t]),r};var qG=({communityId:e,shouldCall:t=!0})=>{let n=Ni({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=I(n,["item"]);return d({community:o},r)},No=qG;var QG=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>P(this,null,function*(){let a=CategoryRepository.getCategory.locally(i);return a!=null&&a.data?a.data:(yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},m5=QG;var ux={page:{type:"SocialHomePage",context:{communityId:void 0}},onChangePage:e=>{},onClickCategory:e=>{},onClickCommunity:e=>{},onClickUser:e=>{},onCommunityCreated:e=>{},onEditCommunity:e=>{},onEditUser:e=>{},onMessageUser:e=>{},goToUserProfilePage:e=>{},goToPostDetailPage:(e,t,o)=>{},goToViewStoryPage:e=>{},goToDraftStoryPage:(e,t,o,r)=>{},goToCommunityProfilePage:e=>{},goToSocialGlobalSearchPage:e=>{},goToSelectPostTargetPage:()=>{},goToStoryTargetSelectionPage:()=>{},goToCommunityCreatePage:()=>{},goToPostComposerPage:()=>{},goToStoryCreationPage:()=>{},goToSocialHomePage:()=>{},goToMyCommunitiesSearchPage:()=>{},goToAllCategoriesPage:()=>{},goToCommunitiesByCategoryPage:e=>{},setNavigationBlocker:()=>{},onBack:()=>{},onClickStory:(e,t,o)=>{}};process.env.NODE_ENV!=="production"&&(ux={page:{type:"SocialHomePage",context:{communityId:void 0}},onChangePage:e=>console.log(`NavigationContext onChangePage(${e})`),onClickCategory:e=>console.log(`NavigationContext onClickCategory(${e})`),onClickCommunity:e=>console.log(`NavigationContext onClickCommunity(${e})`),onClickUser:e=>console.log(`NavigationContext onClickUser(${e})`),goToViewStoryPage:({targetId:e,storyType:t,targetType:o})=>console.log(`NavigationContext goToViewStoryPage(${e}, ${t}, ${o})`),onCommunityCreated:e=>console.log(`NavigationContext onCommunityCreated(${e})`),onEditCommunity:e=>console.log(`NavigationContext onEditCommunity({${e})`),onEditUser:e=>console.log(`NavigationContext onEditUser(${e})`),onMessageUser:e=>console.log(`NavigationContext onMessageUser(${e})`),onBack:()=>console.log("NavigationContext onBack()"),goToUserProfilePage:e=>console.log(`NavigationContext goToUserProfilePage(${e})`),goToPostDetailPage:(e,t,o)=>console.log(`NavigationContext goToPostDetailPage(${e} ${t} ${o})`),goToCommunityProfilePage:e=>console.log(`NavigationContext goToCommunityProfilePage(${e})`),goToSocialGlobalSearchPage:e=>console.log(`NavigationContext goToSocialGlobalSearchPage(${e})`),goToSelectPostTargetPage:()=>console.log("NavigationContext goToTargetPage()"),goToCommunityCreatePage:()=>console.log("NavigationContext goToCommunityCreatePage()"),goToStoryTargetSelectionPage:()=>console.log("NavigationContext goToStoryTargetSelectionPage()"),goToDraftStoryPage:e=>console.log("NavigationContext goToDraftStoryPage()"),goToPostComposerPage:()=>console.log("NavigationContext goToPostComposerPage()"),goToStoryCreationPage:()=>console.log("NavigationContext goToStoryCreationPage()"),goToSocialHomePage:()=>console.log("NavigationContext goToSocialHomePage()"),goToMyCommunitiesSearchPage:()=>console.log("NavigationContext goToMyCommunitiesSearchPage()"),goToAllCategoriesPage:()=>console.log("NavigationContext goToAllCategoriesPage()"),goToCommunitiesByCategoryPage:e=>console.log(`NavigationContext goToCommunitiesByCategoryPage(${e})`),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`)});var XG=createContext(ux),Be=()=>useContext(XG);var d5=e=>{let{onEditCommunity:t}=Be(),{community:o}=No({communityId:e,shouldCall:!!e}),r=ct({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=m5(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=Cs({community:o}),l=useMemo(()=>(n==null?void 0:n.length)||0,[n]);return {community:o,reviewingPosts:n,avatarFileUrl:r,communityCategories:i,pendingPostsCount:l,canEditCommunity:s,canReviewCommunityPosts:a,onEditCommunity:t,joinCommunity:()=>e&&CommunityRepository.joinCommunity(e),leaveCommunity:()=>e&&CommunityRepository.leaveCommunity(e),updateCommunity:g=>e&&CommunityRepository.updateCommunity(e,g),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};var le=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var fx={createNewStoryButton:"ma"};var t$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#1054DE",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M11.438 7.625c.156 0 .312.156.312.313v.625a.321.321 0 01-.313.312H8.626v2.813a.321.321 0 01-.313.312h-.624a.308.308 0 01-.313-.313V8.876H4.562a.309.309 0 01-.312-.313v-.624c0-.157.137-.313.313-.313h2.812V4.812c0-.156.137-.312.313-.312h.625c.156 0 .312.156.312.313v2.812h2.813z"})),qn=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="create_new_story_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{style:u,className:lo(fx.createNewStoryButton,o),"data-qa-anchor":a,onPress:n},J.createElement(le,{defaultIcon:()=>J.createElement(t$,null),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:lo(r)}),defaultIconName:l.icon,configIconName:s.icon}))};var Ml={communityAvatar__text:"ga",communityAvatar__placeholder__path:"ha",communityAvatar__placeholder__rect:"pa",communityAvatar__placeholder:"fa",communityAvatar__image:"ua"};var yx=o=>{var r=o,{className:e}=r,t=I(r,["className"]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",className:lo(Ml.communityAvatar__placeholder,e)},t),J.createElement("rect",{width:"64",height:"64",rx:"32",className:Ml.communityAvatar__placeholder__rect}),J.createElement("path",{d:"M31.7539 19.2C33.2201 19.2 34.6262 19.7696 35.6629 20.7836C36.6997 21.7976 37.2821 23.1728 37.2821 24.6068C37.2821 26.0408 36.6997 27.4161 35.6629 28.4301C34.6262 29.4441 33.2201 30.0137 31.7539 30.0137C30.2877 30.0137 28.8816 29.4441 27.8449 28.4301C26.8081 27.4161 26.2257 26.0408 26.2257 24.6068C26.2257 23.1728 26.8081 21.7976 27.8449 20.7836C28.8816 19.7696 30.2877 19.2 31.7539 19.2ZM20.6975 23.062C21.582 23.062 22.4033 23.2937 23.1141 23.7108C22.8772 25.92 23.5406 28.1136 24.8989 29.8284C24.1092 31.3114 22.5297 32.331 20.6975 32.331C19.4408 32.331 18.2355 31.8427 17.3469 30.9736C16.4583 30.1044 15.959 28.9256 15.959 27.6965C15.959 26.4674 16.4583 25.2886 17.3469 24.4194C18.2355 23.5503 19.4408 23.062 20.6975 23.062ZM42.8103 23.062C44.067 23.062 45.2723 23.5503 46.1609 24.4194C47.0495 25.2886 47.5488 26.4674 47.5488 27.6965C47.5488 28.9256 47.0495 30.1044 46.1609 30.9736C45.2723 31.8427 44.067 32.331 42.8103 32.331C40.9781 32.331 39.3986 31.3114 38.6089 29.8284C39.9672 28.1136 40.6306 25.92 40.3937 23.7108C41.1045 23.2937 41.9258 23.062 42.8103 23.062ZM21.4872 38.8965C21.4872 35.6987 26.0835 33.1034 31.7539 33.1034C37.4243 33.1034 42.0206 35.6987 42.0206 38.8965V41.5999H21.4872V38.8965ZM12.8 41.5999V39.2827C12.8 37.1354 15.7853 35.3279 19.8288 34.8027C18.8969 35.8532 18.3283 37.3053 18.3283 38.8965V41.5999H12.8ZM50.7077 41.5999H45.1795V38.8965C45.1795 37.3053 44.6109 35.8532 43.679 34.8027C47.7225 35.3279 50.7077 37.1354 50.7077 39.2827V41.5999Z",className:Ml.communityAvatar__placeholder__path}))};function Dr({pageId:e="*",componentId:t="*",community:o,className:r}){let n="community_avatar",{accessibilityId:i,isExcluded:a,themeStyles:s}=B({pageId:e,componentId:t,elementId:n}),l=te({fileId:o==null?void 0:o.avatarFileId});return a?null:l==null?J.createElement(yx,{style:s,className:r}):J.createElement("object",{type:"image/png",data:l,style:s,"data-qa-anchor":i,className:lo(Ml.communityAvatar__image,r)},J.createElement(yx,{className:r}))}var xs={errorIcon:"ba",addStoryButton:"va",hiddenInput:"xa",storyWrapper:"wa",storyTabContainer:"ya",storyAvatarContainer:"ka",storyAvatar:"ja",storyTitle:"za","animate-ring":"B",progressRing:"Ia",progressRingStatic:"Xa"};var a$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M9.25 10.75C9.25 11.453 8.687 12 8 12c-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zM6.89 4.406A.378.378 0 017.267 4h1.453c.219 0 .39.188.375.406l-.203 4.25A.387.387 0 018.516 9H7.469a.387.387 0 01-.375-.344l-.203-4.25z"})),_d=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=ce({pageId:e,componentId:t}),{stories:l}=hs({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:c}=d5(o),{currentUserId:p,client:u}=Oe(),{user:f}=Ae({userId:p}),h=dx(f==null?void 0:f.roles)||Zn(u,o),C=(l==null?void 0:l.length)>0,y=l.some(M=>!(M!=null&&M.isSeen)),x=l.some(M=>(M==null?void 0:M.syncState)==="syncing"),v=l.some(M=>(M==null?void 0:M.syncState)==="error"),_=()=>{Array.isArray(l)&&l.length===0||n();};return i||!C&&!h?null:J.createElement("div",{"data-qa-anchor":a,style:s,className:lo(xs.storyTabContainer)},J.createElement("div",{className:lo(xs.storyWrapper)},C&&J.createElement(hl,{pageId:e,componentId:t,hasUnseen:y,uploading:x,isErrored:v,size:48}),J.createElement("button",{className:lo(xs.storyAvatarContainer),onClick:_},J.createElement(Dr,{pageId:e,componentId:t,community:c})),h&&J.createElement(FileTrigger,{onSelect:M=>{let b=Array.from(M);r(b[0]);}},J.createElement(qn,{pageId:e,componentId:t})),v&&J.createElement(a$,{className:lo(xs.errorIcon)})),J.createElement(og,{lines:1},J.createElement("div",{"data-qa-anchore":`${e}/${t}/story_title`,className:lo(xs.storyTitle)},"Story")))};var Sl={storyTabContainer:"Ya",storyTab:"Ra",storyTabImage:"Aa",storyTabContent:"Ma",storyTabTitle:"Sa",storyTabIcons:"F",storyTabSkeleton:"Ca",storyTabSkeletonAvatar:"Ea","skeleton-pulse":"b",storyTabSkeletonUsername:"Ua"};var Md={bottomSheet__container:"qa",bottomSheet__header:"Ba",bottomSheet__content:"Fa",bottomSheet__backdrop:"Ha"};var Co=r=>{var n=r,{children:e,headerTitle:t}=n,o=I(n,["children","headerTitle"]);return J.createElement(Ki,d({},o),J.createElement(Ki.Container,{className:Md.bottomSheet__container},J.createElement(Ki.Header,null,J.createElement(Ki.Header,null),t&&J.createElement(Ki.Header,{className:Md.bottomSheet__header},J.createElement(A.Title,null,t))),J.createElement(Ki.Content,{className:Md.bottomSheet__content},e)),J.createElement(Ki.Backdrop,{onTap:o.onClose}))};var c5={avatarContainer:"H",avatarImage:"La"};var fr=({pageId:e="*",componentId:t="*",avatarUrl:o,defaultImage:r,onClick:n})=>{let i="avatar",{accessibilityId:a}=B({pageId:e,componentId:t,elementId:i});return J.createElement("div",{"data-qa-anchor":a,className:c5.avatarContainer,"data-clickable":!!n,onClick:n},o?J.createElement("img",{className:c5.avatarImage,src:o,alt:"Avatar"}):r)};var Tl={button:"Ta",disabled:"n",primary:"L",secondary:"T",ghost:"D",small:"Da",medium:"Ga",large:"Ja",icon:"Ka"};var u$=a=>{var s=a,{children:e,variant:t="primary",size:o="medium",icon:r,className:n}=s,i=I(s,["children","variant","size","icon","className"]);let l=lo(Tl.button,Tl[t],Tl[o],n);return J.createElement("button",d({className:l},i),r&&J.createElement("span",{className:Tl.icon},r),e)},Pd=u$;var f$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),J.createElement("path",{d:"M20.4187 17.2429V15.4838L21.6578 14.2365C21.6585 14.2358 21.6591 14.2351 21.6598 14.2345C22.3179 13.5807 22.7516 12.8355 22.75 11.9942C22.7484 11.1537 22.3123 10.4094 21.6598 9.75682L20.4187 8.51578V6.7571C20.4187 5.82907 20.1982 4.99346 19.6024 4.39762C19.0065 3.80179 18.1709 3.58128 17.2429 3.58128H15.4842L14.2432 2.34024L13.7265 2.85697L14.2432 2.34024C13.5864 1.68348 12.8389 1.24622 11.9953 1.24784C11.1522 1.24946 10.4079 1.68897 9.75583 2.34991L8.51619 3.58128H6.75709C5.8332 3.58128 4.99652 3.79543 4.39906 4.38966C3.80081 4.98466 3.58127 5.82245 3.58127 6.7571V8.51578L2.34222 9.75484C2.34186 9.75519 2.3415 9.75555 2.34114 9.75591C1.68254 10.4099 1.24839 11.1554 1.25 11.9971C1.25162 12.8372 1.68721 13.5812 2.33924 14.2335C2.33957 14.2338 2.3399 14.2342 2.34023 14.2345L3.58127 15.4838V17.2429C3.58127 18.1709 3.80178 19.0066 4.39761 19.6024C4.99345 20.1982 5.82907 20.4187 6.75709 20.4187H8.51577L9.75483 21.6578C9.75525 21.6582 9.75567 21.6586 9.75609 21.6591C10.4102 22.3177 11.1557 22.7516 11.9982 22.75C12.8389 22.7484 13.5848 22.3133 14.2412 21.6618L14.2432 21.6598L15.4842 20.4187H17.2429C18.1709 20.4187 19.0065 20.1982 19.6024 19.6024C20.1982 19.0066 20.4187 18.1709 20.4187 17.2429ZM11.1362 14.6127L15.3255 8.63293C15.3257 8.63263 15.3259 8.63232 15.3261 8.63202C15.3555 8.59049 15.3769 8.56736 15.3897 8.55517C15.3961 8.54919 15.4003 8.54586 15.4025 8.54426L15.4048 8.54269L15.4054 8.54234L15.4054 8.54232L15.4062 8.542C15.4072 8.54166 15.4101 8.54065 15.4157 8.53942C15.4272 8.53692 15.4517 8.53308 15.4953 8.53308C15.5882 8.53308 15.6273 8.563 15.6388 8.57409C15.649 8.58379 15.6664 8.60504 15.6669 8.65903C15.6668 8.65902 15.6656 8.67471 15.6559 8.70306C15.6448 8.73553 15.6277 8.7697 15.6066 8.79916L15.6062 8.79975L10.738 15.6292C10.7079 15.6666 10.6872 15.6779 10.6764 15.6829C10.6626 15.6894 10.6288 15.7017 10.5567 15.7017C10.4668 15.7017 10.4177 15.6786 10.3664 15.6272L7.5945 12.5262L7.58765 12.5185L7.58058 12.511C7.58023 12.5106 7.57454 12.5043 7.5688 12.489C7.56299 12.4736 7.55926 12.4545 7.55926 12.4347C7.55926 12.3583 7.58347 12.332 7.59029 12.3253C7.59747 12.3182 7.63028 12.2892 7.72221 12.2892C7.78716 12.2892 7.81058 12.2992 7.8149 12.3011L7.81503 12.3012C7.81882 12.3028 7.8367 12.3105 7.87134 12.3478L9.9633 14.6828L10.5939 15.3867L11.1362 14.6127Z",fill:"#1054DE",stroke:"white",strokeWidth:"1.5"})),p5=f$;var an={container:"Na",avatarContainer:"Oa",verifiedIcon:"Pa",avatarBackground:"Qa",avatar:"Va",displayName:"Wa",errorIcon:"Za",lockIcon:"_a"};var y$=t=>{var e=I(t,[]);return J.createElement("svg",d({width:"61",height:"61",viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M33.0312 44.25C33.0312 45.7266 31.8711 46.7812 30.5 46.7812C29.0234 46.7812 27.9688 45.7266 27.9688 44.25V37.5C27.9688 36.1289 29.0234 34.9688 30.5 34.9688C31.8711 34.9688 33.0312 36.1289 33.0312 37.5V44.25ZM30.5 3.75C37.8828 3.75 44 9.86719 44 17.25V24H47.375C51.0664 24 54.125 27.0586 54.125 30.75V51C54.125 54.7969 51.0664 57.75 47.375 57.75H13.625C9.82812 57.75 6.875 54.7969 6.875 51V30.75C6.875 27.0586 9.82812 24 13.625 24H17V17.25C17 9.86719 23.0117 3.75 30.5 3.75ZM30.5 8.8125C25.7539 8.8125 22.0625 12.6094 22.0625 17.25V24H38.9375V17.25C38.9375 12.6094 35.1406 8.8125 30.5 8.8125ZM13.625 29.0625C12.6758 29.0625 11.9375 29.9062 11.9375 30.75V51C11.9375 51.9492 12.6758 52.6875 13.625 52.6875H47.375C48.2188 52.6875 49.0625 51.9492 49.0625 51V30.75C49.0625 29.9062 48.2188 29.0625 47.375 29.0625H13.625Z"}))},Sd=y$;var h$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M9.25 10.75C9.25 11.453 8.687 12 8 12c-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zM6.89 4.406A.378.378 0 017.267 4h1.453c.219 0 .39.188.375.406l-.203 4.25A.387.387 0 018.516 9H7.469a.387.387 0 01-.375-.344l-.203-4.25z"}));var wx=({pageId:e,componentId:t,targetId:o,hasUnseen:r,onClick:n,isErrored:i})=>{let{community:a}=No({communityId:o}),s=ct({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return J.createElement("div",{className:lo(an.container),onClick:n},J.createElement("div",{className:an.avatarContainer},J.createElement(hl,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),J.createElement("div",{"data-qa-anchor":`${e}/${t}/community_avatar`,className:an.avatarBackground},s&&J.createElement("img",{className:an.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&J.createElement(h$,{className:an.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&J.createElement(p5,{className:an.verifiedIcon})),J.createElement(A.Caption,{"data-qa-anchor":`${e}/${t}/community_name`,className:lo(an.displayName)},!(a!=null&&a.isPublic)&&J.createElement(Sd,{className:an.lockIcon}),a==null?void 0:a.displayName))};var Td=e=>{let l=dt({fetcher:StoryRepository.getGlobalStoryTargets,params:e,shouldCall:!0}),{items:t,hasMore:o,loadMore:r,isLoading:n,refresh:i}=l,a=I(l,["items","hasMore","loadMore","isLoading","refresh"]);return d({stories:t,hasMore:o,isLoading:n,loadMoreStories:()=>{o&&!n&&r();},refresh:i},a)};var v$=10,Nd=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=ce({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:c,refresh:p}=Td({seenState:"smart",limit:v$}),u=useRef(null),f=useRef(null);return useEffect(()=>{p();},[]),useEffect(()=>{if(!u.current)return;let g=new IntersectionObserver(h=>{h[0].isIntersecting&&l&&c();},{root:u.current,rootMargin:"0px",threshold:.9});return ()=>{g&&g.disconnect();}},[u==null?void 0:u.current]),r||(a==null?void 0:a.length)===0?null:J.createElement("div",{"data-qa-anchor":n,style:i,className:Sl.storyTabContainer,ref:u},s?Array.from({length:10}).map((g,h)=>J.createElement("div",{key:h,className:Sl.storyTabSkeleton},J.createElement("div",{className:Sl.storyTabSkeletonAvatar}),J.createElement("div",{className:Sl.storyTabSkeletonUsername}))):a.map(g=>J.createElement(wx,{pageId:e,componentId:t,key:g.targetId,targetId:g.targetId,hasUnseen:g.hasUnseen,isErrored:g.failedStoriesCount>0,onClick:()=>o({storyTargets:a,storyTarget:g}),size:64})),J.createElement("div",{ref:f,style:{height:"1px",width:"1px"}}))};var Px=createContext({file:null,setFile:()=>{}}),Wo=()=>useContext(Px),Sx=({children:e})=>{let[t,o]=useState(null),r={file:t,setFile:o};return J.createElement(Px.Provider,{value:r},e)};var Nl=e=>{let t="story_tab_component",{onClickStory:o,goToDraftStoryPage:r}=Q(),{setFile:n}=Wo();return (()=>{switch(e.type){case"communityFeed":return J.createElement(_d,{componentId:t,communityId:e.communityId,onFileChange:a=>{n(a),a&&r(e.communityId,"community",a.type.includes("image")?{type:"image",url:URL.createObjectURL(a)}:{type:"video",url:URL.createObjectURL(a)},"communityFeed");},onStoryClick:()=>o(e.communityId,"communityFeed")});case"globalFeed":return J.createElement(Nd,{componentId:t,goToViewStoryPage:({storyTarget:a,storyTargets:s})=>{o(a.targetId,"globalFeed",s.map(l=>l.targetId));}})}})()};var M$=({isOpen:e,toggleOpen:t})=>{let{onChangePage:o}=Q(),{formatMessage:r}=useIntl();return J.createElement(Rv,{"data-qa-anchor":"news-feed"},J.createElement(ls,{isOpen:e,onClick:t}),J.createElement(ms,{isOpen:e}),J.createElement(ss,null,J.createElement(ds,{onClick:t}),J.createElement(as,null,r({id:"sidebar.community"}))),J.createElement(Nl,{type:"globalFeed"}),J.createElement(An,{targetType:"globalFeed",goToExplore:()=>o("explore"),showPostCreator:!0}))},Nx=M$;var kx=21;var Ex=[{value:"image",label:J.createElement(FormattedMessage,{id:"tabs.images"})},{value:"video",label:J.createElement(FormattedMessage,{id:"tabs.videos"})},{value:"liveStream",label:J.createElement(FormattedMessage,{id:"tabs.liveStreams"})}],Ax={image:J.createElement(x0,null),video:J.createElement(I0,null),liveStream:J.createElement(b0,null)},Bx={image:J.createElement(FormattedMessage,{id:"mediaGallery.images.empty"}),video:J.createElement(FormattedMessage,{id:"mediaGallery.videos.empty"}),liveStream:J.createElement(FormattedMessage,{id:"mediaGallery.liveStreams.empty"})};var Lx=m(ho)`
3143
+ `,gG=({isOpen:e,toggleOpen:t,hideSideMenu:o})=>{let{formatMessage:r}=useIntl();return J.createElement(fG,null,o!==!0&&J.createElement(J.Fragment,null,J.createElement(ms,{isOpen:e,onClick:t}),J.createElement(ds,{isOpen:e}),J.createElement(uG,null,J.createElement(cs,{onClick:t}),J.createElement(ss,null,r({id:"sidebar.explore"})))),J.createElement(Xv,null,J.createElement(jv,null),J.createElement(qv,null),J.createElement(Jv,null)))},ex=gG;var o5={emptyStateRing:"na",errorRing:"la",uploadingProgressRing:"da","upload-progress":"q"};var hG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,className:o5.emptyStateRing}))},CG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none",strokeDasharray:339,strokeDashoffset:0}))},vG=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=B({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},J.createElement("defs",null,J.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:i[0]}),J.createElement("stop",{offset:1,stopColor:i[1]}))),J.createElement("circle",{className:o5.uploadingProgressRing,cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none"}))},hl=s=>{var l=s,{pageId:e="*",componentId:t="*",hasUnseen:o=!1,uploading:r=!1,isErrored:n=!1,size:i=64}=l,a=w(l,["pageId","componentId","hasUnseen","uploading","isErrored","size"]);let c="story_ring",{isExcluded:p}=B({pageId:e,componentId:t,elementId:c});return p?null:n?J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:"none",viewBox:`0 0 ${i} ${i}`},a),J.createElement("circle",{cx:i/2,cy:i/2,r:i/2-1,stroke:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-alert-default"),strokeWidth:"2"})):r?J.createElement(vG,{pageId:e,componentId:t,elementId:c,size:i}):o?J.createElement(CG,{pageId:e,componentId:t,elementId:c,size:i}):J.createElement(hG,{pageId:e,componentId:t,elementId:c,size:i})};function qo(e){return e!=null}var xG=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function tx(e){return e==="https://"||xG.test(e)}function IG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=Np(),[a,s]=useState(!1),[l,c]=useState(n||!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),x=useRef(null),v=useCallback(()=>{var b;y.current&&(s(!0),(b=y.current)==null||b.call(y));},[y,a,l,c]),_=useCallback(b=>{n&&(b.data&&u(b.data),c(b.loading),C(b.hasNextPage),g(b.error),y.current=b.onNextPage,o(b));},[n,y]);useEffect(()=>{if(!n)return;let{unsubscribe:b}=i({fetcher:e,params:t,callback:_});return x.current=b,()=>{b();}},[t,n]);let M=useCallback(()=>{x.current&&x.current();let{unsubscribe:b}=i({fetcher:e,params:t,callback:_,refresh:!0});return x.current=b,()=>b()},[]);return {items:p,hasMore:h,isLoading:l,loadMore:v,error:f,loadMoreHasBeenCalled:a,refresh:M}}var dt=IG;var ps,us,fd,rx,vl,n5,Zi=class Zi{constructor(){Ht(this,fd);Ht(this,vl);Ht(this,ps,void 0);gn(this,ps,new Map);}static get instance(){return Kt(Zi,us)||gn(Zi,us,new Zi),Kt(Zi,us)}hasReachedLimit(t){let o=Io(this,vl,n5).call(this,t);return Kt(this,ps).get(t)===o}markSeen(t){Kt(this,ps).set(t,Io(this,vl,n5).call(this,t));}};ps=new WeakMap,us=new WeakMap,fd=new WeakSet,rx=function(t){let o=To.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},vl=new WeakSet,n5=function(t){let o=er(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Io(this,fd,rx).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Ht(Zi,us,void 0);var fs=Zi;var gs,xl,bl,i5,qi=class qi{constructor(){Ht(this,bl);Ht(this,xl,"amity.seenRecencyCache");}static get instance(){return Kt(qi,gs)||gn(qi,gs,new qi),Kt(qi,gs)}getSeenRecencyByAdId(t){if(t)return Io(this,bl,i5).call(this)[t]}setSeenRecencyCache(t,o){let r=Io(this,bl,i5).call(this);r[t]=o,window.localStorage.setItem(Kt(this,xl),JSON.stringify(r));}};gs=new WeakMap,xl=new WeakMap,bl=new WeakSet,i5=function(){return JSON.parse(window.localStorage.getItem(Kt(this,xl))||"{}")},Ht(qi,gs,void 0);var gd=qi,ys,Il,a5,Yi=class Yi{constructor(){Ht(this,Il);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>P(this,null,function*(){if(t==="established"){let o=yield AdRepository.getNetworkAds();this.ads=o.ads,this.settings=o.settings,this.subscribers.forEach(r=>r(o)),this.isLoading=!1;}else t==="terminated"&&(this.ads=[],this.settings=null,this.subscribers.forEach(o=>o(null)));}));}static get instance(){return Kt(Yi,ys)||gn(Yi,ys,new Yi),Kt(Yi,ys)}onNetworkAdsData(t){!this.isLoading&&this.ads.length>0&&this.settings&&t({ads:this.ads,settings:this.settings}),this.subscribers.push(t);}getLastSeen(t){return gd.instance.getSeenRecencyByAdId(t)}markSeen(t,o){var r;gd.instance.setSeenRecencyCache(t.adId,Date.now()),((r=Io(this,Il,a5).call(this,o))==null?void 0:r.type)==="time-window"&&fs.instance.markSeen(o),t.analytics.markAsSeen(o);}markClicked(t,o){t.analytics.markLinkAsClicked(o);}getAdFrequencyByPlacement(t){return Io(this,Il,a5).call(this,t)}};ys=new WeakMap,Il=new WeakSet,a5=function(t){if(!this.settings)return null;switch(t){case"feed":return this.settings.frequency.feed;case"comment":return this.settings.frequency.comment;case"story":return this.settings.frequency.story;default:return null}},Ht(Yi,ys,void 0);var To=Yi;var hs,hd,nx,Cd,ix,vd,ax,Wi=class Wi{constructor(){Ht(this,hd);Ht(this,Cd);Ht(this,vd);}static get instance(){return Kt(Wi,hs)||gn(Wi,hs,new Wi),Kt(Wi,hs)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Io(this,hd,nx).call(this,t),a=new Map;return t.forEach(s=>{var u;let l=(((u=s.targets)==null?void 0:u.communityIds)||[]).includes(n||"")?1:0,c=i.get(s.adId);if(c==null)return;let p=l+Math.pow(Math.E,2*c);a.set(s.adId,p);}),Io(this,vd,ax).call(this,{ads:t,scores:a,count:r})}};hs=new WeakMap,hd=new WeakSet,nx=function(t){var a;let o=t.sort((s,l)=>{var u,f;let c=(u=To.instance.getLastSeen(s.adId))!=null?u:0;return ((f=To.instance.getLastSeen(l.adId))!=null?f:0)-c}),r=new Map,n=To.instance.getLastSeen((a=o==null?void 0:o[o.length-1])==null?void 0:a.adId);return To.instance.getLastSeen(o[0].adId)===n?o.forEach(s=>{r.set(s.adId,1);}):o.forEach((s,l)=>{let c=l/o.length;r.set(s.adId,c);}),r},Cd=new WeakSet,ix=function(t){let o=0,r=Math.random();for(let n=0;n<t.length;n++)if(o+=t[n],r<o)return n;return t.length-1},vd=new WeakSet,ax=function({ads:t,scores:o,count:r}){let n=[...t],i=[];for(;i.length<r&&n.length>0;){let a=n.reduce((p,u)=>p+(o.get(u.adId)||0),0),s=n.map(p=>(o.get(p.adId)||0)/a),l=s.map(p=>p/s.reduce((u,f)=>u+f,0)),c=Io(this,Cd,ix).call(this,l);i.push(n[c]),n.splice(c,1);}return i},Ht(Wi,hs,void 0);var yd=Wi;var lx=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var s5=()=>useContext(lx).settings,mx=({count:e,placement:t,communityId:o})=>{let n=useContext(lx).ads,[i,a]=useState([]),s=s5(),l=To.instance.getAdFrequencyByPlacement(t);return useEffect(()=>{s!=null&&s.enabled&&((l==null?void 0:l.type)==="time-window"&&fs.instance.hasReachedLimit(t)||a(yd.instance.recommendedAds({ads:n,placement:t,count:e,communityId:o})));},[n,e,t,o]),i};var kG=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=s5(),[i,a]=useState(0),[s,l]=useState([]),[c,p]=useState(0),u=To.instance.getAdFrequencyByPlacement(e),f=(u==null?void 0:u.type)==="fixed"?t/u.value:1,g=mx({count:f,placement:e,communityId:o});return {combineItemsWithAds:y=>{if(!(n!=null&&n.enabled))return y;if((u==null?void 0:u.type)==="fixed"){let x=new Set(y.map($=>r($))),v=s.map($=>{let G=r($[0]);if(!x.has(G))return null;let O=y.find(ee=>r(ee)===G);return O?$.length===1?[O]:[O,$[1]]:$}).filter(qo),_=v[0],M=(()=>{if(_){let $=y.findIndex(G=>r(G)===r(_[0]));return $===-1?0:$}return 0})(),I=[...(y||[]).slice(0,M).map($=>[$]),...v],T=y.slice(M).filter($=>{let G=r($);return !I.some(O=>r(O[0])===G)}),k=i,N=c,F=T.map($=>{if(N=N+1,!(N%u.value===0))return [$];let O=g[k];return k=k+1>g.length-1?0:k+1,[$,O]});a(k),p(N);let Z=[...I,...F];return l([...I,...F]),Z.length===0&&(a(0),p(0)),[...I,...F].flatMap($=>$)}else if((u==null?void 0:u.type)==="time-window")return y.length===0?y:[...y.slice(0,1),g[0],...y.slice(1)].filter(qo);return y},reset:()=>{a(0),l([]),p(0);}}},wl=({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0,placement:i,communityId:a,pageSize:s,getItemId:l})=>{let{combineItemsWithAds:c}=kG({placement:i,pageSize:s,communityId:a,getItemId:l}),g=dt({fetcher:e,params:t,config:r,shouldCall:n}),{items:p}=g,u=w(g,["items"]),f=useMemo(()=>c(p).flatMap(h=>h),[p]);return S(d({},u),{items:f})};var Cs=e=>{let r=wl({fetcher:StoryRepository.getActiveStoriesByTarget,params:e,shouldCall:!0,pageSize:10,placement:"story",getItemId:n=>(n==null?void 0:n.storyId)||""}),{items:t}=r,o=w(r,["items"]);return d({stories:t.filter(qo)},o)};var AG="global-admin";var dx=e=>e!=null&&e.length?e.includes(AG):!1;var _l=(i=>(i.MEMBER="member",i.MODERATOR="moderator",i.SUPER_MODERATOR="super-moderator",i.COMMUNITY_MODERATOR="community-moderator",i.CHANNEL_MODERATOR="channel-moderator",i))(_l||{});var LG="global-admin",{COMMUNITY_MODERATOR:FG,CHANNEL_MODERATOR:DG,MODERATOR:VG,SUPER_MODERATOR:OG}=_l,xd=e=>{if(!(e!=null&&e.length))return !1;let t=[FG,DG,VG,OG];return e.some(o=>t.includes(o))},bd=e=>e!=null&&e.length?e.includes(LG):!1;var Zn=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function Id(e){if(!e)return;let t=new Date(e),r=Math.floor((new Date().getTime()-t.getTime())/1e3);return r<60?"Just now":r>=60&&r<3600?`${Math.floor(r/60)}m`:`${Math.floor(r/3600)}h`}var HG=({community:e})=>{let{currentUserId:t,userRoles:o,client:r}=ne(),{moderators:n}=Jr(e==null?void 0:e.communityId),i=n.find(c=>c.userId===t),a=o.find(c=>c==="global-admin")!=null,s=i!=null,l=(e==null?void 0:e.communityId)&&(r==null?void 0:r.hasPermission(bn.CreatePivillegedPostPermission).community(e==null?void 0:e.communityId))||(e==null?void 0:e.postSetting)!=="ONLY_ADMIN_CAN_POST";return {isModerator:s,canEdit:a||s,canReview:a||s,canCreatePost:!!l}},vs=HG;var jG=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},cx=jG;var ct=({fileId:e,imageSize:t="medium"})=>{let o=cx(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return P(this,null,function*(){if((o==null?void 0:o.fileUrl)==null)return;let a=FileRepository.fileUrlWithSize(o==null?void 0:o.fileUrl,t);n(a);})}i();},[o,t]),r};var YG=({communityId:e,shouldCall:t=!0})=>{let n=Ni({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=w(n,["item"]);return d({community:o},r)},No=YG;var KG=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return P(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>P(this,null,function*(){let a=CategoryRepository.getCategory.locally(i);return a!=null&&a.data?a.data:(yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},m5=KG;var ux={page:{type:"SocialHomePage",context:{communityId:void 0}},onChangePage:e=>{},onClickCategory:e=>{},onClickCommunity:e=>{},onClickUser:e=>{},onCommunityCreated:e=>{},onEditCommunity:e=>{},onEditUser:e=>{},onMessageUser:e=>{},goToUserProfilePage:e=>{},goToPostDetailPage:(e,t,o)=>{},goToViewStoryPage:e=>{},goToDraftStoryPage:(e,t,o,r)=>{},goToCommunityProfilePage:e=>{},goToSocialGlobalSearchPage:e=>{},goToSelectPostTargetPage:()=>{},goToStoryTargetSelectionPage:()=>{},goToCommunityCreatePage:()=>{},goToPostComposerPage:()=>{},goToStoryCreationPage:()=>{},goToSocialHomePage:()=>{},goToMyCommunitiesSearchPage:()=>{},goToAllCategoriesPage:()=>{},goToCommunitiesByCategoryPage:e=>{},setNavigationBlocker:()=>{},onBack:()=>{},onClickStory:(e,t,o)=>{}};process.env.NODE_ENV!=="production"&&(ux={page:{type:"SocialHomePage",context:{communityId:void 0}},onChangePage:e=>console.log(`NavigationContext onChangePage(${e})`),onClickCategory:e=>console.log(`NavigationContext onClickCategory(${e})`),onClickCommunity:e=>console.log(`NavigationContext onClickCommunity(${e})`),onClickUser:e=>console.log(`NavigationContext onClickUser(${e})`),goToViewStoryPage:({targetId:e,storyType:t,targetType:o})=>console.log(`NavigationContext goToViewStoryPage(${e}, ${t}, ${o})`),onCommunityCreated:e=>console.log(`NavigationContext onCommunityCreated(${e})`),onEditCommunity:e=>console.log(`NavigationContext onEditCommunity({${e})`),onEditUser:e=>console.log(`NavigationContext onEditUser(${e})`),onMessageUser:e=>console.log(`NavigationContext onMessageUser(${e})`),onBack:()=>console.log("NavigationContext onBack()"),goToUserProfilePage:e=>console.log(`NavigationContext goToUserProfilePage(${e})`),goToPostDetailPage:(e,t,o)=>console.log(`NavigationContext goToPostDetailPage(${e} ${t} ${o})`),goToCommunityProfilePage:e=>console.log(`NavigationContext goToCommunityProfilePage(${e})`),goToSocialGlobalSearchPage:e=>console.log(`NavigationContext goToSocialGlobalSearchPage(${e})`),goToSelectPostTargetPage:()=>console.log("NavigationContext goToTargetPage()"),goToCommunityCreatePage:()=>console.log("NavigationContext goToCommunityCreatePage()"),goToStoryTargetSelectionPage:()=>console.log("NavigationContext goToStoryTargetSelectionPage()"),goToDraftStoryPage:e=>console.log("NavigationContext goToDraftStoryPage()"),goToPostComposerPage:()=>console.log("NavigationContext goToPostComposerPage()"),goToStoryCreationPage:()=>console.log("NavigationContext goToStoryCreationPage()"),goToSocialHomePage:()=>console.log("NavigationContext goToSocialHomePage()"),goToMyCommunitiesSearchPage:()=>console.log("NavigationContext goToMyCommunitiesSearchPage()"),goToAllCategoriesPage:()=>console.log("NavigationContext goToAllCategoriesPage()"),goToCommunitiesByCategoryPage:e=>console.log(`NavigationContext goToCommunitiesByCategoryPage(${e})`),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`)});var RG=createContext(ux),Be=()=>useContext(RG);var d5=e=>{let{onEditCommunity:t}=Be(),{community:o}=No({communityId:e,shouldCall:!!e}),r=ct({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=m5(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=vs({community:o}),l=useMemo(()=>(n==null?void 0:n.length)||0,[n]);return {community:o,reviewingPosts:n,avatarFileUrl:r,communityCategories:i,pendingPostsCount:l,canEditCommunity:s,canReviewCommunityPosts:a,onEditCommunity:t,joinCommunity:()=>e&&CommunityRepository.joinCommunity(e),leaveCommunity:()=>e&&CommunityRepository.leaveCommunity(e),updateCommunity:g=>e&&CommunityRepository.updateCommunity(e,g),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};var le=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var fx={createNewStoryButton:"ma"};var o$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#1054DE",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M11.438 7.625c.156 0 .312.156.312.313v.625a.321.321 0 01-.313.312H8.626v2.813a.321.321 0 01-.313.312h-.624a.308.308 0 01-.313-.313V8.876H4.562a.309.309 0 01-.312-.313v-.624c0-.157.137-.313.313-.313h2.812V4.812c0-.156.137-.312.313-.312h.625c.156 0 .312.156.312.313v2.812h2.813z"})),qn=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="create_new_story_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{style:u,className:lo(fx.createNewStoryButton,o),"data-qa-anchor":a,onPress:n},J.createElement(le,{defaultIcon:()=>J.createElement(o$,null),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:lo(r)}),defaultIconName:l.icon,configIconName:s.icon}))};var Ml={communityAvatar__text:"ga",communityAvatar__placeholder__path:"ha",communityAvatar__placeholder__rect:"pa",communityAvatar__placeholder:"fa",communityAvatar__image:"ua"};var yx=o=>{var r=o,{className:e}=r,t=w(r,["className"]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",className:lo(Ml.communityAvatar__placeholder,e)},t),J.createElement("rect",{width:"64",height:"64",rx:"32",className:Ml.communityAvatar__placeholder__rect}),J.createElement("path",{d:"M31.7539 19.2C33.2201 19.2 34.6262 19.7696 35.6629 20.7836C36.6997 21.7976 37.2821 23.1728 37.2821 24.6068C37.2821 26.0408 36.6997 27.4161 35.6629 28.4301C34.6262 29.4441 33.2201 30.0137 31.7539 30.0137C30.2877 30.0137 28.8816 29.4441 27.8449 28.4301C26.8081 27.4161 26.2257 26.0408 26.2257 24.6068C26.2257 23.1728 26.8081 21.7976 27.8449 20.7836C28.8816 19.7696 30.2877 19.2 31.7539 19.2ZM20.6975 23.062C21.582 23.062 22.4033 23.2937 23.1141 23.7108C22.8772 25.92 23.5406 28.1136 24.8989 29.8284C24.1092 31.3114 22.5297 32.331 20.6975 32.331C19.4408 32.331 18.2355 31.8427 17.3469 30.9736C16.4583 30.1044 15.959 28.9256 15.959 27.6965C15.959 26.4674 16.4583 25.2886 17.3469 24.4194C18.2355 23.5503 19.4408 23.062 20.6975 23.062ZM42.8103 23.062C44.067 23.062 45.2723 23.5503 46.1609 24.4194C47.0495 25.2886 47.5488 26.4674 47.5488 27.6965C47.5488 28.9256 47.0495 30.1044 46.1609 30.9736C45.2723 31.8427 44.067 32.331 42.8103 32.331C40.9781 32.331 39.3986 31.3114 38.6089 29.8284C39.9672 28.1136 40.6306 25.92 40.3937 23.7108C41.1045 23.2937 41.9258 23.062 42.8103 23.062ZM21.4872 38.8965C21.4872 35.6987 26.0835 33.1034 31.7539 33.1034C37.4243 33.1034 42.0206 35.6987 42.0206 38.8965V41.5999H21.4872V38.8965ZM12.8 41.5999V39.2827C12.8 37.1354 15.7853 35.3279 19.8288 34.8027C18.8969 35.8532 18.3283 37.3053 18.3283 38.8965V41.5999H12.8ZM50.7077 41.5999H45.1795V38.8965C45.1795 37.3053 44.6109 35.8532 43.679 34.8027C47.7225 35.3279 50.7077 37.1354 50.7077 39.2827V41.5999Z",className:Ml.communityAvatar__placeholder__path}))};function Dr({pageId:e="*",componentId:t="*",community:o,className:r}){let n="community_avatar",{accessibilityId:i,isExcluded:a,themeStyles:s}=B({pageId:e,componentId:t,elementId:n}),l=te({fileId:o==null?void 0:o.avatarFileId});return a?null:l==null?J.createElement(yx,{style:s,className:r}):J.createElement("object",{type:"image/png",data:l,style:s,"data-qa-anchor":i,className:lo(Ml.communityAvatar__image,r)},J.createElement(yx,{className:r}))}var bs={errorIcon:"ba",addStoryButton:"va",hiddenInput:"xa",storyWrapper:"wa",storyTabContainer:"ya",storyAvatarContainer:"ka",storyAvatar:"ja",storyTitle:"za","animate-ring":"B",progressRing:"Ia",progressRingStatic:"Xa"};var s$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M9.25 10.75C9.25 11.453 8.687 12 8 12c-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zM6.89 4.406A.378.378 0 017.267 4h1.453c.219 0 .39.188.375.406l-.203 4.25A.387.387 0 018.516 9H7.469a.387.387 0 01-.375-.344l-.203-4.25z"})),_d=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=ce({pageId:e,componentId:t}),{stories:l}=Cs({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:c}=d5(o),{currentUserId:p,client:u}=Oe(),{user:f}=Ae({userId:p}),h=dx(f==null?void 0:f.roles)||Zn(u,o),C=(l==null?void 0:l.length)>0,y=l.some(M=>!(M!=null&&M.isSeen)),x=l.some(M=>(M==null?void 0:M.syncState)==="syncing"),v=l.some(M=>(M==null?void 0:M.syncState)==="error"),_=()=>{Array.isArray(l)&&l.length===0||n();};return i||!C&&!h?null:J.createElement("div",{"data-qa-anchor":a,style:s,className:lo(bs.storyTabContainer)},J.createElement("div",{className:lo(bs.storyWrapper)},C&&J.createElement(hl,{pageId:e,componentId:t,hasUnseen:y,uploading:x,isErrored:v,size:48}),J.createElement("button",{className:lo(bs.storyAvatarContainer),onClick:_},J.createElement(Dr,{pageId:e,componentId:t,community:c})),h&&J.createElement(FileTrigger,{onSelect:M=>{let b=Array.from(M);r(b[0]);}},J.createElement(qn,{pageId:e,componentId:t})),v&&J.createElement(s$,{className:lo(bs.errorIcon)})),J.createElement(og,{lines:1},J.createElement("div",{"data-qa-anchore":`${e}/${t}/story_title`,className:lo(bs.storyTitle)},"Story")))};var Sl={storyTabContainer:"Ya",storyTab:"Ra",storyTabImage:"Aa",storyTabContent:"Ma",storyTabTitle:"Sa",storyTabIcons:"F",storyTabSkeleton:"Ca",storyTabSkeletonAvatar:"Ea","skeleton-pulse":"b",storyTabSkeletonUsername:"Ua"};var Md={bottomSheet__container:"qa",bottomSheet__header:"Ba",bottomSheet__content:"Fa",bottomSheet__backdrop:"Ha"};var Co=r=>{var n=r,{children:e,headerTitle:t}=n,o=w(n,["children","headerTitle"]);return J.createElement(Ki,d({},o),J.createElement(Ki.Container,{className:Md.bottomSheet__container},J.createElement(Ki.Header,null,J.createElement(Ki.Header,null),t&&J.createElement(Ki.Header,{className:Md.bottomSheet__header},J.createElement(A.Title,null,t))),J.createElement(Ki.Content,{className:Md.bottomSheet__content},e)),J.createElement(Ki.Backdrop,{onTap:o.onClose}))};var c5={avatarContainer:"H",avatarImage:"La"};var fr=({pageId:e="*",componentId:t="*",avatarUrl:o,defaultImage:r,onClick:n})=>{let i="avatar",{accessibilityId:a}=B({pageId:e,componentId:t,elementId:i});return J.createElement("div",{"data-qa-anchor":a,className:c5.avatarContainer,"data-clickable":!!n,onClick:n},o?J.createElement("img",{className:c5.avatarImage,src:o,alt:"Avatar"}):r)};var Tl={button:"Ta",disabled:"n",primary:"L",secondary:"T",ghost:"D",small:"Da",medium:"Ga",large:"Ja",icon:"Ka"};var f$=a=>{var s=a,{children:e,variant:t="primary",size:o="medium",icon:r,className:n}=s,i=w(s,["children","variant","size","icon","className"]);let l=lo(Tl.button,Tl[t],Tl[o],n);return J.createElement("button",d({className:l},i),r&&J.createElement("span",{className:Tl.icon},r),e)},Pd=f$;var g$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),J.createElement("path",{d:"M20.4187 17.2429V15.4838L21.6578 14.2365C21.6585 14.2358 21.6591 14.2351 21.6598 14.2345C22.3179 13.5807 22.7516 12.8355 22.75 11.9942C22.7484 11.1537 22.3123 10.4094 21.6598 9.75682L20.4187 8.51578V6.7571C20.4187 5.82907 20.1982 4.99346 19.6024 4.39762C19.0065 3.80179 18.1709 3.58128 17.2429 3.58128H15.4842L14.2432 2.34024L13.7265 2.85697L14.2432 2.34024C13.5864 1.68348 12.8389 1.24622 11.9953 1.24784C11.1522 1.24946 10.4079 1.68897 9.75583 2.34991L8.51619 3.58128H6.75709C5.8332 3.58128 4.99652 3.79543 4.39906 4.38966C3.80081 4.98466 3.58127 5.82245 3.58127 6.7571V8.51578L2.34222 9.75484C2.34186 9.75519 2.3415 9.75555 2.34114 9.75591C1.68254 10.4099 1.24839 11.1554 1.25 11.9971C1.25162 12.8372 1.68721 13.5812 2.33924 14.2335C2.33957 14.2338 2.3399 14.2342 2.34023 14.2345L3.58127 15.4838V17.2429C3.58127 18.1709 3.80178 19.0066 4.39761 19.6024C4.99345 20.1982 5.82907 20.4187 6.75709 20.4187H8.51577L9.75483 21.6578C9.75525 21.6582 9.75567 21.6586 9.75609 21.6591C10.4102 22.3177 11.1557 22.7516 11.9982 22.75C12.8389 22.7484 13.5848 22.3133 14.2412 21.6618L14.2432 21.6598L15.4842 20.4187H17.2429C18.1709 20.4187 19.0065 20.1982 19.6024 19.6024C20.1982 19.0066 20.4187 18.1709 20.4187 17.2429ZM11.1362 14.6127L15.3255 8.63293C15.3257 8.63263 15.3259 8.63232 15.3261 8.63202C15.3555 8.59049 15.3769 8.56736 15.3897 8.55517C15.3961 8.54919 15.4003 8.54586 15.4025 8.54426L15.4048 8.54269L15.4054 8.54234L15.4054 8.54232L15.4062 8.542C15.4072 8.54166 15.4101 8.54065 15.4157 8.53942C15.4272 8.53692 15.4517 8.53308 15.4953 8.53308C15.5882 8.53308 15.6273 8.563 15.6388 8.57409C15.649 8.58379 15.6664 8.60504 15.6669 8.65903C15.6668 8.65902 15.6656 8.67471 15.6559 8.70306C15.6448 8.73553 15.6277 8.7697 15.6066 8.79916L15.6062 8.79975L10.738 15.6292C10.7079 15.6666 10.6872 15.6779 10.6764 15.6829C10.6626 15.6894 10.6288 15.7017 10.5567 15.7017C10.4668 15.7017 10.4177 15.6786 10.3664 15.6272L7.5945 12.5262L7.58765 12.5185L7.58058 12.511C7.58023 12.5106 7.57454 12.5043 7.5688 12.489C7.56299 12.4736 7.55926 12.4545 7.55926 12.4347C7.55926 12.3583 7.58347 12.332 7.59029 12.3253C7.59747 12.3182 7.63028 12.2892 7.72221 12.2892C7.78716 12.2892 7.81058 12.2992 7.8149 12.3011L7.81503 12.3012C7.81882 12.3028 7.8367 12.3105 7.87134 12.3478L9.9633 14.6828L10.5939 15.3867L11.1362 14.6127Z",fill:"#1054DE",stroke:"white",strokeWidth:"1.5"})),p5=g$;var an={container:"Na",avatarContainer:"Oa",verifiedIcon:"Pa",avatarBackground:"Qa",avatar:"Va",displayName:"Wa",errorIcon:"Za",lockIcon:"_a"};var h$=t=>{var e=w(t,[]);return J.createElement("svg",d({width:"61",height:"61",viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M33.0312 44.25C33.0312 45.7266 31.8711 46.7812 30.5 46.7812C29.0234 46.7812 27.9688 45.7266 27.9688 44.25V37.5C27.9688 36.1289 29.0234 34.9688 30.5 34.9688C31.8711 34.9688 33.0312 36.1289 33.0312 37.5V44.25ZM30.5 3.75C37.8828 3.75 44 9.86719 44 17.25V24H47.375C51.0664 24 54.125 27.0586 54.125 30.75V51C54.125 54.7969 51.0664 57.75 47.375 57.75H13.625C9.82812 57.75 6.875 54.7969 6.875 51V30.75C6.875 27.0586 9.82812 24 13.625 24H17V17.25C17 9.86719 23.0117 3.75 30.5 3.75ZM30.5 8.8125C25.7539 8.8125 22.0625 12.6094 22.0625 17.25V24H38.9375V17.25C38.9375 12.6094 35.1406 8.8125 30.5 8.8125ZM13.625 29.0625C12.6758 29.0625 11.9375 29.9062 11.9375 30.75V51C11.9375 51.9492 12.6758 52.6875 13.625 52.6875H47.375C48.2188 52.6875 49.0625 51.9492 49.0625 51V30.75C49.0625 29.9062 48.2188 29.0625 47.375 29.0625H13.625Z"}))},Sd=h$;var C$=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),J.createElement("path",{fill:"#fff",d:"M9.25 10.75C9.25 11.453 8.687 12 8 12c-.703 0-1.25-.547-1.25-1.25 0-.688.547-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zM6.89 4.406A.378.378 0 017.267 4h1.453c.219 0 .39.188.375.406l-.203 4.25A.387.387 0 018.516 9H7.469a.387.387 0 01-.375-.344l-.203-4.25z"}));var wx=({pageId:e,componentId:t,targetId:o,hasUnseen:r,onClick:n,isErrored:i})=>{let{community:a}=No({communityId:o}),s=ct({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return J.createElement("div",{className:lo(an.container),onClick:n},J.createElement("div",{className:an.avatarContainer},J.createElement(hl,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),J.createElement("div",{"data-qa-anchor":`${e}/${t}/community_avatar`,className:an.avatarBackground},s&&J.createElement("img",{className:an.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&J.createElement(C$,{className:an.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&J.createElement(p5,{className:an.verifiedIcon})),J.createElement(A.Caption,{"data-qa-anchor":`${e}/${t}/community_name`,className:lo(an.displayName)},!(a!=null&&a.isPublic)&&J.createElement(Sd,{className:an.lockIcon}),a==null?void 0:a.displayName))};var Td=e=>{let l=dt({fetcher:StoryRepository.getGlobalStoryTargets,params:e,shouldCall:!0}),{items:t,hasMore:o,loadMore:r,isLoading:n,refresh:i}=l,a=w(l,["items","hasMore","loadMore","isLoading","refresh"]);return d({stories:t,hasMore:o,isLoading:n,loadMoreStories:()=>{o&&!n&&r();},refresh:i},a)};var x$=10,Nd=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=ce({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:c,refresh:p}=Td({seenState:"smart",limit:x$}),u=useRef(null),f=useRef(null);return useEffect(()=>{p();},[]),useEffect(()=>{if(!u.current)return;let g=new IntersectionObserver(h=>{h[0].isIntersecting&&l&&c();},{root:u.current,rootMargin:"0px",threshold:.9});return ()=>{g&&g.disconnect();}},[u==null?void 0:u.current]),r||(a==null?void 0:a.length)===0?null:J.createElement("div",{"data-qa-anchor":n,style:i,className:Sl.storyTabContainer,ref:u},s?Array.from({length:10}).map((g,h)=>J.createElement("div",{key:h,className:Sl.storyTabSkeleton},J.createElement("div",{className:Sl.storyTabSkeletonAvatar}),J.createElement("div",{className:Sl.storyTabSkeletonUsername}))):a.map(g=>J.createElement(wx,{pageId:e,componentId:t,key:g.targetId,targetId:g.targetId,hasUnseen:g.hasUnseen,isErrored:g.failedStoriesCount>0,onClick:()=>o({storyTargets:a,storyTarget:g}),size:64})),J.createElement("div",{ref:f,style:{height:"1px",width:"1px"}}))};var Px=createContext({file:null,setFile:()=>{}}),Wo=()=>useContext(Px),Sx=({children:e})=>{let[t,o]=useState(null),r={file:t,setFile:o};return J.createElement(Px.Provider,{value:r},e)};var Nl=e=>{let t="story_tab_component",{onClickStory:o,goToDraftStoryPage:r}=Q(),{setFile:n}=Wo();return (()=>{switch(e.type){case"communityFeed":return J.createElement(_d,{componentId:t,communityId:e.communityId,onFileChange:a=>{n(a),a&&r(e.communityId,"community",a.type.includes("image")?{type:"image",url:URL.createObjectURL(a)}:{type:"video",url:URL.createObjectURL(a)},"communityFeed");},onStoryClick:()=>o(e.communityId,"communityFeed")});case"globalFeed":return J.createElement(Nd,{componentId:t,goToViewStoryPage:({storyTarget:a,storyTargets:s})=>{o(a.targetId,"globalFeed",s.map(l=>l.targetId));}})}})()};var P$=({isOpen:e,toggleOpen:t})=>{let{onChangePage:o}=Q(),{formatMessage:r}=useIntl();return J.createElement(Rv,{"data-qa-anchor":"news-feed"},J.createElement(ms,{isOpen:e,onClick:t}),J.createElement(ds,{isOpen:e}),J.createElement(ls,null,J.createElement(cs,{onClick:t}),J.createElement(ss,null,r({id:"sidebar.community"}))),J.createElement(Nl,{type:"globalFeed"}),J.createElement(An,{targetType:"globalFeed",goToExplore:()=>o("explore"),showPostCreator:!0}))},Nx=P$;var kx=21;var Ex=[{value:"image",label:J.createElement(FormattedMessage,{id:"tabs.images"})},{value:"video",label:J.createElement(FormattedMessage,{id:"tabs.videos"})},{value:"liveStream",label:J.createElement(FormattedMessage,{id:"tabs.liveStreams"})}],Ax={image:J.createElement(x0,null),video:J.createElement(I0,null),liveStream:J.createElement(b0,null)},Bx={image:J.createElement(FormattedMessage,{id:"mediaGallery.images.empty"}),video:J.createElement(FormattedMessage,{id:"mediaGallery.videos.empty"}),liveStream:J.createElement(FormattedMessage,{id:"mediaGallery.liveStreams.empty"})};var Lx=m(ho)`
3144
3144
  &${rd} {
3145
3145
  border: none;
3146
3146
  }
@@ -3176,17 +3176,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3176
3176
  border-radius: 0.25em;
3177
3177
  `,Dx=m(Lx)`
3178
3178
  margin-bottom: 1em;
3179
- `;function u5({targetId:e,targetType:t,dataType:o,limit:r}){let a=Pe({fetcher:PostRepository.getPosts,params:{targetId:e,targetType:t,dataTypes:[o],limit:r},shouldCall:()=>!!e&&!!t}),{items:n}=a,i=I(a,["items"]);return d({media:n},i)}var N$=({targetId:e,targetType:t,grid:o=!1})=>{let[r,n]=useState("image"),{media:i,isLoading:a,hasMore:s,loadMore:l,loadMoreHasBeenCalled:c}=u5({targetId:e||void 0,targetType:t,dataType:r,limit:kx});return J.createElement(Fx,null,J.createElement(Dx,{activeTab:r,tabs:Ex,onChange:p=>n(p)}),(a||c||i.length>0)&&J.createElement($t,{hasMore:s,loadMore:l,className:"load-more no-border",contentSlot:J.createElement(Bi,{items:i,loading:a,loadingMore:c,grid:o,renderVideoThumbnail:p=>J.createElement(Ei,{item:p,showPlayIcon:!0,showVideoDuration:!0}),renderLiveStreamThumbnail:p=>J.createElement(Ai,{item:p,showPlayIcon:!0,showLivestreamTitle:!0,showLivestreamRecordedBadge:!0})})}),!a&&!c&&i.length===0&&J.createElement(kr,{icon:Ax[r],title:Bx[r]}))},kd=memo(e=>{let t=V("MediaGallery");return t?t(e):J.createElement(N$,d({},e))});var E$=m(ho)`
3179
+ `;function u5({targetId:e,targetType:t,dataType:o,limit:r}){let a=Pe({fetcher:PostRepository.getPosts,params:{targetId:e,targetType:t,dataTypes:[o],limit:r},shouldCall:()=>!!e&&!!t}),{items:n}=a,i=w(a,["items"]);return d({media:n},i)}var k$=({targetId:e,targetType:t,grid:o=!1})=>{let[r,n]=useState("image"),{media:i,isLoading:a,hasMore:s,loadMore:l,loadMoreHasBeenCalled:c}=u5({targetId:e||void 0,targetType:t,dataType:r,limit:kx});return J.createElement(Fx,null,J.createElement(Dx,{activeTab:r,tabs:Ex,onChange:p=>n(p)}),(a||c||i.length>0)&&J.createElement($t,{hasMore:s,loadMore:l,className:"load-more no-border",contentSlot:J.createElement(Bi,{items:i,loading:a,loadingMore:c,grid:o,renderVideoThumbnail:p=>J.createElement(Ei,{item:p,showPlayIcon:!0,showVideoDuration:!0}),renderLiveStreamThumbnail:p=>J.createElement(Ai,{item:p,showPlayIcon:!0,showLivestreamTitle:!0,showLivestreamRecordedBadge:!0})})}),!a&&!c&&i.length===0&&J.createElement(kr,{icon:Ax[r],title:Bx[r]}))},kd=memo(e=>{let t=V("MediaGallery");return t?t(e):J.createElement(k$,d({},e))});var A$=m(ho)`
3180
3180
  background: ${({theme:e})=>e.palette.system.background};
3181
3181
  border-radius: 4px 4px 0 0;
3182
3182
  border: 1px solid #edeef2;
3183
3183
  margin-bottom: 12px;
3184
- `,Ed=e=>{let t=V("FeedHeaderTabs");return t?t(e):J.createElement(E$,d({},e))};var Vx=m(ho)`
3184
+ `,Ed=e=>{let t=V("FeedHeaderTabs");return t?t(e):J.createElement(A$,d({},e))};var Vx=m(ho)`
3185
3185
  background: ${({theme:e})=>e.palette.system.background};
3186
3186
  border-radius: 4px 4px 0 0;
3187
3187
  border: 1px solid #edeef2;
3188
3188
  margin-bottom: 12px;
3189
- `,ws=m.div`
3189
+ `,_s=m.div`
3190
3190
  width: 100%;
3191
3191
  background: #fff;
3192
3192
  display: flex;
@@ -3206,7 +3206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3206
3206
  > *:first-child {
3207
3207
  margin-right: 10px;
3208
3208
  }
3209
- `,_s=m.div`
3209
+ `,Ms=m.div`
3210
3210
  display: flex;
3211
3211
  flex-direction: row;
3212
3212
  flex-wrap: wrap;
@@ -3219,7 +3219,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3219
3219
  align-items: center;
3220
3220
  `,Bd=m(kr)`
3221
3221
  width: 100%;
3222
- `;var B$=m.button`
3222
+ `;var L$=m.button`
3223
3223
  display: block;
3224
3224
  width: 100%;
3225
3225
  margin-top: 0.5rem;
@@ -3231,20 +3231,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3231
3231
  outline: none;
3232
3232
  color: ${({theme:e})=>e.palette.base.shade2};
3233
3233
  text-align: center;
3234
- `;function ln({onClick:e}){return J.createElement(B$,{onClick:t=>{t.preventDefault(),e==null||e();}},J.createElement(FormattedMessage,{id:"loadMore"})," ",J.createElement(ir,{height:".8em"}))}var V$=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","UserRepository","isUserFlaggedByMe",e],queryFn:()=>UserRepository.isUserFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{yield UserRepository.flagUser(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{yield UserRepository.unflagUser(e),o(!1);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagUser:a,unflagUser:s,toggleFlagUser:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},Kn=V$;function kl({userId:e,callback:t}){let o=Me(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(u9(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function y5({userId:e,status:t}){let n=Pe({fetcher:UserRepository.Relationship.getFollowings,params:{userId:e,status:t!=null?t:void 0},shouldCall:()=>!!e}),{items:o}=n,r=I(n,["items"]);return d({followings:o},r)}var Z$=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=Me(o),{onClickUser:i}=Q(),{confirm:a}=ue(),s=Ce(),{formatMessage:l}=useIntl(),{isFlaggedByMe:c,toggleFlagUser:p}=Kn(o),u=()=>P(void 0,null,function*(){yield p(),s.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),f=()=>UserRepository.Relationship.unfollow(o),g=e===t,h=t===o,C=()=>{let v=n!=null&&n.displayName?l({id:"user.unfollow.confirm.title"},{displayName:n.displayName}):l({id:"user.unfollow.confirm.title.thisUser"}),_=n!=null&&n.displayName?l({id:"user.unfollow.confirm.body"},{displayName:n.displayName}):l({id:"user.unfollow.confirm.body.thisUser"});a({title:v,content:_,cancelText:l({id:"buttonText.cancel"}),okText:l({id:"buttonText.unfollow"}),onOk:f});},y=useCallback(()=>{i(o);},[i,o]),x=useMemo(()=>{let v=[];return h||v.push({name:l(c?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:u}),g&&v.push({name:l({id:"follower.menuItem.unfollow"}),action:C}),v},[c,g,h,C,u]);return J.createElement(ws,{key:o},J.createElement(Ad,null,J.createElement(Lr,{userId:o,onClick:y}),J.createElement(Gt,{options:x})))};function q$({userId:e}){let{followings:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=y5({userId:e,status:"all"});return kl({userId:e}),{items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,c)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var Y$=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{currentUserId:r}=ne(),{items:n,loadMore:i,hasMore:a}=q$({userId:e}),s=()=>a?J.createElement(ln,{onClick:()=>i==null?void 0:i()}):null;return n.length===0?J.createElement(J.Fragment,null,J.createElement(_s,null,J.createElement(Bd,{icon:J.createElement(hi,{width:48,height:48}),title:"It's empty here...",description:o({id:"follow.placeholder.noFollowings"})})),s()):J.createElement(J.Fragment,null,J.createElement(_s,null,n.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(Z$,{key:`${l.from}-${l.to}`,userId:l.to,profileUserId:e,currentUserId:r,onClick:()=>t(l.to)}))),s())},zx=Y$;function El({userId:e,callback:t}){let o=Me(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(p9(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function mn({userId:e,status:t}){let n=Pe({fetcher:UserRepository.Relationship.getFollowers,params:{userId:e,status:t!=null?t:void 0},shouldCall:()=>!!e}),{items:o}=n,r=I(n,["items"]);return d({followers:o},r)}var tZ=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let{user:n,refresh:i}=Ae({userId:o}),a=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),{onClickUser:s}=Q(),{confirm:l}=ue(),c=Ce(),{formatMessage:p}=useIntl(),{isFlaggedByMe:u,toggleFlagUser:f}=Kn(o||void 0);useEffect(()=>{i();},[]);let g=()=>P(void 0,null,function*(){yield f(),c.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),h=()=>{o&&UserRepository.Relationship.declineMyFollower(o);},C=e===t,y=t===o,x=()=>{l({title:J.createElement(FormattedMessage,{id:"follower.title.removeUser",values:{displayName:n==null?void 0:n.displayName}}),content:J.createElement(FormattedMessage,{id:"follower.body.removeUser",values:{displayName:n==null?void 0:n.displayName}}),cancelText:p({id:"buttonText.cancel"}),okText:p({id:"buttonText.remove"}),onOk:h});},v=useCallback(()=>{o!=null&&s(o);},[s,o]),_=useMemo(()=>{let M=[];return y||M.push({name:p(u?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:g}),C&&M.push({name:p({id:"follower.menuItem.removeUser"}),action:x}),M},[u,C,y,x,g]);return J.createElement(ws,{key:o},J.createElement(Ad,null,J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:a,onClick:v}),J.createElement(Gt,{options:_})))};function oZ({userId:e}){let{followers:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=mn({userId:e,status:"accepted"});return El({userId:e}),{items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,c)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var rZ=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{items:r,loadMore:n,hasMore:i}=oZ({userId:e}),{currentUserId:a}=ne(),s=()=>i?J.createElement(ln,{onClick:()=>n==null?void 0:n()}):null;return r.length===0?J.createElement(J.Fragment,null,J.createElement(_s,null,J.createElement(Bd,{icon:J.createElement(hi,{width:48,height:48}),title:"It's empty here...",description:o({id:"follow.placeholder.noFollowers"})})),s()):J.createElement(J.Fragment,null,J.createElement(_s,null,r.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(tZ,{key:`${l.from}-${l.to}`,userId:l.from,profileUserId:e,currentUserId:a,onClick:()=>t(l.to)}))),s())},$x=rZ;var Ms=m.div`
3234
+ `;function ln({onClick:e}){return J.createElement(L$,{onClick:t=>{t.preventDefault(),e==null||e();}},J.createElement(FormattedMessage,{id:"loadMore"})," ",J.createElement(ir,{height:".8em"}))}var O$=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","UserRepository","isUserFlaggedByMe",e],queryFn:()=>UserRepository.isUserFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{yield UserRepository.flagUser(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{yield UserRepository.unflagUser(e),o(!1);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagUser:a,unflagUser:s,toggleFlagUser:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},Kn=O$;function kl({userId:e,callback:t}){let o=Me(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(u9(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function y5({userId:e,status:t}){let n=Pe({fetcher:UserRepository.Relationship.getFollowings,params:{userId:e,status:t!=null?t:void 0},shouldCall:()=>!!e}),{items:o}=n,r=w(n,["items"]);return d({followings:o},r)}var q$=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=Me(o),{onClickUser:i}=Q(),{confirm:a}=ue(),s=Ce(),{formatMessage:l}=useIntl(),{isFlaggedByMe:c,toggleFlagUser:p}=Kn(o),u=()=>P(void 0,null,function*(){yield p(),s.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),f=()=>UserRepository.Relationship.unfollow(o),g=e===t,h=t===o,C=()=>{let v=n!=null&&n.displayName?l({id:"user.unfollow.confirm.title"},{displayName:n.displayName}):l({id:"user.unfollow.confirm.title.thisUser"}),_=n!=null&&n.displayName?l({id:"user.unfollow.confirm.body"},{displayName:n.displayName}):l({id:"user.unfollow.confirm.body.thisUser"});a({title:v,content:_,cancelText:l({id:"buttonText.cancel"}),okText:l({id:"buttonText.unfollow"}),onOk:f});},y=useCallback(()=>{i(o);},[i,o]),x=useMemo(()=>{let v=[];return h||v.push({name:l(c?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:u}),g&&v.push({name:l({id:"follower.menuItem.unfollow"}),action:C}),v},[c,g,h,C,u]);return J.createElement(_s,{key:o},J.createElement(Ad,null,J.createElement(Lr,{userId:o,onClick:y}),J.createElement(Gt,{options:x})))};function Y$({userId:e}){let{followings:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=y5({userId:e,status:"all"});return kl({userId:e}),{items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,c)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var W$=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{currentUserId:r}=ne(),{items:n,loadMore:i,hasMore:a}=Y$({userId:e}),s=()=>a?J.createElement(ln,{onClick:()=>i==null?void 0:i()}):null;return n.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,J.createElement(Bd,{icon:J.createElement(hi,{width:48,height:48}),title:"It's empty here...",description:o({id:"follow.placeholder.noFollowings"})})),s()):J.createElement(J.Fragment,null,J.createElement(Ms,null,n.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(q$,{key:`${l.from}-${l.to}`,userId:l.to,profileUserId:e,currentUserId:r,onClick:()=>t(l.to)}))),s())},zx=W$;function El({userId:e,callback:t}){let o=Me(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(p9(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function mn({userId:e,status:t}){let n=Pe({fetcher:UserRepository.Relationship.getFollowers,params:{userId:e,status:t!=null?t:void 0},shouldCall:()=>!!e}),{items:o}=n,r=w(n,["items"]);return d({followers:o},r)}var oZ=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let{user:n,refresh:i}=Ae({userId:o}),a=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),{onClickUser:s}=Q(),{confirm:l}=ue(),c=Ce(),{formatMessage:p}=useIntl(),{isFlaggedByMe:u,toggleFlagUser:f}=Kn(o||void 0);useEffect(()=>{i();},[]);let g=()=>P(void 0,null,function*(){yield f(),c.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),h=()=>{o&&UserRepository.Relationship.declineMyFollower(o);},C=e===t,y=t===o,x=()=>{l({title:J.createElement(FormattedMessage,{id:"follower.title.removeUser",values:{displayName:n==null?void 0:n.displayName}}),content:J.createElement(FormattedMessage,{id:"follower.body.removeUser",values:{displayName:n==null?void 0:n.displayName}}),cancelText:p({id:"buttonText.cancel"}),okText:p({id:"buttonText.remove"}),onOk:h});},v=useCallback(()=>{o!=null&&s(o);},[s,o]),_=useMemo(()=>{let M=[];return y||M.push({name:p(u?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:g}),C&&M.push({name:p({id:"follower.menuItem.removeUser"}),action:x}),M},[u,C,y,x,g]);return J.createElement(_s,{key:o},J.createElement(Ad,null,J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:a,onClick:v}),J.createElement(Gt,{options:_})))};function rZ({userId:e}){let{followers:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=mn({userId:e,status:"accepted"});return El({userId:e}),{items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,c)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var nZ=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{items:r,loadMore:n,hasMore:i}=rZ({userId:e}),{currentUserId:a}=ne(),s=()=>i?J.createElement(ln,{onClick:()=>n==null?void 0:n()}):null;return r.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,J.createElement(Bd,{icon:J.createElement(hi,{width:48,height:48}),title:"It's empty here...",description:o({id:"follow.placeholder.noFollowers"})})),s()):J.createElement(J.Fragment,null,J.createElement(Ms,null,r.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(oZ,{key:`${l.from}-${l.to}`,userId:l.from,profileUserId:e,currentUserId:a,onClick:()=>t(l.to)}))),s())},$x=nZ;var Ps=m.div`
3235
3235
  display: grid;
3236
3236
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
3237
3237
  gap: 1rem;
3238
3238
  `,Zx=m(kr)`
3239
3239
  margin-right: auto;
3240
3240
  margin-left: auto;
3241
- `;var iZ=({userId:e})=>{let t=Ce();return J.createElement(ws,null,J.createElement(Lr,{userId:e}),J.createElement(Ox,null,J.createElement(de,{fullWidth:!0,onClick:()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.acceptMyFollower(e),t.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));})},J.createElement(FormattedMessage,{id:"request.accept"})),J.createElement(q,{fullWidth:!0,onClick:()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),t.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));})},J.createElement(FormattedMessage,{id:"request.decline"}))))},aZ=({userId:e})=>{let{followers:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=mn({userId:e,status:"pending"}),a=useMemo(()=>{function l(){return new Array(5).fill(1).map((c,p)=>({userId:p,skeleton:!0}))}return n&&!i?l():n&&i?[...t,...l()]:t},[t,n,i]),s=()=>o?J.createElement(ln,{onClick:()=>r()}):null;return a.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,null),s()):J.createElement(J.Fragment,null,J.createElement(Ms,null,a.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(iZ,{key:`${l.from}-${l.to}`,userId:l.from}))),s())},Yx=aZ;var Qo={FOLLOWINGS:"Followings",FOLLOWERS:"Followers"},Ps="Pending";[{value:Qo.FOLLOWINGS,label:J.createElement(FormattedMessage,{id:"tabs.followings"})},{value:Qo.FOLLOWERS,label:J.createElement(FormattedMessage,{id:"tabs.followers"})},{value:Ps,label:J.createElement(FormattedMessage,{id:"tabs.pending"})}];var dZ=({userId:e,activeTab:t,socialSettings:o,onTabChange:r,onFollowingListClick:n,onFollowerListClick:i})=>{let{currentUserId:a}=ne(),s=Zm(o),{formatMessage:l}=useIntl(),[c,p]=useState(Object.values(Qo).map(g=>({value:g,label:g}))),{followers:u}=mn({userId:e,status:"pending"}),f=a===e;return useEffect(()=>{u!=null&&u.length&&f&&s?p(Object.values(Qo).map(g=>({value:g,label:g})).concat({value:Ps,label:l({id:"tabs.pending"})})):p(Object.values(Qo).map(g=>({value:g,label:g})));},[l,f,u,r]),J.createElement("div",null,J.createElement(Vx,{tabs:c,activeTab:t,onChange:r}),t===Qo.FOLLOWINGS&&J.createElement(zx,{userId:e,onItemClick:g=>n(g)}),t===Qo.FOLLOWERS&&J.createElement($x,{userId:e,onItemClick:g=>i(g)}),t.includes(Ps)&&f&&J.createElement(Yx,{userId:e}))},Wx=dZ;var Rt={TIMELINE:"TIMELINE",GALLERY:"GALLERY",FOLLOWERS:"FOLLOWERS"},I5=[{value:Rt.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Rt.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Rt.FOLLOWERS,label:J.createElement(FormattedMessage,{id:"tabs.followers"})}];var Qx=m.div`
3241
+ `;var aZ=({userId:e})=>{let t=Ce();return J.createElement(_s,null,J.createElement(Lr,{userId:e}),J.createElement(Ox,null,J.createElement(de,{fullWidth:!0,onClick:()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.acceptMyFollower(e),t.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));})},J.createElement(FormattedMessage,{id:"request.accept"})),J.createElement(q,{fullWidth:!0,onClick:()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),t.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));})},J.createElement(FormattedMessage,{id:"request.decline"}))))},sZ=({userId:e})=>{let{followers:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=mn({userId:e,status:"pending"}),a=useMemo(()=>{function l(){return new Array(5).fill(1).map((c,p)=>({userId:p,skeleton:!0}))}return n&&!i?l():n&&i?[...t,...l()]:t},[t,n,i]),s=()=>o?J.createElement(ln,{onClick:()=>r()}):null;return a.length===0?J.createElement(J.Fragment,null,J.createElement(Ps,null,null),s()):J.createElement(J.Fragment,null,J.createElement(Ps,null,a.map(l=>zo(l)?J.createElement(he,{style:{fontSize:8}}):J.createElement(aZ,{key:`${l.from}-${l.to}`,userId:l.from}))),s())},Yx=sZ;var Qo={FOLLOWINGS:"Followings",FOLLOWERS:"Followers"},Ss="Pending";[{value:Qo.FOLLOWINGS,label:J.createElement(FormattedMessage,{id:"tabs.followings"})},{value:Qo.FOLLOWERS,label:J.createElement(FormattedMessage,{id:"tabs.followers"})},{value:Ss,label:J.createElement(FormattedMessage,{id:"tabs.pending"})}];var cZ=({userId:e,activeTab:t,socialSettings:o,onTabChange:r,onFollowingListClick:n,onFollowerListClick:i})=>{let{currentUserId:a}=ne(),s=Zm(o),{formatMessage:l}=useIntl(),[c,p]=useState(Object.values(Qo).map(g=>({value:g,label:g}))),{followers:u}=mn({userId:e,status:"pending"}),f=a===e;return useEffect(()=>{u!=null&&u.length&&f&&s?p(Object.values(Qo).map(g=>({value:g,label:g})).concat({value:Ss,label:l({id:"tabs.pending"})})):p(Object.values(Qo).map(g=>({value:g,label:g})));},[l,f,u,r]),J.createElement("div",null,J.createElement(Vx,{tabs:c,activeTab:t,onChange:r}),t===Qo.FOLLOWINGS&&J.createElement(zx,{userId:e,onItemClick:g=>n(g)}),t===Qo.FOLLOWERS&&J.createElement($x,{userId:e,onItemClick:g=>i(g)}),t.includes(Ss)&&f&&J.createElement(Yx,{userId:e}))},Wx=cZ;var Rt={TIMELINE:"TIMELINE",GALLERY:"GALLERY",FOLLOWERS:"FOLLOWERS"},I5=[{value:Rt.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Rt.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Rt.FOLLOWERS,label:J.createElement(FormattedMessage,{id:"tabs.followers"})}];var Qx=m.div`
3242
3242
  height: 100%;
3243
3243
  max-width: 700px;
3244
3244
  margin: 0 auto;
3245
3245
  padding: 28px 0;
3246
3246
  overflow-y: auto;
3247
- `;var pZ=e=>{let[t,o]=useState(0),[r,n]=useState(0),[i,a]=useState(0);return It({fetcher:UserRepository.Relationship.getFollowInfo,params:e,callback:s=>{s.data&&(o(s.data.followerCount),n(s.data.followingCount),a(s.data.pendingCount));},shouldCall:()=>!!e}),{followerCount:t,followingCount:r,pendingCount:i}},Kx=pZ;var fZ=e=>{var o;let t=It({fetcher:UserRepository.Relationship.getFollowInfo,params:e});return (o=t==null?void 0:t.status)!=null?o:"none"},Fd=fZ;var hZ=({userId:e,currentUserId:t,fileUrl:o,displayName:r,description:n,isMyProfile:i,onEditUser:a,onFollowRequest:s,onFollowDecline:l,onUnFollow:c,onPendingNotificationClick:p,onFollowingCountClick:u,onFollowerCountClick:f,onReportClick:g,isFollowPending:h,isFollowNone:C,isFollowAccepted:y,followerCount:x=0,followingCount:v=0,isPrivateNetwork:_})=>{let{user:M}=Ae({userId:e}),{formatMessage:b}=useIntl(),{isFlaggedByMe:w}=Kn(e||void 0),{confirm:T}=ue(),{followers:k}=mn({userId:t,status:"pending"}),N=M!=null&&M.displayName?b({id:"user.unfollow.confirm.title"},{displayName:M.displayName}):b({id:"user.unfollow.confirm.title.thisUser"}),F=M!=null&&M.displayName?b({id:"user.unfollow.confirm.body"},{displayName:M.displayName}):b({id:"user.unfollow.confirm.body.thisUser"}),Z=[y&&!i?{name:b({id:"user.unfollow"}),action:()=>T({title:N,content:F,cancelText:b({id:"buttonText.cancel"}),okText:b({id:"buttonText.unfollow"}),onOk:()=>P(void 0,null,function*(){yield c==null?void 0:c();})})}:void 0,i?void 0:{name:b(w?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:()=>{g==null||g();}}].filter(Ue);return J.createElement(fh,{"data-qa-anchor":"user-info"},J.createElement(gh,null,J.createElement(yh,{"data-qa-anchor":"user-info-profile-image",avatar:o,backgroundImage:Ve}),J.createElement(hh,null,i?J.createElement(q,{"data-qa-anchor":"user-info-edit-profile-button",onClick:()=>(M==null?void 0:M.userId)&&(a==null?void 0:a(M.userId))},J.createElement(uh,null)," ",J.createElement(FormattedMessage,{id:"user.editProfile"})):J.createElement(J.Fragment,null,_&&h&&J.createElement(q,{onClick:()=>l==null?void 0:l()},J.createElement(ch,null,J.createElement(ph,null)),J.createElement(FormattedMessage,{id:"user.cancel_follow"})),C&&J.createElement(de,{onClick:()=>s==null?void 0:s()},J.createElement(E2,null)," ",J.createElement(FormattedMessage,{id:"user.follow"})))),J.createElement(bh,{options:Z,pullRight:!1})),J.createElement(Ph,null,J.createElement(og,{lines:3},J.createElement(Ch,{"data-qa-anchor":"user-info-profile-name"},r)),M!=null&&M.isGlobalBanned?J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}):null),J.createElement(vh,null,J.createElement(A3,{onClick:()=>{u==null||u();}},gg(v)),J.createElement(FormattedMessage,{id:"counter.followings"}),J.createElement(A3,{onClick:()=>{f==null||f();}},gg(x)),J.createElement(FormattedMessage,{id:"counter.followers"})),J.createElement(xh,{"data-qa-anchor":"user-info-description"},n),i&&k.length>0&&_&&J.createElement(Ih,{onClick:()=>{p==null||p();}},J.createElement(wh,null,J.createElement(Mh,null),J.createElement(FormattedMessage,{id:"follow.pendingNotification.title"})),J.createElement(_h,null,J.createElement(FormattedMessage,{id:"follow.pendingNotification.body"}))))},Xx=e=>{let t=V("UIUserInfo");return t?t(e):J.createElement(hZ,d({},e))};var IZ=({userId:e,onUnFollow:t,onFollowingCountClick:o,onFollowerCountClick:r,onPendingNotificationClick:n,isPrivateNetwork:i})=>{let{currentUserId:a}=ne(),{formatMessage:s}=useIntl(),{onEditUser:l}=Q(),c=Ce(),{user:p,refresh:u}=Ae({userId:e}),f=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"small"});useEffect(()=>{u();},[]),Mi({userId:e,level:SubscriptionLevels.USER}),El({userId:a}),kl({userId:a});let g=Fd(e),h=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),C=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.unfollow(e),t==null||t(),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),{followerCount:y,followingCount:x}=Kx(e),v=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.follow(e));});if(g==null)return null;let _=g==="none",M=g==="accepted",b=g==="pending";return J.createElement(Xx,{userId:e,currentUserId:a,fileUrl:(p==null?void 0:p.avatarCustomUrl)||f,displayName:(p==null?void 0:p.displayName)||s({id:"anonymous"}),description:p==null?void 0:p.description,onFollowerCountClick:r,onFollowingCountClick:o,onPendingNotificationClick:n,onFollowDecline:h,onFollowRequest:v,onUnFollow:C,onEditUser:l,isMyProfile:e===a,isFollowPending:b,isPrivateNetwork:i,isFollowNone:_,isFollowAccepted:M,followerCount:y,followingCount:x})},eb=memo(IZ);var wZ=({userId:e,socialSettings:t})=>{let{currentUserId:o}=ne(),[r,n]=useState(Rt.TIMELINE),[i,a]=useState(Qo.FOLLOWINGS),s=Fd(e),l=e===o,c=()=>P(void 0,null,function*(){n(Rt.TIMELINE);}),p=s==="accepted",u=Zm(t)&&!p&&!l,f=u?I5.filter(({value:g})=>g===Rt.TIMELINE):I5;return e?J.createElement(Qx,null,J.createElement(eb,{key:e,userId:e,onUnFollow:c,onPendingNotificationClick:()=>{n(Rt.FOLLOWERS),a(Ps);},onFollowingCountClick:()=>{n(Rt.FOLLOWERS),a(Qo.FOLLOWINGS);},onFollowerCountClick:()=>{n(Rt.FOLLOWERS),a(Qo.FOLLOWERS);}}),J.createElement(Ed,{"data-qa-anchor":"user-feed-header",tabs:f,activeTab:r,onChange:n}),r===Rt.TIMELINE&&J.createElement(An,{targetType:l?"myFeed":"user",targetId:e,showPostCreator:l,isHiddenProfile:u}),r===Rt.GALLERY&&J.createElement(kd,{targetType:"user",targetId:e}),r===Rt.FOLLOWERS&&!u&&J.createElement(Wx,{userId:e,activeTab:i,socialSettings:t,onFollowingListClick:g=>n(Rt.TIMELINE),onFollowerListClick:g=>n(Rt.TIMELINE),onTabChange:g=>a(g)})):null},ob=wZ;var rb=m.div`
3247
+ `;var uZ=e=>{let[t,o]=useState(0),[r,n]=useState(0),[i,a]=useState(0);return It({fetcher:UserRepository.Relationship.getFollowInfo,params:e,callback:s=>{s.data&&(o(s.data.followerCount),n(s.data.followingCount),a(s.data.pendingCount));},shouldCall:()=>!!e}),{followerCount:t,followingCount:r,pendingCount:i}},Kx=uZ;var gZ=e=>{var o;let t=It({fetcher:UserRepository.Relationship.getFollowInfo,params:e});return (o=t==null?void 0:t.status)!=null?o:"none"},Fd=gZ;var CZ=({userId:e,currentUserId:t,fileUrl:o,displayName:r,description:n,isMyProfile:i,onEditUser:a,onFollowRequest:s,onFollowDecline:l,onUnFollow:c,onPendingNotificationClick:p,onFollowingCountClick:u,onFollowerCountClick:f,onReportClick:g,isFollowPending:h,isFollowNone:C,isFollowAccepted:y,followerCount:x=0,followingCount:v=0,isPrivateNetwork:_})=>{let{user:M}=Ae({userId:e}),{formatMessage:b}=useIntl(),{isFlaggedByMe:I}=Kn(e||void 0),{confirm:T}=ue(),{followers:k}=mn({userId:t,status:"pending"}),N=M!=null&&M.displayName?b({id:"user.unfollow.confirm.title"},{displayName:M.displayName}):b({id:"user.unfollow.confirm.title.thisUser"}),F=M!=null&&M.displayName?b({id:"user.unfollow.confirm.body"},{displayName:M.displayName}):b({id:"user.unfollow.confirm.body.thisUser"}),Z=[y&&!i?{name:b({id:"user.unfollow"}),action:()=>T({title:N,content:F,cancelText:b({id:"buttonText.cancel"}),okText:b({id:"buttonText.unfollow"}),onOk:()=>P(void 0,null,function*(){yield c==null?void 0:c();})})}:void 0,i?void 0:{name:b(I?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:()=>{g==null||g();}}].filter(Ue);return J.createElement(fh,{"data-qa-anchor":"user-info"},J.createElement(gh,null,J.createElement(yh,{"data-qa-anchor":"user-info-profile-image",avatar:o,backgroundImage:Ve}),J.createElement(hh,null,i?J.createElement(q,{"data-qa-anchor":"user-info-edit-profile-button",onClick:()=>(M==null?void 0:M.userId)&&(a==null?void 0:a(M.userId))},J.createElement(uh,null)," ",J.createElement(FormattedMessage,{id:"user.editProfile"})):J.createElement(J.Fragment,null,_&&h&&J.createElement(q,{onClick:()=>l==null?void 0:l()},J.createElement(ch,null,J.createElement(ph,null)),J.createElement(FormattedMessage,{id:"user.cancel_follow"})),C&&J.createElement(de,{onClick:()=>s==null?void 0:s()},J.createElement(E2,null)," ",J.createElement(FormattedMessage,{id:"user.follow"})))),J.createElement(bh,{options:Z,pullRight:!1})),J.createElement(Ph,null,J.createElement(og,{lines:3},J.createElement(Ch,{"data-qa-anchor":"user-info-profile-name"},r)),M!=null&&M.isGlobalBanned?J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}):null),J.createElement(vh,null,J.createElement(A3,{onClick:()=>{u==null||u();}},gg(v)),J.createElement(FormattedMessage,{id:"counter.followings"}),J.createElement(A3,{onClick:()=>{f==null||f();}},gg(x)),J.createElement(FormattedMessage,{id:"counter.followers"})),J.createElement(xh,{"data-qa-anchor":"user-info-description"},n),i&&k.length>0&&_&&J.createElement(Ih,{onClick:()=>{p==null||p();}},J.createElement(wh,null,J.createElement(Mh,null),J.createElement(FormattedMessage,{id:"follow.pendingNotification.title"})),J.createElement(_h,null,J.createElement(FormattedMessage,{id:"follow.pendingNotification.body"}))))},Xx=e=>{let t=V("UIUserInfo");return t?t(e):J.createElement(CZ,d({},e))};var wZ=({userId:e,onUnFollow:t,onFollowingCountClick:o,onFollowerCountClick:r,onPendingNotificationClick:n,isPrivateNetwork:i})=>{let{currentUserId:a}=ne(),{formatMessage:s}=useIntl(),{onEditUser:l}=Q(),c=Ce(),{user:p,refresh:u}=Ae({userId:e}),f=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"small"});useEffect(()=>{u();},[]),Mi({userId:e,level:SubscriptionLevels.USER}),El({userId:a}),kl({userId:a});let g=Fd(e),h=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),C=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.unfollow(e),t==null||t(),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),{followerCount:y,followingCount:x}=Kx(e),v=()=>P(void 0,null,function*(){e&&(yield UserRepository.Relationship.follow(e));});if(g==null)return null;let _=g==="none",M=g==="accepted",b=g==="pending";return J.createElement(Xx,{userId:e,currentUserId:a,fileUrl:(p==null?void 0:p.avatarCustomUrl)||f,displayName:(p==null?void 0:p.displayName)||s({id:"anonymous"}),description:p==null?void 0:p.description,onFollowerCountClick:r,onFollowingCountClick:o,onPendingNotificationClick:n,onFollowDecline:h,onFollowRequest:v,onUnFollow:C,onEditUser:l,isMyProfile:e===a,isFollowPending:b,isPrivateNetwork:i,isFollowNone:_,isFollowAccepted:M,followerCount:y,followingCount:x})},eb=memo(wZ);var _Z=({userId:e,socialSettings:t})=>{let{currentUserId:o}=ne(),[r,n]=useState(Rt.TIMELINE),[i,a]=useState(Qo.FOLLOWINGS),s=Fd(e),l=e===o,c=()=>P(void 0,null,function*(){n(Rt.TIMELINE);}),p=s==="accepted",u=Zm(t)&&!p&&!l,f=u?I5.filter(({value:g})=>g===Rt.TIMELINE):I5;return e?J.createElement(Qx,null,J.createElement(eb,{key:e,userId:e,onUnFollow:c,onPendingNotificationClick:()=>{n(Rt.FOLLOWERS),a(Ss);},onFollowingCountClick:()=>{n(Rt.FOLLOWERS),a(Qo.FOLLOWINGS);},onFollowerCountClick:()=>{n(Rt.FOLLOWERS),a(Qo.FOLLOWERS);}}),J.createElement(Ed,{"data-qa-anchor":"user-feed-header",tabs:f,activeTab:r,onChange:n}),r===Rt.TIMELINE&&J.createElement(An,{targetType:l?"myFeed":"user",targetId:e,showPostCreator:l,isHiddenProfile:u}),r===Rt.GALLERY&&J.createElement(kd,{targetType:"user",targetId:e}),r===Rt.FOLLOWERS&&!u&&J.createElement(Wx,{userId:e,activeTab:i,socialSettings:t,onFollowingListClick:g=>n(Rt.TIMELINE),onFollowerListClick:g=>n(Rt.TIMELINE),onTabChange:g=>a(g)})):null},ob=_Z;var rb=m.div`
3248
3248
  max-width: 1160px;
3249
3249
  margin: 0 auto;
3250
3250
  padding: 30px 0;
@@ -3262,7 +3262,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3262
3262
  &:hover {
3263
3263
  background-color: transparent;
3264
3264
  }
3265
- `;var _Z=({category:e,communities:t,hasMore:o,loadMore:r,isLoading:n,onClickCommunity:i})=>{let a=()=>o?J.createElement(ln,{onClick:()=>r()}):null;return t.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,J.createElement(Zx,{icon:J.createElement(hi,{width:48,height:48}),title:J.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyTitle"}),description:J.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyDescription"})})),a()):J.createElement(J.Fragment,null,J.createElement(Ms,null,t.map((s,l)=>zo(s)?J.createElement(rs,{key:l,loading:!0}):J.createElement(dd,{key:s==null?void 0:s.communityId,communityId:s==null?void 0:s.communityId,onClick:i}))),a())},lb=_Z;var mb=({categoryId:e})=>{let{onClickCommunity:t}=Q(),{communities:o,hasMore:r,loadMore:n,isLoading:i,loadMoreHasBeenCalled:a}=Br({categoryId:e||void 0});return {communities:useMemo(()=>{let l=new Array(5).fill(1).map(c=>({skeleton:!0}));return i&&!a?l:i?i&&a?[...o,...l]:l:o},[o,i,a]),hasMore:r,loadMore:n,isLoading:i,onClickCommunity:t}};var PZ=({categoryId:e})=>{let{onChangePage:t}=Q(),o=Vn(e),{communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}=mb({categoryId:e}),l=(o==null?void 0:o.name)||"";return J.createElement(rb,null,J.createElement(nb,null,J.createElement(ab,{onClick:()=>t("explore")},J.createElement(Sm,null)),J.createElement(ib,null,l)),o?J.createElement(lb,{category:o,communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}):null)},db=PZ;var cb=m(ho)`
3265
+ `;var MZ=({category:e,communities:t,hasMore:o,loadMore:r,isLoading:n,onClickCommunity:i})=>{let a=()=>o?J.createElement(ln,{onClick:()=>r()}):null;return t.length===0?J.createElement(J.Fragment,null,J.createElement(Ps,null,J.createElement(Zx,{icon:J.createElement(hi,{width:48,height:48}),title:J.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyTitle"}),description:J.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyDescription"})})),a()):J.createElement(J.Fragment,null,J.createElement(Ps,null,t.map((s,l)=>zo(s)?J.createElement(ns,{key:l,loading:!0}):J.createElement(dd,{key:s==null?void 0:s.communityId,communityId:s==null?void 0:s.communityId,onClick:i}))),a())},lb=MZ;var mb=({categoryId:e})=>{let{onClickCommunity:t}=Q(),{communities:o,hasMore:r,loadMore:n,isLoading:i,loadMoreHasBeenCalled:a}=Br({categoryId:e||void 0});return {communities:useMemo(()=>{let l=new Array(5).fill(1).map(c=>({skeleton:!0}));return i&&!a?l:i?i&&a?[...o,...l]:l:o},[o,i,a]),hasMore:r,loadMore:n,isLoading:i,onClickCommunity:t}};var SZ=({categoryId:e})=>{let{onChangePage:t}=Q(),o=Vn(e),{communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}=mb({categoryId:e}),l=(o==null?void 0:o.name)||"";return J.createElement(rb,null,J.createElement(nb,null,J.createElement(ab,{onClick:()=>t("explore")},J.createElement(Sm,null)),J.createElement(ib,null,l)),o?J.createElement(lb,{category:o,communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}):null)},db=SZ;var cb=m(ho)`
3266
3266
  margin-bottom: 14px;
3267
3267
  border-radius: 0;
3268
3268
  border-right: 0;
@@ -3284,7 +3284,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3284
3284
  display: flex;
3285
3285
  align-items: center;
3286
3286
  cursor: pointer;
3287
- `;var{COMMUNITY_MODERATOR:yb,CHANNEL_MODERATOR:hb}=xn,NZ=({userId:e,currentUserId:t,onClick:o,roles:r=[],assignRolesToUsers:n,hasModeratorPermissions:i,removeRolesFromUsers:a,removeMembers:s,isJoined:l,isBanned:c})=>{let p=Me(e),{formatMessage:u}=useIntl(),{isFlaggedByMe:f,toggleFlagUser:g}=Kn(e),h=p==null?void 0:p.isGlobalBanned,{confirm:C}=ue(),y=Ce();Mi({userId:e,level:SubscriptionLevels.USER});let x=()=>P(void 0,null,function*(){return g()}),v=()=>{x(),y.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});},_=()=>n([yb,hb],[e]),M=()=>a([yb,hb],[e]),b=()=>{C({"data-qa-anchor":"remove-user",title:J.createElement(FormattedMessage,{id:"community.removeUserFromCommunityTitle"}),content:J.createElement(FormattedMessage,{id:"community.removeUserFromCommunityBody"}),cancelText:"Cancel",okText:"Remove",onOk:()=>s([e])});},w=lr(r);return J.createElement(fb,{"data-qa-anchor":"community-member-item"},J.createElement(gb,null,J.createElement(Lr,{userId:e,isBanned:c||h,onClick:o})),!(t===e)&&l&&J.createElement(Gt,{"data-qa-anchor":"community-members-option-menu",options:[{name:u(f?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:v},i&&!w&&!h?{name:u({id:"moderatorMenu.promoteToModerator"}),action:_}:null,i&&w?{name:u({id:"moderatorMenu.dismissModerator"}),action:M}:null,i?{name:u({id:"moderatorMenu.removeFromCommunity"}),action:b,className:"danger-zone"}:null].filter(Ue)}))},S5=NZ;var Ns={MEMBERS:"MEMBERS",MODERATORS:"MODERATORS"};[{value:Ns.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})},{value:Ns.MODERATORS,label:J.createElement(FormattedMessage,{id:"tabs.moderators"})}];function T5(e,t=5){let n=Pe({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,limit:t,memberships:["member"],includeDeleted:!1},shouldCall:()=>!!e}),{items:o}=n,r=I(n,["items"]);return d({members:o},r)}var LZ=({community:e,members:t,loadMore:o,hasMore:r})=>{let n=e==null?void 0:e.communityId,{currentUserId:i}=ne(),a=t.find(g=>g.userId===i),s=Me(i),l=lr(a==null?void 0:a.roles),c=b1(a)&&l||lr(s==null?void 0:s.roles)||E1(s==null?void 0:s.roles);return {community:e,members:t,currentUserId:i,hasMoreMembers:r,loadMoreMembers:o,hasModeratorPermissions:c,assignRolesToUsers:(g,h)=>n&&CommunityRepository.Moderation.addRoles(n,g,h),removeRolesFromUsers:(g,h)=>n&&CommunityRepository.Moderation.removeRoles(n,g,h),removeMembers:g=>n&&CommunityRepository.Membership.removeMembers(n,g)}},FZ=({community:e,members:t,loadMore:o,hasMore:r})=>{let{onClickUser:n}=Q(),{hasMoreMembers:i,loadMoreMembers:a,hasModeratorPermissions:s,currentUserId:l,assignRolesToUsers:c,removeRolesFromUsers:p,removeMembers:u}=LZ({community:e,hasMore:r,loadMore:o,members:t});return t.length===0?null:J.createElement($t,{hasMore:i,loadMore:a,contentSlot:t.map(({userId:f,roles:g,isBanned:h})=>J.createElement(S5,{key:f,userId:f,currentUserId:l||"",roles:g,assignRolesToUsers:c,removeRolesFromUsers:p,removeMembers:u,hasModeratorPermissions:s,isJoined:e==null?void 0:e.isJoined,isBanned:h,onClick:()=>n(f)}))})},DZ=({community:e})=>{let t=e==null?void 0:e.communityId,{currentUserId:o}=ne(),{moderators:r,hasMore:n,loadMore:i}=Jr(t),a=r.find(g=>g.userId===o),s=Me(o),l=lr(a==null?void 0:a.roles),c=b1(a)&&l||lr(s==null?void 0:s.roles)||E1(s==null?void 0:s.roles);return {moderators:r,currentUserId:o,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:c,assignRolesToUsers:(g,h)=>t&&CommunityRepository.Moderation.addRoles(t,g,h),removeRolesFromUsers:(g,h)=>t&&CommunityRepository.Moderation.removeRoles(t,g,h),removeMembers:g=>t&&CommunityRepository.Membership.removeMembers(t,g)}},VZ=({community:e})=>{let{onClickUser:t}=Q(),{currentUserId:o,moderators:r,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:a,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:c}=DZ({community:e});return r.length===0?null:J.createElement($t,{hasMore:n,loadMore:i,contentSlot:r.map(({userId:p,roles:u,isBanned:f})=>J.createElement(S5,{key:p,userId:p,currentUserId:o||"",roles:u,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:c,hasModeratorPermissions:a,isJoined:e==null?void 0:e.isJoined,isBanned:f,onClick:g=>g&&t(g)}))})},OZ=({communityId:e})=>{let{formatMessage:t}=useIntl(),{hasMore:o,loadMore:r,members:n}=T5(e),i=We(e),a=[{value:"MEMBERS",label:t({id:"CommunityMembers.members"})},{value:"MODERATORS",label:t({id:"CommunityMembers.moderators"})}],[s,l]=useState(Ns.MEMBERS);return J.createElement(pb,null,J.createElement(ub,null,"Community Members \u2022 ",(i==null?void 0:i.membersCount)||0),J.createElement(cb,{tabs:a,activeTab:s,onChange:l}),s===Ns.MEMBERS&&J.createElement(FZ,{hasMore:o,loadMore:r,community:i,members:n.reverse()}),s===Ns.MODERATORS&&J.createElement(VZ,{community:i}))},Dd=memo(e=>{let t=V("CommunityMembers");return t?t(e):J.createElement(OZ,d({},e))});var Vd="0.3s",xb=m.label`
3287
+ `;var{COMMUNITY_MODERATOR:yb,CHANNEL_MODERATOR:hb}=xn,kZ=({userId:e,currentUserId:t,onClick:o,roles:r=[],assignRolesToUsers:n,hasModeratorPermissions:i,removeRolesFromUsers:a,removeMembers:s,isJoined:l,isBanned:c})=>{let p=Me(e),{formatMessage:u}=useIntl(),{isFlaggedByMe:f,toggleFlagUser:g}=Kn(e),h=p==null?void 0:p.isGlobalBanned,{confirm:C}=ue(),y=Ce();Mi({userId:e,level:SubscriptionLevels.USER});let x=()=>P(void 0,null,function*(){return g()}),v=()=>{x(),y.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});},_=()=>n([yb,hb],[e]),M=()=>a([yb,hb],[e]),b=()=>{C({"data-qa-anchor":"remove-user",title:J.createElement(FormattedMessage,{id:"community.removeUserFromCommunityTitle"}),content:J.createElement(FormattedMessage,{id:"community.removeUserFromCommunityBody"}),cancelText:"Cancel",okText:"Remove",onOk:()=>s([e])});},I=lr(r);return J.createElement(fb,{"data-qa-anchor":"community-member-item"},J.createElement(gb,null,J.createElement(Lr,{userId:e,isBanned:c||h,onClick:o})),!(t===e)&&l&&J.createElement(Gt,{"data-qa-anchor":"community-members-option-menu",options:[{name:u(f?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:v},i&&!I&&!h?{name:u({id:"moderatorMenu.promoteToModerator"}),action:_}:null,i&&I?{name:u({id:"moderatorMenu.dismissModerator"}),action:M}:null,i?{name:u({id:"moderatorMenu.removeFromCommunity"}),action:b,className:"danger-zone"}:null].filter(Ue)}))},S5=kZ;var ks={MEMBERS:"MEMBERS",MODERATORS:"MODERATORS"};[{value:ks.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})},{value:ks.MODERATORS,label:J.createElement(FormattedMessage,{id:"tabs.moderators"})}];function T5(e,t=5){let n=Pe({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,limit:t,memberships:["member"],includeDeleted:!1},shouldCall:()=>!!e}),{items:o}=n,r=w(n,["items"]);return d({members:o},r)}var FZ=({community:e,members:t,loadMore:o,hasMore:r})=>{let n=e==null?void 0:e.communityId,{currentUserId:i}=ne(),a=t.find(g=>g.userId===i),s=Me(i),l=lr(a==null?void 0:a.roles),c=I1(a)&&l||lr(s==null?void 0:s.roles)||A1(s==null?void 0:s.roles);return {community:e,members:t,currentUserId:i,hasMoreMembers:r,loadMoreMembers:o,hasModeratorPermissions:c,assignRolesToUsers:(g,h)=>n&&CommunityRepository.Moderation.addRoles(n,g,h),removeRolesFromUsers:(g,h)=>n&&CommunityRepository.Moderation.removeRoles(n,g,h),removeMembers:g=>n&&CommunityRepository.Membership.removeMembers(n,g)}},DZ=({community:e,members:t,loadMore:o,hasMore:r})=>{let{onClickUser:n}=Q(),{hasMoreMembers:i,loadMoreMembers:a,hasModeratorPermissions:s,currentUserId:l,assignRolesToUsers:c,removeRolesFromUsers:p,removeMembers:u}=FZ({community:e,hasMore:r,loadMore:o,members:t});return t.length===0?null:J.createElement($t,{hasMore:i,loadMore:a,contentSlot:t.map(({userId:f,roles:g,isBanned:h})=>J.createElement(S5,{key:f,userId:f,currentUserId:l||"",roles:g,assignRolesToUsers:c,removeRolesFromUsers:p,removeMembers:u,hasModeratorPermissions:s,isJoined:e==null?void 0:e.isJoined,isBanned:h,onClick:()=>n(f)}))})},VZ=({community:e})=>{let t=e==null?void 0:e.communityId,{currentUserId:o}=ne(),{moderators:r,hasMore:n,loadMore:i}=Jr(t),a=r.find(g=>g.userId===o),s=Me(o),l=lr(a==null?void 0:a.roles),c=I1(a)&&l||lr(s==null?void 0:s.roles)||A1(s==null?void 0:s.roles);return {moderators:r,currentUserId:o,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:c,assignRolesToUsers:(g,h)=>t&&CommunityRepository.Moderation.addRoles(t,g,h),removeRolesFromUsers:(g,h)=>t&&CommunityRepository.Moderation.removeRoles(t,g,h),removeMembers:g=>t&&CommunityRepository.Membership.removeMembers(t,g)}},OZ=({community:e})=>{let{onClickUser:t}=Q(),{currentUserId:o,moderators:r,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:a,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:c}=VZ({community:e});return r.length===0?null:J.createElement($t,{hasMore:n,loadMore:i,contentSlot:r.map(({userId:p,roles:u,isBanned:f})=>J.createElement(S5,{key:p,userId:p,currentUserId:o||"",roles:u,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:c,hasModeratorPermissions:a,isJoined:e==null?void 0:e.isJoined,isBanned:f,onClick:g=>g&&t(g)}))})},HZ=({communityId:e})=>{let{formatMessage:t}=useIntl(),{hasMore:o,loadMore:r,members:n}=T5(e),i=We(e),a=[{value:"MEMBERS",label:t({id:"CommunityMembers.members"})},{value:"MODERATORS",label:t({id:"CommunityMembers.moderators"})}],[s,l]=useState(ks.MEMBERS);return J.createElement(pb,null,J.createElement(ub,null,"Community Members \u2022 ",(i==null?void 0:i.membersCount)||0),J.createElement(cb,{tabs:a,activeTab:s,onChange:l}),s===ks.MEMBERS&&J.createElement(DZ,{hasMore:o,loadMore:r,community:i,members:n.reverse()}),s===ks.MODERATORS&&J.createElement(OZ,{community:i}))},Dd=memo(e=>{let t=V("CommunityMembers");return t?t(e):J.createElement(HZ,d({},e))});var Vd="0.3s",xb=m.label`
3288
3288
  position: relative;
3289
3289
  width: 48px;
3290
3290
  height: 28px;
@@ -3332,7 +3332,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3332
3332
  -ms-transform: translateX(20px);
3333
3333
  transform: translateX(20px);
3334
3334
  }
3335
- `;var HZ=i=>{var a=i,{disabled:e,value:t,onChange:o=()=>{},"data-qa-anchor":r=""}=a,n=I(a,["disabled","value","onChange","data-qa-anchor"]);return J.createElement(xb,S(d({},n),{disabled:e,"data-qa-anchor":`${r}-label`}),J.createElement(Od,{type:"checkbox",checked:t,"data-qa-anchor":`${r}-switch`,onChange:s=>o==null?void 0:o(s.target.checked)}),J.createElement(bb,{disabled:e}))},Ib=HZ;var wb=m.div`
3335
+ `;var UZ=i=>{var a=i,{disabled:e,value:t,onChange:o=()=>{},"data-qa-anchor":r=""}=a,n=w(a,["disabled","value","onChange","data-qa-anchor"]);return J.createElement(xb,S(d({},n),{disabled:e,"data-qa-anchor":`${r}-label`}),J.createElement(Od,{type:"checkbox",checked:t,"data-qa-anchor":`${r}-switch`,onChange:s=>o==null?void 0:o(s.target.checked)}),J.createElement(bb,{disabled:e}))},Ib=UZ;var wb=m.div`
3336
3336
  display: flex;
3337
3337
  flex-direction: column;
3338
3338
  flex: 1 1 0px;
@@ -3369,9 +3369,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3369
3369
  ${({theme:e})=>e.typography.bodyBold}
3370
3370
  `,Sb=m.div`
3371
3371
  color: ${({theme:e})=>e.palette.base.shade2};
3372
- `;var UZ=({onChange:e,value:t,title:o,promptText:r})=>J.createElement(_b,null,J.createElement(Mb,null,o&&J.createElement(Pb,null,o),r&&J.createElement(Sb,null,r)),J.createElement(Ib,{value:t,"data-qa-anchor":"community-permissions",onChange:e})),L5=UZ;function zZ({needApprovalOnPostCreation:e,storyCommentsApproval:t,onNeedApprovalOnPostCreationChange:o,onStoryCommentsApproval:r}){return J.createElement(wb,null,J.createElement(k5,null,J.createElement(E5,null,J.createElement(A5,null,J.createElement(FormattedMessage,{id:"community.permissions.postReview"})),J.createElement(B5,null,J.createElement(L5,{title:J.createElement(FormattedMessage,{id:"community.permissions.approvePosts"}),promptText:J.createElement(FormattedMessage,{id:"community.permissions.approvePosts.prompt"}),value:e,onChange:n=>o==null?void 0:o(n)})))),J.createElement(k5,null,J.createElement(E5,null,J.createElement(A5,null,J.createElement(FormattedMessage,{id:"community.permissions.storyComments"})),J.createElement(B5,null,J.createElement(L5,{title:J.createElement(FormattedMessage,{id:"community.permissions.allowStoryComments"}),promptText:J.createElement(FormattedMessage,{id:"community.permissions.storyComments.prompt"}),value:t,onChange:n=>r==null?void 0:r(n)})))))}var Tb=e=>{let t=V("CommunityPermissions");return t?t(e):J.createElement(zZ,d({},e))};function WZ(e,t){return e==="needApprovalOnPostCreation"?(t==null?void 0:t.postSetting)===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED:e==="storyComments"?t==null?void 0:t.allowCommentInStory:!1}function QZ(e,t){return e==="needApprovalOnPostCreation"?{postSetting:t?CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED:CommunityPostSettings.ANYONE_CAN_POST}:e==="storyComments"?{storySetting:{enableComment:t}}:{[e]:t}}function D5({communityId:e,key:t}){let o=We(e),r=WZ(t,o),[n,i]=useState(r);useEffect(()=>i(r),[r]);let a=useCallback(s=>P(this,null,function*(){try{if(i(s),e==null)return;yield CommunityRepository.updateCommunity(e,QZ(t,s));}catch(l){i(r),l instanceof Error&&info({title:J.createElement(FormattedMessage,{id:`community.permissions.error.${t}.${s?"turnOn":"turnOff"}`}),content:l.message});}}),[t,r]);return [n,a]}var JZ=({communityId:e})=>{let[t,o]=D5({communityId:e,key:"needApprovalOnPostCreation"}),[r,n]=D5({communityId:e,key:"storyComments"});return J.createElement(Tb,{needApprovalOnPostCreation:t,onNeedApprovalOnPostCreationChange:o,storyCommentsApproval:r,onStoryCommentsApproval:n})},Nb=JZ;var kb=({title:e,children:t})=>J.createElement(Hn,{edit:!0},e&&J.createElement(q2,null,e),J.createElement(Un,null,t)),Eb=({type:e,description:t,icon:o})=>J.createElement(Y2,null,J.createElement(Z2,null,o),J.createElement("div",null,e,J.createElement(W2,null,t))),tq=({community:e,"data-qa-anchor":t="",className:o,onSubmit:r,onCancel:n})=>{let[i,a]=useState(!1),{register:s,handleSubmit:l,setError:c,watch:p,control:u,formState:f}=hv(e),{errors:g,isValid:h}=f,C=p("displayName"),y=p("description"),x=Ce(),v=useRef(null),_=w=>P(void 0,null,function*(){try{a(!0),yield r==null?void 0:r(S(d({},w),{avatarFileId:w.avatarFileId||void 0})),x.success({content:J.createElement(FormattedMessage,{id:"community.updateSuccess"})});}catch(T){if(console.log("error",T),T instanceof Error&&T.message.indexOf(":")>-1){let[,k]=T.message.split(":");x.error({content:k});}}finally{a(!1);}}),M=!f.isValid||i,b=v.current&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&v.current&&b<10&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop>10&&v.current.scrollTo({top:v.current.scrollHeight});},[v.current,b,f]),J.createElement(On,{className:o,onSubmit:l(_)},J.createElement(zn,{ref:v},J.createElement(kb,{title:"General"},J.createElement(yo,null,J.createElement(Controller,{name:"avatarFileId",control:u,render:k=>{var {field:N}=k,F=N,T=I(F,["ref"]);return J.createElement(Dn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":t}))}})),J.createElement(yo,{error:g.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(on,null,C.length,"/30")),J.createElement(Ui,S(d({},s("displayName")),{"data-qa-anchor":`${t}-community-name-input`,placeholder:"Enter community name"})),J.createElement(go,{errors:g,name:"displayName"})),J.createElement(yo,{error:g.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(on,null,(y==null?void 0:y.length)||0,"/180")),J.createElement(Hi,S(d({},s("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${t}-community-description-textarea`,placeholder:"Enter description"})),J.createElement(go,{errors:g,name:"description"})),J.createElement(yo,{error:g.categoryIds},J.createElement($o,{htmlFor:"categoryIds",className:"required"},J.createElement(FormattedMessage,{id:"community.category"})),J.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:k=>{var {field:N}=k,F=N,T=I(F,["ref"]);return J.createElement(K2,S(d({parentContainer:v.current},T),{"data-qa-anchor":`${t}`}))},control:u}),J.createElement(go,{errors:g,name:"category"}))),J.createElement(kb,{title:J.createElement(FormattedMessage,{id:"community.categorypermission"})},J.createElement(Controller,{name:"isPublic",render:({field:w})=>J.createElement(J.Fragment,null,J.createElement(Qa,S(d({},w),{value:w.value===!0,onChange:T=>w.onChange(T.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>J.createElement(Eb,{type:"Public",description:"Anyone can join, view and search the posts in this page.",icon:J.createElement(G2,null)})})),J.createElement(Qa,S(d({},w),{value:w.value===!1,onChange:T=>w.onChange(!T.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>J.createElement(Eb,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this page.",icon:J.createElement($2,null)})}))),control:u}))),J.createElement(Xa,{edit:!0},J.createElement(Ja,{"data-qa-anchor":`${t}-save-button`,disabled:M,edit:!0},J.createElement(FormattedMessage,{id:"save"}))))},Ab=memo(tq);var rq=r=>{var n=r,{edit:e,community:t}=n,o=I(n,["edit","community"]);return e?t==null?null:J.createElement(Ab,S(d({},o),{community:t})):J.createElement(td,d({},o))},Bb=memo(e=>{let t=V("CommunityForm");return t?t(e):J.createElement(rq,d({},e))});var Lb=m.div`
3372
+ `;var zZ=({onChange:e,value:t,title:o,promptText:r})=>J.createElement(_b,null,J.createElement(Mb,null,o&&J.createElement(Pb,null,o),r&&J.createElement(Sb,null,r)),J.createElement(Ib,{value:t,"data-qa-anchor":"community-permissions",onChange:e})),L5=zZ;function jZ({needApprovalOnPostCreation:e,storyCommentsApproval:t,onNeedApprovalOnPostCreationChange:o,onStoryCommentsApproval:r}){return J.createElement(wb,null,J.createElement(k5,null,J.createElement(E5,null,J.createElement(A5,null,J.createElement(FormattedMessage,{id:"community.permissions.postReview"})),J.createElement(B5,null,J.createElement(L5,{title:J.createElement(FormattedMessage,{id:"community.permissions.approvePosts"}),promptText:J.createElement(FormattedMessage,{id:"community.permissions.approvePosts.prompt"}),value:e,onChange:n=>o==null?void 0:o(n)})))),J.createElement(k5,null,J.createElement(E5,null,J.createElement(A5,null,J.createElement(FormattedMessage,{id:"community.permissions.storyComments"})),J.createElement(B5,null,J.createElement(L5,{title:J.createElement(FormattedMessage,{id:"community.permissions.allowStoryComments"}),promptText:J.createElement(FormattedMessage,{id:"community.permissions.storyComments.prompt"}),value:t,onChange:n=>r==null?void 0:r(n)})))))}var Tb=e=>{let t=V("CommunityPermissions");return t?t(e):J.createElement(jZ,d({},e))};function QZ(e,t){return e==="needApprovalOnPostCreation"?(t==null?void 0:t.postSetting)===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED:e==="storyComments"?t==null?void 0:t.allowCommentInStory:!1}function KZ(e,t){return e==="needApprovalOnPostCreation"?{postSetting:t?CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED:CommunityPostSettings.ANYONE_CAN_POST}:e==="storyComments"?{storySetting:{enableComment:t}}:{[e]:t}}function D5({communityId:e,key:t}){let o=We(e),r=QZ(t,o),[n,i]=useState(r);useEffect(()=>i(r),[r]);let a=useCallback(s=>P(this,null,function*(){try{if(i(s),e==null)return;yield CommunityRepository.updateCommunity(e,KZ(t,s));}catch(l){i(r),l instanceof Error&&info({title:J.createElement(FormattedMessage,{id:`community.permissions.error.${t}.${s?"turnOn":"turnOff"}`}),content:l.message});}}),[t,r]);return [n,a]}var XZ=({communityId:e})=>{let[t,o]=D5({communityId:e,key:"needApprovalOnPostCreation"}),[r,n]=D5({communityId:e,key:"storyComments"});return J.createElement(Tb,{needApprovalOnPostCreation:t,onNeedApprovalOnPostCreationChange:o,storyCommentsApproval:r,onStoryCommentsApproval:n})},Nb=XZ;var kb=({title:e,children:t})=>J.createElement(Hn,{edit:!0},e&&J.createElement(q2,null,e),J.createElement(Un,null,t)),Eb=({type:e,description:t,icon:o})=>J.createElement(Y2,null,J.createElement(Z2,null,o),J.createElement("div",null,e,J.createElement(W2,null,t))),oq=({community:e,"data-qa-anchor":t="",className:o,onSubmit:r,onCancel:n})=>{let[i,a]=useState(!1),{register:s,handleSubmit:l,setError:c,watch:p,control:u,formState:f}=hv(e),{errors:g,isValid:h}=f,C=p("displayName"),y=p("description"),x=Ce(),v=useRef(null),_=I=>P(void 0,null,function*(){try{a(!0),yield r==null?void 0:r(S(d({},I),{avatarFileId:I.avatarFileId||void 0})),x.success({content:J.createElement(FormattedMessage,{id:"community.updateSuccess"})});}catch(T){if(console.log("error",T),T instanceof Error&&T.message.indexOf(":")>-1){let[,k]=T.message.split(":");x.error({content:k});}}finally{a(!1);}}),M=!f.isValid||i,b=v.current&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&v.current&&b<10&&v.current.scrollHeight-v.current.clientHeight-v.current.scrollTop>10&&v.current.scrollTo({top:v.current.scrollHeight});},[v.current,b,f]),J.createElement(On,{className:o,onSubmit:l(_)},J.createElement(zn,{ref:v},J.createElement(kb,{title:"General"},J.createElement(yo,null,J.createElement(Controller,{name:"avatarFileId",control:u,render:k=>{var {field:N}=k,F=N,T=w(F,["ref"]);return J.createElement(Dn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":t}))}})),J.createElement(yo,{error:g.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(on,null,C.length,"/30")),J.createElement(Ui,S(d({},s("displayName")),{"data-qa-anchor":`${t}-community-name-input`,placeholder:"Enter community name"})),J.createElement(go,{errors:g,name:"displayName"})),J.createElement(yo,{error:g.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(on,null,(y==null?void 0:y.length)||0,"/180")),J.createElement(Hi,S(d({},s("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${t}-community-description-textarea`,placeholder:"Enter description"})),J.createElement(go,{errors:g,name:"description"})),J.createElement(yo,{error:g.categoryIds},J.createElement($o,{htmlFor:"categoryIds",className:"required"},J.createElement(FormattedMessage,{id:"community.category"})),J.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:k=>{var {field:N}=k,F=N,T=w(F,["ref"]);return J.createElement(K2,S(d({parentContainer:v.current},T),{"data-qa-anchor":`${t}`}))},control:u}),J.createElement(go,{errors:g,name:"category"}))),J.createElement(kb,{title:J.createElement(FormattedMessage,{id:"community.categorypermission"})},J.createElement(Controller,{name:"isPublic",render:({field:I})=>J.createElement(J.Fragment,null,J.createElement(Ka,S(d({},I),{value:I.value===!0,onChange:T=>I.onChange(T.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>J.createElement(Eb,{type:"Public",description:"Anyone can join, view and search the posts in this page.",icon:J.createElement(G2,null)})})),J.createElement(Ka,S(d({},I),{value:I.value===!1,onChange:T=>I.onChange(!T.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>J.createElement(Eb,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this page.",icon:J.createElement($2,null)})}))),control:u}))),J.createElement(Ra,{edit:!0},J.createElement(Xa,{"data-qa-anchor":`${t}-save-button`,disabled:M,edit:!0},J.createElement(FormattedMessage,{id:"save"}))))},Ab=memo(oq);var nq=r=>{var n=r,{edit:e,community:t}=n,o=w(n,["edit","community"]);return e?t==null?null:J.createElement(Ab,S(d({},o),{community:t})):J.createElement(td,d({},o))},Bb=memo(e=>{let t=V("CommunityForm");return t?t(e):J.createElement(nq,d({},e))});var Lb=m.div`
3373
3373
  border-bottom: 1px solid ${({theme:e})=>e.palette.base.shade4};
3374
- `;var lq=({children:e})=>J.createElement(Hn,null,J.createElement(Un,null,e)),Fb=({className:e="",closeConfirm:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),{formState:{errors:n},control:i,setError:a,handleSubmit:s}=useForm({defaultValues:{members:[]}}),l=c=>P(void 0,null,function*(){if(c.members.length===0){a("members",{message:r({id:"AddMemberModal.membersValidationError"})});return}o(c.members);});return J.createElement(xt,{"data-qa-anchor":"add-member-modal",title:r({id:"AddMemberModal.addMembers"}),onCancel:t},J.createElement(Lb,null,J.createElement(On,{className:e,onSubmit:s(l)},J.createElement(zn,null,J.createElement(lq,null,J.createElement(Q2,{error:n.members},J.createElement(Controller,{name:"members",render:({field:c})=>J.createElement(Gn,S(d({},c),{"data-qa-anchor":"add-member-modal"})),control:i}),J.createElement(go,{errors:n,name:"members"})))),J.createElement(Xa,null,J.createElement(Ja,null,J.createElement(FormattedMessage,{id:"add"}))))))};var mq=m.div`
3374
+ `;var mq=({children:e})=>J.createElement(Hn,null,J.createElement(Un,null,e)),Fb=({className:e="",closeConfirm:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),{formState:{errors:n},control:i,setError:a,handleSubmit:s}=useForm({defaultValues:{members:[]}}),l=c=>P(void 0,null,function*(){if(c.members.length===0){a("members",{message:r({id:"AddMemberModal.membersValidationError"})});return}o(c.members);});return J.createElement(xt,{"data-qa-anchor":"add-member-modal",title:r({id:"AddMemberModal.addMembers"}),onCancel:t},J.createElement(Lb,null,J.createElement(On,{className:e,onSubmit:s(l)},J.createElement(zn,null,J.createElement(mq,null,J.createElement(Q2,{error:n.members},J.createElement(Controller,{name:"members",render:({field:c})=>J.createElement(Gn,S(d({},c),{"data-qa-anchor":"add-member-modal"})),control:i}),J.createElement(go,{errors:n,name:"members"})))),J.createElement(Ra,null,J.createElement(Xa,null,J.createElement(FormattedMessage,{id:"add"}))))))};var dq=m.div`
3375
3375
  display: grid;
3376
3376
  grid-template-areas: 'main side';
3377
3377
  grid-template-columns: auto min-content;
@@ -3399,7 +3399,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3399
3399
  height: auto;
3400
3400
  overflow: unset;
3401
3401
  }
3402
- `,dq=m.div`
3402
+ `,cq=m.div`
3403
3403
  grid-area: header;
3404
3404
  width: 100%;
3405
3405
  height: 100%;
@@ -3407,7 +3407,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3407
3407
  @media (max-width: 768px) {
3408
3408
  height: unset;
3409
3409
  }
3410
- `,cq=m.div`
3410
+ `,pq=m.div`
3411
3411
  grid-area: main;
3412
3412
  width: 100%;
3413
3413
  height: 100%;
@@ -3416,7 +3416,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3416
3416
  @media (max-width: 768px) {
3417
3417
  height: unset;
3418
3418
  }
3419
- `,pq=m.div`
3419
+ `,uq=m.div`
3420
3420
  grid-area: side;
3421
3421
  width: 100%;
3422
3422
  height: 100%;
@@ -3431,21 +3431,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3431
3431
  & > :not(:first-child) {
3432
3432
  margin-top: 20px;
3433
3433
  }
3434
- `,uq=({header:e,aside:t,children:o})=>J.createElement(mq,{withHeader:!!e},e&&J.createElement(dq,null,e),J.createElement(cq,null,o),J.createElement(pq,null,t)),Db=uq;var gq=m.div`
3434
+ `,fq=({header:e,aside:t,children:o})=>J.createElement(dq,{withHeader:!!e},e&&J.createElement(cq,null,e),J.createElement(pq,null,o),J.createElement(uq,null,t)),Db=fq;var yq=m.div`
3435
3435
  display: flex;
3436
3436
  align-items: center;
3437
3437
  padding: 1rem;
3438
3438
  border-radius: 0.25rem 0.25rem 0px 0px;
3439
3439
  border: 1px solid ${({theme:e})=>e.palette.system.borders};
3440
3440
  background: ${({theme:e})=>e.palette.system.background};
3441
- `,yq=m.div`
3441
+ `,hq=m.div`
3442
3442
  display: flex;
3443
3443
  flex-direction: column;
3444
3444
  align-items: flex-start;
3445
3445
  margin-left: 1rem;
3446
- `,hq=m.div`
3446
+ `,Cq=m.div`
3447
3447
  ${({theme:e})=>e.typography.headline}
3448
- `,Cq=m.button`
3448
+ `,vq=m.button`
3449
3449
  display: flex;
3450
3450
  align-items: center;
3451
3451
  background: none;
@@ -3460,11 +3460,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3460
3460
  & > svg {
3461
3461
  margin-right: 5px;
3462
3462
  }
3463
- `,vq=({title:e,avatarFileUrl:t,avatarImage:o,backLinkText:r,onBack:n})=>J.createElement(gq,null,J.createElement(ve,{avatar:t,backgroundImage:o}),J.createElement(yq,null,n instanceof Function&&J.createElement(Cq,{"data-qa-anchor":"page-header-back-button",onClick:n},J.createElement(qr,{height:".9em",width:".9em"}),r!=null?r:J.createElement(FormattedMessage,{id:"backTitle"})),J.createElement(hq,null,e))),Vb=vq;var xq=m(ho)`
3463
+ `,xq=({title:e,avatarFileUrl:t,avatarImage:o,backLinkText:r,onBack:n})=>J.createElement(yq,null,J.createElement(ve,{avatar:t,backgroundImage:o}),J.createElement(hq,null,n instanceof Function&&J.createElement(vq,{"data-qa-anchor":"page-header-back-button",onClick:n},J.createElement(qr,{height:".9em",width:".9em"}),r!=null?r:J.createElement(FormattedMessage,{id:"backTitle"})),J.createElement(Cq,null,e))),Vb=xq;var bq=m(ho)`
3464
3464
  background: ${({theme:e})=>e.palette.system.background};
3465
3465
  border-radius: 4px 4px 0 0;
3466
3466
  border: 1px solid #edeef2;
3467
- `,bq=({avatarFileUrl:e,communityName:t,onReturnToCommunity:o,tabs:r=[],activeTab:n,onTabChange:i})=>J.createElement(J.Fragment,null,J.createElement(Vb,{title:J.createElement(FormattedMessage,{id:"community.communitySettings"}),avatarFileUrl:e,avatarImage:so,backLinkText:J.createElement(FormattedMessage,{id:"community.returnTo",values:{communityName:t}}),onBack:o}),r.length>0?J.createElement(xq,{tabs:r,activeTab:n||r[0].value,onChange:a=>i==null?void 0:i(a)}):null),Hb=bq;var Ub=m.div`
3467
+ `,Iq=({avatarFileUrl:e,communityName:t,onReturnToCommunity:o,tabs:r=[],activeTab:n,onTabChange:i})=>J.createElement(J.Fragment,null,J.createElement(Vb,{title:J.createElement(FormattedMessage,{id:"community.communitySettings"}),avatarFileUrl:e,avatarImage:so,backLinkText:J.createElement(FormattedMessage,{id:"community.returnTo",values:{communityName:t}}),onBack:o}),r.length>0?J.createElement(bq,{tabs:r,activeTab:n||r[0].value,onChange:a=>i==null?void 0:i(a)}):null),Hb=Iq;var Ub=m.div`
3468
3468
  border: 1px solid #edeef2;
3469
3469
  border-radius: 4px;
3470
3470
  background: ${({theme:e})=>e.palette.system.background};
@@ -3493,9 +3493,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3493
3493
  width: 100%;
3494
3494
  `,qb=m(_o).attrs({width:15,height:15})`
3495
3495
  margin-right: 8px;
3496
- `;var Yb=({title:e,bodyText:t,actionButton:o})=>J.createElement(Ub,null,J.createElement(zb,null,e),J.createElement(jb,null,J.createElement("div",null,t),J.createElement(Gb,null,o))),_q=({onClick:e})=>J.createElement($b,{"data-qa-anchor":"community-edit-add-member-button",onClick:e},J.createElement(qb,null),J.createElement(FormattedMessage,{id:"add"})),Mq=o=>{var r=o,{onClick:e}=r,t=I(r,["onClick"]);return J.createElement(Zb,S(d({},t),{onClick:e}),J.createElement(FormattedMessage,{id:"close"}))},Wb=({action:e})=>J.createElement(Yb,{title:J.createElement(FormattedMessage,{id:"AddMemberAction.title"}),bodyText:J.createElement(FormattedMessage,{id:"AddMemberAction.description"}),actionButton:J.createElement(_q,{onClick:e})}),Qb=({communityId:e,onCommunityClosed:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue();return J.createElement(Yb,{title:J.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}),bodyText:J.createElement(FormattedMessage,{id:"CloseCommunityAction.description"}),actionButton:J.createElement(Mq,{"data-qa-anchor":"community-edit-close-community-button",onClick:()=>r({"data-qa-anchor":"close-community",title:o({id:"CloseCommunityAction.closeConfirm.title"}),content:o({id:"CloseCommunityAction.closeConfirm.description"}),cancelText:o({id:"cancel"}),okText:o({id:"close"}),onOk:()=>P(void 0,null,function*(){e&&(yield CommunityRepository.deleteCommunity(e),t==null||t());})})})})};var Ko={EDIT_PROFILE:"EDIT_PROFILE",MEMBERS:"MEMBERS",PERMISSIONS:"PERMISSIONS"},Kb=[{value:Ko.EDIT_PROFILE,label:J.createElement(FormattedMessage,{id:"tabs.editProfile"})},{value:Ko.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})},{value:Ko.PERMISSIONS,label:J.createElement(FormattedMessage,{id:"tabs.permissions"})}];var Sq=({communityId:e,tab:t=Ko.EDIT_PROFILE})=>{let{onChangePage:o}=Q(),[r,n]=useState(t),[i,a]=useState(!1),s=()=>a(!0),l=()=>a(!1);useEffect(()=>n(t),[t]);let{onBack:c}=Q(),p=We(e),u=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"medium"}),f=()=>e&&c(),g=y=>P(void 0,null,function*(){e!=null&&(yield CommunityRepository.updateCommunity(e,y),f());}),h=y=>P(void 0,null,function*(){e!=null&&(yield CommunityRepository.Membership.addMembers(e,y),l());});return J.createElement(Db,{aside:(()=>{switch(r){case Ko.EDIT_PROFILE:return J.createElement(Qb,{communityId:e,onCommunityClosed:()=>o("newsfeed")});case Ko.MEMBERS:return J.createElement(J.Fragment,null,J.createElement(Wb,{action:s}),i&&J.createElement(Fb,{closeConfirm:l,onSubmit:h}));default:return null}})(),header:J.createElement(Hb,{avatarFileUrl:u,communityName:p==null?void 0:p.displayName,tabs:Kb,activeTab:r,onTabChange:y=>n(y),onReturnToCommunity:f})},r===Ko.EDIT_PROFILE&&!!(p!=null&&p.communityId)&&J.createElement(Bb,{"data-qa-anchor":"community-edit",community:p,edit:!0,onSubmit:y=>g(S(d({},y),{avatarFileId:y.avatarFileId||void 0}))}),r===Ko.MEMBERS&&J.createElement(Dd,{communityId:e}),r===Ko.PERMISSIONS&&J.createElement(Nb,{communityId:e}))},Rb=Sq;var Aq=m.div`
3496
+ `;var Yb=({title:e,bodyText:t,actionButton:o})=>J.createElement(Ub,null,J.createElement(zb,null,e),J.createElement(jb,null,J.createElement("div",null,t),J.createElement(Gb,null,o))),Mq=({onClick:e})=>J.createElement($b,{"data-qa-anchor":"community-edit-add-member-button",onClick:e},J.createElement(qb,null),J.createElement(FormattedMessage,{id:"add"})),Pq=o=>{var r=o,{onClick:e}=r,t=w(r,["onClick"]);return J.createElement(Zb,S(d({},t),{onClick:e}),J.createElement(FormattedMessage,{id:"close"}))},Wb=({action:e})=>J.createElement(Yb,{title:J.createElement(FormattedMessage,{id:"AddMemberAction.title"}),bodyText:J.createElement(FormattedMessage,{id:"AddMemberAction.description"}),actionButton:J.createElement(Mq,{onClick:e})}),Qb=({communityId:e,onCommunityClosed:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue();return J.createElement(Yb,{title:J.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}),bodyText:J.createElement(FormattedMessage,{id:"CloseCommunityAction.description"}),actionButton:J.createElement(Pq,{"data-qa-anchor":"community-edit-close-community-button",onClick:()=>r({"data-qa-anchor":"close-community",title:o({id:"CloseCommunityAction.closeConfirm.title"}),content:o({id:"CloseCommunityAction.closeConfirm.description"}),cancelText:o({id:"cancel"}),okText:o({id:"close"}),onOk:()=>P(void 0,null,function*(){e&&(yield CommunityRepository.deleteCommunity(e),t==null||t());})})})})};var Ko={EDIT_PROFILE:"EDIT_PROFILE",MEMBERS:"MEMBERS",PERMISSIONS:"PERMISSIONS"},Kb=[{value:Ko.EDIT_PROFILE,label:J.createElement(FormattedMessage,{id:"tabs.editProfile"})},{value:Ko.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})},{value:Ko.PERMISSIONS,label:J.createElement(FormattedMessage,{id:"tabs.permissions"})}];var Tq=({communityId:e,tab:t=Ko.EDIT_PROFILE})=>{let{onChangePage:o}=Q(),[r,n]=useState(t),[i,a]=useState(!1),s=()=>a(!0),l=()=>a(!1);useEffect(()=>n(t),[t]);let{onBack:c}=Q(),p=We(e),u=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"medium"}),f=()=>e&&c(),g=y=>P(void 0,null,function*(){e!=null&&(yield CommunityRepository.updateCommunity(e,y),f());}),h=y=>P(void 0,null,function*(){e!=null&&(yield CommunityRepository.Membership.addMembers(e,y),l());});return J.createElement(Db,{aside:(()=>{switch(r){case Ko.EDIT_PROFILE:return J.createElement(Qb,{communityId:e,onCommunityClosed:()=>o("newsfeed")});case Ko.MEMBERS:return J.createElement(J.Fragment,null,J.createElement(Wb,{action:s}),i&&J.createElement(Fb,{closeConfirm:l,onSubmit:h}));default:return null}})(),header:J.createElement(Hb,{avatarFileUrl:u,communityName:p==null?void 0:p.displayName,tabs:Kb,activeTab:r,onTabChange:y=>n(y),onReturnToCommunity:f})},r===Ko.EDIT_PROFILE&&!!(p!=null&&p.communityId)&&J.createElement(Bb,{"data-qa-anchor":"community-edit",community:p,edit:!0,onSubmit:y=>g(S(d({},y),{avatarFileId:y.avatarFileId||void 0}))}),r===Ko.MEMBERS&&J.createElement(Dd,{communityId:e}),r===Ko.PERMISSIONS&&J.createElement(Nb,{communityId:e}))},Rb=Tq;var Bq=m.div`
3497
3497
  margin-top: 16px;
3498
- `,Bq=({title:e,children:t})=>J.createElement(Hn,null,J.createElement(q2,null,e),J.createElement(Un,null,t)),Lq=({user:e,onSubmit:t,className:o})=>{var u,f;let{formatMessage:r}=useIntl(),{register:n,handleSubmit:i,formState:{errors:a},watch:s,control:l}=useForm({defaultValues:{displayName:e.displayName,description:(u=e.description)!=null?u:"",avatarFileId:(f=e.avatarFileId)!=null?f:void 0}}),c=s("description"),p=s("displayName");return J.createElement(On,{className:o,onSubmit:i(g=>{e.displayName===g.displayName?t({description:g.description,avatarFileId:g.avatarFileId}):t(g);})},J.createElement(zn,null,J.createElement(Bq,{title:J.createElement(FormattedMessage,{id:"UserProfileForm.title"})},J.createElement(Controller,{name:"avatarFileId",render:C=>{var {field:y}=C,x=y,h=I(x,["ref"]);return J.createElement(Dn,S(d({},h),{"data-qa-anchor":"user-profile-form-avatar-uploader"}))},control:l}),J.createElement(yo,{error:a.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"UserProfileForm.displayname"})),J.createElement(on,null,(p==null?void 0:p.length)||0,"/100")),J.createElement(Ui,S(d({},n("displayName",{required:r({id:"UserProfileForm.requiredDisplayName"})})),{"data-qa-anchor":"user-profile-form-display-name-input",placeholder:r({id:"UserProfileForm.namePlaceholder"}),maxLength:100})),J.createElement(go,{errors:a,name:"displayName"})),J.createElement(yo,{error:a.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"UserProfileForm.about"})),J.createElement(on,null,(c==null?void 0:c.length)||0,"/180")),J.createElement(Hi,S(d({},n("description")),{"data-qa-anchor":"user-profile-form-description-textarea",placeholder:r({id:"UserProfileForm.requiredDescription"}),maxLength:180})),J.createElement(go,{errors:a,name:"description"})),J.createElement(Aq,null,J.createElement(de,{"data-qa-anchor":"user-profile-form-save-button",type:"submit"},J.createElement(FormattedMessage,{id:"save"}))))))},eI=memo(Lq);var tI=m.button.attrs({role:"button"})`
3498
+ `,Lq=({title:e,children:t})=>J.createElement(Hn,null,J.createElement(q2,null,e),J.createElement(Un,null,t)),Fq=({user:e,onSubmit:t,className:o})=>{var u,f;let{formatMessage:r}=useIntl(),{register:n,handleSubmit:i,formState:{errors:a},watch:s,control:l}=useForm({defaultValues:{displayName:e.displayName,description:(u=e.description)!=null?u:"",avatarFileId:(f=e.avatarFileId)!=null?f:void 0}}),c=s("description"),p=s("displayName");return J.createElement(On,{className:o,onSubmit:i(g=>{e.displayName===g.displayName?t({description:g.description,avatarFileId:g.avatarFileId}):t(g);})},J.createElement(zn,null,J.createElement(Lq,{title:J.createElement(FormattedMessage,{id:"UserProfileForm.title"})},J.createElement(Controller,{name:"avatarFileId",render:C=>{var {field:y}=C,x=y,h=w(x,["ref"]);return J.createElement(Dn,S(d({},h),{"data-qa-anchor":"user-profile-form-avatar-uploader"}))},control:l}),J.createElement(yo,{error:a.displayName},J.createElement(rn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"UserProfileForm.displayname"})),J.createElement(on,null,(p==null?void 0:p.length)||0,"/100")),J.createElement(Ui,S(d({},n("displayName",{required:r({id:"UserProfileForm.requiredDisplayName"})})),{"data-qa-anchor":"user-profile-form-display-name-input",placeholder:r({id:"UserProfileForm.namePlaceholder"}),maxLength:100})),J.createElement(go,{errors:a,name:"displayName"})),J.createElement(yo,{error:a.description},J.createElement(rn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"UserProfileForm.about"})),J.createElement(on,null,(c==null?void 0:c.length)||0,"/180")),J.createElement(Hi,S(d({},n("description")),{"data-qa-anchor":"user-profile-form-description-textarea",placeholder:r({id:"UserProfileForm.requiredDescription"}),maxLength:180})),J.createElement(go,{errors:a,name:"description"})),J.createElement(Bq,null,J.createElement(de,{"data-qa-anchor":"user-profile-form-save-button",type:"submit"},J.createElement(FormattedMessage,{id:"save"}))))))},eI=memo(Fq);var tI=m.button.attrs({role:"button"})`
3499
3499
  color: ${({theme:e})=>e.palette.base.shade1};
3500
3500
  font-size: 14px;
3501
3501
  border: none;
@@ -3507,7 +3507,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3507
3507
  cursor: pointer;
3508
3508
  color: ${({theme:e})=>e.palette.neutral.shade1};
3509
3509
  }
3510
- `;var Dq=({text:e})=>{let{onBack:t}=Q();return J.createElement(tI,{onClick:t},e)},oI=Dq;var zd={EDIT_PROFILE:"EDIT_PROFILE"},rI=[{value:zd.EDIT_PROFILE,label:"Edit profile"}];var nI=m(ho)`
3510
+ `;var Vq=({text:e})=>{let{onBack:t}=Q();return J.createElement(tI,{onClick:t},e)},oI=Vq;var zd={EDIT_PROFILE:"EDIT_PROFILE"},rI=[{value:zd.EDIT_PROFILE,label:"Edit profile"}];var nI=m(ho)`
3511
3511
  background: ${({theme:e})=>e.palette.system.background};
3512
3512
  border-radius: 4px 4px 0 0;
3513
3513
  border: 1px solid #edeef2;
@@ -3568,7 +3568,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3568
3568
  width: 100%;
3569
3569
  `;m(_o).attrs({width:15,height:15})`
3570
3570
  margin-right: 8px;
3571
- `;var $q=({userId:e})=>{let{formatMessage:t}=useIntl(),{onClickUser:o}=Q(),[r,n]=useState(zd.EDIT_PROFILE),{user:i,refresh:a}=Ae({userId:e}),s=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"}),l=Ce();useEffect(()=>{a();},[]);let c=u=>{l.error({content:u.message});},p=u=>P(void 0,null,function*(){try{if(e==null)return;yield UserRepository.updateUser(e,u),o(e);}catch(f){c(f),console.log(f);}});return i==null?null:J.createElement(sI,null,J.createElement(lI,null,J.createElement(cI,null,J.createElement(dI,{avatar:s,backgroundImage:Ve})),J.createElement("div",null,J.createElement(oI,{text:t({id:"ProfileSettings.returnTo"})+((i==null?void 0:i.displayName)||"")}),J.createElement(mI,null,J.createElement(FormattedMessage,{id:"profile.setting"})))),J.createElement("div",null,J.createElement(aI,{tabs:rI,activeTab:r,onChange:n})),J.createElement(uI,null,r===zd.EDIT_PROFILE&&J.createElement(pI,null,i!=null?J.createElement(eI,{user:i,onSubmit:p}):null)))},fI=memo(e=>{let t=V("ProfileSettings");return t?t(e):J.createElement($q,d({},e))});var gI=m.div`
3571
+ `;var Zq=({userId:e})=>{let{formatMessage:t}=useIntl(),{onClickUser:o}=Q(),[r,n]=useState(zd.EDIT_PROFILE),{user:i,refresh:a}=Ae({userId:e}),s=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"}),l=Ce();useEffect(()=>{a();},[]);let c=u=>{l.error({content:u.message});},p=u=>P(void 0,null,function*(){try{if(e==null)return;yield UserRepository.updateUser(e,u),o(e);}catch(f){c(f),console.log(f);}});return i==null?null:J.createElement(sI,null,J.createElement(lI,null,J.createElement(cI,null,J.createElement(dI,{avatar:s,backgroundImage:Ve})),J.createElement("div",null,J.createElement(oI,{text:t({id:"ProfileSettings.returnTo"})+((i==null?void 0:i.displayName)||"")}),J.createElement(mI,null,J.createElement(FormattedMessage,{id:"profile.setting"})))),J.createElement("div",null,J.createElement(aI,{tabs:rI,activeTab:r,onChange:n})),J.createElement(uI,null,r===zd.EDIT_PROFILE&&J.createElement(pI,null,i!=null?J.createElement(eI,{user:i,onSubmit:p}):null)))},fI=memo(e=>{let t=V("ProfileSettings");return t?t(e):J.createElement(Zq,d({},e))});var gI=m.div`
3572
3572
  padding: 70px 30px 30px;
3573
3573
  max-width: 360px;
3574
3574
  text-align: center;
@@ -3590,7 +3590,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3590
3590
  background: none;
3591
3591
  text-decoration: underline;
3592
3592
  }
3593
- `;function z5({onClose:e,onGoSettings:t}){return J.createElement(xt,{"data-qa-anchor":"community-created-modal"},J.createElement(gI,null,J.createElement(S0,null),J.createElement(yI,{"data-qa-anchor":"community-created-modal-title"},J.createElement(FormattedMessage,{id:"communityCreatedModal.title"})),J.createElement(hI,{"data-qa-anchor":"community-created-modal-message"},J.createElement(FormattedMessage,{id:"communityCreatedModal.message"})),J.createElement(CI,{"data-qa-anchor":"community-created-modal-go-to-settings-button",onClick:t},J.createElement(FormattedMessage,{id:"communityCreatedModal.goToSettings"})),J.createElement(vI,{"data-qa-anchor":"community-created-modal-skip-button",onClick:e},J.createElement(FormattedMessage,{id:"communityCreatedModal.skip"}))))}var qq=({communityId:e,onClose:t})=>{let{onEditCommunity:o}=Q();return J.createElement(z5,{onClose:t,onGoSettings:()=>{e!=null&&(o(e,Ko.PERMISSIONS),t());}})},xI=qq;var bI=m(_o).attrs({width:15,height:15})`
3593
+ `;function z5({onClose:e,onGoSettings:t}){return J.createElement(xt,{"data-qa-anchor":"community-created-modal"},J.createElement(gI,null,J.createElement(S0,null),J.createElement(yI,{"data-qa-anchor":"community-created-modal-title"},J.createElement(FormattedMessage,{id:"communityCreatedModal.title"})),J.createElement(hI,{"data-qa-anchor":"community-created-modal-message"},J.createElement(FormattedMessage,{id:"communityCreatedModal.message"})),J.createElement(CI,{"data-qa-anchor":"community-created-modal-go-to-settings-button",onClick:t},J.createElement(FormattedMessage,{id:"communityCreatedModal.goToSettings"})),J.createElement(vI,{"data-qa-anchor":"community-created-modal-skip-button",onClick:e},J.createElement(FormattedMessage,{id:"communityCreatedModal.skip"}))))}var Yq=({communityId:e,onClose:t})=>{let{onEditCommunity:o}=Q();return J.createElement(z5,{onClose:t,onGoSettings:()=>{e!=null&&(o(e,Ko.PERMISSIONS),t());}})},xI=Yq;var bI=m(_o).attrs({width:15,height:15})`
3594
3594
  margin-right: 8px;
3595
3595
  `,II=m(Ci).attrs({width:15,height:15})`
3596
3596
  margin-right: 4px;
@@ -3690,7 +3690,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3690
3690
  `,HI=m.div`
3691
3691
  ${({theme:e})=>e.typography.caption};
3692
3692
  color: ${({theme:e})=>e.palette.base.shade1};
3693
- `;var UI=({canReviewPosts:e,postsCount:t})=>J.createElement(DI,null,J.createElement(VI,null,J.createElement(OI,null),J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.title"})),J.createElement(HI,null,e?J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.needApproval",values:{amount:t,formattedAmount:gg(t)}}):J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.pendingForReview"})));var Jq=({communityId:e,communityCategories:t,pendingPostsCount:o,postsCount:r,membersCount:n,description:i,isJoined:a,isOfficial:s,isPublic:l,avatarFileUrl:c,canEditCommunity:p,onEditCommunity:u,joinCommunity:f,onClickLeaveCommunity:g,canLeaveCommunity:h,canReviewPosts:C,name:y,postSetting:x,goToPendingTab:v})=>{let{formatMessage:_}=useIntl();return J.createElement(_I,{"data-qa-anchor":"community-info"},J.createElement(MI,{backgroundImage:c},J.createElement(PI,null,J.createElement(SI,{"data-qa-anchor":"community-info",isOfficial:s,isPublic:l,isTitle:!0,name:y,truncate:2}),J.createElement(kI,null,(t||[]).join(", ")))),J.createElement(TI,null,J.createElement(NI,null,J.createElement(LI,null,J.createElement(j5,null,J.createElement("div",{className:"countNumber"},gg(r||0)),J.createElement("div",{className:"countType"},J.createElement(FormattedMessage,{id:"community.posts"}))),J.createElement(EI,null),J.createElement(j5,null,J.createElement("div",{className:"countNumber"},gg(n||0)),J.createElement("div",{className:"countType"},J.createElement(FormattedMessage,{id:"community.members"})))),a&&J.createElement(wI,{"data-qa-anchor":"community-info-options-button",options:[p?{name:_({id:"community.settings"}),action:()=>u(e),dataQaAnchorMenuItem:"settings"}:null,h?{name:_({id:"community.leaveCommunity"}),action:()=>g(e),dataQaAnchorMenuItem:"leave-community"}:null].filter(Ue)})),i&&J.createElement(og,{lines:3},J.createElement(AI,{"data-qa-anchor":"community-info-description"},i)),!a&&J.createElement(BI,{"data-qa-anchor":"community-info-join-button",onClick:()=>f(e)},J.createElement(bI,null)," ",J.createElement(FormattedMessage,{id:"community.join"})),J.createElement(Nl,{type:"communityFeed",communityId:e}),a&&p&&J.createElement(q,{fullWidth:!0,"data-qa-anchor":"community-info-edit-button",onClick:()=>u(e)},J.createElement(II,null)," ",J.createElement(FormattedMessage,{id:"community.editProfile"})),x===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&a&&o>0&&J.createElement(FI,{onClick:v,fullWidth:!0},J.createElement(UI,{canReviewPosts:C,postsCount:o}))))},jI=e=>{let t=V("UICommunityInfo");return t?t(e):J.createElement(Jq,d({},e))};var Zd=e=>{let{onEditCommunity:t}=Q(),o=We(e),r=te({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=ns(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=Cs({community:o}),l=useMemo(()=>(n==null?void 0:n.length)||0,[n]);return {community:o,reviewingPosts:n,avatarFileUrl:r,communityCategories:i,pendingPostsCount:l,canEditCommunity:s,canReviewCommunityPosts:a,onEditCommunity:t,joinCommunity:()=>e&&CommunityRepository.joinCommunity(e),leaveCommunity:()=>e&&CommunityRepository.leaveCommunity(e),updateCommunity:g=>e&&CommunityRepository.updateCommunity(e,g),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};var eY=({communityId:e,goToPendingTab:t})=>{var v;let{community:o,communityCategories:r,avatarFileUrl:n,canEditCommunity:i,onEditCommunity:a,joinCommunity:s,leaveCommunity:l,pendingPostsCount:c,canReviewCommunityPosts:p}=Zd(e),{confirm:u}=ue(),f=(r||[]).map(_=>_.name);if(o==null)return null;let g=o.isJoined||!1,{membersCount:h,description:C,isJoined:y}=o,x=({onOk:_})=>u({"data-qa-anchor":"leave-community",title:J.createElement(FormattedMessage,{id:"community.leaveCommunityTitle"}),content:J.createElement(FormattedMessage,{id:"community.leaveCommunityBody"}),okText:J.createElement(FormattedMessage,{id:"community.leaveCommunityButtonText"}),onOk:()=>_()});return J.createElement(jI,{communityId:e,goToPendingTab:t,communityCategories:f,pendingPostsCount:c,postsCount:(v=o.postsCount)!=null?v:0,membersCount:h,description:C||"",isJoined:y||!1,isOfficial:o.isOfficial||!1,isPublic:o.isPublic||!1,avatarFileUrl:n||null,joinCommunity:s,canEditCommunity:i,canLeaveCommunity:g||!1,canReviewPosts:p,name:o.displayName,postSetting:o.postSetting||CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED,onEditCommunity:a,onClickLeaveCommunity:()=>x({onOk:()=>l()})})};var GI=eY;var Jo={TIMELINE:"TIMELINE",GALLERY:"GALLERY",MEMBERS:"MEMBERS",PENDING:"PENDING"};function $I(e,t,o,r=0){let n=[{value:Jo.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Jo.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Jo.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})}];if(t&&e===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED){let i=o?r:0;n.push({value:Jo.PENDING,label:J.createElement(FormattedMessage,{id:"tabs.pendingPosts",values:{amount:i,formattedAmount:i}})});}return n}var ZI=m.div`
3693
+ `;var UI=({canReviewPosts:e,postsCount:t})=>J.createElement(DI,null,J.createElement(VI,null,J.createElement(OI,null),J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.title"})),J.createElement(HI,null,e?J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.needApproval",values:{amount:t,formattedAmount:gg(t)}}):J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.pendingForReview"})));var Xq=({communityId:e,communityCategories:t,pendingPostsCount:o,postsCount:r,membersCount:n,description:i,isJoined:a,isOfficial:s,isPublic:l,avatarFileUrl:c,canEditCommunity:p,onEditCommunity:u,joinCommunity:f,onClickLeaveCommunity:g,canLeaveCommunity:h,canReviewPosts:C,name:y,postSetting:x,goToPendingTab:v})=>{let{formatMessage:_}=useIntl();return J.createElement(_I,{"data-qa-anchor":"community-info"},J.createElement(MI,{backgroundImage:c},J.createElement(PI,null,J.createElement(SI,{"data-qa-anchor":"community-info",isOfficial:s,isPublic:l,isTitle:!0,name:y,truncate:2}),J.createElement(kI,null,(t||[]).join(", ")))),J.createElement(TI,null,J.createElement(NI,null,J.createElement(LI,null,J.createElement(j5,null,J.createElement("div",{className:"countNumber"},gg(r||0)),J.createElement("div",{className:"countType"},J.createElement(FormattedMessage,{id:"community.posts"}))),J.createElement(EI,null),J.createElement(j5,null,J.createElement("div",{className:"countNumber"},gg(n||0)),J.createElement("div",{className:"countType"},J.createElement(FormattedMessage,{id:"community.members"})))),a&&J.createElement(wI,{"data-qa-anchor":"community-info-options-button",options:[p?{name:_({id:"community.settings"}),action:()=>u(e),dataQaAnchorMenuItem:"settings"}:null,h?{name:_({id:"community.leaveCommunity"}),action:()=>g(e),dataQaAnchorMenuItem:"leave-community"}:null].filter(Ue)})),i&&J.createElement(og,{lines:3},J.createElement(AI,{"data-qa-anchor":"community-info-description"},i)),!a&&J.createElement(BI,{"data-qa-anchor":"community-info-join-button",onClick:()=>f(e)},J.createElement(bI,null)," ",J.createElement(FormattedMessage,{id:"community.join"})),J.createElement(Nl,{type:"communityFeed",communityId:e}),a&&p&&J.createElement(q,{fullWidth:!0,"data-qa-anchor":"community-info-edit-button",onClick:()=>u(e)},J.createElement(II,null)," ",J.createElement(FormattedMessage,{id:"community.editProfile"})),x===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&a&&o>0&&J.createElement(FI,{onClick:v,fullWidth:!0},J.createElement(UI,{canReviewPosts:C,postsCount:o}))))},jI=e=>{let t=V("UICommunityInfo");return t?t(e):J.createElement(Xq,d({},e))};var Zd=e=>{let{onEditCommunity:t}=Q(),o=We(e),r=te({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=is(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=vs({community:o}),l=useMemo(()=>(n==null?void 0:n.length)||0,[n]);return {community:o,reviewingPosts:n,avatarFileUrl:r,communityCategories:i,pendingPostsCount:l,canEditCommunity:s,canReviewCommunityPosts:a,onEditCommunity:t,joinCommunity:()=>e&&CommunityRepository.joinCommunity(e),leaveCommunity:()=>e&&CommunityRepository.leaveCommunity(e),updateCommunity:g=>e&&CommunityRepository.updateCommunity(e,g),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};var tY=({communityId:e,goToPendingTab:t})=>{var v;let{community:o,communityCategories:r,avatarFileUrl:n,canEditCommunity:i,onEditCommunity:a,joinCommunity:s,leaveCommunity:l,pendingPostsCount:c,canReviewCommunityPosts:p}=Zd(e),{confirm:u}=ue(),f=(r||[]).map(_=>_.name);if(o==null)return null;let g=o.isJoined||!1,{membersCount:h,description:C,isJoined:y}=o,x=({onOk:_})=>u({"data-qa-anchor":"leave-community",title:J.createElement(FormattedMessage,{id:"community.leaveCommunityTitle"}),content:J.createElement(FormattedMessage,{id:"community.leaveCommunityBody"}),okText:J.createElement(FormattedMessage,{id:"community.leaveCommunityButtonText"}),onOk:()=>_()});return J.createElement(jI,{communityId:e,goToPendingTab:t,communityCategories:f,pendingPostsCount:c,postsCount:(v=o.postsCount)!=null?v:0,membersCount:h,description:C||"",isJoined:y||!1,isOfficial:o.isOfficial||!1,isPublic:o.isPublic||!1,avatarFileUrl:n||null,joinCommunity:s,canEditCommunity:i,canLeaveCommunity:g||!1,canReviewPosts:p,name:o.displayName,postSetting:o.postSetting||CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED,onEditCommunity:a,onClickLeaveCommunity:()=>x({onOk:()=>l()})})};var GI=tY;var Jo={TIMELINE:"TIMELINE",GALLERY:"GALLERY",MEMBERS:"MEMBERS",PENDING:"PENDING"};function $I(e,t,o,r=0){let n=[{value:Jo.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Jo.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Jo.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})}];if(t&&e===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED){let i=o?r:0;n.push({value:Jo.PENDING,label:J.createElement(FormattedMessage,{id:"tabs.pendingPosts",values:{amount:i,formattedAmount:i}})});}return n}var ZI=m.div`
3694
3694
  height: 100%;
3695
3695
  max-width: 700px;
3696
3696
  margin: 0 auto;
@@ -3702,7 +3702,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3702
3702
  margin-bottom: 12px;
3703
3703
  padding: 12px 16px;
3704
3704
  border-radius: 4px;
3705
- `;var nY=({communityId:e,isNewCommunity:t,isOpen:o,toggleOpen:r})=>{let n=We(e),{canReview:i,canCreatePost:a}=Cs({community:n}),{posts:s}=Po({targetId:e,targetType:"community",feedType:"reviewing"}),l=s.reduce((y,x)=>y+x.flagCount,0),c=useMemo(()=>$I(n==null?void 0:n.postSetting,n==null?void 0:n.isJoined,i,l),[n==null?void 0:n.postSetting,n==null?void 0:n.isJoined,i,l]),[p,u]=useState(Jo.TIMELINE),f=(n==null?void 0:n.isJoined)||!1,[g,h]=useState(t);return useEffect(()=>{c.find(y=>y.value===p)||u(c[0].value);},[p,c]),J.createElement(ZI,null,J.createElement(ls,{isOpen:o,onClick:r}),J.createElement(ms,{isOpen:o}),J.createElement(ss,null,J.createElement(ds,{onClick:r}),J.createElement(as,null,J.createElement(FormattedMessage,{id:"sidebar.community"}))),J.createElement(GI,{communityId:e,goToPendingTab:()=>u(Jo.PENDING)}),J.createElement(Ed,{"data-qa-anchor":"community-feed-header",tabs:c,activeTab:p,onChange:u}),p===Jo.TIMELINE&&J.createElement(An,{targetType:"community",targetId:e,readonly:!f,showPostCreator:f&&a,feedType:"published"}),p===Jo.GALLERY&&J.createElement(kd,{targetType:"community",targetId:e,grid:!0}),p===Jo.MEMBERS&&J.createElement(Dd,{communityId:e}),p===Jo.PENDING&&J.createElement(J.Fragment,null,i&&J.createElement(qI,null,J.createElement(FormattedMessage,{id:"community.review.declinePendingPosts"})),J.createElement(An,{targetType:"community",targetId:e,readonly:!f,showPostCreator:!1,feedType:"reviewing"})),g&&J.createElement(xI,{communityId:e,onClose:()=>h(!1)}))},QI=nY;m(ve)`
3705
+ `;var iY=({communityId:e,isNewCommunity:t,isOpen:o,toggleOpen:r})=>{let n=We(e),{canReview:i,canCreatePost:a}=vs({community:n}),{posts:s}=Po({targetId:e,targetType:"community",feedType:"reviewing"}),l=s.reduce((y,x)=>y+x.flagCount,0),c=useMemo(()=>$I(n==null?void 0:n.postSetting,n==null?void 0:n.isJoined,i,l),[n==null?void 0:n.postSetting,n==null?void 0:n.isJoined,i,l]),[p,u]=useState(Jo.TIMELINE),f=(n==null?void 0:n.isJoined)||!1,[g,h]=useState(t);return useEffect(()=>{c.find(y=>y.value===p)||u(c[0].value);},[p,c]),J.createElement(ZI,null,J.createElement(ms,{isOpen:o,onClick:r}),J.createElement(ds,{isOpen:o}),J.createElement(ls,null,J.createElement(cs,{onClick:r}),J.createElement(ss,null,J.createElement(FormattedMessage,{id:"sidebar.community"}))),J.createElement(GI,{communityId:e,goToPendingTab:()=>u(Jo.PENDING)}),J.createElement(Ed,{"data-qa-anchor":"community-feed-header",tabs:c,activeTab:p,onChange:u}),p===Jo.TIMELINE&&J.createElement(An,{targetType:"community",targetId:e,readonly:!f,showPostCreator:f&&a,feedType:"published"}),p===Jo.GALLERY&&J.createElement(kd,{targetType:"community",targetId:e,grid:!0}),p===Jo.MEMBERS&&J.createElement(Dd,{communityId:e}),p===Jo.PENDING&&J.createElement(J.Fragment,null,i&&J.createElement(qI,null,J.createElement(FormattedMessage,{id:"community.review.declinePendingPosts"})),J.createElement(An,{targetType:"community",targetId:e,readonly:!f,showPostCreator:!1,feedType:"reviewing"})),g&&J.createElement(xI,{communityId:e,onClose:()=>h(!1)}))},QI=iY;m(ve)`
3706
3706
  margin-right: 8px;
3707
3707
  `;m.div`
3708
3708
  color: ${({theme:e})=>e.palette.base.shade2};
@@ -3756,8 +3756,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3756
3756
  border-bottom-left-radius: 0.75rem;
3757
3757
  `;m(Gt)`
3758
3758
  color: ${({theme:e})=>e.palette.neutral.main};
3759
- `;var aY=e=>e.replace("#","%23"),sY=e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40">
3760
- <path d="M20 0 L 20 40" stroke="${aY(e.palette.base.shade4)}" />
3759
+ `;var sY=e=>e.replace("#","%23"),lY=e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40">
3760
+ <path d="M20 0 L 20 40" stroke="${sY(e.palette.base.shade4)}" />
3761
3761
  </svg>`;m.div`
3762
3762
  display: flex;
3763
3763
  width: 100%;
@@ -3772,7 +3772,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3772
3772
  border: none;
3773
3773
  padding: 8px 0 16px;
3774
3774
  background-repeat: no-repeat;
3775
- background-image: ${({theme:e})=>`url('data:image/svg+xml;utf8,${sY(e)}')`};
3775
+ background-image: ${({theme:e})=>`url('data:image/svg+xml;utf8,${lY(e)}')`};
3776
3776
  `;m.div`
3777
3777
  width: 100%;
3778
3778
  `;m.div`
@@ -3852,7 +3852,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3852
3852
  color: ${({theme:e})=>e.palette.base.shade2};
3853
3853
  border-radius: 4px;
3854
3854
  padding: 4px 8px 2px 0px;
3855
- `;m(x1)`
3855
+ `;m(b1)`
3856
3856
  font-size: 18px;
3857
3857
  width: 1.25rem;
3858
3858
  height: 1.25rem;
@@ -3868,7 +3868,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3868
3868
  align-items: center;
3869
3869
  `;m.span`
3870
3870
  font-size: 14px;
3871
- `;m(y1)`
3871
+ `;m(h1)`
3872
3872
  font-size: 16px;
3873
3873
  margin-right: 5px;
3874
3874
  `;m(Se)``;m.div`
@@ -3887,14 +3887,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3887
3887
  border-radius: 0rem 0.75rem 0.75rem 0.75rem;
3888
3888
  height: 7.5rem;
3889
3889
  padding: 0.75rem;
3890
- `;var KI={aspectRatioButton:"eo",aspectRatioButton__icon:"ro"};var pY=e=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M8.125 13.578v-4.36c0-.456.352-.843.844-.843h4.36c.21 0 .421.21.421.422v.844c0 .246-.21.421-.422.421H9.813v3.516c0 .246-.211.422-.422.422h-.844a.406.406 0 01-.422-.422zM18.25 8.797c0-.211.176-.422.422-.422h4.36c.456 0 .843.387.843.844v4.36c0 .245-.21.421-.422.421h-.844a.406.406 0 01-.422-.422v-3.515h-3.515a.406.406 0 01-.422-.422v-.844zm5.203 9.703c.211 0 .422.21.422.422v4.36a.833.833 0 01-.844.843h-4.36a.406.406 0 01-.421-.422v-.844c0-.21.176-.422.422-.422h3.515v-3.515c0-.211.176-.422.422-.422h.844zm-9.703 5.203c0 .246-.21.422-.422.422h-4.36c-.491 0-.843-.352-.843-.844v-4.36c0-.21.176-.421.422-.421h.844c.21 0 .421.21.421.422v3.515h3.516c.211 0 .422.211.422.422v.844z"}));function Kd({pageId:e="*",componentId:t="*",defaultIconClassName:o,imgIconClassName:r,onPress:n}){let i="aspect_ratio_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{className:KI.aspectRatioButton,"data-qa-anchor":a,onPress:n},J.createElement(le,{defaultIcon:()=>J.createElement(pY,{className:o}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))}var q5={remoteImageButton:"oo",closeButton__icon:"to",closeButton:"io"};var gY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),J.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
3890
+ `;var KI={aspectRatioButton:"eo",aspectRatioButton__icon:"ro"};var uY=e=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M8.125 13.578v-4.36c0-.456.352-.843.844-.843h4.36c.21 0 .421.21.421.422v.844c0 .246-.21.421-.422.421H9.813v3.516c0 .246-.211.422-.422.422h-.844a.406.406 0 01-.422-.422zM18.25 8.797c0-.211.176-.422.422-.422h4.36c.456 0 .843.387.843.844v4.36c0 .245-.21.421-.422.421h-.844a.406.406 0 01-.422-.422v-3.515h-3.515a.406.406 0 01-.422-.422v-.844zm5.203 9.703c.211 0 .422.21.422.422v4.36a.833.833 0 01-.844.843h-4.36a.406.406 0 01-.421-.422v-.844c0-.21.176-.422.422-.422h3.515v-3.515c0-.211.176-.422.422-.422h.844zm-9.703 5.203c0 .246-.21.422-.422.422h-4.36c-.491 0-.843-.352-.843-.844v-4.36c0-.21.176-.421.422-.421h.844c.21 0 .421.21.421.422v3.515h3.516c.211 0 .422.211.422.422v.844z"}));function Kd({pageId:e="*",componentId:t="*",defaultIconClassName:o,imgIconClassName:r,onPress:n}){let i="aspect_ratio_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{className:KI.aspectRatioButton,"data-qa-anchor":a,onPress:n},J.createElement(le,{defaultIcon:()=>J.createElement(uY,{className:o}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))}var q5={remoteImageButton:"oo",closeButton__icon:"to",closeButton:"io"};var yY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),J.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
3891
3891
  0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
3892
3892
  52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4
3893
3893
  256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160
3894
3894
  303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34
3895
- 0-22.58L207.6 256z`})),yr=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="close_button",{isExcluded:a,config:s,uiReference:l,accessibilityId:c}=B({pageId:e,componentId:t,elementId:i});return a?null:J.createElement(U,{className:q5.closeButton,"data-qa-anchor":c,onPress:o},J.createElement(le,{defaultIcon:()=>J.createElement(gY,{className:lo(q5.closeButton__icon,r)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var Y5={hyperLinkButton:"do"};var CY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M18.04 14.21c1.792 1.794 1.898 4.677.316 6.575-.212.281-.07.14-2.954 3.024-1.933 1.933-5.062 1.933-6.96 0-1.934-1.899-1.934-5.028 0-6.961l2.214-2.215c.246-.246.703-.07.703.281.036.387.106.984.176 1.336.035.14 0 .281-.105.387l-1.617 1.617a2.95 2.95 0 000 4.183 2.95 2.95 0 004.183 0l2.637-2.636a2.95 2.95 0 000-4.184c-.176-.21-.563-.457-.809-.562-.14-.106-.246-.282-.21-.457.034-.387.21-.774.527-1.055l.14-.14a.435.435 0 01.492-.106c.457.246.88.527 1.266.914zm5.483-5.483c1.934 1.898 1.934 5.027 0 6.96l-2.214 2.215c-.247.246-.704.07-.704-.28a15.366 15.366 0 00-.175-1.337.397.397 0 01.105-.387l1.617-1.617a2.95 2.95 0 000-4.183 2.95 2.95 0 00-4.183 0l-2.637 2.636a2.95 2.95 0 000 4.184c.176.21.563.457.809.563.14.105.246.28.21.456a1.607 1.607 0 01-.527 1.055l-.14.14a.435.435 0 01-.493.106 5.265 5.265 0 01-1.265-.914c-1.793-1.793-1.899-4.676-.317-6.574.211-.281.07-.14 2.954-3.023 1.933-1.934 5.062-1.934 6.96 0z"})),Jd=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="story_hyperlink_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{className:Y5.hyperLinkButton,onPress:n,"data-qa-anchor":a},J.createElement(le,{defaultIcon:()=>J.createElement(CY,{className:lo(Y5.hyperLinkButton,o)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var RI={impressionButton:"mo"};var bY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M10 6.5c1.938 0 3.5 1.594 3.5 3.5 0 1.938-1.563 3.5-3.5 3.5A3.494 3.494 0 016.5 10c0-.281.063-.688.156-.969.188.125.594.219.844.219.938 0 1.75-.781 1.75-1.75-.031-.219-.125-.625-.25-.844.281-.062.719-.125 1-.156zm8.875 3.063a1.142 1.142 0 010 .906C17.187 13.78 13.812 16 10 16c-3.844 0-7.219-2.219-8.906-5.531a1.142 1.142 0 010-.906C2.78 6.25 6.156 4 10 4c3.813 0 7.188 2.25 8.875 5.563zM10 14.5c3.063 0 5.906-1.719 7.406-4.5-1.5-2.781-4.343-4.5-7.406-4.5-3.094 0-5.938 1.719-7.438 4.5 1.5 2.781 4.344 4.5 7.438 4.5z"}));function Xd({pageId:e="*",componentId:t="*",reach:o=0,defaultIconClassName:r,imgIconClassName:n}){let i="story_impression_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(le,{defaultIcon:()=>J.createElement("div",{className:lo(RI.impressionButton,r),"data-qa-anchor":a},J.createElement(bY,null),J.createElement(A.BodyBold,null,o)),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:n}),defaultIconName:l.icon,configIconName:s.icon})}var ew={overflowMenuButton:"go"};var wY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:"#fff",d:"M13.688 12.25c0 .95-.774 1.688-1.688 1.688-.95 0-1.688-.739-1.688-1.688 0-.914.739-1.688 1.688-1.688a1.71 1.71 0 011.688 1.688zm4.218-1.688c.914 0 1.688.774 1.688 1.688 0 .95-.774 1.688-1.688 1.688-.949 0-1.687-.739-1.687-1.688 0-.914.738-1.688 1.687-1.688zm-11.812 0c.914 0 1.687.774 1.687 1.688 0 .95-.773 1.688-1.687 1.688-.95 0-1.688-.739-1.688-1.688 0-.914.739-1.688 1.688-1.688z"})),Rd=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="overflow_menu",{config:a,defaultConfig:s,uiReference:l,themeStyles:c,accessibilityId:p}=B({pageId:e,componentId:t,elementId:i});return J.createElement(U,{style:c,"data-qa-anchor":p,className:ew.overflowMenuButton,onPress:o},J.createElement(le,{defaultIcon:()=>J.createElement(wY,{className:r}),imgIcon:()=>J.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var _Y=t=>{var e=I(t,[]);return J.createElement("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),J.createElement("path",{d:"M10.7752 12.1C11.2221 12.1 11.6002 12.4782 11.6002 12.925V21.175C11.6002 21.6563 11.2221 22 10.7752 22H8.0252C7.54395 22 7.2002 21.6563 7.2002 21.175V12.925C7.2002 12.4782 7.54395 12.1 8.0252 12.1H10.7752ZM9.4002 20.625C9.84707 20.625 10.2252 20.2813 10.2252 19.8C10.2252 19.3532 9.84707 18.975 9.4002 18.975C8.91895 18.975 8.5752 19.3532 8.5752 19.8C8.5752 20.2813 8.91895 20.625 9.4002 20.625ZM20.4002 7.2188C20.4002 8.66255 19.5064 9.48755 19.2314 10.45H22.7377C23.8721 10.45 24.7658 11.4125 24.7658 12.4782C24.8002 13.0969 24.5252 13.75 24.1127 14.1625C24.4564 14.9532 24.3877 16.0875 23.8033 16.8782C24.0783 17.7719 23.8033 18.8719 23.2189 19.4563C23.3908 20.075 23.3221 20.5907 23.0127 21.0032C22.3252 22 20.5721 22 19.0939 22H18.9908C17.3408 22 16.0002 21.4157 14.9002 20.9344C14.3502 20.6938 13.6283 20.3844 13.0783 20.3844C12.8721 20.35 12.7002 20.1782 12.7002 19.9719V12.6157C12.7002 12.5125 12.7346 12.4094 12.8033 12.3063C14.1783 10.9657 14.7627 9.5563 15.8627 8.42192C16.3783 7.9063 16.5502 7.15005 16.7564 6.3938C16.8939 5.77505 17.2033 4.40005 17.9252 4.40005C18.7502 4.40005 20.4002 4.67505 20.4002 7.2188Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#63A1FF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},W5=_Y;var ow={saveButton:"P"};function ia({pageId:e="*",componentId:t="*",onPress:o,className:r}){let n="save_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:n});return s?null:J.createElement(U,{className:lo(ow.saveButton,r),"data-qa-anchor":i,style:S(d({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var Q5={shareStoryButton:"Q",shareStoryIcon:"po",shareStoryButton__image:"fo"};var kY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"14",fill:"none",viewBox:"0 0 15 14"},e),J.createElement("path",{fill:"currentColor",d:"M6.813.219c.125-.157.375-.157.53 0l6.532 6.531a.36.36 0 010 .531l-6.531 6.532c-.157.156-.407.156-.532 0l-.625-.594c-.156-.156-.156-.406 0-.531l4.844-4.876H.375A.361.361 0 010 7.438v-.875a.38.38 0 01.375-.375h10.656L6.187 1.345c-.156-.125-.156-.375 0-.532L6.813.22z"})),ec=({pageId:e="*",componentId:t="*",community:o,onClick:r})=>{let n="share_story_button",{config:i,isExcluded:a,accessibilityId:s}=B({pageId:e,componentId:t,elementId:n});return a?null:J.createElement(U,{className:lo(Q5.shareStoryButton),"data-qa-anchor":s,onPress:r,"data-hideAvatar":i==null?void 0:i.hide_avatar},!(i!=null&&i.hide_avatar)&&J.createElement(Dr,{pageId:e,community:o,componentId:t,className:Q5.shareStoryButton__image}),J.createElement(A.BodyBold,null,(i==null?void 0:i.text)||"Share story"),J.createElement(kY,null))};var tc={speakerButton:"uo",speakerButton__icon:"bo"};var AY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"#fff",d:"M15.121 9.781c.527-.527 1.441-.176 1.441.598v11.777c0 .774-.914 1.125-1.44.598l-3.13-3.129H8.406c-.492 0-.844-.352-.844-.844V13.72c0-.457.352-.844.844-.844h3.586l3.13-3.094zm9.316 6.469c0 2.25-1.16 4.29-3.023 5.52-.422.246-.95.105-1.16-.282a.845.845 0 01.246-1.16 4.807 4.807 0 002.25-4.078 4.792 4.792 0 00-2.25-4.043.845.845 0 01-.246-1.16.824.824 0 011.16-.281c1.863 1.23 3.023 3.27 3.023 5.484zm-4.992-2.672c.985.527 1.617 1.582 1.617 2.672 0 1.125-.632 2.18-1.617 2.707-.422.246-.914.105-1.16-.316a.869.869 0 01.352-1.16c.422-.247.738-.704.738-1.231 0-.492-.316-.95-.738-1.195a.87.87 0 01-.352-1.16c.246-.422.738-.563 1.16-.317z"})),BY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"#fff",d:"M25.781 22.344a.467.467 0 01.094.687l-.594.782c-.187.218-.5.28-.718.093L6.188 9.688A.468.468 0 016.093 9l.625-.781a.468.468 0 01.687-.094l4.75 3.656 1.563-1.531c.469-.469 1.281-.156 1.281.531v3.188l2.469 1.937a1.234 1.234 0 00-.625-.969.773.773 0 01-.313-1.03c.219-.376.657-.5 1.032-.282A2.739 2.739 0 0119 16c0 .344-.094.625-.188.938l1.22.937c.28-.563.468-1.188.468-1.875a4.26 4.26 0 00-2-3.594.75.75 0 01-.219-1.031c.219-.344.688-.469 1.032-.25C20.968 12.188 22 14.031 22 16a5.727 5.727 0 01-.75 2.813l1.188.937c.656-1.125 1.03-2.406 1.03-3.719 0-2.468-1.218-4.781-3.312-6.125-.343-.219-.437-.687-.218-1.062A.795.795 0 0121 8.625c2.5 1.656 4 4.406 4 7.375 0 1.688-.5 3.281-1.375 4.656l2.156 1.688zM7 13.75c0-.25.125-.469.344-.625L15 19.031v2.219c0 .688-.813 1-1.281.531L10.938 19H7.75a.722.722 0 01-.75-.75v-4.5z"}));function oc({isMuted:e,pageId:t="*",componentId:o="*",defaultIconClassName:r,imgIconClassName:n,onPress:i}){let a="speaker_button",{accessibilityId:s,config:l,defaultConfig:c,isExcluded:p,uiReference:u}=B({pageId:t,componentId:o,elementId:a});return p?null:J.createElement(U,{className:lo(tc.speakerButton),onPress:i},J.createElement(le,{"data-qa-anchor":s,defaultIcon:()=>e?J.createElement(BY,{className:tc.speakerButton__icon}):J.createElement(AY,{className:tc.speakerButton__icon}),imgIcon:()=>J.createElement("img",{src:l.icon,alt:u,className:lo(n)}),defaultIconName:c.icon,configIconName:l.icon}))}function LY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),J.createElement("path",{d:"M9.36823 15.4777C10.062 16.1767 10.7245 16.1715 11.4234 15.4777L12.2059 14.6953C12.2789 14.6223 12.3415 14.6014 12.4354 14.6014H13.5412C14.5271 14.6014 14.9966 14.1319 14.9966 13.1461V12.0402C14.9966 11.9463 15.0227 11.8785 15.0905 11.8107L15.8729 11.023C16.5719 10.3293 16.5667 9.66681 15.8729 8.97305L15.0905 8.19061C15.0227 8.11758 14.9966 8.05499 14.9966 7.9611V6.85525C14.9966 5.86938 14.5271 5.39991 13.5412 5.39991H12.4354C12.3415 5.39991 12.2737 5.37383 12.2059 5.30602L11.4234 4.52358C10.7245 3.82461 10.062 3.82461 9.36823 4.5288L8.58579 5.30602C8.51798 5.37383 8.45017 5.39991 8.35628 5.39991H7.25043C6.26456 5.39991 5.79509 5.85894 5.79509 6.85525V7.9611C5.79509 8.05499 5.76901 8.1228 5.7012 8.19061L4.91876 8.97305C4.21979 9.66681 4.225 10.3293 4.91876 11.023L5.7012 11.8107C5.76901 11.8785 5.79509 11.9463 5.79509 12.0402V13.1461C5.79509 14.1319 6.26456 14.6014 7.25043 14.6014H8.35628C8.45017 14.6014 8.51276 14.6223 8.58579 14.6953L9.36823 15.4777ZM9.52993 12.6714C9.34736 12.6714 9.20131 12.6036 9.08655 12.4836L7.41735 10.6162C7.32867 10.5223 7.28173 10.3919 7.28173 10.2615C7.28173 9.94849 7.50603 9.72419 7.82943 9.72419C8.00679 9.72419 8.13719 9.78157 8.25195 9.90676L9.50907 11.3099L12.0233 7.72115C12.1485 7.5438 12.2841 7.47077 12.4928 7.47077C12.8162 7.47077 13.0457 7.69507 13.0457 7.99761C13.0457 8.10193 13.004 8.23234 12.9257 8.34188L9.9994 12.4471C9.87942 12.6036 9.72293 12.6714 9.52993 12.6714Z"}))}var K5=LY;function FY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M20.332 5.254a2.228 2.228 0 010 3.164l-2.637 2.637L16.5 12.25l-8.578 8.578-4.008.422H3.81A.804.804 0 013 20.336l.422-4.008L12 7.75l1.195-1.195 2.637-2.637a2.3 2.3 0 011.582-.668 2.3 2.3 0 011.582.668l1.336 1.336zM7.148 19.21l8.157-8.121 1.09-1.09-2.145-2.145-1.09 1.09-8.12 8.157-.247 2.355 2.355-.246zM19.137 7.223a.552.552 0 000-.774L17.8 5.113a.6.6 0 00-.387-.176.6.6 0 00-.387.176L15.445 6.66l2.145 2.145 1.547-1.582z"}))}var J5=FY;function DY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M19.313 6.063c.28 0 .562.28.562.562v.563a.578.578 0 01-.563.562h-.562l-.773 11.918c-.036.879-.809 1.582-1.688 1.582H7.676c-.88 0-1.653-.703-1.688-1.582L5.25 7.75h-.563a.555.555 0 01-.562-.563v-.562c0-.281.246-.563.563-.563H7.57l1.196-1.968c.28-.457.914-.844 1.441-.844h3.55c.528 0 1.161.387 1.442.844l1.196 1.968h2.918zm-9.106-1.125l-.668 1.125h4.887l-.668-1.125h-3.551zm6.082 14.625l.738-11.813H6.937l.739 11.813h8.613z"}))}var aa=DY;function VY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill||"currentColor",d:"M14.813 6.063c1.23 0 2.566-.422 3.832-.985C19.735 4.621 21 5.43 21 6.625v8.438c0 .597-.316 1.124-.773 1.44-.95.599-2.461 1.372-4.536 1.372-2.39 0-3.972-1.125-5.695-1.125-1.969 0-3.164.422-4.465 1.02v2.918a.578.578 0 01-.562.562h-.563a.555.555 0 01-.562-.563V6.415C3.316 6.133 3 5.57 3 4.938c0-.95.809-1.723 1.793-1.653A1.626 1.626 0 016.34 4.762c0 .035.035.14.035.176 0 .175-.07.421-.105.562a7.451 7.451 0 012.847-.563c2.39 0 3.973 1.125 5.695 1.125zm4.5 9V6.624c-1.125.527-2.989 1.125-4.5 1.125-2.11 0-3.586-1.125-5.696-1.125-1.476 0-2.847.598-3.586 1.125v8.156c1.09-.492 2.953-.844 4.465-.844 2.11 0 3.586 1.126 5.695 1.126 1.477 0 2.848-.563 3.621-1.125z"}))}var X5=VY;function OY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M14.04 10.21c1.792 1.794 1.898 4.677.316 6.575-.211.281-.07.14-2.954 3.024-1.933 1.933-5.062 1.933-6.96 0-1.934-1.899-1.934-5.028 0-6.961l2.214-2.215c.246-.246.703-.07.703.281.036.387.106.984.176 1.336.035.14 0 .281-.105.387l-1.617 1.617a2.95 2.95 0 000 4.184 2.95 2.95 0 004.183 0l2.637-2.637a2.95 2.95 0 000-4.184c-.176-.21-.563-.457-.809-.562-.14-.106-.246-.282-.21-.457.034-.387.21-.774.527-1.055l.14-.14a.435.435 0 01.492-.106c.457.246.88.527 1.266.914zm5.483-5.483c1.934 1.898 1.934 5.027 0 6.96l-2.214 2.215c-.247.246-.704.07-.704-.28a15.366 15.366 0 00-.175-1.337.397.397 0 01.105-.387l1.617-1.617a2.95 2.95 0 000-4.183 2.95 2.95 0 00-4.183 0l-2.637 2.636a2.95 2.95 0 000 4.184c.176.21.563.457.809.563.14.105.246.28.21.457a1.607 1.607 0 01-.527 1.054l-.14.14a.435.435 0 01-.493.106 5.266 5.266 0 01-1.265-.914c-1.793-1.793-1.899-4.676-.317-6.574.211-.281.07-.14 2.954-3.023 1.933-1.934 5.062-1.934 6.96 0z"}))}var R5=OY;function HY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("path",{fill:"#898E9E",d:"M4.375 8.875A.361.361 0 014 8.5v-1a.38.38 0 01.375-.375h7.25c.188 0 .375.188.375.375v1a.38.38 0 01-.375.375h-7.25zM15.75 8A7.749 7.749 0 018 15.75 7.749 7.749 0 01.25 8 7.749 7.749 0 018 .25 7.749 7.749 0 0115.75 8zm-1.5 0c0-3.438-2.813-6.25-6.25-6.25A6.248 6.248 0 001.75 8 6.228 6.228 0 008 14.25 6.248 6.248 0 0014.25 8z"}))}var Ll=HY;var Fl={hyperlink:"vo",hyperlinkIcon:"xo",hyperlinkText:"wo",text:"yo"};var Jn=r=>{var n=r,{href:e,children:t}=n,o=I(n,["href","children"]);return J.createElement("a",d({href:e,className:Fl.hyperlink},o),J.createElement(R5,{className:Fl.hyperlinkIcon}),J.createElement("div",{className:Fl.hyperlinkText},J.createElement("span",{className:Fl.text},t)))};var dw={editCancelButton:"ko"};var Xn=({pageId:e="*",componentId:t="*",className:o,onPress:r=()=>{}})=>{let n="edit_cancel_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:n});return s?null:J.createElement(U,{"data-qa-anchor":i,className:lo(dw.editCancelButton,o),style:S(d({},l),{backgroundColor:a.background_color}),onPress:r},J.createElement(A.Body,null,a.cancel_button_text))};var GY=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),J.createElement("path",{d:"M23.1255 13.1312C22.385 12.4069 21.3806 12 20.3333 12C19.2861 12 18.2817 12.4069 17.5412 13.1312C16.8006 13.8555 16.3846 14.8378 16.3846 15.8621C16.3846 16.8864 16.8006 17.8687 17.5412 18.593C18.2817 19.3172 19.2861 19.7241 20.3333 19.7241C21.3806 19.7241 22.385 19.3172 23.1255 18.593C23.866 17.8687 24.2821 16.8864 24.2821 15.8621C24.2821 14.8378 23.866 13.8555 23.1255 13.1312Z",fill:"white"}),J.createElement("path",{d:"M20.3333 21.931C16.2831 21.931 13 23.7848 13 26.069V28H27.6667V26.069C27.6667 23.7848 24.3836 21.931 20.3333 21.931Z",fill:"white"})),ic=GY;var Rn={editorPlaceholder:"jo",editorParagraph:"zo",editorContainer:"V",editorEditableContent:"Io",editorLink:"Xo",commentInput__mentionInterceptor:"Yo"};function Dl(e){return e.type==="text"}function tu(e){return e.type==="mention"}function ou(e){return e.type==="autolink"}function ru(e){return e.type==="link"}function ZY(){return {children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}}function qY(){return {textStyle:"",children:[],direction:"ltr",format:"",indent:0,type:"paragraph",version:1,textFormat:0}}function eu(e){return {detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}}function YY({text:e,mention:t}){return {detail:0,format:0,mode:"normal",style:"",text:e.substring(t.index,t.index+t.length+1),type:"mention",version:1,data:{displayName:t.displayName||t.userId,userId:t.userId}}}function WY({url:e,title:t}){return {children:[eu(t)],format:"",direction:"ltr",indent:0,type:"link",version:1,url:e,rel:null,target:null,title:null}}function QY(e){return (e==null?void 0:e.type)==="url"}function Vl(e){var c,p;let t=ZY(),o=e.data.text.split(`
3896
- `),r=(p=(c=e.metadata)==null?void 0:c.mentioned)!=null?p:[],n=pw.find(e.data.text).filter(u=>u.type==="url").map(u=>({index:u.start,length:u.end-u.start+1,href:u.href,value:u.value,type:"url"})),i={},a=[...r,...n].sort((u,f)=>u.index-f.index).reduce((u,f)=>i[f.index]?u:(i[f.index]=!0,[...u,f]),[]),s=0,l=0;for(let u=0;u<o.length;u+=1){let f=qY(),g=0,h=o[u];for(;g<h.length;){let C=a[s];if(s<a.length&&C.index===l){let y=a[s];QY(y)?(f.children.push(WY({title:y.value,url:y.href})),g+=y.value.length,l+=y.value.length):(f.children.push(YY({text:e.data.text,mention:y})),g+=y.length+1,l+=y.length+1),s+=1;}else {let y=s<a.length?C.index:l+h.length,x=h.slice(g,y-l+g);x&&f.children.push(eu(x)),g+=x.length,l+=x.length;}}if(g<h.length){let C=h.slice(g);C&&f.children.push(eu(C)),l+=C.length;}l+=1,t.children.push(f);}return {root:t}}function nu(e){let t=e.getEditorState().toJSON();return KY(t)}function KY(e){let t=[],o=e.root.children,r=[],n=!1,i=[],a=0;o.forEach(l=>{let c=l.children,p=[];c.forEach(u=>{if(Dl(u)&&(p.push(u.text),a+=u.text.length),(ru(u)||ou(u))&&u.children.forEach(f=>{Dl(f)&&(p.push(f.text),a+=f.text.length);}),tu(u)){let f=u.text.charAt(0)==="@";if(u.data.userId==="all")r.push({index:a,length:u.text.length,type:"channel"}),n=!0;else {let g=f?u.text.length-1:u.text.length;r.push({index:a,length:g,type:"user",userId:u.data.userId,displayName:u.data.displayName}),i.push(u.data.userId);}p.push(u.text),a+=u.text.length;}}),a+=1,t.push(p.join(""));});let s=[];return i.length>0&&s.push({type:"user",userIds:i}),n&&s.push({type:"channel"}),{mentioned:r,text:t.join(`
3897
- `),mentionees:s}}var JY={ltr:"ltr",rtl:"rtl"},iu=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:d(d({},JY),t),onError(n){throw n},nodes:o,editorState:r});var uw={mention:"Ro"};function eW({domNode:e,data:t}){let o=e.textContent;return o!==null?{node:Ol({text:o,data:t})}:null}var Os=class e extends TextNode{static getType(){return "mention"}static clone(t){return new e({data:t.__data,text:t.__text,key:t.__key})}static importJSON(t){let o=Ol({text:t.text,data:t.data});return o.setTextContent(t.text),o.setFormat(t.format),o.setDetail(t.detail),o.setMode(t.mode),o.setStyle(t.style),o}constructor({text:t,data:o,key:r}){super(t,r),this.__data=o;}exportJSON(){return S(d({},super.exportJSON()),{data:this.__data,type:"mention",version:1})}createDOM(t){let o=super.createDOM(t);return o.className=uw.mention,o.setAttribute("data-qa-anchor","mention-preview"),o}exportDOM(){let t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.setAttribute("data-mention-data",JSON.stringify(this.__data)),t.textContent=this.__text,{element:t}}isSegmented(){return !1}static importDOM(){return {span:t=>t.hasAttribute("data-lexical-mention")?{conversion:o=>{var r;return eW({domNode:o,data:JSON.parse((r=o.getAttribute("data-mention-data"))!=null?r:"{}")})},priority:1}:null}}isTextEntity(){return !0}isToken(){return !0}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}};function Ol({text:e,data:t}){return new Os({data:t,text:e}).setMode("segmented").toggleDirectionless()}var rW=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,nW=[e=>{let t=rW.exec(e);if(t===null)return null;let o=t[0];return {index:t.index,length:o.length,text:o,url:o.startsWith("http")?o:`https://${o}`}}],au=()=>J.createElement(AutoLinkPlugin,{matchers:nW});var su=()=>J.createElement(LinkPlugin,{validateUrl:tx});var gw=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,fW="\\b[A-Z][^\\s"+gw+"]",gW={NAME:fW,PUNCTUATION:gw},yw=gW.PUNCTUATION,mu=["@"].join(""),hw="[^"+mu+yw+"\\s]",yW="(?:\\.[ |$]| |["+yw+"]|)",hW=75,CW=new RegExp("(^|\\s|\\()(["+mu+"]((?:"+hw+yW+"){0,"+hW+"}))$"),vW=50,xW=new RegExp("(^|\\s|\\()(["+mu+"]((?:"+hw+"){0,"+vW+"}))$");function bW(e,t){let o=CW.exec(e);if(o===null&&(o=xW.exec(e)),o!==null){let r=o[1],n=o[3];if(n.length>=t)return {leadOffset:o.index+r.length,matchingString:n,replaceableString:o[2]}}return null}function IW(e){return bW(e,0)}var lu=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function du({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i}){let[a]=useLexicalComposerContext(),s=useMemo(()=>e.map(p=>new lu({data:p,dataId:t(p)})),[e]),l=useCallback((p,u,f)=>{a.update(()=>{let g=r(p.data,p.key),h=$createTextNode(" ");u&&($insertNodes([h]),h.insertBefore(u),u.replace(g)),h.select(),f();});},[a]),c=useCallback(p=>IW(p),[a]);return J.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:l,triggerFn:c,options:s,menuRenderFn:n,commandPriority:i})}var sc=({displayName:e,limit:t,enabled:o=!0})=>{let[r,n]=useState([]),[i,a]=useState(!1),[s,l]=useState(!1),[c,p]=useState(!1),u=useRef(null),f=useRef(null),g=()=>{u.current&&(u.current(),p(!0));};return useEffect(()=>{if(f.current&&(f.current(),f.current=null),!o)return;let h=UserRepository.searchUserByDisplayName({displayName:e,limit:t},C=>{l(C.hasNextPage||!1),a(C.loading),u.current=C.onNextPage||null,n(C.data);});return f.current=h,()=>{var C;(C=f.current)==null||C.call(f),f.current=null;}},[e,t,o]),{users:r,isLoading:i,hasMore:s,loadMore:g,loadMoreHasBeenCalled:c}};var cu=({communityId:e,displayName:t,limit:o,enabled:r=!0})=>{let[n,i]=useState([]),[a,s]=useState(!1),[l,c]=useState(!1),[p,u]=useState(!1),f=useRef(null),g=useRef(null),h=()=>{f.current&&(f.current(),u(!0));};return useEffect(()=>{if(!r)return;g.current&&(g.current(),g.current=null);let C=CommunityRepository.Membership.searchMembers({communityId:e,search:t,limit:o,sortBy:"displayName",includeDeleted:!1},y=>{c(y.hasNextPage||!1),s(y.loading),f.current=y.onNextPage||null,i(y.data);});return g.current=C,()=>{var y;(y=g.current)==null||y.call(g),g.current=null;}},[e,t,r]),{members:n,isLoading:a,hasMore:l,loadMore:h,loadMoreHasBeenCalled:p}};var Hs={userAvatar__text:"Ao",userAvatar__placeholder__path:"Mo",userAvatar__placeholder__rect:"So",userAvatar__placeholder:"Co",userAvatar__img:"Eo"};var xw=o=>{var r=o,{className:e}=r,t=I(r,["className"]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",className:lo(Hs.userAvatar__placeholder,e)},t),J.createElement("rect",{width:"64",height:"64",rx:"32",className:Hs.userAvatar__placeholder__rect}),J.createElement("path",{d:"M37.0007 21.0099C35.8159 19.851 34.2089 19.2 32.5333 19.2C30.8576 19.2 29.2506 19.851 28.0658 21.0099C26.881 22.1687 26.2153 23.7405 26.2153 25.3793C26.2153 27.0182 26.881 28.5899 28.0658 29.7488C29.2506 30.9076 30.8576 31.5586 32.5333 31.5586C34.2089 31.5586 35.8159 30.9076 37.0007 29.7488C38.1856 28.5899 38.8512 27.0182 38.8512 25.3793C38.8512 23.7405 38.1856 22.1687 37.0007 21.0099Z",className:Hs.userAvatar__placeholder__path}),J.createElement("path",{d:"M32.5333 35.0897C26.0529 35.0897 20.7999 38.0557 20.7999 41.7104V44.8H44.2666V41.7104C44.2666 38.0557 39.0137 35.0897 32.5333 35.0897Z",className:Hs.userAvatar__placeholder__path}))};function Xo({pageId:e="*",componentId:t="*",userId:o,className:r}){var s;let n="user_avatar",{user:i}=Ae({userId:o}),a=ct({fileId:(s=i==null?void 0:i.avatar)==null?void 0:s.fileId});return i==null||o==null||a==null?J.createElement(xw,{className:r}):J.createElement("object",{"data-qa-anchor":`${e}/${t}/${n}`,data:a,type:"image/png",className:lo(Hs.userAvatar__img,r)},J.createElement(xw,{className:r}))}var Us={userMentionItem__item:"x",allMentionItem__item:"w",userMentionItem__avatar:"Uo",allMentionItem__atSign:"qo",userMentionItem__displayName:"Bo",allMentionItem__displayName:"Fo",userMentionItem__rightPane:"Ho",userMentionItem__brandIcon:"Lo"};function pu({pageId:e="*",componentId:t="*",option:o,isSelected:r,onClick:n,onMouseEnter:i}){let{user:a}=Ae({userId:o.data.userId});return J.createElement("li",{key:o.key,tabIndex:-1,"data-is-selected":r,"data-qa-ancgor":`${e}/${t}/mention_item`,className:Us.userMentionItem__item,ref:o.setRefElement,role:"option","aria-selected":r,onMouseEnter:i,onClick:n},J.createElement("div",null,J.createElement(Xo,{pageId:e,componentId:t,className:Us.userMentionItem__avatar,userId:o.data.userId})),J.createElement("div",{className:Us.userMentionItem__rightPane},J.createElement("p",{className:Us.userMentionItem__displayName},a==null?void 0:a.displayName),a!=null&&a.isBrand?J.createElement(Gi,{className:Us.userMentionItem__brandIcon}):null))}var kW=({node:e,onIntersect:t,options:o})=>{useEffect(()=>{if(e==null)return;let r=new IntersectionObserver(n=>{var i;return ((i=n[0])==null?void 0:i.isIntersecting)&&t()},o);return r.observe(e),()=>r.disconnect()},[e,t,o]);},Ro=kW;var qW=e=>{let[t,o]=useState(null),{community:r,isLoading:n}=No({communityId:e}),i=useMemo(()=>!!e&&!n&&!(r!=null&&r.isPublic),[e,n,r]),{members:a,hasMore:s,isLoading:l,loadMore:c}=cu({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:f,isLoading:g}=sc({displayName:t||"",limit:10,enabled:!i}),h=_=>{o(_);},C=useMemo(()=>e&&n?[]:i?a.map(({user:_,userId:M})=>({userId:(_==null?void 0:_.userId)||M,displayName:_==null?void 0:_.displayName})):p.map(({displayName:_,userId:M})=>({userId:M,displayName:_})),[p,a,i,n]),y=useMemo(()=>i?s:u,[i,s,u]),x=()=>{v||!y||(i?c():f());},v=useMemo(()=>i?l:g,[l,g,i]);return {suggestions:C,queryString:t,onQueryChange:h,loadMore:x,hasMore:y,isLoading:v}},YW=[AutoLinkNode,LinkNode,Os],js=forwardRef(({pageId:e="*",componentId:t="*",communityId:o,value:r,onChange:n,maxLines:i=10,placehoder:a,mentionContainer:s},l)=>{var k;let[c,p]=useState(null),u="comment_input",{themeStyles:f,uiReference:g,config:h,accessibilityId:C}=B({pageId:e,componentId:t,elementId:u}),{onQueryChange:y,suggestions:x,isLoading:v,loadMore:_,hasMore:M}=qW(o);Ro({onIntersect:()=>{v===!1&&_();},node:c,options:{threshold:.7}});let b=J.useRef(null),w=()=>{var N;(N=b.current)==null||N.update(()=>{$getRoot().clear();}),setTimeout(()=>{var F;(F=b.current)==null||F.blur();},500);};useImperativeHandle(l,()=>({clearEditorState:w}));let T=iu({namespace:g,theme:{placeholder:Rn.editorPlaceholder,paragraph:Rn.editorParagraph,link:Rn.editorLink},nodes:YW});return J.createElement(LexicalComposer,{initialConfig:d(d({},T),(k=r==null?void 0:r.data)!=null&&k.text?{editorState:JSON.stringify(Vl(r))}:{})},J.createElement("div",{className:Rn.editorContainer,style:{"--asc-max-lines":i}},J.createElement(RichTextPlugin,{contentEditable:J.createElement(ContentEditable,{"data-qa-anchor":C,className:Rn.editorEditableContent}),placeholder:a?J.createElement("div",{className:Rn.editorPlaceholder},a):null,ErrorBoundary:LexicalErrorBoundary}),J.createElement(OnChangePlugin,{onChange:(N,F)=>{n(nu(F));}}),J.createElement(HistoryPlugin,null),J.createElement(AutoFocusPlugin,null),J.createElement(su,null),J.createElement(au,null),J.createElement(EditorRefPlugin,{editorRef:b}),J.createElement(du,{suggestions:x,getSuggestionId:N=>N.userId,onQueryChange:y,$createNode:N=>Ol({text:`@${(N==null?void 0:N.displayName)||""}`,data:N}),menuRenderFn:(N,{options:F,selectedIndex:Z,setHighlightedIndex:$,selectOptionAndCleanUp:G})=>!s||F.length===0?null:BW.createPortal(J.createElement(J.Fragment,null,F.map((O,ee)=>J.createElement(pu,{isSelected:Z===ee,onClick:()=>{$(ee),G(O);},onMouseEnter:()=>{$(ee);},key:O.key,option:O})),M&&J.createElement("div",{ref:O=>p(O),className:Rn.commentInput__mentionInterceptor})),s),commandPriority:COMMAND_PRIORITY_HIGH})))});var Ao={commentComposer:"To",commentComposer__top:"Do",commentComposer__mentionContainer:"Go",commentComposer__container:"Jo",commentComposer__avatar:"Ko",commentComposer__button:"y",commentComposer__input:"No",commentComposer__replyContainer:"Oo",commentComposer__replyContainer__text:"Po",commentComposer__replyContainer__username:"Qo",commentComposer__replyContainer__closeButton:"Vo",commentComposer__disableContainer:"Wo"};var JW=()=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},J.createElement("path",{fill:"currentColor",d:"M15.5 8c.813 0 1.5.688 1.5 1.5v7a1.5 1.5 0 01-1.5 1.5h-11A1.48 1.48 0 013 16.5v-7A1.5 1.5 0 014.5 8h1V6.5C5.5 4.031 7.5 2 10 2c2.5.031 4.5 2.063 4.5 4.563V8h1zM7 6.5V8h6V6.5c0-1.625-1.375-3-3-3-1.656 0-3 1.375-3 3zm8.5 10v-7h-11v7h11z"})),dc=({pageId:e="*",referenceId:t,referenceType:o,replyTo:r,onCancelReply:n,shouldAllowCreation:i=!0,community:a})=>{var _,M;let s=Oe().currentUserId,{user:l}=Ae({userId:s}),c=ct({fileId:(_=l==null?void 0:l.avatar)==null?void 0:_.fileId,imageSize:"small"}),p=useRef(null),u=useRef(null),f="comment_composer_bar",g=useRef(null),[h,C]=useState(0),[y,x]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:v}=useMutation({mutationFn:w=>P(void 0,[w],function*({params:b}){let T=r?r.commentId:void 0;yield CommentRepository.createComment(S(d({referenceId:r?r.referenceId:t,referenceType:o,parentId:T},b),{mentionees:b.mentionees}));}),onError:b=>{},onSuccess:()=>{var b;x({data:{text:""},mentionees:[],metadata:{}}),(b=p.current)==null||b.clearEditorState(),n();}});return i?J.createElement("div",{className:Ao.commentComposer},J.createElement("div",{className:Ao.commentComposer__top},J.createElement("div",{className:Ao.commentComposer__mentionContainer,ref:g}),r&&J.createElement("div",{className:Ao.commentComposer__replyContainer,style:{"--asc-reply-container-offset-bottom":`${h}px`}},J.createElement("div",{"data-qa-anchor":`${e}/${f}/comment_composer_reply_text`,className:Ao.commentComposer__replyContainer__text},J.createElement("span",null,"Replying to "),J.createElement("span",{className:Ao.commentComposer__replyContainer__username},r==null?void 0:r.userId)),J.createElement(jm,{onClick:n,className:Ao.commentComposer__replyContainer__closeButton}))),J.createElement("div",{className:Ao.commentComposer__container},J.createElement("div",{className:Ao.commentComposer__avatar},J.createElement(fr,{pageId:e,componentId:f,avatarUrl:c,defaultImage:J.createElement(ic,null)})),J.createElement("div",{className:Ao.commentComposer__input,ref:u,"data-qa-anchor":`${e}/${f}/comment_composer`},J.createElement(js,{ref:p,mentionContainer:g==null?void 0:g.current,onChange:({text:b,mentioned:w,mentionees:T})=>{x({data:{text:b},mentionees:T,metadata:{mentioned:w}});},targetType:o,targetId:t,value:y,placehoder:"Say something nice...",communityId:a==null?void 0:a.communityId})),J.createElement(U,{"data-qa-anchor":`${e}/${f}/comment_composer_post`,isDisabled:!((M=y==null?void 0:y.data)!=null&&M.text),className:Ao.commentComposer__button,onPressStart:()=>v({params:y})},J.createElement(A.Body,null,"Post")))):J.createElement("div",{className:Ao.commentComposer__disableContainer},J.createElement(JW,null),J.createElement(A.Body,null,"Comments are disabled for this story"))};var cc={moderatorBadge:"Zo",moderatorBadge__icon:"_o",moderatorBadge__text:"et"};var RW=e=>J.createElement("svg",d({width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M7.57031 1.3125C7.85156 1.4375 8.03906 1.70312 8.03906 2C8.03906 5.46875 5.91406 7.39062 4.57031 7.95312C4.38281 8.03125 4.17969 8.03125 3.99219 7.95312C2.32031 7.25 0.539062 5.10938 0.539062 2C0.539062 1.70312 0.710938 1.4375 0.992188 1.3125L3.99219 0.0625C4.07031 0.03125 4.19531 0.015625 4.28906 0.015625C4.36719 0.015625 4.49219 0.03125 4.57031 0.0625L7.57031 1.3125ZM6.83594 3.09375C6.92969 3 6.92969 2.84375 6.83594 2.75L6.47656 2.39062C6.38281 2.29688 6.22656 2.29688 6.13281 2.39062L3.78906 4.73438L2.67969 3.64062C2.58594 3.54688 2.42969 3.54688 2.33594 3.64062L1.97656 4C1.88281 4.09375 1.88281 4.25 1.97656 4.34375L3.60156 5.96875C3.69531 6.07812 3.86719 6.07812 3.96094 5.96875L6.83594 3.09375Z"}));function Gs({pageId:e="*",componentId:t="*"}){let o="moderator_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement("div",{className:cc.moderatorBadge,style:l,"data-qa-anchor":r},J.createElement(RW,{className:cc.moderatorBadge__icon}),J.createElement("div",{className:cc.moderatorBadge__text},n.text))}var _w={timestamp:"rt"};er.extend(rQ);er.extend(oQ);er.updateLocale("en",{relativeTime:{future:"in %s",past:"%s",s:"Just now",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",M:function(e,t,o,r){if(r)return e+"M";let n=er().subtract(e,"M"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},MM:function(e,t,o,r){if(r)return e+"M";let n=er().subtract(e,"M"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},y:function(e,t,o,r){if(r)return e+"y";let n=er().subtract(e,"y"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},yy:function(e,t,o,r){if(r)return e+"y";let n=er().subtract(e,"y"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")}}});function $s({pageId:e="*",componentId:t="*",timestamp:o}){let r="timestamp",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r}),s=er(o).fromNow();return i?null:J.createElement(A.Caption,{className:_w.timestamp,style:a,"data-qa-anchor":n},s)}var Le={postComment:"at",postComment__deleteComment_container:"ot",postComment__deleteComment_icon:"tt",postComment__deleteComment_text:"it",postComment__avatar:"st",postComment__details:"ct",postComment__content:"nt",postComment__content__username:"lt",postComment__content__text:"dt",postComment__secondRow:"mt",postComment__secondRow__leftPane:"gt",postComment__secondRow__timestamp:"ht",postComment__secondRow__rightPane:"pt",postComment__secondRow__rightPane__like:"ft",postComment__secondRow__like:"W",postComment__secondRow__reply:"ut",postComment__secondRow__actionButton:"bt",postComment__viewReply_button:"vt",postComment__viewReply_icon:"xt",postComment__viewReply_text:"wt",postComment__edit:"yt",postComment__edit__inputWrap:"kt",postComment__edit__mentionContainer:"jt",postComment__edit__input:"zt",postComment__edit__buttonWrap:"It",postComment__edit__button:"Xt",postComment__edit__cancelButton:"Yt",postComment__edit__saveButton:"Rt",postComment__seeMore:"At"};var iQ=e=>J.createElement("svg",d({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M13.824 9.72708L10.6334 12.8479C10.3988 13.0544 10.0469 13.0544 9.83578 12.8249L9.31965 12.3201C9.08504 12.1136 9.08504 11.7464 9.31965 11.5399L10.7507 10.2549H2.56305C2.2346 10.2549 2 10.0024 2 9.70413V5.56C2 5.25072 2.25072 5 2.56 5L3.31683 5C3.62611 5.00001 3.87683 5.25073 3.87683 5.56V8.4191H10.7507L9.31965 7.11113C9.08504 6.9046 9.08504 6.53745 9.31965 6.33093L9.83578 5.8261C10.0469 5.59663 10.3988 5.59663 10.6334 5.80315L13.824 8.92393C14.0587 9.1534 14.0587 9.49761 13.824 9.72708Z",fill:"currentColor"})),pc=iQ;var Cr={postCommentSkeleton__container:"Mt",postCommentSkeleton:"St",postCommentSkeleton__avatar:"Ct",postCommentSkeleton__details:"Et",postCommentSkeleton__content:"Ut",postCommentSkeleton__content__bar:"qt",postCommentSkeleton__animation:"Bt","skeleton-pulse":"Z"};var fc=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=ce({pageId:e,componentId:t});if(n)return null;let a=Array.from({length:o},(s,l)=>J.createElement("div",{key:l,"data-qa-anchor":r,className:lo(Cr.postCommentSkeleton,Cr.postCommentSkeleton__animation),style:i},J.createElement("div",{className:lo(Cr.postCommentSkeleton__avatar,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:lo(Cr.postCommentSkeleton__details,Cr.postCommentSkeleton__animation)},J.createElement("div",{className:lo(Cr.postCommentSkeleton__content,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:Cr.postCommentSkeleton__content__bar}))));return J.createElement("div",{className:Cr.postCommentSkeleton__container},a)};function fu({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=dt({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:i},shouldCall:!!t&&!!o&&n}),{items:a}=l,s=I(l,["items"]);return d({comments:a},s)}function ei({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=q7(),s=useRef(null);return Ni({fetcher:e,params:t,callback:l=>{let{error:c,loading:p}=l;if(p)return;if(c)throw c;let{unsubscribe:u}=a({topic:i(l),callback:o});s.current=u;},options:r,shouldCall:n}),useEffect(()=>()=>{var l;(l=s.current)==null||l.call(s);},[s]),{unsubscribe:()=>{var l;return (l=s.current)==null?void 0:l.call(s)}}}function Ul({commentId:e,shouldSubscribe:t=!0,callback:o}){return ei({fetcher:CommentRepository.getComment,params:e,callback:o,shouldSubscribe:!!e&&t,getSubscribedTopic:({data:r})=>getCommentTopic(r)})}var vr="like";var Hr={textWithMention__container:"Ft",textWithMention__clamp:"_",textWithMention__paragraph:"Ht",textWithMention__fullContent:"ee",textWithMention__mention:"Lt",textWithMention__text:"Tt",textWithMention__link:"Dt",textWithMention__showMoreLess:"Gt"};var zl=({pageId:e="*",componentId:t="*",maxLines:o=8,data:r,mentionees:n,metadata:i})=>{let[a,s]=useState(!1),[l,c]=useState(!1),[p,u]=useState(!1),f=useRef(null),{goToUserProfilePage:g}=Be(),h=useMemo(()=>Vl({data:r,mentionees:n,metadata:i}),[r,n,i]);useEffect(()=>{var _;let y=((_=f.current)==null?void 0:_.clientHeight)||0,x=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),v=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*x;y>v*o&&c(!0),u(!0);},[]);let C=(y,x)=>y.children.map(v=>{var _;return tu(v)?J.createElement(U,{"data-qa-anchor":`${e}/${t}/mention`,key:v.data.userId,className:lo(x,Hr.textWithMention__mention),onPress:()=>g(v.data.userId)},v.text):ou(v)||ru(v)?J.createElement("a",{key:v.url,href:v.url,className:lo(x,Hr.textWithMention__link),"data-qa-anchor":`${e}/${t}/post_link`},Dl(v.children[0])?(_=v.children[0])==null?void 0:_.text:v.url):Dl(v)?J.createElement("span",{className:lo(x,Hr.textWithMention__text)},v.text):null});return J.createElement("div",{className:Hr.textWithMention__container},J.createElement("div",{ref:f,className:Hr.textWithMention__fullContent,"data-hidden":p},h.root.children.map(y=>J.createElement("p",{className:Hr.textWithMention__paragraph},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:x})=>J.createElement(J.Fragment,null,C(y,x))}):J.createElement("br",null)))),J.createElement("div",{"data-qa-anchor":`${e}/${t}/text_with_mention`,"data-expanded":a,className:Hr.textWithMention__clamp,style:{"--asc-text-with-mention-max-lines":o}},l&&!a&&J.createElement("div",{onClick:()=>s(!0),className:Hr.textWithMention__showMoreLess},J.createElement(A.Body,null,"...See more")),h.root.children.map((y,x)=>J.createElement("p",{className:Hr.textWithMention__paragraph,key:x},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:v})=>J.createElement(J.Fragment,null,C(y,v))}):J.createElement("br",null)))))};var Pw=e=>{let t=zt(),[o,r]=useState(!1),{data:n,isLoading:i,refetch:a}=useQuery({queryKey:["asc-uikit","CommentRepository","isCommentFlaggedByMe",e],queryFn:()=>CommentRepository.isCommentFlaggedByMe(e),enabled:e!=null});useEffect(()=>{n!=null&&r(n);},[n]);let s=()=>P(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>P(void 0,null,function*(){if(e!=null)try{r(!1),yield CommentRepository.unflagComment(e);}catch(p){r(!0);}finally{a();}});return {isLoading:i,isFlaggedByMe:o,flagComment:s,unflagComment:l,toggleFlagComment:p=>P(void 0,null,function*(){if(e!=null)if(o){if(yield l(),p!=null&&p.onUnFlagSuccss)return p.onUnFlagSuccss();t.success({content:"Comment unreported"});}else {if(yield s(),p!=null&&p.onFlagSuccess)return p.onFlagSuccess();t.success({content:"Comment reported"});}})}};var qs={commentOptions__actionButton:"Jt",commentOptions__actionButton__icon:"Kt",commentOptions__actionButton__text:"Nt"};var gc=({pageId:e="*",componentId:t="*",comment:o,handleEditComment:r,handleDeleteComment:n,onCloseBottomSheet:i})=>{let{userRoles:a}=Oe(),{toggleFlagComment:s,isFlaggedByMe:l}=Pw(o.commentId),{canDelete:c,canEdit:p,canReport:u}=f2(o,!1,a),f=zt(),g=()=>P(void 0,null,function*(){try{yield s({onFlagSuccess:()=>f.success({content:"Report sent"}),onUnFlagSuccss:()=>f.success({content:"Unreport sent"})});}catch(C){C instanceof Error&&f.error({content:C.message});}}),h=[p?{name:"Edit comment",action:r,icon:J.createElement(J5,{className:qs.commentOptions__actionButton__icon}),accessibilityId:"edit_comment"}:null,u?{name:l?"Unreport comment":"Report comment",action:g,icon:J.createElement(X5,{className:qs.commentOptions__actionButton__icon}),accessibilityId:"report_comment"}:null,c?{name:"Delete comment",action:n,icon:J.createElement(aa,{className:qs.commentOptions__actionButton__icon}),accessibilityId:"delete_comment"}:null].filter(qo);return J.createElement(J.Fragment,null,h.map((C,y)=>J.createElement("div",{"data-qa-anchor":`${e}/${t}/${C.accessibilityId}`,className:qs.commentOptions__actionButton,key:y,onClick:()=>{i(),C.action();}},C.icon,J.createElement("div",{className:qs.commentOptions__actionButton__text},J.createElement(A.BodyBold,null,C.name)))))};var Ke={postReplyComment:"Ot",postReplyComment__avatar:"Pt",postReplyComment__details:"Qt",postReplyComment__content:"Vt",postReplyComment__content__username:"Wt",postReplyComment__content__text:"Zt",postReplyComment__secondRow:"_t",postReplyComment__secondRow__leftPane:"ei",postReplyComment__secondRow__rightPane:"ri",postReplyComment__secondRow__rightPane__like:"ai",postReplyComment__secondRow__like:"re",postReplyComment__secondRow__reply:"oi",postReplyComment__secondRow__actionButton:"ti",postReplyComment__viewReply_button:"ii",postReplyComment__viewReply_icon:"si",postReplyComment__viewReply_text:"ci",postReplyComment__actionButton:"ni",postReplyComment__actionButton__icon:"li",postReplyComment__actionButton__text:"di",postReplyComment__deleteComment_container:"mi",postReplyComment__deleteComment_icon:"gi",postReplyComment__deleteComment_text:"hi",postReplyComment__edit:"pi",postReplyComment__edit__inputWrap:"fi",postReplyComment__edit__input:"ui",postReplyComment__edit__buttonWrap:"bi",postReplyComment__edit__button:"vi",postReplyComment__edit__cancelButton:"xi",postReplyComment__edit__saveButton:"wi",postReplyComment__secondRow__timestamp:"yi"};var IQ=10;function yc({targetType:e,targetId:t,feedType:o,limit:r=IQ}){let a=dt({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:!!t&&!!e}),{items:n}=a,i=I(a,["items"]);return d({posts:n},i)}var{COMMUNITY_MODERATOR:_Q}=_l;function jl({communityId:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[_Q],limit:20},shouldCall:!!e&&t}),{items:o}=n,r=I(n,["items"]);return d({moderators:o},r)}var PQ=({post:e,childrenPosts:t=[],community:o,userId:r})=>{var g,h,C;let{moderators:n}=jl({communityId:o==null?void 0:o.communityId}),{client:i}=Sp(),{posts:a}=yc({targetType:"community",targetId:o==null?void 0:o.communityId,feedType:"reviewing"}),s=useMemo(()=>!t.find(y=>y.dataType==="liveStream"||y.dataType==="poll"),[t]),l=n.find(y=>y.userId===r),c=(e==null?void 0:e.postedUserId)===r,p=useMemo(()=>(o==null?void 0:o.postSetting)!=CommunityPostSettings.ANYONE_CAN_POST?a.find(y=>y.postId===(e==null?void 0:e.postId))!=null:!1,[o,a]),u=l!=null,f={canEdit:!1,canReport:!1,canDelete:!1,canReview:!1};if(c)!p&&s&&(f.canEdit=!0),f.canDelete=!0;else {if(o!=null){let y=(g=i==null?void 0:i.hasPermission("EDIT_COMMUNITY_FEED_POST").community(o.communityId))!=null?g:!1;f.canEdit=y&&s;let x=(h=i==null?void 0:i.hasPermission("DELETE_COMMUNITY_FEED_POST").community(o.communityId))!=null?h:!1;f.canDelete=x;}else {let y=(C=i==null?void 0:i.hasPermission("EDIT_USER_FEED_POST").currentUser())!=null?C:!1;f.canDelete=y;}p||(f.canReport=!0);}return d({isPostUnderReview:p,isModerator:u},f)},hc=PQ;var NQ=({pageId:e="*",community:t,comment:o})=>{var N,F;let r="post_comment",{confirm:n}=bt(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:c,themeStyles:p}=ce({pageId:e,componentId:r}),[u,f]=useState(!1),[g,h]=useState(!1),[C,y]=useState(),{isModerator:x}=hc({community:t,userId:(N=o.creator)==null?void 0:N.userId}),v=(o.myReactions||[]).some(Z=>Z==="like"),_=()=>f(Z=>!Z),M=()=>P(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),b=()=>{h(!0);},w=()=>{n({pageId:e,componentId:r,title:"Delete reply",content:"This reply will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:M});},T=()=>P(void 0,null,function*(){o&&(v?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),k=useCallback(()=>P(void 0,null,function*(){!C||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:C.data,mentionees:C.mentionees,metadata:C.metadata}),h(!1));}),[C]);return Ul({commentId:o.commentId}),l?null:J.createElement(J.Fragment,null,o.isDeleted?J.createElement("div",{className:Ke.postReplyComment__deleteComment_container,style:p},J.createElement(Ll,{className:Ke.postReplyComment__deleteComment_icon}),J.createElement(A.Caption,{className:Ke.postReplyComment__deleteComment_text},"This reply has been deleted")):g?J.createElement("div",{className:Ke.postReplyComment__edit},J.createElement(Xo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Ke.postReplyComment__edit__inputWrap},J.createElement("div",{className:Ke.postReplyComment__edit__input},J.createElement(js,{pageId:e,componentId:r,communityId:t==null?void 0:t.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:Z=>{y({data:{text:Z.text},mentionees:Z.mentionees,metadata:{mentioned:Z.mentioned}});}})),J.createElement("div",{className:Ke.postReplyComment__edit__buttonWrap},J.createElement(Xn,{componentId:"edit_comment_component",className:lo(Ke.postReplyComment__edit__button,Ke.postReplyComment__edit__cancelButton),onPress:()=>{h(!1);}}),J.createElement(ia,{className:lo(Ke.postReplyComment__edit__button,Ke.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):J.createElement("div",{className:Ke.postReplyComment,style:p,"data-qa-anchor":i},J.createElement(Xo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Ke.postReplyComment__details},J.createElement("div",{className:Ke.postReplyComment__content},J.createElement(A.BodyBold,{className:Ke.postReplyComment__content__username},(F=o.creator)==null?void 0:F.displayName),x&&J.createElement(Gs,{pageId:e,componentId:r}),J.createElement(zl,{pageId:e,componentId:r,data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),J.createElement("div",{className:Ke.postReplyComment__secondRow},J.createElement("div",{className:Ke.postReplyComment__secondRow__leftPane},J.createElement(A.Caption,{className:Ke.postReplyComment__secondRow__timestamp},J.createElement($s,{pageId:e,componentId:r,timestamp:o.createdAt}),J.createElement("span",{"data-qa-anchor":`${e}/${r}/reply_comment_edited_text`},o.createdAt!==o.editedAt&&" (edited)")),J.createElement("div",{onClick:T},J.createElement(A.CaptionBold,{"data-qa-anchor":`${e}/${r}/reply_comment_like`,className:Ke.postReplyComment__secondRow__like,"data-is-liked":v},v?"Liked":"Like")),J.createElement(Cn,{"data-qa-anchor":`${e}/${r}/reply_comment_options`,className:Ke.postReplyComment__secondRow__actionButton,onClick:()=>f(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Ke.postReplyComment__secondRow__rightPane},J.createElement(A.Caption,null,gg(o.reactionsCount)),J.createElement(W5,{className:Ke.postReplyComment__secondRow__rightPane__like}))))),J.createElement(Co,{onClose:_,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(gc,{pageId:e,componentId:r,comment:o,onCloseBottomSheet:_,handleEditComment:b,handleDeleteComment:w})))},Ew=NQ;var Cc={postReplyCommentList__viewReply_button:"ki",postReplyCommentList__viewReply_icon:"ji",postReplyCommentList__viewReply_text:"zi"};var Aw=({pageId:e="*",componentId:t="*",referenceId:o,referenceType:r,community:n,parentId:i})=>{let{comments:a,hasMore:s,isLoading:l,loadMore:c}=fu({referenceId:o,referenceType:r,parentId:i,limit:10,shouldCall:!0,includeDeleted:!0}),p=()=>{c();};return J.createElement("div",null,l&&J.createElement(fc,{numberOfSkeletons:3}),a.map(u=>J.createElement(Ew,{pageId:e,community:n,comment:u})),s&&J.createElement("div",{className:Cc.postReplyCommentList__viewReply_button,onClick:p},J.createElement(pc,{className:Cc.postReplyCommentList__viewReply_icon}),J.createElement(A.CaptionBold,{className:Cc.postReplyCommentList__viewReply_text},"View more replies")))};var LQ=t=>{var e=I(t,[]);return J.createElement("svg",d({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M9.6875 2.25C9.6875 3.19922 8.91406 3.9375 8 3.9375C7.05078 3.9375 6.3125 3.19922 6.3125 2.25C6.3125 1.33594 7.05078 0.5625 8 0.5625C8.91406 0.5625 9.6875 1.33594 9.6875 2.25ZM13.9062 0.5625C14.8203 0.5625 15.5938 1.33594 15.5938 2.25C15.5938 3.19922 14.8203 3.9375 13.9062 3.9375C12.957 3.9375 12.2188 3.19922 12.2188 2.25C12.2188 1.33594 12.957 0.5625 13.9062 0.5625ZM2.09375 0.5625C3.00781 0.5625 3.78125 1.33594 3.78125 2.25C3.78125 3.19922 3.00781 3.9375 2.09375 3.9375C1.14453 3.9375 0.40625 3.19922 0.40625 2.25C0.40625 1.33594 1.14453 0.5625 2.09375 0.5625Z"}))},FQ=t=>{var e=I(t,[]);return J.createElement("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),J.createElement("path",{d:"M10.7752 12.1C11.2221 12.1 11.6002 12.4782 11.6002 12.925V21.175C11.6002 21.6563 11.2221 22 10.7752 22H8.0252C7.54395 22 7.2002 21.6563 7.2002 21.175V12.925C7.2002 12.4782 7.54395 12.1 8.0252 12.1H10.7752ZM9.4002 20.625C9.84707 20.625 10.2252 20.2813 10.2252 19.8C10.2252 19.3532 9.84707 18.975 9.4002 18.975C8.91895 18.975 8.5752 19.3532 8.5752 19.8C8.5752 20.2813 8.91895 20.625 9.4002 20.625ZM20.4002 7.2188C20.4002 8.66255 19.5064 9.48755 19.2314 10.45H22.7377C23.8721 10.45 24.7658 11.4125 24.7658 12.4782C24.8002 13.0969 24.5252 13.75 24.1127 14.1625C24.4564 14.9532 24.3877 16.0875 23.8033 16.8782C24.0783 17.7719 23.8033 18.8719 23.2189 19.4563C23.3908 20.075 23.3221 20.5907 23.0127 21.0032C22.3252 22 20.5721 22 19.0939 22H18.9908C17.3408 22 16.0002 21.4157 14.9002 20.9344C14.3502 20.6938 13.6283 20.3844 13.0783 20.3844C12.8721 20.35 12.7002 20.1782 12.7002 19.9719V12.6157C12.7002 12.5125 12.7346 12.4094 12.8033 12.3063C14.1783 10.9657 14.7627 9.5563 15.8627 8.42192C16.3783 7.9063 16.5502 7.15005 16.7564 6.3938C16.8939 5.77505 17.2033 4.40005 17.9252 4.40005C18.7502 4.40005 20.4002 4.67505 20.4002 7.2188Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#63A1FF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},Dw=({pageId:e="*",componentId:t="comment_bubble",comment:o,community:r,onClickReply:n,shouldAllowInteraction:i=!0})=>{var O,ee;let {accessibilityId:a,isExcluded:s,themeStyles:l}=ce({pageId:e,componentId:t}),{confirm:c}=bt(),[p,u]=useState(!1),[f,g]=useState(!1),[h,C]=useState(!1),[y,x]=useState(),v=useRef(null);useState(!1);let {isModerator:b}=hc({community:r,userId:(O=o.creator)==null?void 0:O.userId}),w=()=>u(X=>!X),T=(o.myReactions||[]).some(X=>X==="like"),k=o.childrenNumber;if(s)return null;let N=()=>P(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),F=()=>{C(!0);},Z=()=>{c({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:N});},$=()=>P(void 0,null,function*(){o&&(T?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),G=useCallback(()=>P(void 0,null,function*(){!y||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:y.data,mentionees:y.mentionees,metadata:y.metadata}),C(!1));}),[y]);return Ul({commentId:o.commentId}),J.createElement("div",{style:l,"data-qa-anchor":a},o.isDeleted?J.createElement("div",{className:Le.postComment__deleteComment_container},J.createElement(Ll,{className:Le.postComment__deleteComment_icon}),J.createElement(A.Body,{className:Le.postComment__deleteComment_text},"This comment has been deleted")):h?J.createElement("div",{className:Le.postComment__edit},J.createElement(Xo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Le.postComment__edit__inputWrap},J.createElement("div",{className:Le.postComment__edit__input},J.createElement("div",{className:Le.postComment__edit__mentionContainer,ref:v}),J.createElement(js,{communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:X=>{x({data:{text:X.text},mentionees:X.mentionees,metadata:{mentioned:X.mentioned}});},maxLines:5,mentionContainer:v==null?void 0:v.current})),J.createElement("div",{className:Le.postComment__edit__buttonWrap},J.createElement(Xn,{componentId:"edit_comment_component",className:lo(Le.postComment__edit__button,Le.postComment__edit__cancelButton),onPress:()=>{C(!1);}}),J.createElement(ia,{className:lo(Le.postComment__edit__button,Le.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):J.createElement("div",{className:Le.postComment},J.createElement(Xo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Le.postComment__details},J.createElement("div",{className:Le.postComment__content},J.createElement(A.BodyBold,{"data-qa-anchor":`${e}/${t}/username`,className:Le.postComment__content__username},(ee=o.creator)==null?void 0:ee.displayName),b&&J.createElement(Gs,{pageId:e,componentId:t}),J.createElement(zl,{pageId:e,componentId:t,data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),J.createElement("div",{className:Le.postComment__secondRow},i&&J.createElement("div",{className:Le.postComment__secondRow__leftPane},J.createElement(A.Caption,{className:Le.postComment__secondRow__timestamp},J.createElement($s,{pageId:e,componentId:t,timestamp:o.createdAt}),J.createElement("span",{"data-qa-anchor":`${e}/${t}/comment_edited_text`},o.createdAt!==o.editedAt&&" (edited)")),J.createElement("div",{onClick:$},J.createElement(A.CaptionBold,{className:Le.postComment__secondRow__like,"data-is-liked":T},T?"Liked":"Like")),J.createElement("div",{"data-qa-anchor":`${e}/${t}/reply_button`,onClick:()=>n(o)},J.createElement(A.CaptionBold,{className:Le.postComment__secondRow__reply},"Reply")),J.createElement(LQ,{className:Le.postComment__secondRow__actionButton,onClick:()=>u(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Le.postComment__secondRow__rightPane},J.createElement(A.Caption,null,gg(o.reactionsCount)),J.createElement(FQ,{className:Le.postComment__secondRow__rightPane__like}))),k>0&&!f&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/view_reply_button`,className:Le.postComment__viewReply_button,onClick:()=>g(!0)},J.createElement(pc,{className:Le.postComment__viewReply_icon}),J.createElement(A.CaptionBold,{className:Le.postComment__viewReply_text},"View ",k," ",k>1?"replies":"reply")),f&&J.createElement(Aw,{pageId:e,componentId:t,community:r!=null?r:void 0,referenceId:o.referenceId,referenceType:o.referenceType,parentId:o.commentId}))),J.createElement(Co,{onClose:w,isOpen:p,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(gc,{pageId:e,componentId:t,comment:o,handleEditComment:F,handleDeleteComment:Z,onCloseBottomSheet:w})))};var pt={commentAd:"Ii",commentAd__container:"Xi",commentAd__details:"Yi",commentAd__avatar:"Ri",commentAd__content:"Ai",commentAd__content__advertiserName__container:"Mi",commentAd__content__advertiserName:"Si",commentAd__content__text:"Ci",commentAd__adCard:"Ei",commentAd__adCard__imageContainer:"Ui",commentAd__adCard__image:"qi",commentAd__adCard__detail:"Bi",commentAd__adCard__textContainer:"Fi",commentAd__adCard__description:"Hi",commentAd__adCard__headline:"Li",commentAd__adCard__button:"Ti",commentAd__adCard__button__text:"Di",infoIcon__button:"Gi",infoIcon:"Ji"};var VQ=o=>{var r=o,{color:e="white"}=r,t=I(r,["color"]);return J.createElement("svg",d({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M5.54688 1.78125C5.73438 1.40625 6.26562 1.42188 6.4375 1.78125L7.46875 3.85938L9.75 4.1875C10.1562 4.25 10.3125 4.75 10.0156 5.04688L8.375 6.65625L8.76562 8.92188C8.82812 9.32812 8.39062 9.64062 8.03125 9.45312L6 8.375L3.95312 9.45312C3.59375 9.64062 3.15625 9.32812 3.21875 8.92188L3.60938 6.65625L1.96875 5.04688C1.67188 4.75 1.82812 4.25 2.23438 4.1875L4.53125 3.85938L5.54688 1.78125Z",fill:e}))},Ow=VQ;var $l={badge:"ae",badge__icon:"Ki",badge__text:"Ni",badge__child:"Oi"};var Zl=()=>J.createElement("div",{className:$l.badge},J.createElement("div",{className:$l.badge__child},J.createElement(Ow,{className:$l.badge__icon}),J.createElement("div",{className:$l.badge__text},"Sponsored")));var HQ=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{width:"64",height:"64",rx:"32",fill:"#D9E5FC"}),J.createElement("path",{d:"M20 28.5358C20.5156 28.5358 20.9375 28.8639 21.2188 29.2858L41 23.2858V41.2858L34.8125 39.4576C34.2969 41.3795 32.5625 42.7858 30.5 42.7858C28.0156 42.7858 26 40.7701 26 38.2858C26 37.817 26.0938 37.3014 26.2344 36.8795L21.2188 35.3326C20.9375 35.7545 20.5156 36.0358 20 36.0358C19.1562 36.0358 18.5 35.3795 18.5 34.5358V30.0358C18.5 29.2389 19.1562 28.5358 20 28.5358ZM28.3906 37.4889C28.2969 37.7701 28.25 38.0045 28.25 38.2858C28.25 39.5514 29.2344 40.5358 30.5 40.5358C31.5312 40.5358 32.4219 39.7858 32.6562 38.8014L28.3906 37.4889ZM44.75 21.7858C45.125 21.7858 45.5 22.1608 45.5 22.5358V42.0358C45.5 42.4576 45.125 42.7858 44.75 42.7858H43.25C42.8281 42.7858 42.5 42.4576 42.5 42.0358V22.5358C42.5 22.1608 42.8281 21.7858 43.25 21.7858H44.75Z",fill:"white"})),ql=HQ;var UQ=e=>J.createElement("svg",d({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M8 2.25006C4.25 2.25006 1.25 5.28131 1.25 9.00006C1.25 12.7501 4.25 15.7501 8 15.7501C11.7188 15.7501 14.75 12.7501 14.75 9.00006C14.75 5.28131 11.6875 2.25006 8 2.25006ZM8 1.25006C12.25 1.25006 15.75 4.75006 15.75 9.00006C15.75 13.2813 12.25 16.7501 8 16.7501C3.71875 16.7501 0.25 13.2813 0.25 9.00006C0.25 4.75006 3.71875 1.25006 8 1.25006ZM6.875 12.0001H7.25V8.25006H6.875C6.65625 8.25006 6.5 8.09381 6.5 7.87506V7.62506C6.5 7.43756 6.65625 7.25006 6.875 7.25006H8.375C8.5625 7.25006 8.75 7.43756 8.75 7.62506V12.0001H9.125C9.3125 12.0001 9.5 12.1876 9.5 12.3751V12.6251C9.5 12.8438 9.3125 13.0001 9.125 13.0001H6.875C6.65625 13.0001 6.5 12.8438 6.5 12.6251V12.3751C6.5 12.1876 6.65625 12.0001 6.875 12.0001ZM8 4.50006C8.53125 4.50006 9 4.96881 9 5.50006C9 6.06256 8.53125 6.50006 8 6.50006C7.4375 6.50006 7 6.06256 7 5.50006C7 4.96881 7.4375 4.50006 8 4.50006Z",fill:"#A5A9B5"})),xr=UQ;var Lt={drawer__content:"oe",drawer__innerContent:"Pi",drawer__placeholder:"Qi",drawer__overlay:"Vi",drawer__title:"Wi",drawer__content__data:"Zi",drawer__content__data__title:"_i",drawer__content__data__text:"es",drawer__content__data__caption:"rs",drawer__content__data__infoIcon:"as",drawer__content__emptySpace:"os"};var xu=({isOpen:e,onOpenChange:t,ad:o})=>{var r;return J.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:n=>n.stopPropagation()},J.createElement(Drawer.Portal,null,J.createElement(Drawer.Overlay,{className:Lt.drawer__overlay}),J.createElement(Drawer.Content,{className:Lt.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},J.createElement("div",{className:Lt.drawer__innerContent},J.createElement("div",{className:Lt.drawer__placeholder}),J.createElement(Drawer.Title,{className:Lt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:Lt.drawer__content__data},J.createElement(A.BodyBold,{className:Lt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:Lt.drawer__content__data__text},J.createElement(xr,{className:Lt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Lt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:Lt.drawer__content__data},J.createElement(A.BodyBold,{className:Lt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:Lt.drawer__content__data__text},J.createElement(xr,{className:Lt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Lt.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),J.createElement("div",{className:Lt.drawer__content__emptySpace})))))};var Uw=({ad:e,themeStyles:t,avatarUrl:o,adImageUrl:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return J.createElement("div",{className:pt.commentAd,style:t},J.createElement(U,{className:pt.infoIcon__button,onPress:()=>a(!0)},J.createElement(xr,{className:pt.infoIcon})),J.createElement("div",{className:pt.commentAd__container},J.createElement("div",{className:pt.commentAd__avatar},J.createElement(fr,{avatarUrl:o,defaultImage:J.createElement(ql,null)})),J.createElement("div",{className:pt.commentAd__details},J.createElement("div",{className:pt.commentAd__content},J.createElement(A.BodyBold,{className:pt.commentAd__content__advertiserName__container},J.createElement("div",{className:pt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),J.createElement(Zl,null),J.createElement("div",null,J.createElement(A.Body,{className:pt.commentAd__content__text},e.body)),J.createElement("div",{className:pt.commentAd__adCard,onClick:s},J.createElement("div",{className:pt.commentAd__adCard__imageContainer},J.createElement("img",{className:pt.commentAd__adCard__image,src:r})),J.createElement("div",{className:pt.commentAd__adCard__detail},J.createElement("div",{className:pt.commentAd__adCard__textContainer},J.createElement(A.Caption,{renderer:({typoClassName:c})=>J.createElement("div",{className:lo(c,pt.commentAd__adCard__description)},e.description)}),J.createElement(A.BodyBold,{className:pt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?J.createElement(U,{className:pt.commentAd__adCard__button,onPress:s},J.createElement(A.CaptionBold,{className:pt.commentAd__adCard__button__text},e.callToAction)):null))))),J.createElement(xu,{ad:e,isOpen:i,onOpenChange:c=>a(c)}))};var zw=({pageId:e="*",ad:t})=>{var c,p,u,f,g,h;let o="comment_tray_component",{themeStyles:r}=ce({pageId:e,componentId:o}),i=ct({fileId:(p=(c=t.advertiser)==null?void 0:c.avatar)==null?void 0:p.fileId})||((f=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:f.fileUrl)||"",s=ct({fileId:(g=t.image1_1)==null?void 0:g.fileId})||((h=t.image1_1)==null?void 0:h.fileUrl)||"";return J.createElement(Uw,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:C=>{window==null||window.open(C,"_blank");}})};var xc={commentList__container:"ts",commentList__viewAllComments__button:"is",commentList__container_intersection:"ss",noCommentsContainer:"cs"};function la({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return ei({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}function bc({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return ei({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var eK=e=>"adId"in e,Ic=({referenceId:e,referenceType:t,pageId:o="*",onClickReply:r,limit:n=5,includeDeleted:i=!1,community:a,shouldAllowInteraction:s=!0})=>{let l="comment_tray_component",{themeStyles:c,accessibilityId:p}=ce({componentId:l,pageId:o}),u=useRef(null),[f,g]=useState(null),{items:h,loadMore:C,hasMore:y,isLoading:x}=wl({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:v=>v.commentId,shouldCall:!0});return Ro({node:f,options:{threshold:.8},onIntersect:()=>{y&&x===!1&&C();}}),bc({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),la({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!x&&h.length===0?J.createElement("div",{className:xc.noCommentsContainer},J.createElement(A.Body,null,"No comments yet")):J.createElement("div",{className:xc.commentList__container,style:c,ref:u,"data-qa-anchor":p},h.map(v=>eK(v)?J.createElement(zw,{key:v.adId,ad:v}):J.createElement(Dw,{pageId:o,key:v.commentId,comment:v,onClickReply:_=>r==null?void 0:r(_),componentId:l,community:a,shouldAllowInteraction:s})),x&&J.createElement(fc,{pageId:o,componentId:l,numberOfSkeletons:3}),J.createElement("div",{ref:v=>g(v),className:xc.commentList__container_intersection}))};var bu={container:"ns",header:"ls",roundedHeader:"ds",content:"ms",scroller:"gs",composeBarContainer:"hs",nestedBackdrop:"ps",commentTrayContainer:"fs",commentListContainer:"us",mobileSheetComposeBarContainer:"bs"};var Ws=({pageId:e="*",referenceType:t,referenceId:o,community:r={},shouldAllowInteraction:n=!0,shouldAllowCreation:i=!0})=>{let a="comment_tray_component",{accessibilityId:s,themeStyles:l}=ce({pageId:e,componentId:a}),[c,p]=useState(null),u=g=>{p(g);},f=()=>{p(null);};return J.createElement("div",{style:l,"data-qa-anchor":s,className:bu.commentTrayContainer},J.createElement("div",{className:bu.commentListContainer},J.createElement(Ic,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),J.createElement(dc,{referenceId:o,referenceType:t,onCancelReply:f,replyTo:c,shouldAllowCreation:i}))};var Iu={doneButton:"vs",doneButton_text:"xs"};function wu(n){var i=n,{pageId:e="*",componentId:t="*",className:o}=i,r=I(i,["pageId","componentId","className"]);let a="done_button",{accessibilityId:s,config:l,isExcluded:c}=B({pageId:e,componentId:t,elementId:a});return c?null:J.createElement(U,d({className:`${Iu.doneButton} ${o||""}`,"data-qa-anchor":s},r),J.createElement(A.Body,{className:Iu.doneButton_text},l.done_button_text))}var Je={hyperlinkFormContainer:"ws",form:"ys",bottomSheet:"a","react-modal-sheet-backdrop":"ks","react-modal-sheet-container":"js","react-modal-sheet-content":"zs","react-modal-sheet-header":"Is","react-modal-sheet-drag-indicator":"Xs",inputContainer:"Ys",input:"te",hasError:"Rs",label:"k",required:"As",description:"Ms",errorText:"Ss",characterCount:"Cs",headerContainer:"Es",labelContainer:"Us",headerTitle:"qs",cancelButton:"Bs",doneButton:"ie",removeIcon:"Fs",removeLinkButton:"Hs",divider:"Ls",removeLinkContainer:"Ts"};var Gw=30,Mu=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var O,ee,X;let a="hyper_link_config_component",{confirm:s}=bt(),{accessibilityId:l,config:c,isExcluded:p,themeStyles:u}=ce({pageId:e,componentId:a});if(p)return null;let{formatMessage:f}=useIntl(),{client:g}=Oe(),[h,C]=useState(!1),y="asc-story-hyperlink-form",x=z.object({url:z.string().refine(L=>{if(!L)return !0;try{let H=new URL(L);return ["http:","https:"].includes(H.protocol)}catch(H){if(L.startsWith("www."))try{let K=new URL(`https://${L}`);return ["http:","https:"].includes(K.protocol)}catch(K){return !1}return !1}},{message:f({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(L=>P(void 0,null,function*(){if(!L)return !0;let H=L.startsWith("www.")?`https://${L}`:L;return yield g==null?void 0:g.validateUrls([H]).catch(()=>!1)}),{message:f({id:"storyCreation.hyperlink.validation.error.whitelisted"})}),customText:z.string().optional().refine(L=>P(void 0,null,function*(){return L?yield g==null?void 0:g.validateTexts([L]).catch(()=>!1):!0}),f({id:"storyCreation.hyperlink.validation.error.blocked"}))}),{trigger:v,watch:_,register:M,handleSubmit:b,formState:{errors:w},reset:T}=useForm({resolver:zodResolver(x)}),{url:k,customText:N}=_();useEffect(()=>{C(k!==""||N!=="");},[k,N]);let F=L=>{n(L),r();},Z=()=>{T(),i(),r();},$=()=>{s({title:f({id:"storyCreation.hyperlink.removeConfirm.title"}),content:f({id:"storyCreation.hyperlink.removeConfirm.content"}),cancelText:f({id:"storyCreation.hyperlink.removeConfirm.cancel"}),okText:f({id:"storyCreation.hyperlink.removeConfirm.confirm"}),onOk:Z});},G=()=>{h?s({title:f({id:"storyCreation.hyperlink.unsavedChanges.title"}),content:f({id:"storyCreation.hyperlink.unsavedChanges.content"}),cancelText:f({id:"storyCreation.hyperlink.unsavedChanges.cancel"}),okText:f({id:"storyCreation.hyperlink.unsavedChanges.confirm"}),onOk:()=>{T(),r();}}):r();};return J.createElement(Co,{"data-qa-anchor":l,detent:"full-height",mountPoint:document.getElementById("asc-uikit-create-story"),rootId:"asc-uikit-create-story",isOpen:t,onClose:G,className:Je.bottomSheet,style:u},J.createElement("div",{className:Je.headerContainer},J.createElement(Xn,{pageId:e,componentId:a,onPress:G}),J.createElement(A.Title,null,f({id:"storyCreation.hyperlink.bottomSheet.title"})),J.createElement(wu,{type:"submit",pageId:e,componentId:a,form:y})),J.createElement("div",{className:Je.divider}),J.createElement("div",{className:Je.hyperlinkFormContainer},J.createElement("form",{onSubmit:b(F),id:y,className:Je.form},J.createElement("div",{className:Je.inputContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:lo(Je.label,Je.required)},f({id:"storyCreation.hyperlink.form.urlLabel"}))),J.createElement("input",d({id:"asc-uikit-hyperlink-input-url",placeholder:f({id:"storyCreation.hyperlink.form.urlPlaceholder"}),className:lo(Je.input,(w==null?void 0:w.url)&&Je.hasError)},M("url",{onChange:()=>v("url")}))),(w==null?void 0:w.url)&&J.createElement("span",{className:Je.errorText},(O=w==null?void 0:w.url)==null?void 0:O.message)),J.createElement("div",{className:Je.inputContainer},J.createElement("div",{className:Je.labelContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:Je.label},f({id:"storyCreation.hyperlink.form.linkTextLabel"}))),J.createElement("div",{className:Je.characterCount},((ee=_("customText"))==null?void 0:ee.length)||0," / ",Gw)),J.createElement("input",S(d({id:"asc-uikit-hyperlink-input-link-text",placeholder:f({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:lo(Je.input,(w==null?void 0:w.customText)&&Je.hasError)},M("customText")),{maxLength:Gw})),(w==null?void 0:w.customText)&&J.createElement("span",{className:Je.errorText},(X=w==null?void 0:w.customText)==null?void 0:X.message),J.createElement(A.Caption,null,J.createElement("label",{className:Je.description},f({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&J.createElement("div",{className:Je.removeLinkContainer},J.createElement(Pd,{variant:"secondary",onClick:$,className:lo(Je.removeLinkButton)},J.createElement(aa,{className:Je.removeIcon}),f({id:"storyCreation.hyperlink.form.removeButton"})))))};var $w=e=>{let r=Pe({fetcher:ReactionRepository.getReactions,params:e,shouldCall:()=>!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=I(r,["items"]);return d({reactions:t},o)};var uK=createContext([]),Mc=()=>({config:useContext(uK)});var Pc=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var Sc=({reactionConfigItem:e,className:t})=>J.createElement("img",{"data-qa-anchor":"reaction_image_view",key:e.name,src:e.image,alt:e.name,className:t});var gK=o=>{var r=o,{backgroundColor:e}=r,t=I(r,["backgroundColor"]);return J.createElement("svg",d({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M19.6035 10.5C19.6035 15.7467 15.3502 20 10.1035 20C4.85681 20 0.603516 15.7467 0.603516 10.5C0.603516 5.25329 4.85681 1 10.1035 1C15.3502 1 19.6035 5.25329 19.6035 10.5Z",stroke:"currentColor",fill:e}),J.createElement("path",{d:"M10.2723 6.71429C11.6786 6.71429 13.202 7.83595 13.202 9.29242C13.202 11.2344 11.1094 11.2679 11.1094 11.9877V12.0714C11.1094 12.3058 10.9252 12.4732 10.7076 12.4732H9.48549C9.26786 12.4732 9.08371 12.3058 9.08371 12.0714V11.9208C9.08371 10.8828 9.87054 10.4643 10.4732 10.1295C10.9754 9.84487 11.2935 9.66072 11.2935 9.27568C11.2935 8.77345 10.6574 8.45537 10.1384 8.45537C9.48549 8.45537 9.16741 8.75671 8.74888 9.27568C8.61496 9.44309 8.36384 9.47657 8.19643 9.34264L7.47656 8.79019C7.29241 8.673 7.25893 8.42188 7.37612 8.25447C8.0625 7.26675 8.93304 6.71429 10.2723 6.71429ZM10.1049 12.9755C10.7411 12.9755 11.26 13.4944 11.26 14.1306C11.26 14.7667 10.7411 15.2857 10.1049 15.2857C9.45201 15.2857 8.93304 14.7667 8.93304 14.1306C8.93304 13.4944 9.45201 12.9755 10.1049 12.9755Z",fill:"currentColor"}))},Tc=gK;var Ie={reactionListContainer:"Ds",tabListContainer:"se",tabList:"Gs",tabItem:"ce",reactionEmoji:"Js",userList:"Ks",userItem:"Ns",userDetailsContainer:"Os",userDetailsProfile:"Ps",userDetailsReaction:"Qs",reactionItem:"Vs",reactionIcon:"Ws",reactionCustomStateContainer:"ne",loadingState:"Zs","skeleton-pulse":"le",reactionState:"_s",reactionState2Line:"ec",removeBtn:"rc",infiniteScrollContainer:"ac",reactionPanel:"oc",avatar:"tc"};var Zw=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=Oe(),{config:s}=Mc(),l=useMemo(()=>s.map(({name:c})=>c),[s]);return !i||!e?null:J.createElement("div",{className:Ie.infiniteScrollContainer},J.createElement(dH,{scrollableTarget:i,scrollThreshold:.7,hasMore:o,next:r,loader:n?J.createElement("span",{key:0},"Loading..."):null,dataLength:e.length||0,style:{display:"flex",width:"100%"},height:i.clientHeight},J.createElement("div",{className:Ie.userList},e.map(c=>{var p,u,f,g;return J.createElement(Fragment,{key:c.reactionId},J.createElement("div",{className:Ie.userItem},J.createElement("div",{className:Ie.userDetailsContainer},J.createElement("div",{className:Ie.userDetailsProfile},J.createElement("div",{className:Ie.avatar},J.createElement(fr,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=c.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:J.createElement(ic,null)})),J.createElement(A.BodyBold,{"data-qa-anchor":"user_display_name"},(f=c.user)==null?void 0:f.displayName,a===((g=c.user)==null?void 0:g.userId)&&J.createElement(J.Fragment,null,J.createElement("br",null),J.createElement("div",{onClick:()=>t(c.reactionName)},J.createElement(A.Caption,{className:Ie.removeBtn},"Click to remove reaction"))))),J.createElement("div",{className:Ie.userDetailsReaction},l.includes(c.reactionName)?J.createElement(Sc,{reactionConfigItem:s.find(({name:h})=>h===c.reactionName),className:Ie.reactionIcon}):J.createElement(Tc,{className:Ie.reactionIcon})))))}))))};var xK=e=>J.createElement("svg",d({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M18.8672 1.63086C19.1797 1.31836 19.6875 1.55273 19.6875 1.94336V7.5293C19.6875 7.80273 19.4531 7.99805 19.2188 7.99805H13.5938C13.2031 7.99805 12.9688 7.5293 13.2812 7.2168L15.3906 5.10742C14.0234 3.70117 12.1094 2.8418 10 2.8418C5.74219 2.8418 2.34375 6.2793 2.34375 10.498C2.34375 14.7559 5.74219 18.1543 10 18.1543C11.9531 18.1543 13.7109 17.4512 15.0781 16.2402C15.2734 16.084 15.5469 16.084 15.7031 16.2402L16.4844 17.0215C16.6797 17.2168 16.6797 17.5293 16.4844 17.7246C14.7656 19.248 12.4609 20.1855 10 20.1855C4.64844 20.1855 0.3125 15.8887 0.3125 10.5371C0.273438 5.18555 4.64844 0.810547 10 0.810547C12.6562 0.810547 15.0781 1.9043 16.8359 3.66211L18.8672 1.63086Z",fill:"#6E7487"})),Yw=xK;var Ww=()=>J.createElement("div",{className:Ie.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:Ie.reactionState},J.createElement(Yw,null),J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var IK=e=>J.createElement("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M11.25 9.28613C16.5938 9.28613 21 13.6924 21 19.0361C21 24.4268 16.5938 28.7861 11.25 28.7861C5.85938 28.7861 1.5 24.4268 1.5 19.0361C1.5 13.6924 5.85938 9.28613 11.25 9.28613ZM11.25 26.5361C15.375 26.5361 18.75 23.208 18.75 19.0361C18.75 14.9111 15.375 11.5361 11.25 11.5361C7.07812 11.5361 3.75 14.9111 3.75 19.0361C3.75 23.208 7.07812 26.5361 11.25 26.5361ZM14.1094 20.7236C14.5312 20.2549 15.2344 20.208 15.7031 20.6299C16.1719 21.0049 16.2188 21.708 15.8438 22.1768C14.6719 23.5361 13.0312 24.2861 11.25 24.2861C9.46875 24.2861 7.78125 23.5361 6.60938 22.1768C6.23438 21.708 6.28125 21.0049 6.75 20.6299C7.21875 20.208 7.92188 20.2549 8.34375 20.7236C9.75 22.4111 12.7031 22.4111 14.1094 20.7236ZM8.25 18.2861C7.40625 18.2861 6.75 17.6299 6.75 16.7861C6.75 15.9893 7.40625 15.2861 8.25 15.2861C9.04688 15.2861 9.75 15.9893 9.75 16.7861C9.75 17.6299 9.04688 18.2861 8.25 18.2861ZM14.25 18.2861C13.4062 18.2861 12.75 17.6299 12.75 16.7861C12.75 15.9893 13.4062 15.2861 14.25 15.2861C15.0469 15.2861 15.75 15.9893 15.75 16.7861C15.75 17.6299 15.0469 18.2861 14.25 18.2861ZM30.75 8.91113C31.125 8.91113 31.5 9.28613 31.5 9.66113V10.4111C31.5 10.833 31.125 11.1611 30.75 11.1611H27.375V14.5361C27.375 14.958 27 15.2861 26.625 15.2861H25.875C25.4531 15.2861 25.125 14.958 25.125 14.5361V11.1611H21.75C21.3281 11.1611 21 10.833 21 10.4111V9.66113C21 9.28613 21.3281 8.91113 21.75 8.91113H25.125V5.53613C25.125 5.16113 25.4531 4.78613 25.875 4.78613H26.625C27 4.78613 27.375 5.16113 27.375 5.53613V8.91113H30.75Z",fill:"#A5A9B5"})),Kw=IK;var Xw=()=>J.createElement("div",{className:Ie.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:Ie.reactionState},J.createElement(Kw,null),J.createElement("div",{className:Ie.reactionState2Line},J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.emptyState"})),J.createElement(A.Caption,null,J.createElement(FormattedMessage,{id:"livechat.reaction.emptyState.description"})))));var wK=e=>J.createElement("svg",d({width:"375",height:"56",viewBox:"0 0 375 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{x:"16",y:"8",width:"40",height:"40",rx:"20",fill:"#292B32"}),J.createElement("rect",{x:"64",y:"24",width:"140",height:"8",rx:"4",fill:"#292B32"})),Rw=wK;var Tu=()=>J.createElement("div",{className:lo(Ie.reactionCustomStateContainer,Ie.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>J.createElement(Rw,{key:`loading_${t}`})));var MK=(e,t)=>({addReaction:n=>P(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>P(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),o_=MK;var EK=(e,t)=>{let[o,r]=useState(0),[n,i]=useState({}),[a,s]=useState(null),l=({data:c,loading:p,error:u})=>{p||u||(r(c.reactionsCount),i(c.reactions),s(c.myReaction));};return useEffect(()=>{if(e==="message")MessageRepository.getMessage(t,l);else if(e==="story")StoryRepository.getStoryByStoryId(t,l);else if(e==="comment")CommentRepository.getComment(t,l);else if(e==="post")PostRepository.getPost(t,l);else throw new Error("Unsupported reference type")},[t,e]),{reactions:n,reactionCount:o,myReaction:a}},r_=EK;var kc="unknown",LK=(e,t,o)=>t==="All"?e:t===kc?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),FK=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?J.createElement(Tu,null):i?J.createElement(Ww,null):e.length===0?r?J.createElement(Tu,null):J.createElement(Xw,null):J.createElement(Zw,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),ku=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=ce({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:c}=$w({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=r_(o,t),[f,g]=useState("All"),h=useRef(null),{config:C}=Mc(),{removeReaction:y}=o_(o,t),x=w=>{g(w);};if(i==null||!C)return null;let v=useMemo(()=>C.map(w=>w.name),[C]),_=useMemo(()=>Object.keys(p).filter(w=>!v.includes(w)),[p]),M=useMemo(()=>_.reduce((w,T)=>w+p[T],0),[p]),b=useMemo(()=>LK(i,f,v),[i,f]);return J.createElement("div",{className:Ie.reactionListContainer,"data-qa-anchor":`${n}_header`},J.createElement("div",{className:Ie.tabListContainer},J.createElement("div",{className:Ie.tabList,"data-qa-anchor":`${n}_tab`},J.createElement("div",{"data-active":f==="All",className:Ie.tabItem,onClick:()=>x("All")},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},"All ",Pc(u)))),C.map(w=>{let{name:T,image:k}=w;return p[T]?J.createElement("div",{key:T,"data-active":f===T,className:Ie.tabItem,onClick:()=>x(T)},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},J.createElement(Sc,{className:Ie.reactionItem,reactionConfigItem:w}),Pc(p[T])))):null}),_.length>0&&J.createElement("div",{key:kc,"data-active":f===kc,className:Ie.tabItem,onClick:()=>x(kc)},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},J.createElement(Tc,{className:Ie.reactionIcon}),Pc(M)))))),J.createElement("div",{ref:h,className:Ie.reactionPanel},J.createElement(FK,{currentRef:h.current,hasMore:l,loadMore:c,error:a,isLoading:s,filteredReactions:b,removeReaction:y})))};var OK=J.createContext(void 0);var eo=()=>{let e=useContext(OK);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var Ec=o=>{var r=o,{pageId:e="*"}=r,t=I(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=eo(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Be(),{setFile:l}=Wo();return (()=>{switch(t.type){case"communityFeed":return J.createElement(_d,{pageId:e,componentId:n,communityId:t.communityId||"",onFileChange:p=>{l(p),p&&s(t.communityId||"","community",p.type.includes("image")?{type:"image",url:URL.createObjectURL(p)}:{type:"video",url:URL.createObjectURL(p)},"communityFeed");},onStoryClick:()=>a({targetId:t.communityId||"",targetType:"community",storyType:"communityFeed"})});case"globalFeed":return J.createElement(Nd,{pageId:e,componentId:n,goToViewStoryPage:({storyTarget:p,storyTargets:u})=>{var f;(f=i==null?void 0:i.goToViewStoryPage)==null||f.call(i,{targetId:p.targetId,targetType:p.targetType,storyType:"globalFeed",targetIds:u.map(g=>g.targetId)});}});default:return null}})()};var Ac={communityPrivateBadge:"en",communityPrivateBadge__iconSvg:"rn"};var YK=e=>J.createElement("svg",d({width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M5.60938 9.72656C5.26562 9.72656 5.00781 9.46875 5.00781 9.125V7.75C5.00781 7.42773 5.26562 7.14844 5.60938 7.14844C5.93164 7.14844 6.21094 7.42773 6.21094 7.75V9.125C6.21094 9.46875 5.93164 9.72656 5.60938 9.72656ZM10.4219 6.03125V10.8438C10.4219 11.4238 9.94922 11.875 9.39062 11.875H1.82812C1.24805 11.875 0.796875 11.4238 0.796875 10.8438V6.03125C0.796875 5.47266 1.24805 5 1.82812 5H2.51562V3.96875C2.51562 2.27148 3.89062 0.875 5.60938 0.875C7.32812 0.896484 8.70312 2.29297 8.70312 4.01172V5H9.39062C9.94922 5 10.4219 5.47266 10.4219 6.03125ZM3.54688 5H7.67188V3.96875C7.67188 2.85156 6.72656 1.90625 5.60938 1.90625C4.4707 1.90625 3.54688 2.85156 3.54688 3.96875V5ZM9.39062 6.03125H1.82812V10.8438H9.39062V6.03125Z"}));function Qs({pageId:e="*",componentId:t="*"}){let o="community_private_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement(le,{defaultIcon:()=>J.createElement(YK,{style:l,className:lo(Ac.communityPrivateBadge,Ac.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Ac.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var m_={communityDisplayName:"an"};function da({pageId:e="*",componentId:t="*",community:o}){var s;let r="community_display_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement(A.BodyBold,{className:m_.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var Bc={communityOfficialBadge:"on",communityOfficialBadge__iconSvg:"tn"};var XK=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e),J.createElement("path",{d:"M9.11463 13.479C8.41557 14.1728 7.75304 14.178 7.0592 13.479L6.27668 12.6964C6.20364 12.6234 6.14104 12.6025 6.04714 12.6025H4.94117C3.95519 12.6025 3.48568 12.133 3.48568 11.147V10.0411C3.48568 9.94718 3.45959 9.87936 3.39177 9.81154L2.60925 9.0238C1.91541 8.32996 1.9102 7.66743 2.60925 6.97359L3.39177 6.19107C3.45959 6.12325 3.48568 6.05543 3.48568 5.96153V4.85556C3.48568 3.85915 3.95519 3.40007 4.94117 3.40007H6.04714C6.14104 3.40007 6.20886 3.37398 6.27668 3.30616L7.0592 2.52886C7.75304 1.82459 8.41557 1.82459 9.11463 2.52364L9.89715 3.30616C9.96497 3.37398 10.0328 3.40007 10.1267 3.40007H11.2327C12.2186 3.40007 12.6882 3.86958 12.6882 4.85556V5.96153C12.6882 6.05543 12.7142 6.11803 12.7821 6.19107L13.5646 6.97359C14.2584 7.66743 14.2636 8.32996 13.5646 9.0238L12.7821 9.81154C12.7142 9.87936 12.6882 9.94718 12.6882 10.0411V11.147C12.6882 12.133 12.2186 12.6025 11.2327 12.6025H10.1267C10.0328 12.6025 9.97019 12.6234 9.89715 12.6964L9.11463 13.479Z",fill:"#1054DE"}),J.createElement("path",{d:"M6.77768 10.4846C6.89245 10.6045 7.03852 10.6724 7.22111 10.6724C7.41413 10.6724 7.57063 10.6045 7.69062 10.448L10.6173 6.3424C10.6955 6.23285 10.7372 6.10243 10.7372 5.99809C10.7372 5.69551 10.5077 5.47119 10.1843 5.47119C9.97559 5.47119 9.83995 5.54423 9.71475 5.7216L7.20024 9.31077L5.94299 7.90745C5.82822 7.78224 5.69779 7.72486 5.52042 7.72486C5.19698 7.72486 4.97266 7.94918 4.97266 8.26219C4.97266 8.39261 5.01961 8.52303 5.10829 8.61694L6.77768 10.4846Z",fill:"white"}));function Js({pageId:e="*",componentId:t="*"}){let o="community_official_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement(le,{defaultIcon:()=>J.createElement(XK,{style:l,className:lo(Bc.communityOfficialBadge,Bc.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Bc.communityOfficialBadge}),configIconName:n.icon,defaultIconName:i.icon})}createContext({drawerData:null,setDrawerData:()=>{},removeDrawerData:()=>{}});J.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=I(a,["src","mimeType","mediaFit"]);return J.createElement("video",S(d({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),J.createElement("source",{src:e,type:t}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))});var C_={modal:"Wl",modalContent:"Zl",closeButton:"_l",fullImage:"ed",nextButton:"rd",prevButton:"ad",overlayPanel:"od",overlayPanel__prev:"Se",overlayPanel__next:"Ce",overlayPanel__prevButton:"Ee",overlayPanel__nextButton:"td",overlayPanel__middle:"id",videoViewer__clearButton:"sd",videoViewer__clearButton__img:"cd"};memo(({videoPost:e})=>{let t=useMemo(()=>(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original)||void 0,[e]),o=at(t),r=at(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===e2.Transcoded){let{videoUrl:a}=o;return (a==null?void 0:a["1080p"])||(a==null?void 0:a["720p"])||(a==null?void 0:a["480p"])||(a==null?void 0:a["360p"])||(a==null?void 0:a.original)||o.fileUrl}return o.fileUrl},[o]);return useEffect(()=>{var a;(a=n.current)==null||a.load();},[i]),i==null?J.createElement(J.Fragment,null):J.createElement("video",{controls:!0,controlsList:"nodownload",autoPlay:!0,className:C_.fullImage,ref:n,poster:r==null?void 0:r.fileUrl},J.createElement("source",{src:i,type:"video/mp4"}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))});createContext({itemWithAds:[],isLoading:!1,prependItem:()=>{},removeItem:()=>{},updateItem:()=>{},loadMore:()=>{},hasMore:!1,loadMoreHasBeenCalled:!1,fetch:()=>{},refetch:()=>{},scrollPosition:0,onScroll:()=>{}});var CJ=Mm`
3895
+ 0-22.58L207.6 256z`})),yr=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="close_button",{isExcluded:a,config:s,uiReference:l,accessibilityId:c}=B({pageId:e,componentId:t,elementId:i});return a?null:J.createElement(U,{className:q5.closeButton,"data-qa-anchor":c,onPress:o},J.createElement(le,{defaultIcon:()=>J.createElement(yY,{className:lo(q5.closeButton__icon,r)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var Y5={hyperLinkButton:"do"};var vY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M18.04 14.21c1.792 1.794 1.898 4.677.316 6.575-.212.281-.07.14-2.954 3.024-1.933 1.933-5.062 1.933-6.96 0-1.934-1.899-1.934-5.028 0-6.961l2.214-2.215c.246-.246.703-.07.703.281.036.387.106.984.176 1.336.035.14 0 .281-.105.387l-1.617 1.617a2.95 2.95 0 000 4.183 2.95 2.95 0 004.183 0l2.637-2.636a2.95 2.95 0 000-4.184c-.176-.21-.563-.457-.809-.562-.14-.106-.246-.282-.21-.457.034-.387.21-.774.527-1.055l.14-.14a.435.435 0 01.492-.106c.457.246.88.527 1.266.914zm5.483-5.483c1.934 1.898 1.934 5.027 0 6.96l-2.214 2.215c-.247.246-.704.07-.704-.28a15.366 15.366 0 00-.175-1.337.397.397 0 01.105-.387l1.617-1.617a2.95 2.95 0 000-4.183 2.95 2.95 0 00-4.183 0l-2.637 2.636a2.95 2.95 0 000 4.184c.176.21.563.457.809.563.14.105.246.28.21.456a1.607 1.607 0 01-.527 1.055l-.14.14a.435.435 0 01-.493.106 5.265 5.265 0 01-1.265-.914c-1.793-1.793-1.899-4.676-.317-6.574.211-.281.07-.14 2.954-3.023 1.933-1.934 5.062-1.934 6.96 0z"})),Jd=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="story_hyperlink_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{className:Y5.hyperLinkButton,onPress:n,"data-qa-anchor":a},J.createElement(le,{defaultIcon:()=>J.createElement(vY,{className:lo(Y5.hyperLinkButton,o)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var RI={impressionButton:"mo"};var IY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M10 6.5c1.938 0 3.5 1.594 3.5 3.5 0 1.938-1.563 3.5-3.5 3.5A3.494 3.494 0 016.5 10c0-.281.063-.688.156-.969.188.125.594.219.844.219.938 0 1.75-.781 1.75-1.75-.031-.219-.125-.625-.25-.844.281-.062.719-.125 1-.156zm8.875 3.063a1.142 1.142 0 010 .906C17.187 13.78 13.812 16 10 16c-3.844 0-7.219-2.219-8.906-5.531a1.142 1.142 0 010-.906C2.78 6.25 6.156 4 10 4c3.813 0 7.188 2.25 8.875 5.563zM10 14.5c3.063 0 5.906-1.719 7.406-4.5-1.5-2.781-4.343-4.5-7.406-4.5-3.094 0-5.938 1.719-7.438 4.5 1.5 2.781 4.344 4.5 7.438 4.5z"}));function Xd({pageId:e="*",componentId:t="*",reach:o=0,defaultIconClassName:r,imgIconClassName:n}){let i="story_impression_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(le,{defaultIcon:()=>J.createElement("div",{className:lo(RI.impressionButton,r),"data-qa-anchor":a},J.createElement(IY,null),J.createElement(A.BodyBold,null,o)),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:n}),defaultIconName:l.icon,configIconName:s.icon})}var ew={overflowMenuButton:"go"};var _Y=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:"#fff",d:"M13.688 12.25c0 .95-.774 1.688-1.688 1.688-.95 0-1.688-.739-1.688-1.688 0-.914.739-1.688 1.688-1.688a1.71 1.71 0 011.688 1.688zm4.218-1.688c.914 0 1.688.774 1.688 1.688 0 .95-.774 1.688-1.688 1.688-.949 0-1.687-.739-1.687-1.688 0-.914.738-1.688 1.687-1.688zm-11.812 0c.914 0 1.687.774 1.687 1.688 0 .95-.773 1.688-1.687 1.688-.95 0-1.688-.739-1.688-1.688 0-.914.739-1.688 1.688-1.688z"})),Rd=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="overflow_menu",{config:a,defaultConfig:s,uiReference:l,themeStyles:c,accessibilityId:p}=B({pageId:e,componentId:t,elementId:i});return J.createElement(U,{style:c,"data-qa-anchor":p,className:ew.overflowMenuButton,onPress:o},J.createElement(le,{defaultIcon:()=>J.createElement(_Y,{className:r}),imgIcon:()=>J.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var MY=t=>{var e=w(t,[]);return J.createElement("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),J.createElement("path",{d:"M10.7752 12.1C11.2221 12.1 11.6002 12.4782 11.6002 12.925V21.175C11.6002 21.6563 11.2221 22 10.7752 22H8.0252C7.54395 22 7.2002 21.6563 7.2002 21.175V12.925C7.2002 12.4782 7.54395 12.1 8.0252 12.1H10.7752ZM9.4002 20.625C9.84707 20.625 10.2252 20.2813 10.2252 19.8C10.2252 19.3532 9.84707 18.975 9.4002 18.975C8.91895 18.975 8.5752 19.3532 8.5752 19.8C8.5752 20.2813 8.91895 20.625 9.4002 20.625ZM20.4002 7.2188C20.4002 8.66255 19.5064 9.48755 19.2314 10.45H22.7377C23.8721 10.45 24.7658 11.4125 24.7658 12.4782C24.8002 13.0969 24.5252 13.75 24.1127 14.1625C24.4564 14.9532 24.3877 16.0875 23.8033 16.8782C24.0783 17.7719 23.8033 18.8719 23.2189 19.4563C23.3908 20.075 23.3221 20.5907 23.0127 21.0032C22.3252 22 20.5721 22 19.0939 22H18.9908C17.3408 22 16.0002 21.4157 14.9002 20.9344C14.3502 20.6938 13.6283 20.3844 13.0783 20.3844C12.8721 20.35 12.7002 20.1782 12.7002 19.9719V12.6157C12.7002 12.5125 12.7346 12.4094 12.8033 12.3063C14.1783 10.9657 14.7627 9.5563 15.8627 8.42192C16.3783 7.9063 16.5502 7.15005 16.7564 6.3938C16.8939 5.77505 17.2033 4.40005 17.9252 4.40005C18.7502 4.40005 20.4002 4.67505 20.4002 7.2188Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#63A1FF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},W5=MY;var ow={saveButton:"P"};function ia({pageId:e="*",componentId:t="*",onPress:o,className:r}){let n="save_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:n});return s?null:J.createElement(U,{className:lo(ow.saveButton,r),"data-qa-anchor":i,style:S(d({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var Q5={shareStoryButton:"Q",shareStoryIcon:"po",shareStoryButton__image:"fo"};var EY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"14",fill:"none",viewBox:"0 0 15 14"},e),J.createElement("path",{fill:"currentColor",d:"M6.813.219c.125-.157.375-.157.53 0l6.532 6.531a.36.36 0 010 .531l-6.531 6.532c-.157.156-.407.156-.532 0l-.625-.594c-.156-.156-.156-.406 0-.531l4.844-4.876H.375A.361.361 0 010 7.438v-.875a.38.38 0 01.375-.375h10.656L6.187 1.345c-.156-.125-.156-.375 0-.532L6.813.22z"})),ec=({pageId:e="*",componentId:t="*",community:o,onClick:r})=>{let n="share_story_button",{config:i,isExcluded:a,accessibilityId:s}=B({pageId:e,componentId:t,elementId:n});return a?null:J.createElement(U,{className:lo(Q5.shareStoryButton),"data-qa-anchor":s,onPress:r,"data-hideAvatar":i==null?void 0:i.hide_avatar},!(i!=null&&i.hide_avatar)&&J.createElement(Dr,{pageId:e,community:o,componentId:t,className:Q5.shareStoryButton__image}),J.createElement(A.BodyBold,null,(i==null?void 0:i.text)||"Share story"),J.createElement(EY,null))};var tc={speakerButton:"uo",speakerButton__icon:"bo"};var BY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"#fff",d:"M15.121 9.781c.527-.527 1.441-.176 1.441.598v11.777c0 .774-.914 1.125-1.44.598l-3.13-3.129H8.406c-.492 0-.844-.352-.844-.844V13.72c0-.457.352-.844.844-.844h3.586l3.13-3.094zm9.316 6.469c0 2.25-1.16 4.29-3.023 5.52-.422.246-.95.105-1.16-.282a.845.845 0 01.246-1.16 4.807 4.807 0 002.25-4.078 4.792 4.792 0 00-2.25-4.043.845.845 0 01-.246-1.16.824.824 0 011.16-.281c1.863 1.23 3.023 3.27 3.023 5.484zm-4.992-2.672c.985.527 1.617 1.582 1.617 2.672 0 1.125-.632 2.18-1.617 2.707-.422.246-.914.105-1.16-.316a.869.869 0 01.352-1.16c.422-.247.738-.704.738-1.231 0-.492-.316-.95-.738-1.195a.87.87 0 01-.352-1.16c.246-.422.738-.563 1.16-.317z"})),LY=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"#fff",d:"M25.781 22.344a.467.467 0 01.094.687l-.594.782c-.187.218-.5.28-.718.093L6.188 9.688A.468.468 0 016.093 9l.625-.781a.468.468 0 01.687-.094l4.75 3.656 1.563-1.531c.469-.469 1.281-.156 1.281.531v3.188l2.469 1.937a1.234 1.234 0 00-.625-.969.773.773 0 01-.313-1.03c.219-.376.657-.5 1.032-.282A2.739 2.739 0 0119 16c0 .344-.094.625-.188.938l1.22.937c.28-.563.468-1.188.468-1.875a4.26 4.26 0 00-2-3.594.75.75 0 01-.219-1.031c.219-.344.688-.469 1.032-.25C20.968 12.188 22 14.031 22 16a5.727 5.727 0 01-.75 2.813l1.188.937c.656-1.125 1.03-2.406 1.03-3.719 0-2.468-1.218-4.781-3.312-6.125-.343-.219-.437-.687-.218-1.062A.795.795 0 0121 8.625c2.5 1.656 4 4.406 4 7.375 0 1.688-.5 3.281-1.375 4.656l2.156 1.688zM7 13.75c0-.25.125-.469.344-.625L15 19.031v2.219c0 .688-.813 1-1.281.531L10.938 19H7.75a.722.722 0 01-.75-.75v-4.5z"}));function oc({isMuted:e,pageId:t="*",componentId:o="*",defaultIconClassName:r,imgIconClassName:n,onPress:i}){let a="speaker_button",{accessibilityId:s,config:l,defaultConfig:c,isExcluded:p,uiReference:u}=B({pageId:t,componentId:o,elementId:a});return p?null:J.createElement(U,{className:lo(tc.speakerButton),onPress:i},J.createElement(le,{"data-qa-anchor":s,defaultIcon:()=>e?J.createElement(LY,{className:tc.speakerButton__icon}):J.createElement(BY,{className:tc.speakerButton__icon}),imgIcon:()=>J.createElement("img",{src:l.icon,alt:u,className:lo(n)}),defaultIconName:c.icon,configIconName:l.icon}))}function FY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),J.createElement("path",{d:"M9.36823 15.4777C10.062 16.1767 10.7245 16.1715 11.4234 15.4777L12.2059 14.6953C12.2789 14.6223 12.3415 14.6014 12.4354 14.6014H13.5412C14.5271 14.6014 14.9966 14.1319 14.9966 13.1461V12.0402C14.9966 11.9463 15.0227 11.8785 15.0905 11.8107L15.8729 11.023C16.5719 10.3293 16.5667 9.66681 15.8729 8.97305L15.0905 8.19061C15.0227 8.11758 14.9966 8.05499 14.9966 7.9611V6.85525C14.9966 5.86938 14.5271 5.39991 13.5412 5.39991H12.4354C12.3415 5.39991 12.2737 5.37383 12.2059 5.30602L11.4234 4.52358C10.7245 3.82461 10.062 3.82461 9.36823 4.5288L8.58579 5.30602C8.51798 5.37383 8.45017 5.39991 8.35628 5.39991H7.25043C6.26456 5.39991 5.79509 5.85894 5.79509 6.85525V7.9611C5.79509 8.05499 5.76901 8.1228 5.7012 8.19061L4.91876 8.97305C4.21979 9.66681 4.225 10.3293 4.91876 11.023L5.7012 11.8107C5.76901 11.8785 5.79509 11.9463 5.79509 12.0402V13.1461C5.79509 14.1319 6.26456 14.6014 7.25043 14.6014H8.35628C8.45017 14.6014 8.51276 14.6223 8.58579 14.6953L9.36823 15.4777ZM9.52993 12.6714C9.34736 12.6714 9.20131 12.6036 9.08655 12.4836L7.41735 10.6162C7.32867 10.5223 7.28173 10.3919 7.28173 10.2615C7.28173 9.94849 7.50603 9.72419 7.82943 9.72419C8.00679 9.72419 8.13719 9.78157 8.25195 9.90676L9.50907 11.3099L12.0233 7.72115C12.1485 7.5438 12.2841 7.47077 12.4928 7.47077C12.8162 7.47077 13.0457 7.69507 13.0457 7.99761C13.0457 8.10193 13.004 8.23234 12.9257 8.34188L9.9994 12.4471C9.87942 12.6036 9.72293 12.6714 9.52993 12.6714Z"}))}var K5=FY;function DY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M20.332 5.254a2.228 2.228 0 010 3.164l-2.637 2.637L16.5 12.25l-8.578 8.578-4.008.422H3.81A.804.804 0 013 20.336l.422-4.008L12 7.75l1.195-1.195 2.637-2.637a2.3 2.3 0 011.582-.668 2.3 2.3 0 011.582.668l1.336 1.336zM7.148 19.21l8.157-8.121 1.09-1.09-2.145-2.145-1.09 1.09-8.12 8.157-.247 2.355 2.355-.246zM19.137 7.223a.552.552 0 000-.774L17.8 5.113a.6.6 0 00-.387-.176.6.6 0 00-.387.176L15.445 6.66l2.145 2.145 1.547-1.582z"}))}var J5=DY;function VY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M19.313 6.063c.28 0 .562.28.562.562v.563a.578.578 0 01-.563.562h-.562l-.773 11.918c-.036.879-.809 1.582-1.688 1.582H7.676c-.88 0-1.653-.703-1.688-1.582L5.25 7.75h-.563a.555.555 0 01-.562-.563v-.562c0-.281.246-.563.563-.563H7.57l1.196-1.968c.28-.457.914-.844 1.441-.844h3.55c.528 0 1.161.387 1.442.844l1.196 1.968h2.918zm-9.106-1.125l-.668 1.125h4.887l-.668-1.125h-3.551zm6.082 14.625l.738-11.813H6.937l.739 11.813h8.613z"}))}var aa=VY;function OY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill||"currentColor",d:"M14.813 6.063c1.23 0 2.566-.422 3.832-.985C19.735 4.621 21 5.43 21 6.625v8.438c0 .597-.316 1.124-.773 1.44-.95.599-2.461 1.372-4.536 1.372-2.39 0-3.972-1.125-5.695-1.125-1.969 0-3.164.422-4.465 1.02v2.918a.578.578 0 01-.562.562h-.563a.555.555 0 01-.562-.563V6.415C3.316 6.133 3 5.57 3 4.938c0-.95.809-1.723 1.793-1.653A1.626 1.626 0 016.34 4.762c0 .035.035.14.035.176 0 .175-.07.421-.105.562a7.451 7.451 0 012.847-.563c2.39 0 3.973 1.125 5.695 1.125zm4.5 9V6.624c-1.125.527-2.989 1.125-4.5 1.125-2.11 0-3.586-1.125-5.696-1.125-1.476 0-2.847.598-3.586 1.125v8.156c1.09-.492 2.953-.844 4.465-.844 2.11 0 3.586 1.126 5.695 1.126 1.477 0 2.848-.563 3.621-1.125z"}))}var X5=OY;function HY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("path",{fill:e.fill?e.fill:"currentColor",d:"M14.04 10.21c1.792 1.794 1.898 4.677.316 6.575-.211.281-.07.14-2.954 3.024-1.933 1.933-5.062 1.933-6.96 0-1.934-1.899-1.934-5.028 0-6.961l2.214-2.215c.246-.246.703-.07.703.281.036.387.106.984.176 1.336.035.14 0 .281-.105.387l-1.617 1.617a2.95 2.95 0 000 4.184 2.95 2.95 0 004.183 0l2.637-2.637a2.95 2.95 0 000-4.184c-.176-.21-.563-.457-.809-.562-.14-.106-.246-.282-.21-.457.034-.387.21-.774.527-1.055l.14-.14a.435.435 0 01.492-.106c.457.246.88.527 1.266.914zm5.483-5.483c1.934 1.898 1.934 5.027 0 6.96l-2.214 2.215c-.247.246-.704.07-.704-.28a15.366 15.366 0 00-.175-1.337.397.397 0 01.105-.387l1.617-1.617a2.95 2.95 0 000-4.183 2.95 2.95 0 00-4.183 0l-2.637 2.636a2.95 2.95 0 000 4.184c.176.21.563.457.809.563.14.105.246.28.21.457a1.607 1.607 0 01-.527 1.054l-.14.14a.435.435 0 01-.493.106 5.266 5.266 0 01-1.265-.914c-1.793-1.793-1.899-4.676-.317-6.574.211-.281.07-.14 2.954-3.023 1.933-1.934 5.062-1.934 6.96 0z"}))}var R5=HY;function UY(e){return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),J.createElement("path",{fill:"#898E9E",d:"M4.375 8.875A.361.361 0 014 8.5v-1a.38.38 0 01.375-.375h7.25c.188 0 .375.188.375.375v1a.38.38 0 01-.375.375h-7.25zM15.75 8A7.749 7.749 0 018 15.75 7.749 7.749 0 01.25 8 7.749 7.749 0 018 .25 7.749 7.749 0 0115.75 8zm-1.5 0c0-3.438-2.813-6.25-6.25-6.25A6.248 6.248 0 001.75 8 6.228 6.228 0 008 14.25 6.248 6.248 0 0014.25 8z"}))}var Ll=UY;var Fl={hyperlink:"vo",hyperlinkIcon:"xo",hyperlinkText:"wo",text:"yo"};var Jn=r=>{var n=r,{href:e,children:t}=n,o=w(n,["href","children"]);return J.createElement("a",d({href:e,className:Fl.hyperlink},o),J.createElement(R5,{className:Fl.hyperlinkIcon}),J.createElement("div",{className:Fl.hyperlinkText},J.createElement("span",{className:Fl.text},t)))};var dw={editCancelButton:"ko"};var Xn=({pageId:e="*",componentId:t="*",className:o,onPress:r=()=>{}})=>{let n="edit_cancel_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:n});return s?null:J.createElement(U,{"data-qa-anchor":i,className:lo(dw.editCancelButton,o),style:S(d({},l),{backgroundColor:a.background_color}),onPress:r},J.createElement(A.Body,null,a.cancel_button_text))};var $Y=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),J.createElement("path",{d:"M23.1255 13.1312C22.385 12.4069 21.3806 12 20.3333 12C19.2861 12 18.2817 12.4069 17.5412 13.1312C16.8006 13.8555 16.3846 14.8378 16.3846 15.8621C16.3846 16.8864 16.8006 17.8687 17.5412 18.593C18.2817 19.3172 19.2861 19.7241 20.3333 19.7241C21.3806 19.7241 22.385 19.3172 23.1255 18.593C23.866 17.8687 24.2821 16.8864 24.2821 15.8621C24.2821 14.8378 23.866 13.8555 23.1255 13.1312Z",fill:"white"}),J.createElement("path",{d:"M20.3333 21.931C16.2831 21.931 13 23.7848 13 26.069V28H27.6667V26.069C27.6667 23.7848 24.3836 21.931 20.3333 21.931Z",fill:"white"})),ic=$Y;var Rn={editorPlaceholder:"jo",editorParagraph:"zo",editorContainer:"V",editorEditableContent:"Io",editorLink:"Xo",commentInput__mentionInterceptor:"Yo"};function Dl(e){return e.type==="text"}function tu(e){return e.type==="mention"}function ou(e){return e.type==="autolink"}function ru(e){return e.type==="link"}function qY(){return {children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}}function YY(){return {textStyle:"",children:[],direction:"ltr",format:"",indent:0,type:"paragraph",version:1,textFormat:0}}function eu(e){return {detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}}function WY({text:e,mention:t}){return {detail:0,format:0,mode:"normal",style:"",text:e.substring(t.index,t.index+t.length+1),type:"mention",version:1,data:{displayName:t.displayName||t.userId,userId:t.userId}}}function QY({url:e,title:t}){return {children:[eu(t)],format:"",direction:"ltr",indent:0,type:"link",version:1,url:e,rel:null,target:null,title:null}}function KY(e){return (e==null?void 0:e.type)==="url"}function Vl(e){var c,p;let t=qY(),o=e.data.text.split(`
3896
+ `),r=(p=(c=e.metadata)==null?void 0:c.mentioned)!=null?p:[],n=pw.find(e.data.text).filter(u=>u.type==="url").map(u=>({index:u.start,length:u.end-u.start+1,href:u.href,value:u.value,type:"url"})),i={},a=[...r,...n].sort((u,f)=>u.index-f.index).reduce((u,f)=>i[f.index]?u:(i[f.index]=!0,[...u,f]),[]),s=0,l=0;for(let u=0;u<o.length;u+=1){let f=YY(),g=0,h=o[u];for(;g<h.length;){let C=a[s];if(s<a.length&&C.index===l){let y=a[s];KY(y)?(f.children.push(QY({title:y.value,url:y.href})),g+=y.value.length,l+=y.value.length):(f.children.push(WY({text:e.data.text,mention:y})),g+=y.length+1,l+=y.length+1),s+=1;}else {let y=s<a.length?C.index:l+h.length,x=h.slice(g,y-l+g);x&&f.children.push(eu(x)),g+=x.length,l+=x.length;}}if(g<h.length){let C=h.slice(g);C&&f.children.push(eu(C)),l+=C.length;}l+=1,t.children.push(f);}return {root:t}}function nu(e){let t=e.getEditorState().toJSON();return JY(t)}function JY(e){let t=[],o=e.root.children,r=[],n=!1,i=[],a=0;o.forEach(l=>{let c=l.children,p=[];c.forEach(u=>{if(Dl(u)&&(p.push(u.text),a+=u.text.length),(ru(u)||ou(u))&&u.children.forEach(f=>{Dl(f)&&(p.push(f.text),a+=f.text.length);}),tu(u)){let f=u.text.charAt(0)==="@";if(u.data.userId==="all")r.push({index:a,length:u.text.length,type:"channel"}),n=!0;else {let g=f?u.text.length-1:u.text.length;r.push({index:a,length:g,type:"user",userId:u.data.userId,displayName:u.data.displayName}),i.push(u.data.userId);}p.push(u.text),a+=u.text.length;}}),a+=1,t.push(p.join(""));});let s=[];return i.length>0&&s.push({type:"user",userIds:i}),n&&s.push({type:"channel"}),{mentioned:r,text:t.join(`
3897
+ `),mentionees:s}}var XY={ltr:"ltr",rtl:"rtl"},iu=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:d(d({},XY),t),onError(n){throw n},nodes:o,editorState:r});var uw={mention:"Ro"};function tW({domNode:e,data:t}){let o=e.textContent;return o!==null?{node:Ol({text:o,data:t})}:null}var Hs=class e extends TextNode{static getType(){return "mention"}static clone(t){return new e({data:t.__data,text:t.__text,key:t.__key})}static importJSON(t){let o=Ol({text:t.text,data:t.data});return o.setTextContent(t.text),o.setFormat(t.format),o.setDetail(t.detail),o.setMode(t.mode),o.setStyle(t.style),o}constructor({text:t,data:o,key:r}){super(t,r),this.__data=o;}exportJSON(){return S(d({},super.exportJSON()),{data:this.__data,type:"mention",version:1})}createDOM(t){let o=super.createDOM(t);return o.className=uw.mention,o.setAttribute("data-qa-anchor","mention-preview"),o}exportDOM(){let t=document.createElement("span");return t.setAttribute("data-lexical-mention","true"),t.setAttribute("data-mention-data",JSON.stringify(this.__data)),t.textContent=this.__text,{element:t}}isSegmented(){return !1}static importDOM(){return {span:t=>t.hasAttribute("data-lexical-mention")?{conversion:o=>{var r;return tW({domNode:o,data:JSON.parse((r=o.getAttribute("data-mention-data"))!=null?r:"{}")})},priority:1}:null}}isTextEntity(){return !0}isToken(){return !0}canInsertTextBefore(){return !1}canInsertTextAfter(){return !1}};function Ol({text:e,data:t}){return new Hs({data:t,text:e}).setMode("segmented").toggleDirectionless()}var nW=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,iW=[e=>{let t=nW.exec(e);if(t===null)return null;let o=t[0];return {index:t.index,length:o.length,text:o,url:o.startsWith("http")?o:`https://${o}`}}],au=()=>J.createElement(AutoLinkPlugin,{matchers:iW});var su=()=>J.createElement(LinkPlugin,{validateUrl:tx});var gw=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,gW="\\b[A-Z][^\\s"+gw+"]",yW={NAME:gW,PUNCTUATION:gw},yw=yW.PUNCTUATION,mu=["@"].join(""),hw="[^"+mu+yw+"\\s]",hW="(?:\\.[ |$]| |["+yw+"]|)",CW=75,vW=new RegExp("(^|\\s|\\()(["+mu+"]((?:"+hw+hW+"){0,"+CW+"}))$"),xW=50,bW=new RegExp("(^|\\s|\\()(["+mu+"]((?:"+hw+"){0,"+xW+"}))$");function IW(e,t){let o=vW.exec(e);if(o===null&&(o=bW.exec(e)),o!==null){let r=o[1],n=o[3];if(n.length>=t)return {leadOffset:o.index+r.length,matchingString:n,replaceableString:o[2]}}return null}function wW(e){return IW(e,0)}var lu=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function du({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i}){let[a]=useLexicalComposerContext(),s=useMemo(()=>e.map(p=>new lu({data:p,dataId:t(p)})),[e]),l=useCallback((p,u,f)=>{a.update(()=>{let g=r(p.data,p.key),h=$createTextNode(" ");u&&($insertNodes([h]),h.insertBefore(u),u.replace(g)),h.select(),f();});},[a]),c=useCallback(p=>wW(p),[a]);return J.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:l,triggerFn:c,options:s,menuRenderFn:n,commandPriority:i})}var sc=({displayName:e,limit:t,enabled:o=!0})=>{let[r,n]=useState([]),[i,a]=useState(!1),[s,l]=useState(!1),[c,p]=useState(!1),u=useRef(null),f=useRef(null),g=()=>{u.current&&(u.current(),p(!0));};return useEffect(()=>{if(f.current&&(f.current(),f.current=null),!o)return;let h=UserRepository.searchUserByDisplayName({displayName:e,limit:t},C=>{l(C.hasNextPage||!1),a(C.loading),u.current=C.onNextPage||null,n(C.data);});return f.current=h,()=>{var C;(C=f.current)==null||C.call(f),f.current=null;}},[e,t,o]),{users:r,isLoading:i,hasMore:s,loadMore:g,loadMoreHasBeenCalled:c}};var cu=({communityId:e,displayName:t,limit:o,enabled:r=!0})=>{let[n,i]=useState([]),[a,s]=useState(!1),[l,c]=useState(!1),[p,u]=useState(!1),f=useRef(null),g=useRef(null),h=()=>{f.current&&(f.current(),u(!0));};return useEffect(()=>{if(!r)return;g.current&&(g.current(),g.current=null);let C=CommunityRepository.Membership.searchMembers({communityId:e,search:t,limit:o,sortBy:"displayName",includeDeleted:!1},y=>{c(y.hasNextPage||!1),s(y.loading),f.current=y.onNextPage||null,i(y.data);});return g.current=C,()=>{var y;(y=g.current)==null||y.call(g),g.current=null;}},[e,t,r]),{members:n,isLoading:a,hasMore:l,loadMore:h,loadMoreHasBeenCalled:p}};var Us={userAvatar__text:"Ao",userAvatar__placeholder__path:"Mo",userAvatar__placeholder__rect:"So",userAvatar__placeholder:"Co",userAvatar__img:"Eo"};var xw=o=>{var r=o,{className:e}=r,t=w(r,["className"]);return J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",className:lo(Us.userAvatar__placeholder,e)},t),J.createElement("rect",{width:"64",height:"64",rx:"32",className:Us.userAvatar__placeholder__rect}),J.createElement("path",{d:"M37.0007 21.0099C35.8159 19.851 34.2089 19.2 32.5333 19.2C30.8576 19.2 29.2506 19.851 28.0658 21.0099C26.881 22.1687 26.2153 23.7405 26.2153 25.3793C26.2153 27.0182 26.881 28.5899 28.0658 29.7488C29.2506 30.9076 30.8576 31.5586 32.5333 31.5586C34.2089 31.5586 35.8159 30.9076 37.0007 29.7488C38.1856 28.5899 38.8512 27.0182 38.8512 25.3793C38.8512 23.7405 38.1856 22.1687 37.0007 21.0099Z",className:Us.userAvatar__placeholder__path}),J.createElement("path",{d:"M32.5333 35.0897C26.0529 35.0897 20.7999 38.0557 20.7999 41.7104V44.8H44.2666V41.7104C44.2666 38.0557 39.0137 35.0897 32.5333 35.0897Z",className:Us.userAvatar__placeholder__path}))};function Xo({pageId:e="*",componentId:t="*",userId:o,className:r}){var s;let n="user_avatar",{user:i}=Ae({userId:o}),a=ct({fileId:(s=i==null?void 0:i.avatar)==null?void 0:s.fileId});return i==null||o==null||a==null?J.createElement(xw,{className:r}):J.createElement("object",{"data-qa-anchor":`${e}/${t}/${n}`,data:a,type:"image/png",className:lo(Us.userAvatar__img,r)},J.createElement(xw,{className:r}))}var zs={userMentionItem__item:"x",allMentionItem__item:"w",userMentionItem__avatar:"Uo",allMentionItem__atSign:"qo",userMentionItem__displayName:"Bo",allMentionItem__displayName:"Fo",userMentionItem__rightPane:"Ho",userMentionItem__brandIcon:"Lo"};function pu({pageId:e="*",componentId:t="*",option:o,isSelected:r,onClick:n,onMouseEnter:i}){let{user:a}=Ae({userId:o.data.userId});return J.createElement("li",{key:o.key,tabIndex:-1,"data-is-selected":r,"data-qa-ancgor":`${e}/${t}/mention_item`,className:zs.userMentionItem__item,ref:o.setRefElement,role:"option","aria-selected":r,onMouseEnter:i,onClick:n},J.createElement("div",null,J.createElement(Xo,{pageId:e,componentId:t,className:zs.userMentionItem__avatar,userId:o.data.userId})),J.createElement("div",{className:zs.userMentionItem__rightPane},J.createElement("p",{className:zs.userMentionItem__displayName},a==null?void 0:a.displayName),a!=null&&a.isBrand?J.createElement(Gi,{className:zs.userMentionItem__brandIcon}):null))}var EW=({node:e,onIntersect:t,options:o})=>{useEffect(()=>{if(e==null)return;let r=new IntersectionObserver(n=>{var i;return ((i=n[0])==null?void 0:i.isIntersecting)&&t()},o);return r.observe(e),()=>r.disconnect()},[e,t,o]);},Ro=EW;var YW=e=>{let[t,o]=useState(null),{community:r,isLoading:n}=No({communityId:e}),i=useMemo(()=>!!e&&!n&&!(r!=null&&r.isPublic),[e,n,r]),{members:a,hasMore:s,isLoading:l,loadMore:c}=cu({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:f,isLoading:g}=sc({displayName:t||"",limit:10,enabled:!i}),h=_=>{o(_);},C=useMemo(()=>e&&n?[]:i?a.map(({user:_,userId:M})=>({userId:(_==null?void 0:_.userId)||M,displayName:_==null?void 0:_.displayName})):p.map(({displayName:_,userId:M})=>({userId:M,displayName:_})),[p,a,i,n]),y=useMemo(()=>i?s:u,[i,s,u]),x=()=>{v||!y||(i?c():f());},v=useMemo(()=>i?l:g,[l,g,i]);return {suggestions:C,queryString:t,onQueryChange:h,loadMore:x,hasMore:y,isLoading:v}},WW=[AutoLinkNode,LinkNode,Hs],Gs=forwardRef(({pageId:e="*",componentId:t="*",communityId:o,value:r,onChange:n,maxLines:i=10,placehoder:a,mentionContainer:s},l)=>{var k;let[c,p]=useState(null),u="comment_input",{themeStyles:f,uiReference:g,config:h,accessibilityId:C}=B({pageId:e,componentId:t,elementId:u}),{onQueryChange:y,suggestions:x,isLoading:v,loadMore:_,hasMore:M}=YW(o);Ro({onIntersect:()=>{v===!1&&_();},node:c,options:{threshold:.7}});let b=J.useRef(null),I=()=>{var N;(N=b.current)==null||N.update(()=>{$getRoot().clear();}),setTimeout(()=>{var F;(F=b.current)==null||F.blur();},500);};useImperativeHandle(l,()=>({clearEditorState:I}));let T=iu({namespace:g,theme:{placeholder:Rn.editorPlaceholder,paragraph:Rn.editorParagraph,link:Rn.editorLink},nodes:WW});return J.createElement(LexicalComposer,{initialConfig:d(d({},T),(k=r==null?void 0:r.data)!=null&&k.text?{editorState:JSON.stringify(Vl(r))}:{})},J.createElement("div",{className:Rn.editorContainer,style:{"--asc-max-lines":i}},J.createElement(RichTextPlugin,{contentEditable:J.createElement(ContentEditable,{"data-qa-anchor":C,className:Rn.editorEditableContent}),placeholder:a?J.createElement("div",{className:Rn.editorPlaceholder},a):null,ErrorBoundary:LexicalErrorBoundary}),J.createElement(OnChangePlugin,{onChange:(N,F)=>{n(nu(F));}}),J.createElement(HistoryPlugin,null),J.createElement(AutoFocusPlugin,null),J.createElement(su,null),J.createElement(au,null),J.createElement(EditorRefPlugin,{editorRef:b}),J.createElement(du,{suggestions:x,getSuggestionId:N=>N.userId,onQueryChange:y,$createNode:N=>Ol({text:`@${(N==null?void 0:N.displayName)||""}`,data:N}),menuRenderFn:(N,{options:F,selectedIndex:Z,setHighlightedIndex:$,selectOptionAndCleanUp:G})=>!s||F.length===0?null:LW.createPortal(J.createElement(J.Fragment,null,F.map((O,ee)=>J.createElement(pu,{isSelected:Z===ee,onClick:()=>{$(ee),G(O);},onMouseEnter:()=>{$(ee);},key:O.key,option:O})),M&&J.createElement("div",{ref:O=>p(O),className:Rn.commentInput__mentionInterceptor})),s),commandPriority:COMMAND_PRIORITY_HIGH})))});var Ao={commentComposer:"To",commentComposer__top:"Do",commentComposer__mentionContainer:"Go",commentComposer__container:"Jo",commentComposer__avatar:"Ko",commentComposer__button:"y",commentComposer__input:"No",commentComposer__replyContainer:"Oo",commentComposer__replyContainer__text:"Po",commentComposer__replyContainer__username:"Qo",commentComposer__replyContainer__closeButton:"Vo",commentComposer__disableContainer:"Wo"};var XW=()=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},J.createElement("path",{fill:"currentColor",d:"M15.5 8c.813 0 1.5.688 1.5 1.5v7a1.5 1.5 0 01-1.5 1.5h-11A1.48 1.48 0 013 16.5v-7A1.5 1.5 0 014.5 8h1V6.5C5.5 4.031 7.5 2 10 2c2.5.031 4.5 2.063 4.5 4.563V8h1zM7 6.5V8h6V6.5c0-1.625-1.375-3-3-3-1.656 0-3 1.375-3 3zm8.5 10v-7h-11v7h11z"})),dc=({pageId:e="*",referenceId:t,referenceType:o,replyTo:r,onCancelReply:n,shouldAllowCreation:i=!0,community:a})=>{var _,M;let s=Oe().currentUserId,{user:l}=Ae({userId:s}),c=ct({fileId:(_=l==null?void 0:l.avatar)==null?void 0:_.fileId,imageSize:"small"}),p=useRef(null),u=useRef(null),f="comment_composer_bar",g=useRef(null),[h,C]=useState(0),[y,x]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:v}=useMutation({mutationFn:I=>P(void 0,[I],function*({params:b}){let T=r?r.commentId:void 0;yield CommentRepository.createComment(S(d({referenceId:r?r.referenceId:t,referenceType:o,parentId:T},b),{mentionees:b.mentionees}));}),onError:b=>{},onSuccess:()=>{var b;x({data:{text:""},mentionees:[],metadata:{}}),(b=p.current)==null||b.clearEditorState(),n();}});return i?J.createElement("div",{className:Ao.commentComposer},J.createElement("div",{className:Ao.commentComposer__top},J.createElement("div",{className:Ao.commentComposer__mentionContainer,ref:g}),r&&J.createElement("div",{className:Ao.commentComposer__replyContainer,style:{"--asc-reply-container-offset-bottom":`${h}px`}},J.createElement("div",{"data-qa-anchor":`${e}/${f}/comment_composer_reply_text`,className:Ao.commentComposer__replyContainer__text},J.createElement("span",null,"Replying to "),J.createElement("span",{className:Ao.commentComposer__replyContainer__username},r==null?void 0:r.userId)),J.createElement(jm,{onClick:n,className:Ao.commentComposer__replyContainer__closeButton}))),J.createElement("div",{className:Ao.commentComposer__container},J.createElement("div",{className:Ao.commentComposer__avatar},J.createElement(fr,{pageId:e,componentId:f,avatarUrl:c,defaultImage:J.createElement(ic,null)})),J.createElement("div",{className:Ao.commentComposer__input,ref:u,"data-qa-anchor":`${e}/${f}/comment_composer`},J.createElement(Gs,{ref:p,mentionContainer:g==null?void 0:g.current,onChange:({text:b,mentioned:I,mentionees:T})=>{x({data:{text:b},mentionees:T,metadata:{mentioned:I}});},targetType:o,targetId:t,value:y,placehoder:"Say something nice...",communityId:a==null?void 0:a.communityId})),J.createElement(U,{"data-qa-anchor":`${e}/${f}/comment_composer_post`,isDisabled:!((M=y==null?void 0:y.data)!=null&&M.text),className:Ao.commentComposer__button,onPressStart:()=>v({params:y})},J.createElement(A.Body,null,"Post")))):J.createElement("div",{className:Ao.commentComposer__disableContainer},J.createElement(XW,null),J.createElement(A.Body,null,"Comments are disabled for this story"))};var cc={moderatorBadge:"Zo",moderatorBadge__icon:"_o",moderatorBadge__text:"et"};var eQ=e=>J.createElement("svg",d({width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M7.57031 1.3125C7.85156 1.4375 8.03906 1.70312 8.03906 2C8.03906 5.46875 5.91406 7.39062 4.57031 7.95312C4.38281 8.03125 4.17969 8.03125 3.99219 7.95312C2.32031 7.25 0.539062 5.10938 0.539062 2C0.539062 1.70312 0.710938 1.4375 0.992188 1.3125L3.99219 0.0625C4.07031 0.03125 4.19531 0.015625 4.28906 0.015625C4.36719 0.015625 4.49219 0.03125 4.57031 0.0625L7.57031 1.3125ZM6.83594 3.09375C6.92969 3 6.92969 2.84375 6.83594 2.75L6.47656 2.39062C6.38281 2.29688 6.22656 2.29688 6.13281 2.39062L3.78906 4.73438L2.67969 3.64062C2.58594 3.54688 2.42969 3.54688 2.33594 3.64062L1.97656 4C1.88281 4.09375 1.88281 4.25 1.97656 4.34375L3.60156 5.96875C3.69531 6.07812 3.86719 6.07812 3.96094 5.96875L6.83594 3.09375Z"}));function $s({pageId:e="*",componentId:t="*"}){let o="moderator_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement("div",{className:cc.moderatorBadge,style:l,"data-qa-anchor":r},J.createElement(eQ,{className:cc.moderatorBadge__icon}),J.createElement("div",{className:cc.moderatorBadge__text},n.text))}var _w={timestamp:"rt"};er.extend(nQ);er.extend(rQ);er.updateLocale("en",{relativeTime:{future:"in %s",past:"%s",s:"Just now",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",M:function(e,t,o,r){if(r)return e+"M";let n=er().subtract(e,"M"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},MM:function(e,t,o,r){if(r)return e+"M";let n=er().subtract(e,"M"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},y:function(e,t,o,r){if(r)return e+"y";let n=er().subtract(e,"y"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")},yy:function(e,t,o,r){if(r)return e+"y";let n=er().subtract(e,"y"),i=er();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")}}});function Zs({pageId:e="*",componentId:t="*",timestamp:o}){let r="timestamp",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r}),s=er(o).fromNow();return i?null:J.createElement(A.Caption,{className:_w.timestamp,style:a,"data-qa-anchor":n},s)}var Le={postComment:"at",postComment__deleteComment_container:"ot",postComment__deleteComment_icon:"tt",postComment__deleteComment_text:"it",postComment__avatar:"st",postComment__details:"ct",postComment__content:"nt",postComment__content__username:"lt",postComment__content__text:"dt",postComment__secondRow:"mt",postComment__secondRow__leftPane:"gt",postComment__secondRow__timestamp:"ht",postComment__secondRow__rightPane:"pt",postComment__secondRow__rightPane__like:"ft",postComment__secondRow__like:"W",postComment__secondRow__reply:"ut",postComment__secondRow__actionButton:"bt",postComment__viewReply_button:"vt",postComment__viewReply_icon:"xt",postComment__viewReply_text:"wt",postComment__edit:"yt",postComment__edit__inputWrap:"kt",postComment__edit__mentionContainer:"jt",postComment__edit__input:"zt",postComment__edit__buttonWrap:"It",postComment__edit__button:"Xt",postComment__edit__cancelButton:"Yt",postComment__edit__saveButton:"Rt",postComment__seeMore:"At"};var aQ=e=>J.createElement("svg",d({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M13.824 9.72708L10.6334 12.8479C10.3988 13.0544 10.0469 13.0544 9.83578 12.8249L9.31965 12.3201C9.08504 12.1136 9.08504 11.7464 9.31965 11.5399L10.7507 10.2549H2.56305C2.2346 10.2549 2 10.0024 2 9.70413V5.56C2 5.25072 2.25072 5 2.56 5L3.31683 5C3.62611 5.00001 3.87683 5.25073 3.87683 5.56V8.4191H10.7507L9.31965 7.11113C9.08504 6.9046 9.08504 6.53745 9.31965 6.33093L9.83578 5.8261C10.0469 5.59663 10.3988 5.59663 10.6334 5.80315L13.824 8.92393C14.0587 9.1534 14.0587 9.49761 13.824 9.72708Z",fill:"currentColor"})),pc=aQ;var Cr={postCommentSkeleton__container:"Mt",postCommentSkeleton:"St",postCommentSkeleton__avatar:"Ct",postCommentSkeleton__details:"Et",postCommentSkeleton__content:"Ut",postCommentSkeleton__content__bar:"qt",postCommentSkeleton__animation:"Bt","skeleton-pulse":"Z"};var fc=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=ce({pageId:e,componentId:t});if(n)return null;let a=Array.from({length:o},(s,l)=>J.createElement("div",{key:l,"data-qa-anchor":r,className:lo(Cr.postCommentSkeleton,Cr.postCommentSkeleton__animation),style:i},J.createElement("div",{className:lo(Cr.postCommentSkeleton__avatar,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:lo(Cr.postCommentSkeleton__details,Cr.postCommentSkeleton__animation)},J.createElement("div",{className:lo(Cr.postCommentSkeleton__content,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:Cr.postCommentSkeleton__content__bar}))));return J.createElement("div",{className:Cr.postCommentSkeleton__container},a)};function fu({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=dt({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:i},shouldCall:!!t&&!!o&&n}),{items:a}=l,s=w(l,["items"]);return d({comments:a},s)}function ei({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=q7(),s=useRef(null);return Ni({fetcher:e,params:t,callback:l=>{let{error:c,loading:p}=l;if(p)return;if(c)throw c;let{unsubscribe:u}=a({topic:i(l),callback:o});s.current=u;},options:r,shouldCall:n}),useEffect(()=>()=>{var l;(l=s.current)==null||l.call(s);},[s]),{unsubscribe:()=>{var l;return (l=s.current)==null?void 0:l.call(s)}}}function Ul({commentId:e,shouldSubscribe:t=!0,callback:o}){return ei({fetcher:CommentRepository.getComment,params:e,callback:o,shouldSubscribe:!!e&&t,getSubscribedTopic:({data:r})=>getCommentTopic(r)})}var vr="like";var Hr={textWithMention__container:"Ft",textWithMention__clamp:"_",textWithMention__paragraph:"Ht",textWithMention__fullContent:"ee",textWithMention__mention:"Lt",textWithMention__text:"Tt",textWithMention__link:"Dt",textWithMention__showMoreLess:"Gt"};var zl=({pageId:e="*",componentId:t="*",maxLines:o=8,data:r,mentionees:n,metadata:i})=>{let[a,s]=useState(!1),[l,c]=useState(!1),[p,u]=useState(!1),f=useRef(null),{goToUserProfilePage:g}=Be(),h=useMemo(()=>Vl({data:r,mentionees:n,metadata:i}),[r,n,i]);useEffect(()=>{var _;let y=((_=f.current)==null?void 0:_.clientHeight)||0,x=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),v=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*x;y>v*o&&c(!0),u(!0);},[]);let C=(y,x)=>y.children.map(v=>{var _;return tu(v)?J.createElement(U,{"data-qa-anchor":`${e}/${t}/mention`,key:v.data.userId,className:lo(x,Hr.textWithMention__mention),onPress:()=>g(v.data.userId)},v.text):ou(v)||ru(v)?J.createElement("a",{key:v.url,href:v.url,className:lo(x,Hr.textWithMention__link),"data-qa-anchor":`${e}/${t}/post_link`},Dl(v.children[0])?(_=v.children[0])==null?void 0:_.text:v.url):Dl(v)?J.createElement("span",{className:lo(x,Hr.textWithMention__text)},v.text):null});return J.createElement("div",{className:Hr.textWithMention__container},J.createElement("div",{ref:f,className:Hr.textWithMention__fullContent,"data-hidden":p},h.root.children.map(y=>J.createElement("p",{className:Hr.textWithMention__paragraph},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:x})=>J.createElement(J.Fragment,null,C(y,x))}):J.createElement("br",null)))),J.createElement("div",{"data-qa-anchor":`${e}/${t}/text_with_mention`,"data-expanded":a,className:Hr.textWithMention__clamp,style:{"--asc-text-with-mention-max-lines":o}},l&&!a&&J.createElement("div",{onClick:()=>s(!0),className:Hr.textWithMention__showMoreLess},J.createElement(A.Body,null,"...See more")),h.root.children.map((y,x)=>J.createElement("p",{className:Hr.textWithMention__paragraph,key:x},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:v})=>J.createElement(J.Fragment,null,C(y,v))}):J.createElement("br",null)))))};var Pw=e=>{let t=zt(),[o,r]=useState(!1),{data:n,isLoading:i,refetch:a}=useQuery({queryKey:["asc-uikit","CommentRepository","isCommentFlaggedByMe",e],queryFn:()=>CommentRepository.isCommentFlaggedByMe(e),enabled:e!=null});useEffect(()=>{n!=null&&r(n);},[n]);let s=()=>P(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>P(void 0,null,function*(){if(e!=null)try{r(!1),yield CommentRepository.unflagComment(e);}catch(p){r(!0);}finally{a();}});return {isLoading:i,isFlaggedByMe:o,flagComment:s,unflagComment:l,toggleFlagComment:p=>P(void 0,null,function*(){if(e!=null)if(o){if(yield l(),p!=null&&p.onUnFlagSuccss)return p.onUnFlagSuccss();t.success({content:"Comment unreported"});}else {if(yield s(),p!=null&&p.onFlagSuccess)return p.onFlagSuccess();t.success({content:"Comment reported"});}})}};var Ys={commentOptions__actionButton:"Jt",commentOptions__actionButton__icon:"Kt",commentOptions__actionButton__text:"Nt"};var gc=({pageId:e="*",componentId:t="*",comment:o,handleEditComment:r,handleDeleteComment:n,onCloseBottomSheet:i})=>{let{userRoles:a}=Oe(),{toggleFlagComment:s,isFlaggedByMe:l}=Pw(o.commentId),{canDelete:c,canEdit:p,canReport:u}=f2(o,!1,a),f=zt(),g=()=>P(void 0,null,function*(){try{yield s({onFlagSuccess:()=>f.success({content:"Report sent"}),onUnFlagSuccss:()=>f.success({content:"Unreport sent"})});}catch(C){C instanceof Error&&f.error({content:C.message});}}),h=[p?{name:"Edit comment",action:r,icon:J.createElement(J5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"edit_comment"}:null,u?{name:l?"Unreport comment":"Report comment",action:g,icon:J.createElement(X5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"report_comment"}:null,c?{name:"Delete comment",action:n,icon:J.createElement(aa,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"delete_comment"}:null].filter(qo);return J.createElement(J.Fragment,null,h.map((C,y)=>J.createElement("div",{"data-qa-anchor":`${e}/${t}/${C.accessibilityId}`,className:Ys.commentOptions__actionButton,key:y,onClick:()=>{i(),C.action();}},C.icon,J.createElement("div",{className:Ys.commentOptions__actionButton__text},J.createElement(A.BodyBold,null,C.name)))))};var Ke={postReplyComment:"Ot",postReplyComment__avatar:"Pt",postReplyComment__details:"Qt",postReplyComment__content:"Vt",postReplyComment__content__username:"Wt",postReplyComment__content__text:"Zt",postReplyComment__secondRow:"_t",postReplyComment__secondRow__leftPane:"ei",postReplyComment__secondRow__rightPane:"ri",postReplyComment__secondRow__rightPane__like:"ai",postReplyComment__secondRow__like:"re",postReplyComment__secondRow__reply:"oi",postReplyComment__secondRow__actionButton:"ti",postReplyComment__viewReply_button:"ii",postReplyComment__viewReply_icon:"si",postReplyComment__viewReply_text:"ci",postReplyComment__actionButton:"ni",postReplyComment__actionButton__icon:"li",postReplyComment__actionButton__text:"di",postReplyComment__deleteComment_container:"mi",postReplyComment__deleteComment_icon:"gi",postReplyComment__deleteComment_text:"hi",postReplyComment__edit:"pi",postReplyComment__edit__inputWrap:"fi",postReplyComment__edit__input:"ui",postReplyComment__edit__buttonWrap:"bi",postReplyComment__edit__button:"vi",postReplyComment__edit__cancelButton:"xi",postReplyComment__edit__saveButton:"wi",postReplyComment__secondRow__timestamp:"yi"};var wQ=10;function yc({targetType:e,targetId:t,feedType:o,limit:r=wQ}){let a=dt({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:!!t&&!!e}),{items:n}=a,i=w(a,["items"]);return d({posts:n},i)}var{COMMUNITY_MODERATOR:MQ}=_l;function jl({communityId:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[MQ],limit:20},shouldCall:!!e&&t}),{items:o}=n,r=w(n,["items"]);return d({moderators:o},r)}var SQ=({post:e,childrenPosts:t=[],community:o,userId:r})=>{var g,h,C;let{moderators:n}=jl({communityId:o==null?void 0:o.communityId}),{client:i}=Sp(),{posts:a}=yc({targetType:"community",targetId:o==null?void 0:o.communityId,feedType:"reviewing"}),s=useMemo(()=>!t.find(y=>y.dataType==="liveStream"||y.dataType==="poll"),[t]),l=n.find(y=>y.userId===r),c=(e==null?void 0:e.postedUserId)===r,p=useMemo(()=>(o==null?void 0:o.postSetting)!=CommunityPostSettings.ANYONE_CAN_POST?a.find(y=>y.postId===(e==null?void 0:e.postId))!=null:!1,[o,a]),u=l!=null,f={canEdit:!1,canReport:!1,canDelete:!1,canReview:!1};if(c)!p&&s&&(f.canEdit=!0),f.canDelete=!0;else {if(o!=null){let y=(g=i==null?void 0:i.hasPermission("EDIT_COMMUNITY_FEED_POST").community(o.communityId))!=null?g:!1;f.canEdit=y&&s;let x=(h=i==null?void 0:i.hasPermission("DELETE_COMMUNITY_FEED_POST").community(o.communityId))!=null?h:!1;f.canDelete=x;}else {let y=(C=i==null?void 0:i.hasPermission("EDIT_USER_FEED_POST").currentUser())!=null?C:!1;f.canDelete=y;}p||(f.canReport=!0);}return d({isPostUnderReview:p,isModerator:u},f)},hc=SQ;var kQ=({pageId:e="*",community:t,comment:o})=>{var N,F;let r="post_comment",{confirm:n}=bt(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:c,themeStyles:p}=ce({pageId:e,componentId:r}),[u,f]=useState(!1),[g,h]=useState(!1),[C,y]=useState(),{isModerator:x}=hc({community:t,userId:(N=o.creator)==null?void 0:N.userId}),v=(o.myReactions||[]).some(Z=>Z==="like"),_=()=>f(Z=>!Z),M=()=>P(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),b=()=>{h(!0);},I=()=>{n({pageId:e,componentId:r,title:"Delete reply",content:"This reply will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:M});},T=()=>P(void 0,null,function*(){o&&(v?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),k=useCallback(()=>P(void 0,null,function*(){!C||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:C.data,mentionees:C.mentionees,metadata:C.metadata}),h(!1));}),[C]);return Ul({commentId:o.commentId}),l?null:J.createElement(J.Fragment,null,o.isDeleted?J.createElement("div",{className:Ke.postReplyComment__deleteComment_container,style:p},J.createElement(Ll,{className:Ke.postReplyComment__deleteComment_icon}),J.createElement(A.Caption,{className:Ke.postReplyComment__deleteComment_text},"This reply has been deleted")):g?J.createElement("div",{className:Ke.postReplyComment__edit},J.createElement(Xo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Ke.postReplyComment__edit__inputWrap},J.createElement("div",{className:Ke.postReplyComment__edit__input},J.createElement(Gs,{pageId:e,componentId:r,communityId:t==null?void 0:t.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:Z=>{y({data:{text:Z.text},mentionees:Z.mentionees,metadata:{mentioned:Z.mentioned}});}})),J.createElement("div",{className:Ke.postReplyComment__edit__buttonWrap},J.createElement(Xn,{componentId:"edit_comment_component",className:lo(Ke.postReplyComment__edit__button,Ke.postReplyComment__edit__cancelButton),onPress:()=>{h(!1);}}),J.createElement(ia,{className:lo(Ke.postReplyComment__edit__button,Ke.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):J.createElement("div",{className:Ke.postReplyComment,style:p,"data-qa-anchor":i},J.createElement(Xo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Ke.postReplyComment__details},J.createElement("div",{className:Ke.postReplyComment__content},J.createElement(A.BodyBold,{className:Ke.postReplyComment__content__username},(F=o.creator)==null?void 0:F.displayName),x&&J.createElement($s,{pageId:e,componentId:r}),J.createElement(zl,{pageId:e,componentId:r,data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),J.createElement("div",{className:Ke.postReplyComment__secondRow},J.createElement("div",{className:Ke.postReplyComment__secondRow__leftPane},J.createElement(A.Caption,{className:Ke.postReplyComment__secondRow__timestamp},J.createElement(Zs,{pageId:e,componentId:r,timestamp:o.createdAt}),J.createElement("span",{"data-qa-anchor":`${e}/${r}/reply_comment_edited_text`},o.createdAt!==o.editedAt&&" (edited)")),J.createElement("div",{onClick:T},J.createElement(A.CaptionBold,{"data-qa-anchor":`${e}/${r}/reply_comment_like`,className:Ke.postReplyComment__secondRow__like,"data-is-liked":v},v?"Liked":"Like")),J.createElement(Cn,{"data-qa-anchor":`${e}/${r}/reply_comment_options`,className:Ke.postReplyComment__secondRow__actionButton,onClick:()=>f(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Ke.postReplyComment__secondRow__rightPane},J.createElement(A.Caption,null,gg(o.reactionsCount)),J.createElement(W5,{className:Ke.postReplyComment__secondRow__rightPane__like}))))),J.createElement(Co,{onClose:_,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(gc,{pageId:e,componentId:r,comment:o,onCloseBottomSheet:_,handleEditComment:b,handleDeleteComment:I})))},Ew=kQ;var Cc={postReplyCommentList__viewReply_button:"ki",postReplyCommentList__viewReply_icon:"ji",postReplyCommentList__viewReply_text:"zi"};var Aw=({pageId:e="*",componentId:t="*",referenceId:o,referenceType:r,community:n,parentId:i})=>{let{comments:a,hasMore:s,isLoading:l,loadMore:c}=fu({referenceId:o,referenceType:r,parentId:i,limit:10,shouldCall:!0,includeDeleted:!0}),p=()=>{c();};return J.createElement("div",null,l&&J.createElement(fc,{numberOfSkeletons:3}),a.map(u=>J.createElement(Ew,{pageId:e,community:n,comment:u})),s&&J.createElement("div",{className:Cc.postReplyCommentList__viewReply_button,onClick:p},J.createElement(pc,{className:Cc.postReplyCommentList__viewReply_icon}),J.createElement(A.CaptionBold,{className:Cc.postReplyCommentList__viewReply_text},"View more replies")))};var FQ=t=>{var e=w(t,[]);return J.createElement("svg",d({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M9.6875 2.25C9.6875 3.19922 8.91406 3.9375 8 3.9375C7.05078 3.9375 6.3125 3.19922 6.3125 2.25C6.3125 1.33594 7.05078 0.5625 8 0.5625C8.91406 0.5625 9.6875 1.33594 9.6875 2.25ZM13.9062 0.5625C14.8203 0.5625 15.5938 1.33594 15.5938 2.25C15.5938 3.19922 14.8203 3.9375 13.9062 3.9375C12.957 3.9375 12.2188 3.19922 12.2188 2.25C12.2188 1.33594 12.957 0.5625 13.9062 0.5625ZM2.09375 0.5625C3.00781 0.5625 3.78125 1.33594 3.78125 2.25C3.78125 3.19922 3.00781 3.9375 2.09375 3.9375C1.14453 3.9375 0.40625 3.19922 0.40625 2.25C0.40625 1.33594 1.14453 0.5625 2.09375 0.5625Z"}))},DQ=t=>{var e=w(t,[]);return J.createElement("svg",d({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),J.createElement("path",{d:"M10.7752 12.1C11.2221 12.1 11.6002 12.4782 11.6002 12.925V21.175C11.6002 21.6563 11.2221 22 10.7752 22H8.0252C7.54395 22 7.2002 21.6563 7.2002 21.175V12.925C7.2002 12.4782 7.54395 12.1 8.0252 12.1H10.7752ZM9.4002 20.625C9.84707 20.625 10.2252 20.2813 10.2252 19.8C10.2252 19.3532 9.84707 18.975 9.4002 18.975C8.91895 18.975 8.5752 19.3532 8.5752 19.8C8.5752 20.2813 8.91895 20.625 9.4002 20.625ZM20.4002 7.2188C20.4002 8.66255 19.5064 9.48755 19.2314 10.45H22.7377C23.8721 10.45 24.7658 11.4125 24.7658 12.4782C24.8002 13.0969 24.5252 13.75 24.1127 14.1625C24.4564 14.9532 24.3877 16.0875 23.8033 16.8782C24.0783 17.7719 23.8033 18.8719 23.2189 19.4563C23.3908 20.075 23.3221 20.5907 23.0127 21.0032C22.3252 22 20.5721 22 19.0939 22H18.9908C17.3408 22 16.0002 21.4157 14.9002 20.9344C14.3502 20.6938 13.6283 20.3844 13.0783 20.3844C12.8721 20.35 12.7002 20.1782 12.7002 19.9719V12.6157C12.7002 12.5125 12.7346 12.4094 12.8033 12.3063C14.1783 10.9657 14.7627 9.5563 15.8627 8.42192C16.3783 7.9063 16.5502 7.15005 16.7564 6.3938C16.8939 5.77505 17.2033 4.40005 17.9252 4.40005C18.7502 4.40005 20.4002 4.67505 20.4002 7.2188Z",fill:"white"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#63A1FF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},Dw=({pageId:e="*",componentId:t="comment_bubble",comment:o,community:r,onClickReply:n,shouldAllowInteraction:i=!0})=>{var O,ee;let {accessibilityId:a,isExcluded:s,themeStyles:l}=ce({pageId:e,componentId:t}),{confirm:c}=bt(),[p,u]=useState(!1),[f,g]=useState(!1),[h,C]=useState(!1),[y,x]=useState(),v=useRef(null);useState(!1);let {isModerator:b}=hc({community:r,userId:(O=o.creator)==null?void 0:O.userId}),I=()=>u(X=>!X),T=(o.myReactions||[]).some(X=>X==="like"),k=o.childrenNumber;if(s)return null;let N=()=>P(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),F=()=>{C(!0);},Z=()=>{c({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:N});},$=()=>P(void 0,null,function*(){o&&(T?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),G=useCallback(()=>P(void 0,null,function*(){!y||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:y.data,mentionees:y.mentionees,metadata:y.metadata}),C(!1));}),[y]);return Ul({commentId:o.commentId}),J.createElement("div",{style:l,"data-qa-anchor":a},o.isDeleted?J.createElement("div",{className:Le.postComment__deleteComment_container},J.createElement(Ll,{className:Le.postComment__deleteComment_icon}),J.createElement(A.Body,{className:Le.postComment__deleteComment_text},"This comment has been deleted")):h?J.createElement("div",{className:Le.postComment__edit},J.createElement(Xo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Le.postComment__edit__inputWrap},J.createElement("div",{className:Le.postComment__edit__input},J.createElement("div",{className:Le.postComment__edit__mentionContainer,ref:v}),J.createElement(Gs,{communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:X=>{x({data:{text:X.text},mentionees:X.mentionees,metadata:{mentioned:X.mentioned}});},maxLines:5,mentionContainer:v==null?void 0:v.current})),J.createElement("div",{className:Le.postComment__edit__buttonWrap},J.createElement(Xn,{componentId:"edit_comment_component",className:lo(Le.postComment__edit__button,Le.postComment__edit__cancelButton),onPress:()=>{C(!1);}}),J.createElement(ia,{className:lo(Le.postComment__edit__button,Le.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):J.createElement("div",{className:Le.postComment},J.createElement(Xo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Le.postComment__details},J.createElement("div",{className:Le.postComment__content},J.createElement(A.BodyBold,{"data-qa-anchor":`${e}/${t}/username`,className:Le.postComment__content__username},(ee=o.creator)==null?void 0:ee.displayName),b&&J.createElement($s,{pageId:e,componentId:t}),J.createElement(zl,{pageId:e,componentId:t,data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),J.createElement("div",{className:Le.postComment__secondRow},i&&J.createElement("div",{className:Le.postComment__secondRow__leftPane},J.createElement(A.Caption,{className:Le.postComment__secondRow__timestamp},J.createElement(Zs,{pageId:e,componentId:t,timestamp:o.createdAt}),J.createElement("span",{"data-qa-anchor":`${e}/${t}/comment_edited_text`},o.createdAt!==o.editedAt&&" (edited)")),J.createElement("div",{onClick:$},J.createElement(A.CaptionBold,{className:Le.postComment__secondRow__like,"data-is-liked":T},T?"Liked":"Like")),J.createElement("div",{"data-qa-anchor":`${e}/${t}/reply_button`,onClick:()=>n(o)},J.createElement(A.CaptionBold,{className:Le.postComment__secondRow__reply},"Reply")),J.createElement(FQ,{className:Le.postComment__secondRow__actionButton,onClick:()=>u(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Le.postComment__secondRow__rightPane},J.createElement(A.Caption,null,gg(o.reactionsCount)),J.createElement(DQ,{className:Le.postComment__secondRow__rightPane__like}))),k>0&&!f&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/view_reply_button`,className:Le.postComment__viewReply_button,onClick:()=>g(!0)},J.createElement(pc,{className:Le.postComment__viewReply_icon}),J.createElement(A.CaptionBold,{className:Le.postComment__viewReply_text},"View ",k," ",k>1?"replies":"reply")),f&&J.createElement(Aw,{pageId:e,componentId:t,community:r!=null?r:void 0,referenceId:o.referenceId,referenceType:o.referenceType,parentId:o.commentId}))),J.createElement(Co,{onClose:I,isOpen:p,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(gc,{pageId:e,componentId:t,comment:o,handleEditComment:F,handleDeleteComment:Z,onCloseBottomSheet:I})))};var pt={commentAd:"Ii",commentAd__container:"Xi",commentAd__details:"Yi",commentAd__avatar:"Ri",commentAd__content:"Ai",commentAd__content__advertiserName__container:"Mi",commentAd__content__advertiserName:"Si",commentAd__content__text:"Ci",commentAd__adCard:"Ei",commentAd__adCard__imageContainer:"Ui",commentAd__adCard__image:"qi",commentAd__adCard__detail:"Bi",commentAd__adCard__textContainer:"Fi",commentAd__adCard__description:"Hi",commentAd__adCard__headline:"Li",commentAd__adCard__button:"Ti",commentAd__adCard__button__text:"Di",infoIcon__button:"Gi",infoIcon:"Ji"};var OQ=o=>{var r=o,{color:e="white"}=r,t=w(r,["color"]);return J.createElement("svg",d({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M5.54688 1.78125C5.73438 1.40625 6.26562 1.42188 6.4375 1.78125L7.46875 3.85938L9.75 4.1875C10.1562 4.25 10.3125 4.75 10.0156 5.04688L8.375 6.65625L8.76562 8.92188C8.82812 9.32812 8.39062 9.64062 8.03125 9.45312L6 8.375L3.95312 9.45312C3.59375 9.64062 3.15625 9.32812 3.21875 8.92188L3.60938 6.65625L1.96875 5.04688C1.67188 4.75 1.82812 4.25 2.23438 4.1875L4.53125 3.85938L5.54688 1.78125Z",fill:e}))},Ow=OQ;var $l={badge:"ae",badge__icon:"Ki",badge__text:"Ni",badge__child:"Oi"};var Zl=()=>J.createElement("div",{className:$l.badge},J.createElement("div",{className:$l.badge__child},J.createElement(Ow,{className:$l.badge__icon}),J.createElement("div",{className:$l.badge__text},"Sponsored")));var UQ=e=>J.createElement("svg",d({width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{width:"64",height:"64",rx:"32",fill:"#D9E5FC"}),J.createElement("path",{d:"M20 28.5358C20.5156 28.5358 20.9375 28.8639 21.2188 29.2858L41 23.2858V41.2858L34.8125 39.4576C34.2969 41.3795 32.5625 42.7858 30.5 42.7858C28.0156 42.7858 26 40.7701 26 38.2858C26 37.817 26.0938 37.3014 26.2344 36.8795L21.2188 35.3326C20.9375 35.7545 20.5156 36.0358 20 36.0358C19.1562 36.0358 18.5 35.3795 18.5 34.5358V30.0358C18.5 29.2389 19.1562 28.5358 20 28.5358ZM28.3906 37.4889C28.2969 37.7701 28.25 38.0045 28.25 38.2858C28.25 39.5514 29.2344 40.5358 30.5 40.5358C31.5312 40.5358 32.4219 39.7858 32.6562 38.8014L28.3906 37.4889ZM44.75 21.7858C45.125 21.7858 45.5 22.1608 45.5 22.5358V42.0358C45.5 42.4576 45.125 42.7858 44.75 42.7858H43.25C42.8281 42.7858 42.5 42.4576 42.5 42.0358V22.5358C42.5 22.1608 42.8281 21.7858 43.25 21.7858H44.75Z",fill:"white"})),ql=UQ;var zQ=e=>J.createElement("svg",d({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M8 2.25006C4.25 2.25006 1.25 5.28131 1.25 9.00006C1.25 12.7501 4.25 15.7501 8 15.7501C11.7188 15.7501 14.75 12.7501 14.75 9.00006C14.75 5.28131 11.6875 2.25006 8 2.25006ZM8 1.25006C12.25 1.25006 15.75 4.75006 15.75 9.00006C15.75 13.2813 12.25 16.7501 8 16.7501C3.71875 16.7501 0.25 13.2813 0.25 9.00006C0.25 4.75006 3.71875 1.25006 8 1.25006ZM6.875 12.0001H7.25V8.25006H6.875C6.65625 8.25006 6.5 8.09381 6.5 7.87506V7.62506C6.5 7.43756 6.65625 7.25006 6.875 7.25006H8.375C8.5625 7.25006 8.75 7.43756 8.75 7.62506V12.0001H9.125C9.3125 12.0001 9.5 12.1876 9.5 12.3751V12.6251C9.5 12.8438 9.3125 13.0001 9.125 13.0001H6.875C6.65625 13.0001 6.5 12.8438 6.5 12.6251V12.3751C6.5 12.1876 6.65625 12.0001 6.875 12.0001ZM8 4.50006C8.53125 4.50006 9 4.96881 9 5.50006C9 6.06256 8.53125 6.50006 8 6.50006C7.4375 6.50006 7 6.06256 7 5.50006C7 4.96881 7.4375 4.50006 8 4.50006Z",fill:"#A5A9B5"})),xr=zQ;var Lt={drawer__content:"oe",drawer__innerContent:"Pi",drawer__placeholder:"Qi",drawer__overlay:"Vi",drawer__title:"Wi",drawer__content__data:"Zi",drawer__content__data__title:"_i",drawer__content__data__text:"es",drawer__content__data__caption:"rs",drawer__content__data__infoIcon:"as",drawer__content__emptySpace:"os"};var xu=({isOpen:e,onOpenChange:t,ad:o})=>{var r;return J.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:n=>n.stopPropagation()},J.createElement(Drawer.Portal,null,J.createElement(Drawer.Overlay,{className:Lt.drawer__overlay}),J.createElement(Drawer.Content,{className:Lt.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},J.createElement("div",{className:Lt.drawer__innerContent},J.createElement("div",{className:Lt.drawer__placeholder}),J.createElement(Drawer.Title,{className:Lt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:Lt.drawer__content__data},J.createElement(A.BodyBold,{className:Lt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:Lt.drawer__content__data__text},J.createElement(xr,{className:Lt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Lt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:Lt.drawer__content__data},J.createElement(A.BodyBold,{className:Lt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:Lt.drawer__content__data__text},J.createElement(xr,{className:Lt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Lt.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),J.createElement("div",{className:Lt.drawer__content__emptySpace})))))};var Uw=({ad:e,themeStyles:t,avatarUrl:o,adImageUrl:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return J.createElement("div",{className:pt.commentAd,style:t},J.createElement(U,{className:pt.infoIcon__button,onPress:()=>a(!0)},J.createElement(xr,{className:pt.infoIcon})),J.createElement("div",{className:pt.commentAd__container},J.createElement("div",{className:pt.commentAd__avatar},J.createElement(fr,{avatarUrl:o,defaultImage:J.createElement(ql,null)})),J.createElement("div",{className:pt.commentAd__details},J.createElement("div",{className:pt.commentAd__content},J.createElement(A.BodyBold,{className:pt.commentAd__content__advertiserName__container},J.createElement("div",{className:pt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),J.createElement(Zl,null),J.createElement("div",null,J.createElement(A.Body,{className:pt.commentAd__content__text},e.body)),J.createElement("div",{className:pt.commentAd__adCard,onClick:s},J.createElement("div",{className:pt.commentAd__adCard__imageContainer},J.createElement("img",{className:pt.commentAd__adCard__image,src:r})),J.createElement("div",{className:pt.commentAd__adCard__detail},J.createElement("div",{className:pt.commentAd__adCard__textContainer},J.createElement(A.Caption,{renderer:({typoClassName:c})=>J.createElement("div",{className:lo(c,pt.commentAd__adCard__description)},e.description)}),J.createElement(A.BodyBold,{className:pt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?J.createElement(U,{className:pt.commentAd__adCard__button,onPress:s},J.createElement(A.CaptionBold,{className:pt.commentAd__adCard__button__text},e.callToAction)):null))))),J.createElement(xu,{ad:e,isOpen:i,onOpenChange:c=>a(c)}))};var zw=({pageId:e="*",ad:t})=>{var c,p,u,f,g,h;let o="comment_tray_component",{themeStyles:r}=ce({pageId:e,componentId:o}),i=ct({fileId:(p=(c=t.advertiser)==null?void 0:c.avatar)==null?void 0:p.fileId})||((f=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:f.fileUrl)||"",s=ct({fileId:(g=t.image1_1)==null?void 0:g.fileId})||((h=t.image1_1)==null?void 0:h.fileUrl)||"";return J.createElement(Uw,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:C=>{window==null||window.open(C,"_blank");}})};var xc={commentList__container:"ts",commentList__viewAllComments__button:"is",commentList__container_intersection:"ss",noCommentsContainer:"cs"};function la({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return ei({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}function bc({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return ei({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var tK=e=>"adId"in e,Ic=({referenceId:e,referenceType:t,pageId:o="*",onClickReply:r,limit:n=5,includeDeleted:i=!1,community:a,shouldAllowInteraction:s=!0})=>{let l="comment_tray_component",{themeStyles:c,accessibilityId:p}=ce({componentId:l,pageId:o}),u=useRef(null),[f,g]=useState(null),{items:h,loadMore:C,hasMore:y,isLoading:x}=wl({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:v=>v.commentId,shouldCall:!0});return Ro({node:f,options:{threshold:.8},onIntersect:()=>{y&&x===!1&&C();}}),bc({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),la({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!x&&h.length===0?J.createElement("div",{className:xc.noCommentsContainer},J.createElement(A.Body,null,"No comments yet")):J.createElement("div",{className:xc.commentList__container,style:c,ref:u,"data-qa-anchor":p},h.map(v=>tK(v)?J.createElement(zw,{key:v.adId,ad:v}):J.createElement(Dw,{pageId:o,key:v.commentId,comment:v,onClickReply:_=>r==null?void 0:r(_),componentId:l,community:a,shouldAllowInteraction:s})),x&&J.createElement(fc,{pageId:o,componentId:l,numberOfSkeletons:3}),J.createElement("div",{ref:v=>g(v),className:xc.commentList__container_intersection}))};var bu={container:"ns",header:"ls",roundedHeader:"ds",content:"ms",scroller:"gs",composeBarContainer:"hs",nestedBackdrop:"ps",commentTrayContainer:"fs",commentListContainer:"us",mobileSheetComposeBarContainer:"bs"};var Qs=({pageId:e="*",referenceType:t,referenceId:o,community:r={},shouldAllowInteraction:n=!0,shouldAllowCreation:i=!0})=>{let a="comment_tray_component",{accessibilityId:s,themeStyles:l}=ce({pageId:e,componentId:a}),[c,p]=useState(null),u=g=>{p(g);},f=()=>{p(null);};return J.createElement("div",{style:l,"data-qa-anchor":s,className:bu.commentTrayContainer},J.createElement("div",{className:bu.commentListContainer},J.createElement(Ic,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),J.createElement(dc,{referenceId:o,referenceType:t,onCancelReply:f,replyTo:c,shouldAllowCreation:i}))};var Iu={doneButton:"vs",doneButton_text:"xs"};function wu(n){var i=n,{pageId:e="*",componentId:t="*",className:o}=i,r=w(i,["pageId","componentId","className"]);let a="done_button",{accessibilityId:s,config:l,isExcluded:c}=B({pageId:e,componentId:t,elementId:a});return c?null:J.createElement(U,d({className:`${Iu.doneButton} ${o||""}`,"data-qa-anchor":s},r),J.createElement(A.Body,{className:Iu.doneButton_text},l.done_button_text))}var Je={hyperlinkFormContainer:"ws",form:"ys",bottomSheet:"a","react-modal-sheet-backdrop":"ks","react-modal-sheet-container":"js","react-modal-sheet-content":"zs","react-modal-sheet-header":"Is","react-modal-sheet-drag-indicator":"Xs",inputContainer:"Ys",input:"te",hasError:"Rs",label:"k",required:"As",description:"Ms",errorText:"Ss",characterCount:"Cs",headerContainer:"Es",labelContainer:"Us",headerTitle:"qs",cancelButton:"Bs",doneButton:"ie",removeIcon:"Fs",removeLinkButton:"Hs",divider:"Ls",removeLinkContainer:"Ts"};var Gw=30,Mu=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var O,ee,X;let a="hyper_link_config_component",{confirm:s}=bt(),{accessibilityId:l,config:c,isExcluded:p,themeStyles:u}=ce({pageId:e,componentId:a});if(p)return null;let{formatMessage:f}=useIntl(),{client:g}=Oe(),[h,C]=useState(!1),y="asc-story-hyperlink-form",x=z.object({url:z.string().refine(L=>{if(!L)return !0;try{let H=new URL(L);return ["http:","https:"].includes(H.protocol)}catch(H){if(L.startsWith("www."))try{let K=new URL(`https://${L}`);return ["http:","https:"].includes(K.protocol)}catch(K){return !1}return !1}},{message:f({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(L=>P(void 0,null,function*(){if(!L)return !0;let H=L.startsWith("www.")?`https://${L}`:L;return yield g==null?void 0:g.validateUrls([H]).catch(()=>!1)}),{message:f({id:"storyCreation.hyperlink.validation.error.whitelisted"})}),customText:z.string().optional().refine(L=>P(void 0,null,function*(){return L?yield g==null?void 0:g.validateTexts([L]).catch(()=>!1):!0}),f({id:"storyCreation.hyperlink.validation.error.blocked"}))}),{trigger:v,watch:_,register:M,handleSubmit:b,formState:{errors:I},reset:T}=useForm({resolver:zodResolver(x)}),{url:k,customText:N}=_();useEffect(()=>{C(k!==""||N!=="");},[k,N]);let F=L=>{n(L),r();},Z=()=>{T(),i(),r();},$=()=>{s({title:f({id:"storyCreation.hyperlink.removeConfirm.title"}),content:f({id:"storyCreation.hyperlink.removeConfirm.content"}),cancelText:f({id:"storyCreation.hyperlink.removeConfirm.cancel"}),okText:f({id:"storyCreation.hyperlink.removeConfirm.confirm"}),onOk:Z});},G=()=>{h?s({title:f({id:"storyCreation.hyperlink.unsavedChanges.title"}),content:f({id:"storyCreation.hyperlink.unsavedChanges.content"}),cancelText:f({id:"storyCreation.hyperlink.unsavedChanges.cancel"}),okText:f({id:"storyCreation.hyperlink.unsavedChanges.confirm"}),onOk:()=>{T(),r();}}):r();};return J.createElement(Co,{"data-qa-anchor":l,detent:"full-height",mountPoint:document.getElementById("asc-uikit-create-story"),rootId:"asc-uikit-create-story",isOpen:t,onClose:G,className:Je.bottomSheet,style:u},J.createElement("div",{className:Je.headerContainer},J.createElement(Xn,{pageId:e,componentId:a,onPress:G}),J.createElement(A.Title,null,f({id:"storyCreation.hyperlink.bottomSheet.title"})),J.createElement(wu,{type:"submit",pageId:e,componentId:a,form:y})),J.createElement("div",{className:Je.divider}),J.createElement("div",{className:Je.hyperlinkFormContainer},J.createElement("form",{onSubmit:b(F),id:y,className:Je.form},J.createElement("div",{className:Je.inputContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:lo(Je.label,Je.required)},f({id:"storyCreation.hyperlink.form.urlLabel"}))),J.createElement("input",d({id:"asc-uikit-hyperlink-input-url",placeholder:f({id:"storyCreation.hyperlink.form.urlPlaceholder"}),className:lo(Je.input,(I==null?void 0:I.url)&&Je.hasError)},M("url",{onChange:()=>v("url")}))),(I==null?void 0:I.url)&&J.createElement("span",{className:Je.errorText},(O=I==null?void 0:I.url)==null?void 0:O.message)),J.createElement("div",{className:Je.inputContainer},J.createElement("div",{className:Je.labelContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:Je.label},f({id:"storyCreation.hyperlink.form.linkTextLabel"}))),J.createElement("div",{className:Je.characterCount},((ee=_("customText"))==null?void 0:ee.length)||0," / ",Gw)),J.createElement("input",S(d({id:"asc-uikit-hyperlink-input-link-text",placeholder:f({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:lo(Je.input,(I==null?void 0:I.customText)&&Je.hasError)},M("customText")),{maxLength:Gw})),(I==null?void 0:I.customText)&&J.createElement("span",{className:Je.errorText},(X=I==null?void 0:I.customText)==null?void 0:X.message),J.createElement(A.Caption,null,J.createElement("label",{className:Je.description},f({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&J.createElement("div",{className:Je.removeLinkContainer},J.createElement(Pd,{variant:"secondary",onClick:$,className:lo(Je.removeLinkButton)},J.createElement(aa,{className:Je.removeIcon}),f({id:"storyCreation.hyperlink.form.removeButton"})))))};var $w=e=>{let r=Pe({fetcher:ReactionRepository.getReactions,params:e,shouldCall:()=>!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=w(r,["items"]);return d({reactions:t},o)};var fK=createContext([]),Mc=()=>({config:useContext(fK)});var Pc=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var Sc=({reactionConfigItem:e,className:t})=>J.createElement("img",{"data-qa-anchor":"reaction_image_view",key:e.name,src:e.image,alt:e.name,className:t});var yK=o=>{var r=o,{backgroundColor:e}=r,t=w(r,["backgroundColor"]);return J.createElement("svg",d({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),J.createElement("path",{d:"M19.6035 10.5C19.6035 15.7467 15.3502 20 10.1035 20C4.85681 20 0.603516 15.7467 0.603516 10.5C0.603516 5.25329 4.85681 1 10.1035 1C15.3502 1 19.6035 5.25329 19.6035 10.5Z",stroke:"currentColor",fill:e}),J.createElement("path",{d:"M10.2723 6.71429C11.6786 6.71429 13.202 7.83595 13.202 9.29242C13.202 11.2344 11.1094 11.2679 11.1094 11.9877V12.0714C11.1094 12.3058 10.9252 12.4732 10.7076 12.4732H9.48549C9.26786 12.4732 9.08371 12.3058 9.08371 12.0714V11.9208C9.08371 10.8828 9.87054 10.4643 10.4732 10.1295C10.9754 9.84487 11.2935 9.66072 11.2935 9.27568C11.2935 8.77345 10.6574 8.45537 10.1384 8.45537C9.48549 8.45537 9.16741 8.75671 8.74888 9.27568C8.61496 9.44309 8.36384 9.47657 8.19643 9.34264L7.47656 8.79019C7.29241 8.673 7.25893 8.42188 7.37612 8.25447C8.0625 7.26675 8.93304 6.71429 10.2723 6.71429ZM10.1049 12.9755C10.7411 12.9755 11.26 13.4944 11.26 14.1306C11.26 14.7667 10.7411 15.2857 10.1049 15.2857C9.45201 15.2857 8.93304 14.7667 8.93304 14.1306C8.93304 13.4944 9.45201 12.9755 10.1049 12.9755Z",fill:"currentColor"}))},Tc=yK;var Ie={reactionListContainer:"Ds",tabListContainer:"se",tabList:"Gs",tabItem:"ce",reactionEmoji:"Js",userList:"Ks",userItem:"Ns",userDetailsContainer:"Os",userDetailsProfile:"Ps",userDetailsReaction:"Qs",reactionItem:"Vs",reactionIcon:"Ws",reactionCustomStateContainer:"ne",loadingState:"Zs","skeleton-pulse":"le",reactionState:"_s",reactionState2Line:"ec",removeBtn:"rc",infiniteScrollContainer:"ac",reactionPanel:"oc",avatar:"tc"};var Zw=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=Oe(),{config:s}=Mc(),l=useMemo(()=>s.map(({name:c})=>c),[s]);return !i||!e?null:J.createElement("div",{className:Ie.infiniteScrollContainer},J.createElement(dH,{scrollableTarget:i,scrollThreshold:.7,hasMore:o,next:r,loader:n?J.createElement("span",{key:0},"Loading..."):null,dataLength:e.length||0,style:{display:"flex",width:"100%"},height:i.clientHeight},J.createElement("div",{className:Ie.userList},e.map(c=>{var p,u,f,g;return J.createElement(Fragment,{key:c.reactionId},J.createElement("div",{className:Ie.userItem},J.createElement("div",{className:Ie.userDetailsContainer},J.createElement("div",{className:Ie.userDetailsProfile},J.createElement("div",{className:Ie.avatar},J.createElement(fr,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=c.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:J.createElement(ic,null)})),J.createElement(A.BodyBold,{"data-qa-anchor":"user_display_name"},(f=c.user)==null?void 0:f.displayName,a===((g=c.user)==null?void 0:g.userId)&&J.createElement(J.Fragment,null,J.createElement("br",null),J.createElement("div",{onClick:()=>t(c.reactionName)},J.createElement(A.Caption,{className:Ie.removeBtn},"Click to remove reaction"))))),J.createElement("div",{className:Ie.userDetailsReaction},l.includes(c.reactionName)?J.createElement(Sc,{reactionConfigItem:s.find(({name:h})=>h===c.reactionName),className:Ie.reactionIcon}):J.createElement(Tc,{className:Ie.reactionIcon})))))}))))};var bK=e=>J.createElement("svg",d({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M18.8672 1.63086C19.1797 1.31836 19.6875 1.55273 19.6875 1.94336V7.5293C19.6875 7.80273 19.4531 7.99805 19.2188 7.99805H13.5938C13.2031 7.99805 12.9688 7.5293 13.2812 7.2168L15.3906 5.10742C14.0234 3.70117 12.1094 2.8418 10 2.8418C5.74219 2.8418 2.34375 6.2793 2.34375 10.498C2.34375 14.7559 5.74219 18.1543 10 18.1543C11.9531 18.1543 13.7109 17.4512 15.0781 16.2402C15.2734 16.084 15.5469 16.084 15.7031 16.2402L16.4844 17.0215C16.6797 17.2168 16.6797 17.5293 16.4844 17.7246C14.7656 19.248 12.4609 20.1855 10 20.1855C4.64844 20.1855 0.3125 15.8887 0.3125 10.5371C0.273438 5.18555 4.64844 0.810547 10 0.810547C12.6562 0.810547 15.0781 1.9043 16.8359 3.66211L18.8672 1.63086Z",fill:"#6E7487"})),Yw=bK;var Ww=()=>J.createElement("div",{className:Ie.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:Ie.reactionState},J.createElement(Yw,null),J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var wK=e=>J.createElement("svg",d({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M11.25 9.28613C16.5938 9.28613 21 13.6924 21 19.0361C21 24.4268 16.5938 28.7861 11.25 28.7861C5.85938 28.7861 1.5 24.4268 1.5 19.0361C1.5 13.6924 5.85938 9.28613 11.25 9.28613ZM11.25 26.5361C15.375 26.5361 18.75 23.208 18.75 19.0361C18.75 14.9111 15.375 11.5361 11.25 11.5361C7.07812 11.5361 3.75 14.9111 3.75 19.0361C3.75 23.208 7.07812 26.5361 11.25 26.5361ZM14.1094 20.7236C14.5312 20.2549 15.2344 20.208 15.7031 20.6299C16.1719 21.0049 16.2188 21.708 15.8438 22.1768C14.6719 23.5361 13.0312 24.2861 11.25 24.2861C9.46875 24.2861 7.78125 23.5361 6.60938 22.1768C6.23438 21.708 6.28125 21.0049 6.75 20.6299C7.21875 20.208 7.92188 20.2549 8.34375 20.7236C9.75 22.4111 12.7031 22.4111 14.1094 20.7236ZM8.25 18.2861C7.40625 18.2861 6.75 17.6299 6.75 16.7861C6.75 15.9893 7.40625 15.2861 8.25 15.2861C9.04688 15.2861 9.75 15.9893 9.75 16.7861C9.75 17.6299 9.04688 18.2861 8.25 18.2861ZM14.25 18.2861C13.4062 18.2861 12.75 17.6299 12.75 16.7861C12.75 15.9893 13.4062 15.2861 14.25 15.2861C15.0469 15.2861 15.75 15.9893 15.75 16.7861C15.75 17.6299 15.0469 18.2861 14.25 18.2861ZM30.75 8.91113C31.125 8.91113 31.5 9.28613 31.5 9.66113V10.4111C31.5 10.833 31.125 11.1611 30.75 11.1611H27.375V14.5361C27.375 14.958 27 15.2861 26.625 15.2861H25.875C25.4531 15.2861 25.125 14.958 25.125 14.5361V11.1611H21.75C21.3281 11.1611 21 10.833 21 10.4111V9.66113C21 9.28613 21.3281 8.91113 21.75 8.91113H25.125V5.53613C25.125 5.16113 25.4531 4.78613 25.875 4.78613H26.625C27 4.78613 27.375 5.16113 27.375 5.53613V8.91113H30.75Z",fill:"#A5A9B5"})),Kw=wK;var Xw=()=>J.createElement("div",{className:Ie.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:Ie.reactionState},J.createElement(Kw,null),J.createElement("div",{className:Ie.reactionState2Line},J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.emptyState"})),J.createElement(A.Caption,null,J.createElement(FormattedMessage,{id:"livechat.reaction.emptyState.description"})))));var _K=e=>J.createElement("svg",d({width:"375",height:"56",viewBox:"0 0 375 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("rect",{x:"16",y:"8",width:"40",height:"40",rx:"20",fill:"#292B32"}),J.createElement("rect",{x:"64",y:"24",width:"140",height:"8",rx:"4",fill:"#292B32"})),Rw=_K;var Tu=()=>J.createElement("div",{className:lo(Ie.reactionCustomStateContainer,Ie.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>J.createElement(Rw,{key:`loading_${t}`})));var PK=(e,t)=>({addReaction:n=>P(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>P(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),o_=PK;var AK=(e,t)=>{let[o,r]=useState(0),[n,i]=useState({}),[a,s]=useState(null),l=({data:c,loading:p,error:u})=>{p||u||(r(c.reactionsCount),i(c.reactions),s(c.myReaction));};return useEffect(()=>{if(e==="message")MessageRepository.getMessage(t,l);else if(e==="story")StoryRepository.getStoryByStoryId(t,l);else if(e==="comment")CommentRepository.getComment(t,l);else if(e==="post")PostRepository.getPost(t,l);else throw new Error("Unsupported reference type")},[t,e]),{reactions:n,reactionCount:o,myReaction:a}},r_=AK;var kc="unknown",FK=(e,t,o)=>t==="All"?e:t===kc?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),DK=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?J.createElement(Tu,null):i?J.createElement(Ww,null):e.length===0?r?J.createElement(Tu,null):J.createElement(Xw,null):J.createElement(Zw,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),ku=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=ce({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:c}=$w({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=r_(o,t),[f,g]=useState("All"),h=useRef(null),{config:C}=Mc(),{removeReaction:y}=o_(o,t),x=I=>{g(I);};if(i==null||!C)return null;let v=useMemo(()=>C.map(I=>I.name),[C]),_=useMemo(()=>Object.keys(p).filter(I=>!v.includes(I)),[p]),M=useMemo(()=>_.reduce((I,T)=>I+p[T],0),[p]),b=useMemo(()=>FK(i,f,v),[i,f]);return J.createElement("div",{className:Ie.reactionListContainer,"data-qa-anchor":`${n}_header`},J.createElement("div",{className:Ie.tabListContainer},J.createElement("div",{className:Ie.tabList,"data-qa-anchor":`${n}_tab`},J.createElement("div",{"data-active":f==="All",className:Ie.tabItem,onClick:()=>x("All")},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},"All ",Pc(u)))),C.map(I=>{let{name:T,image:k}=I;return p[T]?J.createElement("div",{key:T,"data-active":f===T,className:Ie.tabItem,onClick:()=>x(T)},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},J.createElement(Sc,{className:Ie.reactionItem,reactionConfigItem:I}),Pc(p[T])))):null}),_.length>0&&J.createElement("div",{key:kc,"data-active":f===kc,className:Ie.tabItem,onClick:()=>x(kc)},J.createElement(A.Body,null,J.createElement("span",{className:Ie.reactionEmoji},J.createElement(Tc,{className:Ie.reactionIcon}),Pc(M)))))),J.createElement("div",{ref:h,className:Ie.reactionPanel},J.createElement(DK,{currentRef:h.current,hasMore:l,loadMore:c,error:a,isLoading:s,filteredReactions:b,removeReaction:y})))};var HK=J.createContext(void 0);var eo=()=>{let e=useContext(HK);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var Ec=o=>{var r=o,{pageId:e="*"}=r,t=w(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=eo(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Be(),{setFile:l}=Wo();return (()=>{switch(t.type){case"communityFeed":return J.createElement(_d,{pageId:e,componentId:n,communityId:t.communityId||"",onFileChange:p=>{l(p),p&&s(t.communityId||"","community",p.type.includes("image")?{type:"image",url:URL.createObjectURL(p)}:{type:"video",url:URL.createObjectURL(p)},"communityFeed");},onStoryClick:()=>a({targetId:t.communityId||"",targetType:"community",storyType:"communityFeed"})});case"globalFeed":return J.createElement(Nd,{pageId:e,componentId:n,goToViewStoryPage:({storyTarget:p,storyTargets:u})=>{var f;(f=i==null?void 0:i.goToViewStoryPage)==null||f.call(i,{targetId:p.targetId,targetType:p.targetType,storyType:"globalFeed",targetIds:u.map(g=>g.targetId)});}});default:return null}})()};var Ac={communityPrivateBadge:"en",communityPrivateBadge__iconSvg:"rn"};var WK=e=>J.createElement("svg",d({width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J.createElement("path",{d:"M5.60938 9.72656C5.26562 9.72656 5.00781 9.46875 5.00781 9.125V7.75C5.00781 7.42773 5.26562 7.14844 5.60938 7.14844C5.93164 7.14844 6.21094 7.42773 6.21094 7.75V9.125C6.21094 9.46875 5.93164 9.72656 5.60938 9.72656ZM10.4219 6.03125V10.8438C10.4219 11.4238 9.94922 11.875 9.39062 11.875H1.82812C1.24805 11.875 0.796875 11.4238 0.796875 10.8438V6.03125C0.796875 5.47266 1.24805 5 1.82812 5H2.51562V3.96875C2.51562 2.27148 3.89062 0.875 5.60938 0.875C7.32812 0.896484 8.70312 2.29297 8.70312 4.01172V5H9.39062C9.94922 5 10.4219 5.47266 10.4219 6.03125ZM3.54688 5H7.67188V3.96875C7.67188 2.85156 6.72656 1.90625 5.60938 1.90625C4.4707 1.90625 3.54688 2.85156 3.54688 3.96875V5ZM9.39062 6.03125H1.82812V10.8438H9.39062V6.03125Z"}));function Ks({pageId:e="*",componentId:t="*"}){let o="community_private_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement(le,{defaultIcon:()=>J.createElement(WK,{style:l,className:lo(Ac.communityPrivateBadge,Ac.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Ac.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var m_={communityDisplayName:"an"};function da({pageId:e="*",componentId:t="*",community:o}){var s;let r="community_display_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement(A.BodyBold,{className:m_.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var Bc={communityOfficialBadge:"on",communityOfficialBadge__iconSvg:"tn"};var RK=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e),J.createElement("path",{d:"M9.11463 13.479C8.41557 14.1728 7.75304 14.178 7.0592 13.479L6.27668 12.6964C6.20364 12.6234 6.14104 12.6025 6.04714 12.6025H4.94117C3.95519 12.6025 3.48568 12.133 3.48568 11.147V10.0411C3.48568 9.94718 3.45959 9.87936 3.39177 9.81154L2.60925 9.0238C1.91541 8.32996 1.9102 7.66743 2.60925 6.97359L3.39177 6.19107C3.45959 6.12325 3.48568 6.05543 3.48568 5.96153V4.85556C3.48568 3.85915 3.95519 3.40007 4.94117 3.40007H6.04714C6.14104 3.40007 6.20886 3.37398 6.27668 3.30616L7.0592 2.52886C7.75304 1.82459 8.41557 1.82459 9.11463 2.52364L9.89715 3.30616C9.96497 3.37398 10.0328 3.40007 10.1267 3.40007H11.2327C12.2186 3.40007 12.6882 3.86958 12.6882 4.85556V5.96153C12.6882 6.05543 12.7142 6.11803 12.7821 6.19107L13.5646 6.97359C14.2584 7.66743 14.2636 8.32996 13.5646 9.0238L12.7821 9.81154C12.7142 9.87936 12.6882 9.94718 12.6882 10.0411V11.147C12.6882 12.133 12.2186 12.6025 11.2327 12.6025H10.1267C10.0328 12.6025 9.97019 12.6234 9.89715 12.6964L9.11463 13.479Z",fill:"#1054DE"}),J.createElement("path",{d:"M6.77768 10.4846C6.89245 10.6045 7.03852 10.6724 7.22111 10.6724C7.41413 10.6724 7.57063 10.6045 7.69062 10.448L10.6173 6.3424C10.6955 6.23285 10.7372 6.10243 10.7372 5.99809C10.7372 5.69551 10.5077 5.47119 10.1843 5.47119C9.97559 5.47119 9.83995 5.54423 9.71475 5.7216L7.20024 9.31077L5.94299 7.90745C5.82822 7.78224 5.69779 7.72486 5.52042 7.72486C5.19698 7.72486 4.97266 7.94918 4.97266 8.26219C4.97266 8.39261 5.01961 8.52303 5.10829 8.61694L6.77768 10.4846Z",fill:"white"}));function Xs({pageId:e="*",componentId:t="*"}){let o="community_official_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=B({pageId:e,componentId:t,elementId:o});return a?null:J.createElement(le,{defaultIcon:()=>J.createElement(RK,{style:l,className:lo(Bc.communityOfficialBadge,Bc.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Bc.communityOfficialBadge}),configIconName:n.icon,defaultIconName:i.icon})}createContext({drawerData:null,setDrawerData:()=>{},removeDrawerData:()=>{}});J.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=w(a,["src","mimeType","mediaFit"]);return J.createElement("video",S(d({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),J.createElement("source",{src:e,type:t}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))});var C_={modal:"Wl",modalContent:"Zl",closeButton:"_l",fullImage:"ed",nextButton:"rd",prevButton:"ad",overlayPanel:"od",overlayPanel__prev:"Se",overlayPanel__next:"Ce",overlayPanel__prevButton:"Ee",overlayPanel__nextButton:"td",overlayPanel__middle:"id",videoViewer__clearButton:"sd",videoViewer__clearButton__img:"cd"};memo(({videoPost:e})=>{let t=useMemo(()=>(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original)||void 0,[e]),o=st(t),r=st(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===e2.Transcoded){let{videoUrl:a}=o;return (a==null?void 0:a["1080p"])||(a==null?void 0:a["720p"])||(a==null?void 0:a["480p"])||(a==null?void 0:a["360p"])||(a==null?void 0:a.original)||o.fileUrl}return o.fileUrl},[o]);return useEffect(()=>{var a;(a=n.current)==null||a.load();},[i]),i==null?J.createElement(J.Fragment,null):J.createElement("video",{controls:!0,controlsList:"nodownload",autoPlay:!0,className:C_.fullImage,ref:n,poster:r==null?void 0:r.fileUrl},J.createElement("source",{src:i,type:"video/mp4"}),J.createElement("p",null,"Your browser does not support this format of video. Please try again later once the server transcodes the video into an playable format(mp4)."))});createContext({itemWithAds:[],isLoading:!1,prependItem:()=>{},removeItem:()=>{},updateItem:()=>{},loadMore:()=>{},hasMore:!1,loadMoreHasBeenCalled:!1,fetch:()=>{},refetch:()=>{},scrollPosition:0,onScroll:()=>{}});var vJ=Mm`
3898
3898
  from {
3899
3899
  transform: rotate(0deg);
3900
3900
  }
@@ -3902,38 +3902,38 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3902
3902
  transform: rotate(360deg);
3903
3903
  }
3904
3904
  `;m.svg`
3905
- animation: ${CJ} 2s linear infinite;
3906
- `;function Jl({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=I(n,["items"]);return d({communities:o},r)}var __={title:"lm"};function ca({pageId:e="*",componentId:t="*",titleClassName:o}){let r="title",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=B({pageId:e,componentId:t,elementId:r});return a?null:J.createElement(A.Title,{className:lo(__.title,o),style:s,"data-qa-anchor":n},i.text)}createContext({fetchTrendingCommunities:()=>{},fetchRecommendedCommunities:()=>{},fetchCommunityCategories:()=>{},refetchRecommendedCommunities:()=>{},trendingCommunities:[],recommendedCommunities:[],categories:[],isEmpty:!1,noRecommendedCommunities:!1,noTrendingCommunities:!1,isCommunityEmpty:!1,isLoading:!1,error:null,refresh:()=>{}});var Oc=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(Oc||{});createContext({activeTab:"community_feed",setActiveTab:()=>{}});var CX=Mm`
3905
+ animation: ${vJ} 2s linear infinite;
3906
+ `;function Jl({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=w(n,["items"]);return d({communities:o},r)}var __={title:"lm"};function ca({pageId:e="*",componentId:t="*",titleClassName:o}){let r="title",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=B({pageId:e,componentId:t,elementId:r});return a?null:J.createElement(A.Title,{className:lo(__.title,o),style:s,"data-qa-anchor":n},i.text)}createContext({fetchTrendingCommunities:()=>{},fetchRecommendedCommunities:()=>{},fetchCommunityCategories:()=>{},refetchRecommendedCommunities:()=>{},trendingCommunities:[],recommendedCommunities:[],categories:[],isEmpty:!1,noRecommendedCommunities:!1,noTrendingCommunities:!1,isCommunityEmpty:!1,isLoading:!1,error:null,refresh:()=>{}});var Oc=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(Oc||{});createContext({activeTab:"community_feed",setActiveTab:()=>{}});var vX=Mm`
3907
3907
  from {
3908
3908
  transform: rotate(0deg);
3909
3909
  }
3910
3910
  to {
3911
3911
  transform: rotate(360deg);
3912
3912
  }
3913
- `,vX=m.svg`
3914
- animation: ${CX} 2s linear infinite;
3915
- `,xX=e=>J.createElement(vX,d({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),J.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),J.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"#1054DE",strokeWidth:"2",strokeDasharray:"46.75",strokeDashoffset:"21",strokeLinecap:"round",strokeLinejoin:"round"})),N_=xX;var ju={storyCommentButton:"m0",storyCommentIcon:"g0"};var wX=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M10 2.188c4.682 0 8.5 3.12 8.5 6.906C18.5 12.912 14.682 16 10 16c-1.295 0-2.49-.232-3.586-.63-.797.663-2.457 1.693-4.648 1.693-.133 0-.2-.034-.266-.133-.033-.1 0-.233.066-.3 0-.032 1.395-1.493 1.827-3.187-1.196-1.195-1.893-2.69-1.893-4.35 0-3.784 3.785-6.905 8.5-6.905z"})),k_=({pageId:e="*",componentId:t="*",onPress:o,commentsCount:r,imgClassName:n})=>{let i="story_comment_button",{isExcluded:a,accessibilityId:s,defaultConfig:l,config:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return a?null:J.createElement(U,{"data-qa-anchor":s,onPress:o,style:u,className:lo(ju.storyCommentButton)},J.createElement(le,{defaultIconName:l.icon,configIconName:c.icon,imgIcon:()=>J.createElement("img",{src:c.icon,alt:p,className:lo(n),style:u}),defaultIcon:()=>J.createElement("div",{className:lo(ju.storyCommentIcon)},J.createElement(wX,null),J.createElement(A.BodyBold,null,gg(r)))}))};var $u={storyReactionButton:"h0",storyReactionIcon:"p0"};var PX=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M17.793 11.025c.148.854.037 1.67-.334 2.338a3.437 3.437 0 01-.668 2.487c-.037 2.078-1.299 3.525-4.156 3.525h-.854c-3.785 0-4.935-1.41-6.605-1.447-.112.482-.594.853-1.114.853H1.688c-.667 0-1.187-.52-1.187-1.187V8.687c0-.63.52-1.187 1.188-1.187h3.636c.705-.594 1.707-2.227 2.56-3.08.52-.52.372-4.045 2.673-4.045 2.115 0 3.525 1.188 3.525 3.896 0 .706-.148 1.262-.334 1.745h1.373c1.781 0 3.191 1.521 3.191 3.154 0 .705-.185 1.299-.519 1.855zm-2.3 2.004c.816-.742.704-1.892.185-2.449.37 0 .853-.705.853-1.373-.037-.705-.63-1.41-1.41-1.41h-3.86c0-1.41 1.04-2.078 1.04-3.526 0-.89 0-2.115-1.744-2.115-.705.705-.372 2.487-1.41 3.526-1.002 1.002-2.45 3.6-3.526 3.6H5.25v6.939c1.967 0 3.71 1.373 6.346 1.373h1.41c1.299 0 2.264-.631 1.967-2.412.556-.334 1.002-1.373.52-2.153zM3.765 16.406a.903.903 0 00-.891-.89.88.88 0 00-.89.89c0 .52.37.89.89.89a.88.88 0 00.89-.89z"})),SX=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_linear_7702_34939)"}),J.createElement("path",{fill:"#fff",d:"M7.486 10.575H5.42a.611.611 0 00-.62.619v6.187c0 .361.258.619.62.619h2.066c.336 0 .62-.258.62-.619v-6.187a.628.628 0 00-.62-.62zm-1.033 6.394a.596.596 0 01-.62-.62c0-.334.258-.618.62-.618.336 0 .62.284.62.619 0 .36-.284.619-.62.619zm8.264-10.055c0-1.908-1.24-2.114-1.859-2.114-.542 0-.775 1.031-.878 1.495-.155.567-.284 1.134-.672 1.521-.826.851-1.265 1.908-2.298 2.913a.415.415 0 00-.078.232v5.518c0 .154.13.283.284.31.414 0 .956.231 1.37.412.826.36 1.833.799 3.073.799h.077c1.11 0 2.428 0 2.944-.748.233-.31.285-.696.155-1.16.44-.438.646-1.263.44-1.934.439-.593.49-1.443.232-2.036.31-.31.516-.8.49-1.264 0-.799-.67-1.52-1.523-1.52h-2.635c.207-.723.878-1.341.878-2.424z"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_7702_34939",x1:"9",x2:"19.8",y1:"2.4",y2:"29.4",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#5B9DFF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"})))),E_=({myReactions:e=[],reactionsCount:t,pageId:o="*",componentId:r="*",defaultIconClassName:n,imgIconClassName:i,onPress:a})=>{let s="story_reaction_button",{isExcluded:l,accessibilityId:c,config:p,uiReference:u,themeStyles:f}=B({pageId:o,componentId:r,elementId:s}),g=e.length>0;return l?null:J.createElement(U,{"data-qa-anchor":c,className:lo($u.storyReactionButton),onPress:a,style:f},J.createElement(le,{defaultIcon:()=>J.createElement("div",{className:lo($u.storyReactionIcon,n)},g?J.createElement(SX,null):J.createElement(PX,null),J.createElement(A.BodyBold,null,gg(t))),imgIcon:()=>J.createElement("img",{src:p.icon,alt:u,className:lo(i)})}))};var ni={viewStoryCompostBarContainer:"f0",viewStoryFailedCompostBarContainer:"u0",viewStoryFailedCompostBarWrapper:"b0",viewStoryUploadingWrapper:"v0",viewStoryCompostBarViewIconContainer:"x0",viewStoryCompostBarEngagementContainer:"w0",viewStoryCommentButton:"y0",viewStoryCommentIcon:"k0"};var NX=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:c,myReactions:p})=>{let u=zt(),f=()=>P(void 0,null,function*(){try{if(!c){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,mo):yield ReactionRepository.addReaction("story",a,mo);}catch(g){console.error("Can't toggle like",g);}});return t==="syncing"?J.createElement("div",{className:ni.viewStoryCompostBarContainer},J.createElement("div",{className:ni.viewStoryUploadingWrapper},J.createElement(N_,{width:20,height:20}),"Uploading...")):t==="error"?J.createElement("div",{className:ni.viewStoryFailedCompostBarContainer},J.createElement("div",{className:ni.viewStoryFailedCompostBarWrapper},J.createElement(B0,null),J.createElement("span",null,"Failed to upload")),J.createElement(Cn,null)):J.createElement("div",{className:ni.viewStoryCompostBarContainer},J.createElement("div",null,l&&J.createElement("div",{className:ni.viewStoryCompostBarViewIconContainer},J.createElement(Xd,{reach:o}))),J.createElement("div",{className:ni.viewStoryCompostBarEngagementContainer},J.createElement(k_,{pageId:e,commentsCount:r,onPress:s}),J.createElement(E_,{pageId:e,myReactions:p,reactionsCount:n,onPress:f})))},Hc=NX;var Bo={iconButton:"j0",rendererContainer:"z0",storyVideo:"I0",muteCircleIcon:"X0",unmuteCircleIcon:"Y0",loadingOverlay:"R0",storyImage:"A0",playStoryButton:"M0",pauseStoryButton:"S0",closeButton:"C0",verifiedBadge:"E0",dotsButton:"U0",viewStoryInfoContainer:"q0",viewStoryCompostBarContainer:"B0",viewStoryCompostBarViewIconContainer:"F0",viewStoryCompostBarEngagementContainer:"H0",viewStoryCompostBarEngagementIconContainer:"L0",storyContent:"T0",header:"D0",viewStoryContainer:"G0",viewStoryHeaderContainer:"J0",avatarContainer:"K0",addStoryButton:"br",viewStoryHeaderListActionsContainer:"N0",viewStoryHeadingInfoContainer:"O0",viewStoryHeading:"P0",viewStoryHeadingTitle:"Q0",viewStorySubHeading:"V0"};var BX=({community:e,heading:t,subheading:o,isHaveActions:r,isOfficial:n,isPaused:i,onPlay:a,onPause:s,onAction:l,onClose:c,onClickCommunity:p,haveStoryPermission:u,addStoryButton:f})=>J.createElement("div",{className:Bo.viewStoryHeaderContainer},J.createElement("div",{className:Bo.viewStoryHeadingInfoContainer},J.createElement("div",{className:Bo.avatarContainer},J.createElement(Dr,{pageId:"story_page",community:e}),u&&f),J.createElement("div",{className:Bo.viewStoryInfoContainer},J.createElement("div",{className:Bo.viewStoryHeading},J.createElement(og,{lines:1},J.createElement("div",{className:Bo.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&J.createElement(K5,{className:Bo.verifiedBadge})),J.createElement("span",{className:Bo.viewStorySubHeading},o))),J.createElement("div",{className:Bo.viewStoryHeaderListActionsContainer},i?J.createElement(Vo,{className:Bo.playStoryButton,"data-qa-anchor":"play_button",onClick:a}):J.createElement(u1,{className:Bo.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:s}),r&&J.createElement(Rd,{pageId:"story_page",onPress:l}),J.createElement(yr,{defaultClassName:lo(Bo.closeButton),pageId:"story_page",onPress:c}))),Uc=BX;function Xl({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:S(d({},e),{includeDeleted:!1,limit:20}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=I(n,["items"]);return d({members:o},r)}var Ft={iconButton:"W0",hyperLinkContainer:"vr",rendererContainer:"Z0",storyVideo:"_0",muteCircleIcon:"ep",unmuteCircleIcon:"rp",loadingOverlay:"ap",storyImageContainer:"op",storyImage:"tp",playStoryButton:"ip",pauseStoryButton:"sp",closeButton:"cp",verifiedBadge:"np",dotsButton:"lp",viewStoryInfoContainer:"dp",viewStoryCompostBarContainer:"mp",viewStoryCompostBarViewIconContainer:"gp",viewStoryCompostBarEngagementContainer:"hp",viewStoryCompostBarEngagementIconContainer:"pp",header:"fp",viewStoryContainer:"up",viewStoryHeaderContainer:"bp",avatarContainer:"vp",addStoryButton:"xr",viewStoryHeaderListActionsContainer:"xp",viewStoryHeadingInfoContainer:"wp",viewStoryHeading:"yp",viewStoryHeadingTitle:"kp",viewStorySubHeading:"jp",story:"zp",storyContent:"Ip",actionButton:"wr",navigationOverlay:"Xp",leftOverlay:"Yp",rightOverlay:"Rp",imageFit:"Ap",imageFill:"Mp"};var zc={progressBarContainer:"Sp",progressSegment:"Cp",progressBar:"Ep"};var Xs=J.memo(({pageId:e="*",componentId:t="*",duration:o,currentIndex:r,storiesCount:n,isPaused:i,onComplete:a})=>{let s="progress_bar",{config:l,isExcluded:c}=B({pageId:e,componentId:t,elementId:s}),[p,u]=useState(new Array(n).fill(0)),[f,g]=useState(r),h=l==null?void 0:l.backgroundColor,C=l==null?void 0:l.progressColor;return useEffect(()=>{r<f&&u(y=>{let x=[...y];return x[r]=0,x}),g(r);},[r,f]),useEffect(()=>{let y;return i||(y=setInterval(()=>{u(x=>{let v=[...x];return v[r]<100&&(v[r]+=100/o*100,v[r]>=100&&(v[r]=100,a())),v});},100)),()=>{y&&clearInterval(y);}},[o,r,i,a]),c?null:J.createElement("div",{className:lo(zc.progressBarContainer),style:{backgroundColor:h}},p.map((y,x)=>J.createElement("div",{key:x,className:lo(zc.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},J.createElement("div",{className:lo(zc.progressBar),style:{width:`${x<r?100:x===r?y:0}%`,backgroundColor:C}}))))});var zX=({story:{actions:e,fileInputRef:t,addStoryButton:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l,url:c},action:p,config:u,onClose:f,onClickCommunity:g})=>{var De,qe,Et,Do;let{formatMessage:h}=useIntl(),[C,y]=useState(!1),[x,v]=useState(!1),[_,M]=useState(!1),[b,w]=useState(!1),{loader:T}=u,{client:k}=Oe(),[N,F]=useState(""),Z=useRef(null),$=!!(l&&l.myReactions&&l.myReactions.includes(vr)),G=(l==null?void 0:l.reactionsCount)||0,{storyId:O,syncState:ee,reach:X,commentsCount:L,createdAt:H,creator:K,community:Y,myReactions:pe,data:z,items:E}=l,{members:D}=Xl({queryParams:{communityId:Y==null?void 0:Y.communityId},shouldCall:!!(Y!=null&&Y.communityId)}),ae=(D==null?void 0:D.find(se=>se.userId===(k==null?void 0:k.userId)))!=null,{user:me}=Ae({userId:k==null?void 0:k.userId}),ye=(Y==null?void 0:Y.isOfficial)||!1,it=(K==null?void 0:K.userId)===(me==null?void 0:me.userId),wr=bd(me==null?void 0:me.roles),_r=xd(me==null?void 0:me.roles),no=wr||_r||Zn(k,Y==null?void 0:Y.communityId),s1=useMemo(()=>J.createElement("div",{"data-qa-anchor":"community_display_name"},Y==null?void 0:Y.displayName),[Y==null?void 0:Y.displayName]),l1=useMemo(()=>H&&(K!=null&&K.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},Id(H))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},K==null?void 0:K.displayName)):"",[H,K==null?void 0:K.displayName]),$r="asc-uikit-stories-viewer",li=useCallback(()=>{if(Z.current&&Z.current.complete){let Qt=new UX().getPalette(Z.current,2);if(Qt){let Mr=`linear-gradient(to top, rgb(${Qt[0].join(",")}), rgb(${Qt[1].join(",")})`;F(Mr);}}},[]),mi=useCallback(()=>{y(!0),b&&w(!1),p("play",!0),li();},[p,b,li]),m1=()=>{p("play",!0),w(!1);},ua=()=>{p("pause",!0),w(!0);},fa=()=>{p("pause",!0),v(!0);},di=()=>{p("play",!0),v(!1);},un=()=>{p("pause",!0),M(!0);},ci=()=>{p("play",!0),M(!1);},pi=()=>{f();},ui=()=>{i();};return useEffect(()=>{Z.current&&Z.current.complete&&li();},[]),useEffect(()=>{if(t.current){let se=()=>{p("pause",!0),w(!0);},Qt=()=>{p("play",!0),w(!1);};return t.current.addEventListener("click",se),t.current.addEventListener("cancel",Qt),()=>{t.current&&(t.current.removeEventListener("cancel",Qt),t.current.removeEventListener("click",se));}}},[t]),useEffect(()=>{var se,Qt;if(s){let Mr=()=>{p("pause",!0),w(!0);},fn=()=>{p("play",!0),w(!1);};return (se=s.current)==null||se.addEventListener("dragstart",Mr),(Qt=s.current)==null||Qt.addEventListener("dragend",fn),()=>{var M4,P4;(M4=s.current)==null||M4.removeEventListener("dragstart",Mr),(P4=s.current)==null||P4.removeEventListener("dragend",fn);}}},[s]),J.createElement("div",{className:Ft.rendererContainer,style:{background:N}},J.createElement(Xs,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:b||x||_,onComplete:ui}),J.createElement(Uc,{community:Y,heading:s1,subheading:l1,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:no,isOfficial:ye,isPaused:b,onPlay:m1,onPause:ua,onAction:fa,onClickCommunity:()=>g==null?void 0:g(),onClose:pi,addStoryButton:o}),J.createElement("div",{className:lo(Ft.storyImageContainer,{[Ft.imageFit]:z.imageDisplayMode==="fit",[Ft.imageFill]:z.imageDisplayMode==="fill"})},J.createElement("img",{ref:Z,className:lo(Ft.storyImage,{[Ft.imageFit]:z.imageDisplayMode==="fit",[Ft.imageFill]:z.imageDisplayMode==="fill"}),"data-qa-anchor":"image_view",src:c!=null?c:l==null?void 0:l.data.fileData,onLoad:mi,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:Ft.loadingOverlay},T||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:$r,isOpen:x,onClose:di,mountPoint:document.getElementById($r),detent:"content-height"},e==null?void 0:e.map(se=>J.createElement(U,{key:se.name,className:Ft.actionButton,onPress:()=>se==null?void 0:se.action()},(se==null?void 0:se.icon)&&se.icon,J.createElement(A.BodyBold,null,se.name)))),J.createElement(Co,{rootId:$r,isOpen:_,onClose:ci,mountPoint:document.getElementById($r),detent:"full-height",headerTitle:h({id:"storyViewer.commentSheet.title"})},J.createElement(Ws,{referenceId:O,referenceType:"story",community:Y,shouldAllowCreation:Y==null?void 0:Y.allowCommentInStory,shouldAllowInteraction:ae})),((qe=(De=E==null?void 0:E[0])==null?void 0:De.data)==null?void 0:qe.url)&&J.createElement("div",{className:Ft.hyperLinkContainer},J.createElement(Jn,{href:E[0].data.url.startsWith("http")?E[0].data.url:`https://${E[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(og,{lines:1},J.createElement("span",null,((Do=(Et=E[0])==null?void 0:Et.data)==null?void 0:Do.customText)||E[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Hc,{pageId:a,storyId:O,syncState:ee,reach:X,commentsCount:L,reactionsCount:G,isLiked:$,myReactions:pe,onClickComment:un,showImpression:it||Zn(k,Y==null?void 0:Y.communityId),isMember:ae}))},jX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},O_={renderer:zX,tester:jX};var ZX=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},qX=e=>{let[t,o]=useState(!1),r=useCallback(()=>{e("play",!0),o(!1);},[e]),n=useCallback(()=>{e("pause",!0),o(!0);},[e]);return {isPaused:t,play:r,pause:n}},YX=e=>{let[t,o]=useState(!1),[r,n]=useState(!1),i=useCallback(()=>{e("pause",!0),o(!0);},[e]),a=useCallback(()=>{e("play",!0),o(!1);},[e]),s=useCallback(()=>{e("pause",!0),n(!0);},[e]),l=useCallback(()=>{e("play",!0),n(!1);},[e]);return {isBottomSheetOpen:t,isOpenCommentSheet:r,openBottomSheet:i,closeBottomSheet:a,openCommentSheet:s,closeCommentSheet:l}},WX=({story:{actions:e,addStoryButton:t,fileInputRef:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l},action:c,config:p,messageHandler:u,onClose:f,onClickCommunity:g})=>{var fa,di,un,ci,pi,ui,De,qe,Et,Do;let[h,C]=useState(!1),{loader:y}=p,{client:x}=Oe(),{user:v}=Ae({userId:x==null?void 0:x.userId}),_=useRef(null),{muted:M,mute:b,unmute:w}=ZX(),{isPaused:T,play:k,pause:N}=qX(c),{isBottomSheetOpen:F,isOpenCommentSheet:Z,openBottomSheet:$,closeBottomSheet:G,openCommentSheet:O,closeCommentSheet:ee}=YX(c),{storyId:X,syncState:L,reach:H,commentsCount:K,createdAt:Y,creator:pe,community:z,myReactions:E,data:D,items:W}=l,ae=(fa=l==null?void 0:l.myReactions)==null?void 0:fa.includes(vr),me=(l==null?void 0:l.reactions[vr])||0,{members:ye}=Xl({queryParams:{communityId:z==null?void 0:z.communityId},shouldCall:!!(z!=null&&z.communityId)}),it=ye==null?void 0:ye.some(se=>se.userId===(x==null?void 0:x.userId)),wr=(z==null?void 0:z.isOfficial)||!1,_r=(pe==null?void 0:pe.userId)===(v==null?void 0:v.userId),no=bd(v==null?void 0:v.roles),s1=xd(v==null?void 0:v.roles),l1=no||s1||Zn(x,z==null?void 0:z.communityId),[$r,li]=useState(!0),mi=useCallback(()=>{var se;u("UPDATE_VIDEO_DURATION",{duration:(se=l==null?void 0:l.videoData)==null?void 0:se.attributes.metadata.video.duration}),C(!0),c("play",!0);},[u,(di=l==null?void 0:l.videoData)==null?void 0:di.attributes.metadata.video.duration,c]),m1=useCallback(()=>{r+1<n?i():f();},[r,n,i,f]);useEffect(()=>{_.current&&(T||F||Z?(_.current.pause(),c("pause",!0)):(mi(),_.current.play(),c("play",!0)));},[T,F,Z,c]),useEffect(()=>{if(o.current){let se=()=>{c("pause",!0),N();},Qt=()=>{c("play",!0),k();};return o.current.addEventListener("click",se),o.current.addEventListener("cancel",Qt),()=>{var Mr,fn;(Mr=o.current)==null||Mr.removeEventListener("click",se),(fn=o.current)==null||fn.removeEventListener("cancel",Qt);}}},[c,N,k]),useEffect(()=>{if(s!=null&&s.current){let se=()=>{c("pause",!0),N();},Qt=()=>{c("play",!0),k();};return s.current.addEventListener("dragstart",se),s.current.addEventListener("dragend",Qt),()=>{var Mr,fn;(Mr=s.current)==null||Mr.removeEventListener("dragstart",se),(fn=s.current)==null||fn.removeEventListener("dragend",Qt);}}},[c,N,k,s]);let ua=Math.round(((un=l==null?void 0:l.videoData)==null?void 0:un.attributes.metadata.video.duration)*1e3);return J.createElement("div",{className:lo(Ft.rendererContainer)},J.createElement(Xs,{pageId:a,duration:ua,currentIndex:r,storiesCount:n,isPaused:T||F||Z,onComplete:m1}),J.createElement(oc,{pageId:"story_page",componentId:"*",isMuted:M,onPress:M?w:b}),J.createElement(Uc,{community:z,heading:J.createElement("div",{"data-qa-anchor":"community_display_name"},z==null?void 0:z.displayName),subheading:Y&&(pe!=null&&pe.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},Id(Y))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},pe==null?void 0:pe.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:l1,isOfficial:wr,isPaused:T,onPlay:k,onPause:N,onMute:b,onUnmute:w,onAction:$,onClickCommunity:()=>g==null?void 0:g(),onClose:f,addStoryButton:t}),J.createElement("video",{"data-qa-anchor":"video_view",ref:_,className:lo(Ft.storyVideo),src:((ci=l==null?void 0:l.videoData)==null?void 0:ci.fileUrl)||((ui=(pi=l==null?void 0:l.videoData)==null?void 0:pi.videoUrl)==null?void 0:ui.original),controls:!1,onLoadedData:mi,playsInline:!0,onCanPlay:()=>{li(!1);},onWaiting:()=>{c("pause",!0);},onPlaying:()=>{c("play",!0);},muted:M,autoPlay:!0}),(!h||$r)&&J.createElement("div",{className:lo(Ft.loadingOverlay)},y||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:F,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(se=>J.createElement(U,{key:se.name,className:lo(Ft.actionButton),onPress:se==null?void 0:se.action},se==null?void 0:se.icon,J.createElement(A.BodyBold,null,se.name)))),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:Z,onClose:ee,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"full-height"},J.createElement(Ws,{referenceId:X,referenceType:"story",community:z,shouldAllowCreation:z==null?void 0:z.allowCommentInStory,shouldAllowInteraction:it})),((qe=(De=W==null?void 0:W[0])==null?void 0:De.data)==null?void 0:qe.url)&&J.createElement("div",{className:lo(Ft.hyperLinkContainer)},J.createElement(Jn,{href:W[0].data.url.startsWith("http")?W[0].data.url:`https://${W[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(og,{lines:1},J.createElement("span",null,((Do=(Et=W[0])==null?void 0:Et.data)==null?void 0:Do.customText)||W[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Hc,{pageId:a,storyId:X,syncState:L,reach:H,commentsCount:K,reactionsCount:me,isLiked:ae,onClickComment:O,myReactions:E,showImpression:_r||Zn(x,z==null?void 0:z.communityId),isMember:it}))},QX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},H_={renderer:WX,tester:QX};var JX=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),J.createElement("div",{style:z_.storyContent},J.createElement("p",{style:z_.text},"This story could not be loaded."))),z_={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},XX=()=>({condition:!0,priority:1}),j_={renderer:JX,tester:XX};var tR=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return J.createElement(t,d({},e))},oR=e=>({condition:!!e.content,priority:2}),G_={renderer:tR,tester:oR};var yt={drawer__content:"yr",drawer__innerContent:"Up",drawer__placeholder:"qp",drawer__overlay:"Bp",drawer__title:"Fp",drawer__content__data:"Hp",drawer__content__data__title:"Lp",drawer__content__data__text:"Tp",drawer__content__data__caption:"Dp",drawer__content__data__infoIcon:"Gp",drawer__content__emptySpace:"Jp",drawer__container:"Kp",drawer__innerContainer:"Np"};var $_=({isOpen:e,onOpenChange:t,ad:o,targetRef:r})=>{var n;return J.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:i=>{i.preventDefault(),i.stopPropagation();}},J.createElement(Drawer.Portal,{container:r==null?void 0:r.current},J.createElement("div",{className:yt.drawer__container},J.createElement("div",{className:yt.drawer__innerContainer},J.createElement(Drawer.Overlay,{className:yt.drawer__overlay}),J.createElement(Drawer.Content,{className:yt.drawer__content},J.createElement("div",{className:yt.drawer__innerContent},J.createElement("div",{className:yt.drawer__placeholder}),J.createElement(Drawer.Title,{className:yt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:yt.drawer__content__data},J.createElement(A.BodyBold,{className:yt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:yt.drawer__content__data__text},J.createElement(xr,{className:yt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:yt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:yt.drawer__content__data},J.createElement(A.BodyBold,{className:yt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:yt.drawer__content__data__text},J.createElement(xr,{className:yt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:yt.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),J.createElement("div",{className:yt.drawer__content__emptySpace}))))))};var ht={iconButton:"Op",hyperLinkContainer:"Pp",hyperLink__text:"Qp",rendererContainer:"Vp",storyVideo:"Wp",muteCircleIcon:"Zp",unmuteCircleIcon:"_p",loadingOverlay:"ef",storyImageContainer:"rf",storyImage:"af",playStoryButton:"of",pauseStoryButton:"tf",closeButton:"if",verifiedBadge:"sf",dotsButton:"cf",viewStoryInfoContainer:"nf",viewStoryCompostBarContainer:"lf",viewStoryCompostBarViewIconContainer:"df",viewStoryCompostBarEngagementContainer:"mf",viewStoryCompostBarEngagementIconContainer:"gf",header:"hf",viewStoryContainer:"pf",viewStoryHeaderContainer:"ff",avatarContainer:"uf",addStoryButton:"kr",viewStoryHeaderListActionsContainer:"bf",viewStoryHeadingInfoContainer:"vf",viewStoryHeading:"xf",viewStoryHeadingTitle:"wf",viewStorySubHeading:"yf",story:"kf",storyContent:"jf",actionButton:"jr",navigationOverlay:"zf",leftOverlay:"If",rightOverlay:"Xf",imageFit:"Yf",imageFill:"Rf",infoIcon__button:"Af",infoIcon:"Mf",storyAd__main:"Sf",storyAd__topBar:"Cf",storyAd__topBar__left:"Ef",storyAd__topBar__avatar:"Uf",storyAd__topBar__text:"qf",storyAd__topBar__advertiserName:"Bf",storyAd__topBar__right:"Ff",storyAd__closeButton:"Hf"};var Y_=({pageId:e="*",ad:t,avatarUrl:o,adImageUrl:r,currentIndex:n,isPaused:i,storiesCount:a,renderLoader:s=()=>J.createElement("div",null,"loading..."),onComplete:l=()=>{},onPauseClick:c,onPlayClick:p,onClose:u,onImageLoaded:f,onAdvertisementInfoOpen:g,onAdvertisementInfoClose:h})=>{var k;let[C,y]=useState(!1),[x,v]=useState(!1),_=()=>{v(!0),g==null||g();},M=()=>{v(!1),h==null||h();},b=useRef(null),w=useRef(null),T=()=>{y(!0),f==null||f();};return J.createElement("div",{className:ht.rendererContainer,ref:w},J.createElement("div",{className:ht.storyAd__main},J.createElement(Xs,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),J.createElement("div",{className:ht.storyAd__topBar},J.createElement("div",{className:ht.storyAd__topBar__left},J.createElement("div",{className:ht.storyAd__topBar__avatar},J.createElement(fr,{defaultImage:J.createElement(ql,null),avatarUrl:o})),J.createElement("div",{className:ht.storyAd__topBar__text},J.createElement(A.BodyBold,{className:ht.storyAd__topBar__advertiserName},(k=t.advertiser)==null?void 0:k.name),J.createElement(Zl,null))),J.createElement("div",{className:ht.storyAd__topBar__right},i?J.createElement(Vo,{className:ht.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):J.createElement(u1,{className:ht.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>c==null?void 0:c()}),J.createElement(yr,{defaultClassName:lo(ht.storyAd__closeButton),pageId:e,onPress:u}))),J.createElement("div",{className:lo(ht.storyImageContainer)},J.createElement("img",{ref:b,className:lo(ht.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:T,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:ht.loadingOverlay},s()),t.callToActionUrl&&J.createElement("div",{className:ht.hyperLinkContainer},J.createElement("a",{className:ht.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),J.createElement(U,{className:ht.infoIcon__button,onPress:()=>{_();}},J.createElement(xr,{className:ht.infoIcon}))),J.createElement($_,{ad:t,isOpen:x,targetRef:w,onOpenChange:N=>!N&&M()}))};var mR=({story:e,action:t,config:o,onClose:r})=>{var T,k,N,F,Z,$;let[n,i]=useState(!1),{loader:a}=o,{ad:s,currentIndex:l,storiesCount:c,increaseIndex:p,pageId:u,dragEventTarget:f}=e,g=()=>{t("play",!0),i(!1);},h=()=>{t("pause",!0),i(!0);},y=ct({fileId:(k=(T=s==null?void 0:s.advertiser)==null?void 0:T.avatar)==null?void 0:k.fileId})||((F=(N=s==null?void 0:s.advertiser)==null?void 0:N.avatar)==null?void 0:F.fileUrl)||"",v=ct({fileId:(Z=s==null?void 0:s.image9_16)==null?void 0:Z.fileId})||(($=s==null?void 0:s.image9_16)==null?void 0:$.fileUrl)||"",_=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),M=()=>{t("pause",!0);},b=()=>{t("play",!0);},w=()=>{p();};return useEffect(()=>{var G,O;if(f){let ee=()=>{t("pause",!0),i(!0);},X=()=>{t("play",!0),i(!1);};return (G=f.current)==null||G.addEventListener("dragstart",ee),(O=f.current)==null||O.addEventListener("dragend",X),()=>{var L,H;(L=f.current)==null||L.removeEventListener("dragstart",ee),(H=f.current)==null||H.removeEventListener("dragend",X);}}},[f]),s?J.createElement(Y_,{pageId:u,ad:s,adImageUrl:v,avatarUrl:y,currentIndex:l,isPaused:n,storiesCount:c,renderLoader:()=>a,onComplete:w,onPauseClick:h,onPlayClick:g,onClose:r,onImageLoaded:_,onAdvertisementInfoOpen:M,onAdvertisementInfoClose:b}):null},dR=e=>({condition:!!e.ad,priority:2}),W_={renderer:mR,tester:dR};var e1=[O_,H_,W_,G_,j_];var Ku={storyButton:"zr",desktopOnly:"Ir"};var uR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),J.createElement("path",{d:"M12 23.91C5.578 23.91.375 18.709.375 12.287.375 5.864 5.578.66 12 .66s11.625 5.203 11.625 11.625S18.422 23.91 12 23.91zM6.656 13.084l6.328 6.375c.47.422 1.172.422 1.594 0l.797-.797c.422-.422.422-1.172 0-1.594l-4.781-4.781 4.781-4.735c.422-.468.422-1.171 0-1.593l-.797-.797c-.422-.422-1.172-.422-1.594 0l-6.328 6.328c-.468.469-.468 1.172 0 1.594z"})),om=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_left_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement("button",{"data-qa-anchor":n,className:lo(Ku.storyButton,Ku.desktopOnly),onClick:o,style:a},J.createElement(uR,null))};var Ju={storyButton:"Xr",desktopOnly:"Yr"};var yR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),J.createElement("path",{d:"M12 .66c6.422 0 11.625 5.204 11.625 11.626S18.422 23.91 12 23.91.375 18.708.375 12.286 5.578.66 12 .66zm5.297 10.829L10.969 5.16c-.422-.422-1.172-.422-1.594 0l-.797.797c-.422.422-.422 1.172 0 1.593l4.781 4.735-4.78 4.781c-.423.422-.423 1.172 0 1.594l.796.797c.422.422 1.172.422 1.594 0l6.328-6.375c.469-.422.469-1.125 0-1.594z"})),rm=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_right_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement("button",{"data-qa-anchor":n,className:lo(Ju.storyButton,Ju.desktopOnly),onClick:o,style:a},J.createElement(yR,null))};var ro={overlayLeft:"Rr",overlayRight:"Ar",viewStoryContent:"Lf",viewStoryOverlay:"Tf",hiddenInput:"Df",viewStoryContainer:"Gf",storyWrapper:"Jf",deleteIcon:"Kf",arrowButton:"Nf"};var _R=7e3,zr=e=>!!(e!=null&&e.storyId),Zc=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var z;let{accessibilityId:s}=jt({pageId:e}),{confirm:l}=bt(),c=zt(),p=useMotionValue(0),u=useRef(null),f=useRef(new EventTarget),[g,h]=useState(!1),{stories:C}=hs({targetId:t,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),y=C.reduce((E,D)=>(E.find(ae=>zr(ae)&&zr(D)?ae.storyId===D.storyId:!1)||E.push(D),E),[]),x=useMemo(()=>e1.map(({renderer:E,tester:D})=>({renderer:ae=>E(S(d({},ae),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:D})),[e1,r,i,t]),v=useRef(null),{client:_,currentUserId:M}=Oe(),[b,w]=useState(0),{file:T,setFile:k}=Wo(),N=y[b],F=zr(N)?((z=N==null?void 0:N.creator)==null?void 0:z.userId)===M:!1,Z=zr(N)?I2(_,N==null?void 0:N.targetId):!1,$=()=>{if(b===y.length-1){r(t);return}w(b+1);},G=()=>{b!==0&&w(b-1);},O=E=>{l({pageId:e,title:"Delete this story?",content:"This story will be permanently deleted. You'll no longer to see and find this story.",okText:"Delete",onOk:()=>P(void 0,null,function*(){h(!1),yield StoryRepository.softDeleteStory(E),b===0?r(t):w(b-1),c.success({content:"Story deleted"});})});},ee=E=>{O(E);},X=useCallback((E,D,W,ae)=>P(void 0,null,function*(){var me;try{let ye=new FormData;ye.append("files",E),k(null),E!=null&&E.type.includes("image")&&M?yield StoryRepository.createImageStory("user",M,ye,W,D,ae):M&&(yield StoryRepository.createVideoStory("user",M,ye,W,ae)),c.success({content:"Successfully shared story"});}catch(ye){ye instanceof Error&&c.info({content:(me=ye.message)!=null?me:"Failed to share story"});}}),[M,c,k]),L=()=>{k(null);},H=J.createElement(FileTrigger,{ref:v,onSelect:E=>{let D=Array.from(E);k(D[0]);}},J.createElement(qn,{pageId:e})),K=()=>{if(b===y.length-1){r(t);return}w(E=>E+1);},Y=y==null?void 0:y.map(E=>{var D,W,ae;if(zr(E)){let me=(E==null?void 0:E.dataType)==="image",ye=me?(D=E==null?void 0:E.imageData)==null?void 0:D.fileUrl:(ae=(W=E==null?void 0:E.videoData)==null?void 0:W.videoUrl)==null?void 0:ae["720p"];return {story:E,url:ye,type:me?"image":"video",actions:[F||Z?{name:"Delete",action:()=>ee(E==null?void 0:E.storyId),icon:J.createElement(L0,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(qo),onCreateStory:X,discardStory:L,addStoryButton:H,fileInputRef:v,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:K,pageId:e,dragEventTarget:f.current,setIsBottomSheetOpen:h,isBottomSheetOpen:g}}else return {ad:E,actions:[],pageId:e,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:K}}),pe="asc-uikit-stories-viewer";return useEffect(()=>{let E=y[y.length-1];zr(E)&&(E==null?void 0:E.syncState)==="syncing"&&w(y.length-1),N&&zr(N)&&(N==null||N.analytics.markAsSeen());},[b,y]),useEffect(()=>{if(y.filter(zr).every(D=>D==null?void 0:D.isSeen))return;let E=y.findIndex(D=>zr(D)?!(D!=null&&D.isSeen):!1);E!==-1&&w(E);},[]),la({targetId:t,targetType:"community"}),T&&a(t,"community",T.type.includes("image")?{type:"image",url:URL.createObjectURL(T)}:{type:"video",url:URL.createObjectURL(T)},"communityFeed"),!y||y.length===0?null:J.createElement("div",{className:lo(ro.storyWrapper)},J.createElement(om,{onClick:G}),J.createElement(motion.div,{id:pe,ref:u,"data-qa-anchor":s,initial:{y:0},drag:"y",whileDrag:{scale:.95,borderRadius:"8px",cursor:"grabbing"},dragConstraints:{top:0,bottom:200},dragElastic:{top:0,bottom:.5},onDragStart:()=>{f.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,D)=>{D.point.y<D.point.y-D.offset.y&&p.set(0);},onDragEnd:(E,D)=>{f.current.dispatchEvent(new Event("dragend")),D.offset.y>100?n(t):p.set(0);},className:lo(ro.viewStoryContainer)},J.createElement("div",{className:lo(ro.viewStoryContent)},J.createElement("div",{className:lo(ro.overlayLeft),onClick:G}),J.createElement("div",{className:lo(ro.overlayRight),onClick:$}),J.createElement("div",{className:lo(ro.viewStoryOverlay)}),J.createElement(xR,{key:y==null?void 0:y.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:Y,renderers:x,defaultInterval:_R,onStoryStart:()=>zr(N)&&(N==null?void 0:N.analytics.markAsSeen()),onStoryEnd:$,onNext:$,onPrevious:G,onAllStoriesEnd:$}))),J.createElement(rm,{onClick:$}))};var ER=7e3,ii=e=>!!(e!=null&&e.storyId),J_=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var z;let{accessibilityId:c}=jt({pageId:e}),{confirm:p}=bt(),u=zt(),{client:f,currentUserId:g}=Oe(),{file:h,setFile:C}=Wo(),y=useMotionValue(0),x=useRef(null),v=useRef(new EventTarget),[_,M]=useState(0),b=useRef(null),{stories:w}=hs({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),T=useMemo(()=>e1.map(({renderer:E,tester:D})=>({renderer:ae=>E(S(d({},ae),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:D})),[e1,a,s,l,t]),k=w[_],N=ii(k)?((z=k==null?void 0:k.creator)==null?void 0:z.userId)===g:!1,F=ii(k)?I2(f,k==null?void 0:k.targetId):!1,Z=()=>{if(_===0){let D=o.indexOf(t)-1;if(D>=0){let W=o[D];n(W);}else r==null||r();M(0);return}M(E=>E-1);},$=E=>{let D=_===w.length-1;p({pageId:e,title:"Delete this story?",content:"This story will be permanently deleted. You\u2019ll no longer to see and find this story.",okText:"Delete",onOk:()=>P(void 0,null,function*(){yield StoryRepository.softDeleteStory(E),u.success({content:"Story deleted"}),w.length===1?r==null||r():D?Z():M(W=>W);})});},G=E=>{$(E);},O=(E,D,W,ae)=>P(void 0,null,function*(){var me;try{let ye=new FormData;if(ye.append("files",E),C(null),E!=null&&E.type.includes("image")&&g){let{data:it}=yield StoryRepository.createImageStory("user",g,ye,W,D,ae);it&&u.success({content:"Successfully shared story"});}else if(g){let{data:it}=yield StoryRepository.createVideoStory("user",g,ye,W,ae);it&&u.success({content:"Successfully shared story"});}}catch(ye){ye instanceof Error&&u.info({content:(me=ye.message)!=null?me:"Failed to share story"});}}),ee=()=>{C(null);},X=J.createElement(FileTrigger,{ref:b,onSelect:E=>{let D=Array.from(E);C(D[0]);}},J.createElement(qn,{pageId:e})),L=()=>{_!==w.length-1&&M(E=>E+1);},H=w==null?void 0:w.map(E=>{var D,W,ae;if(ii(E)){let me=(E==null?void 0:E.dataType)==="image",ye=me?(D=E==null?void 0:E.imageData)==null?void 0:D.fileUrl:(ae=(W=E==null?void 0:E.videoData)==null?void 0:W.videoUrl)==null?void 0:ae["720p"];return {story:E,url:ye,type:me?"image":"video",actions:[N||F?{name:"Delete",action:()=>G(E==null?void 0:E.storyId),icon:J.createElement(aa,{className:ro.deleteIcon})}:null].filter(qo),onCreateStory:O,discardStory:ee,addStoryButton:X,fileInputRef:b,currentIndex:_,storiesCount:w==null?void 0:w.length,increaseIndex:L,pageId:e}}else return {ad:E,actions:[],pageId:e,currentIndex:_,storiesCount:w==null?void 0:w.length,increaseIndex:L}}),K=()=>{if(_===(H==null?void 0:H.length)-1){let D=o.indexOf(t)+1;if(D<o.length){let W=o[D];n(W);}else r==null||r();M(0);return}M(E=>E+1);},Y="asc-uikit-stories-viewer";if(useEffect(()=>{let E=w[w.length-1];ii(E)&&(E==null?void 0:E.syncState)==="syncing"&&M(w.length-1),k&&ii(k)&&(k==null||k.analytics.markAsSeen());},[k,w]),useEffect(()=>{if(w.filter(ii).every(D=>D==null?void 0:D.isSeen))return;let E=w.findIndex(D=>ii(D)?!(D!=null&&D.isSeen):!1);E!==-1&&M(E);},[]),useEffect(()=>{h&&i(t,"community",h.type.includes("image")?{type:"image",url:URL.createObjectURL(h)}:{type:"video",url:URL.createObjectURL(h)},"globalFeed");},[h,i,t]),la({targetId:t,targetType:"community"}),!w||w.length===0)return null;let pe=()=>{if(H[_])return _;let E=H.length-1;return M(E),E};return J.createElement("div",{className:lo(ro.storyWrapper),"data-qa-anchor":c},J.createElement(om,{onClick:Z}),J.createElement(motion.div,{id:Y,ref:x,"data-qa-anchor":c,initial:{y:0},drag:"y",whileDrag:{scale:.95,borderRadius:"8px",cursor:"grabbing"},dragConstraints:{top:0,bottom:200},dragElastic:{top:0,bottom:.5},onDragStart:()=>{v.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,D)=>{D.point.y<D.point.y-D.offset.y&&y.set(0);},onDragEnd:(E,D)=>{v.current.dispatchEvent(new Event("dragend")),D.offset.y>100?s(t):y.set(0);},className:lo(ro.viewStoryContainer)},J.createElement("div",{className:lo(ro.viewStoryContent)},J.createElement("div",{className:lo(ro.overlayLeft),onClick:Z}),J.createElement("div",{className:lo(ro.overlayRight),onClick:K}),J.createElement("div",{className:lo(ro.viewStoryOverlay)}),J.createElement(xR,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:pe(),stories:H,renderers:T,defaultInterval:ER,onStoryStart:()=>ii(k)&&(k==null?void 0:k.analytics.markAsSeen()),onStoryEnd:L,onNext:K,onPrevious:Z,onAllStoriesEnd:K}))),J.createElement(rm,{onClick:K}))};var qc=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=Td({seenState:"smart",limit:10});return J.createElement(J_,{pageId:e,targetId:t,targetIds:l.map(c=>c.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var BR=({type:e,targetId:t})=>{let o="view_story_page",{onBack:r,goToDraftStoryPage:n,onClickCommunity:i,onChangePage:a,onClickStory:s}=Q(),l=()=>{a("newsfeed");},c=p=>{i(p);};return e==="communityFeed"?J.createElement(Zc,{pageId:o,communityId:t,onBack:r,onClose:c,onSwipeDown:c,onClickCommunity:c,goToDraftStoryPage:({targetId:p,targetType:u,mediaType:f,storyType:g})=>n(p,u,f,g)}):e==="globalFeed"?J.createElement(qc,{pageId:o,targetId:t,onChangePage:l,onClose:l,onSwipeDown:l,onClickStory:p=>s(p,"globalFeed"),goToDraftStoryPage:({targetId:p,targetType:u,mediaType:f,storyType:g})=>n(p,u,f,g),onClickCommunity:p=>i(p)}):null},R_=BR;var eM={roundedBackButton:"Of"};var FR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M16.176 23.914c-.14.176-.422.176-.598 0L8.23 16.566a.405.405 0 010-.597l7.348-7.348c.176-.176.457-.176.598 0l.703.668c.176.176.176.457 0 .598l-5.45 5.449h12.024c.211 0 .422.21.422.422v.984c0 .246-.21.422-.422.422H11.43l5.449 5.484c.176.141.176.422 0 .598l-.703.668z"})),r4=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="back_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{style:u,className:eM.roundedBackButton,onPress:n},J.createElement(le,{"data-qa-anchor":a,defaultIcon:()=>J.createElement(FR,{className:o}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var br={draftPageContainer:"Mr",headerContainer:"Pf",storyWrapper:"Qf",header:"Vf",topRightButtons:"Wf",mainContainer:"Zf",previewImage:"_f",footer:"eu",videoPreview:"ru",hyperLinkContainer:"au",playPauseButton:"ou",progressBar:"tu",progressFill:"iu",userInfo:"su",name:"cu",description:"nu",storyPreview:"lu"};var n4=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var X,L,H,K,Y,pe;let{page:a,onBack:s}=Be(),l="create_story_page",{accessibilityId:c,themeStyles:p}=jt({pageId:l}),{file:u,setFile:f}=Wo(),{community:g}=Zd(e),[h,C]=useState(!1),{confirm:y}=bt(),x=zt(),[v,_]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),M=()=>{C(!1);},[b,w]=useState("fit"),[T,k]=useState([]),N=()=>{w(b==="fit"?"fill":"fit"),b==="fill"&&k([]);},F=(z,E,D,W)=>P(void 0,null,function*(){var ae;if(z)try{let me=new FormData;me.append("files",z),f(null),a.type==="DraftPage"&&a.context.storyType==="globalFeed"?n():s(),(o==null?void 0:o.type)==="image"&&e?yield StoryRepository.createImageStory(t,e,me,D,E,W):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,me,D,W)),x.success({content:"Successfully shared story"});}catch(me){me instanceof Error&&x.info({content:(ae=me.message)!=null?ae:"Failed to share story"});}}),Z=()=>{y({pageId:l,title:"Delete this story?",content:"This story will be permanently deleted. You\u2019ll no longer to see and find this story.",cancelText:"Cancel",okText:"Delete",onOk:()=>{f(null),i();}});},$=({url:z,customText:E})=>{_([{data:{url:z,customText:E||""},type:"hyperlink"}]),C(!1);},G=()=>{_([{data:{url:"",customText:""},type:"hyperlink"}]);},O=()=>{var z,E;if((E=(z=v[0])==null?void 0:z.data)!=null&&E.url){x.info({content:"Can\u2019t add more than one link to your story."});return}C(!0);},ee=useCallback(z=>P(void 0,null,function*(){let E=new Image;E.crossOrigin="Anonymous",E.src=z,E.onload=()=>{let W=new UX().getPalette(E,2);W&&k(W.map(ae=>`rgb(${ae.join(",")})`));};}),[]);return useEffect(()=>{P(void 0,null,function*(){if((o==null?void 0:o.type)==="image")if(u){let E=URL.createObjectURL(u);yield ee(E);}else o.url&&(yield ee(o.url));});},[u,o,ee]),J.createElement("div",{"data-qa-anchor":c,style:p,className:br.storyWrapper},J.createElement("div",{id:"asc-uikit-create-story",className:br.draftPageContainer},J.createElement("div",{className:br.headerContainer},J.createElement("div",{className:br.header},J.createElement(r4,{pageId:l,onPress:Z}),J.createElement("div",{className:br.topRightButtons},(o==null?void 0:o.type)==="image"&&J.createElement(Kd,{pageId:l,onPress:N}),J.createElement(Jd,{pageId:l,onPress:O})))),(o==null?void 0:o.type)==="image"?J.createElement("div",{className:br.mainContainer,style:{background:`linear-gradient(
3913
+ `,xX=m.svg`
3914
+ animation: ${vX} 2s linear infinite;
3915
+ `,bX=e=>J.createElement(xX,d({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),J.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),J.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"#1054DE",strokeWidth:"2",strokeDasharray:"46.75",strokeDashoffset:"21",strokeLinecap:"round",strokeLinejoin:"round"})),N_=bX;var ju={storyCommentButton:"m0",storyCommentIcon:"g0"};var _X=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M10 2.188c4.682 0 8.5 3.12 8.5 6.906C18.5 12.912 14.682 16 10 16c-1.295 0-2.49-.232-3.586-.63-.797.663-2.457 1.693-4.648 1.693-.133 0-.2-.034-.266-.133-.033-.1 0-.233.066-.3 0-.032 1.395-1.493 1.827-3.187-1.196-1.195-1.893-2.69-1.893-4.35 0-3.784 3.785-6.905 8.5-6.905z"})),k_=({pageId:e="*",componentId:t="*",onPress:o,commentsCount:r,imgClassName:n})=>{let i="story_comment_button",{isExcluded:a,accessibilityId:s,defaultConfig:l,config:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return a?null:J.createElement(U,{"data-qa-anchor":s,onPress:o,style:u,className:lo(ju.storyCommentButton)},J.createElement(le,{defaultIconName:l.icon,configIconName:c.icon,imgIcon:()=>J.createElement("img",{src:c.icon,alt:p,className:lo(n),style:u}),defaultIcon:()=>J.createElement("div",{className:lo(ju.storyCommentIcon)},J.createElement(_X,null),J.createElement(A.BodyBold,null,gg(r)))}))};var $u={storyReactionButton:"h0",storyReactionIcon:"p0"};var SX=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),J.createElement("path",{fill:"#A5A9B5",d:"M17.793 11.025c.148.854.037 1.67-.334 2.338a3.437 3.437 0 01-.668 2.487c-.037 2.078-1.299 3.525-4.156 3.525h-.854c-3.785 0-4.935-1.41-6.605-1.447-.112.482-.594.853-1.114.853H1.688c-.667 0-1.187-.52-1.187-1.187V8.687c0-.63.52-1.187 1.188-1.187h3.636c.705-.594 1.707-2.227 2.56-3.08.52-.52.372-4.045 2.673-4.045 2.115 0 3.525 1.188 3.525 3.896 0 .706-.148 1.262-.334 1.745h1.373c1.781 0 3.191 1.521 3.191 3.154 0 .705-.185 1.299-.519 1.855zm-2.3 2.004c.816-.742.704-1.892.185-2.449.37 0 .853-.705.853-1.373-.037-.705-.63-1.41-1.41-1.41h-3.86c0-1.41 1.04-2.078 1.04-3.526 0-.89 0-2.115-1.744-2.115-.705.705-.372 2.487-1.41 3.526-1.002 1.002-2.45 3.6-3.526 3.6H5.25v6.939c1.967 0 3.71 1.373 6.346 1.373h1.41c1.299 0 2.264-.631 1.967-2.412.556-.334 1.002-1.373.52-2.153zM3.765 16.406a.903.903 0 00-.891-.89.88.88 0 00-.89.89c0 .52.37.89.89.89a.88.88 0 00.89-.89z"})),TX=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),J.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_linear_7702_34939)"}),J.createElement("path",{fill:"#fff",d:"M7.486 10.575H5.42a.611.611 0 00-.62.619v6.187c0 .361.258.619.62.619h2.066c.336 0 .62-.258.62-.619v-6.187a.628.628 0 00-.62-.62zm-1.033 6.394a.596.596 0 01-.62-.62c0-.334.258-.618.62-.618.336 0 .62.284.62.619 0 .36-.284.619-.62.619zm8.264-10.055c0-1.908-1.24-2.114-1.859-2.114-.542 0-.775 1.031-.878 1.495-.155.567-.284 1.134-.672 1.521-.826.851-1.265 1.908-2.298 2.913a.415.415 0 00-.078.232v5.518c0 .154.13.283.284.31.414 0 .956.231 1.37.412.826.36 1.833.799 3.073.799h.077c1.11 0 2.428 0 2.944-.748.233-.31.285-.696.155-1.16.44-.438.646-1.263.44-1.934.439-.593.49-1.443.232-2.036.31-.31.516-.8.49-1.264 0-.799-.67-1.52-1.523-1.52h-2.635c.207-.723.878-1.341.878-2.424z"}),J.createElement("defs",null,J.createElement("linearGradient",{id:"paint0_linear_7702_34939",x1:"9",x2:"19.8",y1:"2.4",y2:"29.4",gradientUnits:"userSpaceOnUse"},J.createElement("stop",{stopColor:"#5B9DFF"}),J.createElement("stop",{offset:"1",stopColor:"#0041BE"})))),E_=({myReactions:e=[],reactionsCount:t,pageId:o="*",componentId:r="*",defaultIconClassName:n,imgIconClassName:i,onPress:a})=>{let s="story_reaction_button",{isExcluded:l,accessibilityId:c,config:p,uiReference:u,themeStyles:f}=B({pageId:o,componentId:r,elementId:s}),g=e.length>0;return l?null:J.createElement(U,{"data-qa-anchor":c,className:lo($u.storyReactionButton),onPress:a,style:f},J.createElement(le,{defaultIcon:()=>J.createElement("div",{className:lo($u.storyReactionIcon,n)},g?J.createElement(TX,null):J.createElement(SX,null),J.createElement(A.BodyBold,null,gg(t))),imgIcon:()=>J.createElement("img",{src:p.icon,alt:u,className:lo(i)})}))};var ni={viewStoryCompostBarContainer:"f0",viewStoryFailedCompostBarContainer:"u0",viewStoryFailedCompostBarWrapper:"b0",viewStoryUploadingWrapper:"v0",viewStoryCompostBarViewIconContainer:"x0",viewStoryCompostBarEngagementContainer:"w0",viewStoryCommentButton:"y0",viewStoryCommentIcon:"k0"};var kX=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:c,myReactions:p})=>{let u=zt(),f=()=>P(void 0,null,function*(){try{if(!c){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,mo):yield ReactionRepository.addReaction("story",a,mo);}catch(g){console.error("Can't toggle like",g);}});return t==="syncing"?J.createElement("div",{className:ni.viewStoryCompostBarContainer},J.createElement("div",{className:ni.viewStoryUploadingWrapper},J.createElement(N_,{width:20,height:20}),"Uploading...")):t==="error"?J.createElement("div",{className:ni.viewStoryFailedCompostBarContainer},J.createElement("div",{className:ni.viewStoryFailedCompostBarWrapper},J.createElement(B0,null),J.createElement("span",null,"Failed to upload")),J.createElement(Cn,null)):J.createElement("div",{className:ni.viewStoryCompostBarContainer},J.createElement("div",null,l&&J.createElement("div",{className:ni.viewStoryCompostBarViewIconContainer},J.createElement(Xd,{reach:o}))),J.createElement("div",{className:ni.viewStoryCompostBarEngagementContainer},J.createElement(k_,{pageId:e,commentsCount:r,onPress:s}),J.createElement(E_,{pageId:e,myReactions:p,reactionsCount:n,onPress:f})))},Hc=kX;var Bo={iconButton:"j0",rendererContainer:"z0",storyVideo:"I0",muteCircleIcon:"X0",unmuteCircleIcon:"Y0",loadingOverlay:"R0",storyImage:"A0",playStoryButton:"M0",pauseStoryButton:"S0",closeButton:"C0",verifiedBadge:"E0",dotsButton:"U0",viewStoryInfoContainer:"q0",viewStoryCompostBarContainer:"B0",viewStoryCompostBarViewIconContainer:"F0",viewStoryCompostBarEngagementContainer:"H0",viewStoryCompostBarEngagementIconContainer:"L0",storyContent:"T0",header:"D0",viewStoryContainer:"G0",viewStoryHeaderContainer:"J0",avatarContainer:"K0",addStoryButton:"br",viewStoryHeaderListActionsContainer:"N0",viewStoryHeadingInfoContainer:"O0",viewStoryHeading:"P0",viewStoryHeadingTitle:"Q0",viewStorySubHeading:"V0"};var LX=({community:e,heading:t,subheading:o,isHaveActions:r,isOfficial:n,isPaused:i,onPlay:a,onPause:s,onAction:l,onClose:c,onClickCommunity:p,haveStoryPermission:u,addStoryButton:f})=>J.createElement("div",{className:Bo.viewStoryHeaderContainer},J.createElement("div",{className:Bo.viewStoryHeadingInfoContainer},J.createElement("div",{className:Bo.avatarContainer},J.createElement(Dr,{pageId:"story_page",community:e}),u&&f),J.createElement("div",{className:Bo.viewStoryInfoContainer},J.createElement("div",{className:Bo.viewStoryHeading},J.createElement(og,{lines:1},J.createElement("div",{className:Bo.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&J.createElement(K5,{className:Bo.verifiedBadge})),J.createElement("span",{className:Bo.viewStorySubHeading},o))),J.createElement("div",{className:Bo.viewStoryHeaderListActionsContainer},i?J.createElement(Vo,{className:Bo.playStoryButton,"data-qa-anchor":"play_button",onClick:a}):J.createElement(f1,{className:Bo.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:s}),r&&J.createElement(Rd,{pageId:"story_page",onPress:l}),J.createElement(yr,{defaultClassName:lo(Bo.closeButton),pageId:"story_page",onPress:c}))),Uc=LX;function Xl({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:S(d({},e),{includeDeleted:!1,limit:20}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=w(n,["items"]);return d({members:o},r)}var Ft={iconButton:"W0",hyperLinkContainer:"vr",rendererContainer:"Z0",storyVideo:"_0",muteCircleIcon:"ep",unmuteCircleIcon:"rp",loadingOverlay:"ap",storyImageContainer:"op",storyImage:"tp",playStoryButton:"ip",pauseStoryButton:"sp",closeButton:"cp",verifiedBadge:"np",dotsButton:"lp",viewStoryInfoContainer:"dp",viewStoryCompostBarContainer:"mp",viewStoryCompostBarViewIconContainer:"gp",viewStoryCompostBarEngagementContainer:"hp",viewStoryCompostBarEngagementIconContainer:"pp",header:"fp",viewStoryContainer:"up",viewStoryHeaderContainer:"bp",avatarContainer:"vp",addStoryButton:"xr",viewStoryHeaderListActionsContainer:"xp",viewStoryHeadingInfoContainer:"wp",viewStoryHeading:"yp",viewStoryHeadingTitle:"kp",viewStorySubHeading:"jp",story:"zp",storyContent:"Ip",actionButton:"wr",navigationOverlay:"Xp",leftOverlay:"Yp",rightOverlay:"Rp",imageFit:"Ap",imageFill:"Mp"};var zc={progressBarContainer:"Sp",progressSegment:"Cp",progressBar:"Ep"};var Rs=J.memo(({pageId:e="*",componentId:t="*",duration:o,currentIndex:r,storiesCount:n,isPaused:i,onComplete:a})=>{let s="progress_bar",{config:l,isExcluded:c}=B({pageId:e,componentId:t,elementId:s}),[p,u]=useState(new Array(n).fill(0)),[f,g]=useState(r),h=l==null?void 0:l.backgroundColor,C=l==null?void 0:l.progressColor;return useEffect(()=>{r<f&&u(y=>{let x=[...y];return x[r]=0,x}),g(r);},[r,f]),useEffect(()=>{let y;return i||(y=setInterval(()=>{u(x=>{let v=[...x];return v[r]<100&&(v[r]+=100/o*100,v[r]>=100&&(v[r]=100,a())),v});},100)),()=>{y&&clearInterval(y);}},[o,r,i,a]),c?null:J.createElement("div",{className:lo(zc.progressBarContainer),style:{backgroundColor:h}},p.map((y,x)=>J.createElement("div",{key:x,className:lo(zc.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},J.createElement("div",{className:lo(zc.progressBar),style:{width:`${x<r?100:x===r?y:0}%`,backgroundColor:C}}))))});var jX=({story:{actions:e,fileInputRef:t,addStoryButton:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l,url:c},action:p,config:u,onClose:f,onClickCommunity:g})=>{var De,qe,Et,Do;let{formatMessage:h}=useIntl(),[C,y]=useState(!1),[x,v]=useState(!1),[_,M]=useState(!1),[b,I]=useState(!1),{loader:T}=u,{client:k}=Oe(),[N,F]=useState(""),Z=useRef(null),$=!!(l&&l.myReactions&&l.myReactions.includes(vr)),G=(l==null?void 0:l.reactionsCount)||0,{storyId:O,syncState:ee,reach:X,commentsCount:L,createdAt:H,creator:K,community:Y,myReactions:pe,data:z,items:E}=l,{members:D}=Xl({queryParams:{communityId:Y==null?void 0:Y.communityId},shouldCall:!!(Y!=null&&Y.communityId)}),ae=(D==null?void 0:D.find(se=>se.userId===(k==null?void 0:k.userId)))!=null,{user:me}=Ae({userId:k==null?void 0:k.userId}),ye=(Y==null?void 0:Y.isOfficial)||!1,at=(K==null?void 0:K.userId)===(me==null?void 0:me.userId),wr=bd(me==null?void 0:me.roles),_r=xd(me==null?void 0:me.roles),no=wr||_r||Zn(k,Y==null?void 0:Y.communityId),l1=useMemo(()=>J.createElement("div",{"data-qa-anchor":"community_display_name"},Y==null?void 0:Y.displayName),[Y==null?void 0:Y.displayName]),m1=useMemo(()=>H&&(K!=null&&K.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},Id(H))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},K==null?void 0:K.displayName)):"",[H,K==null?void 0:K.displayName]),$r="asc-uikit-stories-viewer",li=useCallback(()=>{if(Z.current&&Z.current.complete){let Qt=new zX().getPalette(Z.current,2);if(Qt){let Mr=`linear-gradient(to top, rgb(${Qt[0].join(",")}), rgb(${Qt[1].join(",")})`;F(Mr);}}},[]),mi=useCallback(()=>{y(!0),b&&I(!1),p("play",!0),li();},[p,b,li]),d1=()=>{p("play",!0),I(!1);},ua=()=>{p("pause",!0),I(!0);},fa=()=>{p("pause",!0),v(!0);},di=()=>{p("play",!0),v(!1);},un=()=>{p("pause",!0),M(!0);},ci=()=>{p("play",!0),M(!1);},pi=()=>{f();},ui=()=>{i();};return useEffect(()=>{Z.current&&Z.current.complete&&li();},[]),useEffect(()=>{if(t.current){let se=()=>{p("pause",!0),I(!0);},Qt=()=>{p("play",!0),I(!1);};return t.current.addEventListener("click",se),t.current.addEventListener("cancel",Qt),()=>{t.current&&(t.current.removeEventListener("cancel",Qt),t.current.removeEventListener("click",se));}}},[t]),useEffect(()=>{var se,Qt;if(s){let Mr=()=>{p("pause",!0),I(!0);},fn=()=>{p("play",!0),I(!1);};return (se=s.current)==null||se.addEventListener("dragstart",Mr),(Qt=s.current)==null||Qt.addEventListener("dragend",fn),()=>{var M4,P4;(M4=s.current)==null||M4.removeEventListener("dragstart",Mr),(P4=s.current)==null||P4.removeEventListener("dragend",fn);}}},[s]),J.createElement("div",{className:Ft.rendererContainer,style:{background:N}},J.createElement(Rs,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:b||x||_,onComplete:ui}),J.createElement(Uc,{community:Y,heading:l1,subheading:m1,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:no,isOfficial:ye,isPaused:b,onPlay:d1,onPause:ua,onAction:fa,onClickCommunity:()=>g==null?void 0:g(),onClose:pi,addStoryButton:o}),J.createElement("div",{className:lo(Ft.storyImageContainer,{[Ft.imageFit]:z.imageDisplayMode==="fit",[Ft.imageFill]:z.imageDisplayMode==="fill"})},J.createElement("img",{ref:Z,className:lo(Ft.storyImage,{[Ft.imageFit]:z.imageDisplayMode==="fit",[Ft.imageFill]:z.imageDisplayMode==="fill"}),"data-qa-anchor":"image_view",src:c!=null?c:l==null?void 0:l.data.fileData,onLoad:mi,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:Ft.loadingOverlay},T||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:$r,isOpen:x,onClose:di,mountPoint:document.getElementById($r),detent:"content-height"},e==null?void 0:e.map(se=>J.createElement(U,{key:se.name,className:Ft.actionButton,onPress:()=>se==null?void 0:se.action()},(se==null?void 0:se.icon)&&se.icon,J.createElement(A.BodyBold,null,se.name)))),J.createElement(Co,{rootId:$r,isOpen:_,onClose:ci,mountPoint:document.getElementById($r),detent:"full-height",headerTitle:h({id:"storyViewer.commentSheet.title"})},J.createElement(Qs,{referenceId:O,referenceType:"story",community:Y,shouldAllowCreation:Y==null?void 0:Y.allowCommentInStory,shouldAllowInteraction:ae})),((qe=(De=E==null?void 0:E[0])==null?void 0:De.data)==null?void 0:qe.url)&&J.createElement("div",{className:Ft.hyperLinkContainer},J.createElement(Jn,{href:E[0].data.url.startsWith("http")?E[0].data.url:`https://${E[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(og,{lines:1},J.createElement("span",null,((Do=(Et=E[0])==null?void 0:Et.data)==null?void 0:Do.customText)||E[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Hc,{pageId:a,storyId:O,syncState:ee,reach:X,commentsCount:L,reactionsCount:G,isLiked:$,myReactions:pe,onClickComment:un,showImpression:at||Zn(k,Y==null?void 0:Y.communityId),isMember:ae}))},GX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},O_={renderer:jX,tester:GX};var qX=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},YX=e=>{let[t,o]=useState(!1),r=useCallback(()=>{e("play",!0),o(!1);},[e]),n=useCallback(()=>{e("pause",!0),o(!0);},[e]);return {isPaused:t,play:r,pause:n}},WX=e=>{let[t,o]=useState(!1),[r,n]=useState(!1),i=useCallback(()=>{e("pause",!0),o(!0);},[e]),a=useCallback(()=>{e("play",!0),o(!1);},[e]),s=useCallback(()=>{e("pause",!0),n(!0);},[e]),l=useCallback(()=>{e("play",!0),n(!1);},[e]);return {isBottomSheetOpen:t,isOpenCommentSheet:r,openBottomSheet:i,closeBottomSheet:a,openCommentSheet:s,closeCommentSheet:l}},QX=({story:{actions:e,addStoryButton:t,fileInputRef:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l},action:c,config:p,messageHandler:u,onClose:f,onClickCommunity:g})=>{var fa,di,un,ci,pi,ui,De,qe,Et,Do;let[h,C]=useState(!1),{loader:y}=p,{client:x}=Oe(),{user:v}=Ae({userId:x==null?void 0:x.userId}),_=useRef(null),{muted:M,mute:b,unmute:I}=qX(),{isPaused:T,play:k,pause:N}=YX(c),{isBottomSheetOpen:F,isOpenCommentSheet:Z,openBottomSheet:$,closeBottomSheet:G,openCommentSheet:O,closeCommentSheet:ee}=WX(c),{storyId:X,syncState:L,reach:H,commentsCount:K,createdAt:Y,creator:pe,community:z,myReactions:E,data:D,items:W}=l,ae=(fa=l==null?void 0:l.myReactions)==null?void 0:fa.includes(vr),me=(l==null?void 0:l.reactions[vr])||0,{members:ye}=Xl({queryParams:{communityId:z==null?void 0:z.communityId},shouldCall:!!(z!=null&&z.communityId)}),at=ye==null?void 0:ye.some(se=>se.userId===(x==null?void 0:x.userId)),wr=(z==null?void 0:z.isOfficial)||!1,_r=(pe==null?void 0:pe.userId)===(v==null?void 0:v.userId),no=bd(v==null?void 0:v.roles),l1=xd(v==null?void 0:v.roles),m1=no||l1||Zn(x,z==null?void 0:z.communityId),[$r,li]=useState(!0),mi=useCallback(()=>{var se;u("UPDATE_VIDEO_DURATION",{duration:(se=l==null?void 0:l.videoData)==null?void 0:se.attributes.metadata.video.duration}),C(!0),c("play",!0);},[u,(di=l==null?void 0:l.videoData)==null?void 0:di.attributes.metadata.video.duration,c]),d1=useCallback(()=>{r+1<n?i():f();},[r,n,i,f]);useEffect(()=>{_.current&&(T||F||Z?(_.current.pause(),c("pause",!0)):(mi(),_.current.play(),c("play",!0)));},[T,F,Z,c]),useEffect(()=>{if(o.current){let se=()=>{c("pause",!0),N();},Qt=()=>{c("play",!0),k();};return o.current.addEventListener("click",se),o.current.addEventListener("cancel",Qt),()=>{var Mr,fn;(Mr=o.current)==null||Mr.removeEventListener("click",se),(fn=o.current)==null||fn.removeEventListener("cancel",Qt);}}},[c,N,k]),useEffect(()=>{if(s!=null&&s.current){let se=()=>{c("pause",!0),N();},Qt=()=>{c("play",!0),k();};return s.current.addEventListener("dragstart",se),s.current.addEventListener("dragend",Qt),()=>{var Mr,fn;(Mr=s.current)==null||Mr.removeEventListener("dragstart",se),(fn=s.current)==null||fn.removeEventListener("dragend",Qt);}}},[c,N,k,s]);let ua=Math.round(((un=l==null?void 0:l.videoData)==null?void 0:un.attributes.metadata.video.duration)*1e3);return J.createElement("div",{className:lo(Ft.rendererContainer)},J.createElement(Rs,{pageId:a,duration:ua,currentIndex:r,storiesCount:n,isPaused:T||F||Z,onComplete:d1}),J.createElement(oc,{pageId:"story_page",componentId:"*",isMuted:M,onPress:M?I:b}),J.createElement(Uc,{community:z,heading:J.createElement("div",{"data-qa-anchor":"community_display_name"},z==null?void 0:z.displayName),subheading:Y&&(pe!=null&&pe.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},Id(Y))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},pe==null?void 0:pe.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:m1,isOfficial:wr,isPaused:T,onPlay:k,onPause:N,onMute:b,onUnmute:I,onAction:$,onClickCommunity:()=>g==null?void 0:g(),onClose:f,addStoryButton:t}),J.createElement("video",{"data-qa-anchor":"video_view",ref:_,className:lo(Ft.storyVideo),src:((ci=l==null?void 0:l.videoData)==null?void 0:ci.fileUrl)||((ui=(pi=l==null?void 0:l.videoData)==null?void 0:pi.videoUrl)==null?void 0:ui.original),controls:!1,onLoadedData:mi,playsInline:!0,onCanPlay:()=>{li(!1);},onWaiting:()=>{c("pause",!0);},onPlaying:()=>{c("play",!0);},muted:M,autoPlay:!0}),(!h||$r)&&J.createElement("div",{className:lo(Ft.loadingOverlay)},y||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:F,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(se=>J.createElement(U,{key:se.name,className:lo(Ft.actionButton),onPress:se==null?void 0:se.action},se==null?void 0:se.icon,J.createElement(A.BodyBold,null,se.name)))),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:Z,onClose:ee,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"full-height"},J.createElement(Qs,{referenceId:X,referenceType:"story",community:z,shouldAllowCreation:z==null?void 0:z.allowCommentInStory,shouldAllowInteraction:at})),((qe=(De=W==null?void 0:W[0])==null?void 0:De.data)==null?void 0:qe.url)&&J.createElement("div",{className:lo(Ft.hyperLinkContainer)},J.createElement(Jn,{href:W[0].data.url.startsWith("http")?W[0].data.url:`https://${W[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(og,{lines:1},J.createElement("span",null,((Do=(Et=W[0])==null?void 0:Et.data)==null?void 0:Do.customText)||W[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Hc,{pageId:a,storyId:X,syncState:L,reach:H,commentsCount:K,reactionsCount:me,isLiked:ae,onClickComment:O,myReactions:E,showImpression:_r||Zn(x,z==null?void 0:z.communityId),isMember:at}))},KX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},H_={renderer:QX,tester:KX};var XX=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),J.createElement("div",{style:z_.storyContent},J.createElement("p",{style:z_.text},"This story could not be loaded."))),z_={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},RX=()=>({condition:!0,priority:1}),j_={renderer:XX,tester:RX};var oR=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return J.createElement(t,d({},e))},rR=e=>({condition:!!e.content,priority:2}),G_={renderer:oR,tester:rR};var yt={drawer__content:"yr",drawer__innerContent:"Up",drawer__placeholder:"qp",drawer__overlay:"Bp",drawer__title:"Fp",drawer__content__data:"Hp",drawer__content__data__title:"Lp",drawer__content__data__text:"Tp",drawer__content__data__caption:"Dp",drawer__content__data__infoIcon:"Gp",drawer__content__emptySpace:"Jp",drawer__container:"Kp",drawer__innerContainer:"Np"};var $_=({isOpen:e,onOpenChange:t,ad:o,targetRef:r})=>{var n;return J.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:i=>{i.preventDefault(),i.stopPropagation();}},J.createElement(Drawer.Portal,{container:r==null?void 0:r.current},J.createElement("div",{className:yt.drawer__container},J.createElement("div",{className:yt.drawer__innerContainer},J.createElement(Drawer.Overlay,{className:yt.drawer__overlay}),J.createElement(Drawer.Content,{className:yt.drawer__content},J.createElement("div",{className:yt.drawer__innerContent},J.createElement("div",{className:yt.drawer__placeholder}),J.createElement(Drawer.Title,{className:yt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:yt.drawer__content__data},J.createElement(A.BodyBold,{className:yt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:yt.drawer__content__data__text},J.createElement(xr,{className:yt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:yt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:yt.drawer__content__data},J.createElement(A.BodyBold,{className:yt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:yt.drawer__content__data__text},J.createElement(xr,{className:yt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:yt.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),J.createElement("div",{className:yt.drawer__content__emptySpace}))))))};var ht={iconButton:"Op",hyperLinkContainer:"Pp",hyperLink__text:"Qp",rendererContainer:"Vp",storyVideo:"Wp",muteCircleIcon:"Zp",unmuteCircleIcon:"_p",loadingOverlay:"ef",storyImageContainer:"rf",storyImage:"af",playStoryButton:"of",pauseStoryButton:"tf",closeButton:"if",verifiedBadge:"sf",dotsButton:"cf",viewStoryInfoContainer:"nf",viewStoryCompostBarContainer:"lf",viewStoryCompostBarViewIconContainer:"df",viewStoryCompostBarEngagementContainer:"mf",viewStoryCompostBarEngagementIconContainer:"gf",header:"hf",viewStoryContainer:"pf",viewStoryHeaderContainer:"ff",avatarContainer:"uf",addStoryButton:"kr",viewStoryHeaderListActionsContainer:"bf",viewStoryHeadingInfoContainer:"vf",viewStoryHeading:"xf",viewStoryHeadingTitle:"wf",viewStorySubHeading:"yf",story:"kf",storyContent:"jf",actionButton:"jr",navigationOverlay:"zf",leftOverlay:"If",rightOverlay:"Xf",imageFit:"Yf",imageFill:"Rf",infoIcon__button:"Af",infoIcon:"Mf",storyAd__main:"Sf",storyAd__topBar:"Cf",storyAd__topBar__left:"Ef",storyAd__topBar__avatar:"Uf",storyAd__topBar__text:"qf",storyAd__topBar__advertiserName:"Bf",storyAd__topBar__right:"Ff",storyAd__closeButton:"Hf"};var Y_=({pageId:e="*",ad:t,avatarUrl:o,adImageUrl:r,currentIndex:n,isPaused:i,storiesCount:a,renderLoader:s=()=>J.createElement("div",null,"loading..."),onComplete:l=()=>{},onPauseClick:c,onPlayClick:p,onClose:u,onImageLoaded:f,onAdvertisementInfoOpen:g,onAdvertisementInfoClose:h})=>{var k;let[C,y]=useState(!1),[x,v]=useState(!1),_=()=>{v(!0),g==null||g();},M=()=>{v(!1),h==null||h();},b=useRef(null),I=useRef(null),T=()=>{y(!0),f==null||f();};return J.createElement("div",{className:ht.rendererContainer,ref:I},J.createElement("div",{className:ht.storyAd__main},J.createElement(Rs,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),J.createElement("div",{className:ht.storyAd__topBar},J.createElement("div",{className:ht.storyAd__topBar__left},J.createElement("div",{className:ht.storyAd__topBar__avatar},J.createElement(fr,{defaultImage:J.createElement(ql,null),avatarUrl:o})),J.createElement("div",{className:ht.storyAd__topBar__text},J.createElement(A.BodyBold,{className:ht.storyAd__topBar__advertiserName},(k=t.advertiser)==null?void 0:k.name),J.createElement(Zl,null))),J.createElement("div",{className:ht.storyAd__topBar__right},i?J.createElement(Vo,{className:ht.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):J.createElement(f1,{className:ht.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>c==null?void 0:c()}),J.createElement(yr,{defaultClassName:lo(ht.storyAd__closeButton),pageId:e,onPress:u}))),J.createElement("div",{className:lo(ht.storyImageContainer)},J.createElement("img",{ref:b,className:lo(ht.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:T,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:ht.loadingOverlay},s()),t.callToActionUrl&&J.createElement("div",{className:ht.hyperLinkContainer},J.createElement("a",{className:ht.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),J.createElement(U,{className:ht.infoIcon__button,onPress:()=>{_();}},J.createElement(xr,{className:ht.infoIcon}))),J.createElement($_,{ad:t,isOpen:x,targetRef:I,onOpenChange:N=>!N&&M()}))};var dR=({story:e,action:t,config:o,onClose:r})=>{var T,k,N,F,Z,$;let[n,i]=useState(!1),{loader:a}=o,{ad:s,currentIndex:l,storiesCount:c,increaseIndex:p,pageId:u,dragEventTarget:f}=e,g=()=>{t("play",!0),i(!1);},h=()=>{t("pause",!0),i(!0);},y=ct({fileId:(k=(T=s==null?void 0:s.advertiser)==null?void 0:T.avatar)==null?void 0:k.fileId})||((F=(N=s==null?void 0:s.advertiser)==null?void 0:N.avatar)==null?void 0:F.fileUrl)||"",v=ct({fileId:(Z=s==null?void 0:s.image9_16)==null?void 0:Z.fileId})||(($=s==null?void 0:s.image9_16)==null?void 0:$.fileUrl)||"",_=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),M=()=>{t("pause",!0);},b=()=>{t("play",!0);},I=()=>{p();};return useEffect(()=>{var G,O;if(f){let ee=()=>{t("pause",!0),i(!0);},X=()=>{t("play",!0),i(!1);};return (G=f.current)==null||G.addEventListener("dragstart",ee),(O=f.current)==null||O.addEventListener("dragend",X),()=>{var L,H;(L=f.current)==null||L.removeEventListener("dragstart",ee),(H=f.current)==null||H.removeEventListener("dragend",X);}}},[f]),s?J.createElement(Y_,{pageId:u,ad:s,adImageUrl:v,avatarUrl:y,currentIndex:l,isPaused:n,storiesCount:c,renderLoader:()=>a,onComplete:I,onPauseClick:h,onPlayClick:g,onClose:r,onImageLoaded:_,onAdvertisementInfoOpen:M,onAdvertisementInfoClose:b}):null},cR=e=>({condition:!!e.ad,priority:2}),W_={renderer:dR,tester:cR};var t1=[O_,H_,W_,G_,j_];var Ku={storyButton:"zr",desktopOnly:"Ir"};var fR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),J.createElement("path",{d:"M12 23.91C5.578 23.91.375 18.709.375 12.287.375 5.864 5.578.66 12 .66s11.625 5.203 11.625 11.625S18.422 23.91 12 23.91zM6.656 13.084l6.328 6.375c.47.422 1.172.422 1.594 0l.797-.797c.422-.422.422-1.172 0-1.594l-4.781-4.781 4.781-4.735c.422-.468.422-1.171 0-1.593l-.797-.797c-.422-.422-1.172-.422-1.594 0l-6.328 6.328c-.468.469-.468 1.172 0 1.594z"})),om=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_left_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement("button",{"data-qa-anchor":n,className:lo(Ku.storyButton,Ku.desktopOnly),onClick:o,style:a},J.createElement(fR,null))};var Ju={storyButton:"Xr",desktopOnly:"Yr"};var hR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),J.createElement("path",{d:"M12 .66c6.422 0 11.625 5.204 11.625 11.626S18.422 23.91 12 23.91.375 18.708.375 12.286 5.578.66 12 .66zm5.297 10.829L10.969 5.16c-.422-.422-1.172-.422-1.594 0l-.797.797c-.422.422-.422 1.172 0 1.593l4.781 4.735-4.78 4.781c-.423.422-.423 1.172 0 1.594l.796.797c.422.422 1.172.422 1.594 0l6.328-6.375c.469-.422.469-1.125 0-1.594z"})),rm=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_right_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=B({pageId:e,componentId:t,elementId:r});return i?null:J.createElement("button",{"data-qa-anchor":n,className:lo(Ju.storyButton,Ju.desktopOnly),onClick:o,style:a},J.createElement(hR,null))};var ro={overlayLeft:"Rr",overlayRight:"Ar",viewStoryContent:"Lf",viewStoryOverlay:"Tf",hiddenInput:"Df",viewStoryContainer:"Gf",storyWrapper:"Jf",deleteIcon:"Kf",arrowButton:"Nf"};var MR=7e3,zr=e=>!!(e!=null&&e.storyId),Zc=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var z;let{accessibilityId:s}=jt({pageId:e}),{confirm:l}=bt(),c=zt(),p=useMotionValue(0),u=useRef(null),f=useRef(new EventTarget),[g,h]=useState(!1),{stories:C}=Cs({targetId:t,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),y=C.reduce((E,D)=>(E.find(ae=>zr(ae)&&zr(D)?ae.storyId===D.storyId:!1)||E.push(D),E),[]),x=useMemo(()=>t1.map(({renderer:E,tester:D})=>({renderer:ae=>E(S(d({},ae),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:D})),[t1,r,i,t]),v=useRef(null),{client:_,currentUserId:M}=Oe(),[b,I]=useState(0),{file:T,setFile:k}=Wo(),N=y[b],F=zr(N)?((z=N==null?void 0:N.creator)==null?void 0:z.userId)===M:!1,Z=zr(N)?I2(_,N==null?void 0:N.targetId):!1,$=()=>{if(b===y.length-1){r(t);return}I(b+1);},G=()=>{b!==0&&I(b-1);},O=E=>{l({pageId:e,title:"Delete this story?",content:"This story will be permanently deleted. You'll no longer to see and find this story.",okText:"Delete",onOk:()=>P(void 0,null,function*(){h(!1),yield StoryRepository.softDeleteStory(E),b===0?r(t):I(b-1),c.success({content:"Story deleted"});})});},ee=E=>{O(E);},X=useCallback((E,D,W,ae)=>P(void 0,null,function*(){var me;try{let ye=new FormData;ye.append("files",E),k(null),E!=null&&E.type.includes("image")&&M?yield StoryRepository.createImageStory("user",M,ye,W,D,ae):M&&(yield StoryRepository.createVideoStory("user",M,ye,W,ae)),c.success({content:"Successfully shared story"});}catch(ye){ye instanceof Error&&c.info({content:(me=ye.message)!=null?me:"Failed to share story"});}}),[M,c,k]),L=()=>{k(null);},H=J.createElement(FileTrigger,{ref:v,onSelect:E=>{let D=Array.from(E);k(D[0]);}},J.createElement(qn,{pageId:e})),K=()=>{if(b===y.length-1){r(t);return}I(E=>E+1);},Y=y==null?void 0:y.map(E=>{var D,W,ae;if(zr(E)){let me=(E==null?void 0:E.dataType)==="image",ye=me?(D=E==null?void 0:E.imageData)==null?void 0:D.fileUrl:(ae=(W=E==null?void 0:E.videoData)==null?void 0:W.videoUrl)==null?void 0:ae["720p"];return {story:E,url:ye,type:me?"image":"video",actions:[F||Z?{name:"Delete",action:()=>ee(E==null?void 0:E.storyId),icon:J.createElement(L0,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(qo),onCreateStory:X,discardStory:L,addStoryButton:H,fileInputRef:v,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:K,pageId:e,dragEventTarget:f.current,setIsBottomSheetOpen:h,isBottomSheetOpen:g}}else return {ad:E,actions:[],pageId:e,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:K}}),pe="asc-uikit-stories-viewer";return useEffect(()=>{let E=y[y.length-1];zr(E)&&(E==null?void 0:E.syncState)==="syncing"&&I(y.length-1),N&&zr(N)&&(N==null||N.analytics.markAsSeen());},[b,y]),useEffect(()=>{if(y.filter(zr).every(D=>D==null?void 0:D.isSeen))return;let E=y.findIndex(D=>zr(D)?!(D!=null&&D.isSeen):!1);E!==-1&&I(E);},[]),la({targetId:t,targetType:"community"}),T&&a(t,"community",T.type.includes("image")?{type:"image",url:URL.createObjectURL(T)}:{type:"video",url:URL.createObjectURL(T)},"communityFeed"),!y||y.length===0?null:J.createElement("div",{className:lo(ro.storyWrapper)},J.createElement(om,{onClick:G}),J.createElement(motion.div,{id:pe,ref:u,"data-qa-anchor":s,initial:{y:0},drag:"y",whileDrag:{scale:.95,borderRadius:"8px",cursor:"grabbing"},dragConstraints:{top:0,bottom:200},dragElastic:{top:0,bottom:.5},onDragStart:()=>{f.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,D)=>{D.point.y<D.point.y-D.offset.y&&p.set(0);},onDragEnd:(E,D)=>{f.current.dispatchEvent(new Event("dragend")),D.offset.y>100?n(t):p.set(0);},className:lo(ro.viewStoryContainer)},J.createElement("div",{className:lo(ro.viewStoryContent)},J.createElement("div",{className:lo(ro.overlayLeft),onClick:G}),J.createElement("div",{className:lo(ro.overlayRight),onClick:$}),J.createElement("div",{className:lo(ro.viewStoryOverlay)}),J.createElement(bR,{key:y==null?void 0:y.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:Y,renderers:x,defaultInterval:MR,onStoryStart:()=>zr(N)&&(N==null?void 0:N.analytics.markAsSeen()),onStoryEnd:$,onNext:$,onPrevious:G,onAllStoriesEnd:$}))),J.createElement(rm,{onClick:$}))};var AR=7e3,ii=e=>!!(e!=null&&e.storyId),J_=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var z;let{accessibilityId:c}=jt({pageId:e}),{confirm:p}=bt(),u=zt(),{client:f,currentUserId:g}=Oe(),{file:h,setFile:C}=Wo(),y=useMotionValue(0),x=useRef(null),v=useRef(new EventTarget),[_,M]=useState(0),b=useRef(null),{stories:I}=Cs({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),T=useMemo(()=>t1.map(({renderer:E,tester:D})=>({renderer:ae=>E(S(d({},ae),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:D})),[t1,a,s,l,t]),k=I[_],N=ii(k)?((z=k==null?void 0:k.creator)==null?void 0:z.userId)===g:!1,F=ii(k)?I2(f,k==null?void 0:k.targetId):!1,Z=()=>{if(_===0){let D=o.indexOf(t)-1;if(D>=0){let W=o[D];n(W);}else r==null||r();M(0);return}M(E=>E-1);},$=E=>{let D=_===I.length-1;p({pageId:e,title:"Delete this story?",content:"This story will be permanently deleted. You\u2019ll no longer to see and find this story.",okText:"Delete",onOk:()=>P(void 0,null,function*(){yield StoryRepository.softDeleteStory(E),u.success({content:"Story deleted"}),I.length===1?r==null||r():D?Z():M(W=>W);})});},G=E=>{$(E);},O=(E,D,W,ae)=>P(void 0,null,function*(){var me;try{let ye=new FormData;if(ye.append("files",E),C(null),E!=null&&E.type.includes("image")&&g){let{data:at}=yield StoryRepository.createImageStory("user",g,ye,W,D,ae);at&&u.success({content:"Successfully shared story"});}else if(g){let{data:at}=yield StoryRepository.createVideoStory("user",g,ye,W,ae);at&&u.success({content:"Successfully shared story"});}}catch(ye){ye instanceof Error&&u.info({content:(me=ye.message)!=null?me:"Failed to share story"});}}),ee=()=>{C(null);},X=J.createElement(FileTrigger,{ref:b,onSelect:E=>{let D=Array.from(E);C(D[0]);}},J.createElement(qn,{pageId:e})),L=()=>{_!==I.length-1&&M(E=>E+1);},H=I==null?void 0:I.map(E=>{var D,W,ae;if(ii(E)){let me=(E==null?void 0:E.dataType)==="image",ye=me?(D=E==null?void 0:E.imageData)==null?void 0:D.fileUrl:(ae=(W=E==null?void 0:E.videoData)==null?void 0:W.videoUrl)==null?void 0:ae["720p"];return {story:E,url:ye,type:me?"image":"video",actions:[N||F?{name:"Delete",action:()=>G(E==null?void 0:E.storyId),icon:J.createElement(aa,{className:ro.deleteIcon})}:null].filter(qo),onCreateStory:O,discardStory:ee,addStoryButton:X,fileInputRef:b,currentIndex:_,storiesCount:I==null?void 0:I.length,increaseIndex:L,pageId:e}}else return {ad:E,actions:[],pageId:e,currentIndex:_,storiesCount:I==null?void 0:I.length,increaseIndex:L}}),K=()=>{if(_===(H==null?void 0:H.length)-1){let D=o.indexOf(t)+1;if(D<o.length){let W=o[D];n(W);}else r==null||r();M(0);return}M(E=>E+1);},Y="asc-uikit-stories-viewer";if(useEffect(()=>{let E=I[I.length-1];ii(E)&&(E==null?void 0:E.syncState)==="syncing"&&M(I.length-1),k&&ii(k)&&(k==null||k.analytics.markAsSeen());},[k,I]),useEffect(()=>{if(I.filter(ii).every(D=>D==null?void 0:D.isSeen))return;let E=I.findIndex(D=>ii(D)?!(D!=null&&D.isSeen):!1);E!==-1&&M(E);},[]),useEffect(()=>{h&&i(t,"community",h.type.includes("image")?{type:"image",url:URL.createObjectURL(h)}:{type:"video",url:URL.createObjectURL(h)},"globalFeed");},[h,i,t]),la({targetId:t,targetType:"community"}),!I||I.length===0)return null;let pe=()=>{if(H[_])return _;let E=H.length-1;return M(E),E};return J.createElement("div",{className:lo(ro.storyWrapper),"data-qa-anchor":c},J.createElement(om,{onClick:Z}),J.createElement(motion.div,{id:Y,ref:x,"data-qa-anchor":c,initial:{y:0},drag:"y",whileDrag:{scale:.95,borderRadius:"8px",cursor:"grabbing"},dragConstraints:{top:0,bottom:200},dragElastic:{top:0,bottom:.5},onDragStart:()=>{v.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,D)=>{D.point.y<D.point.y-D.offset.y&&y.set(0);},onDragEnd:(E,D)=>{v.current.dispatchEvent(new Event("dragend")),D.offset.y>100?s(t):y.set(0);},className:lo(ro.viewStoryContainer)},J.createElement("div",{className:lo(ro.viewStoryContent)},J.createElement("div",{className:lo(ro.overlayLeft),onClick:Z}),J.createElement("div",{className:lo(ro.overlayRight),onClick:K}),J.createElement("div",{className:lo(ro.viewStoryOverlay)}),J.createElement(bR,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:pe(),stories:H,renderers:T,defaultInterval:AR,onStoryStart:()=>ii(k)&&(k==null?void 0:k.analytics.markAsSeen()),onStoryEnd:L,onNext:K,onPrevious:Z,onAllStoriesEnd:K}))),J.createElement(rm,{onClick:K}))};var qc=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=Td({seenState:"smart",limit:10});return J.createElement(J_,{pageId:e,targetId:t,targetIds:l.map(c=>c.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var LR=({type:e,targetId:t})=>{let o="view_story_page",{onBack:r,goToDraftStoryPage:n,onClickCommunity:i,onChangePage:a,onClickStory:s}=Q(),l=()=>{a("newsfeed");},c=p=>{i(p);};return e==="communityFeed"?J.createElement(Zc,{pageId:o,communityId:t,onBack:r,onClose:c,onSwipeDown:c,onClickCommunity:c,goToDraftStoryPage:({targetId:p,targetType:u,mediaType:f,storyType:g})=>n(p,u,f,g)}):e==="globalFeed"?J.createElement(qc,{pageId:o,targetId:t,onChangePage:l,onClose:l,onSwipeDown:l,onClickStory:p=>s(p,"globalFeed"),goToDraftStoryPage:({targetId:p,targetType:u,mediaType:f,storyType:g})=>n(p,u,f,g),onClickCommunity:p=>i(p)}):null},R_=LR;var eM={roundedBackButton:"Of"};var DR=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),J.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),J.createElement("path",{fill:"currentColor",d:"M16.176 23.914c-.14.176-.422.176-.598 0L8.23 16.566a.405.405 0 010-.597l7.348-7.348c.176-.176.457-.176.598 0l.703.668c.176.176.176.457 0 .598l-5.45 5.449h12.024c.211 0 .422.21.422.422v.984c0 .246-.21.422-.422.422H11.43l5.449 5.484c.176.141.176.422 0 .598l-.703.668z"})),r4=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="back_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:c,uiReference:p,themeStyles:u}=B({pageId:e,componentId:t,elementId:i});return c?null:J.createElement(U,{style:u,className:eM.roundedBackButton,onPress:n},J.createElement(le,{"data-qa-anchor":a,defaultIcon:()=>J.createElement(DR,{className:o}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var br={draftPageContainer:"Mr",headerContainer:"Pf",storyWrapper:"Qf",header:"Vf",topRightButtons:"Wf",mainContainer:"Zf",previewImage:"_f",footer:"eu",videoPreview:"ru",hyperLinkContainer:"au",playPauseButton:"ou",progressBar:"tu",progressFill:"iu",userInfo:"su",name:"cu",description:"nu",storyPreview:"lu"};var n4=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var X,L,H,K,Y,pe;let{page:a,onBack:s}=Be(),l="create_story_page",{accessibilityId:c,themeStyles:p}=jt({pageId:l}),{file:u,setFile:f}=Wo(),{community:g}=Zd(e),[h,C]=useState(!1),{confirm:y}=bt(),x=zt(),[v,_]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),M=()=>{C(!1);},[b,I]=useState("fit"),[T,k]=useState([]),N=()=>{I(b==="fit"?"fill":"fit"),b==="fill"&&k([]);},F=(z,E,D,W)=>P(void 0,null,function*(){var ae;if(z)try{let me=new FormData;me.append("files",z),f(null),a.type==="DraftPage"&&a.context.storyType==="globalFeed"?n():s(),(o==null?void 0:o.type)==="image"&&e?yield StoryRepository.createImageStory(t,e,me,D,E,W):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,me,D,W)),x.success({content:"Successfully shared story"});}catch(me){me instanceof Error&&x.info({content:(ae=me.message)!=null?ae:"Failed to share story"});}}),Z=()=>{y({pageId:l,title:"Delete this story?",content:"This story will be permanently deleted. You\u2019ll no longer to see and find this story.",cancelText:"Cancel",okText:"Delete",onOk:()=>{f(null),i();}});},$=({url:z,customText:E})=>{_([{data:{url:z,customText:E||""},type:"hyperlink"}]),C(!1);},G=()=>{_([{data:{url:"",customText:""},type:"hyperlink"}]);},O=()=>{var z,E;if((E=(z=v[0])==null?void 0:z.data)!=null&&E.url){x.info({content:"Can\u2019t add more than one link to your story."});return}C(!0);},ee=useCallback(z=>P(void 0,null,function*(){let E=new Image;E.crossOrigin="Anonymous",E.src=z,E.onload=()=>{let W=new zX().getPalette(E,2);W&&k(W.map(ae=>`rgb(${ae.join(",")})`));};}),[]);return useEffect(()=>{P(void 0,null,function*(){if((o==null?void 0:o.type)==="image")if(u){let E=URL.createObjectURL(u);yield ee(E);}else o.url&&(yield ee(o.url));});},[u,o,ee]),J.createElement("div",{"data-qa-anchor":c,style:p,className:br.storyWrapper},J.createElement("div",{id:"asc-uikit-create-story",className:br.draftPageContainer},J.createElement("div",{className:br.headerContainer},J.createElement("div",{className:br.header},J.createElement(r4,{pageId:l,onPress:Z}),J.createElement("div",{className:br.topRightButtons},(o==null?void 0:o.type)==="image"&&J.createElement(Kd,{pageId:l,onPress:N}),J.createElement(Jd,{pageId:l,onPress:O})))),(o==null?void 0:o.type)==="image"?J.createElement("div",{className:br.mainContainer,style:{background:`linear-gradient(
3916
3916
  180deg,
3917
3917
  ${T[0]||"var(--asc-color-black)"} 0%,
3918
3918
  ${T[1]||"var(--asc-color-black)"} 100%
3919
- )`}},J.createElement("img",{className:br.previewImage,src:u?URL.createObjectURL(u):o.url,style:{width:"100%",height:"100%",objectFit:b==="fit"?"contain":"cover"},alt:"Draft",onLoad:z=>{b==="fill"&&ee(z.target.src);}})):(o==null?void 0:o.type)==="video"?J.createElement("video",{className:br.videoPreview,src:u?URL.createObjectURL(u):o.url,autoPlay:!0,loop:!0,muted:!0,controls:!1,playsInline:!0}):null,((L=(X=v[0])==null?void 0:X.data)==null?void 0:L.url)&&J.createElement("div",{className:br.hyperLinkContainer},J.createElement(Jn,{onClick:()=>C(!0)},((K=(H=v[0])==null?void 0:H.data)==null?void 0:K.customText)||v[0].data.url.replace(/^https?:\/\//,""))),J.createElement(Mu,{pageId:l,isOpen:h,onClose:M,onSubmit:$,onRemove:G,isHaveHyperLink:((pe=(Y=v==null?void 0:v[0])==null?void 0:Y.data)==null?void 0:pe.url)!==""}),J.createElement("div",{className:br.footer},J.createElement(ec,{community:g,pageId:l,onClick:()=>{var z,E;return F(u,b,{},(E=(z=v[0])==null?void 0:z.data)!=null&&E.url?v:[])}}))))},UR=e=>{let{AmityDraftStoryPageBehavior:t}=eo();return J.createElement(n4,S(d({},e),{onDiscardCreateStory:()=>{var o;return (o=t==null?void 0:t.onCloseAction)==null?void 0:o.call(t)},goToCommunityPage:o=>{var r;return (r=t==null?void 0:t.onCloseAction)==null?void 0:r.call(t)},goToGlobalFeedPage:()=>{var o;return (o=t==null?void 0:t.onCloseAction)==null?void 0:o.call(t)}}))},i4=UR;var jR=e=>{let{page:t,onChangePage:o,onClickCommunity:r}=Q();return J.createElement(n4,S(d({},e),{onDiscardCreateStory:()=>{t.type==="draftpage"&&t.storyType==="communityFeed"?r(e.targetId):o("newsfeed");},goToCommunityPage:n=>r(n),goToGlobalFeedPage:()=>o("newsfeed")}))},oM=jR;var GR=m.div`
3919
+ )`}},J.createElement("img",{className:br.previewImage,src:u?URL.createObjectURL(u):o.url,style:{width:"100%",height:"100%",objectFit:b==="fit"?"contain":"cover"},alt:"Draft",onLoad:z=>{b==="fill"&&ee(z.target.src);}})):(o==null?void 0:o.type)==="video"?J.createElement("video",{className:br.videoPreview,src:u?URL.createObjectURL(u):o.url,autoPlay:!0,loop:!0,muted:!0,controls:!1,playsInline:!0}):null,((L=(X=v[0])==null?void 0:X.data)==null?void 0:L.url)&&J.createElement("div",{className:br.hyperLinkContainer},J.createElement(Jn,{onClick:()=>C(!0)},((K=(H=v[0])==null?void 0:H.data)==null?void 0:K.customText)||v[0].data.url.replace(/^https?:\/\//,""))),J.createElement(Mu,{pageId:l,isOpen:h,onClose:M,onSubmit:$,onRemove:G,isHaveHyperLink:((pe=(Y=v==null?void 0:v[0])==null?void 0:Y.data)==null?void 0:pe.url)!==""}),J.createElement("div",{className:br.footer},J.createElement(ec,{community:g,pageId:l,onClick:()=>{var z,E;return F(u,b,{},(E=(z=v[0])==null?void 0:z.data)!=null&&E.url?v:[])}}))))},zR=e=>{let{AmityDraftStoryPageBehavior:t}=eo();return J.createElement(n4,S(d({},e),{onDiscardCreateStory:()=>{var o;return (o=t==null?void 0:t.onCloseAction)==null?void 0:o.call(t)},goToCommunityPage:o=>{var r;return (r=t==null?void 0:t.onCloseAction)==null?void 0:r.call(t)},goToGlobalFeedPage:()=>{var o;return (o=t==null?void 0:t.onCloseAction)==null?void 0:o.call(t)}}))},i4=zR;var GR=e=>{let{page:t,onChangePage:o,onClickCommunity:r}=Q();return J.createElement(n4,S(d({},e),{onDiscardCreateStory:()=>{t.type==="draftpage"&&t.storyType==="communityFeed"?r(e.targetId):o("newsfeed");},goToCommunityPage:n=>r(n),goToGlobalFeedPage:()=>o("newsfeed")}))},oM=GR;var $R=m.div`
3920
3920
  height: 100%;
3921
3921
  width: 100%;
3922
- `,$R=m(ld)`
3922
+ `,ZR=m(ld)`
3923
3923
  display: none;
3924
3924
 
3925
3925
  @media (min-width: 768px) {
3926
3926
  min-height: 100%;
3927
3927
  display: block;
3928
3928
  }
3929
- `,ZR=m.div`
3929
+ `,qR=m.div`
3930
3930
  display: flex;
3931
3931
  flex-direction: column;
3932
3932
  align-items: center;
3933
3933
  justify-content: center;
3934
3934
  width: 100%;
3935
3935
  height: 100%;
3936
- `,qR=()=>{let{page:e}=Q(),{client:t}=ne(),[o,r]=useState(null),[n,i]=useState(!1),a=()=>{i(!n);};return useEffect(()=>{if(t===null)return;function s(){return P(this,null,function*(){let l=yield t==null?void 0:t.getSocialSettings();l&&r(l);})}s();},[t]),useEffect(()=>{n&&i(!1);},[e.type,e.communityId]),J.createElement(Sx,null,J.createElement(GR,null,J.createElement(yC,{aside:J.createElement($R,{activeCommunity:e.communityId})},e.type==="explore"&&J.createElement(ex,{isOpen:n,toggleOpen:a}),e.type==="newsfeed"&&J.createElement(Nx,{toggleOpen:a,isOpen:n}),e.type==="communityfeed"&&J.createElement(QI,{communityId:e.communityId,isNewCommunity:e.isNewCommunity,isOpen:n,toggleOpen:a}),e.type==="viewstory"&&J.createElement(ZR,null,J.createElement(R_,{targetId:e.targetId,type:e.storyType})),e.type==="draftpage"&&J.createElement(oM,{mediaType:e.mediaType,targetId:e.targetId,targetType:e.targetType}),e.type==="communityedit"&&J.createElement(Rb,{communityId:e.communityId,tab:e.tab}),e.type==="category"&&J.createElement(db,{categoryId:e.categoryId}),e.type==="userfeed"&&J.createElement(ob,{userId:e.userId,socialSettings:o}),e.type==="useredit"&&J.createElement(fI,{userId:e.userId}))))},YR=qR;var aM={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function XR(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===aM.ONLY_ME_CHAT)return "Me";if(!((a=e==null?void 0:e.metadata)!=null&&a.isDirectChat)&&(e!=null&&e.displayName))return e==null?void 0:e.displayName;let{firstname:o="",lastname:r=""}=(s=t==null?void 0:t.metadata)!=null?s:{},n=trim(`${o}${r}`);return (t==null?void 0:t.displayName)||n||(t==null?void 0:t.userId)||e.channelId}function a4(o){return P(this,arguments,function*({avatarFileId:e,avatarCustomUrl:t}){if(t)return t;if(e){let r=yield FileRepository.getFile(e);return FileRepository.fileUrlWithSize(r.data.fileUrl,"small")}return null})}function RR(a){return P(this,arguments,function*({channelAvatarFileId:e,channelAvatarCustomUrl:t,otherUserAvatarUrl:o,currentUserAvatarUrl:r,isDirectChat:n,memberCount:i=0}){return i===aM.ONLY_ME_CHAT?a4({avatarCustomUrl:r}):a4(n&&o?{avatarCustomUrl:o}:{avatarFileId:e,avatarCustomUrl:t})})}function eee({channel:e}){var p,u,f,g,h;let{currentUserId:t}=Xm(),[o,r]=useState(null),n=(p=e==null?void 0:e.metadata)!=null&&p.isDirectChat?((f=(u=e==null?void 0:e.metadata)==null?void 0:u.userIds)!=null?f:[]).find(C=>C!==t):null,i=Me(t),a=Me(n),s=te({fileId:i==null?void 0:i.avatarFileId}),l=te({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function C(){return P(this,null,function*(){var x,v;let y=yield RR({channelAvatarFileId:e==null?void 0:e.avatarFileId,channelAvatarCustomUrl:(x=e==null?void 0:e.metadata)==null?void 0:x.avatarCustomUrl,otherUserAvatarUrl:(a==null?void 0:a.avatarCustomUrl)||l,currentUserAvatarUrl:(i==null?void 0:i.avatarCustomUrl)||s,isDirectChat:(v=e==null?void 0:e.metadata)==null?void 0:v.isDirectChat,memberCount:e==null?void 0:e.memberCount});r(y);})}C();},[a==null?void 0:a.avatarCustomUrl,(g=e==null?void 0:e.metadata)==null?void 0:g.isDirectChat,e==null?void 0:e.memberCount,e==null?void 0:e.avatarFileId,(h=e==null?void 0:e.metadata)==null?void 0:h.avatarCustomUrl,s,i==null?void 0:i.avatarCustomUrl]),{chatName:useMemo(()=>e==null?void 0:XR(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var r1=eee;var sM=m(Se)`
3936
+ `,YR=()=>{let{page:e}=Q(),{client:t}=ne(),[o,r]=useState(null),[n,i]=useState(!1),a=()=>{i(!n);};return useEffect(()=>{if(t===null)return;function s(){return P(this,null,function*(){let l=yield t==null?void 0:t.getSocialSettings();l&&r(l);})}s();},[t]),useEffect(()=>{n&&i(!1);},[e.type,e.communityId]),J.createElement(Sx,null,J.createElement($R,null,J.createElement(yC,{aside:J.createElement(ZR,{activeCommunity:e.communityId})},e.type==="explore"&&J.createElement(ex,{isOpen:n,toggleOpen:a}),e.type==="newsfeed"&&J.createElement(Nx,{toggleOpen:a,isOpen:n}),e.type==="communityfeed"&&J.createElement(QI,{communityId:e.communityId,isNewCommunity:e.isNewCommunity,isOpen:n,toggleOpen:a}),e.type==="viewstory"&&J.createElement(qR,null,J.createElement(R_,{targetId:e.targetId,type:e.storyType})),e.type==="draftpage"&&J.createElement(oM,{mediaType:e.mediaType,targetId:e.targetId,targetType:e.targetType}),e.type==="communityedit"&&J.createElement(Rb,{communityId:e.communityId,tab:e.tab}),e.type==="category"&&J.createElement(db,{categoryId:e.categoryId}),e.type==="userfeed"&&J.createElement(ob,{userId:e.userId,socialSettings:o}),e.type==="useredit"&&J.createElement(fI,{userId:e.userId}))))},WR=YR;var aM={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function RR(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===aM.ONLY_ME_CHAT)return "Me";if(!((a=e==null?void 0:e.metadata)!=null&&a.isDirectChat)&&(e!=null&&e.displayName))return e==null?void 0:e.displayName;let{firstname:o="",lastname:r=""}=(s=t==null?void 0:t.metadata)!=null?s:{},n=trim(`${o}${r}`);return (t==null?void 0:t.displayName)||n||(t==null?void 0:t.userId)||e.channelId}function a4(o){return P(this,arguments,function*({avatarFileId:e,avatarCustomUrl:t}){if(t)return t;if(e){let r=yield FileRepository.getFile(e);return FileRepository.fileUrlWithSize(r.data.fileUrl,"small")}return null})}function eee(a){return P(this,arguments,function*({channelAvatarFileId:e,channelAvatarCustomUrl:t,otherUserAvatarUrl:o,currentUserAvatarUrl:r,isDirectChat:n,memberCount:i=0}){return i===aM.ONLY_ME_CHAT?a4({avatarCustomUrl:r}):a4(n&&o?{avatarCustomUrl:o}:{avatarFileId:e,avatarCustomUrl:t})})}function tee({channel:e}){var p,u,f,g,h;let{currentUserId:t}=Xm(),[o,r]=useState(null),n=(p=e==null?void 0:e.metadata)!=null&&p.isDirectChat?((f=(u=e==null?void 0:e.metadata)==null?void 0:u.userIds)!=null?f:[]).find(C=>C!==t):null,i=Me(t),a=Me(n),s=te({fileId:i==null?void 0:i.avatarFileId}),l=te({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function C(){return P(this,null,function*(){var x,v;let y=yield eee({channelAvatarFileId:e==null?void 0:e.avatarFileId,channelAvatarCustomUrl:(x=e==null?void 0:e.metadata)==null?void 0:x.avatarCustomUrl,otherUserAvatarUrl:(a==null?void 0:a.avatarCustomUrl)||l,currentUserAvatarUrl:(i==null?void 0:i.avatarCustomUrl)||s,isDirectChat:(v=e==null?void 0:e.metadata)==null?void 0:v.isDirectChat,memberCount:e==null?void 0:e.memberCount});r(y);})}C();},[a==null?void 0:a.avatarCustomUrl,(g=e==null?void 0:e.metadata)==null?void 0:g.isDirectChat,e==null?void 0:e.memberCount,e==null?void 0:e.avatarFileId,(h=e==null?void 0:e.metadata)==null?void 0:h.avatarCustomUrl,s,i==null?void 0:i.avatarCustomUrl]),{chatName:useMemo(()=>e==null?void 0:RR(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var n1=tee;var sM=m(Se)`
3937
3937
  display: flex;
3938
3938
  align-items: center;
3939
3939
  width: 100%;
@@ -3973,7 +3973,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
3973
3973
  background: ${t.palette.base.shade4};
3974
3974
  color: ${t.palette.base.main};
3975
3975
  `}
3976
- `;var tee=a=>{var s=a,{icon:e,children:t,active:o,className:r,onClick:n}=s,i=I(s,["icon","children","active","className","onClick"]);return J.createElement(sM,d({className:r,active:o,onClick:n},i),e&&J.createElement(lM,{active:o},e),t)},dM=tee;var n1={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"};var iee=({size:e=n1.REGULAR,avatarUrl:t,avatarFileId:o,avatarFile:r,defaultImage:n,avatarCustomUrl:i})=>{let[a,s]=useState(null),[l,c]=useState(null);return useEffect(()=>{s(null),c(null),P(void 0,null,function*(){if(t){s(t);return}if(i){s(i);return}if(r){let f=yield (g=>new Promise((h,C)=>{let y=new FileReader;y.readAsDataURL(g),y.onload=()=>h(y.result),y.onerror=C;}))(r);s(f);return}if(o){let u=yield FileRepository.fileUrlWithSize(o,"small");s(u);return}if(n){c(n);return}});},[t,o,r,i]),J.createElement(ve,{size:e,avatar:a,backgroundImage:l})},ai=iee;var pM=m(dM)`
3976
+ `;var oee=a=>{var s=a,{icon:e,children:t,active:o,className:r,onClick:n}=s,i=w(s,["icon","children","active","className","onClick"]);return J.createElement(sM,d({className:r,active:o,onClick:n},i),e&&J.createElement(lM,{active:o},e),t)},dM=oee;var i1={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"};var aee=({size:e=i1.REGULAR,avatarUrl:t,avatarFileId:o,avatarFile:r,defaultImage:n,avatarCustomUrl:i})=>{let[a,s]=useState(null),[l,c]=useState(null);return useEffect(()=>{s(null),c(null),P(void 0,null,function*(){if(t){s(t);return}if(i){s(i);return}if(r){let f=yield (g=>new Promise((h,C)=>{let y=new FileReader;y.readAsDataURL(g),y.onload=()=>h(y.result),y.onerror=C;}))(r);s(f);return}if(o){let u=yield FileRepository.fileUrlWithSize(o,"small");s(u);return}if(n){c(n);return}});},[t,o,r,i]),J.createElement(ve,{size:e,avatar:a,backgroundImage:l})},ai=aee;var pM=m(dM)`
3977
3977
  display: flex;
3978
3978
  align-items: center;
3979
3979
  justify-content: space-between;
@@ -4005,7 +4005,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4005
4005
  color: #fff;
4006
4006
  background: #f9563a;
4007
4007
  border-radius: 20px;
4008
- `;function aee(e){let t={BOTTOM:1,TOP:99};return !e||e<t.BOTTOM?"":e<=t.TOP?e:`${t.TOP}+`}var see=({channel:e,isSelected:t,onSelect:o})=>{let{chatName:r,chatAvatar:n}=r1({channel:e}),i=aee((e==null?void 0:e.unreadCount)||0);return J.createElement(pM,{"data-qa-anchor":"chat-item",active:t,onClick:a=>{a.stopPropagation(),e&&o({channelId:e.channelId,type:e.type});}},J.createElement(uM,null,J.createElement(fM,{avatarUrl:n,defaultImage:((e==null?void 0:e.memberCount)||0)>2?so:Ve}),J.createElement(gM,null,r)),i&&J.createElement(yM,{"data-qa-anchor":"chat-item-unread-count"},i))},hM=e=>{let t=V("ChatItem");return t?t(e):J.createElement(see,d({},e))};var CM=m(ep).attrs({width:24,height:18})`
4008
+ `;function see(e){let t={BOTTOM:1,TOP:99};return !e||e<t.BOTTOM?"":e<=t.TOP?e:`${t.TOP}+`}var lee=({channel:e,isSelected:t,onSelect:o})=>{let{chatName:r,chatAvatar:n}=n1({channel:e}),i=see((e==null?void 0:e.unreadCount)||0);return J.createElement(pM,{"data-qa-anchor":"chat-item",active:t,onClick:a=>{a.stopPropagation(),e&&o({channelId:e.channelId,type:e.type});}},J.createElement(uM,null,J.createElement(fM,{avatarUrl:n,defaultImage:((e==null?void 0:e.memberCount)||0)>2?so:Ve}),J.createElement(gM,null,r)),i&&J.createElement(yM,{"data-qa-anchor":"chat-item-unread-count"},i))},hM=e=>{let t=V("ChatItem");return t?t(e):J.createElement(lee,d({},e))};var CM=m(ep).attrs({width:24,height:18})`
4009
4009
  width: 24px !important;
4010
4010
  cursor: pointer;
4011
4011
  `,vM=m.div`
@@ -4035,7 +4035,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4035
4035
  flex-grow: 1;
4036
4036
  overflow-y: auto;
4037
4037
  overflow-x: hidden;
4038
- `;function s4(e){let r=Pe({fetcher:ChannelRepository.getChannels,params:e}),{items:t}=r,o=I(r,["items"]);return d({channels:t},o)}var fee=({onChannelSelect:e,onAddNewChannelClick:t,selectedChannelId:o,membershipFilter:r})=>{let{channels:n,hasMore:i,loadMore:a}=s4({membership:r,sortBy:"lastActivity",limit:20}),s=useRef(null),l=u=>P(void 0,[u],function*({channelId:c,type:p}){["community","conversation"].includes(p)||(yield ChannelRepository.joinChannel(c)),yield SubChannelRepository.startMessageReceiptSync(c);});return J.createElement(vM,null,J.createElement(xM,null,J.createElement(bM,null,J.createElement(FormattedMessage,{id:"chat.chats"})),J.createElement(CM,{"data-qa-anchor":"chat-create-chat-button",onClick:t})),J.createElement(IM,{ref:s,"data-qa-anchor":"chat-list"},s.current?J.createElement(dH,{scrollableTarget:s.current,scrollThreshold:.7,hasMore:i,next:a,loader:i&&J.createElement("span",{key:0},"Loading..."),dataLength:(n==null?void 0:n.length)||0,height:s.current.clientHeight},Array.isArray(n)&&n.map(c=>J.createElement(hM,{key:c.channelId,channel:c,isSelected:o===c.channelId,onSelect:p=>{l(p),e==null||e(p);}}))):null))},wM=e=>{let t=V("RecentChat");return t?t(e):J.createElement(fee,d({},e))};var _M=m.div`
4038
+ `;function s4(e){let r=Pe({fetcher:ChannelRepository.getChannels,params:e}),{items:t}=r,o=w(r,["items"]);return d({channels:t},o)}var gee=({onChannelSelect:e,onAddNewChannelClick:t,selectedChannelId:o,membershipFilter:r})=>{let{channels:n,hasMore:i,loadMore:a}=s4({membership:r,sortBy:"lastActivity",limit:20}),s=useRef(null),l=u=>P(void 0,[u],function*({channelId:c,type:p}){["community","conversation"].includes(p)||(yield ChannelRepository.joinChannel(c)),yield SubChannelRepository.startMessageReceiptSync(c);});return J.createElement(vM,null,J.createElement(xM,null,J.createElement(bM,null,J.createElement(FormattedMessage,{id:"chat.chats"})),J.createElement(CM,{"data-qa-anchor":"chat-create-chat-button",onClick:t})),J.createElement(IM,{ref:s,"data-qa-anchor":"chat-list"},s.current?J.createElement(dH,{scrollableTarget:s.current,scrollThreshold:.7,hasMore:i,next:a,loader:i&&J.createElement("span",{key:0},"Loading..."),dataLength:(n==null?void 0:n.length)||0,height:s.current.clientHeight},Array.isArray(n)&&n.map(c=>J.createElement(hM,{key:c.channelId,channel:c,isSelected:o===c.channelId,onSelect:p=>{l(p),e==null||e(p);}}))):null))},wM=e=>{let t=V("RecentChat");return t?t(e):J.createElement(gee,d({},e))};var _M=m.div`
4039
4039
  display: flex;
4040
4040
  align-items: center;
4041
4041
  gap: 10px;
@@ -4109,9 +4109,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4109
4109
  margin-top: 3px;
4110
4110
  display: flex;
4111
4111
  align-items: center;
4112
- `;var Cee=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","MessageRepository","isMessageFlaggedByMe",e],queryFn:()=>MessageRepository.isMessageFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{o(!0),yield MessageRepository.flagMessage(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{o(!1),yield MessageRepository.unflagMessage(e);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagMessage:a,unflagMessage:s,toggleFlagMessage:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},HM=Cee;function c4({messageId:e,shouldSubscribe:t=()=>!0,callback:o}){return I1({fetcher:MessageRepository.getMessage,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getMessageTopic(r)})}var Iee=m(B2)`
4112
+ `;var vee=e=>{let[t,o]=useState(!1),{data:r,isLoading:n,refetch:i}=useQuery({queryKey:["asc-uikit","MessageRepository","isMessageFlaggedByMe",e],queryFn:()=>MessageRepository.isMessageFlaggedByMe(e),enabled:e!=null});useEffect(()=>{r!=null&&o(r);},[r]);let a=()=>P(void 0,null,function*(){if(e!=null)try{o(!0),yield MessageRepository.flagMessage(e);}catch(c){o(!1);}finally{i();}}),s=()=>P(void 0,null,function*(){if(e!=null)try{o(!1),yield MessageRepository.unflagMessage(e);}catch(c){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagMessage:a,unflagMessage:s,toggleFlagMessage:()=>P(void 0,null,function*(){e!=null&&(t?s():a());})}},HM=vee;function c4({messageId:e,shouldSubscribe:t=()=>!0,callback:o}){return w1({fetcher:MessageRepository.getMessage,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getMessageTopic(r)})}var wee=m(B2)`
4113
4113
  ${({align:e,theme:t})=>e==="end"&&`color: ${t.palette.neutral.main};`}
4114
- `,wee=({messageId:e})=>{let{isFlaggedByMe:t,flagMessage:o,unflagMessage:r}=HM(e);return c4({messageId:e}),t?J.createElement(Xt,{onClick:r},J.createElement(FormattedMessage,{id:"message.unflag"})):J.createElement(Xt,{onClick:o},J.createElement(FormattedMessage,{id:"message.flag"}))},_ee=({isIncoming:e,messageId:t,data:o,isSupportedMessageType:r,popupContainerRef:n})=>{let[i,a]=useState(""),[s,l]=useState(!1),c=Ce(),p=M=>{M.stopPropagation(),l(!0);},[u,f]=useState(!1),{formatMessage:g}=useIntl(),h=()=>{a(typeof o=="object"?o.text:o),f(!0),l(!1);},C=()=>{f(!1);},y=()=>{MessageRepository.updateMessage(t,{data:{text:i}}).then(C).catch(()=>{c.error({content:g({id:"message.saveOptionsError"})});});};return J.createElement(Iee,{isOpen:u,positions:["bottom","top"],align:e?"start":"end",content:s?J.createElement(_M,null,J.createElement(MM,{"data-qa-anchor":"message-edit-input",autoFocus:!0,value:i,onChange:M=>a(M.target.value),onKeyDown:M=>{M.key==="Enter"&&y(),M.key==="Escape"&&C();}}),J.createElement(PM,{"data-qa-anchor":"message-save-button",onClick:y}),J.createElement(SM,{onClick:C})):J.createElement(Er,null,!e&&r&&J.createElement(Xt,{"data-qa-anchor":"message-menu-item-edit",onClick:p},J.createElement(FormattedMessage,{id:"message.edit"})),e&&J.createElement(wee,{messageId:t}),!e&&J.createElement(Xt,{"data-qa-anchor":"message-menu-item-delete",onClick:()=>{MessageRepository.deleteMessage(t).then(C);}},J.createElement(FormattedMessage,{id:"message.delete"}))),parentElement:(n==null?void 0:n.current)||void 0,onClickOutside:C},J.createElement("div",{"data-qa-anchor":"message-options-button",role:"button",tabIndex:0,onClick:h,onKeyDown:h},J.createElement(TM,null)))},zM=_ee;var See=()=>J.createElement(FormattedMessage,{id:"chat.message.deleted"}),jM=See;var Nee=({data:e})=>J.createElement(Pa,null,e.text),GM=Nee;var Eee=({data:e})=>J.createElement("pre",null,JSON.stringify(e)),$M=Eee;var Lee=()=>J.createElement(FormattedMessage,{id:"chat.message.unsupported"}),ZM=Lee;function Fee(e){return e.type==="text"}function Dee(e){return e.type==="custom"}var Vee=e=>{let{isDeleted:t}=e;return t?J.createElement(jM,null):Fee(e)?J.createElement(GM,{data:e.data}):Dee(e)?J.createElement($M,{data:e.data}):J.createElement(ZM,null)},qM=Vee;var Hee=n=>{var i=n,{isDeleted:e,type:t,isSupportedMessageType:o}=i,r=I(i,["isDeleted","type","isSupportedMessageType"]);return e?J.createElement(FM,S(d({},r),{"data-qa-anchor":"message-body-deleted"})):o?J.createElement(LM,S(d({},r),{"data-qa-anchor":"message-body-general"})):J.createElement(DM,S(d({},r),{"data-qa-anchor":"message-body-unsupported"}))},Uee=({messageId:e,avatar:t,type:o,data:r,createdAt:n,isDeleted:i,isIncoming:a,isConsequent:s,userDisplayName:l,containerRef:c})=>{let p=a&&!s&&l,u=["text","custom"].includes(o);return J.createElement(NM,{isIncoming:a},J.createElement(kM,null,a&&J.createElement(AM,null,!s&&(t?J.createElement(l4,{avatar:t}):J.createElement(l4,{backgroundImage:Ve}))),J.createElement(EM,{"data-qa-anchor":"message"},p&&J.createElement(BM,null,l),J.createElement(Hee,{type:o,isIncoming:a,isDeleted:i||!1,isSupportedMessageType:u},J.createElement(qM,{data:r,type:o,isDeleted:i}),!i&&J.createElement(OM,null,J.createElement(VM,null,J.createElement(FormattedTime,{value:n})),J.createElement(zM,{messageId:e,data:r,isIncoming:a,isSupportedMessageType:u,popupContainerRef:c}))))))},YM=e=>{let t=V("Message");return t?t(e):J.createElement(Uee,d({},e))};var WM=m.div`
4114
+ `,_ee=({messageId:e})=>{let{isFlaggedByMe:t,flagMessage:o,unflagMessage:r}=HM(e);return c4({messageId:e}),t?J.createElement(Xt,{onClick:r},J.createElement(FormattedMessage,{id:"message.unflag"})):J.createElement(Xt,{onClick:o},J.createElement(FormattedMessage,{id:"message.flag"}))},Mee=({isIncoming:e,messageId:t,data:o,isSupportedMessageType:r,popupContainerRef:n})=>{let[i,a]=useState(""),[s,l]=useState(!1),c=Ce(),p=M=>{M.stopPropagation(),l(!0);},[u,f]=useState(!1),{formatMessage:g}=useIntl(),h=()=>{a(typeof o=="object"?o.text:o),f(!0),l(!1);},C=()=>{f(!1);},y=()=>{MessageRepository.updateMessage(t,{data:{text:i}}).then(C).catch(()=>{c.error({content:g({id:"message.saveOptionsError"})});});};return J.createElement(wee,{isOpen:u,positions:["bottom","top"],align:e?"start":"end",content:s?J.createElement(_M,null,J.createElement(MM,{"data-qa-anchor":"message-edit-input",autoFocus:!0,value:i,onChange:M=>a(M.target.value),onKeyDown:M=>{M.key==="Enter"&&y(),M.key==="Escape"&&C();}}),J.createElement(PM,{"data-qa-anchor":"message-save-button",onClick:y}),J.createElement(SM,{onClick:C})):J.createElement(Er,null,!e&&r&&J.createElement(Xt,{"data-qa-anchor":"message-menu-item-edit",onClick:p},J.createElement(FormattedMessage,{id:"message.edit"})),e&&J.createElement(_ee,{messageId:t}),!e&&J.createElement(Xt,{"data-qa-anchor":"message-menu-item-delete",onClick:()=>{MessageRepository.deleteMessage(t).then(C);}},J.createElement(FormattedMessage,{id:"message.delete"}))),parentElement:(n==null?void 0:n.current)||void 0,onClickOutside:C},J.createElement("div",{"data-qa-anchor":"message-options-button",role:"button",tabIndex:0,onClick:h,onKeyDown:h},J.createElement(TM,null)))},zM=Mee;var Tee=()=>J.createElement(FormattedMessage,{id:"chat.message.deleted"}),jM=Tee;var kee=({data:e})=>J.createElement(Pa,null,e.text),GM=kee;var Aee=({data:e})=>J.createElement("pre",null,JSON.stringify(e)),$M=Aee;var Fee=()=>J.createElement(FormattedMessage,{id:"chat.message.unsupported"}),ZM=Fee;function Dee(e){return e.type==="text"}function Vee(e){return e.type==="custom"}var Oee=e=>{let{isDeleted:t}=e;return t?J.createElement(jM,null):Dee(e)?J.createElement(GM,{data:e.data}):Vee(e)?J.createElement($M,{data:e.data}):J.createElement(ZM,null)},qM=Oee;var Uee=n=>{var i=n,{isDeleted:e,type:t,isSupportedMessageType:o}=i,r=w(i,["isDeleted","type","isSupportedMessageType"]);return e?J.createElement(FM,S(d({},r),{"data-qa-anchor":"message-body-deleted"})):o?J.createElement(LM,S(d({},r),{"data-qa-anchor":"message-body-general"})):J.createElement(DM,S(d({},r),{"data-qa-anchor":"message-body-unsupported"}))},zee=({messageId:e,avatar:t,type:o,data:r,createdAt:n,isDeleted:i,isIncoming:a,isConsequent:s,userDisplayName:l,containerRef:c})=>{let p=a&&!s&&l,u=["text","custom"].includes(o);return J.createElement(NM,{isIncoming:a},J.createElement(kM,null,a&&J.createElement(AM,null,!s&&(t?J.createElement(l4,{avatar:t}):J.createElement(l4,{backgroundImage:Ve}))),J.createElement(EM,{"data-qa-anchor":"message"},p&&J.createElement(BM,null,l),J.createElement(Uee,{type:o,isIncoming:a,isDeleted:i||!1,isSupportedMessageType:u},J.createElement(qM,{data:r,type:o,isDeleted:i}),!i&&J.createElement(OM,null,J.createElement(VM,null,J.createElement(FormattedTime,{value:n})),J.createElement(zM,{messageId:e,data:r,isIncoming:a,isSupportedMessageType:u,popupContainerRef:c}))))))},YM=e=>{let t=V("Message");return t?t(e):J.createElement(zee,d({},e))};var WM=m.div`
4115
4115
  display: flex;
4116
4116
  flex-direction: column-reverse;
4117
4117
  flex-grow: 1;
@@ -4121,16 +4121,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4121
4121
  display: flex;
4122
4122
  flex-direction: column-reverse;
4123
4123
  padding: 0 20px;
4124
- `;function u4(e){let r=Pe({fetcher:MessageRepository.getMessages,params:e,shouldCall:()=>!!e.subChannelId}),{items:t}=r,o=I(r,["items"]);return d({messages:t},o)}var Zee=({message:e,isConsequent:t,isIncoming:o,containerRef:r})=>{let n=Me(e.creatorId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return J.createElement(YM,{key:e.messageId,avatar:i||"",messageId:e.messageId,data:(e==null?void 0:e.data)||"",type:e.dataType,createdAt:new Date(e.createdAt),isDeleted:e.isDeleted,userDisplayName:(n==null?void 0:n.displayName)||"",isConsequent:t,isIncoming:o,containerRef:r})},qee=({channelId:e})=>{let{client:t}=ne(),o=useRef(null),{messages:r,hasMore:n,loadMore:i,isLoading:a}=u4({subChannelId:e,sortBy:"segmentDesc",limit:20});return useEffect(()=>{!a&&r.length>0&&r[0].markRead();},[a,r]),J.createElement(WM,{ref:o},o.current?J.createElement(dH,{scrollableTarget:o.current,scrollThreshold:.7,hasMore:n,next:i,loader:a?J.createElement("span",{key:0},"Loading..."):null,inverse:!0,dataLength:(r==null?void 0:r.length)||0,style:{display:"flex",flexDirection:"column-reverse"},height:o.current.clientHeight},J.createElement(QM,{ref:o,"data-qa-anchor":"message-list"},r.map((s,l)=>{let c=r[l+1],p=c&&c.creatorId===s.creatorId,u=s.creatorId!==(t==null?void 0:t.userId);return !(s!=null&&s.data)||!s.createdAt?J.createElement(J.Fragment,null):J.createElement(Zee,{key:s.messageId,message:s,isConsequent:p,isIncoming:u,containerRef:o})}))):null)},KM=e=>{let t=V("MessageList");return t?t(e):J.createElement(qee,d({},e))};var JM=m(J0).attrs({width:28,height:28})`
4124
+ `;function u4(e){let r=Pe({fetcher:MessageRepository.getMessages,params:e,shouldCall:()=>!!e.subChannelId}),{items:t}=r,o=w(r,["items"]);return d({messages:t},o)}var qee=({message:e,isConsequent:t,isIncoming:o,containerRef:r})=>{let n=Me(e.creatorId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return J.createElement(YM,{key:e.messageId,avatar:i||"",messageId:e.messageId,data:(e==null?void 0:e.data)||"",type:e.dataType,createdAt:new Date(e.createdAt),isDeleted:e.isDeleted,userDisplayName:(n==null?void 0:n.displayName)||"",isConsequent:t,isIncoming:o,containerRef:r})},Yee=({channelId:e})=>{let{client:t}=ne(),o=useRef(null),{messages:r,hasMore:n,loadMore:i,isLoading:a}=u4({subChannelId:e,sortBy:"segmentDesc",limit:20});return useEffect(()=>{!a&&r.length>0&&r[0].markRead();},[a,r]),J.createElement(WM,{ref:o},o.current?J.createElement(dH,{scrollableTarget:o.current,scrollThreshold:.7,hasMore:n,next:i,loader:a?J.createElement("span",{key:0},"Loading..."):null,inverse:!0,dataLength:(r==null?void 0:r.length)||0,style:{display:"flex",flexDirection:"column-reverse"},height:o.current.clientHeight},J.createElement(QM,{ref:o,"data-qa-anchor":"message-list"},r.map((s,l)=>{let c=r[l+1],p=c&&c.creatorId===s.creatorId,u=s.creatorId!==(t==null?void 0:t.userId);return !(s!=null&&s.data)||!s.createdAt?J.createElement(J.Fragment,null):J.createElement(qee,{key:s.messageId,message:s,isConsequent:p,isIncoming:u,containerRef:o})}))):null)},KM=e=>{let t=V("MessageList");return t?t(e):J.createElement(Yee,d({},e))};var JM=m(J0).attrs({width:28,height:28})`
4125
4125
  cursor: pointer;
4126
4126
  margin-left: 12px;
4127
4127
  margin-right: 8px;
4128
4128
  fill: #0f86fe;
4129
- `;m(h1).attrs({width:18,height:18})`
4129
+ `;m(C1).attrs({width:18,height:18})`
4130
4130
  cursor: pointer;
4131
4131
  margin-right: 20px;
4132
4132
  fill: ${({theme:e})=>e.palette.neutral.main};
4133
- `;m(C1).attrs({width:18,height:18})`
4133
+ `;m(v1).attrs({width:18,height:18})`
4134
4134
  margin-right: 12px;
4135
4135
  cursor: pointer;
4136
4136
  fill: ${({theme:e})=>e.palette.neutral.main};
@@ -4147,7 +4147,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4147
4147
  border: 1px solid #e3e4e8;
4148
4148
  border-radius: 4px;
4149
4149
  flex-grow: 1;
4150
- `;var Qee=({onSubmit:e})=>{let[t,o]=useState(""),{formatMessage:r}=useIntl(),n=()=>{t!==""&&(e(t),o(""));};return J.createElement(XM,null,J.createElement(RM,{"data-qa-anchor":"message-compose-bar-input",type:"text",value:t,placeholder:r({id:"MessageComposeBar.placeholder"}),onChange:i=>o(i.target.value),onKeyPress:i=>i.key==="Enter"&&n()}),J.createElement(JM,{"data-qa-anchor":"message-compose-bar-send-message-button",onClick:n}))},eP=e=>{let t=V("MessageComposerBar");return t?t(e):J.createElement(Qee,d({},e))};var tP=m(p1).attrs({width:24,height:24})`
4150
+ `;var Kee=({onSubmit:e})=>{let[t,o]=useState(""),{formatMessage:r}=useIntl(),n=()=>{t!==""&&(e(t),o(""));};return J.createElement(XM,null,J.createElement(RM,{"data-qa-anchor":"message-compose-bar-input",type:"text",value:t,placeholder:r({id:"MessageComposeBar.placeholder"}),onChange:i=>o(i.target.value),onKeyPress:i=>i.key==="Enter"&&n()}),J.createElement(JM,{"data-qa-anchor":"message-compose-bar-send-message-button",onClick:n}))},eP=e=>{let t=V("MessageComposerBar");return t?t(e):J.createElement(Kee,d({},e))};var tP=m(u1).attrs({width:24,height:24})`
4151
4151
  cursor: pointer;
4152
4152
  fill: ${({theme:e})=>e.palette.neutral.main};
4153
4153
  align-self: center;
@@ -4172,7 +4172,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4172
4172
  `,aP=m.div`
4173
4173
  font-size: 12px;
4174
4174
  color: #999999;
4175
- `;var Jee=e=>It({fetcher:ChannelRepository.getChannel,params:e,shouldCall:()=>!!e}),si=Jee;var Ree=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{let r=si(e),{chatName:n,chatAvatar:i}=r1({channel:r});return J.createElement(oP,{"data-qa-anchor":"chat-header"},J.createElement(rP,null,J.createElement(ai,{avatarUrl:i||void 0,defaultImage:r!=null&&r.memberCount&&r.memberCount>2?so:Ve}),J.createElement(nP,{"data-qa-anchor":"chat-header-channel-info"},J.createElement(iP,{"data-qa-anchor":"chat-header-channel-info-channel-name"},n),J.createElement(aP,{"data-qa-anchor":"chat-header-channel-info-member-count"},J.createElement(FormattedMessage,{id:"chat.members.count",values:{count:r==null?void 0:r.memberCount}})))),!o&&J.createElement(tP,{onClick:t}))},sP=e=>{let t=V("ChatHeader");return t?t(e):J.createElement(Ree,d({},e))};var lP=m.div`
4175
+ `;var Xee=e=>It({fetcher:ChannelRepository.getChannel,params:e,shouldCall:()=>!!e}),si=Xee;var ete=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{let r=si(e),{chatName:n,chatAvatar:i}=n1({channel:r});return J.createElement(oP,{"data-qa-anchor":"chat-header"},J.createElement(rP,null,J.createElement(ai,{avatarUrl:i||void 0,defaultImage:r!=null&&r.memberCount&&r.memberCount>2?so:Ve}),J.createElement(nP,{"data-qa-anchor":"chat-header-channel-info"},J.createElement(iP,{"data-qa-anchor":"chat-header-channel-info-channel-name"},n),J.createElement(aP,{"data-qa-anchor":"chat-header-channel-info-member-count"},J.createElement(FormattedMessage,{id:"chat.members.count",values:{count:r==null?void 0:r.memberCount}})))),!o&&J.createElement(tP,{onClick:t}))},sP=e=>{let t=V("ChatHeader");return t?t(e):J.createElement(ete,d({},e))};var lP=m.div`
4176
4176
  display: flex;
4177
4177
  flex-direction: column;
4178
4178
  flex-grow: 1;
@@ -4217,11 +4217,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4217
4217
  padding-top: 20px;
4218
4218
  `};
4219
4219
  margin-bottom: 20px;
4220
- `,ote=m.div`
4220
+ `,rte=m.div`
4221
4221
  margin-top: 8px;
4222
4222
  color: ${({theme:e})=>e.palette.alert.main};
4223
4223
  ${({theme:e})=>e.typography.caption}
4224
- `,y4=e=>J.createElement(ErrorMessage,d({as:ote},e)),fP=m.div`
4224
+ `,y4=e=>J.createElement(ErrorMessage,d({as:rte},e)),fP=m.div`
4225
4225
  border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
4226
4226
  padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
4227
4227
  display: flex;
@@ -4235,7 +4235,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4235
4235
  min-width: 100px;
4236
4236
  margin-left: 0;
4237
4237
  `};
4238
- `;var vP=e=>{let{client:t}=ne();return {isModerator:useMemo(()=>{if(!e)return !1;let r=(t==null?void 0:t.hasPermission("MUTE_CHANNEL").currentUser())||!1,n=(t==null?void 0:t.hasPermission("MUTE_CHANNEL").channel(e))||!1;return r||n},[e])}};var ste=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{useEffect(()=>()=>{SubChannelRepository.stopMessageReceiptSync(e);},[e]);let{isModerator:r}=vP(e),n=si(e),i=s=>P(void 0,null,function*(){return MessageRepository.createMessage({subChannelId:e,data:{text:s},dataType:"text"})});return J.createElement(lP,null,J.createElement(sP,{channelId:e,shouldShowChatDetails:o,onChatDetailsClick:t}),J.createElement(KM,{channelId:e}),(n==null?void 0:n.type)!=="broadcast"||(n==null?void 0:n.type)==="broadcast"&&r?J.createElement(eP,{onSubmit:i}):null)},xP=e=>{let t=V("Chat");return t?t(e):J.createElement(ste,d({},e))};var bP=m.div`
4238
+ `;var vP=e=>{let{client:t}=ne();return {isModerator:useMemo(()=>{if(!e)return !1;let r=(t==null?void 0:t.hasPermission("MUTE_CHANNEL").currentUser())||!1,n=(t==null?void 0:t.hasPermission("MUTE_CHANNEL").channel(e))||!1;return r||n},[e])}};var lte=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{useEffect(()=>()=>{SubChannelRepository.stopMessageReceiptSync(e);},[e]);let{isModerator:r}=vP(e),n=si(e),i=s=>P(void 0,null,function*(){return MessageRepository.createMessage({subChannelId:e,data:{text:s},dataType:"text"})});return J.createElement(lP,null,J.createElement(sP,{channelId:e,shouldShowChatDetails:o,onChatDetailsClick:t}),J.createElement(KM,{channelId:e}),(n==null?void 0:n.type)!=="broadcast"||(n==null?void 0:n.type)==="broadcast"&&r?J.createElement(eP,{onSubmit:i}):null)},xP=e=>{let t=V("Chat");return t?t(e):J.createElement(lte,d({},e))};var bP=m.div`
4239
4239
  display: flex;
4240
4240
  padding: 0px 15px 10px;
4241
4241
  `,IP=m.div`
@@ -4250,12 +4250,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4250
4250
  justify-content: flex-end;
4251
4251
  `,MP=m(de)`
4252
4252
  margin-left: 15px;
4253
- `,PP=m(Se)``;var dte=({closeModal:e,submitButtonName:t="",onSubmit:o,chatName:r="",title:n})=>{let{formatMessage:i}=useIntl(),[a,s]=useState(r),l=()=>{o==null||o(a),e==null||e();};return J.createElement(xt,{"data-qa-anchor":"group-settings-modal",size:"small",title:n||i({id:"chat.create.modalTitle"}),footer:J.createElement(_P,null,J.createElement(PP,{onClick:e},J.createElement(FormattedMessage,{id:"general.cancel.capital"})),J.createElement(MP,{disabled:a.length===0,onClick:l},t||J.createElement(FormattedMessage,{id:"general.create.capital"})))},J.createElement(bP,null,J.createElement(IP,null,J.createElement(wP,null,J.createElement(FormattedMessage,{id:"groupChat.createPopup.fieldName"})),J.createElement(wt,{value:a,placeholder:i({id:"groupChat.createPopup.placeholder"}),onChange:c=>s(c.plainText)}))))},SP=dte;var cte=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),J.createElement("path",{d:`M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0
4253
+ `,PP=m(Se)``;var cte=({closeModal:e,submitButtonName:t="",onSubmit:o,chatName:r="",title:n})=>{let{formatMessage:i}=useIntl(),[a,s]=useState(r),l=()=>{o==null||o(a),e==null||e();};return J.createElement(xt,{"data-qa-anchor":"group-settings-modal",size:"small",title:n||i({id:"chat.create.modalTitle"}),footer:J.createElement(_P,null,J.createElement(PP,{onClick:e},J.createElement(FormattedMessage,{id:"general.cancel.capital"})),J.createElement(MP,{disabled:a.length===0,onClick:l},t||J.createElement(FormattedMessage,{id:"general.create.capital"})))},J.createElement(bP,null,J.createElement(IP,null,J.createElement(wP,null,J.createElement(FormattedMessage,{id:"groupChat.createPopup.fieldName"})),J.createElement(wt,{value:a,placeholder:i({id:"groupChat.createPopup.placeholder"}),onChange:c=>s(c.plainText)}))))},SP=cte;var pte=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),J.createElement("path",{d:`M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0
4254
4254
  438.4V464c0 26.5 21.5 48 48 48h352c26.5 0
4255
4255
  48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4
4256
4256
  86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224
4257
4257
  288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96
4258
- 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z`})),NP=cte;var kP=m.div``,am=m.div`
4258
+ 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z`})),NP=pte;var kP=m.div``,am=m.div`
4259
4259
  display: flex;
4260
4260
  justify-content: space-between;
4261
4261
  align-items: center;
@@ -4290,14 +4290,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4290
4290
  ${BP}
4291
4291
  `,FP=m(Ci).attrs({width:24,height:20})`
4292
4292
  ${BP}
4293
- `;var gte=({chatName:e,channelId:t})=>{let[o,r]=useState(!1),{formatMessage:n}=useIntl(),i=a=>P(void 0,null,function*(){yield ChannelRepository.updateChannel(t,{displayName:a});});return J.createElement(J.Fragment,null,J.createElement(am,{onClick:()=>r(!0)},J.createElement(sm,null,J.createElement(FP,null),J.createElement(lm,null,J.createElement(FormattedMessage,{id:"chat.groupSetting"})))),o&&J.createElement(SP,{title:J.createElement(FormattedMessage,{id:"chat.groupSetting"}),chatName:e,submitButtonName:n({id:"general.done.capital"}),closeModal:()=>r(!1),onSubmit:i}))},VP=gte;var hte=({channelId:e,chatType:t,chatName:o,showMembers:r,leaveChat:n,memberCount:i=0})=>{let{confirm:a}=ue(),{formatMessage:s}=useIntl(),l=i<=2;return J.createElement(kP,null,J.createElement(am,{onClick:r},J.createElement(sm,null,J.createElement(LP,null),J.createElement(lm,null,J.createElement(FormattedMessage,{id:"tabs.members"}))),J.createElement(sm,null,i&&J.createElement(EP,null,i),J.createElement(AP,null))),!l&&J.createElement(VP,{channelId:e,chatName:o}),t!=="conversation"?J.createElement(am,{onClick:p=>{p.stopPropagation(),a({title:s({id:"chat.leaveChat.confirm.title"}),content:s({id:"chat.leaveChat.confirm.content"}),okText:s({id:"chat.leaveChat.confirm.okButton"}),onOk:()=>n==null?void 0:n()});}},J.createElement(lm,{isDanger:!0},J.createElement(FormattedMessage,{id:"chat.leaveChat"}))):null)},HP=hte;var Cte=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 640 512",fill:"currentColor"},e),J.createElement("path",{d:`M224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9
4293
+ `;var yte=({chatName:e,channelId:t})=>{let[o,r]=useState(!1),{formatMessage:n}=useIntl(),i=a=>P(void 0,null,function*(){yield ChannelRepository.updateChannel(t,{displayName:a});});return J.createElement(J.Fragment,null,J.createElement(am,{onClick:()=>r(!0)},J.createElement(sm,null,J.createElement(FP,null),J.createElement(lm,null,J.createElement(FormattedMessage,{id:"chat.groupSetting"})))),o&&J.createElement(SP,{title:J.createElement(FormattedMessage,{id:"chat.groupSetting"}),chatName:e,submitButtonName:n({id:"general.done.capital"}),closeModal:()=>r(!1),onSubmit:i}))},VP=yte;var Cte=({channelId:e,chatType:t,chatName:o,showMembers:r,leaveChat:n,memberCount:i=0})=>{let{confirm:a}=ue(),{formatMessage:s}=useIntl(),l=i<=2;return J.createElement(kP,null,J.createElement(am,{onClick:r},J.createElement(sm,null,J.createElement(LP,null),J.createElement(lm,null,J.createElement(FormattedMessage,{id:"tabs.members"}))),J.createElement(sm,null,i&&J.createElement(EP,null,i),J.createElement(AP,null))),!l&&J.createElement(VP,{channelId:e,chatName:o}),t!=="conversation"?J.createElement(am,{onClick:p=>{p.stopPropagation(),a({title:s({id:"chat.leaveChat.confirm.title"}),content:s({id:"chat.leaveChat.confirm.content"}),okText:s({id:"chat.leaveChat.confirm.okButton"}),onOk:()=>n==null?void 0:n()});}},J.createElement(lm,{isDanger:!0},J.createElement(FormattedMessage,{id:"chat.leaveChat"}))):null)},HP=Cte;var vte=e=>J.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 640 512",fill:"currentColor"},e),J.createElement("path",{d:`M224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9
4294
4294
  0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96zm89.6 256c-28.7 0-42.5
4295
4295
  16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5
4296
4296
  0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6
4297
4297
  38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4
4298
4298
  86.4V464zm224-248h-72v-72c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v72h-72c-8.8 0-16 7.2-16
4299
4299
  16v16c0 8.8 7.2 16 16 16h72v72c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-72h72c8.8 0 16-7.2
4300
- 16-16v-16c0-8.8-7.2-16-16-16z`})),zP=Cte;var jP=m.div`
4300
+ 16-16v-16c0-8.8-7.2-16-16-16z`})),zP=vte;var jP=m.div`
4301
4301
  display: flex;
4302
4302
  flex-direction: column;
4303
4303
  overflow-y: auto;
@@ -4345,7 +4345,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4345
4345
  svg {
4346
4346
  font-size: 20px;
4347
4347
  }
4348
- `;var xte=({onClick:e})=>J.createElement(qP,{onClick:e},J.createElement(YP,null,J.createElement(zP,null)),J.createElement(Xc,null,J.createElement(FormattedMessage,{id:"chat.member.addMore"}))),WP=xte;function dm(e){let r=Pe({fetcher:ChannelRepository.Membership.getMembers,params:{channelId:e,includeDeleted:!1},shouldCall:()=>!!e}),{items:t}=r,o=I(r,["items"]);return d({channelMembers:t},o)}var wte="Anonymous",_te=({channelId:e,hideMembers:t,onEditChatMemberClick:o,onMemberSelect:r})=>{let n=si(e),{channelMembers:i,hasMore:a,loadMore:s}=dm(e),l=u=>{u.stopPropagation(),t==null||t();},c=u=>{var x;let{displayName:f,metadata:g}=(x=u==null?void 0:u.user)!=null?x:{};if(f)return f;let{firstname:h="",lastname:C=""}=g!=null?g:{};return [h,C].filter(Boolean).join(" ").trim()},p=(n==null?void 0:n.type)==="live"||(n==null?void 0:n.type)==="community";return J.createElement(jP,null,J.createElement(GP,{onClick:l},J.createElement($P,null),J.createElement(ZP,null,J.createElement(FormattedMessage,{id:"chat.members.return"}))),(i==null?void 0:i.length)>0?J.createElement($t,{hasMore:a,loadMore:s,contentSlot:J.createElement(J.Fragment,null,i.map(u=>J.createElement(C4,{key:u.userId,onClick:()=>r==null?void 0:r(u)},J.createElement(ai,d({size:Si.SMALL,defaultImage:Ve},u==null?void 0:u.user)),J.createElement(Xc,null,c(u)||wte))),p?J.createElement(WP,{onClick:()=>o==null?void 0:o({channelId:e,members:i})}):null)}):null)},QP=_te;var KP=m.div`
4348
+ `;var bte=({onClick:e})=>J.createElement(qP,{onClick:e},J.createElement(YP,null,J.createElement(zP,null)),J.createElement(Xc,null,J.createElement(FormattedMessage,{id:"chat.member.addMore"}))),WP=bte;function dm(e){let r=Pe({fetcher:ChannelRepository.Membership.getMembers,params:{channelId:e,includeDeleted:!1},shouldCall:()=>!!e}),{items:t}=r,o=w(r,["items"]);return d({channelMembers:t},o)}var _te="Anonymous",Mte=({channelId:e,hideMembers:t,onEditChatMemberClick:o,onMemberSelect:r})=>{let n=si(e),{channelMembers:i,hasMore:a,loadMore:s}=dm(e),l=u=>{u.stopPropagation(),t==null||t();},c=u=>{var x;let{displayName:f,metadata:g}=(x=u==null?void 0:u.user)!=null?x:{};if(f)return f;let{firstname:h="",lastname:C=""}=g!=null?g:{};return [h,C].filter(Boolean).join(" ").trim()},p=(n==null?void 0:n.type)==="live"||(n==null?void 0:n.type)==="community";return J.createElement(jP,null,J.createElement(GP,{onClick:l},J.createElement($P,null),J.createElement(ZP,null,J.createElement(FormattedMessage,{id:"chat.members.return"}))),(i==null?void 0:i.length)>0?J.createElement($t,{hasMore:a,loadMore:s,contentSlot:J.createElement(J.Fragment,null,i.map(u=>J.createElement(C4,{key:u.userId,onClick:()=>r==null?void 0:r(u)},J.createElement(ai,d({size:Si.SMALL,defaultImage:Ve},u==null?void 0:u.user)),J.createElement(Xc,null,c(u)||_te))),p?J.createElement(WP,{onClick:()=>o==null?void 0:o({channelId:e,members:i})}):null)}):null)},QP=Mte;var KP=m.div`
4349
4349
  display: flex;
4350
4350
  flex-direction: column;
4351
4351
  flex-shrink: 0;
@@ -4379,11 +4379,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4379
4379
  ${({theme:e})=>e.typography.bodyBold};
4380
4380
  line-height: 24px;
4381
4381
  color: #000000;
4382
- `;var Pte=({channelId:e,onClose:t,leaveChat:o,onEditChatMemberClick:r,onMemberSelect:n})=>{let i=si(e),{chatName:a,chatAvatar:s,type:l}=r1({channel:i}),[c,p]=useState(!1);return J.createElement(KP,null,J.createElement(JP,null,J.createElement(FormattedMessage,{id:"chat.details.header"}),J.createElement(XP,{onClick:t})),J.createElement(RP,null,J.createElement(ai,{avatarUrl:s,defaultImage:so}),J.createElement(eS,null,J.createElement(tS,null,J.createElement(FormattedMessage,{id:"chat.details.chatName"})),J.createElement(oS,null,a))),c?J.createElement(QP,{channelId:e,hideMembers:()=>p(!1),onMemberSelect:n,onEditChatMemberClick:({members:u})=>i&&(r==null?void 0:r({channel:i,members:u}))}):J.createElement(HP,{chatType:l,channelId:e,chatName:a,leaveChat:o,memberCount:i==null?void 0:i.memberCount,showMembers:()=>p(!0)}))},nS=e=>{let t=V("ChatDetails");return t?t(e):J.createElement(Pte,d({},e))};var iS=m.div`
4382
+ `;var Ste=({channelId:e,onClose:t,leaveChat:o,onEditChatMemberClick:r,onMemberSelect:n})=>{let i=si(e),{chatName:a,chatAvatar:s,type:l}=n1({channel:i}),[c,p]=useState(!1);return J.createElement(KP,null,J.createElement(JP,null,J.createElement(FormattedMessage,{id:"chat.details.header"}),J.createElement(XP,{onClick:t})),J.createElement(RP,null,J.createElement(ai,{avatarUrl:s,defaultImage:so}),J.createElement(eS,null,J.createElement(tS,null,J.createElement(FormattedMessage,{id:"chat.details.chatName"})),J.createElement(oS,null,a))),c?J.createElement(QP,{channelId:e,hideMembers:()=>p(!1),onMemberSelect:n,onEditChatMemberClick:({members:u})=>i&&(r==null?void 0:r({channel:i,members:u}))}):J.createElement(HP,{chatType:l,channelId:e,chatName:a,leaveChat:o,memberCount:i==null?void 0:i.memberCount,showMembers:()=>p(!0)}))},nS=e=>{let t=V("ChatDetails");return t?t(e):J.createElement(Ste,d({},e))};var iS=m.div`
4383
4383
  display: flex;
4384
4384
  height: 100%;
4385
4385
  width: 100%;
4386
- `;var Tte=({name:e})=>J.createElement("div",{"data-qa-anchor":`chat-type-selector-item-${e}`},e),Nte=({onChange:e,parentContainer:t})=>{let{formatMessage:o}=useIntl(),r=["live","community","conversation","broadcast"].map(n=>({name:o({id:"select.chatType.item"},{answerType:n}),value:n}));return J.createElement(cP,{"data-qa-anchor":"chat-type",options:r,value:[r[0]],parentContainer:t,renderItem:Tte,onSelect:({value:n})=>e(n)})},sS=Nte;var Bte=({children:e})=>J.createElement(dP,null,J.createElement(mP,null,e)),Lte=({className:e,onCancel:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),[n,i]=J.useState(!1),a={type:"live",displayName:void 0,avatarFileId:void 0,userIds:[],tags:[]},{register:s,handleSubmit:l,watch:c,control:p,formState:{errors:u,isDirty:f}}=useForm({defaultValues:a}),g=c("userIds"),h=x=>P(void 0,null,function*(){i(!0);try{let v={displayName:x.displayName,type:(x==null?void 0:x.type)||"community",avatarFileId:(x==null?void 0:x.avatarFileId)||void 0,userIds:x==null?void 0:x.userIds,tags:x==null?void 0:x.tags};yield o==null?void 0:o(v);}finally{i(!1);}}),C=!f||g.length===0||n,y=useRef(null);return J.createElement(uP,null,J.createElement(yP,{className:e,onSubmit:l(h)},J.createElement(gP,{ref:y},J.createElement(Bte,null,J.createElement(nm,null,J.createElement(g4,null,J.createElement(f4,null,J.createElement(Jc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.type"})))),J.createElement(hP,null,J.createElement(Controller,{name:"type",rules:{required:"Channel type is required"},render:_=>{var {field:M}=_,b=M,v=I(b,["ref"]);return J.createElement(sS,d({parentContainer:y.current},v))},control:p,defaultValue:""}))),J.createElement(nm,null,J.createElement(g4,null,J.createElement(f4,null,J.createElement(Jc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.displayName"})))),J.createElement(pP,S(d({},s("displayName")),{placeholder:r({id:"chat_composer.placeholder.displayName"}),"data-qa-anchor":"chat-composer-display-name-input"})),J.createElement(y4,{errors:u,name:"displayName"})),J.createElement(nm,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:_=>{var {field:M}=_,b=M,v=I(b,["ref"]);return J.createElement(Dn,d({mimeType:"image/png, image/jpeg"},v))},defaultValue:void 0})),J.createElement(nm,null,J.createElement(Jc,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:_=>{var {field:M}=_,b=M,v=I(b,["ref"]);return J.createElement(Gn,S(d({parentContainer:y.current},v),{"data-qa-anchor":"chat-composer-select-user-input"}))},control:p}),J.createElement(y4,{errors:u,name:"userIds"})))),J.createElement(fP,null,J.createElement(q,{onClick:x=>{x.preventDefault(),t==null||t();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(CP,{"data-qa-anchor":"chat-composer-submit-button",disabled:C},J.createElement(FormattedMessage,{id:"create"})))))},lS=Lte;var Vte=({onClose:e})=>{let{formatMessage:t}=useIntl(),{confirm:o}=ue(),r=Ce(),n=a=>P(void 0,null,function*(){try{yield ChannelRepository.createChannel(a),e();}catch(s){s instanceof Error&&r.error({content:s.message});}}),i=()=>o({title:t({id:"CommunityCreationModal.title"}),content:t({id:"CommunityCreationModal.content"}),cancelText:t({id:"CommunityCreationModal.cancelText"}),okText:t({id:"CommunityCreationModal.okText"}),onOk:e});return J.createElement(xt,{"data-qa-anchor":"create-chat-modal",title:t({id:"chat_modal.title"}),onCancel:i},J.createElement(lS,{onSubmit:n,onCancel:i}))},dS=Vte;m.div`
4386
+ `;var Nte=({name:e})=>J.createElement("div",{"data-qa-anchor":`chat-type-selector-item-${e}`},e),kte=({onChange:e,parentContainer:t})=>{let{formatMessage:o}=useIntl(),r=["live","community","conversation","broadcast"].map(n=>({name:o({id:"select.chatType.item"},{answerType:n}),value:n}));return J.createElement(cP,{"data-qa-anchor":"chat-type",options:r,value:[r[0]],parentContainer:t,renderItem:Nte,onSelect:({value:n})=>e(n)})},sS=kte;var Lte=({children:e})=>J.createElement(dP,null,J.createElement(mP,null,e)),Fte=({className:e,onCancel:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),[n,i]=J.useState(!1),a={type:"live",displayName:void 0,avatarFileId:void 0,userIds:[],tags:[]},{register:s,handleSubmit:l,watch:c,control:p,formState:{errors:u,isDirty:f}}=useForm({defaultValues:a}),g=c("userIds"),h=x=>P(void 0,null,function*(){i(!0);try{let v={displayName:x.displayName,type:(x==null?void 0:x.type)||"community",avatarFileId:(x==null?void 0:x.avatarFileId)||void 0,userIds:x==null?void 0:x.userIds,tags:x==null?void 0:x.tags};yield o==null?void 0:o(v);}finally{i(!1);}}),C=!f||g.length===0||n,y=useRef(null);return J.createElement(uP,null,J.createElement(yP,{className:e,onSubmit:l(h)},J.createElement(gP,{ref:y},J.createElement(Lte,null,J.createElement(nm,null,J.createElement(g4,null,J.createElement(f4,null,J.createElement(Jc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.type"})))),J.createElement(hP,null,J.createElement(Controller,{name:"type",rules:{required:"Channel type is required"},render:_=>{var {field:M}=_,b=M,v=w(b,["ref"]);return J.createElement(sS,d({parentContainer:y.current},v))},control:p,defaultValue:""}))),J.createElement(nm,null,J.createElement(g4,null,J.createElement(f4,null,J.createElement(Jc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.displayName"})))),J.createElement(pP,S(d({},s("displayName")),{placeholder:r({id:"chat_composer.placeholder.displayName"}),"data-qa-anchor":"chat-composer-display-name-input"})),J.createElement(y4,{errors:u,name:"displayName"})),J.createElement(nm,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:_=>{var {field:M}=_,b=M,v=w(b,["ref"]);return J.createElement(Dn,d({mimeType:"image/png, image/jpeg"},v))},defaultValue:void 0})),J.createElement(nm,null,J.createElement(Jc,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:_=>{var {field:M}=_,b=M,v=w(b,["ref"]);return J.createElement(Gn,S(d({parentContainer:y.current},v),{"data-qa-anchor":"chat-composer-select-user-input"}))},control:p}),J.createElement(y4,{errors:u,name:"userIds"})))),J.createElement(fP,null,J.createElement(q,{onClick:x=>{x.preventDefault(),t==null||t();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(CP,{"data-qa-anchor":"chat-composer-submit-button",disabled:C},J.createElement(FormattedMessage,{id:"create"})))))},lS=Fte;var Ote=({onClose:e})=>{let{formatMessage:t}=useIntl(),{confirm:o}=ue(),r=Ce(),n=a=>P(void 0,null,function*(){try{yield ChannelRepository.createChannel(a),e();}catch(s){s instanceof Error&&r.error({content:s.message});}}),i=()=>o({title:t({id:"CommunityCreationModal.title"}),content:t({id:"CommunityCreationModal.content"}),cancelText:t({id:"CommunityCreationModal.cancelText"}),okText:t({id:"CommunityCreationModal.okText"}),onOk:e});return J.createElement(xt,{"data-qa-anchor":"create-chat-modal",title:t({id:"chat_modal.title"}),onCancel:i},J.createElement(lS,{onSubmit:n,onCancel:i}))},dS=Ote;m.div`
4387
4387
  display: flex;
4388
4388
  flex-direction: column;
4389
4389
  flex-grow: 1;
@@ -4428,11 +4428,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4428
4428
  padding-top: 20px;
4429
4429
  `};
4430
4430
  margin-bottom: 20px;
4431
- `,Ute=m.div`
4431
+ `,zte=m.div`
4432
4432
  margin-top: 8px;
4433
4433
  color: ${({theme:e})=>e.palette.alert.main};
4434
4434
  ${({theme:e})=>e.typography.caption}
4435
- `,yS=e=>J.createElement(ErrorMessage,d({as:Ute},e)),hS=m.div`
4435
+ `,yS=e=>J.createElement(ErrorMessage,d({as:zte},e)),hS=m.div`
4436
4436
  border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
4437
4437
  padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
4438
4438
  display: flex;
@@ -4446,6 +4446,6 @@ See https://s-c.sh/2BAXzed for more info.`),window[ym]+=1);var Pm=`url("data:ima
4446
4446
  min-width: 100px;
4447
4447
  margin-left: 0;
4448
4448
  `};
4449
- `;var $te=({children:e})=>J.createElement(pS,null,J.createElement(cS,null,e)),Zte=({channelId:e,className:t,memberIds:o,onCancel:r,onSubmit:n})=>{let[i,a]=J.useState(!1),s=Ce(),l={userIds:o},{register:c,handleSubmit:p,watch:u,control:f,formState:{errors:g,isDirty:h}}=useForm({defaultValues:l}),C=u("userIds"),y=M=>P(void 0,[M],function*({userIds:_}){a(!0);try{n==null||n(_);let b=o.filter(T=>!_.includes(T)),w=_.filter(T=>!o.includes(T));return Promise.all([(w==null?void 0:w.length)>0?ChannelRepository.Membership.addMembers(e,w):null,(b==null?void 0:b.length)>0?ChannelRepository.Membership.removeMembers(e,b):null].filter(Ue))}catch(b){b instanceof Error&&s.error({content:b.message});}finally{a(!1);}}),x=!h||C.length===0||i,v=useRef(null);return J.createElement(fS,null,J.createElement(vS,{className:t,onSubmit:p(y)},J.createElement(CS,{ref:v},J.createElement($te,null,J.createElement(gS,null,J.createElement(uS,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:b=>{var {field:w}=b,T=w,M=I(T,["ref"]);return J.createElement(Gn,S(d({parentContainer:v.current},M),{"data-qa-anchor":"edit-chat-members-composer-select-user-input"}))},control:f}),J.createElement(yS,{errors:g,name:"userIds"})))),J.createElement(hS,null,J.createElement(q,{onClick:_=>{_.preventDefault(),r==null||r();},disabled:h},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(xS,{"data-qa-anchor":"edit-chat-members-composer-submit-button",disabled:x},J.createElement(FormattedMessage,{id:"save"})))))};function b4(e){let l=e,{channelId:t}=l,o=I(l,["channelId"]),{isLoading:r,channelMembers:n,hasMore:i,loadMore:a}=dm(t),s=n.map(c=>c.userId);return r||t==null?null:J.createElement(Zte,S(d({},o),{channelId:t,memberIds:s}))}var Yte=({channelId:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue(),n=Ce(),i=s=>P(void 0,null,function*(){try{t();}catch(l){l instanceof Error&&n.error({content:l.message});}}),a=()=>r({title:o({id:"editChatMembersModal.confirm.title"}),content:o({id:"editChatMembersModal.confirm.content"}),cancelText:o({id:"editChatMembersModal.confirm.cancelText"}),okText:o({id:"editChatMembersModal.confirm.okText"}),onOk:t});return J.createElement(xt,{"data-qa-anchor":"edit-chat-members-modal",title:o({id:"editChatMembersModal.title"}),onCancel:a},J.createElement(b4,{channelId:e,onSubmit:i,onCancel:a}))},wS=Yte;var Jte=({membershipFilter:e="all",defaultChannelId:t,onMemberSelect:o,onChannelSelect:r,onAddNewChannel:n,onEditChatMember:i})=>{let{formatMessage:a}=useIntl(),[s,l]=useState(null),[c,p]=useState(!1),u=Ce(),f=()=>p(!0),g=()=>p(!1),[h,C]=useState(!1),[y,x]=useState(!1),v=()=>C(!0),_=b=>{(s==null?void 0:s.channelId)!==(b==null?void 0:b.channelId)&&(g(),l(b),r==null||r(b));},M=()=>P(void 0,null,function*(){if(s!=null&&s.channelId)try{yield ChannelRepository.leaveChannel(s.channelId),u.success({content:a({id:"chat.leaveChat.success"})}),l(null);}catch(b){u.error({content:a({id:"chat.leaveChat.error"})});}});return useEffect(()=>{t&&_({channelId:t,type:"standard"});},[t]),J.createElement(iS,null,J.createElement(wM,{selectedChannelId:s==null?void 0:s.channelId,membershipFilter:e,onChannelSelect:_,onAddNewChannelClick:()=>{v(),n==null||n();}}),s?J.createElement(xP,{channelId:s.channelId,shouldShowChatDetails:c,onChatDetailsClick:f}):null,c&&s?J.createElement(nS,{channelId:s.channelId,leaveChat:M,onEditChatMemberClick:b=>{x(!0),i==null||i(b);},onMemberSelect:o,onClose:g}):null,h?J.createElement(dS,{onClose:()=>C(!1)}):null,y&&s?J.createElement(wS,{channelId:s==null?void 0:s.channelId,onClose:()=>x(!1)}):null)},Xte=Jte;var _S=(e,t)=>P(void 0,null,function*(){return ChannelRepository.Membership.addMembers(e,t)});var MS=(e,t)=>P(void 0,null,function*(){return ChannelRepository.Membership.removeMembers(e,t)});var Wt=class Wt{constructor(){this.client=null;this.isConnected=!1;this.stateChangeHandler=null;this.disconnectedHandler=null;}static setup(t){if(!Wt.instance){Wt.instance=new Wt;let o=Client.createClient(t.apiKey,t.apiRegion,t!=null&&t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{});Wt.setClient(o);}}static registerDevice(t,o,r,n,i,a,s){return P(this,null,function*(){if(!Wt.instance)throw new Error("AmityUIKitManager must be set up first using the setup method.");Wt.instance.onConnectionStatusChange=i,Wt.instance.onConnected=a,Wt.instance.onDisconnected=s,yield Wt.instance.connectAndLogin(t,o,r,n);})}static setClient(t){if(Wt.instance)Wt.instance.client=t,Wt.instance.isConnected=!0;else throw new Error("AmityUIKitManager must be set up first using the setup method.")}connectAndLogin(t,o,r,n){return P(this,null,function*(){yield Client.login({userId:t,displayName:o,authToken:n},{sessionWillRenewAccessToken:r.sessionWillRenewAccessToken.bind(r)}),this.stateChangeHandler=Client.onSessionStateChange(i=>{var a;(a=this.onConnectionStatusChange)==null||a.call(this,i);}),this.disconnectedHandler=Client.onClientDisconnected(()=>{this.onDisconnected&&this.onDisconnected();}),this.onConnected&&this.onConnected();})}disconnect(){var t,o;(t=this.stateChangeHandler)==null||t.call(this),(o=this.disconnectedHandler)==null||o.call(this),this.client=null,this.isConnected=!1;}static getClient(){var t;return ((t=Wt.instance)==null?void 0:t.client)||null}isClientConnected(){return this.isConnected}};Wt.instance=null;var I4=Wt;var toe=({type:e,targetId:t})=>{let o="story_page",{AmityStoryViewPageBehavior:r}=eo(),{onBack:n,goToViewStoryPage:i,goToDraftStoryPage:a,onClickCommunity:s}=Be();return e==="communityFeed"?J.createElement(Zc,{pageId:o,communityId:t,onBack:n,onClose:l=>s(l),onSwipeDown:l=>s(l),onClickCommunity:l=>s(l),goToDraftStoryPage:(l,c,p,u)=>a(l,c,p,u)}):e==="globalFeed"?J.createElement(qc,{pageId:o,targetId:t,onChangePage:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onClose:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onSwipeDown:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onClickStory:l=>i({storyType:"globalFeed",targetId:l,targetType:"community"}),goToDraftStoryPage:(l,c,p,u)=>a(l,c,p,u),onClickCommunity:l=>s(l)}):null},w4=toe;var Gr={selectStoryTargetPage:"du",selectStoryTargetPage__topBar:"mu",selectStoryTargetPage__timeline:"gu",selectStoryTargetPage__line:"hu",selectStoryTargetPage__myCommunities__container:"pu",selectStoryTargetPage__myCommunities:"fu",selectStoryTargetPage__communityAvatar:"uu",selectStoryTargetPage__closeButton:"bu",selectStoryTargetPage__title:"vu"};function _4(){let e="select_story_target_page",{themeStyles:t}=jt({pageId:e}),{onBack:o}=Be(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=Jl({queryParams:{limit:20,membership:"member"}}),{AmityStoryTargetSelectionPage:s}=eo(),{file:l,setFile:c}=Wo(),[p,u]=useState(null),[f,g]=useState(null),h=x=>{g(x);},C=x=>{x&&x.length>0&&f&&c(x[0]);},y=r.map(x=>J.createElement(FileTrigger,{key:x.communityId,onSelect:C},J.createElement(U,{onPress:()=>h(x.communityId)},J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities},J.createElement("div",{className:Gr.selectStoryTargetPage__communityAvatar},J.createElement(Dr,{pageId:e,community:x})),J.createElement(da,{pageId:e,community:x}),J.createElement("div",null,x.isOfficial&&J.createElement(Js,null),!x.isPublic&&J.createElement(Qs,null))))));return Ro({onIntersect:()=>{n&&a===!1&&i();},node:p}),useEffect(()=>{var x;l&&((x=s==null?void 0:s.goToStoryCreationPage)==null||x.call(s,{targetId:f,targetType:"community",mediaType:l&&(l!=null&&l.type.includes("image"))?{type:"image",url:URL.createObjectURL(l)}:{type:"video",url:URL.createObjectURL(l)},storyType:"globalFeed"}));},[l]),J.createElement("div",{className:Gr.selectStoryTargetPage,style:t},J.createElement("div",{className:Gr.selectStoryTargetPage__topBar},J.createElement(yr,{imgClassName:Gr.selectStoryTargetPage__closeButton,pageId:e,onPress:o}),J.createElement(ca,{pageId:e,titleClassName:Gr.selectStoryTargetPage__title}),J.createElement("div",null)),J.createElement("div",{className:Gr.selectStoryTargetPage__line}),J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities},"My Communities"),J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities__container},y),J.createElement("div",{ref:x=>u(x)}))}
4449
+ `;var Zte=({children:e})=>J.createElement(pS,null,J.createElement(cS,null,e)),qte=({channelId:e,className:t,memberIds:o,onCancel:r,onSubmit:n})=>{let[i,a]=J.useState(!1),s=Ce(),l={userIds:o},{register:c,handleSubmit:p,watch:u,control:f,formState:{errors:g,isDirty:h}}=useForm({defaultValues:l}),C=u("userIds"),y=M=>P(void 0,[M],function*({userIds:_}){a(!0);try{n==null||n(_);let b=o.filter(T=>!_.includes(T)),I=_.filter(T=>!o.includes(T));return Promise.all([(I==null?void 0:I.length)>0?ChannelRepository.Membership.addMembers(e,I):null,(b==null?void 0:b.length)>0?ChannelRepository.Membership.removeMembers(e,b):null].filter(Ue))}catch(b){b instanceof Error&&s.error({content:b.message});}finally{a(!1);}}),x=!h||C.length===0||i,v=useRef(null);return J.createElement(fS,null,J.createElement(vS,{className:t,onSubmit:p(y)},J.createElement(CS,{ref:v},J.createElement(Zte,null,J.createElement(gS,null,J.createElement(uS,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:b=>{var {field:I}=b,T=I,M=w(T,["ref"]);return J.createElement(Gn,S(d({parentContainer:v.current},M),{"data-qa-anchor":"edit-chat-members-composer-select-user-input"}))},control:f}),J.createElement(yS,{errors:g,name:"userIds"})))),J.createElement(hS,null,J.createElement(q,{onClick:_=>{_.preventDefault(),r==null||r();},disabled:h},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(xS,{"data-qa-anchor":"edit-chat-members-composer-submit-button",disabled:x},J.createElement(FormattedMessage,{id:"save"})))))};function b4(e){let l=e,{channelId:t}=l,o=w(l,["channelId"]),{isLoading:r,channelMembers:n,hasMore:i,loadMore:a}=dm(t),s=n.map(c=>c.userId);return r||t==null?null:J.createElement(qte,S(d({},o),{channelId:t,memberIds:s}))}var Wte=({channelId:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue(),n=Ce(),i=s=>P(void 0,null,function*(){try{t();}catch(l){l instanceof Error&&n.error({content:l.message});}}),a=()=>r({title:o({id:"editChatMembersModal.confirm.title"}),content:o({id:"editChatMembersModal.confirm.content"}),cancelText:o({id:"editChatMembersModal.confirm.cancelText"}),okText:o({id:"editChatMembersModal.confirm.okText"}),onOk:t});return J.createElement(xt,{"data-qa-anchor":"edit-chat-members-modal",title:o({id:"editChatMembersModal.title"}),onCancel:a},J.createElement(b4,{channelId:e,onSubmit:i,onCancel:a}))},wS=Wte;var Xte=({membershipFilter:e="all",defaultChannelId:t,onMemberSelect:o,onChannelSelect:r,onAddNewChannel:n,onEditChatMember:i})=>{let{formatMessage:a}=useIntl(),[s,l]=useState(null),[c,p]=useState(!1),u=Ce(),f=()=>p(!0),g=()=>p(!1),[h,C]=useState(!1),[y,x]=useState(!1),v=()=>C(!0),_=b=>{(s==null?void 0:s.channelId)!==(b==null?void 0:b.channelId)&&(g(),l(b),r==null||r(b));},M=()=>P(void 0,null,function*(){if(s!=null&&s.channelId)try{yield ChannelRepository.leaveChannel(s.channelId),u.success({content:a({id:"chat.leaveChat.success"})}),l(null);}catch(b){u.error({content:a({id:"chat.leaveChat.error"})});}});return useEffect(()=>{t&&_({channelId:t,type:"standard"});},[t]),J.createElement(iS,null,J.createElement(wM,{selectedChannelId:s==null?void 0:s.channelId,membershipFilter:e,onChannelSelect:_,onAddNewChannelClick:()=>{v(),n==null||n();}}),s?J.createElement(xP,{channelId:s.channelId,shouldShowChatDetails:c,onChatDetailsClick:f}):null,c&&s?J.createElement(nS,{channelId:s.channelId,leaveChat:M,onEditChatMemberClick:b=>{x(!0),i==null||i(b);},onMemberSelect:o,onClose:g}):null,h?J.createElement(dS,{onClose:()=>C(!1)}):null,y&&s?J.createElement(wS,{channelId:s==null?void 0:s.channelId,onClose:()=>x(!1)}):null)},Rte=Xte;var _S=(e,t)=>P(void 0,null,function*(){return ChannelRepository.Membership.addMembers(e,t)});var MS=(e,t)=>P(void 0,null,function*(){return ChannelRepository.Membership.removeMembers(e,t)});var Wt=class Wt{constructor(){this.client=null;this.isConnected=!1;this.stateChangeHandler=null;this.disconnectedHandler=null;}static setup(t){if(!Wt.instance){Wt.instance=new Wt;let o=Client.createClient(t.apiKey,t.apiRegion,t!=null&&t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{});Wt.setClient(o);}}static registerDevice(t,o,r,n,i,a,s){return P(this,null,function*(){if(!Wt.instance)throw new Error("AmityUIKitManager must be set up first using the setup method.");Wt.instance.onConnectionStatusChange=i,Wt.instance.onConnected=a,Wt.instance.onDisconnected=s,yield Wt.instance.connectAndLogin(t,o,r,n);})}static setClient(t){if(Wt.instance)Wt.instance.client=t,Wt.instance.isConnected=!0;else throw new Error("AmityUIKitManager must be set up first using the setup method.")}connectAndLogin(t,o,r,n){return P(this,null,function*(){yield Client.login({userId:t,displayName:o,authToken:n},{sessionWillRenewAccessToken:r.sessionWillRenewAccessToken.bind(r)}),this.stateChangeHandler=Client.onSessionStateChange(i=>{var a;(a=this.onConnectionStatusChange)==null||a.call(this,i);}),this.disconnectedHandler=Client.onClientDisconnected(()=>{this.onDisconnected&&this.onDisconnected();}),this.onConnected&&this.onConnected();})}disconnect(){var t,o;(t=this.stateChangeHandler)==null||t.call(this),(o=this.disconnectedHandler)==null||o.call(this),this.client=null,this.isConnected=!1;}static getClient(){var t;return ((t=Wt.instance)==null?void 0:t.client)||null}isClientConnected(){return this.isConnected}};Wt.instance=null;var I4=Wt;var ooe=({type:e,targetId:t})=>{let o="story_page",{AmityStoryViewPageBehavior:r}=eo(),{onBack:n,goToViewStoryPage:i,goToDraftStoryPage:a,onClickCommunity:s}=Be();return e==="communityFeed"?J.createElement(Zc,{pageId:o,communityId:t,onBack:n,onClose:l=>s(l),onSwipeDown:l=>s(l),onClickCommunity:l=>s(l),goToDraftStoryPage:(l,c,p,u)=>a(l,c,p,u)}):e==="globalFeed"?J.createElement(qc,{pageId:o,targetId:t,onChangePage:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onClose:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onSwipeDown:()=>{var l;return (l=r==null?void 0:r.onCloseAction)==null?void 0:l.call(r)},onClickStory:l=>i({storyType:"globalFeed",targetId:l,targetType:"community"}),goToDraftStoryPage:(l,c,p,u)=>a(l,c,p,u),onClickCommunity:l=>s(l)}):null},w4=ooe;var Gr={selectStoryTargetPage:"du",selectStoryTargetPage__topBar:"mu",selectStoryTargetPage__timeline:"gu",selectStoryTargetPage__line:"hu",selectStoryTargetPage__myCommunities__container:"pu",selectStoryTargetPage__myCommunities:"fu",selectStoryTargetPage__communityAvatar:"uu",selectStoryTargetPage__closeButton:"bu",selectStoryTargetPage__title:"vu"};function _4(){let e="select_story_target_page",{themeStyles:t}=jt({pageId:e}),{onBack:o}=Be(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=Jl({queryParams:{limit:20,membership:"member"}}),{AmityStoryTargetSelectionPage:s}=eo(),{file:l,setFile:c}=Wo(),[p,u]=useState(null),[f,g]=useState(null),h=x=>{g(x);},C=x=>{x&&x.length>0&&f&&c(x[0]);},y=r.map(x=>J.createElement(FileTrigger,{key:x.communityId,onSelect:C},J.createElement(U,{onPress:()=>h(x.communityId)},J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities},J.createElement("div",{className:Gr.selectStoryTargetPage__communityAvatar},J.createElement(Dr,{pageId:e,community:x})),J.createElement(da,{pageId:e,community:x}),J.createElement("div",null,x.isOfficial&&J.createElement(Xs,null),!x.isPublic&&J.createElement(Ks,null))))));return Ro({onIntersect:()=>{n&&a===!1&&i();},node:p}),useEffect(()=>{var x;l&&((x=s==null?void 0:s.goToStoryCreationPage)==null||x.call(s,{targetId:f,targetType:"community",mediaType:l&&(l!=null&&l.type.includes("image"))?{type:"image",url:URL.createObjectURL(l)}:{type:"video",url:URL.createObjectURL(l)},storyType:"globalFeed"}));},[l]),J.createElement("div",{className:Gr.selectStoryTargetPage,style:t},J.createElement("div",{className:Gr.selectStoryTargetPage__topBar},J.createElement(yr,{imgClassName:Gr.selectStoryTargetPage__closeButton,pageId:e,onPress:o}),J.createElement(ca,{pageId:e,titleClassName:Gr.selectStoryTargetPage__title}),J.createElement("div",null)),J.createElement("div",{className:Gr.selectStoryTargetPage__line}),J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities},"My Communities"),J.createElement("div",{className:Gr.selectStoryTargetPage__myCommunities__container},y),J.createElement("div",{ref:x=>u(x)}))}
4450
4450
 
4451
- export { ve as AmityAvatar, Ws as AmityCommentTrayComponent, i4 as AmityDraftStoryPage, Jp as AmityExpandableText, K1 as AmityPostContainer, a3 as AmityPostEngagementBar, ku as AmityReactionListComponent, Oc as AmitySocialHomePageTab, Ec as AmityStoryTabComponent, _4 as AmityStoryTargetSelectionPage, I4 as AmityUIKitManager, Xte as AmityUiKitChat, An as AmityUiKitFeed, yO as AmityUiKitProvider, YR as AmityUiKitSocial, w4 as AmityViewStoryPage, _S as amityAddChatMembers, MS as amityRemoveChatMembers, Q as useAmityNavigation, Xm as useAmitySDK, Me as useAmityUser };
4451
+ export { ve as AmityAvatar, Qs as AmityCommentTrayComponent, i4 as AmityDraftStoryPage, Jp as AmityExpandableText, K1 as AmityPostContainer, a3 as AmityPostEngagementBar, ku as AmityReactionListComponent, Oc as AmitySocialHomePageTab, Ec as AmityStoryTabComponent, _4 as AmityStoryTargetSelectionPage, I4 as AmityUIKitManager, Rte as AmityUiKitChat, An as AmityUiKitFeed, yO as AmityUiKitProvider, WR as AmityUiKitSocial, w4 as AmityViewStoryPage, _S as amityAddChatMembers, MS as amityRemoveChatMembers, Q as useAmityNavigation, Xm as useAmitySDK, Me as useAmityUser };