PageSourceSearch

https://app.videocreatorcourse.com/packs/js/15755-aa2b534fefda0cdb.chunk.js

js videocreatorcourse.com collected 2026-09-29 14:12:37 UTC 58,121 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[15755],{107437(e,t,r){r.d(t,{A:()=>a});var n=r(933578),o=function(e,t){return"boolean"==typeof t?t:!e};let a=function(e){return(0,n.useReducer)(o,e)}},628226(e,t,r){var n=r(391426),o=r(658687),a=r(804939),l=r(803224),c=r(955453),i=function(e){var t=e.children,r=(0,a.P)(),i=(0,l.KR)(),u=c.S5;return r&&(u=i?c.Wm:c.jc),(0,n.jsx)(o.J,{selectorQuery:u,children:t},u)};i.displayName="CanvasHeaderRightActions",r.d(t,{r:()=>i})},546028(e,t,r){var n=r(292626),o=r(258752),a=function(e){var t,r,a,l=e.spaceId,c=e.enabled,i=(0,o.IT)((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},n.l9.activeMembersCount(null!=l?l:0)),r=r={enabled:!!l&&(void 0===c||c)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t));return{count:(null==(a=i.data)?void 0:a.members_count)||0,isInitialLoading:i.isInitialLoading,isLoading:i.isLoading,refetch:i.refetch}};r.d(t,{o:()=>a})},62534(e,t,r){var n=function(e,t){if("u"<typeof window)return"";var r=document.createElement("div");r.className=t,r.style.display="none",document.body.appendChild(r);var n=getComputedStyle(r).getPropertyValue(e).trim();return r.remove(),n},o=function(e,t){if("u"<typeof window)return Object.fromEntries(e.map(function(e){return[e,""]}));var r=document.createElement("div");r.className=t,r.style.display="none",document.body.appendChild(r);var n=getComputedStyle(r),o=Object.fromEntries(e.map(function(e){return[e,n.getPropertyValue(e).trim()]}));return r.remove(),o};r.d(t,{L:()=>o,o:()=>n})},509397(e,t,r){var n=function(){return"".concat(window.location.origin,"/checkout/")},o=function(e,t){var r=new URL("".concat(n()).concat(e));return t&&r.searchParams.set("price_id",String(t)),r.toString()},a=function(e,t,r){var n,a=o(e,r);if(null==(n=navigator)?void 0:n.clipboard)navigator.clipboard.writeText(a);else{var l=document.createElement("input");l.style.position="absolute",l.style.left="-1000px",l.style.top="-1000px",l.value=a;var c=document.querySelector(t);c&&c.appendChild(l),l.focus(),l.setSelectionRange(0,l.value.length),document.execCommand("copy")}},l={CARD:"card",PIX:"pix",GOOGLE_PAY:"google_pay",APPLE_PAY:"apple_pay",LINK:"link",KLARNA:"klarna",AFTERPAY_CLEARPAY:"afterpay_clearpay",AFFIRM:"affirm",SEPA_DEBIT:"sepa_debit",IDEAL:"ideal",BANCONTACT:"bancontact"},c=[l.CARD,l.PIX,l.GOOGLE_PAY,l.APPLE_PAY,l.LINK,l.KLARNA,l.AFTERPAY_CLEARPAY,l.AFFIRM,l.SEPA_DEBIT,l.IDEAL,l.BANCONTACT],i=function(e){var t=e.toLowerCase();return c.includes(t)?t:null},u=function(e,t){return i(e)===t},s=function(e){return u(e,l.PIX)},d=function(e){return u(e,l.CARD)},m=function(e){return u(e,l.LINK)},f=function(e){return u(e,l.GOOGLE_PAY)},p=function(e){return u(e,l.APPLE_PAY)},b=function(e){return u(e,l.KLARNA)},h=function(e){return u(e,l.AFTERPAY_CLEARPAY)},y=function(e){return f(e)||p(e)},g=function(e){return b(e)||h(e)||u(e,l.AFFIRM)},v=function(e){return u(e,l.SEPA_DEBIT)},_=function(e,t){return e&&!(null==t?void 0:t.can_be_repurchased)},x=function(e){return p(e)||u(e,l.BANCONTACT)||d(e)||f(e)||u(e,l.IDEAL)||b(e)||m(e)||v(e)};r.d(t,{$K:()=>d,DF:()=>g,Dx:()=>x,Ke:()=>b,LE:()=>a,M2:()=>y,NJ:()=>_,PJ:()=>m,Wc:()=>h,eo:()=>v,eq:()=>l,gE:()=>s,i4:()=>n})},694649(e,t,r){var n=r(910648),o=r(2830),a=r(451430),l=function(e){return e.status===o.m4.ACTIVE},c=function(e){return(null==e?void 0:e.status)===o.m4.INACTIVE},i=function(e){return(0,a.filter)(e,function(e){return(0,a.some)(e.stripe_prices_attributes,function(e){return(0,n.Mw)(e)})})},u=function(e){return void 0!==e},s=function(e){return e===o.m4.ACTIVE&&u(e)},d=function(e){return(0,a.filter)(e,function(e){return(0,n.W)(e.stripe_prices_attributes||[]).length>0})},m=function(e){return e.name||e.display_name};r.d(t,{$m:()=>l,No:()=>s,YT:()=>m,Yo:()=>i,_g:()=>u,gd:()=>c,p3:()=>d})},491270(e,t,r){r.r(t),r.d(t,{component:()=>ra});var n,o,a,l,c,i,u,s,d,m,f,p,b,h,y,g,v=r(391426),_=r(257957),x=r(737225),j=r(202090),O=r(451430),w=r(44041),P=r(779504),k=r(355104),C=r(339626),S=r(183648),I=r(719657),z=r(240126),A=r(41798
10),N=r(803224),E=r(628226),D=r(570310),T=r(378145),L=r(380689),R=r(361971),K=r(819053);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 G="logo",M="icon",U="dark_logo",V="dark_icon",B="brand_color",H="brand_text_color",$="default_appearance",W="current_theme",Y="sidebar_background_color",q="header_background_color",X="header_active_text_color",J="header_active_background_color",Q="link_color",Z="header_text_color",ee="sidebar_text_color",et="active_item_color",er="active_item_text_color",en="sidebar_hover_color",eo="online_indicator_color",ea="mention_badge_color",el="is_custom",ec=[Y,q,ee,et,er,en,eo,ea,Z,X,J,Q],ei=(F(g={},$,"light"),F(g,B,(F(n={},K.xz.LIGHT,"#506CF0"),F(n,K.xz.DARK,"#506CF0"),n)),F(g,H,(F(o={},K.xz.LIGHT,"#ffffff"),F(o,K.xz.DARK,"#ffffff"),o)),F(g,Q,(F(a={},K.xz.LIGHT,"#2563EB"),F(a,K.xz.DARK,"#60A5FA"),a)),F(g,W,"default"),F(g,Y,(F(l={},K.xz.LIGHT,"#2B2E33"),F(l,K.xz.DARK,"#2B2E33"),l)),F(g,q,(F(c={},K.xz.LIGHT,"#2B2E33"),F(c,K.xz.DARK,"#2B2E33"),c)),F(g,J,(F(i={},K.xz.LIGHT,"#f0f3f5"),F(i,K.xz.DARK,"#42464D"),i)),F(g,X,(F(u={},K.xz.LIGHT,"#545861"),F(u,K.xz.DARK,"#E4E7EB"),u)),F(g,ee,(F(s={},K.xz.LIGHT,"#545861"),F(s,K.xz.DARK,"#545861"),s)),F(g,Z,(F(d={},K.xz.LIGHT,"#545861"),F(d,K.xz.DARK,"#545861"),d)),F(g,et,(F(m={},K.xz.LIGHT,"#42464D"),F(m,K.xz.DARK,"#42464D"),m)),F(g,er,(F(f={},K.xz.LIGHT,"#FFFFFF"),F(f,K.xz.DARK,"#FFFFFF"),f)),F(g,en,(F(p={},K.xz.LIGHT,"#717680"),F(p,K.xz.DARK,"#717680"),p)),F(g,eo,(F(b={},K.xz.LIGHT,"#22BB22"),F(b,K.xz.DARK,"#22BB22"),b)),F(g,ea,(F(h={},K.xz.LIGHT,"#E02F2F"),F(h,K.xz.DARK,"#E02F2F"),h)),F(g,G,null),F(g,M,null),F(g,U,null),F(g,V,null),F(g,el,!1),F(g,"current_default_appearance",(F(y={},K.xz.LIGHT,void 0),F(y,K.xz.DARK,void 0),y)),g),eu=r(230763),es=r(465274),ed=r(765724),em=function(){var e=(0,eu.Od)(),t=e.currentCommunity,r=e.currentCommunityMember,n=e.currentCommunitySettings,o=e.isLoading,a=e.refetch,l=(0,es.e)(),c=l.isLoadingCommunities,i=l.refetchCommunities,u=(0,ed.Xt)(t),s=u.url,d=u.type,m=null!=r?r:{},f=m.headline,p=m.name,b=m.avatar_url,h=null==t?void 0:t.prefs,y=(null==t?void 0:t.logo_url)||"",g=(null==t?void 0:t.name)||"",v=(null==t?void 0:t.dark_icon)||null,_=(null==t?void 0:t.dark_logo)||null,x=(null==t?void 0:t.icon)||null,j=(null==t?void 0:t.logo)||null,O=(null==t?void 0:t.icon_url)||"",w=(null==h?void 0:h.brand_color)||ei.brand_color,P=(null==h?void 0:h.brand_text_color)||ei.brand_text_color,k=(null==n?void 0:n.theme_settings)||{},C=k.custom_colors,S=void 0===C?{active_item_color:ei.active_item_color,mention_badge_color:ei.mention_badge_color,sidebar_background_color:ei.sidebar_background_color,sidebar_hover_color:ei.sidebar_hover_color,sidebar_text_color:ei.sidebar_text_color,active_item_text_color:ei.active_item_text_color,online_indicator_color:ei.online_indicator_color,header_background_color:ei.header_background_color,header_text_color:ei.header_text_color}:C,I=k.default_appearance,z=void 0===I?ei.default_appearance:I,N=k.current_theme,E=void 0===N?ei.current_theme:N,D=k.is_custom,T=void 0===D?ei.is_custom:D;return{data:{brandColor:w,brandTextColor:P,communityLogoUrl:y,communityName:g,currentTheme:E,darkIcon:v,darkLogo:_,defaultAppearance:z,headerSpaceEmoji:"\uD83D\uDE80",headerSpaceTitle:(0,A.t)("space"),headline:void 0===f?"":f,icon:x,isCustom:T,logo:j,name:void 0===p?"":p,sidebarLogoType:void 0===d?"icon":d,sidebarLogoUrl:void 0===s?"":s,switcherIconUrl:O,userImageUrl:void 0===b?"":b,custom_colors:S},isLoading:o||c,refetch:function(){a(),i()}}},ef=function(){var e=(0,R.xW)().watch,t=e(q),r=e(Z),n=e(Y),o=e(ee),a=e(et),l=e(er),c=e(en),i=e(eo),u=e(ea),s=e(X),d=e(J);return[t,r,n,o,a,l,c,i,u,e(Q),s,d].map(function(e){return"".concat(e.light,",").concat(e.dark)}).join(",")},ep=r(450225),eb=r(382544),eh=r(927139),ey=r.n(eh),eg=r(258752),ev=r(717526);function e_(e,t,r,n,o,a,l){try{var c=e[a](l),i=c.value}catch(e){r(e);return}c.done?t(i):Promise.resolve(i).then(n,o)}function ex(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function l(e){e_(a,n,o,l,c,"next",e)}function c(e){e_(a,n,o,l,c,"throw",e)}l(void 0)})}}function ej(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(l,"next",{value:i(0)}),c(l,"throw",{value:i(1)}),c(l,"return",{value:i(2)}),"function"==typeof Symbol&&c(l,Symbol.iterator,{value:function(){return this}}),l;function i(c){return function(i){var u=[c,i];if(r)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var eO=function(){var e=(0,ep.YQ)().data,t=void 0===e?{}:e,r=(0,ep.Uy)().mutateAsync,n=(0,eb.a)().mutateAsync;return{updateCustomizationAsync:function(e){return ex(function(){var o,a,l,c,i,u,s,d,m,f,p,b,h;return ej(this,function(y){return o=e.brand_color,a=e.brand_text_color,l=e.current_theme,c=e.dark_icon,i=e.dark_logo,u=e.current_default_appearance,s=e.icon,d=e.is_custom,m={community:{logo:e.logo,icon:s,dark_logo:i,dark_icon:c,prefs:{brand_color:o,brand_text_color:a}}},p=(f=[et,er,ea,eo,Y,q,Z,X,J,Q,en,ee]).reduce(function(t,r){var n;return t[r]=null==(n=e[r])?void 0:n.light,t},{}),b=f.reduce(function(t,r){var n;return t[r]=null==(n=e[r])?void 0:n.dark,t},{}),h={theme_settings:{default_appearance:u[j.xz.LIGHT]?j.xz.LIGHT:j.xz.DARK,current_theme:l,is_custom:d,custom_colors:{light:p,dark:b}}},[2,Promise.all([n(m),r({data:t,updates:h})])]})})()}}},ew=function(e){var t=e.onSuccess,r=e.onError,n=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["onSuccess","onError"]),o=(0,ev.d)(),a=eO().updateCustomizationAsync;return(0,eg.n_)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({mutationFn:a,onSuccess:function(){return ex(function(){return ej(this,function(e){switch(e.label){case 0:if(!ey()(t))return[3,2];return[4,t()];case 1:e.sent(),e.label=2;case 2:return o.success((0,A.t)("customize_theme.save_success")),[2]}})})()},onError:function(e){return ex(function(){return ej(this,function(t){switch(t.label){case 0:if(!ey()(r))return[3,2];return[4,r()];case 1:t.sent(),t.label=2;case 2:return console.error("Error updating community",e),o.error((0,A.t)("customize_theme.save_error")),[2]}})})()}},n))};function eP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ek=function(){var e=(0,R.xW)().setValue;return function(t){var r,n=function(e){if(Array.isArray(e))return e}(r=t.split(","))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),24!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}(r)||function(e){if(e){if("string"==typeof e)return eP(e,24);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eP(e,24)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1],l=n[2],c=n[3],i=n[4],u=n[5],s=n[6],d=n[7],m=n[8],f=n[9],p=n[10],b=n[11],h=n[12],y=n[13],g=n[14],v=n[15],_=n[16],x=n[17],j=n[18],O=n[19],w=n[20],P=n[21],k=n[22],C=n[23];e(q,{light:void 0===o?"":o,dark:void 0===a?"":a},{shouldDirty:!0}),e(Z,{light:void 0===l?"":l,dark:void 0===c?"":c},{shouldDirty:!0}),e(Y,{light:void 0===i?"":i,dark:void 0===u?"":u},{shouldDirty:!0}),e(ee,{light:void 0===s?"":s,dark:void 0===d?"":d},{shouldDirty:!0}),e(et,{light:void 0===m?"":m,dark:void 0===f?"":f},{shouldDirty:!0}),e(er,{light:void 0===p?"":p,dark:void 0===b?"":b},{shouldDirty:!0}),e(en,{light:void 0===h?"":h,dark:void 0===y?"":y},{shouldDirty:!0}),e(eo,{light:void 0===g?"":g,dark:void 0===v?"":v},{shouldDirty:!0}),e(ea,{light:void 0===_?"":_,dark:void 0===x?"":x},{shouldDirty:!0}),e(Q,{light:void 0===j?"":j,dark:void 0===O?"":O},{shouldDirty:!0}),e(X,{light:void 0===w?"":w,dark:void 0===P?"":P},{shouldDirty:!0}),e(J,{light:void 0===k?"":k,dark:void 0===C?"":C},{shouldDirty:!0})}},eC=r(915779),eS=r(933578),eI=function(){var e=(0,R.xW)().watch,t=e($),r={logo:e(G),darkLogo:e(U),icon:e(M),darkIcon:e(V)};return(0,eS.useMemo)(function(){var e=t===j.xz.DARK,n=e&&r.darkLogo||!e&&r.logo?G:M,o=r.logo&&(0,eC.nD)({signed_id:r.logo}),a=r.darkLogo&&(0,eC.nD)({signed_id:r.darkLogo}),l=r.icon&&(0,eC.nD)({signed_id:r.icon}),c=r.darkIcon&&(0,eC.nD)({signed_id:r.darkIcon});return{communityLogoUrl:e?a:o,communityLogoType:n,communityIconUrl:e?c:l}},[t,r.darkIcon,r.darkLogo,r.icon,r.logo])};function ez(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var eN={active_item_color:"",active_item_text_color:"",header_background_color:"",header_text_color:"",header_active_background_color:"",header_active_text_color:"",link_color:"",mention_badge_color:"",online_indicator_color:"",sidebar_background_color:"",sidebar_hover_color:"",sidebar_text_color:""},eE=function(){var e,t=(0,R.xW)(),r=t.watch,n=t.getValues,o=function(e){if(Array.isArray(e))return e}
1(e=r([$,W,el,B,H]))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),5!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return ez(e,5);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ez(e,5)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],l=o[1],c=o[2],i=o[3],u=o[4],s=[et,er,ea,eo,Y,q,Z,X,J,Q,en,ee];return{default_appearance:a,current_theme:l,is_custom:c,brand_color:i,brand_text_color:u,custom_colors:{light:s.reduce(function(e,t){var r=n(t);return e[t]=null==r?void 0:r.light,e},eA({},eN)),dark:s.reduce(function(e,t){var r=n(t);return e[t]=null==r?void 0:r.dark,e},eA({},eN))}}},eD=function(e){var t,r,n=e.previewValues,o=e.screenSize,a=(0,R.xW)().watch,l=(0,L.PD)().screenSize,c=eE(),i=eI(),u=i.communityLogoType,s=i.communityLogoUrl,d=i.communityIconUrl,m=a(B),f=a($),p=null!=o?o:l;return(0,v.jsx)("div",{className:(0,D.x)("flex size-full items-center justify-center",{"min-w-[1160px]":"desktop"===p}),children:(0,v.jsx)(T.h,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},n),r=r={theme:c,screenSize:p,brandColor:m[f],sidebarLogoType:u,communityLogoUrl:s,switcherIconUrl:d,className:"h-full"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})},eT=function(){var e=(0,C.kp)(function(e){return{appearance:e.appearance,toggleAppearance:e.toggleAppearance}}),t=e.appearance,r=e.toggleAppearance,n=(0,R.xW)(),o=n.setValue,a=(0,n.watch)($),l=(0,eS.useRef)(t),c=(0,eS.useRef)(a);(0,eS.useEffect)(function(){t!==l.current&&t!==a&&o($,t),l.current=t},[t,a,o]),(0,eS.useEffect)(function(){a!==c.current&&a!==t&&r(a),c.current=a},[a,t,r])},eL=function(e){var t=e.previewValues,r=(0,C.kp)(function(e){return{canvasSize:e.canvasSize}}).canvasSize;return eT(),(0,v.jsx)(eD,{previewValues:t,screenSize:r})},eR=r(387099);function eK(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,c=!1;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{l||null==o.return||o.return()}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eK(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eG=(0,eS.createContext)(null);eG.displayName="LogoUploadContext";var eM=function(e){var t=e.children,r=eF((0,eS.useState)(!1),2),n=r[0],o=r[1],a=eF((0,eS.useState)(!1),2),l=a[0],c=a[1],i=(0,eS.useMemo)(function(){return{isIconUploading:l,isLogoUploading:n,isUploading:n||l,setIsIconUploading:c,setIsLogoUploading:o}},[l,n]);return(0,v.jsx)(eG.Provider,{value:i,children:t})},eU=function(){var e=(0,eS.useContext)(eG);if(!e)throw Error("useLogoUploadState must be used within LogoUploadStateProvider");return e},eV=function(e){var t,r,n=e.isSaving,o=void 0!==n&&n,a=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["isSaving"]),l=eU().isUploading;return(0,v.jsx)(eR.$,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({disabled:o||l,type:"submit",variant:"circle"},a),r=r={children:o?(0,A.t)("saving"):(0,A.t)("save")},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},eB=r(843134),eH=r(812785),e$=r(958498),eW=r(892907),eY=r(345722),eq=r(144961),eX=r(62534),eJ=/^var\((--[\w-]+)\)$/,eQ=function(e,t){var r=eJ.exec(e);return r&&(0,eX.o)(r[1],t)||e},eZ=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ec.some(function(t){var r,n;return!!((null==(r=e.light)?void 0:r[t])||(null==(n=e.dark)?void 0:n[t]))})},e0=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t="custom"!==e&&j.$y[e]||j.$y.default;return ec.map(function(e){var r=j.GS[e];return{name:e,color:{light:eQ(t.light[r],"light"),dark:eQ(t.dark[r],"dark")}}})},e2=function(e){var t,r,n="custom"!==e&&j.$y[e]||j.$y.default;return{light:eQ(null!=(t=n.light["--brand"])?t:"#000000","light"),dark:eQ(null!=(r=n.dark["--brand"])?r:"#000000","dark")}},e1=function(e){var t,r,n="custom"!==e&&j.$y[e]||j.$y.default;return{light:eQ(null!=(t=n.light["--brand-button-text"])?t:"#ffffff","light"),dark:eQ(null!=(r=n.dark["--brand-button-text"])?r:"#ffffff","dark")}},e5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split(",");return r.length===e&&r.every(eq.f)},e3=function(e,t){var r="custom"!==e?j.$y[e][t]:j.$y.default[t];return[r["--color-community-sidebar-text"],r["--color-community-sidebar-active-background"],r["--color-community-sidebar-background"]].map(function(e){return eQ(e,t)})};function e4(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e6=function(){var e,t=(0,R.xW)(),r=t.watch,n=t.setValue,o=em().data,a=(0,eY.T)(),l=r(W),c=r($),i=r(el),u="".concat(B,".").concat(c),s="".concat(H,".").concat(c),d=function(e){if(Array.isArray(e))return e}(e=(0,eS.useState)(i))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return e4(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e4(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=d[0],f=d[1],p=(0,R.xW)().formState.touchedFields,b=(0,eS.useCallback)(function(){var e=o.custom_colors;eZ(e)?(ec.forEach(function(t){var r,o;n(t,{light:null==(r=e.light)?void 0:r[t],dark:null==(o=e.dark)?void 0:o[t]})}
1),n(B,o.brandColor),n(H,o.brandTextColor)):e0(l).forEach(function(e){var t=e.name,r=e.color,o=r.light,a=r.dark;n("".concat(t,".light"),o),n("".concat(t,".dark"),a)})},[l,o.brandColor,o.brandTextColor,o.custom_colors,n]),h=(0,eS.useCallback)(function(e){if("custom"!==e){var t=e2(e),r=t.light,o=t.dark,a=e1(e),l=a.light,c=a.dark;n("".concat(B,".light"),r),n("".concat(B,".dark"),o),n("".concat(H,".light"),l),n("".concat(H,".dark"),c)}},[n]),y=(0,eS.useCallback)(function(){n(W,"custom"),b()},[n,b]);return(0,eS.useEffect)(function(){var e="custom"===l;n(el,e),f(e)},[n,l,c]),(0,eS.useEffect)(function(){"custom"!==l&&p[W]&&h(l)},[l,h,p]),{appearance:c,brandColorName:u,brandTextColorName:s,currentTheme:l,hasCustomizeCommunity:a,isCustom:i,isColorsPanelOpen:m,onClickOpenColorsPanel:y,setThemeBrandColors:h}},e8=function(e){var t,r,n=e.children,o=e.className,a=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["children","className"]);return(0,v.jsx)("section",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({className:(0,D.x)("flex flex-col gap-4 border-b border-b-secondary p-4",o)},a),r=r={children:n},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},e7="customize_theme",e9="current_default_appearance",te=[{value:j.xz.LIGHT,get label(){return(0,A.t)("light")},icon:"sun"},{value:j.xz.DARK,get label(){return(0,A.t)("dark")},icon:"moon"}],tt=function(){var e=(0,R.xW)(),t=e.control,r=e.setValue,n=e6().appearance,o="".concat(e9,".").concat(n),a=function(e){r("".concat(e9,".").concat(n===j.xz.LIGHT?j.xz.DARK:j.xz.LIGHT),!e)},l=n===j.xz.LIGHT?(0,A.t)([e7,"theme_tab.set_light_mode_as_default_appearance"]):(0,A.t)([e7,"theme_tab.set_dark_mode_as_default_appearance"]),c=n===j.xz.LIGHT?(0,A.t)([e7,"theme_tab.the_following_styles_will_be_applied_light"]):(0,A.t)([e7,"theme_tab.the_following_styles_will_be_applied_dark"]);return(0,v.jsxs)(e8,{children:[(0,v.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,v.jsx)(eW.o5,{variant:"label-sm",color:"secondary",children:(0,A.t)([e7,"theme_tab.appearance"])}),(0,v.jsx)(R.xI,{control:t,name:$,render:function(e){var t=e.field;return(0,v.jsx)(eH.I,{fullWidth:!0,required:!0,options:te,value:t.value,onValueChange:function(e){return t.onChange(e)}})}}),(0,v.jsx)(eW.o5,{variant:"label-xs",color:"secondary",component:"p",children:c})]}),(0,v.jsx)(R.xI,{control:t,name:o,render:function(e){var t=e.field;return(0,v.jsx)(e$.d,{checked:!!t.value,label:l,labelPosition:"start",onCheckedChange:function(e){t.onChange(e),a(e)}})}},o)]})},tr=r(244174),tn=r(103731),to=r(792176),ta=r(543381),tl=r(617593),tc=r(817751),ti=r(314054),tu=function(e){var t=e.label,r=e.tooltip;return(0,v.jsxs)("div",{className:"inline-flex items-center gap-2.5",children:[(0,v.jsx)(eW.o5,{variant:"label-sm",color:"secondary",children:t}),r&&(0,v.jsx)(ti.m,{content:r,children:(0,v.jsx)(tc.t,{name:"circle-questionmark",size:"sm","aria-hidden":!0})})]})};function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function td(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],l=!0,c=!1;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{l||null==o.return||o.return()}finally{if(c)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ts(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ts(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tm=function(e){var t,r,n,o=e.name,a=e.label,l=e.tooltip,c=e.title,i=e.aspectRatio,u=e.isCropEnabled,s=void 0===u||u,d=e.isPublic,m=void 0!==d&&d,f=e.uploadType,p=(0,R.xW)().setValue,b=eU(),h=b.isLogoUploading,y=b.isIconUploading,g=b.setIsIconUploading,_=b.setIsLogoUploading,x=td("logo"===f?[h,_]:[y,g],2),j=x[0],O=x[1],w="string"==typeof(t=(0,R.FH)({name:o}))&&t.length>0?t:void 0,P=td((0,eS.useState)([]),2),k=P[0],C=P[1],S=td((0,eS.useState)(!1),2),I=S[0],z=S[1],A=(0,eS.useMemo)(function(){return m?{public:"true"}:void 0},[m]),N=null!=(r=null==(n=k[0])?void 0:n.file)?r:null,E=(0,eS.useMemo)(function(){return k.length>0?k:w?[{url:(0,eC.nD)({filename:o,signed_id:w}),name:c}]:[]},[o,k,w,c]),D=(0,eS.useCallback)(function(e,t){p(o,t,{shouldDirty:!0}),C([]),z(!1)},[o,p]),T=(0,eS.useCallback)(function(){z(!1)},[]),L=(0,eS.useCallback)(function(e){O(!0),new to.d(e,function(e,t){D(e,t),O(!1)},"",o,function(){},A,function(){C([]),O(!1)}).start()},[D,o,O,A]),K=(0,eS.useCallback)(function(e){T(),L(e)},[T,L]),F=(0,eS.useCallback)(function(e){if(0===e.length){p(o,null,{shouldDirty:!0}),C([]),z(!1);return}var t,r=null==(t=e[0])?void 0:t.file;r&&(C(e),s?z(!0):L(r))},[s,o,p,L]);return(0,v.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,v.jsx)(tu,{label:a,tooltip:l}),(0,v.jsxs)("div",{className:"relative w-full rounded-xl border border-primary bg-primary shadow-xs p-5 [&_[data-compass-field]_div.px-2]:!px-0",children:[(0,v.jsx)(ta.m,{variant:"horizontal",value:E,onValueChange:F,title:c,isDisabled:j}),j&&(0,v.jsx)("div",{className:"absolute inset-5",children:(0,v.jsx)(tl.E,{className:"size-full rounded-lg",shape:"rounded"})})]}),s&&(0,v.jsx)(tn.v,{open:I,file:N,onClose:T,onSave:K,aspectRatio:i,title:c})]})},tf="customize_theme.logo_tab",tp=[{aspectRatio:tr.nT.COMMUNITY_LOGO_V3,isCropEnabled:!1,uploadType:"logo",get label(){return(0,A.t)([tf,"community_logo"])},name:{dark:U,light:G},get title(){return(0,A.t)([tf,"upload_community_logo"])},get tooltip(){return(0,A.t)([tf,"community_logo_tooltip"])}},{aspectRatio:tr.nT.COMMUNITY_ICON,isCropEnabled:!0,uploadType:"icon",get label(){return(0,A.t)([tf,"community_icon"])},name:{dark:V,light:M},get title(){return(0,A.t)([tf,"upload_community_icon"])},get tooltip(){return(0,A.t)([tf,"community_icon_tooltip"])}}],tb=["light","dark"],th=function(){var e=e6().appearance;return(0,v.jsx)(e8,{className:"gap-5 px-4 py-5",children:tb.map(function(t){return(0,v.jsx)("div",{className:(0,D.x)("flex flex-col gap-5",{hidden:e!==t}),children:tp.map(function(e){return(0,v.jsx)(tm,{aspectRatio:e.aspectRatio,isCropEnabled:e.isCropEnabled,isPublic:!0,label:e.label,name:e.name[t],title:e.title,tooltip:e.tooltip,uploadType:e.uploadType},e.name[t])})},t)})})},ty=r(67035),tg=r(409858),tv=r(51875),t_=function(e){var t=e.label,r=e.tooltip,n=e.children,o=e.className;return(0,v.jsxs)("div",{className:(0,D.x)("flex items-center justify-between gap-4",o),children:[(0,v.jsxs)("div",{className:"flex min-w-[80px] flex-1 items-center gap-1",children:["string"==typeof t?(0,v.jsx)(eW.o5,{variant:"label-xs",color:"secondary",children:t}):t,r&&(0,v.jsx)(ti.m,{content:r,children:(0,v.jsx)(tc.t,{name:"circle-info",size:"sm","aria-hidden":!0})})]}),(0,v.jsx)("div",{className:"flex min-w-0 flex-1 flex-col",children:n})]})},tx=function(e){if("string"==typeof e&&e)return e.startsWith("#")?e:"#".concat(e)},tj=function(e){var t=e.name,r=e.label,n=e.tooltip,o=e.onValueChange,a=(0,R.xW)().control;return(0,v.jsx)(t_,{label:r,tooltip:n,children:(0,v.jsx)(R.xI,{control:a,name:t,render:function(e){var t=e.field,r=t.value,n=t.onChange,a=tx(r);return(0,v.jsx)(tv.A,{defaultValue:a,value:a,onChange:function(e){n(e),null==o||o(e)}})}})})},tO=r(914829);function tw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tP=function(){var e,t=ef(),r=ek(),n=function(e){if(Array.isArray(e))return e}
1(e=(0,eS.useState)(t))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return tw(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tw(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1],l=2*ec.length;return(0,eS.useEffect)(function(){a(t)},[t]),(0,v.jsx)(t_,{label:(0,A.t)("customize_theme.theme_tab.copy_colors"),tooltip:(0,A.t)("customize_theme.theme_tab.copy_colors_tooltip"),children:(0,v.jsx)(tO.k,{value:o,onChange:function(e){var t=e.target.value;a(t),e5(l,t)&&r(t)},onBlur:function(){e5(l,o)?r(o):a(t)}})})},tk=[{name:Q,labelKey:"links_color"},{name:q,labelKey:"header_background"},{name:Z,labelKey:"header_text_color"},{name:X,labelKey:"header_active_text_color"},{name:J,labelKey:"header_active_background_color"},{name:Y,labelKey:"sidebar_background"},{name:ee,labelKey:"sidebar_text_color"},{name:et,labelKey:"active_item"},{name:er,labelKey:"active_item_text"},{name:en,labelKey:"hover_item"},{name:eo,labelKey:"online_indicator"},{name:ea,labelKey:"mention_badge"}],tC=function(){var e=e6(),t=e.appearance,r=e.currentTheme;return(0,v.jsxs)(v.Fragment,{children:[tk.map(function(e){return(0,v.jsx)(tj,{name:"".concat(e.name,".").concat(t),label:(0,A.t)(["customize_theme.theme_tab",e.labelKey])},"".concat(e.name,".").concat(t,".").concat(r))}),(0,v.jsx)(tP,{})]})},tS=r(74175),tI=function(e){var t=e.theme,r=e.appearance,n=(0,eS.useMemo)(function(){return e3(t,r)},[r,t]);return(0,v.jsx)("span",{className:"flex items-center",children:n.map(function(e){return(0,v.jsx)("span",{style:{backgroundColor:e},className:"border-primary -ml-0.5 inline-block size-3 rounded-full border first:ml-0"},e)})})},tz=function(){var e,t=(0,R.xW)().control,r=e6(),n=r.appearance,o=r.currentTheme,a=r.hasCustomizeCommunity,l=r.onClickOpenColorsPanel,c=r.setThemeBrandColors,i=(0,eS.useMemo)(function(){var e=j.F$.map(function(e){return{value:e,label:(0,A.t)("customize_theme.theme_names.".concat(e)),prefix:(0,v.jsx)(tI,{theme:e,appearance:n})}});return a&&e.push({label:(0,A.t)("customize_theme.theme_names.custom"),value:"custom"}),e},[n,a]),u=null!=(e=i.find(function(e){return e.value===o}))?e:null;return(0,v.jsx)(t_,{label:(0,A.t)("customize_theme.theme_tab.theme"),children:(0,v.jsx)(R.xI,{control:t,name:W,render:function(e){var t=e.field.onChange;return(0,v.jsx)(tS.t,{options:i,value:u,onValueChange:function(e){var r,n=null!=(r=null==e?void 0:e.value)?r:"default";t(n),c(n),"custom"===n&&l()}})}})})},tA=function(){var e=e6(),t=e.brandColorName,r=e.brandTextColorName,n=e.currentTheme,o=e.hasCustomizeCommunity,a=e.isColorsPanelOpen,l=e.onClickOpenColorsPanel;return(0,v.jsxs)(e8,{className:"px-4 py-3",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(tz,{}),!a&&o&&(0,v.jsx)(tg.N,{asButton:!0,type:"button",variant:"custom",typography:"label-xs",color:"link",hoverColor:"link-hover",hoverDecoration:"none",onClick:l,"data-testid":"customize-ui-open-colors-panel",children:(0,A.t)("customize_theme.theme_tab.create_a_custom_theme")})]}),(0,v.jsx)(tj,{name:t,label:(0,A.t)("customize_theme.theme_tab.brand_color"),tooltip:(0,A.t)("customize_theme.theme_tab.brand_color_tooltip")},"".concat(t,".").concat(n)),(0,v.jsx)(tj,{name:r,label:(0,A.t)("customize_theme.theme_tab.brand_text_color"),tooltip:(0,A.t)("customize_theme.theme_tab.brand_text_color_tooltip")},"".concat(r,".").concat(n)),o?a&&(0,v.jsx)("div",{className:"flex flex-col gap-4","data-testid":"customize-ui-theme-colors",children:(0,v.jsx)(tC,{})}):(0,v.jsx)(ty.N,{href:"/settings/plans",children:(0,A.t)("customize_theme.theme_tab.upgrade_your_plan")})]})},tN=r(534529),tE=r(751370),tD=r(852362),tT=function(){var e=(0,tD.X)().trackEvent;return(0,v.jsx)(tE.A,{children:(0,v.jsx)(e8,{className:"border-b-0 px-4 py-5",children:(0,v.jsx)(tN.N_,{to:eC.ty.plans.brandedApps,onClick:function(){e("plus_banner.cta.clicked",{origin:"theme_settings"})},children:(0,v.jsx)("div",{className:"bg-plus-banner h-30 rounded-md bg-[url('@circle-assets/images/features/theme-settings-plus-banner.png')] bg-[length:55%] bg-right-bottom bg-no-repeat p-4 text-left text-white dark:bg-white dark:text-slate-950",children:(0,v.jsx)("div",{className:"w-5/12",children:(0,v.jsx)("div",{className:"text-md font-bold tracking-tight",children:(0,A.t)("circle_plus.banners.theme_settings.title")})})})})})})},tL=function(){return(0,v.jsx)(eB.r,{children:(0,v.jsxs)("div",{className:"flex flex-col",children:[(0,v.jsx)(tt,{}),(0,v.jsx)(th,{}),(0,v.jsx)(tA,{}),(0,v.jsx)(tT,{})]})})},tR=function(){return(0,v.jsx)("aside",{className:"w-[30%] min-w-[280px] max-w-[392px] shrink-0 overflow-y-auto border-r border-r-secondary bg-primary","data-testid":"builder-ui-left-sidebar",children:(0,v.jsx)(tL,{})})},tK=function(e){var t,r,n=e.previewValues,o=e.isSaving,a=e.onExit,l=e.formId,c=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["previewValues","isSaving","onExit","formId"]),i=(0,k.c)().isCircleV4;return(0,N.h3)((0,A.t)("customize_theme.title")),(0,N.m1)(function(){return a(),!0}),(0,v.jsx)(C.uB.Container,{children:(0,v.jsxs)(C.uB.Provider,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({theme:z.l.default_theme,block:I.g,blockMapping:S.q},c),r=r={children:[(0,v.jsx)(E.r,{children:(0,v.jsx)(eV,{isSaving:o,form:l,small:!0})}),(0,v.jsx)(C.uB.Shell,{variant:"no-sidebar",className:(0,D.x)("size-full lg:flex lg:flex-col",{"bg-primary dark:bg-secondary":i,"bg-primary":!i}),children:(0,v.jsxs)(C.uB.ShellBody,{className:"rounded-none shadow-none",children:[(0,v.jsx)(tR,{}),(0,v.jsxs)(C.uB.Main,{className:"flex-1 bg-transparent",children:[(0,v.jsx)(C.uB.DefaultCanvas,{observeContainerResize:!0,children:(0,v.jsx)(eL,{previewValues:n})}),(0,v.jsx)(C.uB.DefaultCanvasControlsCompass,{})]})]})})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})},tF=r(927561);function tG(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tM=function(e){var t,r,n=e.onSave,o=e.defaultFormValues,a=void 0===o?ei:o,l=e.formId,c=e.children,i=(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){tG(e,t,r[t])})}return e}({},a),r=r={current_default_appearance:tG({},a.default_appearance,!0)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t);return(0,v.jsx)(tF.l,{id:l,className:"size-full",formClassName:"w-full h-full",defaultValues:i,onSubmit:function(e){n(e)},children:c})},tU=function(e){var t,r,n=e.name,o=e.label,a=e.disabled,l=e.tooltipText,c=e.className,i=function(e,t){if(null==e)return{};var r,n,o,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}(e,["name","label","disabled","tooltipText","className"]);return(0,v.jsx)(tF.l.Item,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({name:n,label:void 0===o?"":o,placeholder:"#000000",tooltipText:void 0===l?"":l,className:void 0===c?"":c,hideBorder:!0,hideDescription:!0},i),r=r={children:(0,v.jsx)(eq.A,{name:n,disabled:void 0!==a&&a})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},tV=r(893639),tB=r(497184),tH=r.n(tB),t$=r(288513);function tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tY=function(){var e,t=ef(),r=ek(),n=function(e){if(Array.isArray(e))return e}
1(e=(0,eS.useState)(t))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return tW(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tW(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1],l=2*ec.length;return(0,eS.useEffect)(function(){a(t)},[t]),(0,v.jsx)(tF.l.Item,{name:"",hideBorder:!0,hideDescription:!0,label:(0,A.t)("customize_theme.theme_tab.copy_colors"),tooltipText:(0,A.t)("customize_theme.theme_tab.copy_colors_tooltip"),className:"!py-0",children:(0,v.jsx)(tV.e,{name:"",value:o,onChange:function(e){var t=e.target.value;a(t),e5(l,t)&&r(t)},onBlur:function(){e5(l,o)?r(o):a(t)},className:tH()((0,t$.W2)("form-control"),"uppercase")})})},tq=r(979749),tX=function(e){var t=e.theme,r=void 0===t?"default":t,n=e.appearance,o=void 0===n?"light":n,a=(0,eS.useMemo)(function(){return e3(r,o)},[r,o]);return(0,v.jsxs)("div",{className:"flex items-center gap-3",children:[(0,v.jsx)("span",{className:"flex items-center",children:a.map(function(e){return(0,v.jsx)("span",{style:{backgroundColor:e},className:"border-primary -ml-0.5 inline-block size-3 rounded-full border first:ml-0"},e)})}),(0,v.jsx)("span",{children:(0,A.t)("customize_theme.theme_names.".concat(r))})]})},tJ=function(e){var t,r,n=(0,eY.T)(),o=(0,R.xW)().watch,a=e6(),l=a.isColorsPanelOpen,c=a.onClickOpenColorsPanel,i=o($),u=j.F$.map(function(e){return{value:e,label:(0,v.jsx)(tX,{theme:e,appearance:i},"".concat(e,".").concat(i))}});return n&&u.push({label:(0,v.jsx)(v.Fragment,{children:(0,A.t)("customize_theme.theme_names.custom")}),value:"custom"}),(0,v.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,v.jsx)(tF.l.Item,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={hideBorder:!0,hideDescription:!0,label:(0,A.t)("customize_theme.theme_tab.theme"),className:"!py-0",name:W,children:(0,v.jsx)(tq.Y,{name:W,options:u,fullWidth:!0,rules:{},className:"!flex",buttonTextClassName:"!text-left"})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t)),!l&&(0,v.jsx)("div",{children:(0,v.jsx)("button",{type:"button",onClick:c,className:"text-circle text-left text-sm font-medium","data-testid":"customize-ui-open-colors-panel",children:(0,A.t)("customize_theme.theme_tab.create_a_custom_theme")})})]})},tQ=function(){var e=e6(),t=e.appearance,r=e.hasCustomizeCommunity,n=e.isColorsPanelOpen;return r?n?(0,v.jsxs)("div",{className:"flex flex-col gap-6","data-testid":"customize-ui-theme-colors",children:[(0,v.jsx)(tU,{name:"".concat(Q,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.links_color"),className:"!py-0"},"".concat(Q,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(q,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.header_background"),className:"!py-0"},"".concat(q,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(Z,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.header_text_color"),className:"!py-0"}),(0,v.jsx)(tU,{name:"".concat(X,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.header_active_text_color"),className:"!py-0"},"".concat(X,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(J,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.header_active_background_color"),className:"!py-0"},"".concat(J,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(Y,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.sidebar_background"),className:"!py-0"},"".concat(Y,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(ee,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.sidebar_text_color"),className:"!py-0"},"".concat(ee,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(et,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.active_item"),className:"!py-0"},"".concat(et,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(er,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.active_item_text"),className:"!py-0"},"".concat(er,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(en,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.hover_item"),className:"!py-0"},"".concat(en,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(eo,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.online_indicator"),className:"!py-0"},"".concat(eo,".").concat(t)),(0,v.jsx)(tU,{name:"".concat(ea,".").concat(t),label:(0,A.t)("customize_theme.theme_tab.mention_badge"),className:"!py-0"},"".concat(ea,".").concat(t)),(0,v.jsx)(tY,{})]}):null:(0,v.jsx)("div",{className:"mt-2",children:(0,v.jsx)(ty.N,{href:"/settings/plans",children:(0,A.t)("customize_theme.theme_tab.upgrade_your_plan")})})},tZ=r(690567),t0=r(376509),t2=r(221761),t1=r(568316),t5=function(e){var t=e.children;return(0,v.jsx)("div",{className:"flex flex-col gap-2",children:t})},t3="customize_theme",t4="current_default_appearance",t6=function(){var e=(0,R.xW)().setValue,t=e6().appearance,r="".concat(t4,".").concat(t),n="light"===t?(0,A.t)([t3,"theme_tab.set_light_mode_as_default_appearance"]):(0,A.t)([t3,"theme_tab.set_dark_mode_as_default_appearance"]),o="light"===t?(0,A.t)([t3,"theme_tab.the_following_styles_will_be_applied_light"]):(0,A.t)([t3,"theme_tab.the_following_styles_will_be_applied_dark"]);return(0,v.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,v.jsxs)(t5,{children:[(0,v.jsx)(t1.o.LabelSm,{weight:"semibold",children:(0,A.t)([t3,"theme_tab.appearance"])}),(0,v.jsx)(t2.k,{name:$})]}),(0,v.jsx)(tF.l.Item,{id:(0,O.uniqueId)(),name:r,translationRoot:t3,inlineReverse:!0,hideDescription:!0,hideBorder:!0,className:"!py-0",labelClassName:"!text-xs !font-normal",label:n,children:(0,v.jsx)(tF.l.ToggleSwitch,{name:r,variant:"small",onToggleChange:function(r){e("".concat(t4,".").concat(t===j.xz.LIGHT?j.xz.DARK:j.xz.LIGHT),!r)}})},r),(0,v.jsx)("hr",{className:"border-primary border-t"}),(0,v.jsx)(t1.o.LabelXs,{color:"text-default",as:"p",children:o})]})},t8=r(702207),t7=function(){var e=e6().appearance,t=(0,L.PD)().setIsSaveButtonDisabled;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:tH()("flex flex-col gap-6",{hidden:e===K.xz.DARK}),children:[(0,v.jsx)(t8.F,{aspectRatio:tr.nT.COMMUNITY_LOGO_V3,isCropEnabled:!1,isPublic:!0,label:(0,A.t)("customize_theme.logo_tab.community_logo"),name:G,onProcessing:function(e){return t(!!e)},title:(0,A.t)("customize_theme.logo_tab.upload_community_logo"),tooltip:(0,A.t)("customize_theme.logo_tab.community_logo_tooltip")}),(0,v.jsx)(t8.F,{aspectRatio:tr.nT.COMMUNITY_ICON,isPublic:!0,label:(0,A.t)("customize_theme.logo_tab.community_icon"),name:M,onProcessing:function(e){return t(!!e)},title:(0,A.t)("customize_theme.logo_tab.upload_community_icon"),tooltip:(0,A.t)("customize_theme.logo_tab.community_icon_tooltip")})]}),(0,v.jsxs)("div",{className:tH()("flex flex-col gap-6",{hidden:e===K.xz.LIGHT}),children:[(0,v.jsx)(t8.F,{aspectRatio:tr.nT.COMMUNITY_LOGO_V3,isCropEnabled:!1,isPublic:!0,label:(0,A.t)("customize_theme.logo_tab.community_logo"),name:U,onProcessing:function(e){return t(!!e)},title:(0,A.t)("customize_theme.logo_tab.upload_community_logo"),tooltip:(0,A.t)("customize_theme.logo_tab.community_logo_tooltip")}),(0,v.jsx)(t8.F,{aspectRatio:tr.nT.COMMUNITY_ICON,isPublic:!0,label:(0,A.t)("customize_theme.logo_tab.community_icon"),name:V,onProcessing:function(e){return t(!!e)},title:(0,A.t)("customize_theme.logo_tab.upload_community_icon"),tooltip:(0,A.t)("customize_theme.logo_tab.community_icon_tooltip")})]})]})},t9=function(){var e=e6(),t=e.brandColorName,r=e.brandTextColorName;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tJ,{}),(0,v.jsx)(t5,{children:(0,v.jsx)(tU,{name:t,label:(0,A.t)("customize_theme.theme_tab.brand_color"),tooltipText:(0,A.t)("customize_theme.theme_tab.brand_color_tooltip"),className:"!py-0"},t)}),(0,v.jsx)(t5,{children:(0,v.jsx)(tU,{name:r,label:(0,A.t)("customize_theme.theme_tab.brand_text_color"),tooltipText:(0,A.t)("customize_theme.theme_tab.brand_text_color_tooltip"),className:"!py-0"},r)}),(0,v.jsx)(tQ,{})]})},re=function(e){var t=e.onExit,r=e.formId,n=e.isSaving,o=e.previewValues;return(0,v.jsxs)(L.ko,{title:(0,A.t)("customize_theme.title"),onExit:t,formId:r,isSaving:n,children:[(0,v.jsxs)(L.PE,{className:"hidden lg:grid",children:[(0,v.jsx)(L.PE.Header,{children:(0,v.jsx)(L.Dy,{})}),(0,v.jsx)(L.PE.Main,{children:(0,v.jsx)(eD,{previewValues:o})}),(0,v.jsxs)(L.PE.Sidebar,{className:"flex h-full flex-col justify-between",children:[(0,v.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,v.jsx)(t6,{}),(0,v.jsx)(t7,{}),(0,v.jsx)(t9,{})]}),(0,v.jsx)("div",{className:"mt-auto",children:(0,v.jsx)(t0.P,{})})]})]}),(0,v.jsxs)("div",{className:"flex h-full flex-col lg:hidden",children:[(0,v.jsx)(L.PE.Header,{className:"!h-auto",children:(0,v.jsx)(L.Dy,{shouldShowActions:!1})}),(0,v.jsx)(tZ.A,{className:"lg:hidden",title:(0,A.t)("customize_theme.mobile_unsupported.title"),description:(0,A.t)("customize_theme.mobile_unsupported.description")})]})]})};function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rr="customize-community-modal",rn="customize-community-form",ro="#".concat(rr),ra=function(){var e,t=em(),r=t.data,n=t.isLoading,o=t.refetch,a=(0,k.c)().isCircleV4;(0,w.rZ)();var l=ew({onSuccess:o,onError:O.noop}),c=l.mutate,i=l.isLoading;if(n)return(0,v.jsx)(_.a,{center:!0});var u=function(e){var t,n,o,a;return{light:(null==r||null==(n=r.custom_colors)||null==(t=n.light)?void 0:t[e])||j.$y.default.light[j.GS[e]]||"",dark:(null==r||null==(a=r.custom_colors)||null==(o=a.dark)?void 0:o[e])||j.$y.default.dark[j.GS[e]]||""}},s=function(){window.location.href="/"},d=(rt(e={},$,r.defaultAppearance),rt(e,B,r.brandColor),rt(e,H,r.brandTextColor),rt(e,W,r.currentTheme),rt(e,Y,u(Y)),rt(e,q,u(q)),rt(e,X,u(X)),rt(e,J,u(J)),rt(e,Q,u(Q)),rt(e,Z,u(Z)),rt(e,ee,u(ee)),rt(e,et,u(et)),rt(e,er,u(er)),rt(e,en,u(en)),rt(e,eo,u(eo)),rt(e,ea,u(ea)),rt(e,G,r.logo),rt(e,M,r.icon),rt(e,U,r.darkLogo),rt(e,V,r.darkIcon),rt(e,el,r.isCustom),e);return a?(0,v.jsx)(j.cE,{children:(0,v.jsx)(P.Gv,{className:"relative",children:(0,v.jsx)(tM,{onSave:c,defaultFormValues:d,formId:rn,children:(0,v.jsx)(eM,{children:(0,v.jsx)(tK,{onExit:s,isSaving:i,defaultFormValues:d,previewValues:r,formId:rn})})})})}):(0,v.jsx)(j.cE,{selector:ro,children:(0,v.jsx)(x.aF,{isOpen:!0,id:rr,children:(0,v.jsx)(x.aF.Content,{size:"screen",children:(0,v.jsx)(tM,{onSave:c,defaultFormValues:d,formId:rn,children:(0,v.jsx)(re,{onExit:s,isSaving:i,formId:rn,previewValues:r})})})})})}},937972(e,t,r){var n=r(21392),o=r(973704),a=r(362052),l=r(844842),c=r(918283),i=r(933578),u=r(391426);function s({children:e,limit:t=3,size:r="md",spacing:d,className:m,"aria-label":f,i18n:p,"data-testid":b,ref:h,...y}){let g=(0,a.t)("avatarGroup",p),v=i.Children.toArray(e).filter(i.isValidElement),_=v.length,x=v.slice(0,t>0&&_>t?t-1:_),j=_-x.length,O="string"==typeof r&&r in c.t?r:"md",w=void 0!==d?d<0?Math.abs(d):0:void 0,P=(0,i.useMemo)(()=>(0,c.n)(O,w),[O,w]),k=(0,i.useMemo)(()=>({size:O,groupClassName:void 0,groupStyle:void 0}),[O]),C=(0,i.useMemo)(()=>({size:O,groupClassName:void 0,groupStyle:P}),[O,P]),S=f??g.groupLabel.replace("{count}",String(_)),I=x.length+ +(j>0);return(0,u.jsxs)("div",{ref:h,role:"group","aria-label":S,"data-testid":b,className:(0,o.t)("AvatarGroup","isolate flex items-center",void 0===d&&c.t[O],m),style:{gap:void 0!==d&&d>=0?`${d/16}rem`:void 0},...y,children:[x.map((e,t)=>{let r=t===x.length-1&&0===j;return(0,u.jsx)(l.n,{value:r?k:C,children:(0,u.jsx)("div",{className:"relative",style:{zIndex:I-t,marginLeft:void 0!==d&&d<0&&t>0?`${d/16}rem`:void 0},children:e})},t)}),j>0&&(0,u.jsx)(l.n,{value:k,children:(0,u.jsx)("div",{className:"relative",style:{zIndex:1},children:(0,u.jsx)("div",{className:(0,n.r)((0,l.u)({size:r}),"items-center justify-center text-white"),role:"img","aria-label":g.overflowLabel.replace("{count}",String(j)),children:(0,u.jsxs)("span",{className:(0,n.r)((0,l.a)({size:r}),"bg-brand"),"aria-hidden":"true",children:["+",j]})})})})]})}s.displayName="AvatarGroup",r.d(t,{Z:()=>s})},918283(e,t,r){let n={xxs:16,xs:20,sm:24,md:32,lg:40,xl:48,"2xl":64,"3xl":80},o={xxs:2,xs:2,sm:2,md:2,lg:2,xl:2,"2xl":2,"3xl":2},a={xxs:4,xs:4,sm:5,md:6,lg:7,xl:8,"2xl":8,"3xl":8};function l(e,t){let r=n[e],l=t??a[e],c=o[e];if(l<=0)return;let i=`radial-gradient(circle ${(r/2+c)/16}rem at ${(r-l+r/2)/16}rem ${r/2/16}rem, transparent 100%, black 100%)`;return{maskImage:i,WebkitMaskImage:i}}r.d(t,{n:()=>l},{t:{xxs:"-space-x-[0.25rem]",xs:"-space-x-[0.25rem]",sm:"-space-x-[0.3125rem]",md:"-space-x-[0.375rem]",lg:"-space-x-[0.4375rem]",xl:"-space-x-[0.5rem]","2xl":"-space-x-[0.5rem]","3xl":"-space-x-[0.5rem]"}})}}]);
2//# sourceMappingURL=/packs/js/15755-aa2b534fefda0cdb.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.