PageSourceSearch

https://app.acpvillage.org/packs/js/16010-ccf76924bb17fc72.chunk.js

js acpvillage.org collected 2026-10-05 17:53:24 UTC 16,363 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[16010],{585528(e,r,t){t.d(r,{e:()=>i});var n=t(508479),o=(0,t(158387)._)(function(e){return e.setIsFixedHeightContent},"MobileFixedHeightContentRegistrar"),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.enabled;return(0,n.T)(o,void 0===r||r?{}:null)}},532869(e,r,t){var n=t(43225),o=t(713821),i=t(451430),u=t(417980),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PP";if(!e)return(0,u.t)("dash");var t=new Date(e);return(0,n.f)(t)?(0,i.startCase)((0,o.GP)(t,r)):(0,u.t)("dash")},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.admin?(0,u.t)("role_admin"):e.moderator?(0,u.t)("moderator"):(0,u.t)("member")},c=function(e){return"CommunityMember"===e.type?l(e.roles):(0,u.t)("non_member")},s=function(e){return e?(0,u.t)("settings.manage_members.subscribed"):(0,u.t)("settings.manage_members.unsubscribed")},f=function(e){return e?(0,u.t)(["invitation_status_column",e]):(0,u.t)("dash")};t.d(r,{Ao:()=>f,Pd:()=>s,Yq:()=>a,z$:()=>c})},36499(e,r,t){t.d(r,{k:()=>h});var n=t(391426),o=t(92810),i=t(667540),u=t(93736),a=t(322249),l=t(451430),c=t(933578);function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function f(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}var d=t(482643);function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function b(e,r){if(e){if("string"==typeof e)return y(e,r);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 y(e,r)}}var m=function(e){var r,t,n,m,p,g,v=(0,a.g)({strict:!1}).id,w=null!=(n=null!=e?e:v)?n:"",O=(0,u.j)({workflowId:w,enabled:!!w}),h=O.data,j=O.isPending,P=O.isError,k=O.isFetching,_=O.error,x=(0,c.useMemo)(function(){return h?(0,i.H)(h):void 0},[h]),S=(0,l.uniq)((0,l.compact)([null==x?void 0:x.community_segment_id,null==x||null==(p=x.trigger)?void 0:p.community_segment_id].concat(function(e){if(Array.isArray(e))return y(e)}(r=null!=(m=null==x||null==(g=x.actions)?void 0:g.map(function(e){return e.community_segment_id}))?m:[])||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||b(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))),E=(0,d.wO)({workflowId:w,segmentIds:S}),I=E.data,q=E.isInitialLoading,D=(0,c.useMemo)(function(){if(q||!x)return null;var e,r,t,n,i,u,a,l,c,d,y,b,m,p=(t=null!=(m=null==I?void 0:I.records)?m:[],a=new Map(t.map(function(e){return[e.id,e.rules]})),c=(l=function(e){return"number"==typeof e?a.get(e):void 0})(x.community_segment_id),d=l(null==(n=x.trigger)?void 0:n.community_segment_id),y=s({},x.trigger,d&&{rules:d}),b=null==(i=x.actions)?void 0:i.map(function(e){return s({},e,l(e.community_segment_id)&&{rules:l(e.community_segment_id)})}),f(s(f(s({},x),{audience:f(s({},x.audience),{rules:null!=c?c:null==(u=x.audience)?void 0:u.rules})}),Object.keys(y).length>0&&{trigger:y}),{actions:b}));return(null==p?void 0:p.actions)?(e=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},p),r=r={actions:(0,o.C)(p.actions)},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e):p},[x,I,q]),C=function(e){if(Array.isArray(e))return e}(t=(0,c.useState)(null))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){u=!0,t=e}finally{try{i||null==n.return||n.return()}finally{if(u)throw t}}return o}}(t)||b(t,2)||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=C[0],M=C[1];(0,c.useEffect)(function(){D&&M({id:w,workflow:D})},[w,D]);var L=null!=D?D:(null==A?void 0:A.id)===w?A.workflow:null;return{id:w,workflow:L,isLoading:!L&&(j||q),isFetching:k,isError:P,error:_}},p=t(417980),g=t(568316),v=function(e){var r=e.error,t=(0,p.t)("settings.workflows.there_was_an_error_loading_your_workflow");return(null==r?void 0:r.status)===404&&(t=(0,p.t)("settings.workflows.workflow_not_found")),(0,n.jsx)("div",{className:"bg-primary flex size-full flex-col items-center justify-center",children:(0,n.jsx)("div",{className:"flex size-full max-w-xl flex-col items-center justify-center gap-4",children:(0,n.jsx)(g.o.TitleXl,{children:t})})})},w=t(812857),O=function(){return(0,n.jsx)(w.Q,{title:(0,p.t)("settings.workflows.preparing_your_workflow"),subtitle:(0,p.t)("settings.workflows.take_a_few_seconds")})},h=function(e){var r=e.children,t=m(e.workflowId),o=t.id,i=t.workflow,u=t.isLoading,a=t.isError,l=t.error,c=t.isFetching;return o?u?(0,n.jsx)(O,{}):a||!i?(0,n.jsx)(v,{error:null!=l?l:void 0}):r({workflow:i,isFetching:c}):null}},998491(e,r,t){var n=t(933578),o=(0,n.createContext)(null);o.displayName="WorkflowEditorContext";var i=function(){var e=(0,n.useContext)(o);if(!e)throw Error("useWorkflowEditorContext must be used within WorkflowEditorPage");return e};t.d(r,{$:()=>i,_:()=>o})},901652(e,r,t){t.d(r,{L:()=>m});var n=t(391426),o=t(36499),i=t(585528),u=t(293556),a=t(896120),l=t(915779),c=t(30864),s=t(417980),f=t(803224),d=t(998491),y={label:(0,s.t)("settings_nav_v3.workflows.all"),href:l._o.index()},b=function(e){var r=e.workflow;return(0,f.h3)(null==r?void 0:r.name,y),(0,n.jsx)(d._.Provider,{value:r,children:(0,n.jsx)(a.r,{workflow:r,enableExternalSync:!0,children:(0,n.jsx)(c.s,{})})})},m=function(e){var r=e.id,t=(0,i.e)(),a=(0,u.q)();return(0,n.jsxs)(n.Fragment,{children:[t,a,(0,n.jsx)(o.k,{workflowId:r,children:function(e){var r=e.workflow;return(0,n.jsx)(b,{workflow:r})}})]})}},896120(e,r,t){t.d(r,{r:()=>b});var n=t(391426),o=t(776918),i=t.n(o),u=t(933578),a=t(361971),l=t(894510),c=t(497555),s=function(e){var r=e.methods,t=e.defaultValues,n=e.workflowId,o=e.requestRemount,i=(0,c.R)(function(e){return e.version}),a=(0,c.R)(function(e){return e.lastChangedId}),l=(0,u.useRef)(!1),s=(0,u.useRef)(null),f=(0,u.useRef)(!0),d=(0,u.useRef)(t);d.current=t,(0,u.useEffect)(function(){if(f.current){f.current=!1;return}null==a||a!==n||r.formState.isDirty||(s.current=d.current,l.current=!0)},[i,a,n,r]),(0,u.useEffect)(function(){!l.current||s.current===t||(l.current=!1,s.current=null,r.formState.isDirty||o())},[t,r,o])},f=function(e){var r,t,o=e.defaultValues,i=e.methods,u=e.workflowId,l=e.requestRemount,c=e.children;return s({methods:i,defaultValues:o,workflowId:u,requestRemount:l}),(0,n.jsx)(a.Op,(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},i),t=t={children:c},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))},d=function(e){var r,t,o=e.defaultValues,i=e.workflowId,u=e.requestRemount,c=e.enableExternalSync,s=e.children,d=(0,a.mN)({mode:"onChange",reValidateMode:"onChange",defaultValues:o});return void 0!==c&&c?(0,n.jsx)(f,{defaultValues:o,methods:d,requestRemount:u,workflowId:i,children:(0,n.jsx)(l.m,{children:s})}):(0,n.jsx)(a.Op,(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},d),t=t={children:(0,n.jsx)(l.m,{children:s})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))};function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var b=function(e){var r,t,o,a=e.workflow,l=e.enableExternalSync,c=e.children,s=!i()(null==a?void 0:a.actions),f=(0,u.useMemo)(function(){return s?a.actions:[]},[s,null==a?void 0:a.actions]),b=(null==a?void 0:a.workflow_type)==="bulk_action",m=(null==a?void 0:a.workflow_type)==="scheduled",p=null==a||null==(o=a.audience)||null==(t=o.rules)?void 0:t.rules,g=(0,u.useMemo)(function(){return(b||m)&&p?a.audience:{rules:{rule_type:"custom_filters",rules:[]}}},[p,b,m,a.audience]),v=(0,u.useMemo)(function(){return m?a.schedule:{}},[m,a.schedule]),w=(0,u.useMemo)(function(){var e,r;return e=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},a),r=r={actions:f,audience:g,schedule:v},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e},[a,f,g,v]),O=function(e){if(Array.isArray(e))return e}(r=(0,u.useState)(0))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){u=!0,t=e}finally{try{i||null==n.return||n.return()}finally{if(u)throw t}}return o}}(r)||function(e){if(e){if("string"==typeof e)return y(e,2);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 y(e,2)}}(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.")}(),h=O[0],j=O[1],P=(0,u.useCallback)(function(){return j(function(e){return e+1})},[]);return(0,n.jsx)(d,{defaultValues:w,enableExternalSync:void 0!==l&&l,workflowId:null==a?void 0:a.id,requestRemount:P,children:c},h)}},409246(e,r,t){var n=t(915779),o=t(462940),i=function(){var e=(0,o.a)({api:n.iK.memberTags.index}),r=e.records;
1return{memberTags:void 0===r?[]:r,isLoading:e.isLoading}};t.d(r,{B:()=>i})},84586(e,r,t){var n=t(436623),o=function(){return(0,n.Wj)().isAdminUsageContext?"circle":"primary"};t.d(r,{B:()=>o})},927709(e,r,t){var n=t(230763),o=t(933578),i=t(258752),u=t(51730),a=t(6418),l=t(915779),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.i_)(l.iK.paywalls.index({params:e}))},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,n.Od)().currentCommunityMember,t="PAYWALLS"+JSON.stringify(e),u=(0,i.IT)({queryKey:[t],queryFn:function(){return c(e)},enabled:!!(0,a.V8)(r)}),l=u.data,s=void 0===l?[]:l,f=u.isSuccess,d=u.isInitialLoading,y=(0,o.useMemo)(function(){return s?s.filter(function(e){return"active"===e.status}):[]},[s]),b=(0,o.useMemo)(function(){return!!y&&(null==y?void 0:y.length)>0},[y]);return{activePaywalls:y,isSuccess:f,hasActivePaywalls:b,hasPaywalls:(0,o.useMemo)(function(){return!!s&&(null==s?void 0:s.length)>0},[s]),isLoading:d,allPaywalls:s}};t.d(r,{X:()=>s})},462940(e,r,t){var n=t(51730),o=t(451430),i=t(933578),u=t(258752),a=function(e){var r=e.api,t=e.key,a=e.useParamsWrapper,l=void 0===a||a,c=(0,u.qu)({initialPageParam:1,queryKey:["un-paginate",void 0===t?"tags":t,r],queryFn:function(e){var t=e.pageParam,o=void 0===t?1:t;return(0,n.i_)(r(l?{params:{page:o}}:{page:o}))},getNextPageParam:function(e){return e.has_next_page?e.page+1:void 0}}),s=c.data,f=c.fetchNextPage,d=c.hasNextPage,y=c.isInitialLoading;return(0,i.useEffect)(function(){d&&f()},[d,f,s]),{records:(0,o.flatten)(null==s?void 0:s.pages.map(function(e){return e.records}))||[],isLoading:y||d,hasNextPage:d}};t.d(r,{a:()=>a})},436281(e,r,t){var n=t(310860),o=t(282574),i=t(933578),u=function(e,r){var t=(0,o.parse)(e,{ignoreQueryPrefix:!0});try{return r.cast(t)}catch(e){return console.error("Error parsing query params",e),{}}},a=function(e){var r=(0,n.z)({select:function(e){return e.searchStr}});return(0,i.useMemo)(function(){return u(r,e)},[r,e])};t.d(r,{a:()=>a,n:()=>a})},2118(e,r,t){var n=t(51730),o=t(915779),i=t(649942),u=t(75132),a=t(934415),l=t(792515),c=(0,i.y)("member-tag"),s={filterList:function(){return(0,a.L)({initialPageParam:1,queryKey:c.key("filter"),queryFn:function(e){var r=e.pageParam;return(0,n.i_)(o.iK.memberTags.index({params:{page:void 0===r?1:r,per_page:100}}))}})},detail:function(e){return(0,l.j)({queryKey:c.key("detail",e),queryFn:function(){return(0,n.i_)(o.iK.memberTags.show({id:e}))}})},settingsList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.query,t=void 0===r?"":r,i=e.perPage,u=void 0===i?20:i,l=e.initialPage,s=void 0===l?1:l;return(0,a.L)({initialPageParam:s,queryKey:c.key("settings",t,u,s),queryFn:function(e){var r=e.pageParam,i=void 0===r?s:r;return(0,n.i_)(o.iK.settings.memberTags.index({params:function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({page:i>0?i:1,per_page:u},t&&{query:t})}))}})}},f={all:function(){return u.qQ.invalidateQueries({queryKey:c.root()})}};t.d(r,{I:()=>f,lN:()=>20,ve:()=>s})},497555(e,r,t){var n=(0,t(698804).vt)(function(e){return{version:0,lastChangedId:null,notify:function(r){return e(function(e){return{version:e.version+1,lastChangedId:null!=r?r:null}})}}});t.d(r,{R:()=>n})}}]);
2//# sourceMappingURL=/packs/js/16010-ccf76924bb17fc72.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.