@amityco/ulta-ui-kit 1.0.0-beta.18 → 1.0.0-beta.19
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.css +6 -1
- package/dist/esm/index.js +124 -123
- package/dist/index.css +6 -1
- package/dist/index.js +140 -139
- 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
|
@@ -58,10 +58,10 @@ import { useMotionValue, motion } from 'framer-motion';
|
|
|
58
58
|
import { trim } from 'lodash';
|
|
59
59
|
import * as ks from '@radix-ui/react-tabs';
|
|
60
60
|
|
|
61
|
-
var UF=Object.create;var $u=Object.defineProperty,$F=Object.defineProperties,VF=Object.getOwnPropertyDescriptor,jF=Object.getOwnPropertyDescriptors,GF=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,ZF=Object.getPrototypeOf,Vu=Object.prototype.hasOwnProperty,
|
|
61
|
+
var UF=Object.create;var $u=Object.defineProperty,$F=Object.defineProperties,VF=Object.getOwnPropertyDescriptor,jF=Object.getOwnPropertyDescriptors,GF=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,ZF=Object.getPrototypeOf,Vu=Object.prototype.hasOwnProperty,W9=Object.prototype.propertyIsEnumerable;var Q9=(e,t,o)=>t in e?$u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var o in t||(t={}))Vu.call(t,o)&&Q9(e,o,t[o]);if($d)for(var o of $d(t))W9.call(t,o)&&Q9(e,o,t[o]);return e},N=(e,t)=>$F(e,jF(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 P=(e,t)=>{var o={};for(var r in e)Vu.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&$d)for(var r of $d(e))t.indexOf(r)<0&&W9.call(e,r)&&(o[r]=e[r]);return o};var WF=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qF=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of GF(t))!Vu.call(e,n)&&n!==o&&$u(e,n,{get:()=>t[n],enumerable:!(r=VF(t,n))||r.enumerable});return e};var KF=(e,t,o)=>(o=e!=null?UF(ZF(e)):{},qF(!e||!e.__esModule?$u(o,"default",{value:e,enumerable:!0}):o,e));var ju=(e,t,o)=>{if(!t.has(e))throw TypeError("Cannot "+o)};var Uo=(e,t,o)=>(ju(e,t,"read from private field"),o?o.call(e):t.get(e)),Io=(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);},_a=(e,t,o,r)=>(ju(e,t,"write to private field"),t.set(e,o),o);var Ar=(e,t,o)=>(ju(e,t,"access private method"),o);var _=(e,t,o)=>new Promise((r,n)=>{var i=l=>{try{s(o.next(l));}catch(d){n(d);}},a=l=>{try{s(o.throw(l));}catch(d){n(d);}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((o=o.apply(e,t)).next());});var X9=WF((Fue,J9)=>{J9.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),d=0;d<a.length;d++){var p=a[d];if(!l(p))return !1;var u=t[p],g=o[p];if(i=r?r.call(n,u,g,p):void 0,i===!1||i===void 0&&u!==g)return !1}return !0};});var oo=function(){return oo=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},oo.apply(this,arguments)};function Ta(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 q9(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var JF=/^((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)-.*))$/,K9=q9(function(e){return JF.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});KF(X9());var Y9={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 Oi=typeof process!="undefined"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",py="active",Kd="data-styled-version",Q1="6.1.11",t4=`/*!sc*/
|
|
62
62
|
`,Yd=typeof window!="undefined"&&"HTMLElement"in window,oO=!!(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 ey=/invalid hook call/i,Vd=new Set,rO=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.
|
|
63
63
|
`)+`You may see this warning because you've called styled inside another component.
|
|
64
|
-
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];ey.test(a)?(i=!1,Vd.delete(r)):n.apply(void 0,Ta([a],s,!1));},useRef(),i&&!Vd.has(r)&&(console.warn(r),Vd.add(r));}catch(a){ey.test(a.message)&&Vd.delete(r);}finally{console.error=n;}}},Rd=Object.freeze([]),W1=Object.freeze({});function nO(e,t,o){return o===void 0&&(o=W1),e.theme!==o.theme&&e.theme||t||o.theme}var Wu=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"]),iO=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aO=/(^-|-$)/g;function ty(e){return e.replace(iO,"-").replace(aO,"")}var sO=/(a)(d)/gi,jd=52,oy=function(e){return String.fromCharCode(e+(e>25?39:97))};function qu(e){var t,o="";for(t=Math.abs(e);t>jd;t=t/jd|0)o=oy(t%jd)+o;return (oy(t%jd)+o).replace(sO,"$1-$2")}var Gu,uy=5381,Es=function(e,t){for(var o=t.length;o;)e=33*e^t.charCodeAt(--o);return e},gy=function(e){return Es(uy,e)};function fy(e){return qu(gy(e)>>>0)}function yy(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Zu(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var hy=typeof Symbol=="function"&&Symbol.for,Cy=hy?Symbol.for("react.memo"):60115,lO=hy?Symbol.for("react.forward_ref"):60112,mO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cO={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dO=((Gu={})[lO]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gu[Cy]=vy,Gu);function ry(e){return ("type"in(t=e)&&t.type.$$typeof)===Cy?vy:"$$typeof"in e?dO[e.$$typeof]:mO;var t;}var pO=Object.defineProperty,uO=Object.getOwnPropertyNames,ny=Object.getOwnPropertySymbols,gO=Object.getOwnPropertyDescriptor,fO=Object.getPrototypeOf,iy=Object.prototype;function xy(e,t,o){if(typeof t!="string"){if(iy){var r=fO(t);r&&r!==iy&&xy(e,r,o);}var n=uO(t);ny&&(n=n.concat(ny(t)));for(var i=ry(e),a=ry(t),s=0;s<n.length;++s){var l=n[s];if(!(l in cO||o&&o[l]||a&&l in a||i&&l in i)){var d=gO(t,l);try{pO(e,l,d);}catch(p){}}}}return e}function Ls(e){return typeof e=="function"}function o4(e){return typeof e=="object"&&"styledComponentId"in e}function Bs(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function
|
|
64
|
+
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];ey.test(a)?(i=!1,Vd.delete(r)):n.apply(void 0,Ta([a],s,!1));},useRef(),i&&!Vd.has(r)&&(console.warn(r),Vd.add(r));}catch(a){ey.test(a.message)&&Vd.delete(r);}finally{console.error=n;}}},Rd=Object.freeze([]),W1=Object.freeze({});function nO(e,t,o){return o===void 0&&(o=W1),e.theme!==o.theme&&e.theme||t||o.theme}var Wu=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"]),iO=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,aO=/(^-|-$)/g;function ty(e){return e.replace(iO,"-").replace(aO,"")}var sO=/(a)(d)/gi,jd=52,oy=function(e){return String.fromCharCode(e+(e>25?39:97))};function qu(e){var t,o="";for(t=Math.abs(e);t>jd;t=t/jd|0)o=oy(t%jd)+o;return (oy(t%jd)+o).replace(sO,"$1-$2")}var Gu,uy=5381,Es=function(e,t){for(var o=t.length;o;)e=33*e^t.charCodeAt(--o);return e},gy=function(e){return Es(uy,e)};function fy(e){return qu(gy(e)>>>0)}function yy(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Zu(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var hy=typeof Symbol=="function"&&Symbol.for,Cy=hy?Symbol.for("react.memo"):60115,lO=hy?Symbol.for("react.forward_ref"):60112,mO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cO={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dO=((Gu={})[lO]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gu[Cy]=vy,Gu);function ry(e){return ("type"in(t=e)&&t.type.$$typeof)===Cy?vy:"$$typeof"in e?dO[e.$$typeof]:mO;var t;}var pO=Object.defineProperty,uO=Object.getOwnPropertyNames,ny=Object.getOwnPropertySymbols,gO=Object.getOwnPropertyDescriptor,fO=Object.getPrototypeOf,iy=Object.prototype;function xy(e,t,o){if(typeof t!="string"){if(iy){var r=fO(t);r&&r!==iy&&xy(e,r,o);}var n=uO(t);ny&&(n=n.concat(ny(t)));for(var i=ry(e),a=ry(t),s=0;s<n.length;++s){var l=n[s];if(!(l in cO||o&&o[l]||a&&l in a||i&&l in i)){var d=gO(t,l);try{pO(e,l,d);}catch(p){}}}}return e}function Ls(e){return typeof e=="function"}function o4(e){return typeof e=="object"&&"styledComponentId"in e}function Bs(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function h2(e,t){if(e.length===0)return "";for(var o=e[0],r=1;r<e.length;r++)o+=e[r];return o}function q1(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ku(e,t,o){if(o===void 0&&(o=!1),!o&&!q1(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ku(e[r],t[r]);else if(q1(t))for(var r in t)e[r]=Ku(e[r],t[r]);return e}function r4(e,t){Object.defineProperty(e,"toString",{value:t});}var yO=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
65
65
|
|
|
66
66
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
67
67
|
|
|
@@ -102,7 +102,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
102
102
|
|
|
103
103
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
104
104
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
105
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function hO(){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 nr(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(hO.apply(void 0,Ta([yO[e]],t,!1)).trim())}var CO=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 nr(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(t4);return o},e}(),vO=1<<30,Wd=new Map,Jd=new Map,qd=1,Gd=function(e){if(Wd.has(e))return Wd.get(e);for(;Jd.has(qd);)qd++;var t=qd++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>vO))throw nr(16,"".concat(t));return Wd.set(e,t),Jd.set(t,e),t},xO=function(e,t){qd=t+1,Wd.set(e,t),Jd.set(t,e);},bO="style[".concat(Oi,"][").concat(Kd,'="').concat(Q1,'"]'),IO=new RegExp("^".concat(Oi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wO=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);},MO=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(t4),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(IO);if(l){var d=0|parseInt(l[1],10),p=l[2];d!==0&&(xO(p,d),wO(e,p,l[3]),e.getTag().insertRules(d,n)),n.length=0;}else n.push(s);}}};function Ju(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var by=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(Oi,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(Oi,py),r.setAttribute(Kd,Q1);var a=Ju();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},PO=function(){function e(t){this.element=by(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 nr(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}(),_O=function(){function e(t){this.element=by(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}(),TO=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}(),ay=Yd,kO={isServer:!Yd,useCSSOMInjection:!oO},h2=function(){function e(t,o,r){t===void 0&&(t=W1),o===void 0&&(o={});var n=this;this.options=oo(oo({},kO),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Yd&&ay&&(ay=!1,function(i){for(var a=document.querySelectorAll(bO),s=0,l=a.length;s<l;s++){var d=a[s];d&&d.getAttribute(Oi)!==py&&(MO(i,d),d.parentNode&&d.parentNode.removeChild(d));}}(this)),r4(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",d=function(u){var g=function(h){return Jd.get(h)}(u);if(g===void 0)return "continue";var f=i.names.get(g),y=a.getGroup(u);if(f===void 0||y.length===0)return "continue";var v="".concat(Oi,".g").concat(u,'[id="').concat(g,'"]'),C="";f!==void 0&&f.forEach(function(h){h.length>0&&(C+="".concat(h,","));}),l+="".concat(y).concat(v,'{content:"').concat(C,'"}').concat(t4);},p=0;p<s;p++)d(p);return l}(n)});}return e.registerId=function(t){return Gd(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(oo(oo({},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 TO(n):r?new PO(n):new _O(n)}(this.options),new CO(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(Gd(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(Gd(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(Gd(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),SO=/&/g,NO=/^\s*\/\/.*$/gm;function Iy(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=Iy(o.children,t)),o})}function wy(e){var t,o,r,n=W1,i=n.options,a=i===void 0?W1:i,s=n.plugins,l=s===void 0?Rd:s,d=function(g,f,y){return y.startsWith(o)&&y.endsWith(o)&&y.replaceAll(o,"").length>0?".".concat(t):g},p=l.slice();p.push(function(g){g.type===ir.RULESET&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(SO,o).replace(r,d));}),a.prefix&&p.push(ir.prefixer),p.push(ir.stringify);var u=function(g,f,y,v){f===void 0&&(f=""),y===void 0&&(y=""),v===void 0&&(v="&"),t=v,o=f,r=new RegExp("\\".concat(o,"\\b"),"g");var C=g.replace(NO,""),h=ir.compile(y||f?"".concat(y," ").concat(f," { ").concat(C," }"):C);a.namespace&&(h=Iy(h,a.namespace));var x=[];return ir.serialize(h,ir.middleware(p.concat(ir.rulesheet(function(b){return x.push(b)})))),x};return u.hash=l.length?l.reduce(function(g,f){return f.name||nr(15),Es(g,f.name)},uy).toString():"",u}var EO=new h2,Xu=wy(),n4=R.createContext({shouldForwardProp:void 0,styleSheet:EO,stylis:Xu});n4.Consumer;R.createContext(void 0);function Yu(){return useContext(n4)}var Ru=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=Xu);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,r4(this,function(){throw nr(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=Xu),this.name+t.hash},e}(),AO=function(e){return e>="A"&&e<="Z"};function sy(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;AO(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var My=function(e){return e==null||e===!1||e===""},Py=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!My(i)&&(Array.isArray(i)&&i.isCss||Ls(i)?r.push("".concat(sy(n),":"),i,";"):q1(i)?r.push.apply(r,Ta(Ta(["".concat(n," {")],Py(i),!1),["}"],!1)):r.push("".concat(sy(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in Yf||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function ka(e,t,o,r){if(My(e))return [];if(o4(e))return [".".concat(e.styledComponentId)];if(Ls(e)){if(!Ls(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 Ru||q1(n)||n===null||console.error("".concat(yy(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.")),ka(n,t,o,r)}var i;return e instanceof Ru?o?(e.inject(o,r),[e.getName(r)]):[e]:q1(e)?Py(e):Array.isArray(e)?Array.prototype.concat.apply(Rd,e.map(function(a){return ka(a,t,o,r)})):[e.toString()]}function _y(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(Ls(o)&&!o4(o))return !1}return !0}var DO=gy(Q1),HO=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_y(t),this.componentId=o,this.baseHash=Es(DO,o),this.baseStyle=r,h2.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=Bs(n,this.staticRulesId);else {var i=y2(ka(this.rules,t,o,r)),a=qu(Es(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=Bs(n,a),this.staticRulesId=a;}else {for(var l=Es(this.baseHash,r.hash),d="",p=0;p<this.rules.length;p++){var u=this.rules[p];if(typeof u=="string")d+=u,process.env.NODE_ENV!=="production"&&(l=Es(l,u));else if(u){var g=y2(ka(u,t,o,r));l=Es(l,g+p),d+=g;}}if(d){var f=qu(l>>>0);o.hasNameForId(this.componentId,f)||o.insertRules(this.componentId,f,r(d,".".concat(f),void 0,this.componentId)),n=Bs(n,f);}}return n},e}(),Xd=R.createContext(void 0);Xd.Consumer;function Ty(e){var t=R.useContext(Xd),o=useMemo(function(){return function(r,n){if(!r)throw nr(14);if(Ls(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw nr(7);return i}if(Array.isArray(r)||typeof r!="object")throw nr(8);return n?oo(oo({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?R.createElement(Xd.Provider,{value:o},e.children):null}var Qu={},ly=new Set;function FO(e,t,o){var r=o4(e),n=e,i=!Zu(e),a=t.attrs,s=a===void 0?Rd:a,l=t.componentId,d=l===void 0?function(M,I){var w=typeof M!="string"?"sc":ty(M);Qu[w]=(Qu[w]||0)+1;var k="".concat(w,"-").concat(fy(Q1+w+Qu[w]));return I?"".concat(I,"-").concat(k):k}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(M){return Zu(M)?"styled.".concat(M):"Styled(".concat(yy(M),")")}(e):p,g=t.displayName&&t.componentId?"".concat(ty(t.displayName),"-").concat(t.componentId):t.componentId||d,f=r&&n.attrs?n.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&n.shouldForwardProp){var v=n.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;y=function(M,I){return v(M,I)&&C(M,I)};}else y=v;}var h=new HO(o,g,r?n.componentStyle:void 0);function x(M,I){return function(w,k,T){var L=w.attrs,D=w.componentStyle,U=w.defaultProps,j=w.foldedComponentIds,E=w.styledComponentId,V=w.target,G=R.useContext(Xd),q=Yu(),O=w.shouldForwardProp||q.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(E);var H=nO(k,G,U)||W1,z=function(re,fe,pe){for(var Ze,ct=oo(oo({},fe),{className:void 0,theme:pe}),$t=0;$t<re.length;$t+=1){var Vt=Ls(Ze=re[$t])?Ze(ct):Ze;for(var ye in Vt)ct[ye]=ye==="className"?Bs(ct[ye],Vt[ye]):ye==="style"?oo(oo({},ct[ye]),Vt[ye]):Vt[ye];}return fe.className&&(ct.className=Bs(ct.className,fe.className)),ct}(L,k,H),Z=z.as||V,Q={};for(var B in z)z[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&z.theme===H||(B==="forwardedAs"?Q.as=z.forwardedAs:O&&!O(B,Z)||(Q[B]=z[B],O||process.env.NODE_ENV!=="development"||Kf(B)||ly.has(B)||!Wu.has(Z)||(ly.add(B),console.warn('styled-components: it looks like an unknown prop "'.concat(B,'" 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 $=function(re,fe){var pe=Yu(),Ze=re.generateAndInjectStyles(fe,pe.styleSheet,pe.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(Ze),Ze}(D,z);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses($);var ne=Bs(j,E);return $&&(ne+=" "+$),z.className&&(ne+=" "+z.className),Q[Zu(Z)&&!Wu.has(Z)?"class":"className"]=ne,Q.ref=T,createElement(Z,Q)}(b,M,I)}x.displayName=u;var b=R.forwardRef(x);return b.attrs=f,b.componentStyle=h,b.displayName=u,b.shouldForwardProp=y,b.foldedComponentIds=r?Bs(n.foldedComponentIds,n.styledComponentId):"",b.styledComponentId=g,b.target=r?n.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?function(I){for(var w=[],k=1;k<arguments.length;k++)w[k-1]=arguments[k];for(var T=0,L=w;T<L.length;T++)Ku(I,L[T],!0);return I}({},n.defaultProps,M):M;}}),process.env.NODE_ENV!=="production"&&(rO(u,g),b.warnTooManyClasses=function(M,I){var w={},k=!1;return function(T){if(!k&&(w[T]=!0,Object.keys(w).length>=200)){var L=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(L,`.
|
|
105
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function hO(){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 nr(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(hO.apply(void 0,Ta([yO[e]],t,!1)).trim())}var CO=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 nr(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(t4);return o},e}(),vO=1<<30,Wd=new Map,Jd=new Map,qd=1,Gd=function(e){if(Wd.has(e))return Wd.get(e);for(;Jd.has(qd);)qd++;var t=qd++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>vO))throw nr(16,"".concat(t));return Wd.set(e,t),Jd.set(t,e),t},xO=function(e,t){qd=t+1,Wd.set(e,t),Jd.set(t,e);},bO="style[".concat(Oi,"][").concat(Kd,'="').concat(Q1,'"]'),IO=new RegExp("^".concat(Oi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),wO=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);},MO=function(e,t){for(var o,r=((o=t.textContent)!==null&&o!==void 0?o:"").split(t4),n=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(IO);if(l){var d=0|parseInt(l[1],10),p=l[2];d!==0&&(xO(p,d),wO(e,p,l[3]),e.getTag().insertRules(d,n)),n.length=0;}else n.push(s);}}};function Ju(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:null}var by=function(e){var t=document.head,o=e||t,r=document.createElement("style"),n=function(s){var l=Array.from(s.querySelectorAll("style[".concat(Oi,"]")));return l[l.length-1]}(o),i=n!==void 0?n.nextSibling:null;r.setAttribute(Oi,py),r.setAttribute(Kd,Q1);var a=Ju();return a&&r.setAttribute("nonce",a),o.insertBefore(r,i),r},PO=function(){function e(t){this.element=by(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 nr(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}(),_O=function(){function e(t){this.element=by(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}(),TO=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}(),ay=Yd,kO={isServer:!Yd,useCSSOMInjection:!oO},C2=function(){function e(t,o,r){t===void 0&&(t=W1),o===void 0&&(o={});var n=this;this.options=oo(oo({},kO),t),this.gs=o,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Yd&&ay&&(ay=!1,function(i){for(var a=document.querySelectorAll(bO),s=0,l=a.length;s<l;s++){var d=a[s];d&&d.getAttribute(Oi)!==py&&(MO(i,d),d.parentNode&&d.parentNode.removeChild(d));}}(this)),r4(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",d=function(u){var g=function(h){return Jd.get(h)}(u);if(g===void 0)return "continue";var f=i.names.get(g),y=a.getGroup(u);if(f===void 0||y.length===0)return "continue";var v="".concat(Oi,".g").concat(u,'[id="').concat(g,'"]'),C="";f!==void 0&&f.forEach(function(h){h.length>0&&(C+="".concat(h,","));}),l+="".concat(y).concat(v,'{content:"').concat(C,'"}').concat(t4);},p=0;p<s;p++)d(p);return l}(n)});}return e.registerId=function(t){return Gd(t)},e.prototype.reconstructWithOptions=function(t,o){return o===void 0&&(o=!0),new e(oo(oo({},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 TO(n):r?new PO(n):new _O(n)}(this.options),new CO(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(Gd(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(Gd(t),r);},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear();},e.prototype.clearRules=function(t){this.getTag().clearGroup(Gd(t)),this.clearNames(t);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),SO=/&/g,NO=/^\s*\/\/.*$/gm;function Iy(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=Iy(o.children,t)),o})}function wy(e){var t,o,r,n=W1,i=n.options,a=i===void 0?W1:i,s=n.plugins,l=s===void 0?Rd:s,d=function(g,f,y){return y.startsWith(o)&&y.endsWith(o)&&y.replaceAll(o,"").length>0?".".concat(t):g},p=l.slice();p.push(function(g){g.type===ir.RULESET&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(SO,o).replace(r,d));}),a.prefix&&p.push(ir.prefixer),p.push(ir.stringify);var u=function(g,f,y,v){f===void 0&&(f=""),y===void 0&&(y=""),v===void 0&&(v="&"),t=v,o=f,r=new RegExp("\\".concat(o,"\\b"),"g");var C=g.replace(NO,""),h=ir.compile(y||f?"".concat(y," ").concat(f," { ").concat(C," }"):C);a.namespace&&(h=Iy(h,a.namespace));var x=[];return ir.serialize(h,ir.middleware(p.concat(ir.rulesheet(function(b){return x.push(b)})))),x};return u.hash=l.length?l.reduce(function(g,f){return f.name||nr(15),Es(g,f.name)},uy).toString():"",u}var EO=new C2,Xu=wy(),n4=R.createContext({shouldForwardProp:void 0,styleSheet:EO,stylis:Xu});n4.Consumer;R.createContext(void 0);function Yu(){return useContext(n4)}var Ru=function(){function e(t,o){var r=this;this.inject=function(n,i){i===void 0&&(i=Xu);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,r4(this,function(){throw nr(12,String(r.name))});}return e.prototype.getName=function(t){return t===void 0&&(t=Xu),this.name+t.hash},e}(),AO=function(e){return e>="A"&&e<="Z"};function sy(e){for(var t="",o=0;o<e.length;o++){var r=e[o];if(o===1&&r==="-"&&e[0]==="-")return e;AO(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var My=function(e){return e==null||e===!1||e===""},Py=function(e){var t,o,r=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!My(i)&&(Array.isArray(i)&&i.isCss||Ls(i)?r.push("".concat(sy(n),":"),i,";"):q1(i)?r.push.apply(r,Ta(Ta(["".concat(n," {")],Py(i),!1),["}"],!1)):r.push("".concat(sy(n),": ").concat((t=n,(o=i)==null||typeof o=="boolean"||o===""?"":typeof o!="number"||o===0||t in Y9||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function ka(e,t,o,r){if(My(e))return [];if(o4(e))return [".".concat(e.styledComponentId)];if(Ls(e)){if(!Ls(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 Ru||q1(n)||n===null||console.error("".concat(yy(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.")),ka(n,t,o,r)}var i;return e instanceof Ru?o?(e.inject(o,r),[e.getName(r)]):[e]:q1(e)?Py(e):Array.isArray(e)?Array.prototype.concat.apply(Rd,e.map(function(a){return ka(a,t,o,r)})):[e.toString()]}function _y(e){for(var t=0;t<e.length;t+=1){var o=e[t];if(Ls(o)&&!o4(o))return !1}return !0}var DO=gy(Q1),HO=function(){function e(t,o,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_y(t),this.componentId=o,this.baseHash=Es(DO,o),this.baseStyle=r,C2.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=Bs(n,this.staticRulesId);else {var i=h2(ka(this.rules,t,o,r)),a=qu(Es(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=Bs(n,a),this.staticRulesId=a;}else {for(var l=Es(this.baseHash,r.hash),d="",p=0;p<this.rules.length;p++){var u=this.rules[p];if(typeof u=="string")d+=u,process.env.NODE_ENV!=="production"&&(l=Es(l,u));else if(u){var g=h2(ka(u,t,o,r));l=Es(l,g+p),d+=g;}}if(d){var f=qu(l>>>0);o.hasNameForId(this.componentId,f)||o.insertRules(this.componentId,f,r(d,".".concat(f),void 0,this.componentId)),n=Bs(n,f);}}return n},e}(),Xd=R.createContext(void 0);Xd.Consumer;function Ty(e){var t=R.useContext(Xd),o=useMemo(function(){return function(r,n){if(!r)throw nr(14);if(Ls(r)){var i=r(n);if(process.env.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw nr(7);return i}if(Array.isArray(r)||typeof r!="object")throw nr(8);return n?oo(oo({},n),r):r}(e.theme,t)},[e.theme,t]);return e.children?R.createElement(Xd.Provider,{value:o},e.children):null}var Qu={},ly=new Set;function FO(e,t,o){var r=o4(e),n=e,i=!Zu(e),a=t.attrs,s=a===void 0?Rd:a,l=t.componentId,d=l===void 0?function(M,I){var w=typeof M!="string"?"sc":ty(M);Qu[w]=(Qu[w]||0)+1;var k="".concat(w,"-").concat(fy(Q1+w+Qu[w]));return I?"".concat(I,"-").concat(k):k}(t.displayName,t.parentComponentId):l,p=t.displayName,u=p===void 0?function(M){return Zu(M)?"styled.".concat(M):"Styled(".concat(yy(M),")")}(e):p,g=t.displayName&&t.componentId?"".concat(ty(t.displayName),"-").concat(t.componentId):t.componentId||d,f=r&&n.attrs?n.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&n.shouldForwardProp){var v=n.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;y=function(M,I){return v(M,I)&&C(M,I)};}else y=v;}var h=new HO(o,g,r?n.componentStyle:void 0);function x(M,I){return function(w,k,T){var L=w.attrs,D=w.componentStyle,U=w.defaultProps,j=w.foldedComponentIds,E=w.styledComponentId,V=w.target,G=R.useContext(Xd),q=Yu(),O=w.shouldForwardProp||q.shouldForwardProp;process.env.NODE_ENV!=="production"&&useDebugValue(E);var H=nO(k,G,U)||W1,z=function(re,fe,pe){for(var Ze,ct=oo(oo({},fe),{className:void 0,theme:pe}),$t=0;$t<re.length;$t+=1){var Vt=Ls(Ze=re[$t])?Ze(ct):Ze;for(var ye in Vt)ct[ye]=ye==="className"?Bs(ct[ye],Vt[ye]):ye==="style"?oo(oo({},ct[ye]),Vt[ye]):Vt[ye];}return fe.className&&(ct.className=Bs(ct.className,fe.className)),ct}(L,k,H),Z=z.as||V,Q={};for(var B in z)z[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&z.theme===H||(B==="forwardedAs"?Q.as=z.forwardedAs:O&&!O(B,Z)||(Q[B]=z[B],O||process.env.NODE_ENV!=="development"||K9(B)||ly.has(B)||!Wu.has(Z)||(ly.add(B),console.warn('styled-components: it looks like an unknown prop "'.concat(B,'" 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 $=function(re,fe){var pe=Yu(),Ze=re.generateAndInjectStyles(fe,pe.styleSheet,pe.stylis);return process.env.NODE_ENV!=="production"&&useDebugValue(Ze),Ze}(D,z);process.env.NODE_ENV!=="production"&&w.warnTooManyClasses&&w.warnTooManyClasses($);var ne=Bs(j,E);return $&&(ne+=" "+$),z.className&&(ne+=" "+z.className),Q[Zu(Z)&&!Wu.has(Z)?"class":"className"]=ne,Q.ref=T,createElement(Z,Q)}(b,M,I)}x.displayName=u;var b=R.forwardRef(x);return b.attrs=f,b.componentStyle=h,b.displayName=u,b.shouldForwardProp=y,b.foldedComponentIds=r?Bs(n.foldedComponentIds,n.styledComponentId):"",b.styledComponentId=g,b.target=r?n.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=r?function(I){for(var w=[],k=1;k<arguments.length;k++)w[k-1]=arguments[k];for(var T=0,L=w;T<L.length;T++)Ku(I,L[T],!0);return I}({},n.defaultProps,M):M;}}),process.env.NODE_ENV!=="production"&&(rO(u,g),b.warnTooManyClasses=function(M,I){var w={},k=!1;return function(T){if(!k&&(w[T]=!0,Object.keys(w).length>=200)){var L=I?' with the id of "'.concat(I,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(M).concat(L,`.
|
|
106
106
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
107
107
|
Example:
|
|
108
108
|
const Component = styled.div.attrs(props => ({
|
|
@@ -111,15 +111,17 @@ Example:
|
|
|
111
111
|
},
|
|
112
112
|
}))\`width: 100%;\`
|
|
113
113
|
|
|
114
|
-
<Component />`),k=!0,w={};}}}(u,g)),r4(b,function(){return ".".concat(b.styledComponentId)}),i&&xy(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function my(e,t){for(var o=[e[0]],r=0,n=t.length;r<n;r+=1)o.push(t[r],e[r+1]);return o}var cy=function(e){return Object.assign(e,{isCss:!0})};function K(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(Ls(e)||q1(e))return cy(ka(my(Rd,Ta([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ka(r):cy(ka(my(r,t)))}function e4(e,t,o){if(o===void 0&&(o=W1),!t)throw nr(1,t);var r=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,o,K.apply(void 0,Ta([n],i,!1)))};return r.attrs=function(n){return e4(e,t,oo(oo({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},r.withConfig=function(n){return e4(e,t,oo(oo({},o),n))},r}var ky=function(e){return e4(FO,e)},m=ky;Wu.forEach(function(e){m[e]=ky(e);});function Sa(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=
|
|
114
|
+
<Component />`),k=!0,w={};}}}(u,g)),r4(b,function(){return ".".concat(b.styledComponentId)}),i&&xy(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function my(e,t){for(var o=[e[0]],r=0,n=t.length;r<n;r+=1)o.push(t[r],e[r+1]);return o}var cy=function(e){return Object.assign(e,{isCss:!0})};function K(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(Ls(e)||q1(e))return cy(ka(my(Rd,Ta([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ka(r):cy(ka(my(r,t)))}function e4(e,t,o){if(o===void 0&&(o=W1),!t)throw nr(1,t);var r=function(n){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,o,K.apply(void 0,Ta([n],i,!1)))};return r.attrs=function(n){return e4(e,t,oo(oo({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},r.withConfig=function(n){return e4(e,t,oo(oo({},o),n))},r}var ky=function(e){return e4(FO,e)},m=ky;Wu.forEach(function(e){m[e]=ky(e);});function Sa(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=h2(K.apply(void 0,Ta([e],t,!1))),n=fy(r);return new Ru(n,r)}process.env.NODE_ENV!=="production"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
115
115
|
Perhaps you're looking to import 'styled-components/native'?
|
|
116
116
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Zd="__sc-".concat(Oi,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window!="undefined"&&(window[Zd]||(window[Zd]=0),window[Zd]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
117
117
|
|
|
118
|
-
See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' rx='20' fill='%23D9E5FC'/%3E%3Cpath d='M28 21C28 20.4688 27.5312 20 27 20H22C21.4375 20 21 20.4688 21 21V26C21 26.5625 21.4375 27 22 27H27C27.5312 27 28 26.5625 28 26V21ZM14 19C11.7812 19 10 20.8125 10 23C10 25.2188 11.7812 27 14 27C16.1875 27 18 25.2188 18 23C18 20.8125 16.1875 19 14 19ZM26.9688 17C27.75 17 28.25 16.1875 27.8438 15.5L24.875 10.5C24.4688 9.84375 23.5 9.84375 23.0938 10.5L20.125 15.5C19.7188 16.1875 20.2188 17 21 17H26.9688Z' fill='white'/%3E%3C/svg%3E%0A");`;var ar=`url(
|
|
118
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' rx='20' fill='%23D9E5FC'/%3E%3Cpath d='M28 21C28 20.4688 27.5312 20 27 20H22C21.4375 20 21 20.4688 21 21V26C21 26.5625 21.4375 27 22 27H27C27.5312 27 28 26.5625 28 26V21ZM14 19C11.7812 19 10 20.8125 10 23C10 25.2188 11.7812 27 14 27C16.1875 27 18 25.2188 18 23C18 20.8125 16.1875 19 14 19ZM26.9688 17C27.75 17 28.25 16.1875 27.8438 15.5L24.875 10.5C24.4688 9.84375 23.5 9.84375 23.0938 10.5L20.125 15.5C19.7188 16.1875 20.2188 17 21 17H26.9688Z' fill='white'/%3E%3C/svg%3E%0A");`;var ar=`url('data:image/svg+xml;charset=UTF-8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="Avatar"><rect id="Rectangle 67" width="32" height="32" rx="16" fill="%23F26B1C"/><g id="Vector"><path d="M18.5004 10.505C17.9079 9.92561 17.1044 9.6001 16.2666 9.6001C15.4288 9.6001 14.6253 9.92561 14.0329 10.505C13.4405 11.0845 13.1077 11.8703 13.1077 12.6898C13.1077 13.5092 13.4405 14.295 14.0329 14.8745C14.6253 15.4539 15.4288 15.7794 16.2666 15.7794C17.1044 15.7794 17.9079 15.4539 18.5004 14.8745C19.0928 14.295 19.4256 13.5092 19.4256 12.6898C19.4256 11.8703 19.0928 11.0845 18.5004 10.505Z" fill="white"/><path d="M16.2666 17.5449C13.0264 17.5449 10.4 19.028 10.4 20.8553V22.4001H22.1333V20.8553C22.1333 19.028 19.5068 17.5449 16.2666 17.5449Z" fill="white"/></g></g></svg>');
|
|
119
|
+
`;var Ne=`url('data:image/svg+xml;charset=UTF-8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="Avatar"><rect id="Rectangle 67" width="32" height="32" rx="16" fill="%23F26B1C"/><g id="Vector"><path d="M18.5004 10.505C17.9079 9.92561 17.1044 9.6001 16.2666 9.6001C15.4288 9.6001 14.6253 9.92561 14.0329 10.505C13.4405 11.0845 13.1077 11.8703 13.1077 12.6898C13.1077 13.5092 13.4405 14.295 14.0329 14.8745C14.6253 15.4539 15.4288 15.7794 16.2666 15.7794C17.1044 15.7794 17.9079 15.4539 18.5004 14.8745C19.0928 14.295 19.4256 13.5092 19.4256 12.6898C19.4256 11.8703 19.0928 11.0845 18.5004 10.505Z" fill="white"/><path d="M16.2666 17.5449C13.0264 17.5449 10.4 19.028 10.4 20.8553V22.4001H22.1333V20.8553C22.1333 19.028 19.5068 17.5449 16.2666 17.5449Z" fill="white"/></g></g></svg>');
|
|
120
|
+
`;var zO=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512"},e),R.createElement("path",{fill:"currentColor",d:`M229.9 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L94.569 282H436c6.627
|
|
119
121
|
0 12-5.373 12-12v-28c0-6.627-5.373-12-12-12H94.569l155.13-155.13c4.686-4.686
|
|
120
122
|
4.686-12.284 0-16.971L229.9 38.101c-4.686-4.686-12.284-4.686-16.971 0L3.515
|
|
121
123
|
247.515c-4.686 4.686-4.686 12.284 0 16.971L212.929 473.9c4.686 4.686 12.284
|
|
122
|
-
4.686 16.971-.001z`})),t0=zO;var UO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M1.46094 6.33203C1.63281 6.33203 1.77344 6.26172 1.97656 6.16406L6.82422 3.82812C7.18359 3.65234 7.33594 3.45312 7.33594 3.18359C7.33594 2.91406 7.18359 2.71484 6.82422 2.53906L1.97656 0.203125C1.77344 0.105469 1.62891 0.0351562 1.45703 0.0351562C1.12109 0.0351562 0.863281 0.292969 0.863281 0.714844L0.867188 5.65625C0.867188 6.07422 1.125 6.33203 1.46094 6.33203Z",fill:"#636878"})),o0=UO;var $O=o=>{var r=o,{color:e="#A5A9B5"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.createElement("path",{d:"M39.5107 25.2362C38.8869 25.2362 38.2747 25.3041 37.6818 25.4335C39.2923 23.0401 40.2282 20.2639 40.3918 17.3437H40.9769C41.4947 17.3437 41.9144 16.9239 41.9144 16.4062C41.9144 15.8884 41.4947 15.4687 40.9769 15.4687H40.3906C39.8967 6.85584 32.7344 0 24 0C15.2657 0 8.10337 6.85584 7.60959 15.4687H7.02319C6.50541 15.4687 6.08569 15.8884 6.08569 16.4062C6.08569 16.9239 6.50541 17.3437 7.02319 17.3437H7.60819C7.83019 21.3069 9.47447 25.0053 12.2966 27.8409L18.5743 34.1488V40.8825C17.1898 39.7625 15.4512 39.1327 13.6085 39.1327C11.1596 39.1327 8.89809 40.2416 7.40456 42.1379C6.75394 41.8646 6.05334 41.7226 5.33981 41.7226C2.39541 41.7227 0 44.1181 0 47.0625C0 47.5802 0.419719 48 0.9375 48H26.7872C28.2551 48 29.4494 46.8058 29.4494 45.3378V34.6875H33.7843C34.3021 34.6875 34.7218 34.2677 34.7218 33.75C34.7218 33.2323 34.3021 32.8125 33.7843 32.8125H26.8347C27.2541 31.151 28.7614 29.9174 30.5513 29.9174C31.2803 29.9174 31.9902 30.1238 32.6043 30.5145C32.8151 30.6486 33.0706 30.6929 33.3142 30.6379C33.5579 30.5827 33.7694 30.4328 33.9021 30.2212C35.1218 28.2738 37.2186 27.1112 39.5108 27.1112C42.8483 27.1112 45.6163 29.5958 46.0623 32.8125H42.2219C41.7041 32.8125 41.2844 33.2323 41.2844 33.75C41.2844 34.2677 41.7041 34.6875 42.2219 34.6875H47.0619C47.5728 34.6875 47.9887 34.2787 47.9993 33.7697C47.9997 33.7551 48.0001 33.7403 48.0001 33.7254C48 29.0445 44.1917 25.2362 39.5107 25.2362ZM24.8224 32.8125H23.1776L21.2122 26.8848C20.6679 25.2436 20.2627 23.2201 20.0246 21.0234C21.093 21.9445 22.482 22.5035 24 22.5035C25.518 22.5035 26.907 21.9446 27.9754 21.0234C27.7372 23.22 27.332 25.2435 26.7878 26.8848L24.8224 32.8125ZM24 1.875C24.6738 1.875 25.8003 2.89453 26.7577 5.76816C27.6264 8.37581 28.1352 11.791 28.2102 15.4687H19.79C19.8649 11.7909 20.3738 8.37581 21.2425 5.76806C22.1997 2.89463 23.3262 1.875 24 1.875ZM28.116 17.3437C27.6883 19.2219 26.0059 20.6284 24 20.6284C21.9941 20.6284 20.3117 19.2219 19.884 17.3437H28.116ZM38.5117 15.4687H30.0854C30.009 11.5909 29.466 7.96575 28.5365 5.17547C28.1202 3.92606 27.6695 2.96681 27.2081 2.23219C33.39 3.62953 38.091 8.97506 38.5117 15.4687ZM38.4354 17.3437C38.0078 19.2219 36.3253 20.6284 34.3194 20.6284C32.3136 20.6284 30.6311 19.2219 30.2034 17.3437H38.4354ZM20.7919 2.23228C20.3304 2.96691 19.8798 3.92616 19.4635 5.17556C18.534 7.96575 17.991 11.591 17.9146 15.4688H9.48825C9.909 8.97506 14.61 3.62953 20.7919 2.23228ZM17.7966 17.3437C17.3689 19.2219 15.6864 20.6284 13.6806 20.6284C11.6747 20.6284 9.99225 19.2219 9.56456 17.3437H17.7966ZM10.3957 21.5388C11.3445 22.1482 12.4716 22.5034 13.6806 22.5034C15.4158 22.5034 16.9827 21.7735 18.0941 20.6063C18.3314 23.1704 18.7869 25.5278 19.4325 27.4748L21.2022 32.8125H19.8896L13.6257 26.5184C12.1913 25.0772 11.1009 23.3838 10.3957 21.5388ZM5.33981 43.5977C5.99878 43.5977 6.6405 43.7843 7.19569 44.1375C7.40644 44.2716 7.662 44.316 7.90556 44.2609C8.14922 44.2057 8.36072 44.0557 8.49337 43.8442C9.60572 42.0681 11.5179 41.0077 13.6085 41.0077C15.6067 41.0077 17.445 41.9782 18.5743 43.6152V45.3379C18.5743 45.6118 18.6159 45.8762 18.6932 46.1251H2.00391C2.41369 44.6685 3.75403 43.5977 5.33981 43.5977ZM27.5744 45.3378C27.5744 45.7718 27.2213 46.125 26.7872 46.125H21.2366C20.8026 46.125 20.4494 45.7718 20.4494 45.3378V40.5H27.5744V45.3378ZM27.5744 34.6875V38.625H20.4494V34.6875H27.5744ZM28.2125 28.5457L28.5675 27.4748C29.2131 25.5278 29.6685 23.1704 29.9059 20.6063C31.0173 21.7736 32.5842 22.5034 34.3194 22.5034C35.5285 22.5034 36.6555 22.1482 37.6043 21.5388C36.899 23.3837 35.8087 25.0771 34.3743 26.5184L32.5115 28.3901C31.887 28.1615 31.2246 28.0423 30.5513 28.0423C29.7181 28.0424 28.9268 28.2233 28.2125 28.5457Z",fill:e}))},C2=$O;var VO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.125 20C17.9531 20 19.5 18.5234 19.5 16.625C19.5 14.7969 17.9531 13.25 16.125 13.25C14.2266 13.25 12.75 14.7969 12.75 16.625C12.75 18.5234 14.2266 20 16.125 20ZM16.125 15.5C16.6875 15.5 17.25 16.0625 17.25 16.625C17.25 17.2578 16.6875 17.75 16.125 17.75C15.4922 17.75 15 17.2578 15 16.625C15 16.0625 15.4922 15.5 16.125 15.5ZM37.5 8.75H10.5C9.23438 8.75 8.25 9.80469 8.25 11V38C8.25 39.2656 9.23438 40.25 10.5 40.25H37.5C38.6953 40.25 39.75 39.2656 39.75 38V11C39.75 9.80469 38.6953 8.75 37.5 8.75ZM37.5 38H10.5V32.375H37.5V38ZM14.2266 30.125L17.8828 25.2734L20.6953 29L19.8516 30.125H14.2266ZM22.6641 30.125L28.0078 23.0234L33.3516 30.125H22.6641ZM37.5 30.125H36.1641L28.9219 20.4922C28.4297 19.9297 27.5156 19.9297 27.0938 20.4922L22.1016 27.1719L18.7969 22.7422C18.3047 22.1797 17.3906 22.1797 16.9688 22.7422L11.4141 30.125H10.5V11H37.5V30.125Z",fill:"#6E6E6E"})),i4=VO;var jO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M10.5 11.9844L9.72656 11.2109C9.65625 11.0703 9.44531 11 9.30469 11C9.16406 11 9.02344 11.0703 8.88281 11.2109C5.57812 14.7969 3.75 19.5078 3.75 24.5C3.75 29.4922 5.57812 34.2031 8.88281 37.8594C9.02344 38 9.16406 38.0703 9.30469 38.0703C9.44531 38.0703 9.65625 38 9.72656 37.8594L10.5 37.0859C10.6406 36.9453 10.7109 36.8047 10.7109 36.6641C10.7109 36.5234 10.6406 36.3828 10.5 36.2422C7.61719 33.0781 6 28.9297 6 24.5C6 20.1406 7.61719 15.9922 10.5 12.8281C10.6406 12.6875 10.7109 12.5469 10.7109 12.4062C10.7109 12.2656 10.6406 12.125 10.5 11.9844ZM16.4062 16.8359L15.6328 16.0625C15.4922 15.9219 15.3516 15.9219 15.2109 15.9219C15.0703 15.9219 14.9297 15.9219 14.7891 16.0625C12.8203 18.3125 11.625 21.2656 11.625 24.5C11.625 27.8047 12.8203 30.7578 14.7891 33.0078C14.9297 33.0781 15.0703 33.1484 15.2109 33.1484C15.3516 33.1484 15.4922 33.1484 15.6328 33.0078L16.4062 32.1641C16.5469 32.0938 16.6172 31.9531 16.6172 31.8125C16.6172 31.6719 16.5469 31.5312 16.4062 31.3906C14.7891 29.5625 13.875 27.1719 13.875 24.5703C13.875 21.8984 14.7891 19.5078 16.4062 17.6797C16.5469 17.5391 16.5469 17.3984 16.5469 17.2578C16.5469 17.1172 16.5469 16.9766 16.4062 16.8359ZM39.0469 11.2109C38.9062 11.0703 38.7656 11 38.625 11C38.4844 11 38.2734 11.0703 38.2031 11.2109L37.4297 11.9844C37.2891 12.125 37.2188 12.2656 37.2188 12.4062C37.2188 12.5469 37.2891 12.6875 37.4297 12.8281C40.3828 15.9922 42 20.1406 42 24.5C42 28.9297 40.3828 33.0781 37.4297 36.2422C37.2891 36.3828 37.2188 36.5234 37.2188 36.6641C37.2188 36.8047 37.2891 36.9453 37.4297 37.0859L38.2031 37.8594C38.2734 38 38.4844 38.0703 38.625 38.0703C38.7656 38.0703 38.9062 38 39.0469 37.8594C42.3516 34.2031 44.25 29.4922 44.25 24.5C44.25 19.5078 42.3516 14.7969 39.0469 11.2109ZM24 20C21.4688 20 19.5 22.0391 19.5 24.5C19.5 27.0312 21.4688 29 24 29C26.4609 29 28.5 27.0312 28.5 24.5C28.5 22.0391 26.4609 20 24 20ZM24 26.75C22.7344 26.75 21.75 25.7656 21.75 24.5C21.75 23.3047 22.7344 22.25 24 22.25C25.1953 22.25 26.25 23.3047 26.25 24.5C26.25 25.7656 25.1953 26.75 24 26.75ZM32.2969 16.0625L31.5234 16.8359C31.3828 16.9766 31.3125 17.1172 31.3125 17.2578C31.3125 17.3984 31.3828 17.5391 31.5234 17.6797C33.1406 19.5078 34.0547 21.8984 34.0547 24.5C34.0547 27.1719 33.1406 29.5625 31.5234 31.3906C31.3828 31.5312 31.3125 31.6719 31.3125 31.8125C31.3125 31.9531 31.3828 32.0938 31.5234 32.2344L32.2969 33.0078C32.4375 33.1484 32.5781 33.2188 32.7188 33.2188C32.8594 33.2188 33 33.1484 33.1406 33.0078C35.1094 30.7578 36.3047 27.8047 36.3047 24.5703C36.3047 21.2656 35.1094 18.3125 33.1406 16.0625C33 15.9922 32.8594 15.9219 32.7188 15.9219C32.5781 15.9219 32.4375 15.9219 32.2969 16.0625Z"})),a4=jO;var GO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M39.6797 17.75L39.75 20L39.6797 38L33 33.3594V24.7109L39.6797 20V17.75C39.2578 17.8203 38.7656 17.9609 38.4141 18.1719L33 21.9688V21.125C33 19.2969 31.4531 17.75 29.625 17.75H12.75V14.375C12.75 12.5469 14.2266 11 16.125 11H27.9375C28.2188 11 28.5 10.7891 28.5 10.4375V9.3125C28.5 9.03125 28.2188 8.75 27.9375 8.75H16.125C12.9609 8.75 10.5 11.2812 10.5 14.375V17.75H9.375C7.47656 17.75 6 19.2969 6 21.125V36.875C6 38.7734 7.47656 40.25 9.375 40.25H29.625C31.4531 40.25 33 38.7734 33 36.875V36.1016L38.4141 39.8984C38.7656 40.1094 39.2578 40.25 39.6797 40.25C40.875 40.25 42 39.3359 42 38.0703V20C42 18.6641 40.875 17.75 39.6797 17.75ZM30.75 36.875C30.75 37.5078 30.1875 38 29.625 38H9.375C8.74219 38 8.25 37.5078 8.25 36.875V21.125C8.25 20.5625 8.74219 20 9.375 20H29.625C30.1875 20 30.75 20.5625 30.75 21.125V36.875ZM28.0078 22.25H10.9219C10.6406 22.3203 10.5 22.4609 10.5 22.7422V24.0781C10.5 24.3594 10.6406 24.5 10.9219 24.5H28.0078C28.2891 24.5 28.4297 24.3594 28.5 24.0781V22.7422C28.4297 22.4609 28.2891 22.3203 28.0078 22.25Z"})),s4=GO;var ZO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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:"#6E6E6E"})),l4=ZO;var QO=e=>R.createElement("svg",c({width:"48",height:"32",viewBox:"0 0 48 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M46 0H7.33333C6.16667 0 5.33333 0.916667 5.33333 2V2.66667H2C0.833333 2.66667 0 3.58333 0 4.66667V28C0 30.25 1.75 32 4 32H46C47.0833 32 48 31.1667 48 30V2C48 0.916667 47.0833 0 46 0ZM2.66667 28V5.33333H5.33333V28C5.33333 28.75 4.66667 29.3333 4 29.3333C3.25 29.3333 2.66667 28.75 2.66667 28ZM45.3333 29.3333H7.75C7.83333 29 8 28.4167 8 28.0833V28V2.66667H45.3333V29.3333Z",fill:"#A5A9B5"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0231 10.3277L20.0159 10.3366L20.0094 10.3459C19.8498 10.575 19.7771 10.8433 19.8232 11.1079C19.8691 11.3716 20.0275 11.5989 20.2679 11.7554L21.0576 12.3368L21.0728 12.3454C21.498 12.5896 22.0853 12.5106 22.426 12.103L22.4273 12.1014C22.8645 11.5715 23.2846 11.1881 23.7898 10.9333C24.2937 10.6791 24.9063 10.5409 25.7453 10.5409C28.061 10.5409 28.9327 11.6808 28.9327 12.5977C28.9327 13.0993 28.7034 13.4644 28.3052 13.8072C27.9932 14.0759 27.6072 14.3074 27.1754 14.5663L27.1754 14.5664C27.0311 14.6529 26.8817 14.7425 26.7282 14.8376C26.1341 15.2057 25.5066 15.6423 25.0306 16.2624C24.548 16.891 24.2326 17.6923 24.2326 18.7681C24.2326 19.3702 24.7618 19.7677 25.2632 19.7677H26.2274C26.8061 19.7677 27.258 19.3542 27.258 18.7681C27.258 18.2649 27.489 17.8879 27.8895 17.5308C28.2112 17.244 28.6129 16.9941 29.0603 16.7157L29.0603 16.7157C29.1919 16.6339 29.3274 16.5496 29.466 16.4612C30.0584 16.0832 30.684 15.6419 31.1589 15.0321C31.6406 14.4135 31.9582 13.6337 31.9582 12.5977C31.9582 11.0185 31.2094 9.76304 30.0556 8.91183C28.9084 8.0656 27.3647 7.61914 25.7453 7.61914C24.3484 7.61914 23.2438 7.88697 22.3194 8.36743C21.3964 8.84713 20.6724 9.52886 20.0231 10.3277ZM21.2259 12.0787L20.4426 11.5021C20.0944 11.2799 20.0256 10.8973 20.2363 10.5603C20.0258 10.8973 20.0947 11.2797 20.4427 11.5018L21.2261 12.0785C21.5274 12.2515 21.9492 12.1938 22.1902 11.9055C23.0941 10.8098 23.998 10.2331 25.7455 10.2331C28.1558 10.2331 29.2404 11.4441 29.2404 12.5975C29.2404 12.9349 29.1534 13.22 29.003 13.4709C29.1533 13.22 29.2403 12.935 29.2403 12.5977C29.2403 11.4444 28.1556 10.2334 25.7453 10.2334C23.9978 10.2334 23.0939 10.8101 22.1901 11.9057C21.949 12.1941 21.5272 12.2517 21.2259 12.0787ZM25.0838 16.7238C24.7512 17.2542 24.5401 17.9128 24.5401 18.7681C24.5401 19.1718 24.9017 19.4601 25.2632 19.4601H26.2274C26.4954 19.4601 26.7148 19.3437 26.8391 19.1552C26.7148 19.3435 26.4955 19.4599 26.2275 19.4599H25.2634C24.9018 19.4599 24.5403 19.1715 24.5403 18.7678C24.5403 17.9127 24.7513 17.2542 25.0838 16.7238ZM27.2171 17.8382C27.5662 17.2823 28.2162 16.8782 28.9129 16.4451C29.6965 15.9578 30.5394 15.4338 31.0797 14.6156C30.5394 15.4336 29.6966 15.9576 28.913 16.4448C28.2162 16.878 27.5662 17.2822 27.2171 17.8382ZM25.8056 20.5366C24.6772 20.5366 23.8108 21.4184 23.8108 22.4588C23.8108 23.5639 24.6844 24.381 25.8056 24.381C26.8591 24.381 27.8003 23.5709 27.8003 22.4588C27.8003 21.4113 26.8664 20.5366 25.8056 20.5366ZM24.363 21.6208C24.2067 21.868 24.1183 22.1563 24.1183 22.4588C24.1183 23.3815 24.8414 24.0735 25.8056 24.0735C26.4076 24.0735 26.9562 23.7665 27.2554 23.2888C26.9561 23.7663 26.4077 24.0732 25.8057 24.0732C24.8416 24.0732 24.1185 23.3812 24.1185 22.4585C24.1185 22.1562 24.2068 21.8679 24.363 21.6208Z",fill:"#A5A9B5"})),c4=QO;var WO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:`M6.6875 9.3125C9.00195 9.3125 10.9062 7.4375 10.9062 5.09375C10.9062 2.7793 9.00195
|
|
124
|
+
4.686 16.971-.001z`})),t0=zO;var UO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M1.46094 6.33203C1.63281 6.33203 1.77344 6.26172 1.97656 6.16406L6.82422 3.82812C7.18359 3.65234 7.33594 3.45312 7.33594 3.18359C7.33594 2.91406 7.18359 2.71484 6.82422 2.53906L1.97656 0.203125C1.77344 0.105469 1.62891 0.0351562 1.45703 0.0351562C1.12109 0.0351562 0.863281 0.292969 0.863281 0.714844L0.867188 5.65625C0.867188 6.07422 1.125 6.33203 1.46094 6.33203Z",fill:"#636878"})),o0=UO;var $O=o=>{var r=o,{color:e="#A5A9B5"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.createElement("path",{d:"M39.5107 25.2362C38.8869 25.2362 38.2747 25.3041 37.6818 25.4335C39.2923 23.0401 40.2282 20.2639 40.3918 17.3437H40.9769C41.4947 17.3437 41.9144 16.9239 41.9144 16.4062C41.9144 15.8884 41.4947 15.4687 40.9769 15.4687H40.3906C39.8967 6.85584 32.7344 0 24 0C15.2657 0 8.10337 6.85584 7.60959 15.4687H7.02319C6.50541 15.4687 6.08569 15.8884 6.08569 16.4062C6.08569 16.9239 6.50541 17.3437 7.02319 17.3437H7.60819C7.83019 21.3069 9.47447 25.0053 12.2966 27.8409L18.5743 34.1488V40.8825C17.1898 39.7625 15.4512 39.1327 13.6085 39.1327C11.1596 39.1327 8.89809 40.2416 7.40456 42.1379C6.75394 41.8646 6.05334 41.7226 5.33981 41.7226C2.39541 41.7227 0 44.1181 0 47.0625C0 47.5802 0.419719 48 0.9375 48H26.7872C28.2551 48 29.4494 46.8058 29.4494 45.3378V34.6875H33.7843C34.3021 34.6875 34.7218 34.2677 34.7218 33.75C34.7218 33.2323 34.3021 32.8125 33.7843 32.8125H26.8347C27.2541 31.151 28.7614 29.9174 30.5513 29.9174C31.2803 29.9174 31.9902 30.1238 32.6043 30.5145C32.8151 30.6486 33.0706 30.6929 33.3142 30.6379C33.5579 30.5827 33.7694 30.4328 33.9021 30.2212C35.1218 28.2738 37.2186 27.1112 39.5108 27.1112C42.8483 27.1112 45.6163 29.5958 46.0623 32.8125H42.2219C41.7041 32.8125 41.2844 33.2323 41.2844 33.75C41.2844 34.2677 41.7041 34.6875 42.2219 34.6875H47.0619C47.5728 34.6875 47.9887 34.2787 47.9993 33.7697C47.9997 33.7551 48.0001 33.7403 48.0001 33.7254C48 29.0445 44.1917 25.2362 39.5107 25.2362ZM24.8224 32.8125H23.1776L21.2122 26.8848C20.6679 25.2436 20.2627 23.2201 20.0246 21.0234C21.093 21.9445 22.482 22.5035 24 22.5035C25.518 22.5035 26.907 21.9446 27.9754 21.0234C27.7372 23.22 27.332 25.2435 26.7878 26.8848L24.8224 32.8125ZM24 1.875C24.6738 1.875 25.8003 2.89453 26.7577 5.76816C27.6264 8.37581 28.1352 11.791 28.2102 15.4687H19.79C19.8649 11.7909 20.3738 8.37581 21.2425 5.76806C22.1997 2.89463 23.3262 1.875 24 1.875ZM28.116 17.3437C27.6883 19.2219 26.0059 20.6284 24 20.6284C21.9941 20.6284 20.3117 19.2219 19.884 17.3437H28.116ZM38.5117 15.4687H30.0854C30.009 11.5909 29.466 7.96575 28.5365 5.17547C28.1202 3.92606 27.6695 2.96681 27.2081 2.23219C33.39 3.62953 38.091 8.97506 38.5117 15.4687ZM38.4354 17.3437C38.0078 19.2219 36.3253 20.6284 34.3194 20.6284C32.3136 20.6284 30.6311 19.2219 30.2034 17.3437H38.4354ZM20.7919 2.23228C20.3304 2.96691 19.8798 3.92616 19.4635 5.17556C18.534 7.96575 17.991 11.591 17.9146 15.4688H9.48825C9.909 8.97506 14.61 3.62953 20.7919 2.23228ZM17.7966 17.3437C17.3689 19.2219 15.6864 20.6284 13.6806 20.6284C11.6747 20.6284 9.99225 19.2219 9.56456 17.3437H17.7966ZM10.3957 21.5388C11.3445 22.1482 12.4716 22.5034 13.6806 22.5034C15.4158 22.5034 16.9827 21.7735 18.0941 20.6063C18.3314 23.1704 18.7869 25.5278 19.4325 27.4748L21.2022 32.8125H19.8896L13.6257 26.5184C12.1913 25.0772 11.1009 23.3838 10.3957 21.5388ZM5.33981 43.5977C5.99878 43.5977 6.6405 43.7843 7.19569 44.1375C7.40644 44.2716 7.662 44.316 7.90556 44.2609C8.14922 44.2057 8.36072 44.0557 8.49337 43.8442C9.60572 42.0681 11.5179 41.0077 13.6085 41.0077C15.6067 41.0077 17.445 41.9782 18.5743 43.6152V45.3379C18.5743 45.6118 18.6159 45.8762 18.6932 46.1251H2.00391C2.41369 44.6685 3.75403 43.5977 5.33981 43.5977ZM27.5744 45.3378C27.5744 45.7718 27.2213 46.125 26.7872 46.125H21.2366C20.8026 46.125 20.4494 45.7718 20.4494 45.3378V40.5H27.5744V45.3378ZM27.5744 34.6875V38.625H20.4494V34.6875H27.5744ZM28.2125 28.5457L28.5675 27.4748C29.2131 25.5278 29.6685 23.1704 29.9059 20.6063C31.0173 21.7736 32.5842 22.5034 34.3194 22.5034C35.5285 22.5034 36.6555 22.1482 37.6043 21.5388C36.899 23.3837 35.8087 25.0771 34.3743 26.5184L32.5115 28.3901C31.887 28.1615 31.2246 28.0423 30.5513 28.0423C29.7181 28.0424 28.9268 28.2233 28.2125 28.5457Z",fill:e}))},v2=$O;var VO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.125 20C17.9531 20 19.5 18.5234 19.5 16.625C19.5 14.7969 17.9531 13.25 16.125 13.25C14.2266 13.25 12.75 14.7969 12.75 16.625C12.75 18.5234 14.2266 20 16.125 20ZM16.125 15.5C16.6875 15.5 17.25 16.0625 17.25 16.625C17.25 17.2578 16.6875 17.75 16.125 17.75C15.4922 17.75 15 17.2578 15 16.625C15 16.0625 15.4922 15.5 16.125 15.5ZM37.5 8.75H10.5C9.23438 8.75 8.25 9.80469 8.25 11V38C8.25 39.2656 9.23438 40.25 10.5 40.25H37.5C38.6953 40.25 39.75 39.2656 39.75 38V11C39.75 9.80469 38.6953 8.75 37.5 8.75ZM37.5 38H10.5V32.375H37.5V38ZM14.2266 30.125L17.8828 25.2734L20.6953 29L19.8516 30.125H14.2266ZM22.6641 30.125L28.0078 23.0234L33.3516 30.125H22.6641ZM37.5 30.125H36.1641L28.9219 20.4922C28.4297 19.9297 27.5156 19.9297 27.0938 20.4922L22.1016 27.1719L18.7969 22.7422C18.3047 22.1797 17.3906 22.1797 16.9688 22.7422L11.4141 30.125H10.5V11H37.5V30.125Z",fill:"#6E6E6E"})),i4=VO;var jO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M10.5 11.9844L9.72656 11.2109C9.65625 11.0703 9.44531 11 9.30469 11C9.16406 11 9.02344 11.0703 8.88281 11.2109C5.57812 14.7969 3.75 19.5078 3.75 24.5C3.75 29.4922 5.57812 34.2031 8.88281 37.8594C9.02344 38 9.16406 38.0703 9.30469 38.0703C9.44531 38.0703 9.65625 38 9.72656 37.8594L10.5 37.0859C10.6406 36.9453 10.7109 36.8047 10.7109 36.6641C10.7109 36.5234 10.6406 36.3828 10.5 36.2422C7.61719 33.0781 6 28.9297 6 24.5C6 20.1406 7.61719 15.9922 10.5 12.8281C10.6406 12.6875 10.7109 12.5469 10.7109 12.4062C10.7109 12.2656 10.6406 12.125 10.5 11.9844ZM16.4062 16.8359L15.6328 16.0625C15.4922 15.9219 15.3516 15.9219 15.2109 15.9219C15.0703 15.9219 14.9297 15.9219 14.7891 16.0625C12.8203 18.3125 11.625 21.2656 11.625 24.5C11.625 27.8047 12.8203 30.7578 14.7891 33.0078C14.9297 33.0781 15.0703 33.1484 15.2109 33.1484C15.3516 33.1484 15.4922 33.1484 15.6328 33.0078L16.4062 32.1641C16.5469 32.0938 16.6172 31.9531 16.6172 31.8125C16.6172 31.6719 16.5469 31.5312 16.4062 31.3906C14.7891 29.5625 13.875 27.1719 13.875 24.5703C13.875 21.8984 14.7891 19.5078 16.4062 17.6797C16.5469 17.5391 16.5469 17.3984 16.5469 17.2578C16.5469 17.1172 16.5469 16.9766 16.4062 16.8359ZM39.0469 11.2109C38.9062 11.0703 38.7656 11 38.625 11C38.4844 11 38.2734 11.0703 38.2031 11.2109L37.4297 11.9844C37.2891 12.125 37.2188 12.2656 37.2188 12.4062C37.2188 12.5469 37.2891 12.6875 37.4297 12.8281C40.3828 15.9922 42 20.1406 42 24.5C42 28.9297 40.3828 33.0781 37.4297 36.2422C37.2891 36.3828 37.2188 36.5234 37.2188 36.6641C37.2188 36.8047 37.2891 36.9453 37.4297 37.0859L38.2031 37.8594C38.2734 38 38.4844 38.0703 38.625 38.0703C38.7656 38.0703 38.9062 38 39.0469 37.8594C42.3516 34.2031 44.25 29.4922 44.25 24.5C44.25 19.5078 42.3516 14.7969 39.0469 11.2109ZM24 20C21.4688 20 19.5 22.0391 19.5 24.5C19.5 27.0312 21.4688 29 24 29C26.4609 29 28.5 27.0312 28.5 24.5C28.5 22.0391 26.4609 20 24 20ZM24 26.75C22.7344 26.75 21.75 25.7656 21.75 24.5C21.75 23.3047 22.7344 22.25 24 22.25C25.1953 22.25 26.25 23.3047 26.25 24.5C26.25 25.7656 25.1953 26.75 24 26.75ZM32.2969 16.0625L31.5234 16.8359C31.3828 16.9766 31.3125 17.1172 31.3125 17.2578C31.3125 17.3984 31.3828 17.5391 31.5234 17.6797C33.1406 19.5078 34.0547 21.8984 34.0547 24.5C34.0547 27.1719 33.1406 29.5625 31.5234 31.3906C31.3828 31.5312 31.3125 31.6719 31.3125 31.8125C31.3125 31.9531 31.3828 32.0938 31.5234 32.2344L32.2969 33.0078C32.4375 33.1484 32.5781 33.2188 32.7188 33.2188C32.8594 33.2188 33 33.1484 33.1406 33.0078C35.1094 30.7578 36.3047 27.8047 36.3047 24.5703C36.3047 21.2656 35.1094 18.3125 33.1406 16.0625C33 15.9922 32.8594 15.9219 32.7188 15.9219C32.5781 15.9219 32.4375 15.9219 32.2969 16.0625Z"})),a4=jO;var GO=e=>R.createElement("svg",c({width:"48",height:"48",viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M39.6797 17.75L39.75 20L39.6797 38L33 33.3594V24.7109L39.6797 20V17.75C39.2578 17.8203 38.7656 17.9609 38.4141 18.1719L33 21.9688V21.125C33 19.2969 31.4531 17.75 29.625 17.75H12.75V14.375C12.75 12.5469 14.2266 11 16.125 11H27.9375C28.2188 11 28.5 10.7891 28.5 10.4375V9.3125C28.5 9.03125 28.2188 8.75 27.9375 8.75H16.125C12.9609 8.75 10.5 11.2812 10.5 14.375V17.75H9.375C7.47656 17.75 6 19.2969 6 21.125V36.875C6 38.7734 7.47656 40.25 9.375 40.25H29.625C31.4531 40.25 33 38.7734 33 36.875V36.1016L38.4141 39.8984C38.7656 40.1094 39.2578 40.25 39.6797 40.25C40.875 40.25 42 39.3359 42 38.0703V20C42 18.6641 40.875 17.75 39.6797 17.75ZM30.75 36.875C30.75 37.5078 30.1875 38 29.625 38H9.375C8.74219 38 8.25 37.5078 8.25 36.875V21.125C8.25 20.5625 8.74219 20 9.375 20H29.625C30.1875 20 30.75 20.5625 30.75 21.125V36.875ZM28.0078 22.25H10.9219C10.6406 22.3203 10.5 22.4609 10.5 22.7422V24.0781C10.5 24.3594 10.6406 24.5 10.9219 24.5H28.0078C28.2891 24.5 28.4297 24.3594 28.5 24.0781V22.7422C28.4297 22.4609 28.2891 22.3203 28.0078 22.25Z"})),s4=GO;var ZO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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:"#6E6E6E"})),l4=ZO;var QO=e=>R.createElement("svg",c({width:"48",height:"32",viewBox:"0 0 48 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M46 0H7.33333C6.16667 0 5.33333 0.916667 5.33333 2V2.66667H2C0.833333 2.66667 0 3.58333 0 4.66667V28C0 30.25 1.75 32 4 32H46C47.0833 32 48 31.1667 48 30V2C48 0.916667 47.0833 0 46 0ZM2.66667 28V5.33333H5.33333V28C5.33333 28.75 4.66667 29.3333 4 29.3333C3.25 29.3333 2.66667 28.75 2.66667 28ZM45.3333 29.3333H7.75C7.83333 29 8 28.4167 8 28.0833V28V2.66667H45.3333V29.3333Z",fill:"#A5A9B5"}),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0231 10.3277L20.0159 10.3366L20.0094 10.3459C19.8498 10.575 19.7771 10.8433 19.8232 11.1079C19.8691 11.3716 20.0275 11.5989 20.2679 11.7554L21.0576 12.3368L21.0728 12.3454C21.498 12.5896 22.0853 12.5106 22.426 12.103L22.4273 12.1014C22.8645 11.5715 23.2846 11.1881 23.7898 10.9333C24.2937 10.6791 24.9063 10.5409 25.7453 10.5409C28.061 10.5409 28.9327 11.6808 28.9327 12.5977C28.9327 13.0993 28.7034 13.4644 28.3052 13.8072C27.9932 14.0759 27.6072 14.3074 27.1754 14.5663L27.1754 14.5664C27.0311 14.6529 26.8817 14.7425 26.7282 14.8376C26.1341 15.2057 25.5066 15.6423 25.0306 16.2624C24.548 16.891 24.2326 17.6923 24.2326 18.7681C24.2326 19.3702 24.7618 19.7677 25.2632 19.7677H26.2274C26.8061 19.7677 27.258 19.3542 27.258 18.7681C27.258 18.2649 27.489 17.8879 27.8895 17.5308C28.2112 17.244 28.6129 16.9941 29.0603 16.7157L29.0603 16.7157C29.1919 16.6339 29.3274 16.5496 29.466 16.4612C30.0584 16.0832 30.684 15.6419 31.1589 15.0321C31.6406 14.4135 31.9582 13.6337 31.9582 12.5977C31.9582 11.0185 31.2094 9.76304 30.0556 8.91183C28.9084 8.0656 27.3647 7.61914 25.7453 7.61914C24.3484 7.61914 23.2438 7.88697 22.3194 8.36743C21.3964 8.84713 20.6724 9.52886 20.0231 10.3277ZM21.2259 12.0787L20.4426 11.5021C20.0944 11.2799 20.0256 10.8973 20.2363 10.5603C20.0258 10.8973 20.0947 11.2797 20.4427 11.5018L21.2261 12.0785C21.5274 12.2515 21.9492 12.1938 22.1902 11.9055C23.0941 10.8098 23.998 10.2331 25.7455 10.2331C28.1558 10.2331 29.2404 11.4441 29.2404 12.5975C29.2404 12.9349 29.1534 13.22 29.003 13.4709C29.1533 13.22 29.2403 12.935 29.2403 12.5977C29.2403 11.4444 28.1556 10.2334 25.7453 10.2334C23.9978 10.2334 23.0939 10.8101 22.1901 11.9057C21.949 12.1941 21.5272 12.2517 21.2259 12.0787ZM25.0838 16.7238C24.7512 17.2542 24.5401 17.9128 24.5401 18.7681C24.5401 19.1718 24.9017 19.4601 25.2632 19.4601H26.2274C26.4954 19.4601 26.7148 19.3437 26.8391 19.1552C26.7148 19.3435 26.4955 19.4599 26.2275 19.4599H25.2634C24.9018 19.4599 24.5403 19.1715 24.5403 18.7678C24.5403 17.9127 24.7513 17.2542 25.0838 16.7238ZM27.2171 17.8382C27.5662 17.2823 28.2162 16.8782 28.9129 16.4451C29.6965 15.9578 30.5394 15.4338 31.0797 14.6156C30.5394 15.4336 29.6966 15.9576 28.913 16.4448C28.2162 16.878 27.5662 17.2822 27.2171 17.8382ZM25.8056 20.5366C24.6772 20.5366 23.8108 21.4184 23.8108 22.4588C23.8108 23.5639 24.6844 24.381 25.8056 24.381C26.8591 24.381 27.8003 23.5709 27.8003 22.4588C27.8003 21.4113 26.8664 20.5366 25.8056 20.5366ZM24.363 21.6208C24.2067 21.868 24.1183 22.1563 24.1183 22.4588C24.1183 23.3815 24.8414 24.0735 25.8056 24.0735C26.4076 24.0735 26.9562 23.7665 27.2554 23.2888C26.9561 23.7663 26.4077 24.0732 25.8057 24.0732C24.8416 24.0732 24.1185 23.3812 24.1185 22.4585C24.1185 22.1562 24.2068 21.8679 24.363 21.6208Z",fill:"#A5A9B5"})),c4=QO;var WO=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:`M6.6875 9.3125C9.00195 9.3125 10.9062 7.4375 10.9062 5.09375C10.9062 2.7793 9.00195
|
|
123
125
|
0.875 6.6875 0.875C4.34375 0.875 2.46875 2.7793 2.46875 5.09375C2.46875 7.4375 4.34375 9.3125
|
|
124
126
|
6.6875 9.3125ZM6.6875 2.28125C8.21094 2.28125 9.5 3.57031 9.5 5.09375C9.5 6.64648 8.21094
|
|
125
127
|
7.90625 6.6875 7.90625C5.13477 7.90625 3.875 6.64648 3.875 5.09375C3.875 3.57031 5.13477
|
|
@@ -163,12 +165,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
163
165
|
16-16 16H288l-12.8 9.6L208 428v-60H64c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16h384c8.8
|
|
164
166
|
0 16 7.2 16 16v288z`})),r0=ez;var tz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48
|
|
165
167
|
48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336
|
|
166
|
-
0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z`})),Na=tz;function oz(e){return R.createElement("svg",c({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.5625 9.96875C16.6875 10.6875 16.5938 11.375 16.2812 11.9375C16.375 12.6875 16.1562 13.4688 15.7188 14.0312C15.6875 15.7812 14.625 17 12.2188 17C12 17 11.75 17 11.5 17C8.3125 17 7.34375 15.8125 5.9375 15.7812C5.84375 16.1875 5.4375 16.5 5 16.5H3C2.4375 16.5 2 16.0625 2 15.5V8C2 7.46875 2.4375 7 3 7H6.0625C6.65625 6.5 7.5 5.125 8.21875 4.40625C8.65625 3.96875 8.53125 1 10.4688 1C12.25 1 13.4375 2 13.4375 4.28125C13.4375 4.875 13.3125 5.34375 13.1562 5.75H14.3125C15.8125 5.75 17 7.03125 17 8.40625C17 9 16.8438 9.5 16.5625 9.96875ZM14.625 11.6562C15.3125 11.0312 15.2188 10.0625 14.7812 9.59375C15.0938 9.59375 15.5 9 15.5 8.4375C15.4688 7.84375 14.9688 7.25 14.3125 7.25H11.0625C11.0625 6.0625 11.9375 5.5 11.9375 4.28125C11.9375 3.53125 11.9375 2.5 10.4688 2.5C9.875 3.09375 10.1562 4.59375 9.28125 5.46875C8.4375 6.3125 7.21875 8.5 6.3125 8.5H6V14.3438C7.65625 14.3438 9.125 15.5 11.3438 15.5H12.5312C13.625 15.5 14.4375 14.9688 14.1875 13.4688C14.6562 13.1875 15.0312 12.3125 14.625 11.6562ZM4.75 14.5C4.75 14.0938 4.40625 13.75 4 13.75C3.5625 13.75 3.25 14.0938 3.25 14.5C3.25 14.9375 3.5625 15.25 4 15.25C4.40625 15.25 4.75 14.9375 4.75 14.5Z",fill:"currentColor"}))}var K1=oz;function rz(e){return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.25 8C5.65625 8 6 8.34375 6 8.75V16.25C6 16.6875 5.65625 17 5.25 17H2.75C2.3125 17 2 16.6875 2 16.25V8.75C2 8.34375 2.3125 8 2.75 8H5.25ZM4 15.75C4.40625 15.75 4.75 15.4375 4.75 15C4.75 14.5938 4.40625 14.25 4 14.25C3.5625 14.25 3.25 14.5938 3.25 15C3.25 15.4375 3.5625 15.75 4 15.75ZM14 3.5625C14 4.875 13.1875 5.625 12.9375 6.5H16.125C17.1562 6.5 17.9688 7.375 17.9688 8.34375C18 8.90625 17.75 9.5 17.375 9.875C17.6875 10.5938 17.625 11.625 17.0938 12.3438C17.3438 13.1562 17.0938 14.1562 16.5625 14.6875C16.7188 15.25 16.6562 15.7188 16.375 16.0938C15.75 17 14.1562 17 12.8125 17H12.7188C11.2188 17 10 16.4688 9 16.0312C8.5 15.8125 7.84375 15.5312 7.34375 15.5312C7.15625 15.5 7 15.3438 7 15.1562V8.46875C7 8.375 7.03125 8.28125 7.09375 8.1875C8.34375 6.96875 8.875 5.6875 9.875 4.65625C10.3438 4.1875 10.5 3.5 10.6875 2.8125C10.8125 2.25 11.0938 1 11.75 1C12.5 1 14 1.25 14 3.5625Z",fill:"#CC0058"}))}var
|
|
168
|
+
0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z`})),Na=tz;function oz(e){return R.createElement("svg",c({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.5625 9.96875C16.6875 10.6875 16.5938 11.375 16.2812 11.9375C16.375 12.6875 16.1562 13.4688 15.7188 14.0312C15.6875 15.7812 14.625 17 12.2188 17C12 17 11.75 17 11.5 17C8.3125 17 7.34375 15.8125 5.9375 15.7812C5.84375 16.1875 5.4375 16.5 5 16.5H3C2.4375 16.5 2 16.0625 2 15.5V8C2 7.46875 2.4375 7 3 7H6.0625C6.65625 6.5 7.5 5.125 8.21875 4.40625C8.65625 3.96875 8.53125 1 10.4688 1C12.25 1 13.4375 2 13.4375 4.28125C13.4375 4.875 13.3125 5.34375 13.1562 5.75H14.3125C15.8125 5.75 17 7.03125 17 8.40625C17 9 16.8438 9.5 16.5625 9.96875ZM14.625 11.6562C15.3125 11.0312 15.2188 10.0625 14.7812 9.59375C15.0938 9.59375 15.5 9 15.5 8.4375C15.4688 7.84375 14.9688 7.25 14.3125 7.25H11.0625C11.0625 6.0625 11.9375 5.5 11.9375 4.28125C11.9375 3.53125 11.9375 2.5 10.4688 2.5C9.875 3.09375 10.1562 4.59375 9.28125 5.46875C8.4375 6.3125 7.21875 8.5 6.3125 8.5H6V14.3438C7.65625 14.3438 9.125 15.5 11.3438 15.5H12.5312C13.625 15.5 14.4375 14.9688 14.1875 13.4688C14.6562 13.1875 15.0312 12.3125 14.625 11.6562ZM4.75 14.5C4.75 14.0938 4.40625 13.75 4 13.75C3.5625 13.75 3.25 14.0938 3.25 14.5C3.25 14.9375 3.5625 15.25 4 15.25C4.40625 15.25 4.75 14.9375 4.75 14.5Z",fill:"currentColor"}))}var K1=oz;function rz(e){return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.25 8C5.65625 8 6 8.34375 6 8.75V16.25C6 16.6875 5.65625 17 5.25 17H2.75C2.3125 17 2 16.6875 2 16.25V8.75C2 8.34375 2.3125 8 2.75 8H5.25ZM4 15.75C4.40625 15.75 4.75 15.4375 4.75 15C4.75 14.5938 4.40625 14.25 4 14.25C3.5625 14.25 3.25 14.5938 3.25 15C3.25 15.4375 3.5625 15.75 4 15.75ZM14 3.5625C14 4.875 13.1875 5.625 12.9375 6.5H16.125C17.1562 6.5 17.9688 7.375 17.9688 8.34375C18 8.90625 17.75 9.5 17.375 9.875C17.6875 10.5938 17.625 11.625 17.0938 12.3438C17.3438 13.1562 17.0938 14.1562 16.5625 14.6875C16.7188 15.25 16.6562 15.7188 16.375 16.0938C15.75 17 14.1562 17 12.8125 17H12.7188C11.2188 17 10 16.4688 9 16.0312C8.5 15.8125 7.84375 15.5312 7.34375 15.5312C7.15625 15.5 7 15.3438 7 15.1562V8.46875C7 8.375 7.03125 8.28125 7.09375 8.1875C8.34375 6.96875 8.875 5.6875 9.875 4.65625C10.3438 4.1875 10.5 3.5 10.6875 2.8125C10.8125 2.25 11.0938 1 11.75 1C12.5 1 14 1.25 14 3.5625Z",fill:"#CC0058"}))}var x2=rz;var nz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),R.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
|
|
167
169
|
0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
|
|
168
170
|
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
|
|
169
171
|
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
|
|
170
172
|
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
|
|
171
|
-
0-22.58L207.6 256z`})),Mo=nz;var iz=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 20 20",fill:"none"},R.createElement("path",{d:"M8.97175 15.4777C9.66551 16.1767 10.328 16.1715 11.0269 15.4777L11.8094 14.6953C11.8824 14.6223 11.945 14.6014 12.0389 14.6014H13.1447C14.1306 14.6014 14.6001 14.1319 14.6001 13.1461V12.0402C14.6001 11.9463 14.6262 11.8785 14.694 11.8107L15.4764 11.023C16.1754 10.3293 16.1702 9.66681 15.4764 8.97305L14.694 8.19061C14.6262 8.11758 14.6001 8.05499 14.6001 7.9611V6.85525C14.6001 5.86938 14.1306 5.39991 13.1447 5.39991H12.0389C11.945 5.39991 11.8772 5.37383 11.8094 5.30602L11.0269 4.52358C10.328 3.82461 9.66551 3.82461 8.97175 4.5288L8.18931 5.30602C8.1215 5.37383 8.05368 5.39991 7.95979 5.39991H6.85395C5.86807 5.39991 5.39861 5.85894 5.39861 6.85525V7.9611C5.39861 8.05499 5.37253 8.1228 5.30472 8.19061L4.52228 8.97305C3.8233 9.66681 3.82852 10.3293 4.52228 11.023L5.30472 11.8107C5.37253 11.8785 5.39861 11.9463 5.39861 12.0402V13.1461C5.39861 14.1319 5.86807 14.6014 6.85395 14.6014H7.95979C8.05368 14.6014 8.11628 14.6223 8.18931 14.6953L8.97175 15.4777ZM9.13345 12.6714C8.95088 12.6714 8.80482 12.6036 8.69007 12.4836L7.02087 10.6162C6.93219 10.5223 6.88524 10.3919 6.88524 10.2615C6.88524 9.94849 7.10954 9.72419 7.43295 9.72419C7.6103 9.72419 7.74071 9.78157 7.85547 9.90676L9.11258 11.3099L11.6268 7.72115C11.752 7.5438 11.8876 7.47077 12.0963 7.47077C12.4197 7.47077 12.6492 7.69507 12.6492 7.99761C12.6492 8.10193 12.6075 8.23234 12.5292 8.34188L9.60291 12.4471C9.48294 12.6036 9.32645 12.6714 9.13345 12.6714Z",fill:e!=null&&e.color?e.color:"#E90B5A"})),n0=iz;function az(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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 x2=az;function sz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},e),R.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 As=sz;function lz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"none",viewBox:"0 0 17 17"},e),R.createElement("circle",{cx:"8.842",cy:"8.253",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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 C4=lz;function mz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none",viewBox:"0 0 16 19"},e),R.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 v4=mz;var cz=n=>{var i=n,{bg:e="#fff",fg:t="#cacaca",children:o}=i,r=P(i,["bg","fg","children"]);return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 24 28",fill:"none",vectorEffect:"non-scaling-stroke",xmlns:"http://www.w3.org/2000/svg"},r),R.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}),R.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}),R.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)},ve=cz;var dz=o=>{var r=o,{color:e="#FFB400"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},b2=dz;var pz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},x4=pz;var uz=o=>{var r=o,{color:e="#00BED4"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},b4=uz;var gz=o=>{var r=o,{color:e="#999"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},I4=gz;var fz=o=>{var r=o,{color:e="#0E86FE"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},w4=fz;var yz=o=>{var r=o,{color:e="#5C6070"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},M4=yz;var hz=o=>{var r=o,{color:e="#1E3868"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},P4=hz;var Cz=o=>{var r=o,{color:e="#999"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}),R.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"}))},J1=Cz;var vz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},_4=vz;var xz=o=>{var r=o,{color:e="#FFB400"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},T4=xz;var bz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},k4=bz;var Iz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},s0=Iz;var wz=o=>{var r=o,{color:e="#F02B04"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},S4=wz;var Mz=o=>{var r=o,{color:e="#FF742F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}))},l0=Mz;var Pz=o=>{var r=o,{color:e="#FF742F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}))},B4=Pz;var _z=o=>{var r=o,{color:e="#F14B5F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}),R.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"}),R.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"}))},L4=_z;var Tz=o=>{var r=o,{color:e="#795545"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},A4=Tz;var kz=({color:e="#27B740"})=>R.createElement(ve,null,R.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"})),m0=kz;var Sz=({color:e="#5856D6"})=>R.createElement(ve,null,R.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"})),D4=Sz;var Nz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),R.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
|
|
173
|
+
0-22.58L207.6 256z`})),Mo=nz;var iz=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 20 20",fill:"none"},R.createElement("path",{d:"M8.97175 15.4777C9.66551 16.1767 10.328 16.1715 11.0269 15.4777L11.8094 14.6953C11.8824 14.6223 11.945 14.6014 12.0389 14.6014H13.1447C14.1306 14.6014 14.6001 14.1319 14.6001 13.1461V12.0402C14.6001 11.9463 14.6262 11.8785 14.694 11.8107L15.4764 11.023C16.1754 10.3293 16.1702 9.66681 15.4764 8.97305L14.694 8.19061C14.6262 8.11758 14.6001 8.05499 14.6001 7.9611V6.85525C14.6001 5.86938 14.1306 5.39991 13.1447 5.39991H12.0389C11.945 5.39991 11.8772 5.37383 11.8094 5.30602L11.0269 4.52358C10.328 3.82461 9.66551 3.82461 8.97175 4.5288L8.18931 5.30602C8.1215 5.37383 8.05368 5.39991 7.95979 5.39991H6.85395C5.86807 5.39991 5.39861 5.85894 5.39861 6.85525V7.9611C5.39861 8.05499 5.37253 8.1228 5.30472 8.19061L4.52228 8.97305C3.8233 9.66681 3.82852 10.3293 4.52228 11.023L5.30472 11.8107C5.37253 11.8785 5.39861 11.9463 5.39861 12.0402V13.1461C5.39861 14.1319 5.86807 14.6014 6.85395 14.6014H7.95979C8.05368 14.6014 8.11628 14.6223 8.18931 14.6953L8.97175 15.4777ZM9.13345 12.6714C8.95088 12.6714 8.80482 12.6036 8.69007 12.4836L7.02087 10.6162C6.93219 10.5223 6.88524 10.3919 6.88524 10.2615C6.88524 9.94849 7.10954 9.72419 7.43295 9.72419C7.6103 9.72419 7.74071 9.78157 7.85547 9.90676L9.11258 11.3099L11.6268 7.72115C11.752 7.5438 11.8876 7.47077 12.0963 7.47077C12.4197 7.47077 12.6492 7.69507 12.6492 7.99761C12.6492 8.10193 12.6075 8.23234 12.5292 8.34188L9.60291 12.4471C9.48294 12.6036 9.32645 12.6714 9.13345 12.6714Z",fill:e!=null&&e.color?e.color:"#E90B5A"})),n0=iz;function az(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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 b2=az;function sz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},e),R.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 As=sz;function lz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",fill:"none",viewBox:"0 0 17 17"},e),R.createElement("circle",{cx:"8.842",cy:"8.253",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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 C4=lz;function mz(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none",viewBox:"0 0 16 19"},e),R.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 v4=mz;var cz=n=>{var i=n,{bg:e="#fff",fg:t="#cacaca",children:o}=i,r=P(i,["bg","fg","children"]);return R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 24 28",fill:"none",vectorEffect:"non-scaling-stroke",xmlns:"http://www.w3.org/2000/svg"},r),R.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}),R.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}),R.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)},ve=cz;var dz=o=>{var r=o,{color:e="#FFB400"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},I2=dz;var pz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},x4=pz;var uz=o=>{var r=o,{color:e="#00BED4"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},b4=uz;var gz=o=>{var r=o,{color:e="#999"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},I4=gz;var fz=o=>{var r=o,{color:e="#0E86FE"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},w4=fz;var yz=o=>{var r=o,{color:e="#5C6070"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},M4=yz;var hz=o=>{var r=o,{color:e="#1E3868"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},P4=hz;var Cz=o=>{var r=o,{color:e="#999"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}),R.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"}))},J1=Cz;var vz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},_4=vz;var xz=o=>{var r=o,{color:e="#FFB400"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},T4=xz;var bz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},k4=bz;var Iz=o=>{var r=o,{color:e="#5856D6"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},s0=Iz;var wz=o=>{var r=o,{color:e="#F02B04"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},S4=wz;var Mz=o=>{var r=o,{color:e="#FF742F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}))},l0=Mz;var Pz=o=>{var r=o,{color:e="#FF742F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}))},B4=Pz;var _z=o=>{var r=o,{color:e="#F14B5F"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}),R.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"}),R.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"}),R.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"}))},L4=_z;var Tz=o=>{var r=o,{color:e="#795545"}=r,t=P(r,["color"]);return R.createElement(ve,c({},t),R.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"}))},A4=Tz;var kz=({color:e="#27B740"})=>R.createElement(ve,null,R.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"})),m0=kz;var Sz=({color:e="#5856D6"})=>R.createElement(ve,null,R.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"})),D4=Sz;var Nz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),R.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
|
|
172
174
|
16v32c0 8.84 7.16 16 16 16h144v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V288h144c8.84
|
|
173
175
|
0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z`})),wn=Nz;var Ez=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M13.5547 3.83594C14.1406 4.42188 14.1406 5.35938 13.5547 5.94531L11.7969 7.70312L11 8.5L5.28125 14.2188L2.60938 14.5C2.58594 14.5 2.5625 14.5 2.53906 14.5C2.21094 14.5 1.95312 14.2188 2 13.8906L2.28125 11.2188L8 5.5L8.79688 4.70312L10.5547 2.94531C10.8359 2.66406 11.2344 2.5 11.6094 2.5C11.9844 2.5 12.3828 2.66406 12.6641 2.94531L13.5547 3.83594ZM4.76562 13.1406L10.2031 7.72656L10.9297 7L9.5 5.57031L8.77344 6.29688L3.35938 11.7344L3.19531 13.3047L4.76562 13.1406ZM12.7578 5.14844C12.8984 5.00781 12.8984 4.77344 12.7578 4.63281L11.8672 3.74219C11.7734 3.64844 11.6562 3.625 11.6094 3.625C11.5625 3.625 11.4453 3.64844 11.3516 3.74219L10.2969 4.77344L11.7266 6.20312L12.7578 5.14844Z",fill:"currentColor"})),Ds=Ez;var Bz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),R.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
|
|
174
176
|
0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
|
|
@@ -180,7 +182,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
180
182
|
72.19-54.46C145.47 371.859 157.41 330.2 304 321.66v78.28c0 42.64 51.73 64.15 81.94
|
|
181
183
|
33.94l175.997-175.94c18.751-18.74 18.751-49.14.001-67.88zM352 400V272.09c-164.521
|
|
182
184
|
1.79-277.44 33.821-227.98 191.61C88 440 48 397.01 48 330.05c0-142.242 160.819-153.39
|
|
183
|
-
304-154.02V48l176 176-176 176z`})),
|
|
185
|
+
304-154.02V48l176 176-176 176z`})),M2=Lz;var Az=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416
|
|
184
186
|
93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2
|
|
185
187
|
3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4
|
|
186
188
|
0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z`})),H4=Az;var Dz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6
|
|
@@ -189,7 +191,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
189
191
|
240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z`})),F4=Dz;var Hz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5
|
|
190
192
|
114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496
|
|
191
193
|
128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8
|
|
192
|
-
307.7z`})),O4=Hz;var Fz=e=>R.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R.createElement("path",{d:"M20.25 4.5H3.75C3.33579 4.5 3 4.83579 3 5.25V18.75C3 19.1642 3.33579 19.5 3.75 19.5H20.25C20.6642 19.5 21 19.1642 21 18.75V5.25C21 4.83579 20.6642 4.5 20.25 4.5Z",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M3 15.7499L7.71966 11.0302C7.7893 10.9606 7.87198 10.9053 7.96297 10.8676C8.05397 10.8299 8.1515 10.8105 8.24999 10.8105C8.34848 10.8105 8.44601 10.8299 8.537 10.8676C8.62799 10.9053 8.71067 10.9606 8.78032 11.0302L12.9697 15.2196C13.0393 15.2892 13.122 15.3444 13.213 15.3821C13.304 15.4198 13.4015 15.4392 13.5 15.4392C13.5985 15.4392 13.696 15.4198 13.787 15.3821C13.878 15.3444 13.9607 15.2892 14.0303 15.2196L15.9697 13.2802C16.0393 13.2106 16.122 13.1553 16.213 13.1176C16.304 13.0799 16.4015 13.0605 16.5 13.0605C16.5985 13.0605 16.696 13.0799 16.787 13.1176C16.878 13.1553 16.9607 13.2106 17.0303 13.2802L21 17.2499",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M14.625 10.5C15.2463 10.5 15.75 9.99632 15.75 9.375C15.75 8.75368 15.2463 8.25 14.625 8.25C14.0037 8.25 13.5 8.75368 13.5 9.375C13.5 9.99632 14.0037 10.5 14.625 10.5Z",fill:"currentColor"})),
|
|
194
|
+
307.7z`})),O4=Hz;var Fz=e=>R.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R.createElement("path",{d:"M20.25 4.5H3.75C3.33579 4.5 3 4.83579 3 5.25V18.75C3 19.1642 3.33579 19.5 3.75 19.5H20.25C20.6642 19.5 21 19.1642 21 18.75V5.25C21 4.83579 20.6642 4.5 20.25 4.5Z",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M3 15.7499L7.71966 11.0302C7.7893 10.9606 7.87198 10.9053 7.96297 10.8676C8.05397 10.8299 8.1515 10.8105 8.24999 10.8105C8.34848 10.8105 8.44601 10.8299 8.537 10.8676C8.62799 10.9053 8.71067 10.9606 8.78032 11.0302L12.9697 15.2196C13.0393 15.2892 13.122 15.3444 13.213 15.3821C13.304 15.4198 13.4015 15.4392 13.5 15.4392C13.5985 15.4392 13.696 15.4198 13.787 15.3821C13.878 15.3444 13.9607 15.2892 14.0303 15.2196L15.9697 13.2802C16.0393 13.2106 16.122 13.1553 16.213 13.1176C16.304 13.0799 16.4015 13.0605 16.5 13.0605C16.5985 13.0605 16.696 13.0799 16.787 13.1176C16.878 13.1553 16.9607 13.2106 17.0303 13.2802L21 17.2499",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M14.625 10.5C15.2463 10.5 15.75 9.99632 15.75 9.375C15.75 8.75368 15.2463 8.25 14.625 8.25C14.0037 8.25 13.5 8.75368 13.5 9.375C13.5 9.99632 14.0037 10.5 14.625 10.5Z",fill:"currentColor"})),P2=Fz;var Oz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M67.508 468.467c-58.005-58.013-58.016-151.92 0-209.943l225.011-225.04c44.643-44.645
|
|
193
195
|
117.279-44.645 161.92 0 44.743 44.749 44.753 117.186 0 161.944l-189.465 189.49c-31.41
|
|
194
196
|
31.413-82.518 31.412-113.926.001-31.479-31.482-31.49-82.453 0-113.944L311.51
|
|
195
197
|
110.491c4.687-4.687 12.286-4.687 16.972 0l16.967 16.971c4.685 4.686 4.685 12.283 0
|
|
@@ -202,7 +204,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
202
204
|
58.092-152.004 58.093-210.048.041z`})),z4=Oz;var zz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),R.createElement("path",{d:`M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284
|
|
203
205
|
28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686
|
|
204
206
|
16.971 0l299.813-299.813c4.686-4.686 4.686-12.284
|
|
205
|
-
0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z`})),
|
|
207
|
+
0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z`})),_2=zz;var Uz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),R.createElement("path",{d:`M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17
|
|
206
208
|
0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7
|
|
207
209
|
4.7-12.3 0-17z`})),Mn=Uz;var $z=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 256 512",fill:"currentColor"},e),R.createElement("path",{d:`M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092
|
|
208
210
|
74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971
|
|
@@ -243,7 +245,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
243
245
|
21.5-48 48-48h32v-48C80 64.5 144.8-.2 224.4 0 304 .2 368 65.8 368 145.4V192h32c26.5 0 48
|
|
244
246
|
21.5 48 48zm-320-48h192v-48c0-52.9-43.1-96-96-96s-96 43.1-96 96v48zm272 48H48v224h352V240z`})),Ui=Wz;var qz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512",fill:"currentColor"},e),R.createElement("path",{d:`M140 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4
|
|
245
247
|
12-12 12H140zm364-28c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-48
|
|
246
|
-
0c0-110.5-89.5-200-200-200S56 145.5 56 256s89.5 200 200 200 200-89.5 200-200z`})),
|
|
248
|
+
0c0-110.5-89.5-200-200-200S56 145.5 56 256s89.5 200 200 200 200-89.5 200-200z`})),T2=qz;var Kz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 576 512",fill:"currentColor"},e),R.createElement("path",{d:`M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0
|
|
247
249
|
30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48
|
|
248
250
|
392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480
|
|
249
251
|
8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0
|
|
@@ -259,13 +261,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
259
261
|
24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6
|
|
260
262
|
6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0
|
|
261
263
|
128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z`})),G4=Jz;var Xz=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),R.createElement("path",{d:`M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9
|
|
262
|
-
0L24 329c-15.1-15.1-4.4-41 17-41z`})),Z4=Xz;var oU=m(
|
|
264
|
+
0L24 329c-15.1-15.1-4.4-41 17-41z`})),Z4=Xz;var oU=m(_2).attrs({width:18,height:18})`
|
|
263
265
|
margin-right: 8px;
|
|
264
266
|
`,rU=m(Gt).attrs({width:18,height:18})`
|
|
265
267
|
margin-right: 8px;
|
|
266
268
|
`,nU=m(jt).attrs({width:18,height:18})`
|
|
267
269
|
margin-right: 8px;
|
|
268
|
-
`,Q4=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),iU=3e3,Hh=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||iU);};return R.createElement(Q4.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(oU,null)})),info:i=>n(N(c({},i),{icon:R.createElement(rU,null)})),error:i=>n(N(c({},i),{icon:R.createElement(nU,null)})),show:i=>n(i)}}},e)},Fh=()=>{let{notifications:e}=useContext(Q4);return e},we=()=>{let{notificationFunction:e}=useContext(Q4);return e};var Ea=({children:e})=>createPortal(e,document.body);m(
|
|
270
|
+
`,Q4=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),iU=3e3,Hh=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||iU);};return R.createElement(Q4.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(oU,null)})),info:i=>n(N(c({},i),{icon:R.createElement(rU,null)})),error:i=>n(N(c({},i),{icon:R.createElement(nU,null)})),show:i=>n(i)}}},e)},Fh=()=>{let{notifications:e}=useContext(Q4);return e},we=()=>{let{notificationFunction:e}=useContext(Q4);return e};var Ea=({children:e})=>createPortal(e,document.body);m(_2).attrs({width:18,height:18})`
|
|
269
271
|
margin-right: 8px;
|
|
270
272
|
`;m(Gt).attrs({width:18,height:18})`
|
|
271
273
|
margin-right: 8px;
|
|
@@ -460,7 +462,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
460
462
|
}
|
|
461
463
|
`,rC=m(Y)`
|
|
462
464
|
margin-right: 10px;
|
|
463
|
-
`;var hU=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=oC,cancelText:s="Cancel",CancelButton:l=rC,onCancel:d,type:p="confirm"})=>R.createElement(Rh,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:R.createElement(tC,null,p==="confirm"&&R.createElement(l,{"data-qa-anchor":"confirm-modal-cancel-button",onClick:d},s),R.createElement(a,{"data-qa-anchor":`confirm-modal-${e}-ok-button`,onClick:i},n)),onCancel:d},R.createElement(eC,null,r)),nC=()=>{let{confirmData:e,closeConfirm:t}=_e();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 R.createElement(Ea,null,R.createElement(hU,N(c({},e),{onCancel:o,onOk:r})))};var u0={icon__container:"Zr",icon:"_r",notifications:"
|
|
465
|
+
`;var hU=({"data-qa-anchor":e="",className:t,title:o,content:r,okText:n="Ok",onOk:i,OkButton:a=oC,cancelText:s="Cancel",CancelButton:l=rC,onCancel:d,type:p="confirm"})=>R.createElement(Rh,{"data-qa-anchor":`confirm-modal-${e}`,clean:!0,className:t,title:o,footer:R.createElement(tC,null,p==="confirm"&&R.createElement(l,{"data-qa-anchor":"confirm-modal-cancel-button",onClick:d},s),R.createElement(a,{"data-qa-anchor":`confirm-modal-${e}-ok-button`,onClick:i},n)),onCancel:d},R.createElement(eC,null,r)),nC=()=>{let{confirmData:e,closeConfirm:t}=_e();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 R.createElement(Ea,null,R.createElement(hU,N(c({},e),{onCancel:o,onOk:r})))};var u0={icon__container:"Zr",icon:"_r",notifications:"S",notificationContainer:"E",appear:"F"};var vU=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))},g0=vU;var xU=t=>{var e=P(t,[]);return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 512 512"},e),R.createElement("path",{d:`M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504
|
|
464
466
|
119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200
|
|
465
467
|
110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm42-104c0 23.159-18.841 42-42
|
|
466
468
|
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
|
|
@@ -471,12 +473,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
471
473
|
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
|
|
472
474
|
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
|
|
473
475
|
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
|
|
474
|
-
0-22.58L207.6 256z`})),lC=bU;var f0={icon:"ea"};var K4=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),PU=3e3,cC=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||PU);};return R.createElement(K4.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(g0,{className:f0.icon})})),info:i=>n(N(c({},i),{icon:R.createElement(X1,{className:f0.icon})})),error:i=>n(N(c({},i),{icon:R.createElement(lC,{className:f0.icon})})),show:i=>n(i)}}},e)},dC=()=>{let{notifications:e}=useContext(K4);return e},Po=()=>{let{notificationFunction:e}=useContext(K4);return e};var Os=({className:e,content:t,icon:o,duration:r})=>{let[n,i]=useState(!0);return r&&setTimeout(()=>{i(!1);},r),n?n&&R.createElement("div",{className:sr(u0.notificationContainer,e)},R.createElement("div",{className:sr(u0.icon__container)},o)," ",t):null},uC=()=>{let e=dC();return R.createElement("div",{className:u0.notifications},e.map(t=>R.createElement(Os,N(c({},t),{key:t.id}))))};var zs={closeIcon:"ra","svg-inline--fa":"aa",appear:"
|
|
476
|
+
0-22.58L207.6 256z`})),lC=bU;var f0={icon:"ea"};var K4=createContext({notifications:[],notificationFunction:{success:()=>{},info:()=>{},error:()=>{},show:()=>{}}}),PU=3e3,cC=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||PU);};return R.createElement(K4.Provider,{value:{notifications:t,notificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(g0,{className:f0.icon})})),info:i=>n(N(c({},i),{icon:R.createElement(X1,{className:f0.icon})})),error:i=>n(N(c({},i),{icon:R.createElement(lC,{className:f0.icon})})),show:i=>n(i)}}},e)},dC=()=>{let{notifications:e}=useContext(K4);return e},Po=()=>{let{notificationFunction:e}=useContext(K4);return e};var Os=({className:e,content:t,icon:o,duration:r})=>{let[n,i]=useState(!0);return r&&setTimeout(()=>{i(!1);},r),n?n&&R.createElement("div",{className:sr(u0.notificationContainer,e)},R.createElement("div",{className:sr(u0.icon__container)},o)," ",t):null},uC=()=>{let e=dC();return R.createElement("div",{className:u0.notifications},e.map(t=>R.createElement(Os,N(c({},t),{key:t.id}))))};var zs={closeIcon:"ra","svg-inline--fa":"aa",appear:"I",overlay:"oa",modalWindow:"v",smallModalWindow:"ta",title:"R",content:"ia",footer:"U"};var kU=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),R.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
|
|
475
477
|
0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
|
|
476
478
|
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
|
|
477
479
|
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
|
|
478
480
|
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
|
|
479
|
-
0-22.58L207.6 256z`})),Y1=kU;var hC=[.25,.4,.5,.75],AU=(e,t=!1)=>{if(!e)return Array(hC.length).fill("");if(t===!0&&e===$o.theme.dark.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];if(t===!1&&e===$o.theme.light.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];let o=parseToHsl(e);return hC.map(n=>t?darken(n,hslToColorString(o)):lighten(n,hslToColorString(o)))};function CC(e){let t=J4(),o=useMemo(()=>e!=null&&e.preferred_theme&&(e==null?void 0:e.preferred_theme)!=="default"?e.preferred_theme:"default",[e==null?void 0:e.preferred_theme,t]),r=o==="default"?t:o;return useMemo(()=>{var s;let i=((s=e==null?void 0:e.theme)==null?void 0:s[r])||{},a=AU(i.primary_color);return {"--asc-color-primary-default":i.primary_color,"--asc-color-primary-shade1":a[0],"--asc-color-primary-shade2":a[1],"--asc-color-primary-shade3":a[2],"--asc-color-primary-shade4":a[3],"--asc-color-secondary-default":i.secondary_color,"--asc-color-secondary-shade1":i.secondary_shade1_color,"--asc-color-secondary-shade2":i.secondary_shade2_color,"--asc-color-secondary-shade3":i.secondary_shade3_color,"--asc-color-secondary-shade4":i.secondary_shade4_color,"--asc-color-alert-default":i.alert_color,"--asc-color-base-inverse":i.base_inverse_color,"--asc-color-base-default":i.base_color,"--asc-color-base-shade1":i.base_shade1_color,"--asc-color-base-shade2":i.base_shade2_color,"--asc-color-base-shade3":i.base_shade3_color,"--asc-color-base-shade4":i.base_shade4_color,"--asc-color-base-shade5":i.base_shade5_color,"--asc-color-background-default":i.background_color}},[e,r])}var DU=createContext({currentTheme:"light",toggleTheme:()=>{}});var J4=()=>{let{currentTheme:e}=useContext(DU);return e};var X4=({page:e,component:t,element:o})=>o!=="*"?[`${e}/${t}/${o}`,`*/${t}/${o}`,`${e}/*/${o}`,`*/*/${o}`,`${e}/${t}/*`,`*/${t}/*`,`${e}/*/*`]:t!=="*"?[`${e}/${t}/*`,`${e}/*/*`,`*/${t}/*`]:e!=="*"?[`${e}/*/*`]:[],vC=createContext({config:null,parseConfig:()=>{},isExcluded:()=>!1,getConfig:()=>({})}),C0=()=>{let e=useContext(vC);if(!e)throw new Error("useCustomization must be used within a CustomizationProvider");return e},$o={preferred_theme:"default",theme:{light:{primary_color:"#36486c",secondary_color:"#292b32",secondary_shade1_color:"#636878",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#a5a9b5",secondary_shade4_color:"#ebecef",base_color:"#292b32",base_shade1_color:"#636878",base_shade2_color:"#898e9e",base_shade3_color:"#a5a9b5",base_shade4_color:"#ebecef",base_shade5_color:"#F9F9FA",alert_color:"#FA4D30",background_color:"#FFFFFF",base_inverse_color:"#000000"},dark:{primary_color:"#1054DE",secondary_color:"#ebecef",secondary_shade1_color:"#a5a9b5",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#40434e",secondary_shade4_color:"#292b32",base_color:"#ebecef",base_shade1_color:"#a5a9b5",base_shade2_color:"#6e7487",base_shade3_color:"#40434e",base_shade4_color:"#292b32",base_shade5_color:"#f9f9fa",alert_color:"#FA4D30",background_color:"#191919",base_inverse_color:"#FFFFFF"}},excludes:[],customizations:{"select_target_page/*/*":{theme:{},title:"Share to"},"select_target_page/*/back_button":{back_icon:"back.png"},"camera_page/*/*":{resolution:"720p"},"camera_page/*/close_button":{close_icon:"close.png"},"create_story_page/*/*":{},"create_story_page/*/back_button":{back_icon:"back.png",background_color:"#1234DB"},"create_story_page/*/aspect_ratio_button":{aspect_ratio_icon:"aspect_ratio.png",background_color:"1234DB"},"create_story_page/*/story_hyperlink_button":{hyperlink_button_icon:"hyperlink_button.png",background_color:"#1234DB"},"create_story_page/*/hyper_link":{hyper_link_icon:"hyper_link.png",background_color:"#1234DB"},"create_story_page/*/share_story_button":{share_icon:"share_story_button.png",background_color:"#1234DB",hide_avatar:!1},"story_page/*/*":{},"story_page/*/progress_bar":{progress_color:"#UD1234",background_color:"#AB1234"},"story_page/*/overflow_menu":{overflow_menu_icon:"threeDot.png"},"story_page/*/close_button":{close_icon:"close.png"},"story_page/*/story_impression_button":{impression_icon:"impressionIcon.png"},"story_page/*/story_comment_button":{comment_icon:"comment.png",background_color:"#2b2b2b"},"story_page/*/story_reaction_button":{reaction_icon:"like.png",background_color:"#2b2b2b"},"story_page/*/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#ffffff"},"story_page/*/speaker_button":{mute_icon:"mute.png",unmute_icon:"unmute.png",background_color:"#1243EE"},"story_page/*/arrow_left_button":{arrow_left_icon:"arrow_left.png",background_color:"#1243EE"},"story_page/*/arrow_right_button":{arrow_right_icon:"arrow_right.png",background_color:"#1243EE"},"*/edit_comment_component/*":{theme:{}},"*/edit_comment_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel",background_color:""},"*/edit_comment_component/save_button":{save_icon:"",save_button_text:"Save",background_color:"#1243EE"},"*/hyper_link_config_component/*":{theme:{}},"*/hyper_link_config_component/done_button":{done_icon:"",done_button_text:"Done",background_color:"#1243EE"},"*/hyper_link_config_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel"},"*/comment_tray_component/*":{theme:{}},"*/comment_tray_component/comment_bubble_deleted_view":{comment_bubble_deleted_icon:"comment_bubble_deleted.png",text:"This reply has been deleted"},"*/story_tab_component/*":{},"*/story_tab_component/story_ring":{progress_color:["#339AF9","#78FA58"],background_color:"#AB1234"},"*/story_tab_component/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#1243EE"},"*/*/close_button":{close_icon:"close.png"},"social_home_page/top_navigation/header_label":{text:"Community"},"social_home_page/top_navigation/global_search_button":{icon:"searchButtonIcon"},"social_home_page/top_navigation/post_creation_button":{icon:"postCreationIcon"},"social_home_page/*/newsfeed_button":{text:"Newsfeed"},"social_home_page/*/explore_button":{text:"Explore"},"social_home_page/*/my_communities_button":{text:"My Communities"},"social_home_page/empty_newsfeed/illustration":{icon:"emptyFeedIcon"},"social_home_page/empty_newsfeed/title":{text:"Your Feed is empty"},"social_home_page/empty_newsfeed/description":{text:"Find community or create your own"},"social_home_page/empty_newsfeed/explore_communities_button":{icon:"exploreCommunityIcon",text:"Explore Community"},"social_home_page/empty_newsfeed/create_community_button":{icon:"createCommunityIcon",text:"Create Community"},"social_home_page/my_communities/community_avatar":{},"social_home_page/my_communities/community_display_name":{},"social_home_page/my_communities/community_private_badge":{icon:"lockIcon"},"social_home_page/my_communities/community_official_badge":{icon:"officalBadgeIcon"},"social_home_page/my_communities/community_category_name":{},"social_home_page/my_communities/community_members_count":{},"social_home_page/newsfeed_component/*":{},"social_home_page/global_feed_component/*":{},"global_search_page/*/*":{},"post_detail_page/*/back_button":{icon:"backButtonIcon"},"post_detail_page/*/menu_button":{icon:"menuIcon"},"*/*/moderator_badge":{icon:"badgeIcon",text:"Moderator"},"*/post_content/timestamp":{},"*/post_content/menu_button":{icon:"menuIcon"},"*/post_content/post_content_view_count":{},"*/post_content/reaction_button":{icon:"likeButtonIcon",text:"Like"},"*/post_content/comment_button":{icon:"commentButtonIcon",text:"Comment"},"*/post_content/share_button":{icon:"shareButtonIcon",text:"Share"},"post_composer_page/*/*":{},"post_composer_page/*/close_button":{image:"platformValue"},"post_composer_page/*/community_display_name":{},"post_composer_page/*/create_new_post_button":{text:"Post"},"post_composer_page/*/edit_post_button":{text:"Save"},"post_composer_page/*/edit_post_title":{text:"Edit post"},"post_composer_page/media_attachment/*":{},"post_composer_page/media_attachment/camera_button":{image:"platformValue"},"post_composer_page/media_attachment/image_button":{image:"platformValue"},"post_composer_page/media_attachment/video_button":{image:"platformValue"},"post_composer_page/media_attachment/file_button":{image:"platformValue"},"post_composer_page/media_attachment/detailed_button":{image:"platformValue"},"post_composer_page/detailed_media_attachment/*":{},"post_composer_page/detailed_media_attachment/camera_button":{text:"Camera",image:"platformValue"},"post_composer_page/detailed_media_attachment/image_button":{text:"Photo",image:"platformValue"},"post_composer_page/detailed_media_attachment/video_button":{text:"Video",image:"platformValue"},"post_composer_page/detailed_media_attachment/file_button":{text:"Attachment",image:"platformValue"},"social_home_page/*/*":{},"social_home_page/create_post_menu/*":{},"social_home_page/create_post_menu/create_post_button":{text:"Post",image:"Post"},"social_home_page/create_post_menu/create_story_button":{text:"Story",image:"Story"},"social_home_page/create_post_menu/create_poll_button":{text:"Poll",image:"Poll"},"social_home_page/create_post_menu/create_livestream_button":{text:"Livestream",image:"Livestream"},"select_post_target_page/*/close_button":{image:"platformValue"},"select_post_target_page/*/my_timeline_avatar":{},"select_post_target_page/*/title":{text:"Post to"},"select_post_target_page/*/my_timeline_text":{text:"My Timeline"},"select_story_target_page/*/close_button":{image:"platformValue"},"select_story_target_page/*/title":{text:"Share to"},"*/*/community_official_badge":{image:"platformValue"},"*/*/community_private_badge":{image:"platformValue"},"social_global_search_page/*/*":{},"social_global_search_page/top_search_bar/*":{text:"Search community and user"},"social_global_search_page/top_search_bar/search_icon":{icon:"search"},"social_global_search_page/top_search_bar/clear_button":{icon:"clear"},"social_global_search_page/top_search_bar/cancel_button":{text:"Cancel"},"social_global_search_page/community_search_result/community_avatar":{},"social_global_search_page/community_search_result/community_display_name":{},"social_global_search_page/community_search_result/community_private_badge":{icon:"lockIcon"},"social_global_search_page/community_search_result/community_official_badge":{icon:"officialBadgeIcon"},"social_global_search_page/community_search_result/community_category_name":{},"social_global_search_page/community_search_result/community_members_count":{},"my_communities_search_page/top_search_bar/*":{text:"Search my community"},"my_communities_search_page/*/community_avatar":{},"my_communities_search_page/*/community_display_name":{},"my_communities_search_page/*/community_private_badge":{icon:"lockIcon"},"my_communities_search_page/*/community_official_badge":{icon:"officialBadgeIcon"},"my_communities_search_page/*/community_category_name":{},"my_communities_search_page/*/community_members_count":{},"my_communities_search_page/top_search_bar/cancel_button":{text:"Cancel"},"community_profile_page/*/*":{},"community_profile_page/community_feed/*":{},"*/post_content/announcement_badge":{image:"value"},"*/post_content/pin_badge":{image:"value"},"*/post_content/non_member_section":{image:"value"},"community_profile_page/community_header/*":{},"community_profile_page/community_header/community_cover":{},"community_profile_page/community_header/community_name":{},"community_profile_page/community_header/community_verify_badge":{image:"value"},"community_profile_page/community_header/community_category":{},"community_profile_page/community_header/community_description":{},"community_profile_page/community_header/community_info":{},"community_profile_page/community_header/community_join_button":{image:"value"},"community_profile_page/community_header/community_pending_post":{image:"value"},"community_profile_page/community_header/back_button":{image:"value"},"community_profile_page/community_header/menu_button":{image:"value"},"community_profile_page/community_profile_tab/*":{},"community_profile_page/community_profile_tab/community_feed_tab_button":{image:"value"},"community_profile_page/community_profile_tab/community_pin_tab_button":{image:"value"},"community_profile_page/community_pin/*":{},"community_profile_page/community_pin/community_create_post_button":{image:"value"},"community_profile_page/post_content/*":{}}},xC=e=>{let[t,o,r]=e.split("/"),n=X4({page:t,component:o,element:r});return new Proxy({},{get(i,a){var s,l;for(let d of n)if((l=(s=$o==null?void 0:$o.customizations)==null?void 0:s[d])!=null&&l[a])return $o.customizations[d][a]}})},bC=({children:e,initialConfig:t={}})=>{let [o,r]=useState(null);J4();useEffect(()=>{i()?a(t):console.error("Invalid configuration provided to CustomizationProvider");},[t]);let i=p=>!0,a=p=>{r(p);},d={config:o,parseConfig:a,isExcluded:p=>{var v;let[u,g,f]=p.split("/"),y=X4({page:u,component:g,element:f});return ((v=o==null?void 0:o.excludes)==null?void 0:v.some(C=>y.some(h=>h===C)))||!1},getConfig:p=>{let[u,g,f]=p.split("/"),y=X4({page:u,component:g,element:f}),v=C=>({get(h,x){var b,M,I,w,k,T,L,D,U,j,E,V,G,q,O;for(let H of y)if((w=(I=(M=(b=o==null?void 0:o.customizations)==null?void 0:b[H])==null?void 0:M.theme)==null?void 0:I[C])!=null&&w[x])return (T=(k=o.customizations[H].theme)==null?void 0:k[C])==null?void 0:T[x];if((D=(L=o==null?void 0:o.theme)==null?void 0:L[C])!=null&&D[x])return (U=o.theme[C])==null?void 0:U[x];for(let H of y)if((G=(V=(E=(j=$o.customizations)==null?void 0:j[H])==null?void 0:E.theme)==null?void 0:V[C])!=null&&G[x])return (O=(q=$o.customizations[H].theme)==null?void 0:q[C])==null?void 0:O[x];return $o.theme[C][x]}});return new Proxy({},{get(C,h){var x,b,M,I,w;if(h==="theme")return {light:new Proxy({},v("light")),dark:new Proxy({},v("dark"))};if(h==="preferred_theme")return (x=o==null?void 0:o.preferred_theme)!=null?x:$o.preferred_theme;for(let k of y)if((M=(b=o==null?void 0:o.customizations)==null?void 0:b[k])!=null&&M[h])return o.customizations[k][h];for(let k of y)if((w=(I=$o==null?void 0:$o.customizations)==null?void 0:I[k])!=null&&w[h])return $o.customizations[k][h]}})}};return R.createElement(vC.Provider,{value:d},e)};var A=({pageId:e,componentId:t,elementId:o})=>{let r=`${e}/${t}/${o}`,{getConfig:n,isExcluded:i}=C0(),a=n(r),s=xC(r),l=CC(a),d=i(r);return {config:a,defaultConfig:s,uiReference:r,accessibilityId:r,themeStyles:l,isExcluded:d}},te=({pageId:e,componentId:t})=>A({pageId:e,componentId:t,elementId:"*"}),Xe=({pageId:e})=>A({pageId:e,componentId:"*",elementId:"*"});var jU=({pageId:e="*",componentId:t="*",elementId:o="*",size:r="",onOverlayClick:n=()=>{},onCancel:i,title:a,footer:s,children:l})=>{let{accessibilityId:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:o}),u=useRef(null);return useEffect(()=>{var g;(g=u==null?void 0:u.current)==null||g.focus();},[u==null?void 0:u.current]),R.createElement("div",{className:zs.overlay,onClick:n,style:p},R.createElement("div",{className:sr(zs.modalWindow),"data-qa-anchor":d,ref:u,tabIndex:0},i&&R.createElement(Y1,{className:zs.closeIcon,onClick:i}),a&&R.createElement("div",{className:zs.title},a),R.createElement("div",{className:sr(zs.content)},l),s&&R.createElement("div",{className:zs.footer},s)))},wC=jU;var MC={button:"sa"};var F=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement(Button,c({className:sr(MC.button,e)},t))};var PC=createContext({confirmData:null,confirm:e=>{},info:e=>{},closeConfirm:()=>{}}),Ye=()=>useContext(PC),_C=({children:e})=>{let[t,o]=useState(null),r=()=>{o(null);},n=a=>{o(N(c({},a),{type:"confirm"}));},i=a=>o(N(c({},a),{type:"info",OkButton:he}));return R.createElement(PC.Provider,{value:{confirmData:t,confirm:n,info:i,closeConfirm:r}},e)};var el={modal:"ca",background:"na",footer:"la",okButton:"da",cancelButton:"H"};var Oe={typography:"ma","typography-headings":"ga","typography-titles":"ha","typography-sub-title":"pa","typography-body":"fa","typography-body-bold":"ua","typography-caption":"ba","typography-caption-bold":"va"};var $s=e=>e.renderer!==void 0,e$={Heading:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-headings"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h1",c({className:sr(Oe.typography,Oe["typography-headings"],o),style:r},n),t)},Title:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-titles"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h2",c({className:sr(Oe.typography,Oe["typography-titles"],o),style:r},n),t)},Subtitle:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-sub-title"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h3",c({className:sr(Oe.typography,Oe["typography-sub-title"],o),style:r},n),t)},Body:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-body"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-body"],o),style:r},n),t)},BodyBold:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-body-bold"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-body-bold"],o),style:r},n),t)},Caption:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-caption"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-caption"],o),style:r},n),t)},CaptionBold:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-caption-bold"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-caption-bold"],o),style:r},n),t)}},S=e$;var o$=({pageId:e="*",componentId:t="*",elementId:o="*",className:r,title:n,content:i,okText:a="Ok",onOk:s,cancelText:l="Cancel",onCancel:d,type:p="confirm"})=>{let{accessibilityId:u,themeStyles:g}=A({pageId:e,componentId:t,elementId:o});return R.createElement(wC,{className:sr(r,el.modal),pageId:e,componentId:t,elementId:o,"data-qa-anchor":`confirm-modal-${u}`,title:n,footer:R.createElement("div",{className:el.footer},p==="confirm"&&R.createElement(F,{style:g,className:el.cancelButton,"data-qa-anchor":"confirm-modal-cancel-button",onPress:d},R.createElement(S.BodyBold,null,l)),R.createElement(F,{style:g,className:el.okButton,"data-qa-anchor":`confirm-modal-${u}-ok-button`,onPress:s},R.createElement(S.BodyBold,null,a))),onCancel:d},R.createElement("div",null,i))},TC=()=>{let{confirmData:e,closeConfirm:t}=Ye();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk();};return R.createElement(o$,N(c({},e),{onCancel:o,onOk:r,className:el.background}))};var kC={socialCommunityCreationButtonVisible:!0},SC=createContext(kC),NC=()=>useContext(SC);function Y4({children:e,config:t}){let o=useMemo(()=>c(c({},kC),t),[t]);return R.createElement(SC.Provider,{value:o},e)}var EC={"general.action.cancel":"Cancel","general.action.accept":"Accept","general.action.decline":"Decline","general.action.discard":"Discard","general.action.ok":"Ok","general.error.tryAgainLater":"Something went wrong. Please try again later.","general.connection.waiting":"Waiting for connection...",hello:"Hello World","plural.like":"{amount, plural, one {like} other {likes}}",comment:"Comment","plural.comment":"{amount, plural, one {comment} other {comments}}","plural.member":"{amount, plural, one {member} other {members}}",selectACategory:"Select a category",todaysTrendingTitle:"Trending groups",loadMore:"Load More",categoryList:"Categories",recommendedList:"Groups you\u2019ll love","exploreHeader.searchCommunityTitle":"Explore groups","exploreHeader.searchCommunityPlaceholder":"Search groups...","exploreHeader.createCommunityTitle":"or create your own!","exploreHeader.createCommunityButton":"Create community",backTitle:"Back",createCommunity:"Create Group",moderator:"Moderator","moderatorMenu.promoteToModerator":"Promote to moderator","moderatorMenu.dismissModerator":"Dismiss moderator","moderatorMenu.removeFromCommunity":"Remove from community","post.readMore":"Read more","post.editPost":"Edit post","post.deletePost":"Delete post","post.editPostMobile":"Edit","post.deletePostMobile":"Delete","post.confirmDelete":"This post will be permanently deleted. You\u2019ll no longer to see and find this post. Continue?","post.confirmPendingDelete":"This post will be permanently deleted from the pending list","post.edited":"Edited","post.like":"Like","post.liked":"Liked","post.unknownPost.description":"We couldn\u2019t recognize this post.","post.unknownPost.title":"Something went wrong","post.renderingError.description":"We couldn\u2019t render this post.","post.renderingError.title":"Something went wrong","post.community":"Group","post.myTimeline":"My Timeline","post.wasLive":"was live","post.success.approved":"Post approved","post.success.declined":"Post declined","post.success.submittedToReview":"Your post has been submitted to review by moderator","post.error.cannotReview.title":"Post is not available","post.error.cannotReview.description":"The post has been reviewed by another moderator","post.discard.title":"Discard post?","post.discard.content":"Do you want to discard your post?","post.editDiscard.title":"Discard changes","post.editDiscard.content":"Do you want to discard your changes?","post.editDiscard.cancel":"Continue editing","collapsible.viewAll":"View all","collapsible.viewAllFiles":"View all files","collapsible.viewAllComments":"View all comments...","collapsible.viewMoreComments":"View more comments...","collapsible.viewMoreReplies":"View more replies","collapsible.viewReplies":"View replies","collapsible.viewMoreReply":"View {count, plural, one {# reply} other {# replies}}","community.createSuccess":"Your community was successfully created","community.updateSuccess":"Your community was successfully updated","community.editProfile":"Edit profile","community.join":"Join","community.communitySettings":"Group Settings","community.returnTo":"Return to {communityName}","community.leaveCommunityTitle":"Leave community?","community.leaveCommunityBody":"You won\u2019t no longer be able to post and interact in this community after leaving.","community.leaveCommunityBodyLastMember":"As you\u2019re the last moderator and member, choose close group to leave.","community.leaveCommunityBodyOnlyModerator":"You\u2019re the only moderator in this group. Nominate other members before leaving community.","community.leaveCommunityButtonText":"Leave","community.leaveCommunityButtonOK":"OK","community.cannotInteract":"Join community to interact with all posts","community.removeUserFromCommunityTitle":"Remove user from community","community.removeUserFromCommunityBody":"This user won't no longer be able to search, post. Continue?","community.name":"Group name","community.about":"About","community.category":"Category","community.onlyadmincanpost":">Only admin can post","community.onlyadmins":"Choose to allow Only Admins to create posts in this community.","community.categorypermission":"Group permission","community.addmembers":"Add members","community.posts":"posts","community.members":"members","community.settings":"Settings","community.leaveCommunity":"Leave Group","CommunityMembers.members":"Members","CommunityMembers.moderators":"Moderators","EmptyFeed.TargetType.globalFeed":"This feed is empty","EmptyFeed.TargetType.communityFeed":"This community's feed is empty","EmptyFeed.TargetType.userFeed":"This user's feed is empty","EmptyFeed.TargetType.myFeed":"Your feed is empty. Start your first post","EmptyFeed.exploreCommunity":"Explore Group","UserFeed.tabs.timeline":"Timeline","community.exploreCommunities":"Explore Community","community.permissions.postReview":"Post review","community.permissions.storyComments":"Story comments","community.permissions.approvePosts":"Approve member posts","community.permissions.allowStoryComments":"Allow comments on group stories","community.permissions.approvePosts.prompt":"Posts by members have to be reviewed and approved by group moderator.","community.permissions.storyComments.prompt":"Turn on to receive comments on stories in this group.","community.permissions.error.needApprovalOnPostCreation.turnOn":"Unable to turn on post review","community.permissions.error.needApprovalOnPostCreation.turnOff":"Unable to turn off post review","community.permissions.error.storyComments.turnOn":"Unable to turn on post review","community.permissions.error.storyComments.turnOff":"Unable to turn off post review","community.review.declinePendingPosts":"Decline pending post will permanently delete the selected post from group.","community.pendingPostsBanner.title":"Pending posts","community.pendingPostsBanner.pendingForReview":"Your posts are pending for review","community.pendingPostsBanner.needApproval":"{formattedAmount} {amount, plural, one {post needs} other {posts need}} approval","communityCreatedModal.title":"Customize your community","communityCreatedModal.message":"You\u2019ve successfully created a community! Now let's manage permissions that work best for you","communityCreatedModal.goToSettings":"Group settings","communityCreatedModal.skip":"Skip for now",post:"Post","upload.attachmentLimit":"You reached the maximum attachment of {maxFiles}","upload.fileSizeLimit":"One of the selected file is larger than 1GB. Please select a new file.","user.editProfile":"Edit profile","user.message":"Message","follow.placeholder.noFollowings":"No following yet","follow.placeholder.noFollowers":"No followers yet","ProfileSettings.editProfile":"Edit profile","ProfileSettings.returnTo":"Return to ","SideSectionMyCommunity.myCommunity":"My groups","file.reUpload":"Click to re-upload the file","UserProfileForm.displayname":"Nickname","UserProfileForm.about":"About","UserProfileForm.title":"General","UserProfileForm.namePlaceholder":"Enter user display name","UserProfileForm.requiredDisplayName":"Display name is required","UserProfileForm.requiredDescription":"Enter something about yourself","UserSelector.placeholder":"Select user...","report.reportUser":"Report user","report.unreportUser":"Unreport user","report.reportComment":"Report comment","report.unreportComment":"Unreport comment","report.reportSent":"Report sent","report.unreportSent":"Unreport sent","comment.like":"Like","comment.liked":"Liked","comment.deleted":"This comment has been deleted","comment.delete":"Delete comment","comment.edit":"Edit comment","comment.deleteMobile":"Delete","comment.editMobile":"Edit","comment.deleteConfirmContent":"This comment will be permanently deleted. Continue?","comment.deleteConfirmCancelText":"Cancel","comment.deleteConfirmOkText":"Delete","dropdown.first":"First","dropdown.second":"Second","layout.logout":"Log Out","layout.username":"Jackies","chat.details.chatDetailes":"Chat Detail","chat.details.communityName":"Group Name","message.flag":"flag","message.unflag":"Unflag","message.edit":"Edit","message.delete":"Delete","message.deleted":"deleted","message.unsupportedFormat":"Unsupported message format","message.saveOptionsError":"There was an error processing your request","MessageComposeBar.placeholder":"Type your message...","RecentChat.chats":"Chats","AddMemberModal.addMembers":"Add members","AddMemberModal.membersValidationError":"Please select at least one member",add:"Add",save:"Save",close:"Close",reply:"Reply",delete:"Delete",create:"Create",cancel:"Cancel",loading:"Loading...","loading.chat":"Loading chat...",anonymous:"Anonymous","comment.edited":"Edited","comment.readmore":"Read more","communities.nocommunityfound":"No Group found","profile.setting":"Profile Settings","sidesectioncommunity.newfeed":"Feed","sidesectioncommunity.userProfile":"Profile","sidesectioncommunity.explore":"Explore","sidesectioncommunity.community":"Community","communityFeed.join":"Join community to interact with all posts","communityFeed.members":"Members","communityFeed.moderators":"Moderators","files.all":"View all files","sidebar.community":"Group","sidebar.explore":"Explore","sidebar.user":"User profile","CategoryCommunitiesList.emptyTitle":"It's empty here...","CategoryCommunitiesList.emptyDescription":"No community found in this category","CommentComposeBar.addComment":"Post","CommentComposeBar.replayTo":"Reply to ","CommentComposeBar.replayToUser":"Replying to {displayName}","CommentComposeBar.saySomething":"Say something nice...","CommentComposeBar.unableToPost":"Unable to post","CommentComposeBar.overCharacter":"You have reached maximum 50,000 characters in a post.","CommentComposeBar.done":"Done","CommentComposeBar.unableToMention":"Unable to mention","CommentComposeBar.overMentionees":"You have reached maximum 30 mentioned users in a post.","CommentComposeBar.okText":"OK","CommunityCreationModal.title":"Leave without finishing?","CommunityCreationModal.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","CommunityCreationModal.cancelText":"Continue editing","CommunityCreationModal.okText":"Leave","PostAsCommunity.title":"Post as group","PostAsCommunity.caption":"Enable this will publish the post on behalf of group account","AddMemberAction.title":"Add members","AddMemberAction.description":"Add your friends to this group to participate in group conversations","CloseCommunityAction.closeConfirm.title":"Close group?","CloseCommunityAction.closeConfirm.description":"All members will be removed from the community. All posts, messages, reactions and media shared in community will be deleted. This cannot be undone.","CloseCommunityAction.title":"Close group","CloseCommunityAction.description":"Closing this group will remove the group page and all its content and comments. This cannot be undone.","report.doReport":"Report","report.undoReport":"Undo Report","comment.deleteBody":"This comment will be permanently removed.","reply.delete":"Delete reply","reply.deleteBody":"This reply will be permanently deleted. Continue?","reply.edit":"Edit reply","reply.deleted":"This reply has been deleted","tabs.editProfile":"Edit profile","tabs.timeline":"Timeline","tabs.followers":"Followers","tabs.followings":"Following","tabs.pending":"Pending","tabs.members":"Members","tabs.moderators":"Moderators","tabs.pendingPosts":"Pending {amount, select, 0 {} other { ({formattedAmount})}}","tabs.permissions":"Permissions","tabs.gallery":"Gallery","tabs.images":"Photos","tabs.videos":"Videos","tabs.liveStreams":"Livestreams","feed.emptyFeed":"This feed is empty","feed.emptyCommunityPublicFeed":"This community's feed is empty","feed.emptyCommunityReviewingFeed":"No pending posts","feed.emptyJoinedCommunityPublicFeedTitle":"Your feed is empty.","feed.emptyJoinedCommunityPublicFeedBody":"Share a post to start the conversation!","feed.emptyMyCommunitiesBody":"You have not joined any groups yet. Please join one to get started.","feed.emptyUserFeed":"No posts yet","feed.emptyMyFeed":"Your feed is empty. Start your first post","feed.emptyMyCommunities":"No groups available","chat.groupSetting":"Group settings","chat.message.deleted":"Message was deleted","chat.message.unsupported":"Unsupported message type","chat.chats":"Chats","chat.details.header":"Chat Details","chat.details.chatName":"Chat Name","chat.leaveChat":"Leave chat","chat.leaveChat.confirm.title":"Leave chat","chat.leaveChat.confirm.content":"Are you sure you want to leave the chat?","chat.leaveChat.confirm.okButton":"Leave","chat.leaveChat.success":"You successfully left chat","chat.leaveChat.error":"Attempt to leave a chat has failed","chat.members.return":"Return to controls","chat.members.count":"{count} members","chat.create.modalTitle":"Create new chat","chat.loading.error":"Couldn't load chat","userSelector.placeholder":"Enter name or email addresses","userSelector.emptyState.title":"It's empty here...","userSelector.emptyState.description":"No contact found here","groupChat.createPopup.fieldName":"Group name","groupChat.createPopup.placeholder":"Please input group name","general.cancel.capital":"Cancel","general.create.capital":"Create","general.done.capital":"Done","chat.member.addMore":"Add or Remove user","video.notReady":"The video is being processed. Please try again later.","liveStream.idle":"This stream is currently unavailable","liveStream.ended.caption":"This liveStream has ended.","liveStream.ended.message":"Playback will be available for you to watch shortly.","user.follow":"Follow","user.unfollow":"Unfollow","user.unfollow.confirm.title":"Unfollow {displayName}","user.unfollow.confirm.body":"You\u2019ll have to send a request again to follow {displayName}. Continue?","user.cancel_follow":"Cancel request","placeholder.noResults":"No results found","request.accept":"Accept","request.decline":"Decline","follower.title.removeUser":"Remove {displayName} from followers?","follower.body.removeUser":"We will not notify {displayName} that they've been removed from your followers","follower.menuItem.removeUser":"Remove user","follower.menuItem.unfollow":"Unfollow","buttonText.cancel":"Cancel","buttonText.remove":"Remove","follow.pendingNotification.title":"Pending requests","follow.pendingNotification.body":"Your requests are waiting for review","notification.done":"Done","counter.posts":"posts","counter.followings":"following","counter.followers":"followers","buttonText.unfollow":"Unfollow","privateFeed.title":"This account is private","privateFeed.body":"Follow this user to see all posts","navigationBlocker.title":"Unsaved changes","navigationBlocker.content":"Your changes won`t be saved. Are you sure you want to leave this page now?","user.unfollow.confirm.title.thisUser":"Unfollow this user","mediaGallery.images.empty":"No photos yet","mediaGallery.liveStreams.empty":"No liveStreams yet","mediaGallery.videos.empty":"No videos yet","user.unfollow.confirm.body.thisUser":"You\u2019ll have to send a request again to follow this user. Continue?","navigationBlocker.okText":"Leave","options_composer.button.add":"Add Option","options_composer.title":"Create at least 2 options","poll_modal.answer_type.title":"Selection type","poll_modal.answer_type.body":"Choose to vote with one or multiple options","poll_modal.closed_in.title":"Schedule poll (Optional)","poll_modal.closed_in.body":"Poll will be automatically closed at the end of chosen time frame (UTC)","select.answerType.item":"{answerType} selection","poll_composer.question.label":"Poll options","poll_composer.question.placeholder":"What\u2019s your poll question?","poll_composer.poll_options.label":"Options","poll_modal.title":"Create poll","poll.votes":"{voteCount} votes","poll.vote.closedIn":"Poll ends in {closedIn} days","poll.vote.finalResults":"Final results","poll.vote.submit":"Submit vote","poll.error.deletedOrClosed":"This poll has been closed or deleted.","poll.close":"Close poll","postCreator.unableToPost":"Unable to post","postCreator.overCharacter":"You have reached maximum 50,000 characters in a post.","postCreator.done":"Done","postCreator.unableToMention":"Unable to mention","postCreator.overMentionees":"You have reached maximum 30 mentioned users in a post.","postCreator.okText":"OK","pollComposer.unableToMention":"Unable to mention","pollComposer.overMentionees":"You have reached maximum 30 mentioned users in a post.","pollComposer.okText":"OK","storyCreation.hyperlink.bottomSheet.cancel":"Cancel","storyCreation.hyperlink.bottomSheet.title":"Add link","storyCreation.hyperlink.bottomSheet.submit":"Done","storyCreation.hyperlink.form.urlLabel":"URL","storyCreation.hyperlink.form.urlPlaceholder":"https://example.com","storyCreation.hyperlink.form.linkTextLabel":"Customize link text","storyCreation.hyperlink.form.linkTextPlaceholder":"Name your link","storyCreation.hyperlink.form.linkTextDescription":"This text will show on the link instead of URL.","storyCreation.hyperlink.form.removeButton":"Remove link","storyCreation.hyperlink.removeConfirm.title":"Remove link","storyCreation.hyperlink.removeConfirm.content":"This link will be removed from story.","storyCreation.hyperlink.removeConfirm.cancel":"Cancel","storyCreation.hyperlink.removeConfirm.confirm":"Remove","storyCreation.hyperlink.validation.error.invalidUrl":"Please enter a valid URL.","storyCreation.hyperlink.validation.error.whitelisted":"Please enter a whitelisted URL.","storyCreation.hyperlink.validation.error.blocked":"Your text contains a blocklisted word.","storyCreation.hyperlink.unsavedChanges.title":"Unsaved changes","storyCreation.hyperlink.unsavedChanges.content":"Are you sure you want to cancel? Your changes won't be saved.","storyCreation.hyperlink.unsavedChanges.cancel":"No","storyCreation.hyperlink.unsavedChanges.confirm":"Yes","storyViewer.actions.deleteStory":"Delete story","storyViewer.action.confirmModal.title":"Delete this story?","storyViewer.action.confirmModal.content":"This story will be permanently deleted. You\u2019ll no longer to see and find this story.","storyViewer.notification.deleted":"Story deleted","storyViewer.notification.success":"Successfully shared story","storyViewer.notification.error":"Failed to share story","storyViewer.footer.failed":"Failed to upload","storyViewer.footer.uploading":"Uploading...","storyViewer.commentSheet.title":"Comments","storyViewer.commentSheet.empty":"No comments yet","storyViewer.commentSheet.disabled":"Comments are disabled for this story","storyViewer.commentSheet.replyingTo":"Replying to","storyViewer.toast.like.disabled":"Join community to interact with all stories","storyViewer.toast.comment.reported":"Comment reported","storyViewer.toast.comment.unreported":"Comment unreported","storyViewer.toast.disable.react":"Join community to interact with all stories","storyViewer.commentComposeBar.submit":"Post","storyDraft.button.shareStory":"Share story","storyDraft.notification.hyperlink.error":"Can\u2019t add more than one link to your story.","storyTab.title":"Story","select.chatType.item":"{answerType} type","chatComposer.label.channelId":"Channel ID","chatComposer.label.displayName":"Display Name","chatComposer.label.type":"Channel Type","chatComposer.addUsers":"Add users","chat_modal.title":"Create chat","chat_composer.placeholder.displayName":"Enter display name here","chat_composer.placeholder.channelId":"Enter channel ID here","editChatMembersModal.title":"Add/Edit chat members","editChatMembersModal.confirm.title":"Leave without finishing?","editChatMembersModal.confirm.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","editChatMembersModal.confirm.cancelText":"Continue editing","editChatMembersModal.confirm.okText":"Leave","notification.error.blockedWord":"Amity SDK (400308): Text contain blocked word","notification.error.whitelistLink":"Amity SDK (400309): Data contain link that is not in whitelist","livechat.deleted.message":"This message was deleted","livechat.messageBubble.reply.button":"Reply","livechat.messageBubble.copy.button":"Copy","livechat.messageBubble.delete.button":"Delete","livechat.messageBubble.mention.button":"Mention","livechat.messageBubble.report.button":"Report","livechat.messageBubble.unReport.button":"Unreport","livechat.channel.muted":"This channel has been set to read-only by the channel moderator","livechat.modal.delete.message.title":"Delete this message?","livechat.modal.delete.message.content":"This message will also be removed from your friend\u2019s devices.","livechat.mention.all":"All","livechat.mention.all.description":"Notify everyone","livechat.notification.copy.message":"Message copied","livechat.composebar.placeholder":"Write a message","livechat.delete.message.error":"Unable to delete message. Please try again.","livechat.member.muted":"You\u2019ve been muted by the channel moderator","livechat.member.muted.error":"User is muted","livechat.member.banned.title":"You are banned from chat","livechat.member.banned.description":"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned.","livechat.report.message.success":"Message reported","livechat.report.message.error":"This message failed to be reported. Please try again.","livechat.unReport.message.success":"Message unreported","livechat.unReport.message.error":"This message failed to be unreported. Please try again.","livechat.error.tooLongMessage.title":"Unable to send message","livechat.error.tooLongMessage.description":"Your message is too long. Please shorten your message and try again.","livechat.error.sendingMessage.error":"Your message wasn't sent. Please try again.","livechat.error.sendingMessage.blockedWord":"Your message wasn't sent as it contains a blocked word.","livechat.error.sendingMessage.notAllowLink":"Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.","livechat.reaction.errorOnload":"Unable to load reactions","livechat.reaction.emptyState":"No reactions yet","livechat.reaction.emptyState.description":"Be the first to react to this message!","livechat.reaction.label.removeReaction":"Click to remove reaction"};var v0={en:EC};var BC="en",c$=({locale:e,children:t})=>{let o=v0[e]?v0[e]:v0[BC];return R.createElement(IntlProvider,{defaultLocale:BC,locale:e,messages:o},t)},LC=c$;var d$={palette:{alert:"#FA4D30",base:"#292B32",primary:"#000000",secondary:"#FFD400",tertiary:"#FF305A",neutral:"#17181C",highlight:"#1054DE",system:{borders:"#ebecef",background:"#fff"}},typography:{global:{fontFamily:"Circular Std, system-ui",fontStyle:"normal"},headline:{fontWeight:600,fontSize:"20px"},title:{fontWeight:600,fontSize:"16px"},subTitle:{fontWight:400,fontSize:"13px"},body:{fontWeight:"normal",fontSize:"14px"},bodyBold:{fontWeight:600,fontSize:"14px"},caption:{fontWeight:"normal",fontSize:"12px"},captionBold:{fontWeight:600,fontSize:"12px"}}},AC=d$;function tl(e){return (e==null?void 0:e.communityMembership)==="member"}function x0(e){return (e==null?void 0:e.userPrivacySetting)==="private"}function DC(e){return (e||[]).map((t,o)=>{var r;return {id:t.userId,display:(r=t.displayName)!=null?r:t.userId,avatar:t.avatarCustomUrl,isLastItem:(e==null?void 0:e.length)===o+1}})}var b0=1;function u$(e,t,o){let r=o+b0,n=r+t;return e.substring(r,n)}function I0(e){return e?e.sort((o,r)=>o.index-r.index).map(({index:o,length:r})=>({start:o,end:o+r+b0,highlight:!0})):[]}function HC(e){let t={},o=[];return (e==null?void 0:e.length)>0?(t.mentioned=[...e.sort((r,n)=>r.plainTextIndex-n.plainTextIndex).map(({plainTextIndex:r,id:n,display:i})=>({index:r,length:i.length-b0,type:"user",userId:n}))],o.push({type:"user",userIds:e.map(({id:r})=>r)})):o.push({type:"user",userIds:[]}),{metadata:t,mentionees:o}}function FC(e,t){if(!e||p$(t==null?void 0:t.mentioned))return e;let o=e;return ((t||{}).mentioned||[]).sort((r,n)=>n.index-r.index).forEach(({userId:r,length:n,index:i})=>{let a=`@[${u$(e,n,i)}](${r})`;o=o.replace(new RegExp(`(.{${i}}).{${n+b0}}`),`$1${a}`);}),o}function Fe(e){return e!=null}var UC=e=>e.toFixed(1),OC=e=>{let t=Math.min(e*100,100);return UC(t)};function f$(e){return e.alpha!==void 0}var $C=e=>{let{hue:t,saturation:o,lightness:r}=e,n=[`${UC(t)}`,`${OC(o)}%`,`${OC(r)}%`];return f$(e)?`hsla(${[...n,e.alpha].filter(Fe).join(",")})`:`hsl(${n.filter(Fe).join(",")})`},y$=e=>{let t=parseToHsl(e);return $C(t)},h$=(e,t)=>{let o=parseToHsl(t),{lightness:r}=o,n=N(c({},o),{lightness:Math.min(1,r+e)});return $C(n)},C$=[.25,.4,.5,.75],VC=e=>{let i=e,{system:t}=i,o=P(i,["system"]),r=Object.keys(o).reduce((a,s)=>(a[s]={main:y$(o[s])},a),c({},o)),n=Object.keys(r).reduce((a,s)=>{let l=o[s],d=C$.reduce((u,g,f)=>{let y=`shade${f+1}`;return u[y]=h$(g,l),u},{}),p=r[s];return p&&typeof p=="object"?a[s]=c(c({},d),p):a[s]=N(c({},d),{main:p}),a},c({},r));return N(c({},n),{system:t})};var v$=["fontFamily","fontStyle","fontWeight","fontSize"],x$=e=>Object.keys(e).reduce((o,r)=>{let n=e[r];return r&&n&&v$.includes(r)&&(o[r]=n),o},{}),jC=e=>Object.keys(e).reduce((o,r)=>(o[r]=x$(c(c({},e.global),e[r])),o),{});var GC={colors:{primary:{default:"#1054DE",shade1:"#4A82F2",shade2:"#A0BDF8",shade3:"#D9E5FC",shade4:"#FFFFFF"},secondary:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},base:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},baseInverse:{default:"#FFFFFF"},alert:{default:"#FA4D30"},highlight:"#1054DE",messageBubble:{default:"#1054DE",inverse:"#FFFFFF"},storyIndicator:{default:"#EBECEF",active:["#339AF9","#78FA58"]},hyperlink:{default:"#FFFFFFCC"},actionButton:{default:"#00000080"}},typography:{heading:{fontWeight:600,fontSize:"1.25rem",lineHeight:"1.5rem"},title:{fontWeight:600,fontSize:"1rem",lineHeight:"1.25rem"},subTitle:{fontWeight:400,fontSize:"0.8125rem",lineHeight:"1rem"},body:{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"1.25rem"},bodyBold:{fontWeight:600,fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontWeight:"normal",fontSize:"0.75rem",lineHeight:"1rem"},captionBold:{fontWeight:600,fontSize:"0.75rem",lineHeight:"1rem"}}};var I$=(e={})=>{let t=b$(AC,e),o=VC(t.palette),r=jC(t.typography);return N(c({},t),{palette:o,typography:r,v4:GC})},ZC=I$;var QC=m.div`
|
|
481
|
+
0-22.58L207.6 256z`})),Y1=kU;var hC=[.25,.4,.5,.75],AU=(e,t=!1)=>{if(!e)return Array(hC.length).fill("");if(t===!0&&e===$o.theme.dark.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];if(t===!1&&e===$o.theme.light.primary_color)return ["#4a82f2","#a0bdf8","#d9e5fc","#ffffff"];let o=parseToHsl(e);return hC.map(n=>t?darken(n,hslToColorString(o)):lighten(n,hslToColorString(o)))};function CC(e){let t=J4(),o=useMemo(()=>e!=null&&e.preferred_theme&&(e==null?void 0:e.preferred_theme)!=="default"?e.preferred_theme:"default",[e==null?void 0:e.preferred_theme,t]),r=o==="default"?t:o;return useMemo(()=>{var s;let i=((s=e==null?void 0:e.theme)==null?void 0:s[r])||{},a=AU(i.primary_color);return {"--asc-color-primary-default":i.primary_color,"--asc-color-primary-shade1":a[0],"--asc-color-primary-shade2":a[1],"--asc-color-primary-shade3":a[2],"--asc-color-primary-shade4":a[3],"--asc-color-secondary-default":i.secondary_color,"--asc-color-secondary-shade1":i.secondary_shade1_color,"--asc-color-secondary-shade2":i.secondary_shade2_color,"--asc-color-secondary-shade3":i.secondary_shade3_color,"--asc-color-secondary-shade4":i.secondary_shade4_color,"--asc-color-alert-default":i.alert_color,"--asc-color-base-inverse":i.base_inverse_color,"--asc-color-base-default":i.base_color,"--asc-color-base-shade1":i.base_shade1_color,"--asc-color-base-shade2":i.base_shade2_color,"--asc-color-base-shade3":i.base_shade3_color,"--asc-color-base-shade4":i.base_shade4_color,"--asc-color-base-shade5":i.base_shade5_color,"--asc-color-background-default":i.background_color}},[e,r])}var DU=createContext({currentTheme:"light",toggleTheme:()=>{}});var J4=()=>{let{currentTheme:e}=useContext(DU);return e};var X4=({page:e,component:t,element:o})=>o!=="*"?[`${e}/${t}/${o}`,`*/${t}/${o}`,`${e}/*/${o}`,`*/*/${o}`,`${e}/${t}/*`,`*/${t}/*`,`${e}/*/*`]:t!=="*"?[`${e}/${t}/*`,`${e}/*/*`,`*/${t}/*`]:e!=="*"?[`${e}/*/*`]:[],vC=createContext({config:null,parseConfig:()=>{},isExcluded:()=>!1,getConfig:()=>({})}),C0=()=>{let e=useContext(vC);if(!e)throw new Error("useCustomization must be used within a CustomizationProvider");return e},$o={preferred_theme:"default",theme:{light:{primary_color:"#36486c",secondary_color:"#292b32",secondary_shade1_color:"#636878",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#a5a9b5",secondary_shade4_color:"#ebecef",base_color:"#292b32",base_shade1_color:"#636878",base_shade2_color:"#898e9e",base_shade3_color:"#a5a9b5",base_shade4_color:"#ebecef",base_shade5_color:"#F9F9FA",alert_color:"#FA4D30",background_color:"#FFFFFF",base_inverse_color:"#000000"},dark:{primary_color:"#1054DE",secondary_color:"#ebecef",secondary_shade1_color:"#a5a9b5",secondary_shade2_color:"#898e9e",secondary_shade3_color:"#40434e",secondary_shade4_color:"#292b32",base_color:"#ebecef",base_shade1_color:"#a5a9b5",base_shade2_color:"#6e7487",base_shade3_color:"#40434e",base_shade4_color:"#292b32",base_shade5_color:"#f9f9fa",alert_color:"#FA4D30",background_color:"#191919",base_inverse_color:"#FFFFFF"}},excludes:[],customizations:{"select_target_page/*/*":{theme:{},title:"Share to"},"select_target_page/*/back_button":{back_icon:"back.png"},"camera_page/*/*":{resolution:"720p"},"camera_page/*/close_button":{close_icon:"close.png"},"create_story_page/*/*":{},"create_story_page/*/back_button":{back_icon:"back.png",background_color:"#1234DB"},"create_story_page/*/aspect_ratio_button":{aspect_ratio_icon:"aspect_ratio.png",background_color:"1234DB"},"create_story_page/*/story_hyperlink_button":{hyperlink_button_icon:"hyperlink_button.png",background_color:"#1234DB"},"create_story_page/*/hyper_link":{hyper_link_icon:"hyper_link.png",background_color:"#1234DB"},"create_story_page/*/share_story_button":{share_icon:"share_story_button.png",background_color:"#1234DB",hide_avatar:!1},"story_page/*/*":{},"story_page/*/progress_bar":{progress_color:"#UD1234",background_color:"#AB1234"},"story_page/*/overflow_menu":{overflow_menu_icon:"threeDot.png"},"story_page/*/close_button":{close_icon:"close.png"},"story_page/*/story_impression_button":{impression_icon:"impressionIcon.png"},"story_page/*/story_comment_button":{comment_icon:"comment.png",background_color:"#2b2b2b"},"story_page/*/story_reaction_button":{reaction_icon:"like.png",background_color:"#2b2b2b"},"story_page/*/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#ffffff"},"story_page/*/speaker_button":{mute_icon:"mute.png",unmute_icon:"unmute.png",background_color:"#1243EE"},"story_page/*/arrow_left_button":{arrow_left_icon:"arrow_left.png",background_color:"#1243EE"},"story_page/*/arrow_right_button":{arrow_right_icon:"arrow_right.png",background_color:"#1243EE"},"*/edit_comment_component/*":{theme:{}},"*/edit_comment_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel",background_color:""},"*/edit_comment_component/save_button":{save_icon:"",save_button_text:"Save",background_color:"#1243EE"},"*/hyper_link_config_component/*":{theme:{}},"*/hyper_link_config_component/done_button":{done_icon:"",done_button_text:"Done",background_color:"#1243EE"},"*/hyper_link_config_component/edit_cancel_button":{cancel_icon:"",cancel_button_text:"Cancel"},"*/comment_tray_component/*":{theme:{}},"*/comment_tray_component/comment_bubble_deleted_view":{comment_bubble_deleted_icon:"comment_bubble_deleted.png",text:"This reply has been deleted"},"*/story_tab_component/*":{},"*/story_tab_component/story_ring":{progress_color:["#339AF9","#78FA58"],background_color:"#AB1234"},"*/story_tab_component/create_new_story_button":{create_new_story_icon:"plus.png",background_color:"#1243EE"},"*/*/close_button":{close_icon:"close.png"},"social_home_page/top_navigation/header_label":{text:"Community"},"social_home_page/top_navigation/global_search_button":{icon:"searchButtonIcon"},"social_home_page/top_navigation/post_creation_button":{icon:"postCreationIcon"},"social_home_page/*/newsfeed_button":{text:"Newsfeed"},"social_home_page/*/explore_button":{text:"Explore"},"social_home_page/*/my_communities_button":{text:"My Communities"},"social_home_page/empty_newsfeed/illustration":{icon:"emptyFeedIcon"},"social_home_page/empty_newsfeed/title":{text:"Your Feed is empty"},"social_home_page/empty_newsfeed/description":{text:"Find community or create your own"},"social_home_page/empty_newsfeed/explore_communities_button":{icon:"exploreCommunityIcon",text:"Explore Community"},"social_home_page/empty_newsfeed/create_community_button":{icon:"createCommunityIcon",text:"Create Community"},"social_home_page/my_communities/community_avatar":{},"social_home_page/my_communities/community_display_name":{},"social_home_page/my_communities/community_private_badge":{icon:"lockIcon"},"social_home_page/my_communities/community_official_badge":{icon:"officalBadgeIcon"},"social_home_page/my_communities/community_category_name":{},"social_home_page/my_communities/community_members_count":{},"social_home_page/newsfeed_component/*":{},"social_home_page/global_feed_component/*":{},"global_search_page/*/*":{},"post_detail_page/*/back_button":{icon:"backButtonIcon"},"post_detail_page/*/menu_button":{icon:"menuIcon"},"*/*/moderator_badge":{icon:"badgeIcon",text:"Moderator"},"*/post_content/timestamp":{},"*/post_content/menu_button":{icon:"menuIcon"},"*/post_content/post_content_view_count":{},"*/post_content/reaction_button":{icon:"likeButtonIcon",text:"Like"},"*/post_content/comment_button":{icon:"commentButtonIcon",text:"Comment"},"*/post_content/share_button":{icon:"shareButtonIcon",text:"Share"},"post_composer_page/*/*":{},"post_composer_page/*/close_button":{image:"platformValue"},"post_composer_page/*/community_display_name":{},"post_composer_page/*/create_new_post_button":{text:"Post"},"post_composer_page/*/edit_post_button":{text:"Save"},"post_composer_page/*/edit_post_title":{text:"Edit post"},"post_composer_page/media_attachment/*":{},"post_composer_page/media_attachment/camera_button":{image:"platformValue"},"post_composer_page/media_attachment/image_button":{image:"platformValue"},"post_composer_page/media_attachment/video_button":{image:"platformValue"},"post_composer_page/media_attachment/file_button":{image:"platformValue"},"post_composer_page/media_attachment/detailed_button":{image:"platformValue"},"post_composer_page/detailed_media_attachment/*":{},"post_composer_page/detailed_media_attachment/camera_button":{text:"Camera",image:"platformValue"},"post_composer_page/detailed_media_attachment/image_button":{text:"Photo",image:"platformValue"},"post_composer_page/detailed_media_attachment/video_button":{text:"Video",image:"platformValue"},"post_composer_page/detailed_media_attachment/file_button":{text:"Attachment",image:"platformValue"},"social_home_page/*/*":{},"social_home_page/create_post_menu/*":{},"social_home_page/create_post_menu/create_post_button":{text:"Post",image:"Post"},"social_home_page/create_post_menu/create_story_button":{text:"Story",image:"Story"},"social_home_page/create_post_menu/create_poll_button":{text:"Poll",image:"Poll"},"social_home_page/create_post_menu/create_livestream_button":{text:"Livestream",image:"Livestream"},"select_post_target_page/*/close_button":{image:"platformValue"},"select_post_target_page/*/my_timeline_avatar":{},"select_post_target_page/*/title":{text:"Post to"},"select_post_target_page/*/my_timeline_text":{text:"My Timeline"},"select_story_target_page/*/close_button":{image:"platformValue"},"select_story_target_page/*/title":{text:"Share to"},"*/*/community_official_badge":{image:"platformValue"},"*/*/community_private_badge":{image:"platformValue"},"social_global_search_page/*/*":{},"social_global_search_page/top_search_bar/*":{text:"Search community and user"},"social_global_search_page/top_search_bar/search_icon":{icon:"search"},"social_global_search_page/top_search_bar/clear_button":{icon:"clear"},"social_global_search_page/top_search_bar/cancel_button":{text:"Cancel"},"social_global_search_page/community_search_result/community_avatar":{},"social_global_search_page/community_search_result/community_display_name":{},"social_global_search_page/community_search_result/community_private_badge":{icon:"lockIcon"},"social_global_search_page/community_search_result/community_official_badge":{icon:"officialBadgeIcon"},"social_global_search_page/community_search_result/community_category_name":{},"social_global_search_page/community_search_result/community_members_count":{},"my_communities_search_page/top_search_bar/*":{text:"Search my community"},"my_communities_search_page/*/community_avatar":{},"my_communities_search_page/*/community_display_name":{},"my_communities_search_page/*/community_private_badge":{icon:"lockIcon"},"my_communities_search_page/*/community_official_badge":{icon:"officialBadgeIcon"},"my_communities_search_page/*/community_category_name":{},"my_communities_search_page/*/community_members_count":{},"my_communities_search_page/top_search_bar/cancel_button":{text:"Cancel"},"community_profile_page/*/*":{},"community_profile_page/community_feed/*":{},"*/post_content/announcement_badge":{image:"value"},"*/post_content/pin_badge":{image:"value"},"*/post_content/non_member_section":{image:"value"},"community_profile_page/community_header/*":{},"community_profile_page/community_header/community_cover":{},"community_profile_page/community_header/community_name":{},"community_profile_page/community_header/community_verify_badge":{image:"value"},"community_profile_page/community_header/community_category":{},"community_profile_page/community_header/community_description":{},"community_profile_page/community_header/community_info":{},"community_profile_page/community_header/community_join_button":{image:"value"},"community_profile_page/community_header/community_pending_post":{image:"value"},"community_profile_page/community_header/back_button":{image:"value"},"community_profile_page/community_header/menu_button":{image:"value"},"community_profile_page/community_profile_tab/*":{},"community_profile_page/community_profile_tab/community_feed_tab_button":{image:"value"},"community_profile_page/community_profile_tab/community_pin_tab_button":{image:"value"},"community_profile_page/community_pin/*":{},"community_profile_page/community_pin/community_create_post_button":{image:"value"},"community_profile_page/post_content/*":{}}},xC=e=>{let[t,o,r]=e.split("/"),n=X4({page:t,component:o,element:r});return new Proxy({},{get(i,a){var s,l;for(let d of n)if((l=(s=$o==null?void 0:$o.customizations)==null?void 0:s[d])!=null&&l[a])return $o.customizations[d][a]}})},bC=({children:e,initialConfig:t={}})=>{let [o,r]=useState(null);J4();useEffect(()=>{i()?a(t):console.error("Invalid configuration provided to CustomizationProvider");},[t]);let i=p=>!0,a=p=>{r(p);},d={config:o,parseConfig:a,isExcluded:p=>{var v;let[u,g,f]=p.split("/"),y=X4({page:u,component:g,element:f});return ((v=o==null?void 0:o.excludes)==null?void 0:v.some(C=>y.some(h=>h===C)))||!1},getConfig:p=>{let[u,g,f]=p.split("/"),y=X4({page:u,component:g,element:f}),v=C=>({get(h,x){var b,M,I,w,k,T,L,D,U,j,E,V,G,q,O;for(let H of y)if((w=(I=(M=(b=o==null?void 0:o.customizations)==null?void 0:b[H])==null?void 0:M.theme)==null?void 0:I[C])!=null&&w[x])return (T=(k=o.customizations[H].theme)==null?void 0:k[C])==null?void 0:T[x];if((D=(L=o==null?void 0:o.theme)==null?void 0:L[C])!=null&&D[x])return (U=o.theme[C])==null?void 0:U[x];for(let H of y)if((G=(V=(E=(j=$o.customizations)==null?void 0:j[H])==null?void 0:E.theme)==null?void 0:V[C])!=null&&G[x])return (O=(q=$o.customizations[H].theme)==null?void 0:q[C])==null?void 0:O[x];return $o.theme[C][x]}});return new Proxy({},{get(C,h){var x,b,M,I,w;if(h==="theme")return {light:new Proxy({},v("light")),dark:new Proxy({},v("dark"))};if(h==="preferred_theme")return (x=o==null?void 0:o.preferred_theme)!=null?x:$o.preferred_theme;for(let k of y)if((M=(b=o==null?void 0:o.customizations)==null?void 0:b[k])!=null&&M[h])return o.customizations[k][h];for(let k of y)if((w=(I=$o==null?void 0:$o.customizations)==null?void 0:I[k])!=null&&w[h])return $o.customizations[k][h]}})}};return R.createElement(vC.Provider,{value:d},e)};var A=({pageId:e,componentId:t,elementId:o})=>{let r=`${e}/${t}/${o}`,{getConfig:n,isExcluded:i}=C0(),a=n(r),s=xC(r),l=CC(a),d=i(r);return {config:a,defaultConfig:s,uiReference:r,accessibilityId:r,themeStyles:l,isExcluded:d}},te=({pageId:e,componentId:t})=>A({pageId:e,componentId:t,elementId:"*"}),Xe=({pageId:e})=>A({pageId:e,componentId:"*",elementId:"*"});var jU=({pageId:e="*",componentId:t="*",elementId:o="*",size:r="",onOverlayClick:n=()=>{},onCancel:i,title:a,footer:s,children:l})=>{let{accessibilityId:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:o}),u=useRef(null);return useEffect(()=>{var g;(g=u==null?void 0:u.current)==null||g.focus();},[u==null?void 0:u.current]),R.createElement("div",{className:zs.overlay,onClick:n,style:p},R.createElement("div",{className:sr(zs.modalWindow),"data-qa-anchor":d,ref:u,tabIndex:0},i&&R.createElement(Y1,{className:zs.closeIcon,onClick:i}),a&&R.createElement("div",{className:zs.title},a),R.createElement("div",{className:sr(zs.content)},l),s&&R.createElement("div",{className:zs.footer},s)))},wC=jU;var MC={button:"la"};var F=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement(Button,c({className:sr(MC.button,e)},t))};var PC=createContext({confirmData:null,confirm:e=>{},info:e=>{},closeConfirm:()=>{}}),Ye=()=>useContext(PC),_C=({children:e})=>{let[t,o]=useState(null),r=()=>{o(null);},n=a=>{o(N(c({},a),{type:"confirm"}));},i=a=>o(N(c({},a),{type:"info",OkButton:he}));return R.createElement(PC.Provider,{value:{confirmData:t,confirm:n,info:i,closeConfirm:r}},e)};var el={modal:"sa",background:"ca",footer:"na",okButton:"da",cancelButton:"B"};var Oe={typography:"pa","typography-headings":"ga","typography-titles":"ha","typography-sub-title":"fa","typography-body":"ba","typography-body-bold":"ua","typography-caption":"va","typography-caption-bold":"xa"};var $s=e=>e.renderer!==void 0,e$={Heading:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-headings"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h1",c({className:sr(Oe.typography,Oe["typography-headings"],o),style:r},n),t)},Title:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-titles"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h2",c({className:sr(Oe.typography,Oe["typography-titles"],o),style:r},n),t)},Subtitle:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-sub-title"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("h3",c({className:sr(Oe.typography,Oe["typography-sub-title"],o),style:r},n),t)},Body:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-body"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-body"],o),style:r},n),t)},BodyBold:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-body-bold"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-body-bold"],o),style:r},n),t)},Caption:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-caption"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-caption"],o),style:r},n),t)},CaptionBold:e=>{if($s(e))return e.renderer({typoClassName:sr(Oe.typography,Oe["typography-caption-bold"])});let i=e,{children:t,className:o,style:r}=i,n=P(i,["children","className","style"]);return R.createElement("span",c({className:sr(Oe.typography,Oe["typography-caption-bold"],o),style:r},n),t)}},S=e$;var o$=({pageId:e="*",componentId:t="*",elementId:o="*",className:r,title:n,content:i,okText:a="Ok",onOk:s,cancelText:l="Cancel",onCancel:d,type:p="confirm"})=>{let{accessibilityId:u,themeStyles:g}=A({pageId:e,componentId:t,elementId:o});return R.createElement(wC,{className:sr(r,el.modal),pageId:e,componentId:t,elementId:o,"data-qa-anchor":`confirm-modal-${u}`,title:n,footer:R.createElement("div",{className:el.footer},p==="confirm"&&R.createElement(F,{style:g,className:el.cancelButton,"data-qa-anchor":"confirm-modal-cancel-button",onPress:d},R.createElement(S.BodyBold,null,l)),R.createElement(F,{style:g,className:el.okButton,"data-qa-anchor":`confirm-modal-${u}-ok-button`,onPress:s},R.createElement(S.BodyBold,null,a))),onCancel:d},R.createElement("div",null,i))},TC=()=>{let{confirmData:e,closeConfirm:t}=Ye();if(!e)return null;let o=()=>{t(),e!=null&&e.onCancel&&e.onCancel();},r=()=>{t(),e!=null&&e.onOk&&e.onOk();};return R.createElement(o$,N(c({},e),{onCancel:o,onOk:r,className:el.background}))};var kC={socialCommunityCreationButtonVisible:!0},SC=createContext(kC),NC=()=>useContext(SC);function Y4({children:e,config:t}){let o=useMemo(()=>c(c({},kC),t),[t]);return R.createElement(SC.Provider,{value:o},e)}var EC={"general.action.cancel":"Cancel","general.action.accept":"Accept","general.action.decline":"Decline","general.action.discard":"Discard","general.action.ok":"Ok","general.error.tryAgainLater":"Something went wrong. Please try again later.","general.connection.waiting":"Waiting for connection...",hello:"Hello World","plural.like":"{amount, plural, one {like} other {likes}}",comment:"Comment","plural.comment":"{amount, plural, one {comment} other {comments}}","plural.member":"{amount, plural, one {member} other {members}}",selectACategory:"Select a category",todaysTrendingTitle:"Trending groups",loadMore:"Load More",categoryList:"Categories",recommendedList:"Groups you\u2019ll love","exploreHeader.searchCommunityTitle":"Explore groups","exploreHeader.searchCommunityPlaceholder":"Search groups...","exploreHeader.createCommunityTitle":"or create your own!","exploreHeader.createCommunityButton":"Create community",backTitle:"Back",createCommunity:"Create Group",moderator:"Moderator","moderatorMenu.promoteToModerator":"Promote to moderator","moderatorMenu.dismissModerator":"Dismiss moderator","moderatorMenu.removeFromCommunity":"Remove from community","post.readMore":"Read more","post.editPost":"Edit post","post.deletePost":"Delete post","post.editPostMobile":"Edit","post.deletePostMobile":"Delete","post.confirmDelete":"This post will be permanently deleted. You\u2019ll no longer to see and find this post. Continue?","post.confirmPendingDelete":"This post will be permanently deleted from the pending list","post.edited":"Edited","post.like":"Like","post.liked":"Liked","post.unknownPost.description":"We couldn\u2019t recognize this post.","post.unknownPost.title":"Something went wrong","post.renderingError.description":"We couldn\u2019t render this post.","post.renderingError.title":"Something went wrong","post.community":"Group","post.myTimeline":"My Timeline","post.wasLive":"was live","post.success.approved":"Post approved","post.success.declined":"Post declined","post.success.submittedToReview":"Your post has been submitted to review by moderator","post.error.cannotReview.title":"Post is not available","post.error.cannotReview.description":"The post has been reviewed by another moderator","post.discard.title":"Discard post?","post.discard.content":"Do you want to discard your post?","post.editDiscard.title":"Discard changes","post.editDiscard.content":"Do you want to discard your changes?","post.editDiscard.cancel":"Continue editing","collapsible.viewAll":"View all","collapsible.viewAllFiles":"View all files","collapsible.viewAllComments":"View all comments...","collapsible.viewMoreComments":"View more comments...","collapsible.viewMoreReplies":"View more replies","collapsible.viewReplies":"View replies","collapsible.viewMoreReply":"View {count, plural, one {# reply} other {# replies}}","community.createSuccess":"Your community was successfully created","community.updateSuccess":"Your community was successfully updated","community.editProfile":"Edit profile","community.join":"Join","community.communitySettings":"Group Settings","community.returnTo":"Return to {communityName}","community.leaveCommunityTitle":"Leave community?","community.leaveCommunityBody":"You won\u2019t no longer be able to post and interact in this community after leaving.","community.leaveCommunityBodyLastMember":"As you\u2019re the last moderator and member, choose close group to leave.","community.leaveCommunityBodyOnlyModerator":"You\u2019re the only moderator in this group. Nominate other members before leaving community.","community.leaveCommunityButtonText":"Leave","community.leaveCommunityButtonOK":"OK","community.cannotInteract":"Join community to interact with all posts","community.removeUserFromCommunityTitle":"Remove user from community","community.removeUserFromCommunityBody":"This user won't no longer be able to search, post. Continue?","community.name":"Group name","community.about":"About","community.category":"Category","community.onlyadmincanpost":">Only admin can post","community.onlyadmins":"Choose to allow Only Admins to create posts in this community.","community.categorypermission":"Group permission","community.addmembers":"Add members","community.posts":"posts","community.members":"members","community.settings":"Settings","community.leaveCommunity":"Leave Group","CommunityMembers.members":"Members","CommunityMembers.moderators":"Moderators","EmptyFeed.TargetType.globalFeed":"This feed is empty","EmptyFeed.TargetType.communityFeed":"This community's feed is empty","EmptyFeed.TargetType.userFeed":"This user's feed is empty","EmptyFeed.TargetType.myFeed":"Your feed is empty. Start your first post","EmptyFeed.exploreCommunity":"Explore Group","UserFeed.tabs.timeline":"Timeline","community.exploreCommunities":"Explore Community","community.permissions.postReview":"Post review","community.permissions.storyComments":"Story comments","community.permissions.approvePosts":"Approve member posts","community.permissions.allowStoryComments":"Allow comments on group stories","community.permissions.approvePosts.prompt":"Posts by members have to be reviewed and approved by group moderator.","community.permissions.storyComments.prompt":"Turn on to receive comments on stories in this group.","community.permissions.error.needApprovalOnPostCreation.turnOn":"Unable to turn on post review","community.permissions.error.needApprovalOnPostCreation.turnOff":"Unable to turn off post review","community.permissions.error.storyComments.turnOn":"Unable to turn on post review","community.permissions.error.storyComments.turnOff":"Unable to turn off post review","community.review.declinePendingPosts":"Decline pending post will permanently delete the selected post from group.","community.pendingPostsBanner.title":"Pending posts","community.pendingPostsBanner.pendingForReview":"Your posts are pending for review","community.pendingPostsBanner.needApproval":"{formattedAmount} {amount, plural, one {post needs} other {posts need}} approval","communityCreatedModal.title":"Customize your community","communityCreatedModal.message":"You\u2019ve successfully created a community! Now let's manage permissions that work best for you","communityCreatedModal.goToSettings":"Group settings","communityCreatedModal.skip":"Skip for now",post:"Post","upload.attachmentLimit":"You reached the maximum attachment of {maxFiles}","upload.fileSizeLimit":"One of the selected file is larger than 1GB. Please select a new file.","user.editProfile":"Edit profile","user.message":"Message","follow.placeholder.noFollowings":"No following yet","follow.placeholder.noFollowers":"No followers yet","ProfileSettings.editProfile":"Edit profile","ProfileSettings.returnTo":"Return to ","SideSectionMyCommunity.myCommunity":"My groups","file.reUpload":"Click to re-upload the file","UserProfileForm.displayname":"Nickname","UserProfileForm.about":"About","UserProfileForm.title":"General","UserProfileForm.namePlaceholder":"Enter user display name","UserProfileForm.requiredDisplayName":"Display name is required","UserProfileForm.requiredDescription":"Enter something about yourself","UserSelector.placeholder":"Select user...","report.reportUser":"Report user","report.unreportUser":"Unreport user","report.reportComment":"Report comment","report.unreportComment":"Unreport comment","report.reportSent":"Report sent","report.unreportSent":"Unreport sent","comment.like":"Like","comment.liked":"Liked","comment.deleted":"This comment has been deleted","comment.delete":"Delete comment","comment.edit":"Edit comment","comment.deleteMobile":"Delete","comment.editMobile":"Edit","comment.deleteConfirmContent":"This comment will be permanently deleted. Continue?","comment.deleteConfirmCancelText":"Cancel","comment.deleteConfirmOkText":"Delete","dropdown.first":"First","dropdown.second":"Second","layout.logout":"Log Out","layout.username":"Jackies","chat.details.chatDetailes":"Chat Detail","chat.details.communityName":"Group Name","message.flag":"flag","message.unflag":"Unflag","message.edit":"Edit","message.delete":"Delete","message.deleted":"deleted","message.unsupportedFormat":"Unsupported message format","message.saveOptionsError":"There was an error processing your request","MessageComposeBar.placeholder":"Type your message...","RecentChat.chats":"Chats","AddMemberModal.addMembers":"Add members","AddMemberModal.membersValidationError":"Please select at least one member",add:"Add",save:"Save",close:"Close",reply:"Reply",delete:"Delete",create:"Create",cancel:"Cancel",loading:"Loading...","loading.chat":"Loading chat...",anonymous:"Anonymous","comment.edited":"Edited","comment.readmore":"Read more","communities.nocommunityfound":"No Group found","profile.setting":"Profile Settings","sidesectioncommunity.newfeed":"Feed","sidesectioncommunity.userProfile":"Profile","sidesectioncommunity.explore":"Explore","sidesectioncommunity.community":"Community","communityFeed.join":"Join community to interact with all posts","communityFeed.members":"Members","communityFeed.moderators":"Moderators","files.all":"View all files","sidebar.community":"Group","sidebar.explore":"Explore","sidebar.user":"User profile","CategoryCommunitiesList.emptyTitle":"It's empty here...","CategoryCommunitiesList.emptyDescription":"No community found in this category","CommentComposeBar.addComment":"Post","CommentComposeBar.replayTo":"Reply to ","CommentComposeBar.replayToUser":"Replying to {displayName}","CommentComposeBar.saySomething":"Say something nice...","CommentComposeBar.unableToPost":"Unable to post","CommentComposeBar.overCharacter":"You have reached maximum 50,000 characters in a post.","CommentComposeBar.done":"Done","CommentComposeBar.unableToMention":"Unable to mention","CommentComposeBar.overMentionees":"You have reached maximum 30 mentioned users in a post.","CommentComposeBar.okText":"OK","CommunityCreationModal.title":"Leave without finishing?","CommunityCreationModal.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","CommunityCreationModal.cancelText":"Continue editing","CommunityCreationModal.okText":"Leave","PostAsCommunity.title":"Post as group","PostAsCommunity.caption":"Enable this will publish the post on behalf of group account","AddMemberAction.title":"Add members","AddMemberAction.description":"Add your friends to this group to participate in group conversations","CloseCommunityAction.closeConfirm.title":"Close group?","CloseCommunityAction.closeConfirm.description":"All members will be removed from the community. All posts, messages, reactions and media shared in community will be deleted. This cannot be undone.","CloseCommunityAction.title":"Close group","CloseCommunityAction.description":"Closing this group will remove the group page and all its content and comments. This cannot be undone.","report.doReport":"Report","report.undoReport":"Undo Report","comment.deleteBody":"This comment will be permanently removed.","reply.delete":"Delete reply","reply.deleteBody":"This reply will be permanently deleted. Continue?","reply.edit":"Edit reply","reply.deleted":"This reply has been deleted","tabs.editProfile":"Edit profile","tabs.timeline":"Timeline","tabs.followers":"Followers","tabs.followings":"Following","tabs.pending":"Pending","tabs.members":"Members","tabs.moderators":"Moderators","tabs.pendingPosts":"Pending {amount, select, 0 {} other { ({formattedAmount})}}","tabs.permissions":"Permissions","tabs.gallery":"Gallery","tabs.images":"Photos","tabs.videos":"Videos","tabs.liveStreams":"Livestreams","feed.emptyFeed":"This feed is empty","feed.emptyCommunityPublicFeed":"This community's feed is empty","feed.emptyCommunityReviewingFeed":"No pending posts","feed.emptyJoinedCommunityPublicFeedTitle":"Your feed is empty.","feed.emptyJoinedCommunityPublicFeedBody":"Share a post to start the conversation!","feed.emptyMyCommunitiesBody":"You have not joined any groups yet. Please join one to get started.","feed.emptyUserFeed":"No posts yet","feed.emptyMyFeed":"Your feed is empty. Start your first post","feed.emptyMyCommunities":"No groups available","chat.groupSetting":"Group settings","chat.message.deleted":"Message was deleted","chat.message.unsupported":"Unsupported message type","chat.chats":"Chats","chat.details.header":"Chat Details","chat.details.chatName":"Chat Name","chat.leaveChat":"Leave chat","chat.leaveChat.confirm.title":"Leave chat","chat.leaveChat.confirm.content":"Are you sure you want to leave the chat?","chat.leaveChat.confirm.okButton":"Leave","chat.leaveChat.success":"You successfully left chat","chat.leaveChat.error":"Attempt to leave a chat has failed","chat.members.return":"Return to controls","chat.members.count":"{count} members","chat.create.modalTitle":"Create new chat","chat.loading.error":"Couldn't load chat","userSelector.placeholder":"Enter name or email addresses","userSelector.emptyState.title":"It's empty here...","userSelector.emptyState.description":"No contact found here","groupChat.createPopup.fieldName":"Group name","groupChat.createPopup.placeholder":"Please input group name","general.cancel.capital":"Cancel","general.create.capital":"Create","general.done.capital":"Done","chat.member.addMore":"Add or Remove user","video.notReady":"The video is being processed. Please try again later.","liveStream.idle":"This stream is currently unavailable","liveStream.ended.caption":"This liveStream has ended.","liveStream.ended.message":"Playback will be available for you to watch shortly.","user.follow":"Follow","user.unfollow":"Unfollow","user.unfollow.confirm.title":"Unfollow {displayName}","user.unfollow.confirm.body":"You\u2019ll have to send a request again to follow {displayName}. Continue?","user.cancel_follow":"Cancel request","placeholder.noResults":"No results found","request.accept":"Accept","request.decline":"Decline","follower.title.removeUser":"Remove {displayName} from followers?","follower.body.removeUser":"We will not notify {displayName} that they've been removed from your followers","follower.menuItem.removeUser":"Remove user","follower.menuItem.unfollow":"Unfollow","buttonText.cancel":"Cancel","buttonText.remove":"Remove","follow.pendingNotification.title":"Pending requests","follow.pendingNotification.body":"Your requests are waiting for review","notification.done":"Done","counter.posts":"posts","counter.followings":"following","counter.followers":"followers","buttonText.unfollow":"Unfollow","privateFeed.title":"This account is private","privateFeed.body":"Follow this user to see all posts","navigationBlocker.title":"Unsaved changes","navigationBlocker.content":"Your changes won`t be saved. Are you sure you want to leave this page now?","user.unfollow.confirm.title.thisUser":"Unfollow this user","mediaGallery.images.empty":"No photos yet","mediaGallery.liveStreams.empty":"No liveStreams yet","mediaGallery.videos.empty":"No videos yet","user.unfollow.confirm.body.thisUser":"You\u2019ll have to send a request again to follow this user. Continue?","navigationBlocker.okText":"Leave","options_composer.button.add":"Add Option","options_composer.title":"Create at least 2 options","poll_modal.answer_type.title":"Selection type","poll_modal.answer_type.body":"Choose to vote with one or multiple options","poll_modal.closed_in.title":"Schedule poll (Optional)","poll_modal.closed_in.body":"Poll will be automatically closed at the end of chosen time frame (UTC)","select.answerType.item":"{answerType} selection","poll_composer.question.label":"Poll options","poll_composer.question.placeholder":"What\u2019s your poll question?","poll_composer.poll_options.label":"Options","poll_modal.title":"Create poll","poll.votes":"{voteCount} votes","poll.vote.closedIn":"Poll ends in {closedIn} days","poll.vote.finalResults":"Final results","poll.vote.submit":"Submit vote","poll.error.deletedOrClosed":"This poll has been closed or deleted.","poll.close":"Close poll","postCreator.unableToPost":"Unable to post","postCreator.overCharacter":"You have reached maximum 50,000 characters in a post.","postCreator.done":"Done","postCreator.unableToMention":"Unable to mention","postCreator.overMentionees":"You have reached maximum 30 mentioned users in a post.","postCreator.okText":"OK","pollComposer.unableToMention":"Unable to mention","pollComposer.overMentionees":"You have reached maximum 30 mentioned users in a post.","pollComposer.okText":"OK","storyCreation.hyperlink.bottomSheet.cancel":"Cancel","storyCreation.hyperlink.bottomSheet.title":"Add link","storyCreation.hyperlink.bottomSheet.submit":"Done","storyCreation.hyperlink.form.urlLabel":"URL","storyCreation.hyperlink.form.urlPlaceholder":"https://example.com","storyCreation.hyperlink.form.linkTextLabel":"Customize link text","storyCreation.hyperlink.form.linkTextPlaceholder":"Name your link","storyCreation.hyperlink.form.linkTextDescription":"This text will show on the link instead of URL.","storyCreation.hyperlink.form.removeButton":"Remove link","storyCreation.hyperlink.removeConfirm.title":"Remove link","storyCreation.hyperlink.removeConfirm.content":"This link will be removed from story.","storyCreation.hyperlink.removeConfirm.cancel":"Cancel","storyCreation.hyperlink.removeConfirm.confirm":"Remove","storyCreation.hyperlink.validation.error.invalidUrl":"Please enter a valid URL.","storyCreation.hyperlink.validation.error.whitelisted":"Please enter a whitelisted URL.","storyCreation.hyperlink.validation.error.blocked":"Your text contains a blocklisted word.","storyCreation.hyperlink.unsavedChanges.title":"Unsaved changes","storyCreation.hyperlink.unsavedChanges.content":"Are you sure you want to cancel? Your changes won't be saved.","storyCreation.hyperlink.unsavedChanges.cancel":"No","storyCreation.hyperlink.unsavedChanges.confirm":"Yes","storyViewer.actions.deleteStory":"Delete story","storyViewer.action.confirmModal.title":"Delete this story?","storyViewer.action.confirmModal.content":"This story will be permanently deleted. You\u2019ll no longer to see and find this story.","storyViewer.notification.deleted":"Story deleted","storyViewer.notification.success":"Successfully shared story","storyViewer.notification.error":"Failed to share story","storyViewer.footer.failed":"Failed to upload","storyViewer.footer.uploading":"Uploading...","storyViewer.commentSheet.title":"Comments","storyViewer.commentSheet.empty":"No comments yet","storyViewer.commentSheet.disabled":"Comments are disabled for this story","storyViewer.commentSheet.replyingTo":"Replying to","storyViewer.toast.like.disabled":"Join community to interact with all stories","storyViewer.toast.comment.reported":"Comment reported","storyViewer.toast.comment.unreported":"Comment unreported","storyViewer.toast.disable.react":"Join community to interact with all stories","storyViewer.commentComposeBar.submit":"Post","storyDraft.button.shareStory":"Share story","storyDraft.notification.hyperlink.error":"Can\u2019t add more than one link to your story.","storyTab.title":"Story","select.chatType.item":"{answerType} type","chatComposer.label.channelId":"Channel ID","chatComposer.label.displayName":"Display Name","chatComposer.label.type":"Channel Type","chatComposer.addUsers":"Add users","chat_modal.title":"Create chat","chat_composer.placeholder.displayName":"Enter display name here","chat_composer.placeholder.channelId":"Enter channel ID here","editChatMembersModal.title":"Add/Edit chat members","editChatMembersModal.confirm.title":"Leave without finishing?","editChatMembersModal.confirm.content":"Your progress won\u2019t be saved. Are you sure to leave this page now?","editChatMembersModal.confirm.cancelText":"Continue editing","editChatMembersModal.confirm.okText":"Leave","notification.error.blockedWord":"Amity SDK (400308): Text contain blocked word","notification.error.whitelistLink":"Amity SDK (400309): Data contain link that is not in whitelist","livechat.deleted.message":"This message was deleted","livechat.messageBubble.reply.button":"Reply","livechat.messageBubble.copy.button":"Copy","livechat.messageBubble.delete.button":"Delete","livechat.messageBubble.mention.button":"Mention","livechat.messageBubble.report.button":"Report","livechat.messageBubble.unReport.button":"Unreport","livechat.channel.muted":"This channel has been set to read-only by the channel moderator","livechat.modal.delete.message.title":"Delete this message?","livechat.modal.delete.message.content":"This message will also be removed from your friend\u2019s devices.","livechat.mention.all":"All","livechat.mention.all.description":"Notify everyone","livechat.notification.copy.message":"Message copied","livechat.composebar.placeholder":"Write a message","livechat.delete.message.error":"Unable to delete message. Please try again.","livechat.member.muted":"You\u2019ve been muted by the channel moderator","livechat.member.muted.error":"User is muted","livechat.member.banned.title":"You are banned from chat","livechat.member.banned.description":"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned.","livechat.report.message.success":"Message reported","livechat.report.message.error":"This message failed to be reported. Please try again.","livechat.unReport.message.success":"Message unreported","livechat.unReport.message.error":"This message failed to be unreported. Please try again.","livechat.error.tooLongMessage.title":"Unable to send message","livechat.error.tooLongMessage.description":"Your message is too long. Please shorten your message and try again.","livechat.error.sendingMessage.error":"Your message wasn't sent. Please try again.","livechat.error.sendingMessage.blockedWord":"Your message wasn't sent as it contains a blocked word.","livechat.error.sendingMessage.notAllowLink":"Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.","livechat.reaction.errorOnload":"Unable to load reactions","livechat.reaction.emptyState":"No reactions yet","livechat.reaction.emptyState.description":"Be the first to react to this message!","livechat.reaction.label.removeReaction":"Click to remove reaction"};var v0={en:EC};var BC="en",c$=({locale:e,children:t})=>{let o=v0[e]?v0[e]:v0[BC];return R.createElement(IntlProvider,{defaultLocale:BC,locale:e,messages:o},t)},LC=c$;var d$={palette:{alert:"#FA4D30",base:"#292B32",primary:"#000000",secondary:"#FFD400",tertiary:"#FF305A",neutral:"#17181C",highlight:"#1054DE",system:{borders:"#ebecef",background:"#fff"}},typography:{global:{fontFamily:"Circular Std, system-ui",fontStyle:"normal"},headline:{fontWeight:600,fontSize:"20px"},title:{fontWeight:600,fontSize:"16px"},subTitle:{fontWight:400,fontSize:"13px"},body:{fontWeight:"normal",fontSize:"14px"},bodyBold:{fontWeight:600,fontSize:"14px"},caption:{fontWeight:"normal",fontSize:"12px"},captionBold:{fontWeight:600,fontSize:"12px"}}},AC=d$;function tl(e){return (e==null?void 0:e.communityMembership)==="member"}function x0(e){return (e==null?void 0:e.userPrivacySetting)==="private"}function DC(e){return (e||[]).map((t,o)=>{var r;return {id:t.userId,display:(r=t.displayName)!=null?r:t.userId,avatar:t.avatarCustomUrl,isLastItem:(e==null?void 0:e.length)===o+1}})}var b0=1;function u$(e,t,o){let r=o+b0,n=r+t;return e.substring(r,n)}function I0(e){return e?e.sort((o,r)=>o.index-r.index).map(({index:o,length:r})=>({start:o,end:o+r+b0,highlight:!0})):[]}function HC(e){let t={},o=[];return (e==null?void 0:e.length)>0?(t.mentioned=[...e.sort((r,n)=>r.plainTextIndex-n.plainTextIndex).map(({plainTextIndex:r,id:n,display:i})=>({index:r,length:i.length-b0,type:"user",userId:n}))],o.push({type:"user",userIds:e.map(({id:r})=>r)})):o.push({type:"user",userIds:[]}),{metadata:t,mentionees:o}}function FC(e,t){if(!e||p$(t==null?void 0:t.mentioned))return e;let o=e;return ((t||{}).mentioned||[]).sort((r,n)=>n.index-r.index).forEach(({userId:r,length:n,index:i})=>{let a=`@[${u$(e,n,i)}](${r})`;o=o.replace(new RegExp(`(.{${i}}).{${n+b0}}`),`$1${a}`);}),o}function Fe(e){return e!=null}var UC=e=>e.toFixed(1),OC=e=>{let t=Math.min(e*100,100);return UC(t)};function f$(e){return e.alpha!==void 0}var $C=e=>{let{hue:t,saturation:o,lightness:r}=e,n=[`${UC(t)}`,`${OC(o)}%`,`${OC(r)}%`];return f$(e)?`hsla(${[...n,e.alpha].filter(Fe).join(",")})`:`hsl(${n.filter(Fe).join(",")})`},y$=e=>{let t=parseToHsl(e);return $C(t)},h$=(e,t)=>{let o=parseToHsl(t),{lightness:r}=o,n=N(c({},o),{lightness:Math.min(1,r+e)});return $C(n)},C$=[.25,.4,.5,.75],VC=e=>{let i=e,{system:t}=i,o=P(i,["system"]),r=Object.keys(o).reduce((a,s)=>(a[s]={main:y$(o[s])},a),c({},o)),n=Object.keys(r).reduce((a,s)=>{let l=o[s],d=C$.reduce((u,g,f)=>{let y=`shade${f+1}`;return u[y]=h$(g,l),u},{}),p=r[s];return p&&typeof p=="object"?a[s]=c(c({},d),p):a[s]=N(c({},d),{main:p}),a},c({},r));return N(c({},n),{system:t})};var v$=["fontFamily","fontStyle","fontWeight","fontSize"],x$=e=>Object.keys(e).reduce((o,r)=>{let n=e[r];return r&&n&&v$.includes(r)&&(o[r]=n),o},{}),jC=e=>Object.keys(e).reduce((o,r)=>(o[r]=x$(c(c({},e.global),e[r])),o),{});var GC={colors:{primary:{default:"#1054DE",shade1:"#4A82F2",shade2:"#A0BDF8",shade3:"#D9E5FC",shade4:"#FFFFFF"},secondary:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},base:{default:"#292B32",shade1:"#636878",shade2:"#898E9E",shade3:"#A5A9B5",shade4:"#EBECEF"},baseInverse:{default:"#FFFFFF"},alert:{default:"#FA4D30"},highlight:"#1054DE",messageBubble:{default:"#1054DE",inverse:"#FFFFFF"},storyIndicator:{default:"#EBECEF",active:["#339AF9","#78FA58"]},hyperlink:{default:"#FFFFFFCC"},actionButton:{default:"#00000080"}},typography:{heading:{fontWeight:600,fontSize:"1.25rem",lineHeight:"1.5rem"},title:{fontWeight:600,fontSize:"1rem",lineHeight:"1.25rem"},subTitle:{fontWeight:400,fontSize:"0.8125rem",lineHeight:"1rem"},body:{fontWeight:"normal",fontSize:"0.875rem",lineHeight:"1.25rem"},bodyBold:{fontWeight:600,fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontWeight:"normal",fontSize:"0.75rem",lineHeight:"1rem"},captionBold:{fontWeight:600,fontSize:"0.75rem",lineHeight:"1rem"}}};var I$=(e={})=>{let t=b$(AC,e),o=VC(t.palette),r=jC(t.typography);return N(c({},t),{palette:o,typography:r,v4:GC})},ZC=I$;var QC=m.div`
|
|
480
482
|
color-scheme: only light;
|
|
481
483
|
${({theme:e})=>e.typography.body};
|
|
482
484
|
color: ${({theme:e})=>e.palette.base.main};
|
|
@@ -563,7 +565,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
563
565
|
height: 20px;
|
|
564
566
|
margin-right: 5px;
|
|
565
567
|
fill: #6e6e6e;
|
|
566
|
-
`,kV=m(
|
|
568
|
+
`,kV=m(x2)`
|
|
567
569
|
width: 20px;
|
|
568
570
|
height: 20px;
|
|
569
571
|
margin-right: 4px;
|
|
@@ -592,7 +594,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
592
594
|
${({size:e,backgroundImage:t,theme:o})=>`
|
|
593
595
|
height: ${rl[e]}px;
|
|
594
596
|
width: ${rl[e]}px;
|
|
595
|
-
background: ${t
|
|
597
|
+
background: ${t};
|
|
598
|
+
background-size: contain;
|
|
596
599
|
`};
|
|
597
600
|
`,_v=m.div`
|
|
598
601
|
position: absolute;
|
|
@@ -620,7 +623,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
620
623
|
397.421c-73.176-73.175-77.05-187.301-15.964-264.865l280.829 280.829c-77.588 61.105-191.709
|
|
621
624
|
57.193-264.865-15.964z`})),Jn=m(tj)`
|
|
622
625
|
fill: ${({theme:e})=>e.palette.base.shade3};
|
|
623
|
-
`;var b6={root:null,rootMargin:"0px 0px -15% 0px",threshold:.9},ij=(e,{root:t,rootMargin:o,threshold:r}=b6)=>{let n=useMemo(()=>({root:t,rootMargin:o||b6.rootMargin,threshold:r||b6.threshold}),[t,o,r]),[i,a]=useState(null),s=useRef(new IntersectionObserver(l=>a(l[0]),n));return useEffect(()=>{if(e){let{current:l}=s;return l.observe(e),()=>l.disconnect()}},[e]),useEffect(()=>{if(e){let{current:l}=s;return l.unobserve(e),s.current=new IntersectionObserver(d=>a(d[0]),n),s.current.observe(e),()=>s.current.disconnect()}},[n,o,e]),i},
|
|
626
|
+
`;var b6={root:null,rootMargin:"0px 0px -15% 0px",threshold:.9},ij=(e,{root:t,rootMargin:o,threshold:r}=b6)=>{let n=useMemo(()=>({root:t,rootMargin:o||b6.rootMargin,threshold:r||b6.threshold}),[t,o,r]),[i,a]=useState(null),s=useRef(new IntersectionObserver(l=>a(l[0]),n));return useEffect(()=>{if(e){let{current:l}=s;return l.observe(e),()=>l.disconnect()}},[e]),useEffect(()=>{if(e){let{current:l}=s;return l.unobserve(e),s.current=new IntersectionObserver(d=>a(d[0]),n),s.current.observe(e),()=>s.current.disconnect()}},[n,o,e]),i},S2=ij;var lj=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},At=lj;var pj=({fileId:e,imageSize:t="medium"})=>{let o=At(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return _(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},se=pj;var yj=m.div`
|
|
624
627
|
display: flex;
|
|
625
628
|
align-items: center;
|
|
626
629
|
padding: 5px 15px;
|
|
@@ -635,7 +638,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
635
638
|
white-space: nowrap;
|
|
636
639
|
overflow: hidden;
|
|
637
640
|
text-overflow: ellipsis;
|
|
638
|
-
`,Cj=({id:e,focused:t,isLastItem:o,loadMore:r,rootEl:n,containerRef:i})=>{var u,g;let a=useRef(null),s=
|
|
641
|
+
`,Cj=({id:e,focused:t,isLastItem:o,loadMore:r,rootEl:n,containerRef:i})=>{var u,g;let a=useRef(null),s=S2(a==null?void 0:a.current,{root:(u=n==null?void 0:n.current)==null?void 0:u.childNodes[0]}),l=oe(e),d=se({fileId:l==null?void 0:l.avatarFileId,imageSize:"small"});useEffect(()=>{a&&(s!=null&&s.isIntersecting)&&(r==null||r());},[a,s==null?void 0:s.isIntersecting,r]);let p=useCallback((f,y)=>{y&&(f.target.parentNode.style.cursor="not-allowed",f.target.parentNode.style["pointer-events"]="none");},[]);return R.createElement(yj,{ref:o?a:null,"data-qa-anchor":"social-mention-item",focused:t,isBanned:l==null?void 0:l.isGlobalBanned,maxWidth:(g=i==null?void 0:i.current)==null?void 0:g.clientWidth,onMouseEnter:f=>p(f,l==null?void 0:l.isGlobalBanned)},R.createElement(ge,{avatar:d,backgroundImage:Ne}),R.createElement(hj,null,l==null?void 0:l.displayName),R.createElement("div",{style:{marginLeft:"0.5rem"}},l!=null&&l.isGlobalBanned?R.createElement(Jn,{style:{width:"16px",height:"16px"}}):null))},Nv=Cj;var Pj=m.div`
|
|
639
642
|
position: relative;
|
|
640
643
|
display: flex;
|
|
641
644
|
flex-wrap: wrap;
|
|
@@ -719,9 +722,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
719
722
|
margin-left: 8px;
|
|
720
723
|
background: ${({theme:e})=>e.palette.primary.main};
|
|
721
724
|
border-radius: 100px;
|
|
722
|
-
`;var Xn={editorPlaceholder:"
|
|
723
|
-
`),r=(d=(l=e.metadata)==null?void 0:l.mentioned)!=null?d:[],n=Fv.find(e.data.text).filter(p=>p.type==="url").map(p=>({index:p.start,length:p.end-p.start+1,href:p.href,value:p.value,type:"url"})),i=[...r,...n].sort((p,u)=>p.index-u.index),a=0,s=0;for(let p=0;p<o.length;p+=1){let u=Fj(),g=0,f=o[p];for(;g<f.length;){let y=i[a];if(a<i.length&&y.index===s){let v=i[a];Uj(v)?(u.children.push(zj({title:v.value,url:v.href})),g+=v.length,s+=v.length):(u.children.push(Oj({text:e.data.text,mention:v})),g+=v.length+1,s+=v.length+1),a+=1;}else {let v=a<i.length?y.index:s+f.length,C=f.slice(g,v-s+g);C&&u.children.push(w6(C)),g+=C.length,s+=C.length;}}if(g<f.length){let y=f.slice(g);y&&u.children.push(w6(y)),s+=y.length;}s+=1,t.children.push(u);}return {root:t}}function il(e){let t=e.getEditorState().toJSON();return $j(t)}function $j(e){let t=[],o=e.root.children,r=[],n=!1,i=[],a=0;o.forEach(l=>{let d=l.children,p=[];d.forEach(u=>{if(
|
|
724
|
-
`),mentionees:s}}var Vj={ltr:"ltr",rtl:"rtl"},al=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:c(c({},Vj),t),onError(n){throw n},nodes:o,editorState:r});var zv={mention:"za"};function Zj({domNode:e,data:t}){let o=e.textContent;return o!==null?{node:Aa({text:o,data:t})}:null}var Vi=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=Aa({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 N(c({},super.exportJSON()),{data:this.__data,type:"mention",version:1})}createDOM(t){let o=super.createDOM(t);return o.className=zv.mention,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 Zj({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 Aa({text:e,data:t}){return new Vi({data:t,text:e}).setMode("segmented").toggleDirectionless()}var qj=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Kj=[e=>{let t=qj.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}`}}],sl=()=>R.createElement(AutoLinkPlugin,{matchers:Kj});function Yr(e){return e!=null}function Uv(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function $v(e){return e*parseFloat(getComputedStyle(document.documentElement).fontSize)}var Jj=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function Vv(e){return e==="https://"||Jj.test(e)}var ll=()=>R.createElement(LinkPlugin,{validateUrl:Vv});var Gv=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,aG="\\b[A-Z][^\\s"+Gv+"]",sG={NAME:aG,PUNCTUATION:Gv},Zv=sG.PUNCTUATION,T6=["@"].join(""),Qv="[^"+T6+Zv+"\\s]",lG="(?:\\.[ |$]| |["+Zv+"]|)",mG=75,cG=new RegExp("(^|\\s|\\()(["+T6+"]((?:"+Qv+lG+"){0,"+mG+"}))$"),dG=50,pG=new RegExp("(^|\\s|\\()(["+T6+"]((?:"+Qv+"){0,"+dG+"}))$");function uG(e,t){let o=cG.exec(e);if(o===null&&(o=pG.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 gG(e){return uG(e,0)}var _6=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function ml({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i,onOpen:a,onClose:s,anchorClassName:l}){let[d]=useLexicalComposerContext(),p=useMemo(()=>e.map(f=>new _6({data:f,dataId:t(f)})),[e]),u=useCallback((f,y,v)=>{d.update(()=>{let C=r(f.data,f.key),h=$createTextNode(" ");y&&($insertNodes([h]),h.insertBefore(y),y.replace(C)),h.select(),v();});},[d]),g=useCallback(f=>gG(f),[d]);return R.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:u,triggerFn:g,options:p,menuRenderFn:n,commandPriority:i,onOpen:a,onClose:s,anchorClassName:l})}function yG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=T0(),[a,s]=useState(!1),[l,d]=useState(n||!0),[p,u]=useState([]),[g,f]=useState(null),[y,v]=useState(!1),C=useRef(null),h=useRef(null),x=useCallback(()=>{var I;C.current&&(s(!0),(I=C.current)==null||I.call(C));},[C,a,l,d]),b=useCallback(I=>{n&&(I.data&&u(I.data),d(I.loading),v(I.hasNextPage),f(I.error),C.current=I.onNextPage,o(I));},[n,C]);useEffect(()=>{if(!n)return;let{unsubscribe:I}=i({fetcher:e,params:t,callback:b});return h.current=I,()=>{I();}},[t,n]);let M=useCallback(()=>{h.current&&h.current();let{unsubscribe:I}=i({fetcher:e,params:t,callback:b,refresh:!0});return h.current=I,()=>I()},[]);return {items:p,hasMore:y,isLoading:l,loadMore:x,error:g,loadMoreHasBeenCalled:a,refresh:M}}var dt=yG;var cl=({displayName:e,limit:t,enabled:o=!0})=>{let[r,n]=useState([]),[i,a]=useState(!1),[s,l]=useState(!1),[d,p]=useState(!1),u=useRef(null),g=useRef(null),f=()=>{u.current&&(u.current(),p(!0));};return useEffect(()=>{if(g.current&&(g.current(),g.current=null),!o)return;let y=UserRepository.searchUserByDisplayName({displayName:e,limit:t},v=>{l(v.hasNextPage||!1),a(v.loading),u.current=v.onNextPage||null,n(v.data);});return g.current=y,()=>{var v;(v=g.current)==null||v.call(g),g.current=null;}},[e,t,o]),{users:r,isLoading:i,hasMore:s,loadMore:f,loadMoreHasBeenCalled:d}};var B0=({communityId:e,displayName:t,limit:o,enabled:r=!0})=>{let[n,i]=useState([]),[a,s]=useState(!1),[l,d]=useState(!1),[p,u]=useState(!1),g=useRef(null),f=useRef(null),y=()=>{g.current&&(g.current(),u(!0));};return useEffect(()=>{if(!r)return;f.current&&(f.current(),f.current=null);let v=CommunityRepository.Membership.searchMembers({communityId:e,search:t,limit:o,sortBy:"displayName",includeDeleted:!1},C=>{d(C.hasNextPage||!1),s(C.loading),g.current=C.onNextPage||null,i(C.data);});return f.current=v,()=>{var C;(C=f.current)==null||C.call(f),f.current=null;}},[e,t,r]),{members:n,isLoading:a,hasMore:l,loadMore:y,loadMoreHasBeenCalled:p}};function MG({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=u6(),[s,l]=useState(null),[d,p]=useState(void 0),[u,g]=useState(!1),[f,y]=useState(null),v=useRef(null),C=useCallback(h=>{n&&t!=null&&(g(h.loading),h.data&&l(h.data),p(h.origin),y(h.error),o(h));},[n,o]);return useEffect(()=>(i&&(v.current=subscribeTopic(i())),()=>{var h;(h=v.current)==null||h.call(v);}),[i]),useEffect(()=>{if(t==null||!n)return;let{unsubscribe:h}=a({fetcher:e,params:t,callback:C,options:r});return ()=>{h();}},[t,n]),{item:s,origin:d,isLoading:u||s==null&&f==null,error:f}}var Pn=MG;var _G=({communityId:e,shouldCall:t=!0})=>{let n=Pn({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=P(n,["item"]);return c({community:o},r)},Mt=_G;var pr=e=>{let r=Pn({fetcher:UserRepository.getUser,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({user:t},o)};var NG=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},Xv=NG;var rt=({fileId:e,imageSize:t="medium"})=>{let o=Xv(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return _(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 Yv={userAvatar__text:"Xa",userAvatar__placeholder__path:"Ya",userAvatar__placeholder__rect:"Aa",userAvatar__placeholder:"Va",userAvatar__img:"qa"};var Rv=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",className:e},t),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#F26B1C"}),R.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"}),R.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"}))};function Vo({userId:e,className:t}){var n;let{user:o}=pr(e),r=rt({fileId:(n=o==null?void 0:o.avatar)==null?void 0:n.fileId});return o==null||e==null||r==null?R.createElement(Rv,{className:t}):R.createElement("object",{data:r,type:"image/png",className:sr(Yv.userAvatar__img,t)},R.createElement(Rv,{className:t}))}var Da={userMentionItem__item:"x",allMentionItem__item:"w",userMentionItem__avatar:"Ba",allMentionItem__atSign:"Ca",userMentionItem__displayName:"Da",allMentionItem__displayName:"Ea"};function Ha({option:e,isSelected:t,onClick:o,onMouseEnter:r}){return R.createElement("li",{key:e.key,tabIndex:-1,"data-is-selected":t,className:Da.userMentionItem__item,ref:e.setRefElement,role:"option","aria-selected":t,onMouseEnter:r,onClick:o},R.createElement(Vo,{className:Da.userMentionItem__avatar,userId:e.data.userId}),R.createElement("p",{className:Da.userMentionItem__displayName},e.data.displayName))}var OG=({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]);},ko=OG;var iZ=e=>{let[t,o]=useState(null),{community:r,isLoading:n}=Mt({communityId:e}),i=useMemo(()=>!!e&&!n&&!(r!=null&&r.isPublic),[e,n,r]),{members:a,hasMore:s,isLoading:l,loadMore:d}=B0({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:g,isLoading:f}=cl({displayName:t||"",limit:10,enabled:!i}),y=b=>{o(b);},v=useMemo(()=>e&&n?[]:i?a.map(({user:b,userId:M})=>({userId:(b==null?void 0:b.userId)||M,displayName:b==null?void 0:b.displayName})):p.map(({displayName:b,userId:M})=>({userId:M,displayName:b})),[p,a,i,n]),C=useMemo(()=>i?s:u,[i,s,u]),h=()=>{x||!C||(i?d():g());},x=useMemo(()=>i?l:f,[l,f,i]);return {suggestions:v,queryString:t,onQueryChange:y,loadMore:h,hasMore:C,isLoading:x}},aZ=[AutoLinkNode,LinkNode,Vi],Yn=forwardRef(({pageId:e="*",componentId:t="*",elementId:o="*",communityId:r,value:n,onChange:i,maxLines:a=10,placehoder:s,mentionContainer:l,targetId:d,targetType:p},u)=>{var V;let [g,f]=useState(null);A({pageId:e,componentId:t,elementId:o});let {onQueryChange:x,suggestions:b,isLoading:M,loadMore:I,hasMore:w}=iZ(r);ko({onIntersect:()=>{M===!1&&I();},node:g,options:{threshold:.5}});let k=R.useRef(null),T=useMedia("(min-width: 768px)"),{refs:L,floatingStyles:D}=useFloating({placement:T?"bottom-start":"bottom",middleware:[offset(({rects:G,placement:q})=>T?q.includes("top")?G.reference.height*1.1:-G.reference.height:0),flip(),shift()],whileElementsMounted:autoUpdate}),U=()=>{var G;(G=k.current)==null||G.dispatchCommand(CLEAR_EDITOR_COMMAND,void 0);};useImperativeHandle(u,()=>({clearEditorState:U}));let j=useMedia("(min-width: 768px)"),E=al({namespace:"CommentInput",theme:{placeholder:Xn.editorPlaceholder,paragraph:Xn.editorParagraph,link:Xn.editorLink},nodes:aZ});return R.createElement(LexicalComposer,{initialConfig:c(c({},E),(V=n==null?void 0:n.data)!=null&&V.text?{editorState:JSON.stringify(nl(n))}:{})},R.createElement("div",{className:Xn.editorContainer,style:{"--asc-max-lines":a}},R.createElement(RichTextPlugin,{contentEditable:R.createElement(ContentEditable,{className:Xn.editorEditableContent}),placeholder:s?R.createElement("div",{className:Xn.editorPlaceholder},s):null,ErrorBoundary:LexicalErrorBoundary}),R.createElement(OnChangePlugin,{onChange:(G,q)=>{i(il(q));}}),R.createElement(HistoryPlugin,null),R.createElement(AutoFocusPlugin,null),R.createElement(ll,null),R.createElement(sl,null),R.createElement(EditorRefPlugin,{editorRef:k}),R.createElement(ClearEditorPlugin,null),R.createElement(ml,{suggestions:b,getSuggestionId:G=>G.userId,onQueryChange:x,$createNode:G=>Aa({text:`@${(G==null?void 0:G.displayName)||""}`,data:G}),onOpen:G=>{L.setReference({getBoundingClientRect:G.getRect});},onClose:()=>{L.setReference(null);},menuRenderFn:(G,{options:q,selectedIndex:O,setHighlightedIndex:H,selectOptionAndCleanUp:z})=>!l||q.length===0?null:j&&G.current?(L.setReference(G.current),ex.createPortal(R.createElement("div",{ref:Z=>L.setFloating(Z),style:c({},D),className:Xn.commentInput__mentionMenu},R.createElement("ul",{className:Xn.commentInput__mentionMenuItem},q.map((Z,Q)=>R.createElement(Ha,{isSelected:O===Q,onClick:()=>{H(Q),z(Z);},onMouseEnter:()=>{H(Q);},key:Z.key,option:N(c({},Z),{setRefElement:B=>{Q===q.length-1&&f(B),Z.setRefElement(B);}})})))),G.current)):(L.setReference(l),ex.createPortal(R.createElement("div",{ref:Z=>L.setFloating(Z),className:Xn.commentInput__mentionMenuMobile,style:N(c({},D),{"--asc-mention-width":`${l.offsetWidth}px`})},q.map((Z,Q)=>R.createElement(Ha,{isSelected:O===Q,onClick:()=>{H(Q),z(Z);},onMouseEnter:()=>{H(Q);},key:Z.key,option:N(c({},Z),{setRefElement:B=>{Q===q.length-1&&f(B),Z.setRefElement(B);}})}))),l)),commandPriority:COMMAND_PRIORITY_HIGH})))});var cZ=30,dZ=5e4,pZ=({className:e,userToReply:t,onSubmit:o,postId:r,textValue:n})=>{let i=po(r),{currentUserId:a}=J(),{info:s}=_e(),l=oe(a),d=se({fileId:l==null?void 0:l.avatarFileId,imageSize:"small"}),[p,u]=useState(n),{formatMessage:g}=useIntl(),f=useRef(null),y=useRef(null);useEffect(()=>{var b;(b=y.current)==null||b.focus();},[]);let v=()=>{var b,M;if((p==null?void 0:p.text)!==""){if(p!=null&&p.mentioned&&((b=p==null?void 0:p.mentioned)==null?void 0:b.length)>cZ)return s({title:R.createElement(FormattedMessage,{id:"CommentComposeBar.unableToMention"}),content:R.createElement(FormattedMessage,{id:"CommentComposeBar.overMentionees"}),okText:R.createElement(FormattedMessage,{id:"CommentComposeBar.okText"})});if(p!=null&&p.text&&((M=p.text)==null?void 0:M.length)>dZ)return s({title:R.createElement(FormattedMessage,{id:"CommentComposeBar.unableToPost"}),content:R.createElement(FormattedMessage,{id:"CommentComposeBar.overCharacter"}),okText:R.createElement(FormattedMessage,{id:"CommentComposeBar.done"})});o==null||o((p==null?void 0:p.text)||"",p==null?void 0:p.mentionees,{mentioned:p==null?void 0:p.mentioned});}},C=(p==null?void 0:p.text)==="";t?g({id:"CommentComposeBar.replayTo"})+t:g({id:"CommentComposeBar.saySomething"});let x=g(t?{id:"reply"}:{id:"CommentComposeBar.addComment"});return i==null?null:R.createElement(Av,{className:e,ref:f},R.createElement(Lv,{avatar:d,backgroundImage:Ne}),R.createElement(Dv,null,R.createElement(Yn,{mentionContainer:f.current,onChange:({text:b,mentioned:M,mentionees:I})=>{u({text:b,mentioned:M,mentionees:I});}})),R.createElement(Hv,{"data-qa-anchor":t?"comment-compose-bar-reply-button":"comment-compose-bar-add-comment-button",disabled:C,onClick:v},x))},Fa=e=>{let t=W("CommentComposerBar");return t?t(e):R.createElement(pZ,c({},e))};var nx=m.div`
|
|
725
|
+
`;var Xn={editorPlaceholder:"wa",editorParagraph:"ya",editorContainer:"D",editorEditableContent:"H",editorLink:"ka",commentInput__mentionInterceptor:"ja",commentInput__mentionMenu:"L",commentInput__mentionMenuItem:"za",commentInput__mentionMenuMobile:"T"};function E2(e){return e.type==="text"}function M6(e){return e.type==="mention"}function P6(e){return e.type==="autolink"}function Ov(e){return e.type==="link"}function Hj(){return {children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}}function Fj(){return {textStyle:"",children:[],direction:"ltr",format:"",indent:0,type:"paragraph",version:1,textFormat:0}}function w6(e){return {detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}}function Oj({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 zj({url:e,title:t}){return {children:[w6(t)],format:"",direction:"ltr",indent:0,type:"link",version:1,url:e,rel:null,target:null,title:null}}function Uj(e){return (e==null?void 0:e.type)==="url"}function nl(e){var l,d;let t=Hj(),o=e.data.text.split(`
|
|
726
|
+
`),r=(d=(l=e.metadata)==null?void 0:l.mentioned)!=null?d:[],n=Fv.find(e.data.text).filter(p=>p.type==="url").map(p=>({index:p.start,length:p.end-p.start+1,href:p.href,value:p.value,type:"url"})),i=[...r,...n].sort((p,u)=>p.index-u.index),a=0,s=0;for(let p=0;p<o.length;p+=1){let u=Fj(),g=0,f=o[p];for(;g<f.length;){let y=i[a];if(a<i.length&&y.index===s){let v=i[a];Uj(v)?(u.children.push(zj({title:v.value,url:v.href})),g+=v.length,s+=v.length):(u.children.push(Oj({text:e.data.text,mention:v})),g+=v.length+1,s+=v.length+1),a+=1;}else {let v=a<i.length?y.index:s+f.length,C=f.slice(g,v-s+g);C&&u.children.push(w6(C)),g+=C.length,s+=C.length;}}if(g<f.length){let y=f.slice(g);y&&u.children.push(w6(y)),s+=y.length;}s+=1,t.children.push(u);}return {root:t}}function il(e){let t=e.getEditorState().toJSON();return $j(t)}function $j(e){let t=[],o=e.root.children,r=[],n=!1,i=[],a=0;o.forEach(l=>{let d=l.children,p=[];d.forEach(u=>{if(E2(u)&&(p.push(u.text),a+=u.text.length),P6(u)&&u.children.forEach(g=>{E2(g)&&(p.push(g.text),a+=g.text.length);}),M6(u)){let g=u.text.charAt(0)==="@";if(u.data.userId==="all")r.push({index:a,length:u.text.length,type:"channel"}),n=!0;else {let f=g?u.text.length-1:u.text.length;r.push({index:a,length:f,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(`
|
|
727
|
+
`),mentionees:s}}var Vj={ltr:"ltr",rtl:"rtl"},al=({namespace:e,theme:t,nodes:o,editorState:r})=>({namespace:e,editable:!0,theme:c(c({},Vj),t),onError(n){throw n},nodes:o,editorState:r});var zv={mention:"Xa"};function Zj({domNode:e,data:t}){let o=e.textContent;return o!==null?{node:Aa({text:o,data:t})}:null}var Vi=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=Aa({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 N(c({},super.exportJSON()),{data:this.__data,type:"mention",version:1})}createDOM(t){let o=super.createDOM(t);return o.className=zv.mention,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 Zj({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 Aa({text:e,data:t}){return new Vi({data:t,text:e}).setMode("segmented").toggleDirectionless()}var qj=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Kj=[e=>{let t=qj.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}`}}],sl=()=>R.createElement(AutoLinkPlugin,{matchers:Kj});function Yr(e){return e!=null}function Uv(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function $v(e){return e*parseFloat(getComputedStyle(document.documentElement).fontSize)}var Jj=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function Vv(e){return e==="https://"||Jj.test(e)}var ll=()=>R.createElement(LinkPlugin,{validateUrl:Vv});var Gv=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,aG="\\b[A-Z][^\\s"+Gv+"]",sG={NAME:aG,PUNCTUATION:Gv},Zv=sG.PUNCTUATION,T6=["@"].join(""),Qv="[^"+T6+Zv+"\\s]",lG="(?:\\.[ |$]| |["+Zv+"]|)",mG=75,cG=new RegExp("(^|\\s|\\()(["+T6+"]((?:"+Qv+lG+"){0,"+mG+"}))$"),dG=50,pG=new RegExp("(^|\\s|\\()(["+T6+"]((?:"+Qv+"){0,"+dG+"}))$");function uG(e,t){let o=cG.exec(e);if(o===null&&(o=pG.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 gG(e){return uG(e,0)}var _6=class extends MenuOption{constructor({data:t,dataId:o}){super(o),this.data=t;}};function ml({suggestions:e,getSuggestionId:t,onQueryChange:o,$createNode:r,menuRenderFn:n,commandPriority:i,onOpen:a,onClose:s,anchorClassName:l}){let[d]=useLexicalComposerContext(),p=useMemo(()=>e.map(f=>new _6({data:f,dataId:t(f)})),[e]),u=useCallback((f,y,v)=>{d.update(()=>{let C=r(f.data,f.key),h=$createTextNode(" ");y&&($insertNodes([h]),h.insertBefore(y),y.replace(C)),h.select(),v();});},[d]),g=useCallback(f=>gG(f),[d]);return R.createElement(LexicalTypeaheadMenuPlugin,{onQueryChange:o,onSelectOption:u,triggerFn:g,options:p,menuRenderFn:n,commandPriority:i,onOpen:a,onClose:s,anchorClassName:l})}function yG({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=T0(),[a,s]=useState(!1),[l,d]=useState(n||!0),[p,u]=useState([]),[g,f]=useState(null),[y,v]=useState(!1),C=useRef(null),h=useRef(null),x=useCallback(()=>{var I;C.current&&(s(!0),(I=C.current)==null||I.call(C));},[C,a,l,d]),b=useCallback(I=>{n&&(I.data&&u(I.data),d(I.loading),v(I.hasNextPage),f(I.error),C.current=I.onNextPage,o(I));},[n,C]);useEffect(()=>{if(!n)return;let{unsubscribe:I}=i({fetcher:e,params:t,callback:b});return h.current=I,()=>{I();}},[t,n]);let M=useCallback(()=>{h.current&&h.current();let{unsubscribe:I}=i({fetcher:e,params:t,callback:b,refresh:!0});return h.current=I,()=>I()},[]);return {items:p,hasMore:y,isLoading:l,loadMore:x,error:g,loadMoreHasBeenCalled:a,refresh:M}}var dt=yG;var cl=({displayName:e,limit:t,enabled:o=!0})=>{let[r,n]=useState([]),[i,a]=useState(!1),[s,l]=useState(!1),[d,p]=useState(!1),u=useRef(null),g=useRef(null),f=()=>{u.current&&(u.current(),p(!0));};return useEffect(()=>{if(g.current&&(g.current(),g.current=null),!o)return;let y=UserRepository.searchUserByDisplayName({displayName:e,limit:t},v=>{l(v.hasNextPage||!1),a(v.loading),u.current=v.onNextPage||null,n(v.data);});return g.current=y,()=>{var v;(v=g.current)==null||v.call(g),g.current=null;}},[e,t,o]),{users:r,isLoading:i,hasMore:s,loadMore:f,loadMoreHasBeenCalled:d}};var B0=({communityId:e,displayName:t,limit:o,enabled:r=!0})=>{let[n,i]=useState([]),[a,s]=useState(!1),[l,d]=useState(!1),[p,u]=useState(!1),g=useRef(null),f=useRef(null),y=()=>{g.current&&(g.current(),u(!0));};return useEffect(()=>{if(!r)return;f.current&&(f.current(),f.current=null);let v=CommunityRepository.Membership.searchMembers({communityId:e,search:t,limit:o,sortBy:"displayName",includeDeleted:!1},C=>{d(C.hasNextPage||!1),s(C.loading),g.current=C.onNextPage||null,i(C.data);});return f.current=v,()=>{var C;(C=f.current)==null||C.call(f),f.current=null;}},[e,t,r]),{members:n,isLoading:a,hasMore:l,loadMore:y,loadMoreHasBeenCalled:p}};function MG({fetcher:e,params:t,callback:o=()=>{},options:r,shouldCall:n=!0,getSubscribedTopic:i}){let{subscribe:a}=u6(),[s,l]=useState(null),[d,p]=useState(void 0),[u,g]=useState(!1),[f,y]=useState(null),v=useRef(null),C=useCallback(h=>{n&&t!=null&&(g(h.loading),h.data&&l(h.data),p(h.origin),y(h.error),o(h));},[n,o]);return useEffect(()=>(i&&(v.current=subscribeTopic(i())),()=>{var h;(h=v.current)==null||h.call(v);}),[i]),useEffect(()=>{if(t==null||!n)return;let{unsubscribe:h}=a({fetcher:e,params:t,callback:C,options:r});return ()=>{h();}},[t,n]),{item:s,origin:d,isLoading:u||s==null&&f==null,error:f}}var Pn=MG;var _G=({communityId:e,shouldCall:t=!0})=>{let n=Pn({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:t&&!!e}),{item:o}=n,r=P(n,["item"]);return c({community:o},r)},Mt=_G;var pr=e=>{let r=Pn({fetcher:UserRepository.getUser,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({user:t},o)};var NG=e=>{let{data:t}=useQuery({queryKey:["asc-uikit","FileRepository","getFile",e],queryFn:()=>FileRepository.getFile(e),enabled:!!e});return t==null?void 0:t.data},Xv=NG;var rt=({fileId:e,imageSize:t="medium"})=>{let o=Xv(e),[r,n]=useState(void 0);return useEffect(()=>{if(o==null||e==null){n(void 0);return}function i(){return _(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 Yv={userAvatar__text:"Ya",userAvatar__placeholder__path:"Ca",userAvatar__placeholder__rect:"Aa",userAvatar__placeholder:"Ma",userAvatar__img:"Sa"};var Rv=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",className:e},t),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#F26B1C"}),R.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"}),R.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"}))};function Vo({userId:e,className:t}){var n;let{user:o}=pr(e),r=rt({fileId:(n=o==null?void 0:o.avatar)==null?void 0:n.fileId});return o==null||e==null||r==null?R.createElement(Rv,{className:t}):R.createElement("object",{data:r,type:"image/png",className:sr(Yv.userAvatar__img,t)},R.createElement(Rv,{className:t}))}var Da={userMentionItem__item:"x",allMentionItem__item:"w",userMentionItem__avatar:"Ea",allMentionItem__atSign:"Fa",userMentionItem__displayName:"Ia",allMentionItem__displayName:"Ra"};function Ha({option:e,isSelected:t,onClick:o,onMouseEnter:r}){return R.createElement("li",{key:e.key,tabIndex:-1,"data-is-selected":t,className:Da.userMentionItem__item,ref:e.setRefElement,role:"option","aria-selected":t,onMouseEnter:r,onClick:o},R.createElement(Vo,{className:Da.userMentionItem__avatar,userId:e.data.userId}),R.createElement("p",{className:Da.userMentionItem__displayName},e.data.displayName))}var OG=({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]);},ko=OG;var iZ=e=>{let[t,o]=useState(null),{community:r,isLoading:n}=Mt({communityId:e}),i=useMemo(()=>!!e&&!n&&!(r!=null&&r.isPublic),[e,n,r]),{members:a,hasMore:s,isLoading:l,loadMore:d}=B0({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:g,isLoading:f}=cl({displayName:t||"",limit:10,enabled:!i}),y=b=>{o(b);},v=useMemo(()=>e&&n?[]:i?a.map(({user:b,userId:M})=>({userId:(b==null?void 0:b.userId)||M,displayName:b==null?void 0:b.displayName})):p.map(({displayName:b,userId:M})=>({userId:M,displayName:b})),[p,a,i,n]),C=useMemo(()=>i?s:u,[i,s,u]),h=()=>{x||!C||(i?d():g());},x=useMemo(()=>i?l:f,[l,f,i]);return {suggestions:v,queryString:t,onQueryChange:y,loadMore:h,hasMore:C,isLoading:x}},aZ=[AutoLinkNode,LinkNode,Vi],Yn=forwardRef(({pageId:e="*",componentId:t="*",elementId:o="*",communityId:r,value:n,onChange:i,maxLines:a=10,placeholder:s,mentionContainer:l,targetId:d,targetType:p},u)=>{var V;let [g,f]=useState(null);A({pageId:e,componentId:t,elementId:o});let {onQueryChange:x,suggestions:b,isLoading:M,loadMore:I,hasMore:w}=iZ(r);ko({onIntersect:()=>{M===!1&&I();},node:g,options:{threshold:.5}});let k=R.useRef(null),T=useMedia("(min-width: 768px)"),{refs:L,floatingStyles:D}=useFloating({placement:T?"bottom-start":"bottom",middleware:[offset(({rects:G,placement:q})=>T?q.includes("top")?G.reference.height*1.1:-G.reference.height:q.includes("top")?0:-10),flip(),shift()],whileElementsMounted:autoUpdate}),U=()=>{var G;(G=k.current)==null||G.dispatchCommand(CLEAR_EDITOR_COMMAND,void 0);};useImperativeHandle(u,()=>({clearEditorState:U}));let j=useMedia("(min-width: 768px)"),E=al({namespace:"CommentInput",theme:{placeholder:Xn.editorPlaceholder,paragraph:Xn.editorParagraph,link:Xn.editorLink},nodes:aZ});return R.createElement(LexicalComposer,{initialConfig:c(c({},E),(V=n==null?void 0:n.data)!=null&&V.text?{editorState:JSON.stringify(nl(n))}:{})},R.createElement("div",{className:Xn.editorContainer,style:{"--asc-max-lines":a}},R.createElement(RichTextPlugin,{contentEditable:R.createElement(ContentEditable,{className:Xn.editorEditableContent}),placeholder:s?R.createElement("span",{className:Xn.editorPlaceholder},s):null,ErrorBoundary:LexicalErrorBoundary}),R.createElement(OnChangePlugin,{onChange:(G,q)=>{i(il(q));}}),R.createElement(HistoryPlugin,null),R.createElement(AutoFocusPlugin,null),R.createElement(ll,null),R.createElement(sl,null),R.createElement(EditorRefPlugin,{editorRef:k}),R.createElement(ClearEditorPlugin,null),R.createElement(ml,{suggestions:b,getSuggestionId:G=>G.userId,onQueryChange:x,$createNode:G=>Aa({text:`@${(G==null?void 0:G.displayName)||""}`,data:G}),onOpen:G=>{L.setReference({getBoundingClientRect:G.getRect});},onClose:()=>{L.setReference(null);},menuRenderFn:(G,{options:q,selectedIndex:O,setHighlightedIndex:H,selectOptionAndCleanUp:z})=>!l||q.length===0?null:j&&G.current?(L.setReference(G.current),ex.createPortal(R.createElement("div",{ref:Z=>L.setFloating(Z),style:c({},D),className:Xn.commentInput__mentionMenu},R.createElement("ul",{className:Xn.commentInput__mentionMenuItem},q.map((Z,Q)=>R.createElement(Ha,{isSelected:O===Q,onClick:()=>{H(Q),z(Z);},onMouseEnter:()=>{H(Q);},key:Z.key,option:N(c({},Z),{setRefElement:B=>{Q===q.length-1&&f(B),Z.setRefElement(B);}})})))),G.current)):(L.setReference(l),ex.createPortal(R.createElement("div",{ref:Z=>L.setFloating(Z),className:Xn.commentInput__mentionMenuMobile,style:N(c({},D),{"--asc-mention-width":`${l.offsetWidth}px`})},q.map((Z,Q)=>R.createElement(Ha,{isSelected:O===Q,onClick:()=>{H(Q),z(Z);},onMouseEnter:()=>{H(Q);},key:Z.key,option:N(c({},Z),{setRefElement:B=>{Q===q.length-1&&f(B),Z.setRefElement(B);}})}))),l)),commandPriority:COMMAND_PRIORITY_HIGH})))});var cZ=30,dZ=5e4,pZ=({className:e,userToReply:t,onSubmit:o,postId:r,textValue:n})=>{let i=po(r),{currentUserId:a}=J(),{info:s}=_e(),l=oe(a),d=se({fileId:l==null?void 0:l.avatarFileId,imageSize:"small"}),[p,u]=useState(n),{formatMessage:g}=useIntl(),f=useRef(null),y=useRef(null);useEffect(()=>{var b;(b=y.current)==null||b.focus();},[]);let v=()=>{var b,M;if((p==null?void 0:p.text)!==""){if(p!=null&&p.mentioned&&((b=p==null?void 0:p.mentioned)==null?void 0:b.length)>cZ)return s({title:R.createElement(FormattedMessage,{id:"CommentComposeBar.unableToMention"}),content:R.createElement(FormattedMessage,{id:"CommentComposeBar.overMentionees"}),okText:R.createElement(FormattedMessage,{id:"CommentComposeBar.okText"})});if(p!=null&&p.text&&((M=p.text)==null?void 0:M.length)>dZ)return s({title:R.createElement(FormattedMessage,{id:"CommentComposeBar.unableToPost"}),content:R.createElement(FormattedMessage,{id:"CommentComposeBar.overCharacter"}),okText:R.createElement(FormattedMessage,{id:"CommentComposeBar.done"})});o==null||o((p==null?void 0:p.text)||"",p==null?void 0:p.mentionees,{mentioned:p==null?void 0:p.mentioned});}},C=(p==null?void 0:p.text)==="";t?g({id:"CommentComposeBar.replayTo"})+t:g({id:"CommentComposeBar.saySomething"});let x=g(t?{id:"reply"}:{id:"CommentComposeBar.addComment"});return i==null?null:R.createElement(Av,{className:e,ref:f},R.createElement(Lv,{avatar:d,backgroundImage:Ne}),R.createElement(Dv,null,R.createElement(Yn,{placeholder:"Say something nice...",mentionContainer:f.current,onChange:({text:b,mentioned:M,mentionees:I})=>{u({text:b,mentioned:M,mentionees:I});}})),R.createElement(Hv,{"data-qa-anchor":t?"comment-compose-bar-reply-button":"comment-compose-bar-add-comment-button",disabled:C,onClick:v},x))},Fa=e=>{let t=W("CommentComposerBar");return t?t(e):R.createElement(pZ,c({},e))};var nx=m.div`
|
|
725
728
|
color: ${({theme:e})=>e.palette.neutral.shade1};
|
|
726
729
|
${({theme:e})=>e.typography.body}
|
|
727
730
|
`,ix=m.div`
|
|
@@ -763,11 +766,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
763
766
|
color: #6e6e6e;
|
|
764
767
|
margin-right: 4px;
|
|
765
768
|
fill: #6e6e6e;
|
|
766
|
-
`,CZ=m(
|
|
769
|
+
`,CZ=m(x2)`
|
|
767
770
|
width: 20px;
|
|
768
771
|
height: 20px;
|
|
769
772
|
${mx}
|
|
770
|
-
`,vZ=({isLiked:e})=>e?R.createElement(CZ,null):R.createElement(hZ,null),xZ=({onClick:e,isActive:t,isDisabled:
|
|
773
|
+
`,vZ=({isLiked:e})=>e?R.createElement(CZ,null):R.createElement(hZ,null),xZ=({onClick:e,isActive:t,totalLikes:o,isDisabled:r})=>R.createElement(yZ,{active:t,disabled:r,onClick:e},R.createElement(vZ,{isLiked:t})," ",o>0?R.createElement("span",null,o):R.createElement(FormattedMessage,{id:t?"comment.liked":"comment.like"})),cx=xZ;var bZ=({comment:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let{isNoNicknameUser:r,isAnonymousUser:n}=Be(),{openNicknameModal:i}=_o(),{triggerAnonymousNeedsLogin:a}=dr(),s=!!(e&&e.myReactions&&e.myReactions.includes(cr)),l=(e==null?void 0:e.reactions[cr])||0,d=()=>_(void 0,null,function*(){if(e!=null)if(r)i();else if(n)a();else try{s?(yield ReactionRepository.removeReaction("comment",e.commentId,cr),o==null||o(e)):(yield ReactionRepository.addReaction("comment",e.commentId,cr),t==null||t(e));}catch(p){console.error("Can't toggle like",p);}});return R.createElement(cx,{totalLikes:l,isActive:s,isDisabled:e==null,onClick:d})},ux=e=>{let t=W("CommentLikeButton");return t?t(e):R.createElement(bZ,c({},e))};var wZ=({commentId:e,onLikeSuccess:t,onUnlikeSuccess:o})=>{let r=D0(e);return R.createElement(ux,{comment:r,onLikeSuccess:t,onUnlikeSuccess:o})},gx=wZ;var PZ=m.span`
|
|
771
774
|
cursor: pointer;
|
|
772
775
|
color: #cc0058;
|
|
773
776
|
`,_Z=({children:e,mentionee:t})=>{let{onClickUser:o}=X(),{userId:r}=t;return R.createElement(PZ,{"data-qa-anchor":"mention-hilight-tag",onClick:()=>o(r)},e)},H0=_Z;var F0=(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 fx=m.a`
|
|
@@ -777,7 +780,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
777
780
|
&:hover {
|
|
778
781
|
text-decoration: underline;
|
|
779
782
|
}
|
|
780
|
-
`;var kZ=e=>R.createElement(TZ,N(c({},e),{options:{render:({attributes:t,content:o})=>{let i=t,{href:r}=i,n=P(i,["href"]);return R.createElement(fx,c({target:"blank",rel:"noopener noreferrer",href:r},n),o)}}})),
|
|
783
|
+
`;var kZ=e=>R.createElement(TZ,N(c({},e),{options:{render:({attributes:t,content:o})=>{let i=t,{href:r}=i,n=P(i,["href"]);return R.createElement(fx,c({target:"blank",rel:"noopener noreferrer",href:r},n),o)}}})),ul=kZ;var O0="top",gl="right",_n="bottom",L2="left",SZ=(e="bottom")=>e===_n?"top: 120%;":e===L2?"left: 0px;":e===gl?"right: 0px;":"bottom: 100%;",z0=SZ;var LZ=(e=!1)=>{let[t,o]=useState(e),r=useRef(null);return useEffect(()=>{let n=r.current;if(n){let i=a=>{o(n.contains(a.target)||document.activeElement===n||a.target===n);};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)}},[r.current]),[r,t]},A2=LZ;var DZ=(e,t)=>{useEffect(()=>{if(e){let o=new MutationObserver(()=>{let{height:r,width:n}=e.getBoundingClientRect();t({height:r,width:n});});return o.observe(e,{attributes:!0,childList:!0,subtree:!0}),()=>o.disconnect()}},[t,e]);},hx=DZ;var zZ=()=>{let e=useRef(null),[t,o]=useState({height:0,width:0});return useEffect(()=>{let r=e.current;if(r){let{height:n,width:i}=r.getBoundingClientRect(),a=[n,i].every(l=>l!==void 0),s=n!==t.height||i!==t.width;a&&s&&o({height:n,width:i});}},[e]),hx(e.current,o),[e,t.height,t.width]},fl=zZ;var Cx=m.div`
|
|
781
784
|
> *:disabled {
|
|
782
785
|
cursor: default;
|
|
783
786
|
background: ${({theme:e})=>e.palette.base.shade3};
|
|
@@ -785,9 +788,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
785
788
|
`,vx=m.div`
|
|
786
789
|
position: relative;
|
|
787
790
|
display: block;
|
|
788
|
-
`,fl=m.div`
|
|
789
|
-
overflow: hidden;
|
|
790
791
|
`,yl=m.div`
|
|
792
|
+
overflow: hidden;
|
|
793
|
+
`,hl=m.div`
|
|
791
794
|
position: absolute;
|
|
792
795
|
z-index: 10;
|
|
793
796
|
box-sizing: border-box;
|
|
@@ -805,17 +808,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
805
808
|
@media (max-width: 768px) {
|
|
806
809
|
${({fullSized:e})=>e?"width: 100%;":"min-width: 90px;"}
|
|
807
810
|
}
|
|
808
|
-
`;var xx=200,$0=({parentContainer:e,dropdownRef:t,align:o=L2,scrollableHeight:r=xx,position:n=_n,buttonContainerHeight:i})=>{let[a,s]=useState(n),l=
|
|
811
|
+
`;var xx=200,$0=({parentContainer:e,dropdownRef:t,align:o=L2,scrollableHeight:r=xx,position:n=_n,buttonContainerHeight:i})=>{let[a,s]=useState(n),l=S2(t.current,{root:e,rootMargin:e?`0px 0px -${Math.ceil(r*100/(e.getBoundingClientRect().height-i))}% 0px`:void 0});return useEffect(()=>{var d;(l==null?void 0:l.isIntersecting)===!1?((d=l.boundingClientRect)==null?void 0:d.top)<0?s(_n):s(O0):s(n);},[l,n]),{align:o,currentPosition:a,scrollableHeight:r}},$Z=e=>R.createElement(Y,c({},e),R.createElement(Mn,{height:14,width:14})),VZ=({"data-qa-anchor":e="",isOpen:t,renderTrigger:o=$Z,children:r,position:n=_n,align:i=L2,handleClose:a,fullSized:s=!1,scrollable:l=!1,scrollableHeight:d=xx,parentContainer:p=null,disabled:u=!1,className:g=""})=>{let[f,y]=useState(t),[v,C]=useState(n),[h,x]=A2(t),[b,M]=fl(),I=useCallback(()=>{a?t&&a():y(!1);},[a,t]),w=S2(h.current,{root:p,rootMargin:p?`0px 0px -${Math.ceil(d*100/(p.getBoundingClientRect().height-M))}% 0px`:void 0}),k={onClick:()=>y(!f),disabled:u};return useEffect(()=>{x||I();},[I,x]),useEffect(()=>{y(t);},[t]),useEffect(()=>{var T;(w==null?void 0:w.isIntersecting)===!1?((T=w.boundingClientRect)==null?void 0:T.top)<0?C(_n):C(O0):C(n);},[w,n]),R.createElement(vx,{ref:h,className:g},R.createElement(Cx,{ref:b},o(N(c({},k),{"data-qa-anchor":e}))),(t||f)&&R.createElement(yl,null,R.createElement(hl,{position:v,align:i,fullSized:s,scrollable:l,scrollableHeight:d},r)))},V0=VZ;var vl=m(Na).attrs({width:16,height:16})`
|
|
809
812
|
cursor: pointer;
|
|
810
813
|
margin-left: auto;
|
|
811
|
-
`,
|
|
814
|
+
`,xl=m(He)`
|
|
812
815
|
display: flex;
|
|
813
816
|
align-items: center;
|
|
814
817
|
justify-content: center;
|
|
815
818
|
padding: 0;
|
|
816
819
|
height: unsets;
|
|
817
820
|
color: #000;
|
|
818
|
-
`,
|
|
821
|
+
`,bl=m.div`
|
|
819
822
|
cursor: pointer;
|
|
820
823
|
${({active:e,theme:t})=>e&&`color: ${t.palette.primary.shade1};`};
|
|
821
824
|
padding: 14px 20px;
|
|
@@ -835,7 +838,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
835
838
|
}
|
|
836
839
|
`,bx=m.div`
|
|
837
840
|
${({pullRight:e})=>e&&"margin-left: auto;"}
|
|
838
|
-
`;var GZ=({className:e="","data-qa-anchor":t="",icon:o,options:r,position:n=_n,align:i=
|
|
841
|
+
`;var GZ=({className:e="","data-qa-anchor":t="",icon:o,options:r,position:n=_n,align:i=gl,pullRight:a=!0,isClickable:s=!0,onClickOptionMenu:l})=>{let[d,p]=useState(!1),u=()=>p(!d),g=()=>p(!1),f=y=>()=>{g(),y&&y();};return !r||r.length===0?null:R.createElement(bx,{className:e,pullRight:a},R.createElement(V0,{"data-qa-anchor":t,isOpen:d,renderTrigger:y=>R.createElement(xl,N(c({},y),{onClick:()=>{l&&l(),s&&u();},className:e,icon:o}),o||R.createElement(vl,null)),position:n,align:i,handleClose:()=>p(!1)},r.map(({name:y,action:v,className:C})=>R.createElement(bl,{key:y,"data-qa-anchor":`${t}-${y}`,className:C,onClick:f(v)},y))))},So=GZ;var Ix=m.div`
|
|
839
842
|
color: ${({theme:e})=>e.palette.neutral.shade1};
|
|
840
843
|
${({theme:e})=>e.typography.caption}
|
|
841
844
|
& > * {
|
|
@@ -956,7 +959,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
956
959
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
957
960
|
border-radius: 4px;
|
|
958
961
|
padding: 5px 12px 5px 8px;
|
|
959
|
-
`,D6=m(
|
|
962
|
+
`,D6=m(T2).attrs({width:18,height:18})``,H6=m.div`
|
|
960
963
|
display: flex;
|
|
961
964
|
padding-right: 10px;
|
|
962
965
|
|
|
@@ -968,7 +971,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
968
971
|
align-items: center;
|
|
969
972
|
`,O6=m.span`
|
|
970
973
|
font-size: 14px;
|
|
971
|
-
`,zx=m(
|
|
974
|
+
`,zx=m(M2).attrs({width:16,height:16})`
|
|
972
975
|
margin-right: 5px;
|
|
973
976
|
`,Ux=m(He)`
|
|
974
977
|
color: #6e6e6e;
|
|
@@ -994,7 +997,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
994
997
|
width: 100%;
|
|
995
998
|
display: flex;
|
|
996
999
|
align-items: center;
|
|
997
|
-
`;var oQ=8,rQ=({text:e,className:t,mentionees:o,maxLines:r=oQ})=>{let n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1),d=useMemo(()=>F0(e||"",I0(o)),[o,e]),p=()=>a(!0);return useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:g}=n.current;l(u>g);}},[e,r]),e?R.createElement(Ex,{"data-qa-anchor":"comment-content",className:t},R.createElement(Nx,{isExpanded:i,maxLines:r,ref:n},R.createElement(mw.Atom,null,d.map(u=>{let g=`${e}-${u.start}-${u.end}`,f=e.substring(u.start,u.end);if(u.highlight){let y=o==null?void 0:o.find(v=>v.index===u.start);return y?R.createElement(H0,{key:g,mentionee:y},f):R.createElement("span",{key:g},f)}return R.createElement(
|
|
1000
|
+
`;var oQ=8,rQ=({text:e,className:t,mentionees:o,maxLines:r=oQ})=>{let n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1),d=useMemo(()=>F0(e||"",I0(o)),[o,e]),p=()=>a(!0);return useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:g}=n.current;l(u>g);}},[e,r]),e?R.createElement(Ex,{"data-qa-anchor":"comment-content",className:t},R.createElement(Nx,{isExpanded:i,maxLines:r,ref:n},R.createElement(mw.Atom,null,d.map(u=>{let g=`${e}-${u.start}-${u.end}`,f=e.substring(u.start,u.end);if(u.highlight){let y=o==null?void 0:o.find(v=>v.index===u.start);return y?R.createElement(H0,{key:g,mentionee:y},f):R.createElement("span",{key:g},f)}return R.createElement(ul,{key:g},f)}))),!i&&s&&R.createElement(Dx,{onClick:p},"..."," ",R.createElement(Bx,null,R.createElement(FormattedMessage,{id:"comment.readmore"})))):null},z6=rQ;var sQ=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=()=>_(void 0,null,function*(){if(e!=null)try{o(!0),yield CommentRepository.flagComment(e);}catch(d){o(!1);}finally{i();}}),s=()=>_(void 0,null,function*(){if(e!=null)try{o(!1),yield CommentRepository.unflagComment(e);}catch(d){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagComment:a,unflagComment:s,toggleFlagComment:()=>_(void 0,null,function*(){e!=null&&(t?s():a());})}},Zx=sQ;var Il=()=>/Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var dQ=m(Y)`
|
|
998
1001
|
border-radius: 100px;
|
|
999
1002
|
border: 1px solid #000;
|
|
1000
1003
|
padding: 12px 24px;
|
|
@@ -1003,7 +1006,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1003
1006
|
background-color: #000;
|
|
1004
1007
|
border: 1px solid #000;
|
|
1005
1008
|
padding: 12px 24px;
|
|
1006
|
-
`,uQ=({commentId:e,canDelete:t=!1,canEdit:o=!1,canReport:r=!0,handleReportComment:n,startEditing:i,handleDelete:a,isReplyComment:s,onClose:l,buttonContainerHeight:d})=>{let{formatMessage:p}=useIntl(),u=we(),g=useRef(null),{currentPosition:f,align:y,scrollableHeight:v}=$0({dropdownRef:g,buttonContainerHeight:d}),{isFlaggedByMe:C,toggleFlagComment:h}=Zx(e),x=()=>_(void 0,null,function*(){try{yield h(),n==null||n(),C?u.success({content:p({id:"report.unreportSent"})}):u.success({content:p({id:"report.reportSent"})});}catch(M){M instanceof Error&&u.error({content:M.message});}}),b=[o?{name:s?p({id:"reply.edit"}):
|
|
1009
|
+
`,uQ=({commentId:e,canDelete:t=!1,canEdit:o=!1,canReport:r=!0,handleReportComment:n,startEditing:i,handleDelete:a,isReplyComment:s,onClose:l,buttonContainerHeight:d})=>{let{formatMessage:p}=useIntl(),u=we(),g=useRef(null),{currentPosition:f,align:y,scrollableHeight:v}=$0({dropdownRef:g,buttonContainerHeight:d}),{isFlaggedByMe:C,toggleFlagComment:h}=Zx(e),x=()=>_(void 0,null,function*(){try{yield h(),n==null||n(),C?u.success({content:p({id:"report.unreportSent"})}):u.success({content:p({id:"report.reportSent"})});}catch(M){M instanceof Error&&u.error({content:M.message});}}),b=[o?{name:s?p({id:"reply.edit"}):Il()?p({id:"comment.editMobile"}):p({id:"comment.edit"}),action:i}:null,r?{name:p(C?{id:"report.undoReport"}:{id:"report.doReport"}),action:x}:null,t?{name:s?p({id:"reply.delete"}):Il()?p({id:"comment.deleteMobile"}):p({id:"comment.delete"}),action:a}:null].filter(Fe);return R.createElement(Mx,{ref:g},R.createElement(yl,null,R.createElement(hl,{position:f,align:y,scrollableHeight:v},b.map(({name:M,action:I})=>R.createElement(bl,{key:M,"data-qa-anchor":`post-options-button-${M}`,onClick:()=>{I==null||I(),l();}},M)))))},gQ=e=>{var V;let {commentId:t,authorName:o,authorAvatar:r,canLike:n=!0,canReply:i=!1,createdAt:a,editedAt:s,text:l,onClickReply:d,handleEdit:p,startEditing:u,cancelEditing:g,isEditing:f,onChange:y,isBanned:v,mentionees:C,metadata:h,onClickUser:x}=e;useIntl();let {isNoNicknameUser:M,isAnonymousUser:I}=Be(),{openNicknameModal:w}=_o(),{triggerAnonymousNeedsLogin:k}=dr(),[T,L]=useState(!1),[D,U]=fl(),j=useRef(null),E=()=>L(G=>!G);return useEffect(()=>(T?document.addEventListener("click",E):document.removeEventListener("click",E),()=>{document.removeEventListener("click",E);}),[T]),R.createElement(R.Fragment,null,R.createElement(Px,{onClick:x,avatar:r,backgroundImage:Ne}),R.createElement(kx,null,R.createElement(mw,{ellipsis:R.createElement("span",null,"...",R.createElement(L6,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&R.createElement(A6,null,R.createElement(FormattedMessage,{id:"comment.edited"}))),lines:2},R.createElement(Sx,null,R.createElement(Lx,{onClick:x},o),R.createElement(Ax,null,v&&R.createElement(Jn,{style:{marginLeft:"0.265rem",marginTop:"1px"}}),R.createElement(L6,{date:a==null?void 0:a.getTime()}),((s==null?void 0:s.getTime())||0)-((a==null?void 0:a.getTime())||0)>0&&R.createElement(A6,null,R.createElement(FormattedMessage,{id:"comment.edited"}))))),f?R.createElement($x,null,R.createElement(jx,{ref:j},R.createElement(Yn,{placeholder:"Say something nice...",value:{data:{text:l||""},metadata:h||{mentioned:[]},mentionees:(V=C||[])==null?void 0:V.map(G=>({type:"user",userIds:G.userId?[G.userId]:[]}))},mentionContainer:j.current,onChange:({text:G,mentioned:q,mentionees:O})=>{let H=q.map(z=>{var Z;return N(c({},z),{userId:(Z=z.userId)!=null?Z:""})});y==null||y({text:G,mentioned:H,mentionees:O});}})),R.createElement(Vx,null,R.createElement(dQ,{"data-qa-anchor":"comment-cancel-edit-button",onClick:g},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(pQ,{"data-qa-anchor":"comment-save-edit-button",onClick:()=>p==null?void 0:p(l)},R.createElement(FormattedMessage,{id:"save"})))):R.createElement(z6,{text:l,mentionees:h==null?void 0:h.mentioned}),!f&&(n||i)&&R.createElement(Hx,null,n&&R.createElement(gx,{commentId:t}),i&&R.createElement(Ux,{"data-qa-anchor":"comment-reply-button",onClick:()=>{M?w():I?k():d&&d();}},R.createElement(zx,null)," ",R.createElement(FormattedMessage,{id:"reply"})),R.createElement(wx,null,R.createElement("div",{ref:D},R.createElement(xl,{onClick:G=>{G.stopPropagation(),M?w():I?k():E();}},R.createElement(vl,null))),T&&R.createElement(uQ,N(c({},e),{onClose:E,onEditCommentClick:()=>u(),buttonContainerHeight:U}))))))},qx=gQ;var G0=m.div.attrs(({progress:e})=>({style:{width:`${e||0}%`}}))`
|
|
1007
1010
|
background: ${({lightMode:e,theme:t})=>e?t.palette.primary.main:t.palette.base.shade4};
|
|
1008
1011
|
position: absolute;
|
|
1009
1012
|
left: 0;
|
|
@@ -1068,7 +1071,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1068
1071
|
}
|
|
1069
1072
|
`,Xx=m(Mn).attrs({width:14,height:14})`
|
|
1070
1073
|
margin-left: 5px;
|
|
1071
|
-
`;var LQ=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=R.createElement(Xx,null),isExpanded:s=!0})=>{let{formatMessage:l}=useIntl(),[d,p]=useState(s);return useEffect(()=>p(s),[s]),R.createElement(R.Fragment,null,r,e&&R.createElement(q0,{className:n,onClick:()=>{d?t&&t():p(!0);}},i," ",o||l({id:"loadMore"})," ",a))},No=LQ;function DQ({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=e6(),[a,s]=useState(!1),[l,d]=useState(n),[p,u]=useState([]),[g,f]=useState(null),[y,v]=useState(!1),C=useRef(null),h=useRef(()=>{}),x=useCallback(()=>{var I;C.current&&(s(!0),(I=C.current)==null||I.call(C));},[C,a,l,d]),b=useCallback(I=>{n&&(I.data&&u(I.data),d(I.loading),v(I.hasNextPage),f(I.error),C.current=I.onNextPage,o(I));},[n,u,d,v,C,o]);return useEffect(()=>{if(!n)return;let{unsubscribe:I}=i({fetcher:e,params:t,callback:b});return h.current=I,()=>{var w;(w=h.current)==null||w.call(h);}},[t,n]),{items:p,hasMore:y,isLoading:l,loadMore:x,error:g,loadMoreHasBeenCalled:a,refresh:()=>{var w;(w=h.current)==null||w.call(h);let{unsubscribe:I}=i({fetcher:e,params:t,callback:b,config:r,refresh:!0});h.current=I;}}}var ze=DQ;function G6({parentId:e,referenceId:t,referenceType:o,limit:r=10},n=!0){let s=ze({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:!0},shouldCall:!!t&&!!o&&n}),{items:i}=s,a=P(s,["items"]);return c({comments:i},a)}var X0=({parentId:e,referenceId:t,referenceType:o,limit:r=5,disableLiveCollection:n=!1,readonly:i=!1,isExpanded:a=!0,callLoadMoreAgain:s=!1,initialComments:l=[]})=>{let[d,p]=useState(!s),{formatMessage:u}=useIntl(),g=!!e,[f,y]=useState(!1),v=po(t),C=!n||f,{comments:h,hasMore:x,loadMore:b,isLoading:M}=G6({parentId:e,referenceId:t,referenceType:o,limit:r},C),I=useMemo(()=>{var L;return g||C?x:l.length===5?((L=v==null?void 0:v.commentsCount)!=null?L:0)>l.length:!1},[x,v,g,l,C]),w=useMemo(()=>M||!C?l:h,[h,l,f]);useEffect(()=>{d&&w.length>0&&x&&(b(),p(!1));},[w,x,b,d]);let k=u(g?{id:"collapsible.viewReplies"}:{id:"collapsible.viewMoreComments"}),T=g?R.createElement(j6,null,R.createElement(V6,null)):null;return w.length===0?null:R.createElement(No,{hasMore:I,loadMore:()=>{C?b():(y(!0),p(!0));},text:k,className:g?"reply-button":"comments-button",prependIcon:T,appendIcon:null,isExpanded:a,contentSlot:w.map(L=>R.createElement(Kx,{key:L.commentId,commentId:L.commentId,readonly:i,onInteract:()=>y(!0)}))})},zQ=e=>{let{referenceId:t,isRenderLiveCollectionComment:o}=e,r=po(t),n=o===!1;return !r||(r==null?void 0:r.commentsCount)===0?R.createElement(X0,N(c({},e),{callLoadMoreAgain:!0,disableLiveCollection:n,initialComments:r==null?void 0:r.latestComments.sort((i,a)=>ln(a.createdAt).unix()-ln(i.createdAt).unix())})):R.createElement(Jx,null,R.createElement(X0,N(c({},e),{callLoadMoreAgain:!0,disableLiveCollection:n,initialComments:r==null?void 0:r.latestComments.sort((i,a)=>ln(a.createdAt).unix()-ln(i.createdAt).unix())})))},UQ=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=R.createElement(j6,null,R.createElement(V6,null));return t?R.createElement(X0,N(c({},e),{isExpanded:!0})):R.createElement(q0,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewReplies"}))},$Q=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?R.createElement(UQ,c({},e)):t==="post"&&!r?R.createElement(zQ,c({},e)):R.createElement(X0,c({},e))},F2=memo($Q);var rb=5,jQ=({post:e,readonly:t=!1,onClickComment:o,isComposeBarDisplayed:r,handleAddComment:n})=>{let{postId:i,targetType:a,targetId:s,reactions:l={},commentsCount:d,latestComments:p}=e,{isAnonymousUser:u,isNoNicknameUser:g}=Be(),{openNicknameModal:f}=_o(),{triggerAnonymousNeedsLogin:y}=dr(),v=l[cr]||0,[C,h]=useState(!1);return R.createElement(nx,null,R.createElement(ix,null,v>0&&R.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},ob(v||0)," ",R.createElement(FormattedMessage,{id:"plural.like",values:{amount:v}})),d>0&&R.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},ob(d||0)," ",R.createElement(FormattedMessage,{id:"plural.comment",values:{amount:d}}))),!t||g||u?R.createElement(R.Fragment,null,R.createElement(ax,null,R.createElement(Iv,{postId:i,isNoNicknameUser:g,isAnonymousUser:u}),R.createElement(He,{"data-qa-anchor":"engagement-bar-comment-button",onClick:()=>{g?f():u?y():o==null||o();}},R.createElement(sx,null)," ",R.createElement(FormattedMessage,{id:"comment"}))),R.createElement(F2,{referenceId:i,referenceType:"post",limit:rb,isRenderLiveCollectionComment:C}),r&&R.createElement(Fa,{postId:i,onSubmit:(x,b,M)=>{h(!0),n==null||n(x,b,M);}})):R.createElement(R.Fragment,null,R.createElement(lx,null,R.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?R.createElement(F2,{referenceId:i,referenceType:"post",limit:rb,readonly:!0}):null))},nb=e=>{let t=W("UIEngagementBar");return t?t(e):R.createElement(jQ,c({},e))};var ZQ=e=>Lt({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:!!e}),_t=ZQ;var XQ=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r})=>{let n=t==="community",i=_t(e),[a,s]=useState(o!=null?o:""),[l,d]=useState(r!=null?r:o),[p,u]=useState([]);useEffect(()=>{s(o||""),d(r!=null?r:"");},[o,r]);let g=({text:x,plainText:b,mentions:M})=>{s(b),d(x),u(M);},f=()=>{s(""),d(""),u([]);},y=()=>{s(o||""),d(r),u([]);},v=useCallback(x=>_(void 0,null,function*(){let b,M=x||"",I;return (M.match(/^@$/)||M==="")&&(M=void 0),n&&!(i!=null&&i.isPublic)&&e!=null?b=yield new Promise(w=>{I==null||I(),I=CommunityRepository.Membership.getMembers({communityId:e,search:M,limit:20},k=>{k.loading||w(k.data.map(({user:T})=>T).filter(Fe));});}):b=yield new Promise(w=>{I==null||I(),I=UserRepository.getUsers({displayName:M,limit:20,sortBy:"displayName"},k=>{k.loading||w(k.data);});}),DC(b)}),[n,i==null?void 0:i.isPublic,e]),{mentionees:C,metadata:h}=useMemo(()=>{let{mentionees:x,metadata:b}=HC(p);return {mentionees:x,metadata:b}},[p]);return {text:a,markup:l,mentions:p,mentionees:C,metadata:h,onChange:g,clearAll:f,resetState:y,queryMentionees:v}},
|
|
1074
|
+
`;var LQ=({hasMore:e,loadMore:t,text:o="",contentSlot:r,className:n="",prependIcon:i=null,appendIcon:a=R.createElement(Xx,null),isExpanded:s=!0})=>{let{formatMessage:l}=useIntl(),[d,p]=useState(s);return useEffect(()=>p(s),[s]),R.createElement(R.Fragment,null,r,e&&R.createElement(q0,{className:n,onClick:()=>{d?t&&t():p(!0);}},i," ",o||l({id:"loadMore"})," ",a))},No=LQ;function DQ({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0}){let{subscribe:i}=e6(),[a,s]=useState(!1),[l,d]=useState(n),[p,u]=useState([]),[g,f]=useState(null),[y,v]=useState(!1),C=useRef(null),h=useRef(()=>{}),x=useCallback(()=>{var I;C.current&&(s(!0),(I=C.current)==null||I.call(C));},[C,a,l,d]),b=useCallback(I=>{n&&(I.data&&u(I.data),d(I.loading),v(I.hasNextPage),f(I.error),C.current=I.onNextPage,o(I));},[n,u,d,v,C,o]);return useEffect(()=>{if(!n)return;let{unsubscribe:I}=i({fetcher:e,params:t,callback:b});return h.current=I,()=>{var w;(w=h.current)==null||w.call(h);}},[t,n]),{items:p,hasMore:y,isLoading:l,loadMore:x,error:g,loadMoreHasBeenCalled:a,refresh:()=>{var w;(w=h.current)==null||w.call(h);let{unsubscribe:I}=i({fetcher:e,params:t,callback:b,config:r,refresh:!0});h.current=I;}}}var ze=DQ;function G6({parentId:e,referenceId:t,referenceType:o,limit:r=10},n=!0){let s=ze({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:!0},shouldCall:!!t&&!!o&&n}),{items:i}=s,a=P(s,["items"]);return c({comments:i},a)}var X0=({parentId:e,referenceId:t,referenceType:o,limit:r=5,disableLiveCollection:n=!1,readonly:i=!1,isExpanded:a=!0,callLoadMoreAgain:s=!1,initialComments:l=[]})=>{let[d,p]=useState(!s),{formatMessage:u}=useIntl(),g=!!e,[f,y]=useState(!1),v=po(t),C=!n||f,{comments:h,hasMore:x,loadMore:b,isLoading:M}=G6({parentId:e,referenceId:t,referenceType:o,limit:r},C),I=useMemo(()=>{var L;return g||C?x:l.length===5?((L=v==null?void 0:v.commentsCount)!=null?L:0)>l.length:!1},[x,v,g,l,C]),w=useMemo(()=>M||!C?l:h,[h,l,f]);useEffect(()=>{d&&w.length>0&&x&&(b(),p(!1));},[w,x,b,d]);let k=u(g?{id:"collapsible.viewReplies"}:{id:"collapsible.viewMoreComments"}),T=g?R.createElement(j6,null,R.createElement(V6,null)):null;return w.length===0?null:R.createElement(No,{hasMore:I,loadMore:()=>{C?b():(y(!0),p(!0));},text:k,className:g?"reply-button":"comments-button",prependIcon:T,appendIcon:null,isExpanded:a,contentSlot:w.map(L=>R.createElement(Kx,{key:L.commentId,commentId:L.commentId,readonly:i,onInteract:()=>y(!0)}))})},zQ=e=>{let{referenceId:t,isRenderLiveCollectionComment:o}=e,r=po(t),n=o===!1;return !r||(r==null?void 0:r.commentsCount)===0?R.createElement(X0,N(c({},e),{callLoadMoreAgain:!0,disableLiveCollection:n,initialComments:r==null?void 0:r.latestComments.sort((i,a)=>ln(a.createdAt).unix()-ln(i.createdAt).unix())})):R.createElement(Jx,null,R.createElement(X0,N(c({},e),{callLoadMoreAgain:!0,disableLiveCollection:n,initialComments:r==null?void 0:r.latestComments.sort((i,a)=>ln(a.createdAt).unix()-ln(i.createdAt).unix())})))},UQ=e=>{let[t,o]=useState(!1),{formatMessage:r}=useIntl(),n=R.createElement(j6,null,R.createElement(V6,null));return t?R.createElement(X0,N(c({},e),{isExpanded:!0})):R.createElement(q0,{className:"reply-button",onClick:()=>o(i=>!i)},n," ",r({id:"collapsible.viewReplies"}))},$Q=e=>{let{referenceType:t,parentId:o}=e,r=!!o;return r?R.createElement(UQ,c({},e)):t==="post"&&!r?R.createElement(zQ,c({},e)):R.createElement(X0,c({},e))},F2=memo($Q);var rb=5,jQ=({post:e,readonly:t=!1,onClickComment:o,isComposeBarDisplayed:r,handleAddComment:n})=>{let{postId:i,targetType:a,targetId:s,reactions:l={},commentsCount:d,latestComments:p}=e,{isAnonymousUser:u,isNoNicknameUser:g}=Be(),{openNicknameModal:f}=_o(),{triggerAnonymousNeedsLogin:y}=dr(),v=l[cr]||0,[C,h]=useState(!1);return R.createElement(nx,null,R.createElement(ix,null,v>0&&R.createElement("span",{"data-qa-anchor":"engagement-bar-like-counter"},ob(v||0)," ",R.createElement(FormattedMessage,{id:"plural.like",values:{amount:v}})),d>0&&R.createElement("span",{"data-qa-anchor":"engagement-bar-comment-counter"},ob(d||0)," ",R.createElement(FormattedMessage,{id:"plural.comment",values:{amount:d}}))),!t||g||u?R.createElement(R.Fragment,null,R.createElement(ax,null,R.createElement(Iv,{postId:i,isNoNicknameUser:g,isAnonymousUser:u}),R.createElement(He,{"data-qa-anchor":"engagement-bar-comment-button",onClick:()=>{g?f():u?y():o==null||o();}},R.createElement(sx,null)," ",R.createElement(FormattedMessage,{id:"comment"}))),R.createElement(F2,{referenceId:i,referenceType:"post",limit:rb,isRenderLiveCollectionComment:C}),r&&R.createElement(Fa,{postId:i,onSubmit:(x,b,M)=>{h(!0),n==null||n(x,b,M);}})):R.createElement(R.Fragment,null,R.createElement(lx,null,R.createElement(FormattedMessage,{id:"community.cannotInteract"})),e.commentsCount>0?R.createElement(F2,{referenceId:i,referenceType:"post",limit:rb,readonly:!0}):null))},nb=e=>{let t=W("UIEngagementBar");return t?t(e):R.createElement(jQ,c({},e))};var ZQ=e=>Lt({fetcher:CommunityRepository.getCommunity,params:e,shouldCall:!!e}),_t=ZQ;var XQ=({targetId:e,targetType:t,remoteText:o,remoteMarkup:r})=>{let n=t==="community",i=_t(e),[a,s]=useState(o!=null?o:""),[l,d]=useState(r!=null?r:o),[p,u]=useState([]);useEffect(()=>{s(o||""),d(r!=null?r:"");},[o,r]);let g=({text:x,plainText:b,mentions:M})=>{s(b),d(x),u(M);},f=()=>{s(""),d(""),u([]);},y=()=>{s(o||""),d(r),u([]);},v=useCallback(x=>_(void 0,null,function*(){let b,M=x||"",I;return (M.match(/^@$/)||M==="")&&(M=void 0),n&&!(i!=null&&i.isPublic)&&e!=null?b=yield new Promise(w=>{I==null||I(),I=CommunityRepository.Membership.getMembers({communityId:e,search:M,limit:20},k=>{k.loading||w(k.data.map(({user:T})=>T).filter(Fe));});}):b=yield new Promise(w=>{I==null||I(),I=UserRepository.getUsers({displayName:M,limit:20,sortBy:"displayName"},k=>{k.loading||w(k.data);});}),DC(b)}),[n,i==null?void 0:i.isPublic,e]),{mentionees:C,metadata:h}=useMemo(()=>{let{mentionees:x,metadata:b}=HC(p);return {mentionees:x,metadata:b}},[p]);return {text:a,markup:l,mentions:p,mentionees:C,metadata:h,onChange:g,clearAll:f,resetState:y,queryMentionees:v}},Ml=XQ;var tW=({postId:e,readonly:t=!1})=>{let[o,r]=useState(!1),n=we(),i=()=>r(p=>!p),a=()=>r(!1),s=po(e),{clearAll:l}=Ml({targetType:s==null?void 0:s.targetType,targetId:s==null?void 0:s.targetId});return s?R.createElement(nb,{post:s,readonly:t,isComposeBarDisplayed:o,handleAddComment:(p,u,g)=>_(void 0,null,function*(){try{yield CommentRepository.createComment({referenceType:"post",referenceId:e,data:{text:p},mentionees:u,metadata:g}),l==null||l(),a();}catch(f){f instanceof Error&&(f.message===Xr.CONTAIN_BLOCKED_WORD?n.error({content:R.createElement(FormattedMessage,{id:"notification.error.blockedWord"})}):f.message===Xr.NOT_INCLUDE_WHITELIST_LINK&&n.error({content:R.createElement(FormattedMessage,{id:"notification.error.whitelistLink"})}));}}),onClickComment:i}):null};var W6=memo(e=>{let t=W("EngagementBar");return t?t(e):R.createElement(tW,c({},e))});var oW=m.div`
|
|
1072
1075
|
position: relative;
|
|
1073
1076
|
width: 100%;
|
|
1074
1077
|
height: 0;
|
|
@@ -1314,7 +1317,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1314
1317
|
display: flex;
|
|
1315
1318
|
align-items: center;
|
|
1316
1319
|
justify-content: center;
|
|
1317
|
-
`;var CW=({index:e=0,items:t=[],renderItem:o,onChange:r,showCounter:n=!0})=>{let i=()=>r==null?void 0:r(null),a=()=>r==null?void 0:r(e+1<t.length?e+1:0),s=()=>r==null?void 0:r(e-1>=0?e-1:t.length-1);return gr("ArrowLeft",s),gr("ArrowRight",a),gr("Escape",i),useMedia("(min-width: 768px)")?R.createElement(q6,null,R.createElement(K6,null,R.createElement(J6,null,R.createElement(X6,null,o(t[e])),n&&R.createElement(Y6,null,`${e+1} / ${t.length}`),t.length>1&&R.createElement(e7,{onClick:s}),t.length>1&&R.createElement(t7,{onClick:a}),R.createElement(o7,{onClick:i})))):R.createElement(q6,{onTouchMove:d=>d.stopPropagation()},R.createElement(K6,null,R.createElement(X6,null,o(t[e])),R.createElement(J6,null,n&&R.createElement(Y6,null,`${e+1} / ${t.length}`),t.length>1&&R.createElement(e7,{onClick:s}),t.length>1&&R.createElement(t7,{onClick:a}),R.createElement(o7,{onClick:i}))))},pb=e=>{let t=W("ImageGallery");return t?t(e):R.createElement(CW,c({},e))};var xW=({progress:e,lightMode:t})=>R.createElement(G0,{progress:e,lightMode:t}),
|
|
1320
|
+
`;var CW=({index:e=0,items:t=[],renderItem:o,onChange:r,showCounter:n=!0})=>{let i=()=>r==null?void 0:r(null),a=()=>r==null?void 0:r(e+1<t.length?e+1:0),s=()=>r==null?void 0:r(e-1>=0?e-1:t.length-1);return gr("ArrowLeft",s),gr("ArrowRight",a),gr("Escape",i),useMedia("(min-width: 768px)")?R.createElement(q6,null,R.createElement(K6,null,R.createElement(J6,null,R.createElement(X6,null,o(t[e])),n&&R.createElement(Y6,null,`${e+1} / ${t.length}`),t.length>1&&R.createElement(e7,{onClick:s}),t.length>1&&R.createElement(t7,{onClick:a}),R.createElement(o7,{onClick:i})))):R.createElement(q6,{onTouchMove:d=>d.stopPropagation()},R.createElement(K6,null,R.createElement(X6,null,o(t[e])),R.createElement(J6,null,n&&R.createElement(Y6,null,`${e+1} / ${t.length}`),t.length>1&&R.createElement(e7,{onClick:s}),t.length>1&&R.createElement(t7,{onClick:a}),R.createElement(o7,{onClick:i}))))},pb=e=>{let t=W("ImageGallery");return t?t(e):R.createElement(CW,c({},e))};var xW=({progress:e,lightMode:t})=>R.createElement(G0,{progress:e,lightMode:t}),_l=xW;var tp=m.div`
|
|
1318
1321
|
display: inline-block;
|
|
1319
1322
|
min-width: 2em;
|
|
1320
1323
|
min-height: 2em;
|
|
@@ -1365,7 +1368,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1365
1368
|
}
|
|
1366
1369
|
`,$2=m.div`
|
|
1367
1370
|
display: flex;
|
|
1368
|
-
`;var _W=({className:e,"data-qa-anchor":t="",url:o,progress:r,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,onRetry:l,overlayElements:d})=>{let[p,u]=useState(!1),g=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),f=useCallback(y=>{y.preventDefault(),y.stopPropagation(),l&&l();},[l]);return R.createElement(tp,{className:e,border:!i,"data-qa-anchor":t},R.createElement(ub,null,o?R.createElement(fb,{src:o,mediaFit:n,className:s?"darken":void 0,onError:()=>u(!0)}):R.createElement(op,null),R.createElement($2,null,(!!s||p)&&R.createElement(hb,{onClick:f}),!!a&&R.createElement(yb,{onClick:g}),d)),!Number.isNaN(r)&&R.createElement(
|
|
1371
|
+
`;var _W=({className:e,"data-qa-anchor":t="",url:o,progress:r,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,onRetry:l,overlayElements:d})=>{let[p,u]=useState(!1),g=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),f=useCallback(y=>{y.preventDefault(),y.stopPropagation(),l&&l();},[l]);return R.createElement(tp,{className:e,border:!i,"data-qa-anchor":t},R.createElement(ub,null,o?R.createElement(fb,{src:o,mediaFit:n,className:s?"darken":void 0,onError:()=>u(!0)}):R.createElement(op,null),R.createElement($2,null,(!!s||p)&&R.createElement(hb,{onClick:f}),!!a&&R.createElement(yb,{onClick:g}),d)),!Number.isNaN(r)&&R.createElement(_l,{progress:(r||0)*100}))},rp=_W;var kW=({className:e,"data-qa-anchor":t="",file:o,progress:r=-1,mediaFit:n,noBorder:i,onRemove:a,isRejected:s,retry:l=()=>{},overlayElements:d})=>{if(o==null)return null;let p=URL.createObjectURL(o);return R.createElement(rp,{className:e,"data-qa-anchor":t,url:p,progress:r,mediaFit:n,noBorder:i,isRejected:s,overlayElements:d,onRemove:a,onRetry:()=>l()})},vb=kW;var NW=({className:e,"data-qa-anchor":t="",fileId:o,loading:r=!1,mediaFit:n="cover",noBorder:i,onRemove:a,overlayElements:s=void 0})=>{let l=se({fileId:o});return r||l==null?null:R.createElement(rp,{className:e,"data-qa-anchor":t,url:l,mediaFit:n,noBorder:i,overlayElements:s,onRemove:a})},xb=NW;function Dt(e){return "fileId"in e?R.createElement(xb,c({},e)):"file"in e?R.createElement(vb,c({},e)):null}var r7=({item:e})=>R.createElement(Dt,{fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-thumbnail-item",mediaFit:"cover"}),n7=({item:e})=>R.createElement(Dt,{fileId:e==null?void 0:e.data.fileId,"data-qa-anchor":"post-gallery-content-image-item",mediaFit:"contain",noBorder:!0});var np=m(e=>R.createElement("div",c({},e),"LIVE"))`
|
|
1369
1372
|
display: inline-block;
|
|
1370
1373
|
padding: 0.25rem 0.5rem;
|
|
1371
1374
|
background: ${({theme:e})=>e.palette.tertiary.main};
|
|
@@ -1429,7 +1432,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1429
1432
|
position: absolute;
|
|
1430
1433
|
top: 1rem;
|
|
1431
1434
|
left: 1rem;
|
|
1432
|
-
`;var zW=({url:e,progress:t=-1,mediaFit:o,noBorder:r,onRemove:n,isRejected:i,onRetry:a,mimeType:s,autoPlay:l,isLive:d})=>{let p=useCallback(y=>{y.preventDefault(),y.stopPropagation(),n&&n();},[n]),u=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),[g,f]=useState(null);return useEffect(()=>{if(!(!g||!e||!e.includes("m3u8"))&&!(g!=null&&g.canPlayType("application/vnd.apple.mpegurl"))&&V2.isSupported()){let y=new V2;return y.loadSource(e),y.attachMedia(g),y.on(V2.Events.ERROR,(v,C)=>{if(C.fatal)switch(C.type){case V2.ErrorTypes.NETWORK_ERROR:y.startLoad();break;case V2.ErrorTypes.MEDIA_ERROR:y.recoverMediaError();break;}}),()=>y.destroy()}},[g,d,e]),R.createElement(Gi,{border:!r},R.createElement(wb,null,e?R.createElement(Pb,{key:e,ref:y=>f(y),className:i?"darken":void 0,mediaFit:o,mimeType:s,src:e,autoPlay:l}):R.createElement(_b,null),R.createElement(Sb,null,d&&R.createElement(Nb,null),!!i&&R.createElement(kb,{onClick:u}),!!n&&R.createElement(Tb,{onClick:p}))),!Number.isNaN(t)&&R.createElement(
|
|
1435
|
+
`;var zW=({url:e,progress:t=-1,mediaFit:o,noBorder:r,onRemove:n,isRejected:i,onRetry:a,mimeType:s,autoPlay:l,isLive:d})=>{let p=useCallback(y=>{y.preventDefault(),y.stopPropagation(),n&&n();},[n]),u=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),[g,f]=useState(null);return useEffect(()=>{if(!(!g||!e||!e.includes("m3u8"))&&!(g!=null&&g.canPlayType("application/vnd.apple.mpegurl"))&&V2.isSupported()){let y=new V2;return y.loadSource(e),y.attachMedia(g),y.on(V2.Events.ERROR,(v,C)=>{if(C.fatal)switch(C.type){case V2.ErrorTypes.NETWORK_ERROR:y.startLoad();break;case V2.ErrorTypes.MEDIA_ERROR:y.recoverMediaError();break;}}),()=>y.destroy()}},[g,d,e]),R.createElement(Gi,{border:!r},R.createElement(wb,null,e?R.createElement(Pb,{key:e,ref:y=>f(y),className:i?"darken":void 0,mediaFit:o,mimeType:s,src:e,autoPlay:l}):R.createElement(_b,null),R.createElement(Sb,null,d&&R.createElement(Nb,null),!!i&&R.createElement(kb,{onClick:u}),!!n&&R.createElement(Tb,{onClick:p}))),!Number.isNaN(t)&&R.createElement(_l,{progress:(t||0)*100}))},Tl=zW;var $W=o=>{var r=o,{file:e}=r,t=P(r,["file"]);if(e==null)return null;let n=URL.createObjectURL(e);return R.createElement(Tl,c({url:n},t))},Bb=$W;var jW=o=>{var r=o,{fileId:e}=r,t=P(r,["fileId"]);let n=At(e);if(n==null)return null;let i=(()=>{if(n.status===_0.Transcoded){let{videoUrl:a}=n;return (a==null?void 0:a["1080p"])||(a==null?void 0:a["720p"])||(a==null?void 0:a["480p"])||(a==null?void 0:a["360p"])||(a==null?void 0:a.original)||n.fileUrl}return n.fileUrl})();return R.createElement(Tl,c({url:i,mimeType:tv},t))},Lb=jW;function Qi(e){return "fileId"in e?R.createElement(Lb,c({},e)):"file"in e?R.createElement(Bb,c({},e)):null}var Fb=m(Y).attrs({variant:"secondary",children:R.createElement(jt,null)})`
|
|
1433
1436
|
position: absolute;
|
|
1434
1437
|
top: 0.5em;
|
|
1435
1438
|
right: 0.5em;
|
|
@@ -1529,7 +1532,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1529
1532
|
background: rgba(0, 0, 0, 0.7);
|
|
1530
1533
|
border-radius: 0.25rem;
|
|
1531
1534
|
color: #fff;
|
|
1532
|
-
`,Jb=()=>R.createElement(Gi,null,R.createElement(G2,null,R.createElement($a,null,R.createElement(Ub,null),R.createElement(jb,null,R.createElement(FormattedMessage,{id:"liveStream.idle"}))))),Xb=()=>R.createElement(Gi,null,R.createElement(G2,null,R.createElement($a,null,R.createElement(Zb,null,R.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),R.createElement(Qb,null,R.createElement(FormattedMessage,{id:"liveStream.ended.message"})))));function nq(e){var t,o,r,n;if(e.status==="live")return (o=(t=e.watcherUrl)==null?void 0:t.hls)==null?void 0:o.url;if(e.status==="recorded")return (n=(r=e==null?void 0:e.recordings)==null?void 0:r.find(i=>i.mp4))==null?void 0:n.mp4.url}var qs=({item:e,showPlayIcon:t,showLivestreamRecordedBadge:o,showLivestreamTitle:r})=>{var s;let n=Z2(e==null?void 0:e.data.streamId),i=At(n==null?void 0:n.thumbnailFileId);if(n==null)return null;if(n.status==="idle"||n.isDeleted)return R.createElement(Gb,null);if(n.status==="ended")return R.createElement(Wb,null);let a=(s=n.recordings.find(l=>l.mp4))==null?void 0:s.mp4;return R.createElement(qb,{duration:a==null?void 0:a.duration,fileId:i==null?void 0:i.fileId,overlayElements:R.createElement($b,null,n.status==="live"&&R.createElement(np,null),o&&n.status==="recorded"&&R.createElement(Kb,null),r&&n.title&&R.createElement(Vb,null,n.title)),showPlayIcon:t})},a7=({item:e})=>{var o;let t=Z2((o=e==null?void 0:e.data)==null?void 0:o.streamId);return t==null?null:t.status==="idle"||t.isDeleted?R.createElement(Jb,null):t.status==="ended"?R.createElement(Xb,null):R.createElement(
|
|
1535
|
+
`,Jb=()=>R.createElement(Gi,null,R.createElement(G2,null,R.createElement($a,null,R.createElement(Ub,null),R.createElement(jb,null,R.createElement(FormattedMessage,{id:"liveStream.idle"}))))),Xb=()=>R.createElement(Gi,null,R.createElement(G2,null,R.createElement($a,null,R.createElement(Zb,null,R.createElement(FormattedMessage,{id:"liveStream.ended.caption"})),R.createElement(Qb,null,R.createElement(FormattedMessage,{id:"liveStream.ended.message"})))));function nq(e){var t,o,r,n;if(e.status==="live")return (o=(t=e.watcherUrl)==null?void 0:t.hls)==null?void 0:o.url;if(e.status==="recorded")return (n=(r=e==null?void 0:e.recordings)==null?void 0:r.find(i=>i.mp4))==null?void 0:n.mp4.url}var qs=({item:e,showPlayIcon:t,showLivestreamRecordedBadge:o,showLivestreamTitle:r})=>{var s;let n=Z2(e==null?void 0:e.data.streamId),i=At(n==null?void 0:n.thumbnailFileId);if(n==null)return null;if(n.status==="idle"||n.isDeleted)return R.createElement(Gb,null);if(n.status==="ended")return R.createElement(Wb,null);let a=(s=n.recordings.find(l=>l.mp4))==null?void 0:s.mp4;return R.createElement(qb,{duration:a==null?void 0:a.duration,fileId:i==null?void 0:i.fileId,overlayElements:R.createElement($b,null,n.status==="live"&&R.createElement(np,null),o&&n.status==="recorded"&&R.createElement(Kb,null),r&&n.title&&R.createElement(Vb,null,n.title)),showPlayIcon:t})},a7=({item:e})=>{var o;let t=Z2((o=e==null?void 0:e.data)==null?void 0:o.streamId);return t==null?null:t.status==="idle"||t.isDeleted?R.createElement(Jb,null):t.status==="ended"?R.createElement(Xb,null):R.createElement(Tl,{isLive:t.status==="live",mediaFit:"contain",noBorder:!0,url:nq(t)})};function ti(e){return !!e.skeleton}var ap=(e,t)=>e&&t?e.hasPermission(lr.ManageStoryPermission).community(t):!1;var Rb=e=>e.path.split("/user/")[0];var eI=e=>`${Rb(e)}/membership/${e._id}/+/+`,tI=e=>`${Rb(e)}/membership/+/${e._id}/+`;var sq=({loading:e,loadingMore:t,items:o})=>{let[r,n]=useState(null);return {newItems:useMemo(()=>e?new Array(6).fill({skeleton:!0}):t?[...o||[],...new Array(6).fill({skeleton:!0})]:o,[o,e,t]),index:r,setIndex:n}},lq=({className:e,items:t=[],loading:o=!1,loadingMore:r=!1,showCounter:n=!1,truncate:i=!1,grid:a=!1,renderVideoItem:s,renderImageItem:l,renderLiveStreamItem:d,renderVideoThumbnail:p,renderImageThumbnail:u,renderLiveStreamThumbnail:g})=>{let{newItems:f,index:y,setIndex:v}=sq({loading:o,loadingMore:r,items:t}),C=x=>{switch(x.dataType){case"image":return u?u(x):R.createElement(r7,{item:x});case"video":return p?p(x):R.createElement(Ws,{item:x});case"liveStream":return g?g(x):R.createElement(qs,{item:x});default:return null}};return R.createElement(R.Fragment,null,R.createElement(Oa,{className:e,items:t,truncate:i,grid:a,onClick:x=>{ti(t[x])||v(x);},renderItem:x=>x.skeleton?R.createElement(op,null):C(x)}),y!==null&&R.createElement(pb,{index:y,items:f,showCounter:n,onChange:x=>v(x),renderItem:x=>{switch(x.dataType){case"image":return l?l(x):R.createElement(n7,{item:x});case"video":return s?s(x):R.createElement(i7,{item:x});case"liveStream":return d?d(x):R.createElement(a7,{item:x});default:return null}}}))},Ks=lq;var oI={aac:I2,avi:x4,csv:b4,doc:w4,exe:M4,gif:J1,html:P4,jpg:J1,mov:_4,mp3:T4,mp4:k4,mpeg:s0,ogg:I2,pdf:S4,ppt:l0,pptx:l0,ppx:B4,png:J1,rar:L4,txt:A4,xls:m0,xlsx:m0,zip:D4,audio:I2,image:J1,video:s0},cq={pptx:["openxmlformats-officedocument.presentationml"],xlsx:["openxmlformats-officedocument.spreadsheetml.sheet"]},dq=o=>{var r=o,{file:e}=r,t=P(r,["file"]);let{name:n,type:i}=e,a=i.toLowerCase(),s=Object.entries(cq).find(([,p])=>p.find(u=>a.includes(u))),l=s?s[0]:n.slice(n.lastIndexOf(".")+1),d=l in oI?oI[l]:I4;return R.createElement(d,c({},t))},rI=dq;var nI=m.a`
|
|
1533
1536
|
display: block;
|
|
1534
1537
|
position: relative;
|
|
1535
1538
|
border: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
@@ -1574,7 +1577,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1574
1577
|
z-index: 2;
|
|
1575
1578
|
`,dI=e=>R.createElement(Y,N(c({},e),{variant:"secondary"}),R.createElement(gq,{width:14,height:14})),pI=m.div`
|
|
1576
1579
|
display: flex;
|
|
1577
|
-
`;var hq=({"data-qa-anchor":e="",name:t,url:o,type:r,size:n,progress:i=-1,onRemove:a,isRejected:s,onRetry:l})=>{useIntl();let p=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),u=useCallback(y=>{y.preventDefault(),y.stopPropagation(),l&&l();},[l]),g=r==null?void 0:r.includes("image"),f=i<100;return R.createElement(nI,{href:o,download:!0,"data-qa-anchor":e},R.createElement(iI,null,g&&o?R.createElement(aI,{src:o}):R.createElement(sI,{file:{name:t,type:r},width:null,height:"100%"}),R.createElement(mI,null,t)," ",R.createElement(cI,null,fq(n||0,{base:2})),R.createElement(pI,null,!!s&&R.createElement(lI,{onClick:u}),!!a&&R.createElement(dI,{"data-qa-anchor":"uploaders-file-remove-button",onClick:p,disabled:i!==-1&&f}))),!Number.isNaN(i)&&R.createElement(
|
|
1580
|
+
`;var hq=({"data-qa-anchor":e="",name:t,url:o,type:r,size:n,progress:i=-1,onRemove:a,isRejected:s,onRetry:l})=>{useIntl();let p=useCallback(y=>{y.preventDefault(),y.stopPropagation(),a&&a();},[a]),u=useCallback(y=>{y.preventDefault(),y.stopPropagation(),l&&l();},[l]),g=r==null?void 0:r.includes("image"),f=i<100;return R.createElement(nI,{href:o,download:!0,"data-qa-anchor":e},R.createElement(iI,null,g&&o?R.createElement(aI,{src:o}):R.createElement(sI,{file:{name:t,type:r},width:null,height:"100%"}),R.createElement(mI,null,t)," ",R.createElement(cI,null,fq(n||0,{base:2})),R.createElement(pI,null,!!s&&R.createElement(lI,{onClick:u}),!!a&&R.createElement(dI,{"data-qa-anchor":"uploaders-file-remove-button",onClick:p,disabled:i!==-1&&f}))),!Number.isNaN(i)&&R.createElement(_l,{progress:(i||0)*100}))},sp=hq;var vq=({"data-qa-anchor":e="",file:t,progress:o=-1,onRemove:r,isRejected:n,retry:i=()=>{}})=>{if(t==null)return null;let a=t.type.includes("image")?URL.createObjectURL(t):void 0;return R.createElement(sp,{"data-qa-anchor":e,name:t.name,size:t.size,type:t.type,url:a,progress:o,isRejected:n,onRemove:r,onRetry:()=>i()})},gI=vq;var Iq=({"data-qa-anchor":e="",fileId:t,onRemove:o})=>{let r=At(t);if(!r)return null;let n=FileRepository.fileUrlWithSize(r==null?void 0:r.fileUrl,"small");return R.createElement(sp,{"data-qa-anchor":e,name:r.attributes.name,size:isNaN(Number(r.attributes.size))?0:Number(r.attributes.size),type:r.attributes.mimeType,url:n,onRemove:o})},fI=Iq;function Wi(e){return "fileId"in e?R.createElement(fI,c({},e)):"file"in e?R.createElement(gI,c({},e)):null}var Pq=5,_q=e=>R.createElement(Y,{onClick:e},R.createElement(FormattedMessage,{id:"collapsible.viewAll"})),Tq=({items:e=[],onExpand:t=()=>{},visibleAmount:o=Pq,renderTrigger:r=_q,renderItem:n})=>{let i=o<e.length?e.slice(0,o):e,[a,s]=useState(o>=e.length),l=()=>{s(!0),t();};return a?R.createElement(R.Fragment,null,e.map(d=>n(d))):R.createElement(R.Fragment,null,i.map(d=>n(d)),r(l))},hI=Tq;var Sq=m.div`
|
|
1578
1581
|
display: grid;
|
|
1579
1582
|
grid-template-columns: 100%;
|
|
1580
1583
|
grid-gap: 0.5rem;
|
|
@@ -1746,7 +1749,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1746
1749
|
border-radius: 8px;
|
|
1747
1750
|
`,jI=m.div`
|
|
1748
1751
|
padding: 16px 24px;
|
|
1749
|
-
max-height:
|
|
1752
|
+
max-height: 480px;
|
|
1750
1753
|
overflow-y: scroll;
|
|
1751
1754
|
display: flex;
|
|
1752
1755
|
flex-direction: column;
|
|
@@ -1769,7 +1772,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1769
1772
|
padding: 12px 24px;
|
|
1770
1773
|
margin-left: auto;
|
|
1771
1774
|
border-radius: 100px;
|
|
1772
|
-
`;var mK=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)o([]);else {let n=yield Promise.all(e.map(i=>new Promise(a=>{PostRepository.getPost(i,s=>{a(s.data);});})));o(n);}})}r();},[e]),t},Va=mK;var WI=({postId:e,onSave:t})=>{var w,k;let o=po(e),r=Va(o==null?void 0:o.children),{text:n,markup:i,mentions:a,mentionees:s,metadata:l,clearAll:d,onChange:p,queryMentionees:u}=
|
|
1775
|
+
`;var mK=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)o([]);else {let n=yield Promise.all(e.map(i=>new Promise(a=>{PostRepository.getPost(i,s=>{a(s.data);});})));o(n);}})}r();},[e]),t},Va=mK;var WI=({postId:e,onSave:t})=>{var w,k;let o=po(e),r=Va(o==null?void 0:o.children),{text:n,markup:i,mentions:a,mentionees:s,metadata:l,clearAll:d,onChange:p,queryMentionees:u}=Ml({targetId:o==null?void 0:o.targetId,targetType:o==null?void 0:o.targetType,remoteText:typeof(o==null?void 0:o.data)=="string"?o==null?void 0:o.data:(w=o==null?void 0:o.data)==null?void 0:w.text,remoteMarkup:FC(typeof(o==null?void 0:o.data)=="string"?o==null?void 0:o.data:(k=o==null?void 0:o.data)==null?void 0:k.text,o==null?void 0:o.metadata)}),[g,f]=useState([]),y=useMemo(()=>r.filter(T=>!g.includes(T.postId)),[r,g]),v=T=>{f(L=>[...L,T]);},C=T=>{if(T.dataType==="file"||T.dataType==="image")return {type:T.dataType,fileId:T.data.fileId};if(T.dataType==="video")return {type:T.dataType,fileId:T.data.videoFileId.original}},h=()=>_(void 0,null,function*(){yield PostRepository.updatePost(o.postId,{data:{text:n},mentionees:s,metadata:l,attachments:y.map(C).filter(Fe)}),d(),t();}),x=(n==null?void 0:n.trim())===""&&!y.length,b=useMemo(()=>y.filter(T=>T.dataType==="file"),[y]),M=useMemo(()=>y.filter(T=>T.dataType==="image"),[y]),I=useMemo(()=>y.filter(T=>T.dataType==="video"),[y]);return {text:n,markup:i,mentions:a,post:o,childrenPosts:y,clearAll:d,onChange:p,queryMentionees:u,childVideoPosts:I,childFilePosts:b,childImagePosts:M,handleRemoveChild:v,isEmpty:x,handleSave:h,formattedAttachment:C}};var qi={editorPlaceholder:"Ua",editorParagraph:"Ba",editorContainer:"V",editorRoot:"Da",editorLink:"q",postTextField__mentionInterceptor:"Ha",postTextField__mentionContainerDesktop:"G",postTextField__mentionMenuItem:"La",postTextField__mentionMenu:"J"};var NK=e=>{let[t,o]=useState(null),{community:r,isLoading:n}=Mt({communityId:e}),i=useMemo(()=>!!e&&!n&&!(r!=null&&r.isPublic),[e,n,r]),{members:a,hasMore:s,isLoading:l,loadMore:d}=B0({communityId:e||"",displayName:t||"",limit:10,enabled:i}),{users:p,hasMore:u,loadMore:g,isLoading:f}=cl({displayName:t||"",limit:10,enabled:!i}),y=b=>{o(b);},v=useMemo(()=>e&&n?[]:i?a.map(({user:b,userId:M})=>({userId:(b==null?void 0:b.userId)||M,displayName:b==null?void 0:b.displayName})):p.map(({displayName:b,userId:M})=>({userId:M,displayName:b})),[p,a,i,n]),C=useMemo(()=>i?s:u,[i,s,u]),h=()=>{x||!C||(i?d():g());},x=useMemo(()=>i?l:f,[l,f,i]);return {suggestions:v,queryString:t,onQueryChange:y,loadMore:h,hasMore:C,isLoading:x}},EK=[AutoLinkNode,LinkNode,Vi],Ki=({editorRef:e,onChange:t,communityId:o,mentionContainer:r,dataValue:n,placeholder:i})=>{let[a,s]=useState(null),l=useMedia("(min-width: 768px)"),d=al({namespace:"PostTextField",theme:{link:qi.editorLink,placeholder:qi.editorPlaceholder,paragraph:qi.editorParagraph},nodes:EK}),{onQueryChange:p,suggestions:u,isLoading:g,loadMore:f}=NK(o);ko({onIntersect:()=>{g===!1&&f();},node:a,options:{threshold:.7}});let y=useMedia("(min-width: 768px)"),{refs:v,floatingStyles:C}=useFloating({placement:y?"bottom-start":"bottom",middleware:[offset(({rects:h,placement:x})=>y?x.includes("top")?h.reference.height*1.1:-h.reference.height:0),flip(),shift()],whileElementsMounted:autoUpdate});return R.createElement(R.Fragment,null,R.createElement(LexicalComposer,{initialConfig:c(c({},d),n!=null&&n.data.text?{editorState:JSON.stringify(nl(n))}:{})},R.createElement("div",{className:qi.editorContainer},R.createElement(RichTextPlugin,{contentEditable:R.createElement(ContentEditable,null),placeholder:i?R.createElement("span",{className:qi.editorPlaceholder},i):null,ErrorBoundary:LexicalErrorBoundary}),R.createElement(OnChangePlugin,{onChange:(h,x)=>{t(il(x));}}),e?R.createElement(EditorRefPlugin,{editorRef:e}):null,R.createElement(ClearEditorPlugin,null),R.createElement(HistoryPlugin,null),R.createElement(AutoFocusPlugin,null),R.createElement(ll,null),R.createElement(sl,null),R.createElement(ml,{suggestions:u,getSuggestionId:h=>h.userId,onQueryChange:p,$createNode:h=>Aa({text:`@${(h==null?void 0:h.displayName)||""}`,data:h}),onOpen:h=>{v.setReference({getBoundingClientRect:h.getRect});},onClose:()=>{v.setReference(null);},menuRenderFn:(h,{options:x,selectedIndex:b,setHighlightedIndex:M,selectOptionAndCleanUp:I})=>!r||x.length===0?null:l&&h.current?(v.setReference(h.current),ex.createPortal(R.createElement("div",{ref:w=>v.setFloating(w),className:qi.postTextField__mentionContainerDesktop,style:c({},C)},R.createElement("ul",{className:qi.postTextField__mentionMenuItem},x.map((w,k)=>R.createElement(Ha,{isSelected:b===k,onClick:()=>{M(k),I(w);},onMouseEnter:()=>{M(k);},key:w.key,option:N(c({},w),{setRefElement:T=>{k===x.length-1&&s(T),w.setRefElement(T);}})})))),h.current)):(v.setReference(r),ex.createPortal(R.createElement("div",{ref:w=>v.setFloating(w),className:qi.postTextField__mentionMenu,style:c({},C)},x.map((w,k)=>R.createElement(Ha,{isSelected:b===k,onClick:()=>{M(k),I(w);},onMouseEnter:()=>{M(k);},key:w.key,option:N(c({},w),{setRefElement:T=>{k===x.length-1&&s(T),w.setRefElement(T);}})}))),r)),commandPriority:COMMAND_PRIORITY_HIGH}))))};var FK=({postId:e,placeholder:t="What's going on...",className:o,onSave:r,onChangeText:n,hasChanged:i=!1})=>{var U,j,E,V,G;let{post:a,markup:s,onChange:l,childVideoPosts:d,childFilePosts:p,childImagePosts:u,childrenPosts:g,handleRemoveChild:f,isEmpty:y,handleSave:v,formattedAttachment:C}=WI({postId:e,onSave:r}),h=useRef(null),[x,b]=useState(null),M=useRef(null),[I,w]=useState(!1),[k,T]=useState({text:(j=(U=a==null?void 0:a.data)==null?void 0:U.text)!=null?j:"",mentioned:((E=a==null?void 0:a.metadata)==null?void 0:E.mentioned)||[],mentionees:a==null?void 0:a.mentionees}),L=useCallback(()=>_(void 0,null,function*(){var O,H;w(!0);let q={data:{text:k.text},metadata:{mentioned:(O=k.mentioned)!=null?O:[]},mentionees:(H=k.mentionees)!=null?H:[],attachments:g.map(z=>C(z)).filter(Fe)};yield PostRepository.updatePost(a.postId,q),w(!1),r();}),[k,p]),D=q=>{n(),T(O=>N(c({},O),{mentioned:q.mentioned,text:q.text,mentionees:q.mentionees}));};return useEffect(()=>{let q=new ResizeObserver(O=>{for(let H of O)H.target===h.current&&b(H.contentRect.height);});return h.current&&q.observe(h.current),()=>{h.current&&q.unobserve(h.current);}},[u,d,p]),a==null?null:R.createElement(VI,{className:o},R.createElement(jI,{ref:h},R.createElement(Ki,{communityId:a.targetType==="community"?a.targetId:void 0,onChange:D,mentionContainer:M.current,dataValue:{data:{text:(V=a==null?void 0:a.data)==null?void 0:V.text},metadata:{mentioned:((G=a==null?void 0:a.metadata)==null?void 0:G.mentioned)||[]},mentionees:a==null?void 0:a.mentionees}}),g?R.createElement("div",null,u.length>0&&R.createElement(cp,{data:u,dataType:"image",onRemoveChild:f}),d.length>0&&R.createElement(cp,{data:d,dataType:"video",onRemoveChild:f}),p.length>0&&R.createElement(cp,{data:p,dataType:"file",onRemoveChild:f})):null),R.createElement(GI,{ref:M,contentContainerHeight:x}),R.createElement(ZI,null,R.createElement(QI,{"data-qa-anchor":"post-editor-save-button",disabled:y||!i||I,onClick:L},R.createElement(FormattedMessage,{id:"save"}))))},YI=memo(FK);var RI=m.div`
|
|
1773
1776
|
display: flex;
|
|
1774
1777
|
align-items: center;
|
|
1775
1778
|
width: 100%;
|
|
@@ -1860,7 +1863,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1860
1863
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
1861
1864
|
padding: 4px;
|
|
1862
1865
|
display: inline-block;
|
|
1863
|
-
`,oJ=({text:e,postMaxLines:t=8,mentionees:o})=>{let r=useMemo(()=>F0(e||"",I0(o)),[o,e]),n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1);useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:g}=n.current;l(u>g);}},[e,t]);let d=()=>a(!0),p=e?R.createElement(eJ,{ref:n,isExpanded:i,postMaxLines:t,"data-qa-anchor":"post-text-content"},r.map(u=>{let g=`${e}-${u.start}-${u.end}`,f=e.substring(u.start,u.end);if(u.highlight){let y=o==null?void 0:o.find(v=>v.index===u.start);return y?R.createElement(H0,{key:g,mentionee:y},f):R.createElement("span",{key:g},f)}return R.createElement(
|
|
1866
|
+
`,oJ=({text:e,postMaxLines:t=8,mentionees:o})=>{let r=useMemo(()=>F0(e||"",I0(o)),[o,e]),n=useRef(null),[i,a]=useState(!1),[s,l]=useState(!1);useEffect(()=>{if(n.current){let{scrollHeight:u,clientHeight:g}=n.current;l(u>g);}},[e,t]);let d=()=>a(!0),p=e?R.createElement(eJ,{ref:n,isExpanded:i,postMaxLines:t,"data-qa-anchor":"post-text-content"},r.map(u=>{let g=`${e}-${u.start}-${u.end}`,f=e.substring(u.start,u.end);if(u.highlight){let y=o==null?void 0:o.find(v=>v.index===u.start);return y?R.createElement(H0,{key:g,mentionee:y},f):R.createElement("span",{key:g},f)}return R.createElement(ul,{key:g},f)})):null;return p?R.createElement(R.Fragment,null,p,!i&&s&&R.createElement(tJ,{onClick:d},"..."," ",R.createElement(yw,null,R.createElement(FormattedMessage,{id:"post.readMore"})))):null},up=e=>{let t=W("UITextContent");return t?t(e):R.createElement(oJ,c({},e))};var nJ=({fileId:e})=>R.createElement(Dt,{fileId:e}),Cw=nJ;var aJ=({videoFileId:e})=>{let t=e.high||e.medium||e.low;return R.createElement(Qi,{fileId:t})},vw=aJ;var lJ=({fileId:e})=>R.createElement(Wi,{fileId:e}),xw=lJ;var mJ=m.div`
|
|
1864
1867
|
margin-bottom: 0.75rem;
|
|
1865
1868
|
|
|
1866
1869
|
> :not(:first-child) {
|
|
@@ -1900,11 +1903,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1900
1903
|
margin-left: 12px;
|
|
1901
1904
|
}
|
|
1902
1905
|
}
|
|
1903
|
-
`,Tw=()=>R.createElement(R.Fragment,null,R.createElement("div",null,R.createElement(Me,{style:{fontSize:8,maxWidth:374}})),R.createElement("div",null,R.createElement(Me,{style:{fontSize:8,maxWidth:448}})),R.createElement("div",{style:{paddingBottom:50}},R.createElement(Me,{style:{fontSize:8,maxWidth:279}})));var CJ=e=>{let[t,o]=useState(!1),{currentUserId:r}=J(),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 d=()=>_(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.flagPost(n);}catch(g){o(!1);}finally{l();}}),p=()=>_(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.unflagPost(n);}catch(g){o(!0);}finally{l();}});return {isLoading:s,isFlaggedByMe:t,isUnableToFlag:i,flagPost:d,unflagPost:p,toggleFlagPost:()=>_(void 0,null,function*(){n==null||i||(t?p():d());})}},kw=CJ;var bJ=8,IJ=3,wJ="Post has been reviewed",MJ=({childrenPosts:e=[],handleDeletePost:t,handleReportPost:o,handleUnreportPost:r,handleClosePoll:n,isPollClosed:i,post:a,onEditPostClick:s,onClose:l,buttonContainerHeight:d})=>{let{formatMessage:p}=useIntl(),{info:u,confirm:g}=_e(),f=we(),{isFlaggedByMe:y,toggleFlagPost:v}=kw(a),C=a==null?void 0:a.targetId,h=_t(C),x=useRef(null),{currentPosition:b,align:M,scrollableHeight:I}=$0({dropdownRef:x,buttonContainerHeight:d,position:_n,align:
|
|
1906
|
+
`,Tw=()=>R.createElement(R.Fragment,null,R.createElement("div",null,R.createElement(Me,{style:{fontSize:8,maxWidth:374}})),R.createElement("div",null,R.createElement(Me,{style:{fontSize:8,maxWidth:448}})),R.createElement("div",{style:{paddingBottom:50}},R.createElement(Me,{style:{fontSize:8,maxWidth:279}})));var CJ=e=>{let[t,o]=useState(!1),{currentUserId:r}=J(),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 d=()=>_(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.flagPost(n);}catch(g){o(!1);}finally{l();}}),p=()=>_(void 0,null,function*(){if(!(n==null||i))try{yield PostRepository.unflagPost(n);}catch(g){o(!0);}finally{l();}});return {isLoading:s,isFlaggedByMe:t,isUnableToFlag:i,flagPost:d,unflagPost:p,toggleFlagPost:()=>_(void 0,null,function*(){n==null||i||(t?p():d());})}},kw=CJ;var bJ=8,IJ=3,wJ="Post has been reviewed",MJ=({childrenPosts:e=[],handleDeletePost:t,handleReportPost:o,handleUnreportPost:r,handleClosePoll:n,isPollClosed:i,post:a,onEditPostClick:s,onClose:l,buttonContainerHeight:d})=>{let{formatMessage:p}=useIntl(),{info:u,confirm:g}=_e(),f=we(),{isFlaggedByMe:y,toggleFlagPost:v}=kw(a),C=a==null?void 0:a.targetId,h=_t(C),x=useRef(null),{currentPosition:b,align:M,scrollableHeight:I}=$0({dropdownRef:x,buttonContainerHeight:d,position:_n,align:gl}),{canEdit:w,canReview:k,canDelete:T,canReport:L,isPostUnderReview:D}=Ys({community:h,post:a,childrenPosts:e}),U=e.find(q=>q.dataType==="poll"),j=()=>_(void 0,null,function*(){v(),yield o==null?void 0:o(),f.success({content:R.createElement(FormattedMessage,{id:"report.reportSent"})});}),E=()=>_(void 0,null,function*(){v(),yield r==null?void 0:r(),f.success({content:R.createElement(FormattedMessage,{id:"report.unreportSent"})});}),V=()=>{g({title:p({id:"post.deletePost"}),content:p({id:D?"post.confirmPendingDelete":"post.confirmDelete"}),okText:p({id:"delete"}),onOk:()=>t==null?void 0:t(a==null?void 0:a.postId)});},G=[w?{name:Il()?p({id:"post.editPostMobile"}):p({id:"post.editPost"}),action:()=>s()}:null,T?{name:Il()?p({id:"post.deletePostMobile"}):p({id:"post.deletePost"}),action:V}:null,L?{name:p(y?{id:"report.undoReport"}:{id:"report.doReport"}),action:y?E:j}:null,U&&!i?{name:p({id:"poll.close"}),action:n}:null].filter(Fe);return R.createElement(Mw,{ref:x},R.createElement(yl,null,R.createElement(hl,{position:b,align:M,scrollableHeight:I},G.map(({name:q,action:O})=>R.createElement(bl,{key:q,"data-qa-anchor":`post-options-button-${q}`,onClick:()=>{O==null||O(),l();}},q)))))},PJ=m.div`
|
|
1904
1907
|
padding-bottom: 8px;
|
|
1905
1908
|
`,_J=m.div`
|
|
1906
1909
|
padding-top: 8px;
|
|
1907
|
-
`,TJ=e=>{var Ze,ct,$t,Vt;let{childrenPosts:t=[],className:o,handleApprovePost:r,handleDeclinePost:n,hidePostTarget:i,readonly:a,post:s,loading:l}=e,{formatMessage:d}=useIntl(),[p,u]=useState(!1),g=()=>u(!0),f=()=>u(!1),{info:y,confirm:v}=_e(),C=we(),[h,x]=useState(!1),[b,M]=
|
|
1910
|
+
`,TJ=e=>{var Ze,ct,$t,Vt;let{childrenPosts:t=[],className:o,handleApprovePost:r,handleDeclinePost:n,hidePostTarget:i,readonly:a,post:s,loading:l}=e,{formatMessage:d}=useIntl(),[p,u]=useState(!1),g=()=>u(!0),f=()=>u(!1),{info:y,confirm:v}=_e(),C=we(),[h,x]=useState(!1),[b,M]=fl(),[I,w]=useState(!1),[k,T]=useState(!1),[L,D]=useState(!1),U=()=>x(ye=>!ye);useEffect(()=>(h?document.addEventListener("click",U):document.removeEventListener("click",U),()=>{document.removeEventListener("click",U);}),[h]);function j(ye){if(ye instanceof Error)if(ye.message.includes(wJ))y({title:R.createElement(FormattedMessage,{id:"post.error.cannotReview.title"}),content:R.createElement(FormattedMessage,{id:"post.error.cannotReview.description"})});else throw ye}let E=s==null?void 0:s.targetId,V=_t(E),{isAnonymousUser:G,isNoNicknameUser:q}=Be(),{openNicknameModal:O}=_o(),{triggerAnonymousNeedsLogin:H}=dr(),{canReview:z,isPostUnderReview:Z}=Ys({community:V,post:s,childrenPosts:t}),Q=()=>_(void 0,null,function*(){try{w(!0),yield r==null?void 0:r(),C.success({content:R.createElement(FormattedMessage,{id:"post.success.approved"})});}catch(ye){j(ye);}finally{w(!1);}}),B=()=>_(void 0,null,function*(){try{T(!0),yield n==null?void 0:n(),C.success({content:R.createElement(FormattedMessage,{id:"post.success.declined"})});}catch(ye){j(ye);}finally{T(!1);}}),$=t.length>0,ne=$?IJ:bJ,re=t.find(ye=>ye.dataType==="liveStream"),fe=()=>{L?v({title:R.createElement(FormattedMessage,{id:"post.editDiscard.title"}),content:R.createElement(FormattedMessage,{id:"post.editDiscard.content"}),okText:R.createElement(FormattedMessage,{id:"general.action.discard"}),cancelText:R.createElement(FormattedMessage,{id:"post.editDiscard.cancel"}),onOk:()=>{u(!1);}}):u(!1);},pe=()=>D(!0);return R.createElement("div",{style:{marginTop:8}},R.createElement(J2,{"data-qa-anchor":"post",className:o},R.createElement(Pw,null,R.createElement(fw,{postId:s==null?void 0:s.postId,hidePostTarget:i,loading:l}),!l&&R.createElement(ww,null,R.createElement("div",{ref:b},R.createElement(xl,{onClick:ye=>{ye.stopPropagation(),q?O():G?H():U();},className:o},R.createElement(vl,null))),h&&R.createElement(MJ,N(c({},e),{onApprove:Q,onDecline:B,onClose:U,onEditPostClick:()=>g(),buttonContainerHeight:M})))),l?R.createElement(Tw,null):R.createElement(R.Fragment,null,(Ze=s==null?void 0:s.data)!=null&&Ze.text?R.createElement(PJ,null,R.createElement(Iw,{data:(ct=re==null?void 0:re.data)!=null?ct:s==null?void 0:s.data,dataType:($t=re==null?void 0:re.dataType)!=null?$t:s==null?void 0:s.dataType,postMaxLines:ne,mentionees:(Vt=s==null?void 0:s.metadata)==null?void 0:Vt.mentioned})):null,$&&R.createElement(_J,null,R.createElement(LI,{contents:t})),!Z&&R.createElement(W6,{readonly:a,postId:s==null?void 0:s.postId}),Z&&z&&R.createElement(_w,{"data-qa-anchor":"post-review"},R.createElement(he,{"data-qa-anchor":"post-review-accept-button",disabled:I||k,onClick:Q},R.createElement(FormattedMessage,{id:"general.action.accept"})),R.createElement(Y,{"data-qa-anchor":"post-review-decline-button",disabled:I||k,onClick:B},R.createElement(FormattedMessage,{id:"general.action.decline"}))),p&&R.createElement(ro,{"data-qa-anchor":"post-editor-modal",title:d({id:"post.editPost"}),onCancel:()=>fe()},R.createElement(YI,{postId:s==null?void 0:s.postId,onSave:f,onChangeText:pe,hasChanged:L})))))},fr=R.memo(TJ);var Nw=m.div`
|
|
1908
1911
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
1909
1912
|
display: flex;
|
|
1910
1913
|
align-items: center;
|
|
@@ -1920,7 +1923,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1920
1923
|
color: #6e6e6e;
|
|
1921
1924
|
`,Ew=m.div`
|
|
1922
1925
|
${({theme:e})=>e.typography.body}
|
|
1923
|
-
`;var kJ=({className:e,icon:t,title:o,description:r,children:n})=>R.createElement(Nw,{className:e},t,R.createElement(gp,null,o),r&&R.createElement(Ew,null,r),n),ni=kJ;var SJ=()=>R.createElement(J2,null,R.createElement(ni,{title:R.createElement(FormattedMessage,{id:"post.unknownPost.title"}),icon:R.createElement(c4,null)},R.createElement(FormattedMessage,{id:"post.unknownPost.description"}))),Lw=SJ;var fp={[PostContentType.FILE]:e=>R.createElement(fr,c({},e)),[PostContentType.IMAGE]:e=>R.createElement(fr,c({},e)),[PostContentType.LIVESTREAM]:e=>R.createElement(fr,c({},e)),[PostContentType.POLL]:e=>R.createElement(fr,c({},e)),[PostContentType.TEXT]:e=>R.createElement(fr,c({},e)),[PostContentType.VIDEO]:e=>R.createElement(fr,c({},e))},Dw=createContext(fp),Hw=e=>{let t=useContext(Dw);return useMemo(()=>e==null?o=>null:t[e]||fp[e]||(o=>R.createElement(Lw,null)),[e])};function g7({children:e,config:t}){let o=useMemo(()=>t==null?fp:c(c({},fp),t),[t]);return R.createElement(Dw.Provider,{value:o},e)}var BJ=i=>{var a=i,{"data-qa-anchor":e="",renderer:t,label:o,className:r}=a,n=P(a,["data-qa-anchor","renderer","label","className"]);return R.createElement(kI,{"data-qa-anchor":`${e}-label`},R.createElement(SI,N(c({},n),{"data-qa-anchor":`${e}-radio`})),R.createElement(R.Fragment,null,t?t():R.createElement("span",{className:r},o),R.createElement(lp,{checked:n.value})))},
|
|
1926
|
+
`;var kJ=({className:e,icon:t,title:o,description:r,children:n})=>R.createElement(Nw,{className:e},t,R.createElement(gp,null,o),r&&R.createElement(Ew,null,r),n),ni=kJ;var SJ=()=>R.createElement(J2,null,R.createElement(ni,{title:R.createElement(FormattedMessage,{id:"post.unknownPost.title"}),icon:R.createElement(c4,null)},R.createElement(FormattedMessage,{id:"post.unknownPost.description"}))),Lw=SJ;var fp={[PostContentType.FILE]:e=>R.createElement(fr,c({},e)),[PostContentType.IMAGE]:e=>R.createElement(fr,c({},e)),[PostContentType.LIVESTREAM]:e=>R.createElement(fr,c({},e)),[PostContentType.POLL]:e=>R.createElement(fr,c({},e)),[PostContentType.TEXT]:e=>R.createElement(fr,c({},e)),[PostContentType.VIDEO]:e=>R.createElement(fr,c({},e))},Dw=createContext(fp),Hw=e=>{let t=useContext(Dw);return useMemo(()=>e==null?o=>null:t[e]||fp[e]||(o=>R.createElement(Lw,null)),[e])};function g7({children:e,config:t}){let o=useMemo(()=>t==null?fp:c(c({},fp),t),[t]);return R.createElement(Dw.Provider,{value:o},e)}var BJ=i=>{var a=i,{"data-qa-anchor":e="",renderer:t,label:o,className:r}=a,n=P(a,["data-qa-anchor","renderer","label","className"]);return R.createElement(kI,{"data-qa-anchor":`${e}-label`},R.createElement(SI,N(c({},n),{"data-qa-anchor":`${e}-radio`})),R.createElement(R.Fragment,null,t?t():R.createElement("span",{className:r},o),R.createElement(lp,{checked:n.value})))},Ll=BJ;var AJ=1073741824,DJ=1,HJ=m.label`
|
|
1924
1927
|
cursor: pointer;
|
|
1925
1928
|
transition: background 0.1s;
|
|
1926
1929
|
border-radius: 50%;
|
|
@@ -1949,7 +1952,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
1949
1952
|
&&& {
|
|
1950
1953
|
display: none;
|
|
1951
1954
|
}
|
|
1952
|
-
`,OJ=({className:e="","data-qa-anchor":t="",mimeType:o,multiple:r,disabled:n,onChange:i,onMaxFilesLimit:a,onFileSizeLimit:s,fileLimitRemaining:l=0,children:d,fileInputRef:p})=>{let[u]=useState(`_${(Date.now()*Math.random()).toString(36)}`),[g,f]=useState(!1),y=useCallback(w=>w.slice(0,r?l:DJ),[l,r]),v=w=>w.some(k=>k.size>AJ),C=useCallback(w=>(l||0)<w.length,[l]),h=useCallback(w=>{w.preventDefault(),w.stopPropagation(),!n&&(w.dataTransfer.setData(o,u),f(!0));},[n,o,u]),x=useCallback(w=>{w.preventDefault(),w.stopPropagation(),!n&&f(!1);},[n]),b=useCallback(w=>{if(w.preventDefault(),w.stopPropagation(),n)return;let k=w.target.files?[...w.target.files]:[],T=v(k),L=C(k),D=y(k);T?s==null||s():D.length&&(i==null||i(D)),L&&(a==null||a()),p!=null&&p.current&&(w.target.value="");},[C,n,y,i,s,a]),M=useCallback(w=>{if(w.preventDefault(),w.stopPropagation(),n)return;let k=(o||"").split(",").map(D=>D.replace("*",".*")).map(D=>new RegExp(D)),T=Array.from(w.dataTransfer.files).filter(D=>k.some(U=>U.test(D.type))),L=y(T);L.length&&(i==null||i(L)),f(!1);},[n,y,o,i]),I=w=>{};return R.createElement(HJ,{"data-qa-anchor":`${t}`,id:u,className:sr(e,{hover:g,disabled:n}),onDragEnter:h,onDragOver:h,onDragLeave:x,onDrop:M},R.createElement(FJ,{accept:o,multiple:r,disabled:n,onChange:b,onClick:I,ref:p}),d)},yp=OJ;var Uw=e=>R.createElement("svg",c({width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M20 5.125V16.375C20 17.4297 19.1406 18.25 18.125 18.25H1.875C0.820312 18.25 0 17.4297 0 16.375V5.125C0 4.10938 0.820312 3.25 1.875 3.25H5.3125L5.78125 2C6.05469 1.25781 6.75781 0.75 7.53906 0.75H12.4219C13.2031 0.75 13.9062 1.25781 14.1797 2L14.6875 3.25H18.125C19.1406 3.25 20 4.10938 20 5.125ZM14.6875 10.75C14.6875 8.17188 12.5781 6.0625 10 6.0625C7.38281 6.0625 5.3125 8.17188 5.3125 10.75C5.3125 13.3672 7.38281 15.4375 10 15.4375C12.5781 15.4375 14.6875 13.3672 14.6875 10.75ZM13.4375 10.75C13.4375 12.6641 11.875 14.1875 10 14.1875C8.08594 14.1875 6.5625 12.6641 6.5625 10.75C6.5625 8.875 8.08594 7.3125 10 7.3125C11.875 7.3125 13.4375 8.875 13.4375 10.75Z",fill:"white"}));var $J=.999;function
|
|
1955
|
+
`,OJ=({className:e="","data-qa-anchor":t="",mimeType:o,multiple:r,disabled:n,onChange:i,onMaxFilesLimit:a,onFileSizeLimit:s,fileLimitRemaining:l=0,children:d,fileInputRef:p})=>{let[u]=useState(`_${(Date.now()*Math.random()).toString(36)}`),[g,f]=useState(!1),y=useCallback(w=>w.slice(0,r?l:DJ),[l,r]),v=w=>w.some(k=>k.size>AJ),C=useCallback(w=>(l||0)<w.length,[l]),h=useCallback(w=>{w.preventDefault(),w.stopPropagation(),!n&&(w.dataTransfer.setData(o,u),f(!0));},[n,o,u]),x=useCallback(w=>{w.preventDefault(),w.stopPropagation(),!n&&f(!1);},[n]),b=useCallback(w=>{if(w.preventDefault(),w.stopPropagation(),n)return;let k=w.target.files?[...w.target.files]:[],T=v(k),L=C(k),D=y(k);T?s==null||s():D.length&&(i==null||i(D)),L&&(a==null||a()),p!=null&&p.current&&(w.target.value="");},[C,n,y,i,s,a]),M=useCallback(w=>{if(w.preventDefault(),w.stopPropagation(),n)return;let k=(o||"").split(",").map(D=>D.replace("*",".*")).map(D=>new RegExp(D)),T=Array.from(w.dataTransfer.files).filter(D=>k.some(U=>U.test(D.type))),L=y(T);L.length&&(i==null||i(L)),f(!1);},[n,y,o,i]),I=w=>{};return R.createElement(HJ,{"data-qa-anchor":`${t}`,id:u,className:sr(e,{hover:g,disabled:n}),onDragEnter:h,onDragOver:h,onDragLeave:x,onDrop:M},R.createElement(FJ,{accept:o,multiple:r,disabled:n,onChange:b,onClick:I,ref:p}),d)},yp=OJ;var Uw=e=>R.createElement("svg",c({width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M20 5.125V16.375C20 17.4297 19.1406 18.25 18.125 18.25H1.875C0.820312 18.25 0 17.4297 0 16.375V5.125C0 4.10938 0.820312 3.25 1.875 3.25H5.3125L5.78125 2C6.05469 1.25781 6.75781 0.75 7.53906 0.75H12.4219C13.2031 0.75 13.9062 1.25781 14.1797 2L14.6875 3.25H18.125C19.1406 3.25 20 4.10938 20 5.125ZM14.6875 10.75C14.6875 8.17188 12.5781 6.0625 10 6.0625C7.38281 6.0625 5.3125 8.17188 5.3125 10.75C5.3125 13.3672 7.38281 15.4375 10 15.4375C12.5781 15.4375 14.6875 13.3672 14.6875 10.75ZM13.4375 10.75C13.4375 12.6641 11.875 14.1875 10 14.1875C8.08594 14.1875 6.5625 12.6641 6.5625 10.75C6.5625 8.875 8.08594 7.3125 10 7.3125C11.875 7.3125 13.4375 8.875 13.4375 10.75Z",fill:"white"}));var $J=.999;function Dl(e){return e.fileId!==void 0}var y7=e=>Dl(e)?e.updatedAt?new Date(e.updatedAt).getTime():Date.now():e.lastModified;function R2({files:e=[],uploadedFiles:t=[],onChange:o=a=>{},onLoadingChange:r=a=>{},onError:n=a=>{},fileInputRef:i=useRef(null)}){let[a,s]=useState({}),[l,d]=useState([]),p=useMemo(()=>Array.isArray(e)?e:Array.from(e),[e]);useEffect(()=>{s(p.reduce((C,h)=>N(c({},C),{[h.name]:0}),{}));},[p]);let u=useCallback((C,h)=>{let x=h<=$J?h:1;s(b=>N(c({},b),{[C.name]:x}));},[]),g=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),f=useCallback(()=>{d([]);},[]),y=useCallback(C=>{if(Dl(C)){let h=t.filter(x=>x.fileId!==C.fileId);o({uploaded:h,uploading:p});}else {let h=p.filter(x=>x.name!==C.name);o({uploaded:t,uploading:h});}i.current&&(i.current.value="");},[o]);return useEffect(()=>{if(!p.length)return;function C(){return _(this,null,function*(){r(!0);try{let h=yield Promise.all(p.map(b=>_(this,null,function*(){let M=new FormData;M.append("files",b);let I=yield _(this,null,function*(){return b.type.includes(FileType.VIDEO)?FileRepository.createVideo(M,void 0,w=>{u(b,w);}):b.type.includes(FileType.IMAGE)?FileRepository.createImage(M,w=>{u(b,w);}):FileRepository.createFile(M,w=>{u(b,w);})});return I.data.length>0?I.data[0]:null})));s({});let x=[...t,...h].filter(Fe);o({uploaded:x,uploading:[]}),d([]);}catch(h){d(p.map(x=>x.name)),n("Something went wrong. Please try uploading again.");}finally{r(!1);}})}C();},[p]),{allFiles:[...t,...p],uploading:p,uploaded:t,progress:a,removeFile:y,reset:g,rejected:l,retry:f}}function VJ(e){return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Avatar"},R.createElement("rect",{id:"Rectangle 67",width:"32",height:"32",rx:"16",fill:"#F26B1C"}),R.createElement("g",{id:"Vector"},R.createElement("path",{d:"M18.5004 10.505C17.9079 9.92561 17.1044 9.6001 16.2666 9.6001C15.4288 9.6001 14.6253 9.92561 14.0329 10.505C13.4405 11.0845 13.1077 11.8703 13.1077 12.6898C13.1077 13.5092 13.4405 14.295 14.0329 14.8745C14.6253 15.4539 15.4288 15.7794 16.2666 15.7794C17.1044 15.7794 17.9079 15.4539 18.5004 14.8745C19.0928 14.295 19.4256 13.5092 19.4256 12.6898C19.4256 11.8703 19.0928 11.0845 18.5004 10.505Z",fill:"white"}),R.createElement("path",{d:"M16.2666 17.5449C13.0264 17.5449 10.4 19.028 10.4 20.8553V22.4001H22.1333V20.8553C22.1333 19.028 19.5068 17.5449 16.2666 17.5449Z",fill:"white"}))))}var Gw=VJ;var Qw=m(Uw).attrs({height:20,width:20})`
|
|
1953
1956
|
z-index: 3;
|
|
1954
1957
|
fill: #fff;
|
|
1955
1958
|
`,ZJ=m.div`
|
|
@@ -2012,7 +2015,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2012
2015
|
`,XJ=m(Gw)`
|
|
2013
2016
|
width: 100%;
|
|
2014
2017
|
height: 100%;
|
|
2015
|
-
`,YJ=({uploading:e,uploaded:t,progress:o})=>{let r=[...e,...t].sort((a,s)=>{let l=y7(a);return y7(s)-l}),n=r.length>0?r[0]:null;if(!n)return null;if(!
|
|
2018
|
+
`,YJ=({uploading:e,uploaded:t,progress:o})=>{let r=[...e,...t].sort((a,s)=>{let l=y7(a);return y7(s)-l}),n=r.length>0?r[0]:null;if(!n)return null;if(!Dl(n))return R.createElement(Dt,{key:n==null?void 0:n.name,file:n,progress:o[n==null?void 0:n.name]});let{fileId:i}=n;return R.createElement(Dt,{key:i,fileId:i})},RJ=({"data-qa-anchor":e="",onChange:t,value:o,mimeType:r,isShowUploadImagePlaceholder:n=!1})=>{let[i,a]=useState([]),[s,l]=useState([]),d=At(o),p=v=>{if(v.length>0){let C=v[v.length-1];C!=null&&C.fileId&&t(C.fileId);}},u=useMemo(()=>d&&FileRepository.fileUrlWithSize(d==null?void 0:d.fileUrl,"medium"),[d]),{uploading:g,uploaded:f,progress:y}=R2({files:i,uploadedFiles:s,onChange:({uploaded:v,uploading:C})=>{p(v),l(v),a(C);}});return R.createElement(ZJ,null,R.createElement(YJ,{uploading:g,uploaded:f,progress:y}),!u&&!n?R.createElement(XJ,null):R.createElement(qJ,{src:u!=null?u:""}),R.createElement(WJ,{"data-qa-anchor":`${e}-avatar-uploader`,mimeType:r,onChange:v=>a(v)},R.createElement(QJ,null,n?R.createElement(KJ,null,R.createElement(Qw,null)," ",R.createElement(JJ,null,"Upload Image")):R.createElement(Qw,null))))},Ga=RJ;var Ww=m.div`
|
|
2016
2019
|
border-radius: 4px;
|
|
2017
2020
|
border: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
2018
2021
|
`,jo=m.div`
|
|
@@ -2051,7 +2054,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2051
2054
|
> * {
|
|
2052
2055
|
margin: 0 3px;
|
|
2053
2056
|
}
|
|
2054
|
-
`;var oX=({value:e})=>R.createElement("div",null,e),rX=r=>{var n=r,{placeholder:e,selected:t}=n,o=P(n,["placeholder","selected"]);return R.createElement(qw,c({},o),t&&t.length?R.createElement(Kw,null,t.map(({name:i,value:a})=>R.createElement("span",{key:a},i))):R.createElement("div",null,e),R.createElement(Mn,{height:14,width:14}))},nX=({value:e=[],onSelect:t=()=>{},options:o=[],multiple:r,disabled:n,parentContainer:i=null,renderItem:a=oX,renderTrigger:s=rX,isOpen:l,handleClose:d,placeholder:p="Select...",className:u="","data-qa-anchor":g=""})=>{let[f,y]=useState(l),[v,C]=useState(e),h=()=>y(!f),x=()=>d?d():y(!1),b=(w,k)=>{C(T=>{let L=T.filter(D=>D.value!==w.value);return k&&k(L.map(D=>D.value)),L});};gr("Escape",x),useEffect(()=>{y(l);},[l]);let M=w=>{if(t(w),r){let k=v.findIndex(T=>T.value===w.value);k>=0?b(v[k]):C([...v,w]);}else C([w]),x();},I=w=>{w.preventDefault(),h();};return R.createElement(V0,{"data-qa-anchor":`${g}-select-dropdown`,isOpen:l||f,renderTrigger:w=>s(N(c({},w),{onClick:I,selected:v,remove:b,placeholder:p})),handleClose:x,fullSized:!0,scrollable:!0,parentContainer:i,disabled:n,className:u},o&&o.length>0&&R.createElement(ii,null,o.map(w=>R.createElement(jo,{key:w.value,"data-qa-anchor":`${g}-select-menu-item`,active:v.find(k=>k.value===w.value)!=null,onClick:()=>M(w)},a(w)))))},ai=memo(nX);var sX=e=>{let[t,o]=useState(null);return useEffect(()=>{function r(){return _(this,null,function*(){if(e==null)return;let n=CategoryRepository.getCategory.locally(e);if(n!=null&&n.data){o(n.data);return}let i=yield CategoryRepository.getCategory(e);o(i.data);})}r();},[e]),t},
|
|
2057
|
+
`;var oX=({value:e})=>R.createElement("div",null,e),rX=r=>{var n=r,{placeholder:e,selected:t}=n,o=P(n,["placeholder","selected"]);return R.createElement(qw,c({},o),t&&t.length?R.createElement(Kw,null,t.map(({name:i,value:a})=>R.createElement("span",{key:a},i))):R.createElement("div",null,e),R.createElement(Mn,{height:14,width:14}))},nX=({value:e=[],onSelect:t=()=>{},options:o=[],multiple:r,disabled:n,parentContainer:i=null,renderItem:a=oX,renderTrigger:s=rX,isOpen:l,handleClose:d,placeholder:p="Select...",className:u="","data-qa-anchor":g=""})=>{let[f,y]=useState(l),[v,C]=useState(e),h=()=>y(!f),x=()=>d?d():y(!1),b=(w,k)=>{C(T=>{let L=T.filter(D=>D.value!==w.value);return k&&k(L.map(D=>D.value)),L});};gr("Escape",x),useEffect(()=>{y(l);},[l]);let M=w=>{if(t(w),r){let k=v.findIndex(T=>T.value===w.value);k>=0?b(v[k]):C([...v,w]);}else C([w]),x();},I=w=>{w.preventDefault(),h();};return R.createElement(V0,{"data-qa-anchor":`${g}-select-dropdown`,isOpen:l||f,renderTrigger:w=>s(N(c({},w),{onClick:I,selected:v,remove:b,placeholder:p})),handleClose:x,fullSized:!0,scrollable:!0,parentContainer:i,disabled:n,className:u},o&&o.length>0&&R.createElement(ii,null,o.map(w=>R.createElement(jo,{key:w.value,"data-qa-anchor":`${g}-select-menu-item`,active:v.find(k=>k.value===w.value)!=null,onClick:()=>M(w)},a(w)))))},ai=memo(nX);var sX=e=>{let[t,o]=useState(null);return useEffect(()=>{function r(){return _(this,null,function*(){if(e==null)return;let n=CategoryRepository.getCategory.locally(e);if(n!=null&&n.data){o(n.data);return}let i=yield CategoryRepository.getCategory(e);o(i.data);})}r();},[e]),t},Fl=sX;var Yw=m.div`
|
|
2055
2058
|
display: grid;
|
|
2056
2059
|
grid-template-areas: 'avatar title' 'avatar subtitle';
|
|
2057
2060
|
grid-template-columns: min-content auto;
|
|
@@ -2082,7 +2085,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2082
2085
|
`,tM=m.div`
|
|
2083
2086
|
grid-area: subtitle;
|
|
2084
2087
|
${({theme:e})=>e.typography.body}
|
|
2085
|
-
`;var lX=({className:e,categoryId:t,name:o,avatarFileUrl:r,children:n,onClick:i,loading:a})=>R.createElement(Yw,{className:e,title:o,hasNoChildren:!n,clickable:!a&&!!i,onClick:()=>t&&(i==null?void 0:i(t))},R.createElement(Rw,{avatar:r,backgroundImage:e0,loading:a}),R.createElement(eM,{title:t},a?R.createElement(Me,{style:{fontSize:12,maxWidth:124}}):o),n&&R.createElement(tM,{onClick:d=>d.stopPropagation()},n)),oM=e=>{let t=W("CategoryHeader");return t?t(e):R.createElement(lX,c({},e))};var cX=({className:e,categoryId:t,children:o,loading:r,onClick:n})=>{let i=
|
|
2088
|
+
`;var lX=({className:e,categoryId:t,name:o,avatarFileUrl:r,children:n,onClick:i,loading:a})=>R.createElement(Yw,{className:e,title:o,hasNoChildren:!n,clickable:!a&&!!i,onClick:()=>t&&(i==null?void 0:i(t))},R.createElement(Rw,{avatar:r,backgroundImage:e0,loading:a}),R.createElement(eM,{title:t},a?R.createElement(Me,{style:{fontSize:12,maxWidth:124}}):o),n&&R.createElement(tM,{onClick:d=>d.stopPropagation()},n)),oM=e=>{let t=W("CategoryHeader");return t?t(e):R.createElement(lX,c({},e))};var cX=({className:e,categoryId:t,children:o,loading:r,onClick:n})=>{let i=Fl(t),a=se({fileId:i==null?void 0:i.avatarFileId,imageSize:"small"});return R.createElement(oM,{className:e,categoryId:i==null?void 0:i.categoryId,name:i==null?void 0:i.name,avatarFileUrl:a,loading:r||!1,onClick:n},o)},rM=cX;var gX=m.div`
|
|
2086
2089
|
margin-top: 8px;
|
|
2087
2090
|
color: ${({theme:e})=>e.palette.alert.main};
|
|
2088
2091
|
${({theme:e})=>e.typography.caption}
|
|
@@ -2148,7 +2151,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2148
2151
|
@media (max-width: 768px) {
|
|
2149
2152
|
min-width: 100%;
|
|
2150
2153
|
}
|
|
2151
|
-
`,
|
|
2154
|
+
`,zl=m(he).attrs({type:"submit"})`
|
|
2152
2155
|
padding: 10px 16px;
|
|
2153
2156
|
margin-left: 12px;
|
|
2154
2157
|
border-radius: 100px;
|
|
@@ -2167,7 +2170,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2167
2170
|
align-items: center;
|
|
2168
2171
|
border-bottom: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
2169
2172
|
border-radius: 8px 8px 0 0;
|
|
2170
|
-
`,
|
|
2173
|
+
`,Ul=m.div`
|
|
2171
2174
|
background: ${({theme:e})=>e.palette.system.background};
|
|
2172
2175
|
border-radius: 8px;
|
|
2173
2176
|
border: 1px solid #e6e6e6;
|
|
@@ -2179,7 +2182,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2179
2182
|
border-bottom: 1px solid ${e.palette.base.shade4};
|
|
2180
2183
|
}
|
|
2181
2184
|
`}
|
|
2182
|
-
|
|
2185
|
+
`,$l=m.div`
|
|
2183
2186
|
${({edit:e})=>e?K`
|
|
2184
2187
|
padding: 0 16px 20px;
|
|
2185
2188
|
`:K`
|
|
@@ -2335,7 +2338,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2335
2338
|
`,uM=m(Y)`
|
|
2336
2339
|
border: none;
|
|
2337
2340
|
padding: 0;
|
|
2338
|
-
`;var yX=({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 R.createElement(cM,{onClick:i},R.createElement(ge,{size:"tiny",avatar:o,backgroundImage:e0}),R.createElement(dM,null,t),!!n&&R.createElement(uM,{onClick:a},R.createElement(pM,null)))},fM=yX;var CX=({categoryId:e,onClick:t,onRemove:o})=>{let r=
|
|
2341
|
+
`;var yX=({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 R.createElement(cM,{onClick:i},R.createElement(ge,{size:"tiny",avatar:o,backgroundImage:e0}),R.createElement(dM,null,t),!!n&&R.createElement(uM,{onClick:a},R.createElement(pM,null)))},fM=yX;var CX=({categoryId:e,onClick:t,onRemove:o})=>{let r=Fl(e),n=se({fileId:r==null?void 0:r.avatarFileId,imageSize:"small"});return r==null?null:R.createElement(fM,{categoryId:r.categoryId,name:r.name,fileUrl:n,onClick:i=>t==null?void 0:t(i),onRemove:o})},yM=CX;function h7(e){let r=ze({fetcher:CategoryRepository.getCategories,params:e}),{items:t}=r,o=P(r,["items"]);return c({categories:t},o)}var IX=({"data-qa-anchor":e="",value:t,onChange:o,parentContainer:r=null})=>{let n=t!=null?t:[],[i,a]=useState(!1),[s,l]=useState(""),d=()=>a(!i);useIntl();let u=useRef(null),g=h=>{var x;l(h),a(!!h),h&&((x=u.current)==null||x.focus());},f=()=>{l(""),a(!1);},{categories:y}=h7({includeDeleted:!1,limit:100}),v=y.filter(h=>s?h.name.includes(s):!0).map(h=>({name:h.name,value:h.categoryId})),C=n.map(h=>{var x;return {name:((x=y.find(b=>b.categoryId===h))==null?void 0:x.name)||"",value:h}});return R.createElement(ai,{"data-qa-anchor":`${e}-category`,value:C,options:v,renderTrigger:M=>{var I=M,{selected:h,remove:x}=I,b=P(I,["selected","remove"]);return R.createElement(nM,N(c({},b),{onClick:d,"data-qa-anchor":`${e}-category-selector`}),h.map(w=>R.createElement(yM,{key:w.value,categoryId:w.value,onRemove:()=>x(w,o)})),R.createElement(sM,{ref:u,"data-qa-anchor":"category-selector-input",type:"text",value:s,onChange:w=>g(w.target.value)}),R.createElement(aM,null))},renderItem:({value:h})=>R.createElement(rM,{categoryId:h}),parentContainer:r,isOpen:i,handleClose:f,multiple:!0,onSelect:({value:h})=>{var x;l(""),(x=u.current)==null||x.focus(),o==null||o([...new Set([...n,h])]);}})},kp=e=>{let t=W("CategorySelector");return t?t(e):R.createElement(IX,c({},e))};var xM=En.object({displayName:En.string().max(30),description:En.string().max(180),categoryIds:En.string().array().min(1),avatarFileId:En.string().nullable().optional(),tags:En.string().array().optional(),isPublic:En.boolean()}),wX=xM.extend({userIds:En.string().array().optional()}).refine(e=>{var t;return !(!e.isPublic&&((t=e.userIds)==null?void 0:t.length)===0)}),MX=xM.partial(),bM=()=>useForm({defaultValues:{avatarFileId:void 0,description:"",displayName:"",isPublic:!0,tags:[],userIds:[],categoryIds:[]},resolver:zodResolver(wX)}),IM=e=>useForm({defaultValues:{avatarFileId:e.avatarFileId,description:e.description,displayName:e.displayName,isPublic:e.isPublic,tags:e.tags,categoryIds:e.categoryIds},resolver:zodResolver(MX)});var wM=m.div`
|
|
2339
2342
|
background: ${({theme:e})=>e.palette.system.background};
|
|
2340
2343
|
align-self: flex-start;
|
|
2341
2344
|
width: 100%;
|
|
@@ -2404,7 +2407,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2404
2407
|
box-sizing: border-box;
|
|
2405
2408
|
`,SM=m(wn).attrs({width:15,height:15})`
|
|
2406
2409
|
margin-right: 8px;
|
|
2407
|
-
`;var NM=({title:e,bodyText:t,actionButton:o})=>R.createElement(wM,null,R.createElement(MM,null,e),R.createElement(PM,null,R.createElement("div",null,t),R.createElement(_M,null,o))),TX=({onClick:e})=>R.createElement(TM,{"data-qa-anchor":"community-edit-add-member-button",onClick:e},R.createElement(SM,null),R.createElement(FormattedMessage,{id:"community.addmembers"})),kX=o=>{var r=o,{onClick:e}=r,t=P(r,["onClick"]);return R.createElement(kM,N(c({},t),{onClick:e}),R.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}))},EM=({action:e})=>R.createElement(NM,{title:R.createElement(FormattedMessage,{id:"AddMemberAction.title"}),bodyText:R.createElement(FormattedMessage,{id:"AddMemberAction.description"}),actionButton:R.createElement(TX,{onClick:e})}),BM=({communityId:e,onCommunityClosed:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=_e();return R.createElement(NM,{title:R.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}),bodyText:R.createElement(FormattedMessage,{id:"CloseCommunityAction.description"}),actionButton:R.createElement(kX,{"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:()=>_(void 0,null,function*(){e&&(yield CommunityRepository.deleteCommunity(e),t==null||t());})})})})};var LM=({title:e,children:t})=>R.createElement(
|
|
2410
|
+
`;var NM=({title:e,bodyText:t,actionButton:o})=>R.createElement(wM,null,R.createElement(MM,null,e),R.createElement(PM,null,R.createElement("div",null,t),R.createElement(_M,null,o))),TX=({onClick:e})=>R.createElement(TM,{"data-qa-anchor":"community-edit-add-member-button",onClick:e},R.createElement(SM,null),R.createElement(FormattedMessage,{id:"community.addmembers"})),kX=o=>{var r=o,{onClick:e}=r,t=P(r,["onClick"]);return R.createElement(kM,N(c({},t),{onClick:e}),R.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}))},EM=({action:e})=>R.createElement(NM,{title:R.createElement(FormattedMessage,{id:"AddMemberAction.title"}),bodyText:R.createElement(FormattedMessage,{id:"AddMemberAction.description"}),actionButton:R.createElement(TX,{onClick:e})}),BM=({communityId:e,onCommunityClosed:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=_e();return R.createElement(NM,{title:R.createElement(FormattedMessage,{id:"CloseCommunityAction.title"}),bodyText:R.createElement(FormattedMessage,{id:"CloseCommunityAction.description"}),actionButton:R.createElement(kX,{"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:()=>_(void 0,null,function*(){e&&(yield CommunityRepository.deleteCommunity(e),t==null||t());})})})})};var LM=({title:e,children:t})=>R.createElement(Ul,{edit:!0},e&&R.createElement(bp,null,e),R.createElement($l,null,t)),AM=({type:e,description:t,icon:o})=>R.createElement(Ip,null,R.createElement(xp,null,o),R.createElement("div",null,e,R.createElement(wp,null,t))),BX=({community:e,"data-qa-anchor":t="",className:o,onSubmit:r,onCancel:n})=>{let[i,a]=useState(!1),{register:s,handleSubmit:l,setError:d,watch:p,control:u,formState:g}=IM(e),{onChangePage:f}=X(),{errors:y,dirtyFields:v}=g,C=p("displayName"),h=p("description"),x=we(),b=useRef(null),M=Object.keys(v).length>0,I=T=>_(void 0,null,function*(){try{a(!0),yield r==null?void 0:r(N(c({},T),{avatarFileId:T.avatarFileId||void 0})),x.success({content:R.createElement(FormattedMessage,{id:"community.updateSuccess"})});}finally{a(!1);}}),w=!g.isValid||i||!M,k=b.current&&b.current.scrollHeight-b.current.clientHeight-b.current.scrollTop;return R.useLayoutEffect(()=>{k!=null&&b.current&&k<10&&b.current.scrollHeight-b.current.clientHeight-b.current.scrollTop>10&&b.current.scrollTo({top:b.current.scrollHeight});},[b.current,k,g]),R.createElement(Qa,{className:o,onSubmit:l(I)},R.createElement(si,{ref:b},R.createElement(LM,{title:"General"},R.createElement(hr,null,R.createElement(Controller,{name:"avatarFileId",control:u,render:D=>{var {field:U}=D,j=U,L=P(j,["ref"]);return R.createElement(Tp,null,R.createElement(Ga,N(c({mimeType:"image/png, image/jpeg"},L),{"data-qa-anchor":t,isShowUploadImagePlaceholder:!0})))}})),R.createElement(hr,{error:y.displayName},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"displayName",className:"required"},R.createElement(FormattedMessage,{id:"community.name"})),R.createElement(Za,null,C.length,"/30")),R.createElement(e1,N(c({},s("displayName")),{"data-qa-anchor":`${t}-community-name-input`,placeholder:"Enter community name"})),R.createElement(yr,{errors:y,name:"displayName"})),R.createElement(hr,{error:y.description},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"description"},R.createElement(FormattedMessage,{id:"community.about"})),R.createElement(Za,null,(h==null?void 0:h.length)||0,"/180")),R.createElement(Rs,N(c({},s("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${t}-community-description-textarea`,placeholder:"Enter description"})),R.createElement(yr,{errors:y,name:"description"})),R.createElement(hr,{error:y.categoryIds},R.createElement(rn,{htmlFor:"categoryIds",className:"required"},R.createElement(FormattedMessage,{id:"community.category"})),R.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:D=>{var {field:U}=D,j=U,L=P(j,["ref"]);return R.createElement(kp,N(c({parentContainer:b.current},L),{"data-qa-anchor":`${t}`}))},control:u}),R.createElement(yr,{errors:y,name:"category"}))),R.createElement(LM,{title:R.createElement(FormattedMessage,{id:"community.categorypermission"})},R.createElement(Controller,{name:"isPublic",render:({field:T})=>R.createElement(_p,null,R.createElement(Ll,N(c({},T),{value:T.value===!0,onChange:L=>T.onChange(L.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>R.createElement(AM,{type:"Public",description:"Anyone can join, view and search the posts in this group.",icon:R.createElement(Cp,null)})})),R.createElement(Ll,N(c({},T),{value:T.value===!1,onChange:L=>T.onChange(!L.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>R.createElement(AM,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this group.",icon:R.createElement(vp,null)})}))),control:u})),R.createElement(BM,{communityId:e.communityId,onCommunityClosed:()=>f("newsfeed")})),R.createElement(Mp,{edit:!0},R.createElement(zl,{"data-qa-anchor":`${t}-save-button`,disabled:w,edit:!0},R.createElement(FormattedMessage,{id:"save"}))))},DM=memo(BX);var DX=1,Np=(e,t=DX)=>{let[o,r]=useState([]),[n,i]=useState(!1),[a,s]=useState(!1),[l,d]=useState(!1),p=useRef(null),u=useRef(null),g=()=>{p.current&&(p.current(),d(!0));};return useEffect(()=>{if(e.length<t)return;u.current&&(u.current(),u.current=null);let f=UserRepository.searchUserByDisplayName({displayName:e,limit:10},y=>{s(y.hasNextPage||!1),i(y.loading),p.current=y.onNextPage||null,r(y.data);});return u.current=f,()=>{var y;(y=u.current)==null||y.call(u),u.current=null;}},[e,t]),{users:o,isLoading:n,hasMore:a,loadMore:g,loadMoreHasBeenCalled:l}};var FM=m.div`
|
|
2408
2411
|
display: grid;
|
|
2409
2412
|
grid-template-areas: 'avatar title' 'avatar subtitle';
|
|
2410
2413
|
grid-template-columns: min-content auto;
|
|
@@ -2465,7 +2468,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Zd]+=1);var e0=`url("data:ima
|
|
|
2465
2468
|
outline: none;
|
|
2466
2469
|
border: none;
|
|
2467
2470
|
width: 100%;
|
|
2468
|
-
`;var ZX=({value:e,onChange:t,parentContainer:o=null})=>{let r=e!=null?e:[],{currentUserId:n}=J(),[i,a]=useState(!1),[s,l]=useState(""),{users:d=[]}=Np(s),{formatMessage:p}=useIntl(),u=d.filter(({displayName:C,userId:h})=>(C==null?void 0:C.toLowerCase().includes(s.toLowerCase()))&&h!==n).map(({displayName:C,userId:h})=>({name:C,value:h})),g=r.map(C=>{var h;return {name:((h=d.find(x=>x.userId===C))==null?void 0:h.displayName)||"",value:C}}),f=()=>{a(!1),l("");},y=useRef(null),v=C=>{var h;l(C),a(!!C),C&&((h=y.current)==null||h.focus());};return R.createElement(ai,{"data-qa-anchor":"user",value:g,options:s?u:[],renderTrigger:b=>{var M=b,{selected:C,remove:h}=M,x=P(M,["selected","remove"]);return R.createElement(qM,c({},x),C.map(I=>R.createElement(WM,{key:I.value,userId:I.value,onRemove:()=>h(I,t)})),R.createElement(KM,{ref:y,"data-qa-anchor":"user-selector-input",type:"text",value:s,placeholder:p({id:"UserSelector.placeholder"}),onChange:I=>v(I.target.value)}))},renderItem:({value:C})=>R.createElement(li,{userId:C}),parentContainer:o,isOpen:i,handleClose:f,multiple:!0,onSelect:({value:C})=>{var h;t==null||t([...new Set([...r,C])]),(h=y.current)==null||h.focus(),l("");}})},Wa=memo(e=>{let t=W("UserSelector");return t?t(e):R.createElement(ZX,c({},e))});var v7=({title:e,children:t})=>R.createElement(
|
|
2471
|
+
`;var ZX=({value:e,onChange:t,parentContainer:o=null})=>{let r=e!=null?e:[],{currentUserId:n}=J(),[i,a]=useState(!1),[s,l]=useState(""),{users:d=[]}=Np(s),{formatMessage:p}=useIntl(),u=d.filter(({displayName:C,userId:h})=>(C==null?void 0:C.toLowerCase().includes(s.toLowerCase()))&&h!==n).map(({displayName:C,userId:h})=>({name:C,value:h})),g=r.map(C=>{var h;return {name:((h=d.find(x=>x.userId===C))==null?void 0:h.displayName)||"",value:C}}),f=()=>{a(!1),l("");},y=useRef(null),v=C=>{var h;l(C),a(!!C),C&&((h=y.current)==null||h.focus());};return R.createElement(ai,{"data-qa-anchor":"user",value:g,options:s?u:[],renderTrigger:b=>{var M=b,{selected:C,remove:h}=M,x=P(M,["selected","remove"]);return R.createElement(qM,c({},x),C.map(I=>R.createElement(WM,{key:I.value,userId:I.value,onRemove:()=>h(I,t)})),R.createElement(KM,{ref:y,"data-qa-anchor":"user-selector-input",type:"text",value:s,placeholder:p({id:"UserSelector.placeholder"}),onChange:I=>v(I.target.value)}))},renderItem:({value:C})=>R.createElement(li,{userId:C}),parentContainer:o,isOpen:i,handleClose:f,multiple:!0,onSelect:({value:C})=>{var h;t==null||t([...new Set([...r,C])]),(h=y.current)==null||h.focus(),l("");}})},Wa=memo(e=>{let t=W("UserSelector");return t?t(e):R.createElement(ZX,c({},e))});var v7=({title:e,children:t})=>R.createElement(Ul,null,R.createElement($l,null,t)),XM=({type:e,description:t,icon:o})=>R.createElement(Ip,null,R.createElement(xp,null,o),R.createElement("div",null,e,R.createElement(wp,null,t))),KX=({"data-qa-anchor":e="",className:t,onSubmit:o,onCancel:r})=>{let[n,i]=useState(!1),{register:a,handleSubmit:s,setError:l,watch:d,control:p,formState:u,setValue:g,getValues:f}=bM(),{errors:y}=u,v=d("displayName"),C=d("description"),h=d("isPublic"),x=useRef(null),b=w=>_(void 0,null,function*(){var k;try{if(i(!0),!w.isPublic&&((k=w.userIds)==null?void 0:k.length)===0){l("userIds",{message:"Please select at least one member"});return}yield o==null?void 0:o(N(c({},w),{displayName:w.displayName||"",avatarFileId:w.avatarFileId||void 0}));}finally{i(!1);}}),M=!u.isValid||n,I=x.current&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop;return R.useLayoutEffect(()=>{I!=null&&x.current&&I<10&&x.current.scrollHeight-x.current.clientHeight-x.current.scrollTop>10&&x.current.scrollTo({top:x.current.scrollHeight});},[x.current,I,u]),R.createElement(Qa,{className:t,onSubmit:s(b)},R.createElement(si,{ref:x},R.createElement(v7,{title:"General"},R.createElement(hr,null,R.createElement(Controller,{name:"avatarFileId",control:p,render:T=>{var {field:L}=T,D=L,k=P(D,["ref"]);return R.createElement(Tp,null,R.createElement(Ga,N(c({mimeType:"image/png, image/jpeg"},k),{"data-qa-anchor":e,isShowUploadImagePlaceholder:!0})))}})),R.createElement(hr,{error:y.displayName},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"displayName",className:"required"},R.createElement(FormattedMessage,{id:"community.name"})),R.createElement(Za,null,v.length,"/30")),R.createElement(e1,N(c({},a("displayName")),{"data-qa-anchor":`${e}-community-name-input`,placeholder:"Enter community name"})),R.createElement(yr,{errors:y,name:"displayName"})),R.createElement(hr,{error:y.description},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"description"},R.createElement(FormattedMessage,{id:"community.about"})),R.createElement(Za,null,(C==null?void 0:C.length)||0,"/180")),R.createElement(Rs,N(c({},a("description",{maxLength:{value:180,message:"Description text is too long"}})),{"data-qa-anchor":`${e}-community-description-textarea`,placeholder:"Enter description"})),R.createElement(yr,{errors:y,name:"description"})),R.createElement(hr,{error:y.categoryIds},R.createElement(rn,{htmlFor:"categoryIds",className:"required"},R.createElement(FormattedMessage,{id:"community.category"})),R.createElement(Controller,{rules:{required:"Category is required"},name:"categoryIds",render:L=>{var {field:D}=L,U=D,T=P(U,["ref","onChange"]);return R.createElement(kp,N(c({parentContainer:x.current,onChange:j=>g("categoryIds",j,{shouldValidate:!0})},T),{"data-qa-anchor":`${e}`}))},control:p}),R.createElement(yr,{errors:y,name:"category"}))),R.createElement(v7,{title:R.createElement(FormattedMessage,{id:"community.categorypermission"})},R.createElement(Controller,{name:"isPublic",render:({field:w})=>R.createElement(_p,null,R.createElement(Ll,N(c({},w),{value:w.value===!0,onChange:k=>w.onChange(k.target.checked),"data-qa-anchor":"community-form-public-type-community-type",label:"Public",renderer:()=>R.createElement(XM,{type:"Public",description:"Anyone can join, view and search the posts in this group.",icon:R.createElement(Cp,null)})})),R.createElement(Ll,N(c({},w),{value:w.value===!1,onChange:k=>w.onChange(!k.target.checked),"data-qa-anchor":"community-form-private-type-community-type",label:"Private",renderer:()=>R.createElement(XM,{type:"Private",description:"Only members invited by the moderators can join, view, and search the posts in this group.",icon:R.createElement(vp,null)})}))),control:p})),!h&&R.createElement(v7,{title:"Community members"},R.createElement(Pp,{error:y.userIds},R.createElement(rn,{className:"required"},R.createElement(FormattedMessage,{id:"community.addmembers"})),R.createElement(Controller,{name:"userIds",render:T=>{var {field:L}=T,D=L,k=P(D,["ref"]);return R.createElement(Wa,c({parentContainer:x.current,"data-qa-anchor":e},k))},control:p}),R.createElement(yr,{errors:y,name:"userIds"})))),R.createElement(Mp,null,R.createElement(Y,{onClick:w=>{w.preventDefault(),r==null||r();}},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(zl,{"data-qa-anchor":`${e}-save-button`,disabled:M},R.createElement(FormattedMessage,{id:"create"}))))},YM=memo(KX);var XX=r=>{var n=r,{edit:e,community:t}=n,o=P(n,["edit","community"]);return e?t==null?null:R.createElement(DM,N(c({},o),{community:t})):R.createElement(YM,c({},o))},Lp=memo(e=>{let t=W("CommunityForm");return t?t(e):R.createElement(XX,c({},e))});m(Lp)`
|
|
2469
2472
|
${si} {
|
|
2470
2473
|
max-height: 550px;
|
|
2471
2474
|
overflow-y: auto;
|
|
@@ -2704,7 +2707,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
2704
2707
|
button {
|
|
2705
2708
|
width: 100%;
|
|
2706
2709
|
}
|
|
2707
|
-
`,
|
|
2710
|
+
`,ql=m.div`
|
|
2708
2711
|
margin-left: auto;
|
|
2709
2712
|
color: ${({theme:e})=>e.palette.base.shade1};
|
|
2710
2713
|
${({theme:e})=>e.typography.caption}
|
|
@@ -2712,7 +2715,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
2712
2715
|
position: relative;
|
|
2713
2716
|
width: 100%;
|
|
2714
2717
|
|
|
2715
|
-
${
|
|
2718
|
+
${ql} {
|
|
2716
2719
|
position: absolute;
|
|
2717
2720
|
top: 14px;
|
|
2718
2721
|
right: 8px;
|
|
@@ -2860,7 +2863,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
2860
2863
|
`,t_=m.div`
|
|
2861
2864
|
display: flex;
|
|
2862
2865
|
align-items: center;
|
|
2863
|
-
`;var r_=200,CY=({option:e,removeOption:t,updateOption:o})=>{let[r,n]=useState(e.text);return R.createElement(_P,null,R.createElement(FP,null,R.createElement(kP,{"data-qa-anchor":"poll-composer-option-item-input",value:r,maxLength:r_,onChange:a=>{n(a.target.value),o(a.target.value);}}),R.createElement(
|
|
2866
|
+
`;var r_=200,CY=({option:e,removeOption:t,updateOption:o})=>{let[r,n]=useState(e.text);return R.createElement(_P,null,R.createElement(FP,null,R.createElement(kP,{"data-qa-anchor":"poll-composer-option-item-input",value:r,maxLength:r_,onChange:a=>{n(a.target.value),o(a.target.value);}}),R.createElement(ql,null,`${r.length}/${r_}`)),R.createElement(NP,{"data-qa-anchor":"poll-composer-option-item-close-button",onClick:t},R.createElement(SP,{height:16})))},vY=({onChange:e,optionsLimit:t})=>{let[o,r]=useState([]),n=!t||t&&o.length<t,i=d=>{e(d.map(({text:p})=>({dataType:"text",data:p})));},a=()=>{if(n){let d=[...o,{text:"",id:v4$1()}];r(d),i(d);}},s=(d,p)=>{let u=o.map(g=>g.id===d?N(c({},g),{text:p}):g);r(u),i(u);},l=d=>{let p=o.findIndex(g=>g.id===d),u=[...o.slice(0,p),...o.slice(p+1)];r(u),i(u);};return R.createElement(PP,null,R.createElement(OP,null,R.createElement(FormattedMessage,{id:"options_composer.title"})),o.map(d=>R.createElement(CY,{key:d.id,option:d,removeOption:()=>l(d.id),updateOption:p=>s(d.id,p)})),R.createElement("div",null,R.createElement(Y,{"data-qa-anchor":"poll-composer-add-option-button",fullWidth:!0,disabled:!n,onClick:d=>{d.preventDefault(),a();}},R.createElement(Hp,null)," ",R.createElement(FormattedMessage,{id:"options_composer.button.add"}))))},i_=vY;var a_=m.div`
|
|
2864
2867
|
display: flex;
|
|
2865
2868
|
align-items: center;
|
|
2866
2869
|
width: 100%;
|
|
@@ -2883,7 +2886,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
2883
2886
|
cursor: pointer;
|
|
2884
2887
|
}
|
|
2885
2888
|
}
|
|
2886
|
-
`,m_=m(g4).attrs({width:24,height:24})``,c_=m(wn).attrs({width:24,height:24})``;var S7="{counter}",d_=({icon:e=null,onClick:t,disabled:o})=>R.createElement(l_,{disabled:o,onClick:t},e),bY=({output:e=""})=>R.createElement(s_,null,e),IY=({renderDecButton:e=d_,renderIncButton:t=d_,renderResult:o=bY,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return R.createElement(a_,null,e({onClick:d=>{d.preventDefault();let p=s-1;l(p),i(p);},icon:R.createElement(m_,null),disabled:a&&s-1<0}),o({output:r.replace(S7,s)}),t({onClick:d=>{d.preventDefault();let p=s+1;l(p),i(p);},icon:R.createElement(c_,null)}))},p_=IY;var MY=({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 R.createElement(HP,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>R.createElement("div",null,n),onSelect:({value:n})=>e(n)})},g_=MY;var f_=500,ac=2,
|
|
2889
|
+
`,m_=m(g4).attrs({width:24,height:24})``,c_=m(wn).attrs({width:24,height:24})``;var S7="{counter}",d_=({icon:e=null,onClick:t,disabled:o})=>R.createElement(l_,{disabled:o,onClick:t},e),bY=({output:e=""})=>R.createElement(s_,null,e),IY=({renderDecButton:e=d_,renderIncButton:t=d_,renderResult:o=bY,resultFormat:r="{counter}",defaultValue:n=0,onChange:i,onlyPositiveNumber:a=!0})=>{let[s,l]=useState(n);return R.createElement(a_,null,e({onClick:d=>{d.preventDefault();let p=s-1;l(p),i(p);},icon:R.createElement(m_,null),disabled:a&&s-1<0}),o({output:r.replace(S7,s)}),t({onClick:d=>{d.preventDefault();let p=s+1;l(p),i(p);},icon:R.createElement(c_,null)}))},p_=IY;var MY=({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 R.createElement(HP,{options:r,value:[r[0]],parentContainer:t,renderItem:({name:n})=>R.createElement("div",null,n),onSelect:({value:n})=>e(n)})},g_=MY;var f_=500,ac=2,Kl=10,NY=864e5,EY=({children:e})=>R.createElement(BP,null,R.createElement(EP,null,e)),BY=({className:e="",targetId:t,targetType:o,onCancel:r=()=>{},onSubmit:n=(a,s,l)=>{},onIsDirtyChange:i})=>{var E;let{text:a,markup:s,mentions:l,mentionees:d,metadata:p,queryMentionees:u,onChange:g}=Ml({targetId:t||void 0,targetType:o}),[f,y]=useState(!1),{info:v}=_e(),C={question:"",answers:[],answerType:"single",closedIn:0},{handleSubmit:h,setError:x,watch:b,control:M,formState:{errors:I,isDirty:w}}=useForm({defaultValues:C}),{formatMessage:k}=useIntl(),T=b("question",""),L=b("answers",[]);useEffect(()=>i==null?void 0:i(w),[w]);let D=V=>_(void 0,null,function*(){var G,q,O;try{if(y(!0),!V.question.trim()){x("question",{message:"Question cannot be empty"});return}if(((G=V==null?void 0:V.answers)==null?void 0:G.length)<ac){x("answers",{message:`Minimum amount of answers should be ${ac}`});return}if(((q=V==null?void 0:V.answers)==null?void 0:q.length)>Kl){x("answers",{message:`Maximum amount of answers should be ${Kl}`});return}let H={question:V==null?void 0:V.question,answers:(O=V==null?void 0:V.answers)!=null&&O.length?V.answers:[],answerType:(V==null?void 0:V.answerType)||"single",closedIn:V&&V.closedIn?V.closedIn*NY:void 0};yield n(H,d,p);}finally{y(!1);}}),U=!w||(T==null?void 0:T.length)===0||f,j=useRef(null);return R.createElement(wP,null,R.createElement(MP,{className:e,onSubmit:h(D)},R.createElement(LP,{ref:j},R.createElement(EY,null,R.createElement(oc,null,R.createElement(M7,null,R.createElement(nc,null,R.createElement(rc,{className:"required"},R.createElement(FormattedMessage,{id:"poll_composer.question.label"}))),R.createElement(ql,null,`${(E=a==null?void 0:a.length)!=null?E:0}/${f_}`)),R.createElement(Controller,{control:M,name:"question",rules:{required:"Question is required",maxLength:{value:f_,message:"Question is too long"}},render:H=>{var{field:z}=H,Z=z,{value:V,ref:G,onChange:q}=Z,O=P(Z,["value","ref","onChange"]);return R.createElement(TP,N(c({},O),{ref:G,"data-qa-anchor":"poll-composer-options-textarea",mentionAllowed:!0,multiline:!0,value:s,queryMentionees:u,placeholder:k({id:"poll_composer.question.placeholder"}),onChange:ne=>{var re=ne,{plainText:Q,mentions:B}=re,$=P(re,["plainText","mentions"]);if((B==null?void 0:B.length)>ev)return v({title:R.createElement(FormattedMessage,{id:"pollComposer.unableToMention"}),content:R.createElement(FormattedMessage,{id:"pollComposer.overMentionees"}),okText:R.createElement(FormattedMessage,{id:"pollComposer.okText"}),type:"info"});g(c({plainText:Q,mentions:B},$)),q(Q);}}))}}),R.createElement(w7,{errors:I,name:"question"})),R.createElement(oc,null,R.createElement(M7,null,R.createElement(nc,null,R.createElement(rc,{className:"required"},R.createElement(FormattedMessage,{id:"poll_composer.poll_options.label"}))),R.createElement(ql,null,`${L.length}/${Kl}`)),R.createElement(Controller,{rules:{required:`There should be at least ${ac} answers`,minLength:{value:ac,message:`There should be at least ${ac} answers`},maxLength:{value:Kl,message:`There can be only ${Kl} answers maximum`}},name:"answers",control:M,render:({field:V})=>R.createElement(i_,c({optionsLimit:Kl},V))}),R.createElement(w7,{errors:I,name:"answers"})),R.createElement(oc,{horizontal:!0,separate:!0},R.createElement(_7,null,R.createElement(nc,null,R.createElement(rc,null,R.createElement(FormattedMessage,{id:"poll_modal.answer_type.title"})),R.createElement("div",null,R.createElement(FormattedMessage,{id:"poll_modal.answer_type.body"}))),R.createElement(P7,null,R.createElement(Controller,{rules:{required:"Answer type is required"},name:"answerType",render:({field:V})=>R.createElement(g_,c({parentContainer:j.current},V)),control:M})))),R.createElement(oc,{horizontal:!0,separate:!0},R.createElement(_7,null,R.createElement(nc,null,R.createElement(rc,null,R.createElement(FormattedMessage,{id:"poll_modal.closed_in.title"})),R.createElement("div",null,R.createElement(FormattedMessage,{id:"poll_modal.closed_in.body"}))),R.createElement(P7,null,R.createElement(Controller,{name:"closedIn",render:({field:V})=>R.createElement(p_,N(c({},V),{onlyPositiveNumber:!0,resultFormat:`${S7} days`})),control:M})))))),R.createElement(AP,null,R.createElement(Y,{onClick:V=>{V.preventDefault(),r();}},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(DP,{"data-qa-anchor":"poll-composer-post-button",disabled:U},R.createElement(FormattedMessage,{id:"post"})))))},y_=BY;var HY=({targetId:e,targetType:t,onClose:o,onCreatePoll:r})=>{let[n,i]=useState(!1),{formatMessage:a}=useIntl(),{confirm:s}=_e(),l=we(),d=(u,g,f)=>_(void 0,null,function*(){try{let y=yield PollRepository.createPoll(u);yield r(y.data.pollId,u.question,g,f),o();}catch(y){y instanceof Error&&(y.message===Xr.CONTAIN_BLOCKED_WORD?l.error({content:R.createElement(FormattedMessage,{id:"notification.error.blockedWord"})}):y.message===Xr.NOT_INCLUDE_WHITELIST_LINK&&l.error({content:R.createElement(FormattedMessage,{id:"notification.error.whitelistLink"})}));}}),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 R.createElement(ro,{"data-qa-anchor":"poll-composer-modal",title:a({id:"poll_modal.title"}),clean:!1,onCancel:n?p:o},R.createElement(y_,{targetId:e,targetType:t,onIsDirtyChange:u=>i(u),onCancel:p,onSubmit:d}))},C_=HY;var UY=n=>{var i=n,{className:e,fixed:t=!1,children:o}=i,r=P(i,["className","fixed","children"]);return R.createElement(Popover,c({containerClassName:sr(e,{fixed:t})},r),o)},v_=m(UY)`
|
|
2887
2890
|
${({theme:e})=>e.typography.body}
|
|
2888
2891
|
z-index: 10000;
|
|
2889
2892
|
background: ${({theme:e})=>e.palette.system.background};
|
|
@@ -2923,11 +2926,11 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
2923
2926
|
`,RY=({user:e,communities:t,hasMoreCommunities:o,loadMoreCommunities:r,currentTargetId:n,onChange:i,children:a})=>{let s=useRef(null),[l,d]=useState(!1),p=()=>d(!0),u=()=>d(!1),g=se({fileId:e.avatarFileId}),f=useCallback(()=>{r==null||r();},[r]),y=R.createElement(ii,null,R.createElement(jo,{active:e.userId===n,onClick:()=>{i({targetId:e.userId,targetType:"user"}),u();}},R.createElement(Up,{size:"tiny",avatar:e.avatarCustomUrl||g,backgroundImage:Ne})," ",R.createElement(FormattedMessage,{id:"post.myTimeline"})),R.createElement(KY,null,R.createElement(FormattedMessage,{id:"post.community"})),R.createElement(JY,null,R.createElement(ZY,{dataLength:t.length,next:()=>f(),hasMore:o||!1,height:b_,loader:R.createElement(XY,null,R.createElement(FormattedMessage,{id:"loading"})),scrollThreshold:QY},t.map(v=>R.createElement(x_,{key:v.communityId,"data-qa-anchor":"post-creator-post-target-community-item",community:v,currentTargetId:n,onChange:i,onClose:u})))));return R.createElement("div",{ref:s,style:{position:"relative"}},R.createElement(YY,{isOpen:l,positions:["bottom"],align:"start",content:y,parentElement:s.current||void 0,onClickOutside:u},R.createElement(qY,{onClick:p},a," ",R.createElement(WY,{"data-qa-anchor":"post-creator-target-selector"}))))},I_=e=>{let t=W("PostTargetSelector");return t?t(e):R.createElement(RY,c({},e))};var eR=m(yp)`
|
|
2924
2927
|
${({uploadLoading:e})=>e&&"cursor: wait !important;"}
|
|
2925
2928
|
${({disabled:e,theme:t})=>e&&`color: ${t.palette.neutral.shade2};`}
|
|
2926
|
-
`,tR=({fileUploadDisabled:e,imageUploadDisabled:t,videoUploadDisabled:o,onChangeImages:r,onChangeVideos:n,onChangeFiles:i,uploadLoading:a,onMaxFilesLimit:s,onFileSizeLimit:l,fileLimitRemaining:d,fileInputRef:p})=>R.createElement(R.Fragment,null,R.createElement(eR,{"data-qa-anchor":"post-creator-image-attachment-button",disabled:t,uploadLoading:a,fileLimitRemaining:d,mimeType:"image/*",multiple:!0,onChange:r,onMaxFilesLimit:s,onFileSizeLimit:l,fileInputRef:p},R.createElement(
|
|
2929
|
+
`,tR=({fileUploadDisabled:e,imageUploadDisabled:t,videoUploadDisabled:o,onChangeImages:r,onChangeVideos:n,onChangeFiles:i,uploadLoading:a,onMaxFilesLimit:s,onFileSizeLimit:l,fileLimitRemaining:d,fileInputRef:p})=>R.createElement(R.Fragment,null,R.createElement(eR,{"data-qa-anchor":"post-creator-image-attachment-button",disabled:t,uploadLoading:a,fileLimitRemaining:d,mimeType:"image/*",multiple:!0,onChange:r,onMaxFilesLimit:s,onFileSizeLimit:l,fileInputRef:p},R.createElement(P2,null))),w_=tR;var oR=m(Oa)`
|
|
2927
2930
|
${({uploadLoading:e})=>e&&K`
|
|
2928
2931
|
cursor: wait !important;
|
|
2929
2932
|
`}
|
|
2930
|
-
`,rR=({allFiles:e,progress:t,removeFile:o,uploadLoading:r,rejected:n,retry:i})=>R.createElement(oR,{items:e,uploadLoading:r,renderItem:a=>{if(!
|
|
2933
|
+
`,rR=({allFiles:e,progress:t,removeFile:o,uploadLoading:r,rejected:n,retry:i})=>R.createElement(oR,{items:e,uploadLoading:r,renderItem:a=>{if(!Dl(a))return R.createElement(Dt,{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 R.createElement(Dt,{key:s,fileId:s,"data-qa-anchor":"post-creator-uploaded-image",onRemove:()=>o(a)})}}),nR=({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i,fileInputRef:a})=>{let s=R2({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i,fileInputRef:a}),{allFiles:l}=s;return l.length===0?null:R.createElement(rR,N(c({},s),{uploadLoading:n}))},B7=nR;var M_=m(ge)`
|
|
2931
2934
|
margin-right: 8px;
|
|
2932
2935
|
`,P_=m.div`
|
|
2933
2936
|
padding: 16px 20px 12px 16px;
|
|
@@ -3280,7 +3283,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3280
3283
|
display: flex;
|
|
3281
3284
|
align-items: center;
|
|
3282
3285
|
z-index: 10;
|
|
3283
|
-
width:
|
|
3286
|
+
width: 375px;
|
|
3284
3287
|
background: #fff;
|
|
3285
3288
|
border-radius: 8px;
|
|
3286
3289
|
|
|
@@ -3332,9 +3335,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3332
3335
|
align-items: center;
|
|
3333
3336
|
gap: 12px;
|
|
3334
3337
|
background: #f7f7f8;
|
|
3335
|
-
position: sticky;
|
|
3336
3338
|
top: 0;
|
|
3337
|
-
z-index: 10;
|
|
3338
3339
|
`,uT=m.p`
|
|
3339
3340
|
font-size: 16px;
|
|
3340
3341
|
font-style: normal;
|
|
@@ -3464,7 +3465,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3464
3465
|
grid-area: avatar;
|
|
3465
3466
|
`,AT=m.div`
|
|
3466
3467
|
grid-area: children;
|
|
3467
|
-
`;var DT={community__category:"R"};var HT={communityCategoryName:"La"};function Ka({pageId:e="*",componentId:t="*",categoryName:o}){let r="community_category_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("div",{className:HT.communityCategoryName,style:a,"data-qa-anchor":n},o)}var An=({pageId:e="*",componentId:t="*",categories:o,maxCategories:r})=>{let n="community_category",{config:i,themeStyles:a,accessibilityId:s,isExcluded:l}=A({pageId:e,componentId:t,elementId:n});if(l)return null;let d=o.slice(0,2),p=Math.max(0,o.length-d.length);return R.createElement("div",{"data-qa-anchor":s,style:a,className:DT.community__category},typeof r=="number"?R.createElement(R.Fragment,null,d.map(u=>R.createElement(Ka,{categoryName:u.name})),p>0&&R.createElement(Ka,{categoryName:`+${p}`})):o.map(u=>R.createElement(Ka,{key:u.categoryId,categoryName:u.name})))};var FT=e=>{let r=dt({fetcher:ReactionRepository.getReactions,params:e,shouldCall:!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=P(r,["items"]);return c({reactions:t},o)};var Yl,Rl,Rp,OT,cc,Z7,s1=class s1{constructor(){Io(this,Rp);Io(this,cc);Io(this,Yl,void 0);_a(this,Yl,new Map);}static get instance(){return Uo(s1,Rl)||_a(s1,Rl,new s1),Uo(s1,Rl)}hasReachedLimit(t){let o=Ar(this,cc,Z7).call(this,t);return Uo(this,Yl).get(t)===o}markSeen(t){Uo(this,Yl).set(t,Ar(this,cc,Z7).call(this,t));}};Yl=new WeakMap,Rl=new WeakMap,Rp=new WeakSet,OT=function(t){let o=Hr.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},cc=new WeakSet,Z7=function(t){let o=ln(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Ar(this,Rp,OT).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Io(s1,Rl,void 0);var em=s1;var tm,dc,pc,Q7,l1=class l1{constructor(){Io(this,pc);Io(this,dc,"amity.seenRecencyCache");}static get instance(){return Uo(l1,tm)||_a(l1,tm,new l1),Uo(l1,tm)}getSeenRecencyByAdId(t){return Ar(this,pc,Q7).call(this)[t]}setSeenRecencyCache(t,o){let r=Ar(this,pc,Q7).call(this);r[t]=o,window.localStorage.setItem(Uo(this,dc),JSON.stringify(r));}};tm=new WeakMap,dc=new WeakMap,pc=new WeakSet,Q7=function(){return JSON.parse(window.localStorage.getItem(Uo(this,dc))||"{}")},Io(l1,tm,void 0);var e3=l1,om,uc,W7,m1=class m1{constructor(){Io(this,uc);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>_(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 Uo(m1,om)||_a(m1,om,new m1),Uo(m1,om)}onNetworkAdsData(t){!this.isLoading&&this.ads.length>0&&this.settings&&t({ads:this.ads,settings:this.settings}),this.subscribers.push(t);}getLastSeen(t){return e3.instance.getSeenRecencyByAdId(t)}markSeen(t,o){var r;e3.instance.setSeenRecencyCache(t.adId,Date.now()),((r=Ar(this,uc,W7).call(this,o))==null?void 0:r.type)==="time-window"&&em.instance.markSeen(o),t.analytics.markAsSeen(o);}markClicked(t,o){t.analytics.markLinkAsClicked(o);}getAdFrequencyByPlacement(t){return Ar(this,uc,W7).call(this,t)}};om=new WeakMap,uc=new WeakSet,W7=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}},Io(m1,om,void 0);var Hr=m1;var rm,o3,zT,r3,UT,n3,$T,c1=class c1{constructor(){Io(this,o3);Io(this,r3);Io(this,n3);}static get instance(){return Uo(c1,rm)||_a(c1,rm,new c1),Uo(c1,rm)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Ar(this,o3,zT).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,d=i.get(s.adId);if(d==null)return;let p=l+Math.pow(Math.E,2*d);a.set(s.adId,p);}),Ar(this,n3,$T).call(this,{ads:t,scores:a,count:r})}};rm=new WeakMap,o3=new WeakSet,zT=function(t){let o=t.sort((a,s)=>Hr.instance.getLastSeen(s.adId)-Hr.instance.getLastSeen(a.adId)),r=new Map,n=Hr.instance.getLastSeen(o[o.length-1].adId);return Hr.instance.getLastSeen(o[0].adId)===n?o.forEach(a=>{r.set(a.adId,1);}):o.forEach((a,s)=>{let l=s/o.length;r.set(a.adId,l);}),r},r3=new WeakSet,UT=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},n3=new WeakSet,$T=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,g)=>u+g,0)),d=Ar(this,r3,UT).call(this,l);i.push(n[d]),n.splice(d,1);}return i},Io(c1,rm,void 0);var t3=c1;var jT=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var q7=()=>useContext(jT).settings,GT=({count:e,placement:t,communityId:o})=>{let n=useContext(jT).ads,[i,a]=useState([]),s=q7(),l=Hr.instance.getAdFrequencyByPlacement(t);return useEffect(()=>{s!=null&&s.enabled&&((l==null?void 0:l.type)==="time-window"&&em.instance.hasReachedLimit(t)||a(t3.instance.recommendedAds({ads:n,placement:t,count:e,communityId:o})));},[n,e,t,o]),i};var Hee=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=q7(),[i,a]=useState(0),[s,l]=useState([]),[d,p]=useState(0),u=Hr.instance.getAdFrequencyByPlacement(e),g=(u==null?void 0:u.type)==="fixed"?t/u.value:1,f=GT({count:g,placement:e,communityId:o});return {combineItemsWithAds:C=>{if(!(n!=null&&n.enabled))return C;if((u==null?void 0:u.type)==="fixed"){let h=new Set(C.map(j=>r(j))),x=s.map(j=>{let E=r(j[0]);if(!h.has(E))return null;let V=C.find(G=>r(G)===E);return V?j.length===1?[V]:[V,j[1]]:j}).filter(Yr),b=x[0],M=(()=>{if(b){let j=C.findIndex(E=>r(E)===r(b[0]));return j===-1?0:j}return 0})(),w=[...(C||[]).slice(0,M).map(j=>[j]),...x],k=C.slice(M).filter(j=>{let E=r(j);return !w.some(V=>r(V[0])===E)}),T=i,L=d,D=k.map(j=>{if(L=L+1,!(L%u.value===0))return [j];let V=f[T];return T=T+1>f.length-1?0:T+1,[j,V]});a(T),p(L);let U=[...w,...D];return l([...w,...D]),U.length===0&&(a(0),p(0)),[...w,...D].flatMap(j=>j)}else if((u==null?void 0:u.type)==="time-window")return C.length===0?C:[...C.slice(0,1),f[0],...C.slice(1)].filter(Yr);return C},reset:()=>{a(0),l([]),p(0);}}},gc=({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0,placement:i,communityId:a,pageSize:s,getItemId:l})=>{let{combineItemsWithAds:d}=Hee({placement:i,pageSize:s,communityId:a,getItemId:l}),f=dt({fetcher:e,params:t,config:r,shouldCall:n}),{items:p}=f,u=P(f,["items"]),g=useMemo(()=>d(p).flatMap(y=>y),[p]);return N(c({},u),{items:g})};var ta=e=>{let r=gc({fetcher:StoryRepository.getActiveStoriesByTarget,params:e,shouldCall:!0,pageSize:10,placement:"story",getItemId:n=>(n==null?void 0:n.storyId)||""}),{items:t}=r,o=P(r,["items"]);return c({stories:t.filter(Yr)},o)};var X7=e=>{let t=Po(),[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=()=>_(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>_(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=>_(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 fc=(i=>(i.MEMBER="member",i.MODERATOR="moderator",i.SUPER_MODERATOR="super-moderator",i.COMMUNITY_MODERATOR="community-moderator",i.CHANNEL_MODERATOR="channel-moderator",i))(fc||{});var{COMMUNITY_MODERATOR:Vee}=fc;function nm({communityId:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[Vee]},shouldCall:!!e&&t}),{items:o}=n,r=P(n,["items"]);return c({moderators:o},r)}var jee=({community:e})=>{var p,u,g,f;let{currentUserId:t}=J(),{moderators:o}=Nn(e==null?void 0:e.communityId),{client:r}=J(),i=o.find(y=>y.userId===t)!=null;if(e==null)return {isModerator:i,canEdit:!1,canEditPost:!1,canReviewPost:!1,canEditUser:!1};let a=(p=r==null?void 0:r.hasPermission(lr.EditCommunityPermission).community(e.communityId))!=null?p:!1,s=(u=r==null?void 0:r.hasPermission(lr.EditCommunityFeedPostPermission).community(e==null?void 0:e.communityId))!=null?u:!1,l=(g=r==null?void 0:r.hasPermission(lr.ReviewCommunityPost).community(e.communityId))!=null?g:!1,d=(f=r==null?void 0:r.hasPermission(lr.EditCommunityUserPermission).community(e.communityId))!=null?f:!1;return {isModerator:i,canEdit:a,canEditPost:s,canReviewPost:l,canEditUser:d}},Ja=jee;var Wee=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>_(this,null,function*(){return (yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},yc=Wee;var ZT={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:()=>{},goToPostComposerPage:()=>{},goToStoryCreationPage:()=>{},goToSocialHomePage:()=>{},goToMyCommunitiesSearchPage:()=>{},setNavigationBlocker:()=>{},onBack:()=>{},onClickStory:(e,t,o)=>{}};process.env.NODE_ENV!=="production"&&(ZT={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()"),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()"),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`)});var Jee=createContext(ZT),Le=()=>useContext(Jee);var hc=e=>{let{onEditCommunity:t}=Le(),{community:o}=Mt({communityId:e,shouldCall:!!e}),r=rt({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Ln({targetType:"community",targetId:e,feedType:"reviewing"}),i=yc(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=Ja({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:f=>e&&CommunityRepository.updateCommunity(e,f),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};function oa({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=mv(),s=useRef(null);return Pn({fetcher:e,params:t,callback:l=>{let{error:d,loading:p}=l;if(p)return;if(d)throw d;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 Xa({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}var ote=m.div`
|
|
3468
|
+
`;var DT={community__category:"N"};var HT={communityCategoryName:"Va"};function Ka({pageId:e="*",componentId:t="*",categoryName:o}){let r="community_category_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("div",{className:HT.communityCategoryName,style:a,"data-qa-anchor":n},o)}var An=({pageId:e="*",componentId:t="*",categories:o,maxCategories:r})=>{let n="community_category",{config:i,themeStyles:a,accessibilityId:s,isExcluded:l}=A({pageId:e,componentId:t,elementId:n});if(l)return null;let d=o.slice(0,2),p=Math.max(0,o.length-d.length);return R.createElement("div",{"data-qa-anchor":s,style:a,className:DT.community__category},typeof r=="number"?R.createElement(R.Fragment,null,d.map(u=>R.createElement(Ka,{categoryName:u.name})),p>0&&R.createElement(Ka,{categoryName:`+${p}`})):o.map(u=>R.createElement(Ka,{key:u.categoryId,categoryName:u.name})))};var FT=e=>{let r=dt({fetcher:ReactionRepository.getReactions,params:e,shouldCall:!!e.referenceId&&!!e.referenceType}),{items:t}=r,o=P(r,["items"]);return c({reactions:t},o)};var Rl,em,Rp,OT,cc,Z7,s1=class s1{constructor(){Io(this,Rp);Io(this,cc);Io(this,Rl,void 0);_a(this,Rl,new Map);}static get instance(){return Uo(s1,em)||_a(s1,em,new s1),Uo(s1,em)}hasReachedLimit(t){let o=Ar(this,cc,Z7).call(this,t);return Uo(this,Rl).get(t)===o}markSeen(t){Uo(this,Rl).set(t,Ar(this,cc,Z7).call(this,t));}};Rl=new WeakMap,em=new WeakMap,Rp=new WeakSet,OT=function(t){let o=Hr.instance.getAdFrequencyByPlacement(t);return o==null||o.type!=="time-window"?0:o.value},cc=new WeakSet,Z7=function(t){let o=ln(),r=o.startOf("day").diff(o,"minute"),n=Math.ceil(r/Ar(this,Rp,OT).call(this,t));return `${o.format("DD-MM-YYYY")}-${n}`},Io(s1,em,void 0);var tm=s1;var om,dc,pc,Q7,l1=class l1{constructor(){Io(this,pc);Io(this,dc,"amity.seenRecencyCache");}static get instance(){return Uo(l1,om)||_a(l1,om,new l1),Uo(l1,om)}getSeenRecencyByAdId(t){return Ar(this,pc,Q7).call(this)[t]}setSeenRecencyCache(t,o){let r=Ar(this,pc,Q7).call(this);r[t]=o,window.localStorage.setItem(Uo(this,dc),JSON.stringify(r));}};om=new WeakMap,dc=new WeakMap,pc=new WeakSet,Q7=function(){return JSON.parse(window.localStorage.getItem(Uo(this,dc))||"{}")},Io(l1,om,void 0);var e3=l1,rm,uc,W7,m1=class m1{constructor(){Io(this,uc);this.isLoading=!0;this.ads=[];this.settings=null;this.subscribers=[];Client.onSessionStateChange(t=>_(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 Uo(m1,rm)||_a(m1,rm,new m1),Uo(m1,rm)}onNetworkAdsData(t){!this.isLoading&&this.ads.length>0&&this.settings&&t({ads:this.ads,settings:this.settings}),this.subscribers.push(t);}getLastSeen(t){return e3.instance.getSeenRecencyByAdId(t)}markSeen(t,o){var r;e3.instance.setSeenRecencyCache(t.adId,Date.now()),((r=Ar(this,uc,W7).call(this,o))==null?void 0:r.type)==="time-window"&&tm.instance.markSeen(o),t.analytics.markAsSeen(o);}markClicked(t,o){t.analytics.markLinkAsClicked(o);}getAdFrequencyByPlacement(t){return Ar(this,uc,W7).call(this,t)}};rm=new WeakMap,uc=new WeakSet,W7=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}},Io(m1,rm,void 0);var Hr=m1;var nm,o3,zT,r3,UT,n3,$T,c1=class c1{constructor(){Io(this,o3);Io(this,r3);Io(this,n3);}static get instance(){return Uo(c1,nm)||_a(c1,nm,new c1),Uo(c1,nm)}recommendedAds({ads:t,placement:o,count:r,communityId:n}){let i=Ar(this,o3,zT).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,d=i.get(s.adId);if(d==null)return;let p=l+Math.pow(Math.E,2*d);a.set(s.adId,p);}),Ar(this,n3,$T).call(this,{ads:t,scores:a,count:r})}};nm=new WeakMap,o3=new WeakSet,zT=function(t){let o=t.sort((a,s)=>Hr.instance.getLastSeen(s.adId)-Hr.instance.getLastSeen(a.adId)),r=new Map,n=Hr.instance.getLastSeen(o[o.length-1].adId);return Hr.instance.getLastSeen(o[0].adId)===n?o.forEach(a=>{r.set(a.adId,1);}):o.forEach((a,s)=>{let l=s/o.length;r.set(a.adId,l);}),r},r3=new WeakSet,UT=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},n3=new WeakSet,$T=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,g)=>u+g,0)),d=Ar(this,r3,UT).call(this,l);i.push(n[d]),n.splice(d,1);}return i},Io(c1,nm,void 0);var t3=c1;var jT=createContext({isLoading:!0,ads:[],settings:null,saveItemsPagination:()=>{},getItemsPaginationCache:()=>{}});var q7=()=>useContext(jT).settings,GT=({count:e,placement:t,communityId:o})=>{let n=useContext(jT).ads,[i,a]=useState([]),s=q7(),l=Hr.instance.getAdFrequencyByPlacement(t);return useEffect(()=>{s!=null&&s.enabled&&((l==null?void 0:l.type)==="time-window"&&tm.instance.hasReachedLimit(t)||a(t3.instance.recommendedAds({ads:n,placement:t,count:e,communityId:o})));},[n,e,t,o]),i};var Hee=({placement:e,pageSize:t,communityId:o,getItemId:r})=>{let n=q7(),[i,a]=useState(0),[s,l]=useState([]),[d,p]=useState(0),u=Hr.instance.getAdFrequencyByPlacement(e),g=(u==null?void 0:u.type)==="fixed"?t/u.value:1,f=GT({count:g,placement:e,communityId:o});return {combineItemsWithAds:C=>{if(!(n!=null&&n.enabled))return C;if((u==null?void 0:u.type)==="fixed"){let h=new Set(C.map(j=>r(j))),x=s.map(j=>{let E=r(j[0]);if(!h.has(E))return null;let V=C.find(G=>r(G)===E);return V?j.length===1?[V]:[V,j[1]]:j}).filter(Yr),b=x[0],M=(()=>{if(b){let j=C.findIndex(E=>r(E)===r(b[0]));return j===-1?0:j}return 0})(),w=[...(C||[]).slice(0,M).map(j=>[j]),...x],k=C.slice(M).filter(j=>{let E=r(j);return !w.some(V=>r(V[0])===E)}),T=i,L=d,D=k.map(j=>{if(L=L+1,!(L%u.value===0))return [j];let V=f[T];return T=T+1>f.length-1?0:T+1,[j,V]});a(T),p(L);let U=[...w,...D];return l([...w,...D]),U.length===0&&(a(0),p(0)),[...w,...D].flatMap(j=>j)}else if((u==null?void 0:u.type)==="time-window")return C.length===0?C:[...C.slice(0,1),f[0],...C.slice(1)].filter(Yr);return C},reset:()=>{a(0),l([]),p(0);}}},gc=({fetcher:e,params:t,callback:o=()=>{},config:r,shouldCall:n=!0,placement:i,communityId:a,pageSize:s,getItemId:l})=>{let{combineItemsWithAds:d}=Hee({placement:i,pageSize:s,communityId:a,getItemId:l}),f=dt({fetcher:e,params:t,config:r,shouldCall:n}),{items:p}=f,u=P(f,["items"]),g=useMemo(()=>d(p).flatMap(y=>y),[p]);return N(c({},u),{items:g})};var ta=e=>{let r=gc({fetcher:StoryRepository.getActiveStoriesByTarget,params:e,shouldCall:!0,pageSize:10,placement:"story",getItemId:n=>(n==null?void 0:n.storyId)||""}),{items:t}=r,o=P(r,["items"]);return c({stories:t.filter(Yr)},o)};var X7=e=>{let t=Po(),[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=()=>_(void 0,null,function*(){if(e!=null)try{r(!0),yield CommentRepository.flagComment(e);}catch(p){r(!1);}finally{a();}}),l=()=>_(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=>_(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 fc=(i=>(i.MEMBER="member",i.MODERATOR="moderator",i.SUPER_MODERATOR="super-moderator",i.COMMUNITY_MODERATOR="community-moderator",i.CHANNEL_MODERATOR="channel-moderator",i))(fc||{});var{COMMUNITY_MODERATOR:Vee}=fc;function im({communityId:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,roles:[Vee]},shouldCall:!!e&&t}),{items:o}=n,r=P(n,["items"]);return c({moderators:o},r)}var jee=({community:e})=>{var p,u,g,f;let{currentUserId:t}=J(),{moderators:o}=Nn(e==null?void 0:e.communityId),{client:r}=J(),i=o.find(y=>y.userId===t)!=null;if(e==null)return {isModerator:i,canEdit:!1,canEditPost:!1,canReviewPost:!1,canEditUser:!1};let a=(p=r==null?void 0:r.hasPermission(lr.EditCommunityPermission).community(e.communityId))!=null?p:!1,s=(u=r==null?void 0:r.hasPermission(lr.EditCommunityFeedPostPermission).community(e==null?void 0:e.communityId))!=null?u:!1,l=(g=r==null?void 0:r.hasPermission(lr.ReviewCommunityPost).community(e.communityId))!=null?g:!1,d=(f=r==null?void 0:r.hasPermission(lr.EditCommunityUserPermission).community(e.communityId))!=null?f:!1;return {isModerator:i,canEdit:a,canEditPost:s,canReviewPost:l,canEditUser:d}},Ja=jee;var Wee=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>_(this,null,function*(){return (yield CategoryRepository.getCategory(i)).data})));o(n);})}r();},[e]),t},yc=Wee;var ZT={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:()=>{},goToPostComposerPage:()=>{},goToStoryCreationPage:()=>{},goToSocialHomePage:()=>{},goToMyCommunitiesSearchPage:()=>{},setNavigationBlocker:()=>{},onBack:()=>{},onClickStory:(e,t,o)=>{}};process.env.NODE_ENV!=="production"&&(ZT={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()"),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()"),onClickStory:(e,t,o)=>console.log(`NavigationContext onClickStory(${e}, ${t}, ${o})`)});var Jee=createContext(ZT),Le=()=>useContext(Jee);var hc=e=>{let{onEditCommunity:t}=Le(),{community:o}=Mt({communityId:e,shouldCall:!!e}),r=rt({fileId:o==null?void 0:o.avatarFileId,imageSize:"medium"}),{posts:n}=Ln({targetType:"community",targetId:e,feedType:"reviewing"}),i=yc(o==null?void 0:o.categoryIds),{canReview:a,canEdit:s}=Ja({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:f=>e&&CommunityRepository.updateCommunity(e,f),closeCommunity:()=>e&&CommunityRepository.deleteCommunity(e)}};function oa({fetcher:e,params:t,callback:o=()=>{},options:r,shouldSubscribe:n=!0,getSubscribedTopic:i}){let{subscribe:a}=mv(),s=useRef(null);return Pn({fetcher:e,params:t,callback:l=>{let{error:d,loading:p}=l;if(p)return;if(d)throw d;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 Xa({targetId:e,targetType:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:StoryRepository.getActiveStoriesByTarget,params:{targetId:e,targetType:t},callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:()=>getCommunityStoriesTopic({targetId:e,targetType:t})})}var ote=m.div`
|
|
3468
3469
|
display: flex;
|
|
3469
3470
|
flex-direction: column;
|
|
3470
3471
|
padding-left: 16px;
|
|
@@ -3684,7 +3685,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3684
3685
|
margin-bottom: 4px;
|
|
3685
3686
|
`;var uk=m.div`
|
|
3686
3687
|
${({theme:e})=>e.typography.caption}
|
|
3687
|
-
`;var Yte=g=>{var f=g,{avatarFileUrl:e,community:t,communityCategories:o,membersCount:r,categoryIds:n,description:i,onClick:a,isOfficial:s,isPublic:l,name:d,loading:p}=f,u=P(f,["avatarFileUrl","community","communityCategories","membersCount","categoryIds","description","onClick","isOfficial","isPublic","name","loading"]);return R.createElement(mk,c({onClick:()=>(t==null?void 0:t.communityId)&&(a==null?void 0:a(t.communityId))},u),R.createElement(ck,{backgroundImage:e}),R.createElement(pk,null,p&&R.createElement(Me,{style:{fontSize:8}}),R.createElement("div",null,R.createElement(dk,{isOfficial:s,isPublic:l,isTitle:!0,name:d,truncate:2,categoryIds:n,transparentCategoryTag:!0,badgeTheme:"outline"}),R.createElement(An,{categories:o||[],maxCategories:2})),!p&&i?R.createElement(mw,{lines:2},R.createElement(uk,null,i)):null))},
|
|
3688
|
+
`;var Yte=g=>{var f=g,{avatarFileUrl:e,community:t,communityCategories:o,membersCount:r,categoryIds:n,description:i,onClick:a,isOfficial:s,isPublic:l,name:d,loading:p}=f,u=P(f,["avatarFileUrl","community","communityCategories","membersCount","categoryIds","description","onClick","isOfficial","isPublic","name","loading"]);return R.createElement(mk,c({onClick:()=>(t==null?void 0:t.communityId)&&(a==null?void 0:a(t.communityId))},u),R.createElement(ck,{backgroundImage:e}),R.createElement(pk,null,p&&R.createElement(Me,{style:{fontSize:8}}),R.createElement("div",null,R.createElement(dk,{isOfficial:s,isPublic:l,isTitle:!0,name:d,truncate:2,categoryIds:n,transparentCategoryTag:!0,badgeTheme:"outline"}),R.createElement(An,{categories:o||[],maxCategories:2})),!p&&i?R.createElement(mw,{lines:2},R.createElement(uk,null,i)):null))},mm=e=>{let t=W("UICommunityCard");return t?t(e):R.createElement(Yte,c({},e))};var toe=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(e==null||e.length===0)return;let n=yield Promise.all(e.map(i=>_(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},Ra=toe;var roe=r=>{var n=r,{communityId:e,onClick:t}=n,o=P(n,["communityId","onClick"]);var u;let i=_t(e),a=At(i==null?void 0:i.avatarFileId),s=Ra((i==null?void 0:i.categoryIds)||[]),l=se({fileId:(u=a==null?void 0:a.fileId)!=null?u:void 0});if(i==null)return R.createElement(R.Fragment,null);let{membersCount:d,description:p}=i;return R.createElement(mm,c({avatarFileUrl:l,community:i,communityCategories:s,membersCount:d,description:p,isOfficial:i.isOfficial,isPublic:i.isPublic,name:i.displayName,categoryIds:i.categoryIds,onClick:t},o))},p3=memo(roe);function r8(e){let r=ze({fetcher:CommunityRepository.getRecommendedCommunities,params:N(c({},e),{limit:(e==null?void 0:e.limit)||10})}),{items:t}=r,o=P(r,["items"]);return c({communities:t},o)}var soe=()=>{let {onClickCommunity:e}=X(),{communities:t,isLoading:o}=r8({limit:7});Be();let {faqCommunityId:n,bestPracticeCommunityId:i}=en();return R.createElement("div",{style:{margin:"11px 0px"}},R.createElement(lk,{title:o?R.createElement(Me,{style:{fontSize:12,maxWidth:156}}):R.createElement(FormattedMessage,{id:"recommendedList"}),columns:{0:1,640:2,768:2,1280:3},container:document.body},o&&new Array(4).fill(1).map((s,l)=>R.createElement(mm,{key:l,loading:!0})),!o&&t.filter(s=>s.communityId!==n&&s.communityId!==i).map(({communityId:s})=>R.createElement(p3,{key:s,communityId:s,onClick:l=>e(l)}))))},fk=memo(soe);var coe=m.div`
|
|
3688
3689
|
display: grid;
|
|
3689
3690
|
grid-template-columns: 118px auto;
|
|
3690
3691
|
|
|
@@ -3748,7 +3749,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3748
3749
|
margin-right: 0.375em;
|
|
3749
3750
|
color: ${({theme:e})=>e.palette.primary.main};
|
|
3750
3751
|
} */
|
|
3751
|
-
`,foe=({avatarFileUrl:e,description:t,categories:o=[],membersCount:r,onClick:n,isOfficial:i,isPublic:a,name:s,loading:l,disabledNumber:d,index:p})=>{let u=useMedia("(min-width: 768px)"),g=Intl.NumberFormat("en-US",{minimumIntegerDigits:2});return R.createElement(coe,{onClick:n},R.createElement(doe,{backgroundImage:e}),R.createElement(poe,null,l?R.createElement(R.Fragment,null,R.createElement(Me,{style:{fontSize:"0.5rem",maxWidth:"7.5rem"}}),R.createElement("div",null,R.createElement(Me,{style:{fontSize:"0.5rem",maxWidth:"13.5rem"}})),R.createElement(Me,{width:"2.5rem",style:{fontSize:"0.5rem"}}),R.createElement(Me,{width:"2.5rem",style:{fontSize:"0.5rem",marginLeft:"0.75rem"}})):R.createElement(R.Fragment,null,d?R.createElement(ea,{isOfficial:i,isPublic:a,name:s}):R.createElement("div",{style:{display:"flex",gap:"6px",alignItems:"center"}},g.format(p+1),R.createElement(goe,{isOfficial:i,isPublic:a,name:s})),R.createElement(An,{categories:o,maxCategories:2}),u&&t&&R.createElement(mw,{lines:2},R.createElement(uoe,null,t)))))},u3=e=>{let t=W("UITrendingItem");return t?t(e):R.createElement(foe,c({},e))};var Coe=({communityId:e,onClick:t,loading:o,disabledNumber:r=!1,index:n})=>{let i=_t(e),a=se({fileId:i==null?void 0:i.avatarFileId}),s=Ra(i==null?void 0:i.categoryIds),l=()=>t(e);if(i==null)return null;let{membersCount:d,description:p}=i;return R.createElement(u3,{avatarFileUrl:a,description:p,categories:s,membersCount:d,isOfficial:i.isOfficial,isPublic:i.isPublic,name:i.displayName,loading:o,onClick:l,disabledNumber:r,index:n})};var
|
|
3752
|
+
`,foe=({avatarFileUrl:e,description:t,categories:o=[],membersCount:r,onClick:n,isOfficial:i,isPublic:a,name:s,loading:l,disabledNumber:d,index:p})=>{let u=useMedia("(min-width: 768px)"),g=Intl.NumberFormat("en-US",{minimumIntegerDigits:2});return R.createElement(coe,{onClick:n},R.createElement(doe,{backgroundImage:e}),R.createElement(poe,null,l?R.createElement(R.Fragment,null,R.createElement(Me,{style:{fontSize:"0.5rem",maxWidth:"7.5rem"}}),R.createElement("div",null,R.createElement(Me,{style:{fontSize:"0.5rem",maxWidth:"13.5rem"}})),R.createElement(Me,{width:"2.5rem",style:{fontSize:"0.5rem"}}),R.createElement(Me,{width:"2.5rem",style:{fontSize:"0.5rem",marginLeft:"0.75rem"}})):R.createElement(R.Fragment,null,d?R.createElement(ea,{isOfficial:i,isPublic:a,name:s}):R.createElement("div",{style:{display:"flex",gap:"6px",alignItems:"center"}},g.format(p+1),R.createElement(goe,{isOfficial:i,isPublic:a,name:s})),R.createElement(An,{categories:o,maxCategories:2}),u&&t&&R.createElement(mw,{lines:2},R.createElement(uoe,null,t)))))},u3=e=>{let t=W("UITrendingItem");return t?t(e):R.createElement(foe,c({},e))};var Coe=({communityId:e,onClick:t,loading:o,disabledNumber:r=!1,index:n})=>{let i=_t(e),a=se({fileId:i==null?void 0:i.avatarFileId}),s=Ra(i==null?void 0:i.categoryIds),l=()=>t(e);if(i==null)return null;let{membersCount:d,description:p}=i;return R.createElement(u3,{avatarFileUrl:a,description:p,categories:s,membersCount:d,isOfficial:i.isOfficial,isPublic:i.isPublic,name:i.displayName,loading:o,onClick:l,disabledNumber:r,index:n})};var dm=memo(Coe);var voe=m.h2`
|
|
3752
3753
|
${({theme:e})=>e.typography.headline};
|
|
3753
3754
|
margin: 0 0 1rem 0;
|
|
3754
3755
|
`,yk=voe;function n8(e){let r=ze({fetcher:CommunityRepository.getTrendingCommunities,params:N(c({},e),{limit:(e==null?void 0:e.limit)||10})}),{items:t}=r,o=P(r,["items"]);return c({communities:t},o)}var Ioe=m.ul`
|
|
@@ -3765,7 +3766,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3765
3766
|
@media (min-width: 1280px) {
|
|
3766
3767
|
grid-template-columns: repeat(2, 1fr);
|
|
3767
3768
|
}
|
|
3768
|
-
`,woe=()=>{let{onClickCommunity:e}=X(),{communities:t,loadMoreHasBeenCalled:o}=n8({limit:7});console.log("communities: ",t);let{faqCommunityId:r,bestPracticeCommunityId:n}=en(),i=o?R.createElement(Me,{style:{fontSize:12,maxWidth:156}}):R.createElement(FormattedMessage,{id:"todaysTrendingTitle"}),a=o?new Array(5).fill(1).map((s,l)=>R.createElement("li",{key:l},R.createElement(u3,{index:l,loading:!0}))):t.filter(s=>s.communityId!==r&&s.communityId!==n).slice(0,5).map(({communityId:s},l)=>R.createElement("li",{key:s},R.createElement(
|
|
3769
|
+
`,woe=()=>{let{onClickCommunity:e}=X(),{communities:t,loadMoreHasBeenCalled:o}=n8({limit:7});console.log("communities: ",t);let{faqCommunityId:r,bestPracticeCommunityId:n}=en(),i=o?R.createElement(Me,{style:{fontSize:12,maxWidth:156}}):R.createElement(FormattedMessage,{id:"todaysTrendingTitle"}),a=o?new Array(5).fill(1).map((s,l)=>R.createElement("li",{key:l},R.createElement(u3,{index:l,loading:!0}))):t.filter(s=>s.communityId!==r&&s.communityId!==n).slice(0,5).map(({communityId:s},l)=>R.createElement("li",{key:s},R.createElement(dm,{index:l,communityId:s,onClick:d=>e(d)})));return R.createElement("div",null,R.createElement(yk,null,i),R.createElement(Ioe,null,a))},hk=woe;var Ck=m.div`
|
|
3769
3770
|
max-width: 960px;
|
|
3770
3771
|
margin: 0 auto;
|
|
3771
3772
|
overflow-x: hidden;
|
|
@@ -3838,7 +3839,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3838
3839
|
@media (min-width: 1800px) {
|
|
3839
3840
|
grid-template-columns: repeat(3, 1fr);
|
|
3840
3841
|
}
|
|
3841
|
-
`,Foe=()=>{let{onClickCommunity:e}=X(),{communities:t,loadMoreHasBeenCalled:o,loadMore:r,hasMore:n}=xr({membership:"all",sortBy:"displayName",limit:12});return R.createElement("div",null,R.createElement(Ik,{title:"All groups",columns:{1280:2,720:1},hasMore:n,loadMore:r},t.map(({communityId:i},a)=>R.createElement(Hoe,null,R.createElement("li",{key:i},R.createElement(
|
|
3842
|
+
`,Foe=()=>{let{onClickCommunity:e}=X(),{communities:t,loadMoreHasBeenCalled:o,loadMore:r,hasMore:n}=xr({membership:"all",sortBy:"displayName",limit:12});return R.createElement("div",null,R.createElement(Ik,{title:"All groups",columns:{1280:2,720:1},hasMore:n,loadMore:r},t.map(({communityId:i},a)=>R.createElement(Hoe,null,R.createElement("li",{key:i},R.createElement(dm,{index:a,communityId:i,onClick:s=>e(s),disabledNumber:!0}))))))},wk=Foe;function Ooe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),R.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 d1=Ooe;function zoe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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 s8=zoe;function Uoe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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 p1=Uoe;function $oe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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 l8=$oe;var Voe=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),R.createElement("path",{d:`M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17
|
|
3842
3843
|
0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7
|
|
3843
3844
|
4.7-12.3 0-17z`})),m8=Voe;function joe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 24 24"},e),R.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 Ic=joe;function Goe(e){return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.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 wc=Goe;var Qoe=({isOtherUserProfile:e=!1})=>{let{isLoading:t,isNoNicknameUser:o,isAnonymousUser:r}=Be(),[n,i]=useState([{name:"Explore",pageType:"explore"},{name:"Feed",pageType:"newsfeed"},{name:"Profile",pageType:"userfeed"},{name:"My groups",pageType:"mycommunities"}]);return useEffect(()=>{i(a=>o||r?a.filter(s=>s.name==="Profile"&&e?!0:s.name!=="Profile"&&s.name!=="My groups"&&s.name!=="Feed"):a);},[r,o,e]),t?null:R.createElement(q_,null,R.createElement(Woe,{options:n}),!o&&!r&&R.createElement(Y_,null,R.createElement(Xp,{isHideUser:!0})))},es=Qoe,Woe=({options:e})=>{let[t,o]=useState(!1),{currentUserId:r}=J(),{onClickUser:n}=X(),i=useRef(null),{onChangePage:a,page:s}=X(),l=e.findIndex(C=>C.pageType===s.type),[d,p]=useState(e[l].name),[u,g]=useState(e),f=()=>{o(!t);},y=C=>{p(C==null?void 0:C.name),C.pageType==="userfeed"?(a(C.pageType),n(r)):a(C.pageType),o(!1);};useEffect(()=>{let C=e.filter(h=>h.name!==d);g(C);},[d,e]);let v=C=>{i.current&&!i.current.contains(C.target)&&o(!1);};return useEffect(()=>(document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v);}),[]),R.createElement(X_,null,R.createElement(K_,{onClick:()=>{u.length>0&&f();}},R.createElement(R_,null,d),u.length>0&&R.createElement(m8,{width:20,height:16})),u.length>0&&R.createElement(eT,{isOpen:t},u.map((C,h)=>R.createElement(tT,{key:h,onClick:()=>y(C)},C.name))))};var Ek=m.img`
|
|
3844
3845
|
width: 100%;
|
|
@@ -3985,7 +3986,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
3985
3986
|
z-index: 999;
|
|
3986
3987
|
transform: translateX(${({isOpen:e})=>e?0:"-100%"});
|
|
3987
3988
|
transition: transform 0.3s ease-in-out;
|
|
3988
|
-
`;m(
|
|
3989
|
+
`;m(b2)`
|
|
3989
3990
|
cursor: pointer;
|
|
3990
3991
|
`;var tre=({isOpen:e,toggleOpen:t})=>{let {onChangePage:o}=X();useIntl();return R.createElement("div",null,R.createElement(Zk,{"data-qa-anchor":"news-feed"},R.createElement(es,null),R.createElement(Qk,null,R.createElement(a1,{targetType:"globalFeed",goToExplore:()=>o("explore"),showPostCreator:!0}))))},qk=tre;var Kk=21;var Jk={image:R.createElement(i4,null),video:R.createElement(s4,null),liveStream:R.createElement(a4,null)},Xk={image:R.createElement(FormattedMessage,{id:"mediaGallery.images.empty"}),video:R.createElement(FormattedMessage,{id:"mediaGallery.videos.empty"}),liveStream:R.createElement(FormattedMessage,{id:"mediaGallery.liveStreams.empty"})};var Yk=m(Ir)`
|
|
3991
3992
|
&${s3} {
|
|
@@ -4039,7 +4040,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4039
4040
|
border-radius: 4px 4px 0 0;
|
|
4040
4041
|
border: 1px solid #e6e6e6;
|
|
4041
4042
|
margin-bottom: 12px;
|
|
4042
|
-
`;var
|
|
4043
|
+
`;var um=m.div`
|
|
4043
4044
|
width: 100%;
|
|
4044
4045
|
background: #fff;
|
|
4045
4046
|
display: flex;
|
|
@@ -4059,7 +4060,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4059
4060
|
> *:first-child {
|
|
4060
4061
|
margin-right: 10px;
|
|
4061
4062
|
}
|
|
4062
|
-
`,
|
|
4063
|
+
`,gm=m.div`
|
|
4063
4064
|
display: flex;
|
|
4064
4065
|
flex-direction: row;
|
|
4065
4066
|
flex-wrap: wrap;
|
|
@@ -4088,14 +4089,14 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4088
4089
|
padding: 80px 16px;
|
|
4089
4090
|
color: ${({theme:e})=>e.palette.base.shade3};
|
|
4090
4091
|
width: 100%;
|
|
4091
|
-
`,C3=({message:e})=>R.createElement(fre,null,R.createElement(
|
|
4092
|
+
`,C3=({message:e})=>R.createElement(fre,null,R.createElement(v2,{width:48,height:48}),R.createElement(gp,null,e));var vre=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=oe(o),{onClickUser:i}=X(),{confirm:a}=_e(),{isNoNicknameUser:s,isAnonymousUser:l}=Be(),d=we(),{formatMessage:p}=useIntl(),{isFlaggedByMe:u,toggleFlagUser:g}=os(o),f=()=>_(void 0,null,function*(){yield g(),d.success({content:R.createElement(FormattedMessage,{id:"report.reportSent"})});}),y=()=>UserRepository.Relationship.unfollow(o),v=e===t,C=t===o,h=()=>{let M=n!=null&&n.displayName?p({id:"user.unfollow.confirm.title"},{displayName:n.displayName}):p({id:"user.unfollow.confirm.title.thisUser"}),I=n!=null&&n.displayName?p({id:"user.unfollow.confirm.body"},{displayName:n.displayName}):p({id:"user.unfollow.confirm.body.thisUser"});a({title:M,content:I,cancelText:p({id:"buttonText.cancel"}),okText:p({id:"buttonText.unfollow"}),onOk:y});},x=useCallback(()=>{i(o);},[i,o]),b=useMemo(()=>{let M=[];return C||M.push({name:p(u?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:f}),v&&M.push({name:p({id:"follower.menuItem.unfollow"}),action:h}),M},[u,v,C,h,f]);return R.createElement(um,{key:o},R.createElement(h3,null,R.createElement(li,{userId:o,onClick:x}),!l&&!s&&R.createElement(So,{options:b})))};function xre({userId:e}){let{followings:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=y8({userId:e,status:"all"});return {items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,d)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var bre=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{currentUserId:r}=J(),{items:n,loadMore:i,hasMore:a}=xre({userId:e}),s=()=>a?R.createElement(na,{onClick:()=>i==null?void 0:i()}):null;return n.length===0?R.createElement(R.Fragment,null,R.createElement(gm,null,R.createElement(C3,{message:o({id:"follow.placeholder.noFollowings"})})),s()):R.createElement(R.Fragment,null,R.createElement(gm,null,n.map(l=>ti(l)?R.createElement(Me,{style:{fontSize:8}}):R.createElement(vre,{key:`${l.from}-${l.to}`,userId:l.to,profileUserId:e,currentUserId:r,onClick:()=>t(l.to)}))),s())},nS=bre;function ia({userId:e,status:t}){let n=ze({fetcher:UserRepository.Relationship.getFollowers,params:{userId:e,status:t!=null?t:void 0},shouldCall:!!e}),{items:o}=n,r=P(n,["items"]);return c({followers:o},r)}var Pre=({profileUserId:e,currentUserId:t,userId:o,onClick:r})=>{let n=oe(o),i=se({fileId:n==null?void 0:n.avatarFileId,imageSize:"small"}),{onClickUser:a}=X(),{confirm:s}=_e(),l=we(),{isNoNicknameUser:d,isAnonymousUser:p}=Be(),{formatMessage:u}=useIntl(),{isFlaggedByMe:g,toggleFlagUser:f}=os(o||void 0),y=()=>_(void 0,null,function*(){yield f(),l.success({content:R.createElement(FormattedMessage,{id:"report.reportSent"})});}),v=()=>{o&&UserRepository.Relationship.declineMyFollower(o);},C=e===t,h=t===o,x=()=>{s({title:R.createElement(FormattedMessage,{id:"follower.title.removeUser",values:{displayName:n==null?void 0:n.displayName}}),content:R.createElement(FormattedMessage,{id:"follower.body.removeUser",values:{displayName:n==null?void 0:n.displayName}}),cancelText:u({id:"buttonText.cancel"}),okText:u({id:"buttonText.remove"}),onOk:v});},b=useCallback(()=>{o!=null&&a(o);},[a,o]),M=useMemo(()=>{let I=[];return h||I.push({name:u(g?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:y}),C&&I.push({name:u({id:"follower.menuItem.removeUser"}),action:x}),I},[g,C,h,x,y]);return R.createElement(um,{key:o},R.createElement(h3,null,R.createElement(Ep,{userId:n==null?void 0:n.userId,displayName:n==null?void 0:n.displayName,avatarFileUrl:i,onClick:b}),!p&&!d&&R.createElement(So,{options:M})))};function _re({userId:e}){let{followers:t,isLoading:o,loadMore:r,hasMore:n,loadMoreHasBeenCalled:i}=ia({userId:e,status:"accepted"});return {items:useMemo(()=>{function s(){return new Array(5).fill(1).map((l,d)=>({skeleton:!0}))}return o&&!i?s():o&&i?[...t,...s()]:t},[t,o,i]),isLoading:o,hasMore:n,loadMore:r,loadMoreHasBeenCalled:i}}var Tre=({userId:e,onItemClick:t})=>{let{formatMessage:o}=useIntl(),{items:r,loadMore:n,hasMore:i}=_re({userId:e}),{currentUserId:a}=J(),s=()=>i?R.createElement(na,{onClick:()=>n==null?void 0:n()}):null;return r.length===0?R.createElement(R.Fragment,null,R.createElement(gm,null,R.createElement(C3,{message:o({id:"follow.placeholder.noFollowers"})})),s()):R.createElement(R.Fragment,null,R.createElement(gm,null,r.map(l=>ti(l)?R.createElement(Me,{style:{fontSize:8}}):R.createElement(Pre,{key:`${l.from}-${l.to}`,userId:l.from,profileUserId:e,currentUserId:a,onClick:()=>t(l.to)}))),s())},sS=Tre;var fm=m.div`
|
|
4092
4093
|
display: grid;
|
|
4093
4094
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
4094
4095
|
gap: 1rem;
|
|
4095
4096
|
`,lS=m(ni)`
|
|
4096
4097
|
margin-right: auto;
|
|
4097
4098
|
margin-left: auto;
|
|
4098
|
-
`;var Sre=({userId:e})=>{let t=we();return R.createElement(
|
|
4099
|
+
`;var Sre=({userId:e})=>{let t=we();return R.createElement(um,null,R.createElement(li,{userId:e}),R.createElement(tS,null,R.createElement(he,{fullWidth:!0,onClick:()=>_(void 0,null,function*(){e&&(yield UserRepository.Relationship.acceptMyFollower(e),t.success({content:R.createElement(FormattedMessage,{id:"notification.done"})}));})},R.createElement(FormattedMessage,{id:"request.accept"})),R.createElement(Y,{fullWidth:!0,onClick:()=>_(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),t.success({content:R.createElement(FormattedMessage,{id:"notification.done"})}));})},R.createElement(FormattedMessage,{id:"request.decline"}))))},Nre=({userId:e})=>{let{followers:t,hasMore:o,loadMore:r,isLoading:n,loadMoreHasBeenCalled:i}=ia({userId:e,status:"pending"}),a=useMemo(()=>{function l(){return new Array(5).fill(1).map((d,p)=>({userId:p,skeleton:!0}))}return n&&!i?l():n&&i?[...t,...l()]:t},[t,n,i]),s=()=>o?R.createElement(na,{onClick:()=>r()}):null;return a.length===0?R.createElement(R.Fragment,null,R.createElement(fm,null,null),s()):R.createElement(R.Fragment,null,R.createElement(fm,null,a.map(l=>ti(l)?R.createElement(Me,{style:{fontSize:8}}):R.createElement(Sre,{key:`${l.from}-${l.to}`,userId:l.from}))),s())},cS=Nre;var an={FOLLOWINGS:"Following",FOLLOWERS:"Followers"},ym="Pending";[{value:an.FOLLOWINGS,label:R.createElement(FormattedMessage,{id:"tabs.followings"})},{value:an.FOLLOWERS,label:R.createElement(FormattedMessage,{id:"tabs.followers"})},{value:ym,label:R.createElement(FormattedMessage,{id:"tabs.pending"})}];var dS={tabButton:"O",tabButton__text:"qa"};function Dn(a){var s=a,{pageId:e="*",componentId:t="*",elementId:o="*",children:r,isActive:n=!1}=s,i=P(s,["pageId","componentId","elementId","children","isActive"]);let{accessibilityId:l,config:d,defaultConfig:p,isExcluded:u,uiReference:g,themeStyles:f}=A({pageId:e,componentId:t,elementId:o});return R.createElement(F,c({style:f,className:dS.tabButton,"data-active":n,"data-qa-anchor":l},i),R.createElement(R.Fragment,null,r))}var Dre=m.div`
|
|
4099
4100
|
display: flex;
|
|
4100
4101
|
flex-direction: column;
|
|
4101
4102
|
width: 100%;
|
|
@@ -4104,7 +4105,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4104
4105
|
border-radius: 8px;
|
|
4105
4106
|
border: 1px solid #e6e6e6;
|
|
4106
4107
|
background: #fff;
|
|
4107
|
-
`,Hre=({userId:e,activeTab:t,socialSettings:o,onTabChange:r,onFollowingListClick:n,onFollowerListClick:i})=>{let{currentUserId:a}=J(),s=x0(o),{formatMessage:l}=useIntl(),[d,p]=useState(Object.values(an).map(f=>({value:f,label:f}))),{followers:u}=ia({userId:e,status:"pending"}),g=a===e;return useEffect(()=>{u!=null&&u.length&&g&&s?p(Object.values(an).map(f=>({value:f,label:f})).concat({value:
|
|
4108
|
+
`,Hre=({userId:e,activeTab:t,socialSettings:o,onTabChange:r,onFollowingListClick:n,onFollowerListClick:i})=>{let{currentUserId:a}=J(),s=x0(o),{formatMessage:l}=useIntl(),[d,p]=useState(Object.values(an).map(f=>({value:f,label:f}))),{followers:u}=ia({userId:e,status:"pending"}),g=a===e;return useEffect(()=>{u!=null&&u.length&&g&&s?p(Object.values(an).map(f=>({value:f,label:f})).concat({value:ym,label:l({id:"tabs.pending"})})):p(Object.values(an).map(f=>({value:f,label:f})));},[l,g,u,r]),R.createElement(Dre,null,R.createElement(eS,null,d.map(f=>R.createElement(Dn,{key:f.value,onPress:()=>r(f.value),isActive:t===f.value},f.label))),t===an.FOLLOWINGS&&R.createElement(nS,{userId:e,onItemClick:f=>n(f)}),t===an.FOLLOWERS&&R.createElement(sS,{userId:e,onItemClick:f=>i(f)}),t.includes(ym)&&g&&R.createElement(cS,{userId:e}))},pS=Hre;var Wo={TIMELINE:"TIMELINE",GALLERY:"GALLERY",FOLLOWERS:"FOLLOWERS"},M8=[{value:Wo.TIMELINE,label:R.createElement(FormattedMessage,{id:"tabs.timeline"})},{value:Wo.GALLERY,label:R.createElement(FormattedMessage,{id:"tabs.gallery"})},{value:Wo.FOLLOWERS,label:R.createElement(FormattedMessage,{id:"tabs.followers"})}];var uS=m.div`
|
|
4108
4109
|
height: 100%;
|
|
4109
4110
|
max-width: 546px;
|
|
4110
4111
|
margin: 0 auto;
|
|
@@ -4118,7 +4119,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4118
4119
|
}
|
|
4119
4120
|
`;var Ore=e=>{let[t,o]=useState(0),[r,n]=useState(0),[i,a]=useState(0);return Lt({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}},fS=Ore;var Ure=e=>{var o;let t=Lt({fetcher:UserRepository.Relationship.getFollowInfo,params:e});return (o=t==null?void 0:t.status)!=null?o:"none"},x3=Ure;var jre=({userId:e,currentUserId:t,fileUrl:o,displayName:r,description:n,isMyProfile:i,onEditUser:a,onFollowRequest:s,onFollowDecline:l,onUnFollow:d,onPendingNotificationClick:p,onFollowingCountClick:u,onFollowerCountClick:g,onReportClick:f,isFollowPending:y,isFollowNone:v,isFollowAccepted:C,followerCount:h=0,followingCount:x=0,isPrivateNetwork:b})=>{let M=oe(e),{formatMessage:I}=useIntl(),{isFlaggedByMe:w}=os(e||void 0),{confirm:k}=_e(),{isNoNicknameUser:T,isAnonymousUser:L}=Be(),{openNicknameModal:D}=_o(),{triggerAnonymousNeedsLogin:U}=dr(),{followers:j}=ia({userId:t,status:"pending"}),E=M!=null&&M.displayName?I({id:"user.unfollow.confirm.title"},{displayName:M.displayName}):I({id:"user.unfollow.confirm.title.thisUser"}),V=M!=null&&M.displayName?I({id:"user.unfollow.confirm.body"},{displayName:M.displayName}):I({id:"user.unfollow.confirm.body.thisUser"}),G=[C&&!i?{name:I({id:"user.unfollow"}),action:()=>k({title:E,content:V,cancelText:I({id:"buttonText.cancel"}),okText:I({id:"buttonText.unfollow"}),onOk:()=>_(void 0,null,function*(){yield d==null?void 0:d();})})}:void 0,i?void 0:{name:I(w?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:()=>{f==null||f();}}].filter(Fe);return R.createElement("div",null,R.createElement(VP,{"data-qa-anchor":"user-info"},R.createElement(jP,null,R.createElement(GP,{"data-qa-anchor":"user-info-profile-image",avatar:o,backgroundImage:Ne}),R.createElement(ZP,null,i?R.createElement(T7,{"data-qa-anchor":"user-info-edit-profile-button",onClick:()=>(M==null?void 0:M.userId)&&(a==null?void 0:a(M.userId))},R.createElement($P,null)," ",R.createElement(FormattedMessage,{id:"user.editProfile"})):R.createElement(R.Fragment,null,b&&y&&R.createElement(T7,{onClick:()=>l==null?void 0:l()},R.createElement(zP,null,R.createElement(UP,null)),R.createElement(FormattedMessage,{id:"user.cancel_follow"})),v&&R.createElement(QP,{onClick:()=>{T?D():L?U():s==null||s();}},R.createElement(Hp,null)," ",R.createElement(FormattedMessage,{id:"user.follow"})))),!T&&!L&&R.createElement(JP,{options:G,pullRight:!1})),R.createElement(t_,null,R.createElement(mw,{lines:3},R.createElement(WP,{"data-qa-anchor":"user-info-profile-name"},r)),M!=null&&M.isGlobalBanned?R.createElement(Jn,{style:{marginLeft:"0.265rem",marginTop:"1px"}}):null),R.createElement(qP,null,R.createElement(k7,{onClick:()=>{u==null||u();}},ob(x)),R.createElement(FormattedMessage,{id:"counter.followings"}),R.createElement(k7,{onClick:()=>{g==null||g();}},ob(h)),R.createElement(FormattedMessage,{id:"counter.followers"})),R.createElement(KP,{"data-qa-anchor":"user-info-description"},n),i&&j.length>0&&b&&R.createElement(XP,{onClick:()=>{p==null||p();}},R.createElement(YP,null,R.createElement(e_,null),R.createElement(FormattedMessage,{id:"follow.pendingNotification.title"})),R.createElement(RP,null,R.createElement(FormattedMessage,{id:"follow.pendingNotification.body"})))))},hS=e=>{let t=W("UIUserInfo");return t?t(e):R.createElement(jre,c({},e))};function _8({userId:e,callback:t}){let o=oe(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(eI(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}function T8({userId:e,callback:t}){let o=oe(e),r=useRef(null);useEffect(()=>{if(o!=null)return r.current=subscribeTopic(tI(o),t),()=>{var n;(n=r.current)==null||n.call(r);}},[]);}var Rre=({userId:e,onUnFollow:t,onFollowingCountClick:o,onFollowerCountClick:r,onPendingNotificationClick:n,isPrivateNetwork:i})=>{let{currentUserId:a}=J(),{formatMessage:s}=useIntl(),{onEditUser:l}=X(),d=we(),p=oe(e),u=se({fileId:p==null?void 0:p.avatarFileId,imageSize:"small"});js({userId:e,level:SubscriptionLevels.USER}),_8({userId:a}),T8({userId:a});let g=x3(e),f=()=>_(void 0,null,function*(){e&&(yield UserRepository.Relationship.declineMyFollower(e),d.success({content:R.createElement(FormattedMessage,{id:"notification.done"})}));}),y=()=>_(void 0,null,function*(){e&&(yield UserRepository.Relationship.unfollow(e),t==null||t(),d.success({content:R.createElement(FormattedMessage,{id:"notification.done"})}));}),{followerCount:v,followingCount:C}=fS(e),h=()=>_(void 0,null,function*(){e&&(yield UserRepository.Relationship.follow(e));});if(g==null)return null;let x=g==="none",b=g==="accepted",M=g==="pending";return R.createElement(hS,{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:f,onFollowRequest:h,onUnFollow:y,onEditUser:l,isMyProfile:e===a,isFollowPending:M,isPrivateNetwork:i,isFollowNone:x,isFollowAccepted:b,followerCount:v,followingCount:C})},vS=memo(Rre);m(Wk)`
|
|
4120
4121
|
background-color: #fff;
|
|
4121
|
-
`;var tne=({userId:e,socialSettings:t,isOpen:o,toggleOpen:r,hideSideMenu:n})=>{let{currentUserId:i}=J(),[a,s]=useState(Wo.TIMELINE),[l,d]=useState(an.FOLLOWINGS),p=x3(e),[u,g]=useState(null),f=e===i,y=()=>_(void 0,null,function*(){s(Wo.TIMELINE);});useEffect(()=>{window!=null&&window.parent?window.scrollTo(0,0):u==null||u.scrollTo(0,0);},[e,u]);let v=p==="accepted",C=x0(t)&&!v&&!f,h=C?M8.filter(({value:x})=>x===Wo.TIMELINE):M8;return e?R.createElement("div",null,R.createElement(uS,{ref:x=>g(x)},R.createElement(gS,null,R.createElement(es,{isOtherUserProfile:e!==i})),R.createElement(vS,{key:e,userId:e,onUnFollow:y,onPendingNotificationClick:()=>{s(Wo.FOLLOWERS),d(
|
|
4122
|
+
`;var tne=({userId:e,socialSettings:t,isOpen:o,toggleOpen:r,hideSideMenu:n})=>{let{currentUserId:i}=J(),[a,s]=useState(Wo.TIMELINE),[l,d]=useState(an.FOLLOWINGS),p=x3(e),[u,g]=useState(null),f=e===i,y=()=>_(void 0,null,function*(){s(Wo.TIMELINE);});useEffect(()=>{window!=null&&window.parent?window.scrollTo(0,0):u==null||u.scrollTo(0,0);},[e,u]);let v=p==="accepted",C=x0(t)&&!v&&!f,h=C?M8.filter(({value:x})=>x===Wo.TIMELINE):M8;return e?R.createElement("div",null,R.createElement(uS,{ref:x=>g(x)},R.createElement(gS,null,R.createElement(es,{isOtherUserProfile:e!==i})),R.createElement(vS,{key:e,userId:e,onUnFollow:y,onPendingNotificationClick:()=>{s(Wo.FOLLOWERS),d(ym);},onFollowingCountClick:()=>{s(Wo.FOLLOWERS),d(an.FOLLOWINGS);},onFollowerCountClick:()=>{s(Wo.FOLLOWERS),d(an.FOLLOWERS);}}),R.createElement(y3,{"data-qa-anchor":"user-feed-header",tabs:h,activeTab:a,onChange:s}),a===Wo.TIMELINE&&R.createElement(a1,{targetType:f?"myFeed":"user",targetId:e,showPostCreator:f,isHiddenProfile:C}),a===Wo.GALLERY&&R.createElement(f3,{targetType:"user",targetId:e,grid:!0}),a===Wo.FOLLOWERS&&!C&&R.createElement(pS,{userId:e,activeTab:l,socialSettings:t,onFollowingListClick:x=>s(Wo.TIMELINE),onFollowerListClick:x=>s(Wo.TIMELINE),onTabChange:x=>d(x)}))):null},xS=tne;var bS=m.div`
|
|
4122
4123
|
max-width: 1160px;
|
|
4123
4124
|
margin: 0 auto;
|
|
4124
4125
|
padding: 30px 0;
|
|
@@ -4136,7 +4137,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4136
4137
|
&:hover {
|
|
4137
4138
|
background-color: transparent;
|
|
4138
4139
|
}
|
|
4139
|
-
`;var one=({category:e,communities:t,hasMore:o,loadMore:r,isLoading:n,onClickCommunity:i})=>{let a=()=>o?R.createElement(na,{onClick:()=>r()}):null;return t.length===0?R.createElement(R.Fragment,null,R.createElement(
|
|
4140
|
+
`;var one=({category:e,communities:t,hasMore:o,loadMore:r,isLoading:n,onClickCommunity:i})=>{let a=()=>o?R.createElement(na,{onClick:()=>r()}):null;return t.length===0?R.createElement(R.Fragment,null,R.createElement(fm,null,R.createElement(lS,{icon:R.createElement(v2,{width:48,height:48}),title:R.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyTitle"}),description:R.createElement(FormattedMessage,{id:"CategoryCommunitiesList.emptyDescription"})})),a()):R.createElement(R.Fragment,null,R.createElement(fm,null,t.map((s,l)=>ti(s)?R.createElement(mm,{key:l,loading:!0}):R.createElement(p3,{key:s==null?void 0:s.communityId,communityId:s==null?void 0:s.communityId,onClick:i}))),a())},_S=one;var TS=({categoryId:e})=>{let{onClickCommunity:t}=X(),{communities:o,hasMore:r,loadMore:n,isLoading:i,loadMoreHasBeenCalled:a}=xr({categoryId:e||void 0,sortBy:"displayName"},!!e);return {communities:useMemo(()=>{let l=new Array(5).fill(1).map(d=>({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 nne=({categoryId:e})=>{let{onChangePage:t}=X(),o=Fl(e),{communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}=TS({categoryId:e}),l=(o==null?void 0:o.name)||"";return R.createElement(bS,null,R.createElement(IS,null,R.createElement(MS,{onClick:()=>t("explore")},R.createElement(t0,null)),R.createElement(wS,null,l)),o?R.createElement(_S,{category:o,communities:r,loadMore:n,isLoading:i,hasMore:a,onClickCommunity:s}):null)},kS=nne;var SS=m.div`
|
|
4140
4141
|
display: flex;
|
|
4141
4142
|
align-items: center;
|
|
4142
4143
|
gap: 8px;
|
|
@@ -4166,11 +4167,11 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4166
4167
|
display: flex;
|
|
4167
4168
|
align-items: center;
|
|
4168
4169
|
cursor: pointer;
|
|
4169
|
-
`;var{COMMUNITY_MODERATOR:LS,CHANNEL_MODERATOR:AS}=La,sne=({userId:e,currentUserId:t,onClick:o,roles:r=[],assignRolesToUsers:n,hasModeratorPermissions:i,removeRolesFromUsers:a,removeMembers:s,isJoined:l,isBanned:d})=>{let p=oe(e),{formatMessage:u}=useIntl(),{isFlaggedByMe:g,toggleFlagUser:f}=os(e),y=p==null?void 0:p.isGlobalBanned,{confirm:v}=_e(),C=we();js({userId:e,level:SubscriptionLevels.USER});let h=()=>_(void 0,null,function*(){return f()}),x=()=>{h(),C.success({content:R.createElement(FormattedMessage,{id:"report.reportSent"})});},b=()=>_(void 0,null,function*(){h(),C.success({content:R.createElement(FormattedMessage,{id:"report.unreportSent"})});}),M=()=>n([LS,AS],[e]),I=()=>a([LS,AS],[e]),w=()=>{v({"data-qa-anchor":"remove-user",title:R.createElement(FormattedMessage,{id:"community.removeUserFromCommunityTitle"}),content:R.createElement(FormattedMessage,{id:"community.removeUserFromCommunityBody"}),cancelText:"Cancel",okText:"Remove",onOk:()=>s([e])});},k=Rn(r);return R.createElement(ES,{"data-qa-anchor":"community-member-item"},R.createElement(BS,null,R.createElement(li,{userId:e,isBanned:d||y,onClick:o})),!(t===e)&&R.createElement(So,{"data-qa-anchor":"community-members-option-menu",options:[{name:u(g?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:g?b:x},i&&!k&&!y?{name:u({id:"moderatorMenu.promoteToModerator"}),action:M}:null,i&&k?{name:u({id:"moderatorMenu.dismissModerator"}),action:I}:null,i?{name:u({id:"moderatorMenu.removeFromCommunity"}),action:w,className:"danger-zone"}:null].filter(Fe)}))},E8=sne;var
|
|
4170
|
+
`;var{COMMUNITY_MODERATOR:LS,CHANNEL_MODERATOR:AS}=La,sne=({userId:e,currentUserId:t,onClick:o,roles:r=[],assignRolesToUsers:n,hasModeratorPermissions:i,removeRolesFromUsers:a,removeMembers:s,isJoined:l,isBanned:d})=>{let p=oe(e),{formatMessage:u}=useIntl(),{isFlaggedByMe:g,toggleFlagUser:f}=os(e),y=p==null?void 0:p.isGlobalBanned,{confirm:v}=_e(),C=we();js({userId:e,level:SubscriptionLevels.USER});let h=()=>_(void 0,null,function*(){return f()}),x=()=>{h(),C.success({content:R.createElement(FormattedMessage,{id:"report.reportSent"})});},b=()=>_(void 0,null,function*(){h(),C.success({content:R.createElement(FormattedMessage,{id:"report.unreportSent"})});}),M=()=>n([LS,AS],[e]),I=()=>a([LS,AS],[e]),w=()=>{v({"data-qa-anchor":"remove-user",title:R.createElement(FormattedMessage,{id:"community.removeUserFromCommunityTitle"}),content:R.createElement(FormattedMessage,{id:"community.removeUserFromCommunityBody"}),cancelText:"Cancel",okText:"Remove",onOk:()=>s([e])});},k=Rn(r);return R.createElement(ES,{"data-qa-anchor":"community-member-item"},R.createElement(BS,null,R.createElement(li,{userId:e,isBanned:d||y,onClick:o})),!(t===e)&&R.createElement(So,{"data-qa-anchor":"community-members-option-menu",options:[{name:u(g?{id:"report.unreportUser"}:{id:"report.reportUser"}),action:g?b:x},i&&!k&&!y?{name:u({id:"moderatorMenu.promoteToModerator"}),action:M}:null,i&&k?{name:u({id:"moderatorMenu.dismissModerator"}),action:I}:null,i?{name:u({id:"moderatorMenu.removeFromCommunity"}),action:w,className:"danger-zone"}:null].filter(Fe)}))},E8=sne;var vm={MEMBERS:"MEMBERS",MODERATORS:"MODERATORS"};[{value:vm.MEMBERS,label:R.createElement(FormattedMessage,{id:"tabs.members"})},{value:vm.MODERATORS,label:R.createElement(FormattedMessage,{id:"tabs.moderators"})}];function B8(e,t=5){let n=ze({fetcher:CommunityRepository.Membership.getMembers,params:{communityId:e,limit:t,memberships:["member"],includeDeleted:!1},shouldCall:!!e}),{items:o}=n,r=P(n,["items"]);return c({members:o},r)}var pne=({community:e,members:t,loadMore:o,hasMore:r})=>{let n=e==null?void 0:e.communityId,{currentUserId:i}=J(),{canEditUser:a,canEditPost:s,canReviewPost:l}=Ja({community:e});return {community:e,members:t,currentUserId:i,hasMoreMembers:r,canEditPost:s,canReviewPost:l,canEditUser:a,loadMoreMembers:o,assignRolesToUsers:(g,f)=>n&&CommunityRepository.Moderation.addRoles(n,g,f),removeRolesFromUsers:(g,f)=>n&&CommunityRepository.Moderation.removeRoles(n,g,f),removeMembers:g=>n&&CommunityRepository.Membership.removeMembers(n,g)}};m.div`
|
|
4170
4171
|
width: 100%;
|
|
4171
4172
|
height: 1px;
|
|
4172
4173
|
background-color: var(--neutral-200);
|
|
4173
|
-
`;var une=({community:e,members:t,loadMore:o,hasMore:r})=>{let{onClickUser:n}=X(),{hasMoreMembers:i,loadMoreMembers:a,currentUserId:s,canEditUser:l,assignRolesToUsers:d,removeRolesFromUsers:p,removeMembers:u}=pne({community:e,hasMore:r,loadMore:o,members:t});return t.length===0?null:R.createElement(No,{hasMore:i,loadMore:a,contentSlot:t.map(({userId:g,roles:f,isBanned:y})=>R.createElement(E8,{key:g,userId:g,currentUserId:s||"",roles:f,assignRolesToUsers:d,removeRolesFromUsers:p,removeMembers:u,hasModeratorPermissions:l,isJoined:e==null?void 0:e.isJoined,isBanned:y,onClick:()=>n(g)}))})},gne=({community:e})=>{let t=e==null?void 0:e.communityId,{currentUserId:o}=J(),{moderators:r,hasMore:n,loadMore:i}=Nn(t),a=r.find(f=>f.userId===o),s=oe(o),l=Rn(a==null?void 0:a.roles),d=tl(a)&&l||Rn(s==null?void 0:s.roles)||Z0(s==null?void 0:s.roles);return {moderators:r,currentUserId:o,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:d,assignRolesToUsers:(f,y)=>t&&CommunityRepository.Moderation.addRoles(t,f,y),removeRolesFromUsers:(f,y)=>t&&CommunityRepository.Moderation.removeRoles(t,f,y),removeMembers:f=>t&&CommunityRepository.Membership.removeMembers(t,f)}},fne=({community:e})=>{let{onClickUser:t}=X(),{currentUserId:o,moderators:r,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:a,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:d}=gne({community:e});return r.length===0?null:R.createElement(No,{hasMore:n,loadMore:i,contentSlot:r.map(({userId:p,roles:u,isBanned:g})=>R.createElement(E8,{key:p,userId:p,currentUserId:o||"",roles:u,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:d,hasModeratorPermissions:a,isJoined:e==null?void 0:e.isJoined,isBanned:g,onClick:f=>f&&t(f)}))})},yne=({communityId:e})=>{let{formatMessage:t}=useIntl(),{hasMore:o,loadMore:r,loadMoreHasBeenCalled:n,isLoading:i,members:a}=B8(e),s=_t(e),l=[{value:"MEMBERS",label:t({id:"CommunityMembers.members"})},{value:"MODERATORS",label:t({id:"CommunityMembers.moderators"})}],[d,p]=useState(
|
|
4174
|
+
`;var une=({community:e,members:t,loadMore:o,hasMore:r})=>{let{onClickUser:n}=X(),{hasMoreMembers:i,loadMoreMembers:a,currentUserId:s,canEditUser:l,assignRolesToUsers:d,removeRolesFromUsers:p,removeMembers:u}=pne({community:e,hasMore:r,loadMore:o,members:t});return t.length===0?null:R.createElement(No,{hasMore:i,loadMore:a,contentSlot:t.map(({userId:g,roles:f,isBanned:y})=>R.createElement(E8,{key:g,userId:g,currentUserId:s||"",roles:f,assignRolesToUsers:d,removeRolesFromUsers:p,removeMembers:u,hasModeratorPermissions:l,isJoined:e==null?void 0:e.isJoined,isBanned:y,onClick:()=>n(g)}))})},gne=({community:e})=>{let t=e==null?void 0:e.communityId,{currentUserId:o}=J(),{moderators:r,hasMore:n,loadMore:i}=Nn(t),a=r.find(f=>f.userId===o),s=oe(o),l=Rn(a==null?void 0:a.roles),d=tl(a)&&l||Rn(s==null?void 0:s.roles)||Z0(s==null?void 0:s.roles);return {moderators:r,currentUserId:o,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:d,assignRolesToUsers:(f,y)=>t&&CommunityRepository.Moderation.addRoles(t,f,y),removeRolesFromUsers:(f,y)=>t&&CommunityRepository.Moderation.removeRoles(t,f,y),removeMembers:f=>t&&CommunityRepository.Membership.removeMembers(t,f)}},fne=({community:e})=>{let{onClickUser:t}=X(),{currentUserId:o,moderators:r,hasMoreModerators:n,loadMoreModerators:i,hasModeratorPermissions:a,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:d}=gne({community:e});return r.length===0?null:R.createElement(No,{hasMore:n,loadMore:i,contentSlot:r.map(({userId:p,roles:u,isBanned:g})=>R.createElement(E8,{key:p,userId:p,currentUserId:o||"",roles:u,assignRolesToUsers:s,removeRolesFromUsers:l,removeMembers:d,hasModeratorPermissions:a,isJoined:e==null?void 0:e.isJoined,isBanned:g,onClick:f=>f&&t(f)}))})},yne=({communityId:e})=>{let{formatMessage:t}=useIntl(),{hasMore:o,loadMore:r,loadMoreHasBeenCalled:n,isLoading:i,members:a}=B8(e),s=_t(e),l=[{value:"MEMBERS",label:t({id:"CommunityMembers.members"})},{value:"MODERATORS",label:t({id:"CommunityMembers.moderators"})}],[d,p]=useState(vm.MEMBERS);return R.createElement(NS,null,R.createElement(SS,null,l.map(u=>R.createElement(Dn,{key:u.value,onPress:()=>p(u.value),isActive:d===u.value},u.label))),d===vm.MEMBERS&&R.createElement(une,{community:s,hasMore:o,loadMore:r,members:a}),d===vm.MODERATORS&&R.createElement(fne,{community:s}))},I3=memo(e=>{let t=W("CommunityMembers");return t?t(e):R.createElement(yne,c({},e))});m.div`
|
|
4174
4175
|
${({breakpoints:e})=>e.map(({breakpoint:t,show:o})=>`
|
|
4175
4176
|
@media (min-width: ${t}px) {
|
|
4176
4177
|
display: ${o?"block":"none"};
|
|
@@ -4258,12 +4259,12 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4258
4259
|
display: flex;
|
|
4259
4260
|
padding: 16px 24px;
|
|
4260
4261
|
justify-content: flex-end;
|
|
4261
|
-
`,QS=({className:e="",closeConfirm:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),{formState:{errors:n},control:i,setError:a,handleSubmit:s}=useForm({defaultValues:{members:[]}}),l=d=>_(void 0,null,function*(){if(d.members.length===0){a("members",{message:r({id:"AddMemberModal.membersValidationError"})});return}o(d.members);});return R.createElement(ro,{"data-qa-anchor":"add-member-modal",title:r({id:"AddMemberModal.addMembers"}),onCancel:t},R.createElement(GS,null,R.createElement(Qa,{className:e,onSubmit:s(l)},R.createElement(si,null,R.createElement(Ane,null,R.createElement(Pp,{error:n.members},R.createElement(Controller,{name:"members",render:({field:d})=>R.createElement(Wa,N(c({},d),{"data-qa-anchor":"add-member-modal"})),control:i}),R.createElement(yr,{errors:n,name:"members"})))),R.createElement(Dne,null,R.createElement(iM,{onClick:t},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(
|
|
4262
|
+
`,QS=({className:e="",closeConfirm:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),{formState:{errors:n},control:i,setError:a,handleSubmit:s}=useForm({defaultValues:{members:[]}}),l=d=>_(void 0,null,function*(){if(d.members.length===0){a("members",{message:r({id:"AddMemberModal.membersValidationError"})});return}o(d.members);});return R.createElement(ro,{"data-qa-anchor":"add-member-modal",title:r({id:"AddMemberModal.addMembers"}),onCancel:t},R.createElement(GS,null,R.createElement(Qa,{className:e,onSubmit:s(l)},R.createElement(si,null,R.createElement(Ane,null,R.createElement(Pp,{error:n.members},R.createElement(Controller,{name:"members",render:({field:d})=>R.createElement(Wa,N(c({},d),{"data-qa-anchor":"add-member-modal"})),control:i}),R.createElement(yr,{errors:n,name:"members"})))),R.createElement(Dne,null,R.createElement(iM,{onClick:t},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(zl,null,R.createElement(FormattedMessage,{id:"add"}))))))};var Fne=m.div`
|
|
4262
4263
|
max-width: 546px;
|
|
4263
4264
|
margin: 0 auto;
|
|
4264
4265
|
`,One=({communityId:e,tab:t=sa.EDIT_PROFILE})=>{X();let [r,n]=useState(t),[i,a]=useState(!1),s=()=>a(!0),l=()=>a(!1);useEffect(()=>n(t),[t]);let{onClickCommunity:d}=X(),p=_t(e),u=se({fileId:p==null?void 0:p.avatarFileId,imageSize:"medium"}),g=()=>e&&d(e),f=C=>_(void 0,null,function*(){e!=null&&(yield CommunityRepository.updateCommunity(e,C),g());}),y=C=>_(void 0,null,function*(){e!=null&&(yield CommunityRepository.Membership.addMembers(e,C),l());});return R.createElement(Fne,null,R.createElement(FS,{aside:(()=>{switch(r){case sa.MEMBERS:return R.createElement(R.Fragment,null,R.createElement(EM,{action:s}),i&&R.createElement(QS,{closeConfirm:l,onSubmit:y}));default:return null}})(),header:R.createElement(US,{avatarFileUrl:u,communityName:p==null?void 0:p.displayName,tabs:jS,activeTab:r,onTabChange:C=>n(C),onReturnToCommunity:g})},r===sa.EDIT_PROFILE&&!!(p!=null&&p.communityId)&&R.createElement(Lp,{"data-qa-anchor":"community-edit",community:p,edit:!0,onSubmit:C=>f(N(c({},C),{avatarFileId:C.avatarFileId||void 0}))}),r===sa.MEMBERS&&R.createElement(I3,{communityId:e})))},KS=One;var jne=m.div`
|
|
4265
4266
|
margin-top: 16px;
|
|
4266
|
-
`,Gne=({title:e,children:t})=>R.createElement(
|
|
4267
|
+
`,Gne=({title:e,children:t})=>R.createElement(Ul,null,R.createElement(bp,null,e),R.createElement($l,null,t)),Zne=({user:e,onSubmit:t,className:o})=>{var u,g;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:(g=e.avatarFileId)!=null?g:void 0}}),d=s("description");s("displayName");return R.createElement(Qa,{className:o,onSubmit:i(f=>{e.displayName===f.displayName?t({description:f.description,avatarFileId:f.avatarFileId}):t(f);})},R.createElement(si,null,R.createElement(Gne,{title:R.createElement(FormattedMessage,{id:"UserProfileForm.title"})},R.createElement(Controller,{name:"avatarFileId",render:v=>{var {field:C}=v,h=C,y=P(h,["ref"]);return R.createElement(mM,null,R.createElement(Ga,N(c({},y),{"data-qa-anchor":"user-profile-form-avatar-uploader",mimeType:"image/png, image/jpeg, image/jpg"})))},control:l}),R.createElement(hr,{error:a.displayName},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"displayName",className:"required"},R.createElement(FormattedMessage,{id:"UserProfileForm.displayname"}))),R.createElement(e1,N(c({},n("displayName",{required:r({id:"UserProfileForm.requiredDisplayName"})})),{"data-qa-anchor":"user-profile-form-display-name-input",placeholder:r({id:"UserProfileForm.namePlaceholder"}),maxLength:100,disabled:!0})),R.createElement(yr,{errors:a,name:"displayName"})),R.createElement(hr,{error:a.description},R.createElement(Yi,null,R.createElement(rn,{htmlFor:"description"},R.createElement(FormattedMessage,{id:"UserProfileForm.about"})),R.createElement(Za,null,(d==null?void 0:d.length)||0,"/177")),R.createElement(Rs,N(c({},n("description")),{"data-qa-anchor":"user-profile-form-description-textarea",placeholder:r({id:"UserProfileForm.requiredDescription"}),maxLength:177})),R.createElement(yr,{errors:a,name:"description"})),R.createElement(jne,null,R.createElement(lM,{"data-qa-anchor":"user-profile-form-save-button",type:"submit"},R.createElement(FormattedMessage,{id:"save"}))))))},JS=memo(Zne);var XS=m.button.attrs({role:"button"})`
|
|
4267
4268
|
color: #636878;
|
|
4268
4269
|
font-size: 14px;
|
|
4269
4270
|
border: none;
|
|
@@ -4528,7 +4529,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4528
4529
|
@media (max-width: 768px) {
|
|
4529
4530
|
display: flex;
|
|
4530
4531
|
}
|
|
4531
|
-
`;var gie=()=>{let{onBack:e}=X();return R.createElement(pT,{onClick:()=>{e&&e();}},R.createElement(Dr,{width:24,height:20}),R.createElement(uT,null,"Back"))},N3=gie;var hie=({communityId:e,isNewCommunity:t,isOpen:o,toggleOpen:r})=>{J();let {stories:i}=ta({targetId:e,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),[a,s]=useState(null),l=_t(e),{canReviewPost:d}=Ja({community:l});Ln({targetId:e,targetType:"community",feedType:"reviewing"});useEffect(()=>{window!=null&&window.parent?window.scrollTo(0,0):a==null||a.scrollTo(0,0);},[e,a]);let u=useMemo(()=>FN(l==null?void 0:l.postSetting,l==null?void 0:l.isJoined),[l==null?void 0:l.postSetting,l==null?void 0:l.isJoined,d]),[g,f]=useState(ma.TIMELINE),y=(l==null?void 0:l.isJoined)||!1,[v,C]=useState(t);X();en();let{currentUserId:x}=J(),{moderators:b}=Nn(e),M=b.find(L=>L.userId===x),I=oe(x),w=Rn(M==null?void 0:M.roles),k=tl(M)&&w||Rn(I==null?void 0:I.roles)||Z0(I==null?void 0:I.roles),T=(l==null?void 0:l.postSetting)===CommunityPostSettings.ONLY_ADMIN_CAN_POST?k:y;return useEffect(()=>{u.find(L=>L.value===g)||f(u[0].value);},[g,u]),R.createElement(ON,{ref:L=>s(L)},R.createElement(N3,null),R.createElement(HN,{communityId:e,stories:i}),R.createElement(y3,{"data-qa-anchor":"community-feed-header",tabs:u,activeTab:g,onChange:f}),g===ma.TIMELINE&&R.createElement(a1,{targetType:"community",targetId:e,readonly:!y,showPostCreator:T,feedType:"published"}),g===ma.GALLERY&&R.createElement(f3,{targetType:"community",targetId:e,grid:!0}),g===ma.MEMBERS&&R.createElement(I3,{communityId:e}),v&&R.createElement(CN,{communityId:e,onClose:()=>C(!1)}))},UN=hie;var ee=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var $N={createNewStoryButton:"
|
|
4532
|
+
`;var gie=()=>{let{onBack:e}=X();return R.createElement(pT,{onClick:()=>{e&&e();}},R.createElement(Dr,{width:24,height:20}),R.createElement(uT,null,"Back"))},N3=gie;var hie=({communityId:e,isNewCommunity:t,isOpen:o,toggleOpen:r})=>{J();let {stories:i}=ta({targetId:e,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),[a,s]=useState(null),l=_t(e),{canReviewPost:d}=Ja({community:l});Ln({targetId:e,targetType:"community",feedType:"reviewing"});useEffect(()=>{window!=null&&window.parent?window.scrollTo(0,0):a==null||a.scrollTo(0,0);},[e,a]);let u=useMemo(()=>FN(l==null?void 0:l.postSetting,l==null?void 0:l.isJoined),[l==null?void 0:l.postSetting,l==null?void 0:l.isJoined,d]),[g,f]=useState(ma.TIMELINE),y=(l==null?void 0:l.isJoined)||!1,[v,C]=useState(t);X();en();let{currentUserId:x}=J(),{moderators:b}=Nn(e),M=b.find(L=>L.userId===x),I=oe(x),w=Rn(M==null?void 0:M.roles),k=tl(M)&&w||Rn(I==null?void 0:I.roles)||Z0(I==null?void 0:I.roles),T=(l==null?void 0:l.postSetting)===CommunityPostSettings.ONLY_ADMIN_CAN_POST?k:y;return useEffect(()=>{u.find(L=>L.value===g)||f(u[0].value);},[g,u]),R.createElement(ON,{ref:L=>s(L)},R.createElement(N3,null),R.createElement(HN,{communityId:e,stories:i}),R.createElement(y3,{"data-qa-anchor":"community-feed-header",tabs:u,activeTab:g,onChange:f}),g===ma.TIMELINE&&R.createElement(a1,{targetType:"community",targetId:e,readonly:!y,showPostCreator:T,feedType:"published"}),g===ma.GALLERY&&R.createElement(f3,{targetType:"community",targetId:e,grid:!0}),g===ma.MEMBERS&&R.createElement(I3,{communityId:e}),v&&R.createElement(CN,{communityId:e,onClose:()=>C(!1)}))},UN=hie;var ee=({defaultIcon:e,imgIcon:t,defaultIconName:o,configIconName:r})=>o===r?e():t();var $N={createNewStoryButton:"Ga"};var vie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#1054DE",stroke:"#fff",strokeWidth:"1.5"}),R.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"})),is=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="create_new_story_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{style:u,className:sr($N.createNewStoryButton,o),"data-qa-anchor":a,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement(vie,null),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:sr(r)}),defaultIconName:l.icon,configIconName:s.icon}))};m(ge)`
|
|
4532
4533
|
margin-right: 8px;
|
|
4533
4534
|
`;m.div`
|
|
4534
4535
|
color: ${({theme:e})=>e.palette.base.shade2};
|
|
@@ -4678,7 +4679,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4678
4679
|
color: ${({theme:e})=>e.palette.base.shade2};
|
|
4679
4680
|
border-radius: 4px;
|
|
4680
4681
|
padding: 4px 8px 2px 0px;
|
|
4681
|
-
`;m(
|
|
4682
|
+
`;m(T2)`
|
|
4682
4683
|
font-size: 18px;
|
|
4683
4684
|
width: 1.25rem;
|
|
4684
4685
|
height: 1.25rem;
|
|
@@ -4694,7 +4695,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4694
4695
|
align-items: center;
|
|
4695
4696
|
`;m.span`
|
|
4696
4697
|
font-size: 14px;
|
|
4697
|
-
`;m(
|
|
4698
|
+
`;m(M2)`
|
|
4698
4699
|
font-size: 16px;
|
|
4699
4700
|
margin-right: 5px;
|
|
4700
4701
|
`;m(He)``;m.div`
|
|
@@ -4713,12 +4714,12 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4713
4714
|
border-radius: 0rem 0.75rem 0.75rem 0.75rem;
|
|
4714
4715
|
height: 7.5rem;
|
|
4715
4716
|
padding: 0.75rem;
|
|
4716
|
-
`;var jN={aspectRatioButton:"
|
|
4717
|
+
`;var jN={aspectRatioButton:"Ja",aspectRatioButton__icon:"Ka"};var Tie=e=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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 B3({pageId:e="*",componentId:t="*",defaultIconClassName:o,imgIconClassName:r,onPress:n}){let i="aspect_ratio_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{className:jN.aspectRatioButton,"data-qa-anchor":a,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement(Tie,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))}var GN={backButton:"Na"};var Sie=e=>R.createElement("svg",c({width:"10",height:"17",viewBox:"0 0 10 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M8.62109 15.9141C8.44531 16.0898 8.19922 16.0898 8.02344 15.9141L0.640625 8.56641C0.5 8.39062 0.5 8.14453 0.640625 7.96875L8.02344 0.621094C8.19922 0.445312 8.44531 0.445312 8.62109 0.621094L9.32422 1.28906C9.46484 1.46484 9.46484 1.74609 9.32422 1.88672L2.96094 8.25L9.32422 14.6484C9.46484 14.7891 9.46484 15.0703 9.32422 15.2461L8.62109 15.9141Z"})),Mm=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="back_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{"data-qa-anchor":a,className:GN.backButton,onPress:n,style:u},R.createElement(ee,{defaultIcon:()=>R.createElement(Sie,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var U8={remoteImageButton:"Oa",closeButton__icon:"Pa",closeButton:"Qa"};var Bie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 320 512",fill:"currentColor"},e),R.createElement("path",{d:`M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34
|
|
4717
4718
|
0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4
|
|
4718
4719
|
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
|
|
4719
4720
|
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
|
|
4720
4721
|
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
|
|
4721
|
-
0-22.58L207.6 256z`})),Mr=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="close_button",{isExcluded:a,config:s,uiReference:l,accessibilityId:d}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{className:U8.closeButton,"data-qa-anchor":d,onPress:o},R.createElement(ee,{defaultIcon:()=>R.createElement(Bie,{className:sr(U8.closeButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var L3={bottomSheet__container:"Ua",bottomSheet__header:"Wa",bottomSheet__content:"Za",bottomSheet__backdrop:"_a"};var Pr=r=>{var n=r,{children:e,headerTitle:t}=n,o=P(n,["children","headerTitle"]);return R.createElement(h1,c({},o),R.createElement(h1.Container,{className:L3.bottomSheet__container},R.createElement(h1.Header,null,R.createElement(h1.Header,null),t&&R.createElement(h1.Header,{className:L3.bottomSheet__header},R.createElement(S.Title,null,t))),R.createElement(h1.Content,{className:L3.bottomSheet__content},e)),R.createElement(h1.Backdrop,{onTap:o.onClose}))};var $8={avatarContainer:"T",avatarImage:"eo"};var vt=({avatarUrl:e,defaultImage:t,onClick:o})=>R.createElement("div",{className:$8.avatarContainer,"data-clickable":!!o,onClick:o},e?R.createElement("img",{className:$8.avatarImage,src:e,alt:"Avatar"}):t);var _c={button:"ro",disabled:"m",primary:"U",secondary:"W",ghost:"Z",small:"ao",medium:"oo",large:"to",icon:"io"};var Oie=a=>{var s=a,{children:e,variant:t="primary",size:o="medium",icon:r,className:n}=s,i=P(s,["children","variant","size","icon","className"]);let l=sr(_c.button,_c[t],_c[o],n);return R.createElement("button",c({className:l},i),r&&R.createElement("span",{className:_c.icon},r),e)},A3=Oie;var WN={cancelButton:"so"};var D3=({pageId:e="*",componentId:t="*",onPress:o=()=>{}})=>{let r="cancel_button",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:r});return a?null:R.createElement(F,{"data-qa-anchor":n,className:WN.cancelButton,style:s,onPress:o},R.createElement(S.Body,null,i.text))};var H3={createStoryButton:"co",createStoryButton__text:"no",createStoryButton__icon:"lo"};var Vie=e=>R.createElement("svg",c({width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.771159 12.2248C1.00906 12.7861 1.30474 13.3088 1.65819 13.7927C1.85468 14.0618 2.2428 14.0749 2.47778 13.8387L2.85238 13.4622C3.05585 13.2578 3.07242 12.9352 2.91359 12.6944C2.68511 12.3479 2.4918 11.9785 2.33366 11.5862C2.17162 11.1841 2.04651 10.7654 1.95831 10.33C1.90156 10.0497 1.66209 9.83785 1.37619 9.83785H0.7981C0.460143 9.83785 0.194237 10.1301 0.252477 10.463C0.359316 11.0737 0.53221 11.661 0.771159 12.2248ZM0.791992 5.77587C0.565717 6.33406 0.392758 6.91522 0.273115 7.51935C0.206005 7.85821 0.473794 8.1628 0.819238 8.1628H1.37619C1.66209 8.1628 1.90156 7.95091 1.95831 7.6707C2.04651 7.23526 2.17162 6.81652 2.33366 6.41448C2.4918 6.0221 2.68511 5.6527 2.91359 5.30628C3.07242 5.06546 3.05585 4.7429 2.85238 4.53841L2.47778 4.16192C2.2428 3.92576 1.85456 3.93884 1.65906 4.2086C1.30847 4.69235 1.01944 5.21477 0.791992 5.77587ZM5.26074 16.7265C5.81526 16.966 6.39491 17.1396 6.9997 17.247C7.33267 17.3061 7.62533 17.0401 7.62533 16.7019V16.1571C7.62533 15.8715 7.41372 15.6325 7.13436 15.5731C6.70488 15.4817 6.29562 15.3497 5.90658 15.177C5.52127 15.0061 5.14859 14.8025 4.78852 14.5662C4.5475 14.4081 4.22544 14.4327 4.02574 14.6406L3.64108 15.041C3.40868 15.2829 3.43286 15.6735 3.7084 15.8649C4.19354 16.2017 4.71098 16.4889 5.26074 16.7265ZM3.71752 2.12947C3.43846 2.32272 3.41731 2.71924 3.65673 2.95986L4.05715 3.36229C4.26214 3.56831 4.58771 3.58533 4.82847 3.42255C5.1704 3.19137 5.53324 2.99173 5.91699 2.82361C6.3137 2.64981 6.73277 2.5172 7.17418 2.42577C7.45449 2.3677 7.66699 2.12833 7.66699 1.84207V1.29669C7.66699 0.959243 7.37557 0.693429 7.04294 0.750218C6.41529 0.857371 5.82122 1.03203 5.26074 1.27419C4.71443 1.51024 4.20002 1.79533 3.71752 2.12947ZM9.82271 15.5735C9.54395 15.6315 9.33366 15.8703 9.33366 16.155V16.6953C9.33366 17.0359 9.63023 17.3024 9.96541 17.2422C11.8264 16.908 13.4005 16.0311 14.6878 14.6117C16.1184 13.0344 16.8337 11.1639 16.8337 9.00033C16.8337 6.83673 16.1184 4.96627 14.6878 3.38894C13.4005 1.96952 11.8264 1.09268 9.96541 0.758409C9.63023 0.698204 9.33366 0.964784 9.33366 1.30532V1.84562C9.33366 2.13035 9.54395 2.36916 9.82271 2.42716C11.2862 2.73166 12.5155 3.45008 13.5107 4.5824C14.6149 5.83868 15.167 7.31132 15.167 9.00033C15.167 10.6893 14.6149 12.162 13.5107 13.4182C12.5155 14.5506 11.2862 15.269 9.82271 15.5735Z"}),R.createElement("path",{d:"M12.7189 8.47933C12.9012 8.47933 13.0835 8.66162 13.0835 8.84391V9.57308C13.0835 9.77816 12.9012 9.93766 12.7189 9.93766H9.43766V13.2189C9.43766 13.424 9.25537 13.5835 9.07308 13.5835H8.34391C8.13883 13.5835 7.97933 13.424 7.97933 13.2189V9.93766H4.69808C4.493 9.93766 4.3335 9.77816 4.3335 9.57308V8.84391C4.3335 8.66162 4.493 8.47933 4.69808 8.47933H7.97933V5.19808C7.97933 5.01579 8.13883 4.8335 8.34391 4.8335H9.07308C9.25537 4.8335 9.43766 5.01579 9.43766 5.19808V8.47933H12.7189Z"}));function F3({pageId:e="*",componentId:t="*",onClick:o,defaultClassName:r}){let n="create_story_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(F,{className:H3.createStoryButton,"data-qa-anchor":i,style:p,onPress:()=>o==null?void 0:o()},R.createElement(ee,{defaultIcon:()=>R.createElement(Vie,{className:sr(H3.createStoryButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:a.image,alt:d}),configIconName:a.image,defaultIconName:s.image}),R.createElement(S.Body,{className:H3.createStoryButton__text},a.text))}var V8={hyperLinkButton:"do"};var Zie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),O3=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="story_hyperlink_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{className:V8.hyperLinkButton,onPress:n,"data-qa-anchor":a},R.createElement(ee,{defaultIcon:()=>R.createElement(Zie,{className:sr(V8.hyperLinkButton,o)}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var KN={impressionButton:"mo"};var qie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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 z3({pageId:e="*",componentId:t="*",reach:o=0,defaultIconClassName:r,imgIconClassName:n}){let i="story_impression_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:sr(KN.impressionButton,r),"data-qa-anchor":a},R.createElement(qie,null),R.createElement(S.BodyBold,null,o)),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:n}),defaultIconName:l.icon,configIconName:s.icon})}var JN={overflowMenuButton:"go"};var Jie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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"})),U3=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="overflow_menu",{config:a,defaultConfig:s,uiReference:l,themeStyles:d,accessibilityId:p}=A({pageId:e,componentId:t,elementId:i});return R.createElement(F,{style:d,"data-qa-anchor":p,className:JN.overflowMenuButton,onPress:o},R.createElement(ee,{defaultIcon:()=>R.createElement(Jie,{className:r}),imgIcon:()=>R.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var Xie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{clipPath:"url(#clip0_1709_7904)"},R.createElement("path",{d:"M16 32.5C24.8366 32.5 32 25.3366 32 16.5C32 7.66344 24.8366 0.5 16 0.5C7.16344 0.5 0 7.66344 0 16.5C0 25.3366 7.16344 32.5 16 32.5Z",fill:"#FFD54F"}),R.createElement("path",{d:"M9.33317 15.1667C10.8059 15.1667 11.9998 13.9728 11.9998 12.5C11.9998 11.0273 10.8059 9.83337 9.33317 9.83337C7.86041 9.83337 6.6665 11.0273 6.6665 12.5C6.6665 13.9728 7.86041 15.1667 9.33317 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M22.6667 15.1667C24.1394 15.1667 25.3333 13.9728 25.3333 12.5C25.3333 11.0273 24.1394 9.83337 22.6667 9.83337C21.1939 9.83337 20 11.0273 20 12.5C20 13.9728 21.1939 15.1667 22.6667 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M21.0248 27.3372C20.674 27.3372 20.3232 27.2038 20.0564 26.9352C17.8894 24.7682 14.1108 24.7682 11.9456 26.9352C11.4103 27.4705 10.5423 27.4705 10.007 26.9352C9.47163 26.4016 9.47163 25.5319 10.007 24.9966C11.6076 23.396 13.7362 22.5153 16.0001 22.5153C18.264 22.5153 20.3926 23.396 21.9932 24.9984C22.5286 25.5337 22.5286 26.4016 21.9932 26.937C21.7264 27.2038 21.3756 27.3372 21.0248 27.3372Z",fill:"#6D4C41"}),R.createElement("path",{d:"M24.8228 16.5987C24.4495 16.0587 23.5508 16.0587 23.1775 16.5987C22.6228 17.4014 21.3335 19.3881 21.3335 20.5001C21.3335 21.9707 22.5295 23.1667 24.0002 23.1667C25.4708 23.1667 26.6668 21.9707 26.6668 20.5001C26.6668 19.3881 25.3775 17.4014 24.8228 16.5987Z",fill:"#00BCD4"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_7904"},R.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0 0.5)"}))))},XN=Xie;var Yie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16.5",r:"16",fill:"url(#paint0_linear_1709_7888)"}),R.createElement("g",{clipPath:"url(#clip0_1709_7888)"},R.createElement("path",{d:"M21.8752 10.2903C21.3417 9.70788 20.5123 8.92173 20.1595 10.6968C20.0395 11.3004 19.7591 11.7656 19.5189 12.1402C19.2599 10.8296 18.4808 9.47308 17.7467 8.55843C17.472 8.21623 16.4973 6.85588 16.3101 4.58008C16.2821 4.24043 15.8787 4.08093 15.6263 4.31003C13.2147 6.49923 11.891 9.51013 11.8419 12.8998C11.8419 12.8998 10.8377 12.0533 10.2921 10.4786C10.1452 10.0546 9.57671 9.97368 9.33006 10.3486C9.28271 10.4206 9.23881 10.4927 9.19921 10.5627C7.33856 13.8527 6.44351 17.848 7.27096 21.565C8.65446 27.7898 17.8062 29.5301 22.6511 25.6177C27.3914 21.7899 25.8846 14.6654 21.8752 10.2903Z",fill:"#ED694A"}),R.createElement("path",{d:"M20.4125 14.8409C20.0185 14.4107 19.4058 13.83 19.1452 15.1411C19.0566 15.5869 18.8495 15.9306 18.6721 16.2073C18.4809 15.2392 17.9054 14.2372 17.3632 13.5617C17.1603 13.3089 16.4404 12.3042 16.302 10.6231C16.2814 10.3722 15.9834 10.2545 15.797 10.4237C14.0158 12.0406 13.038 14.2646 13.0018 16.7682C13.0018 16.7682 12.26 16.143 11.8571 14.9799C11.7486 14.6667 11.3287 14.607 11.1465 14.8839C11.1116 14.9371 11.0791 14.9904 11.0499 15.0421C9.67554 17.4721 9.01444 20.4231 9.62559 23.1686C10.6475 27.7664 17.4071 29.0518 20.9857 26.162C24.4869 23.3347 23.3739 18.0725 20.4125 14.8409Z",fill:"#F4A32C"}),R.createElement("path",{d:"M19.077 18.9949C18.8103 18.7037 18.3955 18.3106 18.2191 19.1982C18.1592 19.5 18.0189 19.7326 17.8988 19.9199C17.7693 19.2645 17.3798 18.5863 17.0127 18.129C16.8754 17.9579 16.3881 17.2777 16.2944 16.1398C16.2804 15.9699 16.0787 15.8902 15.9525 16.0048C14.7467 17.0994 14.0849 18.6049 14.0603 20.2996C14.0603 20.2996 13.5582 19.8764 13.2855 19.0891C13.212 18.8771 12.9278 18.8366 12.8045 19.0241C12.7808 19.06 12.7589 19.0961 12.739 19.1311C11.8087 20.7761 11.3612 22.7737 11.7749 24.6323C12.4666 27.7447 17.0425 28.6149 19.4649 26.6586C20.2945 25.9887 20.8088 25.0448 20.9131 24.0006C21.0706 22.4191 20.4619 20.5062 19.077 18.9949Z",fill:"#F4D44E"}),R.createElement("path",{d:"M17.838 22.85C17.6894 22.6878 17.4583 22.4688 17.36 22.9632C17.3266 23.1314 17.2485 23.261 17.1816 23.3653C17.1094 23.0002 16.8924 22.6223 16.6879 22.3676C16.6114 22.2722 16.3399 21.8933 16.2877 21.2593C16.2799 21.1647 16.1675 21.1203 16.0972 21.1841C15.4255 21.7939 15.0567 22.6327 15.043 23.5769C15.043 23.5769 14.7633 23.3411 14.6113 22.9024C14.5704 22.7843 14.412 22.7617 14.3434 22.8662C14.3302 22.8863 14.318 22.9064 14.307 22.9259C13.7887 23.8424 13.5393 24.9553 13.7698 25.9907C14.2947 28.3523 18.5971 28.2807 18.861 25.6388C18.9486 24.7577 18.6095 23.6919 17.838 22.85Z",fill:"#EAE9E8"}),R.createElement("path",{d:"M14.7688 26.4597C14.5383 25.5334 14.7876 24.5379 15.3059 23.7181C15.3169 23.7006 15.3292 23.6827 15.3423 23.6647C15.411 23.5713 15.5694 23.5914 15.6103 23.6971C15.7622 24.0895 16.042 24.3004 16.042 24.3004C16.0532 23.6064 16.3046 22.9764 16.7664 22.4711C16.6631 22.3281 16.3472 21.9833 16.2877 21.2597C16.2799 21.165 16.1675 21.1207 16.0972 21.1844C15.4255 21.7943 15.0567 22.633 15.043 23.5772C15.043 23.5772 14.7633 23.3414 14.6113 22.9028C14.5704 22.7847 14.412 22.7621 14.3434 22.8666C14.3302 22.8867 14.318 22.9068 14.307 22.9263C13.7887 23.8427 13.5393 24.9557 13.7698 25.9911C13.9831 26.9509 14.8594 27.5277 15.8282 27.6669C15.3056 27.4102 14.904 27.0038 14.7688 26.4597Z",fill:"#F7E7A1"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_7888",x1:"7.2",y1:"7.7",x2:"24.8",y2:"29.3",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFF09F"}),R.createElement("stop",{offset:"1",stopColor:"#FCCF5A"})),R.createElement("clipPath",{id:"clip0_1709_7888"},R.createElement("rect",{width:"25.6",height:"25.6",fill:"white",transform:"translate(3.2002 2.09998)"}))))},YN=Yie;var Rie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions",clipPath:"url(#clip0_1709_1751)"},R.createElement("path",{id:"Vector",d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#FFD54F"}),R.createElement("path",{id:"Vector_2",d:"M27.2933 19.9601C26.9867 20.9334 26.5867 21.8267 26.0667 22.6667H5.93332C5.41332 21.8267 5.01332 20.9334 4.70665 19.9601C4.61332 19.6534 4.66665 19.3334 4.86665 19.0801C5.05332 18.8134 5.34665 18.6667 5.66665 18.6667H26.3333C26.6533 18.6667 26.9467 18.8134 27.1333 19.0801C27.3333 19.3334 27.3867 19.6534 27.2933 19.9601Z",fill:"white"}),R.createElement("path",{id:"Vector_3",d:"M26.0664 22.6667C23.9598 26.1201 20.1864 28.2934 15.9998 28.2934C11.8131 28.2934 8.03977 26.1201 5.93311 22.6667H26.0664Z",fill:"#E53935"}),R.createElement("path",{id:"Vector_4",d:"M12.3332 13.6668C11.7812 13.6668 11.3332 13.2188 11.3332 12.6668C11.3332 11.9322 10.7358 11.3335 9.99984 11.3335C9.26384 11.3335 8.6665 11.9322 8.6665 12.6668C8.6665 13.2188 8.2185 13.6668 7.6665 13.6668C7.1145 13.6668 6.6665 13.2188 6.6665 12.6668C6.6665 10.8295 8.16117 9.3335 9.99984 9.3335C11.8385 9.3335 13.3332 10.8295 13.3332 12.6668C13.3332 13.2188 12.8852 13.6668 12.3332 13.6668Z",fill:"#6D4C41"}),R.createElement("path",{id:"Vector_5",d:"M24.3332 13.6668C23.7812 13.6668 23.3332 13.2188 23.3332 12.6668C23.3332 11.9322 22.7358 11.3335 21.9998 11.3335C21.2638 11.3335 20.6665 11.9322 20.6665 12.6668C20.6665 13.2188 20.2185 13.6668 19.6665 13.6668C19.1145 13.6668 18.6665 13.2188 18.6665 12.6668C18.6665 10.8295 20.1612 9.3335 21.9998 9.3335C23.8385 9.3335 25.3332 10.8295 25.3332 12.6668C25.3332 13.2188 24.8852 13.6668 24.3332 13.6668Z",fill:"#6D4C41"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_1751"},R.createElement("rect",{width:"32",height:"32",fill:"white"}))))},RN=Rie;var eae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},$3=eae;var tae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions"},R.createElement("circle",{id:"Ellipse 2",cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1738)"}),R.createElement("path",{id:"circle",d:"M22.4466 10.5836C20.7296 9.07415 18.2009 9.36319 16.6088 11.0332L16.0156 11.6755L15.3912 11.0332C13.8303 9.36319 11.2704 9.07415 9.55338 10.5836C7.58661 12.3179 7.49295 15.401 9.24119 17.2637L15.2976 23.687C15.6722 24.1045 16.3278 24.1045 16.7024 23.687L22.7588 17.2637C24.507 15.401 24.4134 12.3179 22.4466 10.5836Z",fill:"white"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1738",x1:"7.2",y1:"7.2",x2:"28",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#EE5C91"}),R.createElement("stop",{offset:"0.833333",stopColor:"#E02222"}))))},eE=tae;var ca={reactButton:"_",reactButton__icon:"ee",reactButton__reactionsText:"re",reactButton__panel:"ho",reactButton__panel__reaction:"r",reactButton__panel__reaction__text:"y","reaction-scale":"ae","reaction-click":"oe"};var iae=e=>R.createElement("svg",c({width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.9727 9.6543C16.1055 10.418 16.0059 11.1484 15.6738 11.7461C15.7734 12.543 15.541 13.373 15.0762 13.9707C15.043 15.8301 13.9141 17.125 11.3574 17.125C11.125 17.125 10.8594 17.125 10.5938 17.125C7.20703 17.125 6.17773 15.8633 4.68359 15.8301C4.58398 16.2617 4.15234 16.5938 3.6875 16.5938H1.5625C0.964844 16.5938 0.5 16.1289 0.5 15.5312V7.5625C0.5 6.99805 0.964844 6.5 1.5625 6.5H4.81641C5.44727 5.96875 6.34375 4.50781 7.10742 3.74414C7.57227 3.2793 7.43945 0.125 9.49805 0.125C11.3906 0.125 12.6523 1.1875 12.6523 3.61133C12.6523 4.24219 12.5195 4.74023 12.3535 5.17188H13.582C15.1758 5.17188 16.4375 6.5332 16.4375 7.99414C16.4375 8.625 16.2715 9.15625 15.9727 9.6543ZM13.9141 11.4473C14.6445 10.7832 14.5449 9.75391 14.0801 9.25586C14.4121 9.25586 14.8438 8.625 14.8438 8.02734C14.8105 7.39648 14.2793 6.76562 13.582 6.76562H10.1289C10.1289 5.50391 11.0586 4.90625 11.0586 3.61133C11.0586 2.81445 11.0586 1.71875 9.49805 1.71875C8.86719 2.34961 9.16602 3.94336 8.23633 4.87305C7.33984 5.76953 6.04492 8.09375 5.08203 8.09375H4.75V14.3027C6.50977 14.3027 8.07031 15.5312 10.4277 15.5312H11.6895C12.8516 15.5312 13.7148 14.9668 13.4492 13.373C13.9473 13.0742 14.3457 12.1445 13.9141 11.4473ZM3.42188 14.4688C3.42188 14.0371 3.05664 13.6719 2.625 13.6719C2.16016 13.6719 1.82812 14.0371 1.82812 14.4688C1.82812 14.9336 2.16016 15.2656 2.625 15.2656C3.05664 15.2656 3.42188 14.9336 3.42188 14.4688Z"}));function V3({pageId:e="*",componentId:t="*",myReaction:o,reactionsCount:r,defaultIconClassName:n,imgIconClassName:i,onReactionClick:a}){let s="reaction_button",{isExcluded:l,accessibilityId:d,config:p,defaultConfig:u,uiReference:g,themeStyles:f}=A({pageId:e,componentId:t,elementId:s}),y=o!=null;if(l)return null;let v=()=>{switch(o){case"like":return R.createElement($3,{className:ca.reactButton__icon});case"love":return R.createElement(eE,{className:ca.reactButton__icon});case"fire":return R.createElement(YN,{className:ca.reactButton__icon});case"happy":return R.createElement(RN,{className:ca.reactButton__icon});case"crying":return R.createElement(XN,{className:ca.reactButton__icon});default:return null}};return R.createElement(F,{style:f,"data-qa-anchor":d,className:ca.reactButton,onPress:()=>{a("like");}},o?v():R.createElement(ee,{defaultIcon:()=>R.createElement(iae,{className:sr(ca.reactButton__icon,n),"data-has-my-reaction":"false"}),imgIcon:()=>R.createElement("img",{src:p.icon,alt:g,className:i}),defaultIconName:u.icon,configIconName:p.icon}),R.createElement(S.BodyBold,{className:ca.reactButton__reactionsText,"data-has-my-reaction":y},typeof r=="number"?ob(r):o||p.text))}var tE={saveButton:"te"};function b1({pageId:e="*",componentId:t="*",onPress:o,className:r}){let n="save_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(F,{className:sr(tE.saveButton,r),"data-qa-anchor":i,style:N(c({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var oE={shareStoryButton:"ie",shareStoryIcon:"po"};var Tc={communityAvatar__text:"fo",communityAvatar__placeholder__path:"uo",communityAvatar__placeholder__rect:"bo",communityAvatar__placeholder:"vo",communityAvatar__image:"xo"};var rE=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",className:Tc.communityAvatar__placeholder},e),R.createElement("rect",{width:"64",height:"64",rx:"32",className:Tc.communityAvatar__placeholder__rect}),R.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:Tc.communityAvatar__placeholder__path}));function Or({pageId:e="*",componentId:t="*",community:o}){let r="community_avatar",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r}),s=se({fileId:o==null?void 0:o.avatarFileId});return i?null:s==null?R.createElement(rE,{style:a}):R.createElement("object",{data:s,type:"image/png",className:Tc.communityAvatar__image,"data-qa-anchor":n,style:a},R.createElement(rE,null))}var pae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"14",fill:"none",viewBox:"0 0 15 14"},e),R.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"})),j3=({pageId:e="*",componentId:t="*",community:o,onClick:r})=>{let n="share_story_button",{config:i,isExcluded:a}=A({pageId:e,componentId:t,elementId:n});return a?null:R.createElement("button",{role:"button",className:sr(oE.shareStoryButton),"data-qa-anchor":"share_story_button",onClick:r,"data-hideAvatar":i==null?void 0:i.hide_avatar},!(i!=null&&i.hide_avatar)&&R.createElement(Or,{pageId:e,componentId:t,community:o}),R.createElement(S.BodyBold,null,(i==null?void 0:i.text)||"Share story"),R.createElement(pae,null))};var G3={speakerButton:"wo",speakerButton__icon:"yo"};var gae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),fae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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 Z3({isMuted:e,pageId:t="*",componentId:o="*",defaultIconClassName:r,imgIconClassName:n,onPress:i}){let a="speaker_button",{accessibilityId:s,config:l,defaultConfig:d,isExcluded:p,uiReference:u}=A({pageId:t,componentId:o,elementId:a});return p?null:R.createElement(F,{className:sr(G3.speakerButton),onPress:i},R.createElement(ee,{"data-qa-anchor":s,defaultIcon:()=>e?R.createElement(fae,{className:G3.speakerButton__icon}):R.createElement(gae,{className:G3.speakerButton__icon}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:u,className:sr(n)}),defaultIconName:d.icon,configIconName:l.icon}))}var kc={hyperlink:"ko",hyperlinkIcon:"jo",hyperlinkText:"zo",text:"Xo"};var Ci=r=>{var n=r,{href:e,children:t}=n,o=P(n,["href","children"]);return R.createElement("a",c({href:e,className:kc.hyperlink},o),R.createElement(Ic,{className:kc.hyperlinkIcon}),R.createElement("div",{className:kc.hyperlinkText},R.createElement("span",{className:kc.text},t)))};var iE={editCancelButton:"Yo"};var ms=({pageId:e="*",componentId:t="*",className:o,onPress:r=()=>{}})=>{let n="edit_cancel_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(F,{"data-qa-anchor":i,className:sr(iE.editCancelButton,o),style:N(c({},l),{backgroundColor:a.background_color}),onPress:r},R.createElement(S.Body,null,a.cancel_button_text))};var vae=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),R.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"}),R.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"})),cs=vae;var zr={commentComposer:"Ao",commentComposer__top:"Vo",commentComposer__mentionContainer:"qo",commentComposer__container:"Bo",commentComposer__avatar:"Co",commentComposer__button:"k",commentComposer__input:"Do",commentComposer__replyContainer:"Eo",commentComposer__replyContainer__text:"Fo",commentComposer__replyContainer__username:"Go",commentComposer__replyContainer__closeButton:"Ho",commentComposer__disableContainer:"Io"};var wae=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},R.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"})),Sc=({referenceId:e,referenceType:t,replyTo:o,onCancelReply:r,shouldAllowCreation:n=!0,community:i})=>{var h,x;let a=De().currentUserId,{user:s}=pr(a),l=rt({fileId:(h=s==null?void 0:s.avatar)==null?void 0:h.fileId,imageSize:"small"}),d=useRef(null),p=useRef(null),u=useRef(null),[g,f]=useState(0),[y,v]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:C}=useMutation({mutationFn:M=>_(void 0,[M],function*({params:b}){let I=o?o.commentId:void 0;yield CommentRepository.createComment(N(c({referenceId:o?o.referenceId:e,referenceType:t,parentId:I},b),{mentionees:b.mentionees}));}),onError:b=>{},onSuccess:()=>{var b;v({data:{text:""},mentionees:[],metadata:{}}),(b=d.current)==null||b.clearEditorState(),r();}});return n?R.createElement("div",{className:zr.commentComposer},R.createElement("div",{className:zr.commentComposer__top},R.createElement("div",{className:zr.commentComposer__mentionContainer,ref:u}),o&&R.createElement("div",{className:zr.commentComposer__replyContainer,style:{"--asc-reply-container-offset-bottom":`${g}px`}},R.createElement("div",{className:zr.commentComposer__replyContainer__text},R.createElement("span",null,"Replying to "),R.createElement("span",{className:zr.commentComposer__replyContainer__username},o==null?void 0:o.userId)),R.createElement(Y1,{onClick:r,className:zr.commentComposer__replyContainer__closeButton}))),R.createElement("div",{className:zr.commentComposer__container},R.createElement("div",{className:zr.commentComposer__avatar},R.createElement(vt,{avatarUrl:l,defaultImage:R.createElement(cs,null)})),R.createElement("div",{className:zr.commentComposer__input,ref:p},R.createElement(Yn,{ref:d,mentionContainer:u==null?void 0:u.current,onChange:({text:b,mentioned:M,mentionees:I})=>{v({data:{text:b},mentionees:I,metadata:{mentioned:M}});},targetType:t,targetId:e,value:y,placehoder:"Say something nice...",communityId:i==null?void 0:i.communityId})),R.createElement(F,{isDisabled:!((x=y==null?void 0:y.data)!=null&&x.text),className:zr.commentComposer__button,onPress:()=>C({params:y})},R.createElement(S.Body,null,"Post")))):R.createElement("div",{className:zr.commentComposer__disableContainer},R.createElement(wae,null),R.createElement(S.Body,null,"Comments are disabled for this story"))};var q3={moderatorBadge:"Jo",moderatorBadge__icon:"Ko",moderatorBadge__text:"Lo"};var Pae=e=>R.createElement("svg",c({width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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 I1({pageId:e="*",componentId:t="*"}){let o="moderator_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement("div",{className:q3.moderatorBadge,style:l,"data-qa-anchor":r},R.createElement(Pae,{className:q3.moderatorBadge__icon}),R.createElement("div",{className:q3.moderatorBadge__text},n.text))}var lE={timestamp:"Mo"};ln.extend(Sae);ln.extend(kae);ln.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=ln().subtract(e,"M"),i=ln();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=ln().subtract(e,"M"),i=ln();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=ln().subtract(e,"y"),i=ln();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=ln().subtract(e,"y"),i=ln();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")}}});function w1({pageId:e="*",componentId:t="*",timestamp:o}){let r="timestamp",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r}),s=ln(o).fromNow();return i?null:R.createElement(S.Caption,{className:lE.timestamp,style:a,"data-qa-anchor":n},s)}var Je={postComment:"No",postComment__deleteComment_container:"Oo",postComment__deleteComment_icon:"Po",postComment__deleteComment_text:"Qo",postComment__avatar:"Ro",postComment__details:"So",postComment__content:"To",postComment__content__username:"Uo",postComment__content__text:"Wo",postComment__secondRow:"Zo",postComment__secondRow__leftPane:"_o",postComment__secondRow__timestamp:"et",postComment__secondRow__rightPane:"rt",postComment__secondRow__rightPane__like:"at",postComment__secondRow__like:"se",postComment__secondRow__reply:"ot",postComment__secondRow__actionButton:"tt",postComment__viewReply_button:"it",postComment__viewReply_icon:"st",postComment__viewReply_text:"ct",postComment__edit:"nt",postComment__edit__inputWrap:"lt",postComment__edit__mentionContainer:"dt",postComment__edit__input:"mt",postComment__edit__buttonWrap:"gt",postComment__edit__button:"ht",postComment__edit__cancelButton:"pt",postComment__edit__saveButton:"ft",postComment__seeMore:"ut"};var Eae=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),K3=Eae;var On={postCommentSkeleton__container:"bt",postCommentSkeleton:"vt",postCommentSkeleton__avatar:"xt",postCommentSkeleton__details:"wt",postCommentSkeleton__content:"yt",postCommentSkeleton__content__bar:"kt",postCommentSkeleton__animation:"jt","skeleton-pulse":"ce"};var X3=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:t});if(n)return null;let a=Array.from({length:o},(s,l)=>R.createElement("div",{key:l,"data-qa-anchor":r,className:sr(On.postCommentSkeleton,On.postCommentSkeleton__animation),style:i},R.createElement("div",{className:sr(On.postCommentSkeleton__avatar,On.postCommentSkeleton__animation)}),R.createElement("div",{className:sr(On.postCommentSkeleton__details,On.postCommentSkeleton__animation)},R.createElement("div",{className:sr(On.postCommentSkeleton__content,On.postCommentSkeleton__animation)}),R.createElement("div",{className:On.postCommentSkeleton__content__bar}))));return R.createElement("div",{className:On.postCommentSkeleton__container},a)};function G8({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=dt({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:i},shouldCall:!!t&&!!o&&n}),{items:a}=l,s=P(l,["items"]);return c({comments:a},s)}function Ec({commentId:e,shouldSubscribe:t=!0,callback:o}){return oa({fetcher:CommentRepository.getComment,params:e,callback:o,shouldSubscribe:!!e&&t,getSubscribedTopic:({data:r})=>getCommentTopic(r)})}var zn="like";var vi={textWithMention__container:"zt",textWithMention__clamp:"ne",textWithMention__paragraph:"Xt",textWithMention__fullContent:"le",textWithMention__mention:"Yt",textWithMention__text:"At",textWithMention__link:"Vt",textWithMention__showMoreLess:"qt"};var Sm=({maxLines:e=8,data:t,mentionees:o,metadata:r})=>{let[n,i]=useState(!1),[a,s]=useState(!1),[l,d]=useState(!1),p=useRef(null),{goToUserProfilePage:u}=Le(),g=useMemo(()=>nl({data:t,mentionees:o,metadata:r}),[t,o,r]);useEffect(()=>{var h;let y=((h=p.current)==null?void 0:h.clientHeight)||0,v=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),C=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*v;y>C*e&&s(!0),d(!0);},[]);let f=(y,v)=>y.children.map(C=>{var h;return M6(C)?R.createElement(F,{key:C.data.userId,className:sr(v,vi.textWithMention__mention),onPress:()=>u(C.data.userId)},C.text):P6(C)||Ov(C)?R.createElement("a",{key:C.url,href:C.url,className:sr(v,vi.textWithMention__link)},N2(C.children[0])?(h=C.children[0])==null?void 0:h.text:C.url):N2(C)?R.createElement("span",{className:sr(v,vi.textWithMention__text)},C.text):null});return R.createElement("div",{className:vi.textWithMention__container},R.createElement("div",{ref:p,className:vi.textWithMention__fullContent,"data-hidden":l},g.root.children.map(y=>R.createElement("p",{className:vi.textWithMention__paragraph},y.children.length>0?R.createElement(S.Body,{renderer:({typoClassName:v})=>R.createElement(R.Fragment,null,f(y,v))}):R.createElement("br",null)))),R.createElement("div",{"data-expanded":n,className:vi.textWithMention__clamp,style:{"--asc-text-with-mention-max-lines":e}},a&&!n&&R.createElement("div",{onClick:()=>i(!0),className:vi.textWithMention__showMoreLess},R.createElement(S.Body,null,"...See more")),g.root.children.map((y,v)=>R.createElement("p",{className:vi.textWithMention__paragraph},y.children.length>0?R.createElement(S.Body,{renderer:({typoClassName:C})=>R.createElement(R.Fragment,null,f(y,C))}):R.createElement("br",null)))))};var Nm={commentOptions__actionButton:"Bt",commentOptions__actionButton__icon:"Ct",commentOptions__actionButton__text:"Dt"};var Y3=({comment:e,handleEditComment:t,handleDeleteComment:o,onCloseBottomSheet:r})=>{let{userRoles:n}=De(),{toggleFlagComment:i,isFlaggedByMe:a}=X7(e.commentId),{canDelete:s,canEdit:l,canReport:d}=Q0(e,!1,n),p=Po(),u=()=>_(void 0,null,function*(){try{yield i({onFlagSuccess:()=>p.success({content:"Report sent"}),onUnFlagSuccss:()=>p.success({content:"Unreport sent"})});}catch(f){f instanceof Error&&p.error({content:f.message});}}),g=[l?{name:"Edit comment",action:t,icon:R.createElement(s8,{className:Nm.commentOptions__actionButton__icon})}:null,d?{name:a?"Unreport comment":"Report comment",action:u,icon:R.createElement(l8,{className:Nm.commentOptions__actionButton__icon})}:null,s?{name:"Delete comment",action:o,icon:R.createElement(p1,{className:Nm.commentOptions__actionButton__icon})}:null].filter(Yr);return R.createElement(R.Fragment,null,g.map((f,y)=>R.createElement("div",{className:Nm.commentOptions__actionButton,key:y,onClick:()=>{r(),f.action();}},f.icon,R.createElement("div",{className:Nm.commentOptions__actionButton__text},R.createElement(S.BodyBold,null,f.name)))))};var pt={postReplyComment:"Et",postReplyComment__avatar:"Ft",postReplyComment__details:"Gt",postReplyComment__content:"Ht",postReplyComment__content__username:"It",postReplyComment__content__text:"Jt",postReplyComment__secondRow:"Kt",postReplyComment__secondRow__leftPane:"Lt",postReplyComment__secondRow__rightPane:"Mt",postReplyComment__secondRow__rightPane__like:"Nt",postReplyComment__secondRow__like:"de",postReplyComment__secondRow__reply:"Ot",postReplyComment__secondRow__actionButton:"Pt",postReplyComment__viewReply_button:"Qt",postReplyComment__viewReply_icon:"Rt",postReplyComment__viewReply_text:"St",postReplyComment__actionButton:"Tt",postReplyComment__actionButton__icon:"Ut",postReplyComment__actionButton__text:"Wt",postReplyComment__deleteComment_container:"Zt",postReplyComment__deleteComment_icon:"_t",postReplyComment__deleteComment_text:"ei",postReplyComment__edit:"ri",postReplyComment__edit__inputWrap:"ai",postReplyComment__edit__input:"oi",postReplyComment__edit__buttonWrap:"ti",postReplyComment__edit__button:"ii",postReplyComment__edit__cancelButton:"si",postReplyComment__edit__saveButton:"ci",postReplyComment__secondRow__timestamp:"ni"};var Gae=({pageId:e="*",community:t,comment:o})=>{var T;let r="post_comment",{confirm:n}=Ye(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=te({pageId:e,componentId:r}),[u,g]=useState(!1),[f,y]=useState(!1),[v,C]=useState(),h=(o.myReactions||[]).some(L=>L==="like"),x=()=>g(L=>!L),b=()=>_(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),M=()=>{y(!0);},I=()=>{n({pageId:e,componentId:r,title:"Delete reply",content:"This reply will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:b});},w=()=>_(void 0,null,function*(){o&&(h?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,zn):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,zn));}),k=useCallback(()=>_(void 0,null,function*(){!v||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:v.data,mentionees:v.mentionees,metadata:v.metadata}),y(!1));}),[v]);return Ec({commentId:o.commentId}),l?null:R.createElement(R.Fragment,null,o.isDeleted?R.createElement("div",{className:pt.postReplyComment__deleteComment_container,style:p},R.createElement(wc,{className:pt.postReplyComment__deleteComment_icon}),R.createElement(S.Caption,{className:pt.postReplyComment__deleteComment_text},"This reply has been deleted")):f?R.createElement("div",{className:pt.postReplyComment__edit},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:pt.postReplyComment__edit__inputWrap},R.createElement("div",{className:pt.postReplyComment__edit__input},R.createElement(Yn,{communityId:t==null?void 0:t.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:L=>{C({data:{text:L.text},mentionees:L.mentionees,metadata:{mentioned:L.mentioned}});}})),R.createElement("div",{className:pt.postReplyComment__edit__buttonWrap},R.createElement(ms,{componentId:"edit_comment_component",className:sr(pt.postReplyComment__edit__button,pt.postReplyComment__edit__cancelButton),onPress:()=>{y(!1);}}),R.createElement(b1,{className:sr(pt.postReplyComment__edit__button,pt.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):R.createElement("div",{className:pt.postReplyComment,style:p,"data-qa-anchor":i},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:pt.postReplyComment__details},R.createElement("div",{className:pt.postReplyComment__content},R.createElement(S.BodyBold,{className:pt.postReplyComment__content__username},(T=o.creator)==null?void 0:T.displayName),R.createElement(I1,{pageId:e,componentId:r}),R.createElement(Sm,{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),R.createElement("div",{className:pt.postReplyComment__secondRow},R.createElement("div",{className:pt.postReplyComment__secondRow__leftPane},R.createElement(S.Caption,{className:pt.postReplyComment__secondRow__timestamp},R.createElement(w1,{pageId:e,componentId:r,timestamp:o.createdAt}),o.createdAt!==o.editedAt&&" (edited)"),R.createElement("div",{onClick:w},R.createElement(S.CaptionBold,{className:pt.postReplyComment__secondRow__like,"data-is-liked":h},h?"Liked":"Like")),R.createElement(Na,{className:pt.postReplyComment__secondRow__actionButton,onClick:()=>g(!0)})),o.reactionsCount>0&&R.createElement("div",{className:pt.postReplyComment__secondRow__rightPane},R.createElement(S.Caption,null,ob(o.reactionsCount)),R.createElement($3,{className:pt.postReplyComment__secondRow__rightPane__like}))))),R.createElement(Pr,{onClose:x,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},R.createElement(Y3,{comment:o,onCloseBottomSheet:x,handleEditComment:M,handleDeleteComment:I})))},uE=Gae;var R3={postReplyCommentList__viewReply_button:"li",postReplyCommentList__viewReply_icon:"di",postReplyCommentList__viewReply_text:"mi"};var gE=({referenceId:e,referenceType:t,community:o,parentId:r})=>{let{comments:n,hasMore:i,isLoading:a,loadMore:s}=G8({referenceId:e,referenceType:t,parentId:r,limit:10,shouldCall:!0,includeDeleted:!0}),l=()=>{s();};return R.createElement("div",null,a&&R.createElement(X3,{numberOfSkeletons:3}),n.map(d=>R.createElement(uE,{community:o,comment:d})),i&&R.createElement("div",{className:R3.postReplyCommentList__viewReply_button,onClick:l},R.createElement(K3,{className:R3.postReplyCommentList__viewReply_icon}),R.createElement(S.CaptionBold,{className:R3.postReplyCommentList__viewReply_text},"View more replies")))};var Kae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))},Jae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},CE=({pageId:e="*",componentId:t="comment_bubble",comment:o,community:r,onClickReply:n,shouldAllowInteraction:i=!0})=>{var q;let {accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=te({pageId:e,componentId:t}),{confirm:g}=Ye(),[f,y]=useState(!1),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(),I=useRef(null);useState(!1);let T=()=>y(O=>!O),L=(o.myReactions||[]).some(O=>O==="like"),D=o.childrenNumber;if(d)return null;let U=()=>_(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),j=()=>{x(!0);},E=()=>{g({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:U});},V=()=>_(void 0,null,function*(){o&&(L?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,zn):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,zn));}),G=useCallback(()=>_(void 0,null,function*(){!b||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:b.data,mentionees:b.mentionees,metadata:b.metadata}),x(!1));}),[b]);return Ec({commentId:o.commentId}),R.createElement("div",{style:u,"data-qa-anchor":a},o.isDeleted?R.createElement("div",{className:Je.postComment__deleteComment_container},R.createElement(wc,{className:Je.postComment__deleteComment_icon}),R.createElement(S.Body,{className:Je.postComment__deleteComment_text},"This comment has been deleted")):h?R.createElement("div",{className:Je.postComment__edit},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:Je.postComment__edit__inputWrap,ref:I},R.createElement("div",{className:Je.postComment__edit__input},R.createElement(Yn,{communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:O=>{M({data:{text:O.text},mentionees:O.mentionees,metadata:{mentioned:O.mentioned}});},maxLines:5,mentionContainer:I==null?void 0:I.current})),R.createElement("div",{className:Je.postComment__edit__buttonWrap},R.createElement(ms,{componentId:"edit_comment_component",className:sr(Je.postComment__edit__button,Je.postComment__edit__cancelButton),onPress:()=>{x(!1);}}),R.createElement(b1,{className:sr(Je.postComment__edit__button,Je.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):R.createElement("div",{className:Je.postComment},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:Je.postComment__details},R.createElement("div",{className:Je.postComment__content},R.createElement(S.BodyBold,{className:Je.postComment__content__username},(q=o.creator)==null?void 0:q.displayName),R.createElement(I1,{pageId:e,componentId:t}),R.createElement(Sm,{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),R.createElement("div",{className:Je.postComment__secondRow},i&&R.createElement("div",{className:Je.postComment__secondRow__leftPane},R.createElement(S.Caption,{className:Je.postComment__secondRow__timestamp},R.createElement(w1,{pageId:e,componentId:t,timestamp:o.createdAt}),o.createdAt!==o.editedAt&&" (edited)"),R.createElement("div",{onClick:V},R.createElement(S.CaptionBold,{className:Je.postComment__secondRow__like,"data-is-liked":L},L?"Liked":"Like")),R.createElement("div",{onClick:()=>n(o)},R.createElement(S.CaptionBold,{className:Je.postComment__secondRow__reply},"Reply")),R.createElement(Kae,{className:Je.postComment__secondRow__actionButton,onClick:()=>y(!0)})),o.reactionsCount>0&&R.createElement("div",{className:Je.postComment__secondRow__rightPane},R.createElement(S.Caption,null,ob(o.reactionsCount)),R.createElement(Jae,{className:Je.postComment__secondRow__rightPane__like}))),D>0&&!v&&R.createElement("div",{className:Je.postComment__viewReply_button,onClick:()=>C(!0)},R.createElement(K3,{className:Je.postComment__viewReply_icon}),R.createElement(S.CaptionBold,{className:Je.postComment__viewReply_text},"View ",D," ",D>1?"replies":"reply")),v&&R.createElement(gE,{community:r,referenceId:o.referenceId,referenceType:o.referenceType,parentId:o.commentId}))),R.createElement(Pr,{onClose:T,isOpen:f,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},R.createElement(Y3,{comment:o,handleEditComment:j,handleDeleteComment:E,onCloseBottomSheet:T})))};var zt={commentAd:"gi",commentAd__container:"hi",commentAd__details:"pi",commentAd__avatar:"fi",commentAd__content:"ui",commentAd__content__advertiserName__container:"bi",commentAd__content__advertiserName:"vi",commentAd__content__text:"xi",commentAd__adCard:"wi",commentAd__adCard__imageContainer:"yi",commentAd__adCard__image:"ki",commentAd__adCard__detail:"ji",commentAd__adCard__textContainer:"zi",commentAd__adCard__description:"Xi",commentAd__adCard__headline:"Yi",commentAd__adCard__button:"Ai",commentAd__adCard__button__text:"Vi",infoIcon__button:"qi",infoIcon:"Bi"};var Yae=o=>{var r=o,{color:e="white"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.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}))},xE=Yae;var Lc={badge:"me",badge__icon:"Ci",badge__text:"Di",badge__child:"Ei"};var Bm=()=>R.createElement("div",{className:Lc.badge},R.createElement("div",{className:Lc.badge__child},R.createElement(xE,{className:Lc.badge__icon}),R.createElement("div",{className:Lc.badge__text},"Sponsored")));var ese=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"64",height:"64",rx:"32",fill:"#D9E5FC"}),R.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"})),Lm=ese;var tse=e=>R.createElement("svg",c({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),mn=tse;var fo={drawer__content:"ge",drawer__innerContent:"Fi",drawer__placeholder:"Gi",drawer__overlay:"Hi",drawer__title:"Ii",drawer__content__data:"Ji",drawer__content__data__title:"Ki",drawer__content__data__text:"Li",drawer__content__data__caption:"Mi",drawer__content__data__infoIcon:"Ni",drawer__content__emptySpace:"Oi"};var t5=({isOpen:e,onOpenChange:t,ad:o})=>{var r;return R.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:n=>n.stopPropagation()},R.createElement(Drawer.Portal,null,R.createElement(Drawer.Overlay,{className:fo.drawer__overlay}),R.createElement(Drawer.Content,{className:fo.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},R.createElement("div",{className:fo.drawer__innerContent},R.createElement("div",{className:fo.drawer__placeholder}),R.createElement(Drawer.Title,{className:fo.drawer__title},R.createElement(S.Title,null,"About this advertisement")),R.createElement("div",{className:fo.drawer__content__data},R.createElement(S.BodyBold,{className:fo.drawer__content__data__title},"Why this advertisement?"),R.createElement("div",{className:fo.drawer__content__data__text},R.createElement(mn,{className:fo.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:fo.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),R.createElement("div",{className:fo.drawer__content__data},R.createElement(S.BodyBold,{className:fo.drawer__content__data__title},"About this advertiser"),R.createElement("div",{className:fo.drawer__content__data__text},R.createElement(mn,{className:fo.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:fo.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),R.createElement("div",{className:fo.drawer__content__emptySpace})))))};var IE=({ad:e,themeStyles:t,avatarUrl:o,adImageUrl:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return R.createElement("div",{className:zt.commentAd,style:t},R.createElement(F,{className:zt.infoIcon__button,onPress:()=>a(!0)},R.createElement(mn,{className:zt.infoIcon})),R.createElement("div",{className:zt.commentAd__container},R.createElement("div",{className:zt.commentAd__avatar},R.createElement(vt,{avatarUrl:o,defaultImage:R.createElement(Lm,null)})),R.createElement("div",{className:zt.commentAd__details},R.createElement("div",{className:zt.commentAd__content},R.createElement(S.BodyBold,{className:zt.commentAd__content__advertiserName__container},R.createElement("div",{className:zt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),R.createElement(Bm,null),R.createElement("div",null,R.createElement(S.Body,{className:zt.commentAd__content__text},e.body)),R.createElement("div",{className:zt.commentAd__adCard,onClick:s},R.createElement("div",{className:zt.commentAd__adCard__imageContainer},R.createElement("img",{className:zt.commentAd__adCard__image,src:r})),R.createElement("div",{className:zt.commentAd__adCard__detail},R.createElement("div",{className:zt.commentAd__adCard__textContainer},R.createElement(S.Caption,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,zt.commentAd__adCard__description)},e.description)}),R.createElement(S.BodyBold,{className:zt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?R.createElement(F,{className:zt.commentAd__adCard__button,onPress:s},R.createElement(S.CaptionBold,{className:zt.commentAd__adCard__button__text},e.callToAction)):null))))),R.createElement(t5,{ad:e,isOpen:i,onOpenChange:d=>a(d)}))};var wE=({pageId:e="*",ad:t})=>{var d,p,u,g,f,y;let o="comment_tray_component",{themeStyles:r}=te({pageId:e,componentId:o}),i=rt({fileId:(p=(d=t.advertiser)==null?void 0:d.avatar)==null?void 0:p.fileId})||((g=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:g.fileUrl)||"",s=rt({fileId:(f=t.image1_1)==null?void 0:f.fileId})||((y=t.image1_1)==null?void 0:y.fileUrl)||"";return R.createElement(IE,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:v=>{window==null||window.open(v,"_blank");}})};var o5={commentList__container:"Pi",commentList__viewAllComments__button:"Qi",commentList__container_intersection:"Ri",noCommentsContainer:"Si"};function Dc({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var use=e=>"adId"in e,Hc=({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:d,accessibilityId:p}=te({componentId:l,pageId:o}),u=useRef(null),[g,f]=useState(null),{items:y,loadMore:v,hasMore:C,isLoading:h}=gc({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:x=>x.commentId,shouldCall:!0});return ko({node:g,options:{threshold:.8},onIntersect:()=>{C&&h===!1&&v();}}),Dc({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),Xa({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!h&&y.length===0?R.createElement("div",{className:o5.noCommentsContainer},R.createElement(S.Body,null,"No comments yet")):R.createElement("div",{className:o5.commentList__container,style:d,ref:u,"data-qa-anchor":p},y.map(x=>use(x)?R.createElement(wE,{key:x.adId,ad:x}):R.createElement(CE,{key:x.commentId,comment:x,onClickReply:b=>r==null?void 0:r(b),componentId:l,community:a,shouldAllowInteraction:s})),h&&R.createElement(X3,{pageId:o,componentId:l,numberOfSkeletons:3}),R.createElement("div",{ref:x=>f(x),className:o5.commentList__container_intersection}))};var K8={container:"Ti",header:"Ui",roundedHeader:"Wi",content:"Zi",scroller:"_i",composeBarContainer:"es",nestedBackdrop:"rs",commentTrayContainer:"as",commentListContainer:"os",mobileSheetComposeBarContainer:"ts"};var Am=({pageId:e="*",referenceType:t,referenceId:o,community:r={},shouldAllowInteraction:n=!0,shouldAllowCreation:i=!0})=>{let a="comment_tray_component",{accessibilityId:s,themeStyles:l}=te({pageId:e,componentId:a}),[d,p]=useState(null),u=f=>{p(f);},g=()=>{p(null);};return R.createElement("div",{style:l,"data-qa-anchor":s,className:K8.commentTrayContainer},R.createElement("div",{className:K8.commentListContainer},R.createElement(Hc,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),R.createElement(Sc,{referenceId:o,referenceType:t,onCancelReply:g,replyTo:d,shouldAllowCreation:i}))};var J8={doneButton:"is",doneButton_text:"ss"};function X8(n){var i=n,{pageId:e="*",componentId:t="*",className:o}=i,r=P(i,["pageId","componentId","className"]);let a="done_button",{accessibilityId:s,config:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:a});return d?null:R.createElement(F,c({className:`${J8.doneButton} ${o||""}`,"data-qa-anchor":s},r),R.createElement(S.Body,{className:J8.doneButton_text},l.done_button_text))}var ut={hyperlinkFormContainer:"cs",form:"ns",bottomSheet:"a","react-modal-sheet-backdrop":"ls","react-modal-sheet-container":"ds","react-modal-sheet-content":"ms","react-modal-sheet-header":"gs","react-modal-sheet-drag-indicator":"hs",inputContainer:"ps",input:"he",hasError:"fs",label:"j",required:"us",description:"bs",errorText:"vs",characterCount:"xs",headerContainer:"ws",labelContainer:"ys",headerTitle:"ks",cancelButton:"js",doneButton:"pe",removeIcon:"zs",removeLinkButton:"Xs",divider:"Ys",removeLinkContainer:"As"};var PE=30,R8=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var V,G,q;let a="hyper_link_config_component",{confirm:s}=Ye(),{accessibilityId:l,config:d,isExcluded:p,themeStyles:u}=te({pageId:e,componentId:a});if(p)return null;let{formatMessage:g}=useIntl(),{client:f}=De(),[y,v]=useState(!1),C="asc-story-hyperlink-form",h=z.object({url:z.string().refine(O=>{if(!O)return !0;try{let H=new URL(O);return ["http:","https:"].includes(H.protocol)}catch(H){if(O.startsWith("www."))try{let z=new URL(`https://${O}`);return ["http:","https:"].includes(z.protocol)}catch(z){return !1}return !1}},{message:g({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(O=>_(void 0,null,function*(){if(!O)return !0;let H=O.startsWith("www.")?`https://${O}`:O;return yield f==null?void 0:f.validateUrls([H]).catch(()=>!1)}),{message:g({id:"storyCreation.hyperlink.validation.error.whitelisted"})}),customText:z.string().optional().refine(O=>_(void 0,null,function*(){return O?yield f==null?void 0:f.validateTexts([O]).catch(()=>!1):!0}),g({id:"storyCreation.hyperlink.validation.error.blocked"}))}),{trigger:x,watch:b,register:M,handleSubmit:I,formState:{errors:w},reset:k}=useForm({resolver:zodResolver(h)}),{url:T,customText:L}=b();useEffect(()=>{v(T!==""||L!=="");},[T,L]);let D=O=>{n(O),r();},U=()=>{k(),i(),r();},j=()=>{s({title:g({id:"storyCreation.hyperlink.removeConfirm.title"}),content:g({id:"storyCreation.hyperlink.removeConfirm.content"}),cancelText:g({id:"storyCreation.hyperlink.removeConfirm.cancel"}),okText:g({id:"storyCreation.hyperlink.removeConfirm.confirm"}),onOk:U});},E=()=>{y?s({title:g({id:"storyCreation.hyperlink.unsavedChanges.title"}),content:g({id:"storyCreation.hyperlink.unsavedChanges.content"}),cancelText:g({id:"storyCreation.hyperlink.unsavedChanges.cancel"}),okText:g({id:"storyCreation.hyperlink.unsavedChanges.confirm"}),onOk:()=>{k(),r();}}):r();};return R.createElement(Pr,{"data-qa-anchor":l,detent:"full-height",mountPoint:document.getElementById("asc-uikit-create-story"),rootId:"asc-uikit-create-story",isOpen:t,onClose:E,className:ut.bottomSheet,style:u},R.createElement("div",{className:ut.headerContainer},R.createElement(ms,{pageId:e,componentId:a,onPress:E}),R.createElement(S.Title,null,g({id:"storyCreation.hyperlink.bottomSheet.title"})),R.createElement(X8,{type:"submit",pageId:e,componentId:a,form:C})),R.createElement("div",{className:ut.divider}),R.createElement("div",{className:ut.hyperlinkFormContainer},R.createElement("form",{onSubmit:I(D),id:C,className:ut.form},R.createElement("div",{className:ut.inputContainer},R.createElement(S.Title,null,R.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:sr(ut.label,ut.required)},g({id:"storyCreation.hyperlink.form.urlLabel"}))),R.createElement("input",c({id:"asc-uikit-hyperlink-input-url",placeholder:g({id:"storyCreation.hyperlink.form.urlPlaceholder"}),className:sr(ut.input,(w==null?void 0:w.url)&&ut.hasError)},M("url",{onChange:()=>x("url")}))),(w==null?void 0:w.url)&&R.createElement("span",{className:ut.errorText},(V=w==null?void 0:w.url)==null?void 0:V.message)),R.createElement("div",{className:ut.inputContainer},R.createElement("div",{className:ut.labelContainer},R.createElement(S.Title,null,R.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:ut.label},g({id:"storyCreation.hyperlink.form.linkTextLabel"}))),R.createElement("div",{className:ut.characterCount},((G=b("customText"))==null?void 0:G.length)||0," / ",PE)),R.createElement("input",N(c({id:"asc-uikit-hyperlink-input-link-text",placeholder:g({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:sr(ut.input,(w==null?void 0:w.customText)&&ut.hasError)},M("customText")),{maxLength:PE})),(w==null?void 0:w.customText)&&R.createElement("span",{className:ut.errorText},(q=w==null?void 0:w.customText)==null?void 0:q.message),R.createElement(S.Caption,null,R.createElement("label",{className:ut.description},g({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&R.createElement("div",{className:ut.removeLinkContainer},R.createElement(A3,{variant:"secondary",onClick:j,className:sr(ut.removeLinkButton)},R.createElement(p1,{className:ut.removeIcon}),g({id:"storyCreation.hyperlink.form.removeButton"})))))};var Pse=createContext([]),xi=()=>({config:useContext(Pse)});var Dm=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var i5=({reactionConfigItem:e,className:t})=>R.createElement("img",{"data-qa-anchor":"reaction_image_view",key:e.name,src:e.image,alt:e.name,className:t});var Tse=o=>{var r=o,{backgroundColor:e}=r,t=P(r,["backgroundColor"]);return R.createElement("svg",c({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.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}),R.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"}))},Hm=Tse;var Se={reactionListContainer:"Vs",tabListContainer:"fe",tabList:"qs",tabItem:"ue",reactionEmoji:"Bs",userList:"Cs",userItem:"Ds",userDetailsContainer:"Es",userDetailsProfile:"Fs",userDetailsReaction:"Gs",reactionItem:"Hs",reactionIcon:"Is",reactionCustomStateContainer:"be",loadingState:"Js","skeleton-pulse":"ve",reactionState:"Ks",reactionState2Line:"Ls",removeBtn:"Ms",infiniteScrollContainer:"Ns",reactionPanel:"Os",avatar:"Ps"};var _E=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=De(),{config:s}=xi(),l=useMemo(()=>s.map(({name:d})=>d),[s]);return !i||!e?null:R.createElement("div",{className:Se.infiniteScrollContainer},R.createElement(ZY,{scrollableTarget:i,scrollThreshold:.7,hasMore:o,next:r,loader:n?R.createElement("span",{key:0},"Loading..."):null,dataLength:e.length||0,style:{display:"flex",width:"100%"},height:i.clientHeight},R.createElement("div",{className:Se.userList},e.map(d=>{var p,u,g,f;return R.createElement(Fragment,{key:d.reactionId},R.createElement("div",{className:Se.userItem},R.createElement("div",{className:Se.userDetailsContainer},R.createElement("div",{className:Se.userDetailsProfile},R.createElement("div",{className:Se.avatar},R.createElement(vt,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=d.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:R.createElement(cs,null)})),R.createElement(S.BodyBold,{"data-qa-anchor":"user_display_name"},(g=d.user)==null?void 0:g.displayName,a===((f=d.user)==null?void 0:f.userId)&&R.createElement(R.Fragment,null,R.createElement("br",null),R.createElement("div",{onClick:()=>t(d.reactionName)},R.createElement(S.Caption,{className:Se.removeBtn},"Click to remove reaction"))))),R.createElement("div",{className:Se.userDetailsReaction},l.includes(d.reactionName)?R.createElement(i5,{reactionConfigItem:s.find(({name:y})=>y===d.reactionName),className:Se.reactionIcon}):R.createElement(Hm,{className:Se.reactionIcon})))))}))))};var Bse=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),a5=Bse;var kE=()=>R.createElement("div",{className:Se.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},R.createElement("div",{className:Se.reactionState},R.createElement(a5,null),R.createElement(S.Body,null,R.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var Ase=e=>R.createElement("svg",c({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),NE=Ase;var BE=()=>R.createElement("div",{className:Se.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},R.createElement("div",{className:Se.reactionState},R.createElement(NE,null),R.createElement("div",{className:Se.reactionState2Line},R.createElement(S.Body,null,R.createElement(FormattedMessage,{id:"livechat.reaction.emptyState"})),R.createElement(S.Caption,null,R.createElement(FormattedMessage,{id:"livechat.reaction.emptyState.description"})))));var Dse=e=>R.createElement("svg",c({width:"375",height:"56",viewBox:"0 0 375 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{x:"16",y:"8",width:"40",height:"40",rx:"20",fill:"#292B32"}),R.createElement("rect",{x:"64",y:"24",width:"140",height:"8",rx:"4",fill:"#292B32"})),LE=Dse;var og=()=>R.createElement("div",{className:sr(Se.reactionCustomStateContainer,Se.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>R.createElement(LE,{key:`loading_${t}`})));var Fse=(e,t)=>({addReaction:n=>_(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>_(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),HE=Fse;var jse=(e,t)=>{let[o,r]=useState(0),[n,i]=useState({}),[a,s]=useState(null),l=({data:d,loading:p,error:u})=>{p||u||(r(d.reactionsCount),i(d.reactions),s(d.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}},FE=jse;var l5="unknown",Qse=(e,t,o)=>t==="All"?e:t===l5?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),Wse=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?R.createElement(og,null):i?R.createElement(kE,null):e.length===0?r?R.createElement(og,null):R.createElement(BE,null):R.createElement(_E,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),Fm=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=te({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:d}=FT({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=FE(o,t),[g,f]=useState("All"),y=useRef(null),{config:v}=xi(),{removeReaction:C}=HE(o,t),h=w=>{f(w);};if(i==null||!v)return null;let x=useMemo(()=>v.map(w=>w.name),[v]),b=useMemo(()=>Object.keys(p).filter(w=>!x.includes(w)),[p]),M=useMemo(()=>b.reduce((w,k)=>w+p[k],0),[p]),I=useMemo(()=>Qse(i,g,x),[i,g]);return R.createElement("div",{className:Se.reactionListContainer,"data-qa-anchor":`${n}_header`},R.createElement("div",{className:Se.tabListContainer},R.createElement("div",{className:Se.tabList,"data-qa-anchor":`${n}_tab`},R.createElement("div",{"data-active":g==="All",className:Se.tabItem,onClick:()=>h("All")},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},"All ",Dm(u)))),v.map(w=>{let{name:k,image:T}=w;return p[k]?R.createElement("div",{key:k,"data-active":g===k,className:Se.tabItem,onClick:()=>h(k)},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},R.createElement(i5,{className:Se.reactionItem,reactionConfigItem:w}),Dm(p[k])))):null}),b.length>0&&R.createElement("div",{key:l5,"data-active":g===l5,className:Se.tabItem,onClick:()=>h(l5)},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},R.createElement(Hm,{className:Se.reactionIcon}),Dm(M)))))),R.createElement("div",{ref:y,className:Se.reactionPanel},R.createElement(Wse,{currentRef:y.current,hasMore:l,loadMore:d,error:a,isLoading:s,filteredReactions:I,removeReaction:C})))};var Jse=R.createContext(void 0);var xt=()=>{let e=useContext(Jse);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var ng={emptyStateRing:"Qs",errorRing:"Rs",uploadingProgressRing:"Ss","upload-progress":"xe"};var Yse=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,className:ng.emptyStateRing}))},Rse=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.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}))},e1e=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.createElement("circle",{className:ng.uploadingProgressRing,cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none"}))},Oc=s=>{var l=s,{pageId:e="*",componentId:t="*",hasUnseen:o=!1,uploading:r=!1,isErrored:n=!1,size:i=64}=l,a=P(l,["pageId","componentId","hasUnseen","uploading","isErrored","size"]);let d="story_ring",{isExcluded:p}=A({pageId:e,componentId:t,elementId:d});return p?null:n?R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:"none",viewBox:`0 0 ${i} ${i}`},a),R.createElement("circle",{cx:i/2,cy:i/2,r:i/2-1,stroke:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-alert-default"),strokeWidth:"2"})):r?R.createElement(e1e,{pageId:e,componentId:t,elementId:d,size:i}):o?R.createElement(Rse,{pageId:e,componentId:t,elementId:d,size:i}):R.createElement(Yse,{pageId:e,componentId:t,elementId:d,size:i})};var t1e="global-admin";var zE=e=>e!=null&&e.length?e.includes(t1e):!1;var o1e="global-admin",{COMMUNITY_MODERATOR:r1e,CHANNEL_MODERATOR:n1e,MODERATOR:i1e,SUPER_MODERATOR:a1e}=fc,m5=e=>{if(!(e!=null&&e.length))return !1;let t=[r1e,n1e,i1e,a1e];return e.some(o=>t.includes(o))},c5=e=>e!=null&&e.length?e.includes(o1e):!1;var us=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function d5(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 Om={errorIcon:"Ts",addStoryButton:"Us",hiddenInput:"Ws",storyWrapper:"Zs",storyTabContainer:"_s",storyAvatarContainer:"ec",storyAvatar:"rc",storyTitle:"ac","animate-ring":"we",progressRing:"oc",progressRingStatic:"tc"};var c1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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"})),UE=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=te({pageId:e,componentId:t}),{stories:l}=ta({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:d}=hc(o),{currentUserId:p,client:u}=De(),{user:g}=pr(p),y=zE(g==null?void 0:g.roles)||us(u,o),v=(l==null?void 0:l.length)>0,C=l.some(M=>!(M!=null&&M.isSeen)),h=l.some(M=>(M==null?void 0:M.syncState)==="syncing"),x=l.some(M=>(M==null?void 0:M.syncState)==="error"),b=()=>{Array.isArray(l)&&l.length===0||n();};return i||!v&&!y?null:R.createElement("div",{"data-qa-anchor":a,style:s,className:sr(Om.storyTabContainer)},R.createElement("div",{className:sr(Om.storyWrapper)},v&&R.createElement(Oc,{pageId:e,componentId:t,hasUnseen:C,uploading:h,isErrored:x,size:48}),R.createElement("button",{className:sr(Om.storyAvatarContainer),onClick:b},R.createElement(Or,{pageId:e,componentId:t,community:d})),y&&R.createElement(FileTrigger,{onSelect:M=>{let I=Array.from(M);r(I[0]);}},R.createElement(is,{pageId:e,componentId:t})),x&&R.createElement(c1e,{className:sr(Om.errorIcon)})),R.createElement(mw,{lines:1},R.createElement("div",{className:sr(Om.storyTitle)},"Story")))};var Uc={storyTabContainer:"ic",storyTab:"sc",storyTabImage:"cc",storyTabContent:"nc",storyTabTitle:"lc",storyTabIcons:"ye",storyTabSkeleton:"dc",storyTabSkeletonAvatar:"mc","skeleton-pulse":"z",storyTabSkeletonUsername:"gc"};var p1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.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"})),VE=p1e;var gs={container:"hc",avatarContainer:"pc",verifiedIcon:"fc",avatarBackground:"uc",avatar:"bc",displayName:"vc",errorIcon:"xc"};var g1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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"})),f1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("path",{fill:"#000",fillOpacity:".2",d:"M8 0c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"}),R.createElement("path",{fill:"#000",fillOpacity:".2",d:"M8 2c2.21 0 4 1.79 4 4v1h-1V6c0-1.104-.896-2-2-2s-2 .896-2 2v1H4V6c0-2.21 1.79-4 4-4z"})),GE=({pageId:e,componentId:t,targetId:o,hasUnseen:r,onClick:n,isErrored:i})=>{let{community:a}=Mt({communityId:o}),s=rt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement("div",{className:sr(gs.container),onClick:n},R.createElement("div",{className:gs.avatarContainer},R.createElement(Oc,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),R.createElement("div",{className:gs.avatarBackground},s&&R.createElement("img",{className:gs.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&R.createElement(g1e,{className:gs.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&R.createElement(VE,{className:gs.verifiedIcon})),R.createElement(S.Caption,{className:sr(gs.displayName)},!(a!=null&&a.isPublic)&&R.createElement(f1e,null),a==null?void 0:a.displayName))};var p5=e=>{let s=dt({fetcher:StoryRepository.getGlobalStoryTargets,params:e,shouldCall:!0}),{items:t,hasMore:o,loadMore:r,isLoading:n}=s,i=P(s,["items","hasMore","loadMore","isLoading"]);return c({stories:t,hasMore:o,isLoading:n,loadMoreStories:()=>{o&&!n&&r();}},i)};var C1e=10,QE=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=te({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:d}=p5({seenState:"smart",limit:C1e}),p=useRef(null),u=useRef(null);return useEffect(()=>{if(!p.current)return;let g=new IntersectionObserver(f=>{f[0].isIntersecting&&l&&d();},{root:p.current,rootMargin:"0px",threshold:.9});return ()=>{g&&g.disconnect();}},[p==null?void 0:p.current]),r||(a==null?void 0:a.length)===0?null:R.createElement("div",{"data-qa-anchor":n,style:i,className:Uc.storyTabContainer,ref:p},s?Array.from({length:10}).map((g,f)=>R.createElement("div",{key:f,className:Uc.storyTabSkeleton},R.createElement("div",{className:Uc.storyTabSkeletonAvatar}),R.createElement("div",{className:Uc.storyTabSkeletonUsername}))):a.map(g=>R.createElement(GE,{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})),R.createElement("div",{ref:u,style:{height:"1px",width:"1px"}}))};var Um=o=>{var r=o,{pageId:e="*"}=r,t=P(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=xt(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Le(),{setFile:l}=fi();return (()=>{switch(t.type){case"communityFeed":return R.createElement(UE,{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 R.createElement(QE,{pageId:e,componentId:n,goToViewStoryPage:({storyTarget:p,storyTargets:u})=>{var g;(g=i==null?void 0:i.goToViewStoryPage)==null||g.call(i,{targetId:p.targetId,targetType:p.targetType,storyType:"globalFeed",targetIds:u.map(f=>f.targetId)});}});default:return null}})()};var qE={createPostMenu:"wc"};var u5={createPostButton:"yc",createPostButton__text:"kc",createPostButton__icon:"jc"};var I1e=e=>R.createElement("svg",c({width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M14.0625 12.7812L15.0625 11.7812C15.2188 11.625 15.5 11.75 15.5 11.9688V16.5C15.5 17.3438 14.8125 18 14 18H3C2.15625 18 1.5 17.3438 1.5 16.5V5.5C1.5 4.6875 2.15625 4 3 4H11.5312C11.75 4 11.875 4.28125 11.7188 4.4375L10.7188 5.4375C10.6562 5.5 10.5938 5.5 10.5312 5.5H3V16.5H14V12.9688C14 12.9062 14 12.8438 14.0625 12.7812ZM18.9375 6.5L10.75 14.6875L7.90625 15C7.09375 15.0938 6.40625 14.4062 6.5 13.5938L6.8125 10.75L15 2.5625C15.7188 1.84375 16.875 1.84375 17.5938 2.5625L18.9375 3.90625C19.6562 4.625 19.6562 5.78125 18.9375 6.5ZM15.875 7.4375L14.0625 5.625L8.25 11.4375L8 13.5L10.0625 13.25L15.875 7.4375ZM17.875 4.96875L16.5312 3.625C16.4062 3.46875 16.1875 3.46875 16.0625 3.625L15.125 4.5625L16.9375 6.40625L17.9062 5.4375C18.0312 5.28125 18.0312 5.09375 17.875 4.96875Z"}));function ig({pageId:e="*",componentId:t="*",defaultClassName:o,onClick:r}){let n="create_post_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(F,{className:u5.createPostButton,onPress:()=>r==null?void 0:r(),"data-qa-anchor":i,style:p},R.createElement(ee,{defaultIcon:()=>R.createElement(I1e,{className:sr(u5.createPostButton__icon,o)}),imgIcon:()=>R.createElement("img",{src:a.image,alt:d}),configIconName:a.image,defaultIconName:s.image}),R.createElement(S.Body,{className:u5.createPostButton__text},a.text))}function g5({pageId:e}){let t="create_post_menu",{AmityCreatePostMenuComponentBehavior:o}=xt();return R.createElement("div",{className:qE.createPostMenu},R.createElement(ig,{pageId:e,componentId:t,onClick:()=>{var r;return (r=o==null?void 0:o.goToSelectPostTargetPage)==null?void 0:r.call(o)}}),R.createElement(F3,{pageId:e,componentId:t,onClick:()=>{var r;return (r=o==null?void 0:o.goToStoryTargetSelectionPage)==null?void 0:r.call(o)}}))}var $c={mediaAttachment:"zc",mediaAttachment__swipeDown:"Xc",mediaAttachment__wrapMedia:"Yc",mediaAttachment__wrapMedia_2items:"Ac"};var f5={cameraButton:"Vc",cameraButton__icon:"qc",cameraButton_input:"Bc"};var T1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M19.5 19.5H4.5C4.10218 19.5 3.72064 19.342 3.43934 19.0607C3.15804 18.7794 3 18.3978 3 18V7.5C3 7.10218 3.15804 6.72064 3.43934 6.43934C3.72064 6.15804 4.10218 6 4.5 6H7.49945L8.99945 3.75H14.9995L16.4995 6H19.5C19.8978 6 20.2794 6.15804 20.5607 6.43934C20.842 6.72064 21 7.10218 21 7.5V18C21 18.3978 20.842 18.7794 20.5607 19.0607C20.2794 19.342 19.8978 19.5 19.5 19.5Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M12 15.75C13.864 15.75 15.375 14.239 15.375 12.375C15.375 10.511 13.864 9 12 9C10.136 9 8.625 10.511 8.625 12.375C8.625 14.239 10.136 15.75 12 15.75Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}));function Vc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,isVisibleImage:n,isVisibleVideo:i,onVideoFileChange:a,onImageFileChange:s}){let l="camera_button",{themeStyles:d,isExcluded:p,config:u,accessibilityId:g,uiReference:f,defaultConfig:y}=A({pageId:e,componentId:t,elementId:l});if(p)return null;let v=()=>{document.getElementById("upload").click();},C=useCallback(h=>{h.preventDefault(),h.stopPropagation();let x=h.target.files?[...h.target.files]:[],b=x.some(I=>I.type.startsWith("image/")),M=x.some(I=>I.type.startsWith("video/"));b?s==null||s(x):M&&(a==null||a(x));},[s,a]);return R.createElement(F,{style:d,"data-qa-anchor":g,className:f5.cameraButton,onPress:v},R.createElement(ee,{defaultIcon:()=>R.createElement(T1e,{className:sr(f5.cameraButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:u.icon,alt:f,className:o}),defaultIconName:y.icon,configIconName:u.icon}),u.text&&R.createElement(S.BodyBold,null,u.text),R.createElement("input",{type:"file",onChange:C,id:"upload",accept:n&&i?"image/*,video/*":n?"image/*":"video/*",className:f5.cameraButton_input}))}var y5={imageButton:"Cc",imageButton__icon:"Dc",imageButton_input:"Ec"};var N1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M20.25 4.5H3.75C3.33579 4.5 3 4.83579 3 5.25V18.75C3 19.1642 3.33579 19.5 3.75 19.5H20.25C20.6642 19.5 21 19.1642 21 18.75V5.25C21 4.83579 20.6642 4.5 20.25 4.5Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M3 15.7499L7.71966 11.0302C7.7893 10.9606 7.87198 10.9053 7.96297 10.8676C8.05397 10.8299 8.1515 10.8105 8.24999 10.8105C8.34848 10.8105 8.44601 10.8299 8.537 10.8676C8.62799 10.9053 8.71067 10.9606 8.78032 11.0302L12.9697 15.2196C13.0393 15.2892 13.122 15.3444 13.213 15.3821C13.304 15.4198 13.4015 15.4392 13.5 15.4392C13.5985 15.4392 13.696 15.4198 13.787 15.3821C13.878 15.3444 13.9607 15.2892 14.0303 15.2196L15.9697 13.2802C16.0393 13.2106 16.122 13.1553 16.213 13.1176C16.304 13.0799 16.4015 13.0605 16.5 13.0605C16.5985 13.0605 16.696 13.0799 16.787 13.1176C16.878 13.1553 16.9607 13.2106 17.0303 13.2802L21 17.2499",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M14.625 10.5C15.2463 10.5 15.75 9.99632 15.75 9.375C15.75 8.75368 15.2463 8.25 14.625 8.25C14.0037 8.25 13.5 8.75368 13.5 9.375C13.5 9.99632 14.0037 10.5 14.625 10.5Z"}));function jc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,onImageFileChange:n}){let i="image_button",{themeStyles:a,isExcluded:s,config:l,accessibilityId:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});if(s)return null;let g=()=>{document.getElementById("image-upload").click();},f=y=>{y.preventDefault(),y.stopPropagation(),n==null||n(y.target.files?[...y.target.files]:[]);};return R.createElement(F,{type:"button",style:a,"data-qa-anchor":d,className:y5.imageButton,onPress:g},R.createElement(ee,{defaultIcon:()=>R.createElement(N1e,{className:sr(y5.imageButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:p,className:o}),defaultIconName:u.icon,configIconName:l.icon}),l.text&&R.createElement(S.BodyBold,null,l.text),R.createElement("input",{type:"file",onChange:f,multiple:!0,id:"image-upload",accept:"image/*",className:y5.imageButton_input}))}var h5={videoButton:"Fc",videoButton__icon:"Gc",videoButton__input:"Hc"};var L1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e.stroke,strokeWidth:"1.3",strokeMiterlimit:"10"}),R.createElement("path",{d:"M16 12L10 8V16L16 12Z",stroke:e.stroke,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}));function Gc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,onVideoFileChange:n}){let i="video_button",{themeStyles:a,isExcluded:s,config:l,accessibilityId:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});if(s)return null;Ye();let f=()=>{document.getElementById("video-upload").click();},y=v=>{v.preventDefault(),v.stopPropagation(),n==null||n(v.target.files?[...v.target.files]:[]);};return R.createElement(F,{style:a,"data-qa-anchor":d,className:h5.videoButton,onPress:f},R.createElement(ee,{defaultIcon:()=>R.createElement(L1e,{className:sr(h5.videoButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:p,className:o}),defaultIconName:u.icon,configIconName:l.icon}),l.text&&R.createElement(S.BodyBold,null,l.text),R.createElement("input",{type:"file",accept:"video/*",onChange:y,multiple:!0,id:"video-upload",className:h5.videoButton__input}))}function C5({pageId:e,isVisibleCamera:t,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}){let a="media_attachment",{themeStyles:s,accessibilityId:l,isExcluded:d}=te({pageId:e,componentId:a});return d?null:R.createElement("div",{style:s,"data-qa-anchor":l,className:$c.mediaAttachment},R.createElement("div",{className:$c.mediaAttachment__swipeDown}),R.createElement("div",{className:sr(!o||!r||!t?$c.mediaAttachment__wrapMedia_2items:$c.mediaAttachment__wrapMedia)},t&&R.createElement(Vc,{pageId:e,componentId:a,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}),o&&R.createElement(jc,{pageId:e,componentId:a,onImageFileChange:i}),r&&R.createElement(Gc,{pageId:e,componentId:a,onVideoFileChange:n})))}var sg={detailedMediaAttachment:"Ic",detailedMediaAttachment__swipeDown:"Jc"};function v5({pageId:e,isVisibleCamera:t,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}){let a="detailed_media_attachment",{themeStyles:s,accessibilityId:l,isExcluded:d}=te({pageId:e,componentId:a});return d?null:R.createElement("div",{style:s,"data-qa-anchor":l,className:sg.detailedMediaAttachment},R.createElement("div",{className:sg.detailedMediaAttachment__swipeDown}),t&&R.createElement(Vc,{pageId:e,componentId:a,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}),o&&R.createElement(jc,{pageId:e,componentId:a,onImageFileChange:i}),r&&R.createElement(Gc,{pageId:e,componentId:a,onVideoFileChange:n}))}var KE={userSearchResult:"Kc"};var fs={userItem:"Lc",userItem__leftPane:"Mc",userItem__rightPane:"Nc",userItem__avatar:"Oc",userItem__brandIcon:"Pc",userItem__userName:"Qc",userItem__userName__text:"Rc"};var O1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.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)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_482_20867",x1:"5.40039",y1:"4.79844",x2:"5.40039",y2:"23.3984",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFDB7D"}),R.createElement("stop",{offset:"1",stopColor:"#D49900"})))),JE=O1e;var Qc=({className:e})=>R.createElement(JE,{className:e});var XE=({user:e})=>{let{onClickUser:t}=Le();return R.createElement(F,{key:e.userId,className:fs.userItem,onPress:()=>t(e.userId)},R.createElement("div",{className:fs.userItem__leftPane},R.createElement(Vo,{userId:e.userId,className:fs.userItem__avatar})),R.createElement("div",{className:fs.userItem__rightPane},R.createElement("div",{className:fs.userItem__userName},R.createElement(S.BodyBold,{className:fs.userItem__userName__text},e.displayName)),e.isBrand?R.createElement(Qc,{className:fs.userItem__brandIcon}):null))};var cn={userSearchItemSkeleton:"ke",userSearchItemSkeleton__leftPane:"Sc",userSearchItemSkeleton__information:"Tc",userSearchItemSkeleton__content:"Uc",userSearchItemSkeleton__animation:"Wc","skeleton-pulse":"je",userSearchItemSkeleton__userAvatar:"Zc",userSearchItemSkeleton__information__title:"_c",userSearchItemSkeleton__information__subtitle:"en"};var YE=({pageId:e="*",componentId:t="*"})=>{let{accessibilityId:o}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,className:sr(cn.userSearchItemSkeleton,cn.userSearchItemSkeleton__animation)},R.createElement("div",{className:cn.userSearchItemSkeleton__leftPane},R.createElement("div",{className:sr(cn.userSearchItemSkeleton__userAvatar,cn.userSearchItemSkeleton__animation)})),R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information,cn.userSearchItemSkeleton__animation)},R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information__title,cn.userSearchItemSkeleton__animation)}),R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information__subtitle,cn.userSearchItemSkeleton__animation)})))};var b5=({pageId:e="*",userCollection:t=[],isLoading:o,onLoadMore:r})=>{let n="user_search_result",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=te({pageId:e,componentId:n}),[u,g]=useState(null);return ko({onIntersect:()=>r(),node:u}),R.createElement("div",{className:KE.userSearchResult,style:p},t.map(f=>R.createElement(XE,{key:f.userId,user:f})),o?Array.from({length:5}).map((f,y)=>R.createElement(YE,{key:y,pageId:e,componentId:n})):null,R.createElement("div",{ref:f=>g(f)}))};var RE={communitySearchResult:"rn",communitySearchResult__communityItem:"ze",communitySearchResult__communityItem__leftPane:"an",communitySearchResult__communityItem__rightPane:"on",communityItem__communityName:"tn",communityItem__communityName__private:"in",communityItem__communityCategory:"sn",communityItem__communityMemberCount:"cn"};var eB={communityDisplayName:"nn"};function ua({pageId:e="*",componentId:t="*",community:o}){var s;let r="community_display_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement(S.BodyBold,{className:eB.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var I5={communityOfficialBadge:"ln",communityOfficialBadge__iconSvg:"dn"};var W1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),R.createElement("path",{d:"M9.58112 15.4777C10.2749 16.1767 10.9373 16.1715 11.6363 15.4777L12.4188 14.6953C12.4918 14.6223 12.5544 14.6014 12.6483 14.6014H13.7541C14.74 14.6014 15.2095 14.1319 15.2095 13.1461V12.0402C15.2095 11.9463 15.2355 11.8785 15.3034 11.8107L16.0858 11.023C16.7848 10.3293 16.7796 9.66681 16.0858 8.97305L15.3034 8.19061C15.2355 8.11758 15.2095 8.05499 15.2095 7.9611V6.85525C15.2095 5.86938 14.74 5.39991 13.7541 5.39991H12.6483C12.5544 5.39991 12.4866 5.37383 12.4188 5.30602L11.6363 4.52358C10.9373 3.82461 10.2749 3.82461 9.58112 4.5288L8.79868 5.30602C8.73087 5.37383 8.66306 5.39991 8.56917 5.39991H7.46332C6.47745 5.39991 6.00799 5.85894 6.00799 6.85525V7.9611C6.00799 8.05499 5.9819 8.1228 5.91409 8.19061L5.13165 8.97305C4.43268 9.66681 4.43789 10.3293 5.13165 11.023L5.91409 11.8107C5.9819 11.8785 6.00799 11.9463 6.00799 12.0402V13.1461C6.00799 14.1319 6.47745 14.6014 7.46332 14.6014H8.56917C8.66306 14.6014 8.72565 14.6223 8.79868 14.6953L9.58112 15.4777ZM9.74282 12.6714C9.56026 12.6714 9.4142 12.6036 9.29944 12.4836L7.63024 10.6162C7.54156 10.5223 7.49462 10.3919 7.49462 10.2615C7.49462 9.94849 7.71892 9.72419 8.04232 9.72419C8.21968 9.72419 8.35008 9.78157 8.46484 9.90676L9.72196 11.3099L12.2362 7.72115C12.3614 7.5438 12.497 7.47077 12.7057 7.47077C13.0291 7.47077 13.2586 7.69507 13.2586 7.99761C13.2586 8.10193 13.2169 8.23234 13.1386 8.34188L10.2123 12.4471C10.0923 12.6036 9.93583 12.6714 9.74282 12.6714Z"}));function k1({pageId:e="*",componentId:t="*"}){let o="community_official_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{defaultIcon:()=>R.createElement(W1e,{style:l,className:sr(I5.communityOfficialBadge,I5.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>R.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:I5.communityOfficialBadge}),configIconName:n.icon,defaultIconName:i.icon})}var w5={communityPrivateBadge:"mn",communityPrivateBadge__iconSvg:"gn"};var J1e=e=>R.createElement("svg",c({width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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 S1({pageId:e="*",componentId:t="*"}){let o="community_private_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{defaultIcon:()=>R.createElement(J1e,{style:l,className:sr(w5.communityPrivateBadge,w5.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>R.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:w5.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var tB={communityMembersCount:"hn"};function lg({pageId:e="*",componentId:t="*",memberCount:o}){let r="community_members_count",{accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement(S.Caption,{className:tB.communityMembersCount,style:d,"data-qa-anchor":n},`${ob(o)||0} ${o!==1?"members":"member"}`)}var ys={communityItem:"Xe",communityItem__leftPane:"pn",communityItem__rightPane:"fn",communityItem__communityName:"un",communityItem__communityName__private:"bn",communityItem__communityCategory:"vn",communityItem__communityMemberCount:"xn"};var tle=({community:e,pageId:t,componentId:o})=>{let r=Ra(e.categoryIds),i=r.length-3;return R.createElement(R.Fragment,null,r.slice(0,3).map(a=>R.createElement(Ka,{pageId:t,componentId:o,categoryName:a.name})),i>0&&R.createElement(Ka,{pageId:t,componentId:o,categoryName:`+${i}`}))},oB=({community:e,pageId:t="*",componentId:o="*"})=>{let{onClickCommunity:r}=Le();return R.createElement(F,{key:e.communityId,className:ys.communityItem,onPress:()=>{r(e.communityId);}},R.createElement("div",{className:ys.communityItem__leftPane},R.createElement(Or,{pageId:t,componentId:o,community:e})),R.createElement("div",{className:ys.communityItem__rightPane},R.createElement("div",{className:ys.communityItem__communityName},!e.isPublic&&R.createElement("div",{className:ys.communityItem__communityName__private},R.createElement(S1,{pageId:t,componentId:o})),R.createElement(ua,{pageId:t,componentId:o,community:e}),e.isOfficial&&R.createElement(k1,{pageId:t,componentId:o})),R.createElement("div",{className:ys.communityItem__communityCategory},R.createElement(tle,{pageId:t,componentId:o,community:e})),R.createElement("div",{className:ys.communityItem__communityMemberCount},R.createElement(lg,{pageId:t,componentId:o,memberCount:e.membersCount}))))};var dn={communityItemSkeleton:"Ye",communityItemSkeleton__leftPane:"wn",communityItemSkeleton__information:"yn",communityItemSkeleton__content:"kn",communityItemSkeleton__animation:"jn","skeleton-pulse":"Ae",communityItemSkeleton__userAvatar:"zn",communityItemSkeleton__information__title:"Xn",communityItemSkeleton__information__subtitle:"Yn"};var rB=({pageId:e="*",componentId:t="*"})=>{let{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,style:s,className:sr(dn.communityItemSkeleton,dn.communityItemSkeleton__animation)},R.createElement("div",{className:dn.communityItemSkeleton__leftPane},R.createElement("div",{className:sr(dn.communityItemSkeleton__userAvatar,dn.communityItemSkeleton__animation)})),R.createElement("div",{className:sr(dn.communityItemSkeleton__information,dn.communityItemSkeleton__animation)},R.createElement("div",{className:sr(dn.communityItemSkeleton__information__title,dn.communityItemSkeleton__animation)}),R.createElement("div",{className:sr(dn.communityItemSkeleton__information__subtitle,dn.communityItemSkeleton__animation)})))};var hs=({pageId:e="*",communityCollection:t=[],isLoading:o,onLoadMore:r})=>{let n="community_search_result",{themeStyles:i}=te({pageId:e,componentId:n}),[a,s]=useState(null);return ko({onIntersect:()=>r(),node:a}),R.createElement("div",{className:RE.communitySearchResult,style:i},t.map(l=>R.createElement(oB,{key:l.communityId,community:l,pageId:e,componentId:n})),o?Array.from({length:5}).map((l,d)=>R.createElement(rB,{key:d,pageId:e,componentId:n})):null,R.createElement("div",{ref:l=>s(l)}))};var nB={clearButton:"An"};function ile(e){return R.createElement("svg",c({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M8.82715 17.3906C13.4238 17.3906 17.2119 13.5938 17.2119 9.00586C17.2119 4.40918 13.415 0.612305 8.82715 0.612305C4.23047 0.612305 0.442383 4.40918 0.442383 9.00586C0.442383 13.5938 4.23926 17.3906 8.82715 17.3906ZM5.88281 12.5479C5.54883 12.5479 5.28516 12.2842 5.28516 11.9502C5.28516 11.792 5.34668 11.6514 5.46973 11.5283L7.9834 9.01465L5.46973 6.49219C5.34668 6.37793 5.28516 6.22852 5.28516 6.07031C5.28516 5.74512 5.54883 5.49023 5.88281 5.49023C6.0498 5.49023 6.19043 5.54297 6.2959 5.66602L8.82715 8.17969L11.3584 5.65723C11.4902 5.52539 11.6221 5.47266 11.7803 5.47266C12.1055 5.47266 12.3691 5.73633 12.3691 6.06152C12.3691 6.22852 12.3164 6.36035 12.1934 6.4834L9.6709 9.01465L12.1846 11.5283C12.3076 11.6514 12.3691 11.7832 12.3691 11.9502C12.3691 12.2842 12.1055 12.5479 11.7627 12.5479C11.5957 12.5479 11.4551 12.4863 11.332 12.3721L8.82715 9.84961L6.32227 12.3721C6.19922 12.4863 6.0498 12.5479 5.88281 12.5479Z"}))}var N1=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="clear_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{"data-qa-anchor":a,className:nB.clearButton,style:u,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement(ile,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var ale=e=>R.createElement("svg",c({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.7109 14.6562C16.8672 14.8125 16.8672 15.0625 16.7109 15.1875L15.9922 15.9062C15.8672 16.0625 15.6172 16.0625 15.4609 15.9062L11.6797 12.125C11.6172 12.0312 11.5859 11.9375 11.5859 11.8438V11.4375C10.4297 12.4062 8.96094 13 7.33594 13C3.74219 13 0.835938 10.0938 0.835938 6.5C0.835938 2.9375 3.74219 0 7.33594 0C10.8984 0 13.8359 2.9375 13.8359 6.5C13.8359 8.125 13.2109 9.625 12.2422 10.75H12.6484C12.7422 10.75 12.8359 10.8125 12.9297 10.875L16.7109 14.6562ZM7.33594 11.5C10.0859 11.5 12.3359 9.28125 12.3359 6.5C12.3359 3.75 10.0859 1.5 7.33594 1.5C4.55469 1.5 2.33594 3.75 2.33594 6.5C2.33594 9.28125 4.55469 11.5 7.33594 11.5Z"}));function mg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r}){let n="search_icon",{config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(ee,{defaultIcon:()=>R.createElement(ale,{className:o,style:d}),imgIcon:()=>R.createElement("img",{src:i.icon,alt:l,className:r,style:d}),defaultIconName:a.icon,configIconName:i.icon})}var Cs={topSearchBar:"Vn",topSearchBar__inputBar:"qn",topSearchBar__textInput:"Bn",topSearchBar__searchIcon:"Cn",topSearchBar__searchIcon_img:"Dn",topSearchBar__clearButton:"En",topSearchBar__clearButton__img:"Fn"};function Qm({pageId:e="*",search:t}){let o="top_search_bar",{config:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:o}),{onBack:a}=Le(),[s,l]=useState("");return useEffect(()=>{t(s);},[s]),n?null:R.createElement("div",{className:Cs.topSearchBar,style:i},R.createElement("div",{className:Cs.topSearchBar__inputBar},R.createElement(mg,{pageId:e,componentId:o,defaultClassName:Cs.topSearchBar__searchIcon,imgClassName:Cs.topSearchBar__searchIcon_img}),R.createElement("input",{className:Cs.topSearchBar__textInput,type:"text",value:s,placeholder:r.text,onChange:d=>l(d.target.value)}),s!=""?R.createElement(N1,{pageId:e,componentId:o,defaultClassName:Cs.topSearchBar__clearButton,imgClassName:Cs.topSearchBar__clearButton__img,onPress:()=>{l("");}}):null),R.createElement(D3,{pageId:e,componentId:o,onPress:()=>a()}))}var cg={menuButton:"Gn",menuButton__button:"Hn"};var P5=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))};function Yc({pageId:e="*",componentId:t="*",onClick:o}){let r="menu_button",{isExcluded:n,accessibilityId:i,themeStyles:a,config:s,defaultConfig:l,uiReference:d}=A({pageId:e,componentId:t,elementId:r});return n?null:R.createElement(F,{onPress:o,"data-qa-anchor":i,className:cg.menuButton__button},R.createElement(ee,{defaultIcon:()=>R.createElement(P5,{className:cg.menuButton,style:a}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:d}),defaultIconName:l.icon,configIconName:s.icon}))}function dg({pageId:e="*",componentId:t="*",defaultIconClassName:o,imgIconClassName:r}){let n="share_button";A({pageId:e,componentId:t,elementId:n});return null}var dle=e=>R.createElement("svg",c({width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.13281 4.71094L1.71094 8.17969C1.59375 8.29688 1.40625 8.29688 1.3125 8.17969L0.84375 7.71094C0.726562 7.59375 0.726562 7.42969 0.84375 7.3125L3.60938 4.5L0.84375 1.71094C0.726562 1.59375 0.726562 1.40625 0.84375 1.3125L1.3125 0.84375C1.40625 0.726562 1.59375 0.726562 1.71094 0.84375L5.13281 4.3125C5.25 4.42969 5.25 4.59375 5.13281 4.71094Z"})),Rc=dle;var T5={commentButton:"In",commentButton__icon:"Jn",commentButton__text:"Kn"};var ule=e=>R.createElement("svg",c({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M9 0.1875C13.6816 0.1875 17.4668 3.30859 17.4668 7.09375C17.4668 10.9121 13.6816 14 9 14C7.9043 14 6.8418 13.834 5.91211 13.5352C4.91602 14.2324 3.32227 15.0625 1.29688 15.0625C0.964844 15.0625 0.666016 14.8965 0.533203 14.5977C0.433594 14.2988 0.466797 13.9668 0.699219 13.7344C0.732422 13.7344 1.76172 12.6055 2.22656 11.3105C1.13086 10.1484 0.5 8.6875 0.5 7.09375C0.5 3.30859 4.28516 0.1875 9 0.1875ZM9 12.4062C12.7852 12.4062 15.9062 10.0488 15.9062 7.09375C15.9062 4.17188 12.7852 1.78125 9 1.78125C5.18164 1.78125 2.09375 4.17188 2.09375 7.09375C2.09375 8.52148 2.79102 9.58398 3.38867 10.2148L4.08594 10.9453L3.7207 11.875C3.55469 12.3398 3.32227 12.8047 3.05664 13.2031C3.85352 12.9375 4.51758 12.5723 4.98242 12.2402L5.61328 11.7754L6.37695 12.0078C7.20703 12.2734 8.10352 12.4062 9 12.4062Z"}));function pg({pageId:e="*",componentId:t="*",commentsCount:o,defaultIconClassName:r,imgIconClassName:n,onPress:i=()=>{}}){let a="comment_button",{accessibilityId:s,config:l,defaultConfig:d,isExcluded:p,uiReference:u}=A({pageId:e,componentId:t,elementId:a});return p?null:R.createElement(F,{onPress:i},R.createElement(ee,{"data-qa-anchor":s,defaultIcon:()=>R.createElement("div",{className:sr(T5.commentButton)},R.createElement(ule,{className:sr(T5.commentButton__icon,r)}),R.createElement(S.BodyBold,{className:T5.commentButton__text},typeof o=="number"?o:l.text)),imgIcon:()=>R.createElement("img",{src:l.icon,alt:u,className:n}),defaultIconName:d.icon,configIconName:l.icon}))}var yle=createContext({drawerData:null,setDrawerData:()=>{},removeDrawerData:()=>{}});var Wm=()=>{let{setDrawerData:e,removeDrawerData:t}=useContext(yle);return {setDrawerData:e,removeDrawerData:t}};var Ce={postContent:"Ln",postContent__bar:"Mn",postContent__bar__userAvatar:"Nn",postContent__bar__detail:"On",postContent__bar__information__subtitle:"Pn",postContent__bar__information__subtitle__moderator:"Qn",postContent__bar__information__subtitle__brand:"Rn",postContent__bar__information__subtitle__separator:"Sn",postContent__bar__actionButton:"Tn",postContent__content_and_reactions:"Un",postContent__content:"Wn",postContent__divider:"Zn",postContent__reactionBar:"_n",postContent__reactionBar__leftPane:"el",postContent__reactionBar__rightPane:"rl",postContent__reactionBar__leftPane__icon:"al",postContent__reactionBar__leftPane__iconImg:"ol",postTitle:"tl",postTitle__text:"il",postTitle__icon:"sl",postTitle__user__container:"cl",postTitle__brandIcon:"nl",postContent__comment:"ll",postContent__reactions_and_comments:"dl",postContent__reactionsBar:"ml",postContent__commentsCount:"gl",postContent__reactionsBar__reactions:"hl",postContent__reactionsBar__reactions__icon:"e",postContent__reactionsBar__reactions__count:"pl",postContent__bar__information__editedTag:"fl",button:"g",popover:"X","fade-in":"Ve","zoom-in":"qe","fade-out":"Be","zoom-out":"Ce",menu:"ul",menuItem:"De",separator:"bl",postContent__notMember:"vl",postContent__wrapRightMenu:"xl"};var Cle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{clipPath:"url(#clip0_1709_7904)"},R.createElement("path",{d:"M16 32.5C24.8366 32.5 32 25.3366 32 16.5C32 7.66344 24.8366 0.5 16 0.5C7.16344 0.5 0 7.66344 0 16.5C0 25.3366 7.16344 32.5 16 32.5Z",fill:"#FFD54F"}),R.createElement("path",{d:"M9.33317 15.1667C10.8059 15.1667 11.9998 13.9728 11.9998 12.5C11.9998 11.0273 10.8059 9.83337 9.33317 9.83337C7.86041 9.83337 6.6665 11.0273 6.6665 12.5C6.6665 13.9728 7.86041 15.1667 9.33317 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M22.6667 15.1667C24.1394 15.1667 25.3333 13.9728 25.3333 12.5C25.3333 11.0273 24.1394 9.83337 22.6667 9.83337C21.1939 9.83337 20 11.0273 20 12.5C20 13.9728 21.1939 15.1667 22.6667 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M21.0248 27.3372C20.674 27.3372 20.3232 27.2038 20.0564 26.9352C17.8894 24.7682 14.1108 24.7682 11.9456 26.9352C11.4103 27.4705 10.5423 27.4705 10.007 26.9352C9.47163 26.4016 9.47163 25.5319 10.007 24.9966C11.6076 23.396 13.7362 22.5153 16.0001 22.5153C18.264 22.5153 20.3926 23.396 21.9932 24.9984C22.5286 25.5337 22.5286 26.4016 21.9932 26.937C21.7264 27.2038 21.3756 27.3372 21.0248 27.3372Z",fill:"#6D4C41"}),R.createElement("path",{d:"M24.8228 16.5987C24.4495 16.0587 23.5508 16.0587 23.1775 16.5987C22.6228 17.4014 21.3335 19.3881 21.3335 20.5001C21.3335 21.9707 22.5295 23.1667 24.0002 23.1667C25.4708 23.1667 26.6668 21.9707 26.6668 20.5001C26.6668 19.3881 25.3775 17.4014 24.8228 16.5987Z",fill:"#00BCD4"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_7904"},R.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0 0.5)"}))))},lB=Cle;var vle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions",clipPath:"url(#clip0_1709_1751)"},R.createElement("path",{id:"Vector",d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#FFD54F"}),R.createElement("path",{id:"Vector_2",d:"M27.2933 19.9601C26.9867 20.9334 26.5867 21.8267 26.0667 22.6667H5.93332C5.41332 21.8267 5.01332 20.9334 4.70665 19.9601C4.61332 19.6534 4.66665 19.3334 4.86665 19.0801C5.05332 18.8134 5.34665 18.6667 5.66665 18.6667H26.3333C26.6533 18.6667 26.9467 18.8134 27.1333 19.0801C27.3333 19.3334 27.3867 19.6534 27.2933 19.9601Z",fill:"white"}),R.createElement("path",{id:"Vector_3",d:"M26.0664 22.6667C23.9598 26.1201 20.1864 28.2934 15.9998 28.2934C11.8131 28.2934 8.03977 26.1201 5.93311 22.6667H26.0664Z",fill:"#E53935"}),R.createElement("path",{id:"Vector_4",d:"M12.3332 13.6668C11.7812 13.6668 11.3332 13.2188 11.3332 12.6668C11.3332 11.9322 10.7358 11.3335 9.99984 11.3335C9.26384 11.3335 8.6665 11.9322 8.6665 12.6668C8.6665 13.2188 8.2185 13.6668 7.6665 13.6668C7.1145 13.6668 6.6665 13.2188 6.6665 12.6668C6.6665 10.8295 8.16117 9.3335 9.99984 9.3335C11.8385 9.3335 13.3332 10.8295 13.3332 12.6668C13.3332 13.2188 12.8852 13.6668 12.3332 13.6668Z",fill:"#6D4C41"}),R.createElement("path",{id:"Vector_5",d:"M24.3332 13.6668C23.7812 13.6668 23.3332 13.2188 23.3332 12.6668C23.3332 11.9322 22.7358 11.3335 21.9998 11.3335C21.2638 11.3335 20.6665 11.9322 20.6665 12.6668C20.6665 13.2188 20.2185 13.6668 19.6665 13.6668C19.1145 13.6668 18.6665 13.2188 18.6665 12.6668C18.6665 10.8295 20.1612 9.3335 21.9998 9.3335C23.8385 9.3335 25.3332 10.8295 25.3332 12.6668C25.3332 13.2188 24.8852 13.6668 24.3332 13.6668Z",fill:"#6D4C41"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_1751"},R.createElement("rect",{width:"32",height:"32",fill:"white"}))))},mB=vle;var xle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16.5",r:"16",fill:"url(#paint0_linear_1709_7888)"}),R.createElement("g",{clipPath:"url(#clip0_1709_7888)"},R.createElement("path",{d:"M21.8752 10.2903C21.3417 9.70788 20.5123 8.92173 20.1595 10.6968C20.0395 11.3004 19.7591 11.7656 19.5189 12.1402C19.2599 10.8296 18.4808 9.47308 17.7467 8.55843C17.472 8.21623 16.4973 6.85588 16.3101 4.58008C16.2821 4.24043 15.8787 4.08093 15.6263 4.31003C13.2147 6.49923 11.891 9.51013 11.8419 12.8998C11.8419 12.8998 10.8377 12.0533 10.2921 10.4786C10.1452 10.0546 9.57671 9.97368 9.33006 10.3486C9.28271 10.4206 9.23881 10.4927 9.19921 10.5627C7.33856 13.8527 6.44351 17.848 7.27096 21.565C8.65446 27.7898 17.8062 29.5301 22.6511 25.6177C27.3914 21.7899 25.8846 14.6654 21.8752 10.2903Z",fill:"#ED694A"}),R.createElement("path",{d:"M20.4125 14.8409C20.0185 14.4107 19.4058 13.83 19.1452 15.1411C19.0566 15.5869 18.8495 15.9306 18.6721 16.2073C18.4809 15.2392 17.9054 14.2372 17.3632 13.5617C17.1603 13.3089 16.4404 12.3042 16.302 10.6231C16.2814 10.3722 15.9834 10.2545 15.797 10.4237C14.0158 12.0406 13.038 14.2646 13.0018 16.7682C13.0018 16.7682 12.26 16.143 11.8571 14.9799C11.7486 14.6667 11.3287 14.607 11.1465 14.8839C11.1116 14.9371 11.0791 14.9904 11.0499 15.0421C9.67554 17.4721 9.01444 20.4231 9.62559 23.1686C10.6475 27.7664 17.4071 29.0518 20.9857 26.162C24.4869 23.3347 23.3739 18.0725 20.4125 14.8409Z",fill:"#F4A32C"}),R.createElement("path",{d:"M19.077 18.9949C18.8103 18.7037 18.3955 18.3106 18.2191 19.1982C18.1592 19.5 18.0189 19.7326 17.8988 19.9199C17.7693 19.2645 17.3798 18.5863 17.0127 18.129C16.8754 17.9579 16.3881 17.2777 16.2944 16.1398C16.2804 15.9699 16.0787 15.8902 15.9525 16.0048C14.7467 17.0994 14.0849 18.6049 14.0603 20.2996C14.0603 20.2996 13.5582 19.8764 13.2855 19.0891C13.212 18.8771 12.9278 18.8366 12.8045 19.0241C12.7808 19.06 12.7589 19.0961 12.739 19.1311C11.8087 20.7761 11.3612 22.7737 11.7749 24.6323C12.4666 27.7447 17.0425 28.6149 19.4649 26.6586C20.2945 25.9887 20.8088 25.0448 20.9131 24.0006C21.0706 22.4191 20.4619 20.5062 19.077 18.9949Z",fill:"#F4D44E"}),R.createElement("path",{d:"M17.838 22.85C17.6894 22.6878 17.4583 22.4688 17.36 22.9632C17.3266 23.1314 17.2485 23.261 17.1816 23.3653C17.1094 23.0002 16.8924 22.6223 16.6879 22.3676C16.6114 22.2722 16.3399 21.8933 16.2877 21.2593C16.2799 21.1647 16.1675 21.1203 16.0972 21.1841C15.4255 21.7939 15.0567 22.6327 15.043 23.5769C15.043 23.5769 14.7633 23.3411 14.6113 22.9024C14.5704 22.7843 14.412 22.7617 14.3434 22.8662C14.3302 22.8863 14.318 22.9064 14.307 22.9259C13.7887 23.8424 13.5393 24.9553 13.7698 25.9907C14.2947 28.3523 18.5971 28.2807 18.861 25.6388C18.9486 24.7577 18.6095 23.6919 17.838 22.85Z",fill:"#EAE9E8"}),R.createElement("path",{d:"M14.7688 26.4597C14.5383 25.5334 14.7876 24.5379 15.3059 23.7181C15.3169 23.7006 15.3292 23.6827 15.3423 23.6647C15.411 23.5713 15.5694 23.5914 15.6103 23.6971C15.7622 24.0895 16.042 24.3004 16.042 24.3004C16.0532 23.6064 16.3046 22.9764 16.7664 22.4711C16.6631 22.3281 16.3472 21.9833 16.2877 21.2597C16.2799 21.165 16.1675 21.1207 16.0972 21.1844C15.4255 21.7943 15.0567 22.633 15.043 23.5772C15.043 23.5772 14.7633 23.3414 14.6113 22.9028C14.5704 22.7847 14.412 22.7621 14.3434 22.8666C14.3302 22.8867 14.318 22.9068 14.307 22.9263C13.7887 23.8427 13.5393 24.9557 13.7698 25.9911C13.9831 26.9509 14.8594 27.5277 15.8282 27.6669C15.3056 27.4102 14.904 27.0038 14.7688 26.4597Z",fill:"#F7E7A1"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_7888",x1:"7.2",y1:"7.7",x2:"24.8",y2:"29.3",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFF09F"}),R.createElement("stop",{offset:"1",stopColor:"#FCCF5A"})),R.createElement("clipPath",{id:"clip0_1709_7888"},R.createElement("rect",{width:"25.6",height:"25.6",fill:"white",transform:"translate(3.2002 2.09998)"}))))},cB=xle;var ble=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions"},R.createElement("circle",{id:"Ellipse 2",cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1738)"}),R.createElement("path",{id:"circle",d:"M22.4466 10.5836C20.7296 9.07415 18.2009 9.36319 16.6088 11.0332L16.0156 11.6755L15.3912 11.0332C13.8303 9.36319 11.2704 9.07415 9.55338 10.5836C7.58661 12.3179 7.49295 15.401 9.24119 17.2637L15.2976 23.687C15.6722 24.1045 16.3278 24.1045 16.7024 23.687L22.7588 17.2637C24.507 15.401 24.4134 12.3179 22.4466 10.5836Z",fill:"white"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1738",x1:"7.2",y1:"7.2",x2:"28",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#EE5C91"}),R.createElement("stop",{offset:"0.833333",stopColor:"#E02222"}))))},dB=ble;var Ile=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},pB=Ile;var ug=R.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=P(a,["src","mimeType","mediaFit"]);return R.createElement("video",N(c({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),R.createElement("source",{src:e,type:t}),R.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 ga={linkPreviewSkeleton:"wl",linkPreviewSkeleton__bottom:"yl",linkPreviewSkeleton__bar1:"kl",linkPreviewSkeleton__bar2:"jl",linkPreviewSkeleton__image:"zl",linkPreviewSkeleton__animation:"Xl","skeleton-pulse":"Ee"};function uB(){return R.createElement("div",{className:ga.linkPreviewSkeleton},R.createElement("div",{className:sr(ga.linkPreviewSkeleton__image,ga.linkPreviewSkeleton__animation)}),R.createElement("div",{className:ga.linkPreviewSkeleton__bottom},R.createElement("div",{className:sr(ga.linkPreviewSkeleton__bar1,ga.linkPreviewSkeleton__animation)}),R.createElement("div",{className:sr(ga.linkPreviewSkeleton__bar2,ga.linkPreviewSkeleton__animation)})))}var Mi={linkPreview:"Yl",linkPreview__top:"Al",linkPreview__bottom:"Vl",linkPreview__object:"ql",linkPreview__unableToPreview:"Bl",linkPreview__unableToPreview__icon:"Cl"};var _le=e=>R.createElement("svg",c({width:"36",height:"27",viewBox:"0 0 36 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M32.625 0C34.4531 0 36 1.54688 36 3.375V23.625C36 25.5234 34.4531 27 32.625 27H3.375C1.47656 27 0 25.5234 0 23.625V3.375C0 1.54688 1.47656 0 3.375 0H32.625ZM32.2031 23.625C32.4141 23.625 32.625 23.4844 32.625 23.2031V3.79688C32.625 3.58594 32.4141 3.375 32.2031 3.375H3.79688C3.51562 3.375 3.375 3.58594 3.375 3.79688V23.2031C3.375 23.4844 3.51562 23.625 3.79688 23.625H32.2031ZM9 6.1875C10.5469 6.1875 11.8125 7.45312 11.8125 9C11.8125 10.6172 10.5469 11.8125 9 11.8125C7.38281 11.8125 6.1875 10.6172 6.1875 9C6.1875 7.45312 7.38281 6.1875 9 6.1875ZM6.75 20.25V16.875L9.49219 14.1328C9.84375 13.7812 10.3359 13.7812 10.6875 14.1328L13.5 16.875L21.8672 8.50781C22.2188 8.15625 22.7109 8.15625 23.0625 8.50781L29.25 14.625V20.25H6.75Z"})),fg=()=>R.createElement("div",{className:Mi.linkPreview__unableToPreview},R.createElement(_le,{className:Mi.linkPreview__unableToPreview__icon})),Tle=({url:e})=>{let{client:t}=De();return useQuery({enabled:!!t,queryKey:["asc-uikit","previewLink",e],queryFn:()=>_(void 0,null,function*(){let o=yield t==null?void 0:t.http.get("/api/v1/link-preview",{params:{url:e}});return o==null?void 0:o.data}),retry:!1})};function gB({url:e}){var n,i,a;let t=new URL(e),o=Tle({url:e});if(o.isLoading)return R.createElement(uB,null);let r=()=>{window.open(e,"_blank");};return o.isError?R.createElement(F,{onPress:r,className:Mi.linkPreview},R.createElement("div",{className:Mi.linkPreview__top},R.createElement(fg,null)),R.createElement("div",{className:Mi.linkPreview__bottom},R.createElement(S.Caption,null,t.hostname))):R.createElement(F,{onPress:r,className:Mi.linkPreview},R.createElement("div",{className:Mi.linkPreview__top},(n=o.data)!=null&&n.image?R.createElement("object",{data:o.data.image,className:Mi.linkPreview__object},R.createElement(fg,null)):(i=o.data)!=null&&i.video?R.createElement(ug,{src:o.data.video}):R.createElement(fg,null)),R.createElement("div",{className:Mi.linkPreview__bottom},R.createElement(S.Caption,null,t.hostname),R.createElement(S.BodyBold,null,((a=o.data)==null?void 0:a.title)||"")))}var yg=({text:e="",mentionees:t=[],mentioned:o})=>{if(!e)return null;let r=Fv.find(e).filter(n=>n.type==="url");return R.createElement(R.Fragment,null,R.createElement(Sm,{data:{text:e},mentionees:t,metadata:{mentioned:o}}),r&&r.length>0&&R.createElement(gB,{url:r[0].href}))};var td={imageContent:"o",imageContent__img:"Gl",imageContent__imgContainer:"t",imageContent__imgCover:"Hl"};var Nle=e=>{let r=Pn({fetcher:PostRepository.getPost,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({post:t},o)},Pi=Nle;var Ele=({fileId:e})=>{let t=rt({fileId:e});return R.createElement("img",{loading:"lazy",className:td.imageContent__img,src:t,alt:e})},Ble=({postId:e,index:t,imageLeftCount:o,postAmount:r,onImageClick:n})=>{let{post:i,isLoading:a}=Pi(e);return a?null:R.createElement(F,{key:i.postId,className:td.imageContent__imgContainer,onPress:()=>n()},R.createElement(Ele,{fileId:i.data.fileId}),o>0&&t===r-1&&R.createElement(S.Heading,{className:td.imageContent__imgCover},"+ ",o))},hg=({pageId:e="*",componentId:t="*",elementId:o="*",post:r,onImageClick:n=()=>{}})=>{var p;let{themeStyles:i}=A({pageId:e,componentId:t,elementId:o}),a=r.children.slice(0,4),s=Math.max(0,r.children.length-4),{post:l,isLoading:d}=Pi((p=r.children)==null?void 0:p[0]);return d||(l==null?void 0:l.dataType)!=="image"?null:R.createElement("div",{className:td.imageContent,style:i,"data-images-amount":Math.min(r.children.length,4)},a.map((u,g)=>R.createElement(Ble,{key:u,postId:u,index:g,imageLeftCount:s,postAmount:r.children.length,onImageClick:()=>n(g)})))};var fa={videoContent:"i",videoContent__video:"Il",videoContent__videoContainer:"s",videoContent__videoCover:"Jl",videoContent__playButtonCover:"Kl",videoContent__playButton:"Ll",videoContent__playButton__svg:"Ml"};var Ale=e=>R.createElement("svg",c({width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Icon ",clipPath:"url(#clip0_1936_14348)"},R.createElement("path",{id:"Vector",d:"M8.95117 5V19L19.9512 12L8.95117 5Z"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1936_14348"},R.createElement("rect",{width:"24",height:"24",transform:"translate(0.951172)"})))),Dle=({fileId:e})=>{let t=rt({fileId:e});return R.createElement("img",{className:fa.videoContent__video,src:t,alt:e})},Hle=({postId:e,postAmount:t,videoLeftCount:o,index:r,onVideoClick:n})=>{let{post:i,isLoading:a}=Pi(e);return a?null:R.createElement(F,{className:fa.videoContent__videoContainer,"data-videos-amount":Math.min(t,4),onPress:()=>n()},R.createElement(Dle,{fileId:i.data.thumbnailFileId}),o>0&&r===t-1&&R.createElement(S.Heading,{className:fa.videoContent__videoCover},"+ ",o),o===0||r<t-1?R.createElement("div",{className:fa.videoContent__playButtonCover},R.createElement("div",{className:fa.videoContent__playButton,onClick:()=>n()},R.createElement(Ale,{className:fa.videoContent__playButton__svg}))):null)},Cg=({pageId:e="*",componentId:t="*",elementId:o="*",post:r,onVideoClick:n})=>{let{themeStyles:i}=A({pageId:e,componentId:t,elementId:o}),a=r.children.slice(0,4),{post:s}=Pi(r.children[0]),l=Math.max(0,r.children.length-4);return (s==null?void 0:s.dataType)!=="video"?null:R.createElement("div",{className:fa.videoContent,style:i},R.createElement("div",{className:fa.videoContent,style:i,"data-videos-amount":Math.min(r.children.length,4)},a.map((d,p)=>R.createElement(Hle,{key:d,index:p,postId:d,videoLeftCount:l,postAmount:r.children.length,onVideoClick:()=>n(p)}))))};var $r={modal:"Nl",modalContent:"Ol",closeButton:"Pl",fullImage:"Ql",nextButton:"Rl",prevButton:"Sl",overlayPanel:"Tl",overlayPanel__prev:"Fe",overlayPanel__next:"Ge",overlayPanel__prevButton:"He",overlayPanel__nextButton:"Ul",overlayPanel__middle:"Wl",imageViewer__clearButton:"Zl",imageViewer__clearButton__img:"_l"};var yB=e=>R.createElement("svg",c({width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.13281 4.71094L1.71094 8.17969C1.59375 8.29688 1.40625 8.29688 1.3125 8.17969L0.84375 7.71094C0.726562 7.59375 0.726562 7.42969 0.84375 7.3125L3.60938 4.5L0.84375 1.71094C0.726562 1.59375 0.726562 1.40625 0.84375 1.3125L1.3125 0.84375C1.40625 0.726562 1.59375 0.726562 1.71094 0.84375L5.13281 4.3125C5.25 4.42969 5.25 4.59375 5.13281 4.71094Z"}));function hB({pageId:e="*",componentId:t="*",elementId:o="*",post:r,initialImageIndex:n,onClose:i}){var h,x;let{themeStyles:a}=A({pageId:e,componentId:t,elementId:o}),[s,l]=useState(n),p=Va((r==null?void 0:r.children)||[]).filter(b=>b.dataType==="image"),u=p[s],g=se({fileId:(h=u==null?void 0:u.data)==null?void 0:h.fileId}),f=s<p.length-1,y=s>0,v=()=>{f&&l(b=>b+1);},C=()=>{y&&l(b=>b-1);};return R.createElement("div",{style:a},R.createElement("div",{className:$r.modal,onClick:i},R.createElement("div",{className:$r.modalContent,onClick:b=>b.stopPropagation()},R.createElement("img",{src:g,alt:((x=u==null?void 0:u.data)==null?void 0:x.fileId)||"",className:$r.fullImage}),R.createElement("div",{className:$r.overlayPanel},y&&R.createElement("div",{className:$r.overlayPanel__prev,onClick:C},R.createElement(yB,{className:$r.overlayPanel__prevButton})),R.createElement("div",{className:$r.overlayPanel__middle}),f&&R.createElement("div",{className:$r.overlayPanel__next,onClick:v},R.createElement(yB,{className:$r.overlayPanel__nextButton}))),R.createElement("span",{className:$r.closeButton},R.createElement(N1,{pageId:e,componentId:t,defaultClassName:$r.imageViewer__clearButton,imgClassName:$r.imageViewer__clearButton__img,onPress:i})))))}var Vr={modal:"ed",modalContent:"rd",closeButton:"ad",fullImage:"od",nextButton:"td",prevButton:"id",overlayPanel:"sd",overlayPanel__prev:"Ie",overlayPanel__next:"Je",overlayPanel__prevButton:"Ke",overlayPanel__nextButton:"cd",overlayPanel__middle:"nd",videoViewer__clearButton:"ld",videoViewer__clearButton__img:"dd"};var Gle=memo(({videoPost:e})=>{let t=useMemo(()=>(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original)||void 0,[e]),o=At(t),r=At(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===_0.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?R.createElement(R.Fragment,null):R.createElement("video",{controls:!0,controlsList:"nodownload",autoPlay:!0,className:Vr.fullImage,ref:n,poster:r==null?void 0:r.fileUrl},R.createElement("source",{src:i,type:"video/mp4"}),R.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)."))});function vB({pageId:e="*",componentId:t="*",elementId:o="*",post:r,initialVideoIndex:n,onClose:i}){let{themeStyles:a}=A({pageId:e,componentId:t,elementId:o}),[s,l]=useState(n),p=Va((r==null?void 0:r.children)||[]).filter(C=>C.dataType==="video"),u=p[s],g=s<p.length-1,f=s>0,y=()=>{g&&l(C=>C+1);},v=()=>{f&&l(C=>C-1);};return R.createElement("div",{style:a},R.createElement("div",{className:Vr.modal,onClick:i},R.createElement("div",{className:Vr.modalContent,onClick:C=>C.stopPropagation()},R.createElement(Gle,{videoPost:u}),R.createElement("div",{className:Vr.overlayPanel},f&&R.createElement("div",{className:Vr.overlayPanel__prev,onClick:v},R.createElement(Rc,{className:Vr.overlayPanel__prevButton})),R.createElement("div",{className:Vr.overlayPanel__middle}),g&&R.createElement("div",{className:Vr.overlayPanel__next,onClick:y},R.createElement(Rc,{className:Vr.overlayPanel__nextButton}))),R.createElement("span",{className:Vr.closeButton},R.createElement(N1,{pageId:e,componentId:t,defaultClassName:Vr.videoViewer__clearButton,imgClassName:Vr.videoViewer__clearButton__img,onPress:i})))))}var bB=({post:e,community:t})=>{let{currentUserId:o}=De(),r=useMemo(()=>e.targetType==="community"&&e.targetId===(t==null?void 0:t.communityId),[e.targetType,t==null?void 0:t.communityId]),{moderators:n}=nm({communityId:t==null?void 0:t.communityId,shouldCall:r}),i=useMemo(()=>r?n.some(s=>s.userId===o):!1,[n,r,o]),a=e.postedUserId===o;return {isCommunityModerator:i,isOwner:a}};var Un={postMenu:"md",postMenu__item:"h",postMenu__editPost__text:"gd",postMenu__editPost__icon:"hd",postMenu__reportPost__text:"pd",postMenu__reportPost__icon:"fd",postMenu__deletePost__text:"ud",postMenu__deletePost__icon:"bd"};var wB=({post:e,isFlaggable:t,onReportSuccess:o,onReportError:r,onUnreportSuccess:n,onUnreportError:i})=>{let a=useQueryClient(),s=(e==null?void 0:e.postId)||void 0,{data:l,isLoading:d}=useQuery({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s],queryFn:()=>PostRepository.isPostFlaggedByMe(s),enabled:s!=null&&t}),{mutateAsync:p}=useMutation({mutationFn:()=>_(void 0,null,function*(){return PostRepository.flagPost(e.postId)}),onMutate:()=>_(void 0,null,function*(){yield a.cancelQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),a.setQueryData(["asc-uikit","PostRepository","isPostFlaggedByMe",s],()=>!0);}),onSuccess:()=>{o==null||o();},onError:(g,f,y)=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),r==null||r(g);},onSettled:()=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]});}}),{mutateAsync:u}=useMutation({mutationFn:()=>_(void 0,null,function*(){return PostRepository.unflagPost(e.postId)}),onMutate:()=>_(void 0,null,function*(){yield a.cancelQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),a.setQueryData(["asc-uikit","PostRepository","isPostFlaggedByMe",s],()=>!1);}),onSuccess:()=>{n==null||n();},onError:(g,f,y)=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),i==null||i(g);},onSettled:()=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]});}});return {isLoading:d,isFlaggedByMe:l||!1,mutateReportPost:p,mutateUnReportPost:u}};var $n={createPost:"vd",createPost__topBar:"xd",createPost__status:"wd",createPost_infoIcon:"yd",createPost__notiWrap:"Le",createPost__formMediaAttachment:"Me",drawer__content:"kd",mentionTextInput_item:"Ne",drawerContentContainer:"Y"};var Xle=createContext({itemWithAds:[],isLoading:!1,prependItem:()=>{},removeItem:()=>{},updateItem:()=>{},loadMore:()=>{},hasMore:!1,loadMoreHasBeenCalled:!1,fetch:()=>{},refetch:()=>{},scrollPosition:0,onScroll:()=>{}}),bs=()=>{let e=useContext(Xle);if(!e)throw new Error("useGlobalFeedContext must be used within a GlobalFeedProvider");return e};var MB=()=>/Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var PB=e=>new Promise((t,o)=>{let r=document.createElement("video"),n=document.createElement("canvas"),i=n.getContext("2d");r.src=URL.createObjectURL(e);let a=()=>{r.currentTime=10;},s=()=>{try{n.width=r.videoWidth,n.height=r.videoHeight,i==null||i.drawImage(r,0,0,n.width,n.height);let d=n.toDataURL("image/png");t(d);}catch(d){o(d);}finally{r.removeEventListener("canplay",a),r.removeEventListener("seeked",s),r.removeEventListener("error",l),URL.revokeObjectURL(r.src);}},l=d=>{o(new Error(`Error loading video: ${d}`));};r.addEventListener("canplay",a),r.addEventListener("seeked",s),r.addEventListener("error",l),r.load();});var _B={createNewPostButton:"Oe"};function xg({pageId:e="*",componentId:t="*",isValid:o,onSubmit:r}){let n="create_new_post_button",{config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:n});return a?null:R.createElement("button",{onSubmit:r,style:s,disabled:!o,className:_B.createNewPostButton,type:"submit"},i.text)}var B1={thumbnail__container:"p",thumbnail__wrapper:"Pe",thumbnail:"jd",closeIcon:"zd",icon__status:"Xd"};var tme=Sa`
|
|
4722
|
+
0-22.58L207.6 256z`})),Mr=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="close_button",{isExcluded:a,config:s,uiReference:l,accessibilityId:d}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{className:U8.closeButton,"data-qa-anchor":d,onPress:o},R.createElement(ee,{defaultIcon:()=>R.createElement(Bie,{className:sr(U8.closeButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:l,className:n}),configIconName:s.icon}))};var L3={bottomSheet__container:"Wa",bottomSheet__header:"Za",bottomSheet__content:"_a",bottomSheet__backdrop:"eo"};var Pr=r=>{var n=r,{children:e,headerTitle:t}=n,o=P(n,["children","headerTitle"]);return R.createElement(h1,c({},o),R.createElement(h1.Container,{className:L3.bottomSheet__container},R.createElement(h1.Header,null,R.createElement(h1.Header,null),t&&R.createElement(h1.Header,{className:L3.bottomSheet__header},R.createElement(S.Title,null,t))),R.createElement(h1.Content,{className:L3.bottomSheet__content},e)),R.createElement(h1.Backdrop,{onTap:o.onClose}))};var $8={avatarContainer:"P",avatarImage:"ro"};var vt=({avatarUrl:e,defaultImage:t,onClick:o})=>R.createElement("div",{className:$8.avatarContainer,"data-clickable":!!o,onClick:o},e?R.createElement("img",{className:$8.avatarImage,src:e,alt:"Avatar"}):t);var _c={button:"ao",disabled:"m",primary:"Q",secondary:"W",ghost:"Z",small:"oo",medium:"to",large:"io",icon:"lo"};var Oie=a=>{var s=a,{children:e,variant:t="primary",size:o="medium",icon:r,className:n}=s,i=P(s,["children","variant","size","icon","className"]);let l=sr(_c.button,_c[t],_c[o],n);return R.createElement("button",c({className:l},i),r&&R.createElement("span",{className:_c.icon},r),e)},A3=Oie;var WN={cancelButton:"so"};var D3=({pageId:e="*",componentId:t="*",onPress:o=()=>{}})=>{let r="cancel_button",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:r});return a?null:R.createElement(F,{"data-qa-anchor":n,className:WN.cancelButton,style:s,onPress:o},R.createElement(S.Body,null,i.text))};var H3={createStoryButton:"co",createStoryButton__text:"no",createStoryButton__icon:"do"};var Vie=e=>R.createElement("svg",c({width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.771159 12.2248C1.00906 12.7861 1.30474 13.3088 1.65819 13.7927C1.85468 14.0618 2.2428 14.0749 2.47778 13.8387L2.85238 13.4622C3.05585 13.2578 3.07242 12.9352 2.91359 12.6944C2.68511 12.3479 2.4918 11.9785 2.33366 11.5862C2.17162 11.1841 2.04651 10.7654 1.95831 10.33C1.90156 10.0497 1.66209 9.83785 1.37619 9.83785H0.7981C0.460143 9.83785 0.194237 10.1301 0.252477 10.463C0.359316 11.0737 0.53221 11.661 0.771159 12.2248ZM0.791992 5.77587C0.565717 6.33406 0.392758 6.91522 0.273115 7.51935C0.206005 7.85821 0.473794 8.1628 0.819238 8.1628H1.37619C1.66209 8.1628 1.90156 7.95091 1.95831 7.6707C2.04651 7.23526 2.17162 6.81652 2.33366 6.41448C2.4918 6.0221 2.68511 5.6527 2.91359 5.30628C3.07242 5.06546 3.05585 4.7429 2.85238 4.53841L2.47778 4.16192C2.2428 3.92576 1.85456 3.93884 1.65906 4.2086C1.30847 4.69235 1.01944 5.21477 0.791992 5.77587ZM5.26074 16.7265C5.81526 16.966 6.39491 17.1396 6.9997 17.247C7.33267 17.3061 7.62533 17.0401 7.62533 16.7019V16.1571C7.62533 15.8715 7.41372 15.6325 7.13436 15.5731C6.70488 15.4817 6.29562 15.3497 5.90658 15.177C5.52127 15.0061 5.14859 14.8025 4.78852 14.5662C4.5475 14.4081 4.22544 14.4327 4.02574 14.6406L3.64108 15.041C3.40868 15.2829 3.43286 15.6735 3.7084 15.8649C4.19354 16.2017 4.71098 16.4889 5.26074 16.7265ZM3.71752 2.12947C3.43846 2.32272 3.41731 2.71924 3.65673 2.95986L4.05715 3.36229C4.26214 3.56831 4.58771 3.58533 4.82847 3.42255C5.1704 3.19137 5.53324 2.99173 5.91699 2.82361C6.3137 2.64981 6.73277 2.5172 7.17418 2.42577C7.45449 2.3677 7.66699 2.12833 7.66699 1.84207V1.29669C7.66699 0.959243 7.37557 0.693429 7.04294 0.750218C6.41529 0.857371 5.82122 1.03203 5.26074 1.27419C4.71443 1.51024 4.20002 1.79533 3.71752 2.12947ZM9.82271 15.5735C9.54395 15.6315 9.33366 15.8703 9.33366 16.155V16.6953C9.33366 17.0359 9.63023 17.3024 9.96541 17.2422C11.8264 16.908 13.4005 16.0311 14.6878 14.6117C16.1184 13.0344 16.8337 11.1639 16.8337 9.00033C16.8337 6.83673 16.1184 4.96627 14.6878 3.38894C13.4005 1.96952 11.8264 1.09268 9.96541 0.758409C9.63023 0.698204 9.33366 0.964784 9.33366 1.30532V1.84562C9.33366 2.13035 9.54395 2.36916 9.82271 2.42716C11.2862 2.73166 12.5155 3.45008 13.5107 4.5824C14.6149 5.83868 15.167 7.31132 15.167 9.00033C15.167 10.6893 14.6149 12.162 13.5107 13.4182C12.5155 14.5506 11.2862 15.269 9.82271 15.5735Z"}),R.createElement("path",{d:"M12.7189 8.47933C12.9012 8.47933 13.0835 8.66162 13.0835 8.84391V9.57308C13.0835 9.77816 12.9012 9.93766 12.7189 9.93766H9.43766V13.2189C9.43766 13.424 9.25537 13.5835 9.07308 13.5835H8.34391C8.13883 13.5835 7.97933 13.424 7.97933 13.2189V9.93766H4.69808C4.493 9.93766 4.3335 9.77816 4.3335 9.57308V8.84391C4.3335 8.66162 4.493 8.47933 4.69808 8.47933H7.97933V5.19808C7.97933 5.01579 8.13883 4.8335 8.34391 4.8335H9.07308C9.25537 4.8335 9.43766 5.01579 9.43766 5.19808V8.47933H12.7189Z"}));function F3({pageId:e="*",componentId:t="*",onClick:o,defaultClassName:r}){let n="create_story_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(F,{className:H3.createStoryButton,"data-qa-anchor":i,style:p,onPress:()=>o==null?void 0:o()},R.createElement(ee,{defaultIcon:()=>R.createElement(Vie,{className:sr(H3.createStoryButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:a.image,alt:d}),configIconName:a.image,defaultIconName:s.image}),R.createElement(S.Body,{className:H3.createStoryButton__text},a.text))}var V8={hyperLinkButton:"mo"};var Zie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),O3=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n=()=>{}})=>{let i="story_hyperlink_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{className:V8.hyperLinkButton,onPress:n,"data-qa-anchor":a},R.createElement(ee,{defaultIcon:()=>R.createElement(Zie,{className:sr(V8.hyperLinkButton,o)}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var KN={impressionButton:"po"};var qie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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 z3({pageId:e="*",componentId:t="*",reach:o=0,defaultIconClassName:r,imgIconClassName:n}){let i="story_impression_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:sr(KN.impressionButton,r),"data-qa-anchor":a},R.createElement(qie,null),R.createElement(S.BodyBold,null,o)),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:n}),defaultIconName:l.icon,configIconName:s.icon})}var JN={overflowMenuButton:"go"};var Jie=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.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"})),U3=({pageId:e="*",componentId:t="*",onPress:o=()=>{},defaultClassName:r,imgClassName:n})=>{let i="overflow_menu",{config:a,defaultConfig:s,uiReference:l,themeStyles:d,accessibilityId:p}=A({pageId:e,componentId:t,elementId:i});return R.createElement(F,{style:d,"data-qa-anchor":p,className:JN.overflowMenuButton,onPress:o},R.createElement(ee,{defaultIcon:()=>R.createElement(Jie,{className:r}),imgIcon:()=>R.createElement("img",{src:a.icon,alt:l,className:n}),defaultIconName:s.icon,configIconName:a.icon}))};var Xie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{clipPath:"url(#clip0_1709_7904)"},R.createElement("path",{d:"M16 32.5C24.8366 32.5 32 25.3366 32 16.5C32 7.66344 24.8366 0.5 16 0.5C7.16344 0.5 0 7.66344 0 16.5C0 25.3366 7.16344 32.5 16 32.5Z",fill:"#FFD54F"}),R.createElement("path",{d:"M9.33317 15.1667C10.8059 15.1667 11.9998 13.9728 11.9998 12.5C11.9998 11.0273 10.8059 9.83337 9.33317 9.83337C7.86041 9.83337 6.6665 11.0273 6.6665 12.5C6.6665 13.9728 7.86041 15.1667 9.33317 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M22.6667 15.1667C24.1394 15.1667 25.3333 13.9728 25.3333 12.5C25.3333 11.0273 24.1394 9.83337 22.6667 9.83337C21.1939 9.83337 20 11.0273 20 12.5C20 13.9728 21.1939 15.1667 22.6667 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M21.0248 27.3372C20.674 27.3372 20.3232 27.2038 20.0564 26.9352C17.8894 24.7682 14.1108 24.7682 11.9456 26.9352C11.4103 27.4705 10.5423 27.4705 10.007 26.9352C9.47163 26.4016 9.47163 25.5319 10.007 24.9966C11.6076 23.396 13.7362 22.5153 16.0001 22.5153C18.264 22.5153 20.3926 23.396 21.9932 24.9984C22.5286 25.5337 22.5286 26.4016 21.9932 26.937C21.7264 27.2038 21.3756 27.3372 21.0248 27.3372Z",fill:"#6D4C41"}),R.createElement("path",{d:"M24.8228 16.5987C24.4495 16.0587 23.5508 16.0587 23.1775 16.5987C22.6228 17.4014 21.3335 19.3881 21.3335 20.5001C21.3335 21.9707 22.5295 23.1667 24.0002 23.1667C25.4708 23.1667 26.6668 21.9707 26.6668 20.5001C26.6668 19.3881 25.3775 17.4014 24.8228 16.5987Z",fill:"#00BCD4"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_7904"},R.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0 0.5)"}))))},XN=Xie;var Yie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16.5",r:"16",fill:"url(#paint0_linear_1709_7888)"}),R.createElement("g",{clipPath:"url(#clip0_1709_7888)"},R.createElement("path",{d:"M21.8752 10.2903C21.3417 9.70788 20.5123 8.92173 20.1595 10.6968C20.0395 11.3004 19.7591 11.7656 19.5189 12.1402C19.2599 10.8296 18.4808 9.47308 17.7467 8.55843C17.472 8.21623 16.4973 6.85588 16.3101 4.58008C16.2821 4.24043 15.8787 4.08093 15.6263 4.31003C13.2147 6.49923 11.891 9.51013 11.8419 12.8998C11.8419 12.8998 10.8377 12.0533 10.2921 10.4786C10.1452 10.0546 9.57671 9.97368 9.33006 10.3486C9.28271 10.4206 9.23881 10.4927 9.19921 10.5627C7.33856 13.8527 6.44351 17.848 7.27096 21.565C8.65446 27.7898 17.8062 29.5301 22.6511 25.6177C27.3914 21.7899 25.8846 14.6654 21.8752 10.2903Z",fill:"#ED694A"}),R.createElement("path",{d:"M20.4125 14.8409C20.0185 14.4107 19.4058 13.83 19.1452 15.1411C19.0566 15.5869 18.8495 15.9306 18.6721 16.2073C18.4809 15.2392 17.9054 14.2372 17.3632 13.5617C17.1603 13.3089 16.4404 12.3042 16.302 10.6231C16.2814 10.3722 15.9834 10.2545 15.797 10.4237C14.0158 12.0406 13.038 14.2646 13.0018 16.7682C13.0018 16.7682 12.26 16.143 11.8571 14.9799C11.7486 14.6667 11.3287 14.607 11.1465 14.8839C11.1116 14.9371 11.0791 14.9904 11.0499 15.0421C9.67554 17.4721 9.01444 20.4231 9.62559 23.1686C10.6475 27.7664 17.4071 29.0518 20.9857 26.162C24.4869 23.3347 23.3739 18.0725 20.4125 14.8409Z",fill:"#F4A32C"}),R.createElement("path",{d:"M19.077 18.9949C18.8103 18.7037 18.3955 18.3106 18.2191 19.1982C18.1592 19.5 18.0189 19.7326 17.8988 19.9199C17.7693 19.2645 17.3798 18.5863 17.0127 18.129C16.8754 17.9579 16.3881 17.2777 16.2944 16.1398C16.2804 15.9699 16.0787 15.8902 15.9525 16.0048C14.7467 17.0994 14.0849 18.6049 14.0603 20.2996C14.0603 20.2996 13.5582 19.8764 13.2855 19.0891C13.212 18.8771 12.9278 18.8366 12.8045 19.0241C12.7808 19.06 12.7589 19.0961 12.739 19.1311C11.8087 20.7761 11.3612 22.7737 11.7749 24.6323C12.4666 27.7447 17.0425 28.6149 19.4649 26.6586C20.2945 25.9887 20.8088 25.0448 20.9131 24.0006C21.0706 22.4191 20.4619 20.5062 19.077 18.9949Z",fill:"#F4D44E"}),R.createElement("path",{d:"M17.838 22.85C17.6894 22.6878 17.4583 22.4688 17.36 22.9632C17.3266 23.1314 17.2485 23.261 17.1816 23.3653C17.1094 23.0002 16.8924 22.6223 16.6879 22.3676C16.6114 22.2722 16.3399 21.8933 16.2877 21.2593C16.2799 21.1647 16.1675 21.1203 16.0972 21.1841C15.4255 21.7939 15.0567 22.6327 15.043 23.5769C15.043 23.5769 14.7633 23.3411 14.6113 22.9024C14.5704 22.7843 14.412 22.7617 14.3434 22.8662C14.3302 22.8863 14.318 22.9064 14.307 22.9259C13.7887 23.8424 13.5393 24.9553 13.7698 25.9907C14.2947 28.3523 18.5971 28.2807 18.861 25.6388C18.9486 24.7577 18.6095 23.6919 17.838 22.85Z",fill:"#EAE9E8"}),R.createElement("path",{d:"M14.7688 26.4597C14.5383 25.5334 14.7876 24.5379 15.3059 23.7181C15.3169 23.7006 15.3292 23.6827 15.3423 23.6647C15.411 23.5713 15.5694 23.5914 15.6103 23.6971C15.7622 24.0895 16.042 24.3004 16.042 24.3004C16.0532 23.6064 16.3046 22.9764 16.7664 22.4711C16.6631 22.3281 16.3472 21.9833 16.2877 21.2597C16.2799 21.165 16.1675 21.1207 16.0972 21.1844C15.4255 21.7943 15.0567 22.633 15.043 23.5772C15.043 23.5772 14.7633 23.3414 14.6113 22.9028C14.5704 22.7847 14.412 22.7621 14.3434 22.8666C14.3302 22.8867 14.318 22.9068 14.307 22.9263C13.7887 23.8427 13.5393 24.9557 13.7698 25.9911C13.9831 26.9509 14.8594 27.5277 15.8282 27.6669C15.3056 27.4102 14.904 27.0038 14.7688 26.4597Z",fill:"#F7E7A1"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_7888",x1:"7.2",y1:"7.7",x2:"24.8",y2:"29.3",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFF09F"}),R.createElement("stop",{offset:"1",stopColor:"#FCCF5A"})),R.createElement("clipPath",{id:"clip0_1709_7888"},R.createElement("rect",{width:"25.6",height:"25.6",fill:"white",transform:"translate(3.2002 2.09998)"}))))},YN=Yie;var Rie=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions",clipPath:"url(#clip0_1709_1751)"},R.createElement("path",{id:"Vector",d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#FFD54F"}),R.createElement("path",{id:"Vector_2",d:"M27.2933 19.9601C26.9867 20.9334 26.5867 21.8267 26.0667 22.6667H5.93332C5.41332 21.8267 5.01332 20.9334 4.70665 19.9601C4.61332 19.6534 4.66665 19.3334 4.86665 19.0801C5.05332 18.8134 5.34665 18.6667 5.66665 18.6667H26.3333C26.6533 18.6667 26.9467 18.8134 27.1333 19.0801C27.3333 19.3334 27.3867 19.6534 27.2933 19.9601Z",fill:"white"}),R.createElement("path",{id:"Vector_3",d:"M26.0664 22.6667C23.9598 26.1201 20.1864 28.2934 15.9998 28.2934C11.8131 28.2934 8.03977 26.1201 5.93311 22.6667H26.0664Z",fill:"#E53935"}),R.createElement("path",{id:"Vector_4",d:"M12.3332 13.6668C11.7812 13.6668 11.3332 13.2188 11.3332 12.6668C11.3332 11.9322 10.7358 11.3335 9.99984 11.3335C9.26384 11.3335 8.6665 11.9322 8.6665 12.6668C8.6665 13.2188 8.2185 13.6668 7.6665 13.6668C7.1145 13.6668 6.6665 13.2188 6.6665 12.6668C6.6665 10.8295 8.16117 9.3335 9.99984 9.3335C11.8385 9.3335 13.3332 10.8295 13.3332 12.6668C13.3332 13.2188 12.8852 13.6668 12.3332 13.6668Z",fill:"#6D4C41"}),R.createElement("path",{id:"Vector_5",d:"M24.3332 13.6668C23.7812 13.6668 23.3332 13.2188 23.3332 12.6668C23.3332 11.9322 22.7358 11.3335 21.9998 11.3335C21.2638 11.3335 20.6665 11.9322 20.6665 12.6668C20.6665 13.2188 20.2185 13.6668 19.6665 13.6668C19.1145 13.6668 18.6665 13.2188 18.6665 12.6668C18.6665 10.8295 20.1612 9.3335 21.9998 9.3335C23.8385 9.3335 25.3332 10.8295 25.3332 12.6668C25.3332 13.2188 24.8852 13.6668 24.3332 13.6668Z",fill:"#6D4C41"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_1751"},R.createElement("rect",{width:"32",height:"32",fill:"white"}))))},RN=Rie;var eae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},$3=eae;var tae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions"},R.createElement("circle",{id:"Ellipse 2",cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1738)"}),R.createElement("path",{id:"circle",d:"M22.4466 10.5836C20.7296 9.07415 18.2009 9.36319 16.6088 11.0332L16.0156 11.6755L15.3912 11.0332C13.8303 9.36319 11.2704 9.07415 9.55338 10.5836C7.58661 12.3179 7.49295 15.401 9.24119 17.2637L15.2976 23.687C15.6722 24.1045 16.3278 24.1045 16.7024 23.687L22.7588 17.2637C24.507 15.401 24.4134 12.3179 22.4466 10.5836Z",fill:"white"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1738",x1:"7.2",y1:"7.2",x2:"28",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#EE5C91"}),R.createElement("stop",{offset:"0.833333",stopColor:"#E02222"}))))},eE=tae;var ca={reactButton:"_",reactButton__icon:"ee",reactButton__reactionsText:"re",reactButton__panel:"ho",reactButton__panel__reaction:"r",reactButton__panel__reaction__text:"y","reaction-scale":"ae","reaction-click":"oe"};var iae=e=>R.createElement("svg",c({width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.9727 9.6543C16.1055 10.418 16.0059 11.1484 15.6738 11.7461C15.7734 12.543 15.541 13.373 15.0762 13.9707C15.043 15.8301 13.9141 17.125 11.3574 17.125C11.125 17.125 10.8594 17.125 10.5938 17.125C7.20703 17.125 6.17773 15.8633 4.68359 15.8301C4.58398 16.2617 4.15234 16.5938 3.6875 16.5938H1.5625C0.964844 16.5938 0.5 16.1289 0.5 15.5312V7.5625C0.5 6.99805 0.964844 6.5 1.5625 6.5H4.81641C5.44727 5.96875 6.34375 4.50781 7.10742 3.74414C7.57227 3.2793 7.43945 0.125 9.49805 0.125C11.3906 0.125 12.6523 1.1875 12.6523 3.61133C12.6523 4.24219 12.5195 4.74023 12.3535 5.17188H13.582C15.1758 5.17188 16.4375 6.5332 16.4375 7.99414C16.4375 8.625 16.2715 9.15625 15.9727 9.6543ZM13.9141 11.4473C14.6445 10.7832 14.5449 9.75391 14.0801 9.25586C14.4121 9.25586 14.8438 8.625 14.8438 8.02734C14.8105 7.39648 14.2793 6.76562 13.582 6.76562H10.1289C10.1289 5.50391 11.0586 4.90625 11.0586 3.61133C11.0586 2.81445 11.0586 1.71875 9.49805 1.71875C8.86719 2.34961 9.16602 3.94336 8.23633 4.87305C7.33984 5.76953 6.04492 8.09375 5.08203 8.09375H4.75V14.3027C6.50977 14.3027 8.07031 15.5312 10.4277 15.5312H11.6895C12.8516 15.5312 13.7148 14.9668 13.4492 13.373C13.9473 13.0742 14.3457 12.1445 13.9141 11.4473ZM3.42188 14.4688C3.42188 14.0371 3.05664 13.6719 2.625 13.6719C2.16016 13.6719 1.82812 14.0371 1.82812 14.4688C1.82812 14.9336 2.16016 15.2656 2.625 15.2656C3.05664 15.2656 3.42188 14.9336 3.42188 14.4688Z"}));function V3({pageId:e="*",componentId:t="*",myReaction:o,reactionsCount:r,defaultIconClassName:n,imgIconClassName:i,onReactionClick:a}){let s="reaction_button",{isExcluded:l,accessibilityId:d,config:p,defaultConfig:u,uiReference:g,themeStyles:f}=A({pageId:e,componentId:t,elementId:s}),y=o!=null;if(l)return null;let v=()=>{switch(o){case"like":return R.createElement($3,{className:ca.reactButton__icon});case"love":return R.createElement(eE,{className:ca.reactButton__icon});case"fire":return R.createElement(YN,{className:ca.reactButton__icon});case"happy":return R.createElement(RN,{className:ca.reactButton__icon});case"crying":return R.createElement(XN,{className:ca.reactButton__icon});default:return null}};return R.createElement(F,{style:f,"data-qa-anchor":d,className:ca.reactButton,onPress:()=>{a("like");}},o?v():R.createElement(ee,{defaultIcon:()=>R.createElement(iae,{className:sr(ca.reactButton__icon,n),"data-has-my-reaction":"false"}),imgIcon:()=>R.createElement("img",{src:p.icon,alt:g,className:i}),defaultIconName:u.icon,configIconName:p.icon}),R.createElement(S.BodyBold,{className:ca.reactButton__reactionsText,"data-has-my-reaction":y},typeof r=="number"?ob(r):o||p.text))}var tE={saveButton:"te"};function b1({pageId:e="*",componentId:t="*",onPress:o,className:r}){let n="save_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(F,{className:sr(tE.saveButton,r),"data-qa-anchor":i,style:N(c({},l),{backgroundColor:a.background_color}),onPress:o},a.save_button_text)}var oE={shareStoryButton:"ie",shareStoryIcon:"fo"};var Tc={communityAvatar__text:"bo",communityAvatar__placeholder__path:"uo",communityAvatar__placeholder__rect:"vo",communityAvatar__placeholder:"xo",communityAvatar__image:"wo"};var rE=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",className:Tc.communityAvatar__placeholder},e),R.createElement("rect",{width:"64",height:"64",rx:"32",className:Tc.communityAvatar__placeholder__rect}),R.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:Tc.communityAvatar__placeholder__path}));function Or({pageId:e="*",componentId:t="*",community:o}){let r="community_avatar",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r}),s=se({fileId:o==null?void 0:o.avatarFileId});return i?null:s==null?R.createElement(rE,{style:a}):R.createElement("object",{data:s,type:"image/png",className:Tc.communityAvatar__image,"data-qa-anchor":n,style:a},R.createElement(rE,null))}var pae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"14",fill:"none",viewBox:"0 0 15 14"},e),R.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"})),j3=({pageId:e="*",componentId:t="*",community:o,onClick:r})=>{let n="share_story_button",{config:i,isExcluded:a}=A({pageId:e,componentId:t,elementId:n});return a?null:R.createElement("button",{role:"button",className:sr(oE.shareStoryButton),"data-qa-anchor":"share_story_button",onClick:r,"data-hideAvatar":i==null?void 0:i.hide_avatar},!(i!=null&&i.hide_avatar)&&R.createElement(Or,{pageId:e,componentId:t,community:o}),R.createElement(S.BodyBold,null,(i==null?void 0:i.text)||"Share story"),R.createElement(pae,null))};var G3={speakerButton:"yo",speakerButton__icon:"ko"};var gae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),fae=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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 Z3({isMuted:e,pageId:t="*",componentId:o="*",defaultIconClassName:r,imgIconClassName:n,onPress:i}){let a="speaker_button",{accessibilityId:s,config:l,defaultConfig:d,isExcluded:p,uiReference:u}=A({pageId:t,componentId:o,elementId:a});return p?null:R.createElement(F,{className:sr(G3.speakerButton),onPress:i},R.createElement(ee,{"data-qa-anchor":s,defaultIcon:()=>e?R.createElement(fae,{className:G3.speakerButton__icon}):R.createElement(gae,{className:G3.speakerButton__icon}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:u,className:sr(n)}),defaultIconName:d.icon,configIconName:l.icon}))}var kc={hyperlink:"jo",hyperlinkIcon:"zo",hyperlinkText:"Xo",text:"Yo"};var Ci=r=>{var n=r,{href:e,children:t}=n,o=P(n,["href","children"]);return R.createElement("a",c({href:e,className:kc.hyperlink},o),R.createElement(Ic,{className:kc.hyperlinkIcon}),R.createElement("div",{className:kc.hyperlinkText},R.createElement("span",{className:kc.text},t)))};var iE={editCancelButton:"Co"};var ms=({pageId:e="*",componentId:t="*",className:o,onPress:r=()=>{}})=>{let n="edit_cancel_button",{accessibilityId:i,config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(F,{"data-qa-anchor":i,className:sr(iE.editCancelButton,o),style:N(c({},l),{backgroundColor:a.background_color}),onPress:r},R.createElement(S.Body,null,a.cancel_button_text))};var vae=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),R.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"}),R.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"})),cs=vae;var zr={commentComposer:"Ao",commentComposer__top:"Mo",commentComposer__mentionContainer:"So",commentComposer__container:"Eo",commentComposer__avatar:"Fo",commentComposer__button:"k",commentComposer__input:"Io",commentComposer__replyContainer:"Ro",commentComposer__replyContainer__text:"Uo",commentComposer__replyContainer__username:"Bo",commentComposer__replyContainer__closeButton:"Do",commentComposer__disableContainer:"Ho"};var wae=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},R.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"})),Sc=({referenceId:e,referenceType:t,replyTo:o,onCancelReply:r,shouldAllowCreation:n=!0,community:i})=>{var h,x;let a=De().currentUserId,{user:s}=pr(a),l=rt({fileId:(h=s==null?void 0:s.avatar)==null?void 0:h.fileId,imageSize:"small"}),d=useRef(null),p=useRef(null),u=useRef(null),[g,f]=useState(0),[y,v]=useState({data:{text:""},mentionees:[{type:"user",userIds:[""]}],metadata:{}}),{mutateAsync:C}=useMutation({mutationFn:M=>_(void 0,[M],function*({params:b}){let I=o?o.commentId:void 0;yield CommentRepository.createComment(N(c({referenceId:o?o.referenceId:e,referenceType:t,parentId:I},b),{mentionees:b.mentionees}));}),onError:b=>{},onSuccess:()=>{var b;v({data:{text:""},mentionees:[],metadata:{}}),(b=d.current)==null||b.clearEditorState(),r();}});return n?R.createElement("div",{className:zr.commentComposer},R.createElement("div",{className:zr.commentComposer__top},R.createElement("div",{className:zr.commentComposer__mentionContainer,ref:u}),o&&R.createElement("div",{className:zr.commentComposer__replyContainer,style:{"--asc-reply-container-offset-bottom":`${g}px`}},R.createElement("div",{className:zr.commentComposer__replyContainer__text},R.createElement("span",null,"Replying to "),R.createElement("span",{className:zr.commentComposer__replyContainer__username},o==null?void 0:o.userId)),R.createElement(Y1,{onClick:r,className:zr.commentComposer__replyContainer__closeButton}))),R.createElement("div",{className:zr.commentComposer__container},R.createElement("div",{className:zr.commentComposer__avatar},R.createElement(vt,{avatarUrl:l,defaultImage:R.createElement(cs,null)})),R.createElement("div",{className:zr.commentComposer__input,ref:p},R.createElement(Yn,{ref:d,mentionContainer:u==null?void 0:u.current,onChange:({text:b,mentioned:M,mentionees:I})=>{v({data:{text:b},mentionees:I,metadata:{mentioned:M}});},targetType:t,targetId:e,value:y,placeholder:"Say something nice...",communityId:i==null?void 0:i.communityId})),R.createElement(F,{isDisabled:!((x=y==null?void 0:y.data)!=null&&x.text),className:zr.commentComposer__button,onPress:()=>C({params:y})},R.createElement(S.Body,null,"Post")))):R.createElement("div",{className:zr.commentComposer__disableContainer},R.createElement(wae,null),R.createElement(S.Body,null,"Comments are disabled for this story"))};var q3={moderatorBadge:"Lo",moderatorBadge__icon:"To",moderatorBadge__text:"Vo"};var Pae=e=>R.createElement("svg",c({width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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 I1({pageId:e="*",componentId:t="*"}){let o="moderator_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement("div",{className:q3.moderatorBadge,style:l,"data-qa-anchor":r},R.createElement(Pae,{className:q3.moderatorBadge__icon}),R.createElement("div",{className:q3.moderatorBadge__text},n.text))}var lE={timestamp:"qo"};ln.extend(Sae);ln.extend(kae);ln.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=ln().subtract(e,"M"),i=ln();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=ln().subtract(e,"M"),i=ln();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=ln().subtract(e,"y"),i=ln();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=ln().subtract(e,"y"),i=ln();return n.get("year")===i.get("year")?n.format("D MMM"):n.format("D MMM YYYY")}}});function w1({pageId:e="*",componentId:t="*",timestamp:o}){let r="timestamp",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r}),s=ln(o).fromNow();return i?null:R.createElement(S.Caption,{className:lE.timestamp,style:a,"data-qa-anchor":n},s)}var Je={postComment:"Go",postComment__deleteComment_container:"Jo",postComment__deleteComment_icon:"Ko",postComment__deleteComment_text:"No",postComment__avatar:"Oo",postComment__details:"Po",postComment__content:"Qo",postComment__content__username:"Wo",postComment__content__text:"Zo",postComment__secondRow:"_o",postComment__secondRow__leftPane:"et",postComment__secondRow__timestamp:"rt",postComment__secondRow__rightPane:"at",postComment__secondRow__rightPane__like:"ot",postComment__secondRow__like:"le",postComment__secondRow__reply:"tt",postComment__secondRow__actionButton:"it",postComment__viewReply_button:"lt",postComment__viewReply_icon:"st",postComment__viewReply_text:"ct",postComment__edit:"nt",postComment__edit__inputWrap:"dt",postComment__edit__mentionContainer:"mt",postComment__edit__input:"pt",postComment__edit__buttonWrap:"gt",postComment__edit__button:"ht",postComment__edit__cancelButton:"ft",postComment__edit__saveButton:"bt",postComment__seeMore:"ut"};var Eae=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),K3=Eae;var On={postCommentSkeleton__container:"vt",postCommentSkeleton:"xt",postCommentSkeleton__avatar:"wt",postCommentSkeleton__details:"yt",postCommentSkeleton__content:"kt",postCommentSkeleton__content__bar:"jt",postCommentSkeleton__animation:"zt","skeleton-pulse":"se"};var X3=({pageId:e="*",componentId:t="*",numberOfSkeletons:o=1})=>{let{accessibilityId:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:t});if(n)return null;let a=Array.from({length:o},(s,l)=>R.createElement("div",{key:l,"data-qa-anchor":r,className:sr(On.postCommentSkeleton,On.postCommentSkeleton__animation),style:i},R.createElement("div",{className:sr(On.postCommentSkeleton__avatar,On.postCommentSkeleton__animation)}),R.createElement("div",{className:sr(On.postCommentSkeleton__details,On.postCommentSkeleton__animation)},R.createElement("div",{className:sr(On.postCommentSkeleton__content,On.postCommentSkeleton__animation)}),R.createElement("div",{className:On.postCommentSkeleton__content__bar}))));return R.createElement("div",{className:On.postCommentSkeleton__container},a)};function G8({parentId:e,referenceId:t,referenceType:o,limit:r=10,shouldCall:n=!0,includeDeleted:i=!1}){let l=dt({fetcher:CommentRepository.getComments,params:{parentId:e,referenceId:t,referenceType:o,limit:r,includeDeleted:i},shouldCall:!!t&&!!o&&n}),{items:a}=l,s=P(l,["items"]);return c({comments:a},s)}function Ec({commentId:e,shouldSubscribe:t=!0,callback:o}){return oa({fetcher:CommentRepository.getComment,params:e,callback:o,shouldSubscribe:!!e&&t,getSubscribedTopic:({data:r})=>getCommentTopic(r)})}var zn="like";var vi={textWithMention__container:"Xt",textWithMention__clamp:"ce",textWithMention__paragraph:"Yt",textWithMention__fullContent:"ne",textWithMention__mention:"Ct",textWithMention__text:"At",textWithMention__link:"Mt",textWithMention__showMoreLess:"St"};var Nm=({maxLines:e=8,data:t,mentionees:o,metadata:r})=>{let[n,i]=useState(!1),[a,s]=useState(!1),[l,d]=useState(!1),p=useRef(null),{goToUserProfilePage:u}=Le(),g=useMemo(()=>nl({data:t,mentionees:o,metadata:r}),[t,o,r]);useEffect(()=>{var h;let y=((h=p.current)==null?void 0:h.clientHeight)||0,v=parseInt(window.getComputedStyle(document.body).getPropertyValue("font-size"),10),C=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--asc-line-height-md"))*v;y>C*e&&s(!0),d(!0);},[]);let f=(y,v)=>y.children.map(C=>{var h;return M6(C)?R.createElement(F,{key:C.data.userId,className:sr(v,vi.textWithMention__mention),onPress:()=>u(C.data.userId)},C.text):P6(C)||Ov(C)?R.createElement("a",{key:C.url,href:C.url,className:sr(v,vi.textWithMention__link)},E2(C.children[0])?(h=C.children[0])==null?void 0:h.text:C.url):E2(C)?R.createElement("span",{className:sr(v,vi.textWithMention__text)},C.text):null});return R.createElement("div",{className:vi.textWithMention__container},R.createElement("div",{ref:p,className:vi.textWithMention__fullContent,"data-hidden":l},g.root.children.map(y=>R.createElement("p",{className:vi.textWithMention__paragraph},y.children.length>0?R.createElement(S.Body,{renderer:({typoClassName:v})=>R.createElement(R.Fragment,null,f(y,v))}):R.createElement("br",null)))),R.createElement("div",{"data-expanded":n,className:vi.textWithMention__clamp,style:{"--asc-text-with-mention-max-lines":e}},a&&!n&&R.createElement("div",{onClick:()=>i(!0),className:vi.textWithMention__showMoreLess},R.createElement(S.Body,null,"...See more")),g.root.children.map((y,v)=>R.createElement("p",{className:vi.textWithMention__paragraph},y.children.length>0?R.createElement(S.Body,{renderer:({typoClassName:C})=>R.createElement(R.Fragment,null,f(y,C))}):R.createElement("br",null)))))};var Em={commentOptions__actionButton:"Et",commentOptions__actionButton__icon:"Ft",commentOptions__actionButton__text:"It"};var Y3=({comment:e,handleEditComment:t,handleDeleteComment:o,onCloseBottomSheet:r})=>{let{userRoles:n}=De(),{toggleFlagComment:i,isFlaggedByMe:a}=X7(e.commentId),{canDelete:s,canEdit:l,canReport:d}=Q0(e,!1,n),p=Po(),u=()=>_(void 0,null,function*(){try{yield i({onFlagSuccess:()=>p.success({content:"Report sent"}),onUnFlagSuccss:()=>p.success({content:"Unreport sent"})});}catch(f){f instanceof Error&&p.error({content:f.message});}}),g=[l?{name:"Edit comment",action:t,icon:R.createElement(s8,{className:Em.commentOptions__actionButton__icon})}:null,d?{name:a?"Unreport comment":"Report comment",action:u,icon:R.createElement(l8,{className:Em.commentOptions__actionButton__icon})}:null,s?{name:"Delete comment",action:o,icon:R.createElement(p1,{className:Em.commentOptions__actionButton__icon})}:null].filter(Yr);return R.createElement(R.Fragment,null,g.map((f,y)=>R.createElement("div",{className:Em.commentOptions__actionButton,key:y,onClick:()=>{r(),f.action();}},f.icon,R.createElement("div",{className:Em.commentOptions__actionButton__text},R.createElement(S.BodyBold,null,f.name)))))};var pt={postReplyComment:"Rt",postReplyComment__avatar:"Ut",postReplyComment__details:"Bt",postReplyComment__content:"Dt",postReplyComment__content__username:"Ht",postReplyComment__content__text:"Lt",postReplyComment__secondRow:"Tt",postReplyComment__secondRow__leftPane:"Vt",postReplyComment__secondRow__rightPane:"qt",postReplyComment__secondRow__rightPane__like:"Gt",postReplyComment__secondRow__like:"de",postReplyComment__secondRow__reply:"Jt",postReplyComment__secondRow__actionButton:"Kt",postReplyComment__viewReply_button:"Nt",postReplyComment__viewReply_icon:"Ot",postReplyComment__viewReply_text:"Pt",postReplyComment__actionButton:"Qt",postReplyComment__actionButton__icon:"Wt",postReplyComment__actionButton__text:"Zt",postReplyComment__deleteComment_container:"_t",postReplyComment__deleteComment_icon:"ei",postReplyComment__deleteComment_text:"ri",postReplyComment__edit:"ai",postReplyComment__edit__inputWrap:"oi",postReplyComment__edit__input:"ti",postReplyComment__edit__buttonWrap:"ii",postReplyComment__edit__button:"li",postReplyComment__edit__cancelButton:"si",postReplyComment__edit__saveButton:"ci",postReplyComment__secondRow__timestamp:"ni"};var Gae=({pageId:e="*",community:t,comment:o})=>{var T;let r="post_comment",{confirm:n}=Ye(),{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=te({pageId:e,componentId:r}),[u,g]=useState(!1),[f,y]=useState(!1),[v,C]=useState(),h=(o.myReactions||[]).some(L=>L==="like"),x=()=>g(L=>!L),b=()=>_(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),M=()=>{y(!0);},I=()=>{n({pageId:e,componentId:r,title:"Delete reply",content:"This reply will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:b});},w=()=>_(void 0,null,function*(){o&&(h?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,zn):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,zn));}),k=useCallback(()=>_(void 0,null,function*(){!v||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:v.data,mentionees:v.mentionees,metadata:v.metadata}),y(!1));}),[v]);return Ec({commentId:o.commentId}),l?null:R.createElement(R.Fragment,null,o.isDeleted?R.createElement("div",{className:pt.postReplyComment__deleteComment_container,style:p},R.createElement(wc,{className:pt.postReplyComment__deleteComment_icon}),R.createElement(S.Caption,{className:pt.postReplyComment__deleteComment_text},"This reply has been deleted")):f?R.createElement("div",{className:pt.postReplyComment__edit},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:pt.postReplyComment__edit__inputWrap},R.createElement("div",{className:pt.postReplyComment__edit__input},R.createElement(Yn,{placeholder:"Say something nice...",communityId:t==null?void 0:t.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:L=>{C({data:{text:L.text},mentionees:L.mentionees,metadata:{mentioned:L.mentioned}});}})),R.createElement("div",{className:pt.postReplyComment__edit__buttonWrap},R.createElement(ms,{componentId:"edit_comment_component",className:sr(pt.postReplyComment__edit__button,pt.postReplyComment__edit__cancelButton),onPress:()=>{y(!1);}}),R.createElement(b1,{className:sr(pt.postReplyComment__edit__button,pt.postReplyComment__edit__saveButton),componentId:"edit_comment_component",onPress:k})))):R.createElement("div",{className:pt.postReplyComment,style:p,"data-qa-anchor":i},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:pt.postReplyComment__details},R.createElement("div",{className:pt.postReplyComment__content},R.createElement(S.BodyBold,{className:pt.postReplyComment__content__username},(T=o.creator)==null?void 0:T.displayName),R.createElement(I1,{pageId:e,componentId:r}),R.createElement(Nm,{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),R.createElement("div",{className:pt.postReplyComment__secondRow},R.createElement("div",{className:pt.postReplyComment__secondRow__leftPane},R.createElement(S.Caption,{className:pt.postReplyComment__secondRow__timestamp},R.createElement(w1,{pageId:e,componentId:r,timestamp:o.createdAt}),o.createdAt!==o.editedAt&&" (edited)"),R.createElement("div",{onClick:w},R.createElement(S.CaptionBold,{className:pt.postReplyComment__secondRow__like,"data-is-liked":h},h?"Liked":"Like")),R.createElement(Na,{className:pt.postReplyComment__secondRow__actionButton,onClick:()=>g(!0)})),o.reactionsCount>0&&R.createElement("div",{className:pt.postReplyComment__secondRow__rightPane},R.createElement(S.Caption,null,ob(o.reactionsCount)),R.createElement($3,{className:pt.postReplyComment__secondRow__rightPane__like}))))),R.createElement(Pr,{onClose:x,isOpen:u,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},R.createElement(Y3,{comment:o,onCloseBottomSheet:x,handleEditComment:M,handleDeleteComment:I})))},uE=Gae;var R3={postReplyCommentList__viewReply_button:"di",postReplyCommentList__viewReply_icon:"mi",postReplyCommentList__viewReply_text:"pi"};var gE=({referenceId:e,referenceType:t,community:o,parentId:r})=>{let{comments:n,hasMore:i,isLoading:a,loadMore:s}=G8({referenceId:e,referenceType:t,parentId:r,limit:10,shouldCall:!0,includeDeleted:!0}),l=()=>{s();};return R.createElement("div",null,a&&R.createElement(X3,{numberOfSkeletons:3}),n.map(d=>R.createElement(uE,{community:o,comment:d})),i&&R.createElement("div",{className:R3.postReplyCommentList__viewReply_button,onClick:l},R.createElement(K3,{className:R3.postReplyCommentList__viewReply_icon}),R.createElement(S.CaptionBold,{className:R3.postReplyCommentList__viewReply_text},"View more replies")))};var Kae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))},Jae=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},CE=({pageId:e="*",componentId:t="comment_bubble",comment:o,community:r,onClickReply:n,shouldAllowInteraction:i=!0})=>{var q;let {accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=te({pageId:e,componentId:t}),{confirm:g}=Ye(),[f,y]=useState(!1),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(),I=useRef(null);useState(!1);let T=()=>y(O=>!O),L=(o.myReactions||[]).some(O=>O==="like"),D=o.childrenNumber;if(d)return null;let U=()=>_(void 0,null,function*(){return o.commentId&&CommentRepository.deleteComment(o.commentId)}),j=()=>{x(!0);},E=()=>{g({pageId:e,componentId:t,title:"Delete comment",content:"This comment will be permanently removed.",cancelText:"Cancel",okText:"Delete",onOk:U});},V=()=>_(void 0,null,function*(){o&&(L?yield ReactionRepository.removeReaction("comment",o==null?void 0:o.commentId,zn):yield ReactionRepository.addReaction("comment",o==null?void 0:o.commentId,zn));}),G=useCallback(()=>_(void 0,null,function*(){!b||!o.commentId||(yield CommentRepository.updateComment(o.commentId,{data:b.data,mentionees:b.mentionees,metadata:b.metadata}),x(!1));}),[b]);return Ec({commentId:o.commentId}),R.createElement("div",{style:u,"data-qa-anchor":a},o.isDeleted?R.createElement("div",{className:Je.postComment__deleteComment_container},R.createElement(wc,{className:Je.postComment__deleteComment_icon}),R.createElement(S.Body,{className:Je.postComment__deleteComment_text},"This comment has been deleted")):h?R.createElement("div",{className:Je.postComment__edit},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:Je.postComment__edit__inputWrap,ref:I},R.createElement("div",{className:Je.postComment__edit__input},R.createElement(Yn,{placeholder:"Say something nice...",communityId:r==null?void 0:r.communityId,value:{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata||{}},onChange:O=>{M({data:{text:O.text},mentionees:O.mentionees,metadata:{mentioned:O.mentioned}});},maxLines:5,mentionContainer:I==null?void 0:I.current})),R.createElement("div",{className:Je.postComment__edit__buttonWrap},R.createElement(ms,{componentId:"edit_comment_component",className:sr(Je.postComment__edit__button,Je.postComment__edit__cancelButton),onPress:()=>{x(!1);}}),R.createElement(b1,{className:sr(Je.postComment__edit__button,Je.postComment__edit__saveButton),componentId:"edit_comment_component",onPress:G})))):R.createElement("div",{className:Je.postComment},R.createElement(Vo,{userId:o.userId}),R.createElement("div",{className:Je.postComment__details},R.createElement("div",{className:Je.postComment__content},R.createElement(S.BodyBold,{className:Je.postComment__content__username},(q=o.creator)==null?void 0:q.displayName),R.createElement(I1,{pageId:e,componentId:t}),R.createElement(Nm,{data:{text:o.data.text},mentionees:o.mentionees,metadata:o.metadata})),R.createElement("div",{className:Je.postComment__secondRow},i&&R.createElement("div",{className:Je.postComment__secondRow__leftPane},R.createElement(S.Caption,{className:Je.postComment__secondRow__timestamp},R.createElement(w1,{pageId:e,componentId:t,timestamp:o.createdAt}),o.createdAt!==o.editedAt&&" (edited)"),R.createElement("div",{onClick:V},R.createElement(S.CaptionBold,{className:Je.postComment__secondRow__like,"data-is-liked":L},L?"Liked":"Like")),R.createElement("div",{onClick:()=>n(o)},R.createElement(S.CaptionBold,{className:Je.postComment__secondRow__reply},"Reply")),R.createElement(Kae,{className:Je.postComment__secondRow__actionButton,onClick:()=>y(!0)})),o.reactionsCount>0&&R.createElement("div",{className:Je.postComment__secondRow__rightPane},R.createElement(S.Caption,null,ob(o.reactionsCount)),R.createElement(Jae,{className:Je.postComment__secondRow__rightPane__like}))),D>0&&!v&&R.createElement("div",{className:Je.postComment__viewReply_button,onClick:()=>C(!0)},R.createElement(K3,{className:Je.postComment__viewReply_icon}),R.createElement(S.CaptionBold,{className:Je.postComment__viewReply_text},"View ",D," ",D>1?"replies":"reply")),v&&R.createElement(gE,{community:r,referenceId:o.referenceId,referenceType:o.referenceType,parentId:o.commentId}))),R.createElement(Pr,{onClose:T,isOpen:f,mountPoint:document.getElementById("asc-uikit-post-comment"),detent:"content-height"},R.createElement(Y3,{comment:o,handleEditComment:j,handleDeleteComment:E,onCloseBottomSheet:T})))};var zt={commentAd:"gi",commentAd__container:"hi",commentAd__details:"fi",commentAd__avatar:"bi",commentAd__content:"ui",commentAd__content__advertiserName__container:"vi",commentAd__content__advertiserName:"xi",commentAd__content__text:"wi",commentAd__adCard:"yi",commentAd__adCard__imageContainer:"ki",commentAd__adCard__image:"ji",commentAd__adCard__detail:"zi",commentAd__adCard__textContainer:"Xi",commentAd__adCard__description:"Yi",commentAd__adCard__headline:"Ci",commentAd__adCard__button:"Ai",commentAd__adCard__button__text:"Mi",infoIcon__button:"Si",infoIcon:"Ei"};var Yae=o=>{var r=o,{color:e="white"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.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}))},xE=Yae;var Lc={badge:"me",badge__icon:"Fi",badge__text:"Ii",badge__child:"Ri"};var Lm=()=>R.createElement("div",{className:Lc.badge},R.createElement("div",{className:Lc.badge__child},R.createElement(xE,{className:Lc.badge__icon}),R.createElement("div",{className:Lc.badge__text},"Sponsored")));var ese=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"64",height:"64",rx:"32",fill:"#D9E5FC"}),R.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"})),Am=ese;var tse=e=>R.createElement("svg",c({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),mn=tse;var fo={drawer__content:"pe",drawer__innerContent:"Ui",drawer__placeholder:"Bi",drawer__overlay:"Di",drawer__title:"Hi",drawer__content__data:"Li",drawer__content__data__title:"Ti",drawer__content__data__text:"Vi",drawer__content__data__caption:"qi",drawer__content__data__infoIcon:"Gi",drawer__content__emptySpace:"Ji"};var t5=({isOpen:e,onOpenChange:t,ad:o})=>{var r;return R.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:n=>n.stopPropagation()},R.createElement(Drawer.Portal,null,R.createElement(Drawer.Overlay,{className:fo.drawer__overlay}),R.createElement(Drawer.Content,{className:fo.drawer__content,onTouchStart:n=>n.stopPropagation(),onTouchMove:n=>n.stopPropagation(),onTouchEnd:n=>n.stopPropagation()},R.createElement("div",{className:fo.drawer__innerContent},R.createElement("div",{className:fo.drawer__placeholder}),R.createElement(Drawer.Title,{className:fo.drawer__title},R.createElement(S.Title,null,"About this advertisement")),R.createElement("div",{className:fo.drawer__content__data},R.createElement(S.BodyBold,{className:fo.drawer__content__data__title},"Why this advertisement?"),R.createElement("div",{className:fo.drawer__content__data__text},R.createElement(mn,{className:fo.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:fo.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),R.createElement("div",{className:fo.drawer__content__data},R.createElement(S.BodyBold,{className:fo.drawer__content__data__title},"About this advertiser"),R.createElement("div",{className:fo.drawer__content__data__text},R.createElement(mn,{className:fo.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:fo.drawer__content__data__caption},"Advertiser name: ",(r=o.advertiser)==null?void 0:r.companyName))),R.createElement("div",{className:fo.drawer__content__emptySpace})))))};var IE=({ad:e,themeStyles:t,avatarUrl:o,adImageUrl:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return R.createElement("div",{className:zt.commentAd,style:t},R.createElement(F,{className:zt.infoIcon__button,onPress:()=>a(!0)},R.createElement(mn,{className:zt.infoIcon})),R.createElement("div",{className:zt.commentAd__container},R.createElement("div",{className:zt.commentAd__avatar},R.createElement(vt,{avatarUrl:o,defaultImage:R.createElement(Am,null)})),R.createElement("div",{className:zt.commentAd__details},R.createElement("div",{className:zt.commentAd__content},R.createElement(S.BodyBold,{className:zt.commentAd__content__advertiserName__container},R.createElement("div",{className:zt.commentAd__content__advertiserName},(l=e.advertiser)==null?void 0:l.name)),R.createElement(Lm,null),R.createElement("div",null,R.createElement(S.Body,{className:zt.commentAd__content__text},e.body)),R.createElement("div",{className:zt.commentAd__adCard,onClick:s},R.createElement("div",{className:zt.commentAd__adCard__imageContainer},R.createElement("img",{className:zt.commentAd__adCard__image,src:r})),R.createElement("div",{className:zt.commentAd__adCard__detail},R.createElement("div",{className:zt.commentAd__adCard__textContainer},R.createElement(S.Caption,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,zt.commentAd__adCard__description)},e.description)}),R.createElement(S.BodyBold,{className:zt.commentAd__adCard__headline},e.headline)),e.callToActionUrl?R.createElement(F,{className:zt.commentAd__adCard__button,onPress:s},R.createElement(S.CaptionBold,{className:zt.commentAd__adCard__button__text},e.callToAction)):null))))),R.createElement(t5,{ad:e,isOpen:i,onOpenChange:d=>a(d)}))};var wE=({pageId:e="*",ad:t})=>{var d,p,u,g,f,y;let o="comment_tray_component",{themeStyles:r}=te({pageId:e,componentId:o}),i=rt({fileId:(p=(d=t.advertiser)==null?void 0:d.avatar)==null?void 0:p.fileId})||((g=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:g.fileUrl)||"",s=rt({fileId:(f=t.image1_1)==null?void 0:f.fileId})||((y=t.image1_1)==null?void 0:y.fileUrl)||"";return R.createElement(IE,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:v=>{window==null||window.open(v,"_blank");}})};var o5={commentList__container:"Ki",commentList__viewAllComments__button:"Ni",commentList__container_intersection:"Oi",noCommentsContainer:"Pi"};function Dc({postId:e,level:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:PostRepository.getPost,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getPostTopic(n,t)})}var use=e=>"adId"in e,Hc=({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:d,accessibilityId:p}=te({componentId:l,pageId:o}),u=useRef(null),[g,f]=useState(null),{items:y,loadMore:v,hasMore:C,isLoading:h}=gc({fetcher:CommentRepository.getComments,params:{referenceId:e,referenceType:t,limit:n,includeDeleted:i},placement:"comment",pageSize:5,getItemId:x=>x.commentId,shouldCall:!0});return ko({node:g,options:{threshold:.8},onIntersect:()=>{C&&h===!1&&v();}}),Dc({postId:e,level:SubscriptionLevels.COMMENT,shouldSubscribe:t==="post"}),Xa({targetId:e,targetType:t,shouldSubscribe:t==="story"&&!!e}),!h&&y.length===0?R.createElement("div",{className:o5.noCommentsContainer},R.createElement(S.Body,null,"No comments yet")):R.createElement("div",{className:o5.commentList__container,style:d,ref:u,"data-qa-anchor":p},y.map(x=>use(x)?R.createElement(wE,{key:x.adId,ad:x}):R.createElement(CE,{key:x.commentId,comment:x,onClickReply:b=>r==null?void 0:r(b),componentId:l,community:a,shouldAllowInteraction:s})),h&&R.createElement(X3,{pageId:o,componentId:l,numberOfSkeletons:3}),R.createElement("div",{ref:x=>f(x),className:o5.commentList__container_intersection}))};var K8={container:"Qi",header:"Wi",roundedHeader:"Zi",content:"_i",scroller:"el",composeBarContainer:"rl",nestedBackdrop:"al",commentTrayContainer:"ol",commentListContainer:"tl",mobileSheetComposeBarContainer:"il"};var Dm=({pageId:e="*",referenceType:t,referenceId:o,community:r={},shouldAllowInteraction:n=!0,shouldAllowCreation:i=!0})=>{let a="comment_tray_component",{accessibilityId:s,themeStyles:l}=te({pageId:e,componentId:a}),[d,p]=useState(null),u=f=>{p(f);},g=()=>{p(null);};return R.createElement("div",{style:l,"data-qa-anchor":s,className:K8.commentTrayContainer},R.createElement("div",{className:K8.commentListContainer},R.createElement(Hc,{pageId:e,referenceId:o,referenceType:t,community:r,includeDeleted:!0,onClickReply:u,shouldAllowInteraction:n})),R.createElement(Sc,{referenceId:o,referenceType:t,onCancelReply:g,replyTo:d,shouldAllowCreation:i}))};var J8={doneButton:"ll",doneButton_text:"sl"};function X8(n){var i=n,{pageId:e="*",componentId:t="*",className:o}=i,r=P(i,["pageId","componentId","className"]);let a="done_button",{accessibilityId:s,config:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:a});return d?null:R.createElement(F,c({className:`${J8.doneButton} ${o||""}`,"data-qa-anchor":s},r),R.createElement(S.Body,{className:J8.doneButton_text},l.done_button_text))}var ut={hyperlinkFormContainer:"cl",form:"nl",bottomSheet:"a","react-modal-sheet-backdrop":"dl","react-modal-sheet-container":"ml","react-modal-sheet-content":"pl","react-modal-sheet-header":"gl","react-modal-sheet-drag-indicator":"hl",inputContainer:"fl",input:"ge",hasError:"bl",label:"j",required:"ul",description:"vl",errorText:"xl",characterCount:"wl",headerContainer:"yl",labelContainer:"kl",headerTitle:"jl",cancelButton:"zl",doneButton:"he",removeIcon:"Xl",removeLinkButton:"Yl",divider:"Cl",removeLinkContainer:"Al"};var PE=30,R8=({pageId:e="*",isOpen:t,isHaveHyperLink:o,onClose:r,onSubmit:n,onRemove:i})=>{var V,G,q;let a="hyper_link_config_component",{confirm:s}=Ye(),{accessibilityId:l,config:d,isExcluded:p,themeStyles:u}=te({pageId:e,componentId:a});if(p)return null;let{formatMessage:g}=useIntl(),{client:f}=De(),[y,v]=useState(!1),C="asc-story-hyperlink-form",h=z.object({url:z.string().refine(O=>{if(!O)return !0;try{let H=new URL(O);return ["http:","https:"].includes(H.protocol)}catch(H){if(O.startsWith("www."))try{let z=new URL(`https://${O}`);return ["http:","https:"].includes(z.protocol)}catch(z){return !1}return !1}},{message:g({id:"storyCreation.hyperlink.validation.error.invalidUrl"})}).refine(O=>_(void 0,null,function*(){if(!O)return !0;let H=O.startsWith("www.")?`https://${O}`:O;return yield f==null?void 0:f.validateUrls([H]).catch(()=>!1)}),{message:g({id:"storyCreation.hyperlink.validation.error.whitelisted"})}),customText:z.string().optional().refine(O=>_(void 0,null,function*(){return O?yield f==null?void 0:f.validateTexts([O]).catch(()=>!1):!0}),g({id:"storyCreation.hyperlink.validation.error.blocked"}))}),{trigger:x,watch:b,register:M,handleSubmit:I,formState:{errors:w},reset:k}=useForm({resolver:zodResolver(h)}),{url:T,customText:L}=b();useEffect(()=>{v(T!==""||L!=="");},[T,L]);let D=O=>{n(O),r();},U=()=>{k(),i(),r();},j=()=>{s({title:g({id:"storyCreation.hyperlink.removeConfirm.title"}),content:g({id:"storyCreation.hyperlink.removeConfirm.content"}),cancelText:g({id:"storyCreation.hyperlink.removeConfirm.cancel"}),okText:g({id:"storyCreation.hyperlink.removeConfirm.confirm"}),onOk:U});},E=()=>{y?s({title:g({id:"storyCreation.hyperlink.unsavedChanges.title"}),content:g({id:"storyCreation.hyperlink.unsavedChanges.content"}),cancelText:g({id:"storyCreation.hyperlink.unsavedChanges.cancel"}),okText:g({id:"storyCreation.hyperlink.unsavedChanges.confirm"}),onOk:()=>{k(),r();}}):r();};return R.createElement(Pr,{"data-qa-anchor":l,detent:"full-height",mountPoint:document.getElementById("asc-uikit-create-story"),rootId:"asc-uikit-create-story",isOpen:t,onClose:E,className:ut.bottomSheet,style:u},R.createElement("div",{className:ut.headerContainer},R.createElement(ms,{pageId:e,componentId:a,onPress:E}),R.createElement(S.Title,null,g({id:"storyCreation.hyperlink.bottomSheet.title"})),R.createElement(X8,{type:"submit",pageId:e,componentId:a,form:C})),R.createElement("div",{className:ut.divider}),R.createElement("div",{className:ut.hyperlinkFormContainer},R.createElement("form",{onSubmit:I(D),id:C,className:ut.form},R.createElement("div",{className:ut.inputContainer},R.createElement(S.Title,null,R.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-url",className:sr(ut.label,ut.required)},g({id:"storyCreation.hyperlink.form.urlLabel"}))),R.createElement("input",c({id:"asc-uikit-hyperlink-input-url",placeholder:g({id:"storyCreation.hyperlink.form.urlPlaceholder"}),className:sr(ut.input,(w==null?void 0:w.url)&&ut.hasError)},M("url",{onChange:()=>x("url")}))),(w==null?void 0:w.url)&&R.createElement("span",{className:ut.errorText},(V=w==null?void 0:w.url)==null?void 0:V.message)),R.createElement("div",{className:ut.inputContainer},R.createElement("div",{className:ut.labelContainer},R.createElement(S.Title,null,R.createElement("label",{htmlFor:"asc-uikit-hyperlink-input-link-text",className:ut.label},g({id:"storyCreation.hyperlink.form.linkTextLabel"}))),R.createElement("div",{className:ut.characterCount},((G=b("customText"))==null?void 0:G.length)||0," / ",PE)),R.createElement("input",N(c({id:"asc-uikit-hyperlink-input-link-text",placeholder:g({id:"storyCreation.hyperlink.form.linkTextPlaceholder"}),className:sr(ut.input,(w==null?void 0:w.customText)&&ut.hasError)},M("customText")),{maxLength:PE})),(w==null?void 0:w.customText)&&R.createElement("span",{className:ut.errorText},(q=w==null?void 0:w.customText)==null?void 0:q.message),R.createElement(S.Caption,null,R.createElement("label",{className:ut.description},g({id:"storyCreation.hyperlink.form.linkTextDescription"}))))),o&&R.createElement("div",{className:ut.removeLinkContainer},R.createElement(A3,{variant:"secondary",onClick:j,className:sr(ut.removeLinkButton)},R.createElement(p1,{className:ut.removeIcon}),g({id:"storyCreation.hyperlink.form.removeButton"})))))};var Pse=createContext([]),xi=()=>({config:useContext(Pse)});var Hm=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e;var i5=({reactionConfigItem:e,className:t})=>R.createElement("img",{"data-qa-anchor":"reaction_image_view",key:e.name,src:e.image,alt:e.name,className:t});var Tse=o=>{var r=o,{backgroundColor:e}=r,t=P(r,["backgroundColor"]);return R.createElement("svg",c({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.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}),R.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"}))},Fm=Tse;var Se={reactionListContainer:"Ml",tabListContainer:"fe",tabList:"Sl",tabItem:"be",reactionEmoji:"El",userList:"Fl",userItem:"Il",userDetailsContainer:"Rl",userDetailsProfile:"Ul",userDetailsReaction:"Bl",reactionItem:"Dl",reactionIcon:"Hl",reactionCustomStateContainer:"ue",loadingState:"Ll","skeleton-pulse":"ve",reactionState:"Tl",reactionState2Line:"Vl",removeBtn:"ql",infiniteScrollContainer:"Gl",reactionPanel:"Jl",avatar:"Kl"};var _E=({filteredReactions:e,removeReaction:t,hasMore:o,loadMore:r,isLoading:n,currentRef:i})=>{let{currentUserId:a}=De(),{config:s}=xi(),l=useMemo(()=>s.map(({name:d})=>d),[s]);return !i||!e?null:R.createElement("div",{className:Se.infiniteScrollContainer},R.createElement(ZY,{scrollableTarget:i,scrollThreshold:.7,hasMore:o,next:r,loader:n?R.createElement("span",{key:0},"Loading..."):null,dataLength:e.length||0,style:{display:"flex",width:"100%"},height:i.clientHeight},R.createElement("div",{className:Se.userList},e.map(d=>{var p,u,g,f;return R.createElement(Fragment,{key:d.reactionId},R.createElement("div",{className:Se.userItem},R.createElement("div",{className:Se.userDetailsContainer},R.createElement("div",{className:Se.userDetailsProfile},R.createElement("div",{className:Se.avatar},R.createElement(vt,{"data-qa-anchor":"user_avatar_view",avatarUrl:(u=(p=d.user)==null?void 0:p.avatar)==null?void 0:u.fileUrl,defaultImage:R.createElement(cs,null)})),R.createElement(S.BodyBold,{"data-qa-anchor":"user_display_name"},(g=d.user)==null?void 0:g.displayName,a===((f=d.user)==null?void 0:f.userId)&&R.createElement(R.Fragment,null,R.createElement("br",null),R.createElement("div",{onClick:()=>t(d.reactionName)},R.createElement(S.Caption,{className:Se.removeBtn},"Click to remove reaction"))))),R.createElement("div",{className:Se.userDetailsReaction},l.includes(d.reactionName)?R.createElement(i5,{reactionConfigItem:s.find(({name:y})=>y===d.reactionName),className:Se.reactionIcon}):R.createElement(Fm,{className:Se.reactionIcon})))))}))))};var Bse=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),a5=Bse;var kE=()=>R.createElement("div",{className:Se.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},R.createElement("div",{className:Se.reactionState},R.createElement(a5,null),R.createElement(S.Body,null,R.createElement(FormattedMessage,{id:"livechat.reaction.errorOnload"}))));var Ase=e=>R.createElement("svg",c({width:"33",height:"33",viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"})),NE=Ase;var BE=()=>R.createElement("div",{className:Se.reactionCustomStateContainer,"data-qa-anchor":"reaction_list"},R.createElement("div",{className:Se.reactionState},R.createElement(NE,null),R.createElement("div",{className:Se.reactionState2Line},R.createElement(S.Body,null,R.createElement(FormattedMessage,{id:"livechat.reaction.emptyState"})),R.createElement(S.Caption,null,R.createElement(FormattedMessage,{id:"livechat.reaction.emptyState.description"})))));var Dse=e=>R.createElement("svg",c({width:"375",height:"56",viewBox:"0 0 375 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{x:"16",y:"8",width:"40",height:"40",rx:"20",fill:"#292B32"}),R.createElement("rect",{x:"64",y:"24",width:"140",height:"8",rx:"4",fill:"#292B32"})),LE=Dse;var og=()=>R.createElement("div",{className:sr(Se.reactionCustomStateContainer,Se.loadingState),"data-qa-anchor":"reaction_list"},Array.from({length:8}).map((e,t)=>R.createElement(LE,{key:`loading_${t}`})));var Fse=(e,t)=>({addReaction:n=>_(void 0,null,function*(){yield ReactionRepository.addReaction(e,t,n);}),removeReaction:n=>_(void 0,null,function*(){yield ReactionRepository.removeReaction(e,t,n);})}),HE=Fse;var jse=(e,t)=>{let[o,r]=useState(0),[n,i]=useState({}),[a,s]=useState(null),l=({data:d,loading:p,error:u})=>{p||u||(r(d.reactionsCount),i(d.reactions),s(d.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}},FE=jse;var l5="unknown",Qse=(e,t,o)=>t==="All"?e:t===l5?e.filter(r=>!o.includes(r.reactionName)):e.filter(r=>r.reactionName===t.toLowerCase()),Wse=({filteredReactions:e,hasMore:t,loadMore:o,isLoading:r,removeReaction:n,error:i,currentRef:a})=>r?R.createElement(og,null):i?R.createElement(kE,null):e.length===0?r?R.createElement(og,null):R.createElement(BE,null):R.createElement(_E,{currentRef:a,hasMore:t,loadMore:o,isLoading:r,filteredReactions:e,removeReaction:n}),Om=({pageId:e="*",referenceId:t,referenceType:o})=>{let r="reaction_list",{accessibilityId:n}=te({pageId:e,componentId:r}),{reactions:i,error:a,isLoading:s,hasMore:l,loadMore:d}=FT({referenceId:t,referenceType:o,limit:25}),{reactions:p,reactionCount:u}=FE(o,t),[g,f]=useState("All"),y=useRef(null),{config:v}=xi(),{removeReaction:C}=HE(o,t),h=w=>{f(w);};if(i==null||!v)return null;let x=useMemo(()=>v.map(w=>w.name),[v]),b=useMemo(()=>Object.keys(p).filter(w=>!x.includes(w)),[p]),M=useMemo(()=>b.reduce((w,k)=>w+p[k],0),[p]),I=useMemo(()=>Qse(i,g,x),[i,g]);return R.createElement("div",{className:Se.reactionListContainer,"data-qa-anchor":`${n}_header`},R.createElement("div",{className:Se.tabListContainer},R.createElement("div",{className:Se.tabList,"data-qa-anchor":`${n}_tab`},R.createElement("div",{"data-active":g==="All",className:Se.tabItem,onClick:()=>h("All")},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},"All ",Hm(u)))),v.map(w=>{let{name:k,image:T}=w;return p[k]?R.createElement("div",{key:k,"data-active":g===k,className:Se.tabItem,onClick:()=>h(k)},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},R.createElement(i5,{className:Se.reactionItem,reactionConfigItem:w}),Hm(p[k])))):null}),b.length>0&&R.createElement("div",{key:l5,"data-active":g===l5,className:Se.tabItem,onClick:()=>h(l5)},R.createElement(S.Body,null,R.createElement("span",{className:Se.reactionEmoji},R.createElement(Fm,{className:Se.reactionIcon}),Hm(M)))))),R.createElement("div",{ref:y,className:Se.reactionPanel},R.createElement(Wse,{currentRef:y.current,hasMore:l,loadMore:d,error:a,isLoading:s,filteredReactions:I,removeReaction:C})))};var Jse=R.createContext(void 0);var xt=()=>{let e=useContext(Jse);if(!e)throw new Error("usePageBehavior must be used within a PageBehaviorProvider");return e};var ng={emptyStateRing:"Nl",errorRing:"Ol",uploadingProgressRing:"Pl","upload-progress":"xe"};var Yse=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.createElement("circle",{cx:r/2,cy:r/2,r:r/2-1,className:ng.emptyStateRing}))},Rse=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.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}))},e1e=({pageId:e,componentId:t,elementId:o,size:r})=>{let{config:n}=A({pageId:e,componentId:t,elementId:o}),i=n==null?void 0:n.progress_color;return R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:`0 0 ${r} ${r}`},R.createElement("defs",null,R.createElement("linearGradient",{id:"story-ring-gradient",x1:"35.4004",y1:"1.875",x2:"10.6504",y2:"45.75",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:i[0]}),R.createElement("stop",{offset:1,stopColor:i[1]}))),R.createElement("circle",{className:ng.uploadingProgressRing,cx:r/2,cy:r/2,r:r/2-1,strokeWidth:"2",strokeLinecap:"round",stroke:"url(#story-ring-gradient)",fill:"none"}))},Oc=s=>{var l=s,{pageId:e="*",componentId:t="*",hasUnseen:o=!1,uploading:r=!1,isErrored:n=!1,size:i=64}=l,a=P(l,["pageId","componentId","hasUnseen","uploading","isErrored","size"]);let d="story_ring",{isExcluded:p}=A({pageId:e,componentId:t,elementId:d});return p?null:n?R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:"none",viewBox:`0 0 ${i} ${i}`},a),R.createElement("circle",{cx:i/2,cy:i/2,r:i/2-1,stroke:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-alert-default"),strokeWidth:"2"})):r?R.createElement(e1e,{pageId:e,componentId:t,elementId:d,size:i}):o?R.createElement(Rse,{pageId:e,componentId:t,elementId:d,size:i}):R.createElement(Yse,{pageId:e,componentId:t,elementId:d,size:i})};var t1e="global-admin";var zE=e=>e!=null&&e.length?e.includes(t1e):!1;var o1e="global-admin",{COMMUNITY_MODERATOR:r1e,CHANNEL_MODERATOR:n1e,MODERATOR:i1e,SUPER_MODERATOR:a1e}=fc,m5=e=>{if(!(e!=null&&e.length))return !1;let t=[r1e,n1e,i1e,a1e];return e.some(o=>t.includes(o))},c5=e=>e!=null&&e.length?e.includes(o1e):!1;var us=(e,t)=>e&&t?e.hasPermission("MANAGE_COMMUNITY_STORY").community(t):!1;function d5(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 zm={errorIcon:"Ql",addStoryButton:"Wl",hiddenInput:"Zl",storyWrapper:"_l",storyTabContainer:"es",storyAvatarContainer:"rs",storyAvatar:"as",storyTitle:"os","animate-ring":"we",progressRing:"ts",progressRingStatic:"is"};var c1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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"})),UE=({pageId:e="*",componentId:t="*",communityId:o,onFileChange:r,onStoryClick:n})=>{let{isExcluded:i,accessibilityId:a,themeStyles:s}=te({pageId:e,componentId:t}),{stories:l}=ta({targetId:o,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),{community:d}=hc(o),{currentUserId:p,client:u}=De(),{user:g}=pr(p),y=zE(g==null?void 0:g.roles)||us(u,o),v=(l==null?void 0:l.length)>0,C=l.some(M=>!(M!=null&&M.isSeen)),h=l.some(M=>(M==null?void 0:M.syncState)==="syncing"),x=l.some(M=>(M==null?void 0:M.syncState)==="error"),b=()=>{Array.isArray(l)&&l.length===0||n();};return i||!v&&!y?null:R.createElement("div",{"data-qa-anchor":a,style:s,className:sr(zm.storyTabContainer)},R.createElement("div",{className:sr(zm.storyWrapper)},v&&R.createElement(Oc,{pageId:e,componentId:t,hasUnseen:C,uploading:h,isErrored:x,size:48}),R.createElement("button",{className:sr(zm.storyAvatarContainer),onClick:b},R.createElement(Or,{pageId:e,componentId:t,community:d})),y&&R.createElement(FileTrigger,{onSelect:M=>{let I=Array.from(M);r(I[0]);}},R.createElement(is,{pageId:e,componentId:t})),x&&R.createElement(c1e,{className:sr(zm.errorIcon)})),R.createElement(mw,{lines:1},R.createElement("div",{className:sr(zm.storyTitle)},"Story")))};var Uc={storyTabContainer:"ls",storyTab:"ss",storyTabImage:"cs",storyTabContent:"ns",storyTabTitle:"ds",storyTabIcons:"ye",storyTabSkeleton:"ms",storyTabSkeletonAvatar:"ps","skeleton-pulse":"z",storyTabSkeletonUsername:"gs"};var p1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.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"})),VE=p1e;var gs={container:"hs",avatarContainer:"fs",verifiedIcon:"bs",avatarBackground:"us",avatar:"vs",displayName:"xs",errorIcon:"ws"};var g1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("circle",{cx:"8",cy:"8",r:"7.25",fill:"#FA4D30",stroke:"#fff",strokeWidth:"1.5"}),R.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"})),f1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},e),R.createElement("path",{fill:"#000",fillOpacity:".2",d:"M8 0c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"}),R.createElement("path",{fill:"#000",fillOpacity:".2",d:"M8 2c2.21 0 4 1.79 4 4v1h-1V6c0-1.104-.896-2-2-2s-2 .896-2 2v1H4V6c0-2.21 1.79-4 4-4z"})),GE=({pageId:e,componentId:t,targetId:o,hasUnseen:r,onClick:n,isErrored:i})=>{let{community:a}=Mt({communityId:o}),s=rt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement("div",{className:sr(gs.container),onClick:n},R.createElement("div",{className:gs.avatarContainer},R.createElement(Oc,{pageId:e,componentId:t,hasUnseen:r,isErrored:i}),R.createElement("div",{className:gs.avatarBackground},s&&R.createElement("img",{className:gs.avatar,src:s,alt:a==null?void 0:a.displayName})),i&&R.createElement(g1e,{className:gs.errorIcon}),(a==null?void 0:a.isOfficial)&&!i&&R.createElement(VE,{className:gs.verifiedIcon})),R.createElement(S.Caption,{className:sr(gs.displayName)},!(a!=null&&a.isPublic)&&R.createElement(f1e,null),a==null?void 0:a.displayName))};var p5=e=>{let s=dt({fetcher:StoryRepository.getGlobalStoryTargets,params:e,shouldCall:!0}),{items:t,hasMore:o,loadMore:r,isLoading:n}=s,i=P(s,["items","hasMore","loadMore","isLoading"]);return c({stories:t,hasMore:o,isLoading:n,loadMoreStories:()=>{o&&!n&&r();}},i)};var C1e=10,QE=({pageId:e="*",componentId:t="*",goToViewStoryPage:o})=>{let{isExcluded:r,accessibilityId:n,themeStyles:i}=te({pageId:e,componentId:t}),{stories:a,isLoading:s,hasMore:l,loadMoreStories:d}=p5({seenState:"smart",limit:C1e}),p=useRef(null),u=useRef(null);return useEffect(()=>{if(!p.current)return;let g=new IntersectionObserver(f=>{f[0].isIntersecting&&l&&d();},{root:p.current,rootMargin:"0px",threshold:.9});return ()=>{g&&g.disconnect();}},[p==null?void 0:p.current]),r||(a==null?void 0:a.length)===0?null:R.createElement("div",{"data-qa-anchor":n,style:i,className:Uc.storyTabContainer,ref:p},s?Array.from({length:10}).map((g,f)=>R.createElement("div",{key:f,className:Uc.storyTabSkeleton},R.createElement("div",{className:Uc.storyTabSkeletonAvatar}),R.createElement("div",{className:Uc.storyTabSkeletonUsername}))):a.map(g=>R.createElement(GE,{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})),R.createElement("div",{ref:u,style:{height:"1px",width:"1px"}}))};var $m=o=>{var r=o,{pageId:e="*"}=r,t=P(r,["pageId"]);let n="story_tab_component",{AmityGlobalFeedComponentBehavior:i}=xt(),{goToViewStoryPage:a,goToDraftStoryPage:s}=Le(),{setFile:l}=fi();return (()=>{switch(t.type){case"communityFeed":return R.createElement(UE,{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 R.createElement(QE,{pageId:e,componentId:n,goToViewStoryPage:({storyTarget:p,storyTargets:u})=>{var g;(g=i==null?void 0:i.goToViewStoryPage)==null||g.call(i,{targetId:p.targetId,targetType:p.targetType,storyType:"globalFeed",targetIds:u.map(f=>f.targetId)});}});default:return null}})()};var qE={createPostMenu:"ys"};var u5={createPostButton:"ks",createPostButton__text:"js",createPostButton__icon:"zs"};var I1e=e=>R.createElement("svg",c({width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M14.0625 12.7812L15.0625 11.7812C15.2188 11.625 15.5 11.75 15.5 11.9688V16.5C15.5 17.3438 14.8125 18 14 18H3C2.15625 18 1.5 17.3438 1.5 16.5V5.5C1.5 4.6875 2.15625 4 3 4H11.5312C11.75 4 11.875 4.28125 11.7188 4.4375L10.7188 5.4375C10.6562 5.5 10.5938 5.5 10.5312 5.5H3V16.5H14V12.9688C14 12.9062 14 12.8438 14.0625 12.7812ZM18.9375 6.5L10.75 14.6875L7.90625 15C7.09375 15.0938 6.40625 14.4062 6.5 13.5938L6.8125 10.75L15 2.5625C15.7188 1.84375 16.875 1.84375 17.5938 2.5625L18.9375 3.90625C19.6562 4.625 19.6562 5.78125 18.9375 6.5ZM15.875 7.4375L14.0625 5.625L8.25 11.4375L8 13.5L10.0625 13.25L15.875 7.4375ZM17.875 4.96875L16.5312 3.625C16.4062 3.46875 16.1875 3.46875 16.0625 3.625L15.125 4.5625L16.9375 6.40625L17.9062 5.4375C18.0312 5.28125 18.0312 5.09375 17.875 4.96875Z"}));function ig({pageId:e="*",componentId:t="*",defaultClassName:o,onClick:r}){let n="create_post_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(F,{className:u5.createPostButton,onPress:()=>r==null?void 0:r(),"data-qa-anchor":i,style:p},R.createElement(ee,{defaultIcon:()=>R.createElement(I1e,{className:sr(u5.createPostButton__icon,o)}),imgIcon:()=>R.createElement("img",{src:a.image,alt:d}),configIconName:a.image,defaultIconName:s.image}),R.createElement(S.Body,{className:u5.createPostButton__text},a.text))}function g5({pageId:e}){let t="create_post_menu",{AmityCreatePostMenuComponentBehavior:o}=xt();return R.createElement("div",{className:qE.createPostMenu},R.createElement(ig,{pageId:e,componentId:t,onClick:()=>{var r;return (r=o==null?void 0:o.goToSelectPostTargetPage)==null?void 0:r.call(o)}}),R.createElement(F3,{pageId:e,componentId:t,onClick:()=>{var r;return (r=o==null?void 0:o.goToStoryTargetSelectionPage)==null?void 0:r.call(o)}}))}var $c={mediaAttachment:"Xs",mediaAttachment__swipeDown:"Ys",mediaAttachment__wrapMedia:"Cs",mediaAttachment__wrapMedia_2items:"As"};var f5={cameraButton:"Ms",cameraButton__icon:"Ss",cameraButton_input:"Es"};var T1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M19.5 19.5H4.5C4.10218 19.5 3.72064 19.342 3.43934 19.0607C3.15804 18.7794 3 18.3978 3 18V7.5C3 7.10218 3.15804 6.72064 3.43934 6.43934C3.72064 6.15804 4.10218 6 4.5 6H7.49945L8.99945 3.75H14.9995L16.4995 6H19.5C19.8978 6 20.2794 6.15804 20.5607 6.43934C20.842 6.72064 21 7.10218 21 7.5V18C21 18.3978 20.842 18.7794 20.5607 19.0607C20.2794 19.342 19.8978 19.5 19.5 19.5Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M12 15.75C13.864 15.75 15.375 14.239 15.375 12.375C15.375 10.511 13.864 9 12 9C10.136 9 8.625 10.511 8.625 12.375C8.625 14.239 10.136 15.75 12 15.75Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}));function Vc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,isVisibleImage:n,isVisibleVideo:i,onVideoFileChange:a,onImageFileChange:s}){let l="camera_button",{themeStyles:d,isExcluded:p,config:u,accessibilityId:g,uiReference:f,defaultConfig:y}=A({pageId:e,componentId:t,elementId:l});if(p)return null;let v=()=>{document.getElementById("upload").click();},C=useCallback(h=>{h.preventDefault(),h.stopPropagation();let x=h.target.files?[...h.target.files]:[],b=x.some(I=>I.type.startsWith("image/")),M=x.some(I=>I.type.startsWith("video/"));b?s==null||s(x):M&&(a==null||a(x));},[s,a]);return R.createElement(F,{style:d,"data-qa-anchor":g,className:f5.cameraButton,onPress:v},R.createElement(ee,{defaultIcon:()=>R.createElement(T1e,{className:sr(f5.cameraButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:u.icon,alt:f,className:o}),defaultIconName:y.icon,configIconName:u.icon}),u.text&&R.createElement(S.BodyBold,null,u.text),R.createElement("input",{type:"file",onChange:C,id:"upload",accept:n&&i?"image/*,video/*":n?"image/*":"video/*",className:f5.cameraButton_input}))}var y5={imageButton:"Fs",imageButton__icon:"Is",imageButton_input:"Rs"};var N1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M20.25 4.5H3.75C3.33579 4.5 3 4.83579 3 5.25V18.75C3 19.1642 3.33579 19.5 3.75 19.5H20.25C20.6642 19.5 21 19.1642 21 18.75V5.25C21 4.83579 20.6642 4.5 20.25 4.5Z",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M3 15.7499L7.71966 11.0302C7.7893 10.9606 7.87198 10.9053 7.96297 10.8676C8.05397 10.8299 8.1515 10.8105 8.24999 10.8105C8.34848 10.8105 8.44601 10.8299 8.537 10.8676C8.62799 10.9053 8.71067 10.9606 8.78032 11.0302L12.9697 15.2196C13.0393 15.2892 13.122 15.3444 13.213 15.3821C13.304 15.4198 13.4015 15.4392 13.5 15.4392C13.5985 15.4392 13.696 15.4198 13.787 15.3821C13.878 15.3444 13.9607 15.2892 14.0303 15.2196L15.9697 13.2802C16.0393 13.2106 16.122 13.1553 16.213 13.1176C16.304 13.0799 16.4015 13.0605 16.5 13.0605C16.5985 13.0605 16.696 13.0799 16.787 13.1176C16.878 13.1553 16.9607 13.2106 17.0303 13.2802L21 17.2499",stroke:e.stroke,strokeWidth:"1.3","stroke-linecap":"round","stroke-linejoin":"round"}),R.createElement("path",{d:"M14.625 10.5C15.2463 10.5 15.75 9.99632 15.75 9.375C15.75 8.75368 15.2463 8.25 14.625 8.25C14.0037 8.25 13.5 8.75368 13.5 9.375C13.5 9.99632 14.0037 10.5 14.625 10.5Z"}));function jc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,onImageFileChange:n}){let i="image_button",{themeStyles:a,isExcluded:s,config:l,accessibilityId:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});if(s)return null;let g=()=>{document.getElementById("image-upload").click();},f=y=>{y.preventDefault(),y.stopPropagation(),n==null||n(y.target.files?[...y.target.files]:[]);};return R.createElement(F,{type:"button",style:a,"data-qa-anchor":d,className:y5.imageButton,onPress:g},R.createElement(ee,{defaultIcon:()=>R.createElement(N1e,{className:sr(y5.imageButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:p,className:o}),defaultIconName:u.icon,configIconName:l.icon}),l.text&&R.createElement(S.BodyBold,null,l.text),R.createElement("input",{type:"file",onChange:f,multiple:!0,id:"image-upload",accept:"image/*",className:y5.imageButton_input}))}var h5={videoButton:"Us",videoButton__icon:"Bs",videoButton__input:"Ds"};var L1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.createElement("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e.stroke,strokeWidth:"1.3",strokeMiterlimit:"10"}),R.createElement("path",{d:"M16 12L10 8V16L16 12Z",stroke:e.stroke,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}));function Gc({pageId:e="*",componentId:t="*",imgIconClassName:o,defaultIconClassName:r,onVideoFileChange:n}){let i="video_button",{themeStyles:a,isExcluded:s,config:l,accessibilityId:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});if(s)return null;Ye();let f=()=>{document.getElementById("video-upload").click();},y=v=>{v.preventDefault(),v.stopPropagation(),n==null||n(v.target.files?[...v.target.files]:[]);};return R.createElement(F,{style:a,"data-qa-anchor":d,className:h5.videoButton,onPress:f},R.createElement(ee,{defaultIcon:()=>R.createElement(L1e,{className:sr(h5.videoButton__icon,r)}),imgIcon:()=>R.createElement("img",{src:l.icon,alt:p,className:o}),defaultIconName:u.icon,configIconName:l.icon}),l.text&&R.createElement(S.BodyBold,null,l.text),R.createElement("input",{type:"file",accept:"video/*",onChange:y,multiple:!0,id:"video-upload",className:h5.videoButton__input}))}function C5({pageId:e,isVisibleCamera:t,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}){let a="media_attachment",{themeStyles:s,accessibilityId:l,isExcluded:d}=te({pageId:e,componentId:a});return d?null:R.createElement("div",{style:s,"data-qa-anchor":l,className:$c.mediaAttachment},R.createElement("div",{className:$c.mediaAttachment__swipeDown}),R.createElement("div",{className:sr(!o||!r||!t?$c.mediaAttachment__wrapMedia_2items:$c.mediaAttachment__wrapMedia)},t&&R.createElement(Vc,{pageId:e,componentId:a,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}),o&&R.createElement(jc,{pageId:e,componentId:a,onImageFileChange:i}),r&&R.createElement(Gc,{pageId:e,componentId:a,onVideoFileChange:n})))}var sg={detailedMediaAttachment:"Hs",detailedMediaAttachment__swipeDown:"Ls"};function v5({pageId:e,isVisibleCamera:t,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}){let a="detailed_media_attachment",{themeStyles:s,accessibilityId:l,isExcluded:d}=te({pageId:e,componentId:a});return d?null:R.createElement("div",{style:s,"data-qa-anchor":l,className:sg.detailedMediaAttachment},R.createElement("div",{className:sg.detailedMediaAttachment__swipeDown}),t&&R.createElement(Vc,{pageId:e,componentId:a,isVisibleImage:o,isVisibleVideo:r,onVideoFileChange:n,onImageFileChange:i}),o&&R.createElement(jc,{pageId:e,componentId:a,onImageFileChange:i}),r&&R.createElement(Gc,{pageId:e,componentId:a,onVideoFileChange:n}))}var KE={userSearchResult:"Ts"};var fs={userItem:"Vs",userItem__leftPane:"qs",userItem__rightPane:"Gs",userItem__avatar:"Js",userItem__brandIcon:"Ks",userItem__userName:"Ns",userItem__userName__text:"Os"};var O1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e),R.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)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_482_20867",x1:"5.40039",y1:"4.79844",x2:"5.40039",y2:"23.3984",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFDB7D"}),R.createElement("stop",{offset:"1",stopColor:"#D49900"})))),JE=O1e;var Qc=({className:e})=>R.createElement(JE,{className:e});var XE=({user:e})=>{let{onClickUser:t}=Le();return R.createElement(F,{key:e.userId,className:fs.userItem,onPress:()=>t(e.userId)},R.createElement("div",{className:fs.userItem__leftPane},R.createElement(Vo,{userId:e.userId,className:fs.userItem__avatar})),R.createElement("div",{className:fs.userItem__rightPane},R.createElement("div",{className:fs.userItem__userName},R.createElement(S.BodyBold,{className:fs.userItem__userName__text},e.displayName)),e.isBrand?R.createElement(Qc,{className:fs.userItem__brandIcon}):null))};var cn={userSearchItemSkeleton:"ke",userSearchItemSkeleton__leftPane:"Ps",userSearchItemSkeleton__information:"Qs",userSearchItemSkeleton__content:"Ws",userSearchItemSkeleton__animation:"Zs","skeleton-pulse":"je",userSearchItemSkeleton__userAvatar:"_s",userSearchItemSkeleton__information__title:"ec",userSearchItemSkeleton__information__subtitle:"rc"};var YE=({pageId:e="*",componentId:t="*"})=>{let{accessibilityId:o}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,className:sr(cn.userSearchItemSkeleton,cn.userSearchItemSkeleton__animation)},R.createElement("div",{className:cn.userSearchItemSkeleton__leftPane},R.createElement("div",{className:sr(cn.userSearchItemSkeleton__userAvatar,cn.userSearchItemSkeleton__animation)})),R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information,cn.userSearchItemSkeleton__animation)},R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information__title,cn.userSearchItemSkeleton__animation)}),R.createElement("div",{className:sr(cn.userSearchItemSkeleton__information__subtitle,cn.userSearchItemSkeleton__animation)})))};var b5=({pageId:e="*",userCollection:t=[],isLoading:o,onLoadMore:r})=>{let n="user_search_result",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=te({pageId:e,componentId:n}),[u,g]=useState(null);return ko({onIntersect:()=>r(),node:u}),R.createElement("div",{className:KE.userSearchResult,style:p},t.map(f=>R.createElement(XE,{key:f.userId,user:f})),o?Array.from({length:5}).map((f,y)=>R.createElement(YE,{key:y,pageId:e,componentId:n})):null,R.createElement("div",{ref:f=>g(f)}))};var RE={communitySearchResult:"ac",communitySearchResult__communityItem:"ze",communitySearchResult__communityItem__leftPane:"oc",communitySearchResult__communityItem__rightPane:"tc",communityItem__communityName:"ic",communityItem__communityName__private:"lc",communityItem__communityCategory:"sc",communityItem__communityMemberCount:"cc"};var eB={communityDisplayName:"nc"};function ua({pageId:e="*",componentId:t="*",community:o}){var s;let r="community_display_name",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement(S.BodyBold,{className:eB.communityDisplayName,style:a,"data-qa-anchor":n},(s=o==null?void 0:o.displayName)!=null?s:"My Timeline")}var I5={communityOfficialBadge:"dc",communityOfficialBadge__iconSvg:"mc"};var W1e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),R.createElement("path",{d:"M9.58112 15.4777C10.2749 16.1767 10.9373 16.1715 11.6363 15.4777L12.4188 14.6953C12.4918 14.6223 12.5544 14.6014 12.6483 14.6014H13.7541C14.74 14.6014 15.2095 14.1319 15.2095 13.1461V12.0402C15.2095 11.9463 15.2355 11.8785 15.3034 11.8107L16.0858 11.023C16.7848 10.3293 16.7796 9.66681 16.0858 8.97305L15.3034 8.19061C15.2355 8.11758 15.2095 8.05499 15.2095 7.9611V6.85525C15.2095 5.86938 14.74 5.39991 13.7541 5.39991H12.6483C12.5544 5.39991 12.4866 5.37383 12.4188 5.30602L11.6363 4.52358C10.9373 3.82461 10.2749 3.82461 9.58112 4.5288L8.79868 5.30602C8.73087 5.37383 8.66306 5.39991 8.56917 5.39991H7.46332C6.47745 5.39991 6.00799 5.85894 6.00799 6.85525V7.9611C6.00799 8.05499 5.9819 8.1228 5.91409 8.19061L5.13165 8.97305C4.43268 9.66681 4.43789 10.3293 5.13165 11.023L5.91409 11.8107C5.9819 11.8785 6.00799 11.9463 6.00799 12.0402V13.1461C6.00799 14.1319 6.47745 14.6014 7.46332 14.6014H8.56917C8.66306 14.6014 8.72565 14.6223 8.79868 14.6953L9.58112 15.4777ZM9.74282 12.6714C9.56026 12.6714 9.4142 12.6036 9.29944 12.4836L7.63024 10.6162C7.54156 10.5223 7.49462 10.3919 7.49462 10.2615C7.49462 9.94849 7.71892 9.72419 8.04232 9.72419C8.21968 9.72419 8.35008 9.78157 8.46484 9.90676L9.72196 11.3099L12.2362 7.72115C12.3614 7.5438 12.497 7.47077 12.7057 7.47077C13.0291 7.47077 13.2586 7.69507 13.2586 7.99761C13.2586 8.10193 13.2169 8.23234 13.1386 8.34188L10.2123 12.4471C10.0923 12.6036 9.93583 12.6714 9.74282 12.6714Z"}));function k1({pageId:e="*",componentId:t="*"}){let o="community_official_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{defaultIcon:()=>R.createElement(W1e,{style:l,className:sr(I5.communityOfficialBadge,I5.communityOfficialBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>R.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:I5.communityOfficialBadge}),configIconName:n.icon,defaultIconName:i.icon})}var w5={communityPrivateBadge:"pc",communityPrivateBadge__iconSvg:"gc"};var J1e=e=>R.createElement("svg",c({width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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 S1({pageId:e="*",componentId:t="*"}){let o="community_private_badge",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{defaultIcon:()=>R.createElement(J1e,{style:l,className:sr(w5.communityPrivateBadge,w5.communityPrivateBadge__iconSvg),"data-qa-anchor":r}),imgIcon:()=>R.createElement("img",{"data-qa-anchor":r,src:n.icon,alt:s,className:w5.communityPrivateBadge}),configIconName:n.icon,defaultIconName:i.icon})}var tB={communityMembersCount:"hc"};function lg({pageId:e="*",componentId:t="*",memberCount:o}){let r="community_members_count",{accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement(S.Caption,{className:tB.communityMembersCount,style:d,"data-qa-anchor":n},`${ob(o)||0} ${o!==1?"members":"member"}`)}var ys={communityItem:"Xe",communityItem__leftPane:"fc",communityItem__rightPane:"bc",communityItem__communityName:"uc",communityItem__communityName__private:"vc",communityItem__communityCategory:"xc",communityItem__communityMemberCount:"wc"};var tle=({community:e,pageId:t,componentId:o})=>{let r=Ra(e.categoryIds),i=r.length-3;return R.createElement(R.Fragment,null,r.slice(0,3).map(a=>R.createElement(Ka,{pageId:t,componentId:o,categoryName:a.name})),i>0&&R.createElement(Ka,{pageId:t,componentId:o,categoryName:`+${i}`}))},oB=({community:e,pageId:t="*",componentId:o="*"})=>{let{onClickCommunity:r}=Le();return R.createElement(F,{key:e.communityId,className:ys.communityItem,onPress:()=>{r(e.communityId);}},R.createElement("div",{className:ys.communityItem__leftPane},R.createElement(Or,{pageId:t,componentId:o,community:e})),R.createElement("div",{className:ys.communityItem__rightPane},R.createElement("div",{className:ys.communityItem__communityName},!e.isPublic&&R.createElement("div",{className:ys.communityItem__communityName__private},R.createElement(S1,{pageId:t,componentId:o})),R.createElement(ua,{pageId:t,componentId:o,community:e}),e.isOfficial&&R.createElement(k1,{pageId:t,componentId:o})),R.createElement("div",{className:ys.communityItem__communityCategory},R.createElement(tle,{pageId:t,componentId:o,community:e})),R.createElement("div",{className:ys.communityItem__communityMemberCount},R.createElement(lg,{pageId:t,componentId:o,memberCount:e.membersCount}))))};var dn={communityItemSkeleton:"Ye",communityItemSkeleton__leftPane:"yc",communityItemSkeleton__information:"kc",communityItemSkeleton__content:"jc",communityItemSkeleton__animation:"zc","skeleton-pulse":"Ce",communityItemSkeleton__userAvatar:"Xc",communityItemSkeleton__information__title:"Yc",communityItemSkeleton__information__subtitle:"Cc"};var rB=({pageId:e="*",componentId:t="*"})=>{let{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,style:s,className:sr(dn.communityItemSkeleton,dn.communityItemSkeleton__animation)},R.createElement("div",{className:dn.communityItemSkeleton__leftPane},R.createElement("div",{className:sr(dn.communityItemSkeleton__userAvatar,dn.communityItemSkeleton__animation)})),R.createElement("div",{className:sr(dn.communityItemSkeleton__information,dn.communityItemSkeleton__animation)},R.createElement("div",{className:sr(dn.communityItemSkeleton__information__title,dn.communityItemSkeleton__animation)}),R.createElement("div",{className:sr(dn.communityItemSkeleton__information__subtitle,dn.communityItemSkeleton__animation)})))};var hs=({pageId:e="*",communityCollection:t=[],isLoading:o,onLoadMore:r})=>{let n="community_search_result",{themeStyles:i}=te({pageId:e,componentId:n}),[a,s]=useState(null);return ko({onIntersect:()=>r(),node:a}),R.createElement("div",{className:RE.communitySearchResult,style:i},t.map(l=>R.createElement(oB,{key:l.communityId,community:l,pageId:e,componentId:n})),o?Array.from({length:5}).map((l,d)=>R.createElement(rB,{key:d,pageId:e,componentId:n})):null,R.createElement("div",{ref:l=>s(l)}))};var nB={clearButton:"Ac"};function ile(e){return R.createElement("svg",c({width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M8.82715 17.3906C13.4238 17.3906 17.2119 13.5938 17.2119 9.00586C17.2119 4.40918 13.415 0.612305 8.82715 0.612305C4.23047 0.612305 0.442383 4.40918 0.442383 9.00586C0.442383 13.5938 4.23926 17.3906 8.82715 17.3906ZM5.88281 12.5479C5.54883 12.5479 5.28516 12.2842 5.28516 11.9502C5.28516 11.792 5.34668 11.6514 5.46973 11.5283L7.9834 9.01465L5.46973 6.49219C5.34668 6.37793 5.28516 6.22852 5.28516 6.07031C5.28516 5.74512 5.54883 5.49023 5.88281 5.49023C6.0498 5.49023 6.19043 5.54297 6.2959 5.66602L8.82715 8.17969L11.3584 5.65723C11.4902 5.52539 11.6221 5.47266 11.7803 5.47266C12.1055 5.47266 12.3691 5.73633 12.3691 6.06152C12.3691 6.22852 12.3164 6.36035 12.1934 6.4834L9.6709 9.01465L12.1846 11.5283C12.3076 11.6514 12.3691 11.7832 12.3691 11.9502C12.3691 12.2842 12.1055 12.5479 11.7627 12.5479C11.5957 12.5479 11.4551 12.4863 11.332 12.3721L8.82715 9.84961L6.32227 12.3721C6.19922 12.4863 6.0498 12.5479 5.88281 12.5479Z"}))}var N1=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="clear_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{"data-qa-anchor":a,className:nB.clearButton,style:u,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement(ile,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var ale=e=>R.createElement("svg",c({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.7109 14.6562C16.8672 14.8125 16.8672 15.0625 16.7109 15.1875L15.9922 15.9062C15.8672 16.0625 15.6172 16.0625 15.4609 15.9062L11.6797 12.125C11.6172 12.0312 11.5859 11.9375 11.5859 11.8438V11.4375C10.4297 12.4062 8.96094 13 7.33594 13C3.74219 13 0.835938 10.0938 0.835938 6.5C0.835938 2.9375 3.74219 0 7.33594 0C10.8984 0 13.8359 2.9375 13.8359 6.5C13.8359 8.125 13.2109 9.625 12.2422 10.75H12.6484C12.7422 10.75 12.8359 10.8125 12.9297 10.875L16.7109 14.6562ZM7.33594 11.5C10.0859 11.5 12.3359 9.28125 12.3359 6.5C12.3359 3.75 10.0859 1.5 7.33594 1.5C4.55469 1.5 2.33594 3.75 2.33594 6.5C2.33594 9.28125 4.55469 11.5 7.33594 11.5Z"}));function mg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r}){let n="search_icon",{config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:n});return s?null:R.createElement(ee,{defaultIcon:()=>R.createElement(ale,{className:o,style:d}),imgIcon:()=>R.createElement("img",{src:i.icon,alt:l,className:r,style:d}),defaultIconName:a.icon,configIconName:i.icon})}var Cs={topSearchBar:"Mc",topSearchBar__inputBar:"Sc",topSearchBar__textInput:"Ec",topSearchBar__searchIcon:"Fc",topSearchBar__searchIcon_img:"Ic",topSearchBar__clearButton:"Rc",topSearchBar__clearButton__img:"Uc"};function Wm({pageId:e="*",search:t}){let o="top_search_bar",{config:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:o}),{onBack:a}=Le(),[s,l]=useState("");return useEffect(()=>{t(s);},[s]),n?null:R.createElement("div",{className:Cs.topSearchBar,style:i},R.createElement("div",{className:Cs.topSearchBar__inputBar},R.createElement(mg,{pageId:e,componentId:o,defaultClassName:Cs.topSearchBar__searchIcon,imgClassName:Cs.topSearchBar__searchIcon_img}),R.createElement("input",{className:Cs.topSearchBar__textInput,type:"text",value:s,placeholder:r.text,onChange:d=>l(d.target.value)}),s!=""?R.createElement(N1,{pageId:e,componentId:o,defaultClassName:Cs.topSearchBar__clearButton,imgClassName:Cs.topSearchBar__clearButton__img,onPress:()=>{l("");}}):null),R.createElement(D3,{pageId:e,componentId:o,onPress:()=>a()}))}var cg={menuButton:"Bc",menuButton__button:"Dc"};var P5=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))};function Yc({pageId:e="*",componentId:t="*",onClick:o}){let r="menu_button",{isExcluded:n,accessibilityId:i,themeStyles:a,config:s,defaultConfig:l,uiReference:d}=A({pageId:e,componentId:t,elementId:r});return n?null:R.createElement(F,{onPress:o,"data-qa-anchor":i,className:cg.menuButton__button},R.createElement(ee,{defaultIcon:()=>R.createElement(P5,{className:cg.menuButton,style:a}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:d}),defaultIconName:l.icon,configIconName:s.icon}))}function dg({pageId:e="*",componentId:t="*",defaultIconClassName:o,imgIconClassName:r}){let n="share_button";A({pageId:e,componentId:t,elementId:n});return null}var dle=e=>R.createElement("svg",c({width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.13281 4.71094L1.71094 8.17969C1.59375 8.29688 1.40625 8.29688 1.3125 8.17969L0.84375 7.71094C0.726562 7.59375 0.726562 7.42969 0.84375 7.3125L3.60938 4.5L0.84375 1.71094C0.726562 1.59375 0.726562 1.40625 0.84375 1.3125L1.3125 0.84375C1.40625 0.726562 1.59375 0.726562 1.71094 0.84375L5.13281 4.3125C5.25 4.42969 5.25 4.59375 5.13281 4.71094Z"})),Rc=dle;var T5={commentButton:"Hc",commentButton__icon:"Lc",commentButton__text:"Tc"};var ule=e=>R.createElement("svg",c({width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M9 0.1875C13.6816 0.1875 17.4668 3.30859 17.4668 7.09375C17.4668 10.9121 13.6816 14 9 14C7.9043 14 6.8418 13.834 5.91211 13.5352C4.91602 14.2324 3.32227 15.0625 1.29688 15.0625C0.964844 15.0625 0.666016 14.8965 0.533203 14.5977C0.433594 14.2988 0.466797 13.9668 0.699219 13.7344C0.732422 13.7344 1.76172 12.6055 2.22656 11.3105C1.13086 10.1484 0.5 8.6875 0.5 7.09375C0.5 3.30859 4.28516 0.1875 9 0.1875ZM9 12.4062C12.7852 12.4062 15.9062 10.0488 15.9062 7.09375C15.9062 4.17188 12.7852 1.78125 9 1.78125C5.18164 1.78125 2.09375 4.17188 2.09375 7.09375C2.09375 8.52148 2.79102 9.58398 3.38867 10.2148L4.08594 10.9453L3.7207 11.875C3.55469 12.3398 3.32227 12.8047 3.05664 13.2031C3.85352 12.9375 4.51758 12.5723 4.98242 12.2402L5.61328 11.7754L6.37695 12.0078C7.20703 12.2734 8.10352 12.4062 9 12.4062Z"}));function pg({pageId:e="*",componentId:t="*",commentsCount:o,defaultIconClassName:r,imgIconClassName:n,onPress:i=()=>{}}){let a="comment_button",{accessibilityId:s,config:l,defaultConfig:d,isExcluded:p,uiReference:u}=A({pageId:e,componentId:t,elementId:a});return p?null:R.createElement(F,{onPress:i},R.createElement(ee,{"data-qa-anchor":s,defaultIcon:()=>R.createElement("div",{className:sr(T5.commentButton)},R.createElement(ule,{className:sr(T5.commentButton__icon,r)}),R.createElement(S.BodyBold,{className:T5.commentButton__text},typeof o=="number"?o:l.text)),imgIcon:()=>R.createElement("img",{src:l.icon,alt:u,className:n}),defaultIconName:d.icon,configIconName:l.icon}))}var yle=createContext({drawerData:null,setDrawerData:()=>{},removeDrawerData:()=>{}});var qm=()=>{let{setDrawerData:e,removeDrawerData:t}=useContext(yle);return {setDrawerData:e,removeDrawerData:t}};var Ce={postContent:"Vc",postContent__bar:"qc",postContent__bar__userAvatar:"Gc",postContent__bar__detail:"Jc",postContent__bar__information__subtitle:"Kc",postContent__bar__information__subtitle__moderator:"Nc",postContent__bar__information__subtitle__brand:"Oc",postContent__bar__information__subtitle__separator:"Pc",postContent__bar__actionButton:"Qc",postContent__content_and_reactions:"Wc",postContent__content:"Zc",postContent__divider:"_c",postContent__reactionBar:"en",postContent__reactionBar__leftPane:"rn",postContent__reactionBar__rightPane:"an",postContent__reactionBar__leftPane__icon:"on",postContent__reactionBar__leftPane__iconImg:"tn",postTitle:"in",postTitle__text:"ln",postTitle__icon:"sn",postTitle__user__container:"cn",postTitle__brandIcon:"nn",postContent__comment:"dn",postContent__reactions_and_comments:"mn",postContent__reactionsBar:"pn",postContent__commentsCount:"gn",postContent__reactionsBar__reactions:"hn",postContent__reactionsBar__reactions__icon:"e",postContent__reactionsBar__reactions__count:"fn",postContent__bar__information__editedTag:"bn",button:"p",popover:"X","fade-in":"Ae","zoom-in":"Me","fade-out":"Se","zoom-out":"Ee",menu:"un",menuItem:"Fe",separator:"vn",postContent__notMember:"xn",postContent__wrapRightMenu:"wn"};var Cle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{clipPath:"url(#clip0_1709_7904)"},R.createElement("path",{d:"M16 32.5C24.8366 32.5 32 25.3366 32 16.5C32 7.66344 24.8366 0.5 16 0.5C7.16344 0.5 0 7.66344 0 16.5C0 25.3366 7.16344 32.5 16 32.5Z",fill:"#FFD54F"}),R.createElement("path",{d:"M9.33317 15.1667C10.8059 15.1667 11.9998 13.9728 11.9998 12.5C11.9998 11.0273 10.8059 9.83337 9.33317 9.83337C7.86041 9.83337 6.6665 11.0273 6.6665 12.5C6.6665 13.9728 7.86041 15.1667 9.33317 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M22.6667 15.1667C24.1394 15.1667 25.3333 13.9728 25.3333 12.5C25.3333 11.0273 24.1394 9.83337 22.6667 9.83337C21.1939 9.83337 20 11.0273 20 12.5C20 13.9728 21.1939 15.1667 22.6667 15.1667Z",fill:"#6D4C41"}),R.createElement("path",{d:"M21.0248 27.3372C20.674 27.3372 20.3232 27.2038 20.0564 26.9352C17.8894 24.7682 14.1108 24.7682 11.9456 26.9352C11.4103 27.4705 10.5423 27.4705 10.007 26.9352C9.47163 26.4016 9.47163 25.5319 10.007 24.9966C11.6076 23.396 13.7362 22.5153 16.0001 22.5153C18.264 22.5153 20.3926 23.396 21.9932 24.9984C22.5286 25.5337 22.5286 26.4016 21.9932 26.937C21.7264 27.2038 21.3756 27.3372 21.0248 27.3372Z",fill:"#6D4C41"}),R.createElement("path",{d:"M24.8228 16.5987C24.4495 16.0587 23.5508 16.0587 23.1775 16.5987C22.6228 17.4014 21.3335 19.3881 21.3335 20.5001C21.3335 21.9707 22.5295 23.1667 24.0002 23.1667C25.4708 23.1667 26.6668 21.9707 26.6668 20.5001C26.6668 19.3881 25.3775 17.4014 24.8228 16.5987Z",fill:"#00BCD4"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_7904"},R.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0 0.5)"}))))},lB=Cle;var vle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions",clipPath:"url(#clip0_1709_1751)"},R.createElement("path",{id:"Vector",d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#FFD54F"}),R.createElement("path",{id:"Vector_2",d:"M27.2933 19.9601C26.9867 20.9334 26.5867 21.8267 26.0667 22.6667H5.93332C5.41332 21.8267 5.01332 20.9334 4.70665 19.9601C4.61332 19.6534 4.66665 19.3334 4.86665 19.0801C5.05332 18.8134 5.34665 18.6667 5.66665 18.6667H26.3333C26.6533 18.6667 26.9467 18.8134 27.1333 19.0801C27.3333 19.3334 27.3867 19.6534 27.2933 19.9601Z",fill:"white"}),R.createElement("path",{id:"Vector_3",d:"M26.0664 22.6667C23.9598 26.1201 20.1864 28.2934 15.9998 28.2934C11.8131 28.2934 8.03977 26.1201 5.93311 22.6667H26.0664Z",fill:"#E53935"}),R.createElement("path",{id:"Vector_4",d:"M12.3332 13.6668C11.7812 13.6668 11.3332 13.2188 11.3332 12.6668C11.3332 11.9322 10.7358 11.3335 9.99984 11.3335C9.26384 11.3335 8.6665 11.9322 8.6665 12.6668C8.6665 13.2188 8.2185 13.6668 7.6665 13.6668C7.1145 13.6668 6.6665 13.2188 6.6665 12.6668C6.6665 10.8295 8.16117 9.3335 9.99984 9.3335C11.8385 9.3335 13.3332 10.8295 13.3332 12.6668C13.3332 13.2188 12.8852 13.6668 12.3332 13.6668Z",fill:"#6D4C41"}),R.createElement("path",{id:"Vector_5",d:"M24.3332 13.6668C23.7812 13.6668 23.3332 13.2188 23.3332 12.6668C23.3332 11.9322 22.7358 11.3335 21.9998 11.3335C21.2638 11.3335 20.6665 11.9322 20.6665 12.6668C20.6665 13.2188 20.2185 13.6668 19.6665 13.6668C19.1145 13.6668 18.6665 13.2188 18.6665 12.6668C18.6665 10.8295 20.1612 9.3335 21.9998 9.3335C23.8385 9.3335 25.3332 10.8295 25.3332 12.6668C25.3332 13.2188 24.8852 13.6668 24.3332 13.6668Z",fill:"#6D4C41"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1709_1751"},R.createElement("rect",{width:"32",height:"32",fill:"white"}))))},mB=vle;var xle=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16.5",r:"16",fill:"url(#paint0_linear_1709_7888)"}),R.createElement("g",{clipPath:"url(#clip0_1709_7888)"},R.createElement("path",{d:"M21.8752 10.2903C21.3417 9.70788 20.5123 8.92173 20.1595 10.6968C20.0395 11.3004 19.7591 11.7656 19.5189 12.1402C19.2599 10.8296 18.4808 9.47308 17.7467 8.55843C17.472 8.21623 16.4973 6.85588 16.3101 4.58008C16.2821 4.24043 15.8787 4.08093 15.6263 4.31003C13.2147 6.49923 11.891 9.51013 11.8419 12.8998C11.8419 12.8998 10.8377 12.0533 10.2921 10.4786C10.1452 10.0546 9.57671 9.97368 9.33006 10.3486C9.28271 10.4206 9.23881 10.4927 9.19921 10.5627C7.33856 13.8527 6.44351 17.848 7.27096 21.565C8.65446 27.7898 17.8062 29.5301 22.6511 25.6177C27.3914 21.7899 25.8846 14.6654 21.8752 10.2903Z",fill:"#ED694A"}),R.createElement("path",{d:"M20.4125 14.8409C20.0185 14.4107 19.4058 13.83 19.1452 15.1411C19.0566 15.5869 18.8495 15.9306 18.6721 16.2073C18.4809 15.2392 17.9054 14.2372 17.3632 13.5617C17.1603 13.3089 16.4404 12.3042 16.302 10.6231C16.2814 10.3722 15.9834 10.2545 15.797 10.4237C14.0158 12.0406 13.038 14.2646 13.0018 16.7682C13.0018 16.7682 12.26 16.143 11.8571 14.9799C11.7486 14.6667 11.3287 14.607 11.1465 14.8839C11.1116 14.9371 11.0791 14.9904 11.0499 15.0421C9.67554 17.4721 9.01444 20.4231 9.62559 23.1686C10.6475 27.7664 17.4071 29.0518 20.9857 26.162C24.4869 23.3347 23.3739 18.0725 20.4125 14.8409Z",fill:"#F4A32C"}),R.createElement("path",{d:"M19.077 18.9949C18.8103 18.7037 18.3955 18.3106 18.2191 19.1982C18.1592 19.5 18.0189 19.7326 17.8988 19.9199C17.7693 19.2645 17.3798 18.5863 17.0127 18.129C16.8754 17.9579 16.3881 17.2777 16.2944 16.1398C16.2804 15.9699 16.0787 15.8902 15.9525 16.0048C14.7467 17.0994 14.0849 18.6049 14.0603 20.2996C14.0603 20.2996 13.5582 19.8764 13.2855 19.0891C13.212 18.8771 12.9278 18.8366 12.8045 19.0241C12.7808 19.06 12.7589 19.0961 12.739 19.1311C11.8087 20.7761 11.3612 22.7737 11.7749 24.6323C12.4666 27.7447 17.0425 28.6149 19.4649 26.6586C20.2945 25.9887 20.8088 25.0448 20.9131 24.0006C21.0706 22.4191 20.4619 20.5062 19.077 18.9949Z",fill:"#F4D44E"}),R.createElement("path",{d:"M17.838 22.85C17.6894 22.6878 17.4583 22.4688 17.36 22.9632C17.3266 23.1314 17.2485 23.261 17.1816 23.3653C17.1094 23.0002 16.8924 22.6223 16.6879 22.3676C16.6114 22.2722 16.3399 21.8933 16.2877 21.2593C16.2799 21.1647 16.1675 21.1203 16.0972 21.1841C15.4255 21.7939 15.0567 22.6327 15.043 23.5769C15.043 23.5769 14.7633 23.3411 14.6113 22.9024C14.5704 22.7843 14.412 22.7617 14.3434 22.8662C14.3302 22.8863 14.318 22.9064 14.307 22.9259C13.7887 23.8424 13.5393 24.9553 13.7698 25.9907C14.2947 28.3523 18.5971 28.2807 18.861 25.6388C18.9486 24.7577 18.6095 23.6919 17.838 22.85Z",fill:"#EAE9E8"}),R.createElement("path",{d:"M14.7688 26.4597C14.5383 25.5334 14.7876 24.5379 15.3059 23.7181C15.3169 23.7006 15.3292 23.6827 15.3423 23.6647C15.411 23.5713 15.5694 23.5914 15.6103 23.6971C15.7622 24.0895 16.042 24.3004 16.042 24.3004C16.0532 23.6064 16.3046 22.9764 16.7664 22.4711C16.6631 22.3281 16.3472 21.9833 16.2877 21.2597C16.2799 21.165 16.1675 21.1207 16.0972 21.1844C15.4255 21.7943 15.0567 22.633 15.043 23.5772C15.043 23.5772 14.7633 23.3414 14.6113 22.9028C14.5704 22.7847 14.412 22.7621 14.3434 22.8666C14.3302 22.8867 14.318 22.9068 14.307 22.9263C13.7887 23.8427 13.5393 24.9557 13.7698 25.9911C13.9831 26.9509 14.8594 27.5277 15.8282 27.6669C15.3056 27.4102 14.904 27.0038 14.7688 26.4597Z",fill:"#F7E7A1"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_7888",x1:"7.2",y1:"7.7",x2:"24.8",y2:"29.3",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#FFF09F"}),R.createElement("stop",{offset:"1",stopColor:"#FCCF5A"})),R.createElement("clipPath",{id:"clip0_1709_7888"},R.createElement("rect",{width:"25.6",height:"25.6",fill:"white",transform:"translate(3.2002 2.09998)"}))))},cB=xle;var ble=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Reactions"},R.createElement("circle",{id:"Ellipse 2",cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1738)"}),R.createElement("path",{id:"circle",d:"M22.4466 10.5836C20.7296 9.07415 18.2009 9.36319 16.6088 11.0332L16.0156 11.6755L15.3912 11.0332C13.8303 9.36319 11.2704 9.07415 9.55338 10.5836C7.58661 12.3179 7.49295 15.401 9.24119 17.2637L15.2976 23.687C15.6722 24.1045 16.3278 24.1045 16.7024 23.687L22.7588 17.2637C24.507 15.401 24.4134 12.3179 22.4466 10.5836Z",fill:"white"})),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1738",x1:"7.2",y1:"7.2",x2:"28",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#EE5C91"}),R.createElement("stop",{offset:"0.833333",stopColor:"#E02222"}))))},dB=ble;var Ile=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"url(#paint0_linear_1709_1733)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_1709_1733",x1:"12",y1:"3.2",x2:"26.4",y2:"39.2",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#63A1FF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"}))))},pB=Ile;var ug=R.forwardRef((i,n)=>{var a=i,{src:e,mimeType:t,mediaFit:o}=a,r=P(a,["src","mimeType","mediaFit"]);return R.createElement("video",N(c({controls:!0,controlsList:"nodownload"},r),{ref:n,"data-qa-anchor":"video-preview"}),R.createElement("source",{src:e,type:t}),R.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 ga={linkPreviewSkeleton:"yn",linkPreviewSkeleton__bottom:"kn",linkPreviewSkeleton__bar1:"jn",linkPreviewSkeleton__bar2:"zn",linkPreviewSkeleton__image:"Xn",linkPreviewSkeleton__animation:"Yn","skeleton-pulse":"Ie"};function uB(){return R.createElement("div",{className:ga.linkPreviewSkeleton},R.createElement("div",{className:sr(ga.linkPreviewSkeleton__image,ga.linkPreviewSkeleton__animation)}),R.createElement("div",{className:ga.linkPreviewSkeleton__bottom},R.createElement("div",{className:sr(ga.linkPreviewSkeleton__bar1,ga.linkPreviewSkeleton__animation)}),R.createElement("div",{className:sr(ga.linkPreviewSkeleton__bar2,ga.linkPreviewSkeleton__animation)})))}var Mi={linkPreview:"Cn",linkPreview__top:"An",linkPreview__bottom:"Mn",linkPreview__object:"Sn",linkPreview__unableToPreview:"En",linkPreview__unableToPreview__icon:"Fn"};var _le=e=>R.createElement("svg",c({width:"36",height:"27",viewBox:"0 0 36 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M32.625 0C34.4531 0 36 1.54688 36 3.375V23.625C36 25.5234 34.4531 27 32.625 27H3.375C1.47656 27 0 25.5234 0 23.625V3.375C0 1.54688 1.47656 0 3.375 0H32.625ZM32.2031 23.625C32.4141 23.625 32.625 23.4844 32.625 23.2031V3.79688C32.625 3.58594 32.4141 3.375 32.2031 3.375H3.79688C3.51562 3.375 3.375 3.58594 3.375 3.79688V23.2031C3.375 23.4844 3.51562 23.625 3.79688 23.625H32.2031ZM9 6.1875C10.5469 6.1875 11.8125 7.45312 11.8125 9C11.8125 10.6172 10.5469 11.8125 9 11.8125C7.38281 11.8125 6.1875 10.6172 6.1875 9C6.1875 7.45312 7.38281 6.1875 9 6.1875ZM6.75 20.25V16.875L9.49219 14.1328C9.84375 13.7812 10.3359 13.7812 10.6875 14.1328L13.5 16.875L21.8672 8.50781C22.2188 8.15625 22.7109 8.15625 23.0625 8.50781L29.25 14.625V20.25H6.75Z"})),fg=()=>R.createElement("div",{className:Mi.linkPreview__unableToPreview},R.createElement(_le,{className:Mi.linkPreview__unableToPreview__icon})),Tle=({url:e})=>{let{client:t}=De();return useQuery({enabled:!!t,queryKey:["asc-uikit","previewLink",e],queryFn:()=>_(void 0,null,function*(){let o=yield t==null?void 0:t.http.get("/api/v1/link-preview",{params:{url:e}});return o==null?void 0:o.data}),retry:!1})};function gB({url:e}){var n,i,a;let t=new URL(e),o=Tle({url:e});if(o.isLoading)return R.createElement(uB,null);let r=()=>{window.open(e,"_blank");};return o.isError?R.createElement(F,{onPress:r,className:Mi.linkPreview},R.createElement("div",{className:Mi.linkPreview__top},R.createElement(fg,null)),R.createElement("div",{className:Mi.linkPreview__bottom},R.createElement(S.Caption,null,t.hostname))):R.createElement(F,{onPress:r,className:Mi.linkPreview},R.createElement("div",{className:Mi.linkPreview__top},(n=o.data)!=null&&n.image?R.createElement("object",{data:o.data.image,className:Mi.linkPreview__object},R.createElement(fg,null)):(i=o.data)!=null&&i.video?R.createElement(ug,{src:o.data.video}):R.createElement(fg,null)),R.createElement("div",{className:Mi.linkPreview__bottom},R.createElement(S.Caption,null,t.hostname),R.createElement(S.BodyBold,null,((a=o.data)==null?void 0:a.title)||"")))}var yg=({text:e="",mentionees:t=[],mentioned:o})=>{if(!e)return null;let r=Fv.find(e).filter(n=>n.type==="url");return R.createElement(R.Fragment,null,R.createElement(Nm,{data:{text:e},mentionees:t,metadata:{mentioned:o}}),r&&r.length>0&&R.createElement(gB,{url:r[0].href}))};var td={imageContent:"o",imageContent__img:"Bn",imageContent__imgContainer:"t",imageContent__imgCover:"Dn"};var Nle=e=>{let r=Pn({fetcher:PostRepository.getPost,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({post:t},o)},Pi=Nle;var Ele=({fileId:e})=>{let t=rt({fileId:e});return R.createElement("img",{loading:"lazy",className:td.imageContent__img,src:t,alt:e})},Ble=({postId:e,index:t,imageLeftCount:o,postAmount:r,onImageClick:n})=>{let{post:i,isLoading:a}=Pi(e);return a?null:R.createElement(F,{key:i.postId,className:td.imageContent__imgContainer,onPress:()=>n()},R.createElement(Ele,{fileId:i.data.fileId}),o>0&&t===r-1&&R.createElement(S.Heading,{className:td.imageContent__imgCover},"+ ",o))},hg=({pageId:e="*",componentId:t="*",elementId:o="*",post:r,onImageClick:n=()=>{}})=>{var p;let{themeStyles:i}=A({pageId:e,componentId:t,elementId:o}),a=r.children.slice(0,4),s=Math.max(0,r.children.length-4),{post:l,isLoading:d}=Pi((p=r.children)==null?void 0:p[0]);return d||(l==null?void 0:l.dataType)!=="image"?null:R.createElement("div",{className:td.imageContent,style:i,"data-images-amount":Math.min(r.children.length,4)},a.map((u,g)=>R.createElement(Ble,{key:u,postId:u,index:g,imageLeftCount:s,postAmount:r.children.length,onImageClick:()=>n(g)})))};var fa={videoContent:"i",videoContent__video:"Hn",videoContent__videoContainer:"l",videoContent__videoCover:"Ln",videoContent__playButtonCover:"Tn",videoContent__playButton:"Vn",videoContent__playButton__svg:"qn"};var Ale=e=>R.createElement("svg",c({width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("g",{id:"Icon ",clipPath:"url(#clip0_1936_14348)"},R.createElement("path",{id:"Vector",d:"M8.95117 5V19L19.9512 12L8.95117 5Z"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0_1936_14348"},R.createElement("rect",{width:"24",height:"24",transform:"translate(0.951172)"})))),Dle=({fileId:e})=>{let t=rt({fileId:e});return R.createElement("img",{className:fa.videoContent__video,src:t,alt:e})},Hle=({postId:e,postAmount:t,videoLeftCount:o,index:r,onVideoClick:n})=>{let{post:i,isLoading:a}=Pi(e);return a?null:R.createElement(F,{className:fa.videoContent__videoContainer,"data-videos-amount":Math.min(t,4),onPress:()=>n()},R.createElement(Dle,{fileId:i.data.thumbnailFileId}),o>0&&r===t-1&&R.createElement(S.Heading,{className:fa.videoContent__videoCover},"+ ",o),o===0||r<t-1?R.createElement("div",{className:fa.videoContent__playButtonCover},R.createElement("div",{className:fa.videoContent__playButton,onClick:()=>n()},R.createElement(Ale,{className:fa.videoContent__playButton__svg}))):null)},Cg=({pageId:e="*",componentId:t="*",elementId:o="*",post:r,onVideoClick:n})=>{let{themeStyles:i}=A({pageId:e,componentId:t,elementId:o}),a=r.children.slice(0,4),{post:s}=Pi(r.children[0]),l=Math.max(0,r.children.length-4);return (s==null?void 0:s.dataType)!=="video"?null:R.createElement("div",{className:fa.videoContent,style:i},R.createElement("div",{className:fa.videoContent,style:i,"data-videos-amount":Math.min(r.children.length,4)},a.map((d,p)=>R.createElement(Hle,{key:d,index:p,postId:d,videoLeftCount:l,postAmount:r.children.length,onVideoClick:()=>n(p)}))))};var $r={modal:"Gn",modalContent:"Jn",closeButton:"Kn",fullImage:"Nn",nextButton:"On",prevButton:"Pn",overlayPanel:"Qn",overlayPanel__prev:"Re",overlayPanel__next:"Ue",overlayPanel__prevButton:"Be",overlayPanel__nextButton:"Wn",overlayPanel__middle:"Zn",imageViewer__clearButton:"_n",imageViewer__clearButton__img:"ed"};var yB=e=>R.createElement("svg",c({width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M5.13281 4.71094L1.71094 8.17969C1.59375 8.29688 1.40625 8.29688 1.3125 8.17969L0.84375 7.71094C0.726562 7.59375 0.726562 7.42969 0.84375 7.3125L3.60938 4.5L0.84375 1.71094C0.726562 1.59375 0.726562 1.40625 0.84375 1.3125L1.3125 0.84375C1.40625 0.726562 1.59375 0.726562 1.71094 0.84375L5.13281 4.3125C5.25 4.42969 5.25 4.59375 5.13281 4.71094Z"}));function hB({pageId:e="*",componentId:t="*",elementId:o="*",post:r,initialImageIndex:n,onClose:i}){var h,x;let{themeStyles:a}=A({pageId:e,componentId:t,elementId:o}),[s,l]=useState(n),p=Va((r==null?void 0:r.children)||[]).filter(b=>b.dataType==="image"),u=p[s],g=se({fileId:(h=u==null?void 0:u.data)==null?void 0:h.fileId}),f=s<p.length-1,y=s>0,v=()=>{f&&l(b=>b+1);},C=()=>{y&&l(b=>b-1);};return R.createElement("div",{style:a},R.createElement("div",{className:$r.modal,onClick:i},R.createElement("div",{className:$r.modalContent,onClick:b=>b.stopPropagation()},R.createElement("img",{src:g,alt:((x=u==null?void 0:u.data)==null?void 0:x.fileId)||"",className:$r.fullImage}),R.createElement("div",{className:$r.overlayPanel},y&&R.createElement("div",{className:$r.overlayPanel__prev,onClick:C},R.createElement(yB,{className:$r.overlayPanel__prevButton})),R.createElement("div",{className:$r.overlayPanel__middle}),f&&R.createElement("div",{className:$r.overlayPanel__next,onClick:v},R.createElement(yB,{className:$r.overlayPanel__nextButton}))),R.createElement("span",{className:$r.closeButton},R.createElement(N1,{pageId:e,componentId:t,defaultClassName:$r.imageViewer__clearButton,imgClassName:$r.imageViewer__clearButton__img,onPress:i})))))}var Vr={modal:"rd",modalContent:"ad",closeButton:"od",fullImage:"td",nextButton:"id",prevButton:"ld",overlayPanel:"sd",overlayPanel__prev:"De",overlayPanel__next:"He",overlayPanel__prevButton:"Le",overlayPanel__nextButton:"cd",overlayPanel__middle:"nd",videoViewer__clearButton:"dd",videoViewer__clearButton__img:"md"};var Gle=memo(({videoPost:e})=>{let t=useMemo(()=>(e==null?void 0:e.data.videoFileId.high)||(e==null?void 0:e.data.videoFileId.medium)||(e==null?void 0:e.data.videoFileId.low)||(e==null?void 0:e.data.videoFileId.original)||void 0,[e]),o=At(t),r=At(e==null?void 0:e.data.thumbnailFileId),n=useRef(null),i=useMemo(()=>{if(o==null)return null;if(o.status===_0.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?R.createElement(R.Fragment,null):R.createElement("video",{controls:!0,controlsList:"nodownload",autoPlay:!0,className:Vr.fullImage,ref:n,poster:r==null?void 0:r.fileUrl},R.createElement("source",{src:i,type:"video/mp4"}),R.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)."))});function vB({pageId:e="*",componentId:t="*",elementId:o="*",post:r,initialVideoIndex:n,onClose:i}){let{themeStyles:a}=A({pageId:e,componentId:t,elementId:o}),[s,l]=useState(n),p=Va((r==null?void 0:r.children)||[]).filter(C=>C.dataType==="video"),u=p[s],g=s<p.length-1,f=s>0,y=()=>{g&&l(C=>C+1);},v=()=>{f&&l(C=>C-1);};return R.createElement("div",{style:a},R.createElement("div",{className:Vr.modal,onClick:i},R.createElement("div",{className:Vr.modalContent,onClick:C=>C.stopPropagation()},R.createElement(Gle,{videoPost:u}),R.createElement("div",{className:Vr.overlayPanel},f&&R.createElement("div",{className:Vr.overlayPanel__prev,onClick:v},R.createElement(Rc,{className:Vr.overlayPanel__prevButton})),R.createElement("div",{className:Vr.overlayPanel__middle}),g&&R.createElement("div",{className:Vr.overlayPanel__next,onClick:y},R.createElement(Rc,{className:Vr.overlayPanel__nextButton}))),R.createElement("span",{className:Vr.closeButton},R.createElement(N1,{pageId:e,componentId:t,defaultClassName:Vr.videoViewer__clearButton,imgClassName:Vr.videoViewer__clearButton__img,onPress:i})))))}var bB=({post:e,community:t})=>{let{currentUserId:o}=De(),r=useMemo(()=>e.targetType==="community"&&e.targetId===(t==null?void 0:t.communityId),[e.targetType,t==null?void 0:t.communityId]),{moderators:n}=im({communityId:t==null?void 0:t.communityId,shouldCall:r}),i=useMemo(()=>r?n.some(s=>s.userId===o):!1,[n,r,o]),a=e.postedUserId===o;return {isCommunityModerator:i,isOwner:a}};var Un={postMenu:"pd",postMenu__item:"g",postMenu__editPost__text:"gd",postMenu__editPost__icon:"hd",postMenu__reportPost__text:"fd",postMenu__reportPost__icon:"bd",postMenu__deletePost__text:"ud",postMenu__deletePost__icon:"vd"};var wB=({post:e,isFlaggable:t,onReportSuccess:o,onReportError:r,onUnreportSuccess:n,onUnreportError:i})=>{let a=useQueryClient(),s=(e==null?void 0:e.postId)||void 0,{data:l,isLoading:d}=useQuery({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s],queryFn:()=>PostRepository.isPostFlaggedByMe(s),enabled:s!=null&&t}),{mutateAsync:p}=useMutation({mutationFn:()=>_(void 0,null,function*(){return PostRepository.flagPost(e.postId)}),onMutate:()=>_(void 0,null,function*(){yield a.cancelQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),a.setQueryData(["asc-uikit","PostRepository","isPostFlaggedByMe",s],()=>!0);}),onSuccess:()=>{o==null||o();},onError:(g,f,y)=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),r==null||r(g);},onSettled:()=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]});}}),{mutateAsync:u}=useMutation({mutationFn:()=>_(void 0,null,function*(){return PostRepository.unflagPost(e.postId)}),onMutate:()=>_(void 0,null,function*(){yield a.cancelQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),a.setQueryData(["asc-uikit","PostRepository","isPostFlaggedByMe",s],()=>!1);}),onSuccess:()=>{n==null||n();},onError:(g,f,y)=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]}),i==null||i(g);},onSettled:()=>{a.invalidateQueries({queryKey:["asc-uikit","PostRepository","isPostFlaggedByMe",s]});}});return {isLoading:d,isFlaggedByMe:l||!1,mutateReportPost:p,mutateUnReportPost:u}};var $n={createPost:"xd",createPost__topBar:"wd",createPost__status:"yd",createPost_infoIcon:"kd",createPost__notiWrap:"Te",createPost__formMediaAttachment:"Ve",drawer__content:"jd",mentionTextInput_item:"qe",drawerContentContainer:"Y"};var Xle=createContext({itemWithAds:[],isLoading:!1,prependItem:()=>{},removeItem:()=>{},updateItem:()=>{},loadMore:()=>{},hasMore:!1,loadMoreHasBeenCalled:!1,fetch:()=>{},refetch:()=>{},scrollPosition:0,onScroll:()=>{}}),bs=()=>{let e=useContext(Xle);if(!e)throw new Error("useGlobalFeedContext must be used within a GlobalFeedProvider");return e};var MB=()=>/Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var PB=e=>new Promise((t,o)=>{let r=document.createElement("video"),n=document.createElement("canvas"),i=n.getContext("2d");r.src=URL.createObjectURL(e);let a=()=>{r.currentTime=10;},s=()=>{try{n.width=r.videoWidth,n.height=r.videoHeight,i==null||i.drawImage(r,0,0,n.width,n.height);let d=n.toDataURL("image/png");t(d);}catch(d){o(d);}finally{r.removeEventListener("canplay",a),r.removeEventListener("seeked",s),r.removeEventListener("error",l),URL.revokeObjectURL(r.src);}},l=d=>{o(new Error(`Error loading video: ${d}`));};r.addEventListener("canplay",a),r.addEventListener("seeked",s),r.addEventListener("error",l),r.load();});var _B={createNewPostButton:"Ge"};function xg({pageId:e="*",componentId:t="*",isValid:o,onSubmit:r}){let n="create_new_post_button",{config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:n});return a?null:R.createElement("button",{onSubmit:r,style:s,disabled:!o,className:_B.createNewPostButton,type:"submit"},i.text)}var B1={thumbnail__container:"h",thumbnail__wrapper:"Je",thumbnail:"zd",closeIcon:"Xd",icon__status:"Yd"};var tme=Sa`
|
|
4722
4723
|
from {
|
|
4723
4724
|
transform: rotate(0deg);
|
|
4724
4725
|
}
|
|
@@ -4727,9 +4728,9 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4727
4728
|
}
|
|
4728
4729
|
`,TB=m.svg`
|
|
4729
4730
|
animation: ${tme} 2s linear infinite;
|
|
4730
|
-
`;var ya=e=>R.createElement(TB,c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),R.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),R.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"}));function ime(e){return e.fileId!==void 0}function od({files:e=[],uploadedFiles:t=[],onChange:o=i=>{},onLoadingChange:r=i=>{},onError:n=i=>{}}){let[i,a]=useState([]),s=useMemo(()=>Array.isArray(e)?e:Array.from(e),[e]),l=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),d=useCallback(()=>{a([]);},[]),p=useCallback((g,f)=>{if(ime(g)){let y=t.filter(v=>v.fileId!==g.fileId);o({uploaded:y,uploading:s});}else if(f!==void 0){let y=t.filter((v,C)=>C!==f);o({uploaded:y,uploading:s});}else {let y=s.filter(v=>v.name!==g.name);o({uploaded:t,uploading:y});}},[o,t,s]);return useEffect(()=>{if(!s.length)return;function g(){return _(this,null,function*(){r(!0);try{let f=yield Promise.all(s.map(v=>_(this,null,function*(){let C=new FormData;C.append("files",v);let h=yield _(this,null,function*(){if(v.type.includes(FileType.IMAGE))return FileRepository.createImage(C);if(v.type.includes(FileType.VIDEO))return FileRepository.createVideo(C)});return h&&h.data.length>0?h.data[0]:null}))),y=[...t,...f].filter(Fe);o({uploaded:y,uploading:[]}),a([]);}catch(f){a(s.map(y=>y.name)),n(!0);}finally{r(!1);}})}g();},[s]),{allFiles:[...t,...s],uploading:s,uploaded:t,removeFile:p,reset:l,rejected:i,retry:d}}function wg({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i,isErrorUpload:a}){let s=od({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{allFiles:l,removeFile:d}=s;return l.length===0?null:l&&R.createElement("div",{"data-images-amount":Math.min(l.length,3),className:B1.thumbnail__container},l==null?void 0:l.map((p,u)=>{var g;return R.createElement("div",{key:u,"data-images-height":l.length>2,className:B1.thumbnail__wrapper},n?R.createElement("div",{className:B1.icon__status},R.createElement(ya,null)):a?R.createElement("div",{className:B1.icon__status},R.createElement(Gt,null)):R.createElement(R.Fragment,null,R.createElement("img",{className:B1.thumbnail,src:FileRepository.fileUrlWithSize(p==null?void 0:p.fileUrl,"medium"),alt:(g=p.attributes)==null?void 0:g.name}),R.createElement("button",{type:"reset",onClick:()=>d(p)},R.createElement(Mo,{className:B1.closeIcon}))))}))}var ha={thumbnail__container:"f",thumbnail__wrapper:"Yd",thumbnail__wrapper_item_3:"Ad",thumbnail:"Vd",closeIcon:"qd",icon__status:"Bd",playIcon:"Cd"};var Mg=({files:e,uploadedFiles:t,onLoadingChange:o,onChange:r,uploadLoading:n,onError:i,videoThumbnail:a,removeThumbnail:s,isErrorUpload:l})=>{let d=od({files:e,uploadedFiles:t,onChange:r,onLoadingChange:o,onError:i}),{allFiles:p,removeFile:u}=d;if(p.length===0)return null;let g=(f,y)=>{u(f,y),s(y);};return a?R.createElement("div",{"data-images-amount":Math.min(a.length,3),className:ha.thumbnail__container},a==null?void 0:a.map((f,y)=>R.createElement("div",{key:f.videoUrl,className:sr(ha.thumbnail__wrapper,a.length>2&&ha.thumbnail__wrapper_item_3)},n?R.createElement("div",{className:ha.icon__status},R.createElement(ya,null)):l?R.createElement("div",{className:ha.icon__status},R.createElement(Gt,null)):R.createElement(R.Fragment,null,R.createElement("img",{className:ha.thumbnail,src:f.thumbnail}),R.createElement("button",{type:"reset",onClick:()=>{g(f.file,y);}},R.createElement(Mo,{className:ha.closeIcon})),R.createElement("div",{className:ha.playIcon},R.createElement(wo,null)))))):null};var ume=({ref:e})=>{let[t,o]=useState(void 0);return useEffect(()=>{if(e.current==null)return;let r=new ResizeObserver(n=>{for(let i of n)o(i.target.clientHeight);});return e.current&&r.observe(e.current),()=>{r.disconnect();}},[e.current]),t};function Tg({community:e,targetType:t,targetId:o}){let r="post_composer_page",{themeStyles:n}=Xe({pageId:r}),i="6.75rem",a="8.5rem",s="11rem",l="14.5rem",{AmityPostComposerPageBehavior:d}=xt(),{confirm:p}=Ye(),[u,g]=useState(i),[f]=useState(!0),y=useRef(null),v=useRef(null),{prependItem:C}=bs(),h=ume({ref:v}),{handleSubmit:x}=useForm(),[b,M]=useState({text:"",mentioned:[],mentionees:[{type:"user",userIds:[""]}],attachments:[{fileId:"",type:"image"}]}),[I,w]=useState([]),[k,T]=useState([]),[L,D]=useState([]),[U,j]=useState([]),[E,V]=useState(!1),[G,q]=useState([]),[O,H]=useState(!1),[z,Z]=useState(!0),[Q,B]=useState(!0),[$,ne]=useState(!1),[re,fe]=useState([]),pe=useRef(null),Ze=()=>useMutation({mutationFn:ce=>_(this,null,function*(){return PostRepository.createPost(ce)}),onSuccess:ce=>{var ue;(ue=d==null?void 0:d.goToSocialHomePage)==null||ue.call(d),C(ce.data);},onError:ce=>{console.error("Failed to create post",ce);}}),{mutateAsync:ct,isPending:$t,isError:Vt}=Ze(),ye=()=>{let ce=I.map(zo=>({type:"image",fileId:zo.fileId})),ue=k.map(zo=>({type:"video",fileId:zo.fileId})),Jr=[...ce,...ue];ct({targetId:o,targetType:t,data:{text:b.text},dataType:"text",metadata:{mentioned:b.mentioned},mentionees:b.mentionees,attachments:Jr});},Cn=ce=>{M(ue=>N(c({},ue),{mentioned:ce.mentioned,text:ce.text,mentionees:ce.mentionees}));},Kn=ce=>{u===i&&ce==="0px"||g(ce);},Er=()=>{p({pageId:r,type:"confirm",title:"Discard this post?",content:"The post will be permanently deleted. It cannot be undone.",onOk:()=>{var ce;(ce=d==null?void 0:d.goToSocialHomePage)==null||ce.call(d);},okText:"Discard",cancelText:"Keep editing"});};useEffect(()=>{I.length>0?(Z(!0),B(!1)):k.length>0&&re.length>0?(Z(!1),B(!0)):(I.length==0||re.length==0)&&(Z(!0),B(!0));},[I,k,z,Q,re]),useEffect(()=>{MB()?H(!0):H(!1);},[]),useEffect(()=>{g(!O&&z&&Q||O&&z&&!Q||O&&!z&&Q?s:!O&&z&&!Q||!O&&!z&&Q?a:l);},[O,z,Q]);let qr=ce=>{fe(ue=>ue.filter((Jr,zo)=>zo!==ce));},vn=ce=>{if(ce.length+G.length>10){p({pageId:r,type:"info",title:"Maximum upload limit reached",content:"You\u2019ve reached the upload limit of 10 images. Any additional images will not be saved. ",okText:"Close"});return}ce.length>0&&(q(ue=>[...ue,...ce]),D(ce));},Br=ce=>_(this,null,function*(){let ue=re?re.length:0;if(ce.length+ue>10){p({pageId:r,type:"info",title:"Maximum upload limit reached",content:"You\u2019ve reached the upload limit of 10 videos. Any additional videos will not be saved. ",okText:"Close"});return}if(ce.length>0){j==null||j(ce);let Jr=ce.map(Lr=>({file:Lr,videoUrl:URL.createObjectURL(Lr),thumbnail:void 0})),zo=yield Promise.all(Jr.map(Lr=>_(this,null,function*(){let Di=yield PB(Lr.file);return N(c({},Lr),{thumbnail:Di})})));fe(Lr=>[...Lr,...zo]);}}),Kr=u==a||u==s||u==l;return R.createElement("div",{className:$n.createPost,style:n},R.createElement("form",{onSubmit:x(ye),"data-from-media":u==i,className:$n.createPost__formMediaAttachment},R.createElement("div",{className:$n.createPost__topBar},R.createElement(Mr,{pageId:r,onPress:Er}),R.createElement(ua,{pageId:r,community:e}),R.createElement(xg,{pageId:r,onSubmit:x(ye),isValid:b.text.length>0||I.length>0||k.length>0})),R.createElement(Ki,{onChange:Cn,communityId:o,mentionContainer:pe.current,dataValue:{data:{text:b.text}}}),R.createElement(wg,{files:L,uploadedFiles:I,uploadLoading:E,onLoadingChange:V,onChange:({uploaded:ce,uploading:ue})=>{w(ce),D(ue);},onError:ne,isErrorUpload:$}),R.createElement(Mg,{files:U,uploadedFiles:k,uploadLoading:E,onLoadingChange:V,onChange:({uploaded:ce,uploading:ue})=>{T(ce),j(ue);},onError:ne,isErrorUpload:$,videoThumbnail:re,removeThumbnail:qr}),R.createElement("div",{ref:pe,style:{"--asc-mention-bottom":`${h!=null?h:0}px`},className:$n.mentionTextInput_item})),R.createElement("div",{ref:y}),y.current?ex.createPortal(R.createElement(Drawer.Root,{snapPoints:[i,a,s,l],activeSnapPoint:u,setActiveSnapPoint:ce=>{typeof ce=="string"&&Kn(ce);},open:f,modal:!1},R.createElement(Drawer.Portal,{container:y.current},R.createElement(Drawer.Content,{className:$n.drawer__content},R.createElement("div",{"data-item-position":u===i,className:$n.createPost__notiWrap},$t&&R.createElement(Os,{content:"Posting...",icon:R.createElement(ya,null),className:$n.createPost__status}),Vt&&R.createElement(Os,{content:"Failed to create post",icon:R.createElement(X1,{className:$n.createPost_infoIcon}),className:$n.createPost__status,duration:3e3})),R.createElement("div",{ref:v,className:$n.drawerContentContainer,"data-show-detail-media-attachment":Kr},Kr?R.createElement(v5,{pageId:r,isVisibleCamera:O,isVisibleImage:z,isVisibleVideo:Q,onVideoFileChange:Br,onImageFileChange:vn}):R.createElement(C5,{pageId:r,isVisibleCamera:O,isVisibleImage:z,isVisibleVideo:Q,onVideoFileChange:Br,onImageFileChange:vn}))))),y.current):null)}var Ca={editPost:"Dd",editPost__topBar:"Ed",editPost__status:"Fd",editPost_infoIcon:"Gd",editPost__notiWrap:"Hd",editPost__formMediaAttachment:"Qe",drawer__content:"Id",mentionTextInput_item:"Re"};var NB={editPostButton:"Se"};function kg(r){var n=r,{pageId:e="*",componentId:t="*"}=n,o=P(n,["pageId","componentId"]);let i="edit_post_button",{config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:i});return s?null:R.createElement(F,c({style:l,className:NB.editPostButton},o),a.text)}var EB={editPostTitle:"Jd"};function Sg({pageId:e="*",componentId:t="*"}){let o="edit_post_title",{config:r,isExcluded:n,themeStyles:i}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement("div",{style:i,className:EB.editPostTitle},r.text)}var Ime=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)return;let n=yield PostRepository.getPostByIds(e);o(n.data);})}r();},[e]),t},BB=Ime;var L1={thumbnail__container:"u",thumbnail__wrapper:"Te",thumbnail:"Kd",thumbnail__closeButton:"Ld",thumbnail__closeIcon:"Md",icon__status:"Nd",playIcon:"Od"};var Mme=({fieldId:e,onRemove:t,type:o})=>{let r=rt({fileId:e});return r?R.createElement(R.Fragment,null,R.createElement("img",{className:L1.thumbnail,src:r,alt:"thumbnail"}),R.createElement(F,{type:"reset",onPress:()=>t(),className:L1.thumbnail__closeButton},R.createElement(Mo,{className:L1.thumbnail__closeIcon})),o===PostContentType.VIDEO&&R.createElement("div",{className:L1.playIcon,"data-image":"test"},R.createElement(wo,null))):null},Eg=({postMedia:e,onRemove:t})=>e.length==0?null:R.createElement("div",{"data-images-amount":Math.min(e.length,3),className:L1.thumbnail__container},e==null?void 0:e.map((o,r)=>R.createElement("div",{key:r,"data-images-height":e.length>2,className:L1.thumbnail__wrapper},R.createElement(Mme,{type:o.dataType,key:r,fieldId:o.dataType===PostContentType.IMAGE?o.data.fileId:o.data.thumbnailFileId,onRemove:()=>t(o.dataType===PostContentType.IMAGE?o.data.fileId:o.data.videoFileId.original)}))));var Bg=(e,t)=>{if(e.length!==t.length)return !1;let o=[...e].sort(),r=[...t].sort();for(let n=0;n<o.length;n++)if(o[n]!==r[n])return !1;return !0};function Lg({post:e}){var V,G,q;let t="post_composer_page",{themeStyles:o}=Xe({pageId:t}),{onBack:r}=Le(),{confirm:n}=Ye(),{updateItem:i}=bs(),[a,s]=useState({text:(V=e.data.text)!=null?V:"",mentioned:((G=e.metadata)==null?void 0:G.mentioned)||[],mentionees:e.mentionees,attachments:[{fileId:"",type:"image"}]}),[l,d]=useState([]),[p,u]=useState([]),[g,f]=useState([]),[y,v]=useState([]),C=useRef(null),h=()=>useMutation({mutationFn:O=>_(this,null,function*(){return yield PostRepository.editPost(e.postId,O)}),onSuccess:O=>{r(),i(O.data);},onError:O=>{console.error("Failed to edit post",O);}}),{mutateAsync:x,isPending:b,isError:M}=h(),{handleSubmit:I}=useForm(),w=BB((e==null?void 0:e.children)||[]);useEffect(()=>{let O=w.filter(z=>z.dataType==="image");f(O),d(O);let H=w.filter(z=>z.dataType==="video");v(H),u(H);},[w]);let k=O=>{d(H=>H.filter(z=>z.data.fileId!==O));},T=O=>{u(H=>H.filter(z=>z.data.videoFileId.original!==O));},L=()=>{var Z,Q;let O=l.map(B=>({fileId:B.data.fileId,type:PostContentType.IMAGE})),H=p.map(B=>({fileId:B.data.videoFileId.original,type:"video"})),z=[...O,...H];a&&x({data:{text:a.text},metadata:{mentioned:(Z=a.mentioned)!=null?Z:[]},mentionees:(Q=a.mentionees)!=null?Q:[],attachments:z});},D=O=>{s(H=>N(c({},H),{mentioned:O.mentioned,text:O.text,mentionees:O.mentionees}));},U=()=>{n({pageId:t,type:"confirm",title:"Discard this post?",content:"The post will be permanently deleted. It cannot be undone.",onOk:()=>{r();},okText:"Discard",cancelText:"Keep editing"});},j=!Bg(g,l),E=!Bg(y,p);return R.createElement("div",{className:Ca.editPost,style:o},R.createElement("form",{onSubmit:I(L),className:Ca.editPost__formMediaAttachment},R.createElement("div",{className:Ca.editPost__topBar},R.createElement(Mr,{pageId:t,onPress:U}),R.createElement(Sg,{pageId:t}),R.createElement(kg,{pageId:t,type:"submit",onPress:()=>I(L),isDisabled:e.data.text==a.text&&!j&&!E||!(a.text.length>0||l.length>0||p.length>0)})),R.createElement(Ki,{communityId:e.targetType==="community"?e.targetId:void 0,onChange:D,mentionContainer:C.current,dataValue:{data:{text:e.data.text},metadata:{mentioned:((q=e.metadata)==null?void 0:q.mentioned)||[]},mentionees:e.mentionees}}),R.createElement(Eg,{postMedia:l,onRemove:k}),R.createElement(Eg,{postMedia:p,onRemove:T}),R.createElement("div",{ref:C,className:Ca.mentionTextInput_item}),R.createElement("div",{className:Ca.editPost__notiWrap},b&&R.createElement(Os,{content:"Posting...",icon:R.createElement(ya,null),className:Ca.editPost__status}),M&&R.createElement(Os,{content:"Failed to edit post",icon:R.createElement(Gt,{className:Ca.editPost_infoIcon}),className:Ca.editPost__status,duration:3e3}))))}var Eme=e=>e.mode==="create";function Ag(e){if(Eme(e)){let{targetId:t,targetType:o,community:r}=e;return R.createElement(Tg,{mode:"create",targetId:t,targetType:o,community:r})}else {let{post:t}=e;return R.createElement(Lg,{mode:"edit",post:t})}}var Ame=e=>R.createElement("svg",c({width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M18.3804 2.25391C19.2593 3.13281 19.2593 4.53906 18.3804 5.41797L15.7437 8.05469L14.5483 9.25L5.97021 17.8281L1.9624 18.25C1.92725 18.25 1.89209 18.25 1.85693 18.25C1.36475 18.25 0.978027 17.8281 1.04834 17.3359L1.47021 13.3281L10.0483 4.75L11.2437 3.55469L13.8804 0.917969C14.3022 0.496094 14.8999 0.25 15.4624 0.25C16.0249 0.25 16.6226 0.496094 17.0444 0.917969L18.3804 2.25391ZM5.19678 16.2109L13.353 8.08984L14.4429 7L12.2983 4.85547L11.2085 5.94531L3.0874 14.1016L2.84131 16.457L5.19678 16.2109ZM17.1851 4.22266C17.396 4.01172 17.396 3.66016 17.1851 3.44922L15.8491 2.11328C15.7085 1.97266 15.5327 1.9375 15.4624 1.9375C15.3921 1.9375 15.2163 1.97266 15.0757 2.11328L13.4937 3.66016L15.6382 5.80469L17.1851 4.22266Z"})),Dme=e=>R.createElement("svg",c({width:"16",height:"19",viewBox:"0 0 16 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.3608 3.0625C15.6421 3.0625 15.9233 3.34375 15.9233 3.625V4.1875C15.9233 4.50391 15.6421 4.75 15.3608 4.75H14.7983L14.0249 16.668C13.9897 17.5469 13.2163 18.25 12.3374 18.25H3.72412C2.84521 18.25 2.07178 17.5469 2.03662 16.668L1.29834 4.75H0.73584C0.419434 4.75 0.17334 4.50391 0.17334 4.1875V3.625C0.17334 3.34375 0.419434 3.0625 0.73584 3.0625H3.61865L4.81396 1.09375C5.09521 0.636719 5.72803 0.25 6.25537 0.25H9.80615C10.3335 0.25 10.9663 0.636719 11.2476 1.09375L12.4429 3.0625H15.3608ZM6.25537 1.9375L5.5874 3.0625H10.4741L9.80615 1.9375H6.25537ZM12.3374 16.5625L13.0757 4.75H2.98584L3.72412 16.5625H12.3374Z"})),Hme=e=>R.createElement("svg",c({width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M12.3125 3.0625C13.543 3.0625 14.8789 2.64062 16.1445 2.07812C17.2344 1.62109 18.5 2.42969 18.5 3.625V12.0625C18.5 12.6602 18.1836 13.1875 17.7266 13.5039C16.7773 14.1016 15.2656 14.875 13.1914 14.875C10.8008 14.875 9.21875 13.75 7.49609 13.75C5.52734 13.75 4.33203 14.1719 3.03125 14.7695V17.6875C3.03125 18.0039 2.75 18.25 2.46875 18.25H1.90625C1.58984 18.25 1.34375 18.0039 1.34375 17.6875V3.41406C0.816406 3.13281 0.5 2.57031 0.5 1.9375C0.5 0.988281 1.30859 0.214844 2.29297 0.285156C3.10156 0.320312 3.76953 0.953125 3.83984 1.76172C3.83984 1.79688 3.875 1.90234 3.875 1.9375C3.875 2.11328 3.80469 2.35938 3.76953 2.5C4.54297 2.18359 5.49219 1.9375 6.61719 1.9375C9.00781 1.9375 10.5898 3.0625 12.3125 3.0625ZM16.8125 12.0625V3.625C15.6875 4.15234 13.8242 4.75 12.3125 4.75C10.2031 4.75 8.72656 3.625 6.61719 3.625C5.14062 3.625 3.76953 4.22266 3.03125 4.75V12.9062C4.12109 12.4141 5.98438 12.0625 7.49609 12.0625C9.60547 12.0625 11.082 13.1875 13.1914 13.1875C14.668 13.1875 16.0391 12.625 16.8125 12.0625Z"})),E5=({post:e,pageId:t="*",componentId:o="*",elementId:r="*",onCloseMenu:n,onPostDeleted:i})=>{let{success:a,error:s}=Po(),l=useMemo(()=>(e==null?void 0:e.targetType)==="community",[e==null?void 0:e.targetType]),{community:d}=Mt({communityId:e==null?void 0:e.targetId,shouldCall:l}),{isCommunityModerator:p,isOwner:u}=bB({post:e,community:d}),{AmityPostContentComponentBehavior:g}=xt(),{removeDrawerData:f}=Wm(),{showEditPostButton:y,showDeletePostButton:v,showReportPostButton:C}=useMemo(()=>p?u?{showEditPostButton:!0,showDeletePostButton:!0,showReportPostButton:!1}:{showEditPostButton:!1,showDeletePostButton:!0,showReportPostButton:!0}:u?{showEditPostButton:!0,showDeletePostButton:!0,showReportPostButton:!1}:{showEditPostButton:!1,showDeletePostButton:!1,showReportPostButton:!0},[p,u]),{isFlaggedByMe:h,isLoading:x,mutateReportPost:b,mutateUnReportPost:M}=wB({post:e,isFlaggable:C,onReportSuccess:()=>{a({content:"Post reported."});},onReportError:()=>{s({content:"Failed to report post."});},onUnreportSuccess:()=>{a({content:"Post unreported."});},onUnreportError:()=>{s({content:"Failed to unreport post."});}}),{confirm:I}=Ye(),{mutateAsync:w}=useMutation({mutationFn:()=>_(void 0,null,function*(){return n(),PostRepository.hardDeletePost(e.postId)}),onSuccess:()=>{a({content:"Post deleted."}),i==null||i(e);},onError:()=>{s({content:"Failed to delete post."});}}),k=()=>{n(),I({title:"Delete post",content:"This post will be permanently deleted.",cancelText:"Cancel",okText:"Delete",onOk:()=>w(),pageId:t,componentId:o});};return R.createElement("div",{className:Un.postMenu},C&&!x?R.createElement(F,{className:Un.postMenu__item,onPress:()=>{h?M():b(),f();}},R.createElement(Hme,{className:Un.postMenu__reportPost__icon}),R.createElement(S.Title,{className:Un.postMenu__reportPost__text},h?"Unreport post":"Report post")):null,y?R.createElement(F,{className:Un.postMenu__item,onPress:()=>{var T;f(),(T=g==null?void 0:g.goToPostComposerPage)==null||T.call(g,{mode:"edit",post:e});}},R.createElement(Ame,{className:Un.postMenu__editPost__icon}),R.createElement(S.Title,{className:Un.postMenu__editPost__text},"Edit post")):null,v?R.createElement(F,{className:Un.postMenu__item,onPress:()=>k()},R.createElement(Dme,{className:Un.postMenu__deletePost__icon}),R.createElement(S.Title,{className:Un.postMenu__deletePost__text},"Delete post")):null)};var FB=({post:e,community:t})=>{let{currentUserId:o}=De(),r=useMemo(()=>(e==null?void 0:e.targetType)==="community"&&(e==null?void 0:e.targetId)===(t==null?void 0:t.communityId),[e==null?void 0:e.targetType,t==null?void 0:t.communityId]),{moderators:n}=nm({communityId:t==null?void 0:t.communityId,shouldCall:r}),i=useMemo(()=>r?n.some(s=>s.userId===(e==null?void 0:e.postedUserId)):!1,[n,r,e==null?void 0:e.postedUserId]),a=(e==null?void 0:e.postedUserId)===o;return {isCommunityModerator:i,isOwner:a}};var OB=({threshold:e,elementRef:t})=>{let[o,r]=useState(!1);return useEffect(()=>{if(!t.current)return;let n=new IntersectionObserver(i=>{i.forEach(a=>{let s=a.isIntersecting;r(s);});},{threshold:e});return n.observe(t.current),()=>{n.disconnect();}},[e,t]),{isVisible:o}};var zB={announcementBadge:"Pd"};var Dg={featuredIcon__background:"Qd",featuredIcon__textColor:"Rd"};var UB=r=>{var n=r,{backgroundColor:e,textColor:t}=n,o=P(n,["backgroundColor","textColor"]);return R.createElement("svg",c({width:"73",height:"26",viewBox:"0 0 73 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),R.createElement("path",{d:"M0 0H69C71.2091 0 73 1.79086 73 4V22C73 24.2091 71.2091 26 69 26H0V0Z",className:Dg.featuredIcon__background,fill:e}),R.createElement("path",{d:"M9.12988 18V8.84033H14.9697V10.2178H10.7676V12.9282H14.6079V14.2612H10.7676V18H9.12988ZM19.5108 18.1396C17.4478 18.1396 16.1973 16.7559 16.1973 14.5469V14.5405C16.1973 12.3569 17.4605 10.9287 19.4346 10.9287C21.4088 10.9287 22.6275 12.3125 22.6275 14.4072V14.9277H17.7779C17.797 16.1719 18.4698 16.8955 19.5426 16.8955C20.3995 16.8955 20.8883 16.4639 21.0406 16.1465L21.0596 16.1021H22.564L22.545 16.1592C22.3228 17.0542 21.3961 18.1396 19.5108 18.1396ZM19.4537 12.1665C18.5714 12.1665 17.9112 12.7632 17.7906 13.8677H21.085C20.9771 12.7314 20.336 12.1665 19.4537 12.1665ZM26.0197 18.1143C24.6994 18.1143 23.7409 17.3018 23.7409 16.0386V16.0259C23.7409 14.7881 24.6867 14.0645 26.3752 13.9629L28.1588 13.855V13.2583C28.1588 12.5664 27.7082 12.1855 26.8576 12.1855C26.1339 12.1855 25.6642 12.4458 25.5055 12.9028L25.4992 12.9282H24.0075L24.0138 12.8711C24.1662 11.7031 25.2834 10.9287 26.9338 10.9287C28.7174 10.9287 29.7204 11.792 29.7204 13.2583V18H28.1588V17.0479H28.0509C27.6701 17.7207 26.9338 18.1143 26.0197 18.1143ZM25.3024 15.9624C25.3024 16.5527 25.8039 16.9019 26.5021 16.9019C27.4543 16.9019 28.1588 16.2798 28.1588 15.4546V14.896L26.5973 14.9976C25.715 15.0547 25.3024 15.3784 25.3024 15.9497V15.9624ZM34.2678 18.0317C32.6746 18.0317 32.0207 17.4985 32.0207 16.1592V12.2871H30.9416V11.062H32.0207V9.36084H33.6267V11.062H35.093V12.2871H33.6267V15.7847C33.6267 16.4766 33.8996 16.7686 34.5598 16.7686C34.782 16.7686 34.9026 16.7622 35.093 16.7432V17.9619C34.8645 18.0063 34.5725 18.0317 34.2678 18.0317ZM38.8851 18.1396C37.3236 18.1396 36.5238 17.2002 36.5238 15.5498V11.062H38.1043V15.188C38.1043 16.2607 38.5042 16.8066 39.4564 16.8066C40.4783 16.8066 41.0242 16.1465 41.0242 15.1055V11.062H42.6048V18H41.0242V16.9463H40.9163C40.5926 17.689 39.888 18.1396 38.8851 18.1396ZM44.4545 18V11.062H46.0351V12.1284H46.143C46.3778 11.3857 47.0126 10.9478 47.9267 10.9478C48.1679 10.9478 48.4154 10.9795 48.5678 11.0239V12.4395C48.3139 12.3887 48.0536 12.3506 47.7807 12.3506C46.727 12.3506 46.0351 12.979 46.0351 13.9692V18H44.4545ZM52.5757 18.1396C50.5127 18.1396 49.2622 16.7559 49.2622 14.5469V14.5405C49.2622 12.3569 50.5254 10.9287 52.4995 10.9287C54.4736 10.9287 55.6924 12.3125 55.6924 14.4072V14.9277H50.8428C50.8618 16.1719 51.5346 16.8955 52.6074 16.8955C53.4643 16.8955 53.9531 16.4639 54.1054 16.1465L54.1245 16.1021H55.6289L55.6098 16.1592C55.3877 17.0542 54.4609 18.1396 52.5757 18.1396ZM52.5185 12.1665C51.6362 12.1665 50.9761 12.7632 50.8554 13.8677H54.1499C54.042 12.7314 53.4009 12.1665 52.5185 12.1665ZM59.6939 18.1143C57.9546 18.1143 56.8502 16.7368 56.8502 14.5405V14.5278C56.8502 12.3188 57.9356 10.9478 59.6939 10.9478C60.6461 10.9478 61.4395 11.4175 61.8013 12.1665H61.9092V8.37695H63.4962V18H61.9092V16.9146H61.8013C61.4205 17.6699 60.6714 18.1143 59.6939 18.1143ZM60.189 16.7812C61.2681 16.7812 61.9346 15.9307 61.9346 14.5405V14.5278C61.9346 13.1377 61.2618 12.2808 60.189 12.2808C59.1163 12.2808 58.4561 13.1313 58.4561 14.5278V14.5405C58.4561 15.937 59.1099 16.7812 60.189 16.7812Z",className:Dg.featuredIcon__textColor,fill:t}))};var Og=({pageId:e="*",componentId:t="*"})=>{let o="announcement_badge",{config:r,isExcluded:n,accessibilityId:i,uiReference:a,defaultConfig:s}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(UB,{className:zB.announcementBadge}),imgIcon:()=>R.createElement("img",{src:r.icon,alt:a}),configIconName:r.icon,defaultIconName:s.icon})};var $B={pinBadge__icon:"Sd"};var jB=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"29",height:"30",fill:"none",viewBox:"0 0 29 30"},e),R.createElement("path",{fill:e.fill,d:"M18.106 16.436c.575 1.547.53 3.27-.596 4.398a.74.74 0 01-1.06 0l-3.006-3.005-2.32 2.32c-.022.022-.067.022-.089.044l-1.59.53c-.2.067-.398-.132-.332-.331l.53-1.591.066-.066 2.32-2.32-3.005-3.006a.722.722 0 010-1.06c1.105-1.105 2.829-1.194 4.376-.62l2.917-2.342-.929-.928a.722.722 0 010-1.06l1.061-1.06a.74.74 0 011.06 0l6.011 6.01a.76.76 0 010 1.06l-1.06 1.06a.74.74 0 01-1.061 0l-.95-.95-2.343 2.917z"}));var Ug=({pageId:e,componentId:t})=>{let o="pin_badge",{config:r,isExcluded:n,accessibilityId:i,uiReference:a,defaultConfig:s}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(jB,{className:$B.pinBadge__icon}),imgIcon:()=>R.createElement("img",{src:r.icon,alt:a}),defaultIconName:s.icon,configIconName:r.icon})};var Zme=({pageId:e,post:t,hideTarget:o})=>{var s;let r=useMemo(()=>(t==null?void 0:t.targetType)==="community",[t==null?void 0:t.targetType]),{community:n}=Mt({communityId:t==null?void 0:t.targetId,shouldCall:r}),{goToCommunityProfilePage:i,onClickUser:a}=Le();return n?R.createElement("div",{className:Ce.postTitle},t.creator&&R.createElement("div",{className:Ce.postTitle__user__container},R.createElement(S.BodyBold,{className:Ce.postTitle__text},R.createElement(F,{onPress:()=>a(t.creator.userId)},"aensuthasneuthasnetusantheusnatheusnthasenuthasnteuhsanteuhsnatehusntaheusntaheu")),t.creator.isBrand?null:R.createElement(Qc,{className:Ce.postTitle__brandIcon}),n?R.createElement(Rc,{className:Ce.postTitle__icon}):null),n&&!o&&R.createElement(R.Fragment,null,R.createElement(F,{onPress:()=>{i(n.communityId);}},R.createElement(S.BodyBold,{className:Ce.postTitle__text},n.displayName)))):R.createElement("div",{className:Ce.postTitle__user__container},R.createElement(F,{onPress:()=>t.creator&&a(t.creator.userId)},R.createElement(S.BodyBold,{className:Ce.postTitle__text},(s=t.creator)==null?void 0:s.displayName)),t.creator.isBrand?null:R.createElement(Qc,{className:Ce.postTitle__brandIcon}))};var Qme=({post:e,onImageClick:t,onVideoClick:o})=>R.createElement(R.Fragment,null,R.createElement(hg,{post:e,onImageClick:t}),R.createElement(Cg,{post:e,onVideoClick:o})),pn=({pageId:e="*",post:t,onClick:o,onPostDeleted:r,category:n,hideMenu:i=!1,hideTarget:a=!1,style:s})=>{var Kn,Er,qr,vn,Br,Kr,ce;let l="post_content",{themeStyles:d}=te({pageId:e,componentId:l}),{post:p}=Pi(t==null?void 0:t.postId),{setDrawerData:u,removeDrawerData:g}=Wm(),[f,y]=useState(!1),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(null),[I,w]=useState(null),[k,T]=useState(null),[L,D]=useState(0),{page:U}=Le(),j=useRef(null),E=useMemo(()=>{if(t!=null&&p!=null)return ln(t==null?void 0:t.updatedAt).unix()>ln(p==null?void 0:p.updatedAt).unix()?t:p;if(p!=null)return p;if(t!=null)return t},[t,p]);Dc({postId:E==null?void 0:E.postId,level:SubscriptionLevels.POST,shouldSubscribe:f});let V=useMemo(()=>(E==null?void 0:E.targetType)==="community",[E==null?void 0:E.targetType]),{community:G}=Mt({communityId:E==null?void 0:E.targetId,shouldCall:V}),{isCommunityModerator:q}=FB({post:E,community:G});useEffect(()=>{var ue;E!=null&&T(((ue=E.myReactions)==null?void 0:ue[0])||null);},[E==null?void 0:E.myReactions]),useEffect(()=>{E!=null&&D((E==null?void 0:E.reactionsCount)||0);},[E==null?void 0:E.reactionsCount]);let {mutateAsync:O}=useMutation({mutationFn:ue=>_(void 0,null,function*(){if(k&&k!==ue)try{yield ReactionRepository.removeReaction("post",E==null?void 0:E.postId,k);}catch(Jr){console.log();}return ReactionRepository.addReaction("post",E==null?void 0:E.postId,ue)}),onMutate:ue=>{y(!0),D(L+1),T(ue);}}),{mutateAsync:H}=useMutation({mutationFn:ue=>_(void 0,null,function*(){return ReactionRepository.removeReaction("post",E==null?void 0:E.postId,ue)}),onMutate:()=>{y(!0),D(Math.max(0,L-1)),T(null);}}),z=ue=>{k?H(k):O(ue);},Z=ue=>{C(!0),M(ue);},Q=()=>{C(!1),M(null);},B=ue=>{x(!0),w(ue);},$=()=>{x(!1),w(null);},pe=((Kn=E==null?void 0:E.reactions)==null?void 0:Kn.like)>0,Ze=((Er=E==null?void 0:E.reactions)==null?void 0:Er.love)>0,ct=((qr=E==null?void 0:E.reactions)==null?void 0:qr.fire)>0,$t=((vn=E==null?void 0:E.reactions)==null?void 0:vn.happy)>0,Vt=((Br=E==null?void 0:E.reactions)==null?void 0:Br.crying)>0,ye=pe||Ze||ct||$t||Vt,{isVisible:Cn}=OB({threshold:.6,elementRef:j});return useEffect(()=>{var ue;U.type!=="PostDetailPage"&&Cn&&((ue=E.analytics)==null||ue.markAsViewed());},[E,Cn,U.type]),R.createElement("div",{ref:j,className:Ce.postContent,style:d},(n==="announcement"||n==="pin_and_announcement")&&R.createElement(Og,{pageId:e,componentId:l}),R.createElement("div",{className:Ce.postContent__bar,"data-type":s},R.createElement("div",{className:Ce.postContent__bar__userAvatar},R.createElement(Vo,{userId:E==null?void 0:E.postedUserId})),R.createElement("div",{className:Ce.postContent__bar__detail},R.createElement("div",null,R.createElement(Zme,{post:E,hideTarget:a})),R.createElement("div",{className:Ce.postContent__bar__information__subtitle},q?R.createElement("div",{className:Ce.postContent__bar__information__subtitle__moderator},R.createElement(I1,{pageId:e,componentId:l}),R.createElement("span",{className:Ce.postContent__bar__information__subtitle__separator},"\u2022")):null,R.createElement(w1,{timestamp:E.createdAt}),E.createdAt!==E.editedAt&&R.createElement(S.Caption,{className:Ce.postContent__bar__information__editedTag},"(edited)"))),R.createElement("div",{className:Ce.postContent__wrapRightMenu},(n==="pin"||n==="pin_and_announcement")&&R.createElement(Ug,{pageId:e,componentId:l}),s==="feed"?R.createElement("div",{className:Ce.postContent__bar__actionButton},!i&&R.createElement(Yc,{pageId:e,componentId:l,onClick:()=>u({content:R.createElement(E5,{post:E,onCloseMenu:()=>g(),pageId:e,componentId:l,onPostDeleted:r})})})):null)),R.createElement("div",{className:Ce.postContent__content_and_reactions},R.createElement("div",{className:Ce.postContent__content},R.createElement(yg,{text:(Kr=E==null?void 0:E.data)==null?void 0:Kr.text,mentioned:(ce=E==null?void 0:E.metadata)==null?void 0:ce.mentioned,mentionees:E==null?void 0:E.mentioness}),E.children.length>0?R.createElement(Qme,{post:E,onImageClick:Z,onVideoClick:B}):null),s==="detail"?R.createElement("div",{className:Ce.postContent__reactions_and_comments},R.createElement("div",{className:Ce.postContent__reactionsBar,onClick:()=>u({content:R.createElement(Fm,{pageId:e,referenceId:E.postId,referenceType:"post"})})},ye?R.createElement("div",{className:Ce.postContent__reactionsBar__reactions},Vt&&R.createElement(lB,{className:Ce.postContent__reactionsBar__reactions__icon}),$t&&R.createElement(mB,{className:Ce.postContent__reactionsBar__reactions__icon}),ct&&R.createElement(cB,{className:Ce.postContent__reactionsBar__reactions__icon}),Ze&&R.createElement(dB,{className:Ce.postContent__reactionsBar__reactions__icon}),pe&&R.createElement(pB,{className:Ce.postContent__reactionsBar__reactions__icon})):null,R.createElement(S.Caption,{className:Ce.postContent__reactionsBar__reactions__count},`${ob((E==null?void 0:E.reactionsCount)||0)} ${(E==null?void 0:E.reactionsCount)===1?"like":"likes"}`)),R.createElement(S.Caption,{className:Ce.postContent__commentsCount},`${(E==null?void 0:E.commentsCount)||0} ${(E==null?void 0:E.commentsCount)===1?"comment":"comments"}`)):null,!(G!=null&&G.isJoined)&&U.type==="CommunityProfilePage"?R.createElement(R.Fragment,null,R.createElement(S.Body,{className:Ce.postContent__notMember},"Join community to interact with all posts")):!(G!=null&&G.isJoined)&&U.type==="PostDetailPage"?null:R.createElement(R.Fragment,null,R.createElement("div",{className:Ce.postContent__divider}),R.createElement("div",{className:Ce.postContent__reactionBar},R.createElement("div",{className:Ce.postContent__reactionBar__leftPane},R.createElement(V3,{pageId:e,componentId:l,reactionsCount:s==="feed"?L:void 0,myReaction:k,defaultIconClassName:Ce.postContent__reactionBar__leftPane__icon,imgIconClassName:Ce.postContent__reactionBar__leftPane__iconImg,onReactionClick:z}),R.createElement(pg,{pageId:e,componentId:l,commentsCount:s==="feed"?E.commentsCount:void 0,defaultIconClassName:Ce.postContent__reactionBar__leftPane__icon,imgIconClassName:Ce.postContent__reactionBar__leftPane__iconImg,onPress:()=>o==null?void 0:o()})),R.createElement("div",{className:Ce.postContent__reactionBar__rightPane},R.createElement(dg,{pageId:e,componentId:l}))))),v&&typeof b=="number"?R.createElement(hB,{post:E,onClose:Q,initialImageIndex:b}):null,h&&typeof I=="number"?R.createElement(vB,{post:E,onClose:$,initialVideoIndex:I}):null)};var St={postContentSkeleton:"Td",postContentSkeleton__bar:"Ud",postContentSkeleton__bar__information:"Wd",postContentSkeleton__content:"Zd",postContentSkeleton__animation:"_d","skeleton-pulse":"Ue",postContentSkeleton__bar__userAvatar:"em",postContentSkeleton__bar__information__title:"rm",postContentSkeleton__bar__information__subtitle:"am",postContentSkeleton__content__bar1:"om",postContentSkeleton__content__bar2:"tm",postContentSkeleton__content__bar3:"im"};var nd=({pageId:e="*"})=>{let t="post_content",{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,style:s,className:sr(St.postContentSkeleton,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar__userAvatar,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__bar__information,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar__information__title,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__bar__information__subtitle,St.postContentSkeleton__animation)}))),R.createElement("div",{className:sr(St.postContentSkeleton__content,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__content__bar1,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__content__bar2,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__content__bar3,St.postContentSkeleton__animation)})))};function D1({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=P(n,["items"]);return c({communities:o},r)}var QB={myCommunitiesList:"sm"};var B5=({pageId:e="*"})=>{let t="my_communities",{themeStyles:o}=te({pageId:e,componentId:t}),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}});return R.createElement("div",{style:o,className:QB.myCommunitiesList},R.createElement(hs,{pageId:e,communityCollection:r,isLoading:a,onLoadMore:()=>{n&&a===!1&&i();}}))};var Jme=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"161",height:"161",viewBox:"0 0 161 161",fill:"none"},R.createElement("path",{d:"M130.1 24.5H34.0996C29.6813 24.5 26.0996 28.0817 26.0996 32.5V128.5C26.0996 132.918 29.6813 136.5 34.0996 136.5H130.1C134.518 136.5 138.1 132.918 138.1 128.5V32.5C138.1 28.0817 134.518 24.5 130.1 24.5Z",fill:"#292B32"}),R.createElement("path",{d:"M43.7002 68.2H44.2002H151.7C152.628 68.2 153.519 68.5688 154.175 69.2251C154.831 69.8815 155.2 70.7718 155.2 71.7V91.7C155.2 92.6283 154.831 93.5185 154.175 94.1749C153.519 94.8313 152.628 95.2 151.7 95.2H43.7002C42.7719 95.2 41.8817 94.8313 41.2253 94.1749C40.5689 93.5185 40.2002 92.6283 40.2002 91.7V71.7C40.2002 70.7718 40.5689 69.8815 41.2253 69.2251C41.8817 68.5688 42.7719 68.2 43.7002 68.2Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M90.9002 74.1H70.1002C68.7747 74.1 67.7002 75.1745 67.7002 76.5C67.7002 77.8255 68.7747 78.9 70.1002 78.9H90.9002C92.2257 78.9 93.3002 77.8255 93.3002 76.5C93.3002 75.1745 92.2257 74.1 90.9002 74.1Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M105.3 84.5H70.1002C68.7747 84.5 67.7002 85.5745 67.7002 86.9C67.7002 88.2255 68.7747 89.3 70.1002 89.3H105.3C106.626 89.3 107.7 88.2255 107.7 86.9C107.7 85.5745 106.626 84.5 105.3 84.5Z",fill:"#40434E"}),R.createElement("path",{d:"M53.6996 89.3C57.897 89.3 61.2996 85.8974 61.2996 81.7C61.2996 77.5027 57.897 74.1 53.6996 74.1C49.5022 74.1 46.0996 77.5027 46.0996 81.7C46.0996 85.8974 49.5022 89.3 53.6996 89.3Z",fill:"#40434E"}),R.createElement("path",{d:"M9.2998 102.6H9.7998H117.3C118.228 102.6 119.118 102.969 119.775 103.625C120.431 104.282 120.8 105.172 120.8 106.1V126.1C120.8 127.028 120.431 127.919 119.775 128.575C119.118 129.231 118.228 129.6 117.3 129.6H9.2998C8.37155 129.6 7.48131 129.231 6.82493 128.575C6.16855 127.919 5.7998 127.028 5.7998 126.1V106.1C5.7998 105.172 6.16855 104.282 6.82493 103.625C7.48131 102.969 8.37155 102.6 9.2998 102.6Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M56.4998 108.5H35.6998C34.3743 108.5 33.2998 109.575 33.2998 110.9C33.2998 112.225 34.3743 113.3 35.6998 113.3H56.4998C57.8253 113.3 58.8998 112.225 58.8998 110.9C58.8998 109.575 57.8253 108.5 56.4998 108.5Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M70.8998 118.9H35.6998C34.3743 118.9 33.2998 119.975 33.2998 121.3C33.2998 122.626 34.3743 123.7 35.6998 123.7H70.8998C72.2253 123.7 73.2998 122.626 73.2998 121.3C73.2998 119.975 72.2253 118.9 70.8998 118.9Z",fill:"#40434E"}),R.createElement("path",{d:"M19.3002 123.7C23.4976 123.7 26.9002 120.297 26.9002 116.1C26.9002 111.903 23.4976 108.5 19.3002 108.5C15.1028 108.5 11.7002 111.903 11.7002 116.1C11.7002 120.297 15.1028 123.7 19.3002 123.7Z",fill:"#40434E"}),R.createElement("path",{d:"M9.2998 33.8H117.3C119.233 33.8 120.8 35.367 120.8 37.3V57.3C120.8 59.233 119.233 60.8 117.3 60.8H9.2998C7.36681 60.8 5.7998 59.233 5.7998 57.3V37.3C5.7998 35.367 7.36681 33.8 9.2998 33.8Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M54.8992 39.7H34.0992C32.7737 39.7 31.6992 40.7745 31.6992 42.1C31.6992 43.4255 32.7737 44.5 34.0992 44.5H54.8992C56.2247 44.5 57.2992 43.4255 57.2992 42.1C57.2992 40.7745 56.2247 39.7 54.8992 39.7Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M69.2992 50.1H34.0992C32.7737 50.1 31.6992 51.1745 31.6992 52.5C31.6992 53.8255 32.7737 54.9 34.0992 54.9H69.2992C70.6247 54.9 71.6992 53.8255 71.6992 52.5C71.6992 51.1745 70.6247 50.1 69.2992 50.1Z",fill:"#40434E"}),R.createElement("path",{d:"M19.3002 54.9C23.4976 54.9 26.9002 51.4974 26.9002 47.3C26.9002 43.1026 23.4976 39.7 19.3002 39.7C15.1028 39.7 11.7002 43.1026 11.7002 47.3C11.7002 51.4974 15.1028 54.9 19.3002 54.9Z",fill:"#40434E"})),Xme=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"161",height:"160",viewBox:"0 0 161 160",fill:"none"},R.createElement("path",{d:"M130.452 24H34.4521C30.0339 24 26.4521 27.5817 26.4521 32V128C26.4521 132.418 30.0339 136 34.4521 136H130.452C134.87 136 138.452 132.418 138.452 128V32C138.452 27.5817 134.87 24 130.452 24Z",fill:"#EBECEF"}),R.createElement("path",{d:"M44.0522 67.7H44.5522H152.052C152.981 67.7 153.871 68.0688 154.527 68.7251C155.184 69.3815 155.552 70.2718 155.552 71.2V91.2C155.552 92.1283 155.184 93.0185 154.527 93.6749C153.871 94.3313 152.981 94.7 152.052 94.7H44.0522C43.124 94.7 42.2337 94.3313 41.5774 93.6749C40.921 93.0185 40.5522 92.1283 40.5522 91.2V71.2C40.5522 70.2718 40.921 69.3815 41.5774 68.7251C42.2337 68.0688 43.124 67.7 44.0522 67.7Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M91.2523 73.6H70.4522C69.1268 73.6 68.0522 74.6745 68.0522 76C68.0522 77.3255 69.1268 78.4 70.4522 78.4H91.2523C92.5777 78.4 93.6523 77.3255 93.6523 76C93.6523 74.6745 92.5777 73.6 91.2523 73.6Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M105.652 84H70.4522C69.1268 84 68.0522 85.0745 68.0522 86.4C68.0522 87.7255 69.1268 88.8 70.4522 88.8H105.652C106.978 88.8 108.052 87.7255 108.052 86.4C108.052 85.0745 106.978 84 105.652 84Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M54.0521 88.8C58.2495 88.8 61.6521 85.3974 61.6521 81.2C61.6521 77.0027 58.2495 73.6 54.0521 73.6C49.8548 73.6 46.4521 77.0027 46.4521 81.2C46.4521 85.3974 49.8548 88.8 54.0521 88.8Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M9.65234 102.1H10.1523H117.652C118.581 102.1 119.471 102.469 120.127 103.125C120.784 103.782 121.152 104.672 121.152 105.6V125.6C121.152 126.528 120.784 127.419 120.127 128.075C119.471 128.731 118.581 129.1 117.652 129.1H9.65234C8.72409 129.1 7.83385 128.731 7.17747 128.075C6.52109 127.419 6.15234 126.528 6.15234 125.6V105.6C6.15234 104.672 6.52109 103.782 7.17747 103.125C7.83385 102.469 8.72409 102.1 9.65234 102.1Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M56.8523 108H36.0523C34.7269 108 33.6523 109.075 33.6523 110.4C33.6523 111.725 34.7269 112.8 36.0523 112.8H56.8523C58.1778 112.8 59.2523 111.725 59.2523 110.4C59.2523 109.075 58.1778 108 56.8523 108Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M71.2523 118.4H36.0523C34.7269 118.4 33.6523 119.475 33.6523 120.8C33.6523 122.126 34.7269 123.2 36.0523 123.2H71.2523C72.5778 123.2 73.6523 122.126 73.6523 120.8C73.6523 119.475 72.5778 118.4 71.2523 118.4Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M19.6522 123.2C23.8496 123.2 27.2522 119.797 27.2522 115.6C27.2522 111.403 23.8496 108 19.6522 108C15.4549 108 12.0522 111.403 12.0522 115.6C12.0522 119.797 15.4549 123.2 19.6522 123.2Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M9.65234 33.3H117.652C119.585 33.3 121.152 34.867 121.152 36.8V56.8C121.152 58.733 119.585 60.3 117.652 60.3H9.65234C7.71935 60.3 6.15234 58.733 6.15234 56.8V36.8C6.15234 34.867 7.71935 33.3 9.65234 33.3Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M55.2522 39.2H34.4522C33.1268 39.2 32.0522 40.2745 32.0522 41.6C32.0522 42.9255 33.1268 44 34.4522 44H55.2522C56.5777 44 57.6522 42.9255 57.6522 41.6C57.6522 40.2745 56.5777 39.2 55.2522 39.2Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M69.6522 49.6H34.4522C33.1268 49.6 32.0522 50.6745 32.0522 52C32.0522 53.3255 33.1268 54.4 34.4522 54.4H69.6522C70.9777 54.4 72.0522 53.3255 72.0522 52C72.0522 50.6745 70.9777 49.6 69.6522 49.6Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M19.6522 54.4C23.8496 54.4 27.2522 50.9974 27.2522 46.8C27.2522 42.6026 23.8496 39.2 19.6522 39.2C15.4549 39.2 12.0522 42.6026 12.0522 46.8C12.0522 50.9974 15.4549 54.4 19.6522 54.4Z",fill:"#A5A9B5"})),Gg=({pageId:e="*",componentId:t="*"})=>{let o="illustration",{currentTheme:r,accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:o});return s?null:R.createElement(ee,{defaultIconName:a.icon,configIconName:i.icon,imgIcon:()=>R.createElement("img",{src:i.icon,alt:l,"data-qa-anchor":n}),defaultIcon:()=>R.createElement("div",{"data-qa-anchor":n},r==="light"?R.createElement(Xme,null):R.createElement(Jme,null))})};var qB={description:"cm"};function Zg({pageId:e="*",componentId:t="*"}){let o="description",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(S.Caption,{className:qB.description,style:l,"data-qa-anchor":r},n.text)}var KB={title:"nm"};function H1({pageId:e="*",componentId:t="*",titleClassName:o}){let r="title",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:r});return a?null:R.createElement(S.Title,{className:sr(KB.title,o),style:s,"data-qa-anchor":n},i.text)}var L5={exploreCommunitiesButton:"lm",exploreCommunitiesButton__icon:"dm",exploreCommunitiesButton__text:"mm"};var n2e=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M7.85254 0.25C12.1338 0.25 15.6025 3.71875 15.6025 8C15.6025 12.2812 12.1338 15.75 7.85254 15.75C3.57129 15.75 0.102539 12.2812 0.102539 8C0.102539 3.71875 3.57129 0.25 7.85254 0.25ZM13.4463 5.25C12.79 3.9375 11.6963 2.90625 10.3525 2.3125C10.79 3.125 11.1338 4.125 11.3525 5.25H13.4463ZM7.85254 1.75C7.25879 1.75 6.32129 3.0625 5.85254 5.25H9.82129C9.35254 3.0625 8.41504 1.75 7.85254 1.75ZM1.60254 8C1.60254 8.4375 1.63379 8.875 1.72754 9.25H4.13379C4.10254 8.84375 4.10254 8.4375 4.10254 8C4.10254 7.59375 4.10254 7.1875 4.13379 6.75H1.72754C1.63379 7.15625 1.60254 7.59375 1.60254 8ZM2.22754 10.75C2.88379 12.0625 3.97754 13.125 5.32129 13.7188C4.88379 12.9062 4.54004 11.9062 4.32129 10.75H2.22754ZM4.32129 5.25C4.54004 4.125 4.88379 3.125 5.32129 2.3125C3.97754 2.90625 2.88379 3.9375 2.22754 5.25H4.32129ZM7.85254 14.25C8.41504 14.25 9.35254 12.9688 9.82129 10.75H5.85254C6.32129 12.9688 7.25879 14.25 7.85254 14.25ZM10.04 9.25C10.0713 8.875 10.1025 8.4375 10.1025 8C10.1025 7.5625 10.0713 7.15625 10.04 6.75H5.63379C5.60254 7.15625 5.60254 7.5625 5.60254 8C5.60254 8.4375 5.60254 8.875 5.63379 9.25H10.04ZM10.3525 13.7188C11.6963 13.125 12.79 12.0625 13.4463 10.75H11.3525C11.1338 11.9062 10.79 12.9062 10.3525 13.7188ZM11.54 9.25H13.9775C14.04 8.875 14.1025 8.4375 14.1025 8C14.1025 7.59375 14.04 7.15625 13.9775 6.75H11.54C11.5713 7.1875 11.6025 7.59375 11.6025 8C11.6025 8.4375 11.5713 8.84375 11.54 9.25Z"}));function Qg({pageId:e="*",componentId:t="*"}){let o="explore_communities_button",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement("div",{className:L5.exploreCommunitiesButton,"data-qa-anchor":r,style:l},R.createElement(n2e,{className:L5.exploreCommunitiesButton__icon}),R.createElement(S.BodyBold,{className:L5.exploreCommunitiesButton__text},n.text))}var JB={createCommunityButton:"gm"};function Wg({pageId:e="*",componentId:t="*",onClick:o}){let r="create_community_button",{accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement("div",{className:JB.createCommunityButton,onClick:()=>o(),"data-qa-anchor":n,style:d},R.createElement(ee,{defaultIcon:()=>R.createElement(R.Fragment,null),imgIcon:()=>R.createElement("img",{src:i.icon,alt:l}),configIconName:i.icon,defaultIconName:a.icon}),R.createElement(S.Body,null,i.text))}var qg={emptyNewsfeed:"hm",emptyNewsfeed__text:"pm"};function Jm({pageId:e="*"}){let t="empty_newsfeed",{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return i?null:R.createElement("div",{className:qg.emptyNewsfeed},R.createElement(Gg,{pageId:e,componentId:t}),R.createElement("div",{className:qg.emptyNewsfeed__text},R.createElement(H1,{pageId:e,componentId:t}),R.createElement(Zg,{pageId:e,componentId:t})),R.createElement(Qg,{pageId:e,componentId:t}),R.createElement(Wg,{pageId:e,componentId:t,onClick:()=>{}}))}var O1={global_feed:"fm",global_feed__postContainer:"um",global_feed__postSkeletonContainer:"bm",global_feed__pullToRefresh:"vm",global_feed__post__reactionBar__leftPane__icon:"xm",global_feed__post__reactionBar__leftPane__iconImg:"wm",global_feed__pullToRefresh__spinner:"ym",spin:"We",global_feed__divider:"km",global_feed__post__divider:"jm",global_feed__post__reactionBar:"zm",global_feed__post__reactionBar__leftPane:"Xm",global_feed__post__reactionBar__rightPane:"Ym",global_feed__intersection:"Am",global_feed__commentContainer:"Vm"};var Kt={container:"qm",innerContainer:"Bm",header:"Cm",header__title:"Dm",header__avatar:"Em",header__detail:"Fm",content__text:"Gm",content__imageContainer:"Hm",content__image:"Im",footer:"Ze",footer__content__description:"Jm",footer__content__headline:"Km",footer__left:"Lm",footer__right:"Mm",footer__content__button:"Nm",footer__content__button__text:"Om",infoIcon__button:"Pm",infoIcon:"Qm"};var YB=({ad:e,avatarUrl:t,adImageUrl:o,themeStyles:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return R.createElement("div",{className:Kt.container,style:r},R.createElement("div",{className:Kt.innerContainer},R.createElement("div",{className:Kt.header},R.createElement("div",{className:Kt.header__avatar},R.createElement(vt,{avatarUrl:t,defaultImage:R.createElement(Lm,null)})),R.createElement("div",{className:Kt.header__detail},R.createElement(S.BodyBold,{className:Kt.header__title},(l=e.advertiser)==null?void 0:l.name),R.createElement(Bm,null))),R.createElement("div",null,R.createElement(S.Body,{className:Kt.content__text},e.body),R.createElement("div",{className:Kt.content__imageContainer},R.createElement("img",{className:Kt.content__image,src:o})))),R.createElement(F,{className:Kt.infoIcon__button,onPress:()=>a(!0)},R.createElement(mn,{className:Kt.infoIcon})),R.createElement(F,{className:Kt.footer,"data-has-url":!!e.callToActionUrl,onPress:s},R.createElement("div",{className:Kt.footer__left},R.createElement(S.Body,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,Kt.footer__content__description)},e.description)}),R.createElement(S.BodyBold,{className:Kt.footer__content__headline},e.headline)),e.callToActionUrl?R.createElement("div",{className:Kt.footer__right},R.createElement(F,{className:Kt.footer__content__button,onPress:s},R.createElement(S.CaptionBold,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,Kt.footer__content__button__text)},e.callToAction)}))):null),R.createElement(t5,{ad:e,isOpen:i,onOpenChange:d=>a(d)}))};var RB=({pageId:e="*",ad:t})=>{var d,p,u,g,f,y;let o="post_content",{themeStyles:r}=te({pageId:e,componentId:o}),i=rt({fileId:(p=(d=t.advertiser)==null?void 0:d.avatar)==null?void 0:p.fileId})||((g=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:g.fileUrl)||"",s=rt({fileId:(f=t.image1_1)==null?void 0:f.fileId})||((y=t.image1_1)==null?void 0:y.fileUrl)||"";return R.createElement(YB,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:v=>{window==null||window.open(v,"_blank");}})};var Kg=e=>(e==null?void 0:e.adId)!==void 0,A5=({pageId:e="*",componentId:t="*",items:o,isLoading:r,onFeedReachBottom:n,onPostDeleted:i})=>{let{accessibilityId:a,themeStyles:s}=te({pageId:e,componentId:t}),[l,d]=useState(null),{AmityGlobalFeedComponentBehavior:p}=xt();if(ko({node:l,onIntersect:()=>{n();}}),o.length===0&&!r)return R.createElement(Jm,{pageId:e});let u=(g,f)=>Kg(g)?f&&Kg(f)?`${f.adId}-${g.adId}`:`${f.postId}-${g.adId}`:g.postId;return R.createElement("div",{className:O1.global_feed,style:s,"data-qa-anchor":a},o.map((g,f)=>R.createElement("div",{key:u(g,o[Math.max(0,f-1)])},f!==0?R.createElement("div",{className:O1.global_feed__divider}):null,Kg(g)?R.createElement(RB,{ad:g}):R.createElement(F,{className:O1.global_feed__postContainer,onPress:()=>{var y;return (y=p==null?void 0:p.goToPostDetailPage)==null?void 0:y.call(p,{postId:g.postId})}},R.createElement(pn,{pageId:e,post:g,category:"general",style:"feed",onClick:()=>{var y;(y=p==null?void 0:p.goToPostDetailPage)==null||y.call(p,{postId:g.postId});},onPostDeleted:i})))),r?Array.from({length:2}).map((g,f)=>R.createElement("div",{key:f},R.createElement("div",{className:O1.global_feed__divider}),R.createElement("div",{className:O1.global_feed__postSkeletonContainer},R.createElement(nd,null)))):null,!r&&R.createElement("div",{ref:g=>d(g),className:O1.global_feed__intersection}))};var Xm={newsfeed:"Rm",newsfeed__postList:"Sm",newsfeed__postContainer:"Tm",newsfeed__pullToRefresh:"Um",newsfeed__post__reactionBar__leftPane__icon:"Wm",newsfeed__post__reactionBar__leftPane__iconImg:"Zm",newsfeed__pullToRefresh__spinner:"_m",spin:"_e",newsfeed__divider:"eg",newsfeed__post__divider:"rg",newsfeed__post__reactionBar:"ag",newsfeed__post__reactionBar__leftPane:"og",newsfeed__post__reactionBar__rightPane:"tg",newsfeed__intersection:"ig"};var y2e=e=>R.createElement("div",{className:Xm.newsfeed__pullToRefresh__spinner},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1122 5C11.1122 5.39449 10.7924 5.71429 10.3979 5.71429C10.0035 5.71429 9.68366 5.39449 9.68366 5V0.714286C9.68366 0.319797 10.0035 0 10.3979 0C10.7924 0 11.1122 0.319797 11.1122 0.714286V5ZM8.25509 6.28846C8.59673 6.09122 8.71378 5.65437 8.51654 5.31273L6.37368 1.60119C6.17644 1.25955 5.73959 1.1425 5.39795 1.33975C5.05631 1.53699 4.93926 1.97384 5.1365 2.31548L7.27936 6.02702C7.4766 6.36865 7.91346 6.48571 8.25509 6.28846ZM6.42496 6.88141C6.7666 7.07865 6.88366 7.51551 6.68641 7.85714C6.48917 8.19878 6.05232 8.31583 5.71068 8.11859L1.99914 5.97573C1.6575 5.77849 1.54045 5.34164 1.7377 5C1.93494 4.65836 2.37179 4.54131 2.71343 4.73855L6.42496 6.88141ZM6.11224 10C6.11224 9.60551 5.79244 9.28571 5.39795 9.28571H1.11223C0.717746 9.28571 0.397949 9.60551 0.397949 10C0.397949 10.3945 0.717746 10.7143 1.11224 10.7143H5.39795C5.79244 10.7143 6.11224 10.3945 6.11224 10ZM5.71068 11.8814C6.05232 11.6842 6.48917 11.8012 6.68641 12.1429C6.88366 12.4845 6.7666 12.9213 6.42497 13.1186L2.71343 15.2614C2.37179 15.4587 1.93494 15.3416 1.7377 15C1.54045 14.6584 1.6575 14.2215 1.99914 14.0243L5.71068 11.8814ZM8.25509 13.7115C7.91345 13.5143 7.4766 13.6313 7.27936 13.973L5.1365 17.6845C4.93926 18.0262 5.05631 18.463 5.39795 18.6603C5.73959 18.8575 6.17644 18.7404 6.37368 18.3988L8.51654 14.6873C8.71378 14.3456 8.59673 13.9088 8.25509 13.7115ZM10.3979 14.2857C10.0035 14.2857 9.68366 14.6055 9.68366 15V19.2857C9.68366 19.6802 10.0035 20 10.3979 20C10.7924 20 11.1122 19.6802 11.1122 19.2857V15C11.1122 14.6055 10.7924 14.2857 10.3979 14.2857ZM12.5408 6.28846C12.8824 6.48571 13.3193 6.36865 13.5165 6.02702L15.6594 2.31548C15.8566 1.97384 15.7396 1.53699 15.3979 1.33975C15.0563 1.1425 14.6195 1.25956 14.4222 1.60119L12.2794 5.31273C12.0821 5.65437 12.1992 6.09122 12.5408 6.28846ZM15.0852 8.11859C14.7436 8.31583 14.3067 8.19878 14.1095 7.85714C13.9122 7.51551 14.0293 7.07866 14.3709 6.88141L18.0825 4.73855C18.4241 4.54131 18.861 4.65836 19.0582 5C19.2554 5.34164 19.1384 5.77849 18.7968 5.97573L15.0852 8.11859ZM14.6837 10C14.6837 10.3945 15.0035 10.7143 15.3979 10.7143H19.6837C20.0782 10.7143 20.3979 10.3945 20.3979 10C20.3979 9.60551 20.0782 9.28571 19.6837 9.28571H15.3979C15.0035 9.28571 14.6837 9.60551 14.6837 10ZM14.3709 13.1186C14.0293 12.9213 13.9122 12.4845 14.1095 12.1429C14.3067 11.8012 14.7436 11.6842 15.0852 11.8814L18.7968 14.0243C19.1384 14.2215 19.2554 14.6584 19.0582 15C18.861 15.3416 18.4241 15.4587 18.0825 15.2614L14.3709 13.1186ZM12.5408 13.7115C12.1992 13.9088 12.0821 14.3456 12.2794 14.6873L14.4222 18.3988C14.6195 18.7404 15.0563 18.8575 15.3979 18.6603C15.7396 18.463 15.8566 18.0262 15.6594 17.6845L13.5165 13.973C13.3193 13.6313 12.8824 13.5143 12.5408 13.7115Z",fill:"url(#paint0_angular_1709_10374)"}),R.createElement("defs",null,R.createElement("radialGradient",{id:"paint0_angular_1709_10374",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.3979 10) scale(10)"},R.createElement("stop",{offset:"0.669733",stopColor:"#595F67"}),R.createElement("stop",{offset:"0.716307",stopColor:"#262626",stopOpacity:"0.01"}))))),D5=({pageId:e="*"})=>{let t="newsfeed",{themeStyles:o}=te({pageId:e,componentId:t}),r=useRef(0),[n,i]=useState(0),{itemWithAds:a,hasMore:s,isLoading:l,loadMore:d,fetch:p,refetch:u,removeItem:g}=bs();useEffect(()=>{p();},[]);let f=()=>{s&&!l&&d();};return a.length===0&&!l?R.createElement(Jm,{pageId:e}):R.createElement("div",{className:Xm.newsfeed,style:o,onDrag:y=>y.stopPropagation(),onTouchStart:y=>{r.current=y.touches[0].clientY;},onTouchMove:y=>{let v=y.touches[0].clientY;r.current>v||i(Math.min(v-r.current,100));},onTouchEnd:y=>{r.current=0,n>=75&&u(),i(0);}},R.createElement("div",{style:{"--asc-pull-to-refresh-height":`${n}px`},className:Xm.newsfeed__pullToRefresh},R.createElement(y2e,null)),R.createElement("div",{className:Xm.newsfeed__divider}),R.createElement(Um,{type:"globalFeed",pageId:e}),a.length>0&&R.createElement("div",{className:Xm.newsfeed__divider}),R.createElement(A5,{isLoading:l,items:a,pageId:e,componentId:t,onFeedReachBottom:()=>f(),onPostDeleted:y=>g(y.postId)}))};var H5={postCreationButton:"sg",postCreationButton__icon:"cg"};var C2e=e=>R.createElement("svg",c({style:{pointerEvents:"none"},width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M13.0002 5.96667C13.5314 5.96667 14.0002 6.43542 14.0002 6.96667V7.96667C14.0002 8.52917 13.5314 8.96667 13.0002 8.96667H8.50016V13.4667C8.50016 14.0292 8.03141 14.4667 7.50016 14.4667H6.50016C5.93766 14.4667 5.50016 14.0292 5.50016 13.4667V8.96667H1.00016C0.437662 8.96667 0.000162125 8.52917 0.000162125 7.96667V6.96667C0.000162125 6.43542 0.437662 5.96667 1.00016 5.96667H5.50016V1.46667C5.50016 0.935425 5.93766 0.466675 6.50016 0.466675H7.50016C8.03141 0.466675 8.50016 0.935425 8.50016 1.46667V5.96667H13.0002Z"}));function Yg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onClick:n}){let i="post_creation_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(ee,{defaultIcon:()=>R.createElement(F,{style:u,className:H5.postCreationButton,onPress:n,"data-qa-anchor":a},R.createElement(C2e,{className:sr(H5.postCreationButton__icon,o)})),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:sr(H5.postCreationButton,r),onClick:n,"data-qa-anchor":a}),defaultIconName:l.icon,configIconName:s.icon})}var ad={globalSearchButton:"ng",globalSearchButton__icon:"lg",globalSearchButton__svg:"dg"};var x2e=e=>R.createElement("svg",c({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.7814 14.3104C16.0627 14.6229 16.0627 15.0917 15.7502 15.3729L14.8752 16.2479C14.5939 16.5604 14.1252 16.5604 13.8127 16.2479L10.7189 13.1542C10.5627 12.9979 10.5002 12.8104 10.5002 12.6229V12.0917C9.37516 12.9667 8.00016 13.4667 6.50016 13.4667C2.90641 13.4667 0.000162125 10.5604 0.000162125 6.96667C0.000162125 3.40417 2.90641 0.466675 6.50016 0.466675C10.0627 0.466675 13.0002 3.40417 13.0002 6.96667C13.0002 8.49792 12.4689 9.87292 11.6252 10.9667H12.1252C12.3127 10.9667 12.5002 11.0604 12.6564 11.1854L15.7814 14.3104ZM6.50016 10.9667C8.68766 10.9667 10.5002 9.18542 10.5002 6.96667C10.5002 4.77917 8.68766 2.96667 6.50016 2.96667C4.28141 2.96667 2.50016 4.77917 2.50016 6.96667C2.50016 9.18542 4.28141 10.9667 6.50016 10.9667Z"}));function Rg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n}){let i="global_search_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{style:u,"data-qa-anchor":a,className:ad.globalSearchButton,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:ad.globalSearchButton__icon},R.createElement(x2e,{className:sr(ad.globalSearchButton__svg,o)})),imgIcon:()=>R.createElement("img",{style:u,src:s.icon,alt:p,className:sr(ad.globalSearchButton__icon,r),"data-qa-anchor":a}),defaultIconName:l.icon,configIconName:s.icon}))}var oL={headerLabel:"mg"};function e9({pageId:e="*",componentId:t="*"}){let o="header_label",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(S.Heading,{className:oL.headerLabel,style:l,"data-qa-anchor":r},n.text)}var F5={topNavigation:"gg",topNavigationLeftPane:"hg",topNavigationRightPane:"pg"};var U1={socialHomePage:"fg",socialHomePage__topBar:"ug",socialHomePage__topNavigation:"bg",socialHomePage__tabs:"er",socialHomePage__contents:"rr",socialHomePage__createPostMenu:"vg"};function t9({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="newsfeed_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{"data-qa-anchor":i,pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r()},a.text)}function o9({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="explore_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r(),"data-qa-anchor":i},a.text)}function r9({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="my_communities_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{"data-qa-anchor":i,pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r()},a.text)}var O5=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(O5||{});function n9(){let e="social_home_page",{themeStyles:t}=Xe({pageId:e}),{scrollPosition:o,onScroll:r}=bs(),[n,i]=useState("Newsfeed"),[a,s]=useState(!1),l=useRef(null),d=useRef(!0);useEffect(()=>{l.current&&(l.current.scrollTop=o,setTimeout(()=>{d.current=!1;},100));},[l.current]);let p=()=>{s(g=>!g);},u=g=>{d.current||r(g);};return useEffect(()=>{let g=()=>{a&&s(!1);};a?document.addEventListener("mousedown",g):document.removeEventListener("mousedown",g);},[a]),R.createElement("div",{className:U1.socialHomePage,style:t},R.createElement("div",{className:U1.socialHomePage__topBar},R.createElement("div",{className:U1.socialHomePage__topNavigation},R.createElement(z5,{pageId:e,selectedTab:n,onClickPostCreationButton:p})),R.createElement("div",{className:U1.socialHomePage__tabs},R.createElement(t9,{pageId:e,isActive:n==="Newsfeed",onClick:()=>i("Newsfeed")}),R.createElement(o9,{pageId:e,isActive:n==="Explore",onClick:()=>i("Explore")}),R.createElement(r9,{pageId:e,isActive:n==="My communities",onClick:()=>i("My communities")}))),R.createElement("div",{className:U1.socialHomePage__contents,ref:l,onScroll:u},n==="Newsfeed"&&R.createElement(D5,{pageId:e}),n==="Explore"&&R.createElement(Mc,{isOpen:!1,toggleOpen:()=>{},hideSideMenu:!0}),n==="My communities"&&R.createElement(B5,{pageId:e})),a&&R.createElement("div",{className:U1.socialHomePage__createPostMenu},R.createElement(g5,{pageId:e})))}function z5({pageId:e="*",selectedTab:t,onClickPostCreationButton:o}){let r="top_navigation",{goToSocialGlobalSearchPage:n,goToMyCommunitiesSearchPage:i}=Le(),{isExcluded:a,themeStyles:s}=te({pageId:e,componentId:r}),l=()=>{switch(t){case"Newsfeed":n();break;case"Explore":break;case"My communities":i();break}};return a?null:R.createElement("div",{className:F5.topNavigation,style:s},R.createElement("div",{className:F5.topNavigationLeftPane},R.createElement(e9,{pageId:e,componentId:r})),R.createElement("div",{className:F5.topNavigationRightPane},R.createElement(Rg,{pageId:e,componentId:r,onPress:l}),t!=="Explore"&&R.createElement(Yg,{pageId:e,componentId:r,onClick:o})))}var va={container:"xg",headerImageContainer:"wg",headerImage:"yg",backButton:"ar",moreButton:"or",content:"kg",name:"jg",description:"zg",communityProfile__communityInfo__container:"Xg",divider:"Yg",statCount:"Ag",statTitle:"Vg",menuButton:"qg",communityProfile__joinButton__container:"Bg",communityProfile__joinButton:"Cg",communityProfile__pendingPost__container:"Dg",communityProfile__menuItem:"Eg",communityProfile__privateIcon:"Fg",communityProfile__divider:"Gg"};var U5={communityTabs__container:"Hg",communityTabs__tab:"tr"};var sL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},R.createElement("path",{fill:"currentColor",d:"M9.219 14.5c-.492 0-.844-.352-.844-.844 0-.457.352-.844.844-.844h7.312c.457 0 .844.387.844.844a.833.833 0 01-.844.844H9.22zm0 3.375c-.492 0-.844-.352-.844-.844 0-.457.352-.843.844-.843h3.937c.457 0 .844.386.844.843a.833.833 0 01-.844.844H9.22zm0-6.75c-.492 0-.844-.352-.844-.844 0-.457.352-.844.844-.844h7.312c.457 0 .844.387.844.844a.833.833 0 01-.844.844H9.22zM18.5 3.25c1.23 0 2.25 1.02 2.25 2.25V19c0 1.266-1.02 2.25-2.25 2.25H7.25A2.221 2.221 0 015 19V5.5c0-1.23.984-2.25 2.25-2.25H18.5zM19.063 19V7.75H6.688V19c0 .316.246.563.562.563H18.5a.578.578 0 00.563-.563z"}));var mL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"34",fill:"none",viewBox:"0 0 35 34"},R.createElement("path",{fill:"currentColor",d:"M21.998 18.295c.372 2.014-.15 4.027-1.567 5.444a.833.833 0 01-1.193 0l-3.58-3.58-2.585 2.586c-.025.025-.074.025-.1.05l-1.59.795c-.224.125-.497-.149-.373-.373l.795-1.59.075-.075 2.585-2.585-3.58-3.58c-.348-.348-.348-.845 0-1.194 1.418-1.416 3.406-1.963 5.42-1.59l1.218-.92-.671-.671c-.348-.348-.348-.846 0-1.194l2.386-2.386a.833.833 0 011.194 0l6.761 6.761a.856.856 0 010 1.194l-2.386 2.386a.833.833 0 01-1.194 0l-.696-.696-.92 1.218zm-9.273-3.455l7.035 7.035c.746-1.143.845-2.635.398-3.928l2.61-3.405 1.442 1.441 1.193-1.193-5.568-5.568-1.193 1.193 1.442 1.442-3.406 2.61c-1.318-.472-2.81-.373-3.953.373z"}));var i9=({pageId:e,componentId:t="*",activeTab:o,onTabChange:r})=>{let n="community_profile_tab",{isExcluded:i,accessibilityId:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:n});return i?null:R.createElement("div",{"data-qa-anchor":a,style:s,className:U5.communityTabs__container},R.createElement(F,{"data-is-active":o==="community_feed",onPress:()=>r("community_feed"),className:U5.communityTabs__tab},R.createElement(sL,null)),R.createElement(F,{"data-is-active":o==="community_pin",onPress:()=>r("community_pin"),className:U5.communityTabs__tab},R.createElement(mL,null)))};var ld={communityCover__container:"ir",communityCover__topBar:"Ig",communityCover__backButton:"Jg",communityCover__menuButton:"Kg"};var cL={menuButton:"Lg"};function a9({pageId:e="*",componentId:t="*",onClick:o,className:r,defaultClassName:n}){let i="menu_button",{isExcluded:a,accessibilityId:s,themeStyles:l,config:d,defaultConfig:p,uiReference:u}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{className:r,onPress:o,"data-qa-anchor":s},R.createElement(ee,{defaultIcon:()=>R.createElement(P5,{className:sr(cL.menuButton,n),style:l}),imgIcon:()=>R.createElement("img",{src:d.icon,alt:u}),defaultIconName:p.icon,configIconName:d.icon}))}var s9=({pageId:e="*",componentId:t="*",image:o,onBack:r,onClickMenu:n})=>{let i="community_cover",{isExcluded:a,accessibilityId:s,themeStyles:l,config:d}=A({pageId:e,componentId:t,elementId:i}),p=o?{backgroundImage:`url(${o})`}:{background:"linear-gradient(180deg, #a5a9b5 0%, #636878 100%)"};return a?null:R.createElement("div",{className:ld.communityCover__container,"data-qa-anchor":s,style:c(c({},l),p)},R.createElement("div",{style:c({},p)}),R.createElement("div",{className:ld.communityCover__topBar},R.createElement(wm,{defaultClassName:ld.communityCover__backButton,onPress:r}),R.createElement(a9,{className:ld.communityCover__menuButton,onClick:n})))};var l9={communityJoinButton:"Mg",joinButton:"Ng"};var pL=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),R.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
|
|
4731
|
+
`;var ya=e=>R.createElement(TB,c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),R.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),R.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"}));function ime(e){return e.fileId!==void 0}function od({files:e=[],uploadedFiles:t=[],onChange:o=i=>{},onLoadingChange:r=i=>{},onError:n=i=>{}}){let[i,a]=useState([]),s=useMemo(()=>Array.isArray(e)?e:Array.from(e),[e]),l=useCallback(()=>{o({uploaded:[],uploading:[]});},[o]),d=useCallback(()=>{a([]);},[]),p=useCallback((g,f)=>{if(ime(g)){let y=t.filter(v=>v.fileId!==g.fileId);o({uploaded:y,uploading:s});}else if(f!==void 0){let y=t.filter((v,C)=>C!==f);o({uploaded:y,uploading:s});}else {let y=s.filter(v=>v.name!==g.name);o({uploaded:t,uploading:y});}},[o,t,s]);return useEffect(()=>{if(!s.length)return;function g(){return _(this,null,function*(){r(!0);try{let f=yield Promise.all(s.map(v=>_(this,null,function*(){let C=new FormData;C.append("files",v);let h=yield _(this,null,function*(){if(v.type.includes(FileType.IMAGE))return FileRepository.createImage(C);if(v.type.includes(FileType.VIDEO))return FileRepository.createVideo(C)});return h&&h.data.length>0?h.data[0]:null}))),y=[...t,...f].filter(Fe);o({uploaded:y,uploading:[]}),a([]);}catch(f){a(s.map(y=>y.name)),n(!0);}finally{r(!1);}})}g();},[s]),{allFiles:[...t,...s],uploading:s,uploaded:t,removeFile:p,reset:l,rejected:i,retry:d}}function wg({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,uploadLoading:n,onError:i,isErrorUpload:a}){let s=od({files:e,uploadedFiles:t,onChange:o,onLoadingChange:r,onError:i}),{allFiles:l,removeFile:d}=s;return l.length===0?null:l&&R.createElement("div",{"data-images-amount":Math.min(l.length,3),className:B1.thumbnail__container},l==null?void 0:l.map((p,u)=>{var g;return R.createElement("div",{key:u,"data-images-height":l.length>2,className:B1.thumbnail__wrapper},n?R.createElement("div",{className:B1.icon__status},R.createElement(ya,null)):a?R.createElement("div",{className:B1.icon__status},R.createElement(Gt,null)):R.createElement(R.Fragment,null,R.createElement("img",{className:B1.thumbnail,src:FileRepository.fileUrlWithSize(p==null?void 0:p.fileUrl,"medium"),alt:(g=p.attributes)==null?void 0:g.name}),R.createElement("button",{type:"reset",onClick:()=>d(p)},R.createElement(Mo,{className:B1.closeIcon}))))}))}var ha={thumbnail__container:"f",thumbnail__wrapper:"Cd",thumbnail__wrapper_item_3:"Ad",thumbnail:"Md",closeIcon:"Sd",icon__status:"Ed",playIcon:"Fd"};var Mg=({files:e,uploadedFiles:t,onLoadingChange:o,onChange:r,uploadLoading:n,onError:i,videoThumbnail:a,removeThumbnail:s,isErrorUpload:l})=>{let d=od({files:e,uploadedFiles:t,onChange:r,onLoadingChange:o,onError:i}),{allFiles:p,removeFile:u}=d;if(p.length===0)return null;let g=(f,y)=>{u(f,y),s(y);};return a?R.createElement("div",{"data-images-amount":Math.min(a.length,3),className:ha.thumbnail__container},a==null?void 0:a.map((f,y)=>R.createElement("div",{key:f.videoUrl,className:sr(ha.thumbnail__wrapper,a.length>2&&ha.thumbnail__wrapper_item_3)},n?R.createElement("div",{className:ha.icon__status},R.createElement(ya,null)):l?R.createElement("div",{className:ha.icon__status},R.createElement(Gt,null)):R.createElement(R.Fragment,null,R.createElement("img",{className:ha.thumbnail,src:f.thumbnail}),R.createElement("button",{type:"reset",onClick:()=>{g(f.file,y);}},R.createElement(Mo,{className:ha.closeIcon})),R.createElement("div",{className:ha.playIcon},R.createElement(wo,null)))))):null};var ume=({ref:e})=>{let[t,o]=useState(void 0);return useEffect(()=>{if(e.current==null)return;let r=new ResizeObserver(n=>{for(let i of n)o(i.target.clientHeight);});return e.current&&r.observe(e.current),()=>{r.disconnect();}},[e.current]),t};function Tg({community:e,targetType:t,targetId:o}){let r="post_composer_page",{themeStyles:n}=Xe({pageId:r}),i="6.75rem",a="8.5rem",s="11rem",l="14.5rem",{AmityPostComposerPageBehavior:d}=xt(),{confirm:p}=Ye(),[u,g]=useState(i),[f]=useState(!0),y=useRef(null),v=useRef(null),{prependItem:C}=bs(),h=ume({ref:v}),{handleSubmit:x}=useForm(),[b,M]=useState({text:"",mentioned:[],mentionees:[{type:"user",userIds:[""]}],attachments:[{fileId:"",type:"image"}]}),[I,w]=useState([]),[k,T]=useState([]),[L,D]=useState([]),[U,j]=useState([]),[E,V]=useState(!1),[G,q]=useState([]),[O,H]=useState(!1),[z,Z]=useState(!0),[Q,B]=useState(!0),[$,ne]=useState(!1),[re,fe]=useState([]),pe=useRef(null),Ze=()=>useMutation({mutationFn:ce=>_(this,null,function*(){return PostRepository.createPost(ce)}),onSuccess:ce=>{var ue;(ue=d==null?void 0:d.goToSocialHomePage)==null||ue.call(d),C(ce.data);},onError:ce=>{console.error("Failed to create post",ce);}}),{mutateAsync:ct,isPending:$t,isError:Vt}=Ze(),ye=()=>{let ce=I.map(zo=>({type:"image",fileId:zo.fileId})),ue=k.map(zo=>({type:"video",fileId:zo.fileId})),Jr=[...ce,...ue];ct({targetId:o,targetType:t,data:{text:b.text},dataType:"text",metadata:{mentioned:b.mentioned},mentionees:b.mentionees,attachments:Jr});},Cn=ce=>{M(ue=>N(c({},ue),{mentioned:ce.mentioned,text:ce.text,mentionees:ce.mentionees}));},Kn=ce=>{u===i&&ce==="0px"||g(ce);},Er=()=>{p({pageId:r,type:"confirm",title:"Discard this post?",content:"The post will be permanently deleted. It cannot be undone.",onOk:()=>{var ce;(ce=d==null?void 0:d.goToSocialHomePage)==null||ce.call(d);},okText:"Discard",cancelText:"Keep editing"});};useEffect(()=>{I.length>0?(Z(!0),B(!1)):k.length>0&&re.length>0?(Z(!1),B(!0)):(I.length==0||re.length==0)&&(Z(!0),B(!0));},[I,k,z,Q,re]),useEffect(()=>{MB()?H(!0):H(!1);},[]),useEffect(()=>{g(!O&&z&&Q||O&&z&&!Q||O&&!z&&Q?s:!O&&z&&!Q||!O&&!z&&Q?a:l);},[O,z,Q]);let qr=ce=>{fe(ue=>ue.filter((Jr,zo)=>zo!==ce));},vn=ce=>{if(ce.length+G.length>10){p({pageId:r,type:"info",title:"Maximum upload limit reached",content:"You\u2019ve reached the upload limit of 10 images. Any additional images will not be saved. ",okText:"Close"});return}ce.length>0&&(q(ue=>[...ue,...ce]),D(ce));},Br=ce=>_(this,null,function*(){let ue=re?re.length:0;if(ce.length+ue>10){p({pageId:r,type:"info",title:"Maximum upload limit reached",content:"You\u2019ve reached the upload limit of 10 videos. Any additional videos will not be saved. ",okText:"Close"});return}if(ce.length>0){j==null||j(ce);let Jr=ce.map(Lr=>({file:Lr,videoUrl:URL.createObjectURL(Lr),thumbnail:void 0})),zo=yield Promise.all(Jr.map(Lr=>_(this,null,function*(){let Di=yield PB(Lr.file);return N(c({},Lr),{thumbnail:Di})})));fe(Lr=>[...Lr,...zo]);}}),Kr=u==a||u==s||u==l;return R.createElement("div",{className:$n.createPost,style:n},R.createElement("form",{onSubmit:x(ye),"data-from-media":u==i,className:$n.createPost__formMediaAttachment},R.createElement("div",{className:$n.createPost__topBar},R.createElement(Mr,{pageId:r,onPress:Er}),R.createElement(ua,{pageId:r,community:e}),R.createElement(xg,{pageId:r,onSubmit:x(ye),isValid:b.text.length>0||I.length>0||k.length>0})),R.createElement(Ki,{onChange:Cn,communityId:o,mentionContainer:pe.current,dataValue:{data:{text:b.text}}}),R.createElement(wg,{files:L,uploadedFiles:I,uploadLoading:E,onLoadingChange:V,onChange:({uploaded:ce,uploading:ue})=>{w(ce),D(ue);},onError:ne,isErrorUpload:$}),R.createElement(Mg,{files:U,uploadedFiles:k,uploadLoading:E,onLoadingChange:V,onChange:({uploaded:ce,uploading:ue})=>{T(ce),j(ue);},onError:ne,isErrorUpload:$,videoThumbnail:re,removeThumbnail:qr}),R.createElement("div",{ref:pe,style:{"--asc-mention-bottom":`${h!=null?h:0}px`},className:$n.mentionTextInput_item})),R.createElement("div",{ref:y}),y.current?ex.createPortal(R.createElement(Drawer.Root,{snapPoints:[i,a,s,l],activeSnapPoint:u,setActiveSnapPoint:ce=>{typeof ce=="string"&&Kn(ce);},open:f,modal:!1},R.createElement(Drawer.Portal,{container:y.current},R.createElement(Drawer.Content,{className:$n.drawer__content},R.createElement("div",{"data-item-position":u===i,className:$n.createPost__notiWrap},$t&&R.createElement(Os,{content:"Posting...",icon:R.createElement(ya,null),className:$n.createPost__status}),Vt&&R.createElement(Os,{content:"Failed to create post",icon:R.createElement(X1,{className:$n.createPost_infoIcon}),className:$n.createPost__status,duration:3e3})),R.createElement("div",{ref:v,className:$n.drawerContentContainer,"data-show-detail-media-attachment":Kr},Kr?R.createElement(v5,{pageId:r,isVisibleCamera:O,isVisibleImage:z,isVisibleVideo:Q,onVideoFileChange:Br,onImageFileChange:vn}):R.createElement(C5,{pageId:r,isVisibleCamera:O,isVisibleImage:z,isVisibleVideo:Q,onVideoFileChange:Br,onImageFileChange:vn}))))),y.current):null)}var Ca={editPost:"Id",editPost__topBar:"Rd",editPost__status:"Ud",editPost_infoIcon:"Bd",editPost__notiWrap:"Dd",editPost__formMediaAttachment:"Ke",drawer__content:"Hd",mentionTextInput_item:"Ne"};var NB={editPostButton:"Oe"};function kg(r){var n=r,{pageId:e="*",componentId:t="*"}=n,o=P(n,["pageId","componentId"]);let i="edit_post_button",{config:a,isExcluded:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:i});return s?null:R.createElement(F,c({style:l,className:NB.editPostButton},o),a.text)}var EB={editPostTitle:"Ld"};function Sg({pageId:e="*",componentId:t="*"}){let o="edit_post_title",{config:r,isExcluded:n,themeStyles:i}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement("div",{style:i,className:EB.editPostTitle},r.text)}var Ime=e=>{let[t,o]=useState([]);return useEffect(()=>{function r(){return _(this,null,function*(){if(!e||(e==null?void 0:e.length)===0)return;let n=yield PostRepository.getPostByIds(e);o(n.data);})}r();},[e]),t},BB=Ime;var L1={thumbnail__container:"b",thumbnail__wrapper:"Pe",thumbnail:"Td",thumbnail__closeButton:"Vd",thumbnail__closeIcon:"qd",icon__status:"Gd",playIcon:"Jd"};var Mme=({fieldId:e,onRemove:t,type:o})=>{let r=rt({fileId:e});return r?R.createElement(R.Fragment,null,R.createElement("img",{className:L1.thumbnail,src:r,alt:"thumbnail"}),R.createElement(F,{type:"reset",onPress:()=>t(),className:L1.thumbnail__closeButton},R.createElement(Mo,{className:L1.thumbnail__closeIcon})),o===PostContentType.VIDEO&&R.createElement("div",{className:L1.playIcon,"data-image":"test"},R.createElement(wo,null))):null},Eg=({postMedia:e,onRemove:t})=>e.length==0?null:R.createElement("div",{"data-images-amount":Math.min(e.length,3),className:L1.thumbnail__container},e==null?void 0:e.map((o,r)=>R.createElement("div",{key:r,"data-images-height":e.length>2,className:L1.thumbnail__wrapper},R.createElement(Mme,{type:o.dataType,key:r,fieldId:o.dataType===PostContentType.IMAGE?o.data.fileId:o.data.thumbnailFileId,onRemove:()=>t(o.dataType===PostContentType.IMAGE?o.data.fileId:o.data.videoFileId.original)}))));var Bg=(e,t)=>{if(e.length!==t.length)return !1;let o=[...e].sort(),r=[...t].sort();for(let n=0;n<o.length;n++)if(o[n]!==r[n])return !1;return !0};function Lg({post:e}){var V,G,q;let t="post_composer_page",{themeStyles:o}=Xe({pageId:t}),{onBack:r}=Le(),{confirm:n}=Ye(),{updateItem:i}=bs(),[a,s]=useState({text:(V=e.data.text)!=null?V:"",mentioned:((G=e.metadata)==null?void 0:G.mentioned)||[],mentionees:e.mentionees,attachments:[{fileId:"",type:"image"}]}),[l,d]=useState([]),[p,u]=useState([]),[g,f]=useState([]),[y,v]=useState([]),C=useRef(null),h=()=>useMutation({mutationFn:O=>_(this,null,function*(){return yield PostRepository.editPost(e.postId,O)}),onSuccess:O=>{r(),i(O.data);},onError:O=>{console.error("Failed to edit post",O);}}),{mutateAsync:x,isPending:b,isError:M}=h(),{handleSubmit:I}=useForm(),w=BB((e==null?void 0:e.children)||[]);useEffect(()=>{let O=w.filter(z=>z.dataType==="image");f(O),d(O);let H=w.filter(z=>z.dataType==="video");v(H),u(H);},[w]);let k=O=>{d(H=>H.filter(z=>z.data.fileId!==O));},T=O=>{u(H=>H.filter(z=>z.data.videoFileId.original!==O));},L=()=>{var Z,Q;let O=l.map(B=>({fileId:B.data.fileId,type:PostContentType.IMAGE})),H=p.map(B=>({fileId:B.data.videoFileId.original,type:"video"})),z=[...O,...H];a&&x({data:{text:a.text},metadata:{mentioned:(Z=a.mentioned)!=null?Z:[]},mentionees:(Q=a.mentionees)!=null?Q:[],attachments:z});},D=O=>{s(H=>N(c({},H),{mentioned:O.mentioned,text:O.text,mentionees:O.mentionees}));},U=()=>{n({pageId:t,type:"confirm",title:"Discard this post?",content:"The post will be permanently deleted. It cannot be undone.",onOk:()=>{r();},okText:"Discard",cancelText:"Keep editing"});},j=!Bg(g,l),E=!Bg(y,p);return R.createElement("div",{className:Ca.editPost,style:o},R.createElement("form",{onSubmit:I(L),className:Ca.editPost__formMediaAttachment},R.createElement("div",{className:Ca.editPost__topBar},R.createElement(Mr,{pageId:t,onPress:U}),R.createElement(Sg,{pageId:t}),R.createElement(kg,{pageId:t,type:"submit",onPress:()=>I(L),isDisabled:e.data.text==a.text&&!j&&!E||!(a.text.length>0||l.length>0||p.length>0)})),R.createElement(Ki,{communityId:e.targetType==="community"?e.targetId:void 0,onChange:D,mentionContainer:C.current,dataValue:{data:{text:e.data.text},metadata:{mentioned:((q=e.metadata)==null?void 0:q.mentioned)||[]},mentionees:e.mentionees}}),R.createElement(Eg,{postMedia:l,onRemove:k}),R.createElement(Eg,{postMedia:p,onRemove:T}),R.createElement("div",{ref:C,className:Ca.mentionTextInput_item}),R.createElement("div",{className:Ca.editPost__notiWrap},b&&R.createElement(Os,{content:"Posting...",icon:R.createElement(ya,null),className:Ca.editPost__status}),M&&R.createElement(Os,{content:"Failed to edit post",icon:R.createElement(Gt,{className:Ca.editPost_infoIcon}),className:Ca.editPost__status,duration:3e3}))))}var Eme=e=>e.mode==="create";function Ag(e){if(Eme(e)){let{targetId:t,targetType:o,community:r}=e;return R.createElement(Tg,{mode:"create",targetId:t,targetType:o,community:r})}else {let{post:t}=e;return R.createElement(Lg,{mode:"edit",post:t})}}var Ame=e=>R.createElement("svg",c({width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M18.3804 2.25391C19.2593 3.13281 19.2593 4.53906 18.3804 5.41797L15.7437 8.05469L14.5483 9.25L5.97021 17.8281L1.9624 18.25C1.92725 18.25 1.89209 18.25 1.85693 18.25C1.36475 18.25 0.978027 17.8281 1.04834 17.3359L1.47021 13.3281L10.0483 4.75L11.2437 3.55469L13.8804 0.917969C14.3022 0.496094 14.8999 0.25 15.4624 0.25C16.0249 0.25 16.6226 0.496094 17.0444 0.917969L18.3804 2.25391ZM5.19678 16.2109L13.353 8.08984L14.4429 7L12.2983 4.85547L11.2085 5.94531L3.0874 14.1016L2.84131 16.457L5.19678 16.2109ZM17.1851 4.22266C17.396 4.01172 17.396 3.66016 17.1851 3.44922L15.8491 2.11328C15.7085 1.97266 15.5327 1.9375 15.4624 1.9375C15.3921 1.9375 15.2163 1.97266 15.0757 2.11328L13.4937 3.66016L15.6382 5.80469L17.1851 4.22266Z"})),Dme=e=>R.createElement("svg",c({width:"16",height:"19",viewBox:"0 0 16 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.3608 3.0625C15.6421 3.0625 15.9233 3.34375 15.9233 3.625V4.1875C15.9233 4.50391 15.6421 4.75 15.3608 4.75H14.7983L14.0249 16.668C13.9897 17.5469 13.2163 18.25 12.3374 18.25H3.72412C2.84521 18.25 2.07178 17.5469 2.03662 16.668L1.29834 4.75H0.73584C0.419434 4.75 0.17334 4.50391 0.17334 4.1875V3.625C0.17334 3.34375 0.419434 3.0625 0.73584 3.0625H3.61865L4.81396 1.09375C5.09521 0.636719 5.72803 0.25 6.25537 0.25H9.80615C10.3335 0.25 10.9663 0.636719 11.2476 1.09375L12.4429 3.0625H15.3608ZM6.25537 1.9375L5.5874 3.0625H10.4741L9.80615 1.9375H6.25537ZM12.3374 16.5625L13.0757 4.75H2.98584L3.72412 16.5625H12.3374Z"})),Hme=e=>R.createElement("svg",c({width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M12.3125 3.0625C13.543 3.0625 14.8789 2.64062 16.1445 2.07812C17.2344 1.62109 18.5 2.42969 18.5 3.625V12.0625C18.5 12.6602 18.1836 13.1875 17.7266 13.5039C16.7773 14.1016 15.2656 14.875 13.1914 14.875C10.8008 14.875 9.21875 13.75 7.49609 13.75C5.52734 13.75 4.33203 14.1719 3.03125 14.7695V17.6875C3.03125 18.0039 2.75 18.25 2.46875 18.25H1.90625C1.58984 18.25 1.34375 18.0039 1.34375 17.6875V3.41406C0.816406 3.13281 0.5 2.57031 0.5 1.9375C0.5 0.988281 1.30859 0.214844 2.29297 0.285156C3.10156 0.320312 3.76953 0.953125 3.83984 1.76172C3.83984 1.79688 3.875 1.90234 3.875 1.9375C3.875 2.11328 3.80469 2.35938 3.76953 2.5C4.54297 2.18359 5.49219 1.9375 6.61719 1.9375C9.00781 1.9375 10.5898 3.0625 12.3125 3.0625ZM16.8125 12.0625V3.625C15.6875 4.15234 13.8242 4.75 12.3125 4.75C10.2031 4.75 8.72656 3.625 6.61719 3.625C5.14062 3.625 3.76953 4.22266 3.03125 4.75V12.9062C4.12109 12.4141 5.98438 12.0625 7.49609 12.0625C9.60547 12.0625 11.082 13.1875 13.1914 13.1875C14.668 13.1875 16.0391 12.625 16.8125 12.0625Z"})),E5=({post:e,pageId:t="*",componentId:o="*",elementId:r="*",onCloseMenu:n,onPostDeleted:i})=>{let{success:a,error:s}=Po(),l=useMemo(()=>(e==null?void 0:e.targetType)==="community",[e==null?void 0:e.targetType]),{community:d}=Mt({communityId:e==null?void 0:e.targetId,shouldCall:l}),{isCommunityModerator:p,isOwner:u}=bB({post:e,community:d}),{AmityPostContentComponentBehavior:g}=xt(),{removeDrawerData:f}=qm(),{showEditPostButton:y,showDeletePostButton:v,showReportPostButton:C}=useMemo(()=>p?u?{showEditPostButton:!0,showDeletePostButton:!0,showReportPostButton:!1}:{showEditPostButton:!1,showDeletePostButton:!0,showReportPostButton:!0}:u?{showEditPostButton:!0,showDeletePostButton:!0,showReportPostButton:!1}:{showEditPostButton:!1,showDeletePostButton:!1,showReportPostButton:!0},[p,u]),{isFlaggedByMe:h,isLoading:x,mutateReportPost:b,mutateUnReportPost:M}=wB({post:e,isFlaggable:C,onReportSuccess:()=>{a({content:"Post reported."});},onReportError:()=>{s({content:"Failed to report post."});},onUnreportSuccess:()=>{a({content:"Post unreported."});},onUnreportError:()=>{s({content:"Failed to unreport post."});}}),{confirm:I}=Ye(),{mutateAsync:w}=useMutation({mutationFn:()=>_(void 0,null,function*(){return n(),PostRepository.hardDeletePost(e.postId)}),onSuccess:()=>{a({content:"Post deleted."}),i==null||i(e);},onError:()=>{s({content:"Failed to delete post."});}}),k=()=>{n(),I({title:"Delete post",content:"This post will be permanently deleted.",cancelText:"Cancel",okText:"Delete",onOk:()=>w(),pageId:t,componentId:o});};return R.createElement("div",{className:Un.postMenu},C&&!x?R.createElement(F,{className:Un.postMenu__item,onPress:()=>{h?M():b(),f();}},R.createElement(Hme,{className:Un.postMenu__reportPost__icon}),R.createElement(S.Title,{className:Un.postMenu__reportPost__text},h?"Unreport post":"Report post")):null,y?R.createElement(F,{className:Un.postMenu__item,onPress:()=>{var T;f(),(T=g==null?void 0:g.goToPostComposerPage)==null||T.call(g,{mode:"edit",post:e});}},R.createElement(Ame,{className:Un.postMenu__editPost__icon}),R.createElement(S.Title,{className:Un.postMenu__editPost__text},"Edit post")):null,v?R.createElement(F,{className:Un.postMenu__item,onPress:()=>k()},R.createElement(Dme,{className:Un.postMenu__deletePost__icon}),R.createElement(S.Title,{className:Un.postMenu__deletePost__text},"Delete post")):null)};var FB=({post:e,community:t})=>{let{currentUserId:o}=De(),r=useMemo(()=>(e==null?void 0:e.targetType)==="community"&&(e==null?void 0:e.targetId)===(t==null?void 0:t.communityId),[e==null?void 0:e.targetType,t==null?void 0:t.communityId]),{moderators:n}=im({communityId:t==null?void 0:t.communityId,shouldCall:r}),i=useMemo(()=>r?n.some(s=>s.userId===(e==null?void 0:e.postedUserId)):!1,[n,r,e==null?void 0:e.postedUserId]),a=(e==null?void 0:e.postedUserId)===o;return {isCommunityModerator:i,isOwner:a}};var OB=({threshold:e,elementRef:t})=>{let[o,r]=useState(!1);return useEffect(()=>{if(!t.current)return;let n=new IntersectionObserver(i=>{i.forEach(a=>{let s=a.isIntersecting;r(s);});},{threshold:e});return n.observe(t.current),()=>{n.disconnect();}},[e,t]),{isVisible:o}};var zB={announcementBadge:"Kd"};var Dg={featuredIcon__background:"Nd",featuredIcon__textColor:"Od"};var UB=r=>{var n=r,{backgroundColor:e,textColor:t}=n,o=P(n,["backgroundColor","textColor"]);return R.createElement("svg",c({width:"73",height:"26",viewBox:"0 0 73 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),R.createElement("path",{d:"M0 0H69C71.2091 0 73 1.79086 73 4V22C73 24.2091 71.2091 26 69 26H0V0Z",className:Dg.featuredIcon__background,fill:e}),R.createElement("path",{d:"M9.12988 18V8.84033H14.9697V10.2178H10.7676V12.9282H14.6079V14.2612H10.7676V18H9.12988ZM19.5108 18.1396C17.4478 18.1396 16.1973 16.7559 16.1973 14.5469V14.5405C16.1973 12.3569 17.4605 10.9287 19.4346 10.9287C21.4088 10.9287 22.6275 12.3125 22.6275 14.4072V14.9277H17.7779C17.797 16.1719 18.4698 16.8955 19.5426 16.8955C20.3995 16.8955 20.8883 16.4639 21.0406 16.1465L21.0596 16.1021H22.564L22.545 16.1592C22.3228 17.0542 21.3961 18.1396 19.5108 18.1396ZM19.4537 12.1665C18.5714 12.1665 17.9112 12.7632 17.7906 13.8677H21.085C20.9771 12.7314 20.336 12.1665 19.4537 12.1665ZM26.0197 18.1143C24.6994 18.1143 23.7409 17.3018 23.7409 16.0386V16.0259C23.7409 14.7881 24.6867 14.0645 26.3752 13.9629L28.1588 13.855V13.2583C28.1588 12.5664 27.7082 12.1855 26.8576 12.1855C26.1339 12.1855 25.6642 12.4458 25.5055 12.9028L25.4992 12.9282H24.0075L24.0138 12.8711C24.1662 11.7031 25.2834 10.9287 26.9338 10.9287C28.7174 10.9287 29.7204 11.792 29.7204 13.2583V18H28.1588V17.0479H28.0509C27.6701 17.7207 26.9338 18.1143 26.0197 18.1143ZM25.3024 15.9624C25.3024 16.5527 25.8039 16.9019 26.5021 16.9019C27.4543 16.9019 28.1588 16.2798 28.1588 15.4546V14.896L26.5973 14.9976C25.715 15.0547 25.3024 15.3784 25.3024 15.9497V15.9624ZM34.2678 18.0317C32.6746 18.0317 32.0207 17.4985 32.0207 16.1592V12.2871H30.9416V11.062H32.0207V9.36084H33.6267V11.062H35.093V12.2871H33.6267V15.7847C33.6267 16.4766 33.8996 16.7686 34.5598 16.7686C34.782 16.7686 34.9026 16.7622 35.093 16.7432V17.9619C34.8645 18.0063 34.5725 18.0317 34.2678 18.0317ZM38.8851 18.1396C37.3236 18.1396 36.5238 17.2002 36.5238 15.5498V11.062H38.1043V15.188C38.1043 16.2607 38.5042 16.8066 39.4564 16.8066C40.4783 16.8066 41.0242 16.1465 41.0242 15.1055V11.062H42.6048V18H41.0242V16.9463H40.9163C40.5926 17.689 39.888 18.1396 38.8851 18.1396ZM44.4545 18V11.062H46.0351V12.1284H46.143C46.3778 11.3857 47.0126 10.9478 47.9267 10.9478C48.1679 10.9478 48.4154 10.9795 48.5678 11.0239V12.4395C48.3139 12.3887 48.0536 12.3506 47.7807 12.3506C46.727 12.3506 46.0351 12.979 46.0351 13.9692V18H44.4545ZM52.5757 18.1396C50.5127 18.1396 49.2622 16.7559 49.2622 14.5469V14.5405C49.2622 12.3569 50.5254 10.9287 52.4995 10.9287C54.4736 10.9287 55.6924 12.3125 55.6924 14.4072V14.9277H50.8428C50.8618 16.1719 51.5346 16.8955 52.6074 16.8955C53.4643 16.8955 53.9531 16.4639 54.1054 16.1465L54.1245 16.1021H55.6289L55.6098 16.1592C55.3877 17.0542 54.4609 18.1396 52.5757 18.1396ZM52.5185 12.1665C51.6362 12.1665 50.9761 12.7632 50.8554 13.8677H54.1499C54.042 12.7314 53.4009 12.1665 52.5185 12.1665ZM59.6939 18.1143C57.9546 18.1143 56.8502 16.7368 56.8502 14.5405V14.5278C56.8502 12.3188 57.9356 10.9478 59.6939 10.9478C60.6461 10.9478 61.4395 11.4175 61.8013 12.1665H61.9092V8.37695H63.4962V18H61.9092V16.9146H61.8013C61.4205 17.6699 60.6714 18.1143 59.6939 18.1143ZM60.189 16.7812C61.2681 16.7812 61.9346 15.9307 61.9346 14.5405V14.5278C61.9346 13.1377 61.2618 12.2808 60.189 12.2808C59.1163 12.2808 58.4561 13.1313 58.4561 14.5278V14.5405C58.4561 15.937 59.1099 16.7812 60.189 16.7812Z",className:Dg.featuredIcon__textColor,fill:t}))};var Og=({pageId:e="*",componentId:t="*"})=>{let o="announcement_badge",{config:r,isExcluded:n,accessibilityId:i,uiReference:a,defaultConfig:s}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(UB,{className:zB.announcementBadge}),imgIcon:()=>R.createElement("img",{src:r.icon,alt:a}),configIconName:r.icon,defaultIconName:s.icon})};var $B={pinBadge__icon:"Pd"};var jB=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"29",height:"30",fill:"none",viewBox:"0 0 29 30"},e),R.createElement("path",{fill:e.fill,d:"M18.106 16.436c.575 1.547.53 3.27-.596 4.398a.74.74 0 01-1.06 0l-3.006-3.005-2.32 2.32c-.022.022-.067.022-.089.044l-1.59.53c-.2.067-.398-.132-.332-.331l.53-1.591.066-.066 2.32-2.32-3.005-3.006a.722.722 0 010-1.06c1.105-1.105 2.829-1.194 4.376-.62l2.917-2.342-.929-.928a.722.722 0 010-1.06l1.061-1.06a.74.74 0 011.06 0l6.011 6.01a.76.76 0 010 1.06l-1.06 1.06a.74.74 0 01-1.061 0l-.95-.95-2.343 2.917z"}));var Ug=({pageId:e,componentId:t})=>{let o="pin_badge",{config:r,isExcluded:n,accessibilityId:i,uiReference:a,defaultConfig:s}=A({pageId:e,componentId:t,elementId:o});return n?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(jB,{className:$B.pinBadge__icon}),imgIcon:()=>R.createElement("img",{src:r.icon,alt:a}),defaultIconName:s.icon,configIconName:r.icon})};var Zme=({pageId:e,post:t,hideTarget:o})=>{var s;let r=useMemo(()=>(t==null?void 0:t.targetType)==="community",[t==null?void 0:t.targetType]),{community:n}=Mt({communityId:t==null?void 0:t.targetId,shouldCall:r}),{goToCommunityProfilePage:i,onClickUser:a}=Le();return n?R.createElement("div",{className:Ce.postTitle},t.creator&&R.createElement("div",{className:Ce.postTitle__user__container},R.createElement(S.BodyBold,{className:Ce.postTitle__text},R.createElement(F,{onPress:()=>a(t.creator.userId)},"aensuthasneuthasnetusantheusnatheusnthasenuthasnteuhsanteuhsnatehusntaheusntaheu")),t.creator.isBrand?null:R.createElement(Qc,{className:Ce.postTitle__brandIcon}),n?R.createElement(Rc,{className:Ce.postTitle__icon}):null),n&&!o&&R.createElement(R.Fragment,null,R.createElement(F,{onPress:()=>{i(n.communityId);}},R.createElement(S.BodyBold,{className:Ce.postTitle__text},n.displayName)))):R.createElement("div",{className:Ce.postTitle__user__container},R.createElement(F,{onPress:()=>t.creator&&a(t.creator.userId)},R.createElement(S.BodyBold,{className:Ce.postTitle__text},(s=t.creator)==null?void 0:s.displayName)),t.creator.isBrand?null:R.createElement(Qc,{className:Ce.postTitle__brandIcon}))};var Qme=({post:e,onImageClick:t,onVideoClick:o})=>R.createElement(R.Fragment,null,R.createElement(hg,{post:e,onImageClick:t}),R.createElement(Cg,{post:e,onVideoClick:o})),pn=({pageId:e="*",post:t,onClick:o,onPostDeleted:r,category:n,hideMenu:i=!1,hideTarget:a=!1,style:s})=>{var Kn,Er,qr,vn,Br,Kr,ce;let l="post_content",{themeStyles:d}=te({pageId:e,componentId:l}),{post:p}=Pi(t==null?void 0:t.postId),{setDrawerData:u,removeDrawerData:g}=qm(),[f,y]=useState(!1),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(null),[I,w]=useState(null),[k,T]=useState(null),[L,D]=useState(0),{page:U}=Le(),j=useRef(null),E=useMemo(()=>{if(t!=null&&p!=null)return ln(t==null?void 0:t.updatedAt).unix()>ln(p==null?void 0:p.updatedAt).unix()?t:p;if(p!=null)return p;if(t!=null)return t},[t,p]);Dc({postId:E==null?void 0:E.postId,level:SubscriptionLevels.POST,shouldSubscribe:f});let V=useMemo(()=>(E==null?void 0:E.targetType)==="community",[E==null?void 0:E.targetType]),{community:G}=Mt({communityId:E==null?void 0:E.targetId,shouldCall:V}),{isCommunityModerator:q}=FB({post:E,community:G});useEffect(()=>{var ue;E!=null&&T(((ue=E.myReactions)==null?void 0:ue[0])||null);},[E==null?void 0:E.myReactions]),useEffect(()=>{E!=null&&D((E==null?void 0:E.reactionsCount)||0);},[E==null?void 0:E.reactionsCount]);let {mutateAsync:O}=useMutation({mutationFn:ue=>_(void 0,null,function*(){if(k&&k!==ue)try{yield ReactionRepository.removeReaction("post",E==null?void 0:E.postId,k);}catch(Jr){console.log();}return ReactionRepository.addReaction("post",E==null?void 0:E.postId,ue)}),onMutate:ue=>{y(!0),D(L+1),T(ue);}}),{mutateAsync:H}=useMutation({mutationFn:ue=>_(void 0,null,function*(){return ReactionRepository.removeReaction("post",E==null?void 0:E.postId,ue)}),onMutate:()=>{y(!0),D(Math.max(0,L-1)),T(null);}}),z=ue=>{k?H(k):O(ue);},Z=ue=>{C(!0),M(ue);},Q=()=>{C(!1),M(null);},B=ue=>{x(!0),w(ue);},$=()=>{x(!1),w(null);},pe=((Kn=E==null?void 0:E.reactions)==null?void 0:Kn.like)>0,Ze=((Er=E==null?void 0:E.reactions)==null?void 0:Er.love)>0,ct=((qr=E==null?void 0:E.reactions)==null?void 0:qr.fire)>0,$t=((vn=E==null?void 0:E.reactions)==null?void 0:vn.happy)>0,Vt=((Br=E==null?void 0:E.reactions)==null?void 0:Br.crying)>0,ye=pe||Ze||ct||$t||Vt,{isVisible:Cn}=OB({threshold:.6,elementRef:j});return useEffect(()=>{var ue;U.type!=="PostDetailPage"&&Cn&&((ue=E.analytics)==null||ue.markAsViewed());},[E,Cn,U.type]),R.createElement("div",{ref:j,className:Ce.postContent,style:d},(n==="announcement"||n==="pin_and_announcement")&&R.createElement(Og,{pageId:e,componentId:l}),R.createElement("div",{className:Ce.postContent__bar,"data-type":s},R.createElement("div",{className:Ce.postContent__bar__userAvatar},R.createElement(Vo,{userId:E==null?void 0:E.postedUserId})),R.createElement("div",{className:Ce.postContent__bar__detail},R.createElement("div",null,R.createElement(Zme,{post:E,hideTarget:a})),R.createElement("div",{className:Ce.postContent__bar__information__subtitle},q?R.createElement("div",{className:Ce.postContent__bar__information__subtitle__moderator},R.createElement(I1,{pageId:e,componentId:l}),R.createElement("span",{className:Ce.postContent__bar__information__subtitle__separator},"\u2022")):null,R.createElement(w1,{timestamp:E.createdAt}),E.createdAt!==E.editedAt&&R.createElement(S.Caption,{className:Ce.postContent__bar__information__editedTag},"(edited)"))),R.createElement("div",{className:Ce.postContent__wrapRightMenu},(n==="pin"||n==="pin_and_announcement")&&R.createElement(Ug,{pageId:e,componentId:l}),s==="feed"?R.createElement("div",{className:Ce.postContent__bar__actionButton},!i&&R.createElement(Yc,{pageId:e,componentId:l,onClick:()=>u({content:R.createElement(E5,{post:E,onCloseMenu:()=>g(),pageId:e,componentId:l,onPostDeleted:r})})})):null)),R.createElement("div",{className:Ce.postContent__content_and_reactions},R.createElement("div",{className:Ce.postContent__content},R.createElement(yg,{text:(Kr=E==null?void 0:E.data)==null?void 0:Kr.text,mentioned:(ce=E==null?void 0:E.metadata)==null?void 0:ce.mentioned,mentionees:E==null?void 0:E.mentioness}),E.children.length>0?R.createElement(Qme,{post:E,onImageClick:Z,onVideoClick:B}):null),s==="detail"?R.createElement("div",{className:Ce.postContent__reactions_and_comments},R.createElement("div",{className:Ce.postContent__reactionsBar,onClick:()=>u({content:R.createElement(Om,{pageId:e,referenceId:E.postId,referenceType:"post"})})},ye?R.createElement("div",{className:Ce.postContent__reactionsBar__reactions},Vt&&R.createElement(lB,{className:Ce.postContent__reactionsBar__reactions__icon}),$t&&R.createElement(mB,{className:Ce.postContent__reactionsBar__reactions__icon}),ct&&R.createElement(cB,{className:Ce.postContent__reactionsBar__reactions__icon}),Ze&&R.createElement(dB,{className:Ce.postContent__reactionsBar__reactions__icon}),pe&&R.createElement(pB,{className:Ce.postContent__reactionsBar__reactions__icon})):null,R.createElement(S.Caption,{className:Ce.postContent__reactionsBar__reactions__count},`${ob((E==null?void 0:E.reactionsCount)||0)} ${(E==null?void 0:E.reactionsCount)===1?"like":"likes"}`)),R.createElement(S.Caption,{className:Ce.postContent__commentsCount},`${(E==null?void 0:E.commentsCount)||0} ${(E==null?void 0:E.commentsCount)===1?"comment":"comments"}`)):null,!(G!=null&&G.isJoined)&&U.type==="CommunityProfilePage"?R.createElement(R.Fragment,null,R.createElement(S.Body,{className:Ce.postContent__notMember},"Join community to interact with all posts")):!(G!=null&&G.isJoined)&&U.type==="PostDetailPage"?null:R.createElement(R.Fragment,null,R.createElement("div",{className:Ce.postContent__divider}),R.createElement("div",{className:Ce.postContent__reactionBar},R.createElement("div",{className:Ce.postContent__reactionBar__leftPane},R.createElement(V3,{pageId:e,componentId:l,reactionsCount:s==="feed"?L:void 0,myReaction:k,defaultIconClassName:Ce.postContent__reactionBar__leftPane__icon,imgIconClassName:Ce.postContent__reactionBar__leftPane__iconImg,onReactionClick:z}),R.createElement(pg,{pageId:e,componentId:l,commentsCount:s==="feed"?E.commentsCount:void 0,defaultIconClassName:Ce.postContent__reactionBar__leftPane__icon,imgIconClassName:Ce.postContent__reactionBar__leftPane__iconImg,onPress:()=>o==null?void 0:o()})),R.createElement("div",{className:Ce.postContent__reactionBar__rightPane},R.createElement(dg,{pageId:e,componentId:l}))))),v&&typeof b=="number"?R.createElement(hB,{post:E,onClose:Q,initialImageIndex:b}):null,h&&typeof I=="number"?R.createElement(vB,{post:E,onClose:$,initialVideoIndex:I}):null)};var St={postContentSkeleton:"Qd",postContentSkeleton__bar:"Wd",postContentSkeleton__bar__information:"Zd",postContentSkeleton__content:"_d",postContentSkeleton__animation:"e0","skeleton-pulse":"Qe",postContentSkeleton__bar__userAvatar:"r0",postContentSkeleton__bar__information__title:"a0",postContentSkeleton__bar__information__subtitle:"o0",postContentSkeleton__content__bar1:"t0",postContentSkeleton__content__bar2:"i0",postContentSkeleton__content__bar3:"l0"};var nd=({pageId:e="*"})=>{let t="post_content",{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return R.createElement("div",{"data-qa-anchor":o,style:s,className:sr(St.postContentSkeleton,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar__userAvatar,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__bar__information,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__bar__information__title,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__bar__information__subtitle,St.postContentSkeleton__animation)}))),R.createElement("div",{className:sr(St.postContentSkeleton__content,St.postContentSkeleton__animation)},R.createElement("div",{className:sr(St.postContentSkeleton__content__bar1,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__content__bar2,St.postContentSkeleton__animation)}),R.createElement("div",{className:sr(St.postContentSkeleton__content__bar3,St.postContentSkeleton__animation)})))};function D1({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=P(n,["items"]);return c({communities:o},r)}var QB={myCommunitiesList:"s0"};var B5=({pageId:e="*"})=>{let t="my_communities",{themeStyles:o}=te({pageId:e,componentId:t}),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}});return R.createElement("div",{style:o,className:QB.myCommunitiesList},R.createElement(hs,{pageId:e,communityCollection:r,isLoading:a,onLoadMore:()=>{n&&a===!1&&i();}}))};var Jme=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"161",height:"161",viewBox:"0 0 161 161",fill:"none"},R.createElement("path",{d:"M130.1 24.5H34.0996C29.6813 24.5 26.0996 28.0817 26.0996 32.5V128.5C26.0996 132.918 29.6813 136.5 34.0996 136.5H130.1C134.518 136.5 138.1 132.918 138.1 128.5V32.5C138.1 28.0817 134.518 24.5 130.1 24.5Z",fill:"#292B32"}),R.createElement("path",{d:"M43.7002 68.2H44.2002H151.7C152.628 68.2 153.519 68.5688 154.175 69.2251C154.831 69.8815 155.2 70.7718 155.2 71.7V91.7C155.2 92.6283 154.831 93.5185 154.175 94.1749C153.519 94.8313 152.628 95.2 151.7 95.2H43.7002C42.7719 95.2 41.8817 94.8313 41.2253 94.1749C40.5689 93.5185 40.2002 92.6283 40.2002 91.7V71.7C40.2002 70.7718 40.5689 69.8815 41.2253 69.2251C41.8817 68.5688 42.7719 68.2 43.7002 68.2Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M90.9002 74.1H70.1002C68.7747 74.1 67.7002 75.1745 67.7002 76.5C67.7002 77.8255 68.7747 78.9 70.1002 78.9H90.9002C92.2257 78.9 93.3002 77.8255 93.3002 76.5C93.3002 75.1745 92.2257 74.1 90.9002 74.1Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M105.3 84.5H70.1002C68.7747 84.5 67.7002 85.5745 67.7002 86.9C67.7002 88.2255 68.7747 89.3 70.1002 89.3H105.3C106.626 89.3 107.7 88.2255 107.7 86.9C107.7 85.5745 106.626 84.5 105.3 84.5Z",fill:"#40434E"}),R.createElement("path",{d:"M53.6996 89.3C57.897 89.3 61.2996 85.8974 61.2996 81.7C61.2996 77.5027 57.897 74.1 53.6996 74.1C49.5022 74.1 46.0996 77.5027 46.0996 81.7C46.0996 85.8974 49.5022 89.3 53.6996 89.3Z",fill:"#40434E"}),R.createElement("path",{d:"M9.2998 102.6H9.7998H117.3C118.228 102.6 119.118 102.969 119.775 103.625C120.431 104.282 120.8 105.172 120.8 106.1V126.1C120.8 127.028 120.431 127.919 119.775 128.575C119.118 129.231 118.228 129.6 117.3 129.6H9.2998C8.37155 129.6 7.48131 129.231 6.82493 128.575C6.16855 127.919 5.7998 127.028 5.7998 126.1V106.1C5.7998 105.172 6.16855 104.282 6.82493 103.625C7.48131 102.969 8.37155 102.6 9.2998 102.6Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M56.4998 108.5H35.6998C34.3743 108.5 33.2998 109.575 33.2998 110.9C33.2998 112.225 34.3743 113.3 35.6998 113.3H56.4998C57.8253 113.3 58.8998 112.225 58.8998 110.9C58.8998 109.575 57.8253 108.5 56.4998 108.5Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M70.8998 118.9H35.6998C34.3743 118.9 33.2998 119.975 33.2998 121.3C33.2998 122.626 34.3743 123.7 35.6998 123.7H70.8998C72.2253 123.7 73.2998 122.626 73.2998 121.3C73.2998 119.975 72.2253 118.9 70.8998 118.9Z",fill:"#40434E"}),R.createElement("path",{d:"M19.3002 123.7C23.4976 123.7 26.9002 120.297 26.9002 116.1C26.9002 111.903 23.4976 108.5 19.3002 108.5C15.1028 108.5 11.7002 111.903 11.7002 116.1C11.7002 120.297 15.1028 123.7 19.3002 123.7Z",fill:"#40434E"}),R.createElement("path",{d:"M9.2998 33.8H117.3C119.233 33.8 120.8 35.367 120.8 37.3V57.3C120.8 59.233 119.233 60.8 117.3 60.8H9.2998C7.36681 60.8 5.7998 59.233 5.7998 57.3V37.3C5.7998 35.367 7.36681 33.8 9.2998 33.8Z",fill:"#292B32",stroke:"#40434E"}),R.createElement("path",{opacity:"0.3",d:"M54.8992 39.7H34.0992C32.7737 39.7 31.6992 40.7745 31.6992 42.1C31.6992 43.4255 32.7737 44.5 34.0992 44.5H54.8992C56.2247 44.5 57.2992 43.4255 57.2992 42.1C57.2992 40.7745 56.2247 39.7 54.8992 39.7Z",fill:"#40434E"}),R.createElement("path",{opacity:"0.15",d:"M69.2992 50.1H34.0992C32.7737 50.1 31.6992 51.1745 31.6992 52.5C31.6992 53.8255 32.7737 54.9 34.0992 54.9H69.2992C70.6247 54.9 71.6992 53.8255 71.6992 52.5C71.6992 51.1745 70.6247 50.1 69.2992 50.1Z",fill:"#40434E"}),R.createElement("path",{d:"M19.3002 54.9C23.4976 54.9 26.9002 51.4974 26.9002 47.3C26.9002 43.1026 23.4976 39.7 19.3002 39.7C15.1028 39.7 11.7002 43.1026 11.7002 47.3C11.7002 51.4974 15.1028 54.9 19.3002 54.9Z",fill:"#40434E"})),Xme=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"161",height:"160",viewBox:"0 0 161 160",fill:"none"},R.createElement("path",{d:"M130.452 24H34.4521C30.0339 24 26.4521 27.5817 26.4521 32V128C26.4521 132.418 30.0339 136 34.4521 136H130.452C134.87 136 138.452 132.418 138.452 128V32C138.452 27.5817 134.87 24 130.452 24Z",fill:"#EBECEF"}),R.createElement("path",{d:"M44.0522 67.7H44.5522H152.052C152.981 67.7 153.871 68.0688 154.527 68.7251C155.184 69.3815 155.552 70.2718 155.552 71.2V91.2C155.552 92.1283 155.184 93.0185 154.527 93.6749C153.871 94.3313 152.981 94.7 152.052 94.7H44.0522C43.124 94.7 42.2337 94.3313 41.5774 93.6749C40.921 93.0185 40.5522 92.1283 40.5522 91.2V71.2C40.5522 70.2718 40.921 69.3815 41.5774 68.7251C42.2337 68.0688 43.124 67.7 44.0522 67.7Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M91.2523 73.6H70.4522C69.1268 73.6 68.0522 74.6745 68.0522 76C68.0522 77.3255 69.1268 78.4 70.4522 78.4H91.2523C92.5777 78.4 93.6523 77.3255 93.6523 76C93.6523 74.6745 92.5777 73.6 91.2523 73.6Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M105.652 84H70.4522C69.1268 84 68.0522 85.0745 68.0522 86.4C68.0522 87.7255 69.1268 88.8 70.4522 88.8H105.652C106.978 88.8 108.052 87.7255 108.052 86.4C108.052 85.0745 106.978 84 105.652 84Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M54.0521 88.8C58.2495 88.8 61.6521 85.3974 61.6521 81.2C61.6521 77.0027 58.2495 73.6 54.0521 73.6C49.8548 73.6 46.4521 77.0027 46.4521 81.2C46.4521 85.3974 49.8548 88.8 54.0521 88.8Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M9.65234 102.1H10.1523H117.652C118.581 102.1 119.471 102.469 120.127 103.125C120.784 103.782 121.152 104.672 121.152 105.6V125.6C121.152 126.528 120.784 127.419 120.127 128.075C119.471 128.731 118.581 129.1 117.652 129.1H9.65234C8.72409 129.1 7.83385 128.731 7.17747 128.075C6.52109 127.419 6.15234 126.528 6.15234 125.6V105.6C6.15234 104.672 6.52109 103.782 7.17747 103.125C7.83385 102.469 8.72409 102.1 9.65234 102.1Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M56.8523 108H36.0523C34.7269 108 33.6523 109.075 33.6523 110.4C33.6523 111.725 34.7269 112.8 36.0523 112.8H56.8523C58.1778 112.8 59.2523 111.725 59.2523 110.4C59.2523 109.075 58.1778 108 56.8523 108Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M71.2523 118.4H36.0523C34.7269 118.4 33.6523 119.475 33.6523 120.8C33.6523 122.126 34.7269 123.2 36.0523 123.2H71.2523C72.5778 123.2 73.6523 122.126 73.6523 120.8C73.6523 119.475 72.5778 118.4 71.2523 118.4Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M19.6522 123.2C23.8496 123.2 27.2522 119.797 27.2522 115.6C27.2522 111.403 23.8496 108 19.6522 108C15.4549 108 12.0522 111.403 12.0522 115.6C12.0522 119.797 15.4549 123.2 19.6522 123.2Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M9.65234 33.3H117.652C119.585 33.3 121.152 34.867 121.152 36.8V56.8C121.152 58.733 119.585 60.3 117.652 60.3H9.65234C7.71935 60.3 6.15234 58.733 6.15234 56.8V36.8C6.15234 34.867 7.71935 33.3 9.65234 33.3Z",fill:"white",stroke:"#EBECEF"}),R.createElement("path",{opacity:"0.3",d:"M55.2522 39.2H34.4522C33.1268 39.2 32.0522 40.2745 32.0522 41.6C32.0522 42.9255 33.1268 44 34.4522 44H55.2522C56.5777 44 57.6522 42.9255 57.6522 41.6C57.6522 40.2745 56.5777 39.2 55.2522 39.2Z",fill:"#A5A9B5"}),R.createElement("path",{opacity:"0.15",d:"M69.6522 49.6H34.4522C33.1268 49.6 32.0522 50.6745 32.0522 52C32.0522 53.3255 33.1268 54.4 34.4522 54.4H69.6522C70.9777 54.4 72.0522 53.3255 72.0522 52C72.0522 50.6745 70.9777 49.6 69.6522 49.6Z",fill:"#A5A9B5"}),R.createElement("path",{d:"M19.6522 54.4C23.8496 54.4 27.2522 50.9974 27.2522 46.8C27.2522 42.6026 23.8496 39.2 19.6522 39.2C15.4549 39.2 12.0522 42.6026 12.0522 46.8C12.0522 50.9974 15.4549 54.4 19.6522 54.4Z",fill:"#A5A9B5"})),Gg=({pageId:e="*",componentId:t="*"})=>{let o="illustration",{currentTheme:r,accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:o});return s?null:R.createElement(ee,{defaultIconName:a.icon,configIconName:i.icon,imgIcon:()=>R.createElement("img",{src:i.icon,alt:l,"data-qa-anchor":n}),defaultIcon:()=>R.createElement("div",{"data-qa-anchor":n},r==="light"?R.createElement(Xme,null):R.createElement(Jme,null))})};var qB={description:"c0"};function Zg({pageId:e="*",componentId:t="*"}){let o="description",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(S.Caption,{className:qB.description,style:l,"data-qa-anchor":r},n.text)}var KB={title:"n0"};function H1({pageId:e="*",componentId:t="*",titleClassName:o}){let r="title",{accessibilityId:n,config:i,isExcluded:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:r});return a?null:R.createElement(S.Title,{className:sr(KB.title,o),style:s,"data-qa-anchor":n},i.text)}var L5={exploreCommunitiesButton:"d0",exploreCommunitiesButton__icon:"m0",exploreCommunitiesButton__text:"p0"};var n2e=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M7.85254 0.25C12.1338 0.25 15.6025 3.71875 15.6025 8C15.6025 12.2812 12.1338 15.75 7.85254 15.75C3.57129 15.75 0.102539 12.2812 0.102539 8C0.102539 3.71875 3.57129 0.25 7.85254 0.25ZM13.4463 5.25C12.79 3.9375 11.6963 2.90625 10.3525 2.3125C10.79 3.125 11.1338 4.125 11.3525 5.25H13.4463ZM7.85254 1.75C7.25879 1.75 6.32129 3.0625 5.85254 5.25H9.82129C9.35254 3.0625 8.41504 1.75 7.85254 1.75ZM1.60254 8C1.60254 8.4375 1.63379 8.875 1.72754 9.25H4.13379C4.10254 8.84375 4.10254 8.4375 4.10254 8C4.10254 7.59375 4.10254 7.1875 4.13379 6.75H1.72754C1.63379 7.15625 1.60254 7.59375 1.60254 8ZM2.22754 10.75C2.88379 12.0625 3.97754 13.125 5.32129 13.7188C4.88379 12.9062 4.54004 11.9062 4.32129 10.75H2.22754ZM4.32129 5.25C4.54004 4.125 4.88379 3.125 5.32129 2.3125C3.97754 2.90625 2.88379 3.9375 2.22754 5.25H4.32129ZM7.85254 14.25C8.41504 14.25 9.35254 12.9688 9.82129 10.75H5.85254C6.32129 12.9688 7.25879 14.25 7.85254 14.25ZM10.04 9.25C10.0713 8.875 10.1025 8.4375 10.1025 8C10.1025 7.5625 10.0713 7.15625 10.04 6.75H5.63379C5.60254 7.15625 5.60254 7.5625 5.60254 8C5.60254 8.4375 5.60254 8.875 5.63379 9.25H10.04ZM10.3525 13.7188C11.6963 13.125 12.79 12.0625 13.4463 10.75H11.3525C11.1338 11.9062 10.79 12.9062 10.3525 13.7188ZM11.54 9.25H13.9775C14.04 8.875 14.1025 8.4375 14.1025 8C14.1025 7.59375 14.04 7.15625 13.9775 6.75H11.54C11.5713 7.1875 11.6025 7.59375 11.6025 8C11.6025 8.4375 11.5713 8.84375 11.54 9.25Z"}));function Qg({pageId:e="*",componentId:t="*"}){let o="explore_communities_button",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement("div",{className:L5.exploreCommunitiesButton,"data-qa-anchor":r,style:l},R.createElement(n2e,{className:L5.exploreCommunitiesButton__icon}),R.createElement(S.BodyBold,{className:L5.exploreCommunitiesButton__text},n.text))}var JB={createCommunityButton:"g0"};function Wg({pageId:e="*",componentId:t="*",onClick:o}){let r="create_community_button",{accessibilityId:n,config:i,defaultConfig:a,isExcluded:s,uiReference:l,themeStyles:d}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement("div",{className:JB.createCommunityButton,onClick:()=>o(),"data-qa-anchor":n,style:d},R.createElement(ee,{defaultIcon:()=>R.createElement(R.Fragment,null),imgIcon:()=>R.createElement("img",{src:i.icon,alt:l}),configIconName:i.icon,defaultIconName:a.icon}),R.createElement(S.Body,null,i.text))}var qg={emptyNewsfeed:"h0",emptyNewsfeed__text:"f0"};function Xm({pageId:e="*"}){let t="empty_newsfeed",{accessibilityId:o,config:r,defaultConfig:n,isExcluded:i,uiReference:a,themeStyles:s}=te({pageId:e,componentId:t});return i?null:R.createElement("div",{className:qg.emptyNewsfeed},R.createElement(Gg,{pageId:e,componentId:t}),R.createElement("div",{className:qg.emptyNewsfeed__text},R.createElement(H1,{pageId:e,componentId:t}),R.createElement(Zg,{pageId:e,componentId:t})),R.createElement(Qg,{pageId:e,componentId:t}),R.createElement(Wg,{pageId:e,componentId:t,onClick:()=>{}}))}var O1={global_feed:"b0",global_feed__postContainer:"u0",global_feed__postSkeletonContainer:"v0",global_feed__pullToRefresh:"x0",global_feed__post__reactionBar__leftPane__icon:"w0",global_feed__post__reactionBar__leftPane__iconImg:"y0",global_feed__pullToRefresh__spinner:"k0",spin:"We",global_feed__divider:"j0",global_feed__post__divider:"z0",global_feed__post__reactionBar:"X0",global_feed__post__reactionBar__leftPane:"Y0",global_feed__post__reactionBar__rightPane:"C0",global_feed__intersection:"A0",global_feed__commentContainer:"M0"};var Kt={container:"S0",innerContainer:"E0",header:"F0",header__title:"I0",header__avatar:"R0",header__detail:"U0",content__text:"B0",content__imageContainer:"D0",content__image:"H0",footer:"Ze",footer__content__description:"L0",footer__content__headline:"T0",footer__left:"V0",footer__right:"q0",footer__content__button:"G0",footer__content__button__text:"J0",infoIcon__button:"K0",infoIcon:"N0"};var YB=({ad:e,avatarUrl:t,adImageUrl:o,themeStyles:r,onCallToActionClick:n})=>{var l;let[i,a]=useState(!1),s=()=>{n==null||n(e.callToActionUrl);};return R.createElement("div",{className:Kt.container,style:r},R.createElement("div",{className:Kt.innerContainer},R.createElement("div",{className:Kt.header},R.createElement("div",{className:Kt.header__avatar},R.createElement(vt,{avatarUrl:t,defaultImage:R.createElement(Am,null)})),R.createElement("div",{className:Kt.header__detail},R.createElement(S.BodyBold,{className:Kt.header__title},(l=e.advertiser)==null?void 0:l.name),R.createElement(Lm,null))),R.createElement("div",null,R.createElement(S.Body,{className:Kt.content__text},e.body),R.createElement("div",{className:Kt.content__imageContainer},R.createElement("img",{className:Kt.content__image,src:o})))),R.createElement(F,{className:Kt.infoIcon__button,onPress:()=>a(!0)},R.createElement(mn,{className:Kt.infoIcon})),R.createElement(F,{className:Kt.footer,"data-has-url":!!e.callToActionUrl,onPress:s},R.createElement("div",{className:Kt.footer__left},R.createElement(S.Body,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,Kt.footer__content__description)},e.description)}),R.createElement(S.BodyBold,{className:Kt.footer__content__headline},e.headline)),e.callToActionUrl?R.createElement("div",{className:Kt.footer__right},R.createElement(F,{className:Kt.footer__content__button,onPress:s},R.createElement(S.CaptionBold,{renderer:({typoClassName:d})=>R.createElement("div",{className:sr(d,Kt.footer__content__button__text)},e.callToAction)}))):null),R.createElement(t5,{ad:e,isOpen:i,onOpenChange:d=>a(d)}))};var RB=({pageId:e="*",ad:t})=>{var d,p,u,g,f,y;let o="post_content",{themeStyles:r}=te({pageId:e,componentId:o}),i=rt({fileId:(p=(d=t.advertiser)==null?void 0:d.avatar)==null?void 0:p.fileId})||((g=(u=t.advertiser)==null?void 0:u.avatar)==null?void 0:g.fileUrl)||"",s=rt({fileId:(f=t.image1_1)==null?void 0:f.fileId})||((y=t.image1_1)==null?void 0:y.fileUrl)||"";return R.createElement(YB,{themeStyles:r,avatarUrl:i,adImageUrl:s,ad:t,onCallToActionClick:v=>{window==null||window.open(v,"_blank");}})};var Kg=e=>(e==null?void 0:e.adId)!==void 0,A5=({pageId:e="*",componentId:t="*",items:o,isLoading:r,onFeedReachBottom:n,onPostDeleted:i})=>{let{accessibilityId:a,themeStyles:s}=te({pageId:e,componentId:t}),[l,d]=useState(null),{AmityGlobalFeedComponentBehavior:p}=xt();if(ko({node:l,onIntersect:()=>{n();}}),o.length===0&&!r)return R.createElement(Xm,{pageId:e});let u=(g,f)=>Kg(g)?f&&Kg(f)?`${f.adId}-${g.adId}`:`${f.postId}-${g.adId}`:g.postId;return R.createElement("div",{className:O1.global_feed,style:s,"data-qa-anchor":a},o.map((g,f)=>R.createElement("div",{key:u(g,o[Math.max(0,f-1)])},f!==0?R.createElement("div",{className:O1.global_feed__divider}):null,Kg(g)?R.createElement(RB,{ad:g}):R.createElement(F,{className:O1.global_feed__postContainer,onPress:()=>{var y;return (y=p==null?void 0:p.goToPostDetailPage)==null?void 0:y.call(p,{postId:g.postId})}},R.createElement(pn,{pageId:e,post:g,category:"general",style:"feed",onClick:()=>{var y;(y=p==null?void 0:p.goToPostDetailPage)==null||y.call(p,{postId:g.postId});},onPostDeleted:i})))),r?Array.from({length:2}).map((g,f)=>R.createElement("div",{key:f},R.createElement("div",{className:O1.global_feed__divider}),R.createElement("div",{className:O1.global_feed__postSkeletonContainer},R.createElement(nd,null)))):null,!r&&R.createElement("div",{ref:g=>d(g),className:O1.global_feed__intersection}))};var Ym={newsfeed:"O0",newsfeed__postList:"P0",newsfeed__postContainer:"Q0",newsfeed__pullToRefresh:"W0",newsfeed__post__reactionBar__leftPane__icon:"Z0",newsfeed__post__reactionBar__leftPane__iconImg:"_0",newsfeed__pullToRefresh__spinner:"em",spin:"_e",newsfeed__divider:"rm",newsfeed__post__divider:"am",newsfeed__post__reactionBar:"om",newsfeed__post__reactionBar__leftPane:"tm",newsfeed__post__reactionBar__rightPane:"im",newsfeed__intersection:"lm"};var y2e=e=>R.createElement("div",{className:Ym.newsfeed__pullToRefresh__spinner},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1122 5C11.1122 5.39449 10.7924 5.71429 10.3979 5.71429C10.0035 5.71429 9.68366 5.39449 9.68366 5V0.714286C9.68366 0.319797 10.0035 0 10.3979 0C10.7924 0 11.1122 0.319797 11.1122 0.714286V5ZM8.25509 6.28846C8.59673 6.09122 8.71378 5.65437 8.51654 5.31273L6.37368 1.60119C6.17644 1.25955 5.73959 1.1425 5.39795 1.33975C5.05631 1.53699 4.93926 1.97384 5.1365 2.31548L7.27936 6.02702C7.4766 6.36865 7.91346 6.48571 8.25509 6.28846ZM6.42496 6.88141C6.7666 7.07865 6.88366 7.51551 6.68641 7.85714C6.48917 8.19878 6.05232 8.31583 5.71068 8.11859L1.99914 5.97573C1.6575 5.77849 1.54045 5.34164 1.7377 5C1.93494 4.65836 2.37179 4.54131 2.71343 4.73855L6.42496 6.88141ZM6.11224 10C6.11224 9.60551 5.79244 9.28571 5.39795 9.28571H1.11223C0.717746 9.28571 0.397949 9.60551 0.397949 10C0.397949 10.3945 0.717746 10.7143 1.11224 10.7143H5.39795C5.79244 10.7143 6.11224 10.3945 6.11224 10ZM5.71068 11.8814C6.05232 11.6842 6.48917 11.8012 6.68641 12.1429C6.88366 12.4845 6.7666 12.9213 6.42497 13.1186L2.71343 15.2614C2.37179 15.4587 1.93494 15.3416 1.7377 15C1.54045 14.6584 1.6575 14.2215 1.99914 14.0243L5.71068 11.8814ZM8.25509 13.7115C7.91345 13.5143 7.4766 13.6313 7.27936 13.973L5.1365 17.6845C4.93926 18.0262 5.05631 18.463 5.39795 18.6603C5.73959 18.8575 6.17644 18.7404 6.37368 18.3988L8.51654 14.6873C8.71378 14.3456 8.59673 13.9088 8.25509 13.7115ZM10.3979 14.2857C10.0035 14.2857 9.68366 14.6055 9.68366 15V19.2857C9.68366 19.6802 10.0035 20 10.3979 20C10.7924 20 11.1122 19.6802 11.1122 19.2857V15C11.1122 14.6055 10.7924 14.2857 10.3979 14.2857ZM12.5408 6.28846C12.8824 6.48571 13.3193 6.36865 13.5165 6.02702L15.6594 2.31548C15.8566 1.97384 15.7396 1.53699 15.3979 1.33975C15.0563 1.1425 14.6195 1.25956 14.4222 1.60119L12.2794 5.31273C12.0821 5.65437 12.1992 6.09122 12.5408 6.28846ZM15.0852 8.11859C14.7436 8.31583 14.3067 8.19878 14.1095 7.85714C13.9122 7.51551 14.0293 7.07866 14.3709 6.88141L18.0825 4.73855C18.4241 4.54131 18.861 4.65836 19.0582 5C19.2554 5.34164 19.1384 5.77849 18.7968 5.97573L15.0852 8.11859ZM14.6837 10C14.6837 10.3945 15.0035 10.7143 15.3979 10.7143H19.6837C20.0782 10.7143 20.3979 10.3945 20.3979 10C20.3979 9.60551 20.0782 9.28571 19.6837 9.28571H15.3979C15.0035 9.28571 14.6837 9.60551 14.6837 10ZM14.3709 13.1186C14.0293 12.9213 13.9122 12.4845 14.1095 12.1429C14.3067 11.8012 14.7436 11.6842 15.0852 11.8814L18.7968 14.0243C19.1384 14.2215 19.2554 14.6584 19.0582 15C18.861 15.3416 18.4241 15.4587 18.0825 15.2614L14.3709 13.1186ZM12.5408 13.7115C12.1992 13.9088 12.0821 14.3456 12.2794 14.6873L14.4222 18.3988C14.6195 18.7404 15.0563 18.8575 15.3979 18.6603C15.7396 18.463 15.8566 18.0262 15.6594 17.6845L13.5165 13.973C13.3193 13.6313 12.8824 13.5143 12.5408 13.7115Z",fill:"url(#paint0_angular_1709_10374)"}),R.createElement("defs",null,R.createElement("radialGradient",{id:"paint0_angular_1709_10374",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.3979 10) scale(10)"},R.createElement("stop",{offset:"0.669733",stopColor:"#595F67"}),R.createElement("stop",{offset:"0.716307",stopColor:"#262626",stopOpacity:"0.01"}))))),D5=({pageId:e="*"})=>{let t="newsfeed",{themeStyles:o}=te({pageId:e,componentId:t}),r=useRef(0),[n,i]=useState(0),{itemWithAds:a,hasMore:s,isLoading:l,loadMore:d,fetch:p,refetch:u,removeItem:g}=bs();useEffect(()=>{p();},[]);let f=()=>{s&&!l&&d();};return a.length===0&&!l?R.createElement(Xm,{pageId:e}):R.createElement("div",{className:Ym.newsfeed,style:o,onDrag:y=>y.stopPropagation(),onTouchStart:y=>{r.current=y.touches[0].clientY;},onTouchMove:y=>{let v=y.touches[0].clientY;r.current>v||i(Math.min(v-r.current,100));},onTouchEnd:y=>{r.current=0,n>=75&&u(),i(0);}},R.createElement("div",{style:{"--asc-pull-to-refresh-height":`${n}px`},className:Ym.newsfeed__pullToRefresh},R.createElement(y2e,null)),R.createElement("div",{className:Ym.newsfeed__divider}),R.createElement($m,{type:"globalFeed",pageId:e}),a.length>0&&R.createElement("div",{className:Ym.newsfeed__divider}),R.createElement(A5,{isLoading:l,items:a,pageId:e,componentId:t,onFeedReachBottom:()=>f(),onPostDeleted:y=>g(y.postId)}))};var H5={postCreationButton:"sm",postCreationButton__icon:"cm"};var C2e=e=>R.createElement("svg",c({style:{pointerEvents:"none"},width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M13.0002 5.96667C13.5314 5.96667 14.0002 6.43542 14.0002 6.96667V7.96667C14.0002 8.52917 13.5314 8.96667 13.0002 8.96667H8.50016V13.4667C8.50016 14.0292 8.03141 14.4667 7.50016 14.4667H6.50016C5.93766 14.4667 5.50016 14.0292 5.50016 13.4667V8.96667H1.00016C0.437662 8.96667 0.000162125 8.52917 0.000162125 7.96667V6.96667C0.000162125 6.43542 0.437662 5.96667 1.00016 5.96667H5.50016V1.46667C5.50016 0.935425 5.93766 0.466675 6.50016 0.466675H7.50016C8.03141 0.466675 8.50016 0.935425 8.50016 1.46667V5.96667H13.0002Z"}));function Yg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onClick:n}){let i="post_creation_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(ee,{defaultIcon:()=>R.createElement(F,{style:u,className:H5.postCreationButton,onPress:n,"data-qa-anchor":a},R.createElement(C2e,{className:sr(H5.postCreationButton__icon,o)})),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:sr(H5.postCreationButton,r),onClick:n,"data-qa-anchor":a}),defaultIconName:l.icon,configIconName:s.icon})}var ad={globalSearchButton:"nm",globalSearchButton__icon:"dm",globalSearchButton__svg:"mm"};var x2e=e=>R.createElement("svg",c({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M15.7814 14.3104C16.0627 14.6229 16.0627 15.0917 15.7502 15.3729L14.8752 16.2479C14.5939 16.5604 14.1252 16.5604 13.8127 16.2479L10.7189 13.1542C10.5627 12.9979 10.5002 12.8104 10.5002 12.6229V12.0917C9.37516 12.9667 8.00016 13.4667 6.50016 13.4667C2.90641 13.4667 0.000162125 10.5604 0.000162125 6.96667C0.000162125 3.40417 2.90641 0.466675 6.50016 0.466675C10.0627 0.466675 13.0002 3.40417 13.0002 6.96667C13.0002 8.49792 12.4689 9.87292 11.6252 10.9667H12.1252C12.3127 10.9667 12.5002 11.0604 12.6564 11.1854L15.7814 14.3104ZM6.50016 10.9667C8.68766 10.9667 10.5002 9.18542 10.5002 6.96667C10.5002 4.77917 8.68766 2.96667 6.50016 2.96667C4.28141 2.96667 2.50016 4.77917 2.50016 6.96667C2.50016 9.18542 4.28141 10.9667 6.50016 10.9667Z"}));function Rg({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n}){let i="global_search_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{style:u,"data-qa-anchor":a,className:ad.globalSearchButton,onPress:n},R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:ad.globalSearchButton__icon},R.createElement(x2e,{className:sr(ad.globalSearchButton__svg,o)})),imgIcon:()=>R.createElement("img",{style:u,src:s.icon,alt:p,className:sr(ad.globalSearchButton__icon,r),"data-qa-anchor":a}),defaultIconName:l.icon,configIconName:s.icon}))}var oL={headerLabel:"pm"};function ef({pageId:e="*",componentId:t="*"}){let o="header_label",{accessibilityId:r,config:n,defaultConfig:i,isExcluded:a,uiReference:s,themeStyles:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(S.Heading,{className:oL.headerLabel,style:l,"data-qa-anchor":r},n.text)}var F5={topNavigation:"gm",topNavigationLeftPane:"hm",topNavigationRightPane:"fm"};var U1={socialHomePage:"bm",socialHomePage__topBar:"um",socialHomePage__topNavigation:"vm",socialHomePage__tabs:"er",socialHomePage__contents:"rr",socialHomePage__createPostMenu:"xm"};function tf({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="newsfeed_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{"data-qa-anchor":i,pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r()},a.text)}function of({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="explore_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r(),"data-qa-anchor":i},a.text)}function rf({pageId:e="*",componentId:t="*",isActive:o,onClick:r}){let n="my_communities_button",{accessibilityId:i,config:a,defaultConfig:s,isExcluded:l,uiReference:d,themeStyles:p}=A({pageId:e,componentId:t,elementId:n});return l?null:R.createElement(Dn,{"data-qa-anchor":i,pageId:e,componentId:t,elementId:n,isActive:o,onPress:()=>r==null?void 0:r()},a.text)}var O5=(r=>(r.Newsfeed="Newsfeed",r.Explore="Explore",r.MyCommunities="My communities",r))(O5||{});function nf(){let e="social_home_page",{themeStyles:t}=Xe({pageId:e}),{scrollPosition:o,onScroll:r}=bs(),[n,i]=useState("Newsfeed"),[a,s]=useState(!1),l=useRef(null),d=useRef(!0);useEffect(()=>{l.current&&(l.current.scrollTop=o,setTimeout(()=>{d.current=!1;},100));},[l.current]);let p=()=>{s(g=>!g);},u=g=>{d.current||r(g);};return useEffect(()=>{let g=()=>{a&&s(!1);};a?document.addEventListener("mousedown",g):document.removeEventListener("mousedown",g);},[a]),R.createElement("div",{className:U1.socialHomePage,style:t},R.createElement("div",{className:U1.socialHomePage__topBar},R.createElement("div",{className:U1.socialHomePage__topNavigation},R.createElement(z5,{pageId:e,selectedTab:n,onClickPostCreationButton:p})),R.createElement("div",{className:U1.socialHomePage__tabs},R.createElement(tf,{pageId:e,isActive:n==="Newsfeed",onClick:()=>i("Newsfeed")}),R.createElement(of,{pageId:e,isActive:n==="Explore",onClick:()=>i("Explore")}),R.createElement(rf,{pageId:e,isActive:n==="My communities",onClick:()=>i("My communities")}))),R.createElement("div",{className:U1.socialHomePage__contents,ref:l,onScroll:u},n==="Newsfeed"&&R.createElement(D5,{pageId:e}),n==="Explore"&&R.createElement(Mc,{isOpen:!1,toggleOpen:()=>{},hideSideMenu:!0}),n==="My communities"&&R.createElement(B5,{pageId:e})),a&&R.createElement("div",{className:U1.socialHomePage__createPostMenu},R.createElement(g5,{pageId:e})))}function z5({pageId:e="*",selectedTab:t,onClickPostCreationButton:o}){let r="top_navigation",{goToSocialGlobalSearchPage:n,goToMyCommunitiesSearchPage:i}=Le(),{isExcluded:a,themeStyles:s}=te({pageId:e,componentId:r}),l=()=>{switch(t){case"Newsfeed":n();break;case"Explore":break;case"My communities":i();break}};return a?null:R.createElement("div",{className:F5.topNavigation,style:s},R.createElement("div",{className:F5.topNavigationLeftPane},R.createElement(ef,{pageId:e,componentId:r})),R.createElement("div",{className:F5.topNavigationRightPane},R.createElement(Rg,{pageId:e,componentId:r,onPress:l}),t!=="Explore"&&R.createElement(Yg,{pageId:e,componentId:r,onClick:o})))}var va={container:"wm",headerImageContainer:"ym",headerImage:"km",backButton:"ar",moreButton:"or",content:"jm",name:"zm",description:"Xm",communityProfile__communityInfo__container:"Ym",divider:"Cm",statCount:"Am",statTitle:"Mm",menuButton:"Sm",communityProfile__joinButton__container:"Em",communityProfile__joinButton:"Fm",communityProfile__pendingPost__container:"Im",communityProfile__menuItem:"Rm",communityProfile__privateIcon:"Um",communityProfile__divider:"Bm"};var U5={communityTabs__container:"Dm",communityTabs__tab:"tr"};var sL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none",viewBox:"0 0 25 24"},R.createElement("path",{fill:"currentColor",d:"M9.219 14.5c-.492 0-.844-.352-.844-.844 0-.457.352-.844.844-.844h7.312c.457 0 .844.387.844.844a.833.833 0 01-.844.844H9.22zm0 3.375c-.492 0-.844-.352-.844-.844 0-.457.352-.843.844-.843h3.937c.457 0 .844.386.844.843a.833.833 0 01-.844.844H9.22zm0-6.75c-.492 0-.844-.352-.844-.844 0-.457.352-.844.844-.844h7.312c.457 0 .844.387.844.844a.833.833 0 01-.844.844H9.22zM18.5 3.25c1.23 0 2.25 1.02 2.25 2.25V19c0 1.266-1.02 2.25-2.25 2.25H7.25A2.221 2.221 0 015 19V5.5c0-1.23.984-2.25 2.25-2.25H18.5zM19.063 19V7.75H6.688V19c0 .316.246.563.562.563H18.5a.578.578 0 00.563-.563z"}));var mL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"35",height:"34",fill:"none",viewBox:"0 0 35 34"},R.createElement("path",{fill:"currentColor",d:"M21.998 18.295c.372 2.014-.15 4.027-1.567 5.444a.833.833 0 01-1.193 0l-3.58-3.58-2.585 2.586c-.025.025-.074.025-.1.05l-1.59.795c-.224.125-.497-.149-.373-.373l.795-1.59.075-.075 2.585-2.585-3.58-3.58c-.348-.348-.348-.845 0-1.194 1.418-1.416 3.406-1.963 5.42-1.59l1.218-.92-.671-.671c-.348-.348-.348-.846 0-1.194l2.386-2.386a.833.833 0 011.194 0l6.761 6.761a.856.856 0 010 1.194l-2.386 2.386a.833.833 0 01-1.194 0l-.696-.696-.92 1.218zm-9.273-3.455l7.035 7.035c.746-1.143.845-2.635.398-3.928l2.61-3.405 1.442 1.441 1.193-1.193-5.568-5.568-1.193 1.193 1.442 1.442-3.406 2.61c-1.318-.472-2.81-.373-3.953.373z"}));var af=({pageId:e,componentId:t="*",activeTab:o,onTabChange:r})=>{let n="community_profile_tab",{isExcluded:i,accessibilityId:a,themeStyles:s}=A({pageId:e,componentId:t,elementId:n});return i?null:R.createElement("div",{"data-qa-anchor":a,style:s,className:U5.communityTabs__container},R.createElement(F,{"data-is-active":o==="community_feed",onPress:()=>r("community_feed"),className:U5.communityTabs__tab},R.createElement(sL,null)),R.createElement(F,{"data-is-active":o==="community_pin",onPress:()=>r("community_pin"),className:U5.communityTabs__tab},R.createElement(mL,null)))};var ld={communityCover__container:"ir",communityCover__topBar:"Hm",communityCover__backButton:"Lm",communityCover__menuButton:"Tm"};var cL={menuButton:"Vm"};function sf({pageId:e="*",componentId:t="*",onClick:o,className:r,defaultClassName:n}){let i="menu_button",{isExcluded:a,accessibilityId:s,themeStyles:l,config:d,defaultConfig:p,uiReference:u}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{className:r,onPress:o,"data-qa-anchor":s},R.createElement(ee,{defaultIcon:()=>R.createElement(P5,{className:sr(cL.menuButton,n),style:l}),imgIcon:()=>R.createElement("img",{src:d.icon,alt:u}),defaultIconName:p.icon,configIconName:d.icon}))}var lf=({pageId:e="*",componentId:t="*",image:o,onBack:r,onClickMenu:n})=>{let i="community_cover",{isExcluded:a,accessibilityId:s,themeStyles:l,config:d}=A({pageId:e,componentId:t,elementId:i}),p=o?{backgroundImage:`url(${o})`}:{background:"linear-gradient(180deg, #a5a9b5 0%, #636878 100%)"};return a?null:R.createElement("div",{className:ld.communityCover__container,"data-qa-anchor":s,style:c(c({},l),p)},R.createElement("div",{style:c({},p)}),R.createElement("div",{className:ld.communityCover__topBar},R.createElement(Mm,{defaultClassName:ld.communityCover__backButton,onPress:r}),R.createElement(sf,{className:ld.communityCover__menuButton,onClick:n})))};var mf={communityJoinButton:"qm",joinButton:"Gm"};var pL=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 384 512",fill:"currentColor"},e),R.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
|
|
4731
4732
|
16v32c0 8.84 7.16 16 16 16h144v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V288h144c8.84
|
|
4732
|
-
0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z`}));var m9=({pageId:e="*",componentId:t="*",onClick:o,className:r,defaultClassName:n})=>{let i="community_join_button",{config:a,themeStyles:s,accessibilityId:l,isExcluded:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{"data-qa-anchor":l,style:s,onPress:o,className:sr(l9.communityJoinButton,r)},R.createElement(ee,{defaultIcon:()=>R.createElement(pL,{className:sr(l9.joinButton,n)}),imgIcon:()=>R.createElement("img",{src:a.icon,alt:p}),defaultIconName:u.icon,configIconName:a.icon}),"Join")};var H2e=createContext({activeTab:"community_feed",setActiveTab:()=>{}}),j5=()=>useContext(H2e);var gL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R.createElement("circle",{cx:"9.88525",cy:"10",r:"5.5",fill:"white"}),R.createElement("path",{d:"M8.62899 17.3036C9.55401 18.2356 10.4373 18.2286 11.3693 17.3036L12.4125 16.2604C12.5099 16.163 12.5934 16.1352 12.7185 16.1352H14.193C15.5075 16.1352 16.1334 15.5092 16.1334 14.1947V12.7203C16.1334 12.5951 16.1682 12.5047 16.2586 12.4143L17.3019 11.3641C18.2339 10.439 18.2269 9.55575 17.3019 8.63073L16.2586 7.58748C16.1682 7.49011 16.1334 7.40665 16.1334 7.28146V5.807C16.1334 4.4925 15.5075 3.86655 14.193 3.86655H12.7185C12.5934 3.86655 12.5029 3.83178 12.4125 3.74136L11.3693 2.69811C10.4373 1.76614 9.55401 1.76614 8.62899 2.70507L7.58574 3.74136C7.49533 3.83178 7.40491 3.86655 7.27972 3.86655H5.80526C4.49076 3.86655 3.86481 4.47859 3.86481 5.807V7.28146C3.86481 7.40665 3.83004 7.49707 3.73962 7.58748L2.69637 8.63073C1.7644 9.55575 1.77136 10.439 2.69637 11.3641L3.73962 12.4143C3.83004 12.5047 3.86481 12.5951 3.86481 12.7203V14.1947C3.86481 15.5092 4.49076 16.1352 5.80526 16.1352H7.27972C7.40491 16.1352 7.48837 16.163 7.58574 16.2604L8.62899 17.3036ZM8.8446 13.5618C8.60117 13.5618 8.40643 13.4714 8.25342 13.3115L6.02782 10.8216C5.90959 10.6964 5.84699 10.5225 5.84699 10.3486C5.84699 9.93132 6.14606 9.63225 6.57727 9.63225C6.81374 9.63225 6.98761 9.70876 7.14062 9.87568L8.81678 11.7466L12.1691 6.96153C12.336 6.72506 12.5168 6.62769 12.795 6.62769C13.2263 6.62769 13.5323 6.92676 13.5323 7.33015C13.5323 7.46925 13.4766 7.64312 13.3723 7.78918L9.47055 13.2628C9.31059 13.4714 9.10194 13.5618 8.8446 13.5618Z",fill:"#1054DE"}));var p9=({pageId:e="*",componentId:t="*"})=>{let o="community_verify_badge",{config:r,themeStyles:n,accessibilityId:i,isExcluded:a,uiReference:s,defaultConfig:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(gL,null),imgIcon:()=>R.createElement("img",{src:r.icon,alt:s}),defaultIconName:l.icon,configIconName:r.icon})};var cd={descriptionWrapper:"Og",description:"sr",expanded:"Pg",toggleButton:"Qg"};var u9=({pageId:e="*",componentId:t="*",description:o=""})=>{let[r,n]=useState(!1),[i,a]=useState(!1),s=useRef(null),l="community_description",{themeStyles:d,accessibilityId:p,isExcluded:u}=A({pageId:e,componentId:t,elementId:l}),g=180,f=o.length>g?o.slice(0,g):o;if(useEffect(()=>{s.current&&a(o.length>g);},[o]),u)return null;let y=()=>n(!0);return R.createElement("div",{"data-qa-anchor":p,style:d,className:cd.descriptionWrapper},R.createElement("div",{ref:s,className:`${cd.description} ${r?cd.expanded:""}`},R.createElement(S.Body,null,r?o:f," ",i&&!r&&R.createElement(F,{onPress:y,className:cd.toggleButton}," ","...See more"))))};var yL={communityName__truncate:"Rg"};var g9=({pageId:e="*",componentId:t="*",name:o=""})=>{let r="community_name",{config:n,themeStyles:i,accessibilityId:a,isExcluded:s}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement(S.Heading,{"data-qa-anchor":a,className:yL.communityName__truncate},o)};var dd={communityInfo__container:"Sg",communityInfo__wrapper:"Tg",communityInfo__count:"Ug",communityInfo__title:"Wg"};var Q5=({pageId:e="*",componentId:t="*",count:o,text:r,onClick:n})=>{let i="community_info",{config:a,accessibilityId:s,themeStyles:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{onPress:n,className:dd.communityInfo__container},R.createElement("div",{className:dd.communityInfo__wrapper},R.createElement(S.BodyBold,{className:dd.communityInfo__count},ob(o)),R.createElement(S.Caption,{className:dd.communityInfo__title},r)))};var G2e=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"61",height:"61",viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))},W5=G2e;var q5=({pageId:e="*",community:t})=>{let {onBack:o,onEditCommunity:r}=Le(),{activeTab:n,setActiveTab:i}=j5(),{communityCategories:a,avatarFileUrl:s,joinCommunity:l,pendingPostsCount:d,canReviewCommunityPosts:p}=hc(t.communityId),u=f=>{i(f);};t.isJoined&&t.postSetting&&p&&d>0;return R.createElement("div",{className:va.container},R.createElement(s9,{pageId:e,image:s,onBack:o,onClickMenu:()=>r(t.communityId)}),R.createElement("div",{className:va.content},R.createElement("div",{className:va.name},!t.isPublic&&R.createElement(W5,{className:va.communityProfile__privateIcon}),R.createElement(g9,{pageId:e,name:t.displayName}),t.isOfficial&&R.createElement(p9,null)),R.createElement(An,{pageId:e,categories:a}),R.createElement(u9,{pageId:e,description:t.description||""}),R.createElement("div",{className:va.communityProfile__communityInfo__container},R.createElement(Q5,{count:t.postsCount,text:"posts"}),R.createElement("div",{className:va.divider}),R.createElement(Q5,{count:t.membersCount,text:"members",onClick:()=>r(t.communityId,"MEMBERS")})),!t.isJoined&&t.isPublic&&R.createElement("div",{className:va.communityProfile__joinButton__container},R.createElement(m9,{onClick:l})),R.createElement("div",null,R.createElement(Um,{type:"communityFeed",communityId:t.communityId})),R.createElement(i9,{pageId:e,activeTab:n,onTabChange:u})),R.createElement("div",{className:va.communityProfile__divider}))};var Q2e=10;function f9({targetType:e,targetId:t,feedType:o,limit:r=Q2e}){let a=dt({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:!!t&&!!e}),{items:n}=a,i=P(a,["items"]);return c({posts:n},i)}var so={communityFeed__container:"Zg",communityFeed__loadingIndicator:"_g",communityFeed__observerTarget:"eh",communityFeed__post:"rh",communityFeed__spinner:"ah",spin:"cr",communityFeed__postContent:"oh",communityFeed__postSkeleton:"th",communityFeed__postSkeletonHeader:"ih",communityFeed__postSkeletonAvatar:"nr",communityFeed__postSkeletonUserInfo:"sh",communityFeed__postSkeletonUsername:"lr",communityFeed__postSkeletonSubtitle:"dr",communityFeed__postSkeletonContent:"ch",communityFeed__postSkeletonLine:"c",pulse:"mr",communityFeed__emptyPost:"nh",communityFeed__emptyPostIcon:"lh",communityFeed__emptyPostText:"dh",communityFeed__announcePost:"mh"};var q2e=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"61",height:"41",viewBox:"0 0 61 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M58.3438 0.5C59.7148 0.5 60.875 1.66016 60.875 3.03125V38.4688C60.875 39.9453 59.7148 41 58.3438 41H5.1875C2.33984 41 0.125 38.7852 0.125 35.9375V6.40625C0.125 5.03516 1.17969 3.875 2.65625 3.875H6.875V3.03125C6.875 1.66016 7.92969 0.5 9.40625 0.5H58.3438ZM3.5 35.9375C3.5 36.8867 4.23828 37.625 5.1875 37.625C6.03125 37.625 6.875 36.8867 6.875 35.9375V7.25H3.5V35.9375ZM57.5 37.625V3.875H10.25V35.9375V36.043C10.25 36.4648 10.0391 37.2031 9.93359 37.625H57.5ZM14.8906 27.5C14.1523 27.5 13.625 26.9727 13.625 26.2344V8.51562C13.625 7.88281 14.1523 7.25 14.8906 7.25H32.6094C33.2422 7.25 33.875 7.88281 33.875 8.51562V26.2344C33.875 26.9727 33.2422 27.5 32.6094 27.5H14.8906ZM17 10.625V24.125H30.5V10.625H17ZM13.625 32.9844V32.1406C13.625 31.5078 14.1523 30.875 14.8906 30.875H32.6094C33.2422 30.875 33.875 31.5078 33.875 32.1406V32.9844C33.875 33.7227 33.2422 34.25 32.6094 34.25H14.8906C14.1523 34.25 13.625 33.7227 13.625 32.9844ZM37.25 32.9844V32.1406C37.25 31.5078 37.7773 30.875 38.5156 30.875H52.8594C53.4922 30.875 54.125 31.5078 54.125 32.1406V32.9844C54.125 33.7227 53.4922 34.25 52.8594 34.25H38.5156C37.7773 34.25 37.25 33.7227 37.25 32.9844ZM37.25 26.2344V25.3906C37.25 24.7578 37.7773 24.125 38.5156 24.125H52.8594C53.4922 24.125 54.125 24.7578 54.125 25.3906V26.2344C54.125 26.9727 53.4922 27.5 52.8594 27.5H38.5156C37.7773 27.5 37.25 26.9727 37.25 26.2344ZM37.25 12.7344V11.8906C37.25 11.2578 37.7773 10.625 38.5156 10.625H52.8594C53.4922 10.625 54.125 11.2578 54.125 11.8906V12.7344C54.125 13.4727 53.4922 14 52.8594 14H38.5156C37.7773 14 37.25 13.4727 37.25 12.7344ZM37.25 19.4844V18.6406C37.25 18.0078 37.7773 17.375 38.5156 17.375H52.8594C53.4922 17.375 54.125 18.0078 54.125 18.6406V19.4844C54.125 20.2227 53.4922 20.75 52.8594 20.75H38.5156C37.7773 20.75 37.25 20.2227 37.25 19.4844Z"}))},K5=q2e;var pd={lockPrivateContent__wrap:"gh",lockPrivateContent__lockIcon:"hh",lockPrivateContent__title:"ph",lockPrivateContent__body:"fh"};var ud=()=>R.createElement("div",{className:pd.lockPrivateContent__wrap},R.createElement(W5,{className:pd.lockPrivateContent__lockIcon}),R.createElement(S.Title,{className:pd.lockPrivateContent__title},"This community is private"),R.createElement(S.Body,{className:pd.lockPrivateContent__body},"Only invited members can see the posts."));function gd({communityId:e,level:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:CommunityRepository.getCommunity,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getCommunityTopic(n,t)})}function fd({communityId:e,placement:t}){let n=dt({fetcher:PostRepository.getPinnedPosts,params:{communityId:e,placement:t,sortBy:"lastPinned"},shouldCall:!!e}),{items:o}=n,r=P(n,["items"]);return c({pinnedPost:o},r)}var yd=()=>R.createElement("div",{className:so.communityFeed__postSkeleton},R.createElement("div",{className:so.communityFeed__postSkeletonHeader},R.createElement("div",{className:so.communityFeed__postSkeletonAvatar}),R.createElement("div",{className:so.communityFeed__postSkeletonUserInfo},R.createElement("div",{className:so.communityFeed__postSkeletonUsername}),R.createElement("div",{className:so.communityFeed__postSkeletonSubtitle}))),R.createElement("div",{className:so.communityFeed__postSkeletonContent},R.createElement("div",{className:so.communityFeed__postSkeletonLine}),R.createElement("div",{className:so.communityFeed__postSkeletonLine}),R.createElement("div",{className:so.communityFeed__postSkeletonLine}))),X5=({pageId:e="*",communityId:t})=>{let o="community_feed_component",{isExcluded:r,accessibilityId:n,themeStyles:i}=te({pageId:e,componentId:o}),{community:a}=Mt({communityId:t,shouldCall:!!t}),s=(a==null?void 0:a.isJoined)&&!(a!=null&&a.isPublic),{posts:l,hasMore:d,loadMore:p,isLoading:u}=f9({feedType:"published",targetId:t,targetType:"community",limit:10}),{pinnedPost:g,isLoading:f,refresh:y}=fd({communityId:t,placement:"announcement"}),{AmityCommunityProfilePageBehavior:v}=xt();gd({communityId:t,level:SubscriptionLevels.POST});let C=useRef(null);if(useEffect(()=>{let b=new IntersectionObserver(M=>_(void 0,null,function*(){M[0].isIntersecting&&d&&p();}),{threshold:.5});return C.current&&b.observe(C.current),()=>{C.current&&b.unobserve(C.current);}},[d,p]),useEffect(()=>{y();},[]),r)return null;let h=()=>{let b=l.filter(M=>!g.some(I=>I.post.postId===M.postId));return R.createElement(R.Fragment,null,u?Array.from({length:2}).map((M,I)=>R.createElement(yd,{key:I})):b&&b.map(M=>R.createElement(F,{className:so.communityFeed__postContent,onPress:()=>{var I;return (I=v==null?void 0:v.goToPostDetailPage)==null?void 0:I.call(v,{postId:M.postId,hideTarget:!0})}},R.createElement(pn,{key:M.postId,post:M,category:"general",style:"feed",hideTarget:!0,onClick:()=>{var I;return (I=v==null?void 0:v.goToPostDetailPage)==null?void 0:I.call(v,{postId:M.postId,hideTarget:!0})}}))),(l==null?void 0:l.length)===0&&!u&&R.createElement("div",{className:so.communityFeed__emptyPost},R.createElement(K5,{className:so.communityFeed__emptyPostIcon}),R.createElement("p",{className:so.communityFeed__emptyPostText},"No post yet")),R.createElement("div",{ref:C,className:so.communityFeed__observerTarget}))},x=()=>f?R.createElement(yd,null):g&&g.map(({post:b})=>R.createElement(F,{onPress:()=>{var M;(M=v==null?void 0:v.goToPostDetailPage)==null||M.call(v,{postId:b.postId,hideTarget:!0,category:"announcement"});},className:so.communityFeed__announcePost},R.createElement(pn,{key:b.postId,post:b,category:"announcement",style:"feed",hideTarget:!0,onClick:()=>{var M;return (M=v==null?void 0:v.goToPostDetailPage)==null?void 0:M.call(v,{postId:b.postId,hideTarget:!0})},onPostDeleted:()=>y()})));return R.createElement("div",{"data-qa-anchor":n,className:so.communityFeed__container,style:i},s||a!=null&&a.isPublic?R.createElement(R.Fragment,null,x(),h()):R.createElement(ud,null))};var xL=({communityId:e})=>R.createElement("div",null,"CommunityPinnedPost");var oce=Sa`
|
|
4733
|
+
0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z`}));var cf=({pageId:e="*",componentId:t="*",onClick:o,className:r,defaultClassName:n})=>{let i="community_join_button",{config:a,themeStyles:s,accessibilityId:l,isExcluded:d,uiReference:p,defaultConfig:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{"data-qa-anchor":l,style:s,onPress:o,className:sr(mf.communityJoinButton,r)},R.createElement(ee,{defaultIcon:()=>R.createElement(pL,{className:sr(mf.joinButton,n)}),imgIcon:()=>R.createElement("img",{src:a.icon,alt:p}),defaultIconName:u.icon,configIconName:a.icon}),"Join")};var H2e=createContext({activeTab:"community_feed",setActiveTab:()=>{}}),j5=()=>useContext(H2e);var gL=()=>R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},R.createElement("circle",{cx:"9.88525",cy:"10",r:"5.5",fill:"white"}),R.createElement("path",{d:"M8.62899 17.3036C9.55401 18.2356 10.4373 18.2286 11.3693 17.3036L12.4125 16.2604C12.5099 16.163 12.5934 16.1352 12.7185 16.1352H14.193C15.5075 16.1352 16.1334 15.5092 16.1334 14.1947V12.7203C16.1334 12.5951 16.1682 12.5047 16.2586 12.4143L17.3019 11.3641C18.2339 10.439 18.2269 9.55575 17.3019 8.63073L16.2586 7.58748C16.1682 7.49011 16.1334 7.40665 16.1334 7.28146V5.807C16.1334 4.4925 15.5075 3.86655 14.193 3.86655H12.7185C12.5934 3.86655 12.5029 3.83178 12.4125 3.74136L11.3693 2.69811C10.4373 1.76614 9.55401 1.76614 8.62899 2.70507L7.58574 3.74136C7.49533 3.83178 7.40491 3.86655 7.27972 3.86655H5.80526C4.49076 3.86655 3.86481 4.47859 3.86481 5.807V7.28146C3.86481 7.40665 3.83004 7.49707 3.73962 7.58748L2.69637 8.63073C1.7644 9.55575 1.77136 10.439 2.69637 11.3641L3.73962 12.4143C3.83004 12.5047 3.86481 12.5951 3.86481 12.7203V14.1947C3.86481 15.5092 4.49076 16.1352 5.80526 16.1352H7.27972C7.40491 16.1352 7.48837 16.163 7.58574 16.2604L8.62899 17.3036ZM8.8446 13.5618C8.60117 13.5618 8.40643 13.4714 8.25342 13.3115L6.02782 10.8216C5.90959 10.6964 5.84699 10.5225 5.84699 10.3486C5.84699 9.93132 6.14606 9.63225 6.57727 9.63225C6.81374 9.63225 6.98761 9.70876 7.14062 9.87568L8.81678 11.7466L12.1691 6.96153C12.336 6.72506 12.5168 6.62769 12.795 6.62769C13.2263 6.62769 13.5323 6.92676 13.5323 7.33015C13.5323 7.46925 13.4766 7.64312 13.3723 7.78918L9.47055 13.2628C9.31059 13.4714 9.10194 13.5618 8.8446 13.5618Z",fill:"#1054DE"}));var uf=({pageId:e="*",componentId:t="*"})=>{let o="community_verify_badge",{config:r,themeStyles:n,accessibilityId:i,isExcluded:a,uiReference:s,defaultConfig:l}=A({pageId:e,componentId:t,elementId:o});return a?null:R.createElement(ee,{"data-qa-anchor":i,defaultIcon:()=>R.createElement(gL,null),imgIcon:()=>R.createElement("img",{src:r.icon,alt:s}),defaultIconName:l.icon,configIconName:r.icon})};var cd={descriptionWrapper:"Jm",description:"lr",expanded:"Km",toggleButton:"Nm"};var gf=({pageId:e="*",componentId:t="*",description:o=""})=>{let[r,n]=useState(!1),[i,a]=useState(!1),s=useRef(null),l="community_description",{themeStyles:d,accessibilityId:p,isExcluded:u}=A({pageId:e,componentId:t,elementId:l}),g=180,f=o.length>g?o.slice(0,g):o;if(useEffect(()=>{s.current&&a(o.length>g);},[o]),u)return null;let y=()=>n(!0);return R.createElement("div",{"data-qa-anchor":p,style:d,className:cd.descriptionWrapper},R.createElement("div",{ref:s,className:`${cd.description} ${r?cd.expanded:""}`},R.createElement(S.Body,null,r?o:f," ",i&&!r&&R.createElement(F,{onPress:y,className:cd.toggleButton}," ","...See more"))))};var yL={communityName__truncate:"Om"};var ff=({pageId:e="*",componentId:t="*",name:o=""})=>{let r="community_name",{config:n,themeStyles:i,accessibilityId:a,isExcluded:s}=A({pageId:e,componentId:t,elementId:r});return s?null:R.createElement(S.Heading,{"data-qa-anchor":a,className:yL.communityName__truncate},o)};var dd={communityInfo__container:"Pm",communityInfo__wrapper:"Qm",communityInfo__count:"Wm",communityInfo__title:"Zm"};var Q5=({pageId:e="*",componentId:t="*",count:o,text:r,onClick:n})=>{let i="community_info",{config:a,accessibilityId:s,themeStyles:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{onPress:n,className:dd.communityInfo__container},R.createElement("div",{className:dd.communityInfo__wrapper},R.createElement(S.BodyBold,{className:dd.communityInfo__count},ob(o)),R.createElement(S.Caption,{className:dd.communityInfo__title},r)))};var G2e=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"61",height:"61",viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.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"}))},W5=G2e;var q5=({pageId:e="*",community:t})=>{let {onBack:o,onEditCommunity:r}=Le(),{activeTab:n,setActiveTab:i}=j5(),{communityCategories:a,avatarFileUrl:s,joinCommunity:l,pendingPostsCount:d,canReviewCommunityPosts:p}=hc(t.communityId),u=f=>{i(f);};t.isJoined&&t.postSetting&&p&&d>0;return R.createElement("div",{className:va.container},R.createElement(lf,{pageId:e,image:s,onBack:o,onClickMenu:()=>r(t.communityId)}),R.createElement("div",{className:va.content},R.createElement("div",{className:va.name},!t.isPublic&&R.createElement(W5,{className:va.communityProfile__privateIcon}),R.createElement(ff,{pageId:e,name:t.displayName}),t.isOfficial&&R.createElement(uf,null)),R.createElement(An,{pageId:e,categories:a}),R.createElement(gf,{pageId:e,description:t.description||""}),R.createElement("div",{className:va.communityProfile__communityInfo__container},R.createElement(Q5,{count:t.postsCount,text:"posts"}),R.createElement("div",{className:va.divider}),R.createElement(Q5,{count:t.membersCount,text:"members",onClick:()=>r(t.communityId,"MEMBERS")})),!t.isJoined&&t.isPublic&&R.createElement("div",{className:va.communityProfile__joinButton__container},R.createElement(cf,{onClick:l})),R.createElement("div",null,R.createElement($m,{type:"communityFeed",communityId:t.communityId})),R.createElement(af,{pageId:e,activeTab:n,onTabChange:u})),R.createElement("div",{className:va.communityProfile__divider}))};var Q2e=10;function yf({targetType:e,targetId:t,feedType:o,limit:r=Q2e}){let a=dt({fetcher:PostRepository.getPosts,params:{targetType:e,targetId:t,feedType:o,limit:r},shouldCall:!!t&&!!e}),{items:n}=a,i=P(a,["items"]);return c({posts:n},i)}var so={communityFeed__container:"_m",communityFeed__loadingIndicator:"ep",communityFeed__observerTarget:"rp",communityFeed__post:"ap",communityFeed__spinner:"op",spin:"sr",communityFeed__postContent:"tp",communityFeed__postSkeleton:"ip",communityFeed__postSkeletonHeader:"lp",communityFeed__postSkeletonAvatar:"cr",communityFeed__postSkeletonUserInfo:"sp",communityFeed__postSkeletonUsername:"nr",communityFeed__postSkeletonSubtitle:"dr",communityFeed__postSkeletonContent:"cp",communityFeed__postSkeletonLine:"s",pulse:"mr",communityFeed__emptyPost:"np",communityFeed__emptyPostIcon:"dp",communityFeed__emptyPostText:"mp",communityFeed__announcePost:"pp"};var q2e=t=>{var e=P(t,[]);return R.createElement("svg",c({width:"61",height:"41",viewBox:"0 0 61 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M58.3438 0.5C59.7148 0.5 60.875 1.66016 60.875 3.03125V38.4688C60.875 39.9453 59.7148 41 58.3438 41H5.1875C2.33984 41 0.125 38.7852 0.125 35.9375V6.40625C0.125 5.03516 1.17969 3.875 2.65625 3.875H6.875V3.03125C6.875 1.66016 7.92969 0.5 9.40625 0.5H58.3438ZM3.5 35.9375C3.5 36.8867 4.23828 37.625 5.1875 37.625C6.03125 37.625 6.875 36.8867 6.875 35.9375V7.25H3.5V35.9375ZM57.5 37.625V3.875H10.25V35.9375V36.043C10.25 36.4648 10.0391 37.2031 9.93359 37.625H57.5ZM14.8906 27.5C14.1523 27.5 13.625 26.9727 13.625 26.2344V8.51562C13.625 7.88281 14.1523 7.25 14.8906 7.25H32.6094C33.2422 7.25 33.875 7.88281 33.875 8.51562V26.2344C33.875 26.9727 33.2422 27.5 32.6094 27.5H14.8906ZM17 10.625V24.125H30.5V10.625H17ZM13.625 32.9844V32.1406C13.625 31.5078 14.1523 30.875 14.8906 30.875H32.6094C33.2422 30.875 33.875 31.5078 33.875 32.1406V32.9844C33.875 33.7227 33.2422 34.25 32.6094 34.25H14.8906C14.1523 34.25 13.625 33.7227 13.625 32.9844ZM37.25 32.9844V32.1406C37.25 31.5078 37.7773 30.875 38.5156 30.875H52.8594C53.4922 30.875 54.125 31.5078 54.125 32.1406V32.9844C54.125 33.7227 53.4922 34.25 52.8594 34.25H38.5156C37.7773 34.25 37.25 33.7227 37.25 32.9844ZM37.25 26.2344V25.3906C37.25 24.7578 37.7773 24.125 38.5156 24.125H52.8594C53.4922 24.125 54.125 24.7578 54.125 25.3906V26.2344C54.125 26.9727 53.4922 27.5 52.8594 27.5H38.5156C37.7773 27.5 37.25 26.9727 37.25 26.2344ZM37.25 12.7344V11.8906C37.25 11.2578 37.7773 10.625 38.5156 10.625H52.8594C53.4922 10.625 54.125 11.2578 54.125 11.8906V12.7344C54.125 13.4727 53.4922 14 52.8594 14H38.5156C37.7773 14 37.25 13.4727 37.25 12.7344ZM37.25 19.4844V18.6406C37.25 18.0078 37.7773 17.375 38.5156 17.375H52.8594C53.4922 17.375 54.125 18.0078 54.125 18.6406V19.4844C54.125 20.2227 53.4922 20.75 52.8594 20.75H38.5156C37.7773 20.75 37.25 20.2227 37.25 19.4844Z"}))},K5=q2e;var pd={lockPrivateContent__wrap:"gp",lockPrivateContent__lockIcon:"hp",lockPrivateContent__title:"fp",lockPrivateContent__body:"bp"};var ud=()=>R.createElement("div",{className:pd.lockPrivateContent__wrap},R.createElement(W5,{className:pd.lockPrivateContent__lockIcon}),R.createElement(S.Title,{className:pd.lockPrivateContent__title},"This community is private"),R.createElement(S.Body,{className:pd.lockPrivateContent__body},"Only invited members can see the posts."));function gd({communityId:e,level:t,shouldSubscribe:o=!0,callback:r}){return oa({fetcher:CommunityRepository.getCommunity,params:e,callback:r,shouldSubscribe:!!e&&o,getSubscribedTopic:({data:n})=>getCommunityTopic(n,t)})}function fd({communityId:e,placement:t}){let n=dt({fetcher:PostRepository.getPinnedPosts,params:{communityId:e,placement:t,sortBy:"lastPinned"},shouldCall:!!e}),{items:o}=n,r=P(n,["items"]);return c({pinnedPost:o},r)}var yd=()=>R.createElement("div",{className:so.communityFeed__postSkeleton},R.createElement("div",{className:so.communityFeed__postSkeletonHeader},R.createElement("div",{className:so.communityFeed__postSkeletonAvatar}),R.createElement("div",{className:so.communityFeed__postSkeletonUserInfo},R.createElement("div",{className:so.communityFeed__postSkeletonUsername}),R.createElement("div",{className:so.communityFeed__postSkeletonSubtitle}))),R.createElement("div",{className:so.communityFeed__postSkeletonContent},R.createElement("div",{className:so.communityFeed__postSkeletonLine}),R.createElement("div",{className:so.communityFeed__postSkeletonLine}),R.createElement("div",{className:so.communityFeed__postSkeletonLine}))),X5=({pageId:e="*",communityId:t})=>{let o="community_feed_component",{isExcluded:r,accessibilityId:n,themeStyles:i}=te({pageId:e,componentId:o}),{community:a}=Mt({communityId:t,shouldCall:!!t}),s=(a==null?void 0:a.isJoined)&&!(a!=null&&a.isPublic),{posts:l,hasMore:d,loadMore:p,isLoading:u}=yf({feedType:"published",targetId:t,targetType:"community",limit:10}),{pinnedPost:g,isLoading:f,refresh:y}=fd({communityId:t,placement:"announcement"}),{AmityCommunityProfilePageBehavior:v}=xt();gd({communityId:t,level:SubscriptionLevels.POST});let C=useRef(null);if(useEffect(()=>{let b=new IntersectionObserver(M=>_(void 0,null,function*(){M[0].isIntersecting&&d&&p();}),{threshold:.5});return C.current&&b.observe(C.current),()=>{C.current&&b.unobserve(C.current);}},[d,p]),useEffect(()=>{y();},[]),r)return null;let h=()=>{let b=l.filter(M=>!g.some(I=>I.post.postId===M.postId));return R.createElement(R.Fragment,null,u?Array.from({length:2}).map((M,I)=>R.createElement(yd,{key:I})):b&&b.map(M=>R.createElement(F,{className:so.communityFeed__postContent,onPress:()=>{var I;return (I=v==null?void 0:v.goToPostDetailPage)==null?void 0:I.call(v,{postId:M.postId,hideTarget:!0})}},R.createElement(pn,{key:M.postId,post:M,category:"general",style:"feed",hideTarget:!0,onClick:()=>{var I;return (I=v==null?void 0:v.goToPostDetailPage)==null?void 0:I.call(v,{postId:M.postId,hideTarget:!0})}}))),(l==null?void 0:l.length)===0&&!u&&R.createElement("div",{className:so.communityFeed__emptyPost},R.createElement(K5,{className:so.communityFeed__emptyPostIcon}),R.createElement("p",{className:so.communityFeed__emptyPostText},"No post yet")),R.createElement("div",{ref:C,className:so.communityFeed__observerTarget}))},x=()=>f?R.createElement(yd,null):g&&g.map(({post:b})=>R.createElement(F,{onPress:()=>{var M;(M=v==null?void 0:v.goToPostDetailPage)==null||M.call(v,{postId:b.postId,hideTarget:!0,category:"announcement"});},className:so.communityFeed__announcePost},R.createElement(pn,{key:b.postId,post:b,category:"announcement",style:"feed",hideTarget:!0,onClick:()=>{var M;return (M=v==null?void 0:v.goToPostDetailPage)==null?void 0:M.call(v,{postId:b.postId,hideTarget:!0})},onPostDeleted:()=>y()})));return R.createElement("div",{"data-qa-anchor":n,className:so.communityFeed__container,style:i},s||a!=null&&a.isPublic?R.createElement(R.Fragment,null,x(),h()):R.createElement(ud,null))};var xL=({communityId:e})=>R.createElement("div",null,"CommunityPinnedPost");var oce=Sa`
|
|
4733
4734
|
from {
|
|
4734
4735
|
transform: rotate(0deg);
|
|
4735
4736
|
}
|
|
@@ -4738,16 +4739,16 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4738
4739
|
}
|
|
4739
4740
|
`,rce=m.svg`
|
|
4740
4741
|
animation: ${oce} 2s linear infinite;
|
|
4741
|
-
`,nce=e=>R.createElement(rce,c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),R.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),R.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"})),Y5=nce;var h9={storyCommentButton:"uh",storyCommentIcon:"bh"};var sce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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"})),bL=({pageId:e="*",componentId:t="*",onPress:o,commentsCount:r,imgClassName:n})=>{let i="story_comment_button",{isExcluded:a,accessibilityId:s,defaultConfig:l,config:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{"data-qa-anchor":s,onPress:o,style:u,className:sr(h9.storyCommentButton)},R.createElement(ee,{defaultIconName:l.icon,configIconName:d.icon,imgIcon:()=>R.createElement("img",{src:d.icon,alt:p,className:sr(n),style:u}),defaultIcon:()=>R.createElement("div",{className:sr(h9.storyCommentIcon)},R.createElement(sce,null),R.createElement(S.BodyBold,null,ob(r)))}))};var v9={storyReactionButton:"vh",storyReactionIcon:"xh"};var cce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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"})),dce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_linear_7702_34939)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_7702_34939",x1:"9",x2:"19.8",y1:"2.4",y2:"29.4",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#5B9DFF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"})))),IL=({myReactions:e=[],reactionsCount:t,pageId:o="*",componentId:r="*",defaultIconClassName:n,imgIconClassName:i,onPress:a})=>{let s="story_reaction_button",{isExcluded:l,accessibilityId:d,config:p,uiReference:u,themeStyles:g}=A({pageId:o,componentId:r,elementId:s}),f=e.length>0;return l?null:R.createElement(F,{"data-qa-anchor":d,className:sr(v9.storyReactionButton),onPress:a,style:g},R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:sr(v9.storyReactionIcon,n)},f?R.createElement(dce,null):R.createElement(cce,null),R.createElement(S.BodyBold,null,ob(t))),imgIcon:()=>R.createElement("img",{src:p.icon,alt:u,className:sr(i)})}))};var ws={viewStoryCompostBarContainer:"wh",viewStoryFailedCompostBarContainer:"yh",viewStoryFailedCompostBarWrapper:"kh",viewStoryUploadingWrapper:"jh",viewStoryCompostBarViewIconContainer:"zh",viewStoryCompostBarEngagementContainer:"Xh",viewStoryCommentButton:"Yh",viewStoryCommentIcon:"Ah"};var uce=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:d,myReactions:p})=>{let u=Po(),g=()=>_(void 0,null,function*(){try{if(!d){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,cr):yield ReactionRepository.addReaction("story",a,cr);}catch(f){console.error("Can't toggle like",f);}});return t==="syncing"?R.createElement("div",{className:ws.viewStoryCompostBarContainer},R.createElement("div",{className:ws.viewStoryUploadingWrapper},R.createElement(Y5,{width:20,height:20}),"Uploading...")):t==="error"?R.createElement("div",{className:ws.viewStoryFailedCompostBarContainer},R.createElement("div",{className:ws.viewStoryFailedCompostBarWrapper},R.createElement(C4,null),R.createElement("span",null,"Failed to upload")),R.createElement(Na,null)):R.createElement("div",{className:ws.viewStoryCompostBarContainer},R.createElement("div",null,l&&R.createElement("div",{className:ws.viewStoryCompostBarViewIconContainer},R.createElement(z3,{reach:o}))),R.createElement("div",{className:ws.viewStoryCompostBarEngagementContainer},R.createElement(bL,{pageId:e,commentsCount:r,onPress:s}),R.createElement(IL,{pageId:e,myReactions:p,reactionsCount:n,onPress:g})))},R5=uce;var Gr={iconButton:"Vh",rendererContainer:"qh",storyVideo:"Bh",muteCircleIcon:"Ch",unmuteCircleIcon:"Dh",loadingOverlay:"Eh",storyImage:"Fh",playStoryButton:"Gh",pauseStoryButton:"Hh",closeButton:"Ih",verifiedBadge:"Jh",dotsButton:"Kh",viewStoryInfoContainer:"Lh",viewStoryCompostBarContainer:"Mh",viewStoryCompostBarViewIconContainer:"Nh",viewStoryCompostBarEngagementContainer:"Oh",viewStoryCompostBarEngagementIconContainer:"Ph",storyContent:"Qh",header:"Rh",viewStoryContainer:"Sh",viewStoryHeaderContainer:"Th",avatarContainer:"Uh",addStoryButton:"gr",viewStoryHeaderListActionsContainer:"Wh",viewStoryHeadingInfoContainer:"Zh",viewStoryHeading:"_h",viewStoryHeadingTitle:"e0",viewStorySubHeading:"r0"};var hce=({community:e,heading:t,subheading:o,isHaveActions:r,isOfficial:n,isPaused:i,onPlay:a,onPause:s,onAction:l,onClose:d,onClickCommunity:p,haveStoryPermission:u,addStoryButton:g})=>R.createElement("div",{className:Gr.viewStoryHeaderContainer},R.createElement("div",{className:Gr.viewStoryHeadingInfoContainer},R.createElement("div",{className:Gr.avatarContainer},R.createElement(Or,{pageId:"story_page",community:e}),u&&g),R.createElement("div",{className:Gr.viewStoryInfoContainer},R.createElement("div",{className:Gr.viewStoryHeading},R.createElement(mw,{lines:1},R.createElement("div",{className:Gr.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&R.createElement(d1,{className:Gr.verifiedBadge})),R.createElement("span",{className:Gr.viewStorySubHeading},o))),R.createElement("div",{className:Gr.viewStoryHeaderListActionsContainer},i?R.createElement(wo,{className:Gr.playStoryButton,"data-qa-anchor":"play_button",onClick:a}):R.createElement(As,{className:Gr.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:s}),r&&R.createElement(U3,{pageId:"story_page",onPress:l}),R.createElement(Mr,{defaultClassName:sr(Gr.closeButton),pageId:"story_page",onPress:d}))),eu=hce;function hd({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:N(c({},e),{includeDeleted:!1}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=P(n,["items"]);return c({members:o},r)}var Co={iconButton:"a0",hyperLinkContainer:"hr",rendererContainer:"o0",storyVideo:"t0",muteCircleIcon:"i0",unmuteCircleIcon:"s0",loadingOverlay:"c0",storyImageContainer:"n0",storyImage:"l0",playStoryButton:"d0",pauseStoryButton:"m0",closeButton:"g0",verifiedBadge:"h0",dotsButton:"p0",viewStoryInfoContainer:"f0",viewStoryCompostBarContainer:"u0",viewStoryCompostBarViewIconContainer:"b0",viewStoryCompostBarEngagementContainer:"v0",viewStoryCompostBarEngagementIconContainer:"x0",header:"w0",viewStoryContainer:"y0",viewStoryHeaderContainer:"k0",avatarContainer:"j0",addStoryButton:"pr",viewStoryHeaderListActionsContainer:"z0",viewStoryHeadingInfoContainer:"X0",viewStoryHeading:"Y0",viewStoryHeadingTitle:"A0",viewStorySubHeading:"V0",story:"q0",storyContent:"B0",actionButton:"fr",navigationOverlay:"C0",leftOverlay:"D0",rightOverlay:"E0",imageFit:"F0",imageFill:"G0"};var tu={progressBarContainer:"H0",progressSegment:"I0",progressBar:"J0"};var e2=R.memo(({pageId:e="*",componentId:t="*",duration:o,currentIndex:r,storiesCount:n,isPaused:i,onComplete:a})=>{let s="progress_bar",{config:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:s}),[p,u]=useState(new Array(n).fill(0)),[g,f]=useState(r),y=l==null?void 0:l.backgroundColor,v=l==null?void 0:l.progressColor;return useEffect(()=>{r<g&&u(C=>{let h=[...C];return h[r]=0,h}),f(r);},[r,g]),useEffect(()=>{let C;return i||(C=setInterval(()=>{u(h=>{let x=[...h];return x[r]<100&&(x[r]+=100/o*100,x[r]>=100&&(x[r]=100,a())),x});},100)),()=>{C&&clearInterval(C);}},[o,r,i,a]),d?null:R.createElement("div",{className:sr(tu.progressBarContainer),style:{backgroundColor:y}},p.map((C,h)=>R.createElement("div",{key:h,className:sr(tu.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},R.createElement("div",{className:sr(tu.progressBar),style:{width:`${h<r?100:h===r?C:0}%`,backgroundColor:v}}))))});var Pce=({story:{actions:e,fileInputRef:t,addStoryButton:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l,url:d},action:p,config:u,onClose:g,onClickCommunity:f})=>{var Hi,Pa,ot,xn;let{formatMessage:y}=useIntl(),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(!1),[I,w]=useState(!1),{loader:k}=u,{client:T}=De(),[L,D]=useState(""),U=useRef(null),j=!!(l&&l.myReactions&&l.myReactions.includes(zn)),E=(l==null?void 0:l.reactionsCount)||0,{storyId:V,syncState:G,reach:q,commentsCount:O,createdAt:H,creator:z,community:Z,myReactions:Q,data:B,items:$}=l,{members:ne}=hd({queryParams:{communityId:Z==null?void 0:Z.communityId},shouldCall:!!(Z!=null&&Z.communityId)}),fe=(ne==null?void 0:ne.find(qe=>qe.userId===(T==null?void 0:T.userId)))!=null,{user:pe}=pr(T==null?void 0:T.userId),Ze=(Z==null?void 0:Z.isOfficial)||!1,ct=(z==null?void 0:z.userId)===(pe==null?void 0:pe.userId),$t=c5(pe==null?void 0:pe.roles),Vt=m5(pe==null?void 0:pe.roles),ye=$t||Vt||us(T,Z==null?void 0:Z.communityId),Cn=useMemo(()=>R.createElement("div",{"data-qa-anchor":"community_display_name"},Z==null?void 0:Z.displayName),[Z==null?void 0:Z.displayName]),Kn=useMemo(()=>H&&(z!=null&&z.displayName)?R.createElement("span",null,R.createElement("span",{"data-qa-anchor":"created_at"},d5(H))," \u2022 By"," ",R.createElement("span",{"data-qa-anchor":"creator_display_name"},z==null?void 0:z.displayName)):"",[H,z==null?void 0:z.displayName]),Er="asc-uikit-stories-viewer",qr=useCallback(()=>{if(U.current&&U.current.complete){let eo=new Mce().getPalette(U.current,2);if(eo){let Ke=`linear-gradient(to top, rgb(${eo[0].join(",")}), rgb(${eo[1].join(",")})`;D(Ke);}}},[]),vn=useCallback(()=>{C(!0),I&&w(!1),p("play",!0),qr();},[p,I,qr]),Br=()=>{p("play",!0),w(!1);},Kr=()=>{p("pause",!0),w(!0);},ce=()=>{p("pause",!0),x(!0);},ue=()=>{p("play",!0),x(!1);},Jr=()=>{p("pause",!0),M(!0);},zo=()=>{p("play",!0),M(!1);},Lr=()=>{g();},Di=()=>{i();};return useEffect(()=>{U.current&&U.current.complete&&qr();},[]),useEffect(()=>{if(t.current){let qe=()=>{p("pause",!0),w(!0);},eo=()=>{p("play",!0),w(!1);};return t.current.addEventListener("click",qe),t.current.addEventListener("cancel",eo),()=>{t.current&&(t.current.removeEventListener("cancel",eo),t.current.removeEventListener("click",qe));}}},[t]),useEffect(()=>{var qe,eo;if(s){let Ke=()=>{p("pause",!0),w(!0);},to=()=>{p("play",!0),w(!1);};return (qe=s.current)==null||qe.addEventListener("dragstart",Ke),(eo=s.current)==null||eo.addEventListener("dragend",to),()=>{var bn,Fi;(bn=s.current)==null||bn.removeEventListener("dragstart",Ke),(Fi=s.current)==null||Fi.removeEventListener("dragend",to);}}},[s]),R.createElement("div",{className:Co.rendererContainer,style:{background:L}},R.createElement(e2,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:I||h||b,onComplete:Di}),R.createElement(eu,{community:Z,heading:Cn,subheading:Kn,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:ye,isOfficial:Ze,isPaused:I,onPlay:Br,onPause:Kr,onAction:ce,onClickCommunity:()=>f==null?void 0:f(),onClose:Lr,addStoryButton:o}),R.createElement("div",{className:sr(Co.storyImageContainer,{[Co.imageFit]:B.imageDisplayMode==="fit",[Co.imageFill]:B.imageDisplayMode==="fill"})},R.createElement("img",{ref:U,className:sr(Co.storyImage,{[Co.imageFit]:B.imageDisplayMode==="fit",[Co.imageFill]:B.imageDisplayMode==="fill"}),"data-qa-anchor":"image_view",src:d!=null?d:l==null?void 0:l.data.fileData,onLoad:vn,alt:"Story Image",crossOrigin:"anonymous"})),!v&&R.createElement("div",{className:Co.loadingOverlay},k||R.createElement("div",null,"loading...")),R.createElement(Pr,{rootId:Er,isOpen:h,onClose:ue,mountPoint:document.getElementById(Er),detent:"content-height"},e==null?void 0:e.map(qe=>R.createElement(F,{key:qe.name,className:Co.actionButton,onPress:()=>qe==null?void 0:qe.action()},(qe==null?void 0:qe.icon)&&qe.icon,R.createElement(S.BodyBold,null,qe.name)))),R.createElement(Pr,{rootId:Er,isOpen:b,onClose:zo,mountPoint:document.getElementById(Er),detent:"full-height",headerTitle:y({id:"storyViewer.commentSheet.title"})},R.createElement(Am,{referenceId:V,referenceType:"story",community:Z,shouldAllowCreation:Z==null?void 0:Z.allowCommentInStory,shouldAllowInteraction:fe})),((Pa=(Hi=$==null?void 0:$[0])==null?void 0:Hi.data)==null?void 0:Pa.url)&&R.createElement("div",{className:Co.hyperLinkContainer},R.createElement(Ci,{href:$[0].data.url.startsWith("http")?$[0].data.url:`https://${$[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},R.createElement(mw,{lines:1},R.createElement("span",null,((xn=(ot=$[0])==null?void 0:ot.data)==null?void 0:xn.customText)||$[0].data.url.replace(/^https?:\/\//,""))))),R.createElement(R5,{pageId:a,storyId:V,syncState:G,reach:q,commentsCount:O,reactionsCount:E,isLiked:j,myReactions:Q,onClickComment:Jr,showImpression:ct||us(T,Z==null?void 0:Z.communityId),isMember:fe}))},_ce=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},SL={renderer:Pce,tester:_ce};var Sce=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},Nce=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}},Ece=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}},Bce=({story:{actions:e,addStoryButton:t,fileInputRef:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l},action:d,config:p,messageHandler:u,onClose:g,onClickCommunity:f})=>{var Br,Kr,ce,ue,Jr,zo,Lr,Di,Hi,Pa;let[y,v]=useState(!1),{loader:C}=p,{client:h}=De(),{user:x}=pr(h==null?void 0:h.userId),b=useRef(null),{muted:M,mute:I,unmute:w}=Sce(),{isPaused:k,play:T,pause:L}=Nce(d),{isBottomSheetOpen:D,isOpenCommentSheet:U,openBottomSheet:j,closeBottomSheet:E,openCommentSheet:V,closeCommentSheet:G}=Ece(d),{storyId:q,syncState:O,reach:H,commentsCount:z,createdAt:Z,creator:Q,community:B,myReactions:$,data:ne,items:re}=l,fe=(Br=l==null?void 0:l.myReactions)==null?void 0:Br.includes(zn),pe=(l==null?void 0:l.reactions[zn])||0,{members:Ze}=hd({queryParams:{communityId:B==null?void 0:B.communityId},shouldCall:!!(B!=null&&B.communityId)}),ct=Ze==null?void 0:Ze.some(ot=>ot.userId===(h==null?void 0:h.userId)),$t=(B==null?void 0:B.isOfficial)||!1,Vt=(Q==null?void 0:Q.userId)===(x==null?void 0:x.userId),ye=c5(x==null?void 0:x.roles),Cn=m5(x==null?void 0:x.roles),Kn=ye||Cn||us(h,B==null?void 0:B.communityId),Er=useCallback(()=>{var ot;u("UPDATE_VIDEO_DURATION",{duration:(ot=l==null?void 0:l.videoData)==null?void 0:ot.attributes.metadata.video.duration}),v(!0),d("play",!0);},[u,(Kr=l==null?void 0:l.videoData)==null?void 0:Kr.attributes.metadata.video.duration,d]),qr=useCallback(()=>{r+1<n?i():g();},[r,n,i,g]);useEffect(()=>{b.current&&(k||D||U?(b.current.pause(),d("pause",!0)):(b.current.play(),d("play",!0)));},[k,D,U,d]),useEffect(()=>{if(o.current){let ot=()=>{d("pause",!0),L();},xn=()=>{d("play",!0),T();};return o.current.addEventListener("click",ot),o.current.addEventListener("cancel",xn),()=>{var qe,eo;(qe=o.current)==null||qe.removeEventListener("click",ot),(eo=o.current)==null||eo.removeEventListener("cancel",xn);}}},[d,L,T]),useEffect(()=>{if(s!=null&&s.current){let ot=()=>{d("pause",!0),L();},xn=()=>{d("play",!0),T();};return s.current.addEventListener("dragstart",ot),s.current.addEventListener("dragend",xn),()=>{var qe,eo;(qe=s.current)==null||qe.removeEventListener("dragstart",ot),(eo=s.current)==null||eo.removeEventListener("dragend",xn);}}},[d,L,T,s]);let vn=Math.round(((ce=l==null?void 0:l.videoData)==null?void 0:ce.attributes.metadata.video.duration)*1e3);return R.createElement("div",{className:sr(Co.rendererContainer)},R.createElement(e2,{pageId:a,duration:vn,currentIndex:r,storiesCount:n,isPaused:k||D||U,onComplete:qr}),R.createElement(Z3,{pageId:"story_page",componentId:"*",isMuted:M,onPress:M?w:I}),R.createElement(eu,{community:B,heading:R.createElement("div",{"data-qa-anchor":"community_display_name"},B==null?void 0:B.displayName),subheading:Z&&(Q!=null&&Q.displayName)?R.createElement("span",null,R.createElement("span",{"data-qa-anchor":"created_at"},d5(Z))," \u2022 By"," ",R.createElement("span",{"data-qa-anchor":"creator_display_name"},Q==null?void 0:Q.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:Kn,isOfficial:$t,isPaused:k,onPlay:T,onPause:L,onMute:I,onUnmute:w,onAction:j,onClickCommunity:()=>f==null?void 0:f(),onClose:g,addStoryButton:t}),R.createElement("video",{"data-qa-anchor":"video_view",ref:b,className:sr(Co.storyVideo),src:((ue=l==null?void 0:l.videoData)==null?void 0:ue.fileUrl)||((zo=(Jr=l==null?void 0:l.videoData)==null?void 0:Jr.videoUrl)==null?void 0:zo.original),controls:!1,onLoadedData:Er,playsInline:!0,onWaiting:()=>d("pause",!0),onPlaying:()=>d("play",!0),muted:M,autoPlay:!0}),!y&&R.createElement("div",{className:sr(Co.loadingOverlay)},C||R.createElement("div",null,"loading...")),R.createElement(Pr,{rootId:"asc-uikit-stories-viewer",isOpen:D,onClose:E,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(ot=>R.createElement(F,{key:ot.name,className:sr(Co.actionButton),onPress:ot==null?void 0:ot.action},ot==null?void 0:ot.icon,R.createElement(S.BodyBold,null,ot.name)))),R.createElement(Pr,{rootId:"asc-uikit-stories-viewer",isOpen:U,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"full-height"},R.createElement(Am,{referenceId:q,referenceType:"story",community:B,shouldAllowCreation:B==null?void 0:B.allowCommentInStory,shouldAllowInteraction:ct})),((Di=(Lr=re==null?void 0:re[0])==null?void 0:Lr.data)==null?void 0:Di.url)&&R.createElement("div",{className:sr(Co.hyperLinkContainer)},R.createElement(Ci,{href:re[0].data.url.startsWith("http")?re[0].data.url:`https://${re[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},R.createElement(mw,{lines:1},R.createElement("span",null,((Pa=(Hi=re[0])==null?void 0:Hi.data)==null?void 0:Pa.customText)||re[0].data.url.replace(/^https?:\/\//,""))))),R.createElement(R5,{pageId:a,storyId:q,syncState:O,reach:H,commentsCount:z,reactionsCount:pe,isLiked:fe,onClickComment:V,myReactions:$,showImpression:Vt||us(h,B==null?void 0:B.communityId),isMember:ct}))},Lce=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},NL={renderer:Bce,tester:Lce};var Dce=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),R.createElement("div",{style:BL.storyContent},R.createElement("p",{style:BL.text},"This story could not be loaded."))),BL={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},Hce=()=>({condition:!0,priority:1}),LL={renderer:Dce,tester:Hce};var zce=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return R.createElement(t,c({},e))},Uce=e=>({condition:!!e.content,priority:2}),AL={renderer:zce,tester:Uce};var Xt={drawer__content:"ur",drawer__innerContent:"K0",drawer__placeholder:"L0",drawer__overlay:"M0",drawer__title:"N0",drawer__content__data:"O0",drawer__content__data__title:"P0",drawer__content__data__text:"Q0",drawer__content__data__caption:"R0",drawer__content__data__infoIcon:"S0",drawer__content__emptySpace:"T0",drawer__container:"U0",drawer__innerContainer:"W0"};var DL=({isOpen:e,onOpenChange:t,ad:o,targetRef:r})=>{var n;return R.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:i=>{i.preventDefault(),i.stopPropagation();}},R.createElement(Drawer.Portal,{container:r==null?void 0:r.current},R.createElement("div",{className:Xt.drawer__container},R.createElement("div",{className:Xt.drawer__innerContainer},R.createElement(Drawer.Overlay,{className:Xt.drawer__overlay}),R.createElement(Drawer.Content,{className:Xt.drawer__content},R.createElement("div",{className:Xt.drawer__innerContent},R.createElement("div",{className:Xt.drawer__placeholder}),R.createElement(Drawer.Title,{className:Xt.drawer__title},R.createElement(S.Title,null,"About this advertisement")),R.createElement("div",{className:Xt.drawer__content__data},R.createElement(S.BodyBold,{className:Xt.drawer__content__data__title},"Why this advertisement?"),R.createElement("div",{className:Xt.drawer__content__data__text},R.createElement(mn,{className:Xt.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:Xt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),R.createElement("div",{className:Xt.drawer__content__data},R.createElement(S.BodyBold,{className:Xt.drawer__content__data__title},"About this advertiser"),R.createElement("div",{className:Xt.drawer__content__data__text},R.createElement(mn,{className:Xt.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:Xt.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),R.createElement("div",{className:Xt.drawer__content__emptySpace}))))))};var Yt={iconButton:"Z0",hyperLinkContainer:"_0",hyperLink__text:"ep",rendererContainer:"rp",storyVideo:"ap",muteCircleIcon:"op",unmuteCircleIcon:"tp",loadingOverlay:"ip",storyImageContainer:"sp",storyImage:"cp",playStoryButton:"np",pauseStoryButton:"lp",closeButton:"dp",verifiedBadge:"mp",dotsButton:"gp",viewStoryInfoContainer:"hp",viewStoryCompostBarContainer:"pp",viewStoryCompostBarViewIconContainer:"fp",viewStoryCompostBarEngagementContainer:"up",viewStoryCompostBarEngagementIconContainer:"bp",header:"vp",viewStoryContainer:"xp",viewStoryHeaderContainer:"wp",avatarContainer:"yp",addStoryButton:"br",viewStoryHeaderListActionsContainer:"kp",viewStoryHeadingInfoContainer:"jp",viewStoryHeading:"zp",viewStoryHeadingTitle:"Xp",viewStorySubHeading:"Yp",story:"Ap",storyContent:"Vp",actionButton:"vr",navigationOverlay:"qp",leftOverlay:"Bp",rightOverlay:"Cp",imageFit:"Dp",imageFill:"Ep",infoIcon__button:"Fp",infoIcon:"Gp",storyAd__main:"Hp",storyAd__topBar:"Ip",storyAd__topBar__left:"Jp",storyAd__topBar__avatar:"Kp",storyAd__topBar__text:"Lp",storyAd__topBar__advertiserName:"Mp",storyAd__topBar__right:"Np",storyAd__closeButton:"Op"};var OL=({pageId:e="*",ad:t,avatarUrl:o,adImageUrl:r,currentIndex:n,isPaused:i,storiesCount:a,renderLoader:s=()=>R.createElement("div",null,"loading..."),onComplete:l=()=>{},onPauseClick:d,onPlayClick:p,onClose:u,onImageLoaded:g,onAdvertisementInfoOpen:f,onAdvertisementInfoClose:y})=>{var T;let[v,C]=useState(!1),[h,x]=useState(!1),b=()=>{x(!0),f==null||f();},M=()=>{x(!1),y==null||y();},I=useRef(null),w=useRef(null),k=()=>{C(!0),g==null||g();};return R.createElement("div",{className:Yt.rendererContainer,ref:w},R.createElement("div",{className:Yt.storyAd__main},R.createElement(e2,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),R.createElement("div",{className:Yt.storyAd__topBar},R.createElement("div",{className:Yt.storyAd__topBar__left},R.createElement("div",{className:Yt.storyAd__topBar__avatar},R.createElement(vt,{defaultImage:R.createElement(Lm,null),avatarUrl:o})),R.createElement("div",{className:Yt.storyAd__topBar__text},R.createElement(S.BodyBold,{className:Yt.storyAd__topBar__advertiserName},(T=t.advertiser)==null?void 0:T.name),R.createElement(Bm,null))),R.createElement("div",{className:Yt.storyAd__topBar__right},i?R.createElement(wo,{className:Yt.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):R.createElement(As,{className:Yt.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>d==null?void 0:d()}),R.createElement(Mr,{defaultClassName:sr(Yt.storyAd__closeButton),pageId:e,onPress:u}))),R.createElement("div",{className:sr(Yt.storyImageContainer)},R.createElement("img",{ref:I,className:sr(Yt.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:k,alt:"Story Image",crossOrigin:"anonymous"})),!v&&R.createElement("div",{className:Yt.loadingOverlay},s()),t.callToActionUrl&&R.createElement("div",{className:Yt.hyperLinkContainer},R.createElement("a",{className:Yt.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),R.createElement(F,{className:Yt.infoIcon__button,onPress:()=>{b();}},R.createElement(mn,{className:Yt.infoIcon}))),R.createElement(DL,{ad:t,isOpen:h,targetRef:w,onOpenChange:L=>!L&&M()}))};var Wce=({story:e,action:t,config:o,onClose:r})=>{var k,T,L,D,U,j;let[n,i]=useState(!1),{loader:a}=o,{ad:s,currentIndex:l,storiesCount:d,increaseIndex:p,pageId:u,dragEventTarget:g}=e,f=()=>{t("play",!0),i(!1);},y=()=>{t("pause",!0),i(!0);},C=rt({fileId:(T=(k=s==null?void 0:s.advertiser)==null?void 0:k.avatar)==null?void 0:T.fileId})||((D=(L=s==null?void 0:s.advertiser)==null?void 0:L.avatar)==null?void 0:D.fileUrl)||"",x=rt({fileId:(U=s==null?void 0:s.image9_16)==null?void 0:U.fileId})||((j=s==null?void 0:s.image9_16)==null?void 0:j.fileUrl)||"",b=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),M=()=>{t("pause",!0);},I=()=>{t("play",!0);},w=()=>{p();};return useEffect(()=>{var E,V;if(g){let G=()=>{t("pause",!0),i(!0);},q=()=>{t("play",!0),i(!1);};return (E=g.current)==null||E.addEventListener("dragstart",G),(V=g.current)==null||V.addEventListener("dragend",q),()=>{var O,H;(O=g.current)==null||O.removeEventListener("dragstart",G),(H=g.current)==null||H.removeEventListener("dragend",q);}}},[g]),s?R.createElement(OL,{pageId:u,ad:s,adImageUrl:x,avatarUrl:C,currentIndex:l,isPaused:n,storiesCount:d,renderLoader:()=>a,onComplete:w,onPauseClick:y,onPlayClick:f,onClose:r,onImageLoaded:b,onAdvertisementInfoOpen:M,onAdvertisementInfoClose:I}):null},qce=e=>({condition:!!e.ad,priority:2}),zL={renderer:Wce,tester:qce};var t2=[SL,NL,zL,AL,LL];var P9={storyButton:"xr",desktopOnly:"wr"};var Xce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),R.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"})),Id=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_left_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("button",{"data-qa-anchor":n,className:sr(P9.storyButton,P9.desktopOnly),onClick:o,style:a},R.createElement(Xce,null))};var _9={storyButton:"yr",desktopOnly:"kr"};var ede=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),R.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"})),wd=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_right_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("button",{"data-qa-anchor":n,className:sr(_9.storyButton,_9.desktopOnly),onClick:o,style:a},R.createElement(ede,null))};var tr={overlayLeft:"jr",overlayRight:"zr",viewStoryContent:"Pp",viewStoryOverlay:"Qp",hiddenInput:"Rp",viewStoryContainer:"Sp",storyWrapper:"Tp",deleteIcon:"Up",arrowButton:"Wp"};var lde=7e3,Ms=e=>!!(e!=null&&e.storyId),iu=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var Q;let{accessibilityId:s}=Xe({pageId:e}),{confirm:l}=Ye(),d=Po(),p=useMotionValue(0),u=useRef(null),g=useRef(new EventTarget),[f,y]=useState(!1),{stories:v}=ta({targetId:t,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),C=useMemo(()=>t2.map(({renderer:B,tester:$})=>({renderer:re=>B(N(c({},re),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:$})),[t2,r,i,t]),h=useRef(null),{client:x,currentUserId:b}=De(),[M,I]=useState(0),{file:w,setFile:k}=fi(),T=v[M],L=Ms(T)?((Q=T==null?void 0:T.creator)==null?void 0:Q.userId)===b:!1,D=Ms(T)?ap(x,T==null?void 0:T.targetId):!1,U=()=>{if(M===v.length-1){o();return}I(M+1);},j=()=>{M!==0&&I(M-1);},E=B=>{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:()=>_(void 0,null,function*(){y(!1),yield StoryRepository.softDeleteStory(B),M===0?r(t):I(M-1),d.success({content:"Story deleted"});})});},V=B=>{E(B);},G=useCallback((B,$,ne,re)=>_(void 0,null,function*(){var fe;try{let pe=new FormData;pe.append("files",B),k(null),B!=null&&B.type.includes("image")&&b?yield StoryRepository.createImageStory("user",b,pe,ne,$,re):b&&(yield StoryRepository.createVideoStory("user",b,pe,ne,re)),d.success({content:"Successfully shared story"});}catch(pe){pe instanceof Error&&d.info({content:(fe=pe.message)!=null?fe:"Failed to share story"});}}),[b,d,k]),q=()=>{k(null);},O=R.createElement(FileTrigger,{ref:h,onSelect:B=>{let $=Array.from(B);k($[0]);}},R.createElement(is,{pageId:e})),H=()=>{if(M===v.length-1){o();return}I(B=>B+1);},z=v==null?void 0:v.map(B=>{var $,ne,re;if(Ms(B)){let fe=(B==null?void 0:B.dataType)==="image",pe=fe?($=B==null?void 0:B.imageData)==null?void 0:$.fileUrl:(re=(ne=B==null?void 0:B.videoData)==null?void 0:ne.videoUrl)==null?void 0:re["720p"];return {story:B,url:pe,type:fe?"image":"video",actions:[L||D?{name:"Delete",action:()=>V(B==null?void 0:B.storyId),icon:R.createElement(v4,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(Yr),onCreateStory:G,discardStory:q,addStoryButton:O,fileInputRef:h,currentIndex:M,storiesCount:v==null?void 0:v.length,increaseIndex:H,pageId:e,dragEventTarget:g.current,setIsBottomSheetOpen:y,isBottomSheetOpen:f}}else return {ad:B,actions:[],pageId:e,currentIndex:M,storiesCount:v==null?void 0:v.length,increaseIndex:H}}),Z="asc-uikit-stories-viewer";return useEffect(()=>{let B=v[v.length-1];Ms(B)&&(B==null?void 0:B.syncState)==="syncing"&&I(v.length-1),T&&Ms(T)&&(T==null||T.analytics.markAsSeen());},[M,v]),useEffect(()=>{if(v.filter(Ms).every($=>$==null?void 0:$.isSeen))return;let B=v.findIndex($=>Ms($)?!($!=null&&$.isSeen):!1);B!==-1&&I(B);},[]),Xa({targetId:t,targetType:"community"}),w&&a(t,"community",w.type.includes("image")?{type:"image",url:URL.createObjectURL(w)}:{type:"video",url:URL.createObjectURL(w)},"communityFeed"),!v||v.length===0?null:R.createElement("div",{className:sr(tr.storyWrapper)},R.createElement(Id,{onClick:j}),R.createElement(motion.div,{id:Z,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:()=>{g.current.dispatchEvent(new Event("dragstart"));},onDrag:(B,$)=>{$.point.y<$.point.y-$.offset.y&&p.set(0);},onDragEnd:(B,$)=>{g.current.dispatchEvent(new Event("dragend")),$.offset.y>100?n(t):p.set(0);},className:sr(tr.viewStoryContainer)},R.createElement("div",{className:sr(tr.viewStoryContent)},R.createElement("div",{className:sr(tr.overlayLeft),onClick:j}),R.createElement("div",{className:sr(tr.overlayRight),onClick:U}),R.createElement("div",{className:sr(tr.viewStoryOverlay)}),R.createElement(nde,{key:v==null?void 0:v.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:M,stories:z,renderers:C,defaultInterval:lde,onStoryStart:()=>Ms(T)&&(T==null?void 0:T.analytics.markAsSeen()),onStoryEnd:U,onNext:U,onPrevious:j,onAllStoriesEnd:U}))),R.createElement(wd,{onClick:U}))};var fde=7e3,Ps=e=>!!(e!=null&&e.storyId),VL=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var Q;let{accessibilityId:d}=Xe({pageId:e}),{confirm:p}=Ye(),u=Po(),{client:g,currentUserId:f}=De(),{file:y,setFile:v}=fi(),C=useMotionValue(0),h=useRef(null),x=useRef(new EventTarget),[b,M]=useState(0),I=useRef(null),{stories:w}=ta({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),k=useMemo(()=>t2.map(({renderer:B,tester:$})=>({renderer:re=>B(N(c({},re),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:$})),[t2,a,s,l,t]),T=w[b],L=Ps(T)?((Q=T==null?void 0:T.creator)==null?void 0:Q.userId)===f:!1,D=Ps(T)?ap(g,T==null?void 0:T.targetId):!1,U=()=>{if(b===0){let $=o.indexOf(t)-1;if($>=0){let ne=o[$];n(ne);}else r==null||r();M(0);return}M(B=>B-1);},j=B=>{let $=b===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:()=>_(void 0,null,function*(){yield StoryRepository.softDeleteStory(B),u.success({content:"Story deleted"}),w.length===1?r==null||r():$?U():M(ne=>ne);})});},E=B=>{j(B);},V=(B,$,ne,re)=>_(void 0,null,function*(){var fe;try{let pe=new FormData;if(pe.append("files",B),v(null),B!=null&&B.type.includes("image")&&f){let{data:Ze}=yield StoryRepository.createImageStory("user",f,pe,ne,$,re);Ze&&u.success({content:"Successfully shared story"});}else if(f){let{data:Ze}=yield StoryRepository.createVideoStory("user",f,pe,ne,re);Ze&&u.success({content:"Successfully shared story"});}}catch(pe){pe instanceof Error&&u.info({content:(fe=pe.message)!=null?fe:"Failed to share story"});}}),G=()=>{v(null);},q=R.createElement(FileTrigger,{ref:I,onSelect:B=>{let $=Array.from(B);v($[0]);}},R.createElement(is,{pageId:e})),O=()=>{b!==w.length-1&&M(B=>B+1);},H=w==null?void 0:w.map(B=>{var $,ne,re;if(Ps(B)){let fe=(B==null?void 0:B.dataType)==="image",pe=fe?($=B==null?void 0:B.imageData)==null?void 0:$.fileUrl:(re=(ne=B==null?void 0:B.videoData)==null?void 0:ne.videoUrl)==null?void 0:re["720p"];return {story:B,url:pe,type:fe?"image":"video",actions:[L||D?{name:"Delete",action:()=>E(B==null?void 0:B.storyId),icon:R.createElement(p1,{className:tr.deleteIcon})}:null].filter(Yr),onCreateStory:V,discardStory:G,addStoryButton:q,fileInputRef:I,currentIndex:b,storiesCount:w==null?void 0:w.length,increaseIndex:O,pageId:e}}else return {ad:B,actions:[],pageId:e,currentIndex:b,storiesCount:w==null?void 0:w.length,increaseIndex:O}}),z=()=>{if(b===(H==null?void 0:H.length)-1){let $=o.indexOf(t)+1;if($<o.length){let ne=o[$];n(ne);}else r==null||r();M(0);return}M(B=>B+1);},Z="asc-uikit-stories-viewer";return useEffect(()=>{let B=w[w.length-1];Ps(B)&&(B==null?void 0:B.syncState)==="syncing"&&M(w.length-1),T&&Ps(T)&&(T==null||T.analytics.markAsSeen());},[T,w]),useEffect(()=>{if(w.filter(Ps).every($=>$==null?void 0:$.isSeen))return;let B=w.findIndex($=>Ps($)?!($!=null&&$.isSeen):!1);B!==-1&&M(B);},[]),useEffect(()=>{y&&i(t,"community",y.type.includes("image")?{type:"image",url:URL.createObjectURL(y)}:{type:"video",url:URL.createObjectURL(y)},"globalFeed");},[y,i,t]),Xa({targetId:t,targetType:"community"}),!w||w.length===0?null:R.createElement("div",{className:sr(tr.storyWrapper),"data-qa-anchor":d},R.createElement(Id,{onClick:U}),R.createElement(motion.div,{id:Z,ref:h,"data-qa-anchor":d,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:(B,$)=>{$.point.y<$.point.y-$.offset.y&&C.set(0);},onDragEnd:(B,$)=>{x.current.dispatchEvent(new Event("dragend")),$.offset.y>100?s(t):C.set(0);},className:sr(tr.viewStoryContainer)},R.createElement("div",{className:sr(tr.viewStoryContent)},R.createElement("div",{className:sr(tr.overlayLeft),onClick:U}),R.createElement("div",{className:sr(tr.overlayRight),onClick:z}),R.createElement("div",{className:sr(tr.viewStoryOverlay)}),R.createElement(nde,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:H,renderers:k,defaultInterval:fde,onStoryStart:()=>Ps(T)&&(T==null?void 0:T.analytics.markAsSeen()),onStoryEnd:O,onNext:z,onPrevious:U,onAllStoriesEnd:z}))),R.createElement(wd,{onClick:z}))};var au=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=p5({seenState:"smart",limit:10});return R.createElement(VL,{pageId:e,targetId:t,targetIds:l.map(d=>d.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var hde=({type:e,targetId:t})=>{let o="view_story_page",{onBack:r,goToDraftStoryPage:n,onClickCommunity:i,onChangePage:a,onClickStory:s}=X(),l=()=>{a("newsfeed");},d=p=>{i(p);};return e==="communityFeed"?R.createElement(iu,{pageId:o,communityId:t,onBack:r,onClose:d,onSwipeDown:d,onClickCommunity:d,goToDraftStoryPage:({targetId:p,targetType:u,mediaType:g,storyType:f})=>n(p,u,g,f)}):e==="globalFeed"?R.createElement(au,{pageId:o,targetId:t,onChangePage:l,onClose:l,onSwipeDown:l,onClickStory:p=>s(p,"globalFeed"),goToDraftStoryPage:({targetId:p,targetType:u,mediaType:g,storyType:f})=>n(p,u,g,f),onClickCommunity:p=>i(p)}):null},GL=hde;var ZL={roundedBackButton:"Zp"};var vde=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),B9=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="back_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{style:u,className:ZL.roundedBackButton,onPress:n},R.createElement(ee,{"data-qa-anchor":a,defaultIcon:()=>R.createElement(vde,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var jn={draftPageContainer:"Xr",headerContainer:"_p",storyWrapper:"ef",header:"rf",topRightButtons:"af",mainContainer:"of",previewImage:"tf",footer:"if",videoPreview:"sf",hyperLinkContainer:"cf",playPauseButton:"nf",progressBar:"lf",progressFill:"df",userInfo:"mf",name:"gf",description:"hf",storyPreview:"pf"};var L9=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var G,q,O,H,z,Z;let{page:a}=Le(),s="create_story_page",{accessibilityId:l,themeStyles:d}=Xe({pageId:s}),{file:p,setFile:u}=fi(),{community:g}=k3(e),[f,y]=useState(!1),{confirm:v}=Ye(),C=Po(),[h,x]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),b=()=>{y(!1);},[M,I]=useState("fit"),[w,k]=useState([]),T=()=>{I(M==="fit"?"fill":"fit"),M==="fill"&&k([]);},L=(Q,B,$,ne)=>_(void 0,null,function*(){var re;if(Q)try{let fe=new FormData;fe.append("files",Q),u(null),a.type==="DraftPage"&&a.context.storyType==="globalFeed"?n():r(e),(o==null?void 0:o.type)==="image"&&e?yield StoryRepository.createImageStory(t,e,fe,$,B,ne):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,fe,$,ne)),C.success({content:"Successfully shared story"});}catch(fe){fe instanceof Error&&C.info({content:(re=fe.message)!=null?re:"Failed to share story"});}}),D=()=>{v({pageId:s,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:()=>{u(null),i();}});},U=({url:Q,customText:B})=>{x([{data:{url:Q,customText:B||""},type:"hyperlink"}]),y(!1);},j=()=>{x([{data:{url:"",customText:""},type:"hyperlink"}]);},E=()=>{var Q,B;if((B=(Q=h[0])==null?void 0:Q.data)!=null&&B.url){C.info({content:"Can\u2019t add more than one link to your story."});return}y(!0);},V=useCallback(Q=>_(void 0,null,function*(){let B=new Image;B.crossOrigin="Anonymous",B.src=Q,B.onload=()=>{let ne=new Mce().getPalette(B,2);ne&&k(ne.map(re=>`rgb(${re.join(",")})`));};}),[]);return useEffect(()=>{_(void 0,null,function*(){if((o==null?void 0:o.type)==="image")if(p){let B=URL.createObjectURL(p);yield V(B);}else o.url&&(yield V(o.url));});},[p,o,V]),R.createElement("div",{"data-qa-anchor":l,style:d,className:jn.storyWrapper},R.createElement("div",{id:"asc-uikit-create-story",className:jn.draftPageContainer},R.createElement("div",{className:jn.headerContainer},R.createElement("div",{className:jn.header},R.createElement(B9,{pageId:s,onPress:D}),R.createElement("div",{className:jn.topRightButtons},(o==null?void 0:o.type)==="image"&&R.createElement(B3,{pageId:s,onPress:T}),R.createElement(O3,{pageId:s,onPress:E})))),(o==null?void 0:o.type)==="image"?R.createElement("div",{className:jn.mainContainer,style:{background:`linear-gradient(
|
|
4742
|
+
`,nce=e=>R.createElement(rce,c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none"},e),R.createElement("circle",{cx:"10.5",cy:"10.5",r:"9",fill:"none",stroke:"white",strokeWidth:"2"}),R.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"})),Y5=nce;var Cf={storyCommentButton:"up",storyCommentIcon:"vp"};var sce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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"})),bL=({pageId:e="*",componentId:t="*",onPress:o,commentsCount:r,imgClassName:n})=>{let i="story_comment_button",{isExcluded:a,accessibilityId:s,defaultConfig:l,config:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return a?null:R.createElement(F,{"data-qa-anchor":s,onPress:o,style:u,className:sr(Cf.storyCommentButton)},R.createElement(ee,{defaultIconName:l.icon,configIconName:d.icon,imgIcon:()=>R.createElement("img",{src:d.icon,alt:p,className:sr(n),style:u}),defaultIcon:()=>R.createElement("div",{className:sr(Cf.storyCommentIcon)},R.createElement(sce,null),R.createElement(S.BodyBold,null,ob(r)))}))};var xf={storyReactionButton:"xp",storyReactionIcon:"wp"};var cce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e),R.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"})),dce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),R.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_linear_7702_34939)"}),R.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"}),R.createElement("defs",null,R.createElement("linearGradient",{id:"paint0_linear_7702_34939",x1:"9",x2:"19.8",y1:"2.4",y2:"29.4",gradientUnits:"userSpaceOnUse"},R.createElement("stop",{stopColor:"#5B9DFF"}),R.createElement("stop",{offset:"1",stopColor:"#0041BE"})))),IL=({myReactions:e=[],reactionsCount:t,pageId:o="*",componentId:r="*",defaultIconClassName:n,imgIconClassName:i,onPress:a})=>{let s="story_reaction_button",{isExcluded:l,accessibilityId:d,config:p,uiReference:u,themeStyles:g}=A({pageId:o,componentId:r,elementId:s}),f=e.length>0;return l?null:R.createElement(F,{"data-qa-anchor":d,className:sr(xf.storyReactionButton),onPress:a,style:g},R.createElement(ee,{defaultIcon:()=>R.createElement("div",{className:sr(xf.storyReactionIcon,n)},f?R.createElement(dce,null):R.createElement(cce,null),R.createElement(S.BodyBold,null,ob(t))),imgIcon:()=>R.createElement("img",{src:p.icon,alt:u,className:sr(i)})}))};var ws={viewStoryCompostBarContainer:"yp",viewStoryFailedCompostBarContainer:"kp",viewStoryFailedCompostBarWrapper:"jp",viewStoryUploadingWrapper:"zp",viewStoryCompostBarViewIconContainer:"Xp",viewStoryCompostBarEngagementContainer:"Yp",viewStoryCommentButton:"Cp",viewStoryCommentIcon:"Ap"};var uce=({pageId:e="*",syncState:t,reach:o,commentsCount:r,reactionsCount:n,isLiked:i,storyId:a,onClickComment:s,showImpression:l,isMember:d,myReactions:p})=>{let u=Po(),g=()=>_(void 0,null,function*(){try{if(!d){u.info({content:"Join community to interact with all stories"});return}i?yield ReactionRepository.removeReaction("story",a,cr):yield ReactionRepository.addReaction("story",a,cr);}catch(f){console.error("Can't toggle like",f);}});return t==="syncing"?R.createElement("div",{className:ws.viewStoryCompostBarContainer},R.createElement("div",{className:ws.viewStoryUploadingWrapper},R.createElement(Y5,{width:20,height:20}),"Uploading...")):t==="error"?R.createElement("div",{className:ws.viewStoryFailedCompostBarContainer},R.createElement("div",{className:ws.viewStoryFailedCompostBarWrapper},R.createElement(C4,null),R.createElement("span",null,"Failed to upload")),R.createElement(Na,null)):R.createElement("div",{className:ws.viewStoryCompostBarContainer},R.createElement("div",null,l&&R.createElement("div",{className:ws.viewStoryCompostBarViewIconContainer},R.createElement(z3,{reach:o}))),R.createElement("div",{className:ws.viewStoryCompostBarEngagementContainer},R.createElement(bL,{pageId:e,commentsCount:r,onPress:s}),R.createElement(IL,{pageId:e,myReactions:p,reactionsCount:n,onPress:g})))},R5=uce;var Gr={iconButton:"Mp",rendererContainer:"Sp",storyVideo:"Ep",muteCircleIcon:"Fp",unmuteCircleIcon:"Ip",loadingOverlay:"Rp",storyImage:"Up",playStoryButton:"Bp",pauseStoryButton:"Dp",closeButton:"Hp",verifiedBadge:"Lp",dotsButton:"Tp",viewStoryInfoContainer:"Vp",viewStoryCompostBarContainer:"qp",viewStoryCompostBarViewIconContainer:"Gp",viewStoryCompostBarEngagementContainer:"Jp",viewStoryCompostBarEngagementIconContainer:"Kp",storyContent:"Np",header:"Op",viewStoryContainer:"Pp",viewStoryHeaderContainer:"Qp",avatarContainer:"Wp",addStoryButton:"pr",viewStoryHeaderListActionsContainer:"Zp",viewStoryHeadingInfoContainer:"_p",viewStoryHeading:"eg",viewStoryHeadingTitle:"rg",viewStorySubHeading:"ag"};var hce=({community:e,heading:t,subheading:o,isHaveActions:r,isOfficial:n,isPaused:i,onPlay:a,onPause:s,onAction:l,onClose:d,onClickCommunity:p,haveStoryPermission:u,addStoryButton:g})=>R.createElement("div",{className:Gr.viewStoryHeaderContainer},R.createElement("div",{className:Gr.viewStoryHeadingInfoContainer},R.createElement("div",{className:Gr.avatarContainer},R.createElement(Or,{pageId:"story_page",community:e}),u&&g),R.createElement("div",{className:Gr.viewStoryInfoContainer},R.createElement("div",{className:Gr.viewStoryHeading},R.createElement(mw,{lines:1},R.createElement("div",{className:Gr.viewStoryHeadingTitle,"data-qa-anchor":"community_display_name",onClick:p},t)),n&&R.createElement(d1,{className:Gr.verifiedBadge})),R.createElement("span",{className:Gr.viewStorySubHeading},o))),R.createElement("div",{className:Gr.viewStoryHeaderListActionsContainer},i?R.createElement(wo,{className:Gr.playStoryButton,"data-qa-anchor":"play_button",onClick:a}):R.createElement(As,{className:Gr.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:s}),r&&R.createElement(U3,{pageId:"story_page",onPress:l}),R.createElement(Mr,{defaultClassName:sr(Gr.closeButton),pageId:"story_page",onPress:d}))),eu=hce;function hd({queryParams:e,shouldCall:t=!0}){let n=dt({fetcher:CommunityRepository.Membership.getMembers,params:N(c({},e),{includeDeleted:!1}),shouldCall:!!(e!=null&&e.communityId)&&t}),{items:o}=n,r=P(n,["items"]);return c({members:o},r)}var Co={iconButton:"og",hyperLinkContainer:"gr",rendererContainer:"tg",storyVideo:"ig",muteCircleIcon:"lg",unmuteCircleIcon:"sg",loadingOverlay:"cg",storyImageContainer:"ng",storyImage:"dg",playStoryButton:"mg",pauseStoryButton:"pg",closeButton:"gg",verifiedBadge:"hg",dotsButton:"fg",viewStoryInfoContainer:"bg",viewStoryCompostBarContainer:"ug",viewStoryCompostBarViewIconContainer:"vg",viewStoryCompostBarEngagementContainer:"xg",viewStoryCompostBarEngagementIconContainer:"wg",header:"yg",viewStoryContainer:"kg",viewStoryHeaderContainer:"jg",avatarContainer:"zg",addStoryButton:"hr",viewStoryHeaderListActionsContainer:"Xg",viewStoryHeadingInfoContainer:"Yg",viewStoryHeading:"Cg",viewStoryHeadingTitle:"Ag",viewStorySubHeading:"Mg",story:"Sg",storyContent:"Eg",actionButton:"fr",navigationOverlay:"Fg",leftOverlay:"Ig",rightOverlay:"Rg",imageFit:"Ug",imageFill:"Bg"};var tu={progressBarContainer:"Dg",progressSegment:"Hg",progressBar:"Lg"};var t2=R.memo(({pageId:e="*",componentId:t="*",duration:o,currentIndex:r,storiesCount:n,isPaused:i,onComplete:a})=>{let s="progress_bar",{config:l,isExcluded:d}=A({pageId:e,componentId:t,elementId:s}),[p,u]=useState(new Array(n).fill(0)),[g,f]=useState(r),y=l==null?void 0:l.backgroundColor,v=l==null?void 0:l.progressColor;return useEffect(()=>{r<g&&u(C=>{let h=[...C];return h[r]=0,h}),f(r);},[r,g]),useEffect(()=>{let C;return i||(C=setInterval(()=>{u(h=>{let x=[...h];return x[r]<100&&(x[r]+=100/o*100,x[r]>=100&&(x[r]=100,a())),x});},100)),()=>{C&&clearInterval(C);}},[o,r,i,a]),d?null:R.createElement("div",{className:sr(tu.progressBarContainer),style:{backgroundColor:y}},p.map((C,h)=>R.createElement("div",{key:h,className:sr(tu.progressSegment),style:{width:`calc(${100/n}% - 4px)`}},R.createElement("div",{className:sr(tu.progressBar),style:{width:`${h<r?100:h===r?C:0}%`,backgroundColor:v}}))))});var Pce=({story:{actions:e,fileInputRef:t,addStoryButton:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l,url:d},action:p,config:u,onClose:g,onClickCommunity:f})=>{var Hi,Pa,ot,xn;let{formatMessage:y}=useIntl(),[v,C]=useState(!1),[h,x]=useState(!1),[b,M]=useState(!1),[I,w]=useState(!1),{loader:k}=u,{client:T}=De(),[L,D]=useState(""),U=useRef(null),j=!!(l&&l.myReactions&&l.myReactions.includes(zn)),E=(l==null?void 0:l.reactionsCount)||0,{storyId:V,syncState:G,reach:q,commentsCount:O,createdAt:H,creator:z,community:Z,myReactions:Q,data:B,items:$}=l,{members:ne}=hd({queryParams:{communityId:Z==null?void 0:Z.communityId},shouldCall:!!(Z!=null&&Z.communityId)}),fe=(ne==null?void 0:ne.find(qe=>qe.userId===(T==null?void 0:T.userId)))!=null,{user:pe}=pr(T==null?void 0:T.userId),Ze=(Z==null?void 0:Z.isOfficial)||!1,ct=(z==null?void 0:z.userId)===(pe==null?void 0:pe.userId),$t=c5(pe==null?void 0:pe.roles),Vt=m5(pe==null?void 0:pe.roles),ye=$t||Vt||us(T,Z==null?void 0:Z.communityId),Cn=useMemo(()=>R.createElement("div",{"data-qa-anchor":"community_display_name"},Z==null?void 0:Z.displayName),[Z==null?void 0:Z.displayName]),Kn=useMemo(()=>H&&(z!=null&&z.displayName)?R.createElement("span",null,R.createElement("span",{"data-qa-anchor":"created_at"},d5(H))," \u2022 By"," ",R.createElement("span",{"data-qa-anchor":"creator_display_name"},z==null?void 0:z.displayName)):"",[H,z==null?void 0:z.displayName]),Er="asc-uikit-stories-viewer",qr=useCallback(()=>{if(U.current&&U.current.complete){let eo=new Mce().getPalette(U.current,2);if(eo){let Ke=`linear-gradient(to top, rgb(${eo[0].join(",")}), rgb(${eo[1].join(",")})`;D(Ke);}}},[]),vn=useCallback(()=>{C(!0),I&&w(!1),p("play",!0),qr();},[p,I,qr]),Br=()=>{p("play",!0),w(!1);},Kr=()=>{p("pause",!0),w(!0);},ce=()=>{p("pause",!0),x(!0);},ue=()=>{p("play",!0),x(!1);},Jr=()=>{p("pause",!0),M(!0);},zo=()=>{p("play",!0),M(!1);},Lr=()=>{g();},Di=()=>{i();};return useEffect(()=>{U.current&&U.current.complete&&qr();},[]),useEffect(()=>{if(t.current){let qe=()=>{p("pause",!0),w(!0);},eo=()=>{p("play",!0),w(!1);};return t.current.addEventListener("click",qe),t.current.addEventListener("cancel",eo),()=>{t.current&&(t.current.removeEventListener("cancel",eo),t.current.removeEventListener("click",qe));}}},[t]),useEffect(()=>{var qe,eo;if(s){let Ke=()=>{p("pause",!0),w(!0);},to=()=>{p("play",!0),w(!1);};return (qe=s.current)==null||qe.addEventListener("dragstart",Ke),(eo=s.current)==null||eo.addEventListener("dragend",to),()=>{var bn,Fi;(bn=s.current)==null||bn.removeEventListener("dragstart",Ke),(Fi=s.current)==null||Fi.removeEventListener("dragend",to);}}},[s]),R.createElement("div",{className:Co.rendererContainer,style:{background:L}},R.createElement(t2,{pageId:a,duration:5e3,currentIndex:r,storiesCount:n,isPaused:I||h||b,onComplete:Di}),R.createElement(eu,{community:Z,heading:Cn,subheading:Kn,isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:ye,isOfficial:Ze,isPaused:I,onPlay:Br,onPause:Kr,onAction:ce,onClickCommunity:()=>f==null?void 0:f(),onClose:Lr,addStoryButton:o}),R.createElement("div",{className:sr(Co.storyImageContainer,{[Co.imageFit]:B.imageDisplayMode==="fit",[Co.imageFill]:B.imageDisplayMode==="fill"})},R.createElement("img",{ref:U,className:sr(Co.storyImage,{[Co.imageFit]:B.imageDisplayMode==="fit",[Co.imageFill]:B.imageDisplayMode==="fill"}),"data-qa-anchor":"image_view",src:d!=null?d:l==null?void 0:l.data.fileData,onLoad:vn,alt:"Story Image",crossOrigin:"anonymous"})),!v&&R.createElement("div",{className:Co.loadingOverlay},k||R.createElement("div",null,"loading...")),R.createElement(Pr,{rootId:Er,isOpen:h,onClose:ue,mountPoint:document.getElementById(Er),detent:"content-height"},e==null?void 0:e.map(qe=>R.createElement(F,{key:qe.name,className:Co.actionButton,onPress:()=>qe==null?void 0:qe.action()},(qe==null?void 0:qe.icon)&&qe.icon,R.createElement(S.BodyBold,null,qe.name)))),R.createElement(Pr,{rootId:Er,isOpen:b,onClose:zo,mountPoint:document.getElementById(Er),detent:"full-height",headerTitle:y({id:"storyViewer.commentSheet.title"})},R.createElement(Dm,{referenceId:V,referenceType:"story",community:Z,shouldAllowCreation:Z==null?void 0:Z.allowCommentInStory,shouldAllowInteraction:fe})),((Pa=(Hi=$==null?void 0:$[0])==null?void 0:Hi.data)==null?void 0:Pa.url)&&R.createElement("div",{className:Co.hyperLinkContainer},R.createElement(Ci,{href:$[0].data.url.startsWith("http")?$[0].data.url:`https://${$[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},R.createElement(mw,{lines:1},R.createElement("span",null,((xn=(ot=$[0])==null?void 0:ot.data)==null?void 0:xn.customText)||$[0].data.url.replace(/^https?:\/\//,""))))),R.createElement(R5,{pageId:a,storyId:V,syncState:G,reach:q,commentsCount:O,reactionsCount:E,isLiked:j,myReactions:Q,onClickComment:Jr,showImpression:ct||us(T,Z==null?void 0:Z.communityId),isMember:fe}))},_ce=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&(!e.type||e.type==="image"),priority:2}},SL={renderer:Pce,tester:_ce};var Sce=()=>{let[e,t]=useState(!1),o=useCallback(()=>t(!0),[]),r=useCallback(()=>t(!1),[]);return {muted:e,mute:o,unmute:r}},Nce=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}},Ece=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}},Bce=({story:{actions:e,addStoryButton:t,fileInputRef:o,currentIndex:r,storiesCount:n,increaseIndex:i,pageId:a,dragEventTarget:s,story:l},action:d,config:p,messageHandler:u,onClose:g,onClickCommunity:f})=>{var Br,Kr,ce,ue,Jr,zo,Lr,Di,Hi,Pa;let[y,v]=useState(!1),{loader:C}=p,{client:h}=De(),{user:x}=pr(h==null?void 0:h.userId),b=useRef(null),{muted:M,mute:I,unmute:w}=Sce(),{isPaused:k,play:T,pause:L}=Nce(d),{isBottomSheetOpen:D,isOpenCommentSheet:U,openBottomSheet:j,closeBottomSheet:E,openCommentSheet:V,closeCommentSheet:G}=Ece(d),{storyId:q,syncState:O,reach:H,commentsCount:z,createdAt:Z,creator:Q,community:B,myReactions:$,data:ne,items:re}=l,fe=(Br=l==null?void 0:l.myReactions)==null?void 0:Br.includes(zn),pe=(l==null?void 0:l.reactions[zn])||0,{members:Ze}=hd({queryParams:{communityId:B==null?void 0:B.communityId},shouldCall:!!(B!=null&&B.communityId)}),ct=Ze==null?void 0:Ze.some(ot=>ot.userId===(h==null?void 0:h.userId)),$t=(B==null?void 0:B.isOfficial)||!1,Vt=(Q==null?void 0:Q.userId)===(x==null?void 0:x.userId),ye=c5(x==null?void 0:x.roles),Cn=m5(x==null?void 0:x.roles),Kn=ye||Cn||us(h,B==null?void 0:B.communityId),Er=useCallback(()=>{var ot;u("UPDATE_VIDEO_DURATION",{duration:(ot=l==null?void 0:l.videoData)==null?void 0:ot.attributes.metadata.video.duration}),v(!0),d("play",!0);},[u,(Kr=l==null?void 0:l.videoData)==null?void 0:Kr.attributes.metadata.video.duration,d]),qr=useCallback(()=>{r+1<n?i():g();},[r,n,i,g]);useEffect(()=>{b.current&&(k||D||U?(b.current.pause(),d("pause",!0)):(b.current.play(),d("play",!0)));},[k,D,U,d]),useEffect(()=>{if(o.current){let ot=()=>{d("pause",!0),L();},xn=()=>{d("play",!0),T();};return o.current.addEventListener("click",ot),o.current.addEventListener("cancel",xn),()=>{var qe,eo;(qe=o.current)==null||qe.removeEventListener("click",ot),(eo=o.current)==null||eo.removeEventListener("cancel",xn);}}},[d,L,T]),useEffect(()=>{if(s!=null&&s.current){let ot=()=>{d("pause",!0),L();},xn=()=>{d("play",!0),T();};return s.current.addEventListener("dragstart",ot),s.current.addEventListener("dragend",xn),()=>{var qe,eo;(qe=s.current)==null||qe.removeEventListener("dragstart",ot),(eo=s.current)==null||eo.removeEventListener("dragend",xn);}}},[d,L,T,s]);let vn=Math.round(((ce=l==null?void 0:l.videoData)==null?void 0:ce.attributes.metadata.video.duration)*1e3);return R.createElement("div",{className:sr(Co.rendererContainer)},R.createElement(t2,{pageId:a,duration:vn,currentIndex:r,storiesCount:n,isPaused:k||D||U,onComplete:qr}),R.createElement(Z3,{pageId:"story_page",componentId:"*",isMuted:M,onPress:M?w:I}),R.createElement(eu,{community:B,heading:R.createElement("div",{"data-qa-anchor":"community_display_name"},B==null?void 0:B.displayName),subheading:Z&&(Q!=null&&Q.displayName)?R.createElement("span",null,R.createElement("span",{"data-qa-anchor":"created_at"},d5(Z))," \u2022 By"," ",R.createElement("span",{"data-qa-anchor":"creator_display_name"},Q==null?void 0:Q.displayName)):"",isHaveActions:(e==null?void 0:e.length)>0,haveStoryPermission:Kn,isOfficial:$t,isPaused:k,onPlay:T,onPause:L,onMute:I,onUnmute:w,onAction:j,onClickCommunity:()=>f==null?void 0:f(),onClose:g,addStoryButton:t}),R.createElement("video",{"data-qa-anchor":"video_view",ref:b,className:sr(Co.storyVideo),src:((ue=l==null?void 0:l.videoData)==null?void 0:ue.fileUrl)||((zo=(Jr=l==null?void 0:l.videoData)==null?void 0:Jr.videoUrl)==null?void 0:zo.original),controls:!1,onLoadedData:Er,playsInline:!0,onWaiting:()=>d("pause",!0),onPlaying:()=>d("play",!0),muted:M,autoPlay:!0}),!y&&R.createElement("div",{className:sr(Co.loadingOverlay)},C||R.createElement("div",null,"loading...")),R.createElement(Pr,{rootId:"asc-uikit-stories-viewer",isOpen:D,onClose:E,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"content-height"},e==null?void 0:e.map(ot=>R.createElement(F,{key:ot.name,className:sr(Co.actionButton),onPress:ot==null?void 0:ot.action},ot==null?void 0:ot.icon,R.createElement(S.BodyBold,null,ot.name)))),R.createElement(Pr,{rootId:"asc-uikit-stories-viewer",isOpen:U,onClose:G,mountPoint:document.getElementById("asc-uikit-stories-viewer"),detent:"full-height"},R.createElement(Dm,{referenceId:q,referenceType:"story",community:B,shouldAllowCreation:B==null?void 0:B.allowCommentInStory,shouldAllowInteraction:ct})),((Di=(Lr=re==null?void 0:re[0])==null?void 0:Lr.data)==null?void 0:Di.url)&&R.createElement("div",{className:sr(Co.hyperLinkContainer)},R.createElement(Ci,{href:re[0].data.url.startsWith("http")?re[0].data.url:`https://${re[0].data.url}`,target:"_blank",rel:"noopener noreferrer",onClick:()=>l==null?void 0:l.analytics.markLinkAsClicked()},R.createElement(mw,{lines:1},R.createElement("span",null,((Pa=(Hi=re[0])==null?void 0:Hi.data)==null?void 0:Pa.customText)||re[0].data.url.replace(/^https?:\/\//,""))))),R.createElement(R5,{pageId:a,storyId:q,syncState:O,reach:H,commentsCount:z,reactionsCount:pe,isLiked:fe,onClickComment:V,myReactions:$,showImpression:Vt||us(h,B==null?void 0:B.communityId),isMember:ct}))},Lce=e=>{var t;return {condition:!!((t=e.story)!=null&&t.storyId)&&e.type==="video",priority:2}},NL={renderer:Bce,tester:Lce};var Dce=({story:e,action:t})=>(useEffect(()=>{t("play");},[e]),R.createElement("div",{style:BL.storyContent},R.createElement("p",{style:BL.text},"This story could not be loaded."))),BL={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}},Hce=()=>({condition:!0,priority:1}),LL={renderer:Dce,tester:Hce};var zce=e=>{useEffect(()=>{e.action("play");},[e.story]);let t=e.story.originalContent;return R.createElement(t,c({},e))},Uce=e=>({condition:!!e.content,priority:2}),AL={renderer:zce,tester:Uce};var Xt={drawer__content:"br",drawer__innerContent:"Tg",drawer__placeholder:"Vg",drawer__overlay:"qg",drawer__title:"Gg",drawer__content__data:"Jg",drawer__content__data__title:"Kg",drawer__content__data__text:"Ng",drawer__content__data__caption:"Og",drawer__content__data__infoIcon:"Pg",drawer__content__emptySpace:"Qg",drawer__container:"Wg",drawer__innerContainer:"Zg"};var DL=({isOpen:e,onOpenChange:t,ad:o,targetRef:r})=>{var n;return R.createElement(Drawer.Root,{open:e,onOpenChange:t,onDrag:i=>{i.preventDefault(),i.stopPropagation();}},R.createElement(Drawer.Portal,{container:r==null?void 0:r.current},R.createElement("div",{className:Xt.drawer__container},R.createElement("div",{className:Xt.drawer__innerContainer},R.createElement(Drawer.Overlay,{className:Xt.drawer__overlay}),R.createElement(Drawer.Content,{className:Xt.drawer__content},R.createElement("div",{className:Xt.drawer__innerContent},R.createElement("div",{className:Xt.drawer__placeholder}),R.createElement(Drawer.Title,{className:Xt.drawer__title},R.createElement(S.Title,null,"About this advertisement")),R.createElement("div",{className:Xt.drawer__content__data},R.createElement(S.BodyBold,{className:Xt.drawer__content__data__title},"Why this advertisement?"),R.createElement("div",{className:Xt.drawer__content__data__text},R.createElement(mn,{className:Xt.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:Xt.drawer__content__data__caption},"You're seeing this advertisement because it was displayed to all users in the system."))),R.createElement("div",{className:Xt.drawer__content__data},R.createElement(S.BodyBold,{className:Xt.drawer__content__data__title},"About this advertiser"),R.createElement("div",{className:Xt.drawer__content__data__text},R.createElement(mn,{className:Xt.drawer__content__data__infoIcon}),R.createElement(S.Caption,{className:Xt.drawer__content__data__caption},"Advertiser name: ",(n=o.advertiser)==null?void 0:n.companyName)))),R.createElement("div",{className:Xt.drawer__content__emptySpace}))))))};var Yt={iconButton:"_g",hyperLinkContainer:"eh",hyperLink__text:"rh",rendererContainer:"ah",storyVideo:"oh",muteCircleIcon:"th",unmuteCircleIcon:"ih",loadingOverlay:"lh",storyImageContainer:"sh",storyImage:"ch",playStoryButton:"nh",pauseStoryButton:"dh",closeButton:"mh",verifiedBadge:"ph",dotsButton:"gh",viewStoryInfoContainer:"hh",viewStoryCompostBarContainer:"fh",viewStoryCompostBarViewIconContainer:"bh",viewStoryCompostBarEngagementContainer:"uh",viewStoryCompostBarEngagementIconContainer:"vh",header:"xh",viewStoryContainer:"wh",viewStoryHeaderContainer:"yh",avatarContainer:"kh",addStoryButton:"ur",viewStoryHeaderListActionsContainer:"jh",viewStoryHeadingInfoContainer:"zh",viewStoryHeading:"Xh",viewStoryHeadingTitle:"Yh",viewStorySubHeading:"Ch",story:"Ah",storyContent:"Mh",actionButton:"vr",navigationOverlay:"Sh",leftOverlay:"Eh",rightOverlay:"Fh",imageFit:"Ih",imageFill:"Rh",infoIcon__button:"Uh",infoIcon:"Bh",storyAd__main:"Dh",storyAd__topBar:"Hh",storyAd__topBar__left:"Lh",storyAd__topBar__avatar:"Th",storyAd__topBar__text:"Vh",storyAd__topBar__advertiserName:"qh",storyAd__topBar__right:"Gh",storyAd__closeButton:"Jh"};var OL=({pageId:e="*",ad:t,avatarUrl:o,adImageUrl:r,currentIndex:n,isPaused:i,storiesCount:a,renderLoader:s=()=>R.createElement("div",null,"loading..."),onComplete:l=()=>{},onPauseClick:d,onPlayClick:p,onClose:u,onImageLoaded:g,onAdvertisementInfoOpen:f,onAdvertisementInfoClose:y})=>{var T;let[v,C]=useState(!1),[h,x]=useState(!1),b=()=>{x(!0),f==null||f();},M=()=>{x(!1),y==null||y();},I=useRef(null),w=useRef(null),k=()=>{C(!0),g==null||g();};return R.createElement("div",{className:Yt.rendererContainer,ref:w},R.createElement("div",{className:Yt.storyAd__main},R.createElement(t2,{pageId:e,duration:5e3,currentIndex:n,storiesCount:a,isPaused:i,onComplete:l}),R.createElement("div",{className:Yt.storyAd__topBar},R.createElement("div",{className:Yt.storyAd__topBar__left},R.createElement("div",{className:Yt.storyAd__topBar__avatar},R.createElement(vt,{defaultImage:R.createElement(Am,null),avatarUrl:o})),R.createElement("div",{className:Yt.storyAd__topBar__text},R.createElement(S.BodyBold,{className:Yt.storyAd__topBar__advertiserName},(T=t.advertiser)==null?void 0:T.name),R.createElement(Lm,null))),R.createElement("div",{className:Yt.storyAd__topBar__right},i?R.createElement(wo,{className:Yt.playStoryButton,"data-qa-anchor":"play_button",onClick:()=>p==null?void 0:p()}):R.createElement(As,{className:Yt.pauseStoryButton,"data-qa-anchor":"pause_button",onClick:()=>d==null?void 0:d()}),R.createElement(Mr,{defaultClassName:sr(Yt.storyAd__closeButton),pageId:e,onPress:u}))),R.createElement("div",{className:sr(Yt.storyImageContainer)},R.createElement("img",{ref:I,className:sr(Yt.storyImage),"data-qa-anchor":"image_view",src:r,onLoad:k,alt:"Story Image",crossOrigin:"anonymous"})),!v&&R.createElement("div",{className:Yt.loadingOverlay},s()),t.callToActionUrl&&R.createElement("div",{className:Yt.hyperLinkContainer},R.createElement("a",{className:Yt.hyperLink__text,href:t.callToActionUrl,target:"_blank",rel:"noreferrer"},t.callToAction)),R.createElement(F,{className:Yt.infoIcon__button,onPress:()=>{b();}},R.createElement(mn,{className:Yt.infoIcon}))),R.createElement(DL,{ad:t,isOpen:h,targetRef:w,onOpenChange:L=>!L&&M()}))};var Wce=({story:e,action:t,config:o,onClose:r})=>{var k,T,L,D,U,j;let[n,i]=useState(!1),{loader:a}=o,{ad:s,currentIndex:l,storiesCount:d,increaseIndex:p,pageId:u,dragEventTarget:g}=e,f=()=>{t("play",!0),i(!1);},y=()=>{t("pause",!0),i(!0);},C=rt({fileId:(T=(k=s==null?void 0:s.advertiser)==null?void 0:k.avatar)==null?void 0:T.fileId})||((D=(L=s==null?void 0:s.advertiser)==null?void 0:L.avatar)==null?void 0:D.fileUrl)||"",x=rt({fileId:(U=s==null?void 0:s.image9_16)==null?void 0:U.fileId})||((j=s==null?void 0:s.image9_16)==null?void 0:j.fileUrl)||"",b=useCallback(()=>{n&&i(!1),t("play",!0);},[t,n]),M=()=>{t("pause",!0);},I=()=>{t("play",!0);},w=()=>{p();};return useEffect(()=>{var E,V;if(g){let G=()=>{t("pause",!0),i(!0);},q=()=>{t("play",!0),i(!1);};return (E=g.current)==null||E.addEventListener("dragstart",G),(V=g.current)==null||V.addEventListener("dragend",q),()=>{var O,H;(O=g.current)==null||O.removeEventListener("dragstart",G),(H=g.current)==null||H.removeEventListener("dragend",q);}}},[g]),s?R.createElement(OL,{pageId:u,ad:s,adImageUrl:x,avatarUrl:C,currentIndex:l,isPaused:n,storiesCount:d,renderLoader:()=>a,onComplete:w,onPauseClick:y,onPlayClick:f,onClose:r,onImageLoaded:b,onAdvertisementInfoOpen:M,onAdvertisementInfoClose:I}):null},qce=e=>({condition:!!e.ad,priority:2}),zL={renderer:Wce,tester:qce};var o2=[SL,NL,zL,AL,LL];var _f={storyButton:"xr",desktopOnly:"wr"};var Xce=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),R.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"})),Id=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_left_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("button",{"data-qa-anchor":n,className:sr(_f.storyButton,_f.desktopOnly),onClick:o,style:a},R.createElement(Xce,null))};var Tf={storyButton:"yr",desktopOnly:"kr"};var ede=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),R.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"})),wd=({pageId:e="*",componentId:t="*",onClick:o})=>{let r="arrow_right_button",{accessibilityId:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("button",{"data-qa-anchor":n,className:sr(Tf.storyButton,Tf.desktopOnly),onClick:o,style:a},R.createElement(ede,null))};var tr={overlayLeft:"jr",overlayRight:"zr",viewStoryContent:"Kh",viewStoryOverlay:"Nh",hiddenInput:"Oh",viewStoryContainer:"Ph",storyWrapper:"Qh",deleteIcon:"Wh",arrowButton:"Zh"};var lde=7e3,Ms=e=>!!(e!=null&&e.storyId),iu=({pageId:e="*",communityId:t,onBack:o,onClose:r,onSwipeDown:n,onClickCommunity:i,goToDraftStoryPage:a})=>{var Q;let{accessibilityId:s}=Xe({pageId:e}),{confirm:l}=Ye(),d=Po(),p=useMotionValue(0),u=useRef(null),g=useRef(new EventTarget),[f,y]=useState(!1),{stories:v}=ta({targetId:t,targetType:"community",options:{orderBy:"asc",sortBy:"createdAt"}}),C=useMemo(()=>o2.map(({renderer:B,tester:$})=>({renderer:re=>B(N(c({},re),{onClose:()=>r(t),onClickCommunity:()=>i(t)})),tester:$})),[o2,r,i,t]),h=useRef(null),{client:x,currentUserId:b}=De(),[M,I]=useState(0),{file:w,setFile:k}=fi(),T=v[M],L=Ms(T)?((Q=T==null?void 0:T.creator)==null?void 0:Q.userId)===b:!1,D=Ms(T)?ap(x,T==null?void 0:T.targetId):!1,U=()=>{if(M===v.length-1){o();return}I(M+1);},j=()=>{M!==0&&I(M-1);},E=B=>{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:()=>_(void 0,null,function*(){y(!1),yield StoryRepository.softDeleteStory(B),M===0?r(t):I(M-1),d.success({content:"Story deleted"});})});},V=B=>{E(B);},G=useCallback((B,$,ne,re)=>_(void 0,null,function*(){var fe;try{let pe=new FormData;pe.append("files",B),k(null),B!=null&&B.type.includes("image")&&b?yield StoryRepository.createImageStory("user",b,pe,ne,$,re):b&&(yield StoryRepository.createVideoStory("user",b,pe,ne,re)),d.success({content:"Successfully shared story"});}catch(pe){pe instanceof Error&&d.info({content:(fe=pe.message)!=null?fe:"Failed to share story"});}}),[b,d,k]),q=()=>{k(null);},O=R.createElement(FileTrigger,{ref:h,onSelect:B=>{let $=Array.from(B);k($[0]);}},R.createElement(is,{pageId:e})),H=()=>{if(M===v.length-1){o();return}I(B=>B+1);},z=v==null?void 0:v.map(B=>{var $,ne,re;if(Ms(B)){let fe=(B==null?void 0:B.dataType)==="image",pe=fe?($=B==null?void 0:B.imageData)==null?void 0:$.fileUrl:(re=(ne=B==null?void 0:B.videoData)==null?void 0:ne.videoUrl)==null?void 0:re["720p"];return {story:B,url:pe,type:fe?"image":"video",actions:[L||D?{name:"Delete",action:()=>V(B==null?void 0:B.storyId),icon:R.createElement(v4,{fill:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-default")})}:null].filter(Yr),onCreateStory:G,discardStory:q,addStoryButton:O,fileInputRef:h,currentIndex:M,storiesCount:v==null?void 0:v.length,increaseIndex:H,pageId:e,dragEventTarget:g.current,setIsBottomSheetOpen:y,isBottomSheetOpen:f}}else return {ad:B,actions:[],pageId:e,currentIndex:M,storiesCount:v==null?void 0:v.length,increaseIndex:H}}),Z="asc-uikit-stories-viewer";return useEffect(()=>{let B=v[v.length-1];Ms(B)&&(B==null?void 0:B.syncState)==="syncing"&&I(v.length-1),T&&Ms(T)&&(T==null||T.analytics.markAsSeen());},[M,v]),useEffect(()=>{if(v.filter(Ms).every($=>$==null?void 0:$.isSeen))return;let B=v.findIndex($=>Ms($)?!($!=null&&$.isSeen):!1);B!==-1&&I(B);},[]),Xa({targetId:t,targetType:"community"}),w&&a(t,"community",w.type.includes("image")?{type:"image",url:URL.createObjectURL(w)}:{type:"video",url:URL.createObjectURL(w)},"communityFeed"),!v||v.length===0?null:R.createElement("div",{className:sr(tr.storyWrapper)},R.createElement(Id,{onClick:j}),R.createElement(motion.div,{id:Z,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:()=>{g.current.dispatchEvent(new Event("dragstart"));},onDrag:(B,$)=>{$.point.y<$.point.y-$.offset.y&&p.set(0);},onDragEnd:(B,$)=>{g.current.dispatchEvent(new Event("dragend")),$.offset.y>100?n(t):p.set(0);},className:sr(tr.viewStoryContainer)},R.createElement("div",{className:sr(tr.viewStoryContent)},R.createElement("div",{className:sr(tr.overlayLeft),onClick:j}),R.createElement("div",{className:sr(tr.overlayRight),onClick:U}),R.createElement("div",{className:sr(tr.viewStoryOverlay)}),R.createElement(nde,{key:v==null?void 0:v.length,progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:M,stories:z,renderers:C,defaultInterval:lde,onStoryStart:()=>Ms(T)&&(T==null?void 0:T.analytics.markAsSeen()),onStoryEnd:U,onNext:U,onPrevious:j,onAllStoriesEnd:U}))),R.createElement(wd,{onClick:U}))};var fde=7e3,Ps=e=>!!(e!=null&&e.storyId),VL=({pageId:e="*",targetId:t,targetIds:o,onChangePage:r,onClickStory:n,goToDraftStoryPage:i,onClose:a,onSwipeDown:s,onClickCommunity:l})=>{var Q;let{accessibilityId:d}=Xe({pageId:e}),{confirm:p}=Ye(),u=Po(),{client:g,currentUserId:f}=De(),{file:y,setFile:v}=fi(),C=useMotionValue(0),h=useRef(null),x=useRef(new EventTarget),[b,M]=useState(0),I=useRef(null),{stories:w}=ta({targetType:"community",targetId:t,options:{orderBy:"asc",sortBy:"createdAt"}}),k=useMemo(()=>o2.map(({renderer:B,tester:$})=>({renderer:re=>B(N(c({},re),{onClose:()=>a(t),onClickCommunity:()=>l(t)})),tester:$})),[o2,a,s,l,t]),T=w[b],L=Ps(T)?((Q=T==null?void 0:T.creator)==null?void 0:Q.userId)===f:!1,D=Ps(T)?ap(g,T==null?void 0:T.targetId):!1,U=()=>{if(b===0){let $=o.indexOf(t)-1;if($>=0){let ne=o[$];n(ne);}else r==null||r();M(0);return}M(B=>B-1);},j=B=>{let $=b===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:()=>_(void 0,null,function*(){yield StoryRepository.softDeleteStory(B),u.success({content:"Story deleted"}),w.length===1?r==null||r():$?U():M(ne=>ne);})});},E=B=>{j(B);},V=(B,$,ne,re)=>_(void 0,null,function*(){var fe;try{let pe=new FormData;if(pe.append("files",B),v(null),B!=null&&B.type.includes("image")&&f){let{data:Ze}=yield StoryRepository.createImageStory("user",f,pe,ne,$,re);Ze&&u.success({content:"Successfully shared story"});}else if(f){let{data:Ze}=yield StoryRepository.createVideoStory("user",f,pe,ne,re);Ze&&u.success({content:"Successfully shared story"});}}catch(pe){pe instanceof Error&&u.info({content:(fe=pe.message)!=null?fe:"Failed to share story"});}}),G=()=>{v(null);},q=R.createElement(FileTrigger,{ref:I,onSelect:B=>{let $=Array.from(B);v($[0]);}},R.createElement(is,{pageId:e})),O=()=>{b!==w.length-1&&M(B=>B+1);},H=w==null?void 0:w.map(B=>{var $,ne,re;if(Ps(B)){let fe=(B==null?void 0:B.dataType)==="image",pe=fe?($=B==null?void 0:B.imageData)==null?void 0:$.fileUrl:(re=(ne=B==null?void 0:B.videoData)==null?void 0:ne.videoUrl)==null?void 0:re["720p"];return {story:B,url:pe,type:fe?"image":"video",actions:[L||D?{name:"Delete",action:()=>E(B==null?void 0:B.storyId),icon:R.createElement(p1,{className:tr.deleteIcon})}:null].filter(Yr),onCreateStory:V,discardStory:G,addStoryButton:q,fileInputRef:I,currentIndex:b,storiesCount:w==null?void 0:w.length,increaseIndex:O,pageId:e}}else return {ad:B,actions:[],pageId:e,currentIndex:b,storiesCount:w==null?void 0:w.length,increaseIndex:O}}),z=()=>{if(b===(H==null?void 0:H.length)-1){let $=o.indexOf(t)+1;if($<o.length){let ne=o[$];n(ne);}else r==null||r();M(0);return}M(B=>B+1);},Z="asc-uikit-stories-viewer";return useEffect(()=>{let B=w[w.length-1];Ps(B)&&(B==null?void 0:B.syncState)==="syncing"&&M(w.length-1),T&&Ps(T)&&(T==null||T.analytics.markAsSeen());},[T,w]),useEffect(()=>{if(w.filter(Ps).every($=>$==null?void 0:$.isSeen))return;let B=w.findIndex($=>Ps($)?!($!=null&&$.isSeen):!1);B!==-1&&M(B);},[]),useEffect(()=>{y&&i(t,"community",y.type.includes("image")?{type:"image",url:URL.createObjectURL(y)}:{type:"video",url:URL.createObjectURL(y)},"globalFeed");},[y,i,t]),Xa({targetId:t,targetType:"community"}),!w||w.length===0?null:R.createElement("div",{className:sr(tr.storyWrapper),"data-qa-anchor":d},R.createElement(Id,{onClick:U}),R.createElement(motion.div,{id:Z,ref:h,"data-qa-anchor":d,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:(B,$)=>{$.point.y<$.point.y-$.offset.y&&C.set(0);},onDragEnd:(B,$)=>{x.current.dispatchEvent(new Event("dragend")),$.offset.y>100?s(t):C.set(0);},className:sr(tr.viewStoryContainer)},R.createElement("div",{className:sr(tr.viewStoryContent)},R.createElement("div",{className:sr(tr.overlayLeft),onClick:U}),R.createElement("div",{className:sr(tr.overlayRight),onClick:z}),R.createElement("div",{className:sr(tr.viewStoryOverlay)}),R.createElement(nde,{progressWrapperStyles:{display:"none"},preventDefault:!0,currentIndex:b,stories:H,renderers:k,defaultInterval:fde,onStoryStart:()=>Ps(T)&&(T==null?void 0:T.analytics.markAsSeen()),onStoryEnd:O,onNext:z,onPrevious:U,onAllStoriesEnd:z}))),R.createElement(wd,{onClick:z}))};var au=({pageId:e="*",targetId:t,onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})=>{let{stories:l}=p5({seenState:"smart",limit:10});return R.createElement(VL,{pageId:e,targetId:t,targetIds:l.map(d=>d.targetId),onChangePage:o,onClickStory:r,goToDraftStoryPage:n,onClose:i,onSwipeDown:a,onClickCommunity:s})};var hde=({type:e,targetId:t})=>{let o="view_story_page",{onBack:r,goToDraftStoryPage:n,onClickCommunity:i,onChangePage:a,onClickStory:s}=X(),l=()=>{a("newsfeed");},d=p=>{i(p);};return e==="communityFeed"?R.createElement(iu,{pageId:o,communityId:t,onBack:r,onClose:d,onSwipeDown:d,onClickCommunity:d,goToDraftStoryPage:({targetId:p,targetType:u,mediaType:g,storyType:f})=>n(p,u,g,f)}):e==="globalFeed"?R.createElement(au,{pageId:o,targetId:t,onChangePage:l,onClose:l,onSwipeDown:l,onClickStory:p=>s(p,"globalFeed"),goToDraftStoryPage:({targetId:p,targetType:u,mediaType:g,storyType:f})=>n(p,u,g,f),onClickCommunity:p=>i(p)}):null},GL=hde;var ZL={roundedBackButton:"_h"};var vde=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"},e),R.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#000",fillOpacity:"0.5"}),R.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"})),Lf=({pageId:e="*",componentId:t="*",defaultClassName:o,imgClassName:r,onPress:n})=>{let i="back_button",{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:e,componentId:t,elementId:i});return d?null:R.createElement(F,{style:u,className:ZL.roundedBackButton,onPress:n},R.createElement(ee,{"data-qa-anchor":a,defaultIcon:()=>R.createElement(vde,{className:o}),imgIcon:()=>R.createElement("img",{src:s.icon,alt:p,className:r}),defaultIconName:l.icon,configIconName:s.icon}))};var jn={draftPageContainer:"Xr",headerContainer:"ef",storyWrapper:"rf",header:"af",topRightButtons:"of",mainContainer:"tf",previewImage:"if",footer:"lf",videoPreview:"sf",hyperLinkContainer:"cf",playPauseButton:"nf",progressBar:"df",progressFill:"mf",userInfo:"pf",name:"gf",description:"hf",storyPreview:"ff"};var Af=({targetId:e,targetType:t,mediaType:o,goToCommunityPage:r,goToGlobalFeedPage:n,onDiscardCreateStory:i})=>{var G,q,O,H,z,Z;let{page:a}=Le(),s="create_story_page",{accessibilityId:l,themeStyles:d}=Xe({pageId:s}),{file:p,setFile:u}=fi(),{community:g}=k3(e),[f,y]=useState(!1),{confirm:v}=Ye(),C=Po(),[h,x]=useState([{data:{url:"",customText:""},type:"hyperlink"}]),b=()=>{y(!1);},[M,I]=useState("fit"),[w,k]=useState([]),T=()=>{I(M==="fit"?"fill":"fit"),M==="fill"&&k([]);},L=(Q,B,$,ne)=>_(void 0,null,function*(){var re;if(Q)try{let fe=new FormData;fe.append("files",Q),u(null),a.type==="DraftPage"&&a.context.storyType==="globalFeed"?n():r(e),(o==null?void 0:o.type)==="image"&&e?yield StoryRepository.createImageStory(t,e,fe,$,B,ne):(o==null?void 0:o.type)==="video"&&e&&(yield StoryRepository.createVideoStory(t,e,fe,$,ne)),C.success({content:"Successfully shared story"});}catch(fe){fe instanceof Error&&C.info({content:(re=fe.message)!=null?re:"Failed to share story"});}}),D=()=>{v({pageId:s,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:()=>{u(null),i();}});},U=({url:Q,customText:B})=>{x([{data:{url:Q,customText:B||""},type:"hyperlink"}]),y(!1);},j=()=>{x([{data:{url:"",customText:""},type:"hyperlink"}]);},E=()=>{var Q,B;if((B=(Q=h[0])==null?void 0:Q.data)!=null&&B.url){C.info({content:"Can\u2019t add more than one link to your story."});return}y(!0);},V=useCallback(Q=>_(void 0,null,function*(){let B=new Image;B.crossOrigin="Anonymous",B.src=Q,B.onload=()=>{let ne=new Mce().getPalette(B,2);ne&&k(ne.map(re=>`rgb(${re.join(",")})`));};}),[]);return useEffect(()=>{_(void 0,null,function*(){if((o==null?void 0:o.type)==="image")if(p){let B=URL.createObjectURL(p);yield V(B);}else o.url&&(yield V(o.url));});},[p,o,V]),R.createElement("div",{"data-qa-anchor":l,style:d,className:jn.storyWrapper},R.createElement("div",{id:"asc-uikit-create-story",className:jn.draftPageContainer},R.createElement("div",{className:jn.headerContainer},R.createElement("div",{className:jn.header},R.createElement(Lf,{pageId:s,onPress:D}),R.createElement("div",{className:jn.topRightButtons},(o==null?void 0:o.type)==="image"&&R.createElement(B3,{pageId:s,onPress:T}),R.createElement(O3,{pageId:s,onPress:E})))),(o==null?void 0:o.type)==="image"?R.createElement("div",{className:jn.mainContainer,style:{background:`linear-gradient(
|
|
4742
4743
|
180deg,
|
|
4743
4744
|
${w[0]||"var(--asc-color-black)"} 0%,
|
|
4744
4745
|
${w[1]||"var(--asc-color-black)"} 100%
|
|
4745
|
-
)`}},R.createElement("img",{className:jn.previewImage,src:p?URL.createObjectURL(p):o.url,style:{width:"100%",height:"100%",objectFit:M==="fit"?"contain":"cover"},alt:"Draft",onLoad:Q=>{M==="fill"&&V(Q.target.src);}})):(o==null?void 0:o.type)==="video"?R.createElement("video",{className:jn.videoPreview,src:p?URL.createObjectURL(p):o.url,autoPlay:!0,loop:!0,muted:!0,controls:!1,playsInline:!0}):null,((q=(G=h[0])==null?void 0:G.data)==null?void 0:q.url)&&R.createElement("div",{className:jn.hyperLinkContainer},R.createElement(Ci,{onClick:()=>y(!0)},((H=(O=h[0])==null?void 0:O.data)==null?void 0:H.customText)||h[0].data.url.replace(/^https?:\/\//,""))),R.createElement(R8,{pageId:s,isOpen:f,onClose:b,onSubmit:U,onRemove:j,isHaveHyperLink:((Z=(z=h==null?void 0:h[0])==null?void 0:z.data)==null?void 0:Z.url)!==""}),R.createElement("div",{className:jn.footer},R.createElement(j3,{community:g,pageId:s,onClick:()=>{var Q,B;return L(p,M,{},(B=(Q=h[0])==null?void 0:Q.data)!=null&&B.url?h:[])}}))))},Mde=e=>{let{AmityDraftStoryPageBehavior:t}=xt();return R.createElement(
|
|
4746
|
+
)`}},R.createElement("img",{className:jn.previewImage,src:p?URL.createObjectURL(p):o.url,style:{width:"100%",height:"100%",objectFit:M==="fit"?"contain":"cover"},alt:"Draft",onLoad:Q=>{M==="fill"&&V(Q.target.src);}})):(o==null?void 0:o.type)==="video"?R.createElement("video",{className:jn.videoPreview,src:p?URL.createObjectURL(p):o.url,autoPlay:!0,loop:!0,muted:!0,controls:!1,playsInline:!0}):null,((q=(G=h[0])==null?void 0:G.data)==null?void 0:q.url)&&R.createElement("div",{className:jn.hyperLinkContainer},R.createElement(Ci,{onClick:()=>y(!0)},((H=(O=h[0])==null?void 0:O.data)==null?void 0:H.customText)||h[0].data.url.replace(/^https?:\/\//,""))),R.createElement(R8,{pageId:s,isOpen:f,onClose:b,onSubmit:U,onRemove:j,isHaveHyperLink:((Z=(z=h==null?void 0:h[0])==null?void 0:z.data)==null?void 0:Z.url)!==""}),R.createElement("div",{className:jn.footer},R.createElement(j3,{community:g,pageId:s,onClick:()=>{var Q,B;return L(p,M,{},(B=(Q=h[0])==null?void 0:Q.data)!=null&&B.url?h:[])}}))))},Mde=e=>{let{AmityDraftStoryPageBehavior:t}=xt();return R.createElement(Af,N(c({},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)}}))},Df=Mde;var _de=e=>{let{page:t,onChangePage:o,onClickCommunity:r}=X();return R.createElement(Af,N(c({},e),{onDiscardCreateStory:()=>{t.type==="draftpage"&&t.storyType==="communityFeed"?r(e.targetId):o("newsfeed");},goToCommunityPage:n=>r(n),goToGlobalFeedPage:()=>o("newsfeed")}))},WL=_de;var qL=m.div`
|
|
4746
4747
|
display: grid;
|
|
4747
4748
|
gap: 12px;
|
|
4748
4749
|
list-style: none;
|
|
4749
4750
|
width: 100%;
|
|
4750
|
-
`;var Sde=()=>{let{onClickCommunity:e,onChangePage:t}=X(),{communities:o,isLoading:r,loadMoreHasBeenCalled:n,loadMore:i,hasMore:a}=xr({membership:"member",sortBy:"displayName",limit:10}),s=useRef(null);return useEffect(()=>{let l=new IntersectionObserver(d=>_(void 0,null,function*(){d[0].isIntersecting&&a&&i();}),{threshold:.5});return s.current&&l.observe(s.current),()=>{s.current&&l.unobserve(s.current);}},[a,i]),!r&&o.length===0?R.createElement(n1,{targetType:"myCommunities",goToExplore:()=>t("explore")}):R.createElement(qL,null,o.map(({communityId:l},d)=>R.createElement("li",{key:l},R.createElement(
|
|
4751
|
+
`;var Sde=()=>{let{onClickCommunity:e,onChangePage:t}=X(),{communities:o,isLoading:r,loadMoreHasBeenCalled:n,loadMore:i,hasMore:a}=xr({membership:"member",sortBy:"displayName",limit:10}),s=useRef(null);return useEffect(()=>{let l=new IntersectionObserver(d=>_(void 0,null,function*(){d[0].isIntersecting&&a&&i();}),{threshold:.5});return s.current&&l.observe(s.current),()=>{s.current&&l.unobserve(s.current);}},[a,i]),!r&&o.length===0?R.createElement(n1,{targetType:"myCommunities",goToExplore:()=>t("explore")}):R.createElement(qL,null,o.map(({communityId:l},d)=>R.createElement("li",{key:l},R.createElement(dm,{index:d,communityId:l,onClick:e,disabledNumber:!0,disabledDescription:!0}))),R.createElement("div",{style:{width:"100%",height:"16px"},ref:s}))},KL=Sde;var JL=m.div`
|
|
4751
4752
|
max-width: 960px;
|
|
4752
4753
|
margin: 0 auto;
|
|
4753
4754
|
overflow-x: hidden;
|
|
@@ -4766,7 +4767,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4766
4767
|
max-width: 100%;
|
|
4767
4768
|
margin: 0 auto;
|
|
4768
4769
|
overflow-y: auto;
|
|
4769
|
-
`;function
|
|
4770
|
+
`;function Hf(){return R.createElement(XL,null,R.createElement(es,null),R.createElement(JL,null,R.createElement(KL,null)))}var Nde=m.div`
|
|
4770
4771
|
height: 100%;
|
|
4771
4772
|
margin: 0 auto;
|
|
4772
4773
|
overflow-y: auto;
|
|
@@ -4786,7 +4787,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4786
4787
|
justify-content: center;
|
|
4787
4788
|
width: 100%;
|
|
4788
4789
|
height: 100%;
|
|
4789
|
-
`,Dde=()=>{let{page:e}=X(),{client:t}=J(),[o,r]=useState(null),[n,i]=useState(!1),a=()=>{i(!n);};return useEffect(()=>{if(t===null)return;function s(){return _(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]),R.createElement(pN,null,R.createElement(Bde,null,R.createElement(V_,{aside:R.createElement(Lde,{activeCommunity:e.communityId})},e.type==="explore"&&R.createElement(Mc,{isOpen:n,toggleOpen:a}),e.type==="newsfeed"&&R.createElement(qk,{toggleOpen:a,isOpen:n}),e.type==="postdetail"&&R.createElement(YL,{targetId:e.targetId,targetType:e.targetType}),e.type==="communityfeed"&&R.createElement(UN,{communityId:e.communityId,isNewCommunity:e.isNewCommunity,isOpen:n,toggleOpen:a}),e.type==="viewstory"&&R.createElement(Ade,null,R.createElement(GL,{targetId:e.targetId,type:e.storyType})),e.type==="draftpage"&&R.createElement(WL,{mediaType:e.mediaType,targetId:e.targetId,targetType:e.targetType}),e.type==="communityedit"&&R.createElement(KS,{communityId:e.communityId,tab:e.tab}),e.type==="category"&&R.createElement(kS,{categoryId:e.categoryId}),e.type==="userfeed"&&R.createElement(xS,{userId:e.userId,socialSettings:o,isOpen:n,toggleOpen:a}),e.type==="useredit"&&R.createElement(cN,{userId:e.userId}),e.type==="mycommunities"&&R.createElement(
|
|
4790
|
+
`,Dde=()=>{let{page:e}=X(),{client:t}=J(),[o,r]=useState(null),[n,i]=useState(!1),a=()=>{i(!n);};return useEffect(()=>{if(t===null)return;function s(){return _(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]),R.createElement(pN,null,R.createElement(Bde,null,R.createElement(V_,{aside:R.createElement(Lde,{activeCommunity:e.communityId})},e.type==="explore"&&R.createElement(Mc,{isOpen:n,toggleOpen:a}),e.type==="newsfeed"&&R.createElement(qk,{toggleOpen:a,isOpen:n}),e.type==="postdetail"&&R.createElement(YL,{targetId:e.targetId,targetType:e.targetType}),e.type==="communityfeed"&&R.createElement(UN,{communityId:e.communityId,isNewCommunity:e.isNewCommunity,isOpen:n,toggleOpen:a}),e.type==="viewstory"&&R.createElement(Ade,null,R.createElement(GL,{targetId:e.targetId,type:e.storyType})),e.type==="draftpage"&&R.createElement(WL,{mediaType:e.mediaType,targetId:e.targetId,targetType:e.targetType}),e.type==="communityedit"&&R.createElement(KS,{communityId:e.communityId,tab:e.tab}),e.type==="category"&&R.createElement(kS,{categoryId:e.categoryId}),e.type==="userfeed"&&R.createElement(xS,{userId:e.userId,socialSettings:o,isOpen:n,toggleOpen:a}),e.type==="useredit"&&R.createElement(cN,{userId:e.userId}),e.type==="mycommunities"&&R.createElement(Hf,null))))},Hde=Dde;var oA={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function $de(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===oA.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 Of(o){return _(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 Vde(a){return _(this,arguments,function*({channelAvatarFileId:e,channelAvatarCustomUrl:t,otherUserAvatarUrl:o,currentUserAvatarUrl:r,isDirectChat:n,memberCount:i=0}){return i===oA.ONLY_ME_CHAT?Of({avatarCustomUrl:r}):Of(n&&o?{avatarCustomUrl:o}:{avatarFileId:e,avatarCustomUrl:t})})}function jde({channel:e}){var p,u,g,f,y;let{currentUserId:t}=ol(),[o,r]=useState(null),n=(p=e==null?void 0:e.metadata)!=null&&p.isDirectChat?((g=(u=e==null?void 0:e.metadata)==null?void 0:u.userIds)!=null?g:[]).find(v=>v!==t):null,i=oe(t),a=oe(n),s=se({fileId:i==null?void 0:i.avatarFileId}),l=se({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function v(){return _(this,null,function*(){var h,x;let C=yield Vde({channelAvatarFileId:e==null?void 0:e.avatarFileId,channelAvatarCustomUrl:(h=e==null?void 0:e.metadata)==null?void 0:h.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(C);})}v();},[a==null?void 0:a.avatarCustomUrl,(f=e==null?void 0:e.metadata)==null?void 0:f.isDirectChat,e==null?void 0:e.memberCount,e==null?void 0:e.avatarFileId,(y=e==null?void 0:e.metadata)==null?void 0:y.avatarCustomUrl,s,i==null?void 0:i.avatarCustomUrl]),{chatName:useMemo(()=>e==null?void 0:$de(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var i2=jde;var rA=m(He)`
|
|
4790
4791
|
display: flex;
|
|
4791
4792
|
align-items: center;
|
|
4792
4793
|
width: 100%;
|
|
@@ -4825,7 +4826,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4825
4826
|
background: ${t.palette.base.shade4};
|
|
4826
4827
|
color: ${t.palette.base.main};
|
|
4827
4828
|
`}
|
|
4828
|
-
`;var Gde=a=>{var s=a,{icon:e,children:t,active:o,className:r,onClick:n}=s,i=P(s,["icon","children","active","className","onClick"]);return R.createElement(rA,c({className:r,active:o,onClick:n},i),e&&R.createElement(nA,{active:o},e),t)},aA=Gde;var
|
|
4829
|
+
`;var Gde=a=>{var s=a,{icon:e,children:t,active:o,className:r,onClick:n}=s,i=P(s,["icon","children","active","className","onClick"]);return R.createElement(rA,c({className:r,active:o,onClick:n},i),e&&R.createElement(nA,{active:o},e),t)},aA=Gde;var a2={BIG:"big",REGULAR:"regular",SMALL:"small",TINY:"tiny"};var qde=({size:e=a2.REGULAR,avatarUrl:t,avatarFileId:o,avatarFile:r,defaultImage:n,avatarCustomUrl:i})=>{let[a,s]=useState(null),[l,d]=useState(null);return useEffect(()=>{s(null),d(null),_(void 0,null,function*(){if(t){s(t);return}if(i){s(i);return}if(r){let g=yield (f=>new Promise((y,v)=>{let C=new FileReader;C.readAsDataURL(f),C.onload=()=>y(C.result),C.onerror=v;}))(r);s(g);return}if(o){let u=yield FileRepository.fileUrlWithSize(o,"small");s(u);return}if(n){d(n);return}});},[t,o,r,i]),R.createElement(ge,{size:e,avatar:a,backgroundImage:l})},_s=qde;var lA=m(aA)`
|
|
4829
4830
|
display: flex;
|
|
4830
4831
|
align-items: center;
|
|
4831
4832
|
justify-content: space-between;
|
|
@@ -4857,7 +4858,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4857
4858
|
color: #fff;
|
|
4858
4859
|
background: #f9563a;
|
|
4859
4860
|
border-radius: 20px;
|
|
4860
|
-
`;function Pd({channelId:e,shouldSubscribe:t=()=>!0,callback:o}){return Vs({fetcher:ChannelRepository.getChannel,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getChannelTopic(r)})}var Yde=e=>Lt({fetcher:ChannelRepository.getChannel,params:e,shouldCall:!!e}),Ni=Yde;function Rde(e){let t={BOTTOM:1,TOP:99};return !e||e<t.BOTTOM?"":e<=t.TOP?e:`${t.TOP}+`}var e0e=({channelId:e,isSelected:t,onSelect:o})=>{let r=Ni(e),{chatName:n,chatAvatar:i}=
|
|
4861
|
+
`;function Pd({channelId:e,shouldSubscribe:t=()=>!0,callback:o}){return Vs({fetcher:ChannelRepository.getChannel,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getChannelTopic(r)})}var Yde=e=>Lt({fetcher:ChannelRepository.getChannel,params:e,shouldCall:!!e}),Ni=Yde;function Rde(e){let t={BOTTOM:1,TOP:99};return !e||e<t.BOTTOM?"":e<=t.TOP?e:`${t.TOP}+`}var e0e=({channelId:e,isSelected:t,onSelect:o})=>{let r=Ni(e),{chatName:n,chatAvatar:i}=i2({channel:r}),a=Rde((r==null?void 0:r.unreadCount)||0);return Pd({channelId:r==null?void 0:r.channelId,shouldSubscribe:()=>!!(r!=null&&r.channelId)}),R.createElement(lA,{"data-qa-anchor":"chat-item",active:t,onClick:s=>{s.stopPropagation(),r&&o({channelId:r.channelId,type:r.type});}},R.createElement(mA,null,R.createElement(cA,{avatarUrl:i,defaultImage:((r==null?void 0:r.memberCount)||0)>2?ar:Ne}),R.createElement(dA,null,n)),a&&R.createElement(pA,{"data-qa-anchor":"chat-item-unread-count"},a))},uA=e=>{let t=W("ChatItem");return t?t(e):R.createElement(e0e,c({},e))};var gA=m(U4).attrs({width:24,height:18})`
|
|
4861
4862
|
width: 24px !important;
|
|
4862
4863
|
cursor: pointer;
|
|
4863
4864
|
`,fA=m.div`
|
|
@@ -4887,7 +4888,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4887
4888
|
flex-grow: 1;
|
|
4888
4889
|
overflow-y: auto;
|
|
4889
4890
|
overflow-x: hidden;
|
|
4890
|
-
`;function
|
|
4891
|
+
`;function zf(e){let r=ze({fetcher:ChannelRepository.getChannels,params:e}),{items:t}=r,o=P(r,["items"]);return c({channels:t},o)}var s0e=({onChannelSelect:e,onAddNewChannelClick:t,selectedChannelId:o,membershipFilter:r})=>{let{channels:n,hasMore:i,loadMore:a}=zf({membership:r,sortBy:"lastActivity",limit:20}),s=useRef(null),l=u=>_(void 0,[u],function*({channelId:d,type:p}){p!=="conversation"&&(yield ChannelRepository.joinChannel(d)),yield SubChannelRepository.startReading(d);});return R.createElement(fA,null,R.createElement(yA,null,R.createElement(hA,null,R.createElement(FormattedMessage,{id:"chat.chats"})),R.createElement(gA,{"data-qa-anchor":"chat-create-chat-button",onClick:t})),R.createElement(CA,{ref:s,"data-qa-anchor":"chat-list"},s.current?R.createElement(ZY,{scrollableTarget:s.current,scrollThreshold:.7,hasMore:i,next:a,loader:i&&R.createElement("span",{key:0},"Loading..."),dataLength:(n==null?void 0:n.length)||0,height:s.current.clientHeight},Array.isArray(n)&&n.map(d=>R.createElement(uA,{key:d.channelId,channelId:d.channelId,isSelected:o===d.channelId,onSelect:p=>{l(p),e==null||e(p);}}))):null))},vA=e=>{let t=W("RecentChat");return t?t(e):R.createElement(s0e,c({},e))};var xA=m.div`
|
|
4891
4892
|
display: flex;
|
|
4892
4893
|
align-items: center;
|
|
4893
4894
|
gap: 10px;
|
|
@@ -4909,7 +4910,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4909
4910
|
opacity: 0.5;
|
|
4910
4911
|
margin: 0 5px;
|
|
4911
4912
|
cursor: pointer;
|
|
4912
|
-
`,
|
|
4913
|
+
`,Uf=m(ge)`
|
|
4913
4914
|
margin-right: auto;
|
|
4914
4915
|
`,PA=m.div`
|
|
4915
4916
|
display: flex;
|
|
@@ -4928,7 +4929,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4928
4929
|
font-size: 14px;
|
|
4929
4930
|
font-weight: 600;
|
|
4930
4931
|
margin-bottom: 4px;
|
|
4931
|
-
|
|
4932
|
+
`,$f=m.div`
|
|
4932
4933
|
display: flex;
|
|
4933
4934
|
flex-direction: column;
|
|
4934
4935
|
margin-bottom: 8px;
|
|
@@ -4938,7 +4939,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4938
4939
|
& pre {
|
|
4939
4940
|
white-space: pre-wrap;
|
|
4940
4941
|
}
|
|
4941
|
-
`,NA=m(
|
|
4942
|
+
`,NA=m($f)`
|
|
4942
4943
|
${({theme:e,isIncoming:t})=>t?`
|
|
4943
4944
|
background: ${e.palette.neutral.shade4};
|
|
4944
4945
|
border-radius: 0px 6px 6px 6px;
|
|
@@ -4947,9 +4948,9 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4947
4948
|
color: #fff;
|
|
4948
4949
|
border-radius: 6px 0px 6px 6px;
|
|
4949
4950
|
`}
|
|
4950
|
-
`,EA=m(
|
|
4951
|
+
`,EA=m($f)`
|
|
4951
4952
|
text-align: ${({isIncoming:e})=>e?"left":"right"};
|
|
4952
|
-
`,BA=m(
|
|
4953
|
+
`,BA=m($f)`
|
|
4953
4954
|
text-align: center;
|
|
4954
4955
|
background: ${({theme:e})=>e.palette.neutral.shade4};
|
|
4955
4956
|
border-radius: 10px;
|
|
@@ -4961,9 +4962,9 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4961
4962
|
margin-top: 3px;
|
|
4962
4963
|
display: flex;
|
|
4963
4964
|
align-items: center;
|
|
4964
|
-
`;var d0e=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=()=>_(void 0,null,function*(){if(e!=null)try{o(!0),yield MessageRepository.flagMessage(e);}catch(d){o(!1);}finally{i();}}),s=()=>_(void 0,null,function*(){if(e!=null)try{o(!1),yield MessageRepository.unflagMessage(e);}catch(d){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagMessage:a,unflagMessage:s,toggleFlagMessage:()=>_(void 0,null,function*(){e!=null&&(t?s():a());})}},DA=d0e;function
|
|
4965
|
+
`;var d0e=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=()=>_(void 0,null,function*(){if(e!=null)try{o(!0),yield MessageRepository.flagMessage(e);}catch(d){o(!1);}finally{i();}}),s=()=>_(void 0,null,function*(){if(e!=null)try{o(!1),yield MessageRepository.unflagMessage(e);}catch(d){o(!0);}finally{i();}});return {isLoading:n,isFlaggedByMe:t,flagMessage:a,unflagMessage:s,toggleFlagMessage:()=>_(void 0,null,function*(){e!=null&&(t?s():a());})}},DA=d0e;function jf({messageId:e,shouldSubscribe:t=()=>!0,callback:o}){return Vs({fetcher:MessageRepository.getMessage,params:e,callback:o,shouldSubscribe:()=>!!e&&t(),getSubscribedTopic:({data:r})=>getMessageTopic(r)})}var f0e=m(zp)`
|
|
4965
4966
|
${({align:e,theme:t})=>e==="end"&&`color: ${t.palette.neutral.main};`}
|
|
4966
|
-
`,y0e=({messageId:e})=>{let{isFlaggedByMe:t,flagMessage:o,unflagMessage:r}=DA(e);return
|
|
4967
|
+
`,y0e=({messageId:e})=>{let{isFlaggedByMe:t,flagMessage:o,unflagMessage:r}=DA(e);return jf({messageId:e}),t?R.createElement(jo,{onClick:r},R.createElement(FormattedMessage,{id:"message.unflag"})):R.createElement(jo,{onClick:o},R.createElement(FormattedMessage,{id:"message.flag"}))},h0e=({isIncoming:e,messageId:t,data:o,isSupportedMessageType:r,popupContainerRef:n})=>{let[i,a]=useState(""),[s,l]=useState(!1),d=we(),p=M=>{M.stopPropagation(),l(!0);},[u,g]=useState(!1),{formatMessage:f}=useIntl(),y=()=>{a(typeof o=="object"?o.text:o),g(!0),l(!1);},v=()=>{g(!1);},C=()=>{MessageRepository.updateMessage(t,{data:{text:i}}).then(v).catch(()=>{d.error({content:f({id:"message.saveOptionsError"})});});};return R.createElement(f0e,{isOpen:u,positions:["bottom","top"],align:e?"start":"end",content:s?R.createElement(xA,null,R.createElement(bA,{"data-qa-anchor":"message-edit-input",autoFocus:!0,value:i,onChange:M=>a(M.target.value),onKeyDown:M=>{M.key==="Enter"&&C(),M.key==="Escape"&&v();}}),R.createElement(IA,{"data-qa-anchor":"message-save-button",onClick:C}),R.createElement(wA,{onClick:v})):R.createElement(ii,null,!e&&r&&R.createElement(jo,{"data-qa-anchor":"message-menu-item-edit",onClick:p},R.createElement(FormattedMessage,{id:"message.edit"})),e&&R.createElement(y0e,{messageId:t}),!e&&R.createElement(jo,{"data-qa-anchor":"message-menu-item-delete",onClick:()=>{MessageRepository.deleteMessage(t).then(v);}},R.createElement(FormattedMessage,{id:"message.delete"}))),parentElement:(n==null?void 0:n.current)||void 0,onClickOutside:v},R.createElement("div",{"data-qa-anchor":"message-options-button",role:"button",tabIndex:0,onClick:y,onKeyDown:y},R.createElement(MA,null)))},FA=h0e;var x0e=()=>R.createElement(FormattedMessage,{id:"chat.message.deleted"}),OA=x0e;var I0e=({data:e})=>R.createElement(ul,null,e.text),zA=I0e;var M0e=({data:e})=>R.createElement("pre",null,JSON.stringify(e)),UA=M0e;var T0e=()=>R.createElement(FormattedMessage,{id:"chat.message.unsupported"}),$A=T0e;function k0e(e){return e.type==="text"}function S0e(e){return e.type==="custom"}var N0e=e=>{let{isDeleted:t}=e;return t?R.createElement(OA,null):k0e(e)?R.createElement(zA,{data:e.data}):S0e(e)?R.createElement(UA,{data:e.data}):R.createElement($A,null)},VA=N0e;var B0e=n=>{var i=n,{isDeleted:e,type:t,isSupportedMessageType:o}=i,r=P(i,["isDeleted","type","isSupportedMessageType"]);return e?R.createElement(EA,N(c({},r),{"data-qa-anchor":"message-body-deleted"})):o?R.createElement(NA,N(c({},r),{"data-qa-anchor":"message-body-general"})):R.createElement(BA,N(c({},r),{"data-qa-anchor":"message-body-unsupported"}))},L0e=({messageId:e,avatar:t,type:o,data:r,createdAt:n,isDeleted:i,isIncoming:a,isConsequent:s,userDisplayName:l,containerRef:d})=>{let p=a&&!s&&l,u=["text","custom"].includes(o);return R.createElement(PA,{isIncoming:a},R.createElement(_A,null,a&&R.createElement(kA,null,!s&&(t?R.createElement(Uf,{avatar:t}):R.createElement(Uf,{backgroundImage:Ne}))),R.createElement(TA,{"data-qa-anchor":"message"},p&&R.createElement(SA,null,l),R.createElement(B0e,{type:o,isIncoming:a,isDeleted:i||!1,isSupportedMessageType:u},R.createElement(VA,{data:r,type:o,isDeleted:i}),!i&&R.createElement(AA,null,R.createElement(LA,null,R.createElement(FormattedTime,{value:n})),R.createElement(FA,{messageId:e,data:r,isIncoming:a,isSupportedMessageType:u,popupContainerRef:d}))))))},jA=e=>{let t=W("Message");return t?t(e):R.createElement(L0e,c({},e))};var GA=m.div`
|
|
4967
4968
|
display: flex;
|
|
4968
4969
|
flex-direction: column-reverse;
|
|
4969
4970
|
flex-grow: 1;
|
|
@@ -4978,7 +4979,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4978
4979
|
margin-left: 12px;
|
|
4979
4980
|
margin-right: 8px;
|
|
4980
4981
|
fill: #0f86fe;
|
|
4981
|
-
`;m(
|
|
4982
|
+
`;m(P2).attrs({width:18,height:18})`
|
|
4982
4983
|
cursor: pointer;
|
|
4983
4984
|
margin-right: 20px;
|
|
4984
4985
|
fill: ${({theme:e})=>e.palette.neutral.main};
|
|
@@ -4999,7 +5000,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
4999
5000
|
border: 1px solid #e3e4e8;
|
|
5000
5001
|
border-radius: 4px;
|
|
5001
5002
|
flex-grow: 1;
|
|
5002
|
-
`;var $0e=({onSubmit:e})=>{let[t,o]=useState(""),{formatMessage:r}=useIntl(),n=()=>{t!==""&&(e(t),o(""));};return R.createElement(qA,null,R.createElement(KA,{"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()}),R.createElement(WA,{"data-qa-anchor":"message-compose-bar-send-message-button",onClick:n}))},JA=e=>{let t=W("MessageComposerBar");return t?t(e):R.createElement($0e,c({},e))};var XA=m(
|
|
5003
|
+
`;var $0e=({onSubmit:e})=>{let[t,o]=useState(""),{formatMessage:r}=useIntl(),n=()=>{t!==""&&(e(t),o(""));};return R.createElement(qA,null,R.createElement(KA,{"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()}),R.createElement(WA,{"data-qa-anchor":"message-compose-bar-send-message-button",onClick:n}))},JA=e=>{let t=W("MessageComposerBar");return t?t(e):R.createElement($0e,c({},e))};var XA=m(b2).attrs({width:24,height:24})`
|
|
5003
5004
|
cursor: pointer;
|
|
5004
5005
|
fill: ${({theme:e})=>e.palette.neutral.main};
|
|
5005
5006
|
align-self: center;
|
|
@@ -5024,7 +5025,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5024
5025
|
`,oD=m.div`
|
|
5025
5026
|
font-size: 12px;
|
|
5026
5027
|
color: #999999;
|
|
5027
|
-
`;var j0e=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{let r=Ni(e),{chatName:n,chatAvatar:i}=
|
|
5028
|
+
`;var j0e=({channelId:e,onChatDetailsClick:t,shouldShowChatDetails:o})=>{let r=Ni(e),{chatName:n,chatAvatar:i}=i2({channel:r});return R.createElement(YA,{"data-qa-anchor":"chat-header"},R.createElement(RA,null,R.createElement(_s,{avatarUrl:i||void 0,defaultImage:r!=null&&r.memberCount&&r.memberCount>2?ar:Ne}),R.createElement(eD,{"data-qa-anchor":"chat-header-channel-info"},R.createElement(tD,{"data-qa-anchor":"chat-header-channel-info-channel-name"},n),R.createElement(oD,{"data-qa-anchor":"chat-header-channel-info-member-count"},R.createElement(FormattedMessage,{id:"chat.members.count",values:{count:r==null?void 0:r.memberCount}})))),!o&&R.createElement(XA,{onClick:t}))},rD=e=>{let t=W("ChatHeader");return t?t(e):R.createElement(j0e,c({},e))};var nD=m.div`
|
|
5028
5029
|
display: flex;
|
|
5029
5030
|
flex-direction: column;
|
|
5030
5031
|
flex-grow: 1;
|
|
@@ -5053,10 +5054,10 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5053
5054
|
}
|
|
5054
5055
|
}
|
|
5055
5056
|
`}
|
|
5056
|
-
`,
|
|
5057
|
+
`,Zf=m.div`
|
|
5057
5058
|
width: 700px;
|
|
5058
5059
|
margin-right: 20px;
|
|
5059
|
-
`,
|
|
5060
|
+
`,Qf=m.div`
|
|
5060
5061
|
display: flex;
|
|
5061
5062
|
align-items: flex-start;
|
|
5062
5063
|
margin-bottom: 8px;
|
|
@@ -5073,7 +5074,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5073
5074
|
margin-top: 8px;
|
|
5074
5075
|
color: ${({theme:e})=>e.palette.alert.main};
|
|
5075
5076
|
${({theme:e})=>e.typography.caption}
|
|
5076
|
-
`,
|
|
5077
|
+
`,Wf=e=>R.createElement(ErrorMessage,c({as:Q0e},e)),cD=m.div`
|
|
5077
5078
|
border-top: 1px solid ${({theme:e})=>e.palette.base.shade4};
|
|
5078
5079
|
padding: ${({edit:e})=>e?"12px 0":"12px 16px"};
|
|
5079
5080
|
display: flex;
|
|
@@ -5171,7 +5172,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5171
5172
|
`,UD=m(Dr).attrs({width:18,height:14})``,$D=m.span`
|
|
5172
5173
|
padding-left: 8px;
|
|
5173
5174
|
${({theme:e})=>e.typography.body};
|
|
5174
|
-
`,
|
|
5175
|
+
`,Kf=m.div`
|
|
5175
5176
|
display: flex;
|
|
5176
5177
|
align-items: center;
|
|
5177
5178
|
height: 46px;
|
|
@@ -5181,7 +5182,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5181
5182
|
padding-left: 12px;
|
|
5182
5183
|
${({theme:e})=>e.typography.body};
|
|
5183
5184
|
color: ${({theme:e})=>e.palette.neutral.main};
|
|
5184
|
-
`,VD=m(
|
|
5185
|
+
`,VD=m(Kf)`
|
|
5185
5186
|
cursor: pointer;
|
|
5186
5187
|
&:hover {
|
|
5187
5188
|
background-color: #f7f7f8;
|
|
@@ -5197,7 +5198,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5197
5198
|
svg {
|
|
5198
5199
|
font-size: 20px;
|
|
5199
5200
|
}
|
|
5200
|
-
`;var cpe=({onClick:e})=>R.createElement(VD,{onClick:e},R.createElement(jD,null,R.createElement(FD,null)),R.createElement(uu,null,R.createElement(FormattedMessage,{id:"chat.member.addMore"}))),GD=cpe;function Ld(e){let r=ze({fetcher:ChannelRepository.Membership.getMembers,params:{channelId:e,includeDeleted:!1},shouldCall:!!e}),{items:t}=r,o=P(r,["items"]);return c({channelMembers:t},o)}var upe="Anonymous",gpe=({channelId:e,hideMembers:t,onEditChatMemberClick:o,onMemberSelect:r})=>{let n=Ni(e),{channelMembers:i,hasMore:a,loadMore:s}=Ld(e),l=u=>{u.stopPropagation(),t==null||t();},d=u=>{var h;let{displayName:g,metadata:f}=(h=u==null?void 0:u.user)!=null?h:{};if(g)return g;let{firstname:y="",lastname:v=""}=f!=null?f:{};return [y,v].filter(Boolean).join(" ").trim()},p=(n==null?void 0:n.type)==="live"||(n==null?void 0:n.type)==="community";return R.createElement(OD,null,R.createElement(zD,{onClick:l},R.createElement(UD,null),R.createElement($D,null,R.createElement(FormattedMessage,{id:"chat.members.return"}))),(i==null?void 0:i.length)>0?R.createElement(No,{hasMore:a,loadMore:s,contentSlot:R.createElement(R.Fragment,null,i.map(u=>R.createElement(
|
|
5201
|
+
`;var cpe=({onClick:e})=>R.createElement(VD,{onClick:e},R.createElement(jD,null,R.createElement(FD,null)),R.createElement(uu,null,R.createElement(FormattedMessage,{id:"chat.member.addMore"}))),GD=cpe;function Ld(e){let r=ze({fetcher:ChannelRepository.Membership.getMembers,params:{channelId:e,includeDeleted:!1},shouldCall:!!e}),{items:t}=r,o=P(r,["items"]);return c({channelMembers:t},o)}var upe="Anonymous",gpe=({channelId:e,hideMembers:t,onEditChatMemberClick:o,onMemberSelect:r})=>{let n=Ni(e),{channelMembers:i,hasMore:a,loadMore:s}=Ld(e),l=u=>{u.stopPropagation(),t==null||t();},d=u=>{var h;let{displayName:g,metadata:f}=(h=u==null?void 0:u.user)!=null?h:{};if(g)return g;let{firstname:y="",lastname:v=""}=f!=null?f:{};return [y,v].filter(Boolean).join(" ").trim()},p=(n==null?void 0:n.type)==="live"||(n==null?void 0:n.type)==="community";return R.createElement(OD,null,R.createElement(zD,{onClick:l},R.createElement(UD,null),R.createElement($D,null,R.createElement(FormattedMessage,{id:"chat.members.return"}))),(i==null?void 0:i.length)>0?R.createElement(No,{hasMore:a,loadMore:s,contentSlot:R.createElement(R.Fragment,null,i.map(u=>R.createElement(Kf,{key:u.userId,onClick:()=>r==null?void 0:r(u)},R.createElement(_s,c({size:Gs.SMALL,defaultImage:Ne},u==null?void 0:u.user)),R.createElement(uu,null,d(u)||upe))),p?R.createElement(GD,{onClick:()=>o==null?void 0:o({channelId:e,members:i})}):null)}):null)},ZD=gpe;var QD=m.div`
|
|
5201
5202
|
display: flex;
|
|
5202
5203
|
flex-direction: column;
|
|
5203
5204
|
flex-shrink: 0;
|
|
@@ -5231,11 +5232,11 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5231
5232
|
${({theme:e})=>e.typography.bodyBold};
|
|
5232
5233
|
line-height: 24px;
|
|
5233
5234
|
color: #000000;
|
|
5234
|
-
`;var ype=({channelId:e,onClose:t,leaveChat:o,onEditChatMemberClick:r,onMemberSelect:n})=>{let i=Ni(e),{chatName:a,chatAvatar:s,type:l}=
|
|
5235
|
+
`;var ype=({channelId:e,onClose:t,leaveChat:o,onEditChatMemberClick:r,onMemberSelect:n})=>{let i=Ni(e),{chatName:a,chatAvatar:s,type:l}=i2({channel:i}),[d,p]=useState(!1);return R.createElement(QD,null,R.createElement(WD,null,R.createElement(FormattedMessage,{id:"chat.details.header"}),R.createElement(qD,{onClick:t})),R.createElement(KD,null,R.createElement(_s,{avatarUrl:s,defaultImage:ar}),R.createElement(JD,null,R.createElement(XD,null,R.createElement(FormattedMessage,{id:"chat.details.chatName"})),R.createElement(YD,null,a))),d?R.createElement(ZD,{channelId:e,hideMembers:()=>p(!1),onMemberSelect:n,onEditChatMemberClick:({members:u})=>i&&(r==null?void 0:r({channel:i,members:u}))}):R.createElement(DD,{chatType:l,channelId:e,chatName:a,leaveChat:o,memberCount:i==null?void 0:i.memberCount,showMembers:()=>p(!0)}))},eH=e=>{let t=W("ChatDetails");return t?t(e):R.createElement(ype,c({},e))};var tH=m.div`
|
|
5235
5236
|
display: flex;
|
|
5236
5237
|
height: 100%;
|
|
5237
5238
|
width: 100%;
|
|
5238
|
-
`;var Cpe=({name:e})=>R.createElement("div",{"data-qa-anchor":`chat-type-selector-item-${e}`},e),vpe=({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 R.createElement(sD,{"data-qa-anchor":"chat-type",options:r,value:[r[0]],parentContainer:t,renderItem:Cpe,onSelect:({value:n})=>e(n)})},rH=vpe;var wpe=({children:e})=>R.createElement(aD,null,R.createElement(iD,null,e)),Mpe=({className:e,onCancel:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),[n,i]=R.useState(!1),a={type:"live",displayName:void 0,avatarFileId:void 0,userIds:[],tags:[]},{register:s,handleSubmit:l,watch:d,control:p,formState:{errors:u,isDirty:g}}=useForm({defaultValues:a}),f=d("userIds"),y=h=>_(void 0,null,function*(){i(!0);try{let x={displayName:h.displayName,type:(h==null?void 0:h.type)||"community",avatarFileId:(h==null?void 0:h.avatarFileId)||void 0,userIds:h==null?void 0:h.userIds,tags:h==null?void 0:h.tags};yield o==null?void 0:o(x);}finally{i(!1);}}),v=!g||f.length===0||n,C=useRef(null);return R.createElement(mD,null,R.createElement(pD,{className:e,onSubmit:l(y)},R.createElement(dD,{ref:C},R.createElement(wpe,null,R.createElement(Td,null,R.createElement(
|
|
5239
|
+
`;var Cpe=({name:e})=>R.createElement("div",{"data-qa-anchor":`chat-type-selector-item-${e}`},e),vpe=({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 R.createElement(sD,{"data-qa-anchor":"chat-type",options:r,value:[r[0]],parentContainer:t,renderItem:Cpe,onSelect:({value:n})=>e(n)})},rH=vpe;var wpe=({children:e})=>R.createElement(aD,null,R.createElement(iD,null,e)),Mpe=({className:e,onCancel:t,onSubmit:o})=>{let{formatMessage:r}=useIntl(),[n,i]=R.useState(!1),a={type:"live",displayName:void 0,avatarFileId:void 0,userIds:[],tags:[]},{register:s,handleSubmit:l,watch:d,control:p,formState:{errors:u,isDirty:g}}=useForm({defaultValues:a}),f=d("userIds"),y=h=>_(void 0,null,function*(){i(!0);try{let x={displayName:h.displayName,type:(h==null?void 0:h.type)||"community",avatarFileId:(h==null?void 0:h.avatarFileId)||void 0,userIds:h==null?void 0:h.userIds,tags:h==null?void 0:h.tags};yield o==null?void 0:o(x);}finally{i(!1);}}),v=!g||f.length===0||n,C=useRef(null);return R.createElement(mD,null,R.createElement(pD,{className:e,onSubmit:l(y)},R.createElement(dD,{ref:C},R.createElement(wpe,null,R.createElement(Td,null,R.createElement(Qf,null,R.createElement(Zf,null,R.createElement(pu,null,R.createElement(FormattedMessage,{id:"chatComposer.label.type"})))),R.createElement(uD,null,R.createElement(Controller,{name:"type",rules:{required:"Channel type is required"},render:b=>{var {field:M}=b,I=M,x=P(I,["ref"]);return R.createElement(rH,c({parentContainer:C.current},x))},control:p,defaultValue:""}))),R.createElement(Td,null,R.createElement(Qf,null,R.createElement(Zf,null,R.createElement(pu,null,R.createElement(FormattedMessage,{id:"chatComposer.label.displayName"})))),R.createElement(lD,N(c({},s("displayName")),{placeholder:r({id:"chat_composer.placeholder.displayName"}),"data-qa-anchor":"chat-composer-display-name-input"})),R.createElement(Wf,{errors:u,name:"displayName"})),R.createElement(Td,null,R.createElement(Controller,{name:"avatarFileId",control:p,render:b=>{var {field:M}=b,I=M,x=P(I,["ref"]);return R.createElement(Ga,c({mimeType:"image/png, image/jpeg"},x))},defaultValue:void 0})),R.createElement(Td,null,R.createElement(pu,{className:"required"},R.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),R.createElement(Controller,{name:"userIds",render:b=>{var {field:M}=b,I=M,x=P(I,["ref"]);return R.createElement(Wa,N(c({parentContainer:C.current},x),{"data-qa-anchor":"chat-composer-select-user-input"}))},control:p}),R.createElement(Wf,{errors:u,name:"userIds"})))),R.createElement(cD,null,R.createElement(Y,{onClick:h=>{h.preventDefault(),t==null||t();}},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(gD,{"data-qa-anchor":"chat-composer-submit-button",disabled:v},R.createElement(FormattedMessage,{id:"create"})))))},nH=Mpe;var Tpe=({onClose:e})=>{let{formatMessage:t}=useIntl(),{confirm:o}=_e(),r=we(),n=a=>_(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 R.createElement(ro,{"data-qa-anchor":"create-chat-modal",title:t({id:"chat_modal.title"}),onCancel:i},R.createElement(nH,{onSubmit:n,onCancel:i}))},aH=Tpe;m.div`
|
|
5239
5240
|
display: flex;
|
|
5240
5241
|
flex-direction: column;
|
|
5241
5242
|
flex-grow: 1;
|
|
@@ -5298,7 +5299,7 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5298
5299
|
min-width: 100px;
|
|
5299
5300
|
margin-left: 0;
|
|
5300
5301
|
`};
|
|
5301
|
-
`;var Ape=({children:e})=>R.createElement(lH,null,R.createElement(sH,null,e)),Dpe=({channelId:e,className:t,memberIds:o,onCancel:r,onSubmit:n})=>{let[i,a]=R.useState(!1),s=we(),l={userIds:o},{register:d,handleSubmit:p,watch:u,control:g,formState:{errors:f,isDirty:y}}=useForm({defaultValues:l}),v=u("userIds"),C=M=>_(void 0,[M],function*({userIds:b}){a(!0);try{n==null||n(b);let I=o.filter(k=>!b.includes(k)),w=b.filter(k=>!o.includes(k));return Promise.all([(w==null?void 0:w.length)>0?ChannelRepository.Membership.addMembers(e,w):null,(I==null?void 0:I.length)>0?ChannelRepository.Membership.removeMembers(e,I):null].filter(Fe))}catch(I){I instanceof Error&&s.error({content:I.message});}finally{a(!1);}}),h=!y||v.length===0||i,x=useRef(null);return R.createElement(cH,null,R.createElement(fH,{className:t,onSubmit:p(C)},R.createElement(gH,{ref:x},R.createElement(Ape,null,R.createElement(dH,null,R.createElement(mH,{className:"required"},R.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),R.createElement(Controller,{name:"userIds",render:I=>{var {field:w}=I,k=w,M=P(k,["ref"]);return R.createElement(Wa,N(c({parentContainer:x.current},M),{"data-qa-anchor":"edit-chat-members-composer-select-user-input"}))},control:g}),R.createElement(pH,{errors:f,name:"userIds"})))),R.createElement(uH,null,R.createElement(Y,{onClick:b=>{b.preventDefault(),r==null||r();},disabled:y},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(yH,{"data-qa-anchor":"edit-chat-members-composer-submit-button",disabled:h},R.createElement(FormattedMessage,{id:"save"})))))};function
|
|
5302
|
+
`;var Ape=({children:e})=>R.createElement(lH,null,R.createElement(sH,null,e)),Dpe=({channelId:e,className:t,memberIds:o,onCancel:r,onSubmit:n})=>{let[i,a]=R.useState(!1),s=we(),l={userIds:o},{register:d,handleSubmit:p,watch:u,control:g,formState:{errors:f,isDirty:y}}=useForm({defaultValues:l}),v=u("userIds"),C=M=>_(void 0,[M],function*({userIds:b}){a(!0);try{n==null||n(b);let I=o.filter(k=>!b.includes(k)),w=b.filter(k=>!o.includes(k));return Promise.all([(w==null?void 0:w.length)>0?ChannelRepository.Membership.addMembers(e,w):null,(I==null?void 0:I.length)>0?ChannelRepository.Membership.removeMembers(e,I):null].filter(Fe))}catch(I){I instanceof Error&&s.error({content:I.message});}finally{a(!1);}}),h=!y||v.length===0||i,x=useRef(null);return R.createElement(cH,null,R.createElement(fH,{className:t,onSubmit:p(C)},R.createElement(gH,{ref:x},R.createElement(Ape,null,R.createElement(dH,null,R.createElement(mH,{className:"required"},R.createElement(FormattedMessage,{id:"chatComposer.addUsers"})),R.createElement(Controller,{name:"userIds",render:I=>{var {field:w}=I,k=w,M=P(k,["ref"]);return R.createElement(Wa,N(c({parentContainer:x.current},M),{"data-qa-anchor":"edit-chat-members-composer-select-user-input"}))},control:g}),R.createElement(pH,{errors:f,name:"userIds"})))),R.createElement(uH,null,R.createElement(Y,{onClick:b=>{b.preventDefault(),r==null||r();},disabled:y},R.createElement(FormattedMessage,{id:"cancel"})),R.createElement(yH,{"data-qa-anchor":"edit-chat-members-composer-submit-button",disabled:h},R.createElement(FormattedMessage,{id:"save"})))))};function Yf(e){let l=e,{channelId:t}=l,o=P(l,["channelId"]),{isLoading:r,channelMembers:n,hasMore:i,loadMore:a}=Ld(t),s=n.map(d=>d.userId);return r||t==null?null:R.createElement(Dpe,N(c({},o),{channelId:t,memberIds:s}))}var Fpe=({channelId:e,onClose:t})=>{let{formatMessage:o}=useIntl(),{confirm:r}=_e(),n=we(),i=s=>_(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 R.createElement(ro,{"data-qa-anchor":"edit-chat-members-modal",title:o({id:"editChatMembersModal.title"}),onCancel:a},R.createElement(Yf,{channelId:e,onSubmit:i,onCancel:a}))},vH=Fpe;var Upe=({membershipFilter:e="all",defaultChannelId:t,onMemberSelect:o,onChannelSelect:r,onAddNewChannel:n,onEditChatMember:i})=>{let{formatMessage:a}=useIntl(),[s,l]=useState(null),[d,p]=useState(!1),u=we(),g=()=>p(!0),f=()=>p(!1),[y,v]=useState(!1),[C,h]=useState(!1),x=()=>v(!0),b=I=>{(s==null?void 0:s.channelId)!==(I==null?void 0:I.channelId)&&(f(),l(I),r==null||r(I));},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(I){u.error({content:a({id:"chat.leaveChat.error"})});}});return useEffect(()=>{function I(){return _(this,null,function*(){return Client.startUnreadSync()})}return I(),()=>{Client.stopUnreadSync();}},[]),useEffect(()=>{t&&b({channelId:t,type:"standard"});},[t]),R.createElement(tH,null,R.createElement(vA,{selectedChannelId:s==null?void 0:s.channelId,membershipFilter:e,onChannelSelect:b,onAddNewChannelClick:()=>{x(),n==null||n();}}),s?R.createElement(yD,{channelId:s.channelId,shouldShowChatDetails:d,onChatDetailsClick:g}):null,d&&s?R.createElement(eH,{channelId:s.channelId,leaveChat:M,onEditChatMemberClick:I=>{h(!0),i==null||i(I);},onMemberSelect:o,onClose:f}):null,y?R.createElement(aH,{onClose:()=>v(!1)}):null,C&&s?R.createElement(vH,{channelId:s==null?void 0:s.channelId,onClose:()=>h(!1)}):null)},$pe=Upe;var IH=(e,t)=>_(void 0,null,function*(){return ChannelRepository.Membership.addMembers(e,t)});var wH=(e,t)=>_(void 0,null,function*(){return ChannelRepository.Membership.removeMembers(e,t)});var Ho=class Ho{constructor(){this.client=null;this.isConnected=!1;this.stateChangeHandler=null;this.disconnectedHandler=null;}static setup(t){if(!Ho.instance){Ho.instance=new Ho;let o=Client.createClient(t.apiKey,t.apiRegion,t!=null&&t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{});Ho.setClient(o);}}static registerDevice(l){return _(this,arguments,function*({userId:t,displayName:o,sessionHandler:r,authToken:n,onConnectionStatusChange:i,onConnected:a,onDisconnected:s}){if(!Ho.instance)throw new Error("AmityUIKitManager must be set up first using the setup method.");Ho.instance.onConnectionStatusChange=i,Ho.instance.onConnected=a,Ho.instance.onDisconnected=s,yield Ho.instance.connectAndLogin({userId:t,displayName:o,sessionHandler:r,authToken:n});})}static setClient(t){if(Ho.instance)Ho.instance.client=t,Ho.instance.isConnected=!0;else throw new Error("AmityUIKitManager must be set up first using the setup method.")}connectAndLogin(i){return _(this,arguments,function*({userId:t,displayName:o,sessionHandler:r,authToken:n}){yield Client.login({userId:t,displayName:o,authToken:n},{sessionWillRenewAccessToken:r.sessionWillRenewAccessToken.bind(r)}),this.stateChangeHandler=Client.onSessionStateChange(a=>{var s;(s=this.onConnectionStatusChange)==null||s.call(this,a);}),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=Ho.instance)==null?void 0:t.client)||null}isClientConnected(){return this.isConnected}};Ho.instance=null;var Rf=Ho;var Gpe=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 121 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{x:"0.5",y:"0.5",width:"120",height:"120",rx:"60",fill:"#D9E5FC"}),R.createElement("path",{d:"M53.3621 77.2578V64.4753C53.3621 61.6791 55.6698 59.3623 58.4549 59.3623H81.3727C84.2374 59.3623 86.4655 61.6791 86.4655 64.4753V77.2578C86.4655 80.1339 84.2374 82.3708 81.3727 82.3708V86.7648C81.3727 87.404 80.6565 87.7235 80.179 87.3241L73.5743 82.3708H58.4549C55.6698 82.3708 53.3621 80.1339 53.3621 77.2578Z",fill:"white"}),R.createElement("path",{d:"M78.1733 64.1802V46.5515C78.1733 42.2387 74.5708 38.6888 70.2321 38.6888H40.63C36.1715 38.6888 32.6888 42.247 32.6888 46.5515V64.1802C32.6888 68.3305 35.7628 71.6152 39.8188 72.0042V77.2915C39.8188 78.8883 41.6295 79.6431 42.7981 78.7042L51.8149 72.0429H70.2321C74.5625 72.0429 78.1733 68.6113 78.1733 64.1802Z",fill:"white",stroke:"#D9E5FC",strokeWidth:"1.6224"})),MH=Gpe;var Zpe=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 448 512",fill:"currentColor"},e),R.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
|
|
5302
5303
|
438.4V464c0 26.5 21.5 48 48 48h352c26.5 0
|
|
5303
5304
|
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
|
|
5304
5305
|
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
|
|
@@ -5312,14 +5313,14 @@ Note: nickname must be alphanumeric only and 3-25 characters in length.`)),R.cre
|
|
|
5312
5313
|
}
|
|
5313
5314
|
`,Jpe=m.svg`
|
|
5314
5315
|
animation: ${Kpe} 2s linear infinite;
|
|
5315
|
-
`,Xpe=e=>{let t=v4$1();return R.createElement(Jpe,c({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52453 4C9.52453 4.31559 9.26869 4.57143 8.9531 4.57143C8.63751 4.57143 8.38167 4.31559 8.38167 4V0.571429C8.38167 0.255837 8.63751 0 8.9531 0C9.26869 0 9.52453 0.255837 9.52453 0.571428V4ZM7.23891 5.03082C7.51222 4.87303 7.60586 4.52355 7.44807 4.25024L5.73378 1.28101C5.57599 1.0077 5.22651 0.914056 4.9532 1.07185C4.67989 1.22965 4.58624 1.57913 4.74404 1.85244L6.45832 4.82167C6.61612 5.09498 6.9656 5.18862 7.23891 5.03082ZM5.77458 5.50525C6.04789 5.66304 6.14153 6.01252 5.98374 6.28583C5.82594 6.55914 5.47646 6.65278 5.20315 6.49499L2.23392 4.7807C1.96061 4.62291 1.86697 4.27343 2.02476 4.00012C2.18256 3.72681 2.53204 3.63316 2.80535 3.79096L5.77458 5.50525ZM5.52455 8.00013C5.52455 7.68454 5.26872 7.4287 4.95312 7.4287H1.52455C1.20896 7.4287 0.953125 7.68454 0.953125 8.00013C0.953125 8.31572 1.20896 8.57156 1.52455 8.57156H4.95313C5.26872 8.57156 5.52455 8.31572 5.52455 8.00013ZM5.20327 9.50543C5.47658 9.34764 5.82606 9.44128 5.98385 9.71459C6.14165 9.9879 6.048 10.3374 5.77469 10.4952L2.80546 12.2095C2.53215 12.3673 2.18267 12.2736 2.02488 12.0003C1.86708 11.727 1.96073 11.3775 2.23404 11.2197L5.20327 9.50543ZM7.23874 10.9693C6.96543 10.8115 6.61595 10.9051 6.45815 11.1784L4.74387 14.1476C4.58607 14.4209 4.67971 14.7704 4.95302 14.9282C5.22633 15.086 5.57581 14.9924 5.73361 14.7191L7.44789 11.7498C7.60569 11.4765 7.51205 11.127 7.23874 10.9693ZM8.95292 11.4287C8.63732 11.4287 8.38149 11.6845 8.38149 12.0001V15.4287C8.38149 15.7443 8.63732 16.0001 8.95292 16.0001C9.26851 16.0001 9.52435 15.7443 9.52435 15.4287V12.0001C9.52435 11.6845 9.26851 11.4287 8.95292 11.4287ZM10.6674 5.03064C10.9407 5.18843 11.2901 5.09479 11.4479 4.82148L13.1622 1.85225C13.32 1.57894 13.2264 1.22946 12.9531 1.07166C12.6798 0.913868 12.3303 1.00751 12.1725 1.28082L10.4582 4.25005C10.3004 4.52336 10.394 4.87284 10.6674 5.03064ZM12.7028 6.4947C12.4295 6.65249 12.08 6.55885 11.9222 6.28554C11.7644 6.01223 11.8581 5.66275 12.1314 5.50496L15.1006 3.79067C15.3739 3.63287 15.7234 3.72652 15.8812 3.99983C16.039 4.27314 15.9453 4.62262 15.672 4.78041L12.7028 6.4947ZM12.3816 8C12.3816 8.31559 12.6374 8.57143 12.953 8.57143H16.3816C16.6972 8.57143 16.953 8.31559 16.953 8C16.953 7.68441 16.6972 7.42857 16.3816 7.42857H12.953C12.6374 7.42857 12.3816 7.68441 12.3816 8ZM12.1315 10.4946C11.8582 10.3368 11.7646 9.98737 11.9224 9.71406C12.0801 9.44075 12.4296 9.3471 12.7029 9.5049L15.6722 11.2192C15.9455 11.377 16.0391 11.7265 15.8813 11.9998C15.7235 12.2731 15.3741 12.3667 15.1007 12.2089L12.1315 10.4946ZM10.6673 10.9693C10.3939 11.1271 10.3003 11.4766 10.4581 11.7499L12.1724 14.7191C12.3302 14.9924 12.6797 15.0861 12.953 14.9283C13.2263 14.7705 13.3199 14.421 13.1621 14.1477L11.4478 11.1785C11.29 10.9052 10.9406 10.8115 10.6673 10.9693Z",fill:`url(#paint_${t})`}),R.createElement("defs",null,R.createElement("radialGradient",{id:`paint_${t}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.95312 8) scale(8)"},R.createElement("stop",{offset:"0.669733",stopColor:"white"}),R.createElement("stop",{offset:"0.716307",stopColor:"white",stopOpacity:"0.01"}))))},TH=Xpe;var SH={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function o3e(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===SH.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 tf(o){return _(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 r3e(e,t,o){return _(this,null,function*(){var r,n;return (e==null?void 0:e.memberCount)===SH.ONLY_ME_CHAT?tf({avatarCustomUrl:o==null?void 0:o.avatarUrl}):(r=e==null?void 0:e.metadata)!=null&&r.isDirectChat&&(t!=null&&t.avatarUrl)?tf({avatarCustomUrl:t.avatarUrl}):tf({avatarFileId:e==null?void 0:e.avatarFileId,avatarCustomUrl:(n=e==null?void 0:e.metadata)==null?void 0:n.avatarCustomUrl})})}function n3e({channel:e}){var p,u,g;let{currentUserId:t}=ol(),[o,r]=useState(null),n=(p=e==null?void 0:e.metadata)!=null&&p.isDirectChat?((g=(u=e==null?void 0:e.metadata)==null?void 0:u.userIds)!=null?g:[]).find(f=>f!==t):null,i=oe(t),a=oe(n),s=se({fileId:i==null?void 0:i.avatarFileId}),l=se({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function f(){return _(this,null,function*(){r(null);let y=yield r3e(e,{avatarUrl:(a==null?void 0:a.avatarCustomUrl)||l},{avatarUrl:(i==null?void 0:i.avatarCustomUrl)||s});r(y);})}f();},[a==null?void 0:a.avatarCustomUrl,e,s,i==null?void 0:i.avatarCustomUrl]),{chatName:useMemo(()=>e==null?void 0:o3e(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var NH=n3e;var m2={messageListHeader:"ff",displayName:"uf",memberCount:"bf",memberIcon:"vf",avatar:"xf"};var Cu=({channel:e,pageId:t="*"})=>{let o="chat_header",{themeStyles:r}=te({pageId:t,componentId:o}),{chatName:n,chatAvatar:i}=NH({channel:e}),a=hu();return R.createElement("div",{className:m2.messageListHeader,style:r},R.createElement("div",{className:m2.avatar},R.createElement(vt,{avatarUrl:i,defaultImage:R.createElement(MH,null)})),R.createElement("div",null,R.createElement("div",{className:m2.displayName},R.createElement(S.Title,null,n||"Loading...")),R.createElement("div",{className:m2.memberCount},a?R.createElement(R.Fragment,null,R.createElement(_H,{className:m2.memberIcon}),R.createElement(S.Caption,null,ob((e==null?void 0:e.memberCount)||0)," ",`${(e==null?void 0:e.memberCount)||0} ${(e==null?void 0:e.memberCount)===1?"member":"members"}`)):R.createElement(R.Fragment,null,R.createElement(TH,{width:20,height:20}),R.createElement(S.Caption,null,"Waiting for connection...")))))};var EH={spinner:"wf",rotate:"Yr"};var BH=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement("svg",c({width:"25",height:"25",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading...",viewBox:"0 0 100 100",version:"1.1",className:sr(EH.spinner,e)},t),R.createElement("defs",{id:"defs3821"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0",rx:"3",ry:"3",transform:"rotate(-90 50 50)",width:"25",x:"72",y:"47",id:"rect3793"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.08333333333333333",rx:"3",ry:"3",transform:"rotate(-60 50 50)",width:"25",x:"72",y:"47",id:"rect3795"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.16666666666666666",rx:"3",ry:"3",transform:"rotate(-30 50 50)",width:"25",x:"72",y:"47",id:"rect3797"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.25",rx:"3",ry:"3",transform:"rotate(0 50 50)",width:"25",x:"72",y:"47",id:"rect3799"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.3333333333333333",rx:"3",ry:"3",transform:"rotate(30 50 50)",width:"25",x:"72",y:"47",id:"rect3801"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.4166666666666667",rx:"3",ry:"3",transform:"rotate(60 50 50)",width:"25",x:"72",y:"47",id:"rect3803"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.5",rx:"3",ry:"3",transform:"rotate(90 50 50)",width:"25",x:"72",y:"47",id:"rect3805"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.5833333333333334",rx:"3",ry:"3",transform:"rotate(120 50 50)",width:"25",x:"72",y:"47",id:"rect3807"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.6666666666666666",rx:"3",ry:"3",transform:"rotate(150 50 50)",width:"25",x:"72",y:"47",id:"rect3809"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.75",rx:"3",ry:"3",transform:"rotate(180 50 50)",width:"25",x:"72",y:"47",id:"rect3811"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.8333333333333334",rx:"3",ry:"3",transform:"rotate(210 50 50)",width:"25",x:"72",y:"47",id:"rect3813"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.9166666666666666",rx:"3",ry:"3",transform:"rotate(240 50 50)",width:"25",x:"72",y:"47",id:"rect3815"}))};var or={optionButton:"yf",optionIcon:"kf",reactionIcon:"jf",timestamp:"zf",messageActionButton:"Xf",messageActionButtonText:"Yf",messageDangerActionButtonText:"Af",copyIcon:"Vf",replyIcon:"qf",binIcon:"Bf",mentionIcon:"Cf",flagIcon:"Df"};var c3e=t=>{var e=P(t,[]);return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21"},e),R.createElement("path",{d:"M10 8.78369C10.8125 8.78369 11.5 9.47119 11.5 10.2837C11.5 11.1274 10.8125 11.7837 10 11.7837C9.15625 11.7837 8.5 11.1274 8.5 10.2837C8.5 9.47119 9.15625 8.78369 10 8.78369ZM8.5 5.53369C8.5 4.72119 9.15625 4.03369 10 4.03369C10.8125 4.03369 11.5 4.72119 11.5 5.53369C11.5 6.37744 10.8125 7.03369 10 7.03369C9.15625 7.03369 8.5 6.37744 8.5 5.53369ZM8.5 15.0337C8.5 14.2212 9.15625 13.5337 10 13.5337C10.8125 13.5337 11.5 14.2212 11.5 15.0337C11.5 15.8774 10.8125 16.5337 10 16.5337C9.15625 16.5337 8.5 15.8774 8.5 15.0337Z"}))},AH=c3e;var DH={popover:"Ef",fixed:"Ff"};var f3e=i=>{var a=i,{isOpen:e,content:t,fixed:o=!1,children:r}=a,n=P(a,["isOpen","content","fixed","children"]);return R.createElement(Popover,c({containerClassName:sr(DH.popover,{fixed:!1}),isOpen:e,content:t},n),r)},HH=f3e;var y3e=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M1.4375 10.5586C0.84375 9.99609 0.84375 9.02734 1.4375 8.46484L6.9375 2.96484C7.875 1.99609 9.5 2.68359 9.5 4.02734V6.52734C13.7812 6.65234 19 7.49609 19 12.8398C19 15.1211 17.7812 17.0273 15.9375 18.2461C14.7812 19.0273 13.25 17.9336 13.6875 16.5586C14.4375 14.1211 14.0625 12.8398 9.5 12.5586V14.9961C9.5 16.3398 7.875 17.0273 6.9375 16.0586L1.4375 10.5586ZM2.5 9.49609L8 14.9961V11.0273C13.125 11.0586 16.6562 12.0586 15.0938 16.9961C16.25 16.2461 17.5 14.9336 17.5 12.8398C17.5 8.37109 12.4688 8.02734 8 8.02734V3.99609L2.5 9.49609Z",fill:"currenColor"})),OH=y3e;var h3e=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.5312 5.03992C16.7812 5.28992 17 5.75867 17 6.10242V14.4774C17 15.3212 16.3125 15.9774 15.5 15.9774H13V17.4774C13 18.3212 12.3125 18.9774 11.5 18.9774H4.5C3.65625 18.9774 3 18.3212 3 17.4774V7.47742C3 6.66492 3.65625 5.97742 4.5 5.97742H7V4.47742C7 3.66492 7.65625 2.97742 8.5 2.97742H13.875C14.2188 2.97742 14.6875 3.19617 14.9375 3.44617L16.5312 5.03992ZM11.3125 17.4774C11.4062 17.4774 11.5 17.4149 11.5 17.2899V15.9774H8.5C7.65625 15.9774 7 15.3212 7 14.4774V7.47742H4.6875C4.5625 7.47742 4.5 7.57117 4.5 7.66492V17.2899C4.5 17.4149 4.5625 17.4774 4.6875 17.4774H11.3125ZM15.3125 14.4774C15.4062 14.4774 15.5 14.4149 15.5 14.2899V7.97742H12.75C12.3125 7.97742 12 7.66492 12 7.22742V4.47742H8.6875C8.5625 4.47742 8.5 4.57117 8.5 4.66492V14.2899C8.5 14.4149 8.5625 14.4774 8.6875 14.4774H15.3125ZM15.5 6.47742V6.19617C15.5 6.13367 15.4688 6.10242 15.4375 6.07117L13.9062 4.53992C13.875 4.50867 13.8438 4.47742 13.7812 4.47742H13.5V6.47742H15.5Z",fill:"currenColor"})),UH=h3e;var C3e=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M12.875 4.375C13.0625 4.375 13.25 4.5625 13.25 4.75V5.125C13.25 5.33594 13.0625 5.5 12.875 5.5H12.5L11.9844 13.4453C11.9609 14.0312 11.4453 14.5 10.8594 14.5H5.11719C4.53125 14.5 4.01562 14.0312 3.99219 13.4453L3.5 5.5H3.125C2.91406 5.5 2.75 5.33594 2.75 5.125V4.75C2.75 4.5625 2.91406 4.375 3.125 4.375H5.04688L5.84375 3.0625C6.03125 2.75781 6.45312 2.5 6.80469 2.5H9.17188C9.52344 2.5 9.94531 2.75781 10.1328 3.0625L10.9297 4.375H12.875ZM6.80469 3.625L6.35938 4.375H9.61719L9.17188 3.625H6.80469ZM10.8594 13.375L11.3516 5.5H4.625L5.11719 13.375H10.8594Z"})),vu=C3e;var v3e=o=>{var r=o,{color:e="#FA4D30"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.createElement("path",{d:"M10.5 2.99609C11.5938 2.99609 12.7812 2.62109 13.9062 2.12109C14.875 1.71484 16 2.43359 16 3.49609V10.9961C16 11.5273 15.7188 11.9961 15.3125 12.2773C14.4688 12.8086 13.125 13.4961 11.2812 13.4961C9.15625 13.4961 7.75 12.4961 6.21875 12.4961C4.46875 12.4961 3.40625 12.8711 2.25 13.4023V15.9961C2.25 16.2773 2 16.4961 1.75 16.4961H1.25C0.96875 16.4961 0.75 16.2773 0.75 15.9961V3.30859C0.28125 3.05859 0 2.55859 0 1.99609C0 1.15234 0.71875 0.464844 1.59375 0.527344C2.3125 0.558594 2.90625 1.12109 2.96875 1.83984C2.96875 1.87109 3 1.96484 3 1.99609C3 2.15234 2.9375 2.37109 2.90625 2.49609C3.59375 2.21484 4.4375 1.99609 5.4375 1.99609C7.5625 1.99609 8.96875 2.99609 10.5 2.99609ZM14.5 10.9961V3.49609C13.5 3.96484 11.8438 4.49609 10.5 4.49609C8.625 4.49609 7.3125 3.49609 5.4375 3.49609C4.125 3.49609 2.90625 4.02734 2.25 4.49609V11.7461C3.21875 11.3086 4.875 10.9961 6.21875 10.9961C8.09375 10.9961 9.40625 11.9961 11.2812 11.9961C12.5938 11.9961 13.8125 11.4961 14.5 10.9961Z",fill:e}))},xu=v3e;var jH=({isOwner:e,isModerator:t,isFlagged:o,action:r,containerRef:n})=>{let[i,a]=useState(!1),s=useRef(null),l=()=>{r.onCopy&&r.onCopy(),a(!1);},d=()=>{r.onReply&&r.onReply(),a(!1);},p=()=>{r.onDelete&&r.onDelete(),a(!1);},u=()=>{r.onFlag&&r.onFlag(),a(!1);},g=()=>{r.onUnflag&&r.onUnflag(),a(!1);};return R.createElement(R.Fragment,null,R.createElement(HH,{positions:["bottom","top"],onClickOutside:()=>a(!1),isOpen:i,align:"start",parentElement:(n==null?void 0:n.current)||void 0,content:R.createElement(R.Fragment,null,R.createElement("div",{className:or.messageActionButton,onClick:d},R.createElement("div",{className:or.messageActionButtonText},R.createElement(S.Body,null,"Reply")),R.createElement(OH,{className:or.replyIcon})),R.createElement("div",{className:or.messageActionButton,onClick:l},R.createElement("div",{className:or.messageActionButtonText},R.createElement(S.Body,null,"Copy")),R.createElement(UH,{className:or.copyIcon})),(t||!e)&&R.createElement("div",{className:or.messageActionButton,onClick:o?g:u},R.createElement("div",{className:or.messageDangerActionButtonText},R.createElement(S.Body,null,o?"Unreport":"Report")),R.createElement(xu,{className:or.flagIcon})),(e||t)&&R.createElement("div",{className:or.messageActionButton,onClick:p},R.createElement("div",{className:or.messageDangerActionButtonText},R.createElement(S.Body,null,"Delete")),R.createElement(vu,{className:or.binIcon})))},R.createElement("div",{className:or.optionButton,ref:s,onClick:()=>{a(!i);}},R.createElement(AH,{className:or.optionIcon}))))};var bu={messageItemContainer:"Gf",userDisplayName:"Hf",avatar:"If",moderatorBadge:"Jf"};var w3e=({avatarUrl:e,displayName:t,children:o})=>R.createElement("div",{className:bu.messageItemContainer},R.createElement("div",{className:bu.avatar},R.createElement(vt,{avatarUrl:e,defaultImage:R.createElement(cs,null)})),R.createElement("div",null,R.createElement("div",{className:bu.userDisplayName},R.createElement(S.CaptionBold,null,t)),o)),GH=w3e;var Ts={messageBubble:"Ar",messageRepliedBubble:"Kf",messageParentContainer:"Lf",messageParentDisplayName:"Mf",messageParentText:"Nf",messageChildContainer:"Of",messageChildText:"Pf"};var _3e=e=>Lt({fetcher:MessageRepository.getMessage,params:e,shouldCall:!!e}),ZH=_3e;var Iu={mentionText:"Qf",hyperlink:"Rf"};var QH={hyperlink:"Sf"};var N3e=({linkClassName:e,children:t})=>R.createElement(TZ,{options:{target:"_blank",render:({attributes:o,content:r})=>R.createElement("a",c({className:e||QH.hyperlink},o),r)}},t),of=N3e;var E3e=({message:e,className:t})=>{var n,i,a;let o=(n=e.metadata)==null?void 0:n.mentioned,r=o==null?void 0:o.sort((s,l)=>s.index-l.index);if(r!=null&&r.length){let s=((i=e.data)==null?void 0:i.text)||"",l=[],d=0;r.forEach(u=>{let g=u.index,f=u.index+u.length+1,y=s.slice(d,g),v=s.slice(g,f);y&&l.push({text:y,isMention:!1}),l.push({text:v,isMention:!0}),d=f;});let p=s.slice(d);return p&&l.push({text:p,isMention:!1}),R.createElement(S.Body,{className:t},l.map((u,g)=>u.isMention?R.createElement("span",{key:g,className:Iu.mentionText},u.text):R.createElement("span",{key:g},R.createElement(of,{linkClassName:Iu.hyperlink},u.text))))}return R.createElement(S.Body,{className:t},R.createElement(of,{linkClassName:Iu.hyperlink},(a=e.data)==null?void 0:a.text))},rf=E3e;var B3e=({message:e})=>{var r,n,i;let{currentUserId:t}=J(),o=(n=(r=e.metadata)==null?void 0:r.mentioned)==null?void 0:n.some(a=>a.userId===t||a.type==="channel");if(e&&e.parentId){let a=ZH(e.parentId),s=oe(a==null?void 0:a.creatorId);return !a||!s?null:R.createElement("div",{className:Ts.messageRepliedBubble},R.createElement("div",{className:Ts.messageParentContainer},R.createElement("div",{className:Ts.messageParentDisplayName},R.createElement(S.BodyBold,null,s.displayName)),R.createElement(S.Body,{className:Ts.messageParentText},(i=a.data)==null?void 0:i.text)),R.createElement("div",{className:Ts.messageChildContainer},R.createElement(rf,{className:Ts.messageChildText,message:e})))}return R.createElement("div",{"data-mentioned":o,className:Ts.messageBubble},R.createElement(rf,{message:e}))},qH=B3e;var d2=e=>{let{client:t}=J();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 KH=e=>R.createElement("svg",c({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0766 3.686C11.6827 3.45305 12.3021 3.33948 12.9061 3.3335C14.7179 3.31558 16.3937 4.2689 17.1729 5.89093L17.1895 5.92546L17.202 5.9624C17.6819 7.39004 17.5517 8.83248 17.0292 10.1008C16.7326 9.72289 16.3721 9.39755 15.964 9.14106C16.2254 8.26924 16.2483 7.32915 15.9455 6.39919C15.3774 5.24797 14.2332 4.57487 12.9278 4.60378C12.4981 4.61329 12.0515 4.70045 11.6019 4.86956C11.1731 5.08422 10.8198 5.36694 10.5238 5.73675L10.0093 6.37992L9.47729 5.74959C8.38507 4.45434 6.19511 4.17996 4.72103 5.44206C3.63692 6.5523 3.60343 8.44184 4.37082 10.0205C5.31606 11.6937 7.28176 13.3534 9.14794 14.7202L9.15794 14.7275C9.27155 14.8082 9.38012 14.8942 9.48451 14.9769C9.57334 15.0473 9.65915 15.1152 9.74247 15.1755C9.83249 15.2407 9.91925 15.2913 9.98761 15.3273C10.0527 15.3006 10.1319 15.2662 10.2153 15.2157C10.2662 15.1848 10.3205 15.1506 10.3776 15.1136C10.6388 15.4735 10.9562 15.7901 11.3169 16.0503C11.1818 16.1421 11.0508 16.227 10.9257 16.3029C10.8808 16.33 10.8388 16.3568 10.7982 16.3826C10.5856 16.5181 10.4104 16.6296 10.0526 16.6594L9.96091 16.6666L9.87002 16.6497C9.46411 16.575 9.1867 16.3802 8.94112 16.2025C8.80472 16.1038 8.67845 16.0042 8.57194 15.9202C8.48669 15.8529 8.4141 15.7957 8.3591 15.7569L8.35494 15.7536L8.34994 15.7496C6.42696 14.342 4.31681 12.6298 3.18676 10.6147L3.17842 10.5987L3.17008 10.5834C2.21058 8.62424 2.1731 6.14474 3.7738 4.53473L3.79047 4.51786L3.80882 4.50181C5.63352 2.91773 8.30066 3.019 9.97595 4.41428C10.2872 4.13498 10.6374 3.8993 11.0216 3.71089L11.0491 3.69724L11.0766 3.686Z",fill:"currentColor"}),R.createElement("path",{d:"M13.6839 10.0507L13.6839 10.0501L13.6725 10.0522C13.5717 10.0706 13.4807 10.1238 13.4151 10.2025C13.3496 10.2811 13.3137 10.3803 13.3137 10.4827C13.3137 10.4827 13.3137 10.4827 13.3137 10.4827V12.2327H11.5637V12.2322L11.5527 12.2332L11.4964 12.2382L11.4964 12.2376L11.485 12.2397C11.3842 12.2581 11.2932 12.3113 11.2276 12.39C11.1621 12.4686 11.1262 12.5678 11.1262 12.6702H11.1257L11.1267 12.6812L11.1317 12.7375L11.1312 12.7375L11.1333 12.7489C11.1517 12.8496 11.2049 12.9407 11.2835 13.0063C11.3622 13.0718 11.4613 13.1077 11.5637 13.1077C11.5637 13.1077 11.5637 13.1077 11.5638 13.1077H13.3137V14.8577H13.3132L13.3142 14.8687L13.3192 14.925L13.3187 14.925L13.3208 14.9364C13.3392 15.0371 13.3924 15.1282 13.471 15.1938L13.5511 15.0977L13.471 15.1938C13.5497 15.2593 13.6489 15.2952 13.7513 15.2952L13.7513 15.2957L13.7623 15.2947L13.8185 15.2897L13.8186 15.2902L13.83 15.2881C13.9307 15.2697 14.0218 15.2165 14.0873 15.1379C14.1529 15.0592 14.1887 14.96 14.1887 14.8577C14.1887 14.8577 14.1887 14.8576 14.1887 14.8576V13.1077H15.9387V13.1082L15.9498 13.1072L16.006 13.1022L16.0061 13.1027L16.0175 13.1006C16.1182 13.0822 16.2093 13.029 16.2748 12.9504C16.3404 12.8717 16.3763 12.7725 16.3762 12.6701L16.3767 12.6701L16.3757 12.6591L16.3707 12.6028L16.3713 12.6028L16.3692 12.5914C16.3507 12.4907 16.2976 12.3996 16.2189 12.3341C16.1403 12.2685 16.0411 12.2326 15.9387 12.2327C15.9387 12.2327 15.9387 12.2327 15.9387 12.2327H14.1887V10.4827H14.1892L14.1882 10.4716L14.1832 10.4153L14.1838 10.4153L14.1817 10.4039C14.1632 10.3032 14.1101 10.2121 14.0314 10.1466C13.9527 10.081 13.8536 10.0451 13.7512 10.0452V10.0447L13.7402 10.0457L13.6839 10.0507Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.25"}));var wu=o=>_(void 0,[o],function*({reactionName:e,message:t}){let r=t.myReactions||[];if(r.includes(e)){yield ReactionRepository.removeReaction("message",t.messageId,e);return}r.length>0&&(yield ReactionRepository.removeReaction("message",t.messageId,r[0])),yield ReactionRepository.addReaction("message",t.messageId,e);});var sf={quickReactionIcon:"Tf",quickReactionIconContainer:"Vr"};var Mu=({pageId:e="*",componentId:t="*",message:o,onSelectReaction:r})=>{let n="message_quick_reaction",{config:i}=A({pageId:e,componentId:t,elementId:n}),{config:a}=xi(),s=useCallback(()=>{a&&i.reaction&&a.find(l=>l.name===i.reaction)&&wu({reactionName:i.reaction,message:o}),r&&r();},[a,i,o]);return R.createElement("div",{className:sf.quickReactionIconContainer},R.createElement(KH,{className:sf.quickReactionIcon,onClick:s}))};var lf={reactionPickerContainer:"Uf",reactionButton:"b"};var mf=({message:e,onSelectReaction:t})=>{let{config:o}=xi(),r=n=>{wu({reactionName:n,message:e});};return o?R.createElement("div",{className:lf.reactionPickerContainer},o.map(n=>{var i;return R.createElement("img",{"data-active":(i=e.myReactions)==null?void 0:i.includes(n.name),key:n.name,src:n.image,alt:n.name,className:lf.reactionButton,onClick:()=>{r(n.name),t&&t(n.name);}})})):null};var Pu={reactionContainer:"Wf",reactionPickerWrap:"Zf",reactionButton:"_f"};var YH=({pageId:e="*",componentId:t="*",message:o,containerRef:r})=>{let [n,i]=useState(!1),[a,s]=useState(!1),[l,d]=useState(!1);R.useState();let g=useRef(null),f=useRef(a);useEffect(()=>{f.current=a;},[a]);let y=useCallback(()=>{if(!f.current)return;let I=setTimeout(()=>{f.current&&i(!0);},500);return ()=>clearTimeout(I)},[]),v=useRef(l);useEffect(()=>{v.current=l;},[l]);let C=useCallback(()=>{setTimeout(()=>{v.current||i(!1);},1e3);},[]),h=useCallback(I=>{g.current&&!g.current.contains(I.target)&&i(!1);},[]),x=()=>{if(!g.current||!(r!=null&&r.current))return "translate(-50%, 0px)";let I=r.current.getBoundingClientRect(),w=g.current.getBoundingClientRect();if(!I||!w)return "translate(-50%, 0px)";$v(Number(Uv("--asc-spacing-s1").replace("rem","")));let T=w.right-I.right,L=I.left-w.left;return T>0?`translate(calc(-50% - ${T}px), 0px)`:L>0?`translate(calc(-50% + ${L}px), 0px)`:"translate(-50%, 0px)"},b=I=>{h(I);},M=()=>{s(!1),d(!1),i(!1);};return useEffect(()=>(document.addEventListener("mousedown",b),document.addEventListener("touchstart",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("touchstart",h);}),[]),useEffect(()=>{a?!n&&y():n&&C();},[a,n]),R.createElement("div",{className:Pu.reactionContainer},n&&R.createElement("div",{className:Pu.reactionPickerWrap,style:{transform:x()},ref:g,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1);}},R.createElement(mf,{message:o,onSelectReaction:M})),R.createElement("div",{className:Pu.reactionButton,onMouseEnter:()=>{s(!0);},onMouseLeave:()=>{s(!1);}},R.createElement(Mu,{message:o,onSelectReaction:M,pageId:e,componentId:t})))};var u2={reactionPreviewContainer:"qr",reactionIconContainer:"n",reactionIcon:"eu",reactionCount:"ru",fallbackIcon:"au"};var uf=({message:e,onClick:t})=>{let{config:o}=xi(),r=e.reactions?useMemo(()=>Object.entries(e.reactions).sort((n,i)=>i[1]-n[1]).filter(n=>n[1]>0).slice(0,3).sort((n,i)=>n[1]-i[1]),[e==null?void 0:e.reactions]):[];return e!=null&&e.reactionsCount?R.createElement("div",{className:u2.reactionPreviewContainer,"data-myreaction":(e==null?void 0:e.myReactions)&&!!(e!=null&&e.myReactions.length),onClick:t},R.createElement("div",{className:u2.reactionIconContainer},r.map(n=>{let i=o.find(a=>a.name===n[0]);return R.createElement(R.Fragment,null,i?R.createElement("img",{className:u2.reactionIcon,src:i.image,alt:i.name}):R.createElement(Hm,{className:u2.fallbackIcon,backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-shade3")}))})),R.createElement("div",{className:u2.reactionCount},Dm(e.reactionsCount))):null};var Zn={messageItemContainer:"ou",messageItemContainerInner:"Br",messageBubbleWrap:"tu",messageReaction:"iu",messageDeletedBubble:"su",messageOptionsWrap:"cu",binIcon:"nu",optionIcon:"lu",flagIcon:"du",timestamp:"mu",reactionListSheet:"gu",reactionListContainer:"hu",reactionListBackdrop:"pu"};var j3e=({pageId:e="*",componentId:t="*",elementId:o="*",message:r,avatarUrl:n,userDisplayName:i,containerRef:a,action:s})=>{let l=J(),d=r.creatorId===l.currentUserId,{isModerator:p}=d2(r.channelId),[u,g]=useState(void 0);return R.createElement(R.Fragment,null,R.createElement(GH,{avatarUrl:n,displayName:i},R.createElement("div",{className:Zn.messageItemContainerInner,"data-reactions":!!r.reactionsCount},r.isDeleted?R.createElement("div",{className:Zn.messageDeletedBubble},R.createElement(vu,{className:Zn.binIcon}),R.createElement("div",null,R.createElement(S.Body,null,"This message was deleted"))):R.createElement("div",{className:Zn.messageBubbleWrap},R.createElement(qH,{message:r}),R.createElement("div",{className:Zn.messageReaction},R.createElement(uf,{message:r,onClick:()=>g(r)})),s&&R.createElement(jH,{containerRef:a,isOwner:d,isModerator:p,action:s,isFlagged:r.flagCount>0}),R.createElement(YH,{message:r,containerRef:a,pageId:e,componentId:t}),r.flagCount>0&&R.createElement(xu,{className:Zn.flagIcon}),R.createElement("div",{className:Zn.timestamp},ln(r.createdAt).format("HH:mm A"))))),u&&R.createElement(h1,{isOpen:!0,onClose:()=>g(void 0),className:Zn.reactionListSheet},R.createElement(h1.Container,{className:Zn.reactionListContainer},R.createElement(h1.Header,null),R.createElement(h1.Content,null,R.createElement(Fm,{pageId:e,referenceId:u.messageId,referenceType:"message"}))),R.createElement(h1.Backdrop,{className:Zn.reactionListBackdrop})))},Tu=j3e;var gf=({pageId:e="*",componentId:t="*",message:o,containerRef:r,action:n})=>{let i="sender_message_bubble",a=oe(o.creatorId),s=se({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement(Tu,{message:o,userDisplayName:a==null?void 0:a.displayName,avatarUrl:s,containerRef:r,action:n,pageId:e,componentId:t,elementId:i})};var ff=({pageId:e="*",componentId:t="*",message:o,containerRef:r,action:n})=>{let i="receiver_message_bubble",{user:a}=pr(o.creatorId),s=rt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement(Tu,{pageId:e,componentId:t,elementId:i,message:o,userDisplayName:a==null?void 0:a.displayName,avatarUrl:s,containerRef:r,action:n})};var yf=(r,n)=>_(void 0,[r,n],function*(e,{onSuccess:t,onError:o}){try{yield MessageRepository.deleteMessage(e),t&&t();}catch(i){o&&o(i);}});var hf=(e,t,o)=>_(void 0,null,function*(){try{yield MessageRepository.flagMessage(e),t&&t();}catch(r){o&&o(r);}});var RH=(e,t,o)=>_(void 0,null,function*(){try{yield MessageRepository.unflagMessage(e),t&&t();}catch(r){o&&o(r);}});var Cf={icon:"fu"};var xf=createContext({liveChatNotifications:[],liveChatNotificationFunction:{success:()=>{},error:()=>{},show:()=>{}}}),Y3e=3e3,tF=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||Y3e);};return R.createElement(xf.Provider,{value:{liveChatNotifications:t,liveChatNotificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(g0,{className:Cf.icon})})),error:i=>n(N(c({},i),{icon:R.createElement(X1,{className:Cf.icon})})),show:i=>n(i)}}},e)},oF=()=>{let{liveChatNotifications:e}=useContext(xf);return e},g2=()=>{let{liveChatNotificationFunction:e}=useContext(xf);return e};var rF=()=>{let e=g2(),{formatMessage:t}=useIntl();return r=>_(void 0,null,function*(){yield navigator.clipboard.writeText(r),e.success({content:t({id:"livechat.notification.copy.message"})});})};var G1={infiniteScrollContainer:"uu",loadingIndicatorWrap:"bu",loadingIndicator:"vu",infiniteScrollInner:"xu",customStatusContainer:"wu",iconContainer:"yu"};var ku=({pageId:e="*",channel:t,replyMessage:o})=>{let r="message_list",n=J(),i=useRef(null),[a,s]=useState(void 0),{confirm:l}=Ye(),d=g2(),p=rF(),{themeStyles:u}=te({pageId:e,componentId:r}),{messages:g,hasMore:f,loadMore:y,isLoading:v,error:C}=_d({subChannelId:t.channelId,sortBy:"segmentDesc",limit:10,includeDeleted:!0}),h=g,x=b=>{l({title:"Delete this message?",content:"This message will also be removed from your friend\u2019s devices.",cancelText:"Cancel",okText:"Delete",onOk:()=>yf(b,{onError:()=>d.error({content:"Unable to delete message. Please try again."})})});};return useEffect(()=>{let b=()=>{i.current&&s(i.current.clientHeight);},M=new ResizeObserver(b);return i.current&&M.observe(i.current),()=>{i.current&&M.unobserve(i.current);}},[]),C?R.createElement("div",{className:G1.customStatusContainer,ref:i,style:u},R.createElement("div",{className:G1.iconContainer},R.createElement(a5,null)),R.createElement(S.Caption,null,"Couldn't load chat")):R.createElement("div",{className:G1.infiniteScrollContainer,ref:i,style:u},i.current&&R.createElement(ZY,{className:G1.infiniteScrollInner,scrollableTarget:i.current,scrollThreshold:.7,hasMore:f,next:y,loader:v?R.createElement("div",{className:G1.loadingIndicatorWrap},R.createElement(BH,{className:G1.loadingIndicator})):null,inverse:!0,dataLength:h.length,height:i.current.clientHeight},h.map((b,M)=>b.creatorId===n.currentUserId?R.createElement(gf,{message:b,action:t.isMuted?void 0:{onReply:()=>o(b),onDelete:()=>x(b.messageId),onCopy:()=>{var I,w;return ((I=b.data)==null?void 0:I.text)&&p((w=b.data)==null?void 0:w.text)}},key:b.messageId,containerRef:i,pageId:e,componentId:r}):R.createElement(ff,{message:b,action:{onReply:()=>o(b),onDelete:()=>x(b.messageId),onCopy:()=>{var I,w;return ((I=b.data)==null?void 0:I.text)&&p((w=b.data)==null?void 0:w.text)},onFlag:()=>hf(b.messageId,()=>d.success({content:"Message reported"}),()=>d.error({content:"This message failed to be reported. Please try again."})),onUnflag:()=>RH(b.messageId,()=>d.success({content:"Message unreported"}),()=>d.error({content:"This message failed to be unreported. Please try again."}))},key:b.messageId,containerRef:i,pageId:e,componentId:r}))))};var i5e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},e),R.createElement("path",{d:"M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"})),iF=i5e;var bf={homeIndicatorContainer:"ku",homeIndicator:"ju"};var Su=()=>R.createElement("div",{className:bf.homeIndicatorContainer},R.createElement("div",{className:bf.homeIndicator}));var hn={sendButton:"zu",reactionButton:"Xu",sendButtonContainer:"Yu",composeBarContainer:"Au",optionContainer:"Vu",composeBar:"qu",composeBarLoading:"Bu",mentionText:"Cu",editorPlaceholder:"Du",editorContainer:"Cr",editorRoot:"Eu",editorParagraph:"Fu",editorContainer__mentionTextInput_item:"Dr",editorLink:"Er",userMentionItem__item:"A",allMentionItem__item:"V",userMentionItem__avatar:"Gu",allMentionItem__atSign:"Hu",userMentionItem__displayName:"Iu",allMentionItem__displayName:"Ju"};var Nu=({channelId:e,memberships:t,search:o,limit:r=20,shouldCall:n=!0})=>{let s=dt({fetcher:ChannelRepository.Membership.searchMembers,params:{channelId:e,search:o||"",memberships:t,limit:r,includeDeleted:!1},shouldCall:!!e&&n}),{items:i}=s,a=P(s,["items"]);return c({channelMembers:i},a)};var f5e=e=>{var o,r;let t=(()=>{switch(screen.orientation.type){case"landscape-primary":case"landscape-secondary":return .5;case"portrait-secondary":case"portrait-primary":return .75;default:return .5}})();return e.visualViewport?((o=e.visualViewport)==null?void 0:o.height)*((r=e.visualViewport)==null?void 0:r.scale)/e.screen.height<t:!1},sF=({commandPriority:e,onEnter:t})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.registerCommand(KEY_ENTER_COMMAND,r=>{let n=$getSelection();if(!$isRangeSelection(n)||f5e(window))return !1;let i=r;return i.preventDefault(),i.shiftKey?o.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0):(t(),!0)},e);},[o,t]),null};function lF({option:e,isSelected:t,onClick:o,onMouseEnter:r}){return R.createElement("li",{key:e.key,tabIndex:-1,"data-is-selected":t,className:Da.allMentionItem__item,ref:e.setRefElement,role:"option","aria-selected":t,onMouseEnter:r,onClick:o},R.createElement("div",{className:Da.allMentionItem__atSign},"@"),R.createElement("p",{className:Da.allMentionItem__displayName},e.data.displayName))}var L5e=200,A5e=e=>{let[t,o]=useState(null),{isModerator:r}=d2(e||void 0),{channelMembers:n}=Nu({search:t,channelId:e,memberships:["member"],limit:20}),i=s=>{o(s);};return {suggestions:useMemo(()=>{let s=n.map(({user:l,userId:d})=>({userId:(l==null?void 0:l.userId)||d,displayName:l==null?void 0:l.displayName}));return r&&(t===""||/^al*l*$/i.test(t||""))?[{userId:"all",displayName:"All"},...s]:s},[r,n]),queryString:t,onQueryChange:i}},D5e=[AutoLinkNode,LinkNode,Vi],Eu=({pageId:e="*",channel:t,composeAction:{replyMessage:o,mentionMessage:r,clearReplyMessage:n,clearMention:i}})=>{var M;let a="message_composer",s=useRef(null),l=useRef(null),{themeStyles:d,uiReference:p,config:u,accessibilityId:g}=te({pageId:e,componentId:a}),{confirm:f}=Ye(),y=g2(),{onQueryChange:v,suggestions:C}=A5e(t.channelId),{mutateAsync:h}=useMutation({mutationFn:I=>MessageRepository.createMessage(I),onSuccess:()=>{var I;(I=l.current)==null||I.update(()=>{$getRoot().clear();}),n&&n();},onError:I=>{let w=I.message,k="Your message wasn't sent. Please try again.";w==="Amity SDK (400308): Text contain blocked word"?k="Your message wasn't sent as it contains a blocked word.":w==="Amity SDK (400309): Data contain link that is not in whitelist"?k="Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.":w==="Amity SDK (400302): User is muted"&&(k="User is muted"),y.error({content:k});}}),x=()=>{if(!t||!l.current)return;let{mentioned:I,mentionees:w,text:k}=il(l.current);if((k==null?void 0:k.trim().length)!==0){if(k.trim().length>(typeof(u==null?void 0:u.message_limit)=="number"?u==null?void 0:u.message_limit:L5e)){f({title:"Unable to send message",content:"Your message is too long. Please shorten your message and try again.",okText:"Ok"});return}h({tags:[],subChannelId:t.channelId,data:{text:k.trim()},dataType:"text",mentionees:w,metadata:{mentioned:I},parentId:(o==null?void 0:o.messageId)||void 0});}},b=al({namespace:p,theme:{root:hn.editorRoot,placeholder:hn.editorPlaceholder,paragraph:hn.editorParagraph,link:hn.editorLink},nodes:D5e});return R.createElement("div",{className:hn.composeBarContainer,"data-qa-anchor":g,style:d},R.createElement("div",{className:hn.composeBar},R.createElement("div",{ref:s,className:hn.optionContainer}),R.createElement("div",{className:hn.editorContainer},R.createElement(LexicalComposer,{initialConfig:b},R.createElement(RichTextPlugin,{contentEditable:R.createElement(ContentEditable,null),placeholder:(M=R.createElement("span",{className:hn.editorPlaceholder},u.placeholder_text))!=null?M:null,ErrorBoundary:S5e}),R.createElement(HistoryPlugin,null),R.createElement(AutoFocusPlugin,null),R.createElement(ll,null),R.createElement(sl,null),R.createElement(EditorRefPlugin,{editorRef:l}),R.createElement(sF,{onEnter:x,commandPriority:COMMAND_PRIORITY_LOW}),R.createElement(ml,{suggestions:C,getSuggestionId:I=>I.userId,onQueryChange:v,$createNode:I=>Aa({text:`@${I.displayName||""}`,data:I}),menuRenderFn:(I,{options:w,selectedIndex:k,setHighlightedIndex:T,selectOptionAndCleanUp:L})=>!s.current||w.length===0?null:ex.createPortal(R.createElement(R.Fragment,null,w.map((D,U)=>D.data.userId==="all"?R.createElement(lF,{isSelected:k===U,onClick:()=>{T(U),L(D);},onMouseEnter:()=>{T(U);},key:D.key,option:D}):R.createElement(Ha,{isSelected:k===U,onClick:()=>{T(U),L(D);},onMouseEnter:()=>{T(U);},key:D.key,option:D}))),s.current),commandPriority:COMMAND_PRIORITY_HIGH}))),R.createElement("div",{className:hn.sendButtonContainer},R.createElement(iF,{className:hn.sendButton,onClick:()=>x()}))),R.createElement(Su,null))};var cF=({channelId:e})=>{let r=Pn({fetcher:ChannelRepository.getChannel,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({channel:t},o)};var yt={composeBarContainer:"Ku",composeBar:"Lu",textInputContainer:"Mu",composeBarLoading:"Nu",replyPlaceholderContainer:"Ou",replyAvatar:"Pu",replyProfile:"Qu",replyProfileName:"Ru",replyProfileMessage:"Su",replyDismiss:"Tu",notificationPosition:"Uu",messageListPlaceholder:"Wu",mutedChannelContainer:"Zu",mutedIcon:"_u",commentAltIcon:"eb",banStatePanel:"rb"};var O5e=({children:e})=>R.createElement(R.Fragment,null,R.createElement("div",{className:yt.messageListPlaceholder},e),R.createElement("div",{className:yt.composeBarContainer},R.createElement("div",{className:yt.composeBar},R.createElement("div",{className:yt.textInputContainer},R.createElement("div",{className:yt.composeBarLoading},R.createElement(Y5,{width:20,height:20}),R.createElement("span",null,R.createElement(S.Body,null,"Loading chat..."))))),R.createElement(Su,null))),Bu=O5e;var dF=({replyMessage:e,onDismiss:t})=>{var r,n;let o=oe(e.creatorId);return o?R.createElement("div",{className:yt.replyPlaceholderContainer},R.createElement("div",{className:yt.replyAvatar},R.createElement(vt,{avatarUrl:(r=o.avatar)==null?void 0:r.fileUrl,defaultImage:R.createElement(cs,null)})),R.createElement("div",{className:yt.replyProfile},R.createElement("div",{className:yt.replyProfileName},`Replying to ${o.displayName}`),R.createElement("div",{className:yt.replyProfileMessage},(n=e.data)==null?void 0:n.text)),R.createElement("div",{className:yt.replyDismiss},R.createElement(Y1,{onClick:t,width:"20",height:"20"}))):null};var U5e=({children:e})=>R.createElement("div",{className:yt.messageListPlaceholder},e),pF=U5e;var wf={notifications:"ab",notificationContainer:"ob",appear:"Fr"};var uF=({className:e,content:t,icon:o})=>R.createElement("div",{className:sr(wf.notificationContainer,e)},o,R.createElement(S.Body,null,t)),Mf=()=>{let e=oF();return R.createElement("div",{className:wf.notifications},e.map(t=>R.createElement(uF,N(c({},t),{key:t.id}))))};var j5e=e=>R.createElement("svg",c({width:"23",height:"21",viewBox:"0 0 23 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M21.7988 17.7605C22.0449 17.9363 22.1152 18.2878 21.9043 18.5339L21.5527 18.9558C21.3418 19.2019 20.9902 19.2722 20.7793 19.0613L-0.244141 2.60815C-0.490234 2.43237 -0.560547 2.08081 -0.349609 1.83472L0.00195312 1.37769C0.212891 1.16675 0.564453 1.09644 0.810547 1.30737L21.7988 17.7605ZM12.5527 7.49487C13.3262 7.91675 13.8887 8.69019 14.0645 9.53394L11.5684 7.60034C11.8496 7.35425 12.2363 7.31909 12.5527 7.49487ZM13.6074 6.15894C13.2207 5.91284 13.1152 5.3855 13.3613 4.99878C13.6074 4.61206 14.1348 4.47144 14.5215 4.71753C16.3848 5.91284 17.5449 7.9519 17.5449 10.1667C17.5449 10.8347 17.4395 11.4324 17.2637 12.03L15.7871 10.8699C15.8223 10.6589 15.8574 10.4128 15.8574 10.1667C15.8574 8.54956 15.0137 7.03784 13.6074 6.15894ZM15.4707 3.31128C15.084 3.06519 14.9785 2.53784 15.2246 2.11597C15.5059 1.72925 16.0332 1.62378 16.4199 1.86987C19.2324 3.73315 20.9199 6.8269 20.9199 10.1667C20.9199 11.6082 20.6035 12.9441 20.041 14.2097L18.6699 13.1199C19.0215 12.2058 19.1973 11.2214 19.1973 10.1667C19.1973 7.42456 17.8262 4.823 15.4707 3.31128ZM9.66992 4.29565V6.08862L7.49023 4.40112L8.22852 3.698C8.36914 3.52222 8.58008 3.41675 8.79102 3.41675C9.24805 3.41675 9.66992 3.76831 9.66992 4.29565ZM7.98242 14.0691V11.1863L9.66992 12.5222V16.073C9.66992 16.6003 9.24805 16.9167 8.79102 16.9167C8.58008 16.9167 8.36914 16.8464 8.22852 16.6707L5.09961 13.5417H1.51367C1.02148 13.5417 0.669922 13.1902 0.669922 12.698V7.6355C0.669922 7.17847 1.02148 6.79175 1.51367 6.79175H2.35742L4.50195 8.47925H2.35742V11.8542H5.76758L7.98242 14.0691Z"})),Pf=j5e;var fF={inputTextContainer:"tb",invalid:"ib",disabled:"sb",baseInputStyle:"cb",mentionContainer:"nb","live-chat-mention-input":"Gr","live-chat-mention-input__suggestions__list":"lb",mentions_mention:"db",mentions__highlighter:"mb"};var Z5e=e=>R.createElement("svg",c({width:"49",height:"49",viewBox:"0 0 49 49",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M37.96 7C40.4209 7 42.46 9.03906 42.46 11.5V31.75C42.46 34.2812 40.4209 36.25 37.96 36.25H27.835L19.0459 42.8594C18.835 43 18.6943 43 18.5537 43C18.0615 43 17.71 42.7188 17.71 42.1562V36.25H10.96C8.42871 36.25 6.45996 34.2812 6.45996 31.75V11.5C6.45996 9.03906 8.42871 7 10.96 7H37.96ZM40.21 31.75V11.5C40.21 10.3047 39.1553 9.25 37.96 9.25H10.96C9.69434 9.25 8.70996 10.3047 8.70996 11.5V31.75C8.70996 33.0156 9.69434 34 10.96 34H19.96V39.3438L26.4287 34.4922L27.0615 34H37.96C39.1553 34 40.21 33.0156 40.21 31.75ZM24.46 25.5625C25.374 25.5625 26.1475 26.3359 26.1475 27.25C26.1475 28.2344 25.374 28.9375 24.46 28.9375C23.4756 28.9375 22.7725 28.2344 22.7725 27.25C22.7725 26.3359 23.4756 25.5625 24.46 25.5625ZM23.8271 23.875C23.5459 23.875 23.2646 23.6641 23.2646 23.3828L22.7725 15.5078C22.7725 15.1562 22.9834 14.875 23.335 14.875H25.5146C25.8662 14.875 26.0771 15.1562 26.0771 15.5078L25.585 23.3828C25.585 23.6641 25.3037 23.875 25.0225 23.875H23.8271Z"})),hF=Z5e;var W5e=({pageId:e="*",channel:t})=>{var v;let o=hu(),{isModerator:r}=d2(t.channelId),n=J().currentUserId,{channelMembers:i}=Nu({channelId:t.channelId,memberships:["member","banned","muted"]}),a=i.find(C=>C.userId===n),[s,l]=useState(void 0),[d,p]=useState(void 0),[u,g]=useState(0),f=useRef(null),y=useRef(null);return useEffect(()=>{var C,h;(C=y.current)!=null&&C.clientHeight&&((h=y.current)==null?void 0:h.clientHeight)>0&&g(y.current.clientHeight-30);},[(v=y.current)==null?void 0:v.clientHeight]),o?a!=null&&a.isBanned?R.createElement(pF,null,R.createElement("div",{className:yt.banStatePanel},R.createElement(hF,{className:yt.commentAltIcon}),R.createElement(S.Heading,null,"You are banned from chat"),R.createElement(S.Body,null,"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned."))):R.createElement(R.Fragment,null,R.createElement(ku,{channel:t,replyMessage:l,pageId:e}),o&&R.createElement(R.Fragment,null,R.createElement("div",{ref:f,className:fF.mentionContainer}),!r&&t.isMuted?R.createElement("div",{className:yt.mutedChannelContainer},R.createElement(Pf,{width:20,height:20,className:yt.mutedIcon}),R.createElement(S.Body,null,"This channel has been set to read-only by the channel moderator")):a!=null&&a.isMuted?R.createElement("div",{className:yt.mutedChannelContainer},R.createElement(Pf,{width:20,height:20,className:yt.mutedIcon}),R.createElement(S.Body,null,"You\u2019ve been muted by the channel moderator")):null,s&&R.createElement(dF,{replyMessage:s,onDismiss:()=>l(void 0)}),R.createElement("div",{className:yt.notificationPosition,style:{bottom:u}},R.createElement(Mf,null)),R.createElement("div",{ref:y},R.createElement(Eu,{pageId:e,disabled:!r&&t.isMuted||(a==null?void 0:a.isMuted),channel:t,suggestionRef:f,composeAction:{replyMessage:s,mentionMessage:d,clearReplyMessage:()=>l(void 0),clearMention:()=>p(void 0)}})))):R.createElement(Bu,null)},vF=W5e;var q5e=({pageId:e="*",channel:t})=>t?R.createElement(vF,{channel:t,pageId:e}):R.createElement(Bu,null),bF=q5e;var Tf={messageListHeaderWrap:"gb",liveChat:"hb"};var IF=({channelId:e})=>{let{channel:t}=cF({channelId:e}),o="live_chat",{themeStyles:r}=Xe({pageId:o}),n=useRef(null);return R.createElement(tF,null,R.createElement("div",{className:Tf.liveChat,ref:n,style:r},R.createElement("div",{className:Tf.messageListHeaderWrap},R.createElement(Cu,{channel:t,pageId:o})),R.createElement(bF,{channel:t,pageId:o})))};var Ie={storyPreview_title:"pb",contentWrapper:"fb",storyPreviewWrapper:"ub",storyPreview_description:"bb",storyPreviewContainer:"vb",headerContainer:"xb",progressBar:"Hr",progressFill:"wb",userInfo:"yb",storyPreviewTitle:"Ir",nameContainer:"kb",hyperLinkContainer:"jb",mediaContainer:"Jr",media:"zb",avatarContainer:"Kr",imageFit:"Xb",imageCover:"Yb",headerContent:"Ab",userInfoContent:"Vb",shadowOverlay:"qb",pulse:"Lr",skeleton:"l",textSkeleton:"Bb",nameSkeleton:"Cb",timeSkeleton:"Db"};var Y5e=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),R.createElement("path",{d:"M19.8462 12C20.7625 12 21.6413 12.356 22.2893 12.9898C22.9373 13.6235 23.3013 14.4831 23.3013 15.3793C23.3013 16.2756 22.9373 17.1351 22.2893 17.7688C21.6413 18.4026 20.7625 18.7586 19.8462 18.7586C18.9298 18.7586 18.051 18.4026 17.403 17.7688C16.755 17.1351 16.391 16.2756 16.391 15.3793C16.391 14.4831 16.755 13.6235 17.403 12.9898C18.051 12.356 18.9298 12 19.8462 12ZM12.9359 14.4138C13.4887 14.4138 14.0021 14.5586 14.4463 14.8193C14.2982 16.2 14.7128 17.571 15.5618 18.6428C15.0682 19.5697 14.081 20.2069 12.9359 20.2069C12.1504 20.2069 11.3972 19.9017 10.8418 19.3585C10.2864 18.8153 9.97436 18.0786 9.97436 17.3103C9.97436 16.5421 10.2864 15.8054 10.8418 15.2622C11.3972 14.719 12.1504 14.4138 12.9359 14.4138ZM26.7564 14.4138C27.5419 14.4138 28.2951 14.719 28.8505 15.2622C29.4059 15.8054 29.7179 16.5421 29.7179 17.3103C29.7179 18.0786 29.4059 18.8153 28.8505 19.3585C28.2951 19.9017 27.5419 20.2069 26.7564 20.2069C25.6113 20.2069 24.6241 19.5697 24.1305 18.6428C24.9795 17.571 25.3941 16.2 25.246 14.8193C25.6903 14.5586 26.2036 14.4138 26.7564 14.4138ZM13.4295 24.3103C13.4295 22.3117 16.3022 20.6897 19.8462 20.6897C23.3901 20.6897 26.2628 22.3117 26.2628 24.3103V26H13.4295V24.3103ZM8 26V24.5517C8 23.2097 9.86577 22.08 12.3929 21.7517C11.8105 22.4083 11.4551 23.3159 11.4551 24.3103V26H8ZM31.6923 26H28.2372V24.3103C28.2372 23.3159 27.8818 22.4083 27.2994 21.7517C29.8265 22.08 31.6923 23.2097 31.6923 24.5517V26Z",fill:"white"})),Au=Y5e;var wF=({width:e="100%",height:t="100%"})=>R.createElement("div",{className:Ie.storyPreviewWrapper,style:{width:e,height:t}},R.createElement("div",{className:Ie.storyPreviewContainer},R.createElement("div",{className:Ie.shadowOverlay}),R.createElement("div",{className:Ie.headerContainer},R.createElement("div",{className:Ie.headerContent},R.createElement("div",{className:Ie.userInfo},R.createElement("div",{className:Ie.userInfoContent},R.createElement("div",{className:sr(Ie.avatarContainer,Ie.skeleton)}),R.createElement("div",{className:Ie.textSkeleton},R.createElement("div",{className:sr(Ie.nameSkeleton,Ie.skeleton)}),R.createElement("div",{className:sr(Ie.timeSkeleton,Ie.skeleton)})))))),R.createElement("div",{className:Ie.contentWrapper},R.createElement("div",{className:sr(Ie.mediaContainer,Ie.skeleton)}))));var _F=({mediaType:e,hyperLink:t,width:o="100%",height:r="100%",onPlay:n,onPause:i,avatar:a,title:s,duration:l=5e3,isOfficial:d=!0,imageMode:p})=>{var E,V,G,q;let[u,g]=useState(!0),[f,y]=useState(0),[v,C]=useState([]),h=useRef(null),x=useRef(null),[b,M]=useState(!0),[I,w]=useState(!1),k,T=()=>{g(!0),n&&n();},L=()=>{g(!1),i&&i();},D=()=>{(e==null?void 0:e.type)==="video"&&h.current?(h.current.currentTime=0,h.current.play()):(e==null?void 0:e.type)==="image"&&g(!1);},U=()=>{(e==null?void 0:e.type)==="video"&&h.current&&(h.current.currentTime=0,h.current.play(),y(0));},j=()=>{u?(L(),(e==null?void 0:e.type)==="video"&&h.current&&h.current.pause()):(T(),(e==null?void 0:e.type)==="video"&&h.current&&h.current.play());};return useEffect(()=>{let O=H=>_(void 0,null,function*(){let z=new Image;z.crossOrigin="Anonymous",z.src=H,z.onload=()=>{let Q=new Mce().getPalette(z,2);if(Q){let B=Q.map($=>`rgb(${$[0]}, ${$[1]}, ${$[2]})`);C(B),M(!1);}},z.onerror=()=>{console.error("Error loading image for color extraction"),C([]),M(!1);};});return e!=null&&e.url&&(e==null?void 0:e.type)==="image"?O(e.url):(C([]),M(!1)),()=>{C([]),M(!0);}},[e==null?void 0:e.url]),useEffect(()=>(u?k=setInterval(()=>{if((e==null?void 0:e.type)==="video"&&h.current){let O=h.current.currentTime,H=h.current.duration,z=O/H*100;y(z),z>=100&&(clearInterval(k),D());}else (e==null?void 0:e.type)==="image"&&I&&y(O=>O>=100?(clearInterval(k),D(),100):O+100/(l/100));},100):clearInterval(k),()=>{clearInterval(k);}),[u,e,l,I]),b?R.createElement(wF,null):R.createElement("div",{className:Ie.storyPreviewWrapper,style:{width:o,height:r}},R.createElement("div",{className:Ie.storyPreviewContainer},R.createElement("div",{className:Ie.headerContainer},R.createElement("div",{className:Ie.progressBar},R.createElement("div",{className:Ie.progressFill,style:{width:`${f}%`}})),R.createElement("div",{className:Ie.headerContent},R.createElement("div",{className:Ie.userInfo},R.createElement("div",{className:Ie.userInfoContent},R.createElement("div",{className:Ie.avatarContainer},R.createElement(vt,{avatarUrl:a,defaultImage:R.createElement(Au,null)})),R.createElement(S.BodyBold,{className:Ie.storyPreviewTitle},R.createElement("span",{className:Ie.nameContainer},s," ",d&&R.createElement(d1,{fill:"white"})))),(e==null?void 0:e.type)==="video"&&R.createElement("div",{onClick:j},u?R.createElement(As,{width:24,height:24}):R.createElement(wo,{width:24,height:24}))))),R.createElement("div",{className:Ie.contentWrapper},R.createElement("div",{className:Ie.mediaContainer,style:{background:`linear-gradient(
|
|
5316
|
+
`,Xpe=e=>{let t=v4$1();return R.createElement(Jpe,c({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52453 4C9.52453 4.31559 9.26869 4.57143 8.9531 4.57143C8.63751 4.57143 8.38167 4.31559 8.38167 4V0.571429C8.38167 0.255837 8.63751 0 8.9531 0C9.26869 0 9.52453 0.255837 9.52453 0.571428V4ZM7.23891 5.03082C7.51222 4.87303 7.60586 4.52355 7.44807 4.25024L5.73378 1.28101C5.57599 1.0077 5.22651 0.914056 4.9532 1.07185C4.67989 1.22965 4.58624 1.57913 4.74404 1.85244L6.45832 4.82167C6.61612 5.09498 6.9656 5.18862 7.23891 5.03082ZM5.77458 5.50525C6.04789 5.66304 6.14153 6.01252 5.98374 6.28583C5.82594 6.55914 5.47646 6.65278 5.20315 6.49499L2.23392 4.7807C1.96061 4.62291 1.86697 4.27343 2.02476 4.00012C2.18256 3.72681 2.53204 3.63316 2.80535 3.79096L5.77458 5.50525ZM5.52455 8.00013C5.52455 7.68454 5.26872 7.4287 4.95312 7.4287H1.52455C1.20896 7.4287 0.953125 7.68454 0.953125 8.00013C0.953125 8.31572 1.20896 8.57156 1.52455 8.57156H4.95313C5.26872 8.57156 5.52455 8.31572 5.52455 8.00013ZM5.20327 9.50543C5.47658 9.34764 5.82606 9.44128 5.98385 9.71459C6.14165 9.9879 6.048 10.3374 5.77469 10.4952L2.80546 12.2095C2.53215 12.3673 2.18267 12.2736 2.02488 12.0003C1.86708 11.727 1.96073 11.3775 2.23404 11.2197L5.20327 9.50543ZM7.23874 10.9693C6.96543 10.8115 6.61595 10.9051 6.45815 11.1784L4.74387 14.1476C4.58607 14.4209 4.67971 14.7704 4.95302 14.9282C5.22633 15.086 5.57581 14.9924 5.73361 14.7191L7.44789 11.7498C7.60569 11.4765 7.51205 11.127 7.23874 10.9693ZM8.95292 11.4287C8.63732 11.4287 8.38149 11.6845 8.38149 12.0001V15.4287C8.38149 15.7443 8.63732 16.0001 8.95292 16.0001C9.26851 16.0001 9.52435 15.7443 9.52435 15.4287V12.0001C9.52435 11.6845 9.26851 11.4287 8.95292 11.4287ZM10.6674 5.03064C10.9407 5.18843 11.2901 5.09479 11.4479 4.82148L13.1622 1.85225C13.32 1.57894 13.2264 1.22946 12.9531 1.07166C12.6798 0.913868 12.3303 1.00751 12.1725 1.28082L10.4582 4.25005C10.3004 4.52336 10.394 4.87284 10.6674 5.03064ZM12.7028 6.4947C12.4295 6.65249 12.08 6.55885 11.9222 6.28554C11.7644 6.01223 11.8581 5.66275 12.1314 5.50496L15.1006 3.79067C15.3739 3.63287 15.7234 3.72652 15.8812 3.99983C16.039 4.27314 15.9453 4.62262 15.672 4.78041L12.7028 6.4947ZM12.3816 8C12.3816 8.31559 12.6374 8.57143 12.953 8.57143H16.3816C16.6972 8.57143 16.953 8.31559 16.953 8C16.953 7.68441 16.6972 7.42857 16.3816 7.42857H12.953C12.6374 7.42857 12.3816 7.68441 12.3816 8ZM12.1315 10.4946C11.8582 10.3368 11.7646 9.98737 11.9224 9.71406C12.0801 9.44075 12.4296 9.3471 12.7029 9.5049L15.6722 11.2192C15.9455 11.377 16.0391 11.7265 15.8813 11.9998C15.7235 12.2731 15.3741 12.3667 15.1007 12.2089L12.1315 10.4946ZM10.6673 10.9693C10.3939 11.1271 10.3003 11.4766 10.4581 11.7499L12.1724 14.7191C12.3302 14.9924 12.6797 15.0861 12.953 14.9283C13.2263 14.7705 13.3199 14.421 13.1621 14.1477L11.4478 11.1785C11.29 10.9052 10.9406 10.8115 10.6673 10.9693Z",fill:`url(#paint_${t})`}),R.createElement("defs",null,R.createElement("radialGradient",{id:`paint_${t}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.95312 8) scale(8)"},R.createElement("stop",{offset:"0.669733",stopColor:"white"}),R.createElement("stop",{offset:"0.716307",stopColor:"white",stopOpacity:"0.01"}))))},TH=Xpe;var SH={DIRECT_CHAT:2,ONLY_ME_CHAT:1};function o3e(e,t){var i,a,s;if((i=e==null?void 0:e.metadata)!=null&&i.isDirectChat&&(e==null?void 0:e.memberCount)===SH.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 o9(o){return _(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 r3e(e,t,o){return _(this,null,function*(){var r,n;return (e==null?void 0:e.memberCount)===SH.ONLY_ME_CHAT?o9({avatarCustomUrl:o==null?void 0:o.avatarUrl}):(r=e==null?void 0:e.metadata)!=null&&r.isDirectChat&&(t!=null&&t.avatarUrl)?o9({avatarCustomUrl:t.avatarUrl}):o9({avatarFileId:e==null?void 0:e.avatarFileId,avatarCustomUrl:(n=e==null?void 0:e.metadata)==null?void 0:n.avatarCustomUrl})})}function n3e({channel:e}){var p,u,g;let{currentUserId:t}=ol(),[o,r]=useState(null),n=(p=e==null?void 0:e.metadata)!=null&&p.isDirectChat?((g=(u=e==null?void 0:e.metadata)==null?void 0:u.userIds)!=null?g:[]).find(f=>f!==t):null,i=oe(t),a=oe(n),s=se({fileId:i==null?void 0:i.avatarFileId}),l=se({fileId:a==null?void 0:a.avatarFileId});return useEffect(()=>{function f(){return _(this,null,function*(){r(null);let y=yield r3e(e,{avatarUrl:(a==null?void 0:a.avatarCustomUrl)||l},{avatarUrl:(i==null?void 0:i.avatarCustomUrl)||s});r(y);})}f();},[a==null?void 0:a.avatarCustomUrl,e,s,i==null?void 0:i.avatarCustomUrl]),{chatName:useMemo(()=>e==null?void 0:o3e(e,a),[e,a]),chatAvatar:o,type:e==null?void 0:e.type}}var NH=n3e;var c2={messageListHeader:"bf",displayName:"uf",memberCount:"vf",memberIcon:"xf",avatar:"wf"};var Cu=({channel:e,pageId:t="*"})=>{let o="chat_header",{themeStyles:r}=te({pageId:t,componentId:o}),{chatName:n,chatAvatar:i}=NH({channel:e}),a=hu();return R.createElement("div",{className:c2.messageListHeader,style:r},R.createElement("div",{className:c2.avatar},R.createElement(vt,{avatarUrl:i,defaultImage:R.createElement(MH,null)})),R.createElement("div",null,R.createElement("div",{className:c2.displayName},R.createElement(S.Title,null,n||"Loading...")),R.createElement("div",{className:c2.memberCount},a?R.createElement(R.Fragment,null,R.createElement(_H,{className:c2.memberIcon}),R.createElement(S.Caption,null,ob((e==null?void 0:e.memberCount)||0)," ",`${(e==null?void 0:e.memberCount)||0} ${(e==null?void 0:e.memberCount)===1?"member":"members"}`)):R.createElement(R.Fragment,null,R.createElement(TH,{width:20,height:20}),R.createElement(S.Caption,null,"Waiting for connection...")))))};var EH={spinner:"yf",rotate:"Yr"};var BH=o=>{var r=o,{className:e}=r,t=P(r,["className"]);return R.createElement("svg",c({width:"25",height:"25",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading...",viewBox:"0 0 100 100",version:"1.1",className:sr(EH.spinner,e)},t),R.createElement("defs",{id:"defs3821"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0",rx:"3",ry:"3",transform:"rotate(-90 50 50)",width:"25",x:"72",y:"47",id:"rect3793"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.08333333333333333",rx:"3",ry:"3",transform:"rotate(-60 50 50)",width:"25",x:"72",y:"47",id:"rect3795"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.16666666666666666",rx:"3",ry:"3",transform:"rotate(-30 50 50)",width:"25",x:"72",y:"47",id:"rect3797"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.25",rx:"3",ry:"3",transform:"rotate(0 50 50)",width:"25",x:"72",y:"47",id:"rect3799"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.3333333333333333",rx:"3",ry:"3",transform:"rotate(30 50 50)",width:"25",x:"72",y:"47",id:"rect3801"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.4166666666666667",rx:"3",ry:"3",transform:"rotate(60 50 50)",width:"25",x:"72",y:"47",id:"rect3803"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.5",rx:"3",ry:"3",transform:"rotate(90 50 50)",width:"25",x:"72",y:"47",id:"rect3805"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.5833333333333334",rx:"3",ry:"3",transform:"rotate(120 50 50)",width:"25",x:"72",y:"47",id:"rect3807"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.6666666666666666",rx:"3",ry:"3",transform:"rotate(150 50 50)",width:"25",x:"72",y:"47",id:"rect3809"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.75",rx:"3",ry:"3",transform:"rotate(180 50 50)",width:"25",x:"72",y:"47",id:"rect3811"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.8333333333333334",rx:"3",ry:"3",transform:"rotate(210 50 50)",width:"25",x:"72",y:"47",id:"rect3813"}),R.createElement("rect",{fill:"#555555",height:"6",opacity:"0.9166666666666666",rx:"3",ry:"3",transform:"rotate(240 50 50)",width:"25",x:"72",y:"47",id:"rect3815"}))};var or={optionButton:"kf",optionIcon:"jf",reactionIcon:"zf",timestamp:"Xf",messageActionButton:"Yf",messageActionButtonText:"Cf",messageDangerActionButtonText:"Af",copyIcon:"Mf",replyIcon:"Sf",binIcon:"Ef",mentionIcon:"Ff",flagIcon:"If"};var c3e=t=>{var e=P(t,[]);return R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21"},e),R.createElement("path",{d:"M10 8.78369C10.8125 8.78369 11.5 9.47119 11.5 10.2837C11.5 11.1274 10.8125 11.7837 10 11.7837C9.15625 11.7837 8.5 11.1274 8.5 10.2837C8.5 9.47119 9.15625 8.78369 10 8.78369ZM8.5 5.53369C8.5 4.72119 9.15625 4.03369 10 4.03369C10.8125 4.03369 11.5 4.72119 11.5 5.53369C11.5 6.37744 10.8125 7.03369 10 7.03369C9.15625 7.03369 8.5 6.37744 8.5 5.53369ZM8.5 15.0337C8.5 14.2212 9.15625 13.5337 10 13.5337C10.8125 13.5337 11.5 14.2212 11.5 15.0337C11.5 15.8774 10.8125 16.5337 10 16.5337C9.15625 16.5337 8.5 15.8774 8.5 15.0337Z"}))},AH=c3e;var DH={popover:"Rf",fixed:"Uf"};var f3e=i=>{var a=i,{isOpen:e,content:t,fixed:o=!1,children:r}=a,n=P(a,["isOpen","content","fixed","children"]);return R.createElement(Popover,c({containerClassName:sr(DH.popover,{fixed:!1}),isOpen:e,content:t},n),r)},HH=f3e;var y3e=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M1.4375 10.5586C0.84375 9.99609 0.84375 9.02734 1.4375 8.46484L6.9375 2.96484C7.875 1.99609 9.5 2.68359 9.5 4.02734V6.52734C13.7812 6.65234 19 7.49609 19 12.8398C19 15.1211 17.7812 17.0273 15.9375 18.2461C14.7812 19.0273 13.25 17.9336 13.6875 16.5586C14.4375 14.1211 14.0625 12.8398 9.5 12.5586V14.9961C9.5 16.3398 7.875 17.0273 6.9375 16.0586L1.4375 10.5586ZM2.5 9.49609L8 14.9961V11.0273C13.125 11.0586 16.6562 12.0586 15.0938 16.9961C16.25 16.2461 17.5 14.9336 17.5 12.8398C17.5 8.37109 12.4688 8.02734 8 8.02734V3.99609L2.5 9.49609Z",fill:"currenColor"})),OH=y3e;var h3e=e=>R.createElement("svg",c({width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M16.5312 5.03992C16.7812 5.28992 17 5.75867 17 6.10242V14.4774C17 15.3212 16.3125 15.9774 15.5 15.9774H13V17.4774C13 18.3212 12.3125 18.9774 11.5 18.9774H4.5C3.65625 18.9774 3 18.3212 3 17.4774V7.47742C3 6.66492 3.65625 5.97742 4.5 5.97742H7V4.47742C7 3.66492 7.65625 2.97742 8.5 2.97742H13.875C14.2188 2.97742 14.6875 3.19617 14.9375 3.44617L16.5312 5.03992ZM11.3125 17.4774C11.4062 17.4774 11.5 17.4149 11.5 17.2899V15.9774H8.5C7.65625 15.9774 7 15.3212 7 14.4774V7.47742H4.6875C4.5625 7.47742 4.5 7.57117 4.5 7.66492V17.2899C4.5 17.4149 4.5625 17.4774 4.6875 17.4774H11.3125ZM15.3125 14.4774C15.4062 14.4774 15.5 14.4149 15.5 14.2899V7.97742H12.75C12.3125 7.97742 12 7.66492 12 7.22742V4.47742H8.6875C8.5625 4.47742 8.5 4.57117 8.5 4.66492V14.2899C8.5 14.4149 8.5625 14.4774 8.6875 14.4774H15.3125ZM15.5 6.47742V6.19617C15.5 6.13367 15.4688 6.10242 15.4375 6.07117L13.9062 4.53992C13.875 4.50867 13.8438 4.47742 13.7812 4.47742H13.5V6.47742H15.5Z",fill:"currenColor"})),UH=h3e;var C3e=e=>R.createElement("svg",c({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M12.875 4.375C13.0625 4.375 13.25 4.5625 13.25 4.75V5.125C13.25 5.33594 13.0625 5.5 12.875 5.5H12.5L11.9844 13.4453C11.9609 14.0312 11.4453 14.5 10.8594 14.5H5.11719C4.53125 14.5 4.01562 14.0312 3.99219 13.4453L3.5 5.5H3.125C2.91406 5.5 2.75 5.33594 2.75 5.125V4.75C2.75 4.5625 2.91406 4.375 3.125 4.375H5.04688L5.84375 3.0625C6.03125 2.75781 6.45312 2.5 6.80469 2.5H9.17188C9.52344 2.5 9.94531 2.75781 10.1328 3.0625L10.9297 4.375H12.875ZM6.80469 3.625L6.35938 4.375H9.61719L9.17188 3.625H6.80469ZM10.8594 13.375L11.3516 5.5H4.625L5.11719 13.375H10.8594Z"})),vu=C3e;var v3e=o=>{var r=o,{color:e="#FA4D30"}=r,t=P(r,["color"]);return R.createElement("svg",c({width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),R.createElement("path",{d:"M10.5 2.99609C11.5938 2.99609 12.7812 2.62109 13.9062 2.12109C14.875 1.71484 16 2.43359 16 3.49609V10.9961C16 11.5273 15.7188 11.9961 15.3125 12.2773C14.4688 12.8086 13.125 13.4961 11.2812 13.4961C9.15625 13.4961 7.75 12.4961 6.21875 12.4961C4.46875 12.4961 3.40625 12.8711 2.25 13.4023V15.9961C2.25 16.2773 2 16.4961 1.75 16.4961H1.25C0.96875 16.4961 0.75 16.2773 0.75 15.9961V3.30859C0.28125 3.05859 0 2.55859 0 1.99609C0 1.15234 0.71875 0.464844 1.59375 0.527344C2.3125 0.558594 2.90625 1.12109 2.96875 1.83984C2.96875 1.87109 3 1.96484 3 1.99609C3 2.15234 2.9375 2.37109 2.90625 2.49609C3.59375 2.21484 4.4375 1.99609 5.4375 1.99609C7.5625 1.99609 8.96875 2.99609 10.5 2.99609ZM14.5 10.9961V3.49609C13.5 3.96484 11.8438 4.49609 10.5 4.49609C8.625 4.49609 7.3125 3.49609 5.4375 3.49609C4.125 3.49609 2.90625 4.02734 2.25 4.49609V11.7461C3.21875 11.3086 4.875 10.9961 6.21875 10.9961C8.09375 10.9961 9.40625 11.9961 11.2812 11.9961C12.5938 11.9961 13.8125 11.4961 14.5 10.9961Z",fill:e}))},xu=v3e;var jH=({isOwner:e,isModerator:t,isFlagged:o,action:r,containerRef:n})=>{let[i,a]=useState(!1),s=useRef(null),l=()=>{r.onCopy&&r.onCopy(),a(!1);},d=()=>{r.onReply&&r.onReply(),a(!1);},p=()=>{r.onDelete&&r.onDelete(),a(!1);},u=()=>{r.onFlag&&r.onFlag(),a(!1);},g=()=>{r.onUnflag&&r.onUnflag(),a(!1);};return R.createElement(R.Fragment,null,R.createElement(HH,{positions:["bottom","top"],onClickOutside:()=>a(!1),isOpen:i,align:"start",parentElement:(n==null?void 0:n.current)||void 0,content:R.createElement(R.Fragment,null,R.createElement("div",{className:or.messageActionButton,onClick:d},R.createElement("div",{className:or.messageActionButtonText},R.createElement(S.Body,null,"Reply")),R.createElement(OH,{className:or.replyIcon})),R.createElement("div",{className:or.messageActionButton,onClick:l},R.createElement("div",{className:or.messageActionButtonText},R.createElement(S.Body,null,"Copy")),R.createElement(UH,{className:or.copyIcon})),(t||!e)&&R.createElement("div",{className:or.messageActionButton,onClick:o?g:u},R.createElement("div",{className:or.messageDangerActionButtonText},R.createElement(S.Body,null,o?"Unreport":"Report")),R.createElement(xu,{className:or.flagIcon})),(e||t)&&R.createElement("div",{className:or.messageActionButton,onClick:p},R.createElement("div",{className:or.messageDangerActionButtonText},R.createElement(S.Body,null,"Delete")),R.createElement(vu,{className:or.binIcon})))},R.createElement("div",{className:or.optionButton,ref:s,onClick:()=>{a(!i);}},R.createElement(AH,{className:or.optionIcon}))))};var bu={messageItemContainer:"Bf",userDisplayName:"Df",avatar:"Hf",moderatorBadge:"Lf"};var w3e=({avatarUrl:e,displayName:t,children:o})=>R.createElement("div",{className:bu.messageItemContainer},R.createElement("div",{className:bu.avatar},R.createElement(vt,{avatarUrl:e,defaultImage:R.createElement(cs,null)})),R.createElement("div",null,R.createElement("div",{className:bu.userDisplayName},R.createElement(S.CaptionBold,null,t)),o)),GH=w3e;var Ts={messageBubble:"Cr",messageRepliedBubble:"Tf",messageParentContainer:"Vf",messageParentDisplayName:"qf",messageParentText:"Gf",messageChildContainer:"Jf",messageChildText:"Kf"};var _3e=e=>Lt({fetcher:MessageRepository.getMessage,params:e,shouldCall:!!e}),ZH=_3e;var Iu={mentionText:"Nf",hyperlink:"Of"};var QH={hyperlink:"Pf"};var N3e=({linkClassName:e,children:t})=>R.createElement(TZ,{options:{target:"_blank",render:({attributes:o,content:r})=>R.createElement("a",c({className:e||QH.hyperlink},o),r)}},t),r9=N3e;var E3e=({message:e,className:t})=>{var n,i,a;let o=(n=e.metadata)==null?void 0:n.mentioned,r=o==null?void 0:o.sort((s,l)=>s.index-l.index);if(r!=null&&r.length){let s=((i=e.data)==null?void 0:i.text)||"",l=[],d=0;r.forEach(u=>{let g=u.index,f=u.index+u.length+1,y=s.slice(d,g),v=s.slice(g,f);y&&l.push({text:y,isMention:!1}),l.push({text:v,isMention:!0}),d=f;});let p=s.slice(d);return p&&l.push({text:p,isMention:!1}),R.createElement(S.Body,{className:t},l.map((u,g)=>u.isMention?R.createElement("span",{key:g,className:Iu.mentionText},u.text):R.createElement("span",{key:g},R.createElement(r9,{linkClassName:Iu.hyperlink},u.text))))}return R.createElement(S.Body,{className:t},R.createElement(r9,{linkClassName:Iu.hyperlink},(a=e.data)==null?void 0:a.text))},n9=E3e;var B3e=({message:e})=>{var r,n,i;let{currentUserId:t}=J(),o=(n=(r=e.metadata)==null?void 0:r.mentioned)==null?void 0:n.some(a=>a.userId===t||a.type==="channel");if(e&&e.parentId){let a=ZH(e.parentId),s=oe(a==null?void 0:a.creatorId);return !a||!s?null:R.createElement("div",{className:Ts.messageRepliedBubble},R.createElement("div",{className:Ts.messageParentContainer},R.createElement("div",{className:Ts.messageParentDisplayName},R.createElement(S.BodyBold,null,s.displayName)),R.createElement(S.Body,{className:Ts.messageParentText},(i=a.data)==null?void 0:i.text)),R.createElement("div",{className:Ts.messageChildContainer},R.createElement(n9,{className:Ts.messageChildText,message:e})))}return R.createElement("div",{"data-mentioned":o,className:Ts.messageBubble},R.createElement(n9,{message:e}))},qH=B3e;var p2=e=>{let{client:t}=J();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 KH=e=>R.createElement("svg",c({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0766 3.686C11.6827 3.45305 12.3021 3.33948 12.9061 3.3335C14.7179 3.31558 16.3937 4.2689 17.1729 5.89093L17.1895 5.92546L17.202 5.9624C17.6819 7.39004 17.5517 8.83248 17.0292 10.1008C16.7326 9.72289 16.3721 9.39755 15.964 9.14106C16.2254 8.26924 16.2483 7.32915 15.9455 6.39919C15.3774 5.24797 14.2332 4.57487 12.9278 4.60378C12.4981 4.61329 12.0515 4.70045 11.6019 4.86956C11.1731 5.08422 10.8198 5.36694 10.5238 5.73675L10.0093 6.37992L9.47729 5.74959C8.38507 4.45434 6.19511 4.17996 4.72103 5.44206C3.63692 6.5523 3.60343 8.44184 4.37082 10.0205C5.31606 11.6937 7.28176 13.3534 9.14794 14.7202L9.15794 14.7275C9.27155 14.8082 9.38012 14.8942 9.48451 14.9769C9.57334 15.0473 9.65915 15.1152 9.74247 15.1755C9.83249 15.2407 9.91925 15.2913 9.98761 15.3273C10.0527 15.3006 10.1319 15.2662 10.2153 15.2157C10.2662 15.1848 10.3205 15.1506 10.3776 15.1136C10.6388 15.4735 10.9562 15.7901 11.3169 16.0503C11.1818 16.1421 11.0508 16.227 10.9257 16.3029C10.8808 16.33 10.8388 16.3568 10.7982 16.3826C10.5856 16.5181 10.4104 16.6296 10.0526 16.6594L9.96091 16.6666L9.87002 16.6497C9.46411 16.575 9.1867 16.3802 8.94112 16.2025C8.80472 16.1038 8.67845 16.0042 8.57194 15.9202C8.48669 15.8529 8.4141 15.7957 8.3591 15.7569L8.35494 15.7536L8.34994 15.7496C6.42696 14.342 4.31681 12.6298 3.18676 10.6147L3.17842 10.5987L3.17008 10.5834C2.21058 8.62424 2.1731 6.14474 3.7738 4.53473L3.79047 4.51786L3.80882 4.50181C5.63352 2.91773 8.30066 3.019 9.97595 4.41428C10.2872 4.13498 10.6374 3.8993 11.0216 3.71089L11.0491 3.69724L11.0766 3.686Z",fill:"currentColor"}),R.createElement("path",{d:"M13.6839 10.0507L13.6839 10.0501L13.6725 10.0522C13.5717 10.0706 13.4807 10.1238 13.4151 10.2025C13.3496 10.2811 13.3137 10.3803 13.3137 10.4827C13.3137 10.4827 13.3137 10.4827 13.3137 10.4827V12.2327H11.5637V12.2322L11.5527 12.2332L11.4964 12.2382L11.4964 12.2376L11.485 12.2397C11.3842 12.2581 11.2932 12.3113 11.2276 12.39C11.1621 12.4686 11.1262 12.5678 11.1262 12.6702H11.1257L11.1267 12.6812L11.1317 12.7375L11.1312 12.7375L11.1333 12.7489C11.1517 12.8496 11.2049 12.9407 11.2835 13.0063C11.3622 13.0718 11.4613 13.1077 11.5637 13.1077C11.5637 13.1077 11.5637 13.1077 11.5638 13.1077H13.3137V14.8577H13.3132L13.3142 14.8687L13.3192 14.925L13.3187 14.925L13.3208 14.9364C13.3392 15.0371 13.3924 15.1282 13.471 15.1938L13.5511 15.0977L13.471 15.1938C13.5497 15.2593 13.6489 15.2952 13.7513 15.2952L13.7513 15.2957L13.7623 15.2947L13.8185 15.2897L13.8186 15.2902L13.83 15.2881C13.9307 15.2697 14.0218 15.2165 14.0873 15.1379C14.1529 15.0592 14.1887 14.96 14.1887 14.8577C14.1887 14.8577 14.1887 14.8576 14.1887 14.8576V13.1077H15.9387V13.1082L15.9498 13.1072L16.006 13.1022L16.0061 13.1027L16.0175 13.1006C16.1182 13.0822 16.2093 13.029 16.2748 12.9504C16.3404 12.8717 16.3763 12.7725 16.3762 12.6701L16.3767 12.6701L16.3757 12.6591L16.3707 12.6028L16.3713 12.6028L16.3692 12.5914C16.3507 12.4907 16.2976 12.3996 16.2189 12.3341C16.1403 12.2685 16.0411 12.2326 15.9387 12.2327C15.9387 12.2327 15.9387 12.2327 15.9387 12.2327H14.1887V10.4827H14.1892L14.1882 10.4716L14.1832 10.4153L14.1838 10.4153L14.1817 10.4039C14.1632 10.3032 14.1101 10.2121 14.0314 10.1466C13.9527 10.081 13.8536 10.0451 13.7512 10.0452V10.0447L13.7402 10.0457L13.6839 10.0507Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.25"}));var wu=o=>_(void 0,[o],function*({reactionName:e,message:t}){let r=t.myReactions||[];if(r.includes(e)){yield ReactionRepository.removeReaction("message",t.messageId,e);return}r.length>0&&(yield ReactionRepository.removeReaction("message",t.messageId,r[0])),yield ReactionRepository.addReaction("message",t.messageId,e);});var s9={quickReactionIcon:"Qf",quickReactionIconContainer:"Ar"};var Mu=({pageId:e="*",componentId:t="*",message:o,onSelectReaction:r})=>{let n="message_quick_reaction",{config:i}=A({pageId:e,componentId:t,elementId:n}),{config:a}=xi(),s=useCallback(()=>{a&&i.reaction&&a.find(l=>l.name===i.reaction)&&wu({reactionName:i.reaction,message:o}),r&&r();},[a,i,o]);return R.createElement("div",{className:s9.quickReactionIconContainer},R.createElement(KH,{className:s9.quickReactionIcon,onClick:s}))};var l9={reactionPickerContainer:"Wf",reactionButton:"u"};var m9=({message:e,onSelectReaction:t})=>{let{config:o}=xi(),r=n=>{wu({reactionName:n,message:e});};return o?R.createElement("div",{className:l9.reactionPickerContainer},o.map(n=>{var i;return R.createElement("img",{"data-active":(i=e.myReactions)==null?void 0:i.includes(n.name),key:n.name,src:n.image,alt:n.name,className:l9.reactionButton,onClick:()=>{r(n.name),t&&t(n.name);}})})):null};var Pu={reactionContainer:"Zf",reactionPickerWrap:"_f",reactionButton:"eb"};var YH=({pageId:e="*",componentId:t="*",message:o,containerRef:r})=>{let [n,i]=useState(!1),[a,s]=useState(!1),[l,d]=useState(!1);R.useState();let g=useRef(null),f=useRef(a);useEffect(()=>{f.current=a;},[a]);let y=useCallback(()=>{if(!f.current)return;let I=setTimeout(()=>{f.current&&i(!0);},500);return ()=>clearTimeout(I)},[]),v=useRef(l);useEffect(()=>{v.current=l;},[l]);let C=useCallback(()=>{setTimeout(()=>{v.current||i(!1);},1e3);},[]),h=useCallback(I=>{g.current&&!g.current.contains(I.target)&&i(!1);},[]),x=()=>{if(!g.current||!(r!=null&&r.current))return "translate(-50%, 0px)";let I=r.current.getBoundingClientRect(),w=g.current.getBoundingClientRect();if(!I||!w)return "translate(-50%, 0px)";$v(Number(Uv("--asc-spacing-s1").replace("rem","")));let T=w.right-I.right,L=I.left-w.left;return T>0?`translate(calc(-50% - ${T}px), 0px)`:L>0?`translate(calc(-50% + ${L}px), 0px)`:"translate(-50%, 0px)"},b=I=>{h(I);},M=()=>{s(!1),d(!1),i(!1);};return useEffect(()=>(document.addEventListener("mousedown",b),document.addEventListener("touchstart",h),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("touchstart",h);}),[]),useEffect(()=>{a?!n&&y():n&&C();},[a,n]),R.createElement("div",{className:Pu.reactionContainer},n&&R.createElement("div",{className:Pu.reactionPickerWrap,style:{transform:x()},ref:g,onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1);}},R.createElement(m9,{message:o,onSelectReaction:M})),R.createElement("div",{className:Pu.reactionButton,onMouseEnter:()=>{s(!0);},onMouseLeave:()=>{s(!1);}},R.createElement(Mu,{message:o,onSelectReaction:M,pageId:e,componentId:t})))};var g2={reactionPreviewContainer:"Mr",reactionIconContainer:"c",reactionIcon:"rb",reactionCount:"ab",fallbackIcon:"ob"};var u9=({message:e,onClick:t})=>{let{config:o}=xi(),r=e.reactions?useMemo(()=>Object.entries(e.reactions).sort((n,i)=>i[1]-n[1]).filter(n=>n[1]>0).slice(0,3).sort((n,i)=>n[1]-i[1]),[e==null?void 0:e.reactions]):[];return e!=null&&e.reactionsCount?R.createElement("div",{className:g2.reactionPreviewContainer,"data-myreaction":(e==null?void 0:e.myReactions)&&!!(e!=null&&e.myReactions.length),onClick:t},R.createElement("div",{className:g2.reactionIconContainer},r.map(n=>{let i=o.find(a=>a.name===n[0]);return R.createElement(R.Fragment,null,i?R.createElement("img",{className:g2.reactionIcon,src:i.image,alt:i.name}):R.createElement(Fm,{className:g2.fallbackIcon,backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--asc-color-base-shade3")}))})),R.createElement("div",{className:g2.reactionCount},Hm(e.reactionsCount))):null};var Zn={messageItemContainer:"tb",messageItemContainerInner:"Sr",messageBubbleWrap:"ib",messageReaction:"lb",messageDeletedBubble:"sb",messageOptionsWrap:"cb",binIcon:"nb",optionIcon:"db",flagIcon:"mb",timestamp:"pb",reactionListSheet:"gb",reactionListContainer:"hb",reactionListBackdrop:"fb"};var j3e=({pageId:e="*",componentId:t="*",elementId:o="*",message:r,avatarUrl:n,userDisplayName:i,containerRef:a,action:s})=>{let l=J(),d=r.creatorId===l.currentUserId,{isModerator:p}=p2(r.channelId),[u,g]=useState(void 0);return R.createElement(R.Fragment,null,R.createElement(GH,{avatarUrl:n,displayName:i},R.createElement("div",{className:Zn.messageItemContainerInner,"data-reactions":!!r.reactionsCount},r.isDeleted?R.createElement("div",{className:Zn.messageDeletedBubble},R.createElement(vu,{className:Zn.binIcon}),R.createElement("div",null,R.createElement(S.Body,null,"This message was deleted"))):R.createElement("div",{className:Zn.messageBubbleWrap},R.createElement(qH,{message:r}),R.createElement("div",{className:Zn.messageReaction},R.createElement(u9,{message:r,onClick:()=>g(r)})),s&&R.createElement(jH,{containerRef:a,isOwner:d,isModerator:p,action:s,isFlagged:r.flagCount>0}),R.createElement(YH,{message:r,containerRef:a,pageId:e,componentId:t}),r.flagCount>0&&R.createElement(xu,{className:Zn.flagIcon}),R.createElement("div",{className:Zn.timestamp},ln(r.createdAt).format("HH:mm A"))))),u&&R.createElement(h1,{isOpen:!0,onClose:()=>g(void 0),className:Zn.reactionListSheet},R.createElement(h1.Container,{className:Zn.reactionListContainer},R.createElement(h1.Header,null),R.createElement(h1.Content,null,R.createElement(Om,{pageId:e,referenceId:u.messageId,referenceType:"message"}))),R.createElement(h1.Backdrop,{className:Zn.reactionListBackdrop})))},Tu=j3e;var g9=({pageId:e="*",componentId:t="*",message:o,containerRef:r,action:n})=>{let i="sender_message_bubble",a=oe(o.creatorId),s=se({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement(Tu,{message:o,userDisplayName:a==null?void 0:a.displayName,avatarUrl:s,containerRef:r,action:n,pageId:e,componentId:t,elementId:i})};var f9=({pageId:e="*",componentId:t="*",message:o,containerRef:r,action:n})=>{let i="receiver_message_bubble",{user:a}=pr(o.creatorId),s=rt({fileId:a==null?void 0:a.avatarFileId,imageSize:"small"});return R.createElement(Tu,{pageId:e,componentId:t,elementId:i,message:o,userDisplayName:a==null?void 0:a.displayName,avatarUrl:s,containerRef:r,action:n})};var y9=(r,n)=>_(void 0,[r,n],function*(e,{onSuccess:t,onError:o}){try{yield MessageRepository.deleteMessage(e),t&&t();}catch(i){o&&o(i);}});var h9=(e,t,o)=>_(void 0,null,function*(){try{yield MessageRepository.flagMessage(e),t&&t();}catch(r){o&&o(r);}});var RH=(e,t,o)=>_(void 0,null,function*(){try{yield MessageRepository.unflagMessage(e),t&&t();}catch(r){o&&o(r);}});var C9={icon:"bb"};var x9=createContext({liveChatNotifications:[],liveChatNotificationFunction:{success:()=>{},error:()=>{},show:()=>{}}}),Y3e=3e3,tF=({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,c({id:a},i)]),setTimeout(()=>{r(a);},(i==null?void 0:i.duration)||Y3e);};return R.createElement(x9.Provider,{value:{liveChatNotifications:t,liveChatNotificationFunction:{success:i=>n(N(c({},i),{icon:R.createElement(g0,{className:C9.icon})})),error:i=>n(N(c({},i),{icon:R.createElement(X1,{className:C9.icon})})),show:i=>n(i)}}},e)},oF=()=>{let{liveChatNotifications:e}=useContext(x9);return e},f2=()=>{let{liveChatNotificationFunction:e}=useContext(x9);return e};var rF=()=>{let e=f2(),{formatMessage:t}=useIntl();return r=>_(void 0,null,function*(){yield navigator.clipboard.writeText(r),e.success({content:t({id:"livechat.notification.copy.message"})});})};var G1={infiniteScrollContainer:"ub",loadingIndicatorWrap:"vb",loadingIndicator:"xb",infiniteScrollInner:"wb",customStatusContainer:"yb",iconContainer:"kb"};var ku=({pageId:e="*",channel:t,replyMessage:o})=>{let r="message_list",n=J(),i=useRef(null),[a,s]=useState(void 0),{confirm:l}=Ye(),d=f2(),p=rF(),{themeStyles:u}=te({pageId:e,componentId:r}),{messages:g,hasMore:f,loadMore:y,isLoading:v,error:C}=_d({subChannelId:t.channelId,sortBy:"segmentDesc",limit:10,includeDeleted:!0}),h=g,x=b=>{l({title:"Delete this message?",content:"This message will also be removed from your friend\u2019s devices.",cancelText:"Cancel",okText:"Delete",onOk:()=>y9(b,{onError:()=>d.error({content:"Unable to delete message. Please try again."})})});};return useEffect(()=>{let b=()=>{i.current&&s(i.current.clientHeight);},M=new ResizeObserver(b);return i.current&&M.observe(i.current),()=>{i.current&&M.unobserve(i.current);}},[]),C?R.createElement("div",{className:G1.customStatusContainer,ref:i,style:u},R.createElement("div",{className:G1.iconContainer},R.createElement(a5,null)),R.createElement(S.Caption,null,"Couldn't load chat")):R.createElement("div",{className:G1.infiniteScrollContainer,ref:i,style:u},i.current&&R.createElement(ZY,{className:G1.infiniteScrollInner,scrollableTarget:i.current,scrollThreshold:.7,hasMore:f,next:y,loader:v?R.createElement("div",{className:G1.loadingIndicatorWrap},R.createElement(BH,{className:G1.loadingIndicator})):null,inverse:!0,dataLength:h.length,height:i.current.clientHeight},h.map((b,M)=>b.creatorId===n.currentUserId?R.createElement(g9,{message:b,action:t.isMuted?void 0:{onReply:()=>o(b),onDelete:()=>x(b.messageId),onCopy:()=>{var I,w;return ((I=b.data)==null?void 0:I.text)&&p((w=b.data)==null?void 0:w.text)}},key:b.messageId,containerRef:i,pageId:e,componentId:r}):R.createElement(f9,{message:b,action:{onReply:()=>o(b),onDelete:()=>x(b.messageId),onCopy:()=>{var I,w;return ((I=b.data)==null?void 0:I.text)&&p((w=b.data)==null?void 0:w.text)},onFlag:()=>h9(b.messageId,()=>d.success({content:"Message reported"}),()=>d.error({content:"This message failed to be reported. Please try again."})),onUnflag:()=>RH(b.messageId,()=>d.success({content:"Message unreported"}),()=>d.error({content:"This message failed to be unreported. Please try again."}))},key:b.messageId,containerRef:i,pageId:e,componentId:r}))))};var i5e=e=>R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},e),R.createElement("path",{d:"M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"})),iF=i5e;var b9={homeIndicatorContainer:"jb",homeIndicator:"zb"};var Su=()=>R.createElement("div",{className:b9.homeIndicatorContainer},R.createElement("div",{className:b9.homeIndicator}));var hn={sendButton:"Xb",reactionButton:"Yb",sendButtonContainer:"Cb",composeBarContainer:"Ab",optionContainer:"Mb",composeBar:"Sb",composeBarLoading:"Eb",mentionText:"Fb",editorPlaceholder:"Ib",editorContainer:"Er",editorRoot:"Rb",editorParagraph:"Ub",editorContainer__mentionTextInput_item:"Fr",editorLink:"Ir",userMentionItem__item:"C",allMentionItem__item:"A",userMentionItem__avatar:"Bb",allMentionItem__atSign:"Db",userMentionItem__displayName:"Hb",allMentionItem__displayName:"Lb"};var Nu=({channelId:e,memberships:t,search:o,limit:r=20,shouldCall:n=!0})=>{let s=dt({fetcher:ChannelRepository.Membership.searchMembers,params:{channelId:e,search:o||"",memberships:t,limit:r,includeDeleted:!1},shouldCall:!!e&&n}),{items:i}=s,a=P(s,["items"]);return c({channelMembers:i},a)};var f5e=e=>{var o,r;let t=(()=>{switch(screen.orientation.type){case"landscape-primary":case"landscape-secondary":return .5;case"portrait-secondary":case"portrait-primary":return .75;default:return .5}})();return e.visualViewport?((o=e.visualViewport)==null?void 0:o.height)*((r=e.visualViewport)==null?void 0:r.scale)/e.screen.height<t:!1},sF=({commandPriority:e,onEnter:t})=>{let[o]=useLexicalComposerContext();return useEffect(()=>{o.registerCommand(KEY_ENTER_COMMAND,r=>{let n=$getSelection();if(!$isRangeSelection(n)||f5e(window))return !1;let i=r;return i.preventDefault(),i.shiftKey?o.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0):(t(),!0)},e);},[o,t]),null};function lF({option:e,isSelected:t,onClick:o,onMouseEnter:r}){return R.createElement("li",{key:e.key,tabIndex:-1,"data-is-selected":t,className:Da.allMentionItem__item,ref:e.setRefElement,role:"option","aria-selected":t,onMouseEnter:r,onClick:o},R.createElement("div",{className:Da.allMentionItem__atSign},"@"),R.createElement("p",{className:Da.allMentionItem__displayName},e.data.displayName))}var L5e=200,A5e=e=>{let[t,o]=useState(null),{isModerator:r}=p2(e||void 0),{channelMembers:n}=Nu({search:t,channelId:e,memberships:["member"],limit:20}),i=s=>{o(s);};return {suggestions:useMemo(()=>{let s=n.map(({user:l,userId:d})=>({userId:(l==null?void 0:l.userId)||d,displayName:l==null?void 0:l.displayName}));return r&&(t===""||/^al*l*$/i.test(t||""))?[{userId:"all",displayName:"All"},...s]:s},[r,n]),queryString:t,onQueryChange:i}},D5e=[AutoLinkNode,LinkNode,Vi],Eu=({pageId:e="*",channel:t,composeAction:{replyMessage:o,mentionMessage:r,clearReplyMessage:n,clearMention:i}})=>{var M;let a="message_composer",s=useRef(null),l=useRef(null),{themeStyles:d,uiReference:p,config:u,accessibilityId:g}=te({pageId:e,componentId:a}),{confirm:f}=Ye(),y=f2(),{onQueryChange:v,suggestions:C}=A5e(t.channelId),{mutateAsync:h}=useMutation({mutationFn:I=>MessageRepository.createMessage(I),onSuccess:()=>{var I;(I=l.current)==null||I.update(()=>{$getRoot().clear();}),n&&n();},onError:I=>{let w=I.message,k="Your message wasn't sent. Please try again.";w==="Amity SDK (400308): Text contain blocked word"?k="Your message wasn't sent as it contains a blocked word.":w==="Amity SDK (400309): Data contain link that is not in whitelist"?k="Your message wasn\u2019t sent as it contained a link that\u2019s not allowed.":w==="Amity SDK (400302): User is muted"&&(k="User is muted"),y.error({content:k});}}),x=()=>{if(!t||!l.current)return;let{mentioned:I,mentionees:w,text:k}=il(l.current);if((k==null?void 0:k.trim().length)!==0){if(k.trim().length>(typeof(u==null?void 0:u.message_limit)=="number"?u==null?void 0:u.message_limit:L5e)){f({title:"Unable to send message",content:"Your message is too long. Please shorten your message and try again.",okText:"Ok"});return}h({tags:[],subChannelId:t.channelId,data:{text:k.trim()},dataType:"text",mentionees:w,metadata:{mentioned:I},parentId:(o==null?void 0:o.messageId)||void 0});}},b=al({namespace:p,theme:{root:hn.editorRoot,placeholder:hn.editorPlaceholder,paragraph:hn.editorParagraph,link:hn.editorLink},nodes:D5e});return R.createElement("div",{className:hn.composeBarContainer,"data-qa-anchor":g,style:d},R.createElement("div",{className:hn.composeBar},R.createElement("div",{ref:s,className:hn.optionContainer}),R.createElement("div",{className:hn.editorContainer},R.createElement(LexicalComposer,{initialConfig:b},R.createElement(RichTextPlugin,{contentEditable:R.createElement(ContentEditable,null),placeholder:(M=R.createElement("span",{className:hn.editorPlaceholder},u.placeholder_text))!=null?M:null,ErrorBoundary:S5e}),R.createElement(HistoryPlugin,null),R.createElement(AutoFocusPlugin,null),R.createElement(ll,null),R.createElement(sl,null),R.createElement(EditorRefPlugin,{editorRef:l}),R.createElement(sF,{onEnter:x,commandPriority:COMMAND_PRIORITY_LOW}),R.createElement(ml,{suggestions:C,getSuggestionId:I=>I.userId,onQueryChange:v,$createNode:I=>Aa({text:`@${I.displayName||""}`,data:I}),menuRenderFn:(I,{options:w,selectedIndex:k,setHighlightedIndex:T,selectOptionAndCleanUp:L})=>!s.current||w.length===0?null:ex.createPortal(R.createElement(R.Fragment,null,w.map((D,U)=>D.data.userId==="all"?R.createElement(lF,{isSelected:k===U,onClick:()=>{T(U),L(D);},onMouseEnter:()=>{T(U);},key:D.key,option:D}):R.createElement(Ha,{isSelected:k===U,onClick:()=>{T(U),L(D);},onMouseEnter:()=>{T(U);},key:D.key,option:D}))),s.current),commandPriority:COMMAND_PRIORITY_HIGH}))),R.createElement("div",{className:hn.sendButtonContainer},R.createElement(iF,{className:hn.sendButton,onClick:()=>x()}))),R.createElement(Su,null))};var cF=({channelId:e})=>{let r=Pn({fetcher:ChannelRepository.getChannel,params:e,shouldCall:!!e}),{item:t}=r,o=P(r,["item"]);return c({channel:t},o)};var yt={composeBarContainer:"Tb",composeBar:"Vb",textInputContainer:"qb",composeBarLoading:"Gb",replyPlaceholderContainer:"Jb",replyAvatar:"Kb",replyProfile:"Nb",replyProfileName:"Ob",replyProfileMessage:"Pb",replyDismiss:"Qb",notificationPosition:"Wb",messageListPlaceholder:"Zb",mutedChannelContainer:"_b",mutedIcon:"eu",commentAltIcon:"ru",banStatePanel:"au"};var O5e=({children:e})=>R.createElement(R.Fragment,null,R.createElement("div",{className:yt.messageListPlaceholder},e),R.createElement("div",{className:yt.composeBarContainer},R.createElement("div",{className:yt.composeBar},R.createElement("div",{className:yt.textInputContainer},R.createElement("div",{className:yt.composeBarLoading},R.createElement(Y5,{width:20,height:20}),R.createElement("span",null,R.createElement(S.Body,null,"Loading chat..."))))),R.createElement(Su,null))),Bu=O5e;var dF=({replyMessage:e,onDismiss:t})=>{var r,n;let o=oe(e.creatorId);return o?R.createElement("div",{className:yt.replyPlaceholderContainer},R.createElement("div",{className:yt.replyAvatar},R.createElement(vt,{avatarUrl:(r=o.avatar)==null?void 0:r.fileUrl,defaultImage:R.createElement(cs,null)})),R.createElement("div",{className:yt.replyProfile},R.createElement("div",{className:yt.replyProfileName},`Replying to ${o.displayName}`),R.createElement("div",{className:yt.replyProfileMessage},(n=e.data)==null?void 0:n.text)),R.createElement("div",{className:yt.replyDismiss},R.createElement(Y1,{onClick:t,width:"20",height:"20"}))):null};var U5e=({children:e})=>R.createElement("div",{className:yt.messageListPlaceholder},e),pF=U5e;var w9={notifications:"ou",notificationContainer:"tu",appear:"Rr"};var uF=({className:e,content:t,icon:o})=>R.createElement("div",{className:sr(w9.notificationContainer,e)},o,R.createElement(S.Body,null,t)),M9=()=>{let e=oF();return R.createElement("div",{className:w9.notifications},e.map(t=>R.createElement(uF,N(c({},t),{key:t.id}))))};var j5e=e=>R.createElement("svg",c({width:"23",height:"21",viewBox:"0 0 23 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M21.7988 17.7605C22.0449 17.9363 22.1152 18.2878 21.9043 18.5339L21.5527 18.9558C21.3418 19.2019 20.9902 19.2722 20.7793 19.0613L-0.244141 2.60815C-0.490234 2.43237 -0.560547 2.08081 -0.349609 1.83472L0.00195312 1.37769C0.212891 1.16675 0.564453 1.09644 0.810547 1.30737L21.7988 17.7605ZM12.5527 7.49487C13.3262 7.91675 13.8887 8.69019 14.0645 9.53394L11.5684 7.60034C11.8496 7.35425 12.2363 7.31909 12.5527 7.49487ZM13.6074 6.15894C13.2207 5.91284 13.1152 5.3855 13.3613 4.99878C13.6074 4.61206 14.1348 4.47144 14.5215 4.71753C16.3848 5.91284 17.5449 7.9519 17.5449 10.1667C17.5449 10.8347 17.4395 11.4324 17.2637 12.03L15.7871 10.8699C15.8223 10.6589 15.8574 10.4128 15.8574 10.1667C15.8574 8.54956 15.0137 7.03784 13.6074 6.15894ZM15.4707 3.31128C15.084 3.06519 14.9785 2.53784 15.2246 2.11597C15.5059 1.72925 16.0332 1.62378 16.4199 1.86987C19.2324 3.73315 20.9199 6.8269 20.9199 10.1667C20.9199 11.6082 20.6035 12.9441 20.041 14.2097L18.6699 13.1199C19.0215 12.2058 19.1973 11.2214 19.1973 10.1667C19.1973 7.42456 17.8262 4.823 15.4707 3.31128ZM9.66992 4.29565V6.08862L7.49023 4.40112L8.22852 3.698C8.36914 3.52222 8.58008 3.41675 8.79102 3.41675C9.24805 3.41675 9.66992 3.76831 9.66992 4.29565ZM7.98242 14.0691V11.1863L9.66992 12.5222V16.073C9.66992 16.6003 9.24805 16.9167 8.79102 16.9167C8.58008 16.9167 8.36914 16.8464 8.22852 16.6707L5.09961 13.5417H1.51367C1.02148 13.5417 0.669922 13.1902 0.669922 12.698V7.6355C0.669922 7.17847 1.02148 6.79175 1.51367 6.79175H2.35742L4.50195 8.47925H2.35742V11.8542H5.76758L7.98242 14.0691Z"})),P9=j5e;var fF={inputTextContainer:"iu",invalid:"lu",disabled:"su",baseInputStyle:"cu",mentionContainer:"nu","live-chat-mention-input":"Ur","live-chat-mention-input__suggestions__list":"du",mentions_mention:"mu",mentions__highlighter:"pu"};var Z5e=e=>R.createElement("svg",c({width:"49",height:"49",viewBox:"0 0 49 49",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("path",{d:"M37.96 7C40.4209 7 42.46 9.03906 42.46 11.5V31.75C42.46 34.2812 40.4209 36.25 37.96 36.25H27.835L19.0459 42.8594C18.835 43 18.6943 43 18.5537 43C18.0615 43 17.71 42.7188 17.71 42.1562V36.25H10.96C8.42871 36.25 6.45996 34.2812 6.45996 31.75V11.5C6.45996 9.03906 8.42871 7 10.96 7H37.96ZM40.21 31.75V11.5C40.21 10.3047 39.1553 9.25 37.96 9.25H10.96C9.69434 9.25 8.70996 10.3047 8.70996 11.5V31.75C8.70996 33.0156 9.69434 34 10.96 34H19.96V39.3438L26.4287 34.4922L27.0615 34H37.96C39.1553 34 40.21 33.0156 40.21 31.75ZM24.46 25.5625C25.374 25.5625 26.1475 26.3359 26.1475 27.25C26.1475 28.2344 25.374 28.9375 24.46 28.9375C23.4756 28.9375 22.7725 28.2344 22.7725 27.25C22.7725 26.3359 23.4756 25.5625 24.46 25.5625ZM23.8271 23.875C23.5459 23.875 23.2646 23.6641 23.2646 23.3828L22.7725 15.5078C22.7725 15.1562 22.9834 14.875 23.335 14.875H25.5146C25.8662 14.875 26.0771 15.1562 26.0771 15.5078L25.585 23.3828C25.585 23.6641 25.3037 23.875 25.0225 23.875H23.8271Z"})),hF=Z5e;var W5e=({pageId:e="*",channel:t})=>{var v;let o=hu(),{isModerator:r}=p2(t.channelId),n=J().currentUserId,{channelMembers:i}=Nu({channelId:t.channelId,memberships:["member","banned","muted"]}),a=i.find(C=>C.userId===n),[s,l]=useState(void 0),[d,p]=useState(void 0),[u,g]=useState(0),f=useRef(null),y=useRef(null);return useEffect(()=>{var C,h;(C=y.current)!=null&&C.clientHeight&&((h=y.current)==null?void 0:h.clientHeight)>0&&g(y.current.clientHeight-30);},[(v=y.current)==null?void 0:v.clientHeight]),o?a!=null&&a.isBanned?R.createElement(pF,null,R.createElement("div",{className:yt.banStatePanel},R.createElement(hF,{className:yt.commentAltIcon}),R.createElement(S.Heading,null,"You are banned from chat"),R.createElement(S.Body,null,"You won\u2019t be able to participate in this chat until you\u2019ve been unbanned."))):R.createElement(R.Fragment,null,R.createElement(ku,{channel:t,replyMessage:l,pageId:e}),o&&R.createElement(R.Fragment,null,R.createElement("div",{ref:f,className:fF.mentionContainer}),!r&&t.isMuted?R.createElement("div",{className:yt.mutedChannelContainer},R.createElement(P9,{width:20,height:20,className:yt.mutedIcon}),R.createElement(S.Body,null,"This channel has been set to read-only by the channel moderator")):a!=null&&a.isMuted?R.createElement("div",{className:yt.mutedChannelContainer},R.createElement(P9,{width:20,height:20,className:yt.mutedIcon}),R.createElement(S.Body,null,"You\u2019ve been muted by the channel moderator")):null,s&&R.createElement(dF,{replyMessage:s,onDismiss:()=>l(void 0)}),R.createElement("div",{className:yt.notificationPosition,style:{bottom:u}},R.createElement(M9,null)),R.createElement("div",{ref:y},R.createElement(Eu,{pageId:e,disabled:!r&&t.isMuted||(a==null?void 0:a.isMuted),channel:t,suggestionRef:f,composeAction:{replyMessage:s,mentionMessage:d,clearReplyMessage:()=>l(void 0),clearMention:()=>p(void 0)}})))):R.createElement(Bu,null)},vF=W5e;var q5e=({pageId:e="*",channel:t})=>t?R.createElement(vF,{channel:t,pageId:e}):R.createElement(Bu,null),bF=q5e;var T9={messageListHeaderWrap:"gu",liveChat:"hu"};var IF=({channelId:e})=>{let{channel:t}=cF({channelId:e}),o="live_chat",{themeStyles:r}=Xe({pageId:o}),n=useRef(null);return R.createElement(tF,null,R.createElement("div",{className:T9.liveChat,ref:n,style:r},R.createElement("div",{className:T9.messageListHeaderWrap},R.createElement(Cu,{channel:t,pageId:o})),R.createElement(bF,{channel:t,pageId:o})))};var Ie={storyPreview_title:"fu",contentWrapper:"bu",storyPreviewWrapper:"uu",storyPreview_description:"vu",storyPreviewContainer:"xu",headerContainer:"wu",progressBar:"Br",progressFill:"yu",userInfo:"ku",storyPreviewTitle:"Dr",nameContainer:"ju",hyperLinkContainer:"zu",mediaContainer:"Hr",media:"Xu",avatarContainer:"Lr",imageFit:"Yu",imageCover:"Cu",headerContent:"Au",userInfoContent:"Mu",shadowOverlay:"Su",pulse:"Tr",skeleton:"n",textSkeleton:"Eu",nameSkeleton:"Fu",timeSkeleton:"Iu"};var Y5e=e=>R.createElement("svg",c({width:"100%",height:"100%",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),R.createElement("rect",{width:"40",height:"40",rx:"20",fill:"#D9E5FC"}),R.createElement("path",{d:"M19.8462 12C20.7625 12 21.6413 12.356 22.2893 12.9898C22.9373 13.6235 23.3013 14.4831 23.3013 15.3793C23.3013 16.2756 22.9373 17.1351 22.2893 17.7688C21.6413 18.4026 20.7625 18.7586 19.8462 18.7586C18.9298 18.7586 18.051 18.4026 17.403 17.7688C16.755 17.1351 16.391 16.2756 16.391 15.3793C16.391 14.4831 16.755 13.6235 17.403 12.9898C18.051 12.356 18.9298 12 19.8462 12ZM12.9359 14.4138C13.4887 14.4138 14.0021 14.5586 14.4463 14.8193C14.2982 16.2 14.7128 17.571 15.5618 18.6428C15.0682 19.5697 14.081 20.2069 12.9359 20.2069C12.1504 20.2069 11.3972 19.9017 10.8418 19.3585C10.2864 18.8153 9.97436 18.0786 9.97436 17.3103C9.97436 16.5421 10.2864 15.8054 10.8418 15.2622C11.3972 14.719 12.1504 14.4138 12.9359 14.4138ZM26.7564 14.4138C27.5419 14.4138 28.2951 14.719 28.8505 15.2622C29.4059 15.8054 29.7179 16.5421 29.7179 17.3103C29.7179 18.0786 29.4059 18.8153 28.8505 19.3585C28.2951 19.9017 27.5419 20.2069 26.7564 20.2069C25.6113 20.2069 24.6241 19.5697 24.1305 18.6428C24.9795 17.571 25.3941 16.2 25.246 14.8193C25.6903 14.5586 26.2036 14.4138 26.7564 14.4138ZM13.4295 24.3103C13.4295 22.3117 16.3022 20.6897 19.8462 20.6897C23.3901 20.6897 26.2628 22.3117 26.2628 24.3103V26H13.4295V24.3103ZM8 26V24.5517C8 23.2097 9.86577 22.08 12.3929 21.7517C11.8105 22.4083 11.4551 23.3159 11.4551 24.3103V26H8ZM31.6923 26H28.2372V24.3103C28.2372 23.3159 27.8818 22.4083 27.2994 21.7517C29.8265 22.08 31.6923 23.2097 31.6923 24.5517V26Z",fill:"white"})),Au=Y5e;var wF=({width:e="100%",height:t="100%"})=>R.createElement("div",{className:Ie.storyPreviewWrapper,style:{width:e,height:t}},R.createElement("div",{className:Ie.storyPreviewContainer},R.createElement("div",{className:Ie.shadowOverlay}),R.createElement("div",{className:Ie.headerContainer},R.createElement("div",{className:Ie.headerContent},R.createElement("div",{className:Ie.userInfo},R.createElement("div",{className:Ie.userInfoContent},R.createElement("div",{className:sr(Ie.avatarContainer,Ie.skeleton)}),R.createElement("div",{className:Ie.textSkeleton},R.createElement("div",{className:sr(Ie.nameSkeleton,Ie.skeleton)}),R.createElement("div",{className:sr(Ie.timeSkeleton,Ie.skeleton)})))))),R.createElement("div",{className:Ie.contentWrapper},R.createElement("div",{className:sr(Ie.mediaContainer,Ie.skeleton)}))));var _F=({mediaType:e,hyperLink:t,width:o="100%",height:r="100%",onPlay:n,onPause:i,avatar:a,title:s,duration:l=5e3,isOfficial:d=!0,imageMode:p})=>{var E,V,G,q;let[u,g]=useState(!0),[f,y]=useState(0),[v,C]=useState([]),h=useRef(null),x=useRef(null),[b,M]=useState(!0),[I,w]=useState(!1),k,T=()=>{g(!0),n&&n();},L=()=>{g(!1),i&&i();},D=()=>{(e==null?void 0:e.type)==="video"&&h.current?(h.current.currentTime=0,h.current.play()):(e==null?void 0:e.type)==="image"&&g(!1);},U=()=>{(e==null?void 0:e.type)==="video"&&h.current&&(h.current.currentTime=0,h.current.play(),y(0));},j=()=>{u?(L(),(e==null?void 0:e.type)==="video"&&h.current&&h.current.pause()):(T(),(e==null?void 0:e.type)==="video"&&h.current&&h.current.play());};return useEffect(()=>{let O=H=>_(void 0,null,function*(){let z=new Image;z.crossOrigin="Anonymous",z.src=H,z.onload=()=>{let Q=new Mce().getPalette(z,2);if(Q){let B=Q.map($=>`rgb(${$[0]}, ${$[1]}, ${$[2]})`);C(B),M(!1);}},z.onerror=()=>{console.error("Error loading image for color extraction"),C([]),M(!1);};});return e!=null&&e.url&&(e==null?void 0:e.type)==="image"?O(e.url):(C([]),M(!1)),()=>{C([]),M(!0);}},[e==null?void 0:e.url]),useEffect(()=>(u?k=setInterval(()=>{if((e==null?void 0:e.type)==="video"&&h.current){let O=h.current.currentTime,H=h.current.duration,z=O/H*100;y(z),z>=100&&(clearInterval(k),D());}else (e==null?void 0:e.type)==="image"&&I&&y(O=>O>=100?(clearInterval(k),D(),100):O+100/(l/100));},100):clearInterval(k),()=>{clearInterval(k);}),[u,e,l,I]),b?R.createElement(wF,null):R.createElement("div",{className:Ie.storyPreviewWrapper,style:{width:o,height:r}},R.createElement("div",{className:Ie.storyPreviewContainer},R.createElement("div",{className:Ie.headerContainer},R.createElement("div",{className:Ie.progressBar},R.createElement("div",{className:Ie.progressFill,style:{width:`${f}%`}})),R.createElement("div",{className:Ie.headerContent},R.createElement("div",{className:Ie.userInfo},R.createElement("div",{className:Ie.userInfoContent},R.createElement("div",{className:Ie.avatarContainer},R.createElement(vt,{avatarUrl:a,defaultImage:R.createElement(Au,null)})),R.createElement(S.BodyBold,{className:Ie.storyPreviewTitle},R.createElement("span",{className:Ie.nameContainer},s," ",d&&R.createElement(d1,{fill:"white"})))),(e==null?void 0:e.type)==="video"&&R.createElement("div",{onClick:j},u?R.createElement(As,{width:24,height:24}):R.createElement(wo,{width:24,height:24}))))),R.createElement("div",{className:Ie.contentWrapper},R.createElement("div",{className:Ie.mediaContainer,style:{background:`linear-gradient(
|
|
5316
5317
|
180deg,
|
|
5317
5318
|
${v[0]||"#000"} 0%,
|
|
5318
5319
|
${v[1]||"#000"} 100%
|
|
5319
|
-
)`}},(e==null?void 0:e.type)==="video"?R.createElement("video",{ref:h,src:e.url,className:Ie.media,loop:!0,autoPlay:!0,muted:!0,onEnded:U}):R.createElement(R.Fragment,null,!b&&v.length>0&&R.createElement("img",{ref:x,src:e==null?void 0:e.url,alt:"Story",onLoad:()=>w(!0),className:sr(Ie.media,{[Ie.imageFit]:p==="fit",[Ie.imageCover]:p==="fill"})})),R.createElement("div",{className:Ie.shadowOverlay})),R.createElement("div",{className:Ie.hyperLinkContainer},((V=(E=t[0])==null?void 0:E.data)==null?void 0:V.url)&&R.createElement(Ci,{href:t[0].data.url.startsWith("http")?t[0].data.url:`https://${t[0].data.url}`,target:"_blank",rel:"noopener noreferrer"},R.createElement(mw,{lines:1},R.createElement("span",null,((q=(G=t[0])==null?void 0:G.data)==null?void 0:q.customText)||t[0].data.url)))))))};var Ge={containerWrapper:"
|
|
5320
|
+
)`}},(e==null?void 0:e.type)==="video"?R.createElement("video",{ref:h,src:e.url,className:Ie.media,loop:!0,autoPlay:!0,muted:!0,onEnded:U}):R.createElement(R.Fragment,null,!b&&v.length>0&&R.createElement("img",{ref:x,src:e==null?void 0:e.url,alt:"Story",onLoad:()=>w(!0),className:sr(Ie.media,{[Ie.imageFit]:p==="fit",[Ie.imageCover]:p==="fill"})})),R.createElement("div",{className:Ie.shadowOverlay})),R.createElement("div",{className:Ie.hyperLinkContainer},((V=(E=t[0])==null?void 0:E.data)==null?void 0:V.url)&&R.createElement(Ci,{href:t[0].data.url.startsWith("http")?t[0].data.url:`https://${t[0].data.url}`,target:"_blank",rel:"noopener noreferrer"},R.createElement(mw,{lines:1},R.createElement("span",null,((q=(G=t[0])==null?void 0:G.data)==null?void 0:q.customText)||t[0].data.url)))))))};var Ge={containerWrapper:"Ru",storyPreviewAvatar:"Uu",storyPreviewContainer:"d",thumbnailMedia:"M",thumbnailInfo:"Bu",userInfo:"Du",storyPreviewTitle:"Hu",nameContainer:"Lu",hyperLinkContainer:"Tu",hyperlink__icon:"Vu",hyperlink:"qu",thumbnailImage:"Gu",imageFit:"Ju",imageCover:"Ku",hyperlinkPosition:"Nu",hyperlinkIcon:"Ou",hyperlinkText:"Pu",header:"Qu",skeleton:"Wu",pulse:"Vr",avatarSkeleton:"Zu",textSkeleton:"_u",nameSkeleton:"e1",timeSkeleton:"r1",skeletonContainer:"a1",shadowOverlay:"o1",fallbackThumbnail:"t1"};var TF=()=>R.createElement("div",{className:sr(Ge.skeletonContainer,Ge.skeleton)},R.createElement("div",{className:Ge.header},R.createElement("div",{className:sr(Ge.avatarSkeleton,Ge.skeleton)}),R.createElement("div",{className:Ge.textSkeleton},R.createElement("div",{className:sr(Ge.nameSkeleton,Ge.skeleton)}),R.createElement("div",{className:sr(Ge.timeSkeleton,Ge.skeleton)}))));var SF=({thumbnailUrl:e,hyperLink:t,avatar:o,title:r,isOfficial:n=!1,onClick:i,imageMode:a="fill"})=>{var v,C,h,x;let[s,l]=useState(""),[d,p]=useState(!1),[u,g]=useState(!0),f=useRef(null);useEffect(()=>{if(g(!0),p(!1),!e){l(""),p(!0),g(!1);return}let b=new Image;return b.crossOrigin="anonymous",b.src=e,b.onload=()=>{if(f.current){let M=new Mce;try{let I=M.getPalette(b,2);if(I){let w=`linear-gradient(
|
|
5320
5321
|
180deg,
|
|
5321
5322
|
rgb(${I[0].join(",")}) 0%,
|
|
5322
5323
|
rgb(${I[1].join(",")}) 100%
|
|
5323
|
-
)`;l(w);}}catch(I){console.error("Error extracting colors:",I),l("");}}g(!1);},b.onerror=()=>{p(!0),g(!1);},()=>{b.onload=null,b.onerror=null;}},[e]);let y=()=>d||!e?R.createElement("div",{className:Ge.fallbackThumbnail},R.createElement(S.Body,null,"No Image Available")):R.createElement(R.Fragment,null,R.createElement("img",{ref:f,src:e,alt:"Story Thumbnail",className:sr(Ge.thumbnailImage,{[Ge.imageFit]:a==="fit",[Ge.imageCover]:a==="fill"}),crossOrigin:"anonymous"}),R.createElement("div",{className:Ge.shadowOverlay}));return u?R.createElement(TF,null):R.createElement("div",{className:Ge.containerWrapper,onClick:i,style:{background:s||"#000"}},R.createElement("div",{className:Ge.storyPreviewContainer},R.createElement("div",{className:Ge.thumbnailMedia},y()),R.createElement("div",{className:Ge.thumbnailInfo},R.createElement("div",{className:Ge.userInfo},R.createElement("div",{className:Ge.storyPreviewAvatar},R.createElement(vt,{avatarUrl:o,defaultImage:R.createElement(Au,null)})),R.createElement(S.BodyBold,{className:Ge.storyPreviewTitle},R.createElement("span",{className:Ge.nameContainer},R.createElement(mw,{lines:1},R.createElement("span",null,r))," ",n&&R.createElement(d1,{width:12,height:12,fill:"white"}))))),((C=(v=t[0])==null?void 0:v.data)==null?void 0:C.url)&&R.createElement("a",{href:t[0].data.url,className:sr(Ge.hyperlink,Ge.hyperlinkPosition)},R.createElement(Ic,{className:Ge.hyperlinkIcon}),R.createElement("span",{className:Ge.hyperlinkText},((x=(h=t[0])==null?void 0:h.data)==null?void 0:x.customText)||t[0].data.url))))};var sue=({type:e,targetId:t})=>{let o="story_page",{AmityStoryViewPageBehavior:r}=xt(),{onBack:n,goToViewStoryPage:i,goToDraftStoryPage:a,onClickCommunity:s}=Le();return e==="communityFeed"?R.createElement(iu,{pageId:o,communityId:t,onBack:n,onClose:l=>s(l),onSwipeDown:l=>s(l),onClickCommunity:l=>s(l),goToDraftStoryPage:(l,d,p,u)=>a(l,d,p,u)}):e==="globalFeed"?R.createElement(au,{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,d,p,u)=>a(l,d,p,u),onClickCommunity:l=>s(l)}):null},Nf=sue;var Li={selectStoryTargetPage:"tv",selectStoryTargetPage__topBar:"iv",selectStoryTargetPage__timeline:"sv",selectStoryTargetPage__line:"cv",selectStoryTargetPage__myCommunities__container:"nv",selectStoryTargetPage__myCommunities:"lv",selectStoryTargetPage__communityAvatar:"dv",selectStoryTargetPage__closeButton:"mv",selectStoryTargetPage__title:"gv"};function Ef(){let e="select_story_target_page",{themeStyles:t}=Xe({pageId:e}),{onBack:o}=Le(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}}),{AmityStoryTargetSelectionPage:s}=xt(),{file:l,setFile:d}=fi(),[p,u]=useState(null),[g,f]=useState(null),y=h=>{f(h);},v=h=>{h&&h.length>0&&g&&d(h[0]);},C=r.map(h=>R.createElement(FileTrigger,{key:h.communityId,onSelect:v},R.createElement(F,{onPress:()=>y(h.communityId)},R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities},R.createElement("div",{className:Li.selectStoryTargetPage__communityAvatar},R.createElement(Or,{pageId:e,community:h})),R.createElement(ua,{pageId:e,community:h}),R.createElement("div",null,h.isOfficial&&R.createElement(k1,null),!h.isPublic&&R.createElement(S1,null))))));return ko({onIntersect:()=>{n&&a===!1&&i();},node:p}),useEffect(()=>{var h;l&&((h=s==null?void 0:s.goToStoryCreationPage)==null||h.call(s,{targetId:g,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]),R.createElement("div",{className:Li.selectStoryTargetPage,style:t},R.createElement("div",{className:Li.selectStoryTargetPage__topBar},R.createElement(Mr,{imgClassName:Li.selectStoryTargetPage__closeButton,pageId:e,onPress:o}),R.createElement(H1,{pageId:e,titleClassName:Li.selectStoryTargetPage__title}),R.createElement("div",null)),R.createElement("div",{className:Li.selectStoryTargetPage__line}),R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities},"My Communities"),R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities__container},C),R.createElement("div",{ref:h=>u(h)}))}var Ai={selectPostTargetPage:"hv",selectPostTargetPage__topBar:"pv",selectPostTargetPage__timeline:"fv",selectPostTargetPage__line:"uv",selectPostTargetPage__myCommunities:"bv",selectPostTargetPage__communityAvatar:"vv",selectPostTargetPage__closeButton:"xv",selectPostTargetPage__title:"wv"};var Bf={myTimelineAvatar:"yv",myTimelineAvatar__userAvatar:"kv"};function Lf({pageId:e="*",componentId:t="*",userId:o}){let r="my_timeline_avatar",{accessibilityId:n,isExcluded:i}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("div",{className:Bf.myTimelineAvatar,"data-qa-anchor":n},R.createElement(Vo,{className:Bf.myTimelineAvatar__userAvatar,userId:o}))}var LF={myTimelineText:"jv"};function Af({pageId:e="*",componentId:t="*"}){let o="my_timeline_text",{accessibilityId:r,config:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:o});return i?null:R.createElement(S.Body,{className:LF.myTimelineText,style:c({},a),"data-qa-anchor":r},n.text)}function Df(){let e="select_post_target_page",{themeStyles:t}=Xe({pageId:e}),{onBack:o}=Le(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}}),{AmityPostTargetSelectionPage:s}=xt(),[l,d]=useState(null),{currentUserId:p}=De(),{user:u}=pr(p);ko({onIntersect:()=>{n&&a===!1&&i();},node:l});let g=r.map(f=>R.createElement("div",{onClick:()=>{var y;(y=s==null?void 0:s.goToPostComposerPage)==null||y.call(s,{targetId:f.communityId,targetType:"community",mode:"create",community:f});},key:f.communityId,className:Ai.selectPostTargetPage__timeline},R.createElement("div",{className:Ai.selectPostTargetPage__communityAvatar},R.createElement(Or,{pageId:e,community:f})),R.createElement(ua,{pageId:e,community:f}),R.createElement("div",null,f.isOfficial&&R.createElement(k1,null),!f.isPublic&&R.createElement(S1,null))));return R.createElement("div",{className:Ai.selectPostTargetPage,style:t},R.createElement("div",{className:Ai.selectPostTargetPage__topBar},R.createElement(Mr,{imgClassName:Ai.selectPostTargetPage__closeButton,pageId:e,onPress:o}),R.createElement(H1,{pageId:e,titleClassName:Ai.selectPostTargetPage__title}),R.createElement("div",null)),R.createElement(F,{onPress:()=>{var f;(f=s==null?void 0:s.goToPostComposerPage)==null||f.call(s,{mode:"create",targetId:null,targetType:"user",community:void 0});},className:Ai.selectPostTargetPage__timeline},R.createElement(Lf,{pageId:e,userId:u==null?void 0:u.userId}),R.createElement(Af,{pageId:e})),R.createElement("div",{className:Ai.selectPostTargetPage__line}),R.createElement("div",{className:Ai.selectPostTargetPage__myCommunities},"My Communities"),g,R.createElement("div",{ref:f=>d(f)}))}var AF={myCommunitiesSearchPage:"zv"};function Od(e,t){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=P(n,["items"]);return c({communities:o},r)}function Ff(){let e="my_communities_search_page",{themeStyles:t}=Xe({pageId:e}),[o,r]=useState(""),{communities:n,isLoading:i,hasMore:a,loadMore:s}=Od({displayName:o,limit:20,membership:"member"});return R.createElement("div",{className:AF.myCommunitiesSearchPage,style:t},R.createElement(Qm,{pageId:e,search:l=>r(l)}),o.length>0&&R.createElement(hs,{pageId:e,communityCollection:n,isLoading:i,onLoadMore:()=>{a&&i===!1&&s();}}))}var DF={socialGlobalSearchPage:"Xv",socialGlobalSearchPage__tabs:"Yv",socialGlobalSearchPage__postContents:"Av"};var Fu={tabsRoot:"Vv",tabsList:"qv",tabsTrigger:"Nr"};var Of=({tabs:e,activeTab:t,onTabChange:o,pageId:r="*",componentId:n="*",elementId:i="*"})=>{let{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:r,componentId:n,elementId:i});return R.createElement(ks.Root,{style:u,className:Fu.tabsRoot,value:t,onValueChange:g=>o(g)},R.createElement(ks.List,{className:Fu.tabsList},e.map(g=>R.createElement(ks.Trigger,{value:g.value,className:Fu.tabsTrigger},R.createElement(S.Title,null,g.label)))),e.map(g=>R.createElement(ks.Content,{value:g.value},g.content())))};var wue=()=>{let[e,t]=useState(""),[o,r]=useState("community"),n=useMemo(()=>o==="user"&&e.length>0,[o,e]),i=Od({displayName:e,limit:20},o==="community"&&e.length>0),a=cl({displayName:e,limit:20,enabled:n}),s=useCallback(l=>{t(l);},[t]);return {userCollection:a,communityCollection:i,searchType:o,search:s,searchValue:e,setSearchType:r}};function Uf(){let e="social_global_search_page",{themeStyles:t}=Xe({pageId:e}),[o,r]=useState("communities"),{userCollection:n,communityCollection:i,search:a,searchValue:s,setSearchType:l}=wue(),d=[{value:"communities",label:"Communities",content:()=>R.createElement(hs,{pageId:e,communityCollection:i.communities,isLoading:i.isLoading,onLoadMore:()=>{i.hasMore&&i.isLoading===!1&&i.loadMore();}})},{value:"users",label:"Users",content:()=>R.createElement(b5,{pageId:e,userCollection:n.users,isLoading:n.isLoading,onLoadMore:()=>{n.hasMore&&n.isLoading===!1&&n.loadMore();}})}];return R.createElement("div",{className:DF.socialGlobalSearchPage,style:t},R.createElement(Qm,{pageId:e,search:a}),s.length>0&&R.createElement(Of,{pageId:e,tabs:d,activeTab:o,onTabChange:p=>{r(p),l(p==="communities"?"community":"user");}}))}var Wn={postDetailPage:"Bv",postDetailPage__container:"Or",postDetailPage__topBar:"Cv",postDetailPage__topBar__title:"Dv",postDetailPage__topBar__menuBar:"Ev",postDetailPage__backIcon:"Fv",postDetailPage__comments__divider:"Pr","skeleton-pulse":"Qr",postDetailPage__reactions_and_comments:"Gv",postDetailPage__reactionsBar:"Hv",postDetailPage__commentsCount:"Iv",postDetailPage__comments:"Jv",postDetailPage__divider:"Kv",postDetailPage__notMember:"Lv"};function $f({id:e,hideTarget:t,category:o}){let r="post_detail_page",{post:n,isLoading:i}=Pi(e),{themeStyles:a}=Xe({pageId:r}),{onBack:s}=Le(),[l,d]=useState(),{setDrawerData:p,removeDrawerData:u}=Wm(),{community:g}=Mt({communityId:(n==null?void 0:n.targetType)==="community"?n.targetId:null});return R.createElement("div",{className:Wn.postDetailPage,style:a},R.createElement("div",{className:Wn.postDetailPage__container},R.createElement("div",null,i?R.createElement(nd,{pageId:r}):n?R.createElement(pn,{pageId:r,post:n,category:o!=null?o:"general",style:"detail",hideTarget:t}):null),R.createElement("div",{className:Wn.postDetailPage__comments__divider,"data-is-loading":i}),R.createElement("div",{className:Wn.postDetailPage__comments},n&&R.createElement(Hc,{referenceId:n.postId,referenceType:"post",onClickReply:f=>d(f)}))),R.createElement("div",{className:Wn.postDetailPage__topBar},R.createElement(wm,{pageId:r,defaultClassName:Wn.postDetailPage__backIcon,onPress:()=>s()}),R.createElement(S.Title,{className:Wn.postDetailPage__topBar__title},"Post"),R.createElement("div",{className:Wn.postDetailPage__topBar__menuBar},R.createElement(Yc,{pageId:r,onClick:()=>p({content:R.createElement(E5,{post:n,onCloseMenu:()=>u(),pageId:r})})}))),(n==null?void 0:n.targetType)==="community"&&!(g!=null&&g.isJoined)?R.createElement("div",null,R.createElement("div",{className:Wn.postDetailPage__divider}),R.createElement(S.Body,{className:Wn.postDetailPage__notMember},"Join community to interact with all posts")):n&&R.createElement(Sc,{referenceId:n.postId,referenceType:"post",replyTo:l,onCancelReply:()=>d(void 0),community:g}))}var Ou={communityProfilePage__container:"Mv",communityProfilePage__header:"Nv",communityProfilePage__content:"Ov",communityProfilePage__refreshIndicator:"Pv",communityProfilePage__tabContainer:"Rr",sticky:"Qv",communityProfilePage__createPostButton:"Rv",communityProfilePage__pullToRefresh:"Sv",communityProfilePage__pullToRefresh__spinner:"Tv",spin:"Uv"};var Oo={communityProfileSkeleton__container:"Wv",communityProfileSkeleton__headerImage:"Sr",communityProfileSkeleton__content:"Zv",communityProfileSkeleton__title:"Tr",communityProfileSkeleton__category__container:"_v",communityProfileSkeleton__category__item:"e1",communityProfileSkeleton__description:"Ur",communityProfileSkeleton__communityInfo__container:"r1",communityProfileSkeleton__communityInfo__info:"a1",communityProfileSkeleton__storyTab:"o1",communityProfileSkeleton__storyTab__title:"t1",pulse:"Wr",communityProfileSkeleton__tag:"i1",communityProfileSkeleton__stat:"s1",communityProfileSkeleton__avatar:"c1",communityProfileSkeleton__username:"n1"};var HF=()=>R.createElement("div",{className:Oo.communityProfileSkeleton__container},R.createElement("div",{className:Oo.communityProfileSkeleton__headerImage}),R.createElement("div",{className:Oo.communityProfileSkeleton__content},R.createElement("div",{className:Oo.communityProfileSkeleton__title}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__container},R.createElement("div",{className:Oo.communityProfileSkeleton__category__item}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__item}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__item})),R.createElement("div",{className:Oo.communityProfileSkeleton__description}),R.createElement("div",{className:Oo.communityProfileSkeleton__description}),R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__container},R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__info}),R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__info})),R.createElement("div",{className:Oo.communityProfileSkeleton__storyTab}),R.createElement("div",{className:Oo.communityProfileSkeleton__storyTab__title})));var zu={emptyPinnedPost__container:"l1",emptyPinnedPost__text:"d1",emptyPinnedPost__icon:"m1"};var jf=({pageId:e="*"})=>{let t="empty_pinned_post",{config:o,accessibilityId:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:t});return n?null:R.createElement("div",{"data-qa-anchor":r,className:zu.emptyPinnedPost__container,style:i},R.createElement(K5,{className:zu.emptyPinnedPost__icon}),R.createElement(S.Title,{className:zu.emptyPinnedPost__text},"No pinned post yet"))};var Uu={communityPin__container:"g1",communityPin__feed:"h1"};var Gf=({pageId:e="*",communityId:t})=>{let o="community_pin",{accessibilityId:r,themeStyles:n,isExcluded:i}=te({pageId:e,componentId:o});if(i)return null;let{community:a}=Mt({communityId:t,shouldCall:!!t}),{AmityCommunityProfilePageBehavior:s}=xt();gd({communityId:t,level:SubscriptionLevels.POST});let{pinnedPost:l,isLoading:d,refresh:p}=fd({communityId:t}),u=(a==null?void 0:a.isJoined)&&!(a!=null&&a.isPublic);useEffect(()=>{p();},[]);let g=l.filter(h=>h.placement==="announcement"&&l.some(x=>x.placement==="default"&&x.referenceId===h.referenceId)),f=l.filter(h=>h.placement==="default").filter(h=>!g.some(x=>x.referenceId===h.referenceId)),y=l.filter(h=>h.placement==="default"),v=()=>d?R.createElement(yd,null):g&&g.map(({post:h})=>R.createElement(F,{onPress:()=>{var x;(x=s==null?void 0:s.goToPostDetailPage)==null||x.call(s,{postId:h.postId,hideTarget:!0,category:"pin_and_announcement"});},className:Uu.communityPin__feed},R.createElement(pn,{key:h.postId,post:h,category:"pin_and_announcement",style:"feed",hideTarget:!0,onClick:()=>{var x;return (x=s==null?void 0:s.goToPostDetailPage)==null?void 0:x.call(s,{postId:h.postId,hideTarget:!0,category:h.category})},onPostDeleted:()=>p()}))),C=()=>{let h=g.length>0?f:y;return d?R.createElement(yd,null):h.map(({post:x})=>R.createElement(F,{onPress:()=>{var b;(b=s==null?void 0:s.goToPostDetailPage)==null||b.call(s,{postId:x.postId,hideTarget:!0,category:"pin"});},className:Uu.communityPin__feed},R.createElement(pn,{key:x.postId,post:x,category:"pin",style:"feed",hideTarget:!0,onClick:()=>{var b;return (b=s==null?void 0:s.goToPostDetailPage)==null?void 0:b.call(s,{postId:x.postId,hideTarget:!0,category:"pin"})},onPostDeleted:()=>p()})))};return R.createElement("div",{"data-qa-anchor":r,className:Uu.communityPin__container,style:n},u||a!=null&&a.isPublic?l.length>0?R.createElement(R.Fragment,null,v(),C()):R.createElement(jf,null):R.createElement(ud,null))};var FF=({props:e,className:t})=>R.createElement("div",{className:t},R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1122 5C11.1122 5.39449 10.7924 5.71429 10.3979 5.71429C10.0035 5.71429 9.68366 5.39449 9.68366 5V0.714286C9.68366 0.319797 10.0035 0 10.3979 0C10.7924 0 11.1122 0.319797 11.1122 0.714286V5ZM8.25509 6.28846C8.59673 6.09122 8.71378 5.65437 8.51654 5.31273L6.37368 1.60119C6.17644 1.25955 5.73959 1.1425 5.39795 1.33975C5.05631 1.53699 4.93926 1.97384 5.1365 2.31548L7.27936 6.02702C7.4766 6.36865 7.91346 6.48571 8.25509 6.28846ZM6.42496 6.88141C6.7666 7.07865 6.88366 7.51551 6.68641 7.85714C6.48917 8.19878 6.05232 8.31583 5.71068 8.11859L1.99914 5.97573C1.6575 5.77849 1.54045 5.34164 1.7377 5C1.93494 4.65836 2.37179 4.54131 2.71343 4.73855L6.42496 6.88141ZM6.11224 10C6.11224 9.60551 5.79244 9.28571 5.39795 9.28571H1.11223C0.717746 9.28571 0.397949 9.60551 0.397949 10C0.397949 10.3945 0.717746 10.7143 1.11224 10.7143H5.39795C5.79244 10.7143 6.11224 10.3945 6.11224 10ZM5.71068 11.8814C6.05232 11.6842 6.48917 11.8012 6.68641 12.1429C6.88366 12.4845 6.7666 12.9213 6.42497 13.1186L2.71343 15.2614C2.37179 15.4587 1.93494 15.3416 1.7377 15C1.54045 14.6584 1.6575 14.2215 1.99914 14.0243L5.71068 11.8814ZM8.25509 13.7115C7.91345 13.5143 7.4766 13.6313 7.27936 13.973L5.1365 17.6845C4.93926 18.0262 5.05631 18.463 5.39795 18.6603C5.73959 18.8575 6.17644 18.7404 6.37368 18.3988L8.51654 14.6873C8.71378 14.3456 8.59673 13.9088 8.25509 13.7115ZM10.3979 14.2857C10.0035 14.2857 9.68366 14.6055 9.68366 15V19.2857C9.68366 19.6802 10.0035 20 10.3979 20C10.7924 20 11.1122 19.6802 11.1122 19.2857V15C11.1122 14.6055 10.7924 14.2857 10.3979 14.2857ZM12.5408 6.28846C12.8824 6.48571 13.3193 6.36865 13.5165 6.02702L15.6594 2.31548C15.8566 1.97384 15.7396 1.53699 15.3979 1.33975C15.0563 1.1425 14.6195 1.25956 14.4222 1.60119L12.2794 5.31273C12.0821 5.65437 12.1992 6.09122 12.5408 6.28846ZM15.0852 8.11859C14.7436 8.31583 14.3067 8.19878 14.1095 7.85714C13.9122 7.51551 14.0293 7.07866 14.3709 6.88141L18.0825 4.73855C18.4241 4.54131 18.861 4.65836 19.0582 5C19.2554 5.34164 19.1384 5.77849 18.7968 5.97573L15.0852 8.11859ZM14.6837 10C14.6837 10.3945 15.0035 10.7143 15.3979 10.7143H19.6837C20.0782 10.7143 20.3979 10.3945 20.3979 10C20.3979 9.60551 20.0782 9.28571 19.6837 9.28571H15.3979C15.0035 9.28571 14.6837 9.60551 14.6837 10ZM14.3709 13.1186C14.0293 12.9213 13.9122 12.4845 14.1095 12.1429C14.3067 11.8012 14.7436 11.6842 15.0852 11.8814L18.7968 14.0243C19.1384 14.2215 19.2554 14.6584 19.0582 15C18.861 15.3416 18.4241 15.4587 18.0825 15.2614L14.3709 13.1186ZM12.5408 13.7115C12.1992 13.9088 12.0821 14.3456 12.2794 14.6873L14.4222 18.3988C14.6195 18.7404 15.0563 18.8575 15.3979 18.6603C15.7396 18.463 15.8566 18.0262 15.6594 17.6845L13.5165 13.973C13.3193 13.6313 12.8824 13.5143 12.5408 13.7115Z",fill:"url(#paint0_angular_1709_10374)"}),R.createElement("defs",null,R.createElement("radialGradient",{id:"paint0_angular_1709_10374",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.3979 10) scale(10)"},R.createElement("stop",{offset:"0.669733",stopColor:"#595F67"}),R.createElement("stop",{offset:"0.716307",stopColor:"#262626",stopOpacity:"0.01"})))));var Zf=({communityId:e})=>{let{activeTab:t}=j5(),o="community_profile_page",{themeStyles:r,accessibilityId:n}=Xe({pageId:o}),{community:i}=Mt({communityId:e,shouldCall:!!e}),a=useRef(null),s=useRef(0),[l,d]=useState(0),[p,u]=useState(0),g=()=>{switch(t){case"community_feed":return R.createElement(X5,{pageId:o,communityId:e});case"community_pin":return R.createElement(Gf,{pageId:o,communityId:e});default:return null}},f=()=>_(void 0,null,function*(){u(y=>y+1);});return R.createElement("div",{ref:a,"data-qa-anchor":n,className:Ou.communityProfilePage__container,style:r,onDrag:y=>y.stopPropagation(),onTouchStart:y=>{s.current=y.touches[0].clientY;},onTouchMove:y=>{let v=y.touches[0].clientY;s.current>v||d(Math.min(v-s.current,100));},onTouchEnd:y=>{s.current=0,l>=75&&f(),d(0);}},R.createElement("div",{style:{"--asc-pull-to-refresh-height":`${l}px`},className:Ou.communityProfilePage__pullToRefresh},R.createElement(FF,{className:Ou.communityProfilePage__pullToRefresh__spinner})),i?R.createElement(q5,{community:i}):R.createElement(HF,null),R.createElement("div",{key:p},g()))};
|
|
5324
|
+
)`;l(w);}}catch(I){console.error("Error extracting colors:",I),l("");}}g(!1);},b.onerror=()=>{p(!0),g(!1);},()=>{b.onload=null,b.onerror=null;}},[e]);let y=()=>d||!e?R.createElement("div",{className:Ge.fallbackThumbnail},R.createElement(S.Body,null,"No Image Available")):R.createElement(R.Fragment,null,R.createElement("img",{ref:f,src:e,alt:"Story Thumbnail",className:sr(Ge.thumbnailImage,{[Ge.imageFit]:a==="fit",[Ge.imageCover]:a==="fill"}),crossOrigin:"anonymous"}),R.createElement("div",{className:Ge.shadowOverlay}));return u?R.createElement(TF,null):R.createElement("div",{className:Ge.containerWrapper,onClick:i,style:{background:s||"#000"}},R.createElement("div",{className:Ge.storyPreviewContainer},R.createElement("div",{className:Ge.thumbnailMedia},y()),R.createElement("div",{className:Ge.thumbnailInfo},R.createElement("div",{className:Ge.userInfo},R.createElement("div",{className:Ge.storyPreviewAvatar},R.createElement(vt,{avatarUrl:o,defaultImage:R.createElement(Au,null)})),R.createElement(S.BodyBold,{className:Ge.storyPreviewTitle},R.createElement("span",{className:Ge.nameContainer},R.createElement(mw,{lines:1},R.createElement("span",null,r))," ",n&&R.createElement(d1,{width:12,height:12,fill:"white"}))))),((C=(v=t[0])==null?void 0:v.data)==null?void 0:C.url)&&R.createElement("a",{href:t[0].data.url,className:sr(Ge.hyperlink,Ge.hyperlinkPosition)},R.createElement(Ic,{className:Ge.hyperlinkIcon}),R.createElement("span",{className:Ge.hyperlinkText},((x=(h=t[0])==null?void 0:h.data)==null?void 0:x.customText)||t[0].data.url))))};var sue=({type:e,targetId:t})=>{let o="story_page",{AmityStoryViewPageBehavior:r}=xt(),{onBack:n,goToViewStoryPage:i,goToDraftStoryPage:a,onClickCommunity:s}=Le();return e==="communityFeed"?R.createElement(iu,{pageId:o,communityId:t,onBack:n,onClose:l=>s(l),onSwipeDown:l=>s(l),onClickCommunity:l=>s(l),goToDraftStoryPage:(l,d,p,u)=>a(l,d,p,u)}):e==="globalFeed"?R.createElement(au,{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,d,p,u)=>a(l,d,p,u),onClickCommunity:l=>s(l)}):null},N9=sue;var Li={selectStoryTargetPage:"i1",selectStoryTargetPage__topBar:"l1",selectStoryTargetPage__timeline:"s1",selectStoryTargetPage__line:"c1",selectStoryTargetPage__myCommunities__container:"n1",selectStoryTargetPage__myCommunities:"d1",selectStoryTargetPage__communityAvatar:"m1",selectStoryTargetPage__closeButton:"p1",selectStoryTargetPage__title:"g1"};function E9(){let e="select_story_target_page",{themeStyles:t}=Xe({pageId:e}),{onBack:o}=Le(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}}),{AmityStoryTargetSelectionPage:s}=xt(),{file:l,setFile:d}=fi(),[p,u]=useState(null),[g,f]=useState(null),y=h=>{f(h);},v=h=>{h&&h.length>0&&g&&d(h[0]);},C=r.map(h=>R.createElement(FileTrigger,{key:h.communityId,onSelect:v},R.createElement(F,{onPress:()=>y(h.communityId)},R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities},R.createElement("div",{className:Li.selectStoryTargetPage__communityAvatar},R.createElement(Or,{pageId:e,community:h})),R.createElement(ua,{pageId:e,community:h}),R.createElement("div",null,h.isOfficial&&R.createElement(k1,null),!h.isPublic&&R.createElement(S1,null))))));return ko({onIntersect:()=>{n&&a===!1&&i();},node:p}),useEffect(()=>{var h;l&&((h=s==null?void 0:s.goToStoryCreationPage)==null||h.call(s,{targetId:g,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]),R.createElement("div",{className:Li.selectStoryTargetPage,style:t},R.createElement("div",{className:Li.selectStoryTargetPage__topBar},R.createElement(Mr,{imgClassName:Li.selectStoryTargetPage__closeButton,pageId:e,onPress:o}),R.createElement(H1,{pageId:e,titleClassName:Li.selectStoryTargetPage__title}),R.createElement("div",null)),R.createElement("div",{className:Li.selectStoryTargetPage__line}),R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities},"My Communities"),R.createElement("div",{className:Li.selectStoryTargetPage__myCommunities__container},C),R.createElement("div",{ref:h=>u(h)}))}var Ai={selectPostTargetPage:"h1",selectPostTargetPage__topBar:"f1",selectPostTargetPage__timeline:"b1",selectPostTargetPage__line:"u1",selectPostTargetPage__myCommunities:"v1",selectPostTargetPage__communityAvatar:"x1",selectPostTargetPage__closeButton:"w1",selectPostTargetPage__title:"y1"};var B9={myTimelineAvatar:"k1",myTimelineAvatar__userAvatar:"j1"};function L9({pageId:e="*",componentId:t="*",userId:o}){let r="my_timeline_avatar",{accessibilityId:n,isExcluded:i}=A({pageId:e,componentId:t,elementId:r});return i?null:R.createElement("div",{className:B9.myTimelineAvatar,"data-qa-anchor":n},R.createElement(Vo,{className:B9.myTimelineAvatar__userAvatar,userId:o}))}var LF={myTimelineText:"z1"};function A9({pageId:e="*",componentId:t="*"}){let o="my_timeline_text",{accessibilityId:r,config:n,isExcluded:i,themeStyles:a}=A({pageId:e,componentId:t,elementId:o});return i?null:R.createElement(S.Body,{className:LF.myTimelineText,style:c({},a),"data-qa-anchor":r},n.text)}function D9(){let e="select_post_target_page",{themeStyles:t}=Xe({pageId:e}),{onBack:o}=Le(),{communities:r,hasMore:n,loadMore:i,isLoading:a}=D1({queryParams:{sortBy:"displayName",limit:20,membership:"member"}}),{AmityPostTargetSelectionPage:s}=xt(),[l,d]=useState(null),{currentUserId:p}=De(),{user:u}=pr(p);ko({onIntersect:()=>{n&&a===!1&&i();},node:l});let g=r.map(f=>R.createElement("div",{onClick:()=>{var y;(y=s==null?void 0:s.goToPostComposerPage)==null||y.call(s,{targetId:f.communityId,targetType:"community",mode:"create",community:f});},key:f.communityId,className:Ai.selectPostTargetPage__timeline},R.createElement("div",{className:Ai.selectPostTargetPage__communityAvatar},R.createElement(Or,{pageId:e,community:f})),R.createElement(ua,{pageId:e,community:f}),R.createElement("div",null,f.isOfficial&&R.createElement(k1,null),!f.isPublic&&R.createElement(S1,null))));return R.createElement("div",{className:Ai.selectPostTargetPage,style:t},R.createElement("div",{className:Ai.selectPostTargetPage__topBar},R.createElement(Mr,{imgClassName:Ai.selectPostTargetPage__closeButton,pageId:e,onPress:o}),R.createElement(H1,{pageId:e,titleClassName:Ai.selectPostTargetPage__title}),R.createElement("div",null)),R.createElement(F,{onPress:()=>{var f;(f=s==null?void 0:s.goToPostComposerPage)==null||f.call(s,{mode:"create",targetId:null,targetType:"user",community:void 0});},className:Ai.selectPostTargetPage__timeline},R.createElement(L9,{pageId:e,userId:u==null?void 0:u.userId}),R.createElement(A9,{pageId:e})),R.createElement("div",{className:Ai.selectPostTargetPage__line}),R.createElement("div",{className:Ai.selectPostTargetPage__myCommunities},"My Communities"),g,R.createElement("div",{ref:f=>d(f)}))}var AF={myCommunitiesSearchPage:"X1"};function Od(e,t){let n=dt({fetcher:CommunityRepository.getCommunities,params:e,shouldCall:t}),{items:o}=n,r=P(n,["items"]);return c({communities:o},r)}function F9(){let e="my_communities_search_page",{themeStyles:t}=Xe({pageId:e}),[o,r]=useState(""),{communities:n,isLoading:i,hasMore:a,loadMore:s}=Od({displayName:o,limit:20,membership:"member"});return R.createElement("div",{className:AF.myCommunitiesSearchPage,style:t},R.createElement(Wm,{pageId:e,search:l=>r(l)}),o.length>0&&R.createElement(hs,{pageId:e,communityCollection:n,isLoading:i,onLoadMore:()=>{a&&i===!1&&s();}}))}var DF={socialGlobalSearchPage:"Y1",socialGlobalSearchPage__tabs:"C1",socialGlobalSearchPage__postContents:"A1"};var Fu={tabsRoot:"M1",tabsList:"S1",tabsTrigger:"qr"};var O9=({tabs:e,activeTab:t,onTabChange:o,pageId:r="*",componentId:n="*",elementId:i="*"})=>{let{accessibilityId:a,config:s,defaultConfig:l,isExcluded:d,uiReference:p,themeStyles:u}=A({pageId:r,componentId:n,elementId:i});return R.createElement(ks.Root,{style:u,className:Fu.tabsRoot,value:t,onValueChange:g=>o(g)},R.createElement(ks.List,{className:Fu.tabsList},e.map(g=>R.createElement(ks.Trigger,{value:g.value,className:Fu.tabsTrigger},R.createElement(S.Title,null,g.label)))),e.map(g=>R.createElement(ks.Content,{value:g.value},g.content())))};var wue=()=>{let[e,t]=useState(""),[o,r]=useState("community"),n=useMemo(()=>o==="user"&&e.length>0,[o,e]),i=Od({displayName:e,limit:20},o==="community"&&e.length>0),a=cl({displayName:e,limit:20,enabled:n}),s=useCallback(l=>{t(l);},[t]);return {userCollection:a,communityCollection:i,searchType:o,search:s,searchValue:e,setSearchType:r}};function U9(){let e="social_global_search_page",{themeStyles:t}=Xe({pageId:e}),[o,r]=useState("communities"),{userCollection:n,communityCollection:i,search:a,searchValue:s,setSearchType:l}=wue(),d=[{value:"communities",label:"Communities",content:()=>R.createElement(hs,{pageId:e,communityCollection:i.communities,isLoading:i.isLoading,onLoadMore:()=>{i.hasMore&&i.isLoading===!1&&i.loadMore();}})},{value:"users",label:"Users",content:()=>R.createElement(b5,{pageId:e,userCollection:n.users,isLoading:n.isLoading,onLoadMore:()=>{n.hasMore&&n.isLoading===!1&&n.loadMore();}})}];return R.createElement("div",{className:DF.socialGlobalSearchPage,style:t},R.createElement(Wm,{pageId:e,search:a}),s.length>0&&R.createElement(O9,{pageId:e,tabs:d,activeTab:o,onTabChange:p=>{r(p),l(p==="communities"?"community":"user");}}))}var Wn={postDetailPage:"E1",postDetailPage__container:"Gr",postDetailPage__topBar:"F1",postDetailPage__topBar__title:"I1",postDetailPage__topBar__menuBar:"R1",postDetailPage__backIcon:"U1",postDetailPage__comments__divider:"Jr","skeleton-pulse":"Kr",postDetailPage__reactions_and_comments:"B1",postDetailPage__reactionsBar:"D1",postDetailPage__commentsCount:"H1",postDetailPage__comments:"L1",postDetailPage__divider:"T1",postDetailPage__notMember:"V1"};function $9({id:e,hideTarget:t,category:o}){let r="post_detail_page",{post:n,isLoading:i}=Pi(e),{themeStyles:a}=Xe({pageId:r}),{onBack:s}=Le(),[l,d]=useState(),{setDrawerData:p,removeDrawerData:u}=qm(),{community:g}=Mt({communityId:(n==null?void 0:n.targetType)==="community"?n.targetId:null});return R.createElement("div",{className:Wn.postDetailPage,style:a},R.createElement("div",{className:Wn.postDetailPage__container},R.createElement("div",null,i?R.createElement(nd,{pageId:r}):n?R.createElement(pn,{pageId:r,post:n,category:o!=null?o:"general",style:"detail",hideTarget:t}):null),R.createElement("div",{className:Wn.postDetailPage__comments__divider,"data-is-loading":i}),R.createElement("div",{className:Wn.postDetailPage__comments},n&&R.createElement(Hc,{referenceId:n.postId,referenceType:"post",onClickReply:f=>d(f)}))),R.createElement("div",{className:Wn.postDetailPage__topBar},R.createElement(Mm,{pageId:r,defaultClassName:Wn.postDetailPage__backIcon,onPress:()=>s()}),R.createElement(S.Title,{className:Wn.postDetailPage__topBar__title},"Post"),R.createElement("div",{className:Wn.postDetailPage__topBar__menuBar},R.createElement(Yc,{pageId:r,onClick:()=>p({content:R.createElement(E5,{post:n,onCloseMenu:()=>u(),pageId:r})})}))),(n==null?void 0:n.targetType)==="community"&&!(g!=null&&g.isJoined)?R.createElement("div",null,R.createElement("div",{className:Wn.postDetailPage__divider}),R.createElement(S.Body,{className:Wn.postDetailPage__notMember},"Join community to interact with all posts")):n&&R.createElement(Sc,{referenceId:n.postId,referenceType:"post",replyTo:l,onCancelReply:()=>d(void 0),community:g}))}var Ou={communityProfilePage__container:"q1",communityProfilePage__header:"G1",communityProfilePage__content:"J1",communityProfilePage__refreshIndicator:"K1",communityProfilePage__tabContainer:"Nr",sticky:"N1",communityProfilePage__createPostButton:"O1",communityProfilePage__pullToRefresh:"P1",communityProfilePage__pullToRefresh__spinner:"Q1",spin:"W1"};var Oo={communityProfileSkeleton__container:"Z1",communityProfileSkeleton__headerImage:"Or",communityProfileSkeleton__content:"_1",communityProfileSkeleton__title:"Pr",communityProfileSkeleton__category__container:"ev",communityProfileSkeleton__category__item:"rv",communityProfileSkeleton__description:"Qr",communityProfileSkeleton__communityInfo__container:"av",communityProfileSkeleton__communityInfo__info:"ov",communityProfileSkeleton__storyTab:"tv",communityProfileSkeleton__storyTab__title:"iv",pulse:"Wr",communityProfileSkeleton__tag:"lv",communityProfileSkeleton__stat:"sv",communityProfileSkeleton__avatar:"cv",communityProfileSkeleton__username:"nv"};var HF=()=>R.createElement("div",{className:Oo.communityProfileSkeleton__container},R.createElement("div",{className:Oo.communityProfileSkeleton__headerImage}),R.createElement("div",{className:Oo.communityProfileSkeleton__content},R.createElement("div",{className:Oo.communityProfileSkeleton__title}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__container},R.createElement("div",{className:Oo.communityProfileSkeleton__category__item}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__item}),R.createElement("div",{className:Oo.communityProfileSkeleton__category__item})),R.createElement("div",{className:Oo.communityProfileSkeleton__description}),R.createElement("div",{className:Oo.communityProfileSkeleton__description}),R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__container},R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__info}),R.createElement("div",{className:Oo.communityProfileSkeleton__communityInfo__info})),R.createElement("div",{className:Oo.communityProfileSkeleton__storyTab}),R.createElement("div",{className:Oo.communityProfileSkeleton__storyTab__title})));var zu={emptyPinnedPost__container:"dv",emptyPinnedPost__text:"mv",emptyPinnedPost__icon:"pv"};var j9=({pageId:e="*"})=>{let t="empty_pinned_post",{config:o,accessibilityId:r,isExcluded:n,themeStyles:i}=te({pageId:e,componentId:t});return n?null:R.createElement("div",{"data-qa-anchor":r,className:zu.emptyPinnedPost__container,style:i},R.createElement(K5,{className:zu.emptyPinnedPost__icon}),R.createElement(S.Title,{className:zu.emptyPinnedPost__text},"No pinned post yet"))};var Uu={communityPin__container:"gv",communityPin__feed:"hv"};var G9=({pageId:e="*",communityId:t})=>{let o="community_pin",{accessibilityId:r,themeStyles:n,isExcluded:i}=te({pageId:e,componentId:o});if(i)return null;let{community:a}=Mt({communityId:t,shouldCall:!!t}),{AmityCommunityProfilePageBehavior:s}=xt();gd({communityId:t,level:SubscriptionLevels.POST});let{pinnedPost:l,isLoading:d,refresh:p}=fd({communityId:t}),u=(a==null?void 0:a.isJoined)&&!(a!=null&&a.isPublic);useEffect(()=>{p();},[]);let g=l.filter(h=>h.placement==="announcement"&&l.some(x=>x.placement==="default"&&x.referenceId===h.referenceId)),f=l.filter(h=>h.placement==="default").filter(h=>!g.some(x=>x.referenceId===h.referenceId)),y=l.filter(h=>h.placement==="default"),v=()=>d?R.createElement(yd,null):g&&g.map(({post:h})=>R.createElement(F,{onPress:()=>{var x;(x=s==null?void 0:s.goToPostDetailPage)==null||x.call(s,{postId:h.postId,hideTarget:!0,category:"pin_and_announcement"});},className:Uu.communityPin__feed},R.createElement(pn,{key:h.postId,post:h,category:"pin_and_announcement",style:"feed",hideTarget:!0,onClick:()=>{var x;return (x=s==null?void 0:s.goToPostDetailPage)==null?void 0:x.call(s,{postId:h.postId,hideTarget:!0,category:h.category})},onPostDeleted:()=>p()}))),C=()=>{let h=g.length>0?f:y;return d?R.createElement(yd,null):h.map(({post:x})=>R.createElement(F,{onPress:()=>{var b;(b=s==null?void 0:s.goToPostDetailPage)==null||b.call(s,{postId:x.postId,hideTarget:!0,category:"pin"});},className:Uu.communityPin__feed},R.createElement(pn,{key:x.postId,post:x,category:"pin",style:"feed",hideTarget:!0,onClick:()=>{var b;return (b=s==null?void 0:s.goToPostDetailPage)==null?void 0:b.call(s,{postId:x.postId,hideTarget:!0,category:"pin"})},onPostDeleted:()=>p()})))};return R.createElement("div",{"data-qa-anchor":r,className:Uu.communityPin__container,style:n},u||a!=null&&a.isPublic?l.length>0?R.createElement(R.Fragment,null,v(),C()):R.createElement(j9,null):R.createElement(ud,null))};var FF=({props:e,className:t})=>R.createElement("div",{className:t},R.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},e),R.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.1122 5C11.1122 5.39449 10.7924 5.71429 10.3979 5.71429C10.0035 5.71429 9.68366 5.39449 9.68366 5V0.714286C9.68366 0.319797 10.0035 0 10.3979 0C10.7924 0 11.1122 0.319797 11.1122 0.714286V5ZM8.25509 6.28846C8.59673 6.09122 8.71378 5.65437 8.51654 5.31273L6.37368 1.60119C6.17644 1.25955 5.73959 1.1425 5.39795 1.33975C5.05631 1.53699 4.93926 1.97384 5.1365 2.31548L7.27936 6.02702C7.4766 6.36865 7.91346 6.48571 8.25509 6.28846ZM6.42496 6.88141C6.7666 7.07865 6.88366 7.51551 6.68641 7.85714C6.48917 8.19878 6.05232 8.31583 5.71068 8.11859L1.99914 5.97573C1.6575 5.77849 1.54045 5.34164 1.7377 5C1.93494 4.65836 2.37179 4.54131 2.71343 4.73855L6.42496 6.88141ZM6.11224 10C6.11224 9.60551 5.79244 9.28571 5.39795 9.28571H1.11223C0.717746 9.28571 0.397949 9.60551 0.397949 10C0.397949 10.3945 0.717746 10.7143 1.11224 10.7143H5.39795C5.79244 10.7143 6.11224 10.3945 6.11224 10ZM5.71068 11.8814C6.05232 11.6842 6.48917 11.8012 6.68641 12.1429C6.88366 12.4845 6.7666 12.9213 6.42497 13.1186L2.71343 15.2614C2.37179 15.4587 1.93494 15.3416 1.7377 15C1.54045 14.6584 1.6575 14.2215 1.99914 14.0243L5.71068 11.8814ZM8.25509 13.7115C7.91345 13.5143 7.4766 13.6313 7.27936 13.973L5.1365 17.6845C4.93926 18.0262 5.05631 18.463 5.39795 18.6603C5.73959 18.8575 6.17644 18.7404 6.37368 18.3988L8.51654 14.6873C8.71378 14.3456 8.59673 13.9088 8.25509 13.7115ZM10.3979 14.2857C10.0035 14.2857 9.68366 14.6055 9.68366 15V19.2857C9.68366 19.6802 10.0035 20 10.3979 20C10.7924 20 11.1122 19.6802 11.1122 19.2857V15C11.1122 14.6055 10.7924 14.2857 10.3979 14.2857ZM12.5408 6.28846C12.8824 6.48571 13.3193 6.36865 13.5165 6.02702L15.6594 2.31548C15.8566 1.97384 15.7396 1.53699 15.3979 1.33975C15.0563 1.1425 14.6195 1.25956 14.4222 1.60119L12.2794 5.31273C12.0821 5.65437 12.1992 6.09122 12.5408 6.28846ZM15.0852 8.11859C14.7436 8.31583 14.3067 8.19878 14.1095 7.85714C13.9122 7.51551 14.0293 7.07866 14.3709 6.88141L18.0825 4.73855C18.4241 4.54131 18.861 4.65836 19.0582 5C19.2554 5.34164 19.1384 5.77849 18.7968 5.97573L15.0852 8.11859ZM14.6837 10C14.6837 10.3945 15.0035 10.7143 15.3979 10.7143H19.6837C20.0782 10.7143 20.3979 10.3945 20.3979 10C20.3979 9.60551 20.0782 9.28571 19.6837 9.28571H15.3979C15.0035 9.28571 14.6837 9.60551 14.6837 10ZM14.3709 13.1186C14.0293 12.9213 13.9122 12.4845 14.1095 12.1429C14.3067 11.8012 14.7436 11.6842 15.0852 11.8814L18.7968 14.0243C19.1384 14.2215 19.2554 14.6584 19.0582 15C18.861 15.3416 18.4241 15.4587 18.0825 15.2614L14.3709 13.1186ZM12.5408 13.7115C12.1992 13.9088 12.0821 14.3456 12.2794 14.6873L14.4222 18.3988C14.6195 18.7404 15.0563 18.8575 15.3979 18.6603C15.7396 18.463 15.8566 18.0262 15.6594 17.6845L13.5165 13.973C13.3193 13.6313 12.8824 13.5143 12.5408 13.7115Z",fill:"url(#paint0_angular_1709_10374)"}),R.createElement("defs",null,R.createElement("radialGradient",{id:"paint0_angular_1709_10374",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(10.3979 10) scale(10)"},R.createElement("stop",{offset:"0.669733",stopColor:"#595F67"}),R.createElement("stop",{offset:"0.716307",stopColor:"#262626",stopOpacity:"0.01"})))));var Z9=({communityId:e})=>{let{activeTab:t}=j5(),o="community_profile_page",{themeStyles:r,accessibilityId:n}=Xe({pageId:o}),{community:i}=Mt({communityId:e,shouldCall:!!e}),a=useRef(null),s=useRef(0),[l,d]=useState(0),[p,u]=useState(0),g=()=>{switch(t){case"community_feed":return R.createElement(X5,{pageId:o,communityId:e});case"community_pin":return R.createElement(G9,{pageId:o,communityId:e});default:return null}},f=()=>_(void 0,null,function*(){u(y=>y+1);});return R.createElement("div",{ref:a,"data-qa-anchor":n,className:Ou.communityProfilePage__container,style:r,onDrag:y=>y.stopPropagation(),onTouchStart:y=>{s.current=y.touches[0].clientY;},onTouchMove:y=>{let v=y.touches[0].clientY;s.current>v||d(Math.min(v-s.current,100));},onTouchEnd:y=>{s.current=0,l>=75&&f(),d(0);}},R.createElement("div",{style:{"--asc-pull-to-refresh-height":`${l}px`},className:Ou.communityProfilePage__pullToRefresh},R.createElement(FF,{className:Ou.communityProfilePage__pullToRefresh__spinner})),i?R.createElement(q5,{community:i}):R.createElement(HF,null),R.createElement("div",{key:p},g()))};
|
|
5324
5325
|
|
|
5325
|
-
export { ge as AmityAvatar,
|
|
5326
|
+
export { ge as AmityAvatar, Dm as AmityCommentTrayComponent, X5 as AmityCommunityFeedComponent, q5 as AmityCommunityHeaderComponent, xL as AmityCommunityPinnedPostComponent, Z9 as AmityCommunityProfilePage, hs as AmityCommunitySearchResultComponent, g5 as AmityCreatePostMenuComponent, v5 as AmityDetailedMediaAttachmentComponent, Df as AmityDraftStoryPage, Xm as AmityEmptyNewsFeedComponent, z6 as AmityExpandableText, A5 as AmityGlobalFeedComponent, Cu as AmityLiveChatHeader, Eu as AmityLiveChatMessageComposeBar, ku as AmityLiveChatMessageList, Mu as AmityLiveChatMessageQuickReaction, m9 as AmityLiveChatMessageReactionPicker, u9 as AmityLiveChatMessageReactionPreview, IF as AmityLiveChatPage, C5 as AmityMediaAttachmentComponent, B5 as AmityMyCommunitiesComponent, F9 as AmityMyCommunitiesSearchPage, D5 as AmityNewsFeedComponent, Ag as AmityPostComposerPage, J2 as AmityPostContainer, pn as AmityPostContentComponent, qa as AmityPostDetail, $9 as AmityPostDetailPage, W6 as AmityPostEngagementBar, D9 as AmityPostTargetSelectionPage, Om as AmityReactionListComponent, U9 as AmitySocialGlobalSearchPage, nf as AmitySocialHomePage, O5 as AmitySocialHomePageTab, z5 as AmitySocialHomeTopNavigationComponent, _F as AmityStoryPreview, SF as AmityStoryPreviewThumbnail, $m as AmityStoryTabComponent, E9 as AmityStoryTargetSelectionPage, Wm as AmityTopSearchBarComponent, Rf as AmityUIKitManager, $pe as AmityUiKitChat, a1 as AmityUiKitFeed, lY as AmityUiKitProvider, Hde as AmityUiKitSocial, b5 as AmityUserSearchResultComponent, N9 as AmityViewStoryPage, Mc as ExplorePage, IH as amityAddChatMembers, wH as amityRemoveChatMembers, X as useAmityNavigation, ol as useAmitySDK, oe as useAmityUser };
|