@amityco/ui-kit-open-source 3.11.3 → 3.11.4
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 +154 -154
- package/dist/index.js +163 -163
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
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, CategoryRepository, getCommentTopic, SubChannelRepository, StreamRepository, FeedRepository, getChannelTopic, getMessageTopic } from '@amityco/ts-sdk';
|
|
3
3
|
import * as io from 'stylis';
|
|
4
|
-
import
|
|
4
|
+
import NW, { createPortal } from 'react-dom';
|
|
5
5
|
import so from 'clsx';
|
|
6
6
|
import { parseToHsl, darken, hslToColorString, lighten } from 'polished';
|
|
7
7
|
import { FileTrigger, Button } from 'react-aria-components';
|
|
@@ -28,12 +28,12 @@ import { Popover } from 'react-tiny-popover';
|
|
|
28
28
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
29
29
|
import * as pr from 'zod';
|
|
30
30
|
import { z } from 'zod';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
31
|
+
import mj from 'react-use/lib/useMeasure';
|
|
32
|
+
import dj from 'react-use/lib/useScroll';
|
|
33
33
|
import Ro from 'dayjs';
|
|
34
34
|
import Ji from 'react-modal-sheet';
|
|
35
|
-
import
|
|
36
|
-
import
|
|
35
|
+
import yR from 'react-insta-stories';
|
|
36
|
+
import DX 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,15 +49,15 @@ 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
|
|
53
|
-
import
|
|
52
|
+
import XW from 'dayjs/plugin/relativeTime';
|
|
53
|
+
import RW 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 NS=Object.create;var r0=Object.defineProperty,kS=Object.defineProperties,ES=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyDescriptors,BS=Object.getOwnPropertyNames,um=Object.getOwnPropertySymbols,LS=Object.getPrototypeOf,n0=Object.prototype.hasOwnProperty,N4=Object.prototype.propertyIsEnumerable;var T4=(e,t,o)=>t in e?r0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))n0.call(t,o)&&T4(e,o,t[o]);if(um)for(var o of um(t))N4.call(t,o)&&T4(e,o,t[o]);return e},S=(e,t)=>kS(e,AS(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)n0.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&um)for(var r of um(e))t.indexOf(r)<0&&N4.call(e,r)&&(o[r]=e[r]);return o};var DS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var VS=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of BS(t))!n0.call(e,n)&&n!==o&&r0(e,n,{get:()=>t[n],enumerable:!(r=ES(t,n))||r.enumerable});return e};var OS=(e,t,o)=>(o=e!=null?NS(LS(e)):{},VS(!e||!e.__esModule?r0(o,"default",{value:e,enumerable:!0}):o,e));var i0=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var Qt=(e,t,o)=>(i0(e,t,"read from private field"),o?o.call(e):t.get(e)),Ot=(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);},yn=(e,t,o,r)=>(i0(e,t,"write to private field"),t.set(e,o),o);var Io=(e,t,o)=>(i0(e,t,"access private method"),o);var M=(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 B4=DS((
|
|
60
|
+
var NS=Object.create;var r0=Object.defineProperty,kS=Object.defineProperties,ES=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyDescriptors,BS=Object.getOwnPropertyNames,um=Object.getOwnPropertySymbols,LS=Object.getPrototypeOf,n0=Object.prototype.hasOwnProperty,N4=Object.prototype.propertyIsEnumerable;var T4=(e,t,o)=>t in e?r0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))n0.call(t,o)&&T4(e,o,t[o]);if(um)for(var o of um(t))N4.call(t,o)&&T4(e,o,t[o]);return e},S=(e,t)=>kS(e,AS(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)n0.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&um)for(var r of um(e))t.indexOf(r)<0&&N4.call(e,r)&&(o[r]=e[r]);return o};var DS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var VS=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of BS(t))!n0.call(e,n)&&n!==o&&r0(e,n,{get:()=>t[n],enumerable:!(r=ES(t,n))||r.enumerable});return e};var OS=(e,t,o)=>(o=e!=null?NS(LS(e)):{},VS(!e||!e.__esModule?r0(o,"default",{value:e,enumerable:!0}):o,e));var i0=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var Qt=(e,t,o)=>(i0(e,t,"read from private field"),o?o.call(e):t.get(e)),Ot=(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);},yn=(e,t,o,r)=>(i0(e,t,"write to private field"),t.set(e,o),o);var Io=(e,t,o)=>(i0(e,t,"access private method"),o);var M=(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 B4=DS((xoe,A4)=>{A4.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 Ct=function(){return Ct=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},Ct.apply(this,arguments)};function hn(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 k4(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var HS=/^((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)-.*))$/,E4=k4(function(e){return HS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});OS(B4());var L4={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 qr=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",W4="active",bm="data-styled-version",ya="6.1.11",h0=`/*!sc*/
|
|
61
61
|
`,_m=typeof window!="undefined"&&"HTMLElement"in window,ZS=!!(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 D4=/invalid hook call/i,fm=new Set,qS=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
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];D4.test(a)?(i=!1,fm.delete(r)):n.apply(void 0,hn([a],s,!1));},useRef(),i&&!fm.has(r)&&(console.warn(r),fm.add(r));}catch(a){D4.test(a.message)&&fm.delete(r);}finally{console.error=n;}}},Mm=Object.freeze([]),ha=Object.freeze({});function YS(e,t,o){return o===void 0&&(o=ha),e.theme!==o.theme&&e.theme||t||o.theme}var m0=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"]),WS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,QS=/(^-|-$)/g;function V4(e){return e.replace(WS,"-").replace(QS,"")}var KS=/(a)(d)/gi,gm=52,O4=function(e){return String.fromCharCode(e+(e>25?39:97))};function d0(e){var t,o="";for(t=Math.abs(e);t>gm;t=t/gm|0)o=O4(t%gm)+o;return (O4(t%gm)+o).replace(KS,"$1-$2")}var a0,Q4=5381,fi=function(e,t){for(var o=t.length;o;)e=33*e^t.charCodeAt(--o);return e},K4=function(e){return fi(Q4,e)};function J4(e){return d0(K4(e)>>>0)}function X4(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function s0(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var R4=typeof Symbol=="function"&&Symbol.for,e6=R4?Symbol.for("react.memo"):60115,JS=R4?Symbol.for("react.forward_ref"):60112,XS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eT=((a0={})[JS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a0[e6]=t6,a0);function H4(e){return ("type"in(t=e)&&t.type.$$typeof)===e6?t6:"$$typeof"in e?eT[e.$$typeof]:XS;var t;}var tT=Object.defineProperty,oT=Object.getOwnPropertyNames,U4=Object.getOwnPropertySymbols,rT=Object.getOwnPropertyDescriptor,nT=Object.getPrototypeOf,z4=Object.prototype;function o6(e,t,o){if(typeof t!="string"){if(z4){var r=nT(t);r&&r!==z4&&o6(e,r,o);}var n=oT(t);U4&&(n=n.concat(U4(t)));for(var i=H4(e),a=H4(t),s=0;s<n.length;++s){var l=n[s];if(!(l in RS||o&&o[l]||a&&l in a||i&&l in i)){var c=rT(t,l);try{tT(e,l,c);}catch(p){}}}}return e}function yi(e){return typeof e=="function"}function C0(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 Ca(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function c0(e,t,o){if(o===void 0&&(o=!1),!o&&!Ca(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=c0(e[r],t[r]);else if(Ca(t))for(var r in t)e[r]=c0(e[r],t[r]);return e}function v0(e,t){Object.defineProperty(e,"toString",{value:t});}var iT=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
@@ -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 aT(){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 no(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(aT.apply(void 0,hn([iT[e]],t,!1)).trim())}var sT=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 no(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(h0);return o},e}(),lT=1<<30,vm=new Map,Im=new Map,xm=1,ym=function(e){if(vm.has(e))return vm.get(e);for(;Im.has(xm);)xm++;var t=xm++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>lT))throw no(16,"".concat(t));return vm.set(e,t),Im.set(t,e),t},mT=function(e,t){xm=t+1,vm.set(e,t),Im.set(t,e);},dT="style[".concat(qr,"][").concat(bm,'="').concat(ya,'"]'),cT=new RegExp("^".concat(qr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pT=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);},uT=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(h0),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(cT);if(l){var c=0|parseInt(l[1],10),p=l[2];c!==0&&(mT(p,c),pT(e,p,l[3]),e.getTag().insertRules(c,n)),n.length=0;}else n.push(s);}}};function p0(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var r6=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(qr,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(qr,W4),r.setAttribute(bm,ya);var a=p0();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},fT=function(){function e(t){this.element=r6(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 no(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}(),gT=function(){function e(t){this.element=r6(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}(),yT=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}(),j4=_m,hT={isServer:!_m,useCSSOMInjection:!ZS},p1=function(){function e(t,o,r){t===void 0&&(t=ha),o===void 0&&(o={});var n=this;this.options=Ct(Ct({},hT),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_m&&j4&&(j4=!1,function(i){for(var a=document.querySelectorAll(dT),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(qr)!==W4&&(uT(i,c),c.parentNode&&c.parentNode.removeChild(c));}}(this)),v0(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",c=function(u){var f=function(v){return Im.get(v)}(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(qr,".g").concat(u,'[id="').concat(f,'"]'),y="";g!==void 0&&g.forEach(function(v){v.length>0&&(y+="".concat(v,","));}),l+="".concat(h).concat(C,'{content:"').concat(y,'"}').concat(h0);},p=0;p<s;p++)c(p);return l}(n)});}return e.registerId=function(t){return ym(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(Ct(Ct({},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 yT(n):r?new fT(n):new gT(n)}(this.options),new sT(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(ym(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(ym(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(ym(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),CT=/&/g,vT=/^\s*\/\/.*$/gm;function n6(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=n6(o.children,t)),o})}function i6(e){var t,o,r,n=ha,i=n.options,a=i===void 0?ha:i,s=n.plugins,l=s===void 0?Mm: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===io.RULESET&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(CT,o).replace(r,c));}),a.prefix&&p.push(io.prefixer),p.push(io.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(vT,""),v=io.compile(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);a.namespace&&(v=n6(v,a.namespace));var x=[];return io.serialize(v,io.middleware(p.concat(io.rulesheet(function(_){return x.push(_)})))),x};return u.hash=l.length?l.reduce(function(f,g){return g.name||no(15),fi(f,g.name)},Q4).toString():"",u}var xT=new p1,u0=i6(),x0=J.createContext({shouldForwardProp:void 0,styleSheet:xT,stylis:u0});x0.Consumer;J.createContext(void 0);function f0(){return useContext(x0)}var g0=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=u0);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,v0(this,function(){throw no(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=u0),this.name+t.hash},e}(),wT=function(e){return e>="A"&&e<="Z"};function G4(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;wT(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var a6=function(e){return e==null||e===!1||e===""},s6=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!a6(i)&&(Array.isArray(i)&&i.isCss||yi(i)?r.push("".concat(G4(n),":"),i,";"):Ca(i)?r.push.apply(r,hn(hn(["".concat(n," {")],s6(i),!1),["}"],!1)):r.push("".concat(G4(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in L4||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Cn(e,t,o,r){if(a6(e))return [];if(C0(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 g0||Ca(n)||n===null||console.error("".concat(X4(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.")),Cn(n,t,o,r)}var i;return e instanceof g0?o?(e.inject(o,r),[e.getName(r)]):[e]:Ca(e)?s6(e):Array.isArray(e)?Array.prototype.concat.apply(Mm,e.map(function(a){return Cn(a,t,o,r)})):[e.toString()]}function l6(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(yi(o)&&!C0(o))return !1}return !0}var _T=K4(ya),MT=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&l6(t),this.componentId=o,this.baseHash=fi(_T,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(Cn(this.rules,t,o,r)),a=d0(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(Cn(u,t,o,r));l=fi(l,f+p),c+=f;}}if(c){var g=d0(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}(),wm=J.createContext(void 0);wm.Consumer;function m6(e){var t=J.useContext(wm),o=useMemo(function(){return function(r,n){if(!r)throw no(14);if(yi(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw no(7);return i}if(Array.isArray(r)||typeof r!="object")throw no(8);return n?Ct(Ct({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?J.createElement(wm.Provider,{value:o},e.children):null}var l0={},$4=new Set;function PT(e,t,o){var r=C0(e),n=e,i=!s0(e),a=t.attrs,s=a===void 0?Mm:a,l=t.componentId,c=l===void 0?function(P,b){var w=typeof P!="string"?"sc":V4(P);l0[w]=(l0[w]||0)+1;var T="".concat(w,"-").concat(J4(ya+w+l0[w]));return b?"".concat(b,"-").concat(T):T}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(P){return s0(P)?"styled.".concat(P):"Styled(".concat(X4(P),")")}(e):p,f=t.displayName&&t.componentId?"".concat(V4(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(P,b){return C(P,b)&&y(P,b)};}else h=C;}var v=new MT(o,f,r?n.componentStyle:void 0);function x(P,b){return function(w,T,k){var N=w.attrs,D=w.componentStyle,q=w.defaultProps,$=w.foldedComponentIds,G=w.styledComponentId,O=w.target,ee=J.useContext(wm),X=f0(),L=w.shouldForwardProp||X.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(G);var H=YS(T,ee,q)||ha,W=function(K,me,de){for(var be,ht=Ct(Ct({},me),{className:void 0,theme:de}),wr=0;wr<K.length;wr+=1){var _r=yi(be=K[wr])?be(ht):be;for(var ro in _r)ht[ro]=ro==="className"?gi(ht[ro],_r[ro]):ro==="style"?Ct(Ct({},ht[ro]),_r[ro]):_r[ro];}return me.className&&(ht.className=gi(ht.className,me.className)),ht}(N,T,H),Z=W.as||O,ye={};for(var z in W)W[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&W.theme===H||(z==="forwardedAs"?ye.as=W.forwardedAs:L&&!L(z,Z)||(ye[z]=W[z],L||process.env.NODE_ENV!=="development"||E4(z)||$4.has(z)||!m0.has(Z)||($4.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(K,me){var de=f0(),be=K.generateAndInjectStyles(me,de.styleSheet,de.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(be),be}(D,W);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(E);var F=gi($,G);return E&&(F+=" "+E),W.className&&(F+=" "+W.className),ye[s0(Z)&&!m0.has(Z)?"class":"className"]=F,ye.ref=k,createElement(Z,ye)}(_,P,b)}x.displayName=u;var _=J.forwardRef(x);return _.attrs=g,_.componentStyle=v,_.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(P){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++)c0(b,N[k],!0);return b}({},n.defaultProps,P):P;}}),process.env.NODE_ENV!=="production"&&(qS(u,f),_.warnTooManyClasses=function(P,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(P).concat(N,`.
|
|
104
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function aT(){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 no(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(aT.apply(void 0,hn([iT[e]],t,!1)).trim())}var sT=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 no(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(h0);return o},e}(),lT=1<<30,vm=new Map,Im=new Map,xm=1,ym=function(e){if(vm.has(e))return vm.get(e);for(;Im.has(xm);)xm++;var t=xm++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>lT))throw no(16,"".concat(t));return vm.set(e,t),Im.set(t,e),t},mT=function(e,t){xm=t+1,vm.set(e,t),Im.set(t,e);},dT="style[".concat(qr,"][").concat(bm,'="').concat(ya,'"]'),cT=new RegExp("^".concat(qr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),pT=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);},uT=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(h0),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(cT);if(l){var c=0|parseInt(l[1],10),p=l[2];c!==0&&(mT(p,c),pT(e,p,l[3]),e.getTag().insertRules(c,n)),n.length=0;}else n.push(s);}}};function p0(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var r6=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(qr,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(qr,W4),r.setAttribute(bm,ya);var a=p0();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},fT=function(){function e(t){this.element=r6(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 no(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}(),gT=function(){function e(t){this.element=r6(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}(),yT=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}(),j4=_m,hT={isServer:!_m,useCSSOMInjection:!ZS},p1=function(){function e(t,o,r){t===void 0&&(t=ha),o===void 0&&(o={});var n=this;this.options=Ct(Ct({},hT),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_m&&j4&&(j4=!1,function(i){for(var a=document.querySelectorAll(dT),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(qr)!==W4&&(uT(i,c),c.parentNode&&c.parentNode.removeChild(c));}}(this)),v0(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",c=function(u){var f=function(v){return Im.get(v)}(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(qr,".g").concat(u,'[id="').concat(f,'"]'),y="";g!==void 0&&g.forEach(function(v){v.length>0&&(y+="".concat(v,","));}),l+="".concat(h).concat(C,'{content:"').concat(y,'"}').concat(h0);},p=0;p<s;p++)c(p);return l}(n)});}return e.registerId=function(t){return ym(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(Ct(Ct({},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 yT(n):r?new fT(n):new gT(n)}(this.options),new sT(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(ym(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(ym(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(ym(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),CT=/&/g,vT=/^\s*\/\/.*$/gm;function n6(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=n6(o.children,t)),o})}function i6(e){var t,o,r,n=ha,i=n.options,a=i===void 0?ha:i,s=n.plugins,l=s===void 0?Mm: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===io.RULESET&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(CT,o).replace(r,c));}),a.prefix&&p.push(io.prefixer),p.push(io.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(vT,""),v=io.compile(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);a.namespace&&(v=n6(v,a.namespace));var x=[];return io.serialize(v,io.middleware(p.concat(io.rulesheet(function(_){return x.push(_)})))),x};return u.hash=l.length?l.reduce(function(f,g){return g.name||no(15),fi(f,g.name)},Q4).toString():"",u}var xT=new p1,u0=i6(),x0=J.createContext({shouldForwardProp:void 0,styleSheet:xT,stylis:u0});x0.Consumer;J.createContext(void 0);function f0(){return useContext(x0)}var g0=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=u0);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,v0(this,function(){throw no(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=u0),this.name+t.hash},e}(),wT=function(e){return e>="A"&&e<="Z"};function G4(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;wT(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var a6=function(e){return e==null||e===!1||e===""},s6=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!a6(i)&&(Array.isArray(i)&&i.isCss||yi(i)?r.push("".concat(G4(n),":"),i,";"):Ca(i)?r.push.apply(r,hn(hn(["".concat(n," {")],s6(i),!1),["}"],!1)):r.push("".concat(G4(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in L4||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Cn(e,t,o,r){if(a6(e))return [];if(C0(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 g0||Ca(n)||n===null||console.error("".concat(X4(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.")),Cn(n,t,o,r)}var i;return e instanceof g0?o?(e.inject(o,r),[e.getName(r)]):[e]:Ca(e)?s6(e):Array.isArray(e)?Array.prototype.concat.apply(Mm,e.map(function(a){return Cn(a,t,o,r)})):[e.toString()]}function l6(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(yi(o)&&!C0(o))return !1}return !0}var _T=K4(ya),MT=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&l6(t),this.componentId=o,this.baseHash=fi(_T,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(Cn(this.rules,t,o,r)),a=d0(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(Cn(u,t,o,r));l=fi(l,f+p),c+=f;}}if(c){var g=d0(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}(),wm=J.createContext(void 0);wm.Consumer;function m6(e){var t=J.useContext(wm),o=useMemo(function(){return function(r,n){if(!r)throw no(14);if(yi(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw no(7);return i}if(Array.isArray(r)||typeof r!="object")throw no(8);return n?Ct(Ct({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?J.createElement(wm.Provider,{value:o},e.children):null}var l0={},$4=new Set;function PT(e,t,o){var r=C0(e),n=e,i=!s0(e),a=t.attrs,s=a===void 0?Mm:a,l=t.componentId,c=l===void 0?function(P,b){var w=typeof P!="string"?"sc":V4(P);l0[w]=(l0[w]||0)+1;var T="".concat(w,"-").concat(J4(ya+w+l0[w]));return b?"".concat(b,"-").concat(T):T}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(P){return s0(P)?"styled.".concat(P):"Styled(".concat(X4(P),")")}(e):p,f=t.displayName&&t.componentId?"".concat(V4(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(P,b){return C(P,b)&&y(P,b)};}else h=C;}var v=new MT(o,f,r?n.componentStyle:void 0);function x(P,b){return function(w,T,k){var N=w.attrs,D=w.componentStyle,q=w.defaultProps,$=w.foldedComponentIds,G=w.styledComponentId,O=w.target,ee=J.useContext(wm),X=f0(),L=w.shouldForwardProp||X.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(G);var H=YS(T,ee,q)||ha,Q=function(K,me,de){for(var be,ht=Ct(Ct({},me),{className:void 0,theme:de}),wr=0;wr<K.length;wr+=1){var _r=yi(be=K[wr])?be(ht):be;for(var ro in _r)ht[ro]=ro==="className"?gi(ht[ro],_r[ro]):ro==="style"?Ct(Ct({},ht[ro]),_r[ro]):_r[ro];}return me.className&&(ht.className=gi(ht.className,me.className)),ht}(N,T,H),Z=Q.as||O,he={};for(var z in Q)Q[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&Q.theme===H||(z==="forwardedAs"?he.as=Q.forwardedAs:L&&!L(z,Z)||(he[z]=Q[z],L||process.env.NODE_ENV!=="development"||E4(z)||$4.has(z)||!m0.has(Z)||($4.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(K,me){var de=f0(),be=K.generateAndInjectStyles(me,de.styleSheet,de.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(be),be}(D,Q);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses(E);var F=gi($,G);return E&&(F+=" "+E),Q.className&&(F+=" "+Q.className),he[s0(Z)&&!m0.has(Z)?"class":"className"]=F,he.ref=k,createElement(Z,he)}(_,P,b)}x.displayName=u;var _=J.forwardRef(x);return _.attrs=g,_.componentStyle=v,_.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(P){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++)c0(b,N[k],!0);return b}({},n.defaultProps,P):P;}}),process.env.NODE_ENV!=="production"&&(qS(u,f),_.warnTooManyClasses=function(P,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(P).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 => ({
|
|
@@ -175,7 +175,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`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`})),Em=YT;function WT(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=WT;function QT(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=QT;function KT(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 L0=KT;function JT(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 F0=JT;var XT=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)},fe=XT;var RT=o=>{var r=o,{color:e="#FFB400"}=r,t=I(r,["color"]);return J.createElement(fe,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=RT;var eN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},D0=eN;var tN=o=>{var r=o,{color:e="#00BED4"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},V0=tN;var oN=o=>{var r=o,{color:e="#999"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},O0=oN;var rN=o=>{var r=o,{color:e="#0E86FE"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},H0=rN;var nN=o=>{var r=o,{color:e="#5C6070"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},U0=nN;var iN=o=>{var r=o,{color:e="#1E3868"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},z0=iN;var aN=o=>{var r=o,{color:e="#999"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},xa=aN;var sN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},j0=sN;var lN=o=>{var r=o,{color:e="#FFB400"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},G0=lN;var mN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},$0=mN;var dN=o=>{var r=o,{color:e="#5856D6"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},Lm=dN;var cN=o=>{var r=o,{color:e="#F02B04"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},Z0=cN;var pN=o=>{var r=o,{color:e="#FF742F"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},Fm=pN;var uN=o=>{var r=o,{color:e="#FF742F"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},W0=uN;var fN=o=>{var r=o,{color:e="#F14B5F"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},Q0=fN;var gN=o=>{var r=o,{color:e="#795545"}=r,t=I(r,["color"]);return J.createElement(fe,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"}))},K0=gN;var yN=({color:e="#27B740"})=>J.createElement(fe,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"})),Dm=yN;var hN=({color:e="#5856D6"})=>J.createElement(fe,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"})),J0=hN;var CN=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`})),Em=YT;function WT(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=WT;function QT(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=QT;function KT(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 L0=KT;function JT(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 F0=JT;var XT=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=XT;var RT=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"}))},g1=RT;var eN=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"}))},D0=eN;var tN=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"}))},V0=tN;var oN=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"}))},O0=oN;var rN=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"}))},H0=rN;var nN=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"}))},U0=nN;var iN=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"}))},z0=iN;var aN=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"}))},xa=aN;var sN=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"}))},j0=sN;var lN=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"}))},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:"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"}))},$0=mN;var dN=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"}))},Lm=dN;var cN=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"}))},Z0=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:"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"}))},Fm=pN;var uN=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"}))},W0=uN;var fN=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"}))},Q0=fN;var gN=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"}))},K0=gN;var yN=({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"})),Dm=yN;var hN=({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"})),J0=hN;var CN=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=CN;var vN=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
|
|
@@ -297,7 +297,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
297
297
|
margin-right: 8px;
|
|
298
298
|
`,WN=m(ct).attrs({width:18,height:18})`
|
|
299
299
|
margin-right: 8px;
|
|
300
|
-
`,lp=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),QN=3e3,b8=({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)||QN);};return J.createElement(lp.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(S(d({},i),{icon:J.createElement(qN,null)})),info:i=>n(S(d({},i),{icon:J.createElement(YN,null)})),error:i=>n(S(d({},i),{icon:J.createElement(WN,null)})),show:i=>n(i)}}},e)},I8=()=>{let{notifications:e}=useContext(lp);return e},
|
|
300
|
+
`,lp=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),QN=3e3,b8=({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)||QN);};return J.createElement(lp.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(S(d({},i),{icon:J.createElement(qN,null)})),info:i=>n(S(d({},i),{icon:J.createElement(YN,null)})),error:i=>n(S(d({},i),{icon:J.createElement(WN,null)})),show:i=>n(i)}}},e)},I8=()=>{let{notifications:e}=useContext(lp);return e},Ce=()=>{let{notificationFunction:e}=useContext(lp);return e};var ba=({children:e})=>createPortal(e,document.body);m(x1).attrs({width:18,height:18})`
|
|
301
301
|
margin-right: 8px;
|
|
302
302
|
`;m(Ht).attrs({width:18,height:18})`
|
|
303
303
|
margin-right: 8px;
|
|
@@ -397,7 +397,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
397
397
|
color: ${({theme:e})=>e.palette.neutral.shade2};
|
|
398
398
|
}
|
|
399
399
|
${({active:e,theme:t})=>e&&`color: ${t.palette.primary.shade1};`}
|
|
400
|
-
`;var S8=createContext({confirmData:null,confirm:()=>{},info:()=>{},closeConfirm:()=>{}}),
|
|
400
|
+
`;var S8=createContext({confirmData:null,confirm:()=>{},info:()=>{},closeConfirm:()=>{}}),ue=()=>useContext(S8),T8=({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:ce}));return J.createElement(S8.Provider,{value:{confirmData:t,confirm:n,info:i,closeConfirm:r}},e)};var k8=m(wo).attrs({width:20,height:20})`
|
|
401
401
|
padding: 0 6px;
|
|
402
402
|
cursor: pointer;
|
|
403
403
|
margin-left: auto;
|
|
@@ -481,7 +481,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
481
481
|
}
|
|
482
482
|
`,z8=m(Y)`
|
|
483
483
|
margin-right: 10px;
|
|
484
|
-
`;var sk=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=U8,cancelText:s="Cancel",CancelButton:l=z8,onCancel:c,type:p="confirm"})=>J.createElement(V8,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:J.createElement(H8,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(O8,null,r)),j8=()=>{let{confirmData:e,closeConfirm:t}=
|
|
484
|
+
`;var sk=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=U8,cancelText:s="Cancel",CancelButton:l=z8,onCancel:c,type:p="confirm"})=>J.createElement(V8,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:J.createElement(H8,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(O8,null,r)),j8=()=>{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(ba,null,J.createElement(sk,S(d({},e),{onCancel:o,onOk:r})))};var Hm={icon__container:"Lr",icon:"Tr",notifications:"R",notificationContainer:"A",appear:"M"};var mk=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"}))},$8=mk;var dk=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
|
|
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
|
|
@@ -573,7 +573,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
573
573
|
--pseudo-element-display: none; /* Disable animation */
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
`;var Jm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Xm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Rm=()=>useContext(Jm),ne=Rm;var E7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r})=>({unsubscribe:()=>{}})}),Cp=()=>useContext(E7);function vp({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(E7.Provider,{value:{subscribe:a}},e)}var A7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),bp=()=>useContext(A7);function Ip({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(A7.Provider,{value:{subscribe:a}},e)}var PE=createContext({fetch:o=>M(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function wp({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(PE.Provider,{value:{fetch:n}},e)}var F7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),D7=()=>useContext(F7);function _p({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(F7.Provider,{value:{subscribe:r}},e)}function Mp({children:e}){return J.createElement(vp,null,J.createElement(Ip,null,J.createElement(_p,null,J.createElement(wp,null,e))))}function DE({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=bp(),[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 bt=DE;function Mi({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=D7(),s=useRef(null);return bt({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 Pi({userId:e,level:t,shouldSubscribe:o=()=>!0,callback:r}){return Mi({fetcher:UserRepository.getUser,params:e,callback:r,shouldSubscribe:()=>!!e&&o(),getSubscribedTopic:({data:n})=>getUserTopic(n,t)})}var GE=e=>(Pi({userId:e,level:SubscriptionLevels.USER}),bt({fetcher:UserRepository.getUser,params:e,shouldCall:()=>!!e})),le=GE;var bn=Object.freeze({MEMBER:"member",MODERATOR:"moderator",SUPER_MODERATOR:"super-moderator",COMMUNITY_MODERATOR:"community-moderator",CHANNEL_MODERATOR:"channel-moderator"}),In=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"}),O7=30,t2=Object.freeze({Uploaded:"uploaded",Transcoding:"transcoding",Transcoded:"transcoded",TranscodeFailed:"transcodeFailed"}),H7="video/mp4",wn=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 z7={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"&&(z7={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 Pp=createContext(z7),Q=()=>useContext(Pp);function Sp({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}=Ce(),v=e!=null?e:y,x=useCallback(()=>M(this,null,function*(){return h?new Promise(L=>{v(S(d({},h),{onSuccess:()=>{C==null||C(void 0),L(!0);},onCancel:()=>L(!1)}));}):!0}),[e,h,C]),_=useCallback(L=>M(this,null,function*(){(yield x())&&f(H=>[...H,L]);}),[x]),P=()=>{f(L=>L.length>1?L.slice(0,-1):L);},b=o?L=>M(this,null,function*(){(yield x())&&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,_]),D=useCallback((L,H)=>{let W={type:H!=null?H:"userfeed",userId:L};if(b)return b(W);if(i)return i(L);_(W);},[b,i,_]),q=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 W={type:"communityedit",communityId:L,tab:H};if(b)return b(W);if(s)return s(L,{tab:H});_(W);},[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(),P();},[b,p,P]),ee=useCallback((L,H,W)=>{let Z={type:"viewstory",targetId:L,storyType:H,targetIds:W};if(b)return b(Z);_(Z);},[b,_]),X=useCallback((L,H,W,Z)=>{let ye={type:"draftpage",targetId:L,targetType:H,mediaType:W,storyType:Z};if(b)return b(ye);_(ye);},[b,_]);return J.createElement(Pp.Provider,{value:{page:g,onChangePage:w,onClickCategory:N,onClickCommunity:T,onClickUser:D,onClickStory:ee,onCommunityCreated:k,onEditCommunity:$,onEditUser:q,onMessageUser:G,onBack:O,goToDraftStoryPage:X,setNavigationBlocker:C}},t)}var Tp=()=>useContext(Xm),Ve=Tp;var j7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),kp=()=>useContext(j7);function Ep({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Ve();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(j7.Provider,{value:{subscribe:a}},e)}var G7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),Bp=()=>useContext(G7);function Lp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Ve();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(G7.Provider,{value:{subscribe:a}},e)}var iA=createContext({fetch:o=>M(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Fp({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(iA.Provider,{value:{fetch:n}},e)}var q7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),Y7=()=>useContext(q7);function Dp({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(q7.Provider,{value:{subscribe:r}},e)}function Vp({children:e}){return J.createElement(Ep,null,J.createElement(Lp,null,J.createElement(Dp,null,J.createElement(Fp,null,e))))}var W7=createContext({}),V=e=>useContext(W7)[e]||null;function Op({children:e,config:t}){return J.createElement(W7.Provider,{value:t},e)}var gA=e=>bt({fetcher:PostRepository.getPost,params:e,shouldCall:()=>!!e}),Oo=gA;var K7=j`
|
|
576
|
+
`;var Jm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Xm=createContext({client:null,currentUserId:void 0,userRoles:[]});var Rm=()=>useContext(Jm),ne=Rm;var E7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r})=>({unsubscribe:()=>{}})}),Cp=()=>useContext(E7);function vp({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(E7.Provider,{value:{subscribe:a}},e)}var A7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),bp=()=>useContext(A7);function Ip({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(A7.Provider,{value:{subscribe:a}},e)}var PE=createContext({fetch:o=>M(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function wp({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(PE.Provider,{value:{fetch:n}},e)}var F7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),D7=()=>useContext(F7);function _p({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(F7.Provider,{value:{subscribe:r}},e)}function Mp({children:e}){return J.createElement(vp,null,J.createElement(Ip,null,J.createElement(_p,null,J.createElement(wp,null,e))))}function DE({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=bp(),[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 bt=DE;function Mi({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=()=>!0,getSubscribedTopic:i}){let{subscribe:a}=D7(),s=useRef(null);return bt({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 Pi({userId:e,level:t,shouldSubscribe:o=()=>!0,callback:r}){return Mi({fetcher:UserRepository.getUser,params:e,callback:r,shouldSubscribe:()=>!!e&&o(),getSubscribedTopic:({data:n})=>getUserTopic(n,t)})}var GE=e=>(Pi({userId:e,level:SubscriptionLevels.USER}),bt({fetcher:UserRepository.getUser,params:e,shouldCall:()=>!!e})),le=GE;var bn=Object.freeze({MEMBER:"member",MODERATOR:"moderator",SUPER_MODERATOR:"super-moderator",COMMUNITY_MODERATOR:"community-moderator",CHANNEL_MODERATOR:"channel-moderator"}),In=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"}),O7=30,t2=Object.freeze({Uploaded:"uploaded",Transcoding:"transcoding",Transcoded:"transcoded",TranscodeFailed:"transcodeFailed"}),H7="video/mp4",wn=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 z7={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"&&(z7={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 Pp=createContext(z7),W=()=>useContext(Pp);function Sp({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(),v=e!=null?e:y,x=useCallback(()=>M(this,null,function*(){return h?new Promise(L=>{v(S(d({},h),{onSuccess:()=>{C==null||C(void 0),L(!0);},onCancel:()=>L(!1)}));}):!0}),[e,h,C]),_=useCallback(L=>M(this,null,function*(){(yield x())&&f(H=>[...H,L]);}),[x]),P=()=>{f(L=>L.length>1?L.slice(0,-1):L);},b=o?L=>M(this,null,function*(){(yield x())&&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,_]),D=useCallback((L,H)=>{let Q={type:H!=null?H:"userfeed",userId:L};if(b)return b(Q);if(i)return i(L);_(Q);},[b,i,_]),q=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 Q={type:"communityedit",communityId:L,tab:H};if(b)return b(Q);if(s)return s(L,{tab:H});_(Q);},[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(),P();},[b,p,P]),ee=useCallback((L,H,Q)=>{let Z={type:"viewstory",targetId:L,storyType:H,targetIds:Q};if(b)return b(Z);_(Z);},[b,_]),X=useCallback((L,H,Q,Z)=>{let he={type:"draftpage",targetId:L,targetType:H,mediaType:Q,storyType:Z};if(b)return b(he);_(he);},[b,_]);return J.createElement(Pp.Provider,{value:{page:g,onChangePage:w,onClickCategory:N,onClickCommunity:T,onClickUser:D,onClickStory:ee,onCommunityCreated:k,onEditCommunity:$,onEditUser:q,onMessageUser:G,onBack:O,goToDraftStoryPage:X,setNavigationBlocker:C}},t)}var Tp=()=>useContext(Xm),Ve=Tp;var j7=createContext({subscribe:({fetcher:e,params:t,callback:o,config:r,refresh:n=!1})=>({unsubscribe:()=>{}})}),kp=()=>useContext(j7);function Ep({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Ve();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(j7.Provider,{value:{subscribe:a}},e)}var G7=createContext({subscribe:({fetcher:e,params:t,callback:o=()=>{},options:r})=>({unsubscribe:()=>{}})}),Bp=()=>useContext(G7);function Lp({children:e}){let t=useRef({}),o=useRef({}),r=useRef({}),{currentUserId:n}=Ve();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(G7.Provider,{value:{subscribe:a}},e)}var iA=createContext({fetch:o=>M(void 0,[o],function*({fetchFn:e,params:t}){return yield Promise.resolve({})})});function Fp({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(iA.Provider,{value:{fetch:n}},e)}var q7=createContext({subscribe:({topic:e,callback:t})=>({unsubscribe:()=>{}})}),Y7=()=>useContext(q7);function Dp({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(q7.Provider,{value:{subscribe:r}},e)}function Vp({children:e}){return J.createElement(Ep,null,J.createElement(Lp,null,J.createElement(Dp,null,J.createElement(Fp,null,e))))}var W7=createContext({}),V=e=>useContext(W7)[e]||null;function Op({children:e,config:t}){return J.createElement(W7.Provider,{value:t},e)}var gA=e=>bt({fetcher:PostRepository.getPost,params:e,shouldCall:()=>!!e}),Oo=gA;var K7=j`
|
|
577
577
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
578
578
|
fill: ${({theme:e})=>e.palette.primary.main};
|
|
579
579
|
`,J7=m(Ee)`
|
|
@@ -585,7 +585,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
585
585
|
fill: #a5a9b5;
|
|
586
586
|
`,yA=m(X7)`
|
|
587
587
|
${K7}
|
|
588
|
-
`,R7=({isLiked:e})=>e?J.createElement(yA,null):J.createElement(X7,null);var CA=({onClick:e,isActive:t,isDisabled:o})=>J.createElement(J7,{active:t,disabled:o,"data-qa-anchor":t?"post-liked-button":"post-like-button",onClick:e},J.createElement(R7,{isLiked:t})," ",J.createElement(FormattedMessage,{id:t?"post.liked":"post.like"})),ef=e=>{let t=V("PostLikeButton");return t?t(e):J.createElement(CA,d({},e))};var lo="like";function of(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(lo)}var IA=({postId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=Oo(e),[n,i]=useState(of(r));useEffect(()=>{i(of(r));},[r==null?void 0:r.myReactions]);let a=()=>M(void 0,null,function*(){r!=null&&(n?(yield ReactionRepository.removeReaction("post",r.postId,lo),o==null||o(r),i(!n)):(yield ReactionRepository.addReaction("post",r.postId,lo),t==null||t(r),i(!n)));});return J.createElement(ef,{isActive:n,isDisabled:r==null,onClick:a})},rf=IA;var _A=e=>bt({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:()=>!!e}),Ye=_A;var kA=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r,remoteMentions:n=[]})=>{let i=t==="community",a=Ye(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:P,mentions:b})=>{l(P),p(_),f(b);},h=()=>{l(""),p(""),f([]);},C=()=>{l(o||""),p(r),f([]);},y=useCallback(_=>M(void 0,null,function*(){let P,b=_||"",w;return (b.match(/^@$/)||b==="")&&(b=void 0),i&&!(a!=null&&a.isPublic)&&e!=null?P=yield new Promise(T=>{w==null||w(),w=CommunityRepository.Membership.getMembers({communityId:e,search:b,limit:20},k=>{k.loading||T(k.data.map(({user:N})=>N).filter(He));});}):P=yield new Promise(T=>{w==null||w(),w=UserRepository.getUsers({displayName:b,limit:20,sortBy:"displayName"},k=>{k.loading||T(k.data);});}),x7(P)}),[i,a==null?void 0:a.isPublic,e]),{mentionees:v,metadata:x}=useMemo(()=>{let{mentionees:_,metadata:P}=Qm(u);return {mentionees:_,metadata:P}},[u]);return {text:s,markup:c,mentions:u,mentionees:v,metadata:x,onChange:g,clearAll:h,resetState:C,queryMentionees:y}},Ho=kA;var Ti={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"},AA=Ti.REGULAR,Ma={[Ti.BIG]:64,[Ti.REGULAR]:40,[Ti.SMALL]:32,[Ti.TINY]:28},BA=e=>useMemo(()=>e&&Ma[e]?e:AA,[e]),nf=BA;var DA=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(FA,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})}))},
|
|
588
|
+
`,R7=({isLiked:e})=>e?J.createElement(yA,null):J.createElement(X7,null);var CA=({onClick:e,isActive:t,isDisabled:o})=>J.createElement(J7,{active:t,disabled:o,"data-qa-anchor":t?"post-liked-button":"post-like-button",onClick:e},J.createElement(R7,{isLiked:t})," ",J.createElement(FormattedMessage,{id:t?"post.liked":"post.like"})),ef=e=>{let t=V("PostLikeButton");return t?t(e):J.createElement(CA,d({},e))};var lo="like";function of(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(lo)}var IA=({postId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=Oo(e),[n,i]=useState(of(r));useEffect(()=>{i(of(r));},[r==null?void 0:r.myReactions]);let a=()=>M(void 0,null,function*(){r!=null&&(n?(yield ReactionRepository.removeReaction("post",r.postId,lo),o==null||o(r),i(!n)):(yield ReactionRepository.addReaction("post",r.postId,lo),t==null||t(r),i(!n)));});return J.createElement(ef,{isActive:n,isDisabled:r==null,onClick:a})},rf=IA;var _A=e=>bt({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:()=>!!e}),Ye=_A;var kA=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r,remoteMentions:n=[]})=>{let i=t==="community",a=Ye(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:P,mentions:b})=>{l(P),p(_),f(b);},h=()=>{l(""),p(""),f([]);},C=()=>{l(o||""),p(r),f([]);},y=useCallback(_=>M(void 0,null,function*(){let P,b=_||"",w;return (b.match(/^@$/)||b==="")&&(b=void 0),i&&!(a!=null&&a.isPublic)&&e!=null?P=yield new Promise(T=>{w==null||w(),w=CommunityRepository.Membership.getMembers({communityId:e,search:b,limit:20},k=>{k.loading||T(k.data.map(({user:N})=>N).filter(He));});}):P=yield new Promise(T=>{w==null||w(),w=UserRepository.getUsers({displayName:b,limit:20,sortBy:"displayName"},k=>{k.loading||T(k.data);});}),x7(P)}),[i,a==null?void 0:a.isPublic,e]),{mentionees:v,metadata:x}=useMemo(()=>{let{mentionees:_,metadata:P}=Qm(u);return {mentionees:_,metadata:P}},[u]);return {text:s,markup:c,mentions:u,mentionees:v,metadata:x,onChange:g,clearAll:h,resetState:C,queryMentionees:y}},Ho=kA;var Ti={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"},AA=Ti.REGULAR,Ma={[Ti.BIG]:64,[Ti.REGULAR]:40,[Ti.SMALL]:32,[Ti.TINY]:28},BA=e=>useMemo(()=>e&&Ma[e]?e:AA,[e]),nf=BA;var DA=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(FA,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})}))},ye=DA;var VA=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(ye,{circle:!0,width:"100%",height:"100%",style:{display:"block"}}):r)},sf=m(VA)`
|
|
589
589
|
position: relative;
|
|
590
590
|
flex-shrink: 0;
|
|
591
591
|
overflow: hidden;
|
|
@@ -725,7 +725,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
725
725
|
height: 40px;
|
|
726
726
|
padding: 10px 16px;
|
|
727
727
|
margin-left: 12px;
|
|
728
|
-
`;var _B=30,MB=5e4,PB=({className:e,userToReply:t,onSubmit:o,postId:r})=>{let n=Oo(r),{currentUserId:i}=ne(),{info:a}=
|
|
728
|
+
`;var _B=30,MB=5e4,PB=({className:e,userToReply:t,onSubmit:o,postId:r})=>{let n=Oo(r),{currentUserId:i}=ne(),{info:a}=ue(),s=le(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(),v=useRef(null);useEffect(()=>{var w;(w=v.current)==null||w.focus();},[]);let x=()=>{if(c!==""){if(u&&(u==null?void 0:u.length)>_B)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)>MB)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==="",P=t?y({id:"CommentComposeBar.replayTo"})+t:y({id:"CommentComposeBar.saySomething"}),b=y(t?{id:"reply"}:{id:"CommentComposeBar.addComment"});return J.createElement(yf,{className:e},J.createElement(gf,{avatar:l,backgroundImage:De}),J.createElement(hf,{ref:v,"data-qa-anchor":"comment-compose-bar-textarea",placeholder:P,value:p,multiline:!0,mentionAllowed:!0,queryMentionees:C,onChange:w=>h==null?void 0:h(w),onKeyPress:w=>w.key==="Enter"&&x()}),J.createElement(Cf,{"data-qa-anchor":t?"comment-compose-bar-reply-button":"comment-compose-bar-add-comment-button",disabled:_,onClick:x},b))},_n=e=>{let t=V("CommentComposerBar");return t?t(e):J.createElement(PB,d({},e))};var vf=m.div`
|
|
729
729
|
color: ${({theme:e})=>e.palette.neutral.shade1};
|
|
730
730
|
${({theme:e})=>e.typography.body}
|
|
731
731
|
`,xf=m.div`
|
|
@@ -762,7 +762,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
762
762
|
`,EB=({isLiked:e})=>e?J.createElement(kB,null):J.createElement(Mf,null),AB=({onClick:e,isActive:t,isDisabled:o,totalLikes:r})=>J.createElement(NB,{active:t,disabled:o,onClick:e},J.createElement(EB,{isLiked:t})," ",r&&r>0?J.createElement("span",null,r):""),Pf=AB;var BB=({comment:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=!!(e&&e.myReactions&&e.myReactions.includes(lo)),n=(e==null?void 0:e.reactions[lo])||0,i=()=>M(void 0,null,function*(){if(e!=null)try{r?(yield ReactionRepository.removeReaction("comment",e.commentId,lo),o==null||o(e)):(yield ReactionRepository.addReaction("comment",e.commentId,lo),t==null||t(e));}catch(a){console.error("Can't toggle like",a);}});return J.createElement(Pf,{isActive:r,isDisabled:e==null,totalLikes:n,onClick:i})},Nf=e=>{let t=V("CommentLikeButton");return t?t(e):J.createElement(BB,d({},e))};var FB=({commentId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=n2(e);return J.createElement(Nf,{comment:r,onLikeSuccess:t,onUnlikeSuccess:o})},kf=FB;var VB=m.span`
|
|
763
763
|
cursor: pointer;
|
|
764
764
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
765
|
-
`,OB=({children:e,mentionee:t})=>{let{onClickUser:o}=
|
|
765
|
+
`,OB=({children:e,mentionee:t})=>{let{onClickUser:o}=W(),{userId:r}=t;return J.createElement(VB,{"data-qa-anchor":"mention-hilight-tag",onClick:()=>o(r)},e)},i2=OB;var a2=(e,t=[])=>{let o=(e==null?void 0:e.length)||0,r=[],n=(i,a,s)=>{r.push({start:i,end:a,highlight:s});};if(!t||(t==null?void 0:t.length)===0)n(0,o,!1);else {let i=0;t.forEach(a=>{n(i,a.start,!1),n(a.start,a.end,!0),i=a.end;}),n(i,o,!1);}return r};var Ef=m.a`
|
|
766
766
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
767
767
|
text-decoration: none;
|
|
768
768
|
|
|
@@ -954,7 +954,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
954
954
|
border-radius: 4px;
|
|
955
955
|
resize: none;
|
|
956
956
|
${({theme:e})=>e.typography.global}
|
|
957
|
-
`;var pL=8,uL=({text:e,className:t,mentionees:o,maxLines:r=pL})=>{let[n,i]=useState(!1),a=useMemo(()=>a2(e||"",Wm(o)),[o,e]),s=()=>i(!0),l=e?J.createElement(qf,{"data-qa-anchor":"comment-content",className:t},J.createElement(rg.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(i2,{key:p,mentionee:f},u):J.createElement("span",{key:p},u)}return J.createElement(Sa,{key:p},u)}))):null;return n?l:l?J.createElement(rg,{lines:r,ellipsis:J.createElement(Wf,{onClick:s},J.createElement(FormattedMessage,{id:"comment.readmore"}))},l):null},Xp=uL;var hL=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=()=>M(void 0,null,function*(){if(e!=null)try{o(!0),yield CommentRepository.flagComment(e);}catch(c){o(!1);}finally{i();}}),s=()=>M(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:()=>M(void 0,null,function*(){e!=null&&(t?s():a());})}},ng=hL;var bL=({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=
|
|
957
|
+
`;var pL=8,uL=({text:e,className:t,mentionees:o,maxLines:r=pL})=>{let[n,i]=useState(!1),a=useMemo(()=>a2(e||"",Wm(o)),[o,e]),s=()=>i(!0),l=e?J.createElement(qf,{"data-qa-anchor":"comment-content",className:t},J.createElement(rg.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(i2,{key:p,mentionee:f},u):J.createElement("span",{key:p},u)}return J.createElement(Sa,{key:p},u)}))):null;return n?l:l?J.createElement(rg,{lines:r,ellipsis:J.createElement(Wf,{onClick:s},J.createElement(FormattedMessage,{id:"comment.readmore"}))},l):null},Xp=uL;var hL=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=()=>M(void 0,null,function*(){if(e!=null)try{o(!0),yield CommentRepository.flagComment(e);}catch(c){o(!1);}finally{i();}}),s=()=>M(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:()=>M(void 0,null,function*(){e!=null&&(t?s():a());})}},ng=hL;var bL=({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}=d2({dropdownRef:f,buttonContainerHeight:c}),{isFlaggedByMe:y,toggleFlagComment:v}=ng(e),x=()=>M(void 0,null,function*(){try{yield v(),n==null||n(),y?u.success({content:p({id:"report.unreportSent"})}):u.success({content:p({id:"report.reportSent"})});}catch(P){P instanceof Error&&u.error({content:P.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:x}:null,t?{name:p(s?{id:"reply.delete"}:{id:"comment.delete"}),action:a}:null].filter(He);return J.createElement(Uf,{ref:f},J.createElement(ka,null,J.createElement(Ea,{position:g,align:h,scrollableHeight:C},_.map(({name:P,action:b})=>J.createElement(Fa,{key:P,"data-qa-anchor":`post-options-button-${P}`,onClick:()=>{b==null||b(),l();}},P)))))},IL=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:v,mentionees:x,onClickUser:_}=e;useIntl();let [b,w]=useState(!1),[T,k]=Na(),N=()=>w(D=>!D);return useEffect(()=>(b?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[b]),J.createElement(J.Fragment,null,J.createElement(zf,{onClick:_,avatar:r,backgroundImage:De}),J.createElement($f,null,J.createElement(rg,{ellipsis:J.createElement("span",null,"...",J.createElement(qp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(Yp,null,J.createElement(FormattedMessage,{id:"comment.edited"}))),lines:2},J.createElement(Zf,null,J.createElement(Yf,{onClick:_},o),J.createElement(rg.Atom,null,J.createElement(J.Fragment,null,v&&J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}),J.createElement(qp,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&J.createElement(Yp,null,J.createElement(FormattedMessage,{id:"comment.edited"})))))),h?J.createElement(eg,null,J.createElement(og,{multiline:!0,mentionAllowed:!0,value:c,queryMentionees:y,onChange:D=>C==null?void 0:C(D)}),J.createElement(tg,null,J.createElement(Y,{"data-qa-anchor":"comment-cancel-edit-button",onClick:g},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(ce,{"data-qa-anchor":"comment-save-edit-button",onClick:()=>u==null?void 0:u(l)},J.createElement(FormattedMessage,{id:"save"})))):J.createElement(Xp,{text:l,mentionees:x}),!h&&(n||i)&&J.createElement(Qf,null,n&&J.createElement(kf,{commentId:t}),i&&J.createElement(Rf,{"data-qa-anchor":"comment-reply-button",onClick:p},J.createElement(Xf,null)," ",J.createElement(FormattedMessage,{id:"reply"})),J.createElement(Hf,null,J.createElement("div",{ref:T},J.createElement(La,{onClick:D=>{D.stopPropagation(),N();}},J.createElement(Ba,null))),b&&J.createElement(bL,S(d({},e),{onClose:N,onEditCommentClick:()=>f(),buttonContainerHeight:k}))))))},sg=IL;var u2=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,7 +973,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
973
973
|
opacity: 0.75;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
`;var _L="global-admin",{COMMUNITY_MODERATOR:ML,CHANNEL_MODERATOR:PL,MODERATOR:SL,SUPER_MODERATOR:TL}=bn,sr=e=>{if(!(e!=null&&e.length))return !1;let t=[ML,PL,SL,TL];return e.some(o=>t.includes(o))},E1=e=>e!=null&&e.length?e.includes(_L):!1;var NL=(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||sr(o),canEdit:!t&&n,canLike:!t,canReply:!t&&!i,canReport:!t&&!n}},f2=NL;var AL=5,BL=()=>J.createElement(Kf,{"data-qa-anchor":"comment-deleted-comment"},J.createElement(Qp,null,J.createElement(Wp,null)),J.createElement(Kp,null,J.createElement(Jp,{"data-qa-anchor":"comment-deleted-comment-text"},J.createElement(FormattedMessage,{id:"comment.deleted"})))),LL=()=>J.createElement("div",null,J.createElement(Jf,{"data-qa-anchor":"reply-deleted-reply"},J.createElement(Qp,{className:"reply"},J.createElement(Wp,null)),J.createElement(Kp,null,J.createElement(Jp,{"data-qa-anchor":"reply-deleted-reply-text"},J.createElement(FormattedMessage,{id:"reply.deleted"})))));function lg(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 FL=({commentId:e,readonly:t})=>{var E;let{onClickUser:o}=
|
|
976
|
+
`;var _L="global-admin",{COMMUNITY_MODERATOR:ML,CHANNEL_MODERATOR:PL,MODERATOR:SL,SUPER_MODERATOR:TL}=bn,sr=e=>{if(!(e!=null&&e.length))return !1;let t=[ML,PL,SL,TL];return e.some(o=>t.includes(o))},E1=e=>e!=null&&e.length?e.includes(_L):!1;var NL=(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||sr(o),canEdit:!t&&n,canLike:!t,canReply:!t&&!i,canReport:!t&&!n}},f2=NL;var AL=5,BL=()=>J.createElement(Kf,{"data-qa-anchor":"comment-deleted-comment"},J.createElement(Qp,null,J.createElement(Wp,null)),J.createElement(Kp,null,J.createElement(Jp,{"data-qa-anchor":"comment-deleted-comment-text"},J.createElement(FormattedMessage,{id:"comment.deleted"})))),LL=()=>J.createElement("div",null,J.createElement(Jf,{"data-qa-anchor":"reply-deleted-reply"},J.createElement(Qp,{className:"reply"},J.createElement(Wp,null)),J.createElement(Kp,null,J.createElement(Jp,{"data-qa-anchor":"reply-deleted-reply-text"},J.createElement(FormattedMessage,{id:"reply.deleted"})))));function lg(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 FL=({commentId:e,readonly:t})=>{var E;let{onClickUser:o}=W(),r=n2(e),n=Oo(r==null?void 0:r.referenceId),{confirm:i}=ue(),a=Ce(),s=le(r==null?void 0:r.userId),l=nt(s==null?void 0:s.avatarFileId),{userRoles:c}=ne(),[p,u]=useState(!1),[f,g]=useState(!1),{formatMessage:h}=useIntl(),[C,y]=useState(!1),{text:v,markup:x,mentions:_,onChange:P,queryMentionees:b,resetState:w,clearAll:T}=Ho({targetId:n==null?void 0:n.targetId,targetType:n==null?void 0:n.targetType,remoteText:lg(r),remoteMarkup:Km(lg(r),(r==null?void 0:r.metadata)||{})}),{canDelete:k,canEdit:N,canLike:D,canReply:q,canReport:$}=f2(r,t,c);if(n==null&&r==null)return J.createElement(u2,null);let G=(F,K,me)=>M(void 0,null,function*(){if(!(!(r!=null&&r.referenceType)||!(r!=null&&r.referenceId)))try{let{referenceType:de,referenceId:be}=r;yield CommentRepository.createComment({referenceType:de,referenceId:be,data:{text:F},parentId:e,metadata:me,mentionees:K}),u(!1),y(!0);}catch(de){de instanceof Error&&de.message===wn.CONTAIN_BLOCKED_WORD&&a.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),O=(F,K,me)=>M(void 0,null,function*(){return e&&CommentRepository.updateComment(e,{data:{text:F},metadata:me,mentionees:K})}),ee=()=>M(void 0,null,function*(){return e&&CommentRepository.deleteComment(e)}),X=()=>{u(F=>!F);},L=()=>{g(!0);},H=()=>{g(!1),w();},Q=()=>{let{metadata:F,mentionees:K}=Qm(_);O(v,K,F),T(),g(!1);},Z=!!(r!=null&&r.parentId),he=()=>{i({"data-qa-anchor":"delete-comment",title:J.createElement(FormattedMessage,{id:Z?"reply.delete":"comment.delete"}),content:J.createElement(FormattedMessage,{id:Z?"reply.deleteBody":"comment.deleteBody"}),cancelText:h({id:"comment.deleteConfirmCancelText"}),okText:h({id:"comment.deleteConfirmOkText"}),onOk:ee});};if(r==null)return null;if(r!=null&&r.isDeleted)return Z?J.createElement(LL,null):J.createElement(Zp,null,J.createElement(BL,null));let z=J.createElement(sg,{commentId:r==null?void 0:r.commentId,authorName:(s==null?void 0:s.displayName)||(s==null?void 0:s.userId)||h({id:"anonymous"}),authorAvatar:l==null?void 0:l.fileUrl,canDelete:k,canEdit:N,canLike:D,canReply:q,canReport:$,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:(E=r==null?void 0:r.metadata)==null?void 0:E.mentioned,metadata:r==null?void 0:r.metadata,text:v,markup:x,startEditing:L,cancelEditing:H,handleEdit:Q,handleDelete:he,isEditing:f,queryMentionees:b,isReplyComment:Z,onClickReply:X,onChange:P,onClickUser:()=>o(r.userId)});return Z?J.createElement(Gf,{"data-qa-anchor":"reply"},z):J.createElement(Zp,null,J.createElement(jf,{"data-qa-anchor":"comment"},z),r.children.length>0&&J.createElement(B1,{parentId:r.commentId,referenceType:r.referenceType,referenceId:r.referenceId,readonly:t,isExpanded:C,limit:AL}),p&&J.createElement(_n,{postId:n==null?void 0:n.postId,userToReply:s==null?void 0:s.displayName,onSubmit:(F,K,me)=>{G(F,K,me);}}))},mg=memo(e=>{let t=V("Comment");return t?t(e):J.createElement(FL,d({},e))});var o3=m(_0).attrs({height:"16px",width:"16px"})``,r3=m.div`
|
|
977
977
|
display: flex;
|
|
978
978
|
margin-right: 8px;
|
|
979
979
|
`;var L1=m(Y)`
|
|
@@ -1009,7 +1009,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1009
1009
|
}
|
|
1010
1010
|
`,dg=m(nr).attrs({width:14,height:14})`
|
|
1011
1011
|
margin-left: 5px;
|
|
1012
|
-
`;var HL=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=J.createElement(dg,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))},Gt=HL;function jL({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=()=>!0}){let{subscribe:i}=Cp(),[a,s]=useState(!1),[l,c]=useState(n?n():!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),v=useCallback(()=>{var _;y.current&&(s(!0),(_=y.current)==null||_.call(y));},[y,a,l,c]),x=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:x});return ()=>{_();}},[t,n]),{items:p,hasMore:h,isLoading:l,loadMore:v,error:f,loadMoreHasBeenCalled:a}}var Me=jL;function n3({parentId:e,referenceId:t,referenceType:o,limit:r=10}){let a=Me({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 i3=({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}=n3({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(r3,null,J.createElement(o3,null)):null;return u.length===0?null:J.createElement(Gt,{hasMore:f,loadMore:g,text:h,className:p?"reply-button":"comments-button",prependIcon:C,appendIcon:null,isExpanded:i,contentSlot:u.map(y=>J.createElement(mg,{key:y.commentId,commentId:y.commentId,readonly:n}))})},qL=e=>J.createElement(i3,S(d({},e),{callLoadMoreAgain:!0})),YL=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=J.createElement(r3,null,J.createElement(o3,null));return t?J.createElement(i3,S(d({},e),{isExpanded:!0})):J.createElement(L1,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewMoreReplies"}))},WL=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?J.createElement(YL,d({},e)):t==="post"&&!r?J.createElement(qL,d({},e)):J.createElement(i3,d({},e))},B1=memo(WL);var gg=5,QL=({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[lo]||0;return J.createElement(vf,null,J.createElement(xf,null,u>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},fg(u||0)," ",J.createElement(FormattedMessage,{id:"plural.like",values:{amount:u}})),c>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},fg(c||0)," ",J.createElement(FormattedMessage,{id:"plural.comment",values:{amount:c}}))),t?J.createElement(J.Fragment,null,J.createElement(wf,null,J.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:gg,readonly:!0}):null):J.createElement(J.Fragment,null,J.createElement(bf,null,J.createElement(rf,{postId:i}),J.createElement(Ee,{"data-qa-anchor":"engagement-bar-comment-button",onClick:o},J.createElement(If,null)," ",J.createElement(FormattedMessage,{id:"comment"}))),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:gg}):null,r&&J.createElement(_n,{postId:i,onSubmit:(f,g,h)=>n==null?void 0:n(f,g,h)})))},yg=e=>{let t=V("UIEngagementBar");return t?t(e):J.createElement(QL,d({},e))};var eF=({postId:e,readonly:t=!1})=>{let[o,r]=useState(!1),n=
|
|
1012
|
+
`;var HL=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=J.createElement(dg,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))},Gt=HL;function jL({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=()=>!0}){let{subscribe:i}=Cp(),[a,s]=useState(!1),[l,c]=useState(n?n():!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),v=useCallback(()=>{var _;y.current&&(s(!0),(_=y.current)==null||_.call(y));},[y,a,l,c]),x=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:x});return ()=>{_();}},[t,n]),{items:p,hasMore:h,isLoading:l,loadMore:v,error:f,loadMoreHasBeenCalled:a}}var Me=jL;function n3({parentId:e,referenceId:t,referenceType:o,limit:r=10}){let a=Me({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 i3=({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}=n3({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(r3,null,J.createElement(o3,null)):null;return u.length===0?null:J.createElement(Gt,{hasMore:f,loadMore:g,text:h,className:p?"reply-button":"comments-button",prependIcon:C,appendIcon:null,isExpanded:i,contentSlot:u.map(y=>J.createElement(mg,{key:y.commentId,commentId:y.commentId,readonly:n}))})},qL=e=>J.createElement(i3,S(d({},e),{callLoadMoreAgain:!0})),YL=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=J.createElement(r3,null,J.createElement(o3,null));return t?J.createElement(i3,S(d({},e),{isExpanded:!0})):J.createElement(L1,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewMoreReplies"}))},WL=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?J.createElement(YL,d({},e)):t==="post"&&!r?J.createElement(qL,d({},e)):J.createElement(i3,d({},e))},B1=memo(WL);var gg=5,QL=({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[lo]||0;return J.createElement(vf,null,J.createElement(xf,null,u>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},fg(u||0)," ",J.createElement(FormattedMessage,{id:"plural.like",values:{amount:u}})),c>0&&J.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},fg(c||0)," ",J.createElement(FormattedMessage,{id:"plural.comment",values:{amount:c}}))),t?J.createElement(J.Fragment,null,J.createElement(wf,null,J.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:gg,readonly:!0}):null):J.createElement(J.Fragment,null,J.createElement(bf,null,J.createElement(rf,{postId:i}),J.createElement(Ee,{"data-qa-anchor":"engagement-bar-comment-button",onClick:o},J.createElement(If,null)," ",J.createElement(FormattedMessage,{id:"comment"}))),e.commentsCount>0?J.createElement(B1,{referenceId:i,referenceType:"post",limit:gg}):null,r&&J.createElement(_n,{postId:i,onSubmit:(f,g,h)=>n==null?void 0:n(f,g,h)})))},yg=e=>{let t=V("UIEngagementBar");return t?t(e):J.createElement(QL,d({},e))};var eF=({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(yg,{post:s,readonly:t,isComposeBarDisplayed:o,handleAddComment:(p,u,f)=>M(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===wn.CONTAIN_BLOCKED_WORD&&n.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}}),onClickComment:i}):null};var s3=memo(e=>{let t=V("EngagementBar");return t?t(e):J.createElement(eF,d({},e))});var tF=m.div`
|
|
1013
1013
|
position: relative;
|
|
1014
1014
|
width: 100%;
|
|
1015
1015
|
height: 0;
|
|
@@ -1288,7 +1288,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1288
1288
|
display: flex;
|
|
1289
1289
|
align-items: center;
|
|
1290
1290
|
justify-content: center;
|
|
1291
|
-
`,C2=()=>J.createElement(SizeMe,{monitorHeight:!0},({size:e})=>{let t=Math.min((e==null?void 0:e.width)||0,(e==null?void 0:e.height)||0);return J.createElement(bF,null,J.createElement(
|
|
1291
|
+
`,C2=()=>J.createElement(SizeMe,{monitorHeight:!0},({size:e})=>{let t=Math.min((e==null?void 0:e.width)||0,(e==null?void 0:e.height)||0);return J.createElement(bF,null,J.createElement(ye,{borderRadius:0,height:t,width:t,style:{display:"block"}}))}),IF=m(ct).attrs({width:24,height:24})``,Sg=m(Y).attrs({variant:"secondary",children:J.createElement(IF,null)})`
|
|
1292
1292
|
position: absolute;
|
|
1293
1293
|
top: 0.5em;
|
|
1294
1294
|
right: 0.5em;
|
|
@@ -1342,7 +1342,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1342
1342
|
display: flex;
|
|
1343
1343
|
align-items: center;
|
|
1344
1344
|
justify-content: center;
|
|
1345
|
-
`,Vg=()=>J.createElement(SizeMe,{monitorHeight:!0},({size:e})=>{let t=Math.min(e.width||0,e.height||0);return J.createElement(BF,null,J.createElement(
|
|
1345
|
+
`,Vg=()=>J.createElement(SizeMe,{monitorHeight:!0},({size:e})=>{let t=Math.min(e.width||0,e.height||0);return J.createElement(BF,null,J.createElement(ye,{height:t,width:t,style:{display:"block"}}))}),LF=m(ct).attrs({width:24,height:24})``,Og=m(Y).attrs({variant:"secondary",children:J.createElement(LF,null)})`
|
|
1346
1346
|
position: absolute;
|
|
1347
1347
|
top: 0.5em;
|
|
1348
1348
|
right: 0.5em;
|
|
@@ -1742,7 +1742,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1742
1742
|
> :not(:first-child) {
|
|
1743
1743
|
margin-left: 0.25rem;
|
|
1744
1744
|
}
|
|
1745
|
-
`;var gV=({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(cy,{"data-qa-anchor":"post-header-post-names"},J.createElement(rg,{lines:3},J.createElement(I3,{"data-qa-anchor":"post-header-post-name",className:so({clickable:!!s}),onClick:s},t)),p&&J.createElement(Sr,null),o&&!l&&J.createElement(J.Fragment,null,J.createElement(sy,null),J.createElement(I3,{"data-qa-anchor":"post-header-post-target-name",className:so({clickable:!!a}),onClick:a||void 0},o))),g=()=>J.createElement(dy,{"data-qa-anchor":"post-header-additional-info",showTime:!!r},n&&J.createElement(w3,{"data-qa-anchor":"post-header-additional-info-moderator-badge"},J.createElement(ly,null)," ",J.createElement(FormattedMessage,{id:"moderator"})),r&&J.createElement(p2,{"data-qa-anchor":"post-header-additional-info-time-ago",date:r.getTime()}),i&&J.createElement(my,{"data-qa-anchor":"post-header-additional-info-edited-label"},J.createElement(FormattedMessage,{id:"post.edited"})));return J.createElement(iy,{"data-qa-anchor":"post-header"},J.createElement(ve,{"data-qa-anchor":"post-header-avatar",avatar:e,backgroundImage:De,loading:c,onClick:s}),J.createElement(ay,{"data-qa-anchor":"post-header-post-info"},c?J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(
|
|
1745
|
+
`;var gV=({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(cy,{"data-qa-anchor":"post-header-post-names"},J.createElement(rg,{lines:3},J.createElement(I3,{"data-qa-anchor":"post-header-post-name",className:so({clickable:!!s}),onClick:s},t)),p&&J.createElement(Sr,null),o&&!l&&J.createElement(J.Fragment,null,J.createElement(sy,null),J.createElement(I3,{"data-qa-anchor":"post-header-post-target-name",className:so({clickable:!!a}),onClick:a||void 0},o))),g=()=>J.createElement(dy,{"data-qa-anchor":"post-header-additional-info",showTime:!!r},n&&J.createElement(w3,{"data-qa-anchor":"post-header-additional-info-moderator-badge"},J.createElement(ly,null)," ",J.createElement(FormattedMessage,{id:"moderator"})),r&&J.createElement(p2,{"data-qa-anchor":"post-header-additional-info-time-ago",date:r.getTime()}),i&&J.createElement(my,{"data-qa-anchor":"post-header-additional-info-edited-label"},J.createElement(FormattedMessage,{id:"post.edited"})));return J.createElement(iy,{"data-qa-anchor":"post-header"},J.createElement(ve,{"data-qa-anchor":"post-header-avatar",avatar:e,backgroundImage:De,loading:c,onClick:s}),J.createElement(ay,{"data-qa-anchor":"post-header-post-info"},c?J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(ye,{width:96,style:{fontSize:8}})),J.createElement(ye,{width:189,style:{fontSize:8}})):J.createElement(J.Fragment,null,f(),g())))},fy=gV;var hV=10;function Po({targetType:e,targetId:t,feedType:o,limit:r=hV}){let a=Me({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:vV}=bn;function Xr(e){let r=Me({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[vV]},shouldCall:()=>!!e}),{items:t}=r,o=I(r,["items"]);return d({moderators:t},o)}var bV=({post:e,childrenPosts:t=[],community:o,userId:r})=>{var g,h,C;let{moderators:n}=Xr(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(In.EditCommunityFeedPostPermission).community(o.communityId))!=null?g:!1;f.canEdit=y&&s;let v=(h=i==null?void 0:i.hasPermission(In.DeleteCommunityFeedPostPermission).community(o.communityId))!=null?h:!1;f.canDelete=v;}else {let y=(C=i==null?void 0:i.hasPermission(In.EditUserFeedPostPermission).currentUser())!=null?C:!1;f.canDelete=y;}p||(f.canReport=!0);}return d({isPostUnderReview:p,isModerator:u},f)},W1=bV;var yy=({post:e,avatarFileUrl:t,loading:o,hidePostTarget:r})=>{let{onClickCommunity:n,onClickUser:i}=W(),{formatMessage:a}=useIntl(),s=le(e==null?void 0:e.postedUserId),l=Ye(e==null?void 0:e.targetId),{isModerator:c}=W1({community:l,post:e,userId:e==null?void 0:e.postedUserId}),p=(e==null?void 0:e.targetType)==="community",u=p?l==null?void 0:l.displayName:null,f=p?()=>e&&n(e==null?void 0:e.targetId):null,g=()=>e&&i(e.postedUserId);return {avatarFileUrl:t,postAuthorName:(s==null?void 0:s.displayName)||a({id:"anonymous"}),postTargetName:u,timeAgo:new Date(e==null?void 0:e.createdAt),isModerator:c||sr(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:f,onClickUser:g}};var MV=({postId:e,hidePostTarget:t,loading:o})=>{let r=Oo(e),n=le(r==null?void 0:r.postedUserId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),a=yy({post:r,avatarFileUrl:i,user:n,loading:o,hidePostTarget:t});return J.createElement(fy,d({},a))};var hy=memo(MV);var kV=m.div.withConfig({shouldForwardProp:e=>e!=="isExpanded"&&e!=="postMaxLines"})`
|
|
1746
1746
|
overflow-wrap: break-word;
|
|
1747
1747
|
color: ${({theme:e})=>e.palette.neutral.main};
|
|
1748
1748
|
white-space: pre-wrap;
|
|
@@ -1799,7 +1799,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1799
1799
|
margin-left: 12px;
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
|
-
`,Ty=()=>J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(
|
|
1802
|
+
`,Ty=()=>J.createElement(J.Fragment,null,J.createElement("div",null,J.createElement(ye,{style:{fontSize:8,maxWidth:374}})),J.createElement("div",null,J.createElement(ye,{style:{fontSize:8,maxWidth:448}})),J.createElement("div",{style:{paddingBottom:50}},J.createElement(ye,{style:{fontSize:8,maxWidth:279}})));var WV=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=()=>M(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.flagPost(n);}catch(f){o(!1);}finally{l();}}),p=()=>M(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:()=>M(void 0,null,function*(){n==null||i||(t?p():c());})}},Ny=WV;var JV=8,XV=3,RV="Post has been reviewed",eO=({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}=Ny(a),y=a==null?void 0:a.targetId,v=Ye(y),{currentUserId:x}=ne(),_=useRef(null),{currentPosition:P,align:b,scrollableHeight:w}=d2({dropdownRef:_,buttonContainerHeight:c,position:ar,align:Ta}),{canEdit:T,canReview:k,canDelete:N,canReport:D,isPostUnderReview:q}=W1({community:v,post:a,childrenPosts:e,userId:x||void 0}),$=e.find(L=>L.dataType==="poll"),G=()=>M(void 0,null,function*(){C(),yield o==null?void 0:o(),g.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),O=()=>M(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:q?"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,D?{name:p(h?{id:"report.undoReport"}:{id:"report.doReport"}),action:h?O:G}:null,$&&!i?{name:p({id:"poll.close"}),action:n}:null].filter(He);return J.createElement(My,{ref:_},J.createElement(ka,null,J.createElement(Ea,{position:P,align:b,scrollableHeight:w},X.map(({name:L,action:H})=>J.createElement(Fa,{key:L,"data-qa-anchor":`post-options-button-${L}`,onClick:()=>{H==null||H(),l();}},L)))))},tO=e=>{var he,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(),[v,x]=useState(!1),[_,P]=Na(),[b,w]=useState(!1),[T,k]=useState(!1),N=()=>x(F=>!F);useEffect(()=>(v?document.addEventListener("click",N):document.removeEventListener("click",N),()=>{document.removeEventListener("click",N);}),[v]);function D(F){if(F instanceof Error)if(F.message.includes(RV))h({title:J.createElement(FormattedMessage,{id:"post.error.cannotReview.title"}),content:J.createElement(FormattedMessage,{id:"post.error.cannotReview.description"})});else throw F}let q=s==null?void 0:s.targetId,$=Ye(q),{currentUserId:G}=ne(),{canReview:O,isPostUnderReview:ee}=W1({community:$,post:s,childrenPosts:t,userId:G||void 0}),X=()=>M(void 0,null,function*(){try{w(!0),yield r==null?void 0:r(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.approved"})});}catch(F){D(F);}finally{w(!1);}}),L=()=>M(void 0,null,function*(){try{k(!0),yield n==null?void 0:n(),y.success({content:J.createElement(FormattedMessage,{id:"post.success.declined"})});}catch(F){D(F);}finally{k(!1);}}),H=t.length>0,Q=H?XV:JV,Z=t.find(F=>F.dataType==="liveStream");return J.createElement(K1,{"data-qa-anchor":"post",className:o},J.createElement(Py,null,J.createElement(hy,{postId:s==null?void 0:s.postId,hidePostTarget:i,loading:l}),!l&&J.createElement(_y,null,J.createElement("div",{ref:_},J.createElement(La,{onClick:F=>{F.stopPropagation(),N();},className:o},J.createElement(Ba,null))),v&&J.createElement(eO,S(d({},e),{onApprove:X,onDecline:L,onClose:N,onEditPostClick:()=>f(),buttonContainerHeight:P})))),l?J.createElement(Ty,null):J.createElement(J.Fragment,null,J.createElement(wy,{data:(he=Z==null?void 0:Z.data)!=null?he:s==null?void 0:s.data,dataType:(z=Z==null?void 0:Z.dataType)!=null?z:s==null?void 0:s.dataType,postMaxLines:Q,mentionees:(E=s==null?void 0:s.metadata)==null?void 0:E.mentioned}),H&&J.createElement($9,{contents:t}),!ee&&J.createElement(s3,{readonly:a,postId:s==null?void 0:s.postId}),ee&&O&&J.createElement(Sy,{"data-qa-anchor":"post-review"},J.createElement(ce,{"data-qa-anchor":"post-review-accept-button",disabled:b||T,onClick:X},J.createElement(FormattedMessage,{id:"general.action.accept"})),J.createElement(Y,{"data-qa-anchor":"post-review-decline-button",disabled:b||T,onClick:L},J.createElement(FormattedMessage,{id:"general.action.decline"}))),p&&s&&J.createElement(vt,{"data-qa-anchor":"post-editor-modal",title:c({id:"post.editPost"}),onCancel:g},J.createElement(ny,{post:s,onSave:g}))))},co=J.memo(tO);var Ey=m.div`
|
|
1803
1803
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
1804
1804
|
display: flex;
|
|
1805
1805
|
align-items: center;
|
|
@@ -1843,7 +1843,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
1843
1843
|
&&& {
|
|
1844
1844
|
display: none;
|
|
1845
1845
|
}
|
|
1846
|
-
`,vO=({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:hO),[l,r]),h=b=>b.some(w=>w.size>yO),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]),v=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&f(!1);},[n]),x=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(D=>D.test(N.type))),k=g(T);k.length&&(i==null||i(k)),f(!1);},[n,g,o,i]),P=b=>{};return J.createElement(T3,{"data-qa-anchor":`${t}`,id:p,className:so(e,{hover:u,disabled:n}),onDragEnter:y,onDragOver:y,onDragLeave:v,onDrop:_},J.createElement(CO,{accept:o,multiple:r,disabled:n,onChange:x,onClick:P}),c)},k2=vO;var $y=m.div`
|
|
1846
|
+
`,vO=({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:hO),[l,r]),h=b=>b.some(w=>w.size>yO),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]),v=useCallback(b=>{b.preventDefault(),b.stopPropagation(),!n&&f(!1);},[n]),x=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(D=>D.test(N.type))),k=g(T);k.length&&(i==null||i(k)),f(!1);},[n,g,o,i]),P=b=>{};return J.createElement(T3,{"data-qa-anchor":`${t}`,id:p,className:so(e,{hover:u,disabled:n}),onDragEnter:y,onDragOver:y,onDragLeave:v,onDrop:_},J.createElement(CO,{accept:o,multiple:r,disabled:n,onChange:b=>{b.target.value&&x(b),b.target.value="";},onClick:P}),c)},k2=vO;var $y=m.div`
|
|
1847
1847
|
border-radius: 4px;
|
|
1848
1848
|
border: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
1849
1849
|
`,Jt=m.div`
|
|
@@ -2099,7 +2099,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2099
2099
|
cursor: pointer;
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
`,Bh=m(k0).attrs({width:24,height:24})``,Lh=m(_o).attrs({width:24,height:24})``;var L3="{counter}",Fh=({icon:e=null,onClick:t,disabled:o})=>J.createElement(Ah,{disabled:o,onClick:t},e),LO=({output:e=""})=>J.createElement(Eh,null,e),FO=({renderDecButton:e=Fh,renderIncButton:t=Fh,renderResult:o=LO,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return J.createElement(kh,null,e({onClick:c=>{c.preventDefault();let p=s-1;l(p),i(p);},icon:J.createElement(Bh,null),disabled:a&&s-1<0}),o({output:r.replace(L3,s)}),t({onClick:c=>{c.preventDefault();let p=s+1;l(p),i(p);},icon:J.createElement(Lh,null)}))},Dh=FO;var VO=({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(sh,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>J.createElement("div",null,n),onSelect:({value:n})=>e(n)})},Oh=VO;var Hh=500,rl=2,Za=10,GO=864e5,$O=({children:e})=>J.createElement(rh,null,J.createElement(oh,null,e)),ZO=({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}=
|
|
2102
|
+
`,Bh=m(k0).attrs({width:24,height:24})``,Lh=m(_o).attrs({width:24,height:24})``;var L3="{counter}",Fh=({icon:e=null,onClick:t,disabled:o})=>J.createElement(Ah,{disabled:o,onClick:t},e),LO=({output:e=""})=>J.createElement(Eh,null,e),FO=({renderDecButton:e=Fh,renderIncButton:t=Fh,renderResult:o=LO,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return J.createElement(kh,null,e({onClick:c=>{c.preventDefault();let p=s-1;l(p),i(p);},icon:J.createElement(Bh,null),disabled:a&&s-1<0}),o({output:r.replace(L3,s)}),t({onClick:c=>{c.preventDefault();let p=s+1;l(p),i(p);},icon:J.createElement(Lh,null)}))},Dh=FO;var VO=({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(sh,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>J.createElement("div",null,n),onSelect:({value:n})=>e(n)})},Oh=VO;var Hh=500,rl=2,Za=10,GO=864e5,$O=({children:e})=>J.createElement(rh,null,J.createElement(oh,null,e)),ZO=({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:v,setError:x,watch:_,control:P,formState:{errors:b,isDirty:w}}=useForm({defaultValues:y}),{formatMessage:T}=useIntl(),k=_("question",""),N=_("answers",[]);useEffect(()=>i==null?void 0:i(w),[w]);let D=O=>M(void 0,null,function*(){var ee,X,L;try{if(h(!0),!O.question.trim()){x("question",{message:"Question cannot be empty"});return}if(((ee=O==null?void 0:O.answers)==null?void 0:ee.length)<rl){x("answers",{message:`Minimum amount of answers should be ${rl}`});return}if(((X=O==null?void 0:O.answers)==null?void 0:X.length)>Za){x("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*GO:void 0};yield n(H,c,p);}finally{h(!1);}}),q=!w||(k==null?void 0:k.length)===0||g,$=useRef(null);return J.createElement(Wy,null,J.createElement(Qy,{className:e,onSubmit:v(D)},J.createElement(nh,{ref:$},J.createElement($O,null,J.createElement(R1,null,J.createElement(k3,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}/${Hh}`)),J.createElement(Controller,{control:P,name:"question",rules:{required:"Question is required",maxLength:{value:Hh,message:"Question is too long"}},render:H=>{var{field:Q}=H,Z=Q,{value:O,ref:ee,onChange:X}=Z,L=I(Z,["value","ref","onChange"]);return J.createElement(Xy,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:F=>{var K=F,{plainText:he,mentions:z}=K,E=I(K,["plainText","mentions"]);if((z==null?void 0:z.length)>O7)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:he,mentions:z},E)),X(he);}}))}}),J.createElement(N3,{errors:b,name:"question"})),J.createElement(R1,null,J.createElement(k3,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:P,render:({field:O})=>J.createElement(Nh,d({optionsLimit:Za},O))}),J.createElement(N3,{errors:b,name:"answers"})),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(A3,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(E3,null,J.createElement(Controller,{rules:{required:"Answer type is required"},name:"answerType",render:({field:O})=>J.createElement(Oh,d({parentContainer:$.current},O)),control:P})))),J.createElement(R1,{horizontal:!0,separate:!0},J.createElement(A3,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(E3,null,J.createElement(Controller,{name:"closedIn",render:({field:O})=>J.createElement(Dh,S(d({},O),{onlyPositiveNumber:!0,resultFormat:`${L3} days`})),control:P})))))),J.createElement(ih,null,J.createElement(Y,{onClick:O=>{O.preventDefault(),r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(ah,{"data-qa-anchor":"poll-composer-post-button",disabled:q},J.createElement(FormattedMessage,{id:"post"})))))},Uh=ZO;var KO=({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)=>M(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===wn.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(vt,{"data-qa-anchor":"poll-composer-modal",title:a({id:"poll_modal.title"}),clean:!1,onCancel:n?p:o},J.createElement(Uh,{targetId:e,targetType:t,onIsDirtyChange:u=>i(u),onCancel:p,onSubmit:c}))},zh=KO;var eH=n=>{var i=n,{className:e,fixed:t=!1,children:o}=i,r=I(i,["className","fixed","children"]);return J.createElement(Popover,d({containerClassName:so(e,{fixed:t})},r),o)},jh=m(eH)`
|
|
2103
2103
|
${({theme:e})=>e.typography.body}
|
|
2104
2104
|
z-index: 10000;
|
|
2105
2105
|
background: ${({theme:e})=>e.palette.system.background};
|
|
@@ -2175,25 +2175,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2175
2175
|
`,tC=m(E0)``;var gH="video/*,.flv,.3gp",O3=m(k2)`
|
|
2176
2176
|
${({uploadLoading:e})=>e&&"cursor: wait !important;"}
|
|
2177
2177
|
${({disabled:e,theme:t})=>e&&`color: ${t.palette.neutral.shade2};`}
|
|
2178
|
-
`,yH=({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(O3,{"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(O3,{"data-qa-anchor":"post-creator-video-attachment-button",disabled:o,uploadLoading:a,fileLimitRemaining:c,mimeType:gH,multiple:!0,onChange:p=>{p.forEach(u=>{u.forceType=FileType.VIDEO;}),n==null||n(p);},onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(Rh,{icon:"video"})),J.createElement(O3,{"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))),oC=yH;var CH=.999;function qa(e){return e.fileId!==void 0}var U3=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 v=y<=CH?y:1;a(x=>S(d({},x),{[C.name]:v}));},[]),u=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),f=useCallback(()=>{l([]);},[]),g=useCallback(C=>{if(qa(C)){let y=t.filter(v=>v.fileId!==C.fileId);o({uploaded:y,uploading:c});}else {let y=c.filter(v=>v.name!==C.name);o({uploaded:t,uploading:y});}},[o]);return useEffect(()=>{if(!c.length)return;function C(){return M(this,null,function*(){r(!0);try{let y=yield Promise.all(c.map(x=>M(this,null,function*(){let _=new FormData;_.append("files",x);let P=yield M(this,null,function*(){return x.type.includes(FileType.VIDEO)?FileRepository.createVideo(_,void 0,b=>{p(x,b);}):x.type.includes(FileType.IMAGE)?FileRepository.createImage(_,b=>{p(x,b);}):FileRepository.createFile(_,b=>{p(x,b);})});return P.data.length>0?P.data[0]:null})));a({});let v=[...t,...y].filter(He);o({uploaded:v,uploading:[]}),l([]);}catch(y){l(c.map(v=>v.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
|
|
2178
|
+
`,yH=({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(O3,{"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(O3,{"data-qa-anchor":"post-creator-video-attachment-button",disabled:o,uploadLoading:a,fileLimitRemaining:c,mimeType:gH,multiple:!0,onChange:p=>{p.forEach(u=>{u.forceType=FileType.VIDEO;}),n==null||n(p);},onMaxFilesLimit:s,onFileSizeLimit:l},J.createElement(Rh,{icon:"video"})),J.createElement(O3,{"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))),oC=yH;var CH=.999;function qa(e){return e.fileId!==void 0}var U3=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 v=y<=CH?y:1;a(x=>S(d({},x),{[C.name]:v}));},[]),u=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),f=useCallback(()=>{l([]);},[]),g=useCallback(C=>{if(qa(C)){let y=t.filter(v=>v.fileId!==C.fileId);o({uploaded:y,uploading:c});}else {let y=c.filter(v=>v.name!==C.name);o({uploaded:t,uploading:y});}},[o]);return useEffect(()=>{if(!c.length)return;function C(){return M(this,null,function*(){r(!0);try{let y=yield Promise.all(c.map(x=>M(this,null,function*(){let _=new FormData;_.append("files",x);let P=yield M(this,null,function*(){return x.type.includes(FileType.VIDEO)?FileRepository.createVideo(_,void 0,b=>{p(x,b);}):x.type.includes(FileType.IMAGE)?FileRepository.createImage(_,b=>{p(x,b);}):FileRepository.createFile(_,b=>{p(x,b);})});return P.data.length>0?P.data[0]:null})));a({});let v=[...t,...y].filter(He);o({uploaded:v,uploading:[]}),l([]);}catch(y){l(c.map(v=>v.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 xH=m(Pn)`
|
|
2179
2179
|
${({uploadLoading:e})=>e&&j`
|
|
2180
2180
|
cursor: wait !important;
|
|
2181
2181
|
`}
|
|
2182
|
-
`,
|
|
2182
|
+
`,bH=({allFiles:e,progress:t,removeFile:o,uploadLoading:r,rejected:n,retry:i})=>J.createElement(xH,{items:e,uploadLoading:r,renderItem:a=>{if(!qa(a))return J.createElement(it,{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(it,{key:s,fileId:s,"data-qa-anchor":"post-creator-uploaded-image",onRemove:()=>o(a)})}}),IH=({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(bH,S(d({},a),{uploadLoading:n}))},aC=IH;var _H=m.div`
|
|
2183
2183
|
display: grid;
|
|
2184
2184
|
grid-template-columns: 100%;
|
|
2185
2185
|
grid-gap: 0.5em;
|
|
2186
2186
|
min-height: 1em;
|
|
2187
2187
|
margin-bottom: 1rem;
|
|
2188
2188
|
${({uploadLoading:e})=>e&&"cursor: wait !important;"}
|
|
2189
|
-
`,
|
|
2189
|
+
`,MH=({uploading:e,uploaded:t,progress:o,removeFile:r,uploadLoading:n,rejected:i,retry:a,rowDataQaAnchor:s})=>J.createElement(_H,{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)}))),PH=({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(MH,S(d({},s),{uploadLoading:n,rowDataQaAnchor:a}))},O2=PH;var TH=e=>J.createElement(O2,S(d({},e),{rowDataQaAnchor:"post-creator-uploaded-video"})),sC=TH;var OH=({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}},HH=10,UH=({className:e="",targetType:t,targetId:o,enablePostTargetPicker:r,communities:n=[],placeholder:i="What's going on...",hasMoreCommunities:a,loadMoreCommunities:s,onCreateSuccess:l,maxFiles:c=HH})=>{var ci,pi,ui;let{currentUserId:p}=ne(),{setNavigationBlocker:u}=W(),f=le(p),{info:g}=ue(),h=Ce();(t==="global"||t==="myFeed")&&(t="user",o=p||"");let[C,y]=useState({targetType:t,targetId:o}),{user:v,community:x}=OH({targetId:C.targetId,targetType:C.targetType}),{moderators:_}=Xr(x==null?void 0:x.communityId);useEffect(()=>{y({targetType:t,targetId:o});},[t,o]);te({fileId:(v==null?void 0:v.avatarFileId)||(x==null?void 0:x.avatarFileId)||""});let [b,w]=useState([]),[T,k]=useState([]),[N,D]=useState([]),[q,$]=useState([]),[G,O]=useState([]),[ee,X]=useState([]),[L,H]=useState(!1);zy();let {mentionees:Z,metadata:he,text:z,markup:E,onChange:F,queryMentionees:K,clearAll:me}=Ho({targetType:C.targetType,targetId:C.targetId||void 0}),[de,be]=useState(!1),ht=()=>{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(Fe){return M(this,null,function*(){if(C.targetId)try{be(!0);let kt=(yield PostRepository.createPost(Fe)).data;if(l==null||l(kt),me(),w([]),k([]),D([]),$([]),O([]),X([]),x){let Do=(_||[]).find(ae=>ae.userId===kt.postedUserId)!=null;x.postSetting===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&!Do&&h.success({content:J.createElement(FormattedMessage,{id:"post.success.submittedToReview"})});}}catch(Ze){Ze instanceof Error&&Ze.message===wn.CONTAIN_BLOCKED_WORD&&h.error({content:J.createElement(FormattedMessage,{id:"notification.error.blockedWord"})});}finally{be(!1);}})}function _r(){return M(this,null,function*(){var Do;if(!C.targetId)return;let Fe={},Ze=[];if(z&&(Fe.text=z),b.length&&Ze.push(...b.map(ae=>({fileId:ae.fileId,type:FileType.IMAGE}))),T.length&&Ze.push(...T.map(ae=>({fileId:ae.fileId,type:FileType.VIDEO}))),N.length&&Ze.push(...N.map(ae=>({fileId:ae.fileId,type:FileType.FILE}))),(Do=Fe.text)!=null&&Do.length&&Fe.text.length>5e4){ht();return}let kt={targetId:C.targetId,targetType:C.targetType,data:Fe,dataType:"text",attachments:Ze,metadata:he,mentionees:Z};return wr(kt)})}let ro=()=>{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"?ao:De,Zr=J.createElement(qh,{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||de,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:()=>{me(),w([]),k([]),D([]),$([]),O([]),X([]),u==null||u(null);}}):u==null||u(null);},[mi,u]);let[d1,fa]=useState(!1),ga=()=>fa(!0),di=(pi=C==null?void 0:C.targetType)!=null?pi:t,fn=(ui=C==null?void 0:C.targetId)!=null?ui:o;return J.createElement(Yh,{className:so("postComposeBar",e)},d1&&J.createElement(zh,{targetId:fn||void 0,targetType:di,onCreatePoll:(Fe,Ze,kt,Do)=>M(void 0,null,function*(){fn&&wr({targetId:fn,targetType:di,data:{pollId:Fe,text:Ze},dataType:"poll",mentionees:kt,metadata:Do});}),onClose:()=>fa(!1)}),r&&f?J.createElement(Zh,{user:f,communities:n,hasMoreCommunities:a,loadMoreCommunities:s,currentTargetId:C.targetId,onChange:y},Zr):Zr,J.createElement(Qh,null,J.createElement(Xh,{"data-qa-anchor":"post-creator-textarea",multiline:!0,value:E,placeholder:i,mentionAllowed:!0,queryMentionees:K,loadMoreMentionees:Fe=>K(Fe),append:J.createElement(Jh,null,J.createElement(aC,{files:q,uploadedFiles:b,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:Fe,uploading:Ze})=>{w(Fe),$(Ze);}}),J.createElement(sC,{files:G,uploadedFiles:T,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:Fe,uploading:Ze})=>{k(Fe),O(Ze);}}),J.createElement(O2,{files:ee,uploadedFiles:N,uploadLoading:L,onLoadingChange:H,onChange:({uploaded:Fe,uploading:Ze})=>{D(Fe),X(Ze);}})),onChange:({text:Fe,plainText:Ze,mentions:kt})=>{if((kt==null?void 0:kt.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"});F({text:Fe,plainText:Ze,mentions:kt});}}),J.createElement(Wh,{"data-qa-anchor":"post-creator-footer"},J.createElement(oC,{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:Fe=>$(Fe),onChangeVideos:O,onChangeFiles:X,onMaxFilesLimit:ro,onFileSizeLimit:l1}),J.createElement(eC,{"data-qa-anchor":"post-creator-poll-button",onClick:ga},J.createElement(T3,null,J.createElement(tC,null))),J.createElement(Kh,{disabled:li,"data-qa-anchor":"post-creator-post-button",onClick:_r},J.createElement(FormattedMessage,{id:"post"})))))},nl=memo(UH);var GH=({postId:e,className:t,hidePostTarget:o,readonly:r,onDeleted:n})=>{var _;let i=Oo(e),a=le(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=Oy(i==null?void 0:i.dataType),{currentUserId:u}=ne(),f=(l||[]).find(P=>P.dataType==="poll"),g=M2((_=f==null?void 0:f.data)==null?void 0:_.pollId),h=(g==null?void 0:g.status)==="closed",C=()=>M(void 0,null,function*(){g!=null&&(yield PollRepository.closePoll(g.pollId));}),y=()=>M(void 0,null,function*(){i!=null&&(yield PostRepository.deletePost(i.postId),n==null||n(i.postId));}),v=()=>M(void 0,null,function*(){i!=null&&(yield PostRepository.approvePost(i.postId));}),x=()=>M(void 0,null,function*(){i!=null&&(yield PostRepository.declinePost(i.postId));});return i==null||p==null?J.createElement(co,{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:v,handleDeclinePost:x,handleDeletePost:y}))},il=memo(e=>{let t=V("Post");return t?t(e):J.createElement(GH,d({},e))});var $H=m(ip).attrs({width:48,height:48})`
|
|
2190
2190
|
margin: 10px;
|
|
2191
|
-
`,
|
|
2191
|
+
`,ZH=m(Y)`
|
|
2192
2192
|
font-size: 14px;
|
|
2193
2193
|
margin-top: 8px;
|
|
2194
|
-
|
|
2194
|
+
`,qH=m(vi).attrs({width:16,height:16})`
|
|
2195
2195
|
margin-right: 6px;
|
|
2196
|
-
`,
|
|
2196
|
+
`,YH=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"}},WH=({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=YH(e))==null?void 0:i(t,r)}),icon:J.createElement($H,null)},n&&J.createElement(ZH,{onClick:n},J.createElement(qH,null),J.createElement(FormattedMessage,{id:"community.exploreCommunities"})))},al=e=>{let t=V("EmptyFeed");return t?t(e):J.createElement(WH,d({},e))};var JH=j`
|
|
2197
2197
|
> :not(:first-child) {
|
|
2198
2198
|
margin-top: 20px;
|
|
2199
2199
|
}
|
|
@@ -2206,7 +2206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2206
2206
|
margin-top: 20px;
|
|
2207
2207
|
margin-bottom: 20px;
|
|
2208
2208
|
}
|
|
2209
|
-
`,sl=e=>J.createElement(iH,S(d({},e),{className:String(
|
|
2209
|
+
`,sl=e=>J.createElement(iH,S(d({},e),{className:String(JH)}));m.div`
|
|
2210
2210
|
display: flex;
|
|
2211
2211
|
flex-direction: column;
|
|
2212
2212
|
align-items: center;
|
|
@@ -2253,7 +2253,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2253
2253
|
`,uC=m.div`
|
|
2254
2254
|
font-size: 14px;
|
|
2255
2255
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
2256
|
-
`;var
|
|
2256
|
+
`;var XH=()=>J.createElement(mC,null,J.createElement(dC,null,J.createElement(cC,null)),J.createElement(pC,null,J.createElement(FormattedMessage,{id:"privateFeed.title"})),J.createElement(uC,null,J.createElement(FormattedMessage,{id:"privateFeed.body"}))),ll=XH;var oU=()=>{let[e,t]=useState([]),[o,r]=useState(!1),[n,i]=useState(null),[a,s]=useState(!1);function l(){return M(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=oU;function Br(e,t){let n=Me({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:()=>!!e&&(!0)}),{items:o}=n,r=I(n,["items"]);return d({communities:o},r)}var aU=({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(co,{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(Gt,{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)))},sU=({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:v}=ml(),x=useCallback(()=>{y==null||y();},[y]);function _(){return new Array(3).fill(3).map((P,b)=>J.createElement(co,{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:x,onCreateSuccess:P=>r||v(P)}),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(Gt,{hasMore:p,loadMore:u,className:"load-more no-border",contentSlot:J.createElement(J.Fragment,null,c.map(P=>J.createElement(il,{key:P.postId,postId:P.postId,hidePostTarget:!0,readonly:i})))}),!f&&c.length===0&&J.createElement(al,{targetType:o,goToExplore:n,canPost:!0,feedType:t}),f&&g?_():null)))},lU=({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,v)=>J.createElement(co,{key:v,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(Gt,{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)))},mU=({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:v}=ml();function x(){return new Array(3).fill(3).map((_,P)=>J.createElement(co,{key:P,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||v(_)}),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?x():null,!f&&c.length>0&&J.createElement(Gt,{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?x():null)))},dU=e=>e==="communityFeed"?"community":e==="userFeed"?"user":e==="globalFeed"||e==="global"?"feed":e||"myFeed",cU=e=>{let n=e,{targetType:t}=n,o=I(n,["targetType"]),r=dU(t);return r==="feed"?J.createElement(aU,d({},o)):r==="myFeed"?J.createElement(sU,S(d({},o),{targetType:r})):r==="community"?J.createElement(lU,S(d({},o),{targetType:r})):J.createElement(mU,S(d({},o),{targetType:r}))},Bn=memo(e=>{let t=V("Feed");return t?t(e):J.createElement(cU,d({},e))});var pU=m.div`
|
|
2257
2257
|
overflow: hidden;
|
|
2258
2258
|
display: grid;
|
|
2259
2259
|
grid-template-areas: 'side main' 'none main';
|
|
@@ -2264,7 +2264,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2264
2264
|
height: 100%;
|
|
2265
2265
|
padding: 0 20px 0 0;
|
|
2266
2266
|
background: #f7f7f8;
|
|
2267
|
-
`,
|
|
2267
|
+
`,uU=m.div`
|
|
2268
2268
|
grid-area: main;
|
|
2269
2269
|
overflow: auto;
|
|
2270
2270
|
width: 100%;
|
|
@@ -2276,25 +2276,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2276
2276
|
max-width: unset;
|
|
2277
2277
|
min-width: unset;
|
|
2278
2278
|
}
|
|
2279
|
-
`,
|
|
2279
|
+
`,fU=m.div`
|
|
2280
2280
|
grid-area: side;
|
|
2281
2281
|
overflow: auto;
|
|
2282
|
-
`,
|
|
2282
|
+
`,gU=({aside:e,children:t})=>J.createElement(pU,null,J.createElement(uU,null,t),J.createElement(fU,null,e)),gC=e=>{let t=V("Layout");return t?t(e):J.createElement(gU,d({},e))};var yC=m.div`
|
|
2283
2283
|
background-color: white;
|
|
2284
2284
|
border: 1px solid #e6e6e6;
|
|
2285
2285
|
width: 280px;
|
|
2286
2286
|
overflow: auto;
|
|
2287
2287
|
flex-shrink: 0;
|
|
2288
2288
|
${({theme:e})=>e.typography.title}
|
|
2289
|
-
`;var
|
|
2289
|
+
`;var yU=m.div`
|
|
2290
2290
|
border-top: 1px solid #f7f7f8;
|
|
2291
2291
|
padding: 0 8px;
|
|
2292
|
-
`,
|
|
2292
|
+
`,hU=m.h4`
|
|
2293
2293
|
${({theme:e})=>e.typography.title};
|
|
2294
2294
|
color: black;
|
|
2295
2295
|
padding: 0 8px;
|
|
2296
2296
|
margin: 1em 0;
|
|
2297
|
-
`,
|
|
2297
|
+
`,CU=({heading:e,children:t})=>J.createElement(yU,null,e&&J.createElement(hU,null,e),t),j2=CU;var vU=j`
|
|
2298
2298
|
${({active:e,theme:t})=>e&&`
|
|
2299
2299
|
background-color: ${t.palette.primary.shade3};
|
|
2300
2300
|
& > .actionItemChild {
|
|
@@ -2315,7 +2315,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2315
2315
|
color: ${({theme:e})=>e.palette.neutral.shade2};
|
|
2316
2316
|
background-color: transparent;
|
|
2317
2317
|
}
|
|
2318
|
-
${
|
|
2318
|
+
${vU}
|
|
2319
2319
|
`,vC=m(Ee)`
|
|
2320
2320
|
${CC};
|
|
2321
2321
|
width: 100%;
|
|
@@ -2344,9 +2344,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2344
2344
|
background: ${t.palette.base.shade4};
|
|
2345
2345
|
color: inherit;
|
|
2346
2346
|
`};
|
|
2347
|
-
`;var
|
|
2347
|
+
`;var xU=({"data-qa-anchor":e="",icon:t,children:o,active:r,className:n,onClick:i,element:a="a",disabled:s})=>a==="a"?J.createElement(xC,{"data-qa-anchor":e,className:n,onClick:i,active:r},t&&J.createElement($3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)):J.createElement(vC,{"data-qa-anchor":e,className:n,active:r,disabled:s,onClick:i},t&&J.createElement($3,{active:r},t),J.createElement("span",{className:"actionItemChild"},o)),dl=xU;var bU=m(np).attrs({width:20,height:20})``,IU=m(vi).attrs({width:20,height:20})``,wU=({shouldHideExplore:e,children:t})=>{let{onChangePage:o,page:r}=W();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(bU,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(IU,null),active:r.type==="explore",onClick:()=>o("explore")},J.createElement(FormattedMessage,{id:"sidesectioncommunity.explore"})),t)},bC=wU;var IC=m.span`
|
|
2348
2348
|
${({theme:e,highlight:t})=>t?e.typography.bodyBold:e.typography.body}
|
|
2349
|
-
`,
|
|
2349
|
+
`,_U=({query:e,text:t})=>{if(e==null||(e==null?void 0:e.length)===0)return J.createElement(IC,null,t);let o=t.split(new RegExp(`(${e})`,"gi"));return J.createElement("span",null,o.map((r,n)=>J.createElement(IC,{key:`#${r}#${n}`,highlight:r.toLowerCase()===e.toLowerCase()},r)))},Y3=_U;var wC=m(Pr).attrs({width:16,height:16})`
|
|
2350
2350
|
margin-right: 8px;
|
|
2351
2351
|
`,_C=m(Em).attrs({width:16,height:16})`
|
|
2352
2352
|
margin-left: 8px;
|
|
@@ -2364,7 +2364,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2364
2364
|
`}
|
|
2365
2365
|
${o&&e.typography.title}
|
|
2366
2366
|
`}
|
|
2367
|
-
`;var
|
|
2367
|
+
`;var PU=({"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(Y3,{text:a||"",query:s}):J.createElement(MC,{className:l,isActive:t,isTitle:n},c?J.createElement(W3,null,J.createElement(ye,{width:120,style:{fontSize:12}})):J.createElement(rg,{lines:p},J.createElement(W3,{"data-qa-anchor":`${e}-community-name`,title:a},J.createElement(J.Fragment,null,!r&&J.createElement(wC,{"data-qa-anchor":`${e}-private-icon`}),a))),!c&&o&&J.createElement(_C,null)),Fn=e=>{let t=V("CommunityName");return t?t(e):J.createElement(PU,d({},e))};var PC=m.a.withConfig({shouldForwardProp:e=>!["loading","isActive"].includes(e)})`
|
|
2368
2368
|
display: grid;
|
|
2369
2369
|
grid-template-areas: 'avatar title' 'avatar children';
|
|
2370
2370
|
grid-template-columns: min-content auto;
|
|
@@ -2395,20 +2395,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2395
2395
|
grid-area: avatar;
|
|
2396
2396
|
`,TC=m.div`
|
|
2397
2397
|
grid-area: children;
|
|
2398
|
-
`;var
|
|
2398
|
+
`;var SU=({communityId:e,isActive:t,avatarFileUrl:o,onClick:r,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,children:c,loading:p})=>J.createElement(PC,{"data-qa-anchor":"community-header",isActive:t,loading:p,onClick:()=>r==null?void 0:r(e)},J.createElement(SC,{avatar:o,backgroundImage:ao,loading:p}),p&&c?J.createElement(ye,{style:{fontSize:8,maxWidth:120}}):J.createElement(Fn,{"data-qa-anchor":"community-header",isActive:t,isOfficial:n,isPublic:i,isSearchResult:a,name:s,searchInput:l,loading:p}),c&&J.createElement(TC,null,c)),NC=e=>{let t=V("UICommunityHeader");return t?t(e):J.createElement(SU,d({},e))};var kU=({communityId:e="",onClick:t=()=>{},isActive:o=!1,isSearchResult:r=!1,searchInput:n="",children:i,loading:a=!1})=>{let s=Ye(e),l=te({fileId:s==null?void 0:s.avatarFileId,imageSize:"small"});return J.createElement(NC,{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(kU);var BU=e=>J.createElement(iH,d({},e)),kC=m(BU)`
|
|
2399
2399
|
&.no-scroll {
|
|
2400
2400
|
width: 260px;
|
|
2401
2401
|
}
|
|
2402
2402
|
`;m.p`
|
|
2403
2403
|
text-align: center;
|
|
2404
2404
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
2405
|
-
`;var
|
|
2405
|
+
`;var OU=m.p`
|
|
2406
2406
|
text-align: center;
|
|
2407
2407
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
2408
|
-
`,
|
|
2408
|
+
`,HU=({className:e,communitiesQueryParam:t,activeCommunity:o})=>{let{onClickCommunity:r}=W(),{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(He);function h(){return new Array(5).fill(1).map((C,y)=>J.createElement(cl,{key:y,loading:!0}))}return J.createElement(kC,{className:so(g),dataLength:u.length,next:a,hasMore:i,loader:J.createElement("div",null)},J.createElement(Gt,{hasMore:i,loadMore:a,className:"no-border",contentSlot:J.createElement(J.Fragment,null,f&&J.createElement(OU,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())}))},EC=memo(HU);var UU=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(H9,{"data-qa-anchor":`${e}-label`},J.createElement(U9,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=UU;var GU=m(ep).attrs({height:20,width:20})`
|
|
2409
2409
|
z-index: 3;
|
|
2410
2410
|
fill: #fff;
|
|
2411
|
-
|
|
2411
|
+
`,$U=m.div`
|
|
2412
2412
|
background: ${({theme:e})=>e.palette.base.shade3};
|
|
2413
2413
|
border-radius: 4px;
|
|
2414
2414
|
position: relative;
|
|
@@ -2418,7 +2418,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2418
2418
|
overflow: hidden;
|
|
2419
2419
|
align-self: center;
|
|
2420
2420
|
transition: background 0.2s linear;
|
|
2421
|
-
`,
|
|
2421
|
+
`,ZU=m.div`
|
|
2422
2422
|
position: absolute;
|
|
2423
2423
|
top: 50%;
|
|
2424
2424
|
left: 50%;
|
|
@@ -2436,7 +2436,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2436
2436
|
align-items: center;
|
|
2437
2437
|
text-align: center;
|
|
2438
2438
|
}
|
|
2439
|
-
|
|
2439
|
+
`,qU=m(k2)`
|
|
2440
2440
|
display: inline-block;
|
|
2441
2441
|
width: 100%;
|
|
2442
2442
|
height: 100%;
|
|
@@ -2448,14 +2448,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2448
2448
|
&:hover {
|
|
2449
2449
|
background: rgba(0, 0, 0, 0.3);
|
|
2450
2450
|
}
|
|
2451
|
-
`,
|
|
2451
|
+
`,YU=m.div`
|
|
2452
2452
|
width: 100%;
|
|
2453
2453
|
height: 100%;
|
|
2454
2454
|
background-image: url(${({src:e})=>e});
|
|
2455
2455
|
background-size: cover;
|
|
2456
2456
|
background-position: center center;
|
|
2457
2457
|
background-repeat: no-repeat;
|
|
2458
|
-
`,
|
|
2458
|
+
`,WU=({uploading:e,uploaded:t,progress:o})=>{let r=[...e,...t].sort((a,s)=>{let l=U3(a);return U3(s)-l}),n=r.length>0?r[0]:null;if(!n)return null;if(!qa(n))return J.createElement(it,{key:n==null?void 0:n.name,file:n,progress:o[n==null?void 0:n.name]});let{fileId:i}=n;return J.createElement(it,{key:i,fileId:i})},QU=({"data-qa-anchor":e="",onChange:t,value:o,mimeType:r})=>{let[n,i]=useState([]),[a,s]=useState([]),l=nt(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($U,null,J.createElement(WU,{uploading:u,uploaded:f,progress:g}),J.createElement(YU,{src:p!=null?p:w6}),J.createElement(qU,{"data-qa-anchor":`${e}-avatar-uploader`,mimeType:r,onChange:h=>i(h)},J.createElement(ZU,null,J.createElement(GU,null)," \xA0 Upload image")))},Vn=QU;var RU=e=>{let[t,o]=useState(null);return useEffect(()=>{function r(){return M(this,null,function*(){if(e==null)return;let n=yield CategoryRepository.getCategory(e);o(n.data);})}r();},[e]),t},On=RU;var BC=m.div`
|
|
2459
2459
|
display: grid;
|
|
2460
2460
|
grid-template-areas: 'avatar title' 'avatar subtitle';
|
|
2461
2461
|
grid-template-columns: min-content auto;
|
|
@@ -2486,11 +2486,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2486
2486
|
`,DC=m.div`
|
|
2487
2487
|
grid-area: subtitle;
|
|
2488
2488
|
${({theme:e})=>e.typography.body}
|
|
2489
|
-
`;var
|
|
2489
|
+
`;var ez=({className:e,categoryId:t,name:o,avatarFileUrl:r,children:n,onClick:i,loading:a})=>J.createElement(BC,{className:e,title:o,hasNoChildren:!n,clickable:!a&&!!i,onClick:()=>t&&(i==null?void 0:i(t))},J.createElement(LC,{avatar:r,backgroundImage:Sm,loading:a}),J.createElement(FC,{title:t},a?J.createElement(ye,{style:{fontSize:12,maxWidth:124}}):o),n&&J.createElement(DC,{onClick:c=>c.stopPropagation()},n)),VC=e=>{let t=V("CategoryHeader");return t?t(e):J.createElement(ez,d({},e))};var oz=({className:e,categoryId:t,children:o,loading:r,onClick:n})=>{let i=On(t),a=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"});return J.createElement(VC,{className:e,categoryId:i==null?void 0:i.categoryId,name:i==null?void 0:i.name,avatarFileUrl:a,loading:r||!1,onClick:n},o)},OC=oz;var az=m.div`
|
|
2490
2490
|
margin-top: 8px;
|
|
2491
2491
|
color: ${({theme:e})=>e.palette.alert.main};
|
|
2492
2492
|
${({theme:e})=>e.typography.caption}
|
|
2493
|
-
`,fo=e=>J.createElement(ErrorMessage,d({as:
|
|
2493
|
+
`,fo=e=>J.createElement(ErrorMessage,d({as:az},e));m.span`
|
|
2494
2494
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
2495
2495
|
`;var G2=m(rp).attrs({width:20,height:20})``,$2=m(Pr).attrs({width:20,height:20})``;m(wo).attrs({width:12,height:12})`
|
|
2496
2496
|
padding: 5px 12px;
|
|
@@ -2613,7 +2613,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2613
2613
|
padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
|
|
2614
2614
|
display: flex;
|
|
2615
2615
|
justify-content: ${({edit:e})=>e?"flex-start":"flex-end"};
|
|
2616
|
-
`,
|
|
2616
|
+
`,sz=m.div`
|
|
2617
2617
|
background: rgba(0, 0, 0, 0);
|
|
2618
2618
|
top: 0;
|
|
2619
2619
|
left: 0;
|
|
@@ -2640,7 +2640,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2640
2640
|
border-radius: 50%;
|
|
2641
2641
|
overflow: hidden;
|
|
2642
2642
|
align-self: center;
|
|
2643
|
-
&:hover ${
|
|
2643
|
+
&:hover ${sz} {
|
|
2644
2644
|
background: rgba(0, 0, 0, 0.5);
|
|
2645
2645
|
}
|
|
2646
2646
|
`;m.div`
|
|
@@ -2706,7 +2706,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2706
2706
|
`,ZC=m(Y)`
|
|
2707
2707
|
padding: 0.4rem 0.55rem;
|
|
2708
2708
|
border-radius: 10rem;
|
|
2709
|
-
`;var
|
|
2709
|
+
`;var lz=({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(jC,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:Sm}),J.createElement(GC,null,t),!!n&&J.createElement(ZC,{onClick:a},J.createElement($C,null)))},YC=lz;var dz=({categoryId:e,onClick:t,onRemove:o})=>{let r=On(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(YC,{categoryId:r.categoryId,name:r.name,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},WC=dz;function ul(e){let r=Me({fetcher:CategoryRepository.getCategories,params:e}),{items:t}=r,o=I(r,["items"]);return d({categories:t},o)}var fz=({"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=v=>{var x;l(v),a(!!v),v&&((x=u.current)==null||x.focus());},g=()=>{l(""),a(!1);},{categories:h}=ul({includeDeleted:!1,limit:100}),C=h.filter(v=>s?v.name.includes(s):!0).map(v=>({name:v.name,value:v.categoryId})),y=n.map(v=>{var x;return {name:((x=h.find(_=>_.categoryId===v))==null?void 0:x.name)||"",value:v}});return J.createElement(Ar,{"data-qa-anchor":`${e}-category`,value:y,options:C,renderTrigger:P=>{var b=P,{selected:v,remove:x}=b,_=I(b,["selected","remove"]);return J.createElement(HC,S(d({},_),{onClick:c,"data-qa-anchor":`${e}-category-selector`}),v.map(w=>J.createElement(WC,{key:w.value,categoryId:w.value,onRemove:()=>x(w,o)})),J.createElement(zC,{ref:u,"data-qa-anchor":"category-selector-input",type:"text",value:s,placeholder:p({id:"selectACategory"}),onChange:w=>f(w.target.value)}),J.createElement(UC,null))},renderItem:({value:v})=>J.createElement(OC,{categoryId:v}),parentContainer:r,isOpen:i,handleClose:g,multiple:!0,onSelect:({value:v})=>{var x;l(""),(x=u.current)==null||x.focus(),o==null||o([...new Set([...n,v])]);}})},K2=e=>{let t=V("CategorySelector");return t?t(e):J.createElement(fz,d({},e))};var hz=1,X2=(e,t=hz)=>{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 JC=m.div`
|
|
2710
2710
|
display: grid;
|
|
2711
2711
|
grid-template-areas: 'avatar title' 'avatar subtitle';
|
|
2712
2712
|
grid-template-columns: min-content auto;
|
|
@@ -2735,7 +2735,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2735
2735
|
`,ev=m.div`
|
|
2736
2736
|
grid-area: subtitle;
|
|
2737
2737
|
${({theme:e})=>e.typography.body}
|
|
2738
|
-
`;var
|
|
2738
|
+
`;var Cz=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"})))),tv=Cz;var Gi=({className:e})=>J.createElement(tv,{className:e});var xz=({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(JC,{noSubtitle:!!r},J.createElement(XC,{avatar:o,backgroundImage:De,onClick:s}),J.createElement(RC,{title:e||void 0,onClick:s},J.createElement("div",null,t)," ",i&&J.createElement(Sr,null)," ",a&&J.createElement(Gi,null)),r&&J.createElement(ev,null,r))},R2=e=>{let t=V("UserHeader");return t?t(e):J.createElement(xz,d({},e))};var Iz=({userId:e,children:t,onClick:o,isBanned:r=!1})=>{let n=le(e),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:i,isBanned:r,isBrand:n==null?void 0:n.isBrand,onClick:o},t)},Lr=Iz;var ov=m.div`
|
|
2739
2739
|
display: flex;
|
|
2740
2740
|
align-items: center;
|
|
2741
2741
|
padding: 0.25rem;
|
|
@@ -2750,7 +2750,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2750
2750
|
`,iv=m(Y)`
|
|
2751
2751
|
padding: 0.4rem 0.55rem;
|
|
2752
2752
|
border-radius: 10rem;
|
|
2753
|
-
`;var
|
|
2753
|
+
`;var wz=({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(ov,{onClick:i},J.createElement(ve,{size:"tiny",avatar:o,backgroundImage:De}),J.createElement(rv,null,t),!!n&&J.createElement(iv,{onClick:a},J.createElement(nv,null)))},sv=e=>{let t=V("UserChip");return t?t(e):J.createElement(wz,d({},e))};var Mz=({userId:e,onClick:t,onRemove:o})=>{let r=le(e),n=te({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:J.createElement(sv,{userId:r.userId,displayName:r.displayName,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},lv=Mz;var mv=m.div`
|
|
2754
2754
|
border: 1px solid #e3e4e8;
|
|
2755
2755
|
&:focus-within {
|
|
2756
2756
|
border: 1px solid ${({theme:e})=>e.palette.primary.main};
|
|
@@ -2768,7 +2768,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2768
2768
|
outline: none;
|
|
2769
2769
|
border: none;
|
|
2770
2770
|
width: 100%;
|
|
2771
|
-
`;var
|
|
2771
|
+
`;var Nz=({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:v})=>(y==null?void 0:y.toLowerCase().includes(s.toLowerCase()))&&v!==n).map(({displayName:y,userId:v})=>({name:y,value:v})),f=r.map(y=>{var v;return {name:((v=c.find(x=>x.userId===y))==null?void 0:v.displayName)||"",value:y}}),g=()=>{a(!1),l("");},h=useRef(null),C=y=>{var v;l(y),a(!!y),y&&((v=h.current)==null||v.focus());};return J.createElement(Ar,{"data-qa-anchor":"user",value:f,options:s?u:[],renderTrigger:_=>{var P=_,{selected:y,remove:v}=P,x=I(P,["selected","remove"]);return J.createElement(mv,d({},x),y.map(b=>J.createElement(lv,{key:b.value,userId:b.value,onRemove:()=>v(b,t)})),J.createElement(dv,{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 v;t==null||t([...new Set([...r,y])]),(v=h.current)==null||v.focus(),l("");}})},$n=memo(e=>{let t=V("UserSelector");return t?t(e):J.createElement(Nz,d({},e))});var fv=pr.object({displayName:pr.string().max(30),description:pr.string().max(180),categoryIds:pr.string().array().min(1),avatarFileId:pr.string().nullable().optional(),tags:pr.string().array().optional(),isPublic:pr.boolean()}),kz=fv.extend({userIds:pr.string().array().optional()}).refine(e=>{var t;return !(!e.isPublic&&((t=e.userIds)==null?void 0:t.length)===0)}),Ez=fv.partial(),gv=()=>useForm({defaultValues:{avatarFileId:void 0,description:"",displayName:"",isPublic:!0,tags:[],userIds:[],categoryIds:[]},resolver:zodResolver(kz)}),yv=e=>useForm({defaultValues:{avatarFileId:e.avatarFileId,description:e.description,displayName:e.displayName,isPublic:e.isPublic,tags:e.tags,categoryIds:e.categoryIds},resolver:zodResolver(Ez)});var Q3=({title:e,children:t})=>J.createElement(Un,null,J.createElement(zn,null,t)),hv=({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))),Fz=({"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}=gv(),{errors:h}=u,C=c("displayName"),y=c("description"),v=c("isPublic"),x=useRef(null),_=w=>M(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);}}),P=!u.isValid||n,b=x.current&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&x.current&&b<10&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop>10&&x.current.scrollTo({top:x.current.scrollHeight});},[x.current,b,u]),J.createElement(Hn,{className:t,onSubmit:s(_)},J.createElement(jn,{ref:x},J.createElement(Q3,{title:"General"},J.createElement(go,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:k=>{var {field:N}=k,D=N,T=I(D,["ref"]);return J.createElement(Vn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":e}))}})),J.createElement(go,{error:h.displayName},J.createElement(nn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(rn,null,C.length,"/30")),J.createElement(Ui,S(d({},a("displayName")),{"data-qa-anchor":`${e}-community-name-input`,placeholder:"Enter community name"})),J.createElement(fo,{errors:h,name:"displayName"})),J.createElement(go,{error:h.description},J.createElement(nn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(rn,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(fo,{errors:h,name:"description"})),J.createElement(go,{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:D}=N,q=D,k=I(q,["ref","onChange"]);return J.createElement(K2,S(d({parentContainer:x.current,onChange:$=>f("categoryIds",$,{shouldValidate:!0})},k),{"data-qa-anchor":`${e}`}))},control:p}),J.createElement(fo,{errors:h,name:"category"}))),J.createElement(Q3,{title:J.createElement(FormattedMessage,{id:"community.categorypermission"})},J.createElement(Controller,{name:"isPublic",render:({field:w})=>J.createElement(J.Fragment,null,J.createElement(Ka,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(hv,{type:"Public",description:"Anyone can join, view and search the posts in this page.",icon:J.createElement(G2,null)})})),J.createElement(Ka,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(hv,{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})),!v&&J.createElement(Q3,{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,D=N,T=I(D,["ref"]);return J.createElement($n,d({parentContainer:x.current,"data-qa-anchor":e},T))},control:p}),J.createElement(fo,{errors:h,name:"userIds"})))),J.createElement(Ra,null,J.createElement(Y,{onClick:w=>{w.preventDefault(),r==null||r();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(Xa,{"data-qa-anchor":`${e}-save-button`,disabled:P},J.createElement(FormattedMessage,{id:"create"}))))},td=memo(Fz);var Hz=({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(vt,{"data-qa-anchor":"community-creation-modal",title:"Create community",onCancel:n},J.createElement(td,{"data-qa-anchor":"community-creation",onCancel:n,onSubmit:a=>M(void 0,null,function*(){let s=yield CommunityRepository.createCommunity(a);t(s.data.communityId);})}))},Cv=memo(e=>{let t=V("CommunityCreationModal");return t?t(e):J.createElement(Hz,d({},e))});var jz=({className:e,activeCommunity:t})=>{let{socialCommunityCreationButtonVisible:o}=g7(),{onCommunityCreated:r}=W(),[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(EC,{className:e,communitiesQueryParam:{membership:"member",limit:20},activeCommunity:t}),J.createElement(ba,null,J.createElement(Cv,{isOpen:n,onClose:l=>{i(!1),l&&r(l);}})))},xv=memo(jz);var qz=m.div`
|
|
2772
2772
|
flex: 1 1 auto;
|
|
2773
2773
|
z-index: 1;
|
|
2774
2774
|
position: relative;
|
|
@@ -2779,7 +2779,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2779
2779
|
background: #fff;
|
|
2780
2780
|
border-radius: 4px;
|
|
2781
2781
|
cursor: pointer;
|
|
2782
|
-
`,
|
|
2782
|
+
`,Yz=m.div`
|
|
2783
2783
|
flex: 1 1 auto;
|
|
2784
2784
|
z-index: 1;
|
|
2785
2785
|
position: relative;
|
|
@@ -2790,15 +2790,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2790
2790
|
display: flex;
|
|
2791
2791
|
align-items: center;
|
|
2792
2792
|
justify-content: center;
|
|
2793
|
-
`,
|
|
2793
|
+
`,Wz=({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,v=(C==null?void 0:C.clientHeight)||0;(y<g||y+v>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,v=(C==null?void 0:C.clientHeight)||0;(y<g||y+v>g+h)&&n.current.scrollTo(0,y+v-h),a(f);};return mo("ArrowUp",p),mo("ArrowDown",u),mo("Escape",()=>a(-1)),mo("Enter",()=>t==null?void 0:t(i)),e.length?J.createElement(qz,{ref:n,onMouseLeave:l},e.map((f,g)=>J.createElement(Jt,{key:`#${g}`,hover:g===i,onClick:c(g),onMouseEnter:s(g)},r(f))),o&&J.createElement(Jt,null,o)):J.createElement(Yz,{"data-qa-anchor":"suggestions-placeholder-no-results"},J.createElement(FormattedMessage,{id:"placeholder.noResults"}))},fl=Wz;var Kz=m.div`
|
|
2794
2794
|
position: relative;
|
|
2795
|
-
`,
|
|
2795
|
+
`,Jz=m(Er)`
|
|
2796
2796
|
z-index: 10;
|
|
2797
2797
|
position: absolute;
|
|
2798
2798
|
top: calc(100% + 0.25rem);
|
|
2799
2799
|
width: 100%;
|
|
2800
2800
|
color: ${({theme:e})=>e.palette.base.main};
|
|
2801
|
-
`;var Iv=({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]),mo("Escape",a),{isOpen:o,open:s,close:a,containerRef:n}},
|
|
2801
|
+
`;var Iv=({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]),mo("Escape",a),{isOpen:o,open:s,close:a,containerRef:n}},Xz=({"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,v]=T1(h),x=()=>C(!1);return useEffect(()=>{c||r.length>0&&C(!0);},[r,c]),useEffect(()=>{!v&&x();},[v]),mo("Escape",x),J.createElement(Kz,{ref:y},J.createElement(It,{"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(Jz,null,J.createElement(fl,{items:t,append:i&&J.createElement(Y,{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)})))},wv=Xz;var _v=m.div`
|
|
2802
2802
|
display: flex;
|
|
2803
2803
|
align-items: center;
|
|
2804
2804
|
padding-left: 20px;
|
|
@@ -2862,7 +2862,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
2864
|
transition: border-color 0.3s;
|
|
2865
|
-
`;var
|
|
2865
|
+
`;var ej=({"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))))),yo=memo(e=>{let t=V("Tabs");return t?t(e):J.createElement(ej,d({},e))});var tj=m.div`
|
|
2866
2866
|
position: relative;
|
|
2867
2867
|
`,Tv=m(Er)`
|
|
2868
2868
|
z-index: 10;
|
|
@@ -2870,19 +2870,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2870
2870
|
top: calc(100% + 0.25rem);
|
|
2871
2871
|
width: 100%;
|
|
2872
2872
|
color: ${({theme:e})=>e.palette.base.main};
|
|
2873
|
-
`,
|
|
2873
|
+
`,oj=({searchValue:e,isOpen:t})=>{let{onClickCommunity:o}=W(),{communities:r,hasMore:n,loadMore:i}=Br({displayName:e}),a=r.filter(He),s=a.map(l=>l.displayName);return t?J.createElement(Tv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(Y,{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},rj=({searchValue:e,isOpen:t})=>{let{onClickUser:o}=W(),{users:r,hasMore:n,loadMore:i}=X2(e),a=r.filter(He),s=a.map(l=>l.displayName);return t?J.createElement(Tv,null,J.createElement(fl,{items:s,append:n&&i?J.createElement(Y,{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},nj=({className:e,sticky:t=!1,searchBy:o})=>{let[r,n]=useState(""),[i,a]=useState(o),{open:s,close:l,isOpen:c,containerRef:p}=Iv({value:r});function u(){n("");}return J.createElement(Pv,{className:e,sticky:t},J.createElement(FormattedMessage,{id:"exploreHeader.searchCommunityPlaceholder"},([f])=>J.createElement(tj,{ref:p},J.createElement(It,{"data-qa-anchor":"social-search-input",value:r,prepend:J.createElement(_v,null,J.createElement(Mv,null)),placeholder:typeof f=="string"?f:void 0,onClear:u,onChange:g=>n==null?void 0:n(g.plainText),onClick:()=>s()}),c?J.createElement(yo,{tabs:[{value:"communities",label:"Communities"},{value:"accounts",label:"Accounts"}],activeTab:i,onChange:g=>a(g)}):null,i==="communities"?J.createElement(oj,{searchValue:r,isOpen:c}):null,i==="accounts"?J.createElement(rj,{searchValue:r,isOpen:c}):null)))},Nv=e=>{let t=V("SocialSearch");return t?t(e):J.createElement(nj,d({},e))};var ij=m(Nv)`
|
|
2874
2874
|
background: ${({theme:e})=>e.palette.system.background};
|
|
2875
2875
|
padding: 0.5rem;
|
|
2876
|
-
`,
|
|
2876
|
+
`,aj=({className:e,activeCommunity:t})=>J.createElement(yC,{"data-qa-anchor":"community-side-menu",className:e},J.createElement(ij,{sticky:!0,searchBy:"communities"}),J.createElement(bC,null),J.createElement(xv,{activeCommunity:t})),ld=aj;var R3=16,cj={720:1,1024:2,1280:3,1440:4,1800:5},pj=m.div`
|
|
2877
2877
|
display: flex;
|
|
2878
2878
|
justify-content: space-between;
|
|
2879
2879
|
margin: 0 0 16px 0;
|
|
2880
2880
|
align-items: flex-end;
|
|
2881
|
-
`,
|
|
2881
|
+
`,uj=m.h2`
|
|
2882
2882
|
${({theme:e})=>e.typography.headline};
|
|
2883
2883
|
display: inline-block;
|
|
2884
2884
|
margin: 0;
|
|
2885
|
-
`,
|
|
2885
|
+
`,fj=m.div`
|
|
2886
2886
|
display: flex;
|
|
2887
2887
|
gap: 20px;
|
|
2888
2888
|
`,Ev=m(Y).attrs({variant:"secondary"})`
|
|
@@ -2896,21 +2896,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2896
2896
|
&:disabled {
|
|
2897
2897
|
color: ${({theme:e})=>e.palette.neutral.shade3};
|
|
2898
2898
|
}
|
|
2899
|
-
`,
|
|
2899
|
+
`,gj=m.div`
|
|
2900
2900
|
overflow-x: hidden;
|
|
2901
|
-
`;function
|
|
2901
|
+
`;function yj(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 hj=m.div.withConfig({shouldForwardProp:e=>e!=="currentWidth"&&e!=="columns"})`
|
|
2902
2902
|
margin-bottom: 0.188rem; // give the shadow a little space
|
|
2903
2903
|
display: grid;
|
|
2904
2904
|
grid-auto-flow: column;
|
|
2905
2905
|
grid-auto-columns: 100%;
|
|
2906
2906
|
grid-gap: ${R3}px;
|
|
2907
2907
|
|
|
2908
|
-
${({currentWidth:e,columns:t})=>{let o=
|
|
2908
|
+
${({currentWidth:e,columns:t})=>{let o=yj(e,t);return j`
|
|
2909
2909
|
grid-auto-columns: calc(
|
|
2910
2910
|
(100% / ${o}) - (${R3}px * ${o-1} / ${o})
|
|
2911
2911
|
);
|
|
2912
2912
|
`}}
|
|
2913
|
-
`,
|
|
2913
|
+
`,Cj=({title:e="",children:t,columns:o=cj,hasMore:r=!1,loadMore:n=()=>{}})=>{var C,y;let i=useRef(null),{x:a}=dj(i),[s,{width:l}]=mj(),[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 v;return (v=i.current)==null?void 0:v.scrollTo({left:(l+R3)*c,behavior:"smooth"})},[l,c]),useEffect(()=>{a>=u-l*2&&r&&n();},[a,u,l,r,n]),J.createElement("div",{ref:s},J.createElement(pj,null,J.createElement(uj,null,e),f&&J.createElement(fj,null,J.createElement(Ev,{disabled:h,onClick:()=>p(c-1)},J.createElement(Yr,{height:"20px",width:"20px"})),J.createElement(Ev,{disabled:g,onClick:()=>p(c+1)},J.createElement(xi,{height:"20px",width:"20px"})))),J.createElement(gj,{ref:i,page:c},i.current?J.createElement(hj,{currentWidth:i.current.clientWidth,columns:o},t):null))},md=Cj;var Av=m.div`
|
|
2914
2914
|
cursor: pointer;
|
|
2915
2915
|
box-shadow:
|
|
2916
2916
|
0 0 1px rgba(40, 41, 61, 0.08),
|
|
@@ -2962,7 +2962,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2962
2962
|
margin-bottom: 4px;
|
|
2963
2963
|
`,Hv=m.div`
|
|
2964
2964
|
${({theme:e})=>e.typography.caption}
|
|
2965
|
-
`;var
|
|
2965
|
+
`;var bj=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(Av,d({onClick:()=>(t==null?void 0:t.communityId)&&(i==null?void 0:i(t.communityId))},p),J.createElement(Bv,{backgroundImage:e},J.createElement(Lv,null,J.createElement(Fv,{isOfficial:a,isPublic:s,isTitle:!0,name:l,truncate:2}),J.createElement(rg,{lines:1},J.createElement(Dv,null,(o||[]).map(h=>h.name).join(", "))))),J.createElement(Vv,null,c&&J.createElement(ye,{style:{fontSize:8}}),!c&&J.createElement(Ov,null,fg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}})),!c&&n?J.createElement(rg,{lines:2},J.createElement(Hv,null,n)):null))},ns=e=>{let t=V("UICommunityCard");return t?t(e):J.createElement(bj,d({},e))};var Mj=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return M(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>M(this,null,function*(){return (yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},is=Mj;var Sj=r=>{var n=r,{communityId:e,onClick:t}=n,o=I(n,["communityId","onClick"]);var u;let i=Ye(e),a=nt(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(Sj);function t5(e){let r=Me({fetcher:CommunityRepository.getRecommendedCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=I(r,["items"]);return d({communities:t},o)}var Ej=()=>{let{onClickCommunity:e}=W(),{communities:t,isLoading:o}=t5(),r=o?J.createElement(ye,{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},zv=memo(Ej);var Lj=m.div`
|
|
2966
2966
|
display: grid;
|
|
2967
2967
|
grid-template-columns: 118px auto;
|
|
2968
2968
|
cursor: pointer;
|
|
@@ -2973,7 +2973,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2973
2973
|
border-radius: 8px;
|
|
2974
2974
|
background: ${({theme:e})=>e.palette.system.background};
|
|
2975
2975
|
overflow: hidden;
|
|
2976
|
-
`,
|
|
2976
|
+
`,Fj=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
|
|
2977
2977
|
padding-left: 100%;
|
|
2978
2978
|
|
|
2979
2979
|
${({backgroundImage:e,theme:t})=>`
|
|
@@ -2982,42 +2982,42 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
2982
2982
|
background-position: center;
|
|
2983
2983
|
background-size: cover;
|
|
2984
2984
|
`}
|
|
2985
|
-
`,
|
|
2985
|
+
`,Dj=m.div`
|
|
2986
2986
|
padding: 16px;
|
|
2987
2987
|
display: flex;
|
|
2988
2988
|
flex-direction: column;
|
|
2989
2989
|
justify-content: center;
|
|
2990
2990
|
overflow: hidden;
|
|
2991
|
-
`,
|
|
2991
|
+
`,Vj=m.span`
|
|
2992
2992
|
&:after {
|
|
2993
2993
|
content: ' • ';
|
|
2994
2994
|
}
|
|
2995
|
-
`,
|
|
2995
|
+
`,Oj=m.span`
|
|
2996
2996
|
font: inherit;
|
|
2997
2997
|
&:not(:first-child):before {
|
|
2998
2998
|
content: ' ';
|
|
2999
2999
|
}
|
|
3000
|
-
`,
|
|
3000
|
+
`,Hj=m.div`
|
|
3001
3001
|
${({theme:e})=>e.typography.caption};
|
|
3002
3002
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
3003
3003
|
|
|
3004
3004
|
& > * {
|
|
3005
3005
|
font: inherit;
|
|
3006
3006
|
}
|
|
3007
|
-
`,
|
|
3007
|
+
`,Uj=m.p`
|
|
3008
3008
|
margin: 0.5rem 0 0;
|
|
3009
3009
|
${({theme:e})=>e.typography.caption}
|
|
3010
|
-
`,
|
|
3010
|
+
`,zj=m(Fn)`
|
|
3011
3011
|
${({theme:e})=>e.typography.title};
|
|
3012
3012
|
|
|
3013
3013
|
&:before {
|
|
3014
3014
|
content: counter(trending, decimal-leading-zero);
|
|
3015
3015
|
margin-right: 0.375em;
|
|
3016
3016
|
}
|
|
3017
|
-
`,
|
|
3017
|
+
`,jj=({avatarFileUrl:e,description:t,categories:o=[],membersCount:r,onClick:n,isOfficial:i,isPublic:a,name:s,loading:l})=>J.createElement(Lj,{onClick:n},J.createElement(Fj,{backgroundImage:e}),J.createElement(Dj,null,l?J.createElement(J.Fragment,null,J.createElement(ye,{style:{fontSize:"0.5rem",maxWidth:"7.5rem"}}),J.createElement("div",null,J.createElement(ye,{style:{fontSize:"0.5rem",maxWidth:"13.5rem"}})),J.createElement(ye,{width:"2.5rem",style:{fontSize:"0.5rem"}}),J.createElement(ye,{width:"2.5rem",style:{fontSize:"0.5rem",marginLeft:"0.75rem"}})):J.createElement(J.Fragment,null,J.createElement(zj,{isOfficial:i,isPublic:a,name:s}),J.createElement(Hj,null,o.length>0&&J.createElement(rg,{lines:1},J.createElement(Vj,null,o.map(c=>J.createElement(Oj,{key:c.categoryId},c.name)))),J.createElement("span",null,fg(r||0)," ",J.createElement(FormattedMessage,{id:"plural.member",values:{amount:r}}))),t&&J.createElement(rg,{lines:2},J.createElement(Uj,null,t))))),cd=e=>{let t=V("UITrendingItem");return t?t(e):J.createElement(jj,d({},e))};var Zj=({communityId:e,onClick:t,loading:o})=>{let r=Ye(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 Gv=memo(Zj);var qj=m.h2`
|
|
3018
3018
|
${({theme:e})=>e.typography.headline};
|
|
3019
3019
|
margin: 0 0 1rem 0;
|
|
3020
|
-
`,$v
|
|
3020
|
+
`,$v=qj;function o5(e){let r=Me({fetcher:CommunityRepository.getTrendingCommunities,params:S(d({},e),{limit:10})}),{items:t}=r,o=I(r,["items"]);return d({communities:t},o)}var Qj=m.ul`
|
|
3021
3021
|
list-style: none;
|
|
3022
3022
|
counter-reset: trending;
|
|
3023
3023
|
padding: 0;
|
|
@@ -3034,7 +3034,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3034
3034
|
@media (min-width: 1800px) {
|
|
3035
3035
|
grid-template-columns: repeat(3, 1fr);
|
|
3036
3036
|
}
|
|
3037
|
-
`,
|
|
3037
|
+
`,Kj=()=>{let{onClickCommunity:e}=W(),{communities:t,loadMoreHasBeenCalled:o}=o5(),r=o?J.createElement(ye,{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(Gv,{communityId:i,onClick:e})));return J.createElement("div",null,J.createElement($v,null,r),J.createElement(Qj,null,n))},Zv=Kj;var qv=m.div.withConfig({shouldForwardProp:e=>e!=="backgroundImage"})`
|
|
3038
3038
|
min-width: 160px;
|
|
3039
3039
|
min-height: 150px;
|
|
3040
3040
|
cursor: pointer;
|
|
@@ -3057,7 +3057,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3057
3057
|
color: #ffffff;
|
|
3058
3058
|
${({theme:e})=>e.typography.title}
|
|
3059
3059
|
margin: 0;
|
|
3060
|
-
`;var
|
|
3060
|
+
`;var Xj=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(qv,d({backgroundImage:o||p||void 0,onClick:c},a),J.createElement(Yv,null,i&&J.createElement(ye,{style:{fontSize:16}}),!i&&J.createElement(rg,{lines:2},J.createElement(Wv,null,t))))},pd=e=>{let t=V("UICategoryCard");return t?t(e):J.createElement(Xj,d({},e))};var tG=i=>{var a=i,{categoryId:e,className:t,loading:o,onClick:r}=a,n=I(a,["categoryId","className","loading","onClick"]);let s=On(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(tG);var Qv=m(pd)`
|
|
3061
3061
|
> :first-child {
|
|
3062
3062
|
padding-right: 1rem;
|
|
3063
3063
|
padding-left: 0;
|
|
@@ -3070,7 +3070,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3070
3070
|
|
|
3071
3071
|
padding-left: 1rem;
|
|
3072
3072
|
padding-right: 1rem;
|
|
3073
|
-
`,
|
|
3073
|
+
`,nG=()=>{let{onClickCategory:e}=W(),{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(Qv,{key:s.categoryId,loading:!0}):J.createElement(Qv,{key:s.categoryId,categoryId:s.categoryId,name:s.name,avatarFileId:s.avatarFileId,onClick:e})))},Kv=nG;var Jv=m.div`
|
|
3074
3074
|
max-width: 1450px;
|
|
3075
3075
|
margin: 0 auto;
|
|
3076
3076
|
padding: 30px 0;
|
|
@@ -3129,14 +3129,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3129
3129
|
transition: transform 0.3s ease-in-out;
|
|
3130
3130
|
`,cs=m(u1)`
|
|
3131
3131
|
cursor: pointer;
|
|
3132
|
-
`;var
|
|
3132
|
+
`;var aG=m(ls)`
|
|
3133
3133
|
background-color: #f7f7f8;
|
|
3134
|
-
`,
|
|
3134
|
+
`,sG=m.div`
|
|
3135
3135
|
height: 100%;
|
|
3136
3136
|
margin: 0 auto;
|
|
3137
3137
|
padding: 28px 0;
|
|
3138
3138
|
overflow-y: auto;
|
|
3139
|
-
`,aG=({isOpen:e,toggleOpen:t,hideSideMenu:o})=>{let{formatMessage:r}=useIntl();return J.createElement(iG,null,o!==!0&&J.createElement(J.Fragment,null,J.createElement(ms,{isOpen:e,onClick:t}),J.createElement(ds,{isOpen:e}),J.createElement(nG,null,J.createElement(cs,{onClick:t}),J.createElement(ss,null,r({id:"sidebar.explore"})))),J.createElement(Jv,null,J.createElement(zv,null),J.createElement(Zv,null),J.createElement(Kv,null)))},Rv=aG;var r5={emptyStateRing:"na",errorRing:"la",uploadingProgressRing:"da","upload-progress":"q"};var lG=({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:r5.emptyStateRing}))},mG=({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}))},dG=({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:r5.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(dG,{pageId:e,componentId:t,elementId:c,size:i}):o?J.createElement(mG,{pageId:e,componentId:t,elementId:c,size:i}):J.createElement(lG,{pageId:e,componentId:t,elementId:c,size:i})};function qo(e){return e!=null}var cG=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function ex(e){return e==="https://"||cG.test(e)}function uG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=kp(),[a,s]=useState(!1),[l,c]=useState(n||!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),v=useRef(null),x=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 v.current=b,()=>{b();}},[t,n]);let P=useCallback(()=>{v.current&&v.current();let{unsubscribe:b}=i({fetcher:e,params:t,callback:_,refresh:!0});return v.current=b,()=>b()},[]);return {items:p,hasMore:h,isLoading:l,loadMore:x,error:f,loadMoreHasBeenCalled:a,refresh:P}}var pt=uG;var ps,us,fd,ox,vl,i5,Zi=class Zi{constructor(){Ot(this,fd);Ot(this,vl);Ot(this,ps,void 0);yn(this,ps,new Map);}static get instance(){return Qt(Zi,us)||yn(Zi,us,new Zi),Qt(Zi,us)}hasReachedLimit(t){let o=Io(this,vl,i5).call(this,t);return Qt(this,ps).get(t)===o}markSeen(t){Qt(this,ps).set(t,Io(this,vl,i5).call(this,t));}};ps=new WeakMap,us=new WeakMap,fd=new WeakSet,ox=function(t){let o=To.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},vl=new WeakSet,i5=function(t){let o=Ro(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Io(this,fd,ox).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Ot(Zi,us,void 0);var fs=Zi;var gs,xl,bl,a5,qi=class qi{constructor(){Ot(this,bl);Ot(this,xl,"amity.seenRecencyCache");}static get instance(){return Qt(qi,gs)||yn(qi,gs,new qi),Qt(qi,gs)}getSeenRecencyByAdId(t){if(t)return Io(this,bl,a5).call(this)[t]}setSeenRecencyCache(t,o){let r=Io(this,bl,a5).call(this);r[t]=o,window.localStorage.setItem(Qt(this,xl),JSON.stringify(r));}};gs=new WeakMap,xl=new WeakMap,bl=new WeakSet,a5=function(){return JSON.parse(window.localStorage.getItem(Qt(this,xl))||"{}")},Ot(qi,gs,void 0);var gd=qi,ys,Il,s5,Yi=class Yi{constructor(){Ot(this,Il);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>M(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 Qt(Yi,ys)||yn(Yi,ys,new Yi),Qt(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,s5).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,s5).call(this,t)}};ys=new WeakMap,Il=new WeakSet,s5=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}},Ot(Yi,ys,void 0);var To=Yi;var hs,hd,rx,Cd,nx,vd,ix,Wi=class Wi{constructor(){Ot(this,hd);Ot(this,Cd);Ot(this,vd);}static get instance(){return Qt(Wi,hs)||yn(Wi,hs,new Wi),Qt(Wi,hs)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Io(this,hd,rx).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,ix).call(this,{ads:t,scores:a,count:r})}};hs=new WeakMap,hd=new WeakSet,rx=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,nx=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,ix=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,nx).call(this,l);i.push(n[c]),n.splice(c,1);}return i},Ot(Wi,hs,void 0);var yd=Wi;var sx=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var l5=()=>useContext(sx).settings,lx=({count:e,placement:t,communityId:o})=>{let n=useContext(sx).ads,[i,a]=useState([]),s=l5(),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 bG=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=l5(),[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=lx({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 v=new Set(y.map($=>r($))),x=s.map($=>{let G=r($[0]);if(!v.has(G))return null;let O=y.find(ee=>r(ee)===G);return O?$.length===1?[O]:[O,$[1]]:$}).filter(qo),_=x[0],P=(()=>{if(_){let $=y.findIndex(G=>r(G)===r(_[0]));return $===-1?0:$}return 0})(),w=[...(y||[]).slice(0,P).map($=>[$]),...x],T=y.slice(P).filter($=>{let G=r($);return !w.some(O=>r(O[0])===G)}),k=i,N=c,D=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 q=[...w,...D];return l([...w,...D]),q.length===0&&(a(0),p(0)),[...w,...D].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}=bG({placement:i,pageSize:s,communityId:a,getItemId:l}),g=pt({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 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=I(r,["items"]);return d({stories:t.filter(qo)},o)};function PG({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Bp(),[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]);return 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]),{item:s,origin:c,isLoading:u||s==null&&g==null,error:g}}var Qi=PG;var ho=({userId:e,shouldCall:t=!0})=>{let n=Qi({fetcher:UserRepository.getUser,params:e,shouldCall:!!e&&t}),{item:o}=n,r=I(n,["item"]);return d({user:o},r)};var TG="global-admin";var dx=e=>e!=null&&e.length?e.includes(TG):!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 kG="global-admin",{COMMUNITY_MODERATOR:EG,CHANNEL_MODERATOR:AG,MODERATOR:BG,SUPER_MODERATOR:LG}=_l,bd=e=>{if(!(e!=null&&e.length))return !1;let t=[EG,AG,BG,LG];return e.some(o=>t.includes(o))},Id=e=>e!=null&&e.length?e.includes(kG):!1;var qn=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function wd(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 FG=({community:e})=>{let{currentUserId:t,userRoles:o,client:r}=ne(),{moderators:n}=Xr(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(In.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=FG;var OG=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=OG;var lt=({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 M(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 GG=({communityId:e,shouldCall:t=!0})=>{let n=Qi({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=I(n,["item"]);return d({community:o},r)},No=GG;var qG=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return M(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>M(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},d5=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 QG=createContext(ux),Ae=()=>useContext(QG);var c5=e=>{let{onEditCommunity:t}=Ae(),{community:o}=No({communityId:e,shouldCall:!!e}),r=lt({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=d5(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 se=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var fx={createNewStoryButton:"ma"};var XG=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"})),Yn=({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:so(fx.createNewStoryButton,o),"data-qa-anchor":a,onPress:n},J.createElement(se,{defaultIcon:()=>J.createElement(XG,null),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:so(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:so(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:so(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 r$=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"})),Md=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=pe({pageId:e,componentId:t}),{stories:l}=Cs({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:c}=c5(o),{currentUserId:p,client:u}=Ve(),{user:f}=ho({userId:p}),h=dx(f==null?void 0:f.roles)||qn(u,o),C=(l==null?void 0:l.length)>0,y=l.some(P=>!(P!=null&&P.isSeen)),v=l.some(P=>(P==null?void 0:P.syncState)==="syncing"),x=l.some(P=>(P==null?void 0:P.syncState)==="error"),_=()=>{Array.isArray(l)&&l.length===0||n();};return i||!C&&!h?null:J.createElement("div",{"data-qa-anchor":a,style:s,className:so(bs.storyTabContainer)},J.createElement("div",{className:so(bs.storyWrapper)},C&&J.createElement(hl,{pageId:e,componentId:t,hasUnseen:y,uploading:v,isErrored:x,size:48}),J.createElement("button",{className:so(bs.storyAvatarContainer),onClick:_},J.createElement(Dr,{pageId:e,componentId:t,community:c})),h&&J.createElement(FileTrigger,{onSelect:P=>{let b=Array.from(P);r(b[0]);}},J.createElement(Yn,{pageId:e,componentId:t})),x&&J.createElement(r$,{className:so(bs.errorIcon)})),J.createElement(rg,{lines:1},J.createElement("div",{"data-qa-anchore":`${e}/${t}/story_title`,className:so(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 Pd={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(Ji,d({},o),J.createElement(Ji.Container,{className:Pd.bottomSheet__container},J.createElement(Ji.Header,null,J.createElement(Ji.Header,null),t&&J.createElement(Ji.Header,{className:Pd.bottomSheet__header},J.createElement(A.Title,null,t))),J.createElement(Ji.Content,{className:Pd.bottomSheet__content},e)),J.createElement(Ji.Backdrop,{onTap:o.onClose}))};var p5={avatarContainer:"H",avatarImage:"La"};var ur=({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:p5.avatarContainer,"data-clickable":!!n,onClick:n},o?J.createElement("img",{className:p5.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 d$=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=so(Tl.button,Tl[t],Tl[o],n);return J.createElement("button",d({className:l},i),r&&J.createElement("span",{className:Tl.icon},r),e)},Sd=d$;var c$=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"})),u5=c$;var sn={container:"Na",avatarContainer:"Oa",verifiedIcon:"Pa",avatarBackground:"Qa",avatar:"Va",displayName:"Wa",errorIcon:"Za",lockIcon:"_a"};var u$=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"}))},Td=u$;var f$=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=lt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return J.createElement("div",{className:so(sn.container),onClick:n},J.createElement("div",{className:sn.avatarContainer},J.createElement(hl,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),J.createElement("div",{"data-qa-anchor":`${e}/${t}/community_avatar`,className:sn.avatarBackground},s&&J.createElement("img",{className:sn.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&J.createElement(f$,{className:sn.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&J.createElement(u5,{className:sn.verifiedIcon})),J.createElement(A.Caption,{"data-qa-anchor":`${e}/${t}/community_name`,className:so(sn.displayName)},!(a!=null&&a.isPublic)&&J.createElement(Td,{className:sn.lockIcon}),a==null?void 0:a.displayName))};var Nd=e=>{let l=pt({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 y$=10,kd=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=pe({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:c,refresh:p}=Nd({seenState:"smart",limit:y$}),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(Md,{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(kd,{componentId:t,goToViewStoryPage:({storyTarget:a,storyTargets:s})=>{o(a.targetId,"globalFeed",s.map(l=>l.targetId));}})}})()};var I$=({isOpen:e,toggleOpen:t})=>{let{onChangePage:o}=Q(),{formatMessage:r}=useIntl();return J.createElement(Xv,{"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(Bn,{targetType:"globalFeed",goToExplore:()=>o("explore"),showPostCreator:!0}))},Nx=I$;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(b0,null),video:J.createElement(w0,null),liveStream:J.createElement(I0,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(yo)`
|
|
3139
|
+
`,lG=({isOpen:e,toggleOpen:t,hideSideMenu:o})=>{let{formatMessage:r}=useIntl();return J.createElement(sG,null,o!==!0&&J.createElement(J.Fragment,null,J.createElement(ms,{isOpen:e,onClick:t}),J.createElement(ds,{isOpen:e}),J.createElement(aG,null,J.createElement(cs,{onClick:t}),J.createElement(ss,null,r({id:"sidebar.explore"})))),J.createElement(Jv,null,J.createElement(zv,null),J.createElement(Zv,null),J.createElement(Kv,null)))},Rv=lG;var r5={emptyStateRing:"na",errorRing:"la",uploadingProgressRing:"da","upload-progress":"q"};var dG=({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:r5.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}))},pG=({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:r5.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(pG,{pageId:e,componentId:t,elementId:c,size:i}):o?J.createElement(cG,{pageId:e,componentId:t,elementId:c,size:i}):J.createElement(dG,{pageId:e,componentId:t,elementId:c,size:i})};function qo(e){return e!=null}var uG=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function ex(e){return e==="https://"||uG.test(e)}function gG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=kp(),[a,s]=useState(!1),[l,c]=useState(n||!0),[p,u]=useState([]),[f,g]=useState(null),[h,C]=useState(!1),y=useRef(null),v=useRef(null),x=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 v.current=b,()=>{b();}},[t,n]);let P=useCallback(()=>{v.current&&v.current();let{unsubscribe:b}=i({fetcher:e,params:t,callback:_,refresh:!0});return v.current=b,()=>b()},[]);return {items:p,hasMore:h,isLoading:l,loadMore:x,error:f,loadMoreHasBeenCalled:a,refresh:P}}var pt=gG;var ps,us,fd,ox,vl,i5,Zi=class Zi{constructor(){Ot(this,fd);Ot(this,vl);Ot(this,ps,void 0);yn(this,ps,new Map);}static get instance(){return Qt(Zi,us)||yn(Zi,us,new Zi),Qt(Zi,us)}hasReachedLimit(t){let o=Io(this,vl,i5).call(this,t);return Qt(this,ps).get(t)===o}markSeen(t){Qt(this,ps).set(t,Io(this,vl,i5).call(this,t));}};ps=new WeakMap,us=new WeakMap,fd=new WeakSet,ox=function(t){let o=To.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},vl=new WeakSet,i5=function(t){let o=Ro(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Io(this,fd,ox).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Ot(Zi,us,void 0);var fs=Zi;var gs,xl,bl,a5,qi=class qi{constructor(){Ot(this,bl);Ot(this,xl,"amity.seenRecencyCache");}static get instance(){return Qt(qi,gs)||yn(qi,gs,new qi),Qt(qi,gs)}getSeenRecencyByAdId(t){if(t)return Io(this,bl,a5).call(this)[t]}setSeenRecencyCache(t,o){let r=Io(this,bl,a5).call(this);r[t]=o,window.localStorage.setItem(Qt(this,xl),JSON.stringify(r));}};gs=new WeakMap,xl=new WeakMap,bl=new WeakSet,a5=function(){return JSON.parse(window.localStorage.getItem(Qt(this,xl))||"{}")},Ot(qi,gs,void 0);var gd=qi,ys,Il,s5,Yi=class Yi{constructor(){Ot(this,Il);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>M(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 Qt(Yi,ys)||yn(Yi,ys,new Yi),Qt(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,s5).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,s5).call(this,t)}};ys=new WeakMap,Il=new WeakSet,s5=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}},Ot(Yi,ys,void 0);var To=Yi;var hs,hd,rx,Cd,nx,vd,ix,Wi=class Wi{constructor(){Ot(this,hd);Ot(this,Cd);Ot(this,vd);}static get instance(){return Qt(Wi,hs)||yn(Wi,hs,new Wi),Qt(Wi,hs)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Io(this,hd,rx).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,ix).call(this,{ads:t,scores:a,count:r})}};hs=new WeakMap,hd=new WeakSet,rx=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,nx=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,ix=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,nx).call(this,l);i.push(n[c]),n.splice(c,1);}return i},Ot(Wi,hs,void 0);var yd=Wi;var sx=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var l5=()=>useContext(sx).settings,lx=({count:e,placement:t,communityId:o})=>{let n=useContext(sx).ads,[i,a]=useState([]),s=l5(),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 wG=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=l5(),[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=lx({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 v=new Set(y.map($=>r($))),x=s.map($=>{let G=r($[0]);if(!v.has(G))return null;let O=y.find(ee=>r(ee)===G);return O?$.length===1?[O]:[O,$[1]]:$}).filter(qo),_=x[0],P=(()=>{if(_){let $=y.findIndex(G=>r(G)===r(_[0]));return $===-1?0:$}return 0})(),w=[...(y||[]).slice(0,P).map($=>[$]),...x],T=y.slice(P).filter($=>{let G=r($);return !w.some(O=>r(O[0])===G)}),k=i,N=c,D=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 q=[...w,...D];return l([...w,...D]),q.length===0&&(a(0),p(0)),[...w,...D].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}=wG({placement:i,pageSize:s,communityId:a,getItemId:l}),g=pt({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 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=I(r,["items"]);return d({stories:t.filter(qo)},o)};function TG({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Bp(),[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]);return 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]),{item:s,origin:c,isLoading:u||s==null&&g==null,error:g}}var Qi=TG;var ho=({userId:e,shouldCall:t=!0})=>{let n=Qi({fetcher:UserRepository.getUser,params:e,shouldCall:!!e&&t}),{item:o}=n,r=I(n,["item"]);return d({user:o},r)};var kG="global-admin";var dx=e=>e!=null&&e.length?e.includes(kG):!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 AG="global-admin",{COMMUNITY_MODERATOR:BG,CHANNEL_MODERATOR:LG,MODERATOR:FG,SUPER_MODERATOR:DG}=_l,bd=e=>{if(!(e!=null&&e.length))return !1;let t=[BG,LG,FG,DG];return e.some(o=>t.includes(o))},Id=e=>e!=null&&e.length?e.includes(AG):!1;var qn=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function wd(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 VG=({community:e})=>{let{currentUserId:t,userRoles:o,client:r}=ne(),{moderators:n}=Xr(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(In.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=VG;var UG=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=UG;var lt=({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 M(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 ZG=({communityId:e,shouldCall:t=!0})=>{let n=Qi({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=I(n,["item"]);return d({community:o},r)},No=ZG;var WG=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return M(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>M(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},d5=WG;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 JG=createContext(ux),Ae=()=>useContext(JG);var c5=e=>{let{onEditCommunity:t}=Ae(),{community:o}=No({communityId:e,shouldCall:!!e}),r=lt({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Po({targetType:"community",targetId:e,feedType:"reviewing"}),i=d5(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 se=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var fx={createNewStoryButton:"ma"};var e$=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"})),Yn=({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:so(fx.createNewStoryButton,o),"data-qa-anchor":a,onPress:n},J.createElement(se,{defaultIcon:()=>J.createElement(e$,null),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:so(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:so(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:so(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 i$=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"})),Md=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=pe({pageId:e,componentId:t}),{stories:l}=Cs({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:c}=c5(o),{currentUserId:p,client:u}=Ve(),{user:f}=ho({userId:p}),h=dx(f==null?void 0:f.roles)||qn(u,o),C=(l==null?void 0:l.length)>0,y=l.some(P=>!(P!=null&&P.isSeen)),v=l.some(P=>(P==null?void 0:P.syncState)==="syncing"),x=l.some(P=>(P==null?void 0:P.syncState)==="error"),_=()=>{Array.isArray(l)&&l.length===0||n();};return i||!C&&!h?null:J.createElement("div",{"data-qa-anchor":a,style:s,className:so(bs.storyTabContainer)},J.createElement("div",{className:so(bs.storyWrapper)},C&&J.createElement(hl,{pageId:e,componentId:t,hasUnseen:y,uploading:v,isErrored:x,size:48}),J.createElement("button",{className:so(bs.storyAvatarContainer),onClick:_},J.createElement(Dr,{pageId:e,componentId:t,community:c})),h&&J.createElement(FileTrigger,{onSelect:P=>{let b=Array.from(P);r(b[0]);}},J.createElement(Yn,{pageId:e,componentId:t})),x&&J.createElement(i$,{className:so(bs.errorIcon)})),J.createElement(rg,{lines:1},J.createElement("div",{"data-qa-anchore":`${e}/${t}/story_title`,className:so(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 Pd={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(Ji,d({},o),J.createElement(Ji.Container,{className:Pd.bottomSheet__container},J.createElement(Ji.Header,null,J.createElement(Ji.Header,null),t&&J.createElement(Ji.Header,{className:Pd.bottomSheet__header},J.createElement(A.Title,null,t))),J.createElement(Ji.Content,{className:Pd.bottomSheet__content},e)),J.createElement(Ji.Backdrop,{onTap:o.onClose}))};var p5={avatarContainer:"H",avatarImage:"La"};var ur=({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:p5.avatarContainer,"data-clickable":!!n,onClick:n},o?J.createElement("img",{className:p5.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 p$=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=so(Tl.button,Tl[t],Tl[o],n);return J.createElement("button",d({className:l},i),r&&J.createElement("span",{className:Tl.icon},r),e)},Sd=p$;var u$=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"})),u5=u$;var sn={container:"Na",avatarContainer:"Oa",verifiedIcon:"Pa",avatarBackground:"Qa",avatar:"Va",displayName:"Wa",errorIcon:"Za",lockIcon:"_a"};var g$=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"}))},Td=g$;var y$=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=lt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return J.createElement("div",{className:so(sn.container),onClick:n},J.createElement("div",{className:sn.avatarContainer},J.createElement(hl,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),J.createElement("div",{"data-qa-anchor":`${e}/${t}/community_avatar`,className:sn.avatarBackground},s&&J.createElement("img",{className:sn.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&J.createElement(y$,{className:sn.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&J.createElement(u5,{className:sn.verifiedIcon})),J.createElement(A.Caption,{"data-qa-anchor":`${e}/${t}/community_name`,className:so(sn.displayName)},!(a!=null&&a.isPublic)&&J.createElement(Td,{className:sn.lockIcon}),a==null?void 0:a.displayName))};var Nd=e=>{let l=pt({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 C$=10,kd=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=pe({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:c,refresh:p}=Nd({seenState:"smart",limit:C$}),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}=W(),{setFile:n}=Wo();return (()=>{switch(e.type){case"communityFeed":return J.createElement(Md,{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(kd,{componentId:t,goToViewStoryPage:({storyTarget:a,storyTargets:s})=>{o(a.targetId,"globalFeed",s.map(l=>l.targetId));}})}})()};var _$=({isOpen:e,toggleOpen:t})=>{let{onChangePage:o}=W(),{formatMessage:r}=useIntl();return J.createElement(Xv,{"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(Bn,{targetType:"globalFeed",goToExplore:()=>o("explore"),showPostCreator:!0}))},Nx=_$;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(b0,null),video:J.createElement(w0,null),liveStream:J.createElement(I0,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(yo)`
|
|
3140
3140
|
&${rd} {
|
|
3141
3141
|
border: none;
|
|
3142
3142
|
}
|
|
@@ -3172,12 +3172,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3172
3172
|
border-radius: 0.25em;
|
|
3173
3173
|
`,Dx=m(Lx)`
|
|
3174
3174
|
margin-bottom: 1em;
|
|
3175
|
-
`;function f5({targetId:e,targetType:t,dataType:o,limit:r}){let a=Me({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
|
|
3175
|
+
`;function f5({targetId:e,targetType:t,dataType:o,limit:r}){let a=Me({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 T$=({targetId:e,targetType:t,grid:o=!1})=>{let[r,n]=useState("image"),{media:i,isLoading:a,hasMore:s,loadMore:l,loadMoreHasBeenCalled:c}=f5({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(Gt,{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]}))},Ed=memo(e=>{let t=V("MediaGallery");return t?t(e):J.createElement(T$,d({},e))});var k$=m(yo)`
|
|
3176
3176
|
background: ${({theme:e})=>e.palette.system.background};
|
|
3177
3177
|
border-radius: 4px 4px 0 0;
|
|
3178
3178
|
border: 1px solid #edeef2;
|
|
3179
3179
|
margin-bottom: 12px;
|
|
3180
|
-
`,Ad=e=>{let t=V("FeedHeaderTabs");return t?t(e):J.createElement(
|
|
3180
|
+
`,Ad=e=>{let t=V("FeedHeaderTabs");return t?t(e):J.createElement(k$,d({},e))};var Vx=m(yo)`
|
|
3181
3181
|
background: ${({theme:e})=>e.palette.system.background};
|
|
3182
3182
|
border-radius: 4px 4px 0 0;
|
|
3183
3183
|
border: 1px solid #edeef2;
|
|
@@ -3215,7 +3215,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3215
3215
|
align-items: center;
|
|
3216
3216
|
`,Ld=m(kr)`
|
|
3217
3217
|
width: 100%;
|
|
3218
|
-
`;var
|
|
3218
|
+
`;var A$=m.button`
|
|
3219
3219
|
display: block;
|
|
3220
3220
|
width: 100%;
|
|
3221
3221
|
margin-top: 0.5rem;
|
|
@@ -3227,20 +3227,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3227
3227
|
outline: none;
|
|
3228
3228
|
color: ${({theme:e})=>e.palette.base.shade2};
|
|
3229
3229
|
text-align: center;
|
|
3230
|
-
`;function mn({onClick:e}){return J.createElement(
|
|
3230
|
+
`;function mn({onClick:e}){return J.createElement(A$,{onClick:t=>{t.preventDefault(),e==null||e();}},J.createElement(FormattedMessage,{id:"loadMore"})," ",J.createElement(nr,{height:".8em"}))}var D$=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=()=>M(void 0,null,function*(){if(e!=null)try{yield UserRepository.flagUser(e);}catch(c){o(!1);}finally{i();}}),s=()=>M(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:()=>M(void 0,null,function*(){e!=null&&(t?s():a());})}},Jn=D$;function kl({userId:e,callback:t}){let o=le(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 h5({userId:e,status:t}){let n=Me({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 $$=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=le(o),{onClickUser:i}=W(),{confirm:a}=ue(),s=Ce(),{formatMessage:l}=useIntl(),{isFlaggedByMe:c,toggleFlagUser:p}=Jn(o),u=()=>M(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 x=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:x,content:_,cancelText:l({id:"buttonText.cancel"}),okText:l({id:"buttonText.unfollow"}),onOk:f});},y=useCallback(()=>{i(o);},[i,o]),v=useMemo(()=>{let x=[];return h||x.push({name:l(c?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:u}),g&&x.push({name:l({id:"follower.menuItem.unfollow"}),action:C}),x},[c,g,h,C,u]);return J.createElement(_s,{key:o},J.createElement(Bd,null,J.createElement(Lr,{userId:o,onClick:y}),J.createElement(jt,{options:v})))};function Z$({userId:e}){let{followings:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=h5({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 q$=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{currentUserId:r}=ne(),{items:n,loadMore:i,hasMore:a}=Z$({userId:e}),s=()=>a?J.createElement(mn,{onClick:()=>i==null?void 0:i()}):null;return n.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,J.createElement(Ld,{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(ye,{style:{fontSize:8}}):J.createElement($$,{key:`${l.from}-${l.to}`,userId:l.to,profileUserId:e,currentUserId:r,onClick:()=>t(l.to)}))),s())},zx=q$;function El({userId:e,callback:t}){let o=le(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(c9(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function dn({userId:e,status:t}){let n=Me({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 R$=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=le(o),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),{onClickUser:a}=W(),{confirm:s}=ue(),l=Ce(),{formatMessage:c}=useIntl(),{isFlaggedByMe:p,toggleFlagUser:u}=Jn(o||void 0),f=()=>M(void 0,null,function*(){yield u(),l.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});}),g=()=>{o&&UserRepository.Relationship.declineMyFollower(o);},h=e===t,C=t===o,y=()=>{s({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:c({id:"buttonText.cancel"}),okText:c({id:"buttonText.remove"}),onOk:g});},v=useCallback(()=>{o!=null&&a(o);},[a,o]),x=useMemo(()=>{let _=[];return C||_.push({name:c(p?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:f}),h&&_.push({name:c({id:"follower.menuItem.removeUser"}),action:y}),_},[p,h,C,y,f]);return J.createElement(_s,{key:o},J.createElement(Bd,null,J.createElement(R2,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:i,onClick:v}),J.createElement(jt,{options:x})))};function eZ({userId:e}){let{followers:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=dn({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 tZ=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{items:r,loadMore:n,hasMore:i}=eZ({userId:e}),{currentUserId:a}=ne(),s=()=>i?J.createElement(mn,{onClick:()=>n==null?void 0:n()}):null;return r.length===0?J.createElement(J.Fragment,null,J.createElement(Ms,null,J.createElement(Ld,{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(ye,{style:{fontSize:8}}):J.createElement(R$,{key:`${l.from}-${l.to}`,userId:l.from,profileUserId:e,currentUserId:a,onClick:()=>t(l.to)}))),s())},$x=tZ;var Ps=m.div`
|
|
3231
3231
|
display: grid;
|
|
3232
3232
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
3233
3233
|
gap: 1rem;
|
|
3234
3234
|
`,Zx=m(kr)`
|
|
3235
3235
|
margin-right: auto;
|
|
3236
3236
|
margin-left: auto;
|
|
3237
|
-
`;var
|
|
3237
|
+
`;var rZ=({userId:e})=>{let t=Ce();return J.createElement(_s,null,J.createElement(Lr,{userId:e}),J.createElement(Ox,null,J.createElement(ce,{fullWidth:!0,onClick:()=>M(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(Y,{fullWidth:!0,onClick:()=>M(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"}))))},nZ=({userId:e})=>{let{followers:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=dn({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(mn,{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(ye,{style:{fontSize:8}}):J.createElement(rZ,{key:`${l.from}-${l.to}`,userId:l.from}))),s())},Yx=nZ;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 lZ=({userId:e,activeTab:t,socialSettings:o,onTabChange:r,onFollowingListClick:n,onFollowerListClick:i})=>{let{currentUserId:a}=ne(),s=qm(o),{formatMessage:l}=useIntl(),[c,p]=useState(Object.values(Qo).map(g=>({value:g,label:g}))),{followers:u}=dn({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=lZ;var Xt={TIMELINE:"TIMELINE",GALLERY:"GALLERY",FOLLOWERS:"FOLLOWERS"},w5=[{value:Xt.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Xt.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Xt.FOLLOWERS,label:J.createElement(FormattedMessage,{id:"tabs.followers"})}];var Qx=m.div`
|
|
3238
3238
|
height: 100%;
|
|
3239
3239
|
max-width: 700px;
|
|
3240
3240
|
margin: 0 auto;
|
|
3241
3241
|
padding: 28px 0;
|
|
3242
3242
|
overflow-y: auto;
|
|
3243
|
-
`;var
|
|
3243
|
+
`;var dZ=e=>{let[t,o]=useState(0),[r,n]=useState(0),[i,a]=useState(0);return bt({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=dZ;var pZ=e=>{var o;let t=bt({fetcher:UserRepository.Relationship.getFollowInfo,params:e});return (o=t==null?void 0:t.status)!=null?o:"none"},Dd=pZ;var gZ=({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:v=0,followingCount:x=0,isPrivateNetwork:_})=>{let P=le(e),{formatMessage:b}=useIntl(),{isFlaggedByMe:w}=Jn(e||void 0),{confirm:T}=ue(),{followers:k}=dn({userId:t,status:"pending"}),N=P!=null&&P.displayName?b({id:"user.unfollow.confirm.title"},{displayName:P.displayName}):b({id:"user.unfollow.confirm.title.thisUser"}),D=P!=null&&P.displayName?b({id:"user.unfollow.confirm.body"},{displayName:P.displayName}):b({id:"user.unfollow.confirm.body.thisUser"}),q=[y&&!i?{name:b({id:"user.unfollow"}),action:()=>T({title:N,content:D,cancelText:b({id:"buttonText.cancel"}),okText:b({id:"buttonText.unfollow"}),onOk:()=>M(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(He);return J.createElement(uh,{"data-qa-anchor":"user-info"},J.createElement(fh,null,J.createElement(gh,{"data-qa-anchor":"user-info-profile-image",avatar:o,backgroundImage:De}),J.createElement(yh,null,i?J.createElement(Y,{"data-qa-anchor":"user-info-edit-profile-button",onClick:()=>(P==null?void 0:P.userId)&&(a==null?void 0:a(P.userId))},J.createElement(ph,null)," ",J.createElement(FormattedMessage,{id:"user.editProfile"})):J.createElement(J.Fragment,null,_&&h&&J.createElement(Y,{onClick:()=>l==null?void 0:l()},J.createElement(dh,null,J.createElement(ch,null)),J.createElement(FormattedMessage,{id:"user.cancel_follow"})),C&&J.createElement(ce,{onClick:()=>s==null?void 0:s()},J.createElement(E2,null)," ",J.createElement(FormattedMessage,{id:"user.follow"})))),J.createElement(xh,{options:q,pullRight:!1})),J.createElement(Mh,null,J.createElement(rg,{lines:3},J.createElement(hh,{"data-qa-anchor":"user-info-profile-name"},r)),P!=null&&P.isGlobalBanned?J.createElement(Sr,{style:{marginLeft:"0.265rem",marginTop:"1px"}}):null),J.createElement(Ch,null,J.createElement(B3,{onClick:()=>{u==null||u();}},fg(x)),J.createElement(FormattedMessage,{id:"counter.followings"}),J.createElement(B3,{onClick:()=>{f==null||f();}},fg(v)),J.createElement(FormattedMessage,{id:"counter.followers"})),J.createElement(vh,{"data-qa-anchor":"user-info-description"},n),i&&k.length>0&&_&&J.createElement(bh,{onClick:()=>{p==null||p();}},J.createElement(Ih,null,J.createElement(_h,null),J.createElement(FormattedMessage,{id:"follow.pendingNotification.title"})),J.createElement(wh,null,J.createElement(FormattedMessage,{id:"follow.pendingNotification.body"}))))},Xx=e=>{let t=V("UIUserInfo");return t?t(e):J.createElement(gZ,d({},e))};var vZ=({userId:e,onUnFollow:t,onFollowingCountClick:o,onFollowerCountClick:r,onPendingNotificationClick:n,isPrivateNetwork:i})=>{let{currentUserId:a}=ne(),{formatMessage:s}=useIntl(),{onEditUser:l}=W(),c=Ce(),p=le(e),u=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"small"});Pi({userId:e,level:SubscriptionLevels.USER}),El({userId:a}),kl({userId:a});let f=Dd(e),g=()=>M(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),h=()=>M(void 0,null,function*(){e&&(yield UserRepository.Relationship.unfollow(e),t==null||t(),c.success({content:J.createElement(FormattedMessage,{id:"notification.done"})}));}),{followerCount:C,followingCount:y}=Kx(e),v=()=>M(void 0,null,function*(){e&&(yield UserRepository.Relationship.follow(e));});if(f==null)return null;let x=f==="none",_=f==="accepted",P=f==="pending";return J.createElement(Xx,{userId:e,currentUserId:a,fileUrl:(p==null?void 0:p.avatarCustomUrl)||u,displayName:(p==null?void 0:p.displayName)||s({id:"anonymous"}),description:p==null?void 0:p.description,onFollowerCountClick:r,onFollowingCountClick:o,onPendingNotificationClick:n,onFollowDecline:g,onFollowRequest:v,onUnFollow:h,onEditUser:l,isMyProfile:e===a,isFollowPending:P,isPrivateNetwork:i,isFollowNone:x,isFollowAccepted:_,followerCount:C,followingCount:y})},eb=memo(vZ);var xZ=({userId:e,socialSettings:t})=>{let{currentUserId:o}=ne(),[r,n]=useState(Xt.TIMELINE),[i,a]=useState(Qo.FOLLOWINGS),s=Dd(e),l=e===o,c=()=>M(void 0,null,function*(){n(Xt.TIMELINE);}),p=s==="accepted",u=qm(t)&&!p&&!l,f=u?w5.filter(({value:g})=>g===Xt.TIMELINE):w5;return e?J.createElement(Qx,null,J.createElement(eb,{key:e,userId:e,onUnFollow:c,onPendingNotificationClick:()=>{n(Xt.FOLLOWERS),a(Ss);},onFollowingCountClick:()=>{n(Xt.FOLLOWERS),a(Qo.FOLLOWINGS);},onFollowerCountClick:()=>{n(Xt.FOLLOWERS),a(Qo.FOLLOWERS);}}),J.createElement(Ad,{"data-qa-anchor":"user-feed-header",tabs:f,activeTab:r,onChange:n}),r===Xt.TIMELINE&&J.createElement(Bn,{targetType:l?"myFeed":"user",targetId:e,showPostCreator:l,isHiddenProfile:u}),r===Xt.GALLERY&&J.createElement(Ed,{targetType:"user",targetId:e}),r===Xt.FOLLOWERS&&!u&&J.createElement(Wx,{userId:e,activeTab:i,socialSettings:t,onFollowingListClick:g=>n(Xt.TIMELINE),onFollowerListClick:g=>n(Xt.TIMELINE),onTabChange:g=>a(g)})):null},ob=xZ;var rb=m.div`
|
|
3244
3244
|
max-width: 1160px;
|
|
3245
3245
|
margin: 0 auto;
|
|
3246
3246
|
padding: 30px 0;
|
|
@@ -3258,7 +3258,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3258
3258
|
&:hover {
|
|
3259
3259
|
background-color: transparent;
|
|
3260
3260
|
}
|
|
3261
|
-
`;var
|
|
3261
|
+
`;var bZ=({category:e,communities:t,hasMore:o,loadMore:r,isLoading:n,onClickCommunity:i})=>{let a=()=>o?J.createElement(mn,{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=bZ;var mb=({categoryId:e})=>{let{onClickCommunity:t}=W(),{communities:o,hasMore:r,loadMore:n,isLoading:i,loadMoreHasBeenCalled:a}=Br({categoryId:e||void 0,sortBy:"displayName"});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 wZ=({categoryId:e})=>{let{onChangePage:t}=W(),o=On(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(Tm,null)),J.createElement(ib,null,l)),o?J.createElement(lb,{category:o,communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}):null)},db=wZ;var cb=m(yo)`
|
|
3262
3262
|
margin-bottom: 14px;
|
|
3263
3263
|
border-radius: 0;
|
|
3264
3264
|
border-right: 0;
|
|
@@ -3280,7 +3280,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3280
3280
|
display: flex;
|
|
3281
3281
|
align-items: center;
|
|
3282
3282
|
cursor: pointer;
|
|
3283
|
-
`;var{COMMUNITY_MODERATOR:yb,CHANNEL_MODERATOR:hb}=bn,
|
|
3283
|
+
`;var{COMMUNITY_MODERATOR:yb,CHANNEL_MODERATOR:hb}=bn,PZ=({userId:e,currentUserId:t,onClick:o,roles:r=[],assignRolesToUsers:n,hasModeratorPermissions:i,removeRolesFromUsers:a,removeMembers:s,isJoined:l,isBanned:c})=>{let p=le(e),{formatMessage:u}=useIntl(),{isFlaggedByMe:f,toggleFlagUser:g}=Jn(e),h=p==null?void 0:p.isGlobalBanned,{confirm:C}=ue(),y=Ce();Pi({userId:e,level:SubscriptionLevels.USER});let v=()=>M(void 0,null,function*(){return g()}),x=()=>{v(),y.success({content:J.createElement(FormattedMessage,{id:"report.reportSent"})});},_=()=>n([yb,hb],[e]),P=()=>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=sr(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(jt,{"data-qa-anchor":"community-members-option-menu",options:[{name:u(f?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:x},i&&!w&&!h?{name:u({id:"moderatorMenu.promoteToModerator"}),action:_}:null,i&&w?{name:u({id:"moderatorMenu.dismissModerator"}),action:P}:null,i?{name:u({id:"moderatorMenu.removeFromCommunity"}),action:b,className:"danger-zone"}:null].filter(He)}))},T5=PZ;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 N5(e,t=5){let n=Me({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 EZ=({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=le(i),l=sr(a==null?void 0:a.roles),c=I1(a)&&l||sr(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)}},AZ=({community:e,members:t,loadMore:o,hasMore:r})=>{let{onClickUser:n}=W(),{hasMoreMembers:i,loadMoreMembers:a,hasModeratorPermissions:s,currentUserId:l,assignRolesToUsers:c,removeRolesFromUsers:p,removeMembers:u}=EZ({community:e,hasMore:r,loadMore:o,members:t});return t.length===0?null:J.createElement(Gt,{hasMore:i,loadMore:a,contentSlot:t.map(({userId:f,roles:g,isBanned:h})=>J.createElement(T5,{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)}))})},BZ=({community:e})=>{let t=e==null?void 0:e.communityId,{currentUserId:o}=ne(),{moderators:r,hasMore:n,loadMore:i}=Xr(t),a=r.find(g=>g.userId===o),s=le(o),l=sr(a==null?void 0:a.roles),c=I1(a)&&l||sr(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)}},LZ=({community:e})=>{let{onClickUser:t}=W(),{currentUserId:o,moderators:r,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:a,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:c}=BZ({community:e});return r.length===0?null:J.createElement(Gt,{hasMore:n,loadMore:i,contentSlot:r.map(({userId:p,roles:u,isBanned:f})=>J.createElement(T5,{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)}))})},FZ=({communityId:e})=>{let{formatMessage:t}=useIntl(),{hasMore:o,loadMore:r,loadMoreHasBeenCalled:n,isLoading:i,members:a}=N5(e),s=Ye(e),l=[{value:"MEMBERS",label:t({id:"CommunityMembers.members"})},{value:"MODERATORS",label:t({id:"CommunityMembers.moderators"})}],[c,p]=useState(ks.MEMBERS);return J.createElement(pb,null,J.createElement(ub,null,"Community Members \u2022 ",a.length||0),J.createElement(cb,{tabs:l,activeTab:c,onChange:p}),c===ks.MEMBERS&&J.createElement(AZ,{community:s,hasMore:o,loadMore:r,members:a}),c===ks.MODERATORS&&J.createElement(LZ,{community:s}))},Vd=memo(e=>{let t=V("CommunityMembers");return t?t(e):J.createElement(FZ,d({},e))});var Od="0.3s",xb=m.label`
|
|
3284
3284
|
position: relative;
|
|
3285
3285
|
width: 48px;
|
|
3286
3286
|
height: 28px;
|
|
@@ -3328,7 +3328,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3328
3328
|
-ms-transform: translateX(20px);
|
|
3329
3329
|
transform: translateX(20px);
|
|
3330
3330
|
}
|
|
3331
|
-
`;var
|
|
3331
|
+
`;var DZ=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(Hd,{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=DZ;var wb=m.div`
|
|
3332
3332
|
display: flex;
|
|
3333
3333
|
flex-direction: column;
|
|
3334
3334
|
flex: 1 1 0px;
|
|
@@ -3365,9 +3365,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3365
3365
|
${({theme:e})=>e.typography.bodyBold}
|
|
3366
3366
|
`,Sb=m.div`
|
|
3367
3367
|
color: ${({theme:e})=>e.palette.base.shade2};
|
|
3368
|
-
`;var
|
|
3368
|
+
`;var VZ=({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})),F5=VZ;function OZ({needApprovalOnPostCreation:e,storyCommentsApproval:t,onNeedApprovalOnPostCreationChange:o,onStoryCommentsApproval:r}){return J.createElement(wb,null,J.createElement(E5,null,J.createElement(A5,null,J.createElement(B5,null,J.createElement(FormattedMessage,{id:"community.permissions.postReview"})),J.createElement(L5,null,J.createElement(F5,{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(E5,null,J.createElement(A5,null,J.createElement(B5,null,J.createElement(FormattedMessage,{id:"community.permissions.storyComments"})),J.createElement(L5,null,J.createElement(F5,{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(OZ,d({},e))};function ZZ(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 V5({communityId:e,key:t}){let o=Ye(e),r=ZZ(t,o),[n,i]=useState(r);useEffect(()=>i(r),[r]);let a=useCallback(s=>M(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 WZ=({communityId:e})=>{let[t,o]=V5({communityId:e,key:"needApprovalOnPostCreation"}),[r,n]=V5({communityId:e,key:"storyComments"});return J.createElement(Tb,{needApprovalOnPostCreation:t,onNeedApprovalOnPostCreationChange:o,storyCommentsApproval:r,onStoryCommentsApproval:n})},Nb=WZ;var kb=({title:e,children:t})=>J.createElement(Un,{edit:!0},e&&J.createElement(q2,null,e),J.createElement(zn,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))),XZ=({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}=yv(e),{errors:g,isValid:h}=f,C=p("displayName"),y=p("description"),v=Ce(),x=useRef(null),_=w=>M(void 0,null,function*(){try{a(!0),yield r==null?void 0:r(S(d({},w),{avatarFileId:w.avatarFileId||void 0})),v.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(":");v.error({content:k});}}finally{a(!1);}}),P=!f.isValid||i,b=x.current&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop;return J.useLayoutEffect(()=>{b!=null&&x.current&&b<10&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop>10&&x.current.scrollTo({top:x.current.scrollHeight});},[x.current,b,f]),J.createElement(Hn,{className:o,onSubmit:l(_)},J.createElement(jn,{ref:x},J.createElement(kb,{title:"General"},J.createElement(go,null,J.createElement(Controller,{name:"avatarFileId",control:u,render:k=>{var {field:N}=k,D=N,T=I(D,["ref"]);return J.createElement(Vn,S(d({mimeType:"image/png, image/jpeg"},T),{"data-qa-anchor":t}))}})),J.createElement(go,{error:g.displayName},J.createElement(nn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"community.name"})),J.createElement(rn,null,C.length,"/30")),J.createElement(Ui,S(d({},s("displayName")),{"data-qa-anchor":`${t}-community-name-input`,placeholder:"Enter community name"})),J.createElement(fo,{errors:g,name:"displayName"})),J.createElement(go,{error:g.description},J.createElement(nn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"community.about"})),J.createElement(rn,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(fo,{errors:g,name:"description"})),J.createElement(go,{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,D=N,T=I(D,["ref"]);return J.createElement(K2,S(d({parentContainer:x.current},T),{"data-qa-anchor":`${t}`}))},control:u}),J.createElement(fo,{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(Ka,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(Ka,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(Ra,{edit:!0},J.createElement(Xa,{"data-qa-anchor":`${t}-save-button`,disabled:P,edit:!0},J.createElement(FormattedMessage,{id:"save"}))))},Ab=memo(XZ);var eq=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(eq,d({},e))});var Lb=m.div`
|
|
3369
3369
|
border-bottom: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
3370
|
-
`;var
|
|
3370
|
+
`;var iq=({children:e})=>J.createElement(Un,null,J.createElement(zn,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=>M(void 0,null,function*(){if(c.members.length===0){a("members",{message:r({id:"AddMemberModal.membersValidationError"})});return}o(c.members);});return J.createElement(vt,{"data-qa-anchor":"add-member-modal",title:r({id:"AddMemberModal.addMembers"}),onCancel:t},J.createElement(Lb,null,J.createElement(Hn,{className:e,onSubmit:s(l)},J.createElement(jn,null,J.createElement(iq,null,J.createElement(Q2,{error:n.members},J.createElement(Controller,{name:"members",render:({field:c})=>J.createElement($n,S(d({},c),{"data-qa-anchor":"add-member-modal"})),control:i}),J.createElement(fo,{errors:n,name:"members"})))),J.createElement(Ra,null,J.createElement(Xa,null,J.createElement(FormattedMessage,{id:"add"}))))))};var aq=m.div`
|
|
3371
3371
|
display: grid;
|
|
3372
3372
|
grid-template-areas: 'main side';
|
|
3373
3373
|
grid-template-columns: auto min-content;
|
|
@@ -3395,7 +3395,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3395
3395
|
height: auto;
|
|
3396
3396
|
overflow: unset;
|
|
3397
3397
|
}
|
|
3398
|
-
`,
|
|
3398
|
+
`,sq=m.div`
|
|
3399
3399
|
grid-area: header;
|
|
3400
3400
|
width: 100%;
|
|
3401
3401
|
height: 100%;
|
|
@@ -3403,7 +3403,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3403
3403
|
@media (max-width: 768px) {
|
|
3404
3404
|
height: unset;
|
|
3405
3405
|
}
|
|
3406
|
-
`,
|
|
3406
|
+
`,lq=m.div`
|
|
3407
3407
|
grid-area: main;
|
|
3408
3408
|
width: 100%;
|
|
3409
3409
|
height: 100%;
|
|
@@ -3412,7 +3412,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3412
3412
|
@media (max-width: 768px) {
|
|
3413
3413
|
height: unset;
|
|
3414
3414
|
}
|
|
3415
|
-
`,
|
|
3415
|
+
`,mq=m.div`
|
|
3416
3416
|
grid-area: side;
|
|
3417
3417
|
width: 100%;
|
|
3418
3418
|
height: 100%;
|
|
@@ -3427,21 +3427,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3427
3427
|
& > :not(:first-child) {
|
|
3428
3428
|
margin-top: 20px;
|
|
3429
3429
|
}
|
|
3430
|
-
`,
|
|
3430
|
+
`,dq=({header:e,aside:t,children:o})=>J.createElement(aq,{withHeader:!!e},e&&J.createElement(sq,null,e),J.createElement(lq,null,o),J.createElement(mq,null,t)),Db=dq;var pq=m.div`
|
|
3431
3431
|
display: flex;
|
|
3432
3432
|
align-items: center;
|
|
3433
3433
|
padding: 1rem;
|
|
3434
3434
|
border-radius: 0.25rem 0.25rem 0px 0px;
|
|
3435
3435
|
border: 1px solid ${({theme:e})=>e.palette.system.borders};
|
|
3436
3436
|
background: ${({theme:e})=>e.palette.system.background};
|
|
3437
|
-
`,
|
|
3437
|
+
`,uq=m.div`
|
|
3438
3438
|
display: flex;
|
|
3439
3439
|
flex-direction: column;
|
|
3440
3440
|
align-items: flex-start;
|
|
3441
3441
|
margin-left: 1rem;
|
|
3442
|
-
`,
|
|
3442
|
+
`,fq=m.div`
|
|
3443
3443
|
${({theme:e})=>e.typography.headline}
|
|
3444
|
-
`,
|
|
3444
|
+
`,gq=m.button`
|
|
3445
3445
|
display: flex;
|
|
3446
3446
|
align-items: center;
|
|
3447
3447
|
background: none;
|
|
@@ -3456,11 +3456,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3456
3456
|
& > svg {
|
|
3457
3457
|
margin-right: 5px;
|
|
3458
3458
|
}
|
|
3459
|
-
`,
|
|
3459
|
+
`,yq=({title:e,avatarFileUrl:t,avatarImage:o,backLinkText:r,onBack:n})=>J.createElement(pq,null,J.createElement(ve,{avatar:t,backgroundImage:o}),J.createElement(uq,null,n instanceof Function&&J.createElement(gq,{"data-qa-anchor":"page-header-back-button",onClick:n},J.createElement(Yr,{height:".9em",width:".9em"}),r!=null?r:J.createElement(FormattedMessage,{id:"backTitle"})),J.createElement(fq,null,e))),Vb=yq;var hq=m(yo)`
|
|
3460
3460
|
background: ${({theme:e})=>e.palette.system.background};
|
|
3461
3461
|
border-radius: 4px 4px 0 0;
|
|
3462
3462
|
border: 1px solid #edeef2;
|
|
3463
|
-
`,
|
|
3463
|
+
`,Cq=({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:ao,backLinkText:J.createElement(FormattedMessage,{id:"community.returnTo",values:{communityName:t}}),onBack:o}),r.length>0?J.createElement(hq,{tabs:r,activeTab:n||r[0].value,onChange:a=>i==null?void 0:i(a)}):null),Hb=Cq;var Ub=m.div`
|
|
3464
3464
|
border: 1px solid #edeef2;
|
|
3465
3465
|
border-radius: 4px;
|
|
3466
3466
|
background: ${({theme:e})=>e.palette.system.background};
|
|
@@ -3489,9 +3489,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3489
3489
|
width: 100%;
|
|
3490
3490
|
`,qb=m(_o).attrs({width:15,height:15})`
|
|
3491
3491
|
margin-right: 8px;
|
|
3492
|
-
`;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))),
|
|
3492
|
+
`;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))),bq=({onClick:e})=>J.createElement($b,{"data-qa-anchor":"community-edit-add-member-button",onClick:e},J.createElement(qb,null),J.createElement(FormattedMessage,{id:"add"})),Iq=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(bq,{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(Iq,{"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:()=>M(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 _q=({communityId:e,tab:t=Ko.EDIT_PROFILE})=>{let{onChangePage:o}=W(),[r,n]=useState(t),[i,a]=useState(!1),s=()=>a(!0),l=()=>a(!1);useEffect(()=>n(t),[t]);let{onBack:c}=W(),p=Ye(e),u=te({fileId:p==null?void 0:p.avatarFileId,imageSize:"medium"}),f=()=>e&&c(),g=y=>M(void 0,null,function*(){e!=null&&(yield CommunityRepository.updateCommunity(e,y),f());}),h=y=>M(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(Vd,{communityId:e}),r===Ko.PERMISSIONS&&J.createElement(Nb,{communityId:e}))},Rb=_q;var Nq=m.div`
|
|
3493
3493
|
margin-top: 16px;
|
|
3494
|
-
`,
|
|
3494
|
+
`,kq=({title:e,children:t})=>J.createElement(Un,null,J.createElement(q2,null,e),J.createElement(zn,null,t)),Eq=({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(Hn,{className:o,onSubmit:i(g=>{e.displayName===g.displayName?t({description:g.description,avatarFileId:g.avatarFileId}):t(g);})},J.createElement(jn,null,J.createElement(kq,{title:J.createElement(FormattedMessage,{id:"UserProfileForm.title"})},J.createElement(Controller,{name:"avatarFileId",render:C=>{var {field:y}=C,v=y,h=I(v,["ref"]);return J.createElement(Vn,S(d({},h),{"data-qa-anchor":"user-profile-form-avatar-uploader"}))},control:l}),J.createElement(go,{error:a.displayName},J.createElement(nn,null,J.createElement($o,{htmlFor:"displayName",className:"required"},J.createElement(FormattedMessage,{id:"UserProfileForm.displayname"})),J.createElement(rn,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(fo,{errors:a,name:"displayName"})),J.createElement(go,{error:a.description},J.createElement(nn,null,J.createElement($o,{htmlFor:"description"},J.createElement(FormattedMessage,{id:"UserProfileForm.about"})),J.createElement(rn,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(fo,{errors:a,name:"description"})),J.createElement(Nq,null,J.createElement(ce,{"data-qa-anchor":"user-profile-form-save-button",type:"submit"},J.createElement(FormattedMessage,{id:"save"}))))))},eI=memo(Eq);var tI=m.button.attrs({role:"button"})`
|
|
3495
3495
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
3496
3496
|
font-size: 14px;
|
|
3497
3497
|
border: none;
|
|
@@ -3503,7 +3503,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3503
3503
|
cursor: pointer;
|
|
3504
3504
|
color: ${({theme:e})=>e.palette.neutral.shade1};
|
|
3505
3505
|
}
|
|
3506
|
-
`;var
|
|
3506
|
+
`;var Bq=({text:e})=>{let{onBack:t}=W();return J.createElement(tI,{onClick:t},e)},oI=Bq;var jd={EDIT_PROFILE:"EDIT_PROFILE"},rI=[{value:jd.EDIT_PROFILE,label:"Edit profile"}];var nI=m(yo)`
|
|
3507
3507
|
background: ${({theme:e})=>e.palette.system.background};
|
|
3508
3508
|
border-radius: 4px 4px 0 0;
|
|
3509
3509
|
border: 1px solid #edeef2;
|
|
@@ -3564,7 +3564,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3564
3564
|
width: 100%;
|
|
3565
3565
|
`;m(_o).attrs({width:15,height:15})`
|
|
3566
3566
|
margin-right: 8px;
|
|
3567
|
-
`;var
|
|
3567
|
+
`;var Uq=({userId:e})=>{let{formatMessage:t}=useIntl(),{onClickUser:o}=W(),[r,n]=useState(jd.EDIT_PROFILE),i=le(e),a=te({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"}),s=Ce(),l=p=>{s.error({content:p.message});},c=p=>M(void 0,null,function*(){try{if(e==null)return;yield UserRepository.updateUser(e,p),o(e);}catch(u){l(u),console.log(u);}});return i==null?null:J.createElement(sI,null,J.createElement(lI,null,J.createElement(cI,null,J.createElement(dI,{avatar:a,backgroundImage:De})),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===jd.EDIT_PROFILE&&J.createElement(pI,null,i!=null?J.createElement(eI,{user:i,onSubmit:c}):null)))},fI=memo(e=>{let t=V("ProfileSettings");return t?t(e):J.createElement(Uq,d({},e))});var gI=m.div`
|
|
3568
3568
|
padding: 70px 30px 30px;
|
|
3569
3569
|
max-width: 360px;
|
|
3570
3570
|
text-align: center;
|
|
@@ -3586,7 +3586,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3586
3586
|
background: none;
|
|
3587
3587
|
text-decoration: underline;
|
|
3588
3588
|
}
|
|
3589
|
-
`;function j5({onClose:e,onGoSettings:t}){return J.createElement(vt,{"data-qa-anchor":"community-created-modal"},J.createElement(gI,null,J.createElement(T0,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
|
|
3589
|
+
`;function j5({onClose:e,onGoSettings:t}){return J.createElement(vt,{"data-qa-anchor":"community-created-modal"},J.createElement(gI,null,J.createElement(T0,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 jq=({communityId:e,onClose:t})=>{let{onEditCommunity:o}=W();return J.createElement(j5,{onClose:t,onGoSettings:()=>{e!=null&&(o(e,Ko.PERMISSIONS),t());}})},xI=jq;var bI=m(_o).attrs({width:15,height:15})`
|
|
3590
3590
|
margin-right: 8px;
|
|
3591
3591
|
`,II=m(Ci).attrs({width:15,height:15})`
|
|
3592
3592
|
margin-right: 4px;
|
|
@@ -3682,7 +3682,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3682
3682
|
`,OI=m.div`
|
|
3683
3683
|
${({theme:e})=>e.typography.caption};
|
|
3684
3684
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
3685
|
-
`;var HI=({canReviewPosts:e,postsCount:t})=>J.createElement(FI,null,J.createElement(DI,null,J.createElement(VI,null),J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.title"})),J.createElement(OI,null,e?J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.needApproval",values:{amount:t,formattedAmount:fg(t)}}):J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.pendingForReview"})));var
|
|
3685
|
+
`;var HI=({canReviewPosts:e,postsCount:t})=>J.createElement(FI,null,J.createElement(DI,null,J.createElement(VI,null),J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.title"})),J.createElement(OI,null,e?J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.needApproval",values:{amount:t,formattedAmount:fg(t)}}):J.createElement(FormattedMessage,{id:"community.pendingPostsBanner.pendingForReview"})));var Yq=({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:v})=>{let{formatMessage:x}=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(G5,null,J.createElement("div",{className:"countNumber"},fg(r||0)),J.createElement("div",{className:"countType"},J.createElement(FormattedMessage,{id:"community.posts"}))),J.createElement(EI,null),J.createElement(G5,null,J.createElement("div",{className:"countNumber"},fg(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:x({id:"community.settings"}),action:()=>u(e),dataQaAnchorMenuItem:"settings"}:null,h?{name:x({id:"community.leaveCommunity"}),action:()=>g(e),dataQaAnchorMenuItem:"leave-community"}:null].filter(He)})),i&&J.createElement(rg,{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(Y,{fullWidth:!0,"data-qa-anchor":"community-info-edit-button",onClick:()=>u(e)},J.createElement(II,null)," ",J.createElement(FormattedMessage,{id:"community.editProfile"})),v===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED&&a&&o>0&&J.createElement(HI,{canReviewPosts:C,postsCount:o})))},zI=e=>{let t=V("UICommunityInfo");return t?t(e):J.createElement(Yq,d({},e))};var qd=e=>{let{onEditCommunity:t}=W(),o=Ye(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 Kq=({communityId:e})=>{var v;let{community:t,communityCategories:o,avatarFileUrl:r,canEditCommunity:n,onEditCommunity:i,joinCommunity:a,leaveCommunity:s,pendingPostsCount:l,canReviewCommunityPosts:c}=qd(e),{confirm:p}=ue(),u=(o||[]).map(x=>x.name);if(t==null)return null;let f=t.isJoined||!1,{membersCount:g,description:h,isJoined:C}=t,y=({onOk:x})=>p({"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:()=>x()});return J.createElement(zI,{communityId:e,communityCategories:u,pendingPostsCount:l,postsCount:(v=t.postsCount)!=null?v:0,membersCount:g,description:h||"",isJoined:C||!1,isOfficial:t.isOfficial||!1,isPublic:t.isPublic||!1,avatarFileUrl:r||null,joinCommunity:a,canEditCommunity:n,canLeaveCommunity:f||!1,canReviewPosts:c,name:t.displayName,postSetting:t.postSetting||CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED,onEditCommunity:i,onClickLeaveCommunity:()=>y({onOk:()=>s()})})};var jI=Kq;var gr={TIMELINE:"TIMELINE",GALLERY:"GALLERY",MEMBERS:"MEMBERS",PENDING:"PENDING"};function GI(e,t,o,r=0){let n=[{value:gr.TIMELINE,label:J.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:gr.GALLERY,label:J.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:gr.MEMBERS,label:J.createElement(FormattedMessage,{id:"tabs.members"})}];if(t&&e===CommunityPostSettings.ADMIN_REVIEW_POST_REQUIRED){let i=o?r:0;n.push({value:gr.PENDING,label:J.createElement(FormattedMessage,{id:"tabs.pendingPosts",values:{amount:i,formattedAmount:i}})});}return n}var $I=m.div`
|
|
3686
3686
|
height: 100%;
|
|
3687
3687
|
max-width: 700px;
|
|
3688
3688
|
margin: 0 auto;
|
|
@@ -3694,7 +3694,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3694
3694
|
margin-bottom: 12px;
|
|
3695
3695
|
padding: 12px 16px;
|
|
3696
3696
|
border-radius: 4px;
|
|
3697
|
-
`;var
|
|
3697
|
+
`;var eY=({communityId:e,isNewCommunity:t,isOpen:o,toggleOpen:r})=>{let n=Ye(e),{canReview:i,canCreatePost:a}=vs({community:n}),{posts:s}=Po({targetId:e,targetType:"community",feedType:"reviewing"}),l=s.reduce((C,y)=>C+y.flagCount,0),c=useMemo(()=>GI(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(gr.TIMELINE),f=(n==null?void 0:n.isJoined)||!1,[g,h]=useState(t);return useEffect(()=>{c.find(C=>C.value===p)||u(c[0].value);},[p,c]),J.createElement($I,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(jI,{communityId:e}),J.createElement(Ad,{"data-qa-anchor":"community-feed-header",tabs:c,activeTab:p,onChange:u}),p===gr.TIMELINE&&J.createElement(Bn,{targetType:"community",targetId:e,readonly:!f,showPostCreator:f&&a,feedType:"published"}),p===gr.GALLERY&&J.createElement(Ed,{targetType:"community",targetId:e,grid:!0}),p===gr.MEMBERS&&J.createElement(Vd,{communityId:e}),p===gr.PENDING&&J.createElement(J.Fragment,null,i&&J.createElement(ZI,null,J.createElement(FormattedMessage,{id:"community.review.declinePendingPosts"})),J.createElement(Bn,{targetType:"community",targetId:e,readonly:!f,showPostCreator:!1,feedType:"reviewing"})),g&&J.createElement(xI,{communityId:e,onClose:()=>h(!1)}))},WI=eY;m(ve)`
|
|
3698
3698
|
margin-right: 8px;
|
|
3699
3699
|
`;m.div`
|
|
3700
3700
|
color: ${({theme:e})=>e.palette.base.shade2};
|
|
@@ -3748,8 +3748,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3748
3748
|
border-bottom-left-radius: 0.75rem;
|
|
3749
3749
|
`;m(jt)`
|
|
3750
3750
|
color: ${({theme:e})=>e.palette.neutral.main};
|
|
3751
|
-
`;var
|
|
3752
|
-
<path d="M20 0 L 20 40" stroke="${
|
|
3751
|
+
`;var oY=e=>e.replace("#","%23"),rY=e=>`<svg xmlns="http://www.w3.org/2000/svg" height="40">
|
|
3752
|
+
<path d="M20 0 L 20 40" stroke="${oY(e.palette.base.shade4)}" />
|
|
3753
3753
|
</svg>`;m.div`
|
|
3754
3754
|
display: flex;
|
|
3755
3755
|
width: 100%;
|
|
@@ -3764,7 +3764,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3764
3764
|
border: none;
|
|
3765
3765
|
padding: 8px 0 16px;
|
|
3766
3766
|
background-repeat: no-repeat;
|
|
3767
|
-
background-image: ${({theme:e})=>`url('data:image/svg+xml;utf8,${
|
|
3767
|
+
background-image: ${({theme:e})=>`url('data:image/svg+xml;utf8,${rY(e)}')`};
|
|
3768
3768
|
`;m.div`
|
|
3769
3769
|
width: 100%;
|
|
3770
3770
|
`;m.div`
|
|
@@ -3879,14 +3879,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3879
3879
|
border-radius: 0rem 0.75rem 0.75rem 0.75rem;
|
|
3880
3880
|
height: 7.5rem;
|
|
3881
3881
|
padding: 0.75rem;
|
|
3882
|
-
`;var QI={aspectRatioButton:"eo",aspectRatioButton__icon:"ro"};var
|
|
3882
|
+
`;var QI={aspectRatioButton:"eo",aspectRatioButton__icon:"ro"};var lY=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 Jd({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:QI.aspectRatioButton,"data-qa-anchor":a,onPress:n},J.createElement(se,{defaultIcon:()=>J.createElement(lY,{className:o}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))}var Y5={remoteImageButton:"oo",closeButton__icon:"to",closeButton:"io"};var cY=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
|
|
3883
3883
|
0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
|
|
3884
3884
|
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
|
|
3885
3885
|
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
|
|
3886
3886
|
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
|
|
3887
|
-
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:Y5.closeButton,"data-qa-anchor":c,onPress:o},J.createElement(se,{defaultIcon:()=>J.createElement(mY,{className:so(Y5.closeButton__icon,r)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var W5={hyperLinkButton:"do"};var pY=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"})),Xd=({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:W5.hyperLinkButton,onPress:n,"data-qa-anchor":a},J.createElement(se,{defaultIcon:()=>J.createElement(pY,{className:so(W5.hyperLinkButton,o)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var XI={impressionButton:"mo"};var gY=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 Rd({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(se,{defaultIcon:()=>J.createElement("div",{className:so(XI.impressionButton,r),"data-qa-anchor":a},J.createElement(gY,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 RI={overflowMenuButton:"go"};var hY=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"})),ec=({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:RI.overflowMenuButton,onPress:o},J.createElement(se,{defaultIcon:()=>J.createElement(hY,{className:r}),imgIcon:()=>J.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var CY=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"}))))},Q5=CY;var tw={saveButton:"P"};function aa({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:so(tw.saveButton,r),"data-qa-anchor":i,style:S(d({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var K5={shareStoryButton:"Q",shareStoryIcon:"po",shareStoryButton__image:"fo"};var _Y=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"})),tc=({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:so(K5.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:K5.shareStoryButton__image}),J.createElement(A.BodyBold,null,(i==null?void 0:i.text)||"Share story"),J.createElement(_Y,null))};var oc={speakerButton:"uo",speakerButton__icon:"bo"};var PY=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"})),SY=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 rc({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:so(oc.speakerButton),onPress:i},J.createElement(se,{"data-qa-anchor":s,defaultIcon:()=>e?J.createElement(SY,{className:oc.speakerButton__icon}):J.createElement(PY,{className:oc.speakerButton__icon}),imgIcon:()=>J.createElement("img",{src:l.icon,alt:u,className:so(n)}),defaultIconName:c.icon,configIconName:l.icon}))}function TY(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 J5=TY;function NY(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 X5=NY;function kY(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 sa=kY;function EY(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 R5=EY;function AY(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 eu=AY;function BY(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=BY;var Fl={hyperlink:"vo",hyperlinkIcon:"xo",hyperlinkText:"wo",text:"yo"};var Xn=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(eu,{className:Fl.hyperlinkIcon}),J.createElement("div",{className:Fl.hyperlinkText},J.createElement("span",{className:Fl.text},t)))};var mw={editCancelButton:"ko"};var Rn=({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:so(mw.editCancelButton,o),style:S(d({},l),{backgroundColor:a.background_color}),onPress:r},J.createElement(A.Body,null,a.cancel_button_text))};var VY=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"})),ac=VY;var ei={editorPlaceholder:"jo",editorParagraph:"zo",editorContainer:"V",editorEditableContent:"Io",editorLink:"Xo",commentInput__mentionInterceptor:"Yo"};function Dl(e){return e.type==="text"}function ou(e){return e.type==="mention"}function ru(e){return e.type==="autolink"}function nu(e){return e.type==="link"}function HY(){return {children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}}function UY(){return {textStyle:"",children:[],direction:"ltr",format:"",indent:0,type:"paragraph",version:1,textFormat:0}}function tu(e){return {detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}}function zY({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 jY({url:e,title:t}){return {children:[tu(t)],format:"",direction:"ltr",indent:0,type:"link",version:1,url:e,rel:null,target:null,title:null}}function GY(e){return (e==null?void 0:e.type)==="url"}function Vl(e){var c,p;let t=HY(),o=e.data.text.split(`
|
|
3888
|
-
`),r=(p=(c=e.metadata)==null?void 0:c.mentioned)!=null?p:[],n=cw.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=
|
|
3889
|
-
`),mentionees:s}}var ZY={ltr:"ltr",rtl:"rtl"},au=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:d(d({},ZY),t),onError(n){throw n},nodes:o,editorState:r});var pw={mention:"Ro"};function WY({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=pw.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 WY({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 JY=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,XY=[e=>{let t=JY.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}`}}],su=()=>J.createElement(AutoLinkPlugin,{matchers:XY});var lu=()=>J.createElement(LinkPlugin,{validateUrl:ex});var fw=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,lW="\\b[A-Z][^\\s"+fw+"]",mW={NAME:lW,PUNCTUATION:fw},gw=mW.PUNCTUATION,du=["@"].join(""),yw="[^"+du+gw+"\\s]",dW="(?:\\.[ |$]| |["+gw+"]|)",cW=75,pW=new RegExp("(^|\\s|\\()(["+du+"]((?:"+yw+dW+"){0,"+cW+"}))$"),uW=50,fW=new RegExp("(^|\\s|\\()(["+du+"]((?:"+yw+"){0,"+uW+"}))$");function gW(e,t){let o=pW.exec(e);if(o===null&&(o=fW.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 yW(e){return gW(e,0)}var mu=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function cu({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i}){let[a]=useLexicalComposerContext(),s=useMemo(()=>e.map(p=>new mu({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=>yW(p),[a]);return J.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:l,triggerFn:c,options:s,menuRenderFn:n,commandPriority:i})}var lc=({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 pu=({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 vw=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:so(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 Jo({pageId:e="*",componentId:t="*",userId:o,className:r}){var s;let n="user_avatar",{user:i}=ho({userId:o}),a=lt({fileId:(s=i==null?void 0:i.avatar)==null?void 0:s.fileId});return i==null||o==null||a==null?J.createElement(vw,{className:r}):J.createElement("object",{"data-qa-anchor":`${e}/${t}/${n}`,data:a,type:"image/png",className:so(Us.userAvatar__img,r)},J.createElement(vw,{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 uu({pageId:e="*",componentId:t="*",option:o,isSelected:r,onClick:n,onMouseEnter:i}){let{user:a}=ho({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(Jo,{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 _W=({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]);},Xo=_W;var UW=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}=pu({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:f,isLoading:g}=lc({displayName:t||"",limit:10,enabled:!i}),h=_=>{o(_);},C=useMemo(()=>e&&n?[]:i?a.map(({user:_,userId:P})=>({userId:(_==null?void 0:_.userId)||P,displayName:_==null?void 0:_.displayName})):p.map(({displayName:_,userId:P})=>({userId:P,displayName:_})),[p,a,i,n]),y=useMemo(()=>i?s:u,[i,s,u]),v=()=>{x||!y||(i?c():f());},x=useMemo(()=>i?l:g,[l,g,i]);return {suggestions:C,queryString:t,onQueryChange:h,loadMore:v,hasMore:y,isLoading:x}},zW=[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:v,isLoading:x,loadMore:_,hasMore:P}=UW(o);Xo({onIntersect:()=>{x===!1&&_();},node:c,options:{threshold:.7}});let b=J.useRef(null),w=()=>{var N;(N=b.current)==null||N.update(()=>{$getRoot().clear();}),setTimeout(()=>{var D;(D=b.current)==null||D.blur();},500);};useImperativeHandle(l,()=>({clearEditorState:w}));let T=au({namespace:g,theme:{placeholder:ei.editorPlaceholder,paragraph:ei.editorParagraph,link:ei.editorLink},nodes:zW});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:ei.editorContainer,style:{"--asc-max-lines":i}},J.createElement(RichTextPlugin,{contentEditable:J.createElement(ContentEditable,{"data-qa-anchor":C,className:ei.editorEditableContent}),placeholder:a?J.createElement("div",{className:ei.editorPlaceholder},a):null,ErrorBoundary:LexicalErrorBoundary}),J.createElement(OnChangePlugin,{onChange:(N,D)=>{n(iu(D));}}),J.createElement(HistoryPlugin,null),J.createElement(AutoFocusPlugin,null),J.createElement(lu,null),J.createElement(su,null),J.createElement(EditorRefPlugin,{editorRef:b}),J.createElement(cu,{suggestions:v,getSuggestionId:N=>N.userId,onQueryChange:y,$createNode:N=>Ol({text:`@${(N==null?void 0:N.displayName)||""}`,data:N}),menuRenderFn:(N,{options:D,selectedIndex:q,setHighlightedIndex:$,selectOptionAndCleanUp:G})=>!s||D.length===0?null:SW.createPortal(J.createElement(J.Fragment,null,D.map((O,ee)=>J.createElement(uu,{isSelected:q===ee,onClick:()=>{$(ee),G(O);},onMouseEnter:()=>{$(ee);},key:O.key,option:O})),P&&J.createElement("div",{ref:O=>p(O),className:ei.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 ZW=()=>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"})),cc=({pageId:e="*",referenceId:t,referenceType:o,replyTo:r,onCancelReply:n,shouldAllowCreation:i=!0,community:a})=>{var _,P;let s=Ve().currentUserId,{user:l}=ho({userId:s}),c=lt({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,v]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:x}=useMutation({mutationFn:w=>M(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;v({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(Gm,{onClick:n,className:Ao.commentComposer__replyContainer__closeButton}))),J.createElement("div",{className:Ao.commentComposer__container},J.createElement("div",{className:Ao.commentComposer__avatar},J.createElement(ur,{pageId:e,componentId:f,avatarUrl:c,defaultImage:J.createElement(ac,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:w,mentionees:T})=>{v({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:!((P=y==null?void 0:y.data)!=null&&P.text),className:Ao.commentComposer__button,onPressStart:()=>x({params:y})},J.createElement(A.Body,null,"Post")))):J.createElement("div",{className:Ao.commentComposer__disableContainer},J.createElement(ZW,null),J.createElement(A.Body,null,"Comments are disabled for this story"))};var pc={moderatorBadge:"Zo",moderatorBadge__icon:"_o",moderatorBadge__text:"et"};var YW=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:pc.moderatorBadge,style:l,"data-qa-anchor":r},J.createElement(YW,{className:pc.moderatorBadge__icon}),J.createElement("div",{className:pc.moderatorBadge__text},n.text))}var ww={timestamp:"rt"};Ro.extend(JW);Ro.extend(KW);Ro.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=Ro().subtract(e,"M"),i=Ro();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=Ro().subtract(e,"M"),i=Ro();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=Ro().subtract(e,"y"),i=Ro();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=Ro().subtract(e,"y"),i=Ro();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=Ro(o).fromNow();return i?null:J.createElement(A.Caption,{className:ww.timestamp,style:a,"data-qa-anchor":n},s)}var Be={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 RW=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"})),uc=RW;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 gc=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=pe({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:so(Cr.postCommentSkeleton,Cr.postCommentSkeleton__animation),style:i},J.createElement("div",{className:so(Cr.postCommentSkeleton__avatar,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:so(Cr.postCommentSkeleton__details,Cr.postCommentSkeleton__animation)},J.createElement("div",{className:so(Cr.postCommentSkeleton__content,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:Cr.postCommentSkeleton__content__bar}))));return J.createElement("div",{className:Cr.postCommentSkeleton__container},a)};function gu({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=pt({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 ti({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Y7(),s=useRef(null);return Qi({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 ti({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}=Ae(),h=useMemo(()=>Vl({data:r,mentionees:n,metadata:i}),[r,n,i]);useEffect(()=>{var _;let y=((_=f.current)==null?void 0:_.clientHeight)||0,v=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),x=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*v;y>x*o&&c(!0),u(!0);},[]);let C=(y,v)=>y.children.map(x=>{var _;return ou(x)?J.createElement(U,{"data-qa-anchor":`${e}/${t}/mention`,key:x.data.userId,className:so(v,Hr.textWithMention__mention),onPress:()=>g(x.data.userId)},x.text):ru(x)||nu(x)?J.createElement("a",{key:x.url,href:x.url,className:so(v,Hr.textWithMention__link),"data-qa-anchor":`${e}/${t}/post_link`},Dl(x.children[0])?(_=x.children[0])==null?void 0:_.text:x.url):Dl(x)?J.createElement("span",{className:so(v,Hr.textWithMention__text)},x.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:v})=>J.createElement(J.Fragment,null,C(y,v))}):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,v)=>J.createElement("p",{className:Hr.textWithMention__paragraph,key:v},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:x})=>J.createElement(J.Fragment,null,C(y,x))}):J.createElement("br",null)))))};var Mw=e=>{let t=Ut(),[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=()=>M(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>M(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=>M(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 yc=({pageId:e="*",componentId:t="*",comment:o,handleEditComment:r,handleDeleteComment:n,onCloseBottomSheet:i})=>{let{userRoles:a}=Ve(),{toggleFlagComment:s,isFlaggedByMe:l}=Mw(o.commentId),{canDelete:c,canEdit:p,canReport:u}=f2(o,!1,a),f=Ut(),g=()=>M(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(X5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"edit_comment"}:null,u?{name:l?"Unreport comment":"Report comment",action:g,icon:J.createElement(R5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"report_comment"}:null,c?{name:"Delete comment",action:n,icon:J.createElement(sa,{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 Qe={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 yQ=10;function hc({targetType:e,targetId:t,feedType:o,limit:r=yQ}){let a=pt({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:CQ}=_l;function jl({communityId:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[CQ]},shouldCall:!!e&&t}),{items:o}=n,r=I(n,["items"]);return d({moderators:o},r)}var xQ=({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}=Tp(),{posts:a}=hc({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 v=(h=i==null?void 0:i.hasPermission("DELETE_COMMUNITY_FEED_POST").community(o.communityId))!=null?h:!1;f.canDelete=v;}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)},Cc=xQ;var wQ=({pageId:e="*",community:t,comment:o})=>{var N,D;let r="post_comment",{confirm:n}=xt(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:c,themeStyles:p}=pe({pageId:e,componentId:r}),[u,f]=useState(!1),[g,h]=useState(!1),[C,y]=useState(),{isModerator:v}=Cc({community:t,userId:(N=o.creator)==null?void 0:N.userId}),x=(o.myReactions||[]).some(q=>q==="like"),_=()=>f(q=>!q),P=()=>M(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:P});},T=()=>M(void 0,null,function*(){o&&(x?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),k=useCallback(()=>M(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:Qe.postReplyComment__deleteComment_container,style:p},J.createElement(Ll,{className:Qe.postReplyComment__deleteComment_icon}),J.createElement(A.Caption,{className:Qe.postReplyComment__deleteComment_text},"This reply has been deleted")):g?J.createElement("div",{className:Qe.postReplyComment__edit},J.createElement(Jo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Qe.postReplyComment__edit__inputWrap},J.createElement("div",{className:Qe.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:q=>{y({data:{text:q.text},mentionees:q.mentionees,metadata:{mentioned:q.mentioned}});}})),J.createElement("div",{className:Qe.postReplyComment__edit__buttonWrap},J.createElement(Rn,{componentId:"edit_comment_component",className:so(Qe.postReplyComment__edit__button,Qe.postReplyComment__edit__cancelButton),onPress:()=>{h(!1);}}),J.createElement(aa,{className:so(Qe.postReplyComment__edit__button,Qe.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):J.createElement("div",{className:Qe.postReplyComment,style:p,"data-qa-anchor":i},J.createElement(Jo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Qe.postReplyComment__details},J.createElement("div",{className:Qe.postReplyComment__content},J.createElement(A.BodyBold,{className:Qe.postReplyComment__content__username},(D=o.creator)==null?void 0:D.displayName),v&&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:Qe.postReplyComment__secondRow},J.createElement("div",{className:Qe.postReplyComment__secondRow__leftPane},J.createElement(A.Caption,{className:Qe.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:Qe.postReplyComment__secondRow__like,"data-is-liked":x},x?"Liked":"Like")),J.createElement(vn,{"data-qa-anchor":`${e}/${r}/reply_comment_options`,className:Qe.postReplyComment__secondRow__actionButton,onClick:()=>f(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Qe.postReplyComment__secondRow__rightPane},J.createElement(A.Caption,null,fg(o.reactionsCount)),J.createElement(Q5,{className:Qe.postReplyComment__secondRow__rightPane__like}))))),J.createElement(Co,{onClose:_,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(yc,{pageId:e,componentId:r,comment:o,onCloseBottomSheet:_,handleEditComment:b,handleDeleteComment:w})))},kw=wQ;var vc={postReplyCommentList__viewReply_button:"ki",postReplyCommentList__viewReply_icon:"ji",postReplyCommentList__viewReply_text:"zi"};var Ew=({pageId:e="*",componentId:t="*",referenceId:o,referenceType:r,community:n,parentId:i})=>{let{comments:a,hasMore:s,isLoading:l,loadMore:c}=gu({referenceId:o,referenceType:r,parentId:i,limit:10,shouldCall:!0,includeDeleted:!0}),p=()=>{c();};return J.createElement("div",null,l&&J.createElement(gc,{numberOfSkeletons:3}),a.map(u=>J.createElement(kw,{pageId:e,community:n,comment:u})),s&&J.createElement("div",{className:vc.postReplyCommentList__viewReply_button,onClick:p},J.createElement(uc,{className:vc.postReplyCommentList__viewReply_icon}),J.createElement(A.CaptionBold,{className:vc.postReplyCommentList__viewReply_text},"View more replies")))};var TQ=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"}))},NQ=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"}))))},Fw=({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}=pe({pageId:e,componentId:t}),{confirm:c}=xt(),[p,u]=useState(!1),[f,g]=useState(!1),[h,C]=useState(!1),[y,v]=useState(),x=useRef(null);useState(!1);let {isModerator:b}=Cc({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=()=>M(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),D=()=>{C(!0);},q=()=>{c({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:N});},$=()=>M(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(()=>M(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:Be.postComment__deleteComment_container},J.createElement(Ll,{className:Be.postComment__deleteComment_icon}),J.createElement(A.Body,{className:Be.postComment__deleteComment_text},"This comment has been deleted")):h?J.createElement("div",{className:Be.postComment__edit},J.createElement(Jo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Be.postComment__edit__inputWrap},J.createElement("div",{className:Be.postComment__edit__input},J.createElement("div",{className:Be.postComment__edit__mentionContainer,ref:x}),J.createElement(Gs,{communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:X=>{v({data:{text:X.text},mentionees:X.mentionees,metadata:{mentioned:X.mentioned}});},maxLines:5,mentionContainer:x==null?void 0:x.current})),J.createElement("div",{className:Be.postComment__edit__buttonWrap},J.createElement(Rn,{componentId:"edit_comment_component",className:so(Be.postComment__edit__button,Be.postComment__edit__cancelButton),onPress:()=>{C(!1);}}),J.createElement(aa,{className:so(Be.postComment__edit__button,Be.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):J.createElement("div",{className:Be.postComment},J.createElement(Jo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Be.postComment__details},J.createElement("div",{className:Be.postComment__content},J.createElement(A.BodyBold,{"data-qa-anchor":`${e}/${t}/username`,className:Be.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:Be.postComment__secondRow},i&&J.createElement("div",{className:Be.postComment__secondRow__leftPane},J.createElement(A.Caption,{className:Be.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:Be.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:Be.postComment__secondRow__reply},"Reply")),J.createElement(TQ,{className:Be.postComment__secondRow__actionButton,onClick:()=>u(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Be.postComment__secondRow__rightPane},J.createElement(A.Caption,null,fg(o.reactionsCount)),J.createElement(NQ,{className:Be.postComment__secondRow__rightPane__like}))),k>0&&!f&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/view_reply_button`,className:Be.postComment__viewReply_button,onClick:()=>g(!0)},J.createElement(uc,{className:Be.postComment__viewReply_icon}),J.createElement(A.CaptionBold,{className:Be.postComment__viewReply_text},"View ",k," ",k>1?"replies":"reply")),f&&J.createElement(Ew,{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(yc,{pageId:e,componentId:t,comment:o,handleEditComment:D,handleDeleteComment:q,onCloseBottomSheet:w})))};var mt={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 EQ=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}))},Vw=EQ;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(Vw,{className:$l.badge__icon}),J.createElement("div",{className:$l.badge__text},"Sponsored")));var BQ=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=BQ;var LQ=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=LQ;var Bt={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 bu=({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:Bt.drawer__overlay}),J.createElement(Drawer.Content,{className:Bt.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},J.createElement("div",{className:Bt.drawer__innerContent},J.createElement("div",{className:Bt.drawer__placeholder}),J.createElement(Drawer.Title,{className:Bt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:Bt.drawer__content__data},J.createElement(A.BodyBold,{className:Bt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:Bt.drawer__content__data__text},J.createElement(xr,{className:Bt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Bt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:Bt.drawer__content__data},J.createElement(A.BodyBold,{className:Bt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:Bt.drawer__content__data__text},J.createElement(xr,{className:Bt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Bt.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),J.createElement("div",{className:Bt.drawer__content__emptySpace})))))};var Hw=({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:mt.commentAd,style:t},J.createElement(U,{className:mt.infoIcon__button,onPress:()=>a(!0)},J.createElement(xr,{className:mt.infoIcon})),J.createElement("div",{className:mt.commentAd__container},J.createElement("div",{className:mt.commentAd__avatar},J.createElement(ur,{avatarUrl:o,defaultImage:J.createElement(ql,null)})),J.createElement("div",{className:mt.commentAd__details},J.createElement("div",{className:mt.commentAd__content},J.createElement(A.BodyBold,{className:mt.commentAd__content__advertiserName__container},J.createElement("div",{className:mt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),J.createElement(Zl,null),J.createElement("div",null,J.createElement(A.Body,{className:mt.commentAd__content__text},e.body)),J.createElement("div",{className:mt.commentAd__adCard,onClick:s},J.createElement("div",{className:mt.commentAd__adCard__imageContainer},J.createElement("img",{className:mt.commentAd__adCard__image,src:r})),J.createElement("div",{className:mt.commentAd__adCard__detail},J.createElement("div",{className:mt.commentAd__adCard__textContainer},J.createElement(A.Caption,{renderer:({typoClassName:c})=>J.createElement("div",{className:so(c,mt.commentAd__adCard__description)},e.description)}),J.createElement(A.BodyBold,{className:mt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?J.createElement(U,{className:mt.commentAd__adCard__button,onPress:s},J.createElement(A.CaptionBold,{className:mt.commentAd__adCard__button__text},e.callToAction)):null))))),J.createElement(bu,{ad:e,isOpen:i,onOpenChange:c=>a(c)}))};var Uw=({pageId:e="*",ad:t})=>{var c,p,u,f,g,h;let o="comment_tray_component",{themeStyles:r}=pe({pageId:e,componentId:o}),i=lt({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=lt({fileId:(g=t.image1_1)==null?void 0:g.fileId})||((h=t.image1_1)==null?void 0:h.fileUrl)||"";return J.createElement(Hw,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:C=>{window==null||window.open(C,"_blank");}})};var bc={commentList__container:"ts",commentList__viewAllComments__button:"is",commentList__container_intersection:"ss",noCommentsContainer:"cs"};function ma({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return ti({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}function Ic({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return ti({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var WQ=e=>"adId"in e,wc=({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}=pe({componentId:l,pageId:o}),u=useRef(null),[f,g]=useState(null),{items:h,loadMore:C,hasMore:y,isLoading:v}=wl({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:x=>x.commentId,shouldCall:!0});return Xo({node:f,options:{threshold:.8},onIntersect:()=>{y&&v===!1&&C();}}),Ic({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),ma({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!v&&h.length===0?J.createElement("div",{className:bc.noCommentsContainer},J.createElement(A.Body,null,"No comments yet")):J.createElement("div",{className:bc.commentList__container,style:c,ref:u,"data-qa-anchor":p},h.map(x=>WQ(x)?J.createElement(Uw,{key:x.adId,ad:x}):J.createElement(Fw,{pageId:o,key:x.commentId,comment:x,onClickReply:_=>r==null?void 0:r(_),componentId:l,community:a,shouldAllowInteraction:s})),v&&J.createElement(gc,{pageId:o,componentId:l,numberOfSkeletons:3}),J.createElement("div",{ref:x=>g(x),className:bc.commentList__container_intersection}))};var Iu={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}=pe({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:Iu.commentTrayContainer},J.createElement("div",{className:Iu.commentListContainer},J.createElement(wc,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),J.createElement(cc,{referenceId:o,referenceType:t,onCancelReply:f,replyTo:c,shouldAllowCreation:i}))};var wu={doneButton:"vs",doneButton_text:"xs"};function _u(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:`${wu.doneButton} ${o||""}`,"data-qa-anchor":s},r),J.createElement(A.Body,{className:wu.doneButton_text},l.done_button_text))}var Ke={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 jw=30,Pu=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var O,ee,X;let a="hyper_link_config_component",{confirm:s}=xt(),{accessibilityId:l,config:c,isExcluded:p,themeStyles:u}=pe({pageId:e,componentId:a});if(p)return null;let{formatMessage:f}=useIntl(),{client:g}=Ve(),[h,C]=useState(!1),y="asc-story-hyperlink-form",v=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 W=new URL(`https://${L}`);return ["http:","https:"].includes(W.protocol)}catch(W){return !1}return !1}},{message:f({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(L=>M(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=>M(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:x,watch:_,register:P,handleSubmit:b,formState:{errors:w},reset:T}=useForm({resolver:zodResolver(v)}),{url:k,customText:N}=_();useEffect(()=>{C(k!==""||N!=="");},[k,N]);let D=L=>{n(L),r();},q=()=>{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:q});},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:Ke.bottomSheet,style:u},J.createElement("div",{className:Ke.headerContainer},J.createElement(Rn,{pageId:e,componentId:a,onPress:G}),J.createElement(A.Title,null,f({id:"storyCreation.hyperlink.bottomSheet.title"})),J.createElement(_u,{type:"submit",pageId:e,componentId:a,form:y})),J.createElement("div",{className:Ke.divider}),J.createElement("div",{className:Ke.hyperlinkFormContainer},J.createElement("form",{onSubmit:b(D),id:y,className:Ke.form},J.createElement("div",{className:Ke.inputContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:so(Ke.label,Ke.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:so(Ke.input,(w==null?void 0:w.url)&&Ke.hasError)},P("url",{onChange:()=>x("url")}))),(w==null?void 0:w.url)&&J.createElement("span",{className:Ke.errorText},(O=w==null?void 0:w.url)==null?void 0:O.message)),J.createElement("div",{className:Ke.inputContainer},J.createElement("div",{className:Ke.labelContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:Ke.label},f({id:"storyCreation.hyperlink.form.linkTextLabel"}))),J.createElement("div",{className:Ke.characterCount},((ee=_("customText"))==null?void 0:ee.length)||0," / ",jw)),J.createElement("input",S(d({id:"asc-uikit-hyperlink-input-link-text",placeholder:f({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:so(Ke.input,(w==null?void 0:w.customText)&&Ke.hasError)},P("customText")),{maxLength:jw})),(w==null?void 0:w.customText)&&J.createElement("span",{className:Ke.errorText},(X=w==null?void 0:w.customText)==null?void 0:X.message),J.createElement(A.Caption,null,J.createElement("label",{className:Ke.description},f({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&J.createElement("div",{className:Ke.removeLinkContainer},J.createElement(Sd,{variant:"secondary",onClick:$,className:so(Ke.removeLinkButton)},J.createElement(sa,{className:Ke.removeIcon}),f({id:"storyCreation.hyperlink.form.removeButton"})))))};var Gw=e=>{let r=Me({fetcher:ReactionRepository.getReactions,params:e,shouldCall:()=>!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=I(r,["items"]);return d({reactions:t},o)};var sK=createContext([]),Pc=()=>({config:useContext(sK)});var Sc=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var Tc=({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 mK=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"}))},Nc=mK;var we={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 $w=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=Ve(),{config:s}=Pc(),l=useMemo(()=>s.map(({name:c})=>c),[s]);return !i||!e?null:J.createElement("div",{className:we.infiniteScrollContainer},J.createElement(iH,{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:we.userList},e.map(c=>{var p,u,f,g;return J.createElement(Fragment,{key:c.reactionId},J.createElement("div",{className:we.userItem},J.createElement("div",{className:we.userDetailsContainer},J.createElement("div",{className:we.userDetailsProfile},J.createElement("div",{className:we.avatar},J.createElement(ur,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=c.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:J.createElement(ac,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:we.removeBtn},"Click to remove reaction"))))),J.createElement("div",{className:we.userDetailsReaction},l.includes(c.reactionName)?J.createElement(Tc,{reactionConfigItem:s.find(({name:h})=>h===c.reactionName),className:we.reactionIcon}):J.createElement(Nc,{className:we.reactionIcon})))))}))))};var fK=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"})),qw=fK;var Yw=()=>J.createElement("div",{className:we.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:we.reactionState},J.createElement(qw,null),J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var yK=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"})),Qw=yK;var Jw=()=>J.createElement("div",{className:we.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:we.reactionState},J.createElement(Qw,null),J.createElement("div",{className:we.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 hK=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"})),Xw=hK;var Nu=()=>J.createElement("div",{className:so(we.reactionCustomStateContainer,we.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>J.createElement(Xw,{key:`loading_${t}`})));var vK=(e,t)=>({addReaction:n=>M(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>M(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),t_=vK;var MK=(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}},o_=MK;var Ec="unknown",TK=(e,t,o)=>t==="All"?e:t===Ec?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),NK=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?J.createElement(Nu,null):i?J.createElement(Yw,null):e.length===0?r?J.createElement(Nu,null):J.createElement(Jw,null):J.createElement($w,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),Eu=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=pe({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:c}=Gw({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=o_(o,t),[f,g]=useState("All"),h=useRef(null),{config:C}=Pc(),{removeReaction:y}=t_(o,t),v=w=>{g(w);};if(i==null||!C)return null;let x=useMemo(()=>C.map(w=>w.name),[C]),_=useMemo(()=>Object.keys(p).filter(w=>!x.includes(w)),[p]),P=useMemo(()=>_.reduce((w,T)=>w+p[T],0),[p]),b=useMemo(()=>TK(i,f,x),[i,f]);return J.createElement("div",{className:we.reactionListContainer,"data-qa-anchor":`${n}_header`},J.createElement("div",{className:we.tabListContainer},J.createElement("div",{className:we.tabList,"data-qa-anchor":`${n}_tab`},J.createElement("div",{"data-active":f==="All",className:we.tabItem,onClick:()=>v("All")},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},"All ",Sc(u)))),C.map(w=>{let{name:T,image:k}=w;return p[T]?J.createElement("div",{key:T,"data-active":f===T,className:we.tabItem,onClick:()=>v(T)},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},J.createElement(Tc,{className:we.reactionItem,reactionConfigItem:w}),Sc(p[T])))):null}),_.length>0&&J.createElement("div",{key:Ec,"data-active":f===Ec,className:we.tabItem,onClick:()=>v(Ec)},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},J.createElement(Nc,{className:we.reactionIcon}),Sc(P)))))),J.createElement("div",{ref:h,className:we.reactionPanel},J.createElement(NK,{currentRef:h.current,hasMore:l,loadMore:c,error:a,isLoading:s,filteredReactions:b,removeReaction:y})))};var AK=J.createContext(void 0);var Rt=()=>{let e=useContext(AK);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var Ac=o=>{var r=o,{pageId:e="*"}=r,t=I(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=Rt(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Ae(),{setFile:l}=Wo();return (()=>{switch(t.type){case"communityFeed":return J.createElement(Md,{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(kd,{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 Bc={communityPrivateBadge:"en",communityPrivateBadge__iconSvg:"rn"};var zK=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(se,{defaultIcon:()=>J.createElement(zK,{style:l,className:so(Bc.communityPrivateBadge,Bc.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Bc.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var l_={communityDisplayName:"an"};function ca({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:l_.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var Lc={communityOfficialBadge:"on",communityOfficialBadge__iconSvg:"tn"};var qK=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(se,{defaultIcon:()=>J.createElement(qK,{style:l,className:so(Lc.communityOfficialBadge,Lc.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Lc.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 h_={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=nt(t),r=nt(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===t2.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:h_.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 pJ=Pm`
|
|
3887
|
+
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:Y5.closeButton,"data-qa-anchor":c,onPress:o},J.createElement(se,{defaultIcon:()=>J.createElement(cY,{className:so(Y5.closeButton__icon,r)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var W5={hyperLinkButton:"do"};var fY=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"})),Xd=({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:W5.hyperLinkButton,onPress:n,"data-qa-anchor":a},J.createElement(se,{defaultIcon:()=>J.createElement(fY,{className:so(W5.hyperLinkButton,o)}),imgIcon:()=>J.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var XI={impressionButton:"mo"};var hY=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 Rd({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(se,{defaultIcon:()=>J.createElement("div",{className:so(XI.impressionButton,r),"data-qa-anchor":a},J.createElement(hY,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 RI={overflowMenuButton:"go"};var vY=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"})),ec=({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:RI.overflowMenuButton,onPress:o},J.createElement(se,{defaultIcon:()=>J.createElement(vY,{className:r}),imgIcon:()=>J.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var xY=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"}))))},Q5=xY;var tw={saveButton:"P"};function aa({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:so(tw.saveButton,r),"data-qa-anchor":i,style:S(d({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var K5={shareStoryButton:"Q",shareStoryIcon:"po",shareStoryButton__image:"fo"};var PY=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"})),tc=({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:so(K5.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:K5.shareStoryButton__image}),J.createElement(A.BodyBold,null,(i==null?void 0:i.text)||"Share story"),J.createElement(PY,null))};var oc={speakerButton:"uo",speakerButton__icon:"bo"};var TY=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"})),NY=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 rc({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:so(oc.speakerButton),onPress:i},J.createElement(se,{"data-qa-anchor":s,defaultIcon:()=>e?J.createElement(NY,{className:oc.speakerButton__icon}):J.createElement(TY,{className:oc.speakerButton__icon}),imgIcon:()=>J.createElement("img",{src:l.icon,alt:u,className:so(n)}),defaultIconName:c.icon,configIconName:l.icon}))}function kY(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 J5=kY;function EY(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 X5=EY;function AY(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 sa=AY;function BY(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 R5=BY;function LY(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 eu=LY;function FY(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=FY;var Fl={hyperlink:"vo",hyperlinkIcon:"xo",hyperlinkText:"wo",text:"yo"};var Xn=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(eu,{className:Fl.hyperlinkIcon}),J.createElement("div",{className:Fl.hyperlinkText},J.createElement("span",{className:Fl.text},t)))};var mw={editCancelButton:"ko"};var Rn=({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:so(mw.editCancelButton,o),style:S(d({},l),{backgroundColor:a.background_color}),onPress:r},J.createElement(A.Body,null,a.cancel_button_text))};var HY=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"})),ac=HY;var ei={editorPlaceholder:"jo",editorParagraph:"zo",editorContainer:"V",editorEditableContent:"Io",editorLink:"Xo",commentInput__mentionInterceptor:"Yo"};function Dl(e){return e.type==="text"}function ou(e){return e.type==="mention"}function ru(e){return e.type==="autolink"}function nu(e){return e.type==="link"}function zY(){return {children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}}function jY(){return {textStyle:"",children:[],direction:"ltr",format:"",indent:0,type:"paragraph",version:1,textFormat:0}}function tu(e){return {detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}}function GY({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 $Y({url:e,title:t}){return {children:[tu(t)],format:"",direction:"ltr",indent:0,type:"link",version:1,url:e,rel:null,target:null,title:null}}function ZY(e){return (e==null?void 0:e.type)==="url"}function Vl(e){var c,p;let t=zY(),o=e.data.text.split(`
|
|
3888
|
+
`),r=(p=(c=e.metadata)==null?void 0:c.mentioned)!=null?p:[],n=cw.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=jY(),g=0,h=o[u];for(;g<h.length;){let C=a[s];if(s<a.length&&C.index===l){let y=a[s];ZY(y)?(f.children.push($Y({title:y.value,url:y.href})),g+=y.value.length,l+=y.value.length):(f.children.push(GY({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,v=h.slice(g,y-l+g);v&&f.children.push(tu(v)),g+=v.length,l+=v.length;}}if(g<h.length){let C=h.slice(g);C&&f.children.push(tu(C)),l+=C.length;}l+=1,t.children.push(f);}return {root:t}}function iu(e){let t=e.getEditorState().toJSON();return qY(t)}function qY(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),(nu(u)||ru(u))&&u.children.forEach(f=>{Dl(f)&&(p.push(f.text),a+=f.text.length);}),ou(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(`
|
|
3889
|
+
`),mentionees:s}}var YY={ltr:"ltr",rtl:"rtl"},au=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:d(d({},YY),t),onError(n){throw n},nodes:o,editorState:r});var pw={mention:"Ro"};function KY({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=pw.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 KY({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 RY=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,eW=[e=>{let t=RY.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}`}}],su=()=>J.createElement(AutoLinkPlugin,{matchers:eW});var lu=()=>J.createElement(LinkPlugin,{validateUrl:ex});var fw=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,dW="\\b[A-Z][^\\s"+fw+"]",cW={NAME:dW,PUNCTUATION:fw},gw=cW.PUNCTUATION,du=["@"].join(""),yw="[^"+du+gw+"\\s]",pW="(?:\\.[ |$]| |["+gw+"]|)",uW=75,fW=new RegExp("(^|\\s|\\()(["+du+"]((?:"+yw+pW+"){0,"+uW+"}))$"),gW=50,yW=new RegExp("(^|\\s|\\()(["+du+"]((?:"+yw+"){0,"+gW+"}))$");function hW(e,t){let o=fW.exec(e);if(o===null&&(o=yW.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 CW(e){return hW(e,0)}var mu=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function cu({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i}){let[a]=useLexicalComposerContext(),s=useMemo(()=>e.map(p=>new mu({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=>CW(p),[a]);return J.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:l,triggerFn:c,options:s,menuRenderFn:n,commandPriority:i})}var lc=({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 pu=({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 vw=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:so(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 Jo({pageId:e="*",componentId:t="*",userId:o,className:r}){var s;let n="user_avatar",{user:i}=ho({userId:o}),a=lt({fileId:(s=i==null?void 0:i.avatar)==null?void 0:s.fileId});return i==null||o==null||a==null?J.createElement(vw,{className:r}):J.createElement("object",{"data-qa-anchor":`${e}/${t}/${n}`,data:a,type:"image/png",className:so(Us.userAvatar__img,r)},J.createElement(vw,{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 uu({pageId:e="*",componentId:t="*",option:o,isSelected:r,onClick:n,onMouseEnter:i}){let{user:a}=ho({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(Jo,{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 PW=({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]);},Xo=PW;var jW=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}=pu({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:f,isLoading:g}=lc({displayName:t||"",limit:10,enabled:!i}),h=_=>{o(_);},C=useMemo(()=>e&&n?[]:i?a.map(({user:_,userId:P})=>({userId:(_==null?void 0:_.userId)||P,displayName:_==null?void 0:_.displayName})):p.map(({displayName:_,userId:P})=>({userId:P,displayName:_})),[p,a,i,n]),y=useMemo(()=>i?s:u,[i,s,u]),v=()=>{x||!y||(i?c():f());},x=useMemo(()=>i?l:g,[l,g,i]);return {suggestions:C,queryString:t,onQueryChange:h,loadMore:v,hasMore:y,isLoading:x}},GW=[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:v,isLoading:x,loadMore:_,hasMore:P}=jW(o);Xo({onIntersect:()=>{x===!1&&_();},node:c,options:{threshold:.7}});let b=J.useRef(null),w=()=>{var N;(N=b.current)==null||N.update(()=>{$getRoot().clear();}),setTimeout(()=>{var D;(D=b.current)==null||D.blur();},500);};useImperativeHandle(l,()=>({clearEditorState:w}));let T=au({namespace:g,theme:{placeholder:ei.editorPlaceholder,paragraph:ei.editorParagraph,link:ei.editorLink},nodes:GW});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:ei.editorContainer,style:{"--asc-max-lines":i}},J.createElement(RichTextPlugin,{contentEditable:J.createElement(ContentEditable,{"data-qa-anchor":C,className:ei.editorEditableContent}),placeholder:a?J.createElement("div",{className:ei.editorPlaceholder},a):null,ErrorBoundary:LexicalErrorBoundary}),J.createElement(OnChangePlugin,{onChange:(N,D)=>{n(iu(D));}}),J.createElement(HistoryPlugin,null),J.createElement(AutoFocusPlugin,null),J.createElement(lu,null),J.createElement(su,null),J.createElement(EditorRefPlugin,{editorRef:b}),J.createElement(cu,{suggestions:v,getSuggestionId:N=>N.userId,onQueryChange:y,$createNode:N=>Ol({text:`@${(N==null?void 0:N.displayName)||""}`,data:N}),menuRenderFn:(N,{options:D,selectedIndex:q,setHighlightedIndex:$,selectOptionAndCleanUp:G})=>!s||D.length===0?null:NW.createPortal(J.createElement(J.Fragment,null,D.map((O,ee)=>J.createElement(uu,{isSelected:q===ee,onClick:()=>{$(ee),G(O);},onMouseEnter:()=>{$(ee);},key:O.key,option:O})),P&&J.createElement("div",{ref:O=>p(O),className:ei.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 YW=()=>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"})),cc=({pageId:e="*",referenceId:t,referenceType:o,replyTo:r,onCancelReply:n,shouldAllowCreation:i=!0,community:a})=>{var _,P;let s=Ve().currentUserId,{user:l}=ho({userId:s}),c=lt({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,v]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:x}=useMutation({mutationFn:w=>M(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;v({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(Gm,{onClick:n,className:Ao.commentComposer__replyContainer__closeButton}))),J.createElement("div",{className:Ao.commentComposer__container},J.createElement("div",{className:Ao.commentComposer__avatar},J.createElement(ur,{pageId:e,componentId:f,avatarUrl:c,defaultImage:J.createElement(ac,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:w,mentionees:T})=>{v({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:!((P=y==null?void 0:y.data)!=null&&P.text),className:Ao.commentComposer__button,onPressStart:()=>x({params:y})},J.createElement(A.Body,null,"Post")))):J.createElement("div",{className:Ao.commentComposer__disableContainer},J.createElement(YW,null),J.createElement(A.Body,null,"Comments are disabled for this story"))};var pc={moderatorBadge:"Zo",moderatorBadge__icon:"_o",moderatorBadge__text:"et"};var QW=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:pc.moderatorBadge,style:l,"data-qa-anchor":r},J.createElement(QW,{className:pc.moderatorBadge__icon}),J.createElement("div",{className:pc.moderatorBadge__text},n.text))}var ww={timestamp:"rt"};Ro.extend(RW);Ro.extend(XW);Ro.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=Ro().subtract(e,"M"),i=Ro();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=Ro().subtract(e,"M"),i=Ro();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=Ro().subtract(e,"y"),i=Ro();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=Ro().subtract(e,"y"),i=Ro();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=Ro(o).fromNow();return i?null:J.createElement(A.Caption,{className:ww.timestamp,style:a,"data-qa-anchor":n},s)}var Be={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 tQ=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"})),uc=tQ;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 gc=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=pe({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:so(Cr.postCommentSkeleton,Cr.postCommentSkeleton__animation),style:i},J.createElement("div",{className:so(Cr.postCommentSkeleton__avatar,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:so(Cr.postCommentSkeleton__details,Cr.postCommentSkeleton__animation)},J.createElement("div",{className:so(Cr.postCommentSkeleton__content,Cr.postCommentSkeleton__animation)}),J.createElement("div",{className:Cr.postCommentSkeleton__content__bar}))));return J.createElement("div",{className:Cr.postCommentSkeleton__container},a)};function gu({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=pt({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 ti({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=Y7(),s=useRef(null);return Qi({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 ti({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}=Ae(),h=useMemo(()=>Vl({data:r,mentionees:n,metadata:i}),[r,n,i]);useEffect(()=>{var _;let y=((_=f.current)==null?void 0:_.clientHeight)||0,v=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),x=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*v;y>x*o&&c(!0),u(!0);},[]);let C=(y,v)=>y.children.map(x=>{var _;return ou(x)?J.createElement(U,{"data-qa-anchor":`${e}/${t}/mention`,key:x.data.userId,className:so(v,Hr.textWithMention__mention),onPress:()=>g(x.data.userId)},x.text):ru(x)||nu(x)?J.createElement("a",{key:x.url,href:x.url,className:so(v,Hr.textWithMention__link),"data-qa-anchor":`${e}/${t}/post_link`},Dl(x.children[0])?(_=x.children[0])==null?void 0:_.text:x.url):Dl(x)?J.createElement("span",{className:so(v,Hr.textWithMention__text)},x.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:v})=>J.createElement(J.Fragment,null,C(y,v))}):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,v)=>J.createElement("p",{className:Hr.textWithMention__paragraph,key:v},y.children.length>0?J.createElement(A.Body,{renderer:({typoClassName:x})=>J.createElement(J.Fragment,null,C(y,x))}):J.createElement("br",null)))))};var Mw=e=>{let t=Ut(),[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=()=>M(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>M(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=>M(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 yc=({pageId:e="*",componentId:t="*",comment:o,handleEditComment:r,handleDeleteComment:n,onCloseBottomSheet:i})=>{let{userRoles:a}=Ve(),{toggleFlagComment:s,isFlaggedByMe:l}=Mw(o.commentId),{canDelete:c,canEdit:p,canReport:u}=f2(o,!1,a),f=Ut(),g=()=>M(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(X5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"edit_comment"}:null,u?{name:l?"Unreport comment":"Report comment",action:g,icon:J.createElement(R5,{className:Ys.commentOptions__actionButton__icon}),accessibilityId:"report_comment"}:null,c?{name:"Delete comment",action:n,icon:J.createElement(sa,{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 Qe={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 CQ=10;function hc({targetType:e,targetId:t,feedType:o,limit:r=CQ}){let a=pt({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:xQ}=_l;function jl({communityId:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[xQ]},shouldCall:!!e&&t}),{items:o}=n,r=I(n,["items"]);return d({moderators:o},r)}var IQ=({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}=Tp(),{posts:a}=hc({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 v=(h=i==null?void 0:i.hasPermission("DELETE_COMMUNITY_FEED_POST").community(o.communityId))!=null?h:!1;f.canDelete=v;}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)},Cc=IQ;var MQ=({pageId:e="*",community:t,comment:o})=>{var N,D;let r="post_comment",{confirm:n}=xt(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:c,themeStyles:p}=pe({pageId:e,componentId:r}),[u,f]=useState(!1),[g,h]=useState(!1),[C,y]=useState(),{isModerator:v}=Cc({community:t,userId:(N=o.creator)==null?void 0:N.userId}),x=(o.myReactions||[]).some(q=>q==="like"),_=()=>f(q=>!q),P=()=>M(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:P});},T=()=>M(void 0,null,function*(){o&&(x?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,vr):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,vr));}),k=useCallback(()=>M(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:Qe.postReplyComment__deleteComment_container,style:p},J.createElement(Ll,{className:Qe.postReplyComment__deleteComment_icon}),J.createElement(A.Caption,{className:Qe.postReplyComment__deleteComment_text},"This reply has been deleted")):g?J.createElement("div",{className:Qe.postReplyComment__edit},J.createElement(Jo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Qe.postReplyComment__edit__inputWrap},J.createElement("div",{className:Qe.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:q=>{y({data:{text:q.text},mentionees:q.mentionees,metadata:{mentioned:q.mentioned}});}})),J.createElement("div",{className:Qe.postReplyComment__edit__buttonWrap},J.createElement(Rn,{componentId:"edit_comment_component",className:so(Qe.postReplyComment__edit__button,Qe.postReplyComment__edit__cancelButton),onPress:()=>{h(!1);}}),J.createElement(aa,{className:so(Qe.postReplyComment__edit__button,Qe.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):J.createElement("div",{className:Qe.postReplyComment,style:p,"data-qa-anchor":i},J.createElement(Jo,{pageId:e,componentId:r,userId:o.userId}),J.createElement("div",{className:Qe.postReplyComment__details},J.createElement("div",{className:Qe.postReplyComment__content},J.createElement(A.BodyBold,{className:Qe.postReplyComment__content__username},(D=o.creator)==null?void 0:D.displayName),v&&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:Qe.postReplyComment__secondRow},J.createElement("div",{className:Qe.postReplyComment__secondRow__leftPane},J.createElement(A.Caption,{className:Qe.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:Qe.postReplyComment__secondRow__like,"data-is-liked":x},x?"Liked":"Like")),J.createElement(vn,{"data-qa-anchor":`${e}/${r}/reply_comment_options`,className:Qe.postReplyComment__secondRow__actionButton,onClick:()=>f(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Qe.postReplyComment__secondRow__rightPane},J.createElement(A.Caption,null,fg(o.reactionsCount)),J.createElement(Q5,{className:Qe.postReplyComment__secondRow__rightPane__like}))))),J.createElement(Co,{onClose:_,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},J.createElement(yc,{pageId:e,componentId:r,comment:o,onCloseBottomSheet:_,handleEditComment:b,handleDeleteComment:w})))},kw=MQ;var vc={postReplyCommentList__viewReply_button:"ki",postReplyCommentList__viewReply_icon:"ji",postReplyCommentList__viewReply_text:"zi"};var Ew=({pageId:e="*",componentId:t="*",referenceId:o,referenceType:r,community:n,parentId:i})=>{let{comments:a,hasMore:s,isLoading:l,loadMore:c}=gu({referenceId:o,referenceType:r,parentId:i,limit:10,shouldCall:!0,includeDeleted:!0}),p=()=>{c();};return J.createElement("div",null,l&&J.createElement(gc,{numberOfSkeletons:3}),a.map(u=>J.createElement(kw,{pageId:e,community:n,comment:u})),s&&J.createElement("div",{className:vc.postReplyCommentList__viewReply_button,onClick:p},J.createElement(uc,{className:vc.postReplyCommentList__viewReply_icon}),J.createElement(A.CaptionBold,{className:vc.postReplyCommentList__viewReply_text},"View more replies")))};var kQ=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"}))},EQ=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"}))))},Fw=({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}=pe({pageId:e,componentId:t}),{confirm:c}=xt(),[p,u]=useState(!1),[f,g]=useState(!1),[h,C]=useState(!1),[y,v]=useState(),x=useRef(null);useState(!1);let {isModerator:b}=Cc({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=()=>M(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),D=()=>{C(!0);},q=()=>{c({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:N});},$=()=>M(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(()=>M(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:Be.postComment__deleteComment_container},J.createElement(Ll,{className:Be.postComment__deleteComment_icon}),J.createElement(A.Body,{className:Be.postComment__deleteComment_text},"This comment has been deleted")):h?J.createElement("div",{className:Be.postComment__edit},J.createElement(Jo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Be.postComment__edit__inputWrap},J.createElement("div",{className:Be.postComment__edit__input},J.createElement("div",{className:Be.postComment__edit__mentionContainer,ref:x}),J.createElement(Gs,{communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:X=>{v({data:{text:X.text},mentionees:X.mentionees,metadata:{mentioned:X.mentioned}});},maxLines:5,mentionContainer:x==null?void 0:x.current})),J.createElement("div",{className:Be.postComment__edit__buttonWrap},J.createElement(Rn,{componentId:"edit_comment_component",className:so(Be.postComment__edit__button,Be.postComment__edit__cancelButton),onPress:()=>{C(!1);}}),J.createElement(aa,{className:so(Be.postComment__edit__button,Be.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):J.createElement("div",{className:Be.postComment},J.createElement(Jo,{pageId:e,componentId:t,userId:o.userId}),J.createElement("div",{className:Be.postComment__details},J.createElement("div",{className:Be.postComment__content},J.createElement(A.BodyBold,{"data-qa-anchor":`${e}/${t}/username`,className:Be.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:Be.postComment__secondRow},i&&J.createElement("div",{className:Be.postComment__secondRow__leftPane},J.createElement(A.Caption,{className:Be.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:Be.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:Be.postComment__secondRow__reply},"Reply")),J.createElement(kQ,{className:Be.postComment__secondRow__actionButton,onClick:()=>u(!0)})),o.reactionsCount>0&&J.createElement("div",{className:Be.postComment__secondRow__rightPane},J.createElement(A.Caption,null,fg(o.reactionsCount)),J.createElement(EQ,{className:Be.postComment__secondRow__rightPane__like}))),k>0&&!f&&J.createElement("div",{"data-qa-anchor":`${e}/${t}/view_reply_button`,className:Be.postComment__viewReply_button,onClick:()=>g(!0)},J.createElement(uc,{className:Be.postComment__viewReply_icon}),J.createElement(A.CaptionBold,{className:Be.postComment__viewReply_text},"View ",k," ",k>1?"replies":"reply")),f&&J.createElement(Ew,{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(yc,{pageId:e,componentId:t,comment:o,handleEditComment:D,handleDeleteComment:q,onCloseBottomSheet:w})))};var mt={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 BQ=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}))},Vw=BQ;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(Vw,{className:$l.badge__icon}),J.createElement("div",{className:$l.badge__text},"Sponsored")));var FQ=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=FQ;var DQ=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=DQ;var Bt={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 bu=({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:Bt.drawer__overlay}),J.createElement(Drawer.Content,{className:Bt.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},J.createElement("div",{className:Bt.drawer__innerContent},J.createElement("div",{className:Bt.drawer__placeholder}),J.createElement(Drawer.Title,{className:Bt.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:Bt.drawer__content__data},J.createElement(A.BodyBold,{className:Bt.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:Bt.drawer__content__data__text},J.createElement(xr,{className:Bt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Bt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:Bt.drawer__content__data},J.createElement(A.BodyBold,{className:Bt.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:Bt.drawer__content__data__text},J.createElement(xr,{className:Bt.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:Bt.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),J.createElement("div",{className:Bt.drawer__content__emptySpace})))))};var Hw=({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:mt.commentAd,style:t},J.createElement(U,{className:mt.infoIcon__button,onPress:()=>a(!0)},J.createElement(xr,{className:mt.infoIcon})),J.createElement("div",{className:mt.commentAd__container},J.createElement("div",{className:mt.commentAd__avatar},J.createElement(ur,{avatarUrl:o,defaultImage:J.createElement(ql,null)})),J.createElement("div",{className:mt.commentAd__details},J.createElement("div",{className:mt.commentAd__content},J.createElement(A.BodyBold,{className:mt.commentAd__content__advertiserName__container},J.createElement("div",{className:mt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),J.createElement(Zl,null),J.createElement("div",null,J.createElement(A.Body,{className:mt.commentAd__content__text},e.body)),J.createElement("div",{className:mt.commentAd__adCard,onClick:s},J.createElement("div",{className:mt.commentAd__adCard__imageContainer},J.createElement("img",{className:mt.commentAd__adCard__image,src:r})),J.createElement("div",{className:mt.commentAd__adCard__detail},J.createElement("div",{className:mt.commentAd__adCard__textContainer},J.createElement(A.Caption,{renderer:({typoClassName:c})=>J.createElement("div",{className:so(c,mt.commentAd__adCard__description)},e.description)}),J.createElement(A.BodyBold,{className:mt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?J.createElement(U,{className:mt.commentAd__adCard__button,onPress:s},J.createElement(A.CaptionBold,{className:mt.commentAd__adCard__button__text},e.callToAction)):null))))),J.createElement(bu,{ad:e,isOpen:i,onOpenChange:c=>a(c)}))};var Uw=({pageId:e="*",ad:t})=>{var c,p,u,f,g,h;let o="comment_tray_component",{themeStyles:r}=pe({pageId:e,componentId:o}),i=lt({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=lt({fileId:(g=t.image1_1)==null?void 0:g.fileId})||((h=t.image1_1)==null?void 0:h.fileUrl)||"";return J.createElement(Hw,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:C=>{window==null||window.open(C,"_blank");}})};var bc={commentList__container:"ts",commentList__viewAllComments__button:"is",commentList__container_intersection:"ss",noCommentsContainer:"cs"};function ma({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return ti({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}function Ic({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return ti({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var KQ=e=>"adId"in e,wc=({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}=pe({componentId:l,pageId:o}),u=useRef(null),[f,g]=useState(null),{items:h,loadMore:C,hasMore:y,isLoading:v}=wl({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:x=>x.commentId,shouldCall:!0});return Xo({node:f,options:{threshold:.8},onIntersect:()=>{y&&v===!1&&C();}}),Ic({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),ma({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!v&&h.length===0?J.createElement("div",{className:bc.noCommentsContainer},J.createElement(A.Body,null,"No comments yet")):J.createElement("div",{className:bc.commentList__container,style:c,ref:u,"data-qa-anchor":p},h.map(x=>KQ(x)?J.createElement(Uw,{key:x.adId,ad:x}):J.createElement(Fw,{pageId:o,key:x.commentId,comment:x,onClickReply:_=>r==null?void 0:r(_),componentId:l,community:a,shouldAllowInteraction:s})),v&&J.createElement(gc,{pageId:o,componentId:l,numberOfSkeletons:3}),J.createElement("div",{ref:x=>g(x),className:bc.commentList__container_intersection}))};var Iu={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}=pe({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:Iu.commentTrayContainer},J.createElement("div",{className:Iu.commentListContainer},J.createElement(wc,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),J.createElement(cc,{referenceId:o,referenceType:t,onCancelReply:f,replyTo:c,shouldAllowCreation:i}))};var wu={doneButton:"vs",doneButton_text:"xs"};function _u(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:`${wu.doneButton} ${o||""}`,"data-qa-anchor":s},r),J.createElement(A.Body,{className:wu.doneButton_text},l.done_button_text))}var Ke={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 jw=30,Pu=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var O,ee,X;let a="hyper_link_config_component",{confirm:s}=xt(),{accessibilityId:l,config:c,isExcluded:p,themeStyles:u}=pe({pageId:e,componentId:a});if(p)return null;let{formatMessage:f}=useIntl(),{client:g}=Ve(),[h,C]=useState(!1),y="asc-story-hyperlink-form",v=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 Q=new URL(`https://${L}`);return ["http:","https:"].includes(Q.protocol)}catch(Q){return !1}return !1}},{message:f({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(L=>M(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=>M(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:x,watch:_,register:P,handleSubmit:b,formState:{errors:w},reset:T}=useForm({resolver:zodResolver(v)}),{url:k,customText:N}=_();useEffect(()=>{C(k!==""||N!=="");},[k,N]);let D=L=>{n(L),r();},q=()=>{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:q});},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:Ke.bottomSheet,style:u},J.createElement("div",{className:Ke.headerContainer},J.createElement(Rn,{pageId:e,componentId:a,onPress:G}),J.createElement(A.Title,null,f({id:"storyCreation.hyperlink.bottomSheet.title"})),J.createElement(_u,{type:"submit",pageId:e,componentId:a,form:y})),J.createElement("div",{className:Ke.divider}),J.createElement("div",{className:Ke.hyperlinkFormContainer},J.createElement("form",{onSubmit:b(D),id:y,className:Ke.form},J.createElement("div",{className:Ke.inputContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:so(Ke.label,Ke.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:so(Ke.input,(w==null?void 0:w.url)&&Ke.hasError)},P("url",{onChange:()=>x("url")}))),(w==null?void 0:w.url)&&J.createElement("span",{className:Ke.errorText},(O=w==null?void 0:w.url)==null?void 0:O.message)),J.createElement("div",{className:Ke.inputContainer},J.createElement("div",{className:Ke.labelContainer},J.createElement(A.Title,null,J.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:Ke.label},f({id:"storyCreation.hyperlink.form.linkTextLabel"}))),J.createElement("div",{className:Ke.characterCount},((ee=_("customText"))==null?void 0:ee.length)||0," / ",jw)),J.createElement("input",S(d({id:"asc-uikit-hyperlink-input-link-text",placeholder:f({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:so(Ke.input,(w==null?void 0:w.customText)&&Ke.hasError)},P("customText")),{maxLength:jw})),(w==null?void 0:w.customText)&&J.createElement("span",{className:Ke.errorText},(X=w==null?void 0:w.customText)==null?void 0:X.message),J.createElement(A.Caption,null,J.createElement("label",{className:Ke.description},f({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&J.createElement("div",{className:Ke.removeLinkContainer},J.createElement(Sd,{variant:"secondary",onClick:$,className:so(Ke.removeLinkButton)},J.createElement(sa,{className:Ke.removeIcon}),f({id:"storyCreation.hyperlink.form.removeButton"})))))};var Gw=e=>{let r=Me({fetcher:ReactionRepository.getReactions,params:e,shouldCall:()=>!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=I(r,["items"]);return d({reactions:t},o)};var mK=createContext([]),Pc=()=>({config:useContext(mK)});var Sc=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var Tc=({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 cK=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"}))},Nc=cK;var we={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 $w=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=Ve(),{config:s}=Pc(),l=useMemo(()=>s.map(({name:c})=>c),[s]);return !i||!e?null:J.createElement("div",{className:we.infiniteScrollContainer},J.createElement(iH,{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:we.userList},e.map(c=>{var p,u,f,g;return J.createElement(Fragment,{key:c.reactionId},J.createElement("div",{className:we.userItem},J.createElement("div",{className:we.userDetailsContainer},J.createElement("div",{className:we.userDetailsProfile},J.createElement("div",{className:we.avatar},J.createElement(ur,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=c.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:J.createElement(ac,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:we.removeBtn},"Click to remove reaction"))))),J.createElement("div",{className:we.userDetailsReaction},l.includes(c.reactionName)?J.createElement(Tc,{reactionConfigItem:s.find(({name:h})=>h===c.reactionName),className:we.reactionIcon}):J.createElement(Nc,{className:we.reactionIcon})))))}))))};var yK=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"})),qw=yK;var Yw=()=>J.createElement("div",{className:we.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:we.reactionState},J.createElement(qw,null),J.createElement(A.Body,null,J.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var CK=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"})),Qw=CK;var Jw=()=>J.createElement("div",{className:we.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},J.createElement("div",{className:we.reactionState},J.createElement(Qw,null),J.createElement("div",{className:we.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 vK=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"})),Xw=vK;var Nu=()=>J.createElement("div",{className:so(we.reactionCustomStateContainer,we.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>J.createElement(Xw,{key:`loading_${t}`})));var bK=(e,t)=>({addReaction:n=>M(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>M(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),t_=bK;var SK=(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}},o_=SK;var Ec="unknown",kK=(e,t,o)=>t==="All"?e:t===Ec?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),EK=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?J.createElement(Nu,null):i?J.createElement(Yw,null):e.length===0?r?J.createElement(Nu,null):J.createElement(Jw,null):J.createElement($w,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),Eu=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=pe({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:c}=Gw({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=o_(o,t),[f,g]=useState("All"),h=useRef(null),{config:C}=Pc(),{removeReaction:y}=t_(o,t),v=w=>{g(w);};if(i==null||!C)return null;let x=useMemo(()=>C.map(w=>w.name),[C]),_=useMemo(()=>Object.keys(p).filter(w=>!x.includes(w)),[p]),P=useMemo(()=>_.reduce((w,T)=>w+p[T],0),[p]),b=useMemo(()=>kK(i,f,x),[i,f]);return J.createElement("div",{className:we.reactionListContainer,"data-qa-anchor":`${n}_header`},J.createElement("div",{className:we.tabListContainer},J.createElement("div",{className:we.tabList,"data-qa-anchor":`${n}_tab`},J.createElement("div",{"data-active":f==="All",className:we.tabItem,onClick:()=>v("All")},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},"All ",Sc(u)))),C.map(w=>{let{name:T,image:k}=w;return p[T]?J.createElement("div",{key:T,"data-active":f===T,className:we.tabItem,onClick:()=>v(T)},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},J.createElement(Tc,{className:we.reactionItem,reactionConfigItem:w}),Sc(p[T])))):null}),_.length>0&&J.createElement("div",{key:Ec,"data-active":f===Ec,className:we.tabItem,onClick:()=>v(Ec)},J.createElement(A.Body,null,J.createElement("span",{className:we.reactionEmoji},J.createElement(Nc,{className:we.reactionIcon}),Sc(P)))))),J.createElement("div",{ref:h,className:we.reactionPanel},J.createElement(EK,{currentRef:h.current,hasMore:l,loadMore:c,error:a,isLoading:s,filteredReactions:b,removeReaction:y})))};var LK=J.createContext(void 0);var Rt=()=>{let e=useContext(LK);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var Ac=o=>{var r=o,{pageId:e="*"}=r,t=I(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=Rt(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Ae(),{setFile:l}=Wo();return (()=>{switch(t.type){case"communityFeed":return J.createElement(Md,{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(kd,{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 Bc={communityPrivateBadge:"en",communityPrivateBadge__iconSvg:"rn"};var GK=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(se,{defaultIcon:()=>J.createElement(GK,{style:l,className:so(Bc.communityPrivateBadge,Bc.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Bc.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var l_={communityDisplayName:"an"};function ca({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:l_.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var Lc={communityOfficialBadge:"on",communityOfficialBadge__iconSvg:"tn"};var WK=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(se,{defaultIcon:()=>J.createElement(WK,{style:l,className:so(Lc.communityOfficialBadge,Lc.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>J.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:Lc.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 h_={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=nt(t),r=nt(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===t2.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:h_.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 fJ=Pm`
|
|
3890
3890
|
from {
|
|
3891
3891
|
transform: rotate(0deg);
|
|
3892
3892
|
}
|
|
@@ -3894,38 +3894,38 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3894
3894
|
transform: rotate(360deg);
|
|
3895
3895
|
}
|
|
3896
3896
|
`;m.svg`
|
|
3897
|
-
animation: ${
|
|
3898
|
-
`;function Jl({queryParams:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=I(n,["items"]);return d({communities:o},r)}var w_={title:"lm"};function pa({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:so(w_.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 Hc=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(Hc||{});createContext({activeTab:"community_feed",setActiveTab:()=>{}});var
|
|
3897
|
+
animation: ${fJ} 2s linear infinite;
|
|
3898
|
+
`;function Jl({queryParams:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=I(n,["items"]);return d({communities:o},r)}var w_={title:"lm"};function pa({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:so(w_.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 Hc=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(Hc||{});createContext({activeTab:"community_feed",setActiveTab:()=>{}});var fX=Pm`
|
|
3899
3899
|
from {
|
|
3900
3900
|
transform: rotate(0deg);
|
|
3901
3901
|
}
|
|
3902
3902
|
to {
|
|
3903
3903
|
transform: rotate(360deg);
|
|
3904
3904
|
}
|
|
3905
|
-
`,
|
|
3906
|
-
animation: ${
|
|
3907
|
-
`,fX=e=>J.createElement(uX,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"})),T_=fX;var Gu={storyCommentButton:"m0",storyCommentIcon:"g0"};var hX=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"})),N_=({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:so(Gu.storyCommentButton)},J.createElement(se,{defaultIconName:l.icon,configIconName:c.icon,imgIcon:()=>J.createElement("img",{src:c.icon,alt:p,className:so(n),style:u}),defaultIcon:()=>J.createElement("div",{className:so(Gu.storyCommentIcon)},J.createElement(hX,null),J.createElement(A.BodyBold,null,fg(r)))}))};var Zu={storyReactionButton:"h0",storyReactionIcon:"p0"};var xX=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"})),bX=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"})))),k_=({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:so(Zu.storyReactionButton),onPress:a,style:f},J.createElement(se,{defaultIcon:()=>J.createElement("div",{className:so(Zu.storyReactionIcon,n)},g?J.createElement(bX,null):J.createElement(xX,null),J.createElement(A.BodyBold,null,fg(t))),imgIcon:()=>J.createElement("img",{src:p.icon,alt:u,className:so(i)})}))};var ii={viewStoryCompostBarContainer:"f0",viewStoryFailedCompostBarContainer:"u0",viewStoryFailedCompostBarWrapper:"b0",viewStoryUploadingWrapper:"v0",viewStoryCompostBarViewIconContainer:"x0",viewStoryCompostBarEngagementContainer:"w0",viewStoryCommentButton:"y0",viewStoryCommentIcon:"k0"};var wX=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:c,myReactions:p})=>{let u=Ut(),f=()=>M(void 0,null,function*(){try{if(!c){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,lo):yield ReactionRepository.addReaction("story",a,lo);}catch(g){console.error("Can't toggle like",g);}});return t==="syncing"?J.createElement("div",{className:ii.viewStoryCompostBarContainer},J.createElement("div",{className:ii.viewStoryUploadingWrapper},J.createElement(T_,{width:20,height:20}),"Uploading...")):t==="error"?J.createElement("div",{className:ii.viewStoryFailedCompostBarContainer},J.createElement("div",{className:ii.viewStoryFailedCompostBarWrapper},J.createElement(L0,null),J.createElement("span",null,"Failed to upload")),J.createElement(vn,null)):J.createElement("div",{className:ii.viewStoryCompostBarContainer},J.createElement("div",null,l&&J.createElement("div",{className:ii.viewStoryCompostBarViewIconContainer},J.createElement(Rd,{reach:o}))),J.createElement("div",{className:ii.viewStoryCompostBarEngagementContainer},J.createElement(N_,{pageId:e,commentsCount:r,onPress:s}),J.createElement(k_,{pageId:e,myReactions:p,reactionsCount:n,onPress:f})))},Uc=wX;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 SX=({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(rg,{lines:1},J.createElement("div",{className:Bo.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&J.createElement(J5,{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(ec,{pageId:"story_page",onPress:l}),J.createElement(yr,{defaultClassName:so(Bo.closeButton),pageId:"story_page",onPress:c}))),zc=SX;function Xl({queryParams:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.Membership.getMembers,params:S(d({},e),{includeDeleted:!1}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=I(n,["items"]);return d({members:o},r)}var Lt={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 jc={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 v=[...y];return v[r]=0,v}),g(r);},[r,f]),useEffect(()=>{let y;return i||(y=setInterval(()=>{u(v=>{let x=[...v];return x[r]<100&&(x[r]+=100/o*100,x[r]>=100&&(x[r]=100,a())),x});},100)),()=>{y&&clearInterval(y);}},[o,r,i,a]),c?null:J.createElement("div",{className:so(jc.progressBarContainer),style:{backgroundColor:h}},p.map((y,v)=>J.createElement("div",{key:v,className:so(jc.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},J.createElement("div",{className:so(jc.progressBar),style:{width:`${v<r?100:v===r?y:0}%`,backgroundColor:C}}))))});var FX=({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 Fe,Ze,kt,Do;let{formatMessage:h}=useIntl(),[C,y]=useState(!1),[v,x]=useState(!1),[_,P]=useState(!1),[b,w]=useState(!1),{loader:T}=u,{client:k}=Ve(),[N,D]=useState(""),q=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:W,community:Z,myReactions:ye,data:z,items:E}=l,{members:F}=Xl({queryParams:{communityId:Z==null?void 0:Z.communityId},shouldCall:!!(Z!=null&&Z.communityId)}),me=(F==null?void 0:F.find(ae=>ae.userId===(k==null?void 0:k.userId)))!=null,{user:de}=ho({userId:k==null?void 0:k.userId}),be=(Z==null?void 0:Z.isOfficial)||!1,ht=(W==null?void 0:W.userId)===(de==null?void 0:de.userId),wr=Id(de==null?void 0:de.roles),_r=bd(de==null?void 0:de.roles),ro=wr||_r||qn(k,Z==null?void 0:Z.communityId),l1=useMemo(()=>J.createElement("div",{"data-qa-anchor":"community_display_name"},Z==null?void 0:Z.displayName),[Z==null?void 0:Z.displayName]),m1=useMemo(()=>H&&(W!=null&&W.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},wd(H))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},W==null?void 0:W.displayName)):"",[H,W==null?void 0:W.displayName]),Zr="asc-uikit-stories-viewer",li=useCallback(()=>{if(q.current&&q.current.complete){let Wt=new LX().getPalette(q.current,2);if(Wt){let Mr=`linear-gradient(to top, rgb(${Wt[0].join(",")}), rgb(${Wt[1].join(",")})`;D(Mr);}}},[]),mi=useCallback(()=>{y(!0),b&&w(!1),p("play",!0),li();},[p,b,li]),d1=()=>{p("play",!0),w(!1);},fa=()=>{p("pause",!0),w(!0);},ga=()=>{p("pause",!0),x(!0);},di=()=>{p("play",!0),x(!1);},fn=()=>{p("pause",!0),P(!0);},ci=()=>{p("play",!0),P(!1);},pi=()=>{f();},ui=()=>{i();};return useEffect(()=>{q.current&&q.current.complete&&li();},[]),useEffect(()=>{if(t.current){let ae=()=>{p("pause",!0),w(!0);},Wt=()=>{p("play",!0),w(!1);};return t.current.addEventListener("click",ae),t.current.addEventListener("cancel",Wt),()=>{t.current&&(t.current.removeEventListener("cancel",Wt),t.current.removeEventListener("click",ae));}}},[t]),useEffect(()=>{var ae,Wt;if(s){let Mr=()=>{p("pause",!0),w(!0);},gn=()=>{p("play",!0),w(!1);};return (ae=s.current)==null||ae.addEventListener("dragstart",Mr),(Wt=s.current)==null||Wt.addEventListener("dragend",gn),()=>{var P4,S4;(P4=s.current)==null||P4.removeEventListener("dragstart",Mr),(S4=s.current)==null||S4.removeEventListener("dragend",gn);}}},[s]),J.createElement("div",{className:Lt.rendererContainer,style:{background:N}},J.createElement(Rs,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:b||v||_,onComplete:ui}),J.createElement(zc,{community:Z,heading:l1,subheading:m1,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:ro,isOfficial:be,isPaused:b,onPlay:d1,onPause:fa,onAction:ga,onClickCommunity:()=>g==null?void 0:g(),onClose:pi,addStoryButton:o}),J.createElement("div",{className:so(Lt.storyImageContainer,{[Lt.imageFit]:z.imageDisplayMode==="fit",[Lt.imageFill]:z.imageDisplayMode==="fill"})},J.createElement("img",{ref:q,className:so(Lt.storyImage,{[Lt.imageFit]:z.imageDisplayMode==="fit",[Lt.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:Lt.loadingOverlay},T||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:Zr,isOpen:v,onClose:di,mountPoint:document.getElementById(Zr),detent:"content-height"},e==null?void 0:e.map(ae=>J.createElement(U,{key:ae.name,className:Lt.actionButton,onPress:()=>ae==null?void 0:ae.action()},(ae==null?void 0:ae.icon)&&ae.icon,J.createElement(A.BodyBold,null,ae.name)))),J.createElement(Co,{rootId:Zr,isOpen:_,onClose:ci,mountPoint:document.getElementById(Zr),detent:"full-height",headerTitle:h({id:"storyViewer.commentSheet.title"})},J.createElement(Qs,{referenceId:O,referenceType:"story",community:Z,shouldAllowCreation:Z==null?void 0:Z.allowCommentInStory,shouldAllowInteraction:me})),((Ze=(Fe=E==null?void 0:E[0])==null?void 0:Fe.data)==null?void 0:Ze.url)&&J.createElement("div",{className:Lt.hyperLinkContainer},J.createElement(Xn,{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(rg,{lines:1},J.createElement("span",null,((Do=(kt=E[0])==null?void 0:kt.data)==null?void 0:Do.customText)||E[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Uc,{pageId:a,storyId:O,syncState:ee,reach:X,commentsCount:L,reactionsCount:G,isLiked:$,myReactions:ye,onClickComment:fn,showImpression:ht||qn(k,Z==null?void 0:Z.communityId),isMember:me}))},DX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},V_={renderer:FX,tester:DX};var HX=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},UX=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}},zX=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}},jX=({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 ga,di,fn,ci,pi,ui,Fe,Ze,kt,Do;let[h,C]=useState(!1),{loader:y}=p,{client:v}=Ve(),{user:x}=ho({userId:v==null?void 0:v.userId}),_=useRef(null),{muted:P,mute:b,unmute:w}=HX(),{isPaused:T,play:k,pause:N}=UX(c),{isBottomSheetOpen:D,isOpenCommentSheet:q,openBottomSheet:$,closeBottomSheet:G,openCommentSheet:O,closeCommentSheet:ee}=zX(c),{storyId:X,syncState:L,reach:H,commentsCount:W,createdAt:Z,creator:ye,community:z,myReactions:E,data:F,items:K}=l,me=(ga=l==null?void 0:l.myReactions)==null?void 0:ga.includes(vr),de=(l==null?void 0:l.reactions[vr])||0,{members:be}=Xl({queryParams:{communityId:z==null?void 0:z.communityId},shouldCall:!!(z!=null&&z.communityId)}),ht=be==null?void 0:be.some(ae=>ae.userId===(v==null?void 0:v.userId)),wr=(z==null?void 0:z.isOfficial)||!1,_r=(ye==null?void 0:ye.userId)===(x==null?void 0:x.userId),ro=Id(x==null?void 0:x.roles),l1=bd(x==null?void 0:x.roles),m1=ro||l1||qn(v,z==null?void 0:z.communityId),[Zr,li]=useState(!0),mi=useCallback(()=>{var ae;u("UPDATE_VIDEO_DURATION",{duration:(ae=l==null?void 0:l.videoData)==null?void 0:ae.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||D||q?(_.current.pause(),c("pause",!0)):(mi(),_.current.play(),c("play",!0)));},[T,D,q,c]),useEffect(()=>{if(o.current){let ae=()=>{c("pause",!0),N();},Wt=()=>{c("play",!0),k();};return o.current.addEventListener("click",ae),o.current.addEventListener("cancel",Wt),()=>{var Mr,gn;(Mr=o.current)==null||Mr.removeEventListener("click",ae),(gn=o.current)==null||gn.removeEventListener("cancel",Wt);}}},[c,N,k]),useEffect(()=>{if(s!=null&&s.current){let ae=()=>{c("pause",!0),N();},Wt=()=>{c("play",!0),k();};return s.current.addEventListener("dragstart",ae),s.current.addEventListener("dragend",Wt),()=>{var Mr,gn;(Mr=s.current)==null||Mr.removeEventListener("dragstart",ae),(gn=s.current)==null||gn.removeEventListener("dragend",Wt);}}},[c,N,k,s]);let fa=Math.round(((fn=l==null?void 0:l.videoData)==null?void 0:fn.attributes.metadata.video.duration)*1e3);return J.createElement("div",{className:so(Lt.rendererContainer)},J.createElement(Rs,{pageId:a,duration:fa,currentIndex:r,storiesCount:n,isPaused:T||D||q,onComplete:d1}),J.createElement(rc,{pageId:"story_page",componentId:"*",isMuted:P,onPress:P?w:b}),J.createElement(zc,{community:z,heading:J.createElement("div",{"data-qa-anchor":"community_display_name"},z==null?void 0:z.displayName),subheading:Z&&(ye!=null&&ye.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},wd(Z))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},ye==null?void 0:ye.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:m1,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:so(Lt.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:P,autoPlay:!0}),(!h||Zr)&&J.createElement("div",{className:so(Lt.loadingOverlay)},y||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:D,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(ae=>J.createElement(U,{key:ae.name,className:so(Lt.actionButton),onPress:ae==null?void 0:ae.action},ae==null?void 0:ae.icon,J.createElement(A.BodyBold,null,ae.name)))),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:q,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:ht})),((Ze=(Fe=K==null?void 0:K[0])==null?void 0:Fe.data)==null?void 0:Ze.url)&&J.createElement("div",{className:so(Lt.hyperLinkContainer)},J.createElement(Xn,{href:K[0].data.url.startsWith("http")?K[0].data.url:`https://${K[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(rg,{lines:1},J.createElement("span",null,((Do=(kt=K[0])==null?void 0:kt.data)==null?void 0:Do.customText)||K[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Uc,{pageId:a,storyId:X,syncState:L,reach:H,commentsCount:W,reactionsCount:de,isLiked:me,onClickComment:O,myReactions:E,showImpression:_r||qn(v,z==null?void 0:z.communityId),isMember:ht}))},GX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},O_={renderer:jX,tester:GX};var ZX=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),J.createElement("div",{style:U_.storyContent},J.createElement("p",{style:U_.text},"This story could not be loaded."))),U_={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},qX=()=>({condition:!0,priority:1}),z_={renderer:ZX,tester:qX};var QX=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return J.createElement(t,d({},e))},KX=e=>({condition:!!e.content,priority:2}),j_={renderer:QX,tester:KX};var ft={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 G_=({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:ft.drawer__container},J.createElement("div",{className:ft.drawer__innerContainer},J.createElement(Drawer.Overlay,{className:ft.drawer__overlay}),J.createElement(Drawer.Content,{className:ft.drawer__content},J.createElement("div",{className:ft.drawer__innerContent},J.createElement("div",{className:ft.drawer__placeholder}),J.createElement(Drawer.Title,{className:ft.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:ft.drawer__content__data},J.createElement(A.BodyBold,{className:ft.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:ft.drawer__content__data__text},J.createElement(xr,{className:ft.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:ft.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:ft.drawer__content__data},J.createElement(A.BodyBold,{className:ft.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:ft.drawer__content__data__text},J.createElement(xr,{className:ft.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:ft.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),J.createElement("div",{className:ft.drawer__content__emptySpace}))))))};var gt={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 q_=({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),[v,x]=useState(!1),_=()=>{x(!0),g==null||g();},P=()=>{x(!1),h==null||h();},b=useRef(null),w=useRef(null),T=()=>{y(!0),f==null||f();};return J.createElement("div",{className:gt.rendererContainer,ref:w},J.createElement("div",{className:gt.storyAd__main},J.createElement(Rs,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),J.createElement("div",{className:gt.storyAd__topBar},J.createElement("div",{className:gt.storyAd__topBar__left},J.createElement("div",{className:gt.storyAd__topBar__avatar},J.createElement(ur,{defaultImage:J.createElement(ql,null),avatarUrl:o})),J.createElement("div",{className:gt.storyAd__topBar__text},J.createElement(A.BodyBold,{className:gt.storyAd__topBar__advertiserName},(k=t.advertiser)==null?void 0:k.name),J.createElement(Zl,null))),J.createElement("div",{className:gt.storyAd__topBar__right},i?J.createElement(Vo,{className:gt.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):J.createElement(f1,{className:gt.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>c==null?void 0:c()}),J.createElement(yr,{defaultClassName:so(gt.storyAd__closeButton),pageId:e,onPress:u}))),J.createElement("div",{className:so(gt.storyImageContainer)},J.createElement("img",{ref:b,className:so(gt.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:T,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:gt.loadingOverlay},s()),t.callToActionUrl&&J.createElement("div",{className:gt.hyperLinkContainer},J.createElement("a",{className:gt.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),J.createElement(U,{className:gt.infoIcon__button,onPress:()=>{_();}},J.createElement(xr,{className:gt.infoIcon}))),J.createElement(G_,{ad:t,isOpen:v,targetRef:w,onOpenChange:N=>!N&&P()}))};var rR=({story:e,action:t,config:o,onClose:r})=>{var T,k,N,D,q,$;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=lt({fileId:(k=(T=s==null?void 0:s.advertiser)==null?void 0:T.avatar)==null?void 0:k.fileId})||((D=(N=s==null?void 0:s.advertiser)==null?void 0:N.avatar)==null?void 0:D.fileUrl)||"",x=lt({fileId:(q=s==null?void 0:s.image9_16)==null?void 0:q.fileId})||(($=s==null?void 0:s.image9_16)==null?void 0:$.fileUrl)||"",_=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),P=()=>{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(q_,{pageId:u,ad:s,adImageUrl:x,avatarUrl:y,currentIndex:l,isPaused:n,storiesCount:c,renderLoader:()=>a,onComplete:w,onPauseClick:h,onPlayClick:g,onClose:r,onImageLoaded:_,onAdvertisementInfoOpen:P,onAdvertisementInfoClose:b}):null},nR=e=>({condition:!!e.ad,priority:2}),Y_={renderer:rR,tester:nR};var t1=[V_,O_,Y_,j_,z_];var Ju={storyButton:"zr",desktopOnly:"Ir"};var sR=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:so(Ju.storyButton,Ju.desktopOnly),onClick:o,style:a},J.createElement(sR,null))};var Xu={storyButton:"Xr",desktopOnly:"Yr"};var dR=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:so(Xu.storyButton,Xu.desktopOnly),onClick:o,style:a},J.createElement(dR,null))};var oo={overlayLeft:"Rr",overlayRight:"Ar",viewStoryContent:"Lf",viewStoryOverlay:"Tf",hiddenInput:"Df",viewStoryContainer:"Gf",storyWrapper:"Jf",deleteIcon:"Kf",arrowButton:"Nf"};var CR=7e3,zr=e=>!!(e!=null&&e.storyId),qc=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var z;let{accessibilityId:s}=zt({pageId:e}),{confirm:l}=xt(),c=Ut(),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,F)=>(E.find(me=>zr(me)&&zr(F)?me.storyId===F.storyId:!1)||E.push(F),E),[]),v=useMemo(()=>t1.map(({renderer:E,tester:F})=>({renderer:me=>E(S(d({},me),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:F})),[t1,r,i,t]),x=useRef(null),{client:_,currentUserId:P}=Ve(),[b,w]=useState(0),{file:T,setFile:k}=Wo(),N=y[b],D=zr(N)?((z=N==null?void 0:N.creator)==null?void 0:z.userId)===P:!1,q=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:()=>M(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,F,K,me)=>M(void 0,null,function*(){var de;try{let be=new FormData;be.append("files",E),k(null),E!=null&&E.type.includes("image")&&P?yield StoryRepository.createImageStory("user",P,be,K,F,me):P&&(yield StoryRepository.createVideoStory("user",P,be,K,me)),c.success({content:"Successfully shared story"});}catch(be){be instanceof Error&&c.info({content:(de=be.message)!=null?de:"Failed to share story"});}}),[P,c,k]),L=()=>{k(null);},H=J.createElement(FileTrigger,{ref:x,onSelect:E=>{let F=Array.from(E);k(F[0]);}},J.createElement(Yn,{pageId:e})),W=()=>{if(b===y.length-1){r(t);return}w(E=>E+1);},Z=y==null?void 0:y.map(E=>{var F,K,me;if(zr(E)){let de=(E==null?void 0:E.dataType)==="image",be=de?(F=E==null?void 0:E.imageData)==null?void 0:F.fileUrl:(me=(K=E==null?void 0:E.videoData)==null?void 0:K.videoUrl)==null?void 0:me["720p"];return {story:E,url:be,type:de?"image":"video",actions:[D||q?{name:"Delete",action:()=>ee(E==null?void 0:E.storyId),icon:J.createElement(F0,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(qo),onCreateStory:X,discardStory:L,addStoryButton:H,fileInputRef:x,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:W,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:W}}),ye="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(F=>F==null?void 0:F.isSeen))return;let E=y.findIndex(F=>zr(F)?!(F!=null&&F.isSeen):!1);E!==-1&&w(E);},[]),ma({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:so(oo.storyWrapper)},J.createElement(om,{onClick:G}),J.createElement(motion.div,{id:ye,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,F)=>{F.point.y<F.point.y-F.offset.y&&p.set(0);},onDragEnd:(E,F)=>{f.current.dispatchEvent(new Event("dragend")),F.offset.y>100?n(t):p.set(0);},className:so(oo.viewStoryContainer)},J.createElement("div",{className:so(oo.viewStoryContent)},J.createElement("div",{className:so(oo.overlayLeft),onClick:G}),J.createElement("div",{className:so(oo.overlayRight),onClick:$}),J.createElement("div",{className:so(oo.viewStoryOverlay)}),J.createElement(fR,{key:y==null?void 0:y.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:Z,renderers:v,defaultInterval:CR,onStoryStart:()=>zr(N)&&(N==null?void 0:N.analytics.markAsSeen()),onStoryEnd:$,onNext:$,onPrevious:G,onAllStoriesEnd:$}))),J.createElement(rm,{onClick:$}))};var MR=7e3,ai=e=>!!(e!=null&&e.storyId),K_=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var z;let{accessibilityId:c}=zt({pageId:e}),{confirm:p}=xt(),u=Ut(),{client:f,currentUserId:g}=Ve(),{file:h,setFile:C}=Wo(),y=useMotionValue(0),v=useRef(null),x=useRef(new EventTarget),[_,P]=useState(0),b=useRef(null),{stories:w}=Cs({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),T=useMemo(()=>t1.map(({renderer:E,tester:F})=>({renderer:me=>E(S(d({},me),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:F})),[t1,a,s,l,t]),k=w[_],N=ai(k)?((z=k==null?void 0:k.creator)==null?void 0:z.userId)===g:!1,D=ai(k)?I2(f,k==null?void 0:k.targetId):!1,q=()=>{if(_===0){let F=o.indexOf(t)-1;if(F>=0){let K=o[F];n(K);}else r==null||r();P(0);return}P(E=>E-1);},$=E=>{let F=_===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:()=>M(void 0,null,function*(){yield StoryRepository.softDeleteStory(E),u.success({content:"Story deleted"}),w.length===1?r==null||r():F?q():P(K=>K);})});},G=E=>{$(E);},O=(E,F,K,me)=>M(void 0,null,function*(){var de;try{let be=new FormData;if(be.append("files",E),C(null),E!=null&&E.type.includes("image")&&g){let{data:ht}=yield StoryRepository.createImageStory("user",g,be,K,F,me);ht&&u.success({content:"Successfully shared story"});}else if(g){let{data:ht}=yield StoryRepository.createVideoStory("user",g,be,K,me);ht&&u.success({content:"Successfully shared story"});}}catch(be){be instanceof Error&&u.info({content:(de=be.message)!=null?de:"Failed to share story"});}}),ee=()=>{C(null);},X=J.createElement(FileTrigger,{ref:b,onSelect:E=>{let F=Array.from(E);C(F[0]);}},J.createElement(Yn,{pageId:e})),L=()=>{_!==w.length-1&&P(E=>E+1);},H=w==null?void 0:w.map(E=>{var F,K,me;if(ai(E)){let de=(E==null?void 0:E.dataType)==="image",be=de?(F=E==null?void 0:E.imageData)==null?void 0:F.fileUrl:(me=(K=E==null?void 0:E.videoData)==null?void 0:K.videoUrl)==null?void 0:me["720p"];return {story:E,url:be,type:de?"image":"video",actions:[N||D?{name:"Delete",action:()=>G(E==null?void 0:E.storyId),icon:J.createElement(sa,{className:oo.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}}),W=()=>{if(_===(H==null?void 0:H.length)-1){let F=o.indexOf(t)+1;if(F<o.length){let K=o[F];n(K);}else r==null||r();P(0);return}P(E=>E+1);},Z="asc-uikit-stories-viewer";if(useEffect(()=>{let E=w[w.length-1];ai(E)&&(E==null?void 0:E.syncState)==="syncing"&&P(w.length-1),k&&ai(k)&&(k==null||k.analytics.markAsSeen());},[k,w]),useEffect(()=>{if(w.filter(ai).every(F=>F==null?void 0:F.isSeen))return;let E=w.findIndex(F=>ai(F)?!(F!=null&&F.isSeen):!1);E!==-1&&P(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]),ma({targetId:t,targetType:"community"}),!w||w.length===0)return null;let ye=()=>{if(H[_])return _;let E=H.length-1;return P(E),E};return J.createElement("div",{className:so(oo.storyWrapper),"data-qa-anchor":c},J.createElement(om,{onClick:q}),J.createElement(motion.div,{id:Z,ref:v,"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:()=>{x.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,F)=>{F.point.y<F.point.y-F.offset.y&&y.set(0);},onDragEnd:(E,F)=>{x.current.dispatchEvent(new Event("dragend")),F.offset.y>100?s(t):y.set(0);},className:so(oo.viewStoryContainer)},J.createElement("div",{className:so(oo.viewStoryContent)},J.createElement("div",{className:so(oo.overlayLeft),onClick:q}),J.createElement("div",{className:so(oo.overlayRight),onClick:W}),J.createElement("div",{className:so(oo.viewStoryOverlay)}),J.createElement(fR,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:ye(),stories:H,renderers:T,defaultInterval:MR,onStoryStart:()=>ai(k)&&(k==null?void 0:k.analytics.markAsSeen()),onStoryEnd:L,onNext:W,onPrevious:q,onAllStoriesEnd:W}))),J.createElement(rm,{onClick:W}))};var Yc=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=Nd({seenState:"smart",limit:10});return J.createElement(K_,{pageId:e,targetId:t,targetIds:l.map(c=>c.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var SR=({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(qc,{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(Yc,{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},X_=SR;var R_={roundedBackButton:"Of"};var NR=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"})),n4=({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:R_.roundedBackButton,onPress:n},J.createElement(se,{"data-qa-anchor":a,defaultIcon:()=>J.createElement(NR,{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 i4=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var X,L,H,W,Z,ye;let{page:a,onBack:s}=Ae(),l="create_story_page",{accessibilityId:c,themeStyles:p}=zt({pageId:l}),{file:u,setFile:f}=Wo(),{community:g}=qd(e),[h,C]=useState(!1),{confirm:y}=xt(),v=Ut(),[x,_]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),P=()=>{C(!1);},[b,w]=useState("fit"),[T,k]=useState([]),N=()=>{w(b==="fit"?"fill":"fit"),b==="fill"&&k([]);},D=(z,E,F,K)=>M(void 0,null,function*(){var me;if(z)try{let de=new FormData;de.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,de,F,E,K):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,de,F,K)),v.success({content:"Successfully shared story"});}catch(de){de instanceof Error&&v.info({content:(me=de.message)!=null?me:"Failed to share story"});}}),q=()=>{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=x[0])==null?void 0:z.data)!=null&&E.url){v.info({content:"Can\u2019t add more than one link to your story."});return}C(!0);},ee=useCallback(z=>M(void 0,null,function*(){let E=new Image;E.crossOrigin="Anonymous",E.src=z,E.onload=()=>{let K=new LX().getPalette(E,2);K&&k(K.map(me=>`rgb(${me.join(",")})`));};}),[]);return useEffect(()=>{M(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(n4,{pageId:l,onPress:q}),J.createElement("div",{className:br.topRightButtons},(o==null?void 0:o.type)==="image"&&J.createElement(Jd,{pageId:l,onPress:N}),J.createElement(Xd,{pageId:l,onPress:O})))),(o==null?void 0:o.type)==="image"?J.createElement("div",{className:br.mainContainer,style:{background:`linear-gradient(
|
|
3905
|
+
`,gX=m.svg`
|
|
3906
|
+
animation: ${fX} 2s linear infinite;
|
|
3907
|
+
`,yX=e=>J.createElement(gX,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"})),T_=yX;var Gu={storyCommentButton:"m0",storyCommentIcon:"g0"};var vX=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"})),N_=({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:so(Gu.storyCommentButton)},J.createElement(se,{defaultIconName:l.icon,configIconName:c.icon,imgIcon:()=>J.createElement("img",{src:c.icon,alt:p,className:so(n),style:u}),defaultIcon:()=>J.createElement("div",{className:so(Gu.storyCommentIcon)},J.createElement(vX,null),J.createElement(A.BodyBold,null,fg(r)))}))};var Zu={storyReactionButton:"h0",storyReactionIcon:"p0"};var IX=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"})),wX=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"})))),k_=({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:so(Zu.storyReactionButton),onPress:a,style:f},J.createElement(se,{defaultIcon:()=>J.createElement("div",{className:so(Zu.storyReactionIcon,n)},g?J.createElement(wX,null):J.createElement(IX,null),J.createElement(A.BodyBold,null,fg(t))),imgIcon:()=>J.createElement("img",{src:p.icon,alt:u,className:so(i)})}))};var ii={viewStoryCompostBarContainer:"f0",viewStoryFailedCompostBarContainer:"u0",viewStoryFailedCompostBarWrapper:"b0",viewStoryUploadingWrapper:"v0",viewStoryCompostBarViewIconContainer:"x0",viewStoryCompostBarEngagementContainer:"w0",viewStoryCommentButton:"y0",viewStoryCommentIcon:"k0"};var MX=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:c,myReactions:p})=>{let u=Ut(),f=()=>M(void 0,null,function*(){try{if(!c){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,lo):yield ReactionRepository.addReaction("story",a,lo);}catch(g){console.error("Can't toggle like",g);}});return t==="syncing"?J.createElement("div",{className:ii.viewStoryCompostBarContainer},J.createElement("div",{className:ii.viewStoryUploadingWrapper},J.createElement(T_,{width:20,height:20}),"Uploading...")):t==="error"?J.createElement("div",{className:ii.viewStoryFailedCompostBarContainer},J.createElement("div",{className:ii.viewStoryFailedCompostBarWrapper},J.createElement(L0,null),J.createElement("span",null,"Failed to upload")),J.createElement(vn,null)):J.createElement("div",{className:ii.viewStoryCompostBarContainer},J.createElement("div",null,l&&J.createElement("div",{className:ii.viewStoryCompostBarViewIconContainer},J.createElement(Rd,{reach:o}))),J.createElement("div",{className:ii.viewStoryCompostBarEngagementContainer},J.createElement(N_,{pageId:e,commentsCount:r,onPress:s}),J.createElement(k_,{pageId:e,myReactions:p,reactionsCount:n,onPress:f})))},Uc=MX;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 NX=({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(rg,{lines:1},J.createElement("div",{className:Bo.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&J.createElement(J5,{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(ec,{pageId:"story_page",onPress:l}),J.createElement(yr,{defaultClassName:so(Bo.closeButton),pageId:"story_page",onPress:c}))),zc=NX;function Xl({queryParams:e,shouldCall:t=!0}){let n=pt({fetcher:CommunityRepository.Membership.getMembers,params:S(d({},e),{includeDeleted:!1}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=I(n,["items"]);return d({members:o},r)}var Lt={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 jc={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 v=[...y];return v[r]=0,v}),g(r);},[r,f]),useEffect(()=>{let y;return i||(y=setInterval(()=>{u(v=>{let x=[...v];return x[r]<100&&(x[r]+=100/o*100,x[r]>=100&&(x[r]=100,a())),x});},100)),()=>{y&&clearInterval(y);}},[o,r,i,a]),c?null:J.createElement("div",{className:so(jc.progressBarContainer),style:{backgroundColor:h}},p.map((y,v)=>J.createElement("div",{key:v,className:so(jc.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},J.createElement("div",{className:so(jc.progressBar),style:{width:`${v<r?100:v===r?y:0}%`,backgroundColor:C}}))))});var VX=({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 Fe,Ze,kt,Do;let{formatMessage:h}=useIntl(),[C,y]=useState(!1),[v,x]=useState(!1),[_,P]=useState(!1),[b,w]=useState(!1),{loader:T}=u,{client:k}=Ve(),[N,D]=useState(""),q=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:Q,community:Z,myReactions:he,data:z,items:E}=l,{members:F}=Xl({queryParams:{communityId:Z==null?void 0:Z.communityId},shouldCall:!!(Z!=null&&Z.communityId)}),me=(F==null?void 0:F.find(ae=>ae.userId===(k==null?void 0:k.userId)))!=null,{user:de}=ho({userId:k==null?void 0:k.userId}),be=(Z==null?void 0:Z.isOfficial)||!1,ht=(Q==null?void 0:Q.userId)===(de==null?void 0:de.userId),wr=Id(de==null?void 0:de.roles),_r=bd(de==null?void 0:de.roles),ro=wr||_r||qn(k,Z==null?void 0:Z.communityId),l1=useMemo(()=>J.createElement("div",{"data-qa-anchor":"community_display_name"},Z==null?void 0:Z.displayName),[Z==null?void 0:Z.displayName]),m1=useMemo(()=>H&&(Q!=null&&Q.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},wd(H))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},Q==null?void 0:Q.displayName)):"",[H,Q==null?void 0:Q.displayName]),Zr="asc-uikit-stories-viewer",li=useCallback(()=>{if(q.current&&q.current.complete){let Wt=new DX().getPalette(q.current,2);if(Wt){let Mr=`linear-gradient(to top, rgb(${Wt[0].join(",")}), rgb(${Wt[1].join(",")})`;D(Mr);}}},[]),mi=useCallback(()=>{y(!0),b&&w(!1),p("play",!0),li();},[p,b,li]),d1=()=>{p("play",!0),w(!1);},fa=()=>{p("pause",!0),w(!0);},ga=()=>{p("pause",!0),x(!0);},di=()=>{p("play",!0),x(!1);},fn=()=>{p("pause",!0),P(!0);},ci=()=>{p("play",!0),P(!1);},pi=()=>{f();},ui=()=>{i();};return useEffect(()=>{q.current&&q.current.complete&&li();},[]),useEffect(()=>{if(t.current){let ae=()=>{p("pause",!0),w(!0);},Wt=()=>{p("play",!0),w(!1);};return t.current.addEventListener("click",ae),t.current.addEventListener("cancel",Wt),()=>{t.current&&(t.current.removeEventListener("cancel",Wt),t.current.removeEventListener("click",ae));}}},[t]),useEffect(()=>{var ae,Wt;if(s){let Mr=()=>{p("pause",!0),w(!0);},gn=()=>{p("play",!0),w(!1);};return (ae=s.current)==null||ae.addEventListener("dragstart",Mr),(Wt=s.current)==null||Wt.addEventListener("dragend",gn),()=>{var P4,S4;(P4=s.current)==null||P4.removeEventListener("dragstart",Mr),(S4=s.current)==null||S4.removeEventListener("dragend",gn);}}},[s]),J.createElement("div",{className:Lt.rendererContainer,style:{background:N}},J.createElement(Rs,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:b||v||_,onComplete:ui}),J.createElement(zc,{community:Z,heading:l1,subheading:m1,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:ro,isOfficial:be,isPaused:b,onPlay:d1,onPause:fa,onAction:ga,onClickCommunity:()=>g==null?void 0:g(),onClose:pi,addStoryButton:o}),J.createElement("div",{className:so(Lt.storyImageContainer,{[Lt.imageFit]:z.imageDisplayMode==="fit",[Lt.imageFill]:z.imageDisplayMode==="fill"})},J.createElement("img",{ref:q,className:so(Lt.storyImage,{[Lt.imageFit]:z.imageDisplayMode==="fit",[Lt.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:Lt.loadingOverlay},T||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:Zr,isOpen:v,onClose:di,mountPoint:document.getElementById(Zr),detent:"content-height"},e==null?void 0:e.map(ae=>J.createElement(U,{key:ae.name,className:Lt.actionButton,onPress:()=>ae==null?void 0:ae.action()},(ae==null?void 0:ae.icon)&&ae.icon,J.createElement(A.BodyBold,null,ae.name)))),J.createElement(Co,{rootId:Zr,isOpen:_,onClose:ci,mountPoint:document.getElementById(Zr),detent:"full-height",headerTitle:h({id:"storyViewer.commentSheet.title"})},J.createElement(Qs,{referenceId:O,referenceType:"story",community:Z,shouldAllowCreation:Z==null?void 0:Z.allowCommentInStory,shouldAllowInteraction:me})),((Ze=(Fe=E==null?void 0:E[0])==null?void 0:Fe.data)==null?void 0:Ze.url)&&J.createElement("div",{className:Lt.hyperLinkContainer},J.createElement(Xn,{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(rg,{lines:1},J.createElement("span",null,((Do=(kt=E[0])==null?void 0:kt.data)==null?void 0:Do.customText)||E[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Uc,{pageId:a,storyId:O,syncState:ee,reach:X,commentsCount:L,reactionsCount:G,isLiked:$,myReactions:he,onClickComment:fn,showImpression:ht||qn(k,Z==null?void 0:Z.communityId),isMember:me}))},OX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},V_={renderer:VX,tester:OX};var zX=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},jX=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}},GX=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}},$X=({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 ga,di,fn,ci,pi,ui,Fe,Ze,kt,Do;let[h,C]=useState(!1),{loader:y}=p,{client:v}=Ve(),{user:x}=ho({userId:v==null?void 0:v.userId}),_=useRef(null),{muted:P,mute:b,unmute:w}=zX(),{isPaused:T,play:k,pause:N}=jX(c),{isBottomSheetOpen:D,isOpenCommentSheet:q,openBottomSheet:$,closeBottomSheet:G,openCommentSheet:O,closeCommentSheet:ee}=GX(c),{storyId:X,syncState:L,reach:H,commentsCount:Q,createdAt:Z,creator:he,community:z,myReactions:E,data:F,items:K}=l,me=(ga=l==null?void 0:l.myReactions)==null?void 0:ga.includes(vr),de=(l==null?void 0:l.reactions[vr])||0,{members:be}=Xl({queryParams:{communityId:z==null?void 0:z.communityId},shouldCall:!!(z!=null&&z.communityId)}),ht=be==null?void 0:be.some(ae=>ae.userId===(v==null?void 0:v.userId)),wr=(z==null?void 0:z.isOfficial)||!1,_r=(he==null?void 0:he.userId)===(x==null?void 0:x.userId),ro=Id(x==null?void 0:x.roles),l1=bd(x==null?void 0:x.roles),m1=ro||l1||qn(v,z==null?void 0:z.communityId),[Zr,li]=useState(!0),mi=useCallback(()=>{var ae;u("UPDATE_VIDEO_DURATION",{duration:(ae=l==null?void 0:l.videoData)==null?void 0:ae.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||D||q?(_.current.pause(),c("pause",!0)):(mi(),_.current.play(),c("play",!0)));},[T,D,q,c]),useEffect(()=>{if(o.current){let ae=()=>{c("pause",!0),N();},Wt=()=>{c("play",!0),k();};return o.current.addEventListener("click",ae),o.current.addEventListener("cancel",Wt),()=>{var Mr,gn;(Mr=o.current)==null||Mr.removeEventListener("click",ae),(gn=o.current)==null||gn.removeEventListener("cancel",Wt);}}},[c,N,k]),useEffect(()=>{if(s!=null&&s.current){let ae=()=>{c("pause",!0),N();},Wt=()=>{c("play",!0),k();};return s.current.addEventListener("dragstart",ae),s.current.addEventListener("dragend",Wt),()=>{var Mr,gn;(Mr=s.current)==null||Mr.removeEventListener("dragstart",ae),(gn=s.current)==null||gn.removeEventListener("dragend",Wt);}}},[c,N,k,s]);let fa=Math.round(((fn=l==null?void 0:l.videoData)==null?void 0:fn.attributes.metadata.video.duration)*1e3);return J.createElement("div",{className:so(Lt.rendererContainer)},J.createElement(Rs,{pageId:a,duration:fa,currentIndex:r,storiesCount:n,isPaused:T||D||q,onComplete:d1}),J.createElement(rc,{pageId:"story_page",componentId:"*",isMuted:P,onPress:P?w:b}),J.createElement(zc,{community:z,heading:J.createElement("div",{"data-qa-anchor":"community_display_name"},z==null?void 0:z.displayName),subheading:Z&&(he!=null&&he.displayName)?J.createElement("span",null,J.createElement("span",{"data-qa-anchor":"created_at"},wd(Z))," \u2022 By"," ",J.createElement("span",{"data-qa-anchor":"creator_display_name"},he==null?void 0:he.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:m1,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:so(Lt.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:P,autoPlay:!0}),(!h||Zr)&&J.createElement("div",{className:so(Lt.loadingOverlay)},y||J.createElement("div",null,"loading...")),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:D,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(ae=>J.createElement(U,{key:ae.name,className:so(Lt.actionButton),onPress:ae==null?void 0:ae.action},ae==null?void 0:ae.icon,J.createElement(A.BodyBold,null,ae.name)))),J.createElement(Co,{rootId:"asc-uikit-stories-viewer",isOpen:q,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:ht})),((Ze=(Fe=K==null?void 0:K[0])==null?void 0:Fe.data)==null?void 0:Ze.url)&&J.createElement("div",{className:so(Lt.hyperLinkContainer)},J.createElement(Xn,{href:K[0].data.url.startsWith("http")?K[0].data.url:`https://${K[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},J.createElement(rg,{lines:1},J.createElement("span",null,((Do=(kt=K[0])==null?void 0:kt.data)==null?void 0:Do.customText)||K[0].data.url.replace(/^https?:\/\//,""))))),J.createElement(Uc,{pageId:a,storyId:X,syncState:L,reach:H,commentsCount:Q,reactionsCount:de,isLiked:me,onClickComment:O,myReactions:E,showImpression:_r||qn(v,z==null?void 0:z.communityId),isMember:ht}))},ZX=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},O_={renderer:$X,tester:ZX};var YX=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),J.createElement("div",{style:U_.storyContent},J.createElement("p",{style:U_.text},"This story could not be loaded."))),U_={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},WX=()=>({condition:!0,priority:1}),z_={renderer:YX,tester:WX};var JX=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return J.createElement(t,d({},e))},XX=e=>({condition:!!e.content,priority:2}),j_={renderer:JX,tester:XX};var ft={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 G_=({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:ft.drawer__container},J.createElement("div",{className:ft.drawer__innerContainer},J.createElement(Drawer.Overlay,{className:ft.drawer__overlay}),J.createElement(Drawer.Content,{className:ft.drawer__content},J.createElement("div",{className:ft.drawer__innerContent},J.createElement("div",{className:ft.drawer__placeholder}),J.createElement(Drawer.Title,{className:ft.drawer__title},J.createElement(A.Title,null,"About this advertisement")),J.createElement("div",{className:ft.drawer__content__data},J.createElement(A.BodyBold,{className:ft.drawer__content__data__title},"Why this advertisement?"),J.createElement("div",{className:ft.drawer__content__data__text},J.createElement(xr,{className:ft.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:ft.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),J.createElement("div",{className:ft.drawer__content__data},J.createElement(A.BodyBold,{className:ft.drawer__content__data__title},"About this advertiser"),J.createElement("div",{className:ft.drawer__content__data__text},J.createElement(xr,{className:ft.drawer__content__data__infoIcon}),J.createElement(A.Caption,{className:ft.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),J.createElement("div",{className:ft.drawer__content__emptySpace}))))))};var gt={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 q_=({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),[v,x]=useState(!1),_=()=>{x(!0),g==null||g();},P=()=>{x(!1),h==null||h();},b=useRef(null),w=useRef(null),T=()=>{y(!0),f==null||f();};return J.createElement("div",{className:gt.rendererContainer,ref:w},J.createElement("div",{className:gt.storyAd__main},J.createElement(Rs,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),J.createElement("div",{className:gt.storyAd__topBar},J.createElement("div",{className:gt.storyAd__topBar__left},J.createElement("div",{className:gt.storyAd__topBar__avatar},J.createElement(ur,{defaultImage:J.createElement(ql,null),avatarUrl:o})),J.createElement("div",{className:gt.storyAd__topBar__text},J.createElement(A.BodyBold,{className:gt.storyAd__topBar__advertiserName},(k=t.advertiser)==null?void 0:k.name),J.createElement(Zl,null))),J.createElement("div",{className:gt.storyAd__topBar__right},i?J.createElement(Vo,{className:gt.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):J.createElement(f1,{className:gt.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>c==null?void 0:c()}),J.createElement(yr,{defaultClassName:so(gt.storyAd__closeButton),pageId:e,onPress:u}))),J.createElement("div",{className:so(gt.storyImageContainer)},J.createElement("img",{ref:b,className:so(gt.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:T,alt:"Story Image",crossOrigin:"anonymous"})),!C&&J.createElement("div",{className:gt.loadingOverlay},s()),t.callToActionUrl&&J.createElement("div",{className:gt.hyperLinkContainer},J.createElement("a",{className:gt.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),J.createElement(U,{className:gt.infoIcon__button,onPress:()=>{_();}},J.createElement(xr,{className:gt.infoIcon}))),J.createElement(G_,{ad:t,isOpen:v,targetRef:w,onOpenChange:N=>!N&&P()}))};var iR=({story:e,action:t,config:o,onClose:r})=>{var T,k,N,D,q,$;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=lt({fileId:(k=(T=s==null?void 0:s.advertiser)==null?void 0:T.avatar)==null?void 0:k.fileId})||((D=(N=s==null?void 0:s.advertiser)==null?void 0:N.avatar)==null?void 0:D.fileUrl)||"",x=lt({fileId:(q=s==null?void 0:s.image9_16)==null?void 0:q.fileId})||(($=s==null?void 0:s.image9_16)==null?void 0:$.fileUrl)||"",_=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),P=()=>{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(q_,{pageId:u,ad:s,adImageUrl:x,avatarUrl:y,currentIndex:l,isPaused:n,storiesCount:c,renderLoader:()=>a,onComplete:w,onPauseClick:h,onPlayClick:g,onClose:r,onImageLoaded:_,onAdvertisementInfoOpen:P,onAdvertisementInfoClose:b}):null},aR=e=>({condition:!!e.ad,priority:2}),Y_={renderer:iR,tester:aR};var t1=[V_,O_,Y_,j_,z_];var Ju={storyButton:"zr",desktopOnly:"Ir"};var mR=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:so(Ju.storyButton,Ju.desktopOnly),onClick:o,style:a},J.createElement(mR,null))};var Xu={storyButton:"Xr",desktopOnly:"Yr"};var pR=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:so(Xu.storyButton,Xu.desktopOnly),onClick:o,style:a},J.createElement(pR,null))};var oo={overlayLeft:"Rr",overlayRight:"Ar",viewStoryContent:"Lf",viewStoryOverlay:"Tf",hiddenInput:"Df",viewStoryContainer:"Gf",storyWrapper:"Jf",deleteIcon:"Kf",arrowButton:"Nf"};var xR=7e3,zr=e=>!!(e!=null&&e.storyId),qc=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var z;let{accessibilityId:s}=zt({pageId:e}),{confirm:l}=xt(),c=Ut(),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,F)=>(E.find(me=>zr(me)&&zr(F)?me.storyId===F.storyId:!1)||E.push(F),E),[]),v=useMemo(()=>t1.map(({renderer:E,tester:F})=>({renderer:me=>E(S(d({},me),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:F})),[t1,r,i,t]),x=useRef(null),{client:_,currentUserId:P}=Ve(),[b,w]=useState(0),{file:T,setFile:k}=Wo(),N=y[b],D=zr(N)?((z=N==null?void 0:N.creator)==null?void 0:z.userId)===P:!1,q=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:()=>M(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,F,K,me)=>M(void 0,null,function*(){var de;try{let be=new FormData;be.append("files",E),k(null),E!=null&&E.type.includes("image")&&P?yield StoryRepository.createImageStory("user",P,be,K,F,me):P&&(yield StoryRepository.createVideoStory("user",P,be,K,me)),c.success({content:"Successfully shared story"});}catch(be){be instanceof Error&&c.info({content:(de=be.message)!=null?de:"Failed to share story"});}}),[P,c,k]),L=()=>{k(null);},H=J.createElement(FileTrigger,{ref:x,onSelect:E=>{let F=Array.from(E);k(F[0]);}},J.createElement(Yn,{pageId:e})),Q=()=>{if(b===y.length-1){r(t);return}w(E=>E+1);},Z=y==null?void 0:y.map(E=>{var F,K,me;if(zr(E)){let de=(E==null?void 0:E.dataType)==="image",be=de?(F=E==null?void 0:E.imageData)==null?void 0:F.fileUrl:(me=(K=E==null?void 0:E.videoData)==null?void 0:K.videoUrl)==null?void 0:me["720p"];return {story:E,url:be,type:de?"image":"video",actions:[D||q?{name:"Delete",action:()=>ee(E==null?void 0:E.storyId),icon:J.createElement(F0,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(qo),onCreateStory:X,discardStory:L,addStoryButton:H,fileInputRef:x,currentIndex:b,storiesCount:y==null?void 0:y.length,increaseIndex:Q,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:Q}}),he="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(F=>F==null?void 0:F.isSeen))return;let E=y.findIndex(F=>zr(F)?!(F!=null&&F.isSeen):!1);E!==-1&&w(E);},[]),ma({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:so(oo.storyWrapper)},J.createElement(om,{onClick:G}),J.createElement(motion.div,{id:he,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,F)=>{F.point.y<F.point.y-F.offset.y&&p.set(0);},onDragEnd:(E,F)=>{f.current.dispatchEvent(new Event("dragend")),F.offset.y>100?n(t):p.set(0);},className:so(oo.viewStoryContainer)},J.createElement("div",{className:so(oo.viewStoryContent)},J.createElement("div",{className:so(oo.overlayLeft),onClick:G}),J.createElement("div",{className:so(oo.overlayRight),onClick:$}),J.createElement("div",{className:so(oo.viewStoryOverlay)}),J.createElement(yR,{key:y==null?void 0:y.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:Z,renderers:v,defaultInterval:xR,onStoryStart:()=>zr(N)&&(N==null?void 0:N.analytics.markAsSeen()),onStoryEnd:$,onNext:$,onPrevious:G,onAllStoriesEnd:$}))),J.createElement(rm,{onClick:$}))};var SR=7e3,ai=e=>!!(e!=null&&e.storyId),K_=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var z;let{accessibilityId:c}=zt({pageId:e}),{confirm:p}=xt(),u=Ut(),{client:f,currentUserId:g}=Ve(),{file:h,setFile:C}=Wo(),y=useMotionValue(0),v=useRef(null),x=useRef(new EventTarget),[_,P]=useState(0),b=useRef(null),{stories:w}=Cs({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),T=useMemo(()=>t1.map(({renderer:E,tester:F})=>({renderer:me=>E(S(d({},me),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:F})),[t1,a,s,l,t]),k=w[_],N=ai(k)?((z=k==null?void 0:k.creator)==null?void 0:z.userId)===g:!1,D=ai(k)?I2(f,k==null?void 0:k.targetId):!1,q=()=>{if(_===0){let F=o.indexOf(t)-1;if(F>=0){let K=o[F];n(K);}else r==null||r();P(0);return}P(E=>E-1);},$=E=>{let F=_===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:()=>M(void 0,null,function*(){yield StoryRepository.softDeleteStory(E),u.success({content:"Story deleted"}),w.length===1?r==null||r():F?q():P(K=>K);})});},G=E=>{$(E);},O=(E,F,K,me)=>M(void 0,null,function*(){var de;try{let be=new FormData;if(be.append("files",E),C(null),E!=null&&E.type.includes("image")&&g){let{data:ht}=yield StoryRepository.createImageStory("user",g,be,K,F,me);ht&&u.success({content:"Successfully shared story"});}else if(g){let{data:ht}=yield StoryRepository.createVideoStory("user",g,be,K,me);ht&&u.success({content:"Successfully shared story"});}}catch(be){be instanceof Error&&u.info({content:(de=be.message)!=null?de:"Failed to share story"});}}),ee=()=>{C(null);},X=J.createElement(FileTrigger,{ref:b,onSelect:E=>{let F=Array.from(E);C(F[0]);}},J.createElement(Yn,{pageId:e})),L=()=>{_!==w.length-1&&P(E=>E+1);},H=w==null?void 0:w.map(E=>{var F,K,me;if(ai(E)){let de=(E==null?void 0:E.dataType)==="image",be=de?(F=E==null?void 0:E.imageData)==null?void 0:F.fileUrl:(me=(K=E==null?void 0:E.videoData)==null?void 0:K.videoUrl)==null?void 0:me["720p"];return {story:E,url:be,type:de?"image":"video",actions:[N||D?{name:"Delete",action:()=>G(E==null?void 0:E.storyId),icon:J.createElement(sa,{className:oo.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}}),Q=()=>{if(_===(H==null?void 0:H.length)-1){let F=o.indexOf(t)+1;if(F<o.length){let K=o[F];n(K);}else r==null||r();P(0);return}P(E=>E+1);},Z="asc-uikit-stories-viewer";if(useEffect(()=>{let E=w[w.length-1];ai(E)&&(E==null?void 0:E.syncState)==="syncing"&&P(w.length-1),k&&ai(k)&&(k==null||k.analytics.markAsSeen());},[k,w]),useEffect(()=>{if(w.filter(ai).every(F=>F==null?void 0:F.isSeen))return;let E=w.findIndex(F=>ai(F)?!(F!=null&&F.isSeen):!1);E!==-1&&P(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]),ma({targetId:t,targetType:"community"}),!w||w.length===0)return null;let he=()=>{if(H[_])return _;let E=H.length-1;return P(E),E};return J.createElement("div",{className:so(oo.storyWrapper),"data-qa-anchor":c},J.createElement(om,{onClick:q}),J.createElement(motion.div,{id:Z,ref:v,"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:()=>{x.current.dispatchEvent(new Event("dragstart"));},onDrag:(E,F)=>{F.point.y<F.point.y-F.offset.y&&y.set(0);},onDragEnd:(E,F)=>{x.current.dispatchEvent(new Event("dragend")),F.offset.y>100?s(t):y.set(0);},className:so(oo.viewStoryContainer)},J.createElement("div",{className:so(oo.viewStoryContent)},J.createElement("div",{className:so(oo.overlayLeft),onClick:q}),J.createElement("div",{className:so(oo.overlayRight),onClick:Q}),J.createElement("div",{className:so(oo.viewStoryOverlay)}),J.createElement(yR,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:he(),stories:H,renderers:T,defaultInterval:SR,onStoryStart:()=>ai(k)&&(k==null?void 0:k.analytics.markAsSeen()),onStoryEnd:L,onNext:Q,onPrevious:q,onAllStoriesEnd:Q}))),J.createElement(rm,{onClick:Q}))};var Yc=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=Nd({seenState:"smart",limit:10});return J.createElement(K_,{pageId:e,targetId:t,targetIds:l.map(c=>c.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var NR=({type:e,targetId:t})=>{let o="view_story_page",{onBack:r,goToDraftStoryPage:n,onClickCommunity:i,onChangePage:a,onClickStory:s}=W(),l=()=>{a("newsfeed");},c=p=>{i(p);};return e==="communityFeed"?J.createElement(qc,{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(Yc,{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},X_=NR;var R_={roundedBackButton:"Of"};var ER=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"})),n4=({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:R_.roundedBackButton,onPress:n},J.createElement(se,{"data-qa-anchor":a,defaultIcon:()=>J.createElement(ER,{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 i4=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var X,L,H,Q,Z,he;let{page:a,onBack:s}=Ae(),l="create_story_page",{accessibilityId:c,themeStyles:p}=zt({pageId:l}),{file:u,setFile:f}=Wo(),{community:g}=qd(e),[h,C]=useState(!1),{confirm:y}=xt(),v=Ut(),[x,_]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),P=()=>{C(!1);},[b,w]=useState("fit"),[T,k]=useState([]),N=()=>{w(b==="fit"?"fill":"fit"),b==="fill"&&k([]);},D=(z,E,F,K)=>M(void 0,null,function*(){var me;if(z)try{let de=new FormData;de.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,de,F,E,K):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,de,F,K)),v.success({content:"Successfully shared story"});}catch(de){de instanceof Error&&v.info({content:(me=de.message)!=null?me:"Failed to share story"});}}),q=()=>{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=x[0])==null?void 0:z.data)!=null&&E.url){v.info({content:"Can\u2019t add more than one link to your story."});return}C(!0);},ee=useCallback(z=>M(void 0,null,function*(){let E=new Image;E.crossOrigin="Anonymous",E.src=z,E.onload=()=>{let K=new DX().getPalette(E,2);K&&k(K.map(me=>`rgb(${me.join(",")})`));};}),[]);return useEffect(()=>{M(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(n4,{pageId:l,onPress:q}),J.createElement("div",{className:br.topRightButtons},(o==null?void 0:o.type)==="image"&&J.createElement(Jd,{pageId:l,onPress:N}),J.createElement(Xd,{pageId:l,onPress:O})))),(o==null?void 0:o.type)==="image"?J.createElement("div",{className:br.mainContainer,style:{background:`linear-gradient(
|
|
3908
3908
|
180deg,
|
|
3909
3909
|
${T[0]||"var(--asc-color-black)"} 0%,
|
|
3910
3910
|
${T[1]||"var(--asc-color-black)"} 100%
|
|
3911
|
-
)`}},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=x[0])==null?void 0:X.data)==null?void 0:L.url)&&J.createElement("div",{className:br.hyperLinkContainer},J.createElement(Xn,{onClick:()=>C(!0)},((
|
|
3911
|
+
)`}},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=x[0])==null?void 0:X.data)==null?void 0:L.url)&&J.createElement("div",{className:br.hyperLinkContainer},J.createElement(Xn,{onClick:()=>C(!0)},((Q=(H=x[0])==null?void 0:H.data)==null?void 0:Q.customText)||x[0].data.url.replace(/^https?:\/\//,""))),J.createElement(Pu,{pageId:l,isOpen:h,onClose:P,onSubmit:$,onRemove:G,isHaveHyperLink:((he=(Z=x==null?void 0:x[0])==null?void 0:Z.data)==null?void 0:he.url)!==""}),J.createElement("div",{className:br.footer},J.createElement(tc,{community:g,pageId:l,onClick:()=>{var z,E;return D(u,b,{},(E=(z=x[0])==null?void 0:z.data)!=null&&E.url?x:[])}}))))},DR=e=>{let{AmityDraftStoryPageBehavior:t}=Rt();return J.createElement(i4,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)}}))},a4=DR;var OR=e=>{let{page:t,onChangePage:o,onClickCommunity:r}=W();return J.createElement(i4,S(d({},e),{onDiscardCreateStory:()=>{t.type==="draftpage"&&t.storyType==="communityFeed"?r(e.targetId):o("newsfeed");},goToCommunityPage:n=>r(n),goToGlobalFeedPage:()=>o("newsfeed")}))},tM=OR;var HR=m.div`
|
|
3912
3912
|
height: 100%;
|
|
3913
3913
|
width: 100%;
|
|
3914
|
-
`,
|
|
3914
|
+
`,UR=m(ld)`
|
|
3915
3915
|
display: none;
|
|
3916
3916
|
|
|
3917
3917
|
@media (min-width: 768px) {
|
|
3918
3918
|
min-height: 100%;
|
|
3919
3919
|
display: block;
|
|
3920
3920
|
}
|
|
3921
|
-
`,
|
|
3921
|
+
`,zR=m.div`
|
|
3922
3922
|
display: flex;
|
|
3923
3923
|
flex-direction: column;
|
|
3924
3924
|
align-items: center;
|
|
3925
3925
|
justify-content: center;
|
|
3926
3926
|
width: 100%;
|
|
3927
3927
|
height: 100%;
|
|
3928
|
-
`,
|
|
3928
|
+
`,jR=()=>{let{page:e}=W(),{client:t}=ne(),[o,r]=useState(null),[n,i]=useState(!1),a=()=>{i(!n);};return useEffect(()=>{if(t===null)return;function s(){return M(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(HR,null,J.createElement(gC,{aside:J.createElement(UR,{activeCommunity:e.communityId})},e.type==="explore"&&J.createElement(Rv,{isOpen:n,toggleOpen:a}),e.type==="newsfeed"&&J.createElement(Nx,{toggleOpen:a,isOpen:n}),e.type==="communityfeed"&&J.createElement(WI,{communityId:e.communityId,isNewCommunity:e.isNewCommunity,isOpen:n,toggleOpen:a}),e.type==="viewstory"&&J.createElement(zR,null,J.createElement(X_,{targetId:e.targetId,type:e.storyType})),e.type==="draftpage"&&J.createElement(tM,{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}))))},GR=jR;var iM={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function WR(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===iM.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 s4(o){return M(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 QR(a){return M(this,arguments,function*({channelAvatarFileId:e,channelAvatarCustomUrl:t,otherUserAvatarUrl:o,currentUserAvatarUrl:r,isDirectChat:n,memberCount:i=0}){return i===iM.ONLY_ME_CHAT?s4({avatarCustomUrl:r}):s4(n&&o?{avatarCustomUrl:o}:{avatarFileId:e,avatarCustomUrl:t})})}function KR({channel:e}){var p,u,f,g,h;let{currentUserId:t}=Rm(),[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=le(t),a=le(n),s=te({fileId:i==null?void 0:i.avatarFileId}),l=te({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function C(){return M(this,null,function*(){var v,x;let y=yield QR({channelAvatarFileId:e==null?void 0:e.avatarFileId,channelAvatarCustomUrl:(v=e==null?void 0:e.metadata)==null?void 0:v.avatarCustomUrl,otherUserAvatarUrl:(a==null?void 0:a.avatarCustomUrl)||l,currentUserAvatarUrl:(i==null?void 0:i.avatarCustomUrl)||s,isDirectChat:(x=e==null?void 0:e.metadata)==null?void 0:x.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:WR(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var n1=KR;var aM=m(Ee)`
|
|
3929
3929
|
display: flex;
|
|
3930
3930
|
align-items: center;
|
|
3931
3931
|
width: 100%;
|
|
@@ -3965,7 +3965,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3965
3965
|
background: ${t.palette.base.shade4};
|
|
3966
3966
|
color: ${t.palette.base.main};
|
|
3967
3967
|
`}
|
|
3968
|
-
`;var
|
|
3968
|
+
`;var JR=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(aM,d({className:r,active:o,onClick:n},i),e&&J.createElement(sM,{active:o},e),t)},mM=JR;var i1={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"};var tee=({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),M(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})},si=tee;var cM=m(mM)`
|
|
3969
3969
|
display: flex;
|
|
3970
3970
|
align-items: center;
|
|
3971
3971
|
justify-content: space-between;
|
|
@@ -3997,7 +3997,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
3997
3997
|
color: #fff;
|
|
3998
3998
|
background: #f9563a;
|
|
3999
3999
|
border-radius: 20px;
|
|
4000
|
-
`;function nm({channelId:e,shouldSubscribe:t=()=>!0,callback:o}){return Mi({fetcher:ChannelRepository.getChannel,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getChannelTopic(r)})}var
|
|
4000
|
+
`;function nm({channelId:e,shouldSubscribe:t=()=>!0,callback:o}){return Mi({fetcher:ChannelRepository.getChannel,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getChannelTopic(r)})}var iee=e=>bt({fetcher:ChannelRepository.getChannel,params:e,shouldCall:()=>!!e}),jr=iee;function aee(e){let t={BOTTOM:1,TOP:99};return !e||e<t.BOTTOM?"":e<=t.TOP?e:`${t.TOP}+`}var see=({channelId:e,isSelected:t,onSelect:o})=>{let r=jr(e),{chatName:n,chatAvatar:i}=n1({channel:r}),a=aee((r==null?void 0:r.unreadCount)||0);return nm({channelId:r==null?void 0:r.channelId,shouldSubscribe:()=>!!(r!=null&&r.channelId)}),J.createElement(cM,{"data-qa-anchor":"chat-item",active:t,onClick:s=>{s.stopPropagation(),r&&o({channelId:r.channelId,type:r.type});}},J.createElement(pM,null,J.createElement(uM,{avatarUrl:i,defaultImage:((r==null?void 0:r.memberCount)||0)>2?ao:De}),J.createElement(fM,null,n)),a&&J.createElement(gM,{"data-qa-anchor":"chat-item-unread-count"},a))},yM=e=>{let t=V("ChatItem");return t?t(e):J.createElement(see,d({},e))};var hM=m(tp).attrs({width:24,height:18})`
|
|
4001
4001
|
width: 24px !important;
|
|
4002
4002
|
cursor: pointer;
|
|
4003
4003
|
`,CM=m.div`
|
|
@@ -4027,7 +4027,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4027
4027
|
flex-grow: 1;
|
|
4028
4028
|
overflow-y: auto;
|
|
4029
4029
|
overflow-x: hidden;
|
|
4030
|
-
`;function l4(e){let r=Me({fetcher:ChannelRepository.getChannels,params:e}),{items:t}=r,o=I(r,["items"]);return d({channels:t},o)}var
|
|
4030
|
+
`;function l4(e){let r=Me({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}=l4({membership:r,sortBy:"lastActivity",limit:20}),s=useRef(null),l=u=>M(void 0,[u],function*({channelId:c,type:p}){p!=="conversation"&&(yield ChannelRepository.joinChannel(c)),yield SubChannelRepository.startReading(c);});return J.createElement(CM,null,J.createElement(vM,null,J.createElement(xM,null,J.createElement(FormattedMessage,{id:"chat.chats"})),J.createElement(hM,{"data-qa-anchor":"chat-create-chat-button",onClick:t})),J.createElement(bM,{ref:s,"data-qa-anchor":"chat-list"},s.current?J.createElement(iH,{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(yM,{key:c.channelId,channelId:c.channelId,isSelected:o===c.channelId,onSelect:p=>{l(p),e==null||e(p);}}))):null))},IM=e=>{let t=V("RecentChat");return t?t(e):J.createElement(fee,d({},e))};var wM=m.div`
|
|
4031
4031
|
display: flex;
|
|
4032
4032
|
align-items: center;
|
|
4033
4033
|
gap: 10px;
|
|
@@ -4101,9 +4101,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4101
4101
|
margin-top: 3px;
|
|
4102
4102
|
display: flex;
|
|
4103
4103
|
align-items: center;
|
|
4104
|
-
`;var
|
|
4104
|
+
`;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=()=>M(void 0,null,function*(){if(e!=null)try{o(!0),yield MessageRepository.flagMessage(e);}catch(c){o(!1);}finally{i();}}),s=()=>M(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:()=>M(void 0,null,function*(){e!=null&&(t?s():a());})}},OM=Cee;function p4({messageId:e,shouldSubscribe:t=()=>!0,callback:o}){return Mi({fetcher:MessageRepository.getMessage,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getMessageTopic(r)})}var Iee=m(B2)`
|
|
4105
4105
|
${({align:e,theme:t})=>e==="end"&&`color: ${t.palette.neutral.main};`}
|
|
4106
|
-
`,
|
|
4106
|
+
`,wee=({messageId:e})=>{let{isFlaggedByMe:t,flagMessage:o,unflagMessage:r}=OM(e);return p4({messageId:e}),t?J.createElement(Jt,{onClick:r},J.createElement(FormattedMessage,{id:"message.unflag"})):J.createElement(Jt,{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=P=>{P.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(wM,null,J.createElement(_M,{"data-qa-anchor":"message-edit-input",autoFocus:!0,value:i,onChange:P=>a(P.target.value),onKeyDown:P=>{P.key==="Enter"&&y(),P.key==="Escape"&&C();}}),J.createElement(MM,{"data-qa-anchor":"message-save-button",onClick:y}),J.createElement(PM,{onClick:C})):J.createElement(Er,null,!e&&r&&J.createElement(Jt,{"data-qa-anchor":"message-menu-item-edit",onClick:p},J.createElement(FormattedMessage,{id:"message.edit"})),e&&J.createElement(wee,{messageId:t}),!e&&J.createElement(Jt,{"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(SM,null)))},UM=_ee;var See=()=>J.createElement(FormattedMessage,{id:"chat.message.deleted"}),zM=See;var Nee=({data:e})=>J.createElement(Sa,null,e.text),jM=Nee;var Eee=({data:e})=>J.createElement("pre",null,JSON.stringify(e)),GM=Eee;var Lee=()=>J.createElement(FormattedMessage,{id:"chat.message.unsupported"}),$M=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(zM,null):Fee(e)?J.createElement(jM,{data:e.data}):Dee(e)?J.createElement(GM,{data:e.data}):J.createElement($M,null)},ZM=Vee;var Hee=n=>{var i=n,{isDeleted:e,type:t,isSupportedMessageType:o}=i,r=I(i,["isDeleted","type","isSupportedMessageType"]);return e?J.createElement(LM,S(d({},r),{"data-qa-anchor":"message-body-deleted"})):o?J.createElement(BM,S(d({},r),{"data-qa-anchor":"message-body-general"})):J.createElement(FM,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(TM,{isIncoming:a},J.createElement(NM,null,a&&J.createElement(EM,null,!s&&(t?J.createElement(m4,{avatar:t}):J.createElement(m4,{backgroundImage:De}))),J.createElement(kM,{"data-qa-anchor":"message"},p&&J.createElement(AM,null,l),J.createElement(Hee,{type:o,isIncoming:a,isDeleted:i||!1,isSupportedMessageType:u},J.createElement(ZM,{data:r,type:o,isDeleted:i}),!i&&J.createElement(VM,null,J.createElement(DM,null,J.createElement(FormattedTime,{value:n})),J.createElement(UM,{messageId:e,data:r,isIncoming:a,isSupportedMessageType:u,popupContainerRef:c}))))))},qM=e=>{let t=V("Message");return t?t(e):J.createElement(Uee,d({},e))};var YM=m.div`
|
|
4107
4107
|
display: flex;
|
|
4108
4108
|
flex-direction: column-reverse;
|
|
4109
4109
|
flex-grow: 1;
|
|
@@ -4113,7 +4113,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4113
4113
|
display: flex;
|
|
4114
4114
|
flex-direction: column-reverse;
|
|
4115
4115
|
padding: 0 20px;
|
|
4116
|
-
`;function f4(e){let r=Me({fetcher:MessageRepository.getMessages,params:e,shouldCall:()=>!!e.subChannelId}),{items:t}=r,o=I(r,["items"]);return d({messages:t},o)}var
|
|
4116
|
+
`;function f4(e){let r=Me({fetcher:MessageRepository.getMessages,params:e,shouldCall:()=>!!e.subChannelId}),{items:t}=r,o=I(r,["items"]);return d({messages:t},o)}var $ee=({message:e,isConsequent:t,isIncoming:o,containerRef:r})=>{let n=le(e.creatorId),i=te({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"});return J.createElement(qM,{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})},Zee=({channelId:e})=>{let{client:t}=ne(),o=useRef(null),{messages:r,hasMore:n,loadMore:i,isLoading:a}=f4({subChannelId:e,sortBy:"segmentDesc",limit:20});return nm({channelId:e}),J.createElement(YM,{ref:o},o.current?J.createElement(iH,{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(WM,{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($ee,{key:s.messageId,message:s,isConsequent:p,isIncoming:u,containerRef:o})}))):null)},QM=e=>{let t=V("MessageList");return t?t(e):J.createElement(Zee,d({},e))};var KM=m(X0).attrs({width:28,height:28})`
|
|
4117
4117
|
cursor: pointer;
|
|
4118
4118
|
margin-left: 12px;
|
|
4119
4119
|
margin-right: 8px;
|
|
@@ -4139,7 +4139,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4139
4139
|
border: 1px solid #e3e4e8;
|
|
4140
4140
|
border-radius: 4px;
|
|
4141
4141
|
flex-grow: 1;
|
|
4142
|
-
`;var
|
|
4142
|
+
`;var Wee=({onSubmit:e})=>{let[t,o]=useState(""),{formatMessage:r}=useIntl(),n=()=>{t!==""&&(e(t),o(""));};return J.createElement(JM,null,J.createElement(XM,{"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(KM,{"data-qa-anchor":"message-compose-bar-send-message-button",onClick:n}))},RM=e=>{let t=V("MessageComposerBar");return t?t(e):J.createElement(Wee,d({},e))};var eP=m(u1).attrs({width:24,height:24})`
|
|
4143
4143
|
cursor: pointer;
|
|
4144
4144
|
fill: ${({theme:e})=>e.palette.neutral.main};
|
|
4145
4145
|
align-self: center;
|
|
@@ -4164,7 +4164,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4164
4164
|
`,iP=m.div`
|
|
4165
4165
|
font-size: 12px;
|
|
4166
4166
|
color: #999999;
|
|
4167
|
-
`;var
|
|
4167
|
+
`;var Kee=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{let r=jr(e),{chatName:n,chatAvatar:i}=n1({channel:r});return J.createElement(tP,{"data-qa-anchor":"chat-header"},J.createElement(oP,null,J.createElement(si,{avatarUrl:i||void 0,defaultImage:r!=null&&r.memberCount&&r.memberCount>2?ao:De}),J.createElement(rP,{"data-qa-anchor":"chat-header-channel-info"},J.createElement(nP,{"data-qa-anchor":"chat-header-channel-info-channel-name"},n),J.createElement(iP,{"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(eP,{onClick:t}))},aP=e=>{let t=V("ChatHeader");return t?t(e):J.createElement(Kee,d({},e))};var sP=m.div`
|
|
4168
4168
|
display: flex;
|
|
4169
4169
|
flex-direction: column;
|
|
4170
4170
|
flex-grow: 1;
|
|
@@ -4209,11 +4209,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4209
4209
|
padding-top: 20px;
|
|
4210
4210
|
`};
|
|
4211
4211
|
margin-bottom: 20px;
|
|
4212
|
-
`,
|
|
4212
|
+
`,Ree=m.div`
|
|
4213
4213
|
margin-top: 8px;
|
|
4214
4214
|
color: ${({theme:e})=>e.palette.alert.main};
|
|
4215
4215
|
${({theme:e})=>e.typography.caption}
|
|
4216
|
-
`,h4=e=>J.createElement(ErrorMessage,d({as:
|
|
4216
|
+
`,h4=e=>J.createElement(ErrorMessage,d({as:Ree},e)),uP=m.div`
|
|
4217
4217
|
border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
4218
4218
|
padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
|
|
4219
4219
|
display: flex;
|
|
@@ -4227,7 +4227,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4227
4227
|
min-width: 100px;
|
|
4228
4228
|
margin-left: 0;
|
|
4229
4229
|
`};
|
|
4230
|
-
`;var CP=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
|
|
4230
|
+
`;var CP=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 nte=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{useEffect(()=>()=>{SubChannelRepository.stopReading(e);},[e]);let{isModerator:r}=CP(e),n=jr(e),i=s=>M(void 0,null,function*(){return MessageRepository.createMessage({subChannelId:e,data:{text:s},dataType:"text"})});return J.createElement(sP,null,J.createElement(aP,{channelId:e,shouldShowChatDetails:o,onChatDetailsClick:t}),J.createElement(QM,{channelId:e}),(n==null?void 0:n.type)!=="broadcast"||(n==null?void 0:n.type)==="broadcast"&&r?J.createElement(RM,{onSubmit:i}):null)},vP=e=>{let t=V("Chat");return t?t(e):J.createElement(nte,d({},e))};var xP=m.div`
|
|
4231
4231
|
display: flex;
|
|
4232
4232
|
padding: 0px 15px 10px;
|
|
4233
4233
|
`,bP=m.div`
|
|
@@ -4242,12 +4242,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4242
4242
|
justify-content: flex-end;
|
|
4243
4243
|
`,_P=m(ce)`
|
|
4244
4244
|
margin-left: 15px;
|
|
4245
|
-
`,MP=m(Ee)``;var
|
|
4245
|
+
`,MP=m(Ee)``;var ste=({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(vt,{"data-qa-anchor":"group-settings-modal",size:"small",title:n||i({id:"chat.create.modalTitle"}),footer:J.createElement(wP,null,J.createElement(MP,{onClick:e},J.createElement(FormattedMessage,{id:"general.cancel.capital"})),J.createElement(_P,{disabled:a.length===0,onClick:l},t||J.createElement(FormattedMessage,{id:"general.create.capital"})))},J.createElement(xP,null,J.createElement(bP,null,J.createElement(IP,null,J.createElement(FormattedMessage,{id:"groupChat.createPopup.fieldName"})),J.createElement(It,{value:a,placeholder:i({id:"groupChat.createPopup.placeholder"}),onChange:c=>s(c.plainText)}))))},PP=ste;var lte=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
|
|
4246
4246
|
438.4V464c0 26.5 21.5 48 48 48h352c26.5 0
|
|
4247
4247
|
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
|
|
4248
4248
|
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
|
|
4249
4249
|
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
|
|
4250
|
-
43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z`})),TP=
|
|
4250
|
+
43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z`})),TP=lte;var NP=m.div``,sm=m.div`
|
|
4251
4251
|
display: flex;
|
|
4252
4252
|
justify-content: space-between;
|
|
4253
4253
|
align-items: center;
|
|
@@ -4282,14 +4282,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4282
4282
|
${AP}
|
|
4283
4283
|
`,LP=m(Ci).attrs({width:24,height:20})`
|
|
4284
4284
|
${AP}
|
|
4285
|
-
`;var
|
|
4285
|
+
`;var pte=({chatName:e,channelId:t})=>{let[o,r]=useState(!1),{formatMessage:n}=useIntl(),i=a=>M(void 0,null,function*(){yield ChannelRepository.updateChannel(t,{displayName:a});});return J.createElement(J.Fragment,null,J.createElement(sm,{onClick:()=>r(!0)},J.createElement(lm,null,J.createElement(LP,null),J.createElement(mm,null,J.createElement(FormattedMessage,{id:"chat.groupSetting"})))),o&&J.createElement(PP,{title:J.createElement(FormattedMessage,{id:"chat.groupSetting"}),chatName:e,submitButtonName:n({id:"general.done.capital"}),closeModal:()=>r(!1),onSubmit:i}))},DP=pte;var fte=({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(NP,null,J.createElement(sm,{onClick:r},J.createElement(lm,null,J.createElement(BP,null),J.createElement(mm,null,J.createElement(FormattedMessage,{id:"tabs.members"}))),J.createElement(lm,null,i&&J.createElement(kP,null,i),J.createElement(EP,null))),!l&&J.createElement(DP,{channelId:e,chatName:o}),t!=="conversation"?J.createElement(sm,{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(mm,{isDanger:!0},J.createElement(FormattedMessage,{id:"chat.leaveChat"}))):null)},OP=fte;var gte=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
|
|
4286
4286
|
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
|
|
4287
4287
|
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
|
|
4288
4288
|
0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6
|
|
4289
4289
|
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
|
|
4290
4290
|
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
|
|
4291
4291
|
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
|
|
4292
|
-
16-16v-16c0-8.8-7.2-16-16-16z`})),UP=
|
|
4292
|
+
16-16v-16c0-8.8-7.2-16-16-16z`})),UP=gte;var zP=m.div`
|
|
4293
4293
|
display: flex;
|
|
4294
4294
|
flex-direction: column;
|
|
4295
4295
|
overflow-y: auto;
|
|
@@ -4337,7 +4337,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4337
4337
|
svg {
|
|
4338
4338
|
font-size: 20px;
|
|
4339
4339
|
}
|
|
4340
|
-
`;var
|
|
4340
|
+
`;var hte=({onClick:e})=>J.createElement(ZP,{onClick:e},J.createElement(qP,null,J.createElement(UP,null)),J.createElement(Rc,null,J.createElement(FormattedMessage,{id:"chat.member.addMore"}))),YP=hte;function cm(e){let r=Me({fetcher:ChannelRepository.Membership.getMembers,params:{channelId:e,includeDeleted:!1},shouldCall:()=>!!e}),{items:t}=r,o=I(r,["items"]);return d({channelMembers:t},o)}var xte="Anonymous",bte=({channelId:e,hideMembers:t,onEditChatMemberClick:o,onMemberSelect:r})=>{let n=jr(e),{channelMembers:i,hasMore:a,loadMore:s}=cm(e),l=u=>{u.stopPropagation(),t==null||t();},c=u=>{var v;let{displayName:f,metadata:g}=(v=u==null?void 0:u.user)!=null?v:{};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(zP,null,J.createElement(jP,{onClick:l},J.createElement(GP,null),J.createElement($P,null,J.createElement(FormattedMessage,{id:"chat.members.return"}))),(i==null?void 0:i.length)>0?J.createElement(Gt,{hasMore:a,loadMore:s,contentSlot:J.createElement(J.Fragment,null,i.map(u=>J.createElement(v4,{key:u.userId,onClick:()=>r==null?void 0:r(u)},J.createElement(si,d({size:Ti.SMALL,defaultImage:De},u==null?void 0:u.user)),J.createElement(Rc,null,c(u)||xte))),p?J.createElement(YP,{onClick:()=>o==null?void 0:o({channelId:e,members:i})}):null)}):null)},WP=bte;var QP=m.div`
|
|
4341
4341
|
display: flex;
|
|
4342
4342
|
flex-direction: column;
|
|
4343
4343
|
flex-shrink: 0;
|
|
@@ -4371,11 +4371,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4371
4371
|
${({theme:e})=>e.typography.bodyBold};
|
|
4372
4372
|
line-height: 24px;
|
|
4373
4373
|
color: #000000;
|
|
4374
|
-
`;var
|
|
4374
|
+
`;var wte=({channelId:e,onClose:t,leaveChat:o,onEditChatMemberClick:r,onMemberSelect:n})=>{let i=jr(e),{chatName:a,chatAvatar:s,type:l}=n1({channel:i}),[c,p]=useState(!1);return J.createElement(QP,null,J.createElement(KP,null,J.createElement(FormattedMessage,{id:"chat.details.header"}),J.createElement(JP,{onClick:t})),J.createElement(XP,null,J.createElement(si,{avatarUrl:s,defaultImage:ao}),J.createElement(RP,null,J.createElement(eS,null,J.createElement(FormattedMessage,{id:"chat.details.chatName"})),J.createElement(tS,null,a))),c?J.createElement(WP,{channelId:e,hideMembers:()=>p(!1),onMemberSelect:n,onEditChatMemberClick:({members:u})=>i&&(r==null?void 0:r({channel:i,members:u}))}):J.createElement(OP,{chatType:l,channelId:e,chatName:a,leaveChat:o,memberCount:i==null?void 0:i.memberCount,showMembers:()=>p(!0)}))},rS=e=>{let t=V("ChatDetails");return t?t(e):J.createElement(wte,d({},e))};var nS=m.div`
|
|
4375
4375
|
display: flex;
|
|
4376
4376
|
height: 100%;
|
|
4377
4377
|
width: 100%;
|
|
4378
|
-
`;var
|
|
4378
|
+
`;var Mte=({name:e})=>J.createElement("div",{"data-qa-anchor":`chat-type-selector-item-${e}`},e),Pte=({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(dP,{"data-qa-anchor":"chat-type",options:r,value:[r[0]],parentContainer:t,renderItem:Mte,onSelect:({value:n})=>e(n)})},aS=Pte;var kte=({children:e})=>J.createElement(mP,null,J.createElement(lP,null,e)),Ete=({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=v=>M(void 0,null,function*(){i(!0);try{let x={displayName:v.displayName,type:(v==null?void 0:v.type)||"community",avatarFileId:(v==null?void 0:v.avatarFileId)||void 0,userIds:v==null?void 0:v.userIds,tags:v==null?void 0:v.tags};yield o==null?void 0:o(x);}finally{i(!1);}}),C=!f||g.length===0||n,y=useRef(null);return J.createElement(pP,null,J.createElement(gP,{className:e,onSubmit:l(h)},J.createElement(fP,{ref:y},J.createElement(kte,null,J.createElement(im,null,J.createElement(y4,null,J.createElement(g4,null,J.createElement(Xc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.type"})))),J.createElement(yP,null,J.createElement(Controller,{name:"type",rules:{required:"Channel type is required"},render:_=>{var {field:P}=_,b=P,x=I(b,["ref"]);return J.createElement(aS,d({parentContainer:y.current},x))},control:p,defaultValue:""}))),J.createElement(im,null,J.createElement(y4,null,J.createElement(g4,null,J.createElement(Xc,null,J.createElement(FormattedMessage,{id:"chatComposer.label.displayName"})))),J.createElement(cP,S(d({},s("displayName")),{placeholder:r({id:"chat_composer.placeholder.displayName"}),"data-qa-anchor":"chat-composer-display-name-input"})),J.createElement(h4,{errors:u,name:"displayName"})),J.createElement(im,null,J.createElement(Controller,{name:"avatarFileId",control:p,render:_=>{var {field:P}=_,b=P,x=I(b,["ref"]);return J.createElement(Vn,d({mimeType:"image/png, image/jpeg"},x))},defaultValue:void 0})),J.createElement(im,null,J.createElement(Xc,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:_=>{var {field:P}=_,b=P,x=I(b,["ref"]);return J.createElement($n,S(d({parentContainer:y.current},x),{"data-qa-anchor":"chat-composer-select-user-input"}))},control:p}),J.createElement(h4,{errors:u,name:"userIds"})))),J.createElement(uP,null,J.createElement(Y,{onClick:v=>{v.preventDefault(),t==null||t();}},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(hP,{"data-qa-anchor":"chat-composer-submit-button",disabled:C},J.createElement(FormattedMessage,{id:"create"})))))},sS=Ete;var Lte=({onClose:e})=>{let{formatMessage:t}=useIntl(),{confirm:o}=ue(),r=Ce(),n=a=>M(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(vt,{"data-qa-anchor":"create-chat-modal",title:t({id:"chat_modal.title"}),onCancel:i},J.createElement(sS,{onSubmit:n,onCancel:i}))},mS=Lte;m.div`
|
|
4379
4379
|
display: flex;
|
|
4380
4380
|
flex-direction: column;
|
|
4381
4381
|
flex-grow: 1;
|
|
@@ -4420,11 +4420,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4420
4420
|
padding-top: 20px;
|
|
4421
4421
|
`};
|
|
4422
4422
|
margin-bottom: 20px;
|
|
4423
|
-
`,
|
|
4423
|
+
`,Vte=m.div`
|
|
4424
4424
|
margin-top: 8px;
|
|
4425
4425
|
color: ${({theme:e})=>e.palette.alert.main};
|
|
4426
4426
|
${({theme:e})=>e.typography.caption}
|
|
4427
|
-
`,gS=e=>J.createElement(ErrorMessage,d({as:
|
|
4427
|
+
`,gS=e=>J.createElement(ErrorMessage,d({as:Vte},e)),yS=m.div`
|
|
4428
4428
|
border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
4429
4429
|
padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
|
|
4430
4430
|
display: flex;
|
|
@@ -4438,6 +4438,6 @@ See https://s-c.sh/2BAXzed for more info.`),window[hm]+=1);var Sm=`url("data:ima
|
|
|
4438
4438
|
min-width: 100px;
|
|
4439
4439
|
margin-left: 0;
|
|
4440
4440
|
`};
|
|
4441
|
-
`;var
|
|
4441
|
+
`;var zte=({children:e})=>J.createElement(cS,null,J.createElement(dS,null,e)),jte=({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=P=>M(void 0,[P],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(He))}catch(b){b instanceof Error&&s.error({content:b.message});}finally{a(!1);}}),v=!h||C.length===0||i,x=useRef(null);return J.createElement(uS,null,J.createElement(CS,{className:t,onSubmit:p(y)},J.createElement(hS,{ref:x},J.createElement(zte,null,J.createElement(fS,null,J.createElement(pS,{className:"required"},J.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),J.createElement(Controller,{name:"userIds",render:b=>{var {field:w}=b,T=w,P=I(T,["ref"]);return J.createElement($n,S(d({parentContainer:x.current},P),{"data-qa-anchor":"edit-chat-members-composer-select-user-input"}))},control:f}),J.createElement(gS,{errors:g,name:"userIds"})))),J.createElement(yS,null,J.createElement(Y,{onClick:_=>{_.preventDefault(),r==null||r();},disabled:h},J.createElement(FormattedMessage,{id:"cancel"})),J.createElement(vS,{"data-qa-anchor":"edit-chat-members-composer-submit-button",disabled:v},J.createElement(FormattedMessage,{id:"save"})))))};function I4(e){let l=e,{channelId:t}=l,o=I(l,["channelId"]),{isLoading:r,channelMembers:n,hasMore:i,loadMore:a}=cm(t),s=n.map(c=>c.userId);return r||t==null?null:J.createElement(jte,S(d({},o),{channelId:t,memberIds:s}))}var $te=({channelId:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=ue(),n=Ce(),i=s=>M(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(vt,{"data-qa-anchor":"edit-chat-members-modal",title:o({id:"editChatMembersModal.title"}),onCancel:a},J.createElement(I4,{channelId:e,onSubmit:i,onCancel:a}))},IS=$te;var Yte=({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,v]=useState(!1),x=()=>C(!0),_=b=>{(s==null?void 0:s.channelId)!==(b==null?void 0:b.channelId)&&(g(),l(b),r==null||r(b));},P=()=>M(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(()=>{function b(){return M(this,null,function*(){return Client.startUnreadSync()})}return b(),()=>{Client.stopUnreadSync();}},[]),useEffect(()=>{t&&_({channelId:t,type:"standard"});},[t]),J.createElement(nS,null,J.createElement(IM,{selectedChannelId:s==null?void 0:s.channelId,membershipFilter:e,onChannelSelect:_,onAddNewChannelClick:()=>{x(),n==null||n();}}),s?J.createElement(vP,{channelId:s.channelId,shouldShowChatDetails:c,onChatDetailsClick:f}):null,c&&s?J.createElement(rS,{channelId:s.channelId,leaveChat:P,onEditChatMemberClick:b=>{v(!0),i==null||i(b);},onMemberSelect:o,onClose:g}):null,h?J.createElement(mS,{onClose:()=>C(!1)}):null,y&&s?J.createElement(IS,{channelId:s==null?void 0:s.channelId,onClose:()=>v(!1)}):null)},Wte=Yte;var MS=(e,t)=>M(void 0,null,function*(){return ChannelRepository.Membership.addMembers(e,t)});var PS=(e,t)=>M(void 0,null,function*(){return ChannelRepository.Membership.removeMembers(e,t)});var Yt=class Yt{constructor(){this.client=null;this.isConnected=!1;this.stateChangeHandler=null;this.disconnectedHandler=null;}static setup(t){if(!Yt.instance){Yt.instance=new Yt;let o=Client.createClient(t.apiKey,t.apiRegion,t!=null&&t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{});Yt.setClient(o);}}static registerDevice(t,o,r,n,i,a,s){return M(this,null,function*(){if(!Yt.instance)throw new Error("AmityUIKitManager must be set up first using the setup method.");Yt.instance.onConnectionStatusChange=i,Yt.instance.onConnected=a,Yt.instance.onDisconnected=s,yield Yt.instance.connectAndLogin(t,o,r,n);})}static setClient(t){if(Yt.instance)Yt.instance.client=t,Yt.instance.isConnected=!0;else throw new Error("AmityUIKitManager must be set up first using the setup method.")}connectAndLogin(t,o,r,n){return M(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=Yt.instance)==null?void 0:t.client)||null}isClientConnected(){return this.isConnected}};Yt.instance=null;var w4=Yt;var Jte=({type:e,targetId:t})=>{let o="story_page",{AmityStoryViewPageBehavior:r}=Rt(),{onBack:n,goToViewStoryPage:i,goToDraftStoryPage:a,onClickCommunity:s}=Ae();return e==="communityFeed"?J.createElement(qc,{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(Yc,{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},_4=Jte;var $r={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 M4(){let e="select_story_target_page",{themeStyles:t}=zt({pageId:e}),{onBack:o}=Ae(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=Jl({queryParams:{sortBy:"displayName",limit:20,membership:"member"}}),{AmityStoryTargetSelectionPage:s}=Rt(),{file:l,setFile:c}=Wo(),[p,u]=useState(null),[f,g]=useState(null),h=v=>{g(v);},C=v=>{v&&v.length>0&&f&&c(v[0]);},y=r.map(v=>J.createElement(FileTrigger,{key:v.communityId,onSelect:C},J.createElement(U,{onPress:()=>h(v.communityId)},J.createElement("div",{className:$r.selectStoryTargetPage__myCommunities},J.createElement("div",{className:$r.selectStoryTargetPage__communityAvatar},J.createElement(Dr,{pageId:e,community:v})),J.createElement(ca,{pageId:e,community:v}),J.createElement("div",null,v.isOfficial&&J.createElement(Xs,null),!v.isPublic&&J.createElement(Ks,null))))));return Xo({onIntersect:()=>{n&&a===!1&&i();},node:p}),useEffect(()=>{var v;l&&((v=s==null?void 0:s.goToStoryCreationPage)==null||v.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:$r.selectStoryTargetPage,style:t},J.createElement("div",{className:$r.selectStoryTargetPage__topBar},J.createElement(yr,{imgClassName:$r.selectStoryTargetPage__closeButton,pageId:e,onPress:o}),J.createElement(pa,{pageId:e,titleClassName:$r.selectStoryTargetPage__title}),J.createElement("div",null)),J.createElement("div",{className:$r.selectStoryTargetPage__line}),J.createElement("div",{className:$r.selectStoryTargetPage__myCommunities},"My Communities"),J.createElement("div",{className:$r.selectStoryTargetPage__myCommunities__container},y),J.createElement("div",{ref:v=>u(v)}))}
|
|
4442
4442
|
|
|
4443
|
-
export { ve as AmityAvatar, Qs as AmityCommentTrayComponent, a4 as AmityDraftStoryPage, Xp as AmityExpandableText, K1 as AmityPostContainer, s3 as AmityPostEngagementBar, Eu as AmityReactionListComponent, Hc as AmitySocialHomePageTab, Ac as AmityStoryTabComponent, M4 as AmityStoryTargetSelectionPage, w4 as AmityUIKitManager,
|
|
4443
|
+
export { ve as AmityAvatar, Qs as AmityCommentTrayComponent, a4 as AmityDraftStoryPage, Xp as AmityExpandableText, K1 as AmityPostContainer, s3 as AmityPostEngagementBar, Eu as AmityReactionListComponent, Hc as AmitySocialHomePageTab, Ac as AmityStoryTabComponent, M4 as AmityStoryTargetSelectionPage, w4 as AmityUIKitManager, Wte as AmityUiKitChat, Bn as AmityUiKitFeed, cO as AmityUiKitProvider, GR as AmityUiKitSocial, _4 as AmityViewStoryPage, MS as amityAddChatMembers, PS as amityRemoveChatMembers, W as useAmityNavigation, Rm as useAmitySDK, le as useAmityUser };
|