"use strict";(self.webpackChunkcircle=self.webpackChunkcircle||[]).push([[123,6745],{36843:(e,t,r)=>{r.d(t,{Um:()=>L,Yf:()=>Z,uy:()=>j,XR:()=>B,wW:()=>T});var n=r(94184),o=r.n(n),i=r(30887),a=r(12169),c=function(e){return{high:"16-smile",medium:"16-neutral",low:"16-sad",disabled:"16-disabled"}[e]},l=r(64687),s=r.n(l),u=r(62444),d=r(57956),f=r(49498),m=r(85893);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var y=function(e){var t,r=e.className,n=e.children,i=(0,d.m3)(),a=(0,u.b)(),c=function(){var e,t=(e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.next=3,a.show({source:f.f.ACTIVITY_SCORES_SCORE_CHIP});case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,c,"next",e)}function c(e){h(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return t={className:o()("inline-flex items-center justify-center gap-x-2 rounded-3xl border px-2.5 py-1.5",r),onClick:i?c:void 0},i?(0,m.jsx)("button",b(b({},t),{},{type:"button",children:n})):(0,m.jsx)("div",b(b({},t),{},{children:n}))},g={high:{className:"border-v2-success text-v2-success bg-v2-success/5",icon:c("high")},medium:{className:"border-v2-warning text-v2-warning bg-v2-warning/5",icon:c("medium")},low:{className:"border-v2-danger text-v2-danger bg-v2-danger/5",icon:c("low")},disabled:{className:"border border-primary text-dark bg-tertiary",icon:c("disabled")}},j=function(e){var t=e.activityScore,r=g[t.activity],n=r.className,c=r.icon;return(0,m.jsxs)(y,{className:o()("inline-flex items-center justify-center gap-x-2 rounded-3xl border px-2.5 py-1.5",n),children:[(0,m.jsx)(i.JO,{className:"!w-4",type:c,"aria-hidden":!0,size:16}),(0,m.jsx)(a.Z.LabelXs,{weight:"medium",color:"text-default",children:function(e){return void 0!==e.score?e.score:e.label}(t)})]})},x=r(86013),C=r(87958),w=r(38776),O=r(63367);function _(e){var t=e.children;(0,w.Z)("string"===typeof t,"children must be a string");var r=(0,O.t)(["settings.community_ai.activity_scores",t.toLowerCase(),"tooltip"]);return(0,m.jsxs)("div",{className:"text-default flex items-center gap-x-0.5",children:[(0,m.jsx)(a.Z.BodySm,{color:"text-default",weight:"font-semibold",children:t}),r&&(0,m.jsx)(C.T,{content:r,children:(0,m.jsx)(i.JO,{type:"16-info",useWithStrokeCurrentColor:!0,size:16,className:"h-3 w-3"})})]})}var k={high:{textColor:"text-v2-success",barBg:"bg-v2-success"},medium:{textColor:"text-v2-warning",barBg:"bg-v2-warning"},low:{textColor:"text-v2-danger",barBg:"bg-v2-danger"}},S=function(e){var t=e.label,r=e.score,n=e.scoreType,i=k[n],c=i.textColor,l=i.barBg;return(0,m.jsxs)("div",{className:"flex flex-col gap-y-3","data-testid":t,children:[(0,m.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,m.jsx)(_,{children:t}),(0,m.jsx)(a.Z.BodyXs,{weight:"font-semibold",color:c,children:r})]}),(0,m.jsx)("div",{className:o()("h-1 w-full rounded-full bg-gray-200 dark:bg-gray-600"),children:(0,m.jsx)("div",{className:o()("h-1 rounded-full",l),style:{width:"".concat(10*Math.min(10,r),"%")}})})]})},P={high:{className:"text-v2-success",icon:c("high")},medium:{className:"text-v2-warning",icon:c("medium")},low:{className:"text-v2-danger",icon:c("low")}},L=function(e){var t,r=e.scoreDetail,n=r.activityScore,c=P[n.activity],l=c.className,s=c.icon;return(0,m.jsxs)("div",{className:"border-stroke-background bg-primary w-96 rounded-xl border p-6 shadow-lg","data-testid":"activity-score-card",children:[(0,m.jsxs)("div",{className:"border-primary flex items-center justify-between border-b pb-6",children:[(0,m.jsxs)("div",{className:"text-default flex items-center gap-x-1",children:[(0,m.jsx)(a.Z.LabelMd,{weight:"semibold",children:(0,x.t)("activity_score.activity_score_title")}),(0,m.jsx)(C.T,{content:(0,x.t)("activity_score.description"),children:(0,m.jsx)(i.JO,{type:"16-info",useWithStrokeCurrentColor:!0,size:16})})]}),(0,m.jsxs)("div",{className:o()("flex items-center gap-x-2",l),children:[(0,m.jsx)(i.JO,{type:s,"aria-hidden":!0,size:20}),(0,m.jsx)(a.Z.LabelLg,{weight:"semibold",color:"currentColor",children:n.score})]})]}),(0,m.jsx)("div",{className:"flex flex-col gap-y-6 pt-6",children:null===(t=r.scoreBreakdown)||void 0===t?void 0:t.map((function(e){var t=e.display_value,r=e.score,n=e.activity;return(0,m.jsx)(S,{label:t,score:r,scoreType:n},t)}))})]})},E=r(67294),N=r(88767),M=r(34128),A=r(77529),I=function(e){var t=e.ids,r=(0,d.ov)();return(0,N.useQuery)({queryKey:["MEMBER_ACTIVITY_SCORE",t],queryFn:function(){return(0,M.UT)(A.av.memberActivityScore.index({params:{community_member_ids:t}}))},select:function(e){return e.reduce((function(e,t){return e.set(t.community_member_id,{activityScore:t.activity_score,scoreBreakdown:t.score_breakdown})}),new Map)},enabled:r&&t.length>0})},D=(0,E.createContext)(null);function T(){var e=(0,E.useContext)(D);return(0,w.Z)(e,"useScoreContext must be used within a ScoreContextProvider"),e}function B(e){var t=e.ids,r=void 0===t?[]:t,n=e.children,o=I({ids:r});return(0,m.jsx)(D.Provider,{value:o,children:n})}D.displayName="ScoreContext";var R=r(97762),Z=function(e){var t=e.scoreDetail;return(0,m.jsxs)(R.fC,{openDelay:500,children:[(0,m.jsx)(R.xz,{asChild:!0,children:(0,m.jsx)("div",{className:"cursor-pointer",children:(0,m.jsx)(j,{activityScore:t.activityScore})})}),(0,m.jsx)(R.h_,{children:(0,m.jsx)(R.VY,{className:"z-[1060]",sideOffset:10,align:"start",children:(0,m.jsx)(L,{scoreDetail:t})})})]})}},79329:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(67294),o=r(30887),i=r(85893);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e){var t=e.src,r=e.className,c=a((0,n.useState)(null),2),l=c[0],s=c[1];return(0,n.useEffect)((function(){t&&function(e){fetch(e).then((function(e){return e.blob()})).then((function(e){s(URL.createObjectURL(e))}))}(t)}),[t]),l?(0,i.jsx)("embed",{className:r,src:l}):(0,i.jsx)(o.JO,{type:"loader"})}},83729:(e,t,r)=>{r.d(t,{_:()=>y});var n=r(67294),o=r(66982),i=r.n(o),a=r(9946),c=r(71570),l=r(86013),s=r(30887),u=r(74284),d=r(85893),f=function(e){var t=e.url;return(0,d.jsx)(u.Y,{content:(0,l.t)("download"),className:"ml-2 flex items-center",appendTo:"parent",children:(0,d.jsx)("a",{className:"flex",href:t,target:"_blank",rel:"noopener, noreferrer",children:(0,d.jsx)(s.JO,{type:"16-download",size:16,className:"text-light"})})})},m=function(){return(0,d.jsxs)("svg",{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 5C11.5 5.41421 11.1642 5.75 10.75 5.75L0.75 5.75C0.335787 5.75 2.93554e-08 5.41421 6.55671e-08 5C1.01779e-07 4.58579 0.335787 4.25 0.75 4.25L10.75 4.25C11.1642 4.25 11.5 4.58579 11.5 5Z",fill:"#1F3349"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.28033 9.53033C4.98744 9.82322 4.51256 9.82322 4.21967 9.53033L0.21967 5.53033C-0.0732227 5.23744 -0.0732227 4.76256 0.21967 4.46967L4.21967 0.46967C4.51256 0.176777 4.98744 0.176777 5.28033 0.46967C5.57322 0.762563 5.57322 1.23744 5.28033 1.53033L1.81066 5L5.28033 8.46967C5.57322 8.76256 5.57322 9.23744 5.28033 9.53033Z",fill:"#1F3349"})]})},p=function(){return(0,d.jsxs)("svg",{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.25 5C0.25 4.58579 0.585786 4.25 1 4.25H11C11.4142 4.25 11.75 4.58579 11.75 5C11.75 5.41421 11.4142 5.75 11 5.75H1C0.585786 5.75 0.25 5.41421 0.25 5Z",fill:"#1F3349"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46967 0.46967C6.76256 0.176777 7.23744 0.176777 7.53033 0.46967L11.5303 4.46967C11.8232 4.76256 11.8232 5.23744 11.5303 5.53033L7.53033 9.53033C7.23744 9.82322 6.76256 9.82322 6.46967 9.53033C6.17678 9.23744 6.17678 8.76256 6.46967 8.46967L9.93934 5L6.46967 1.53033C6.17678 1.23744 6.17678 0.762563 6.46967 0.46967Z",fill:"#1F3349"})]})},b=r(79329);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){var t=e.show,r=e.onClose,o=e.attachments,l=e.path,s=e.currentIndex,u=void 0===s?0:s,h=v((0,n.useState)(""),2),y=h[0],g=h[1],j=v((0,n.useState)(!1),2),x=j[0],C=j[1],w=v((0,n.useState)(),2),O=w[0],_=w[1],k=v((0,n.useState)(),2),S=k[0],P=k[1],L=v((0,n.useState)(u),2),E=L[0],N=L[1];(0,n.useEffect)((function(){var e=o[E].contentType,t=document.body.classList.contains("view-post"),r=document.body.classList.contains("view-homepage");t?_(!0):t||_(!1),r?P(!0):r||P(!1),"application/pdf"===e?(g("pdf"),C(!0)):"image/png"!==e&&"image/jpeg"!==e&&"image/jpg"!==e&&"image/gif"!==e||(g("img"),C(!0))}),[]);var M=o.filter((function(e){return e.contentType.startsWith("image/")})).map((function(e){return{original:e.url,thumbnail:e.url,filename:e.filename,url:e.url,sgid:e.sgid}}));(0,n.useEffect)((function(){if(window&&document&&t){var e=window.scrollY;setTimeout((function(){return window.scroll(0,e)}),100),document.body.classList.add("image-gallery--open")}else document&&!t&&document.body.classList.remove("image-gallery--open")}),[t]);var A=(0,n.useRef)(null);var I=function(){r(),document.body.classList.remove("image-gallery--open")};return(!O||S)&&x&&"img"===y&&l?(window.location.href=window.location.origin+l,null):x?(0,d.jsx)(a.h,{children:(0,d.jsxs)(c.Js,{show:t,onClose:I,closeOnEscape:!0,closeOnOutsideClick:!0,fullscreen:!0,trixMode:"trix-modal trix-modal__gallery",children:[(0,d.jsxs)(c.Js.Header,{onClose:I,children:["img"===y&&(0,d.jsx)("div",{children:M[E].filename}),"pdf"===y&&(0,d.jsx)("div",{children:o[E].filename}),"img"===y&&(0,d.jsx)(f,{url:M[E].url}),"pdf"===y&&(0,d.jsx)(f,{url:o[E].url})]}),(0,d.jsxs)(c.Js.Body,{children:["img"===y&&(0,d.jsx)(i(),{items:M,showThumbnails:!1,showFullscreenButton:!1,showPlayButton:!1,ref:A,startIndex:u,onSlide:function(e){return N(e)},renderLeftNav:function(e,t){return(0,d.jsx)("button",{type:"submit",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:e,children:(0,d.jsx)(m,{})})},renderRightNav:function(e,t){return(0,d.jsx)("button",{type:"submit",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:e,children:(0,d.jsx)(p,{})})},infinite:!1,slideDuration:0,lazyLoad:!0}),"pdf"===y&&(0,d.jsx)(b.X,{src:o.map((function(e){return e.url}))[E]})]})]})}):null}},37903:(e,t,r)=>{r.d(t,{e:()=>m});var n=r(94184),o=r.n(n),i=r(86013),a=r(96486),c=r(97012),l=r(87958),s=r(20633),u=r(1002),d=r(41520),f=r(85893),m=function(e){var t=e.bookmarkType,r=e.record,n=e.variant,m=void 0===n?"button":n,p=e.tooltip,b=void 0===p?r.bookmark_id?(0,i.t)("bookmarks.actions.remove"):(0,i.t)("bookmarks.actions.add_by_type.".concat(t)):p,v=e.onSuccess,h=e.onSettled,y=void 0===h?a.noop:h,g=e.className,j=void 0===g?"":g,x=(0,c.xJ)(),C=r.bookmark_id,w=(0,d.S)({bookmarkId:C,bookmarkType:t,record:r,onSuccess:v,onSettled:y,disableFetch:!0}),O=w.createBookmark,_=w.deleteBookmark,k=function(){C?_():O()},S=!["button","dropdown","minimal-post-modal"].includes(m);if(!x||S)return null;if("button"===m){var P=function(e,t){return"lesson"===e?{iconName:t?"16-bookmark-fill":"16-bookmark",iconSize:16,iconClassSize:"!w-4 !h-4",buttonSize:24}:"message"===e?{iconName:t?"16-bookmark-fill":"16-bookmark",iconSize:16,iconClassSize:o()("!w-4 !h-4",{"!text-default":!t}),buttonSize:24}:{iconName:t?"20-bookmark-fill":"20-bookmark",iconSize:20,iconClassSize:"!w-5 !h-5",buttonSize:28}}(t,C),L=P.iconName,E=P.iconSize,N=P.iconClassSize,M=P.buttonSize;return(0,f.jsx)(l.T,{content:b,interactive:!1,children:(0,f.jsx)(s.h,{name:L,onClick:k,iconSize:E,buttonSize:M,className:"group",variant:"secondary",iconClassName:o()("text-dark",{"group-hover:text-darkest":!C},N,j),ariaLabel:(0,i.t)("header_v3.bookmarks"),dataTestId:"bookmark-button"})})}return"dropdown"===m?(0,f.jsx)(u.Lt.ItemLink,{onClick:k,children:C?(0,i.t)("bookmarks.actions.remove"):(0,i.t)("bookmarks.actions.add_by_type.".concat(t))}):"minimal-post-modal"===m?(0,f.jsx)(l.T,{content:b,interactive:!1,children:(0,f.jsx)(s.h,{name:C?"20-bookmark-fill":"20-bookmark",iconSize:20,iconClassName:"!text-default group-hover:!text-dark",className:"group",onClick:k,buttonSize:24,ariaLabel:(0,i.t)("post.post_modal.bookmark_post")})}):null}},41520:(e,t,r)=>{r.d(t,{S:()=>m});var n=r(64687),o=r.n(n),i=r(86013),a=r(96486),c=r(88767),l=r(34128),s=r(77529),u=r(97012),d=r(21809);function f(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var m=function(e){var t=e.bookmarkId,r=e.bookmarkType,n=e.record,m=e.onSuccess,p=e.onSettled,b=e.disableFetch,v=void 0!==b&&b,h=(0,u.wh)().currentCommunityMember,y=(0,d.p)(),g=(0,c.useQueryClient)(),j=["bookmark",r],x=function(){var e,t=(e=o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.invalidateQueries(j);case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=(0,c.useMutation)((function(){return(0,l.Cu)(s.av.bookmarks.create(),{bookmark:{bookmark_type:r,record_id:null===n||void 0===n?void 0:n.id}})}),{onSuccess:function(e){(0,a.isFunction)(m)&&m(e.id),y.success((0,i.t)("bookmarks.saved_to_bookmarks"))},onError:function(){y.error((0,i.t)("bookmarks.errors.create_failure"))},onSettled:p}),w=C.mutate,O=C.isLoading,_=(0,c.useMutation)((function(){return(0,l.pC)(s.av.bookmarks.destroy({id:t}),{bookmark_type:r})}),{onSuccess:function(){(0,a.isFunction)(m)&&m(null),y.success((0,i.t)("bookmarks.removed_from_bookmarks"),{duration:"short",shouldUseProgress:!1})},onError:function(){y.error((0,i.t)("bookmarks.errors.delete_failure"))},onSettled:p}),k=_.mutate,S=_.isLoading,P=(0,c.useInfiniteQuery)(j,(function(e){var t,n=e.pageParam;return t=void 0===n?1:n,(0,l.UT)(s.av.bookmarks.index({params:{page:t,bookmark_type:r}}))}),{enabled:!!h,staleTime:v?1/0:0,getNextPageParam:function(e){return e.has_next_page?e.page+1:void 0},onError:function(){y.error((0,i.t)("bookmarks.errors.fetch_failure"))}}),L=P.data,E=P.error;return{createBookmark:w,isCreatingBookmark:O,deleteBookmark:k,isDeletingBookmark:S,getBookmarks:function(){var e;return(0,a.flatten)((null===L||void 0===L||null===(e=L.pages)||void 0===e?void 0:e.map((function(e){return e.records})))||[])},isLoading:P.isLoading,error:E,fetchNextPage:P.fetchNextPage,hasNextPage:P.hasNextPage,resetQuery:x}}},35103:(e,t,r)=>{r.d(t,{b:()=>V,B:()=>Z});var n=r(67294),o=r(96486),i=r(87536),a=r(97012),c=r(67746),l=r(34128),s=r(5034),u=r(96417);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p="ADD",b="REMOVE",v="INITIAL_FETCH_START",h="INITIAL_FETCH_SUCCESS",y="INITIAL_FETCH_FAILURE",g="RESET",j=function(e,t,r){return{type:p,payload:{record:e,includeAllResultTypes:t,shouldUpdateValue:r}}},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return function(r){if(null===e||void 0===e||!e.length)return Promise.resolve();(0,l.UT)(s.a.spaceGroups.index()).then((function(n){var o,i;null===n||void 0===n||null===(o=n.records)||void 0===o||null===(i=o.filter((function(t){return e.includes(t.id)})))||void 0===i||i.forEach((function(e){r(j(f(f({},e),{},{type:u.c.SPACE_GROUP}),t,!1))}))})).catch(console.error)}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return function(r){if(null===e||void 0===e||!e.length)return Promise.resolve();(0,l.UT)(s.a.spaces.index()).then((function(n){var o,i;null===n||void 0===n||null===(o=n.records)||void 0===o||null===(i=o.filter((function(t){return e.includes(t.id)})))||void 0===i||i.forEach((function(e){r(j(f(f({},e),{},{type:u.c.SPACE}),t,!1))}))})).catch(console.error)}},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return function(r){if(null===e||void 0===e||!e.length)return Promise.resolve();(0,l.UT)(s.a.memberTags.index({})).then((function(n){var o,i;null===n||void 0===n||null===(o=n.records)||void 0===o||null===(i=o.filter((function(t){return e.includes(t.id)})))||void 0===i||i.forEach((function(e){r(j(f(f({},e),{},{type:u.c.MEMBER_TAG}),t,!1))}))})).catch(console.error)}},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return function(r){if(null===e||void 0===e||!e.length)return Promise.resolve();(0,l.UT)(s.a.search.communityMembers.index({params:{filters:{id:e}}})).then((function(e){var n;null===e||void 0===e||null===(n=e.records)||void 0===n||n.forEach((function(e){r(j(f(f({},e),{},{type:u.c.COMMUNITY_MEMBER}),t,!1))}))})).catch(console.error)}},_=r(53397);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var N=function(e){return{spaceGroups:[],spaces:[],memberTags:[],communityMembers:[],memberCount:0,isLoading:!1,errorMessage:null,value:arguments.length>1&&void 0!==arguments[1]&&arguments[1]?S({members_ids:[],spaces_ids:[],space_groups_ids:[],member_tags_ids:[]},e||{}):L(e||[])}},M=function(e,t){var r=t.type,n=t.payload,i=n||{},a=i.record,c=i.includeAllResultTypes,l=i.shouldUpdateValue,s=(a||{}).type;switch(r){case p:switch(s){case u.c.SPACE_GROUP:return S(S({},e),{},{spaceGroups:[].concat(L(e.spaceGroups),[a]),memberCount:e.memberCount+(a.active_space_group_members_count||0),value:l?S(S({},e.value),{},{space_groups_ids:(0,o.uniq)([].concat(L(e.value.space_groups_ids),[a.id]))}):e.value});case u.c.SPACE:return S(S({},e),{},{spaces:[].concat(L(e.spaces),[a]),memberCount:e.memberCount+(a.active_space_members_count||0),value:l?S(S({},e.value),{},{spaces_ids:(0,o.uniq)([].concat(L(e.value.spaces_ids),[a.id]))}):e.value});case u.c.MEMBER_TAG:return S(S({},e),{},{memberTags:[].concat(L(e.memberTags),[a]),memberCount:e.memberCount+(a.tagged_members_count||0),value:l?S(S({},e.value),{},{member_tags_ids:(0,o.uniq)([].concat(L(e.value.member_tags_ids),[a.id]))}):e.value});case u.c.COMMUNITY_MEMBER:default:return S(S({},e),{},{communityMembers:[].concat(L(e.communityMembers),[a]),memberCount:e.memberCount+1,value:l?c?S(S({},e.value),{},{members_ids:(0,o.uniq)([].concat(L(e.value.members_ids),[a.id]))}):[].concat(L(e.value),[a.id]):e.value})}case b:switch(s){case u.c.SPACE_GROUP:return S(S({},e),{},{spaceGroups:e.spaceGroups.filter((function(e){return e.id!==a.id})),memberCount:e.memberCount-(a.active_space_group_members_count||0),value:S(S({},e.value),{},{space_groups_ids:(0,o.uniq)(e.value.space_groups_ids.filter((function(e){return e!==a.id})))})});case u.c.SPACE:return S(S({},e),{},{spaces:e.spaces.filter((function(e){return e.id!==a.id})),memberCount:e.memberCount-(a.active_space_members_count||0),value:S(S({},e.value),{},{spaces_ids:(0,o.uniq)(e.value.spaces_ids.filter((function(e){return e!==a.id})))})});case u.c.MEMBER_TAG:return S(S({},e),{},{memberTags:e.memberTags.filter((function(e){return e.id!==a.id})),memberCount:e.memberCount-(a.tagged_members_count||0),value:S(S({},e.value),{},{member_tags_ids:(0,o.uniq)(e.value.member_tags_ids.filter((function(e){return e!==a.id})))})});case u.c.COMMUNITY_MEMBER:default:return S(S({},e),{},{communityMembers:e.communityMembers.filter((function(e){return e.id!==a.id})),memberCount:e.memberCount-1,value:c?S(S({},e.value),{},{members_ids:(0,o.uniq)(e.value.members_ids.filter((function(e){return e!==a.id})))}):(0,o.uniq)(e.value.filter((function(e){return e!==a.id})))})}case v:return S(S({},e),{},{isLoading:!0});case h:return S(S({},e),{},{isLoading:!1});case y:return S(S({},e),{},{isLoading:!1,errorMessage:n.errorMessage});case g:return N(null,!!n.includeAllResultTypes);default:return e}},A=r(85893);function I(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){if(e){if("string"===typeof e)return B(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var R=(0,n.createContext)({});R.displayName="CommunityMemberPickerContext";var Z=function(){return(0,n.useContext)(R)},V=function(e){var t=e.onChange,r=e.value,l=e.name,s=e.includeAllResultTypes,u=void 0!==s&&s,d=e.excludedMemberIds,f=void 0===d?[]:d,m=e.allowCurrentCommunityMember,p=void 0!==m&&m,k=e.children,S=e.variant,P=void 0===S?_.ZC.SIMPLE:S,L=e.onModalSave,E=((0,a.wh)()||{}).currentCommunityMember,T=D((0,c.J)(M,N(r||[],u)),2),B=T[0],Z=T[1],V=(0,i.Gc)().getValues,H=[p||null===E||void 0===E?void 0:E.id].concat(I(f),I(B.communityMembers.map((function(e){return e.id}))));(0,n.useEffect)((function(){return Z(function(e,t){return function(r){var n=(null===e||void 0===e?void 0:e.space_groups_ids)||[],o=(null===e||void 0===e?void 0:e.spaces_ids)||[],i=(null===e||void 0===e?void 0:e.member_tags_ids)||[],a=(t?null===e||void 0===e?void 0:e.members_ids:e)||[];return r({type:v,payload:{spaceGroupIds:n,spaceIds:o,memberTagIds:i,communityMemberIds:a}}),Promise.all([r(x(n,t)),r(C(o,t)),r(w(i,t)),r(O(a,t))]).then((function(){r({type:h,payload:{spaceGroupIds:n,spaceIds:o,memberTagIds:i,communityMemberIds:a}})})).catch((function(e){console.error(e),r({type:y,payload:{spaceGroupIds:n,spaceIds:o,memberTagIds:i,communityMemberIds:a,errorMessage:null===e||void 0===e?void 0:e.message}})}))}}(r,u))}),[]),(0,n.useEffect)((function(){r||Z(function(e){return{type:g,payload:{includeAllResultTypes:e}}}(u))}),[Z,u,r]),(0,n.useEffect)((function(){var e=(0,o.get)(V(),l,null);P!==_.ZC.SIMPLE||(0,o.isEqual)(B.value,e)||t(B.value)}),[B.value,P]);var z={selectionState:B,onAdd:function(e){return Z(j(e,u,!0))},onRemove:function(e){Z(function(e,t){return{type:b,payload:{record:e,includeAllResultTypes:t}}}(e,u))},onSave:function(){(0,o.isEqual)(B.value,r)||t(B.value),(0,o.isFunction)(L)&&L(B.value)},excludeCommunityMemberIds:H,includeAllResultTypes:u};return(0,A.jsx)(R.Provider,{value:z,children:k})}},96417:(e,t,r)=>{function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{c:()=>c,X:()=>l});var c=Object.freeze({COMMUNITY_MEMBER:"community_member",SPACE:"space",SPACE_GROUP:"space_group",MEMBER_TAG:"member_tag"}),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.spaceGroups,l=void 0===o?[]:o,s=r.spaces,u=void 0===s?[]:s,d=r.memberTags,f=void 0===d?[]:d,m=r.communityMembers,p=void 0===m?[]:m,b=l.map((function(e){return e.id})),v=u.map((function(e){return e.id})),h=f.map((function(e){return e.id})),y=p.map((function(e){return e.id})),g=0,j=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({index:g++},e)},x=t?e.filter((function(e){return e.type===c.SPACE_GROUP&&!b.includes(e.id)})).map(j):[],C=t?e.filter((function(e){return e.type===c.SPACE&&!v.includes(e.id)})).map(j):[],w=t?e.filter((function(e){return e.type===c.MEMBER_TAG&&!h.includes(e.id)})).map(j):[],O=t?e.filter((function(e){return e.type===c.COMMUNITY_MEMBER&&!y.includes(e.id)})).map(j):e.map(j),_=[].concat(n(x),n(C),n(w),n(O));return{spaceGroups:x,spaces:C,memberTags:w,communityMembers:O,combinedRecords:_,recordCount:_.length}}},53397:(e,t,r)=>{r.d(t,{lH:()=>me,ZC:()=>de});var n=r(67294),o=r(86013),i=r(96486),a=r(87536),c=r(55675),l=r(35103),s=r(94184),u=r.n(s),d=r(82258),f=r(47267),m=r(85893),p=function(e){var t=e.children,r=e.className;return(0,m.jsx)("div",{className:u()("text-default text-xxs w-full px-5 py-2 font-semibold uppercase",r),children:t})},b=r(96417),v=r(15623),h=r(38870),y=r(12169),g=function(e){var t=e.record,r=e.onClick,n=e.isSelected,o=(0,v.g)(n),i=t.name,a=t.avatar_url;return(0,m.jsxs)("button",{type:"button",className:u()("hover:bg-tertiary flex w-full items-center gap-3 px-5 py-2 text-left first:pt-4 last:pb-4",{"bg-tertiary":n}),onClick:function(){null===r||void 0===r||r(t)},ref:o,children:[(0,m.jsx)(h.s,{name:i,src:a,size:"8"}),(0,m.jsx)(y.Z.LabelSm,{children:i})]})},j=r(64117),x=r(15218),C=r(30887),w=function(e){var t=e.count;if(!t)return null;var r=1===t?"member_count_singular":"member_count_plural";return(0,m.jsx)(y.Z.LabelXxs,{children:(0,o.t)("community_member_select.".concat(r),{count:t})})},O=function(e){var t=e.record,r=e.onClick,n=e.isSelected,o=(0,j.TC)().currentAppearance,i=(0,v.g)(n),a=t.name,c=t.emoji,l=t.custom_emoji_url,s=t.custom_emoji_dark_url,d=t.tagged_members_count,f=c||l||s;return(0,m.jsxs)("button",{type:"button",className:u()("hover:bg-tertiary flex w-full cursor-pointer items-center gap-3 px-5 py-2 text-left first:pt-4 last:pb-4",{"bg-tertiary":n}),onClick:function(){null===r||void 0===r||r(t)},ref:i,children:[(0,m.jsx)("span",{children:(0,m.jsx)(x.S,{className:"!h-5 !w-auto",emoji:c,customEmojiUrl:l,customEmojiDarkUrl:s,appearance:o})}),!f&&(0,m.jsx)(C.JO,{size:16,type:"hash-v2"}),(0,m.jsx)("span",{className:"grow",children:(0,m.jsx)(y.Z.LabelSm,{children:a})}),(0,m.jsx)("span",{children:(0,m.jsx)(w,{count:d})})]})},_=function(e){var t=e.record,r=e.onClick,n=e.isSelected,o=(0,v.g)(n),i=t.name,a=t.active_space_group_members_count;return(0,m.jsxs)("button",{type:"button",className:u()("hover:bg-tertiary flex w-full cursor-pointer items-center gap-3 px-5 py-2 text-left first:pt-4 last:pb-4",{"bg-tertiary":n}),onClick:function(){r&&r(t)},ref:o,children:[(0,m.jsx)(C.JO,{size:16,type:"bookmark-folder"}),(0,m.jsx)("div",{className:"grow",children:(0,m.jsx)(y.Z.LabelSm,{children:i})}),(0,m.jsx)(w,{count:a})]})},k=r(61642),S=function(e){var t=e.record,r=e.onClick,n=e.isSelected,o=(0,v.g)(n),i=(0,j.TC)().currentAppearance,a=t.id,c=t.name,l=t.emoji,s=t.custom_emoji_url,d=t.custom_emoji_dark_url,f=(0,k.I)({spaceId:a}).count;return(0,m.jsxs)("button",{type:"button",className:u()("hover:bg-tertiary flex w-full cursor-pointer items-center gap-3 px-5 py-2 text-left first:pt-4 last:pb-4",{"bg-tertiary":n}),onClick:function(){null===r||void 0===r||r(t)},ref:o,children:[(0,m.jsx)(x.S,{className:"!h-5 !w-5",emoji:l,appearance:i,customEmojiUrl:s,customEmojiDarkUrl:d}),(0,m.jsx)("div",{className:"grow",children:(0,m.jsx)(y.Z.LabelSm,{children:c})}),(0,m.jsx)(w,{count:f})]})};function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var E=function(e){var t=e.records,r=void 0===t?[]:t,i=e.onSelect,a=e.onReset,c=e.selectionModalRef,s=e.includeAllResultTypes,u=void 0!==s&&s,d=(0,l.B)().selectionState,v=void 0===d?{}:d,h=(0,b.X)(r,u,v),y=h.spaceGroups,j=h.spaces,x=h.memberTags,C=h.communityMembers,w=h.combinedRecords,k=h.recordCount,L=P((0,n.useState)(null),2),E=L[0],N=L[1],M=(0,n.useCallback)((function(){return N(null!==E?Math.min(E+1,k-1):0)}),[E,k]),A=(0,n.useCallback)((function(){return N(Math.max(E-1,0))}),[E]),I=(0,n.useCallback)((function(e){k&&e.preventDefault(),M()}),[M,k]),D=(0,n.useCallback)((function(e){k&&e.preventDefault(),A()}),[A,k]),T=(0,n.useCallback)((function(e){e.stopPropagation(),e.preventDefault(),null!==E&&"undefined"!==typeof E&&i(w[E])}),[i,w,E]),B=(0,n.useCallback)((function(e){k&&e.stopPropagation(),N(null),a()}),[a,k]);return(0,f.t)({onArrowDown:I,onArrowUp:D,onEnter:T,onEscape:B,enabled:!!k,elementRef:c}),k?(0,m.jsxs)("div",{className:"border-primary bg-primary absolute top-full z-50 mt-1 max-h-72 w-full overflow-auto rounded-lg border shadow-md",children:[u&&!!y.length&&(0,m.jsx)(p,{children:(0,o.t)("community_member_select.record_type_labels.space_groups")}),y.map((function(e){return(0,m.jsx)(_,{record:e,onClick:i,isSelected:(null===e||void 0===e?void 0:e.index)===E},e.id)})),u&&!!j.length&&(0,m.jsx)(p,{children:(0,o.t)("community_member_select.record_type_labels.spaces")}),j.map((function(e){return(0,m.jsx)(S,{record:e,onClick:i,isSelected:(null===e||void 0===e?void 0:e.index)===E},e.id)})),u&&!!x.length&&(0,m.jsx)(p,{children:(0,o.t)("community_member_select.record_type_labels.member_tags")}),x.map((function(e){return(0,m.jsx)(O,{record:e,onClick:i,isSelected:(null===e||void 0===e?void 0:e.index)===E},e.id)})),u&&!!C.length&&(0,m.jsx)(p,{children:(0,o.t)("community_member_select.record_type_labels.members")}),C.map((function(e){return(0,m.jsx)(g,{record:e,onClick:i,isSelected:(null===e||void 0===e?void 0:e.index)===E},e.id)}))]}):null},N=r(88767),M=r(5034),A=["placeholder","className","selectionModalRef","disableSearch"];function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var V=function(e){var t=e.placeholder,r=void 0===t?"":t,o=e.className,i=e.selectionModalRef,a=e.disableSearch,c=void 0!==a&&a,s=Z(e,A),f=(0,l.B)(),p=f.onAdd,b=f.excludeCommunityMemberIds,v=void 0===b?[]:b,h=f.includeAllResultTypes,y=B((0,n.useState)(""),2),g=y[0],j=y[1],x=(0,d.c)(g,300),C=g?x:g,w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.excludeCommunityMemberIds,n=void 0===r?[]:r,o=t.enabled,i=void 0===o||o,a=(0,N.useQuery)(M.a.search.communityMembers.index({params:{query:e,filters:{exclude_ids:n}}}),{enabled:i&&!(null===e||void 0===e||!e.length)}).data;return{records:(null===a||void 0===a?void 0:a.records)||[]}}(C,{excludeCommunityMemberIds:v,enabled:!h}),O=w.records,_=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).enabled,r=void 0===t||t,n=(0,N.useQuery)(M.a.search.communities.index({params:{query:e,exclude_posts:!0,exclude_comments:!0}}),{enabled:r&&!(null===e||void 0===e||!e.length)}).data;return{records:(null===n||void 0===n?void 0:n.search_results)||[]}}(C,{enabled:h}),k=_.records,S=h?k:O;return(0,m.jsxs)("div",D(D({className:u()("relative overflow-visible",o)},s),{},{children:[(0,m.jsx)("input",{className:"border-primary bg-primary text-dark placeholder:text-light w-full rounded-lg border px-4 py-3 placeholder:opacity-100",type:"text",placeholder:r,autoFocus:!0,value:g,onChange:function(e){return j(e.target.value)},disabled:c}),(0,m.jsx)(E,{records:S,onSelect:function(e){p(e),j("")},onReset:function(){return j("")},selectionModalRef:i,includeAllResultTypes:h})]}))},H=r(5295),z=function(e){var t=e.record,r=e.onClick,n=t.name,i=t.avatar_url;return(0,m.jsxs)("button",{type:"button",className:"group flex w-full cursor-pointer items-center gap-3 p-2 text-left",onClick:function(){null===r||void 0===r||r(t)},children:[(0,m.jsx)("div",{children:(0,m.jsx)(h.s,{name:n,src:i,size:"8"})}),(0,m.jsx)("div",{className:"min-w-[6rem] grow",children:(0,m.jsx)(y.Z.LabelSm,{children:n})}),(0,m.jsx)("div",{className:"text-darkest invisible group-hover:visible",children:(0,m.jsx)(y.Z.LabelSm,{children:(0,o.t)("remove")})})]})},U=function(e){var t=e.record,r=e.onClick,n=(0,j.TC)().currentAppearance,i=t.name,a=t.emoji,c=t.custom_emoji_url,l=t.custom_emoji_dark_url,s=t.tagged_members_count,u=a||c||l;return(0,m.jsxs)("button",{type:"button",className:"group flex w-full cursor-pointer items-center gap-3 p-2 text-left",onClick:function(){null===r||void 0===r||r(t)},children:[(0,m.jsx)("span",{children:(0,m.jsx)(x.S,{className:"!h-5 !w-auto",emoji:a,customEmojiUrl:c,customEmojiDarkUrl:l,appearance:n})}),!u&&(0,m.jsx)(C.JO,{size:16,type:"hash-v2"}),(0,m.jsx)(y.Z.LabelSm,{children:i}),(0,m.jsx)("div",{className:"min-w-[6rem] grow",children:(0,m.jsx)(w,{count:s})}),(0,m.jsx)("div",{className:"text-dark invisible group-hover:visible",children:(0,m.jsx)(y.Z.LabelSm,{children:(0,o.t)("remove")})})]})},F=function(e){var t=e.record,r=e.onClick,n=t.name,i=t.active_space_group_members_count;return(0,m.jsxs)("button",{type:"button",className:"group flex w-full cursor-pointer items-baseline gap-3 p-2 text-left",onClick:function(){null===r||void 0===r||r(t)},children:[(0,m.jsx)(C.JO,{size:16,type:"bookmark-folder"}),(0,m.jsx)(y.Z.LabelSm,{children:n}),(0,m.jsx)("div",{className:"min-w-[6rem] grow",children:(0,m.jsx)(w,{count:i})}),(0,m.jsx)("div",{className:"text-dark invisible group-hover:visible",children:(0,m.jsx)(y.Z.LabelSm,{children:(0,o.t)("remove")})})]})},q=function(e){var t=e.record,r=e.onClick,n=t.id,i=t.name,a=t.emoji,c=t.custom_emoji_url,l=t.custom_emoji_dark_url,s=(0,j.TC)().currentAppearance,u=(0,k.I)({spaceId:n}).count;return(0,m.jsxs)("button",{type:"button",className:"group flex w-full cursor-pointer items-baseline gap-3 p-2 text-left",onClick:function(){null===r||void 0===r||r(t)},children:[(0,m.jsx)(x.S,{className:"!h-5 !w-5",emoji:a,appearance:s,customEmojiUrl:c,customEmojiDarkUrl:l}),(0,m.jsx)(y.Z.LabelSm,{children:i}),(0,m.jsx)("div",{className:"grow",children:(0,m.jsx)(w,{count:u})}),(0,m.jsx)("div",{className:"text-dark invisible group-hover:visible",children:(0,m.jsx)(y.Z.LabelSm,{children:(0,o.t)("remove")})})]})},W=function(){var e=(0,l.B)(),t=e.selectionState,r=void 0===t?{}:t,n=e.onRemove,i=e.includeAllResultTypes,a=void 0!==i&&i,c=e.isLoading,s=r.spaceGroups,u=r.spaces,d=r.memberTags,f=r.communityMembers;return c?(0,m.jsx)(H.a,{}):function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).length||e.length||t.length||r.length}(s,u,d,f)?(0,m.jsxs)("div",{className:"mt-3 grow-0 overflow-auto",children:[a&&!(null===s||void 0===s||!s.length)&&(0,m.jsx)(p,{className:"pl-0",children:(0,o.t)("community_member_select.record_type_labels.space_groups")}),null===s||void 0===s?void 0:s.map((function(e){return(0,m.jsx)(F,{record:e,onClick:n},e.id)})),a&&!(null===u||void 0===u||!u.length)&&(0,m.jsx)(p,{className:"pl-0",children:(0,o.t)("community_member_select.record_type_labels.spaces")}),null===u||void 0===u?void 0:u.map((function(e){return(0,m.jsx)(q,{record:e,onClick:n},e.id)})),a&&!(null===d||void 0===d||!d.length)&&(0,m.jsx)(p,{className:"pl-0",children:(0,o.t)("community_member_select.record_type_labels.member_tags")}),null===d||void 0===d?void 0:d.map((function(e){return(0,m.jsx)(U,{record:e,onClick:n},e.id)})),a&&!(null===f||void 0===f||!f.length)&&(0,m.jsx)(p,{className:"pl-0",children:(0,o.t)("community_member_select.record_type_labels.members")}),null===f||void 0===f?void 0:f.map((function(e){return(0,m.jsx)(z,{record:e,onClick:n},e.id)}))]}):null},G=function(e){var t=e.searchPlaceholder,r=e.disableSearch,i=(0,n.useRef)(null);return(0,m.jsxs)("div",{ref:i,className:"flex max-h-96 flex-col",children:[(0,m.jsx)(V,{placeholder:t||(0,o.t)("community_member_select.search_placeholder"),selectionModalRef:i,disableSearch:r}),(0,m.jsx)(W,{})]})},J=r(53448),X=function(e){var t=e.isOpen,r=e.onClose,n=e.selectionLabel,i=e.searchPlaceholder,a=e.modalSaveButtonLabel,s=e.renderAfterSelection,u=void 0===s?null:s,d=e.disableSearch,f=(0,l.B)().onSave;return(0,m.jsxs)(J.u_,{isOpen:t,onClose:r,children:[(0,m.jsx)(J.u_.Overlay,{}),(0,m.jsxs)(J.u_.Content,{className:"overflow-visible",children:[(0,m.jsxs)(J.u_.Header,{children:[(0,m.jsx)(J.u_.Title,{className:"text-center",children:n||(0,o.t)("community_member_select.selection_label")}),(0,m.jsx)(J.u_.HeaderActions,{children:(0,m.jsx)(J.u_.CloseButton,{onClick:r})})]}),(0,m.jsx)(J.u_.Body,{className:"overflow-y-visible py-4",children:(0,m.jsx)(G,{searchPlaceholder:i,disableSearch:d})}),(0,m.jsxs)(J.u_.Footer,{children:[u,(0,m.jsx)(c.z,{type:"submit",variant:"primary",full:!0,large:!0,onClick:function(){f(),r()},children:a||(0,o.t)("save")})]})]})]})},$=r(74284),K=["buttonLabel","countLabel","tooltipText","onClick"];function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function te(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var re=function(e){var t=e.buttonLabel,r=e.countLabel,n=e.tooltipText,i=e.onClick,a=te(e,K),s=(0,l.B)().selectionState,u=void 0===s?{}:s,d=u.memberCount,f=void 0===d?0:d,p=u.isLoading,b="".concat(f," ").concat(r||(0,o.t)("community_member_select.count_label")),v=f>0?(0,o.t)("manage"):(0,o.t)("add");return p?(0,m.jsx)(H.a,{}):(0,m.jsxs)("div",Y(Y({className:"flex w-full items-center justify-between"},a),{},{children:[(0,m.jsxs)("div",{children:[(0,m.jsx)(y.Z.LabelSm,{children:b}),n&&(0,m.jsx)($.Y,{content:n,children:(0,m.jsx)(C.JO,{type:"question-mark",className:"icon icon--xs ml-2"})})]}),(0,m.jsx)(c.z,{type:"button",variant:"secondary",onClick:i,className:"w-24",children:t||v})]}))},ne=["onChange","value","name","countLabel","tooltipText","selectionLabel","searchPlaceholder","buttonLabel","modalSaveButtonLabel","includeAllResultTypes","renderAfterSelection","variant","disableSearch","excludedMemberIds","allowCurrentCommunityMember","onModalClose","onModalSave"],oe=["name","rules"];function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return se(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ue(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var de={SIMPLE:"simple",MODAL:"modal",BUTTON:"button"},fe=function(e){var t=e.onChange,r=e.value,a=e.name,s=e.countLabel,u=e.tooltipText,d=e.selectionLabel,f=e.searchPlaceholder,p=e.buttonLabel,b=e.modalSaveButtonLabel,v=e.includeAllResultTypes,h=void 0!==v&&v,y=e.renderAfterSelection,g=void 0===y?null:y,j=e.variant,x=void 0===j?de.SIMPLE:j,C=e.disableSearch,w=e.excludedMemberIds,O=void 0===w?[]:w,_=e.allowCurrentCommunityMember,k=void 0!==_&&_,S=e.onModalClose,P=e.onModalSave,L=ue(e,ne),E=le((0,n.useState)(!1),2),N=E[0],M=E[1],A=function(){M(!N),N&&(0,i.isFunction)(S)&&S()};return(0,m.jsxs)(l.b,{onChange:t,value:r,name:a,includeAllResultTypes:h,excludedMemberIds:O,allowCurrentCommunityMember:k,variant:x,onModalSave:P,children:[x===de.SIMPLE&&(0,m.jsx)(G,{searchPlaceholder:f,disableSearch:C}),x===de.MODAL&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(re,ae({buttonLabel:p,countLabel:s,tooltipText:u,onClick:A},L)),(0,m.jsx)(X,{isOpen:N,onClose:A,selectionLabel:d,searchPlaceholder:f,modalSaveButtonLabel:b,renderAfterSelection:g,disableSearch:C})]}),x===de.BUTTON&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(c.z,{type:"button",variant:"secondary",onClick:A,className:"min-w-[96px]",children:p||(0,o.t)("add")}),(0,m.jsx)(X,{isOpen:N,onClose:A,selectionLabel:d,searchPlaceholder:f,modalSaveButtonLabel:b,renderAfterSelection:g,disableSearch:C})]})]})},me=function(e){var t=e.name,r=e.rules,n=ue(e,oe),o=(0,a.Gc)().control;return(0,m.jsx)(a.Qr,{control:o,name:t,rules:r,render:function(e){var r=e.field,o=r.onChange,i=r.value;return(0,m.jsx)(fe,ae(ae({},n),{},{onChange:o,value:i,name:t}))}})}},50517:(e,t,r)=>{r.d(t,{d:()=>m});var n=r(86013),o=r(23560),i=r.n(o),a=r(20633),c=r(85893),l=["className","onClick","children"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var m=function(e){var t=e.className,r=e.onClick,o=e.children,s=f(e,l);return(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)(a.h,u({name:"20-arrow-left",iconSize:20,iconClassName:"!text-dark",className:t,dataTestId:"exit",onClick:function(){return i()(r)&&r()},ariaLabel:(0,n.t)("close")},s)),o]})}},61652:(e,t,r)=>{r.d(t,{k:()=>m});var n=r(86013),o=r(23560),i=r.n(o),a=r(55675),c=r(85893),l=["onClick","variant","formId","children"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var m=function(e){var t=e.onClick,r=e.variant,o=void 0===r?"primary":r,s=e.formId,d=e.children,m=f(e,l),p=s?{form:s,type:"submit"}:{type:"button"};return(0,c.jsx)(a.z,u(u(u({variant:o,onClick:function(){return i()(t)&&t()}},p),m),{},{children:d||(0,n.t)("save")}))}},28268:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(94184),o=r.n(n),i=r(67732),a=r(85893),c=["children","className","variant"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=function(e){var t=e.children,r=e.className,n=void 0===r?"":r,l=e.variant,u=void 0===l?"default":l,f=d(e,c),m=(0,i.v)().isMobileWebNewSpaceCustomizationUIEnabled;return(0,a.jsx)("div",s(s({className:o()("grid-rows-customize-ui grid-cols-customize-ui grid h-full w-full overflow-hidden",{"grid-areas-customize-ui":"default"===u,"!grid-cols-customize-ui-v2-1":m,"grid-areas-customize-ui-without-sidebar":"no-sidebar"===u,"grid-areas-customize-ui-without-header":"no-header"===u,"grid-areas-customize-ui-only-main":"only-main"===u},n)},f),{},{children:t}))}},55825:(e,t,r)=>{r.d(t,{MW:()=>p,yR:()=>Y,h4:()=>z,Ar:()=>xe,eW:()=>m});var n=r(64687),o=r.n(n),i=r(67294),a=r(96486),c=r(85893);function l(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,c,"next",e)}function c(e){l(i,n,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=(0,i.createContext)({addBeforeExit:a.noop,addBeforeSave:a.noop,currentSection:"",formId:"",isCustomizeUI:!1,isSaveButtonDisabled:!1,isSaving:!1,onExit:a.noop,onSave:a.noop,removeBeforeExit:a.noop,removeBeforeSave:a.noop,screenSize:"desktop",sections:[],setCurrentSection:a.noop,setIsSaveButtonDisabled:a.noop,setScreenSize:a.noop,title:""});f.displayName="CustomizeUIData";var m=function(){return(0,i.useContext)(f)},p=function(e){var t=e.children,r=e.formId,n=void 0===r?"":r,l=e.initialScreenSize,d=void 0===l?"desktop":l,m=e.initialSection,p=void 0===m?"":m,b=e.isSaving,v=void 0!==b&&b,h=e.onExit,y=void 0===h?a.noop:h,g=e.onSave,j=void 0===g?a.noop:g,x=e.sections,C=void 0===x?[]:x,w=e.title,O=void 0===w?"":w,_=u((0,i.useState)(d),2),k=_[0],S=_[1],P=u((0,i.useState)(null),2),L=P[0],E=P[1],N=u((0,i.useState)(null),2),M=N[0],A=N[1],I=u((0,i.useState)(!1),2),D=I[0],T=I[1],B=u((0,i.useState)(p||C[0]||""),2),R=B[0],Z=B[1],V=(0,i.useCallback)(function(){var e=s(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.isFunction)(L)){e.next=6;break}return e.next=3,L();case 3:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:y(t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[L,y]),H=(0,i.useCallback)(function(){var e=s(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,a.isFunction)(M)){e.next=6;break}return e.next=3,M();case 3:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:j(t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[M,j]),z={addBeforeExit:function(e){return E((function(){return e}))},addBeforeSave:function(e){return A((function(){return e}))},currentSection:R,formId:n,isCustomizeUI:!0,isSaveButtonDisabled:D,isSaving:v,onExit:V,onSave:H,removeBeforeExit:function(){return E((function(){return null}))},removeBeforeSave:function(){return A((function(){return null}))},screenSize:k,sections:C,setCurrentSection:Z,setIsSaveButtonDisabled:T,setScreenSize:S,title:O};return(0,c.jsx)(f.Provider,{value:z,children:t})},b=r(12939),v=r(12169),h=r(86013),y=r(23560),g=r.n(y),j=r(30887),x=r(74284),C=r(1002),w=C.Lt.ItemWithLink,O="desktop",_="tablet",k="mobile",S=r(50517),P=r(94184),L=r.n(P),E=["children","className"];function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var D=["children","className"];function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var V=r(40160),H=r(61652),z=function(e){var t=e.children,r=e.className,n=I(e,E);return(0,c.jsx)("nav",M(M({className:L()("bg-primary flex h-full max-h-16 w-full items-center justify-between px-6 py-4",r)},n),{},{children:t}))};z.Actions=function(e){var t=e.children,r=e.className,n=Z(e,D);return(0,c.jsx)("div",B(B({className:L()("flex items-center gap-6",r)},n),{},{children:t}))},z.ExitButton=S.d,z.LinkButton=function(e){var t=e.label,r=e.to;return(0,c.jsx)(V.OL,{to:r,className:"text-default hover:text-darkest focus:text-darkest flex items-center rounded-md bg-transparent px-3 py-2 text-sm font-medium leading-5 outline-none",activeClassName:"bg-secondary !text-darkest font-semibold",children:t})},z.SaveButton=H.k,z.ScreenSizeSelect=function(e){var t=e.selected,r=void 0===t?O:t,n=e.onSelect,o=[{label:(0,h.t)("desktop"),value:O,icon:"16-desktop",selectedIcon:"20-desktop"},{label:(0,h.t)("tablet"),value:_,icon:"16-tablet",selectedIcon:"20-tablet"},{label:(0,h.t)("mobile"),value:k,icon:"16-mobile",selectedIcon:"20-mobile"}],i=o.find((function(e){return e.value===r}))||o[0],a=i.label,l=i.selectedIcon;return(0,c.jsx)(C.Lt,{buttonWrapperClassName:"flex items-center",button:(0,c.jsx)(x.Y,{content:(0,h.t)("change_preview"),boundary:"viewport",popperOptions:{placement:"bottom"},children:(0,c.jsxs)("div",{className:"text-dark flex h-7 w-7 items-center p-1",children:[(0,c.jsx)(j.JO,{size:20,type:l}),(0,c.jsx)("span",{className:"sr-only",children:a})]})}),children:o.map((function(e){return(0,c.jsx)(w,{value:e.value,onClick:function(){g()(n)&&n(e.value)},linkType:"button",children:(0,c.jsxs)("div",{className:"text-dark flex items-center justify-between",children:[(0,c.jsxs)("span",{children:[(0,c.jsx)(j.JO,{size:16,type:e.icon,className:"mr-[10px] !w-4"}),e.label]}),e.value===r&&(0,c.jsx)(j.JO,{size:12,type:"12-check-circle",className:"!w-3"})]})},e.value)}))})};var U=["currentScreenSize","currentSection","formId","onChangeScreenSize","onChangeSection","onExit","onSave","sections","title","isSaving","shouldShowActions"];function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var J=function(e){var t=e.currentScreenSize,r=void 0===t?"desktop":t,n=e.currentSection,o=void 0===n?"":n,i=e.formId,a=void 0===i?"":i,l=e.onChangeScreenSize,s=e.onChangeSection,u=e.onExit,d=e.onSave,f=e.sections,p=void 0===f?[]:f,h=e.title,y=void 0===h?"":h,g=e.isSaving,j=void 0!==g&&g,x=e.shouldShowActions,C=void 0===x||x,w=G(e,U),O=m().isSaveButtonDisabled,_=p.map((function(e){return{value:e,label:e}}));return(0,c.jsxs)(z,q(q({},w),{},{children:[(0,c.jsxs)(z.Actions,{className:"!gap-4",children:[(0,c.jsx)(z.ExitButton,{onClick:u}),y&&(0,c.jsx)(v.Z.LabelMd,{weight:"semibold",children:y})]}),(0,c.jsx)(z.Actions,{children:(0,c.jsx)(b.S,{value:o,onChange:s,options:_})}),C&&(0,c.jsxs)(z.Actions,{children:[(0,c.jsx)(z.ScreenSizeSelect,{onSelect:l,selected:r}),(0,c.jsx)(z.SaveButton,{onClick:d,formId:a,disabled:j||O,variant:"circle"})]})]}))};function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){K(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}var Y=function(e){var t=Q({},e),r=m(),n=r.screenSize,o=r.setScreenSize,i=r.sections,a=r.currentSection,l=r.setCurrentSection,s=r.onExit,u=r.onSave,d=r.formId,f=r.title,p=r.isSaving;return(0,c.jsx)(J,$($({},t),{},{title:f,currentScreenSize:n,onChangeScreenSize:o,currentSection:a,onChangeSection:l,sections:i,onExit:s,onSave:u,formId:d,isSaving:p}))},ee=["children","className"];function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ie=["children","className"];function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ue=r(28268),de=["children","className"];function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function be(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ve=["children","className"];function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var xe=Object.assign(ue.A,{Header:function(e){var t=e.children,r=e.className,n=void 0===r?"":r,o=se(e,ie);return(0,c.jsx)("header",ce(ce({className:L()("bg-primary border-primary grid-in-header h-full w-full overflow-x-auto border-b",n)},o),{},{children:t}))},Footer:function(e){var t=e.children,r=e.className,n=oe(e,ee);return(0,c.jsx)("footer",re(re({className:L()("bg-primary border-primary grid-in-footer h-full w-full overflow-x-auto border-t",r)},n),{},{children:t}))},Main:function(e){var t=e.children,r=e.className,n=void 0===r?"":r,o=be(e,de);return(0,c.jsx)("main",me(me({className:L()("bg-secondary grid-in-main h-full w-full overflow-auto",n)},o),{},{children:t}))},Sidebar:function(e){var t=e.children,r=e.className,n=void 0===r?"":r,o=je(e,ve);return(0,c.jsx)("aside",ye(ye({className:L()("bg-primary border-primary grid-in-sidebar h-full w-full overflow-y-auto border-r",n),"data-testid":"side-menu-bar"},o),{},{children:t}))}})},39465:(e,t,r)=>{r.d(t,{L:()=>o});var n=r(85893),o=function(e){var t=e.condition,r=e.children,o={};return t&&(o.display="none"),(0,n.jsx)("div",{style:o,children:r})}},59492:(e,t,r)=>{r.d(t,{X:()=>a});var n=r(85893);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){var t=e.errors,r=void 0===t?{}:t,i=Object.entries(r);return i.length?(0,n.jsx)(n.Fragment,{children:i.map((function(e){var t=o(e,2),r=t[0],i=t[1];return(0,n.jsx)("div",{className:"form-errors",children:i.message},r)}))}):null}},74442:(e,t,r)=>{r.d(t,{Q:()=>a});var n=r(94184),o=r.n(n),i=r(85893),a=function(e){var t=e.field,r=e.label,n=e.description,a=e.className;return(0,i.jsxs)("div",{className:o()("form-meta",a),children:[(0,i.jsx)("label",{htmlFor:t,children:r}),n&&(0,i.jsx)("div",{className:"field-description",dangerouslySetInnerHTML:{__html:n}})]})}},30887:(e,t,r)=>{r.d(t,{JO:()=>b,Er:()=>s});var n=r(94184),o=r.n(n),i=r(85893);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=[].concat(a(["mark-all-read","menu-dots-vertical","globe","share","share-v2","analytics","mute-notifications","exit","report","api","book","arrow-solid-bottom-left","arrow-solid-bottom-right","reply","arrow-line-bottom-left","arrow-line-bottom-right","arrow-line-top-left","arrow-line-top-right","arrow-solid-top-left","arrow-solid-top-right","attachment","bell","billing","box","box-check","box-line","calendar","message-lines-center","circle-add","circle-check","circle-checked","circle-unchecked","circle-dollar","info","code","dashboard","delete","back","dm","download","embed","facebook","facebook-alt","file","filter","flag","flagged","image","instagram","star","layers","like","linkedin","linkedin-alt","lock","lock-solid","mail","map","members","menu-dots","message","message-center","message-lines","payments","pencil","profile","search","settings","settings-v2","suitcase","tag","twitter","twitter-alt","user","add-user","message-new","home","menu","fullpage","caret-down","caret-down-solid","caret-down-small","caret-down-bold","close","close-v2","pin","information-outline","link","cheveron-up","cheveron-down","user-error","user-delete","topic","add","mention","check","arrow-right","hash","select-double-arrow","attachment-pdf","attachment-mp3","attachment-video","attachment-empty","back-arrow","back-arrow-v2","hamburger","toolbar-action","toolbar-video","toolbar-image","toolbar-gif","toolbar-file","giphy","block-menu-btn","emoji","clear","new-direct-message","circle-check--green","bar-plus","sort-arrows","loader","plus","expand","shrink","cover","smile","space-members-only","space-members-only-active","space-private","space-private-active","space-open","space-open-active","notifications-none","notifications-none-active","notifications-email","notifications-email-active","notifications-app","notifications-app-active","plus-big","posts-thumbnail","events-thumbnail","circle-checked-old","circle-unchecked-old","feed-thumbnail","list-thumbnail","card-thumbnail","hangup","fullscreen","exit-fullscreen","chat-activity","session-info","middot","add-participants","strong-signal","weak-signal","live-streams-arrow-left","live-streams-arrow-right","speaker-view","gallery-view","menu-check","play","checklist","success-circle","circle-empty","eye-closed-solid","map-pin","post","comment","space","card-amex","card-diners","card-discover","card-jcb","card-mastercard","card-unionpay","card-visa","card-generic","lightning","members-v2","home-v2","cheveron-right","camera","camera-disabled","microphone","microphone-muted","screen","people","chat","video-settings","notification-info","exit-session","question-mark","pin-map","at-symbol","plus-v2","rail-collapse-right","rail-collapse-left","space-chat-members","sidebar-messages","sidebar-bell","search-v2","filter-v2","20-close","20-back","16-search","16-account","16-download","16-chevron-down","20-chevron-right","20-menu-3-dot","20-chevron-left","icon-check-solid","new-tab-link","hash-v2","lock-v2","menu-dots-v2","check-solid","16-social-web","20-calendar-number","24-calendar-number","20-calendar-recurring","24-calendar-recurring","tiptap-mention","tiptap-emoji","tiptap-send","tiptap-image","tiptap-gif","tiptap-paperclip","credit-card","google-pay","apple-pay","live-stream-settings","chevron-left","settings-gear","settings-account","settings-plan","settings-moderation","bookmark-folder","16-folder","clipboard","20-user","20-arrow-left","all-spaces","recording","16-trash-bin","16-drag-handle","20-desktop","16-desktop","16-tablet","16-mobile","12-check-circle","20-mobile","20-tablet","16-character-square","16-text-square","16-select-square","16-number-square","16-checkbox-square","16-facebook-square","16-twitter-square","16-linkedin-square","16-instagram-square","16-add","16-calendar","16-eye-closed","16-eye-open","16-check-circle","20-brush","20-settings","20-add-user","20-post","20-comment","courses","20-plus-v2","20-close-sm","16-calendar","16-location","16-user","16-question-mark","20-sun","20-moon","16-grid","bullet-list-text","20-copy","16-add-sm","16-add-lg","12-close","16-clock","16-sun","16-moon","16-palette","16-invite-member","16-settings","16-analytics","16-edit"]),a(["16-edit","16-lock-unlocked","16-sign-out","16-customize","16-info","16-copy","16-arrow-top-right","16-arrow-back","16-file-image","20-character-bold","20-character-h2","20-character-h3","20-character-italic","20-character-underline","20-character-strike","20-character-link","16-video-block","16-text","16-instructor","16-call-to-action","20-info","20-course-video","20-course-audio","16-arrow-right","16-arrow-left","16-lock","16-lock","16-eye-hidden","16-eye-visible","16-messages","16-enable-DM","16-disable-DM","20-checkmark-circle","20-checkmark-circle-fill","20-checkmark-circle-fill-thin","20-checkmark-blue","16-publish","20-members","16-book","16-close","20-close-circle","raise-hand","raise-hand-filled","weak-signal","36-course-file","36-course-file-audio","36-course-file-video","36-course-file-pdf","12-arrow-up","12-arrow-down","20-add-sm","coupon-tag","chat-thread","16-exit","20-chevron-down-sm","12-lightning","12-lightning-outline","20-menu-dots-horizontal","16-workflow-user","16-workflow-tag","16-workflow-badge","16-workflow-post","16-workflow-course","16-workflow-space","16-workflow-event","16-workflow-chat","16-workflow-group-chat","16-workflow-paywall","16-workflow-clock","16-workflow-comment","16-workflow-like","16-workflow-notification","16-workflow-profile-field","16-workflow-email","16-workflow-audience","16-workflow-user-remove","16-workflow-time-delay","24-workflow-user","24-workflow-tag","24-workflow-badge","24-workflow-post","24-workflow-course","24-workflow-space","24-workflow-event","24-workflow-chat","24-workflow-group-chat","24-workflow-paywall","24-workflow-clock","24-workflow-comment","24-workflow-like","24-workflow-notification","24-workflow-profile-field","24-workflow-email","24-workflow-audience","24-workflow-user-remove","24-workflow-time-delay","20-time-delay","20-expand","40-arrow-down","32-line-vertical","16-space-directory","16-space-directory-remove","16-folder-remove","16-calendar-add","16-calendar-join-date","16-comment","16-create-post","16-like","16-chat","16-remove-user","16-notifications","16-email","16-tag","16-tags","16-remove-tags","16-add-badge","16-remove-badge","16-input-select","16-graduate","16-paywall","16-webhook","16-remove-paywall","16-refund-payment","16-wait","16-chat-threads","32-chat-threads","16-members","16-arrow","20-new-tab-link","12-question-mark","20-chat-threads","20-lightning","20-rocket","20-clock","20-checkmark-ring-transparent","host","moderator","20-close-md","cohost","16-keyboard-shortcuts","16-clock","16-notifications","16-search","16-menu-dots-horizontal","16-add-new","announcements","16-external-link","share-support-widget","16-mark-as-read","16-go-live-indicator","24-live-waveform","16-workflow-user-remove-outline","20-add-lg","20-back-to-community","20-members","20-content","20-workflows","20-payments","20-live-stream","20-moderation","20-analytics","20-paywalls-affiliates","16-paywalls-affiliates","20-plans","20-nav-settings","20-fullscreen","20-fullscreen-exit","20-thumbnail","20-cover-image","20-add-circle","20-attach","20-file-video","20-file-image","20-emoji","20-video","20-gif","20-ai","16-smile","16-sad","16-neutral","20-arrow-left","16-transcript","16-go-live","20-variables","16-paywalls","16-plans","16-share","16-chat-threads-header","support-widget-calendar","20-reply-to-thread","16-open-in-space","16-open-threads","16-refresh","20-chevron-down","20-chevron-up","20-folder-open","20-manual-invite"]),a(["16-artificial-intelligence","29-artificial-intelligence","16-ask-ai-gradient","20-ask-ai-gradient","20-stardust-gradient","16-thunder","16-arrow-enter","16-members-bis","16-camera","16-pin-sm","20-checkmark","20-microphone","20-retry","16-calendar-recurring","20-space-picker-members","20-alert","24-search-v2","32-search-v2","12-circle-check","icon-customize-layout-feed","icon-customize-layout-list","16-chevron-right","16-chevron-up","16-repeat","20-editor-poll","20-pinned-post","20-images","16-post-list-like","16-post-list-comment","16-star-ai","24-circle-arrow-up","event-layout-thumbnail","event-layout-list","16-image-square","16-image-portrait","16-image-landscape","16-zoom-out","16-zoom-in","16-bookmark","16-bookmark-fill","20-bookmark","20-bookmark-fill","16-microphone","16-microphone-muted","20-tiptap-entity","12-globe","20-filters","16-thumbnail-layout","14-magic-ai","16-disabled","16-crop","16-reaction","20-card-view-mobile","20-feed","20-masonry","20-grid","16-multiple-images","16-join-date","16-live","16-video","20-attachment","20-gif-2","20-image-2","20-video-2","20-hash","20-mention","20-mic-2","20-reaction","20-text-formatting","16-send","20-send","20-checklist","course-files","20-location","20-camera","10-circle-check","20-calendar","24-close","16-reorder","16-refresh","20-menu-dots-vertical","16-pin-sm-white","16-restart","16-check","16-link","12-chevron-right","12-chevron-left","20-pix","20-pin-post","16-trash-bin-2","16-message","20-email-broadcast","16-welcome-banner","16-document-text","align-img-left","align-img-right","align-img-center","align-img-full","20-delay-time","20-event-ticket","16-event-ticket","20-share","20-search-v3","20-bell-v3","20-message-v3","20-thread-v3","20-bookmark-v3","20-todo-list-v3","20-feed-v3","20-three-dots-vertical-v3","20-three-dots-horizontal-v3","12-chevron-down-v3","20-image-v3","20-customize-v3","20-card-v3","20-locker-closed-v3","20-info-v3","20-user-plus-v3","20-sign-out-v3","20-users-v3","20-doc-v3","20-spaces-v3","20-shield-v3","20-live-v3","20-flash-v3","20-currency-v3","20-analytics-v3","20-affiliates-v3","20-settings-v3","20-moon-v3","20-color-palette-v3","20-open-eye-v3","20-folder-v3","20-user-v3","20-edit-v3","20-bell-v3","20-locker-open-v3","20-book-v3","20-bin-v3","20-plus-v3","20-welcome-banner-v3","event-layout-calendar","customize-layout-feed","customize-layout-list","post-2","event","chat-2","spaceship-blue","new-file-plus","star-orange","16-capital-text","24-info","24-radio-checked","24-radio-unchecked","20-checkmark-circle-fill-dark","leaderboard-progress","leaderboard-activity","leaderboard-levelup","leaderboard-rank-1","leaderboard-rank-2","leaderboard-rank-3","leaderboard-rank-1-dark","leaderboard-rank-2-dark","leaderboard-rank-3-dark","20-event-clock","20-event-members","24-heart-outline","24-heart-red-fill","24-comment-v3","16-heading1","20-community-ai","16-editor-h2","16-editor-h3","16-editor-mention","16-editor-image","16-editor-file","16-editor-audio","16-editor-video","16-editor-pdf","16-editor-giphy","16-editor-embed","16-editor-ul","16-editor-ol","16-editor-emoji","16-editor-poll","16-editor-code","16-editor-divider","16-editor-paragraph","16-editor-quote","16-editor-youtube","16-editor-wistia","16-editor-vimeo","16-editor-loom","16-editor-soundcloud","16-editor-spotify","16-editor-simplecast","16-editor-instagram","16-editor-facebook","16-editor-twitter","16-editor-typeform","16-editor-airtable","16-editor-github","16-editor-google-maps","16-editor-codepen","20-link","20-checkbox","16-bold","16-italic","16-string-text","16-edit-underline","20-reaction","24-comment","16-image-left","16-image-right","16-image-centre","16-image-full-width","16-trash","link-pay","20-workflows-lightning","20-keyboard-shortcuts","24-keyboard-shortcuts","16-workflows-lightning-filled","16-workflows-lightning-filled-gray","12-warning","20-flux-bookmark","20-flux-search","12-chevron-down","16-workflow-fit-to-container","16-workflow-zoom-in","16-workflow-zoom-out","16-arrow-up","16-arrow-down","16-payments","courses-dashboard","courses-comments","courses-paywalls","courses-community","courses-video-hosting","22-warning-i","20-display","20-docs","20-stack-dev","20-code-tag","20-site","16-site-link","16-star","20-blocked","16-star-fill","24-threads","20-users-plus","16-required-off","16-required-on","14-thumbs-up","14-reply-in-space","16-google-calendar","16-minus","16-reply-v3","16-post-v3","16-pools-v3","16-message-v3","16-mention-v3","16-live-v3","16-like-v3","16-event-v3","16-alert-v3","24-qa","16-spotlight-pin","14-spotlight-check","14-close","14-check","14-live-qa-settings","16-workflows-v2-error","16-workflows-v2-members","16-workflows-v2-valid","12-workflows-end","20-community-inbox","20-community-bot"])),s=function(e){return l.includes(e)},u=["type","className","size","viewBox","useWithFillCurrentColor","useWithStrokeCurrentColor","aria-hidden"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var b=function(e){var t=e.type,r=e.className,n=void 0===r?"":r,a=e.size,c=e.viewBox,l=void 0===c?"0 0 24 24":c,s=e.useWithFillCurrentColor,d=void 0!==s&&s,m=e.useWithStrokeCurrentColor,b=void 0!==m&&m,v=e["aria-hidden"],h=void 0===v||v,y=p(e,u),g={viewBox:l};return a&&(g={width:a,height:a,viewBox:"0 0 ".concat(a," ").concat(a)}),(0,i.jsx)("svg",f(f(f({className:o()("icon icon-".concat(t),{"animate-spin":"loader"===t},n),"aria-hidden":h},y),g),{},{children:(0,i.jsx)("use",{xlinkHref:"#icon-".concat(t),className:o()({"!fill-current":d},{"!stroke-current":b})})}))}},86078:(e,t,r)=>{r.d(t,{m:()=>i});var n=r(5295),o=r(85893),i=function(e){var t=e.className,r=void 0===t?"":t;return(0,o.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,o.jsx)(n.a,{className:r})})}},63883:(e,t,r)=>{r.d(t,{f:()=>c,G9:()=>l,xE:()=>s});var n=r(53416),o=r(3085);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=function(e){return"id"in e&&"field_type"in e},l=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:(0,n.x0)()},e)},s=function(e){return"profile_field"===e.key&&"profile_field_id"in e&&"profile_field_type"in e&&(t=e.profile_field_type,Object.values(o.Z9).includes(t));var t}},71570:(e,t,r)=>{r.d(t,{Js:()=>d});var n=r(67294),o=r(94184),i=r.n(o),a=r(69293),c=r(77672),l=r(66154),s=r(85893),u=r(30887),d=function(e){var t=e.children,r=e.show,o=e.fullscreen,l=void 0!==o&&o,u=e.className,d=e.innerClassName,f=e.closeOnEscape,m=void 0!==f&&f,p=e.closeOnOutsideClick,b=void 0!==p&&p,v=e.onClose,h=e.trixMode,y=(0,n.useRef)(null);if((0,c.h)((function(){m&&r&&v()})),(0,a.Z)(y,(function(){b&&r&&v()})),!r)return null;var g=i()("modal__box ".concat(h),u,{modal__fullscreen:l});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:g,children:(0,s.jsx)("div",{ref:y,className:i()("modal__inner",d),children:t})}),(0,s.jsx)("div",{className:"modal-background !bg-gray-900/50"})]})};d.Header=function(e){var t=e.onClose,r=e.children;return(0,s.jsxs)("div",{className:"modal__header",children:[r,(0,s.jsx)(l.If,{condition:!!t,children:(0,s.jsx)("a",{href:"#close",onClick:function(e){e.preventDefault(),t(e)},className:"modal__close",children:(0,s.jsx)(u.JO,{type:"close"})})})]})},d.Body=function(e){var t=e.title,r=e.children,n=e.className;return(0,s.jsxs)("div",{className:i()("modal__body",n),children:[(0,s.jsx)(l.If,{condition:!!t,children:(0,s.jsxs)("h2",{className:"modal__title",children:["$",t]})}),(0,s.jsx)("div",{className:"modal__description",children:r})]})}},78573:(e,t,r)=>{r.d(t,{W:()=>s});var n=r(94184),o=r.n(n),i=r(96486),a=r(55675),c=r(53448),l=r(85893),s=function(e){var t=e.actionText,r=e.actionVariant,n=void 0===r?"primary":r,s=e.children,u=e.contentPortalId,d=void 0===u?"":u,f=e.disabled,m=void 0!==f&&f,p=e.formId,b=e.isOpen,v=void 0!==b&&b,h=e.onAction,y=e.onClose,g=e.size,j=void 0===g?"md":g,x=e.title,C=e.modalContentClassName,w=void 0===C?"":C,O=e.titleClassName,_=void 0===O?"":O;return(0,l.jsxs)(c.u_,{isOpen:v,onClose:function(){return(0,i.isFunction)(y)&&y()},contentPortalId:d,children:[(0,l.jsx)(c.u_.Overlay,{}),(0,l.jsxs)(c.u_.Content,{size:j,className:w,children:[(0,l.jsxs)(c.u_.Header,{children:[(0,l.jsx)(c.u_.Title,{size:j,className:o()(["text-center",_]),children:x}),(0,l.jsx)(c.u_.HeaderActions,{className:"absolute right-0 top-0 mr-6 mt-6",children:(0,i.isFunction)(y)&&(0,l.jsx)(c.u_.CloseButton,{onClick:function(){return(0,i.isFunction)(y)&&y()}})})]}),(0,l.jsx)(c.u_.Body,{children:s}),t&&(0,l.jsx)(c.u_.Footer,{children:(0,l.jsx)(a.z,{type:p?"submit":"button",form:p,full:!0,large:!0,variant:n,disabled:m,onClick:function(){return(0,i.isFunction)(h)&&h()},children:t})})]})]})}},30870:(e,t,r)=>{r.d(t,{O:()=>f,e:()=>m});var n=r(40160),o=r(74284),i=r(26953),a=r(53448),c=r(14955),l=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f={className:"block py-2 px-3 text-sm leading-5 normal-case bg-transparent rounded-md transition-colors duration-200 cursor-pointer select-none text-default hover:text-dark focus:text-dark",activeClassName:"!bg-tertiary !font-medium !text-dark"},m=function(e){var t=e.titleNode,r=e.title,s=e.items,d=void 0===s?[]:s,m=e.rightNode,p=(0,i.kK)(),b=(0,a.UV)(),v=b.onClose,h=b.shouldShowCloseButton;return(0,l.jsxs)("nav",{className:"bg-primary flex h-full w-full flex-col items-start justify-between gap-3 !p-0 px-5 pb-2 pt-6 md:gap-4 md:px-6 md:py-4 lg:grid lg:!items-center",style:{gridTemplateColumns:"1fr 1fr 1fr"},children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsxs)("div",{children:[t,r&&(0,l.jsx)("span",{className:"flex w-full min-w-0",children:(0,l.jsx)(o.Y,{content:r,className:"truncate text-lg font-semibold",children:r})})]}),h&&p&&(0,l.jsx)(c.o,{onClick:v})]}),(0,l.jsx)("div",{className:"flex w-full items-center gap-6 overflow-auto lg:justify-center lg:overflow-visible",children:(0,l.jsx)("ul",{className:"flex list-none items-center gap-6",children:d.map((function(e){return(0,l.jsx)("li",{children:(0,l.jsx)(n.OL,u(u({to:e.href,exact:!0,replace:null===e||void 0===e?void 0:e.replace},f),{},{children:e.label}))},e.label)}))})}),m&&(0,l.jsx)("div",{className:"flex w-full items-center justify-end",children:m})]})}},14955:(e,t,r)=>{r.d(t,{o:()=>b});var n=r(94184),o=r.n(n),i=r(86013),a=r(26953),c=r(30887),l=r(55675),s=r(85893),u=["onClick","className","isVisible"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var b=function(e){var t=e.onClick,r=e.className,n=void 0===r?"":r,d=e.isVisible,m=void 0===d||d,b=p(e,u),v=(0,a.kK)();return m?(0,s.jsxs)(l.z,f(f({type:"button",variant:"plain",small:!0,onClick:t,className:o()({"fixed right-5 top-6 md:right-2 md:top-2 lg:right-4 lg:top-1":!v},n)},b),{},{children:[(0,s.jsx)("span",{className:"sr-only",children:(0,i.t)("close")}),(0,s.jsx)(c.JO,{className:o()({"w-[1em] text-gray-100":!v,"!text-dark":v}),type:v?"24-close":"20-close",size:v?24:20})]})):null}},73793:(e,t,r)=>{r.d(t,{x:()=>v});var n=r(94184),o=r.n(n),i=r(85893),a=Object.assign((function(e){var t=e.children;return(0,i.jsx)("div",{className:"bg-primary flex h-full w-full flex-col items-start justify-between gap-4 !p-0 px-6 py-4 lg:grid lg:!items-center",style:{gridTemplateColumns:"1fr 1fr 1fr"},children:t})}),{Navigation:function(e){var t=e.children;return(0,i.jsx)("div",{className:"flex w-full items-center gap-6 overflow-auto lg:justify-center lg:overflow-visible",children:t})}}),c=r(30870),l=r(67294),s=r(23560),u=r.n(s),d=r(26953),f=r(53448),m=r(14955);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v=Object.assign((function(e){var t=e.isOpen,r=e.onClose,n=e.contentPortalId,o=e.children,a=e.shouldShowCloseButton,c=e.className,s=void 0===c?"":c,b=e.animations,v=void 0===b?"slideBottomUp":b,h=e.size,y=void 0===h?"screen-with-header":h,g=e.position,j=void 0===g?"default":g,x=e.shouldCloseOnOutsideClick,C=void 0!==x&&x,w=(0,d.kK)(),O=p((0,l.useState)(!1),2),_=O[0],k=O[1];return(0,l.useEffect)((function(){k(t)}),[t,k]),(0,i.jsxs)(f.u_,{isOpen:_,onClose:function(){return u()(r)&&r()},contentPortalId:n,shouldShowCloseButton:a,children:[(0,i.jsx)(f.u_.Overlay,{}),a&&!w&&(0,i.jsx)(m.o,{onClick:function(){return u()(r)&&r()}}),(0,i.jsx)(f.u_.Content,{size:y,animations:v,className:s,position:j,isOpen:t,shouldCloseOnOutsideClick:C,children:o})]})}),{Header:function(e){var t,r,n=e.className,a=e.children;return(0,i.jsx)("div",{className:o()("text-dark border-primary sticky flex items-center justify-between border-b px-5 pb-2 pt-6 md:px-6 md:py-5",n,{"!p-0":null===(t=window)||void 0===t||null===(r=t.webview)||void 0===r?void 0:r.isInsideMobileWebview}),children:(0,i.jsx)("div",{className:"flex w-full justify-between",children:a})})},HeaderContent:a,HeaderNav:c.e,Body:function(e){var t=e.id,r=void 0===t?"fullscreen-modal-body":t,n=e.className,a=e.children,c=e.wrapperClassName,l=void 0===c?"max-w-screen-md":c;return(0,i.jsx)("div",{id:r,className:o()("text-dark h-full overflow-y-auto",n),children:(0,i.jsx)("div",{className:o()("mx-auto w-full",l),children:a})})},Footer:function(e){var t=e.className,r=e.children;return(0,i.jsx)("div",{className:o()("border-primary sticky border-t p-5 md:px-6 md:py-4",t),children:(0,i.jsx)("div",{className:"mx-auto flex w-full max-w-[45rem] items-center justify-between",children:r})})}})},4181:(e,t,r)=>{r.d(t,{Y:()=>d});var n=r(5295),o=r(64687),i=r.n(o),a=r(67294),c=r(30887),l=r(85893);function s(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var u=function(e){var t=e.fetchNewPage,r=e.footerDistanceFromBottom,n=void 0===r?-1e3:r,o=e.componentId,u=e.onEvent,d=void 0===u?"scrollDown":u,f=e.messageId,m=e.isLoading,p=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e=document.getElementById(o)||window,r=function(){var r,o=(r=i().mark((function r(){var o,a,c,l;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!m){r.next=2;break}return r.abrupt("return");case 2:if(o=!1,"scrollUp"===d?o=e.scrollTop<20:(a=p.current.getBoundingClientRect(),c=e.innerHeight||e.clientHeight,l=c-a.top,o=l>n),!o){r.next=7;break}return r.next=7,t(f);case 7:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){s(i,n,o,a,c,"next",e)}function c(e){s(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return o.apply(this,arguments)}}();return e.addEventListener("scroll",r),function(){e.removeEventListener("scroll",r)}}),[f,m,o]),(0,l.jsx)("div",{ref:p,className:"flex justify-center",children:m&&(0,l.jsx)(c.JO,{type:"loader"})})},d=function(e){var t=e.children,r=e.shouldShowPrevLoader,o=void 0===r||r,i=e.shouldShowNextLoader,a=void 0===i||i,c=e.hasNextPage,s=e.hasPrevPage,d=e.onPrevPage,f=e.onNextPage,m=e.firstItemId,p=e.lastItemId,b=e.componentId,v=e.isLoading;return(0,l.jsxs)("div",{id:b,className:"overflow-auto pt-0",children:[v?o&&(0,l.jsx)(n.a,{center:!0}):s&&(0,l.jsx)(u,{componentId:b,fetchNewPage:d,onEvent:"scrollUp",messageId:m,isLoading:v}),t,v?a&&(0,l.jsx)(n.a,{center:!0}):c&&(0,l.jsx)(u,{componentId:b,fetchNewPage:f,messageId:p,footerDistanceFromBottom:-500,isLoading:v})]})}},59941:(e,t,r)=>{r.d(t,{D:()=>p});var n=r(94184),o=r.n(n),i=r(86013),a=r(38776),c=r(40592),l=r(97957),s=r(55675),u=r(12169),d=r(67142),f=r(85893),m=function(e){var t=e.avatar_url,r=e.name;return(0,f.jsxs)("div",{className:"grid",children:[t&&(0,f.jsx)("img",{loading:"lazy",alt:"",className:"z-0 col-start-1 row-start-1 h-10 w-10 rounded-lg object-cover",src:t}),(0,f.jsx)("div",{className:"col-start-1 row-start-1 flex h-10 w-10 items-center justify-center rounded-lg",style:{backgroundColor:(0,d.DX)(r)},children:(0,f.jsx)(u.Z.LabelLg,{children:(0,f.jsx)("div",{className:"text-c-sidebar-badge-text",children:(0,d.Qe)(r)})})})]})},p=function(e){var t=e.customer,r=e.onRemove,n=e.setSearchQuery,d=e.shouldOpenAdminMemberEdit,p=e.infoClassName,b=(0,c.j)(),v=(0,i.t)("settings.paywalls_admin_dashboard.shared.deactivated_member"),h=t.name?t.name:v,y=t.deleted_at?v:"",g=!!t.public_uid&&d,j=function(){g&&((0,a.Z)(t.public_uid,"public_uid is required"),b({publicId:t.public_uid}))};return(0,f.jsxs)("div",{className:o()("group inline-flex items-center gap-4","focus-visible:ring-secondary focus-visible:rounded-md focus-visible:ring-2 focus-visible:ring-offset-2",{"cursor-pointer":!!g}),onClick:j,onKeyPress:j,tabIndex:0,role:"button",children:[(0,f.jsx)(m,{avatar_url:t.avatar_url,name:h}),(0,f.jsxs)("div",{className:o()("grid pr-4",p),children:[(0,f.jsx)(l.Y,{children:(0,f.jsx)(u.Z.LabelSm,{weight:"semibold",children:"".concat(h).concat(y)})}),(0,f.jsx)(l.Y,{children:(0,f.jsx)(u.Z.LabelSm,{color:"text-default",children:t.email})})]}),r&&(0,f.jsx)(u.Z.LabelSm,{weight:"medium",children:(0,f.jsx)("div",{className:"invisible group-hover:visible",children:(0,f.jsx)(s.z,{type:"button",variant:"plain",className:"text-v2-danger",onClick:function(){n&&n(""),r()},children:(0,i.t)("remove")})})})]})}},15495:(e,t,r)=>{r.d(t,{q:()=>L});var n=r(72675),o=r(86013),i=r(96486),a=r(78573),c=r(61926),l=r(56874),s=r(48895),u=r(59941),d=r(12169),f=r(85893),m="settings.paywalls_admin_dashboard.charges",p=function(e){var t=e.charge,r=new Date(t.created_at),n=(0,s.w)({dateTime:r,format:"long_date_short_time"});return(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:"border-b-2 pb-4",children:(0,f.jsx)(u.D,{customer:t.community_member,shouldOpenAdminMemberEdit:!1})}),(0,f.jsxs)("div",{className:"grid grid-cols-1 gap-y-3 py-4",children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{children:(0,f.jsx)(d.Z.LabelSm,{weight:"semibold",children:(0,o.t)("".concat(m,".charge_details_modal.details_labels.transaction_date"))})}),(0,f.jsx)(d.Z.LabelSm,{children:n})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{children:(0,f.jsx)(d.Z.LabelSm,{weight:"semibold",children:(0,o.t)("".concat(m,".charge_details_modal.details_labels.amount_paid"))})}),(0,f.jsx)(d.Z.LabelSm,{children:t.display_amount_with_currency})]}),(0,l.ac)(t)&&(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{children:(0,f.jsx)(d.Z.LabelSm,{weight:"semibold",children:(0,o.t)("".concat(m,".charge_details_modal.details_labels.amount_refunded"))})}),(0,f.jsx)(d.Z.LabelSm,{children:t.display_refunded_amount_with_currency})]})]})]})},b=r(81208),v="refund-charge_form",h="settings.paywalls_admin_dashboard.charges.refund_modal",y=r(61666),g=function(e){var t=e.charge,r=function(e){var t=e.charge,r=t.amount_to_refund_raw,n=function(e){return e.replace(/\D/g,"")};return{transformValueIntoCurrency:function(e){var r=Number(n(e));if(!isNaN(r))return(0,y.I)(t.currency,r,{includeCurrencyCode:!1,forceMaxFractionDigits:!0})},minAmountToRefund:function(e){return Number(n(e))>=1||(0,o.t)("".concat(h,".refund_form.alerts.minimun_amount_required"),{value:(0,y.I)(t.currency,1)})},maxAmountToRefund:function(e){return Number(n(e))<=r||(0,o.t)("".concat(h,".refund_form.alerts.maximum_amount_required"),{value:(0,y.I)(t.currency,r)})}}}({charge:t}),n=r.transformValueIntoCurrency,i=r.minAmountToRefund,a=r.maxAmountToRefund,l=t.currency;return(0,f.jsxs)("div",{className:"flex flex-col space-y-2 pt-2",children:[(0,f.jsx)(c.l.Item,{className:"border-0",labelClassName:"text-sm font-semibold",name:"amount",translationRoot:"".concat(h,".refund_form"),hidePlaceholder:!0,hideDescription:!0,hiddenField:!0,id:v,transformValue:n,rules:{required:!0,validate:{minAmountToRefund:i,maxAmountToRefund:a}},children:(0,f.jsx)(b.a,{currency:l,className:"form-control mr-px"})}),(0,f.jsx)(c.l.Item,{className:"border-0",labelClassName:"text-sm font-semibold",name:"reason_details",translationRoot:"".concat(h,".refund_form"),hideDescription:!0,hiddenField:!0,id:v,rules:{required:(0,o.t)("".concat(h,".refund_form.alerts.reason_details_required")),maxLength:{value:255,message:(0,o.t)("".concat(h,".refund_form.alerts.reason_details_max_length"))}},children:(0,f.jsx)(c.l.Input,{name:"reason_details",variant:"textarea"})})]})},j=r(88767),x=r(75381),C=r(21809),w=x.W.refundCharge,O=function(e){var t=e.charge,r=e.onSuccess,a=(0,n.dd)(),c={amount:(0,y.I)(t.currency,t.amount_to_refund_raw,{includeCurrencyCode:!1,forceMaxFractionDigits:!0})},l=function(e){var t=e.charge,r=e.callback,n=t.amount_to_refund_raw,i=(0,C.p)(),a=i.success,c=i.error,l=(0,o.t)("settings.paywalls_admin_dashboard.charges.refund_modal.alerts.error.default_message");return{refundMutation:(0,j.useMutation)((function(e){return w({chargeProcessorId:t.processor_id,params:e})}),{onSuccess:function(e,t){var i=t.amount===n?(0,o.t)("settings.paywalls_admin_dashboard.charges.refund_modal.alerts.success.refund_succeed"):(0,o.t)("settings.paywalls_admin_dashboard.charges.refund_modal.alerts.success.partial_refund_succeed");r.refundCharge.onSuccess(),a(i)},onError:function(e){var t;r.refundCharge.onError();var n=null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:l;console.error(n),c(n,{duration:"long"})}})}}({charge:t,callback:{refundCharge:{onSuccess:function(){a.hide(),r&&r()},onError:i.noop}}}),s=l.refundMutation;return{defaultValues:c,handleSubmit:function(e){e.amount=Number(e.amount.replace(/\D/g,"")),s.mutate(e)},modal:a,isSubmitting:s.isLoading,onClose:function(){return!s.isLoading&&a.hide()}}},_=function(e){var t=e.charge,r=e.onSuccess,n=O({charge:t,onSuccess:r}),l=n.defaultValues,s=n.handleSubmit,u=n.modal,d=n.isSubmitting,m=n.onClose;return(0,f.jsx)(a.W,{title:(0,o.t)("settings.paywalls_admin_dashboard.charges.refund_modal.title"),isOpen:u.visible,onClose:m,onAction:i.noop,disabled:d,actionText:(0,o.t)("".concat("settings.paywalls_admin_dashboard.charges",".refund_modal.refund_button_label")),formId:v,children:(0,f.jsx)(c.l,{onSubmit:s,defaultValues:l,id:v,children:(0,f.jsxs)("div",{className:"pt-4",children:[(0,f.jsx)(p,{charge:t}),(0,f.jsx)(g,{charge:t})]})})})};function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=n.gk.create((function(e){return(0,f.jsx)(_,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))})),L=function(){return(0,n.dd)(P)}},3085:(e,t,r)=>{var n,o;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Nd:()=>a,Z9:()=>c,D9:()=>l,TY:()=>s,KJ:()=>u,hG:()=>d,av:()=>f});var a={SIGNUP:"signup",EDIT_PROFILE:"edit_profile",PROFILE_VIEW:"profile_view"},c={TEXT:"text",TEXTAREA:"textarea",SELECT:"select",LINK:"link",NUMBER:"number",CHECKBOX:"checkbox"},l=(i(n={},c.TEXT,"16-character-square"),i(n,c.SELECT,"16-select-square"),i(n,c.CHECKBOX,"16-checkbox-square"),i(n,c.TEXTAREA,"16-text-square"),i(n,c.LINK,"link"),i(n,c.NUMBER,"16-number-square"),i(n,"email","16-character-square"),i(n,"timezone","16-social-web"),i(n,"date","16-calendar"),i(n,"instagram","16-instagram-square"),i(n,"facebook","16-facebook-square"),i(n,"twitter","16-twitter-square"),i(n,"linkedin","16-linkedin-square"),n),s=(i(o={},c.TEXT,"text"),i(o,c.LINK,"text"),i(o,c.TEXTAREA,"textarea"),i(o,c.NUMBER,"text"),i(o,c.SELECT,"community_member_choices_attributes"),i(o,c.CHECKBOX,"community_member_choices_attributes"),o),u=[c.SELECT,c.CHECKBOX],d=function(e){var t=e.index,r=e.fieldType;return"community_member_profile_fields_attributes.".concat(t,".").concat(s[r])},f={NUMBER:"number",PERCENT:"percentage",CUSTOM:"custom",UNFORMATTED:"unformatted"}},28053:(e,t,r)=>{r.d(t,{Q:()=>d});var n=r(67294),o=r(86013),i=r(96486),a=576,c=1025,l=r(85893);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=function(e){var t=e.src,r=e.srcVariants,u=e.alt,d=void 0===u?(0,o.t)("post.cover_image_alt"):u,f=e.className,m=void 0===f?"":f,p=s((0,n.useState)((null===r||void 0===r?void 0:r.thumbnail)||t),2),b=p[0],v=p[1],h=(0,n.useRef)(null),y=(0,i.isEmpty)(r),g=function(e){e.forEach((function(e){e.isIntersecting&&function(e){var t=function(e){return"connection"in e&&"undefined"!==typeof e.connection}(navigator)?navigator.connection:void 0,n=t&&"2g"===t.effectiveType;y||v(n?r.thumbnail:e<=a?r.small:e<=c?r.medium:r.large)}(e.boundingClientRect.width)}))},j=(0,n.useMemo)((function(){return new IntersectionObserver(g,{threshold:.5})}),[]);return(0,n.useEffect)((function(){h.current&&j.observe(h.current)}),[h,j]),y?(0,l.jsx)("img",{loading:"lazy",src:t,alt:d,className:m}):(0,l.jsx)("img",{loading:"lazy",ref:h,src:b||t,onError:function(){v(t)},alt:d,className:m})}},82286:(e,t,r)=>{r.d(t,{S:()=>y});var n=r(67294),o=r(94184),i=r.n(o),a=r(30887),c=r(12169),l=r(85893),s=function(e){var t=e.isChecked,r=void 0!==t&&t,n=e.hasRadioCheckmarks;return void 0!==n&&n?r?(0,l.jsx)("span",{className:"text-selector-active flex",children:(0,l.jsx)(a.JO,{size:24,type:"24-radio-checked"})}):(0,l.jsx)("span",{className:"text-lightest flex",children:(0,l.jsx)(a.JO,{size:24,type:"24-radio-unchecked"})}):r?(0,l.jsx)("span",{className:"text-selector-active flex",children:(0,l.jsx)(a.JO,{size:16,type:"16-check-circle"})}):null},u=["label","name","id","isChecked","onChange","value","size","hasRadioCheckmarks","icon","iconSize"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var b=function(e){var t=e.label,r=e.name,n=e.id,o=e.isChecked,d=e.onChange,m=e.value,b=e.size,v=e.hasRadioCheckmarks,h=e.icon,y=e.iconSize,g=p(e,u),j=h&&y;return(0,l.jsxs)("label",f(f({htmlFor:n},g),{},{className:i()("m-0 flex w-full items-center justify-between border",{"bg-selector-active border-secondary text-selector-active drop-shadow":o,"bg-primary border-selector-inactive text-default":!o,"rounded-lg px-3.5 py-2.5":"sm"===b,"rounded-xl px-5 py-4":"md"===b}),children:[(0,l.jsxs)("div",{className:i()("mb-0",{"flex-1":!j,"flex items-center gap-3":j}),children:[j&&(0,l.jsx)("span",{children:(0,l.jsx)(a.JO,{type:h,size:y,className:i()({"!h-4 !w-4":16===y,"!h-5 !w-5":20===y})})}),(0,l.jsx)(c.Z.LabelSm,{weight:"medium",children:(0,l.jsx)("span",{className:i()({"text-selector-active":o,"text-default":!o}),children:t})})]}),(0,l.jsx)(s,{isChecked:o,hasRadioCheckmarks:v}),(0,l.jsx)("input",{className:"hidden",type:"radio",name:r,id:n,onChange:function(e){return d(e.target.checked?m:null)}})]}))};function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){var t=e.name,r=e.options,o=e.defaultChecked,a=e.onChange,c=e.size,s=void 0===c?"md":c,u=e.hasRadioCheckmarks,d=void 0!==u&&u,f=e.shouldShowInlineOptions,m=void 0!==f&&f,p=v((0,n.useState)(o),2),h=p[0],y=p[1];return(0,n.useEffect)((function(){h&&a&&a(h)}),[a,h]),(0,l.jsx)("div",{className:i()("flex",{"flex-col gap-3":!m,"flex-inline justify-center gap-4 text-center":m}),children:r.map((function(e,r){var n=e.value,o=e.label,i=e.icon,a=e.iconSize;return(0,l.jsx)(b,{"data-testid":"radio-button-group-".concat(r),isChecked:n===h,onChange:y,label:o,name:t,id:"".concat(t,"-").concat(r),value:n,size:s,hasRadioCheckmarks:d,icon:i,iconSize:a},n)}))})}},41910:(e,t,r)=>{r.d(t,{D:()=>P});var n=r(64687),o=r.n(n),i=r(67294),a=r(86013),c=r(55675),l=r(86599),s=r(61926),u=r(53448),d=r(87536),f=r(78163),m=r(77616),p=r(60208),b=(0,r(30270).Ue)((function(e){return{isDirty:!1,setIsDirty:function(t){return e({isDirty:t})}}})),v=r(76234),h=r(94184),y=r.n(h),g=r(40868),j=r(85893),x=(0,a.t)("dynamic_vars_groups.event"),C=[{group:(0,a.t)("dynamic_vars_groups.community"),label:"{{community.name}}",value:"{{community.name}}"},{group:x,label:"{{event.name}}",value:"{{event.name}}"},{group:x,label:"{{event.date}}",value:"{{event.date}}"},{group:x,label:"{{event.time}}",value:"{{event.time}}"},{group:x,label:"{{event.url}}",value:"{{event.url}}"},{group:x,label:"{{event.location}}",value:"{{event.location}}"}];function w(e){var t=e.editor,r=e.isEditorFocused,n=e.portalId;if(!t)return null;var o=y()(r?"text-default dark:text-dark":"text-lightest dark:text-default");return(0,j.jsx)(v.Z,{container:function(){return document.getElementById(n)},children:(0,j.jsx)(g.m,{wrapperClassName:"w-80 pt-3",optionsClassName:"bottom-8",className:o,variables:C,editor:t,tooltipPlacement:"top"})})}var O=[{label:(0,a.t)("scheduled_emails.form.going"),value:"going"},{label:(0,a.t)("scheduled_emails.form.not_going"),value:"not_going"},{label:(0,a.t)("scheduled_emails.form.invited"),value:"invited"}],_=function(e){var t=e.maxDate,r=e.minDate,n=b().setIsDirty,o=(0,d.Gc)(),c=o.formState.isDirty,l=o.setError,u=o.clearErrors;(0,i.useEffect)((function(){n(c)}),[n,c]);return(0,j.jsxs)("div",{className:"mt-2 flex flex-col gap-6",children:[(0,j.jsx)(s.l.Item,{hideBorder:!0,name:"scheduled_at",hideLabel:!0,rules:{required:(0,a.t)("scheduled_emails.form.reminder_date_required_error")},className:"!p-0",errorClassName:"text-v2-danger",children:(0,j.jsx)(p.x,{className:"flex-col gap-6 md:flex-row",classNameDate:"w-full",classNameTime:"w-full",labelDate:(0,a.t)("scheduled_emails.form.reminder_date_title"),labelTime:(0,a.t)("scheduled_emails.form.reminder_time_title"),name:"scheduled_at",datePlaceholder:(0,a.t)("scheduled_emails.form.reminder_date_placeholder"),timePlaceholder:(0,a.t)("scheduled_emails.form.reminder_time_placeholder"),minDate:r,maxDate:t})}),(0,j.jsx)(s.l.Item,{name:"metadata.send_to",label:(0,a.t)("scheduled_emails.form.send_to"),labelClassName:"text-sm",className:"!p-0",hideDescription:!0,hideBorder:!0,errorClassName:"text-v2-danger",children:(0,j.jsx)(s.l.AnimatedSelect,{name:"metadata.send_to",fullWidth:!0,options:O})}),(0,j.jsx)(s.l.Item,{name:"subject",label:(0,a.t)("scheduled_emails.form.subject"),labelClassName:"text-sm",className:"!p-0",hideBorder:!0,hideDescription:!0,placeholder:(0,a.t)("scheduled_emails.form.subject_placeholder"),rules:{required:(0,a.t)("scheduled_emails.form.subject_required_error")},errorClassName:"text-v2-danger",children:(0,j.jsx)(s.l.Input,{type:"text"})}),(0,j.jsx)(s.l.Item,{name:"email_body",label:(0,a.t)("scheduled_emails.form.message_body"),labelClassName:"text-sm",className:"flex h-full grow flex-col !p-0",hideBorder:!0,hideDescription:!0,errorClassName:"text-v2-danger",children:(0,j.jsxs)("div",{className:"form-control relative h-full grow py-3",children:[(0,j.jsx)(m.$,{className:"h-full overflow-y-scroll",editorClassName:"h-full overflow-y-scroll",placeholder:(0,a.t)("scheduled_emails.form.message_body"),name:"email_body[body]",disabledExtensions:["mention","poll","cta"],disabledSlashMenuCategories:["Embed"],shouldPreviewFilesAsLinks:!0,shouldShowTextModifiersMenu:!1,toolbars:[{portalId:"drip-email-notification-variables-toolbar",component:w}],onChangeCallback:function(e){(0,f.NU)({body:e})?u("email_body"):l("email_body",{type:"Invalid input",message:(0,a.t)("scheduled_emails.form.email_body_required_error")})}}),(0,j.jsx)("div",{id:"drip-email-notification-variables-toolbar"})]})})]})},k=r(76207);function S(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var P=function(e){var t=e.scheduledEmail,r=e.isOpen,n=e.onClose,d=e.maxDate,f=e.minDate,m=(0,i.useRef)(null),p=b(),v=p.isDirty,h=p.setIsDirty,y=(0,k.T)(),g=y.saveScheduledEmail,x=y.isLoading,C=function(){var e,t=(e=o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g(t);case 3:h(!1),n(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,c,"next",e)}function c(e){S(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),w=t.id||"",O="edit-scheduled-email-".concat(w),P=function(){v&&!confirm((0,a.t)("prevent_accidental_leave_message"))||n()};return(0,j.jsx)(s.l,{id:O,onSubmit:C,defaultValues:t,shouldStopPropagation:!0,children:(0,j.jsxs)(u.u_,{isOpen:r,onClose:P,contentPortalId:"scheduled-email-type-picker-portal",initialFocus:m,className:"!h-full",children:[(0,j.jsx)(u.u_.Overlay,{}),(0,j.jsxs)(u.u_.Content,{size:"lg",children:[(0,j.jsxs)(u.u_.Header,{children:[(0,j.jsx)(u.u_.Title,{size:"md",children:(0,a.t)("scheduled_emails.form.title")}),(0,j.jsx)(u.u_.HeaderActions,{children:(0,j.jsx)(u.u_.CloseButton,{onClick:P})})]}),(0,j.jsx)(u.u_.Body,{children:(0,j.jsx)(_,{maxDate:d,minDate:f})}),(0,j.jsxs)(u.u_.Footer,{className:"flex justify-end",children:[!x&&(0,j.jsx)(c.z,{type:"button",variant:"secondary",className:"mr-2",onClick:P,children:(0,a.t)("cancel")}),(0,j.jsxs)(l._,{type:"submit",variant:"circle",form:O,isDisabled:x,children:[!x&&(0,a.t)("save"),x&&(0,a.t)("saving")]})]})]})]})})}},76207:(e,t,r)=>{r.d(t,{T:()=>d});var n=r(64687),o=r.n(n),i=r(86013),a=r(88767),c=r(34128),l=r(77529),s=r(21809);function u(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var d=function(){var e=(0,s.p)(),t=(0,a.useMutation)((function(e){return(0,c.Cu)(l.av.scheduledEmails.create({}),e)}),{onSuccess:function(){e.success((0,i.t)("changes_saved"))},onError:function(){e.error((0,i.t)("request_failure_message"))}}),r=t.mutateAsync,n=t.isLoading,d=(0,a.useMutation)((function(e){return(0,c.aU)(l.av.scheduledEmails.update({id:e.id}),e)}),{onSuccess:function(){e.success((0,i.t)("changes_saved"))},onError:function(){e.error((0,i.t)("request_failure_message"))}}),f=d.mutateAsync,m=d.isLoading,p=function(){var e,t=(e=o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t||void 0===t||!t.id){e.next=5;break}return e.next=3,f(t);case 3:e.next=7;break;case 5:return e.next=7,r(t);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),b=(0,a.useMutation)((function(e){return(0,c.pC)(l.av.scheduledEmails.destroy({id:e.id}),e)}),{onSuccess:function(){e.success((0,i.t)("scheduled_emails.delete.record_deleted"))},onError:function(){e.error((0,i.t)("request_failure_message"))}}),v=b.mutateAsync,h=b.isLoading;return{createScheduledEmail:r,getScheduledEmailList:function(e){return(0,c.UT)(l.av.scheduledEmails.index(e))},updateScheduledEmail:f,destroyScheduledEmail:v,isLoading:n||m,isDestroyLoading:h,saveScheduledEmail:p}}},67285:(e,t,r)=>{r.d(t,{h:()=>d});var n=r(94184),o=r.n(n),i=r(85893),a=["className","children"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d=function(e){var t=e.className,r=e.children,n=u(e,a);return(0,i.jsx)("button",l(l({type:"button",className:o()("hover:bg-secondary h-5 w-5 items-center justify-center rounded-sm transition-colors",t)},n),{},{children:r}))}},43548:(e,t,r)=>{r.d(t,{M:()=>N});var n=r(67294),o=r(96486),i=r(87536),a=r(94184),c=r.n(a),l=r(86013),s=r(84834),u=r(64117),d=r(28175),f=r(15218),m=r(30887),p=r(12169),b=r(85893),v=function(e){var t=e.selectedSpace,r=e.toggleDropdown,n=e.shouldShowEmoji,o=e.value,i=e.shouldDisplayHomepage,a=e.defaultLabel,s=void 0===a?(0,l.t)("search_space"):a,v=(0,d.I)().isV3Enabled,h=i&&0===o,y=(null===t||void 0===t?void 0:t.name)||"",g=v?(0,l.t)("feed"):(0,l.t)("home_page.title"),j=y||(h?g:"")||s,x=(0,u.TC)().currentAppearance;return(0,b.jsxs)("button",{type:"button",className:"react-space-selector__space-btn",onClick:r,children:[(0,b.jsxs)("div",{className:c()("react-space-selector__space-name",{"flex gap-2.5":n}),children:[n&&t&&(0,b.jsx)(f.S,{className:"flex !h-5 !w-5 items-center justify-center",emoji:t.emoji,appearance:x,customEmojiUrl:t.custom_emoji_url,customEmojiDarkUrl:t.custom_emoji_dark_url}),(0,b.jsx)(p.Z.LabelMd,{children:j})]})," ",(0,b.jsx)("div",{className:"text-dark flex",children:(0,b.jsx)(m.JO,{type:"20-chevron-down-sm",size:20})})]})},h=r(87360),y=r.n(h),g=r(18009),j=function(){return(0,b.jsx)("div",{className:"mt-4 px-5 py-2",children:(0,b.jsx)(p.Z.LabelSm,{color:"text-light",children:(0,l.t)("no_matches_found")})})},x=function(e){var t=e.spaces,r=e.handleSpace,n=(0,u.TC)().currentAppearance;return(0,b.jsx)("ul",{className:"react-space-selector-dropdown__list",children:t.map((function(e){var t;return(0,b.jsx)("li",{children:(0,b.jsxs)("button",{type:"button",className:"w-full text-left",onClick:function(t){return r(t,e.id)},children:[(0,b.jsx)(f.S,{className:"react-space-selector-dropdown__icon",emoji:null!==(t=e.emoji)&&void 0!==t?t:"\u2b1c\ufe0f",appearance:n,customEmojiUrl:e.custom_emoji_url,customEmojiDarkUrl:e.custom_emoji_dark_url}),(0,b.jsx)("span",{className:"react-space-selector-dropdown__name",children:e.name})]})},e.id)}))})};function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(e){var t=e.open,r=e.handleClose,i=e.onChange,a=e.spaces,u=e.shouldDisplayHomepage,f=e.className,p=e.placeholder,v=void 0===p?(0,l.t)("search_space_placeholder"):p,h=(0,g.k)([t]),w=C((0,n.useState)(""),2),O=w[0],_=w[1],k=(0,d.I)().isV3Enabled,S=function(e,t){i(t),r()},P=a;O&&(P=y().go(O,a,{keys:["name","space_group_name"]}).map((function(e){return e.obj})));var L=(0,o.groupBy)(P,"space_group_name");return(0,b.jsxs)(s.o,{open:t,handleClose:r,className:c()("react-space-selector-dropdown__wrapper",f),children:[(0,b.jsx)("div",{className:"p-4 pb-0",children:(0,b.jsx)("input",{id:"space-search",type:"text","aria-label":(0,l.t)("search_space"),ref:h,className:"react-space-selector-dropdown__input placeholder:text-light placeholder:opacity-100",placeholder:v,onChange:function(e){_((0,o.trim)(e.target.value))}})}),u&&(0,b.jsx)("ul",{className:"react-space-selector-dropdown__list mt-4",children:(0,b.jsx)("li",{className:"!p-0",children:(0,b.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 px-5 py-2",onClick:function(e){return S(0,0)},children:[k?(0,b.jsx)(m.JO,{type:"20-feed-v3",size:20}):(0,b.jsx)(m.JO,{type:"home-v2",size:16}),(0,b.jsx)("span",{className:"react-space-selector-dropdown__name",children:k?(0,l.t)("feed"):(0,l.t)("home_page.title")})]})})}),(0,o.map)(Object.entries(L),(function(e){var t=C(e,2),r=t[0],n=t[1];return(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"react-space-selector-dropdown__category",children:r}),(0,b.jsx)(x,{spaces:n,handleSpace:S})]},r)})),0===P.length&&(0,b.jsx)(j,{})]})},_=function(e){var t=e.spaces,r=e.onChange,n=e.value,i=e.variant,a=e.containerClassname,u=e.dropdownClassName,d=e.shouldShowEmoji,f=e.defaultButtonLabel,m=void 0===f?(0,l.t)("select_space"):f,p=e.placeholder,h=void 0===p?(0,l.t)("search_space_placeholder"):p,y=e.customButton,g=e.shouldDisplayHomepage,j=(0,s.x)(!1),x=j.open,C=j.toggleDropdown,w=j.handleClose,_=(0,o.find)(t,{id:n}),k=c()("react-space-selector",{"form-control":"form-input"===i,"react-space-selector--open":x},a),S=y||v;return(0,b.jsxs)("div",{className:k,"data-testid":"space-selector",children:[(0,b.jsx)(S,{selectedSpace:_,toggleDropdown:C,shouldShowEmoji:d,defaultLabel:m,variant:i,shouldDisplayHomepage:g,value:n}),(0,b.jsx)(O,{placeholder:h,handleClose:w,open:x,onChange:r,spaces:t,className:u,shouldDisplayHomepage:g})]})},k=["name","rules","defaultValue","onChange"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var N=function(e){var t=e.name,r=void 0===t?"":t,a=e.rules,c=void 0===a?{}:a,l=e.defaultValue,s=void 0===l?null:l,u=e.onChange,d=void 0===u?o.noop:u,f=E(e,k),m=(0,i.Gc)(),p=m.control,v=m.setValue;return(0,n.useEffect)((function(){s&&v(r,s)}),[s]),(0,b.jsx)(i.Qr,{control:p,name:r,rules:c,defaultValue:s,render:function(e){var t=e.field;return(0,b.jsx)(_,P(P({},f),{},{name:t.name,value:t.value,onChange:function(e){t.onChange(e),null===d||void 0===d||d(),v(r,e,{shouldDirty:!0,shouldTouch:!0})}}))}})}},55380:(e,t,r)=>{r.d(t,{l:()=>d});var n=r(86013),o=r(96486),i=r(60748),a=r(80144),c=r(85893);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){var t=e.options,r=void 0===t?[]:t,l=e.onSelect,u=void 0===l?o.noop:l,d=e.placeholder,f=void 0===d?(0,n.t)("select_an_option"):d,m=e.emptyMessage,p=void 0===m?(0,n.t)("no_options"):m,b=e.filterBy,v=void 0===b?a.fv:b,h=e.groupBy,y=void 0===h?null:h,g=e.displayValue,j=void 0===g?function(e){return(null===e||void 0===e?void 0:e.label)||""}:g,x=e.children,C=e.buttonRef,w=e.optionsClassName,O=(0,a.eq)({options:r,onChange:u,filterBy:v,placeholder:f,optionsClassName:w,displayValue:j,groupByValue:y}),_=O.dropdownProps,k=O.searchResults,S=O.hasNoResults,P=O.groupedSearchResults,L=O.hasGroups;return(0,c.jsxs)(a.NH,s(s({},_),{},{buttonRef:C,button:x,children:[S&&(0,c.jsx)(a.NH.EmptyOption,{label:p}),!S&&!L&&(0,c.jsx)(i.EH,{options:k}),!S&&L&&(0,c.jsx)(i.jE,{groupedOptions:P})]}))};r(30887),r(12169)},74284:(e,t,r)=>{r.d(t,{Y:()=>u});var n=r(67294),o=r(79253),i=(r(12782),r(85893)),a=["children","className","dataTestId","delay","arrow","size","animation"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=function(e){var t=e.children,r=e.className,u=e.dataTestId,d=void 0===u?"":u,f=e.delay,m=void 0===f?0:f,p=e.arrow,b=void 0===p||p,v=e.size,h=void 0===v?"regular":v,y=e.animation,g=void 0===y?"fade":y,j=s(e,a),x=(0,n.useRef)(null);return(0,n.useEffect)((function(){x.current&&(0,o.ZP)(x.current,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowHTML:!0,delay:m,arrow:b,size:h,animation:g},j))}),[]),(0,i.jsx)("span",{className:r,ref:x,"data-testid":d,children:t})}},22228:(e,t,r)=>{r.d(t,{Bg:()=>i,aV:()=>a,Xt:()=>c,pf:()=>l,dy:()=>s,Bb:()=>u,EK:()=>d,Q3:()=>f,V6:()=>m,iz:()=>p,cx:()=>b,$B:()=>v,Ee:()=>h,nk:()=>y,hx:()=>g,nF:()=>j,fG:()=>x,Hw:()=>C,tV:()=>w,yF:()=>O,uD:()=>_,mr:()=>k,s1:()=>S,tL:()=>P,eC:()=>L,B7:()=>E,oW:()=>N,Ey:()=>M,mE:()=>A,Z8:()=>I});var n=r(85893),o=function(e){var t=e.width,r=e.height,o=e.viewBox,i=e.children,a=[e.dOne,e.dTwo,e.dThree,e.dFour,e.dFive,e.dSix];return(0,n.jsxs)("svg",{width:t,height:r,viewBox:o,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.map((function(e,t){if(e)return(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:e,fill:"#8D9CAE"},t)})),i]})},i=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M0 0H6.41485V1.06838H5.42198C4.805 1.06838 4.30484 1.56854 4.30484 2.18551V6.42305H10.7187V2.18551C10.7187 1.56854 10.2185 1.06838 9.60157 1.06838H8.58509V0H15V1.06838H13.9945C13.3775 1.06838 12.8774 1.56854 12.8774 2.18551V12.8037C12.8774 13.4206 13.3775 13.9208 13.9945 13.9208H15V15H8.58509V13.9208H9.60157C10.2185 13.9208 10.7187 13.4206 10.7187 12.8037V7.5H4.30484V12.8037C4.30484 13.4206 4.805 13.9208 5.42198 13.9208H6.41485V15H0V13.9208H1.031C1.64798 13.9208 2.14814 13.4206 2.14814 12.8037V2.18552C2.14814 1.56854 1.64798 1.06838 1.031 1.06838H0V0ZM19.1 19.5C19.5971 19.5 20 19.9029 20 20.4C20 20.8971 19.5971 21.3 19.1 21.3H0.899999C0.402943 21.3 0 20.8971 0 20.4C0 19.9029 0.402944 19.5 0.9 19.5H19.1ZM17 24.9C17 24.4029 16.5971 24 16.1 24H0.9C0.402944 24 0 24.4029 0 24.9C0 25.3971 0.402943 25.8 0.899999 25.8H16.1C16.5971 25.8 17 25.3971 17 24.9Z",dTwo:"M16 14.1774H16.37C16.6351 14.1774 16.85 13.9625 16.85 13.6974V10.835C16.85 10.5699 16.6351 10.355 16.37 10.355H16.0171V9.5L18.185 9.5V13.6974C18.185 13.9625 18.3999 14.1774 18.665 14.1774H19V15H16V14.1774Z"})},a=function(){return(0,n.jsxs)(o,{width:"22",height:"24",viewBox:"0 0 22 24",dOne:"M21.0392 0.693359C21.5363 0.693359 21.9392 1.0963 21.9392 1.59336C21.9392 2.05218 21.5959 2.43081 21.1521 2.48635L21.0392 2.49336H10.8968C10.4015 2.49336 10 2.09186 10 1.59658V1.59658C10 1.10153 10.4012 0.700117 10.8962 0.699802L21.0392 0.693359Z",dTwo:"M21.0392 16.6934C21.5363 16.6934 21.9392 17.0963 21.9392 17.5934C21.9392 18.0522 21.5959 18.4308 21.1521 18.4863L21.0392 18.4934H10.8968C10.4015 18.4934 10 18.0919 10 17.5966V17.5966C10 17.1015 10.4012 16.7001 10.8962 16.6998L21.0392 16.6934Z",dThree:"M18.1032 21C18.5985 21 19 21.4015 19 21.8968V21.8968C19 22.3919 18.5989 22.7933 18.1039 22.7937L10.9004 22.7993C10.4032 22.7997 10 22.3968 10 21.8996V21.8996C10 21.4028 10.4028 21 10.8996 21H18.1032Z",dFour:"M18.1032 5C18.5985 5 19 5.40153 19 5.89684V5.89684C19 6.39188 18.5989 6.7933 18.1039 6.79369L10.9004 6.7993C10.4032 6.79969 10 6.39679 10 5.89965V5.89965C10 5.40279 10.4028 5 10.8996 5H18.1032Z",children:[(0,n.jsx)("circle",{cx:"3.5",cy:"3.80005",r:"3.5",fill:"#8A94A6"}),(0,n.jsx)("circle",{cx:"3.5",cy:"19.8",r:"3.5",fill:"#8A94A6"})]})},c=function(){return(0,n.jsx)(o,{width:"22",height:"24",viewBox:"0 0 22 24",dOne:"M21.0392 0.693115C21.5363 0.693115 21.9392 1.09606 21.9392 1.59312C21.9392 2.05194 21.5959 2.43057 21.1521 2.4861L21.0392 2.49312H9.89676C9.40149 2.49312 9 2.09162 9 1.59636V1.59636C9 1.1013 9.40117 0.699894 9.89623 0.699605L21.0392 0.693115Z",dTwo:"M21.0392 16.6931C21.5363 16.6931 21.9392 17.0961 21.9392 17.5931C21.9392 18.0519 21.5959 18.4306 21.1521 18.4861L21.0392 18.4931H9.89676C9.40149 18.4931 9 18.0916 9 17.5964V17.5964C9 17.1013 9.40117 16.6999 9.89623 16.6996L21.0392 16.6931Z",dThree:"M18.1032 21C18.5985 21 19 21.4015 19 21.8968V21.8968C19 22.3919 18.5989 22.7933 18.1038 22.7936L9.90032 22.7994C9.40319 22.7997 9 22.3968 9 21.8997V21.8997C9 21.4028 9.4028 21 9.89968 21H18.1032Z",dFour:"M18.1032 5C18.5985 5 19 5.40151 19 5.89681V5.89681C19 6.39186 18.5989 6.79327 18.1038 6.79362L9.90032 6.79937C9.40319 6.79972 9 6.39681 9 5.89968V5.89968C9 5.4028 9.4028 5 9.89968 5H18.1032Z",dFive:"M1 6.9032H2.15C2.42614 6.9032 2.65 6.67934 2.65 6.4032V1.45979L1.02848 1.13999L1.18513 0H4.40443V6.4032C4.40443 6.67934 4.62829 6.9032 4.90443 6.9032H6V8H1V6.9032Z",dSix:"M0.089531 24V22.7416L1.80483 20.9675C3.09664 19.6414 3.64661 19.1002 3.64661 18.3289C3.64661 17.8282 3.41639 17.4629 2.73851 17.4629C2.03363 17.4629 1.73946 17.7064 1.73946 18.6672L0 18.5048C0.0127901 16.3533 1.5604 16 2.90336 16C4.88726 16 5.59072 16.8931 5.59072 18.1665C5.59072 19.4385 4.75936 20.2774 3.82568 21.2246L2.37897 22.6875H4.26054C4.38844 22.6875 4.4396 22.6604 4.46518 22.5251L4.64424 21.4561H6V24H0.089531V24Z"})},l=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M7.9 0.699951C12.1807 0.699951 15.6662 4.10469 15.7962 8.35389L15.8 8.59995V9.76662C15.8 11.3376 14.5265 12.6111 12.9556 12.6111C12.0828 12.6111 11.3019 12.218 10.7801 11.5993L10.687 11.483L10.6695 11.5015C9.99454 12.1459 9.09501 12.5573 8.10019 12.6062L7.9 12.6111C5.68472 12.6111 3.88889 10.8152 3.88889 8.59995C3.88889 6.38468 5.68472 4.58884 7.9 4.58884C10.0481 4.58884 11.8019 6.27749 11.9062 8.39976L11.9111 8.59995V9.76662C11.9111 10.3434 12.3787 10.8111 12.9556 10.8111C13.4939 10.8111 13.9372 10.4037 13.9939 9.88042L14 9.76662V8.59995C14 5.23101 11.2689 2.49995 7.9 2.49995C4.53106 2.49995 1.8 5.23101 1.8 8.59995C1.8 10.6372 2.81705 12.54 4.51097 13.6719C6.20489 14.8038 8.35205 15.0153 10.2321 14.2366C10.635 14.0685 11.0187 13.8575 11.3764 13.6072C11.7837 13.3222 12.3448 13.4214 12.6298 13.8287C12.9147 14.236 12.8155 14.7971 12.4083 15.0821C11.9446 15.4064 11.4474 15.6799 10.9231 15.8987C8.48545 16.9083 5.7047 16.6344 3.51093 15.1685C1.31716 13.7027 0 11.2384 0 8.59995C0 4.2369 3.53695 0.699951 7.9 0.699951ZM7.9 6.38884C6.67884 6.38884 5.68889 7.37879 5.68889 8.59995C5.68889 9.82111 6.67884 10.8111 7.9 10.8111C9.06807 10.8111 10.0246 9.90532 10.1056 8.75786L10.1111 8.59995L10.1056 8.44204C10.0246 7.29458 9.06807 6.38884 7.9 6.38884ZM19.1 20.7C19.5971 20.7 20 21.1029 20 21.6C20 22.097 19.5971 22.5 19.1 22.5H0.899999C0.402943 22.5 0 22.097 0 21.6C0 21.1029 0.402944 20.7 0.9 20.7H19.1ZM16.1 25.2C16.5971 25.2 17 25.6029 17 26.1C17 26.597 16.5971 27 16.1 27H0.899999C0.402943 27 0 26.597 0 26.1C0 25.6029 0.402944 25.2 0.9 25.2H16.1Z"})},s=function(){return(0,n.jsxs)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M20.1 21.7C20.5971 21.7 21 22.1029 21 22.6V22.6C21 23.097 20.5971 23.5 20.1 23.5H1.9C1.40294 23.5 1 23.097 1 22.6V22.6C1 22.1029 1.40294 21.7 1.9 21.7L20.1 21.7Z",dTwo:"M17.1 26.2C17.5971 26.2 18 26.6029 18 27.1V27.1C18 27.597 17.5971 28 17.1 28H1.9C1.40294 28 1 27.597 1 27.1V27.1C1 26.6029 1.40294 26.2 1.9 26.2H17.1Z",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 9C17 13.4182 13.4182 17 9 17C4.58182 17 1 13.4182 1 9C1 4.58182 4.58182 1 9 1C13.4182 1 17 4.58182 17 9V9Z",stroke:"#8A94A6",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M6.09082 10.4546C6.09082 12.0611 7.39337 13.3637 8.99991 13.3637C10.6065 13.3637 11.909 12.0611 11.909 10.4546",stroke:"#8A94A6",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"6.09961",cy:"6.8999",r:"1.5",fill:"#8A94A6"}),(0,n.jsx)("circle",{cx:"11.9004",cy:"6.8999",r:"1.5",fill:"#8A94A6"})]})},u=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M11.5311 0H4.71154C2.10943 0 0 2.05325 0 4.58606V21.3618C0 23.8855 2.09494 25.935 4.68772 25.9478L15.2646 25.9998C17.7964 26.0123 19.8718 24.0787 19.9943 21.6413L20 21.4138V8.84039C20 7.94918 19.665 7.08876 19.0582 6.42136L14.3394 1.23111C13.6276 0.448238 12.6051 0 11.5311 0ZM4.71154 1.68467H11.5311C12.1094 1.68467 12.66 1.92603 13.0432 2.34758L17.7621 7.53784C18.0889 7.8972 18.2692 8.3605 18.2692 8.84039L18.2692 21.4285C18.2609 23.0309 16.9196 24.3233 15.2734 24.3152L4.69647 24.2631C3.05614 24.255 1.73077 22.9584 1.73077 21.3618V4.58606C1.73077 2.98367 3.0653 1.68467 4.71154 1.68467ZM12.1569 9.15367C12.654 9.15367 13.0569 9.55661 13.0569 10.0537C13.0569 10.5125 12.7136 10.8911 12.2698 10.9467L12.1569 10.9537H11.2949L11.2953 16.5248C11.2953 16.5436 11.2948 16.5624 11.2936 16.5809C11.2964 16.6215 11.2979 16.6625 11.2979 16.7037C11.2979 17.7972 10.2905 18.6837 9.04786 18.6837C7.80522 18.6837 6.79786 17.7972 6.79786 16.7037C6.79786 15.6102 7.80522 14.7237 9.04786 14.7237C9.20108 14.7237 9.35072 14.7372 9.49533 14.7628V10.0537C9.49533 9.59484 9.83867 9.21621 10.2824 9.16068L10.3953 9.15367H12.1569Z"})},d=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M4.71154 0H11.5311C12.6051 0 13.6276 0.448238 14.3394 1.23111L19.0582 6.42136C19.665 7.08876 20 7.94918 20 8.84039V21.4138L19.9943 21.6413C19.8718 24.0787 17.7964 26.0123 15.2646 25.9998L4.68772 25.9478C2.09494 25.935 0 23.8855 0 21.3618V4.58606C0 2.05325 2.10943 0 4.71154 0ZM11.5311 1.68467H4.71154C3.0653 1.68467 1.73077 2.98367 1.73077 4.58606V21.3618C1.73077 22.9584 3.05614 24.255 4.69647 24.2631L15.2734 24.3152C16.9196 24.3233 18.2609 23.0309 18.2692 21.4285L18.2692 8.84039C18.2692 8.3605 18.0889 7.8972 17.7621 7.53784L13.0432 2.34758C12.66 1.92603 12.1094 1.68467 11.5311 1.68467ZM7.465 12.1714C7.81214 11.8157 8.38195 11.8087 8.7377 12.1559C9.0638 12.4741 9.09684 12.9794 8.83269 13.3354L8.75328 13.4286L7.0579 15.166L8.75328 16.9044C9.0715 17.2305 9.09215 17.7365 8.81937 18.0859L8.7377 18.1771C8.4116 18.4953 7.90562 18.516 7.55617 18.2432L7.465 18.1615L5.15576 15.795C4.84304 15.4746 4.81699 14.9791 5.07758 14.6294L5.15576 14.5379L7.465 12.1714ZM11.1715 12.1559C11.5272 11.8087 12.097 11.8157 12.4442 12.1714L14.7534 14.5379L14.8316 14.6294C15.0922 14.9791 15.0661 15.4746 14.7534 15.795L12.4442 18.1615L12.353 18.2432C12.0036 18.516 11.4976 18.4953 11.1715 18.1771L11.0898 18.0859C10.817 17.7365 10.8377 17.2305 11.1559 16.9044L12.8513 15.166L11.1559 13.4286L11.0765 13.3354C10.8123 12.9794 10.8454 12.4741 11.1715 12.1559Z"})},f=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M11.5311 0H4.71154C2.10943 0 0 2.05325 0 4.58606V21.3618C0 23.8855 2.09494 25.935 4.68772 25.9478L15.2646 25.9998C17.7964 26.0123 19.8718 24.0787 19.9943 21.6413L20 21.4138V8.84039C20 7.94918 19.665 7.08876 19.0582 6.42136L14.3394 1.23111C13.6276 0.448238 12.6051 0 11.5311 0ZM4.71154 1.68467H11.5311C12.1094 1.68467 12.66 1.92603 13.0432 2.34758L17.7621 7.53784C18.0889 7.8972 18.2692 8.3605 18.2692 8.84039L18.2692 21.4285C18.2609 23.0309 16.9196 24.3233 15.2734 24.3152L4.69647 24.2631C3.05614 24.255 1.73077 22.9584 1.73077 21.3618V4.58606C1.73077 2.98367 3.0653 1.68467 4.71154 1.68467ZM8.83737 12.0598C8.83737 12.0598 7.61687 9.21034 9.23935 8.93779C10.8618 8.66524 10.2464 11.936 10.2464 11.936C10.2464 11.936 10.5132 12.4771 10.9175 13.0721C11.3218 13.6672 11.7883 14.2054 11.7883 14.2054C11.7883 14.2054 12.6685 14.0636 13.1048 14.114C14.0079 14.2183 14.4248 14.735 14.2638 15.551C14.0902 16.4304 12.8587 16.6841 12.2031 16.3188C11.5474 15.9535 11.3098 15.7045 11.3098 15.7045C11.3098 15.7045 10.8522 15.7814 10.0865 16.0237C9.32079 16.266 8.57151 16.5709 8.57151 16.5709C8.57151 16.5709 7.18436 19.7617 5.74173 18.6126C5.09163 18.0948 5.21068 17.3085 5.74173 16.7235C6.37694 16.0237 7.52164 15.4982 7.56127 15.4982C7.59866 15.4982 7.91079 14.8221 8.40435 13.4363C8.54557 13.0398 8.83737 12.0598 8.83737 12.0598ZM9.66919 13.4037C9.66919 13.4037 9.55866 13.8342 9.41606 14.2475C9.27347 14.6608 9.07385 15.0913 9.07385 15.0913C9.07385 15.0913 9.42485 14.9403 9.81028 14.8159C10.1957 14.6915 10.5233 14.6127 10.5233 14.6127C10.5233 14.6127 10.2885 14.3115 10.0632 14.0032C9.83785 13.695 9.66919 13.4037 9.66919 13.4037Z"})},m=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M19.1 19.7C19.5971 19.7 20 20.1029 20 20.6V20.6C20 21.097 19.5971 21.5 19.1 21.5H0.899999C0.402943 21.5 0 21.097 0 20.6V20.6C0 20.1029 0.402944 19.7 0.9 19.7L19.1 19.7Z",dTwo:"M16.1 24.2C16.5971 24.2 17 24.6029 17 25.1V25.1C17 25.597 16.5971 26 16.1 26H0.899999C0.402943 26 0 25.597 0 25.1V25.1C0 24.6029 0.402944 24.2 0.9 24.2H16.1Z",dThree:"M3.56322 6.56025C3.36445 6.56025 3.20103 6.40683 3.20546 6.20811C3.21656 5.7098 3.30561 4.79493 3.77449 4.21325C4.09653 3.81374 4.5272 3.53469 5.0665 3.37609C5.14586 3.35275 5.26229 3.32841 5.37639 3.30716C5.58751 3.26785 5.7452 3.0865 5.7452 2.87175V0.42306C5.7452 0.189974 5.56046 -0.00245902 5.32744 0.00314648C5.22556 0.00559729 5.12212 0.010882 5.03908 0.0211562C3.05319 0.266861 0 2.11058 0 5.82325C0 8.87381 0 11.8152 0 13.1905C0 13.6385 0.363248 14 0.811338 14H5.722C6.17009 14 6.53333 13.6368 6.53333 13.1887V7.37159C6.53333 6.9235 6.17009 6.56025 5.722 6.56025H3.56322Z",dFour:"M11.9636 6.56025C11.7648 6.56025 11.6014 6.40683 11.6058 6.20811C11.617 5.7098 11.706 4.79493 12.1749 4.21325C12.4969 3.81374 12.9276 3.53469 13.4669 3.37609C13.5462 3.35275 13.6627 3.32841 13.7768 3.30716C13.9879 3.26785 14.1456 3.0865 14.1456 2.87175V0.42306C14.1456 0.189974 13.9609 -0.00245902 13.7278 0.00314648C13.626 0.00559729 13.5225 0.010882 13.4395 0.0211562C11.4536 0.266861 8.40039 2.11058 8.40039 5.82325C8.40039 8.87381 8.40039 11.8152 8.40039 13.1905C8.40039 13.6385 8.76364 14 9.21173 14H14.1224C14.5705 14 14.9337 13.6368 14.9337 13.1887V7.37159C14.9337 6.9235 14.5705 6.56025 14.1224 6.56025H11.9636Z"})},p=function(){return(0,n.jsxs)(o,{width:"22",height:"24",viewBox:"0 0 22 24",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 0V5C21 6.65685 19.6569 8 18 8H4C2.34315 8 1 6.65685 1 5V0",stroke:"#8A94A6",strokeWidth:"1.8"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 26V21C1 19.3431 2.34315 18 4 18H18C19.6569 18 21 19.3431 21 21V26",stroke:"#8A94A6",strokeWidth:"1.8"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 13H21",stroke:"#8A94A6",strokeWidth:"1.8",strokeLinecap:"round",strokeDasharray:"2 4"})]})},b=function(){return(0,n.jsxs)(o,{width:"26",height:"25",viewBox:"0 0 26 25",children:[(0,n.jsx)("circle",{cx:"13",cy:"13",r:"11.6",stroke:"#8A94A6",strokeWidth:"1.8"}),(0,n.jsx)("path",{d:"M13.4491 8.80802C13.7597 8.49743 14.651 7.60607 14.651 7.60607C15.7725 6.48458 17.5908 6.48458 18.7123 7.60607C19.8338 8.72756 19.8338 10.5458 18.7123 11.6673L16.5436 13.836C15.4221 14.9575 13.6039 14.9575 12.4824 13.836",stroke:"#8A94A6",strokeWidth:"1.8",strokeLinecap:"round"}),(0,n.jsx)("path",{d:"M13.3399 17.04C12.9031 17.4768 12.1674 18.2125 12.1674 18.2125C11.0459 19.334 9.22757 19.334 8.10609 18.2125C6.9846 17.091 6.9846 15.2728 8.10609 14.1513L10.2747 11.9826C11.3962 10.8611 13.2145 10.8611 14.336 11.9826",stroke:"#8A94A6",strokeWidth:"1.8",strokeLinecap:"round"})]})},v=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M4.71154 0H11.5311C12.6051 0 13.6276 0.448238 14.3394 1.23111L19.0582 6.42136C19.665 7.08876 20 7.94918 20 8.84039V21.4138L19.9943 21.6413C19.8718 24.0787 17.7964 26.0123 15.2646 25.9998L4.68772 25.9478C2.09494 25.935 0 23.8855 0 21.3618V4.58606C0 2.05325 2.10943 0 4.71154 0ZM11.5311 1.68467H4.71154C3.0653 1.68467 1.73077 2.98367 1.73077 4.58606V21.3618C1.73077 22.9584 3.05614 24.255 4.69647 24.2631L15.2734 24.3152C16.9196 24.3233 18.2609 23.0309 18.2692 21.4285L18.2692 8.84039C18.2692 8.3605 18.0889 7.8972 17.7621 7.53784L13.0432 2.34758C12.66 1.92603 12.1094 1.68467 11.5311 1.68467ZM13.0001 16.6C13.4972 16.6 13.9001 17.003 13.9001 17.5C13.9001 17.9588 13.5568 18.3375 13.113 18.393L13.0001 18.4H6.0001C5.50304 18.4 5.1001 17.9971 5.1001 17.5C5.1001 17.0412 5.44343 16.6626 5.8872 16.607L6.0001 16.6H13.0001ZM13.9001 13.5C13.9001 13.0029 13.4972 12.6 13.0001 12.6H6.0001L5.8872 12.607C5.44343 12.6626 5.1001 13.0412 5.1001 13.5C5.1001 13.9971 5.50304 14.4 6.0001 14.4H13.0001L13.113 14.393C13.5568 14.3375 13.9001 13.9588 13.9001 13.5Z"})},h=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M11.5311 0H4.71154C2.10943 0 0 2.05325 0 4.58606V21.3618C0 23.8855 2.09494 25.935 4.68772 25.9478L15.2646 25.9998C17.7964 26.0123 19.8718 24.0787 19.9943 21.6413L20 21.4138V8.84039C20 7.94918 19.665 7.08876 19.0582 6.42136L14.3394 1.23111C13.6276 0.448238 12.6051 0 11.5311 0ZM4.71154 1.68467H11.5311C12.1094 1.68467 12.66 1.92603 13.0432 2.34758L17.7621 7.53784C18.0889 7.8972 18.2692 8.3605 18.2692 8.84039L18.2692 21.4285C18.2609 23.0309 16.9196 24.3233 15.2734 24.3152L4.69647 24.2631C3.05614 24.255 1.73077 22.9584 1.73077 21.3618V4.58606C1.73077 2.98367 3.0653 1.68467 4.71154 1.68467ZM12.7844 12.25C12.7844 12.9404 12.2256 13.5 11.5363 13.5C10.847 13.5 10.2882 12.9404 10.2882 12.25C10.2882 11.5596 10.847 11 11.5363 11C12.2256 11 12.7844 11.5596 12.7844 12.25ZM5.35854 19C4.94252 19 4.70846 18.5216 4.9638 18.1931L8.19199 14.0407C8.4322 13.7317 8.89916 13.7317 9.13937 14.0407L10.6688 16.0079C10.7431 16.1035 10.8846 16.1117 10.9694 16.0253L11.8249 15.1533C12.0798 14.8935 12.5055 14.9187 12.728 15.2067L15.036 18.1943C15.2899 18.523 15.0557 19 14.6404 19H5.35854Z"})},y=function(){return(0,n.jsx)(o,{width:"20",height:"26",viewBox:"0 0 20 26",dOne:"M11.5311 0H4.71154C2.10943 0 0 2.05325 0 4.58606V21.3618C0 23.8855 2.09494 25.935 4.68772 25.9478L15.2646 25.9998C17.7964 26.0123 19.8718 24.0787 19.9943 21.6413L20 21.4138V8.84039C20 7.94918 19.665 7.08876 19.0582 6.42136L14.3394 1.23111C13.6276 0.448238 12.6051 0 11.5311 0ZM4.71154 1.68467H11.5311C12.1094 1.68467 12.66 1.92603 13.0432 2.34758L17.7621 7.53784C18.0889 7.8972 18.2692 8.3605 18.2692 8.84039L18.2692 21.4285C18.2609 23.0309 16.9196 24.3233 15.2734 24.3152L4.69647 24.2631C3.05614 24.255 1.73077 22.9584 1.73077 21.3618V4.58606C1.73077 2.98367 3.0653 1.68467 4.71154 1.68467ZM7.7002 12.3685C7.7002 11.5698 8.59034 11.0934 9.2549 11.5365L12.4521 13.6679C13.0459 14.0638 13.0459 14.9362 12.4521 15.3321L9.2549 17.4635C8.59034 17.9066 7.7002 17.4302 7.7002 16.6315V12.3685Z"})},g=function(){return(0,n.jsx)(o,{width:"26",height:"25",viewBox:"0 0 26 25",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.24655 17.8559L13.5759 17.9533C13.5844 17.9533 13.6014 17.9533 13.6013 17.9665C16.569 18.0219 19.4605 17.8478 22.4199 17.6315C24.7819 17.4661 25.3416 15.7528 25.6341 13.7098C25.9988 11.2423 26.0793 8.74506 25.8885 6.26062C25.8794 6.14282 25.8705 6.02397 25.8615 5.90437C25.6838 3.52721 25.4839 0.855609 22.6743 0.36312C22.0765 0.257064 21.4661 0.163891 20.8598 0.146844C15.1192 -0.0391124 9.32767 -0.0863496 3.57435 0.312239C1.87004 0.422069 0.767968 1.43136 0.487928 3.12279C-0.00812784 6.13725 -0.10989 9.23227 0.152973 12.2721C0.156252 12.3093 0.159528 12.3466 0.162814 12.384C0.350717 14.5224 0.570287 17.0211 3.09951 17.5378C4.46116 17.821 5.84751 17.8324 7.23643 17.8437C7.57309 17.8465 7.9099 17.8492 8.24655 17.8559ZM13.2084 11.1919C12.2904 11.7195 11.3703 12.2484 10.4428 12.7809V5.15789C11.4656 5.74458 12.4812 6.32855 13.4979 6.91315C14.6853 7.59593 15.8743 8.27957 17.078 8.96941C15.7828 9.71232 14.4977 10.4509 13.2084 11.1919Z",fill:"#FF0000"})})},j=function(){return(0,n.jsxs)(o,{width:"25",height:"20",viewBox:"0 0 25 20",children:[(0,n.jsx)("path",{d:"M24.806 7.45679C24.806 7.45679 24.2241 8.59903 21.3578 10.4094C20.1293 11.1852 17.5862 12.0042 14.3319 12.3059C12.5647 12.4783 9.3319 12.349 7.93103 12.349C6.53017 12.349 5.88362 12.6508 4.63362 14.0516C0 19.2887 0 19.2887 0 19.2887C0 19.2887 1.59483 19.2887 2.82328 19.2887C4.05172 19.2887 11.5948 19.7197 14.9569 18.793C25.8621 15.8189 24.806 7.45679 24.806 7.45679Z",fill:"#148EE0"}),(0,n.jsx)("path",{d:"M24.5043 4.15946C25.0216 0.948251 23.2328 0.0861816 23.2328 0.0861816C23.2328 0.0861816 23.2974 2.69394 18.5129 3.25429C14.2672 3.74997 0 3.3836 0 3.3836C0 3.3836 0 3.38359 4.59052 8.64222C5.84052 10.0646 6.48707 10.237 7.88793 10.3233C9.28879 10.4095 12.3707 10.3879 14.4612 10.2155C16.7457 10.0431 20 9.28877 22.1983 7.58618C23.319 6.70256 24.2888 5.49566 24.5043 4.15946Z",fill:"#54BBFF"})]})},x=function(){return(0,n.jsx)(o,{width:"26",height:"22",viewBox:"0 0 26 22",children:(0,n.jsx)("path",{d:"M25.3546 4.97382C25.2432 7.38816 23.553 10.6948 20.2842 14.8928C16.9039 19.2758 14.0429 21.4683 11.7032 21.4683C10.2548 21.4683 9.02822 20.1313 8.02548 17.4564L6.01999 10.1009C5.2759 7.42497 4.47709 6.08798 3.62356 6.08798C3.43754 6.08798 2.78795 6.47793 1.67279 7.25784L0.50293 5.75373C1.71855 4.68534 2.92523 3.60799 4.12493 2.52168C5.75936 1.11009 6.98493 0.366984 7.80264 0.29337C9.73451 0.107346 10.9233 1.42643 11.3689 4.24962C11.8514 7.29564 12.1867 9.19071 12.3717 9.93281C12.9288 12.4586 13.5415 13.7219 14.21 13.7219C14.7303 13.7219 15.5102 12.9042 16.5508 11.2698C17.5913 9.63537 18.1484 8.3909 18.222 7.53638C18.3702 6.12479 17.8131 5.41849 16.5508 5.41849C15.9569 5.41849 15.3431 5.54881 14.7124 5.80844C15.938 1.83329 18.2787 -0.0975797 21.7336 0.013836C24.2961 0.0884447 25.5028 1.74177 25.3546 4.97382Z",fill:"#1AB7EA"})})},C=function(){return(0,n.jsx)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.5 13.0622C25.5 9.625 23.5313 6.73437 20.6493 5.35074C19.2656 2.39062 16.2813 0.5 13.0622 0.5C9.625 0.5 6.73437 2.46875 5.35074 5.35074C2.39062 6.73437 0.5 9.71871 0.5 13.0622C0.5 16.375 2.46875 19.2656 5.35074 20.6493C6.73437 23.6094 9.71871 25.5 13.0622 25.5C16.375 25.5 19.2656 23.5313 20.6493 20.6493C23.6094 19.2656 25.5 16.2813 25.5 13.0622ZM15.5498 10.3259C15.8607 11.1654 16.0473 12.0361 16.0473 12.9378C16.0473 13.8551 15.8607 14.7257 15.5498 15.5498C14.7102 15.8607 13.8396 16.0473 12.9378 16.0473C12.0205 16.0473 11.1499 15.8607 10.3259 15.5498C10.0149 14.7102 9.82836 13.8396 9.82836 12.9378C9.82836 12.0205 10.0149 11.1499 10.3259 10.3259C11.1654 10.0149 12.0361 9.82836 12.9378 9.82836C13.8551 9.82836 14.7102 10.0149 15.5498 10.3259ZM13.0622 2.11691C15.0695 2.11691 16.9933 3.02494 18.2861 4.60448C17.8244 4.47162 17.3473 4.42545 16.9179 4.4801C13.4381 4.42545 10.4986 6.47235 9.2065 9.45521C9.14429 9.42729 9.14429 9.42729 9.2065 9.45521C8.66721 10.5046 8.40557 11.6589 8.46021 12.9378C8.40557 13.3671 8.45171 13.8443 8.58457 14.306C7.02043 13.0132 6.09701 11.0894 6.09701 9.08207C6.09701 5.22574 9.20586 2.11691 13.0622 2.11691ZM2.11691 12.9378C2.11691 10.9305 3.02494 9.00671 4.60448 7.71393C4.47162 8.17564 4.42545 8.65271 4.4801 9.08207C4.42545 12.5619 6.47235 15.5014 9.45521 16.7935C9.42729 16.8557 9.42729 16.8557 9.45521 16.7935C10.5046 17.3328 11.6589 17.5944 12.9378 17.5398C13.3671 17.5944 13.8443 17.5483 14.306 17.4154C13.0132 18.9796 11.0894 19.903 9.08207 19.903C5.22574 19.903 2.11691 16.7941 2.11691 12.9378ZM12.9378 23.6344C10.9305 23.6344 9.00671 22.7263 7.71393 21.1468C8.17564 21.2796 8.65271 21.3258 9.08207 21.2711C12.5619 21.3258 15.5014 19.2789 16.7935 16.296C16.8557 16.324 16.8557 16.324 16.7935 16.296C17.3328 15.2466 17.5944 14.0924 17.5398 12.8134C17.5944 12.3841 17.5483 11.907 17.4154 11.4453C18.9796 12.7381 19.903 14.6619 19.903 16.6691C19.903 20.5255 16.7941 23.6344 12.9378 23.6344ZM16.296 9.2065C16.324 9.14429 16.324 9.14429 16.296 9.2065C15.2466 8.66721 14.0924 8.40557 12.8134 8.46021C12.3841 8.40557 11.907 8.45171 11.4453 8.58457C12.7381 7.02043 14.6619 6.09701 16.6691 6.09701C20.5255 6.09701 23.6344 9.20586 23.6344 13.0622C23.6344 15.0695 22.7263 16.9933 21.1468 18.2861C21.2796 17.8244 21.3258 17.3473 21.2711 16.9179C21.3258 13.4381 19.2789 10.4986 16.296 9.2065Z",fill:"#FD5E60"})})},w=function(){return(0,n.jsxs)(o,{width:"30",height:"14",viewBox:"0 0 30 14",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6752 13.2605L15.5472 13.1325V1.15076L15.6864 1.04636C15.8486 0.918943 16.4627 0.721922 17.0773 0.594504C17.738 0.467086 18.8157 0.478312 19.4994 0.617518C22.2335 1.18557 24.1807 3.28319 24.6214 6.13353L24.6562 6.31877L25.1086 6.19135C25.4908 6.08695 25.63 6.06393 26.1279 6.08695L26.1511 6.08809C26.836 6.12177 26.8745 6.12366 27.3325 6.29519C29.3729 7.07149 30.299 9.42395 29.3145 11.3711C28.8621 12.2749 28.2132 12.8423 27.2281 13.2021L26.8576 13.3413L21.3416 13.3531L15.8256 13.3649L15.6752 13.2605ZM14.3892 13.0169C14.4082 13.1229 14.466 13.218 14.5514 13.2835C14.6205 13.3419 14.7366 13.3879 14.8068 13.3868C14.9572 13.3868 15.1891 13.1668 15.1891 13.0394C15.2116 12.6142 15.2387 12.1892 15.2705 11.7646C15.3406 10.7217 15.3866 7.36112 15.3288 7.26851C15.317 7.25672 15.294 6.31765 15.2705 5.18211C15.2625 4.79146 15.2559 4.41857 15.2501 4.09465L15.2501 4.09456C15.2391 3.47743 15.2312 3.03807 15.2239 2.99243C15.2126 2.92283 15.2009 2.57538 15.2009 2.22792C15.1891 1.63686 15.1778 1.59083 15.0616 1.47464C14.8994 1.32421 14.6794 1.31242 14.5284 1.45163C14.3898 1.59083 14.3662 1.82266 14.3314 4.20992C14.3223 4.62322 14.3113 5.13843 14.2999 5.67331C14.2825 6.48813 14.2642 7.34859 14.25 7.96397C14.2152 9.42451 14.227 10.143 14.2848 11.3363C14.3308 12.1704 14.3774 12.9237 14.3892 13.0169ZM13.2879 13.2953C13.2183 13.2257 13.1835 13.0983 13.1605 12.8665C13.0791 11.974 13.0213 9.76073 13.0443 8.45119C13.0506 8.0143 13.0637 7.45299 13.0762 6.91392L13.0762 6.91381C13.0869 6.45213 13.0972 6.00678 13.1027 5.66989C13.1605 2.73816 13.1841 2.27507 13.2879 2.17067C13.4153 2.04325 13.6702 2.04325 13.7863 2.17067C13.9138 2.29809 13.9256 2.66911 14.0412 8.32434C14.076 10.0279 13.9598 13.0175 13.8442 13.2257C13.7398 13.4233 13.4383 13.4575 13.2761 13.2953H13.2879ZM9.49848 12.8665C9.52206 13.0865 9.55686 13.2257 9.61467 13.2953L9.6259 13.283C9.74209 13.3992 9.92732 13.4104 10.0317 13.306C10.1361 13.2134 10.1474 13.0747 10.2518 11.5103C10.3449 10.1312 10.3332 9.45931 10.1939 5.25284C10.1361 3.74627 10.1013 3.07438 10.0547 3.02779C9.97391 2.93518 9.71852 2.93518 9.6259 3.02779C9.53328 3.12041 9.51027 3.48021 9.40586 7.28086C9.32447 10.0386 9.32447 10.2244 9.49848 12.8665ZM8.40954 13.2953C8.32815 13.2139 8.30513 13.0865 8.28212 12.4842L8.27365 12.3425L8.27365 12.3424C8.25076 11.9588 8.22112 11.4621 8.20073 11.1747C8.13113 10.3524 8.14235 9.28586 8.22374 6.74761C8.27033 5.54303 8.30513 4.32611 8.30513 4.02468C8.31692 3.41061 8.36351 3.22537 8.52573 3.17879C8.72275 3.1322 8.87318 3.2714 8.87318 3.51501C8.87318 3.57665 8.88945 4.02937 8.91344 4.69698L8.91345 4.69716L8.91346 4.69742L8.91349 4.69827L8.91349 4.6984L8.91357 4.70035L8.91374 4.70522L8.91381 4.70711L8.9139 4.70967C8.93506 5.29874 8.96216 6.05291 8.98937 6.85258L9.10556 9.9701L8.98937 11.5345C8.95528 12.035 8.92139 12.4922 8.89908 12.7931C8.88319 13.0075 8.87318 13.1425 8.87318 13.1572C8.87318 13.2493 8.72219 13.3773 8.60656 13.3773C8.54874 13.3773 8.46735 13.3307 8.40954 13.2847V13.2953ZM7.0186 11.5339C7.09943 12.7043 7.14602 13.1909 7.20384 13.2723H7.20496V13.2611C7.25155 13.3301 7.32059 13.3767 7.37897 13.3767C7.48281 13.3767 7.6338 13.2487 7.6338 13.1567C7.67364 12.6195 7.71612 12.0825 7.76122 11.5457L7.88864 9.99256L7.76122 6.99066C7.69162 5.34545 7.62201 3.94329 7.61023 3.88548C7.54062 3.59584 7.19317 3.64187 7.14658 3.94329C7.1348 4.03591 7.09999 4.85879 7.06519 5.79731C7.03039 6.73638 6.9838 8.04536 6.96079 8.70659C6.9142 9.74895 6.92599 10.143 7.0186 11.5339ZM5.94088 13.0859C5.94088 13.1561 5.97569 13.2605 6.02227 13.3065V13.3172C6.12612 13.4098 6.26532 13.4216 6.34671 13.3284C6.38151 13.2942 6.46234 12.5291 6.54373 11.6254L6.68294 9.99143L6.54373 7.48854C6.4281 5.31009 6.3933 4.98565 6.3237 4.92784C6.27711 4.88125 6.20751 4.85823 6.17271 4.85823C5.97569 4.85823 5.9639 4.95085 5.84827 7.53513L5.73208 10.0728L5.83648 11.5103C5.8943 12.2984 5.94088 13.0046 5.94088 13.0859ZM10.8198 13.2835C10.762 13.2252 10.7154 13.0983 10.7154 13.0169C10.7154 12.9355 10.6806 12.2406 10.634 11.4755C10.5526 10.1896 10.5526 9.82978 10.634 6.71281C10.7252 3.15461 10.7266 3.1543 10.9808 3.10007L10.9933 3.0974C11.2251 3.05081 11.3761 3.24783 11.3761 3.60707C11.3761 3.76929 11.3991 4.61518 11.4227 5.47287L11.4279 5.66676L11.4279 5.66832C11.4507 6.51938 11.4822 7.69396 11.5041 8.38215C11.5158 9.11242 11.5389 9.74951 11.5506 9.78431C11.5624 9.81911 11.5271 10.5488 11.4692 11.4065C11.43 11.9627 11.3952 12.5191 11.3648 13.0758C11.3648 13.2145 11.1796 13.4003 11.0174 13.4003C10.9314 13.3929 10.852 13.351 10.7974 13.2841H10.8198V13.2835ZM11.8397 11.2095C11.9436 13.0635 11.9553 13.1909 12.0597 13.2953H12.0367C12.1642 13.4109 12.3494 13.4109 12.5004 13.2953C12.616 13.2027 12.6278 13.1449 12.7204 11.6383C12.8136 10.2362 12.8136 9.87636 12.767 8.17334C12.7536 7.56424 12.7321 6.86803 12.7142 6.2881L12.7142 6.28805L12.7142 6.28776C12.7014 5.87487 12.6905 5.52094 12.6856 5.29942L12.6827 5.19412C12.6395 3.6042 12.6374 3.52459 12.5352 3.4224C12.4774 3.35279 12.373 3.31799 12.2686 3.31799C11.9569 3.31799 11.9559 3.35256 11.8981 5.30307L11.8975 5.32244C11.7931 8.99623 11.7819 10.1318 11.8397 11.2095ZM4.64313 11.5216C4.71273 12.391 4.78234 13.1561 4.80535 13.2139L4.79412 13.2257C4.82892 13.3071 4.87551 13.3419 4.96813 13.3419C5.06075 13.3419 5.11912 13.3071 5.14214 13.2257C5.16515 13.1567 5.24654 12.391 5.31614 11.5109L5.45535 9.91117L5.31614 8.4046C5.17694 6.93284 5.13035 6.74705 4.96813 6.74705C4.84071 6.74705 4.75932 6.97943 4.72452 7.46609C4.71484 7.57823 4.70099 7.76204 4.68473 7.97796L4.68468 7.97853L4.68466 7.97887L4.68465 7.97893C4.66226 8.27621 4.63529 8.63417 4.60833 8.94964C4.52694 9.92239 4.52694 9.992 4.64313 11.5216ZM3.6468 13.2375C3.63501 13.2139 3.55418 12.4724 3.48458 11.5917L3.34538 9.992L3.48458 8.335C3.55418 7.4195 3.6468 6.64264 3.67038 6.6084C3.73998 6.52701 3.84438 6.52701 3.91399 6.6084C3.94879 6.64321 4.0414 7.40827 4.12279 8.32378L4.27323 9.96954L4.12279 11.5687C4.0414 12.4494 3.96057 13.1915 3.94879 13.2257C3.92577 13.2953 3.68216 13.3189 3.64736 13.2487V13.2375H3.6468ZM2.32547 11.5339C2.39507 12.3686 2.47646 13.0753 2.49948 13.1101H2.49892V13.1213C2.56852 13.2139 2.68471 13.1909 2.74253 13.0629C2.76554 12.9939 2.85816 12.2636 2.93955 11.4295L3.09054 9.91117L2.92832 8.335C2.83514 7.4195 2.74253 6.73582 2.70772 6.70102C2.60332 6.59718 2.49892 6.6898 2.46412 6.92162C2.45289 7.03725 2.38329 7.79109 2.31368 8.57861L2.18627 10.0156L2.32547 11.5339ZM1.32914 12.6234C1.31735 12.5768 1.23653 11.9397 1.16692 11.2213L1.02772 9.91173L1.17815 8.57917C1.31735 7.30443 1.34037 7.24662 1.44477 7.2236C1.44925 7.22277 1.45355 7.2219 1.4577 7.22107C1.47551 7.21746 1.49043 7.21445 1.50372 7.21785C1.57262 7.23549 1.59729 7.4259 1.74989 8.60406C1.75611 8.65211 1.76255 8.7018 1.76921 8.75318L1.91964 9.95776L1.76921 11.2213C1.68782 11.9167 1.5952 12.5308 1.57219 12.5999C1.51381 12.7391 1.3864 12.7514 1.35159 12.6234H1.32914ZM0.112217 10.7806C0.1503 11.0715 0.196721 11.3613 0.251422 11.6496L0.239634 11.6608C0.274436 11.754 0.309237 11.7652 0.401854 11.7074C0.436655 11.6838 0.529272 11.2903 0.598874 10.8267L0.726292 9.99256L0.598874 9.15845C0.483244 8.33612 0.401854 8.11553 0.286223 8.25473C0.26321 8.28897 0.181819 8.6948 0.124004 9.15845L0.0078125 9.99256L0.112217 10.7806Z",fill:"url(#paint0_linear)"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear",x1:"0.740261",y1:"0.856529",x2:"0.740261",y2:"13.1429",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#FF8800"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF3300"})]})})]})},O=function(){return(0,n.jsx)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 13C0.5 6.09621 6.09621 0.5 13 0.5C19.9038 0.500853 25.5 6.09707 25.5 13C25.5 19.9038 19.9038 25.5 13 25.5C6.09621 25.5 0.5 19.9038 0.5 13ZM17.6614 18.7873C18.0281 19.0116 18.5084 18.8965 18.7327 18.528C18.9579 18.1612 18.841 17.6827 18.4742 17.4567C15.1793 15.4437 11.0945 14.9754 6.33333 16.0629C5.91283 16.1585 5.65097 16.5764 5.74736 16.9961C5.84289 17.4157 6.26083 17.6784 6.68048 17.5821C11.0314 16.5884 14.7264 16.9935 17.6614 18.7873ZM20.262 15.1256C19.9797 15.5844 19.3792 15.7277 18.9212 15.4463C15.5623 13.3813 10.4394 12.7833 6.46554 13.9894C5.95036 14.1455 5.40618 13.8547 5.24923 13.3403C5.094 12.8251 5.38485 12.2818 5.89918 12.1249C10.4386 10.7474 16.0826 11.4144 19.9405 13.7856C20.3994 14.0679 20.5444 14.6675 20.262 15.1256ZM5.87103 10.1349C9.71784 8.9681 16.364 9.18816 20.3934 11.5807C20.9478 11.9108 21.6668 11.7274 21.9952 11.1713C22.3245 10.6169 22.1419 9.89952 21.5867 9.56943C16.9483 6.8161 9.60867 6.55766 5.19294 7.89765C4.57455 8.0853 4.22654 8.73866 4.41334 9.35619C4.60014 9.97373 5.2535 10.3226 5.87103 10.1349Z",fill:"#2EBD59"})})},_=function(){return(0,n.jsxs)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 25.5H25.5V0.5H0.5V25.5ZM2.16667 23.8333H23.8333V2.16667H2.16667V23.8333Z",fill:"black"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 5.50003V20.5H20.5L5.5 5.50003ZM19.3214 16.1068L9.89323 6.67868L11.0719 5.50003L20.5 14.9282L19.3214 16.1068ZM19.3214 11.3927L14.6078 6.6792L15.7859 5.49951L20.4995 10.2141L19.3214 11.3927Z",fill:"black"})]})},k=function(){return(0,n.jsxs)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.8124 1.1563C5.6065 0.8473 6.5158 0.6363 7.8465 0.5757C9.18 0.5141 9.6064 0.5 13.001 0.5C16.3956 0.5 16.8217 0.5151 18.1545 0.5757C19.4842 0.6353 20.393 0.8473 21.1886 1.1563C22.0095 1.4754 22.7073 1.9024 23.4019 2.5981C24.0965 3.2938 24.5237 3.9905 24.8437 4.8124C25.1527 5.6065 25.3637 6.5157 25.4243 7.8465C25.4849 9.1793 25.499 9.6054 25.499 13C25.499 16.3946 25.4849 16.8197 25.4243 18.1535C25.3647 19.4842 25.1527 20.393 24.8437 21.1876C24.5237 22.0095 24.0976 22.7073 23.4019 23.4019C22.7062 24.0965 22.0095 24.5237 21.1876 24.8437C20.393 25.1527 19.4843 25.3637 18.1535 25.4243C16.8207 25.4859 16.3946 25.5 13 25.5C9.6054 25.5 9.18 25.4849 7.8465 25.4243C6.5158 25.3637 5.608 25.1527 4.8124 24.8437C3.99 24.5237 3.2937 24.0962 2.5981 23.4019C1.9025 22.7076 1.4754 22.0095 1.1563 21.1876C0.8473 20.393 0.6363 19.4843 0.5757 18.1535C0.5141 16.8207 0.5 16.3946 0.5 13C0.5 9.6054 0.5141 9.1793 0.5757 7.8465C0.6363 6.5158 0.8473 5.607 1.1563 4.8124C1.4754 3.99 1.9024 3.2927 2.5981 2.5981C3.2938 1.9035 3.99 1.4754 4.8124 1.1563ZM7.95 23.1747C6.7313 23.1192 6.0689 22.9162 5.6287 22.7447C5.0451 22.5175 4.6287 22.2469 4.1909 21.8097C3.7531 21.3725 3.4821 20.9565 3.2559 20.3729C3.0843 19.9329 2.8813 19.2703 2.8259 18.0516C2.7653 16.734 2.7532 16.3382 2.7532 13.0001C2.7532 9.662 2.7663 9.2673 2.8259 7.9486C2.8814 6.7299 3.0859 6.0686 3.2559 5.6273C3.4831 5.0437 3.7537 4.6273 4.1909 4.1895C4.6281 3.7517 5.0441 3.4807 5.6287 3.2545C6.0687 3.0829 6.7313 2.8799 7.95 2.8245C9.2676 2.7639 9.6634 2.7518 13 2.7518C16.3366 2.7518 16.7328 2.7649 18.0515 2.8245C19.2702 2.88 19.9315 3.0845 20.3728 3.2545C20.9564 3.4807 21.3728 3.7523 21.8106 4.1895C22.2484 4.6267 22.5184 5.0437 22.7456 5.6273C22.9172 6.0673 23.1202 6.7299 23.1756 7.9486C23.2362 9.2673 23.2483 9.662 23.2483 13.0001C23.2483 16.3382 23.2362 16.7329 23.1756 18.0516C23.1201 19.2703 22.9161 19.9327 22.7456 20.3729C22.5184 20.9565 22.2478 21.3729 21.8106 21.8097C21.3734 22.2465 20.9564 22.5175 20.3728 22.7447C19.9328 22.9163 19.2702 23.1193 18.0515 23.1747C16.7339 23.2353 16.3381 23.2474 13 23.2474C9.6619 23.2474 9.2672 23.2353 7.95 23.1747ZM19.6721 7.8275C18.8437 7.82717 18.1724 7.15533 18.1727 6.3269C18.1734 5.49887 18.8447 4.82789 19.6727 4.8275H19.6733C20.5017 4.82783 21.173 5.49967 21.1727 6.3281C21.1724 7.15653 20.5005 7.82783 19.6721 7.8275ZM6.5814 13C6.5814 16.545 9.455 19.4186 13 19.4186C16.545 19.4186 19.4186 16.545 19.4186 13C19.4186 9.455 16.545 6.5814 13 6.5814C9.455 6.5814 6.5814 9.455 6.5814 13ZM8.834 13C8.834 10.6989 10.6989 8.833 13 8.833C15.3011 8.833 17.167 10.6989 17.167 13C17.167 15.3011 15.3011 17.167 13 17.167C10.6989 17.167 8.834 15.3011 8.834 13Z",fill:"url(#paint0_radial)"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.8124 1.1563C5.6065 0.8473 6.5158 0.6363 7.8465 0.5757C9.18 0.5141 9.6064 0.5 13.001 0.5C16.3956 0.5 16.8217 0.5151 18.1545 0.5757C19.4842 0.6353 20.393 0.8473 21.1886 1.1563C22.0095 1.4754 22.7073 1.9024 23.4019 2.5981C24.0965 3.2938 24.5237 3.9905 24.8437 4.8124C25.1527 5.6065 25.3637 6.5157 25.4243 7.8465C25.4849 9.1793 25.499 9.6054 25.499 13C25.499 16.3946 25.4849 16.8197 25.4243 18.1535C25.3647 19.4842 25.1527 20.393 24.8437 21.1876C24.5237 22.0095 24.0976 22.7073 23.4019 23.4019C22.7062 24.0965 22.0095 24.5237 21.1876 24.8437C20.393 25.1527 19.4843 25.3637 18.1535 25.4243C16.8207 25.4859 16.3946 25.5 13 25.5C9.6054 25.5 9.18 25.4849 7.8465 25.4243C6.5158 25.3637 5.608 25.1527 4.8124 24.8437C3.99 24.5237 3.2937 24.0962 2.5981 23.4019C1.9025 22.7076 1.4754 22.0095 1.1563 21.1876C0.8473 20.393 0.6363 19.4843 0.5757 18.1535C0.5141 16.8207 0.5 16.3946 0.5 13C0.5 9.6054 0.5141 9.1793 0.5757 7.8465C0.6363 6.5158 0.8473 5.607 1.1563 4.8124C1.4754 3.99 1.9024 3.2927 2.5981 2.5981C3.2938 1.9035 3.99 1.4754 4.8124 1.1563ZM7.95 23.1747C6.7313 23.1192 6.0689 22.9162 5.6287 22.7447C5.0451 22.5175 4.6287 22.2469 4.1909 21.8097C3.7531 21.3725 3.4821 20.9565 3.2559 20.3729C3.0843 19.9329 2.8813 19.2703 2.8259 18.0516C2.7653 16.734 2.7532 16.3382 2.7532 13.0001C2.7532 9.662 2.7663 9.2673 2.8259 7.9486C2.8814 6.7299 3.0859 6.0686 3.2559 5.6273C3.4831 5.0437 3.7537 4.6273 4.1909 4.1895C4.6281 3.7517 5.0441 3.4807 5.6287 3.2545C6.0687 3.0829 6.7313 2.8799 7.95 2.8245C9.2676 2.7639 9.6634 2.7518 13 2.7518C16.3366 2.7518 16.7328 2.7649 18.0515 2.8245C19.2702 2.88 19.9315 3.0845 20.3728 3.2545C20.9564 3.4807 21.3728 3.7523 21.8106 4.1895C22.2484 4.6267 22.5184 5.0437 22.7456 5.6273C22.9172 6.0673 23.1202 6.7299 23.1756 7.9486C23.2362 9.2673 23.2483 9.662 23.2483 13.0001C23.2483 16.3382 23.2362 16.7329 23.1756 18.0516C23.1201 19.2703 22.9161 19.9327 22.7456 20.3729C22.5184 20.9565 22.2478 21.3729 21.8106 21.8097C21.3734 22.2465 20.9564 22.5175 20.3728 22.7447C19.9328 22.9163 19.2702 23.1193 18.0515 23.1747C16.7339 23.2353 16.3381 23.2474 13 23.2474C9.6619 23.2474 9.2672 23.2353 7.95 23.1747ZM19.6721 7.8275C18.8437 7.82717 18.1724 7.15533 18.1727 6.3269C18.1734 5.49887 18.8447 4.82789 19.6727 4.8275H19.6733C20.5017 4.82783 21.173 5.49967 21.1727 6.3281C21.1724 7.15653 20.5005 7.82783 19.6721 7.8275ZM6.5814 13C6.5814 16.545 9.455 19.4186 13 19.4186C16.545 19.4186 19.4186 16.545 19.4186 13C19.4186 9.455 16.545 6.5814 13 6.5814C9.455 6.5814 6.5814 9.455 6.5814 13ZM8.834 13C8.834 10.6989 10.6989 8.833 13 8.833C15.3011 8.833 17.167 10.6989 17.167 13C17.167 15.3011 15.3011 17.167 13 17.167C10.6989 17.167 8.834 15.3011 8.834 13Z",fill:"url(#paint1_linear)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(3.8214 25.6181) scale(32.6354 32.6367)",children:[(0,n.jsx)("stop",{offset:"0.09",stopColor:"#FA8F21"}),(0,n.jsx)("stop",{offset:"0.78",stopColor:"#D82D7E"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear",x1:"0.5",y1:"0.5",x2:"0.5",y2:"25.5",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#8F3AA9"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#8C3AAA",stopOpacity:"0.01"})]})]})]})},S=function(){return(0,n.jsxs)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:[(0,n.jsx)("path",{d:"M24.1203 25.5002C24.8822 25.5002 25.5 24.8823 25.5 24.1204V1.87977C25.5 1.11757 24.8821 0.5 24.1203 0.5H1.87977C1.11757 0.5 0.5 1.11766 0.5 1.87977V24.1203C0.5 24.8823 1.11757 25.5001 1.87977 25.5001H24.1203V25.5002Z",fill:"#485A96"}),(0,n.jsx)("path",{d:"M17.7496 25.5002V15.8188H20.9992L21.4857 12.0458H17.7495V9.63683C17.7495 8.54444 18.0528 7.80004 19.6193 7.80004L21.6172 7.79911V4.42453C21.2717 4.37864 20.0856 4.27588 18.706 4.27588C15.8253 4.27588 13.8532 6.03417 13.8532 9.26327V12.0458H10.5952V15.8188H13.8532V25.5001H17.7496V25.5002Z",fill:"white"})]})},P=function(){return(0,n.jsx)(o,{width:"26",height:"20",viewBox:"0 0 26 20",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.142 0.878873C6.21869 6.11624 12.6733 6.22779 12.6733 6.22779L12.7583 6.25541C11.9373 0.349433 17.2595 0.0151256 17.2595 0.0151256C19.7305 -0.153409 21.0809 1.13458 21.4021 1.48744C22.0369 1.43129 23.3501 1.20302 24.7964 0.293955C24.7964 0.293955 24.3255 2.04018 22.6934 3.07589C22.6934 3.07589 23.972 3.05031 25.5 2.3554C25.5 2.3554 24.0819 4.33466 22.9229 4.90919C22.9942 11.1469 19.2978 15.1703 19.2978 15.1703C14.6834 20.4634 8.59664 19.9899 8.59664 19.9899C3.55752 19.9899 0.5 17.8447 0.5 17.8447C5.426 18.1233 7.9455 15.6717 7.9455 15.6717C4.06686 15.393 3.18936 12.2172 3.18936 12.2172C4.43502 12.3844 5.45419 12.0501 5.45419 12.0501C1.12283 10.88 1.40593 6.97986 1.40593 6.97986C2.19874 7.67634 3.67064 7.64848 3.67064 7.64848C-0.292568 4.44482 2.142 0.878873 2.142 0.878873Z",fill:"#34A7DB"})})},L=function(){return(0,n.jsxs)(o,{width:"16",height:"25",viewBox:"0 0 16 25",children:[(0,n.jsx)("path",{d:"M13.4927 0H16.0002V25H13.4927V0Z",fill:"#89C6BE"}),(0,n.jsx)("path",{d:"M0 5.72362H3.11832V0H7.25099V5.72362H10.9852V8.86244H7.25099V19.0546C7.25099 19.4974 7.26915 19.8795 7.30548 20.1992C7.34136 20.5197 7.42604 20.7901 7.55894 21.0119C7.6919 21.2333 7.89087 21.3994 8.15755 21.5103C8.4231 21.6212 8.78553 21.6764 9.24505 21.6764C9.5349 21.6764 9.82512 21.6707 10.115 21.6577C10.4051 21.6459 10.695 21.6025 10.9852 21.529V24.7786C10.5258 24.8274 10.0786 24.8766 9.64387 24.9265C9.19849 24.9757 8.75065 25.0003 8.30247 25C7.2146 25 6.33854 24.8948 5.67392 24.6864C5.00879 24.4772 4.48978 24.169 4.11532 23.7629C3.74004 23.3567 3.48652 22.8457 3.35362 22.23C3.22028 21.6154 3.14187 20.9136 3.11826 20.1256V8.8625H0V5.72362Z",fill:"#33393F"})]})},E=function(){return(0,n.jsxs)(o,{width:"26",height:"22",viewBox:"0 0 26 22",children:[(0,n.jsx)("path",{d:"M11.6529 0.802614L2.34088 4.65577C1.82304 4.87008 1.8284 5.60576 2.34949 5.8123L11.7004 9.52047C12.522 9.84631 13.4369 9.84631 14.2585 9.52047L23.6096 5.81216C24.1305 5.60576 24.1361 4.87022 23.618 4.65591L14.3062 0.802473C13.4567 0.450934 12.5024 0.450934 11.6528 0.802473",fill:"#FCB400"}),(0,n.jsx)("path",{d:"M13.8091 11.5453V20.8089C13.8091 21.2494 14.2534 21.5512 14.6629 21.3889L25.0827 17.3444C25.3205 17.2501 25.4766 17.0203 25.4766 16.7645V7.50095C25.4766 7.06033 25.0323 6.75864 24.6227 6.92099L14.203 10.9654C13.9652 11.0598 13.8091 11.2896 13.8091 11.5454",fill:"#18BFFF"}),(0,n.jsx)("path",{d:"M11.376 12.0232L8.28368 13.5163L7.9697 13.668L1.44194 16.7958C1.02829 16.9954 0.5 16.6939 0.5 16.2342V7.53964C0.5 7.37334 0.585271 7.22976 0.699625 7.12176C0.746538 7.07504 0.799761 7.03512 0.857744 7.00317C1.0136 6.90957 1.2361 6.88458 1.42528 6.9594L11.3241 10.8816C11.8272 11.0812 11.8668 11.7863 11.376 12.0233",fill:"#F82B60"}),(0,n.jsx)("path",{d:"M11.3761 12.0232L8.28376 13.5163L0.699707 7.12162C0.746629 7.07495 0.799852 7.03508 0.857826 7.00317C1.01369 6.90957 1.23618 6.88458 1.42536 6.9594L11.3242 10.8816C11.8273 11.0812 11.8668 11.7863 11.3761 12.0233",fill:"black",fillOpacity:"0.25"})]})},N=function(){return(0,n.jsx)(o,{width:"27",height:"23",viewBox:"0 0 27 23",children:(0,n.jsx)("g",{transform:"translate(0.000000, 1.000000)",fill:"#000000",fillRule:"nonzero",children:(0,n.jsxs)("g",{transform:"translate(13.068421, 10.975000) scale(-1, 1) rotate(-180.000000) translate(-13.068421, -10.975000) translate(0.191579, 0.025000)",children:[(0,n.jsx)("path",{d:"M5.93894737,21.575 C4.05052632,20.8 3.22947368,18.85 4.07789474,17.275 C4.76210526,16.025 5.77473684,15.4 7.08842105,15.375 C9.27789474,15.35 10.8378947,16.675 10.8378947,18.575 C10.8378947,20.925 8.21052632,22.525 5.93894737,21.575 Z"}),(0,n.jsx)("path",{d:"M17.1873684,21.575 C13.6021053,20.125 14.6694737,15.375 18.5831579,15.375 C22.4968421,15.375 23.5094737,20.2 19.8968421,21.575 C18.7747368,22 18.2547368,22 17.1873684,21.575 Z"}),(0,n.jsx)("path",{d:"M0.684210526,10.75 C-0.0821052632,10.475 -0.191578947,9.75 0.355789474,8.275 C1.53263158,5.2 3.83157895,2.75 6.95157895,1.325 C11.9873684,-0.975 17.7894737,-0.2 21.9768421,3.35 C24.3852632,5.375 26.3831579,9.3 25.5621053,10.425 C25.3157895,10.75 23.5915789,10.8 13.1642105,10.85 C6.48631579,10.875 0.875789474,10.825 0.684210526,10.75 Z"})]})})})},M=function(){return(0,n.jsx)(o,{width:"26",height:"26",viewBox:"0 0 26 26",children:(0,n.jsx)("path",{d:"M13 0.5C6.09362 0.5 0.5 6.09362 0.5 13C0.5 18.8745 4.53085 23.75 9.96915 25.1245C9.90638 24.9681 9.87553 24.7489 9.87553 24.5309V22.4053H8.31277C7.46915 22.4053 6.68723 22.0309 6.34362 21.3426C5.93723 20.5926 5.87447 19.4362 4.84362 18.717C4.53085 18.467 4.78085 18.217 5.12447 18.2479C5.78085 18.4351 6.3117 18.8734 6.8117 19.5287C7.3117 20.1851 7.53085 20.3415 8.46809 20.3415C8.90532 20.3415 9.59255 20.3106 10.2181 20.216C10.5617 19.3404 11.1553 18.5596 11.8745 18.1851C7.68723 17.6851 5.68723 15.6223 5.68723 12.8096C5.68723 11.5904 6.21809 10.434 7.09362 9.43404C6.81277 8.46489 6.43723 6.46489 7.21915 5.68404C9.09468 5.68404 10.2191 6.90319 10.5 7.21489C11.4372 6.90213 12.4691 6.71489 13.5309 6.71489C14.6245 6.71489 15.6245 6.90213 16.5617 7.21489C16.8426 6.90213 17.9681 5.68404 19.8426 5.68404C20.5926 6.43404 20.2489 8.46489 19.9362 9.43404C20.8117 10.4032 21.3117 11.5904 21.3117 12.8096C21.3117 15.6223 19.3426 17.6851 15.1872 18.1223C16.3436 18.716 17.1564 20.4032 17.1564 21.6532V24.5C17.1564 24.5936 17.1255 24.6872 17.1255 24.7809C22 23.0936 25.5 18.4691 25.5 13C25.5 6.09362 19.9064 0.5 13 0.5Z",fill:"black"})})},A=function(){return(0,n.jsxs)(o,{width:"18",height:"26",viewBox:"0 0 18 26",children:[(0,n.jsx)("path",{d:"M11.6263 0.414105C10.7779 0.146452 9.86889 0 8.92958 0C6.1874 0 3.73307 1.23726 2.0918 3.18659L6.3086 6.73173L11.6263 0.414105Z",fill:"#1A73E8"}),(0,n.jsx)("path",{d:"M2.09171 3.18652C0.739774 4.79225 -0.000788075 6.82433 0.00097972 8.92339C0.00097972 10.6 0.334284 11.9635 0.88474 13.1806L6.30851 6.73167L2.09171 3.18652Z",fill:"#EA4335"}),(0,n.jsx)("path",{d:"M8.92941 5.5147C10.2585 5.51592 11.4663 6.28799 12.0253 7.49382C12.5843 8.69965 12.3932 10.1203 11.5352 11.1354L16.8479 4.81779C15.7574 2.71683 13.8775 1.13475 11.6211 0.419189L6.31348 6.73682C6.96091 5.96146 7.91929 5.51373 8.92941 5.5147Z",fill:"#4285F4"}),(0,n.jsx)("path",{d:"M8.92951 12.3424C7.04584 12.3424 5.51567 10.8122 5.51567 8.92854C5.51346 8.12649 5.79625 7.34973 6.31358 6.73682L0.884766 13.1857C1.81398 15.2411 3.35425 16.8925 4.93996 18.9731L11.5353 11.1354C10.8868 11.9017 9.93345 12.3433 8.92951 12.3424Z",fill:"#FBBC04"}),(0,n.jsx)("path",{d:"M11.4039 21.1092C14.3834 16.4531 17.8528 14.3371 17.8528 8.92342C17.8528 7.4387 17.4892 6.03983 16.8478 4.80762L4.94482 18.973C5.44983 19.6346 5.95989 20.3366 6.45479 21.1143C8.26271 23.912 7.76276 25.5886 8.92932 25.5886C10.0959 25.5886 9.59593 23.9069 11.4039 21.1092Z",fill:"#34A853"})]})},I=function(){return(0,n.jsx)(o,{width:"25",height:"25",viewBox:"0 0 25 25",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.9778 8.48677L24.9812 8.50448H24.9795C24.981 8.51177 24.9828 8.51846 24.9846 8.52507C24.9868 8.53342 24.9891 8.54166 24.9905 8.55087C24.9963 8.59735 25 8.64384 25 8.6913V16.3088C25 16.3562 24.9967 16.4027 24.9905 16.4491C24.9895 16.4594 24.9874 16.4694 24.9853 16.4794C24.9842 16.4847 24.9831 16.4901 24.9821 16.4956L24.9803 16.5054C24.9753 16.5324 24.9702 16.5594 24.9633 16.5858C24.9598 16.5978 24.9558 16.6097 24.9519 16.6217L24.9465 16.638C24.9381 16.6642 24.9293 16.6905 24.9188 16.7165C24.9132 16.73 24.9069 16.7433 24.9005 16.7565L24.8949 16.7683C24.8835 16.7926 24.8718 16.8164 24.8583 16.84C24.8485 16.8565 24.8381 16.873 24.8276 16.8891C24.8132 16.9114 24.7983 16.9333 24.7821 16.9545C24.7547 16.9915 24.7247 17.0265 24.6923 17.0592L24.6865 17.065C24.6742 17.0772 24.662 17.0896 24.6492 17.101C24.6297 17.1184 24.6092 17.1355 24.5883 17.1521L24.5783 17.1598L24.5781 17.16C24.5654 17.1698 24.5527 17.1795 24.5395 17.1888C24.5334 17.1932 24.528 17.1979 24.5217 17.2018L13.0959 24.819C12.9193 24.9364 12.7121 24.9993 12.5 24.9997C12.2877 25.0007 12.0801 24.9377 11.9041 24.8189L0.481445 17.1978C0.477923 17.1963 0.475228 17.1937 0.472537 17.1911C0.47008 17.1887 0.467627 17.1863 0.464551 17.1848C0.456798 17.1772 0.447635 17.1706 0.438145 17.1637L0.438126 17.1637L0.438104 17.1637C0.43123 17.1588 0.424186 17.1537 0.417383 17.148C0.40696 17.139 0.396327 17.1301 0.385783 17.1213L0.385746 17.1213L0.385702 17.1212L0.385668 17.1212L0.385642 17.1212L0.385624 17.1212L0.385605 17.1212L0.385586 17.1211C0.375846 17.113 0.366184 17.1049 0.356836 17.0969C0.344737 17.0896 0.334513 17.0788 0.324595 17.0684C0.320743 17.0643 0.316937 17.0603 0.313086 17.0565C0.29476 17.0403 0.279484 17.0222 0.264056 17.0039L0.259277 16.9982L0.251552 16.989C0.241181 16.9767 0.231675 16.9653 0.222168 16.9517C0.205371 16.9316 0.189551 16.9114 0.175098 16.8878C0.164941 16.8723 0.154199 16.8555 0.144824 16.8387C0.131348 16.8141 0.118848 16.7905 0.107715 16.767C0.104147 16.758 0.0997313 16.7491 0.0953217 16.7402C0.0914025 16.7323 0.0874883 16.7244 0.0841797 16.7165C0.0740266 16.6919 0.0656302 16.6649 0.0572344 16.638L0.0572326 16.638L0.0572266 16.638C0.0504883 16.6195 0.0451172 16.6026 0.0404297 16.5858C0.0314054 16.5588 0.0266988 16.5319 0.0219938 16.505L0.0219932 16.505L0.0202148 16.4949C0.0189351 16.4887 0.0174958 16.4828 0.0160703 16.4771L0.0160641 16.477C0.0137931 16.4678 0.0115577 16.4588 0.0100586 16.4484C0.00332031 16.4023 0 16.3552 0 16.3081V8.68934C0 8.64188 0.00332031 8.5954 0.009375 8.54901C0.0107369 8.5385 0.0128741 8.5283 0.0150143 8.51808L0.0150157 8.51807L0.0181641 8.50253C0.0235352 8.47186 0.0291992 8.44188 0.0370117 8.41229C0.0399014 8.40274 0.0432541 8.39272 0.0467041 8.38241L0.0535156 8.3618C0.0619141 8.33553 0.0709961 8.30926 0.0814453 8.28368C0.0869893 8.27008 0.0934782 8.25649 0.0999016 8.24303L0.099908 8.24302L0.105371 8.23153C0.116475 8.20746 0.128595 8.18387 0.141699 8.16083C0.149962 8.14629 0.158714 8.13251 0.167541 8.11862L0.172363 8.11102C0.186816 8.08846 0.20166 8.06688 0.217773 8.04569C0.22959 8.0288 0.241797 8.01366 0.254492 7.99852C0.27168 7.97831 0.28916 7.95917 0.308008 7.94022C0.321762 7.92572 0.336029 7.91171 0.350781 7.89823C0.370651 7.88087 0.39097 7.86404 0.411719 7.84774L0.419697 7.84157L0.41971 7.84156C0.433172 7.83114 0.446519 7.82081 0.460547 7.81102C0.463523 7.80899 0.466188 7.80682 0.468818 7.80467L0.468824 7.80467C0.471888 7.80216 0.474906 7.7997 0.47832 7.79755L11.9041 0.180553C12.2648 -0.0601845 12.7349 -0.0601845 13.0956 0.180553L24.5206 7.79774C24.5243 7.80016 24.5278 7.80291 24.5312 7.80565C24.5336 7.80756 24.5359 7.80945 24.5384 7.81122C24.5517 7.82022 24.5643 7.83013 24.577 7.84005L24.5872 7.84803C24.6083 7.86404 24.6286 7.88099 24.6481 7.89882C24.663 7.91258 24.6771 7.92674 24.6913 7.94091C24.7097 7.95966 24.7274 7.97907 24.7444 7.99911C24.7742 8.03448 24.8017 8.07173 24.8267 8.11063L24.8338 8.1218C24.8419 8.13445 24.85 8.14715 24.8572 8.16044C24.8705 8.18367 24.8827 8.20746 24.8939 8.23173L24.8986 8.24146C24.9052 8.25542 24.9118 8.26945 24.9179 8.28387C24.9281 8.30955 24.9373 8.33561 24.9455 8.362L24.9512 8.3791C24.955 8.3907 24.9589 8.40223 24.9623 8.41424C24.9688 8.43814 24.9733 8.46242 24.9778 8.48677ZM8.70039 12.5L12.4997 15.0411L16.2992 12.5L12.4997 9.95848L8.70039 12.5ZM11.4257 8.09237L6.76826 11.2076L3.00879 8.69256L11.4258 3.08143V8.09237H11.4257ZM2.14893 14.2971L4.83613 12.4996L2.14893 10.7022V14.2971ZM6.76826 13.7931L11.4258 16.9079V21.9188L3.00879 16.307L6.76836 13.7924V13.7931H6.76826ZM18.2313 13.7925L13.5739 16.9073V21.9182L21.9912 16.307L18.2313 13.7925ZM20.1635 12.5003L20.1636 12.5002V12.5003H20.1635ZM20.164 12.4999L20.1636 12.4996V12.5002L20.164 12.4999ZM20.164 12.4999L22.8511 14.2977V10.7025L20.164 12.4999ZM13.5739 8.09266L18.2313 11.2075H18.2314L21.9912 8.69266L13.5739 3.08143V8.09266Z",fill:"black"})})}},95220:(e,t,r)=>{r.d(t,{y:()=>Ct,p:()=>Ue});var n=r(67294),o=r(76234),i=r(94184),a=r.n(i),c=r(86013),l=r(10869),s=r(85893);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=(0,n.createContext)();m.displayName="TrixEditorFeatureFlagContext";var p={embeds:!0,videoUpload:!0,fileUploadLink:!0,giphyPicker:!0,mentions:!0},b=function(e){var t=e.value,r=e.children,o=(0,n.useMemo)((function(){return d(d({},p),t)}),[t]),i=(0,n.useCallback)((function(e){if(e in p)return o[e];throw new Error("Wrong feature flag for trix editor: ".concat(e))}),[o]);return(0,s.jsx)(m.Provider,{value:d(d({},o),{},{isTrixFeatureEnabled:i}),children:r})},v=function(){return(0,n.useContext)(m)},h=r(26953),y=r(66154),g=r(64687),j=r.n(g),x=r(96486),C=r(47736),w=r(21439);function O(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function _(e){if(e&&e.includes(" "))return!1;try{var t=new URL(e);return["https:","http:"].includes(t.protocol)}catch(r){return!1}}var k=function(){var e=(0,C.DM)(),t=e.editorElement,r=e.trixApiWrapper,o=!!v().isTrixFeatureEnabled("embeds");return(0,n.useEffect)((function(){if(t&&o){var e=t.editor;document.execCommand("AutoUrlDetect",!1,!1);var n=e.getDocument().toString(),i=e.getDocument().toString(),a=function(){var t,o=(t=j().mark((function t(o){var a,c,l,s,u;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("Enter"===o.key){t.next=2;break}return t.abrupt("return");case 2:if(a=["number","bullet","heading2","heading3","code","strike","href"],!(0,x.reduce)(a,(function(e,t){return e||r.attributeIsActive(t)}),!1)){t.next=6;break}return t.abrupt("return");case 6:if(c=e.getDocument().toString(),l=r.getPosition(),n=i,i=c,n.substring(0,l+1)!==i.substring(0,l+1)){t.next=12;break}return t.abrupt("return");case 12:s=c.substring(0,l).split("\n"),_(u=s[s.length-2])&&(e.setSelectedRange([l-1-u.length,l-1]),e.deleteInDirection("backward"),(0,w.Q)({content:u,trixApiWrapper:r,skipRecordUndoEntry:!0,skipLineBreak:!0}));case 16:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(e){O(i,n,o,a,c,"next",e)}function c(e){O(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}();return t.addEventListener("keyup",a),function(){t&&t.removeEventListener("keyup",a)}}}),[t,o]),null},S=r(31736),P=["show","children","anchorRect"];function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var A=function(e){var t=e.show,r=e.children,n=e.anchorRect,o=M(e,P),i=n||{},a=i.left,c=void 0===a?0:a,l=i.right,u=void 0===l?0:l,d=i.top,f=void 0===d?0:d,m=i.bottom,p=void 0===m?0:m,b={toolbar:E(E({position:"fixed"},{left:c,right:u,top:f,bottom:p}),{},{width:u-c,height:p-f,zIndex:-1})};return(0,s.jsx)(S.ZP,E(E({interactive:!0,animation:"false",duration:0,arrow:!0,delay:0,theme:"light-border",allowHTML:!0},o),{},{appendTo:"parent",visible:t,content:r,children:(0,s.jsx)("button",{type:"submit",style:b.toolbar})}))},I=r(97553),D=r(87360),T=r.n(D),B=r(2822),R=r(22228),Z=[{title:(0,c.t)("trix_editor.actions.h2"),subtitle:(0,c.t)("trix_editor.actions.medium_section_heading"),type:"heading2",icon:(0,s.jsx)(R.Bg,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.h3"),subtitle:(0,c.t)("trix_editor.actions.small_section_heading"),type:"heading3",icon:(0,s.jsx)(R.Bg,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.bulleted_list"),subtitle:(0,c.t)("trix_editor.actions.create_a_simple_bullet_list"),type:"bullet",icon:(0,s.jsx)(R.aV,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.numbered_list"),subtitle:(0,c.t)("trix_editor.actions.create_a_numbered_list"),type:"number",icon:(0,s.jsx)(R.Xt,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.blockquote"),subtitle:(0,c.t)("trix_editor.actions.indent_a_quote"),type:"quote",icon:(0,s.jsx)(R.V6,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.divider"),subtitle:(0,c.t)("trix_editor.actions.add_a_visual_divider"),type:"divider",icon:(0,s.jsx)(R.iz,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.code"),subtitle:(0,c.t)("trix_editor.actions.add_a_block_of_code"),type:"code",icon:(0,s.jsx)(R.EK,{}),subsection:"Basic"},{title:(0,c.t)("trix_editor.actions.mention"),subtitle:(0,c.t)("trix_editor.actions.tag_someone_in_this_post"),type:"mention",icon:(0,s.jsx)(R.pf,{}),subsection:"Inline"},{title:(0,c.t)("trix_editor.actions.emoji"),subtitle:(0,c.t)("trix_editor.actions.place_an_emoji_in_text"),type:"emoji",icon:(0,s.jsx)(R.dy,{}),subsection:"Inline"},{title:(0,c.t)("trix_editor.actions.image"),subtitle:(0,c.t)("trix_editor.actions.upload_or_embed_image"),type:"attachment_image",subtype:"image",icon:(0,s.jsx)(R.Ee,{}),subsection:"Upload"},{title:(0,c.t)("trix_editor.actions.pdf"),subtitle:(0,c.t)("trix_editor.actions.upload_a_pdf_file"),type:"attachment_pdf",subtype:"pdf",icon:(0,s.jsx)(R.Q3,{}),subsection:"Upload"},{title:(0,c.t)("trix_editor.actions.video"),subtitle:(0,c.t)("trix_editor.actions.upload_or_embed_video"),type:"attachment_video",subtype:"video",icon:(0,s.jsx)(R.nk,{}),subsection:"Upload"},{title:(0,c.t)("trix_editor.actions.audio"),subtitle:(0,c.t)("trix_editor.actions.attach_an_audio_file"),type:"attachment_audio",subtype:"audio",icon:(0,s.jsx)(R.Bb,{}),subsection:"Upload"},{title:(0,c.t)("trix_editor.actions.file"),subtitle:(0,c.t)("trix_editor.actions.attach_a_file"),type:"attachment_file",subtype:"file",icon:(0,s.jsx)(R.$B,{}),subsection:"Upload"},{title:(0,c.t)("trix_editor.actions.embed"),subtitle:(0,c.t)("trix_editor.actions.for_embedding_youtube_videos"),type:"embed",subtype:"embed",icon:(0,s.jsx)(R.cx,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.youtube"),subtitle:(0,c.t)("trix_editor.actions.embed_a_video_from_youtube"),type:"embed",subtype:"youtube",icon:(0,s.jsx)(R.hx,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.wistia"),subtitle:(0,c.t)("trix_editor.actions.embed_a_video_from_wistia"),type:"embed",subtype:"wistia",icon:(0,s.jsx)(R.nF,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.vimeo"),subtitle:(0,c.t)("trix_editor.actions.embed_a_video_from_vimeo"),type:"embed",subtype:"vimeo",icon:(0,s.jsx)(R.fG,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.loom"),subtitle:(0,c.t)("trix_editor.actions.embed_a_loom_recording"),type:"embed",subtype:"loom",icon:(0,s.jsx)(R.Hw,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.soundcloud"),subtitle:(0,c.t)("trix_editor.actions.embed_a_soundcloud_link"),type:"embed",subtype:"soundcloud",icon:(0,s.jsx)(R.tV,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.spotify"),subtitle:(0,c.t)("trix_editor.actions.embed_a_spotify_link"),type:"embed",subtype:"spotify",icon:(0,s.jsx)(R.yF,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.simplecast"),subtitle:(0,c.t)("trix_editor.actions.embed_a_simplecast_link"),type:"embed",subtype:"simplecast",icon:(0,s.jsx)(R.uD,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.instagram"),subtitle:(0,c.t)("trix_editor.actions.embed_an_instagram_post"),type:"embed",subtype:"instagram",icon:(0,s.jsx)(R.mr,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.videoask"),subtitle:(0,c.t)("trix_editor.actions.embed_a_video_from_videoask"),type:"embed",subtype:"videoask",icon:(0,s.jsx)(R.oW,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.facebook"),subtitle:(0,c.t)("trix_editor.actions.embed_a_facebook_post"),type:"embed",subtype:"facebook",icon:(0,s.jsx)(R.s1,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.twitter"),subtitle:(0,c.t)("trix_editor.actions.embed_a_tweet"),type:"embed",subtype:"twitter",icon:(0,s.jsx)(R.tL,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.typeform"),subtitle:(0,c.t)("trix_editor.actions.embed_a_typeform"),type:"embed",subtype:"typeform",icon:(0,s.jsx)(R.eC,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.airtable"),subtitle:(0,c.t)("trix_editor.actions.embed_an_airtable"),type:"embed",subtype:"airtable",icon:(0,s.jsx)(R.B7,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.github"),subtitle:(0,c.t)("trix_editor.actions.embed_a_gist"),type:"embed",subtype:"github",icon:(0,s.jsx)(R.Ey,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.google_maps"),subtitle:(0,c.t)("trix_editor.actions.embed_a_google_map"),type:"embed",subtype:"googlemaps",icon:(0,s.jsx)(R.mE,{}),subsection:"Embed"},{title:(0,c.t)("trix_editor.actions.codepen"),subtitle:(0,c.t)("trix_editor.actions.embed_a_codepen"),type:"embed",subtype:"codepen",icon:(0,s.jsx)(R.Z8,{}),subsection:"Embed"}],V=function(e){var t=e.onSelect,r=e.searchQuery,n=void 0===r?"":r;n=n||"";var o=function(e){return Z.filter((function(t){var r;return"embed"===t.type?e.embeds:"attachment_video"===t.type?e.videoUpload:"mention"===t.type?e.mentions:"attachment_image"===t.type||"upload"!==(null===(r=t.subsection)||void 0===r?void 0:r.toLowerCase())||e.fileUploadLink}))}(v());n.length&&(o=T().go(n,o,{keys:["title","subtitle","subsection"]}).map((function(e){return e.obj})));var i=(0,x.uniq)(o.map((function(e){return e.subsection}))),a=(0,x.sortBy)(o,(function(e){return i.indexOf(e.subsection)}));return(0,s.jsx)(B.Q,{getKey:function(e){return e.type},getItemContent:function(e){return(0,s.jsx)(H,{action:e})},subsectionKey:"subsection",items:a,onSelect:t,disableHorizontalArrowKeys:!0,loading:!1})},H=function(e){var t=e.action,r=t.icon,n=t.title,o=t.subtitle;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"trix__dropdown--preview",children:(0,s.jsx)("span",{children:r})}),(0,s.jsxs)("div",{className:"trix__dropdown--textbox",children:[(0,s.jsx)("div",{className:"trix__dropdown--title",children:n}),(0,s.jsx)("div",{className:"trix__dropdown--subtitle",children:o})]})]})};function z(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var U=function(){var e=(0,I.Xz)(),t=e.startPosition,r=e.resetEditorMode,n=e.showInlineBlockSelector,o=e.setModeInlineModalSelector,i=e.setSubTypeInlineModalSelector,a=e.triggerInlineEmojiSelector,c=(0,C.DM)(),l=c.setSelectedRange,s=c.deleteInDirection,u=c.recordUndoEntry,d=c.getPosition,f=c.insertString,m=c.insertHr,p=c.activateAttribute,b=c.insertLineBreak,v=function(){var e,c=(e=j().mark((function e(c,v){var h,y,g;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=c.type,y=c.subtype,v.preventDefault(),v.stopPropagation(),g=d(),l([t,g]),n()&&t!==g&&s("forward"),u("Trigger ".concat(h)),e.next=9,r();case 9:if("upload"!==(0,x.find)(Z,(function(e){return e.type===h})).subsection.toLowerCase()&&"embed"!==h){e.next=14;break}return o(h),i(y),e.abrupt("return");case 14:e.t0=h,e.next="mention"===e.t0?17:"emoji"===e.t0?19:"divider"===e.t0?21:24;break;case 17:return f("@"),e.abrupt("break",25);case 19:return a(),e.abrupt("break",25);case 21:return m(),b(),e.abrupt("break",25);case 24:p(h);case 25:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){z(i,n,o,a,c,"next",e)}function c(e){z(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,t){return c.apply(this,arguments)}}();return{eventHandler:v}},F=function(){var e=(0,I.Xz)(),t=e.subMode,r=e.showInlineBlockSelector,n=e.startPositionRect,o=e.startPosition,i=r(),a=(0,C.DM)(),c=a.getStringInRange,l=a.getPosition,u=U().eventHandler;if(!i)return null;var d=n(),f=c([o+("withPrefix"===t?1:0),l()]);if(!d)return null;var m=d.top,p=void 0===m?0:m,b=d.bottom,v=void 0===b?0:b,h=d.left,y=void 0===h?0:h,g=d.right,j={top:p-10,bottom:v+10,left:y,right:void 0===g?0:g};return(0,s.jsx)("div",{className:"inline-block-selector",children:(0,s.jsx)("div",{className:"trix__dropdown--wrap",children:(0,s.jsx)(A,{show:!0,anchorRect:j,placement:"bottom-start",children:(0,s.jsx)("div",{style:{width:300},children:(0,s.jsx)(V,{searchQuery:f,onSelect:u})})})})})},q=r(78270),W=function(){var e=(0,I.Xz)(),t=e.showModalBlockSelector,r=e.resetEditorMode,n=U().eventHandler,o=t();return o?(0,s.jsx)(q.u,{variant:"large",title:(0,c.t)("power_actions"),show:o,onClose:r,className:"fullpage-modal__block-selector",children:(0,s.jsx)(V,{onSelect:n})}):null},G=["variant"];function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Q=function(e){var t=e.variant,r=K(e,G);return"inline"===t?(0,s.jsx)(F,X({},r)):"modal"===t?(0,s.jsx)(W,X({},r)):(console.error("BlockSelector: Wrong value for variant = ",t),null)},Y=function(){var e=(0,I.Xz)(),t=e.showHyperlinkTooltip,r=e.startPosition,n=(0,C.DM)().trixApiWrapper;if(!t())return null;var o=n.getClientRectAtPosition(r),i=n.getHrefAtPosition(r);return(0,s.jsx)(A,{show:!0,anchorRect:o,children:(0,s.jsx)("div",{className:"inline-toolbar",children:(0,s.jsx)("a",{href:i,target:"_blank",className:"inline-toolbar__hyperlink-tooltip",rel:"noreferrer",children:i})})})},ee=r(39816),te=r(10546),re=r(40174);function ne(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function oe(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ne(i,n,o,a,c,"next",e)}function c(e){ne(i,n,o,a,c,"throw",e)}a(void 0)}))}}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ce=function(e){var t,r=e.rect,o=e.query,i=e.onEmojiSelect,a=ie((0,n.useState)([]),2),c=a[0],l=a[1],u=ie((0,n.useState)(!0),2),d=u[0],f=u[1];if((0,te.M)({options:{onSuccess:(t=oe(j().mark((function e(t){return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,re.S)();case 2:(0,e.sent.init)({data:t});case 5:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}}),(0,n.useEffect)((function(){var e=function(){var e=oe(j().mark((function e(){var t,r,n,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,re.S)();case 2:return t=e.sent,r=t.SearchIndex,e.next=6,r.search(o);case 6:n=e.sent,i=n.map((function(e){return{native:e.skins[0].native,colons:e.skins[0].shortcodes}})),l(i),f(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();r&&o&&e()}),[r,o]),!r||d)return null;var m=r.top,p={container:{position:"fixed",left:r.left,top:m+30,zIndex:1e3,width:292}};return(0,s.jsx)("div",{style:p.container,children:(0,s.jsx)(B.Q,{getKey:function(e){return e.colons},getItemContent:function(e){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"emoji-item__native",children:e.native}),(0,s.jsx)("span",{className:"emoji-item__colons",children:e.colons})]})},items:c,onSelect:i,disableHorizontalArrowKeys:!0})})},le=function(){var e=(0,I.Xz)(),t=e.showInlineEmojiSelector,r=e.startPosition,n=e.resetEditorMode,o=e.startPositionRect,i=t(),a=(0,C.DM)(),c=a.insertString,l=a.setSelectedRange,u=a.getStringInRange,d=a.getPosition;if((0,ee.a)(i),!i)return null;var f=o(),m=d(),p=u([r+1,m]);if(!p||p.length<1)return null;return(0,s.jsx)("div",{className:"inline-emoji-selector",children:(0,s.jsx)(ce,{rect:f,query:p,onEmojiSelect:function(e){if(e){var t=d();l([r,t]),c(e.native)}n()}})})},se=r(18009);function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return de(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return de(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fe=function(){var e=(0,I.Xz)(),t=e.toggleOffInlineLinkForm,r=e.showInlineLinkForm,o=e.startPositionRect,i=e.endPositionRect,l=e.resetEditorMode,u=(0,C.DM)().trixApiWrapper,d=u.getHrefAtCurrentPosition()||"",f=ue((0,n.useState)(d),2),m=f[0],p=f[1],b=r(),v=Boolean(u.attributeIsActive("href")),y=(0,se.k)([b]),g=(0,n.useRef)(null),j=(0,h.kK)();return b?(0,s.jsx)(me,{smScreen:j,startPositionRect:o,endPositionRect:i,resetEditorMode:l,children:(0,s.jsx)("div",{ref:g,className:a()("link-form",{"link-form--active":v}),children:(0,s.jsxs)("form",{onSubmit:function(e){e.preventDefault()},children:[(0,s.jsx)("input",{ref:y,className:"form-control placeholder:text-light placeholder:opacity-100",type:"text",placeholder:(0,c.t)("paste_link"),value:m,onChange:function(e){return p(e.target.value)}}),!v&&(0,s.jsx)("button",{type:"submit",className:"btn btn-primary btn-link-toolbar",onClick:function(e){if(e.preventDefault(),m){var r=m;t(!1),u.recordUndoEntry(),r.match(/^(https?:\/\/|mailto:)/i)||(r="http://"+r),u.activateAttribute("href",r),p("")}},children:(0,c.t)("link")}),v&&(0,s.jsx)("button",{type:"submit",className:"btn btn-primary btn-link-toolbar",onClick:function(e){e.preventDefault(),m&&(t(!0),u.recordUndoEntry(),u.deactivateAttribute("href",m))},children:(0,c.t)("unlink")})]})})}):null},me=function(e){var t=e.children,r=e.smScreen,n=e.resetEditorMode,o=e.endPositionRect,i=e.startPositionRect;if(r)return(0,s.jsx)(q.u,{variant:"large",show:!0,title:(0,c.t)("add_a_link"),onClose:n,children:t});var a=i()||{},l=a.top,u=a.left,d=o()||{},f=d.bottom,m=d.right;return(0,s.jsx)("div",{className:"link-form__wrap",children:(0,s.jsx)(A,{show:!0,anchorRect:{top:l,bottom:f,left:u,right:m},children:t})})},pe=r(10178),be=r(14052),ve=function(e){var t=e.active,r=e.action,n=e.onClick;return(0,s.jsx)("button",{type:"button",className:a()("toolbar-action-btn",{active:t}),onClick:function(e){e.stopPropagation(),e.preventDefault(),n(null===r||void 0===r?void 0:r.attribute,null===r||void 0===r?void 0:r.options)},children:null===r||void 0===r?void 0:r.label})},he=function(){var e=(0,I.Xz)(),t=e.showInlineToolbar,r=e.toggleOnInlineLinkForm,n=e.showInlineLinkForm,o=e.startPositionRect,i=e.endPositionRect,a=(0,C.DM)().trixApiWrapper;if(!(t()&&!n()))return null;var c=function(e,t){a.attributeIsActive(e)?(a.recordUndoEntry("Unmarking as ".concat(e)),a.deactivateAttribute(e)):"href"===e?r():(a.recordUndoEntry("Marking as ".concat(e)),a.activateAttribute(e,t))},l=o()||{},u=l.top,d=l.left,f=i()||{},m=f.bottom,p=f.right;return(0,s.jsx)(A,{show:!0,anchorRect:{top:u,bottom:m,left:d,right:p},children:(0,s.jsx)("div",{className:"inline-toolbar",children:be.io.map((function(e){return(0,s.jsx)(ve,{action:e,onClick:c,active:a.attributeIsActive(e.attribute)},e.attribute)}))})})},ye=r(85518),ge=r(30887),je=function(){var e=(0,I.Xz)().toggleOnInlineLinkForm;return(0,s.jsx)("button",{type:"button",onClick:function(){e()},className:"toolbar__btn","data-trix-attribute":"href","data-trix-action":"link","data-trix-key":"k","aria-label":(0,c.t)("link"),children:(0,s.jsx)(ge.JO,{type:"link",size:20})})},xe=function(){var e=(0,I.Xz)(),t=e.setModeModalBlockSelector,r=e.setModeInlineBlockSelector,n=e.showInlineBlockSelector,o=(0,C.DM)(),i=o.setSelectedRange,a=o.getPosition,l=(0,h.Be)();return(0,s.jsx)("button",{type:"button",className:"toolbar__btn",onClick:function(){if(l){if(!n()){var e=a();i([e,e]),r({withPrefix:!1})}}else t()},"aria-label":(0,c.t)("trix_editor.actions.add_a_block_of_code"),children:(0,s.jsx)(ge.JO,{type:"block-menu-btn",size:20})})},Ce=r(41522),we=function(){var e=(0,C.DM)(),t=e.trixApiWrapper,r=e.editorElement,n=(0,I.Xz)(),o=n.resetEditorMode,i=n.setModeEmojiPicker;return(0,s.jsx)(Ce.c,{onEmojiSelect:function(e){i(),t.recordUndoEntry("Insert emoji"),t.insertString(e.emoji),o(),r.setSelectedRange(-1)},target:(0,s.jsx)("button",{type:"button",className:"toolbar__btn toolbar__btn--emoji","aria-label":(0,c.t)("trix_editor.toolbar.emojis"),children:(0,s.jsx)(ge.JO,{type:"emoji"})})})},Oe=r(88959),_e=function(){return(0,s.jsx)(Oe.d,{children:(0,s.jsx)("button",{type:"submit",className:"toolbar__btn toolbar__btn--file",children:(0,s.jsx)(ge.JO,{type:"toolbar-file",size:20})})})},ke=r(58533),Se=r(26047),Pe=function(e){var t=e.width,r=e.gif,n=e.onGifClick;return(0,s.jsx)("a",{href:"#insert",onClick:function(e){return n(r,e)},children:(0,s.jsx)("img",{loading:"lazy",alt:"",width:t,src:r.images.preview_gif.url})})},Le=r(57169);function Ee(e){return function(e){if(Array.isArray(e))return De(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function Me(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ne(i,n,o,a,c,"next",e)}function c(e){Ne(i,n,o,a,c,"throw",e)}a(void 0)}))}}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||Ie(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){if(e){if("string"===typeof e)return De(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(e,t):void 0}}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Te=function(e){var t=e.show,r=e.onClose,o=Ae((0,n.useState)([]),2),i=o[0],a=o[1],l=Ae((0,n.useState)(""),2),u=l[0],d=l[1],f=(0,h.Be)(),m=function(){var e=Me(j().mark((function e(){var t,r,n=arguments;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=n.length>0&&void 0!==n[0]?n[0]:null)&&(t=10*i.length),r=[],!u){e.next=9;break}return e.next=6,Se.y(u,{offset:t,limit:10});case 6:r=e.sent.data,e.next=12;break;case 9:return e.next=11,Se.q({offset:t,limit:10});case 11:r=e.sent.data;case 12:a([].concat(Ee(i),Ee(r)));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=(0,C.DM)().trixApiWrapper,b=function(){var e=Me(j().mark((function e(t,n){var o,i,a,c,l;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),r(),e.next=4,fetch(t.images.original.url);case 4:return o=e.sent,i=".gif",a="image/gif","video"===t.type&&(i=".mp4",a="video/mp4"),e.next=10,o.blob();case 10:c=e.sent,l=new File([c],"".concat(t.id).concat(i),{type:a}),p.insertFile(l);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),v=(0,se.k)([t]);if((0,n.useEffect)((function(){i.length||m()}),[i]),(0,ee.a)(t&&f),!t)return null;return(0,s.jsx)("div",{className:"inline-toolbar",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("input",{ref:v,type:"text",placeholder:(0,c.t)("trix_editor.toolbar.search_giphy"),onChange:function(e){d(e.target.value),a([])},value:u,style:{width:"100%"},className:"giphy-input placeholder:text-light placeholder:opacity-100"}),(0,s.jsx)(ke.Z,{dataLength:i.length,next:m,hasMore:!0,loader:(0,s.jsx)(ge.JO,{type:"loader"}),height:300,style:{width:300},className:"giphy-grid",children:i.map((function(e){return(0,s.jsx)(Pe,{hideAttribution:!0,noLink:!1,gif:e,width:150,onGifClick:b},e.id)}))}),(0,s.jsx)("img",{loading:"lazy",src:Le,className:"giphy-logo",alt:""})]})})},Be=function(e){var t=e.onClick;return(0,s.jsx)("button",{type:"button",onClick:t,className:"toolbar__btn toolbar__gif","aria-label":(0,c.t)("trix_editor.toolbar.gifs"),children:(0,s.jsx)(ge.JO,{type:"toolbar-gif",size:20})})},Re=function(){var e=(0,I.Xz)(),t=e.setModeGiphyPicker,r=e.showGiphyPicker,n=e.resetEditorMode,o=r(),i=function(e){e.preventDefault(),o?n():t()},a=(0,h.Be)();return(0,s.jsxs)(s.Fragment,{children:[!a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(q.u,{variant:"large",className:"fullpage-modal__gif",title:(0,c.t)("trix_editor.toolbar.gifs"),show:o,onClose:n,children:(0,s.jsx)(Te,{show:o,onClose:n})}),(0,s.jsx)(Be,{onClick:i})]}),a&&(0,s.jsx)(S.ZP,{content:(0,s.jsx)(Te,{show:o,onClose:n}),visible:o,allowHTML:!0,interactive:!0,animation:"false",duration:0,arrow:!0,delay:0,theme:"light-border",appendTo:"parent",children:(0,s.jsx)("div",{children:(0,s.jsx)(Be,{onClick:i})})})]})},Ze=function(e){var t=e.attribute,r=e.subtype,n=(0,I.Xz)(),o=n.setModeInlineModalSelector,i=n.setSubTypeInlineModalSelector,a=function(){o(t),i(r)};return(0,s.jsxs)(s.Fragment,{children:["image"===r&&(0,s.jsx)("button",{type:"button","aria-label":(0,c.t)("trix_editor.toolbar.image"),className:"toolbar__btn",onClick:a,children:(0,s.jsx)(ge.JO,{type:"toolbar-image",size:20})}),"video"===r&&(0,s.jsx)("button",{type:"button","aria-label":(0,c.t)("trix_editor.toolbar.video"),className:"toolbar__btn",onClick:a,children:(0,s.jsx)(ge.JO,{type:"toolbar-video",size:20})})]})},Ve=function(){var e=(0,h.a7)(),t=(0,h.kK)(),r=v().isTrixFeatureEnabled,n=r("videoUpload"),o=r("fileUploadLink"),i=r("giphyPicker");return(0,s.jsxs)("div",{className:"toolbar",children:[(0,s.jsx)(xe,{}),t&&(0,s.jsx)(je,{}),n&&e&&(0,s.jsx)(Ze,{attribute:"attachment_video",subtype:"video"}),(0,s.jsx)(Ze,{attribute:"attachment_image",subtype:"image"}),i&&(0,s.jsx)(Re,{}),(0,s.jsx)(ye.I3,{children:(0,s.jsx)(we,{})}),o&&(0,s.jsx)(_e,{})]})},He=r(22837),ze=function(){He.default.config.blockAttributes.heading2={tagName:"h2",terminal:!0,breakOnReturn:!0,group:!1},He.default.config.blockAttributes.heading3={tagName:"h3",terminal:!0,breakOnReturn:!0,group:!1},He.default.config.blockAttributes.quote={tagName:"blockquote",nestable:!0,terminal:!0,breakOnReturn:!0}},Ue=function(e){return"object"===typeof e&&null!==e&&"editorRef"in e&&"focus"in e&&"function"===typeof e.focus&&"insertMention"in e&&"function"===typeof e.insertMention&&"shouldInsert"in e&&"function"===typeof e.shouldInsert&&"removeMentions"in e&&"function"===typeof e.removeMentions},Fe=r(77529),qe=r(41431),We=document.documentElement,Ge=We.matches,Je=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.matchingSelector,n=t.untilNode;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentNode;if(null!=e){if(null==r)return e;if(e.closest&&null==n)return e.closest(r);for(;e&&e!==n;){if(Xe(e,r))return e;e=e.parentNode}}},Xe=function(e,t){if(1===(null===e||void 0===e?void 0:e.nodeType))return Ge.call(e,t)};function $e(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}var Ke=function(e){(0,n.useEffect)((function(){if(e.current){var t=new qe.f(e.current.editor);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.onElement,n=t.matchingSelector,o=t.withCallback,i=t.inPhase,a=t.preventDefault,c=t.times,l=r||We,s=n,u="capturing"===i,d=function e(t){null!=c&&0===--c&&e.destroy();var r=Je(t.target,{matchingSelector:s});null!=r&&(null===o||void 0===o||o.call(r,t,r),a&&t.preventDefault())};d.destroy=function(){return l.removeEventListener(e,d,u)},l.addEventListener(e,d,u)}("mousedown",{onElement:e.current,matchingSelector:"[data-trix-attachment]",withCallback:function(r){r.preventDefault();var n=r.target,o=t.getClosestAttachment(n),i=n.closest(".editor-overlay");if(n.classList.contains("editor-overlay")||i)t.editAttachment(o);else{var a=t.getPosition();t.setSelectedRange([a,a]),t.stopEditingAttachment(o),e.current.editorController.compositionDidStopEditingAttachment(o)}}})}}),[e]),(0,n.useEffect)((function(){if(e.current){var t=new qe.f(e.current.editor),r=function(e){o(e),n(e)},n=function(){var e,r=(e=j().mark((function e(r){var n,o,i,a;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=r.target.closest('[data-actionType="update-alignment"]'))){e.next=15;break}return r.preventDefault(),r.stopPropagation(),o=t.getClosestAttachment(n),t.editAttachment(o),e.next=8,fetch((0,Fe.Wt)(o.getAttribute("sgid")),{body:JSON.stringify({attachment_property:{alignment:n.dataset.value}}),method:"PATCH",dataType:"script",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"}});case 8:return i=e.sent,e.next=11,i.json();case 11:a=e.sent,o.setAttributes({content:a.content}),t.stopEditingAttachment(o),t.editAttachment(o);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){$e(i,n,o,a,c,"next",e)}function c(e){$e(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}(),o=function(e){var r=e.target.closest('[data-actionType="remove-attachment"]');if(r){e.preventDefault(),e.stopPropagation(),t.recordUndoEntry("remove attachment");var n=t.getClosestAttachment(r);t.removeAttachmentById(n.id)}};return e.current.addEventListener("click",r),function(){e.current.removeEventListener("click",r)}}}),[e])},Qe=r(79292);function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){return void r(s)}c.done?t(l):Promise.resolve(l).then(n,o)}function nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){rt(i,n,o,a,c,"next",e)}function c(e){rt(i,n,o,a,c,"throw",e)}a(void 0)}))}}function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var it=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.file=t.file,this.editor=r.editor,this.editorElement=r,this.afterCompleteCallback=n,this.attachment=t,this.attachment.setAttributes({content:this.progressContent(),contentType:"custom-progress"}),this.directUpload=new Qe.DirectUpload(this.file,Fe.av.actionTextDirectUpload.create({params:{new_editor:!0}}),this)}var t,r,n,o,i;return t=e,r=[{key:"start",value:function(){this.directUpload.create(this.directUploadDidComplete.bind(this))}},{key:"directUploadWillStoreFileWithXHR",value:function(e){var t=this;e.upload.addEventListener("progress",(function(e){var r=e.loaded/e.total*100;t.attachment.setAttributes({content:t.progressContent(r)})}))}},{key:"directUploadDidComplete",value:(i=nt(j().mark((function e(t,r){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=3;break}throw this.afterCompleteCallback&&this.afterCompleteCallback(),new Error("Direct upload failed: ".concat(t));case 3:return e.next=5,this.getAttachmentContent(r.attachable_sgid);case 5:n=e.sent,this.attachment.setAttributes(et(et({},r),{},{sgid:r.attachable_sgid,url:this.createBlobUrl(r.signed_id,r.filename),content:n,contentType:r.content_type})),this.afterCompleteCallback&&this.afterCompleteCallback();case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"getAttachmentContent",value:(o=nt(j().mark((function e(t){var r;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch((0,Fe.mb)(t));case 2:return r=e.sent,e.next=5,r.text();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"createBlobUrl",value:function(e,t){return(0,Fe.Gd)({signed_id:e,filename:t})}},{key:"progressContent",value:function(){return function(e,t){return'\n  <div class="progress-card">\n    <div class="editor-overlay">\n      <div class="overlay-editor-actions">\n        <a href="#remove-attachment" data-actionType="remove-attachment" class="close-btn">\n          <div class="close-btn__caret"></div>\n          <svg class="icon icon-close icon--lg" viewBox="0 0 24 24">\n            <use xlink:href="#icon-close" />\n          </svg>\n        </a>\n      </div>\n    </div>\n    <span class="progress-card__filename">'.concat(t,'</span>\n    <span class="progress-card__amount">').concat(e,' %</span>\n    <div class="attachment__upload progress-bar">\n      <div class="progress-bar__line" style="width:').concat(e,'%;"></div>\n    </div>\n  </div>\n')}(parseInt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),this.file.name)}}],r&&ot(t.prototype,r),n&&ot(t,n),e}();it.createFromFile=function(e,t,r){var n=He.default.Attachment.attachmentForFile(e);return new it(n,t,r)};function at(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ct(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lt(e){return function(e){if(Array.isArray(e))return st(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return st(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return st(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ut=r(66577),dt=r.n(ut),ft="mention",mt=function(e){var t=e.id,r=e.public_uid,n=e.name,o=(0,Fe.zd)({public_uid:r,params:{show_back_link:!0}}),i=document.createElement("a");i.className="mention__name",i.setAttribute("role","button"),i.setAttribute("href",o),i.textContent=n;var a=document.createElement("span");return a.className="mention user_mention_".concat(t),a.appendChild(i),a.outerHTML};function pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return jt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}ze();var xt=function(e){var t,r,i=e.id,u=e.name,d=e.dataIsPrivateSpace,f=e.dataSpaceId,m=e.placeholder,p=e.preventAccidentalLeave,b=void 0===p||p,g=e.tabIndex,j=e.className,w=void 0===j?"":j,O=e.toolbarPortalId,_=e.forwardedRef,S=e.editorContainerClassName,P=void 0===S?"":S,L=(0,n.useRef)(null),E=gt((0,n.useState)(null),2),N=E[0],M=E[1],A=gt((0,n.useState)(m),2),D=A[0],T=A[1],B=(0,n.useRef)(null),R=(0,c.t)("post_editor_placeholder"),Z=(0,c.t)("post_editor_placeholder_mobile"),V=(0,I.w2)(L.current),H=e.hasOwnProperty("value");if(H)t=e.value,(r=e.onChange)||console.error("value provided without onChange");else{var z=(0,n.useState)(e.defaultValue||""),U=z[1];t=z[0],r=function(e){U(e.target.innerHTML)}}var F=function(e,t){return(0,n.useEffect)((function(){var r=e.current;if(r){var n=function(t){var r=t.detail.item.original,n=e.current,o=new He.default.Attachment({content:r.content,contentType:ft,sgid:r.sgid});n.editor.insertAttachment(o),n.editor.insertString(" ")},o=new(dt())({allowSpaces:!0,lookup:"just_name",values:function(e,r){var n={query:e,is_private_space:!!t.is_private_space};t.space_id&&(n.space_id=t.space_id),fetch(Fe.t1.index({params:n})).then((function(e){return e.json()})).then((function(e){return r(e)})).catch((function(){return r([])}))},menuItemTemplate:function(e){return e.original.name}});return o.attach(r),r.addEventListener("tribute-replaced",n),o.range.pasteHtml=function(e,t,n){var o=r.editor.getPosition();r.editor.setSelectedRange([o-n,o]),r.editor.deleteInDirection("backward")},function(){o.detach(r),r.removeEventListener("tribute-replaced",n)}}}),[e,t.is_private_space,t.space_id]),{insertMention:function(t){var r,n=e.current,o=new He.default.Attachment({content:null!==(r=t.content)&&void 0!==r?r:mt(t),contentType:ft,sgid:t.sgid,name:t.name});n.editor.insertAttachment(o),n.editor.insertString(" ")},shouldInsert:function(t){var r=e.current.editor.composition.attachments;return 0==r.length&&""==e.current.innerText.trim()||1==r.length&&r[0].attributes.values.sgid!=t&&e.current.innerText.trim()==r[0].attributes.values.name},removeMentions:function(){var t=e.current.editor.composition;t.attachments.filter((function(e){return e.attributes.values.contentType===ft})).forEach((function(e){return t.removeAttachment(e)}))}}}(L,e),q=F.insertMention,W=F.shouldInsert,G=F.removeMentions;(0,n.useEffect)((function(){L.current&&_&&(_.current={editorRef:L,focus:function(){L.current&&L.current.focus()},insertMention:q,shouldInsert:W,removeMentions:G})}),[L.current,_,q,W,G]),function(e){var t=v().isTrixFeatureEnabled;(0,n.useEffect)((function(){if(e.current){var r=function(e){e.file?e.file.type.startsWith("video")?t("videoUpload")||(e.preventDefault(),console.error("Video upload is disabled!")):e.file.type.startsWith("image")||t("fileUploadLink")||(e.preventDefault(),console.error("File upload is disabled!")):e.preventDefault()},n=e.current;return n.addEventListener("trix-file-accept",r),function(){return n.removeEventListener("trix-file-accept",r)}}}),[e,t]),(0,n.useEffect)((function(){if(e.current){var t=e.current,r=function(e){var r=e.attachment;e.preventDefault(),r.file&&new it(r,t,x.noop).start()};return t.addEventListener("trix-attachment-add",r),function(){return t.removeEventListener("trix-attachment-add",r)}}}),[e])}(L);var J=(0,h.Be)();!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;(0,n.useEffect)((function(){var r=function(r){e&&(o||function(){return document.contains(r.target)&&!e.contains(r.target)})(r)&&t(r)};return window.addEventListener("mousedown",r),function(){return window.removeEventListener("mousedown",r)}}),[t,e].concat(lt(r)))}(B.current,V.resetEditorMode,[],(function(e){var t,r,n=V.showInlineLinkForm,o=V.showInlineModalSelector,i=n()||o();if(!J||i)return!1;if(O){var a=document.getElementById(O);if(null!==a&&void 0!==a&&a.contains(e.target))return!1}return document.contains(e.target)&&(!(null!==(t=B.current)&&void 0!==t&&t.contains(e.target))||(null===(r=L.current)||void 0===r?void 0:r.contains(e.target)))})),(0,n.useEffect)((function(){m||T(J?R:Z)}),[m,J]),(0,n.useEffect)((function(){M(L.current)}),[L]),(0,n.useEffect)((function(){if(L.current&&"toolbarElement"in L.current){var e=L.current.toolbarElement;e.parentNode.removeChild(e)}}),[L]);b&&function(e,t){var r=pt((0,n.useState)(e),2),o=r[0],i=r[1],a=o!==e;(0,n.useEffect)((function(){i(e)}),[]),(0,n.useEffect)((function(){var r=t(),n="Are you sure you want to leave?",o=function(e){a&&(e.preventDefault(),e.returnValue=n)},c=function(e){a&&!confirm(n)&&e.preventDefault()},l=function(){i(e)};return r&&r.addEventListener("submit",l),window.addEventListener("beforeunload",o),document.addEventListener("turbolinks:before-visit",c),function(){r&&r.removeEventListener("submit",l),window.removeEventListener("beforeunload",o),document.removeEventListener("turbolinks:before-visit",c)}}),[a,e,i,t])}(t,(function(){return null===N||void 0===N?void 0:N.closest("form")})),Ke(L),(0,n.useEffect)((function(){if(N)return N.addEventListener("trix-change",r),function(){N.removeEventListener("trix-change",r)}}),[N,H?r:null]);var X=function(e,t){var r=at((0,n.useState)(!1),2),o=r[0],i=r[1];return(0,n.useEffect)((function(){if(e.current&&t.current){var r=function(){for(var r=e.current.children,n=0,o=0;o<r.length;o++)n=Math.max(n,r[o].scrollWidth);i(n>=t.current.scrollWidth-255)};return e.current.addEventListener("trix-change",r),function(){e.current&&e.current.removeEventListener("trix-change",r)}}}),[e,t]),o}(L,B),$=(0,n.useMemo)((function(){return t&&(0,l.ND)(t)}),[t]);return(0,s.jsx)(C.DE.Provider,{value:N,children:(0,s.jsx)(I.P6.Provider,{value:V,children:(0,s.jsxs)("div",{className:a()("react-trix-editor-container",P),ref:B,children:[(0,s.jsxs)(y.If,{condition:!!N,children:[(0,s.jsx)(he,{}),(0,s.jsx)(fe,{}),(0,s.jsx)(le,{}),(0,s.jsx)(k,{}),(0,s.jsx)(pe.QE,{}),(0,s.jsx)(Q,{variant:"inline"}),(0,s.jsx)(Q,{variant:"modal"}),(0,s.jsx)(Y,{})]}),(0,s.jsxs)("div",{className:a()("trix-editor-textbox","form-control",w,{expanded:X}),children:[(0,s.jsx)("input",{type:"hidden",id:i,name:u,value:$}),(0,s.jsx)("trix-editor",{ref:L,input:i,placeholder:D,"data-is-private-space":d,"data-space-id":f,tabIndex:g||""})]}),(0,s.jsx)(y.If,{condition:!!N,children:(0,s.jsx)(o.Z,{container:function(){return O?document.getElementById(O):document.body},disablePortal:!O,children:(0,s.jsx)("div",{className:a()("comment-box__bar",{expanded:X}),children:(0,s.jsx)(Ve,{})})})})]})})})},Ct=(0,n.forwardRef)((function(e,t){return(0,s.jsx)(b,{value:e.featureFlags,children:(0,s.jsx)(xt,ht(ht({},e),{},{forwardedRef:t}))})}));Ct.displayName="TrixEditor"},39816:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(67294),o=function(e){(0,n.useEffect)((function(){if(e){document.body.classList.add("disable-scroll");var t=parseInt(document.body.dataset.disableScrollCounter,10)||1;t+=1,document.body.dataset.disableScrollCounter=t.toString()}else{var r=parseInt(document.body.dataset.disableScrollCounter,10)||1;(r-=1)<=0&&document.body.classList.remove("disable-scroll"),document.body.dataset.disableScrollCounter=Math.max(r,0).toString()}return function(){document.body.classList.remove("disable-scroll")}}),[e])}},73105:(e,t,r)=>{r.d(t,{v:()=>u});var n=r(94184),o=r.n(n),i=r(96486),a=r(28175),c=r(38870),l=r(54719),s=r(85893),u=function(e){var t=e.users,r=void 0===t?[]:t,n=e.totalCount,u=e.size,d=void 0===u?"lg":u,f=e.isLoading,m=n||r.length,p=(0,a.I)().isV3Enabled;if(f)return(0,s.jsx)(l.gi,{variant:"members-avatar-row"});if(null===r||void 0===r||!r.length)return null;return(0,s.jsxs)("div",{className:o()("avatar-group border-tertiary rounded-md",{"avatar-group--lg":"lg"===d,"avatar-group--md":"md"===d,"avatar-group--sm":"sm"===d}),children:[r.map((function(e){return(0,s.jsx)(c.s,{src:e.avatar_url,name:e.name,size:"8",hasBorder:!0},function(e){return e.id||"user-group-image-".concat(e.name.replace(/ /g,""),"-").concat(Math.random())}(e))})),r.length<m&&(0,s.jsx)("div",{className:o()("bg-secondary text-default z-30 flex max-h-[36px] min-w-[36px] items-center justify-center border-2 border-inherit p-1 text-xs font-medium",p?"rounded-full":"rounded-[5px]"),children:"+"+(0,i.concat)((m-r.length).toString()).join("")})]})}},3249:(e,t,r)=>{r.d(t,{g:()=>f});var n=r(67294),o=r(67142),i=r(96486),a=r(96561),c=r(28175),l=r(85893);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e){var t=function(e){var t=(0,a.xQ)().document;return(0,n.useMemo)((function(){if(!t)return"";var r=t.documentElement;return getComputedStyle(r).getPropertyValue(e)}),[t,e])}("--color-online-background"),r=(0,i.omit)(e,["onlineColor","idleColor"]),s=(0,c.I)().isV3Enabled;return(0,l.jsx)(o.gs,u(u({},r),{},{onlineColor:t,isFullRounded:s}))}},57169:(e,t,r)=>{e.exports=r.p+"static/components/shared/TrixEditor/Toolbar/giphy-9748c37dc2c62728f338.png"}}]);
//# sourceMappingURL=/packs/js/123-6fae4b8a92a910e5bde2.js.map