/*! For license information please see index.js.LICENSE.txt */
(()=>{var e,t,r={110:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n,Z:()=>s});const n={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},s=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},116:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(698),s=r(3205),i=r(7708),a=r(2464),o=r(5873),c=r(1795),l=r(9101),u=class{#e;#t;#r;#n;#s;#i;#a;#o;constructor(e={}){this.#e=e.queryCache||new s.$,this.#t=e.mutationCache||new i.q,this.#r=e.defaultOptions||{},this.#n=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,1===this.#i&&(this.#a=a.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=o.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,0===this.#i&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(s.queryHash),a=i?.state.data,o=(0,n.Zw)(t,a);if(void 0!==o)return this.#e.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return c.jG.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;c.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#e;return c.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=c.jG.batch(()=>this.#e.findAll(e).map(e=>e.cancel(r)));return Promise.all(s).then(n.lQ).catch(n.lQ)}invalidateQueries(e,t={}){return c.jG.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=c.jG.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(s).then(n.lQ)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime((0,n.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,l.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.lQ).catch(n.lQ)}ensureInfiniteQueryData(e){return e.behavior=(0,l.PL)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return o.t.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#n.set((0,n.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set((0,n.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(t=>{(0,n.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}}},162:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});const n={...r(3371)}},359:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(5104),s=r(3488);const i=e=>(0,n.I)({queryKey:["automations","workflows"],queryFn:(0,s.e)(e),staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})},442:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(9491),s=r(9130);const i=["sm","md","lg"],a=(e,t)=>{const r=Array.isArray(e)?e:[e],a=Array.isArray(t)?t:[t],[o,c,l]=i,u={sm:(0,n.useMediaQuery)(s.A[o]),md:(0,n.useMediaQuery)(s.A[c]),lg:(0,n.useMediaQuery)(s.A[l])};return r.map((e,t)=>{const r=a[t];return r?((e,t,r)=>{const n=i.indexOf(e),s=n+1,a=t.includes("=");let o=[];return t.startsWith("<")&&(o=i.slice(0,a?s:n)),t.startsWith(">")&&(o=i.slice(a?n:s)),o?.length?o.some(e=>r[e]):r[e]})(e,r,u):u[e]})}},445:(e,t,r)=>{"use strict";r.d(t,{W:()=>p});var n=r(1112),s=r(6427),i=r(7723),a=r(1609),o=r(4478),c=r(2455),l=r(5546),u=r(8808),h=r(7247),d=r(790);const __=i.__,p=({isOpen:e,workflow:t,onClose:r,refetchWorkflows:p})=>{const m=[];let f=t.initial_step;for(;f;){const e=t.steps?.[f];m.push(e),f=e.next_step_true}const{mutate:g}=(0,c.J)(),v=(0,a.useCallback)(()=>{g(t),r()},[t,g,r]),y=(0,a.useCallback)(()=>{p(),r()},[r,p]),b=(0,i.sprintf)(/* translators: workflowName is a string which is used to identify the workflow */
__("Edit %(workflowName)s","zero-bs-crm"),{workflowName:t.name});return e&&(0,d.jsx)("div",{className:h.A.wrapper,children:(0,d.jsx)(s.Modal,{className:h.A.modal,title:b,onRequestClose:r,children:(0,d.jsxs)("div",{className:h.A.container,children:[(0,d.jsx)("div",{className:h.A.subheader,children:__("Define and customize the workflow","zero-bs-crm")}),t.triggers.map(e=>(0,d.jsx)(u.v,{trigger:e},e.slug)),m.map(e=>(0,d.jsxs)("div",{className:h.A["step-container"],children:[(0,d.jsx)(l.$,{workflowId:t.id,step:e}),(0,d.jsx)(o.D,{className:h.A["step-label"],type:e.step_type})]},e.id)),(0,d.jsxs)("div",{className:h.A["button-container"],children:[(0,d.jsx)(n.A,{variant:"secondary",onClick:y,children:__("Cancel","zero-bs-crm")}),(0,d.jsx)(n.A,{isPrimary:!0,onClick:v,children:__("Save","zero-bs-crm")})]})]})})})}},502:e=>{"use strict";e.exports={consumer_slug:"zero-bs-crm"}},532:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj","admin-page-header":"iWGAhN9gOB48g0jEO1OQ","sandbox-domain-badge":"JOYmuxQjG4FArIIUxJfA"}},554:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(6427),s=r(7143),i=r(1609),a=r(1768),o=r(6842),c=r(790);const l=({workflowId:e,stepId:t,value:r,definition:n})=>{const l=(0,i.useCallback)(r=>(0,s.dispatch)(a.M).setAttribute(e,t,n.slug,r),[e,t,n.slug]),h=u(r,n,l);return(0,c.jsxs)("div",{className:o.A.container,children:["checkbox"!==n.type&&(0,c.jsx)("div",{className:o.A.title,children:n.title}),h]})},u=(e,t,r)=>{switch(t.type){case"select":return(0,c.jsx)(n.SelectControl,{options:t.data?Object.entries(t.data).map(([e,t])=>({value:e,label:t})):[],value:e,onChange:r});case"text":return(0,c.jsx)(n.TextControl,{value:e,onChange:r});case"checkbox":return(0,c.jsx)(n.CheckboxControl,{label:t.title,checked:e,onChange:r});case"textarea":return(0,c.jsx)(n.TextareaControl,{value:e,onChange:r});case"date":return(0,c.jsx)("div",{className:o.A.datepicker,children:(0,c.jsx)(n.DatePicker,{currentDate:e?new Date(e):new Date,onChange:e=>{const t=new Date(e);r(t.getTime())}})});case"number":return(0,c.jsx)(n.TextControl,{type:"number",value:e,onChange:r});default:return`${t.type} is not implemented`}}},597:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(6427),s=r(3022),i=r(1609),a=r(1112),o=r(1883),c=(r(4984),r(790));const l=e=>({"top-end":"top left",top:"top center","top-start":"top right","bottom-end":"bottom left",bottom:"bottom center","bottom-start":"bottom right"}[e]),u=({className:e="",iconClassName:t="",placement:r="bottom-end",animate:u=!0,iconCode:h="info-outline",iconSize:d=18,offset:p=10,title:m,children:f,popoverAnchorStyle:g="icon",forceShow:v=!1,hoverShow:y=!1,wide:b=!1,inline:w=!0,shift:x=!1})=>{const[j,k]=(0,i.useState)(!1),[S,C]=(0,i.useState)(null),A=(0,i.useCallback)(()=>k(!1),[k]),E=(0,i.useCallback)(e=>{e.preventDefault(),k(!j)},[j,k]),R={position:l(r),placement:r,animate:u,noArrow:!1,resize:!1,flip:!1,offset:p,focusOnMount:"container",onClose:A,className:"icon-tooltip-container",inline:w,shift:x},O="wrapper"===g,M=(0,s.A)("icon-tooltip-wrapper",e),N={left:O?0:-(62-d/2)+"px"},z=O&&v,T=(0,i.useCallback)(()=>{y&&(S&&(clearTimeout(S),C(null)),k(!0))},[y,S]),L=(0,i.useCallback)(()=>{if(y){const e=setTimeout(()=>{k(!1),C(null)},100);C(e)}},[y]);return(0,c.jsxs)("div",{className:M,"data-testid":"icon-tooltip_wrapper",onMouseEnter:T,onMouseLeave:L,children:[!O&&(0,c.jsx)(a.A,{variant:"link",onMouseDown:E,children:(0,c.jsx)(o.A,{className:t,icon:h,size:d})}),(0,c.jsx)("div",{className:(0,s.A)("icon-tooltip-helper",{"is-wide":b}),style:N,children:(z||j)&&(0,c.jsx)(n.Popover,{...R,children:(0,c.jsxs)("div",{children:[m&&(0,c.jsx)("div",{className:"icon-tooltip-title",children:m}),(0,c.jsx)("div",{className:"icon-tooltip-content",children:f})]})})})]})}},698:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>f,EN:()=>m,Eh:()=>u,F$:()=>p,GU:()=>R,MK:()=>h,S$:()=>s,ZM:()=>E,ZZ:()=>C,Zw:()=>a,d2:()=>l,f8:()=>y,gn:()=>o,hT:()=>A,j3:()=>c,lQ:()=>i,nJ:()=>d,pl:()=>k,y9:()=>S,yy:()=>j});var n=r(6817),s="undefined"==typeof window||"Deno"in globalThis;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function h(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:a,stale:o}=e;if(a)if(n){if(t.queryHash!==p(a,t.options))return!1}else if(!f(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&((!s||s===t.state.fetchStatus)&&!(i&&!i(t)))}function d(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(i))return!1}else if(!f(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(s&&!s(t))}function p(e,t){return(t?.queryKeyHashFn||m)(e)}function m(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function f(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>f(e[r],t[r])))}var g=Object.prototype.hasOwnProperty;function v(e,t){if(e===t)return e;const r=b(e)&&b(t);if(!(r||w(e)&&w(t)))return t;const n=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),i=s.length,a=r?new Array(i):{};let o=0;for(let c=0;c<i;c++){const i=r?c:s[c],l=e[i],u=t[i];if(l===u){a[i]=l,(r?c<n:g.call(e,i))&&o++;continue}if(null===l||null===u||"object"!=typeof l||"object"!=typeof u){a[i]=u;continue}const h=v(l,u);a[i]=h,h===l&&o++}return n===i&&o===n?e:a}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!x(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!x(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function j(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function k(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?v(e,t):t}function S(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function C(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var A=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==A?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function R(e,t){return"function"==typeof e?e(...t):!!e}},723:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var n=r(1609),s=r(3167),i=r(790);const a={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},u={},h=(e,t,r)=>{const n={...a,...o,...c,...l};for(const t in n)e.style.setProperty(t,n[t]);r&&e.classList.add(s.A.global),t&&(u[t]={provided:!0,root:e})},d=({children:e=null,targetDom:t,id:r,withGlobalStyles:s=!0})=>{const a=(0,n.useRef)(),o=u?.[r]?.provided;return(0,n.useLayoutEffect)(()=>{if(!o)return t?h(t,r,s):void(a?.current&&h(a.current,r,s))},[t,a,o,r,s]),t?(0,i.jsx)(i.Fragment,{children:e}):(0,i.jsx)("div",{ref:a,children:e})}},766:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5061),s=r(790);const i=({children:e})=>(0,s.jsx)("div",{className:n.A["section-hero"],children:e})},769:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"jp-wrap":"Gg047dR3MeCT7g3kQyqb","jp-row":"CoMBwfGyuevu7RXRbj4B","sm-col-span-1":"Ljqn0YeToZcTDbzNOy_U","sm-col-span-2":"bCU4psJYLou3DblreyoJ","sm-col-span-3":"X7vQ4zoRqN4lCQJ1TJIy","sm-col-span-4":"zDd9V7NIAptg0UQU6KWw","md-col-span-1":"zeH9pJYFnOge09mJkLOy","md-col-span-2":"Qw4FuEIaxHgV1f5qe3wA","md-col-span-3":"KAd2QnxtyN9l5iTLiGwL","md-col-span-4":"_PCsoEPbkU2X7Uv5ph2d","md-col-span-5":"Lt0phoXTte4sSbQ6zy2C","md-col-span-6":"uHp2c18ZjqCwvWykvQpK","md-col-span-7":"Q3SdJEsiawKx87COQ397","md-col-span-8":"bsotXlgk5IAJihNBEQxg","lg-col-span-1":"Ng9m2MhEPOOz9aRMBEYw","lg-col-span-2":"IBYbEtMK_hgwKRZk49IB","lg-col-span-3":"FwWNOYq1Ok97hzDbVG6X","lg-col-span-4":"viQCnvIhNzQLEfAPnBKe","lg-col-span-5":"tPgm4TkdjWvNG4C0q06m","lg-col-span-6":"OHbTHqnzUR2H37f19wvI","lg-col-span-7":"EdtVUvY7w2qnZWFdIb6Z","lg-col-span-8":"N00PBj5Ii1PzwhLurhJu","lg-col-span-9":"sVs40VAYsxDWlNN0oK2x","lg-col-span-10":"opCuiyUuDKEA5rWZEv9X","lg-col-span-11":"mvV2iFn36tA4F27ZVhQg","lg-col-span-12":"GsPa1ivygq6sooUWT797","md-col-span-0":"UD2IECPpZ9L37KOkEnvq","sm-col-span-0":"DKPeUc01hC0Hui61jYDb","jp-cut":"vYU0poyt_0cQRl00sYKz",header:"JfNhShc2VFDVoahKd0zQ",clickable:"MKnCqNSQTj9Un00srtSj",container:"ynHYtcaN519AeBCZtk8z",text:"KBzcD3zNpyVaA2pMkHqh",chevron:"_soe55LDZel8A6lWYOOj"}},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},937:(e,t,r)=>{"use strict";r.d(t,{EU:()=>i,iL:()=>a,jv:()=>n,nE:()=>s});var n=e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}},s=(e,t)=>e.isLoading&&e.isFetching&&!t,i=(e,t)=>e?.suspense&&t.isPending,a=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},1069:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(7999);function s(){return(0,n.getScriptData)()?.site?.admin_url||window.Initial_State?.adminUrl||window.Jetpack_Editor_Initial_State?.adminUrl||window?.myJetpackInitialState?.adminUrl||null}},1112:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6427),s=r(7723),i=r(3109),a=r(1866),o=r(3022),c=r(1609),l=r(4659),u=r(790);const __=s.__,h=(0,c.forwardRef)((e,t)=>{const{children:r,variant:s="primary",size:c="normal",weight:h="bold",icon:d,iconSize:p,disabled:m,isDestructive:f,isLoading:g,isExternalLink:v,className:y,text:b,fullWidth:w,...x}=e,j=(0,o.A)(l.A.button,y,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(d),[l.A.loading]:g,[l.A.regular]:"regular"===h,[l.A["full-width"]]:w,[l.A["is-icon-button"]]:Boolean(d)&&!r});x.ref=t;const k="normal"===c?20:16,S=v&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.A,{size:k,icon:a.A,className:l.A["external-icon"]}),(0,u.jsx)(n.VisuallyHidden,{as:"span",children:/* translators: accessibility text */
__("(opens in a new tab)","zero-bs-crm")})]}),C=v?"_blank":void 0,A=r?.[0]&&null!==r[0]&&"components-tooltip"!==r?.[0]?.props?.className;return(0,u.jsxs)(n.Button,{target:C,variant:s,className:(0,o.A)(j,{"has-text":!!d&&A}),icon:v?void 0:d,iconSize:p,disabled:m,"aria-disabled":m,isDestructive:f,text:b,...x,children:[g&&(0,u.jsx)(n.Spinner,{}),(0,u.jsx)("span",{children:r}),S]})});h.displayName="Button";const d=h},1215:(e,t,r)=>{"use strict";r.d(t,{m:()=>h});var n=r(8509),s=r(5918),i=r(7723),a=r(3287),o=r(4664),c=r(2679),l=r(6207),u=r(790);const __=i.__,h=()=>(0,u.jsxs)(a.BV,{children:[(0,u.jsx)(a.qh,{path:"/automations/:id?",element:(0,u.jsx)(o.A,{headline:__("Automations","zero-bs-crm"),subHeadline:__("Streamline your workflows with CRM Automations","zero-bs-crm"),children:(0,u.jsx)(s.A,{children:(0,u.jsx)(n.A,{children:(0,u.jsx)(l.c,{})})})})}),(0,u.jsx)(a.qh,{path:"*",element:(0,u.jsx)(c.q,{})})]})},1450:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(6817),s=r(698),i=class{#c;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.gn)(this.gcTime)&&(this.#c=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.S$?1/0:3e5))}clearGcTimeout(){this.#c&&(n.zs.clearTimeout(this.#c),this.#c=void 0)}}},1550:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={label:"zEHKq_jKu_m2EAPApQna","label--trigger":"IaR9quZ4vT0h2a9NUW7H","label--condition":"vavnjQzD5KTCiNTK5YXP","label--action":"la3G9ke6v13OjUqdKcoZ"}},1579:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n={...r(2278)}},1609:e=>{"use strict";e.exports=window.React},1745:(e,t,r)=>{"use strict";r.d(t,{C:()=>l});var n=r(1609),s=r(4173),i=r(7673),a=r(5875),o=r(3595),c=r(790);const l=e=>{const{workflows:t,refetchWorkflows:r}=e,[l,u]=(0,n.useState)("name"),[h,d]=(0,n.useState)("ascending"),p=(0,n.useCallback)(e=>()=>{d(e!==l?"ascending":"ascending"===h?"descending":"ascending"),u(e)},[l,u,h,d]),m=(0,o.N)(t,l,h);return(0,c.jsx)("div",{className:a.A.container,children:(0,c.jsxs)("table",{className:a.A.table,children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{className:a.A["header-row"],children:[(0,c.jsx)(i.d,{column:"checkbox"}),["name","status","added","trigger"].map(e=>(e=>(0,c.jsx)(i.d,{column:e,onClick:p(e),selectedForSort:l===e,sortDirection:h},e))(e)),(0,c.jsx)(i.d,{column:"edit"})]})}),(0,c.jsx)("tbody",{children:m.map(e=>(0,c.jsx)(s.K,{workflow:e,refetchWorkflows:r},e.id))})]})})}},1768:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(7143),s=r(162),i=r(5621),a=r(1579);const o=(0,n.createReduxStore)("crm",{reducer:i.F,actions:s.o,selectors:a.T});(0,n.register)(o)},1795:(e,t,r)=>{"use strict";r.d(t,{jG:()=>s});var n=r(6817).Zq;var s=function(){let e=[],t=0,r=e=>{e()},s=e=>{e()},i=n;const a=n=>{t?e.push(n):i(()=>{r(n)})};return{batch:n=>{let a;t++;try{a=n()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i(()=>{s(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{i=e}}}()},1866:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5573),s=r(790),i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},1883:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(7723),s=r(3022),i=r(1609),a=(r(5618),r(790));const __=n.__;class o extends i.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-help-outline","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"in this.props)return this.props.description;switch(e){default:return"";case"gridicons-audio":return __("Has audio","zero-bs-crm");case"gridicons-arrow-left":return __("Arrow left","zero-bs-crm");case"gridicons-arrow-right":return __("Arrow right","zero-bs-crm");case"gridicons-calendar":return __("Is an event","zero-bs-crm");case"gridicons-cart":return __("Is a product","zero-bs-crm");case"chevron-down":return __("Show filters","zero-bs-crm");case"gridicons-comment":return __("Matching comment","zero-bs-crm");case"gridicons-cross":return __("Close","zero-bs-crm");case"gridicons-domains":return __("Website","zero-bs-crm");case"gridicons-filter":return __("Toggle search filters","zero-bs-crm");case"gridicons-folder":return __("Category","zero-bs-crm");case"gridicons-help-outline":return __("Help","zero-bs-crm");case"gridicons-info":case"gridicons-info-outline":return __("Information","zero-bs-crm");case"gridicons-image-multiple":return __("Has multiple images","zero-bs-crm");case"gridicons-image":return __("Has an image","zero-bs-crm");case"gridicons-page":return __("Page","zero-bs-crm");case"gridicons-post":return __("Post","zero-bs-crm");case"gridicons-jetpack-search":case"gridicons-search":return __("Magnifying Glass","zero-bs-crm");case"gridicons-tag":return __("Tag","zero-bs-crm");case"gridicons-video":return __("Has a video","zero-bs-crm")}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})});case"gridicons-arrow-left":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})});case"gridicons-arrow-right":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})});case"gridicons-block":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})});case"gridicons-calendar":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})});case"gridicons-cart":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})});case"gridicons-checkmark":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})});case"gridicons-chevron-left":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M16.443 7.41L15.0399 6L9.06934 12L15.0399 18L16.443 16.59L11.8855 12L16.443 7.41Z"})});case"gridicons-chevron-right":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M10.2366 6L8.8335 7.41L13.391 12L8.8335 16.59L10.2366 18L16.2072 12L10.2366 6Z"})});case"gridicons-chevron-down":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})});case"gridicons-comment":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})});case"gridicons-computer":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})});case"gridicons-cross":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})});case"gridicons-domains":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215a49.088 49.088 0 00-.565-3.357A8.048 8.048 0 0118.918 8zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.318c.258-1.89.577-3.576.645-3.928C11.319 4.029 11.656 4 12 4s.681.029 1.014.072zM14 12c0 .598-.043 1.286-.109 2h-3.782c-.066-.714-.109-1.402-.109-2s.043-1.286.109-2h3.782c.066.714.109 1.402.109 2zM8.862 4.643A49.088 49.088 0 008.297 8H5.082a8.048 8.048 0 013.78-3.357zM4.263 10h3.821C8.033 10.668 8 11.344 8 12s.033 1.332.085 2H4.263C4.097 13.359 4 12.692 4 12s.098-1.359.263-2zm.819 6h3.215c.188 1.424.42 2.65.565 3.357A8.048 8.048 0 015.082 16zm5.904 3.928A77.282 77.282 0 0110.341 16h3.318a78.303 78.303 0 01-.645 3.928c-.333.043-.67.072-1.014.072s-.681-.029-1.014-.072zm4.152-.571c.145-.707.377-1.933.565-3.357h3.215a8.048 8.048 0 01-3.78 3.357zM19.737 14h-3.821c.051-.668.084-1.344.084-2s-.033-1.332-.085-2h3.821c.166.641.264 1.308.264 2s-.097 1.359-.263 2z"})});case"gridicons-filter":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"})});case"gridicons-folder":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})});case"gridicons-help-outline":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})});case"gridicons-image":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})});case"gridicons-image-multiple":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})});case"gridicons-info":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})});case"gridicons-info-outline":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})});case"gridicons-jetpack-search":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"})});case"gridicons-phone":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})});case"gridicons-pages":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})});case"gridicons-posts":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})});case"gridicons-search":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})});case"gridicons-star-outline":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})});case"gridicons-star":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})});case"gridicons-tag":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})});case"gridicons-video":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})});case"gridicons-lock":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("g",{id:"lock",children:(0,a.jsx)("path",{d:"M18,8h-1V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H6c-1.105,0-2,0.895-2,2v10c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V10 C20,8.895,19.105,8,18,8z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M13,15.723V18h-2v-2.277c-0.595-0.346-1-0.984-1-1.723 c0-1.105,0.895-2,2-2s2,0.895,2,2C14,14.738,13.595,15.376,13,15.723z"})}),(0,a.jsx)("g",{id:"Layer_1"})]});case"gridicons-external":return(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})})}}render(){const{size:e=24,className:t=""}=this.props,r=this.props.height||e,n=this.props.width||e,i=this.props.style||{height:r,width:n},o="gridicons-"+this.props.icon,c=(0,s.A)("gridicon",o,t,{"needs-offset":this.needsOffset(o,e)}),l=this.getSVGDescription(o);return(0,a.jsxs)("svg",{className:c,focusable:this.props.focusable,height:r,onClick:this.props.onClick,style:i,viewBox:"0 0 24 24",width:n,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"],children:[l?(0,a.jsx)("desc",{children:l}):null,this.renderIcon(o)]})}}const c=o},2278:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSelectedWorkflows:()=>s,getWorkflows:()=>n});const n=e=>e.automations.workflows,s=e=>e.automations.selectedWorkflows},2352:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});const n=(e={workflows:{},selectedWorkflows:[]},t)=>{switch(t.type){case"HYDRATE_WORKFLOWS":{if(!t.workflows)return e;const r=t.workflows.reduce((e,t)=>({...e,[t.id]:t}),{});return{...e,workflows:r}}case"ACTIVATE_WORKFLOW":{if(!t.id||!e.workflows[t.id])return e;const r={...e.workflows,[t.id]:{...e.workflows[t.id],active:!0}};return{...e,workflows:r}}case"DEACTIVATE_WORKFLOW":{if(!t.id||!e.workflows[t.id])return e;const r={...e.workflows,[t.id]:{...e.workflows[t.id],active:!1}};return{...e,workflows:r}}case"SET_ATTRIBUTE":{const{workflowId:r,stepId:n,attribute:s}=t;if(!r||!n||!s)return e;const i=e.workflows[r];if(!i)return e;const a=i.steps[n];if(a){const t={...a.attributes,[s.key]:s.value},r={...a,attributes:t},n={...i,steps:{...i.steps,[r.id]:r}},o={...e.workflows,[i.id]:n};return{...e,workflows:o}}return e}case"SELECT_WORKFLOW":return e.selectedWorkflows.includes(t.id)?e:{...e,selectedWorkflows:[...e.selectedWorkflows,t.id]};case"DESELECT_WORKFLOW":return{...e,selectedWorkflows:e.selectedWorkflows.filter(e=>e!==t.id)};case"SELECT_ALL_WORKFLOWS":return{...e,selectedWorkflows:Object.values(e.workflows).map(e=>e.id)};case"DESELECT_ALL_WORKFLOWS":return{...e,selectedWorkflows:[]};case"ACTIVATE_SELECTED_WORKFLOWS":{const t=e.selectedWorkflows.reduce((t,r)=>({...t,[r]:{...e.workflows[r],active:!0}}),{});return{...e,workflows:{...e.workflows,...t}}}case"DEACTIVATE_SELECTED_WORKFLOWS":{const t=e.selectedWorkflows.reduce((t,r)=>({...t,[r]:{...e.workflows[r],active:!1}}),{});return{...e,workflows:{...e.workflows,...t}}}default:return e}}},2455:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(4613),s=r(3488);const i=()=>(0,n.n)({mutationFn:s.$})},2464:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(5530),s=r(698),i=new class extends n.Q{#l;#u;#h;constructor(){super(),this.#h=e=>{if(!s.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#u||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#u?.(),this.#u=void 0)}setEventListener(e){this.#h=e,this.#u?.(),this.#u=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#l!==e&&(this.#l=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#l?this.#l:"hidden"!==globalThis.document?.visibilityState}}},2626:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(3262),s=r(790);const i=e=>{const{id:t,checked:r,onChange:i}=e;return(0,s.jsx)("input",{id:t,className:n.A.checkbox,type:"checkbox",checked:r,onChange:i})}},2679:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(1609),s=r(3287);const i=()=>{const e=(0,s.Zp)();return(0,n.useEffect)(()=>{e("/automations")}),null}},2770:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"admin-page":"sQdFdfxRQBdqmMsumUry","sub-headline":"r2QmDIYc8PfX0K_xVVXb"}},2947:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(5932),s=r(7723),i=r(3022),a=r(1609),o=r(8250),c=r(7142),l=r(8509),u=r(5918),h=r(532),d=r(790);const __=s.__,p=({children:e,className:t,moduleName:r=__("Jetpack","zero-bs-crm"),moduleNameHref:p,showHeader:m=!0,showFooter:f=!0,useInternalLinks:g=!1,showBackground:v=!0,sandboxedDomain:y="",apiRoot:b="",apiNonce:w="",optionalMenuItems:x,header:j})=>{(0,a.useEffect)(()=>{n.Ay.setApiRoot(b),n.Ay.setApiNonce(w)},[b,w]);const k=(0,i.A)(h.A["admin-page"],t,{[h.A.background]:v}),S=(0,a.useCallback)(async()=>{try{const e=await n.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,s.sprintf)(/* translators: %s: an error message. */
__("There was an error testing Jetpack. Error: %s","zero-bs-crm"),e.message))}},[]);return(0,d.jsxs)("div",{className:k,children:[m&&(0,d.jsx)(u.A,{horizontalSpacing:5,children:(0,d.jsxs)(l.A,{className:(0,i.A)(h.A["admin-page-header"],"jp-admin-page-header"),children:[j||(0,d.jsx)(c.A,{}),y&&(0,d.jsx)("code",{className:h.A["sandbox-domain-badge"],onClick:S,onKeyDown:S,role:"button",tabIndex:0,title:`Sandboxing via ${y}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,d.jsx)(u.A,{fluid:!0,horizontalSpacing:0,children:(0,d.jsx)(l.A,{children:e})}),f&&(0,d.jsx)(u.A,{horizontalSpacing:5,children:(0,d.jsx)(l.A,{children:(0,d.jsx)(o.A,{moduleName:r,moduleNameHref:p,menu:x,useInternalLinks:g})})})]})}},2997:()=>{"use strict"},3022:(e,t,r)=>{"use strict";function n(e){var t,r,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}r.d(t,{A:()=>s});const s=function(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(s&&(s+=" "),s+=t);return s}},3109:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6087),s=(0,n.forwardRef)(({icon:e,size:t=24,...r},s)=>(0,n.cloneElement)(e,{width:t,height:t,...r,ref:s}))},3167:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={global:"_fUXxnSp5pagKBp9gSN7"}},3205:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var n=r(698),s=r(4135),i=r(1795),a=r(5530),o=class extends a.Q{constructor(e={}){super(),this.config=e,this.#d=new Map}#d;build(e,t,r){const i=t.queryKey,a=t.queryHash??(0,n.F$)(i,t);let o=this.get(a);return o||(o=new s.X({client:e,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#d.has(e.queryHash)||(this.#d.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#d.get(e.queryHash);t&&(e.destroy(),t===e&&this.#d.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#d.get(e)}getAll(){return[...this.#d.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>(0,n.MK)(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n.MK)(e,t)):t}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}},3262:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={checkbox:"AMKow04Xmqtt8fbcIanu"}},3287:(e,t,r)=>{"use strict";var n;r.d(t,{BV:()=>_e,I9:()=>mt,Zp:()=>pe,g:()=>me,qh:()=>Te});var s=r(1609),i="popstate";function a(e={}){return p(function(e,t){let{pathname:r="/",search:n="",hash:s=""}=d(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),u("",{pathname:r,search:n,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:h(t))},function(e,t){c("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function o(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?d(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function d(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function p(e,t,r,n={}){let{window:s=document.defaultView,v5Compat:a=!1}=n,o=s.history,c="POP",h=null,d=p();function p(){return(o.state||{idx:null}).idx}function f(){c="POP";let e=p(),t=null==e?null:e-d;d=e,h&&h({action:c,location:v.location,delta:t})}function g(e){return m(e)}null==d&&(d=0,o.replaceState({...o.state,idx:d},""));let v={get action(){return c},get location(){return e(s,o)},listen(e){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(i,f),h=e,()=>{s.removeEventListener(i,f),h=null}},createHref:e=>t(s,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let n=u(v.location,e,t);r&&r(n,e),d=p()+1;let i=l(n,d),m=v.createHref(n);try{o.pushState(i,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(m)}a&&h&&h({action:c,location:v.location,delta:1})},replace:function(e,t){c="REPLACE";let n=u(v.location,e,t);r&&r(n,e),d=p();let s=l(n,d),i=v.createHref(n);o.replaceState(s,"",i),a&&h&&h({action:c,location:v.location,delta:0})},go:e=>o.go(e)};return v}function m(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),o(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:h(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}new WeakMap;function f(e,t,r="/"){return g(e,t,r,!1)}function g(e,t,r,n){let s=N(("string"==typeof t?d(t):t).pathname||"/",r);if(null==s)return null;let i=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=M(s);a=E(i[e],t,n)}return a}function v(e,t=[],r=[],n="",s=!1){let i=(e,i,a=s,c)=>{let l={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;o(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let u=F([n,l.relativePath]),h=r.concat(l);e.children&&e.children.length>0&&(o(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),v(e.children,t,h,u,a)),(null!=e.path||e.index)&&t.push({path:u,score:A(u,e.index),routesMeta:h})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of y(e.path))i(e,t,!0,r);else i(e,t)}),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return s?[i,""]:[i];let a=y(n.join("/")),o=[];return o.push(...a.map(e=>""===e?i:[i,e].join("/"))),s&&o.push(...a),o.map(t=>e.startsWith("/")&&""===t?"/":t)}var b=/^:[\w-]+$/,w=3,x=2,j=1,k=10,S=-2,C=e=>"*"===e;function A(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=S),t&&(n+=x),r.filter(e=>!C(e)).reduce((e,t)=>e+(b.test(t)?w:""===t?j:k),n)}function E(e,t,r=!1){let{routesMeta:n}=e,s={},i="/",a=[];for(let e=0;e<n.length;++e){let o=n[e],c=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",u=R({path:o.relativePath,caseSensitive:o.caseSensitive,end:c},l),h=o.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=R({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},l)),!u)return null;Object.assign(s,u.params),a.push({params:s,pathname:F([i,u.pathname]),pathnameBase:H(F([i,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(i=F([i,u.pathnameBase]))}return a}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=O(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),o=s.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=o[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=o[n];return e[t]=r&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function O(e,t=!1,r=!0){c("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),n]}function M(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,T=e=>z.test(e);function L(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function _(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function P(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function D(e){let t=P(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function I(e,t,r,n=!1){let s;"string"==typeof e?s=d(e):(s={...e},o(!s.pathname||!s.pathname.includes("?"),_("?","pathname","search",s)),o(!s.pathname||!s.pathname.includes("#"),_("#","pathname","hash",s)),o(!s.search||!s.search.includes("#"),_("#","search","hash",s)));let i,a=""===e||""===s.pathname,l=a?"/":s.pathname;if(null==l)i=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t="/"){let r,{pathname:n,search:s="",hash:i=""}="string"==typeof e?d(e):e;if(n)if(T(n))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),c(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?L(n.substring(1),"/"):L(n,t)}else r=t;return{pathname:r,search:Q(s),hash:q(i)}}(s,i),h=l&&"/"!==l&&l.endsWith("/"),p=(a||"."===l)&&r.endsWith("/");return u.pathname.endsWith("/")||!h&&!p||(u.pathname+="/"),u}var F=e=>e.join("/").replace(/\/\/+/g,"/"),H=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var W=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function $(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function U(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function J(e,t){let r=e;if("string"!=typeof r||!z.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,s=!1;if(V)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),i=N(n.pathname,t);n.origin===e.origin&&null!=i?r=i+n.search+n.hash:s=!0}catch(e){c(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:s,to:r}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var K=["POST","PUT","PATCH","DELETE"],B=(new Set(K),["GET",...K]);new Set(B),Symbol("ResetLoaderData");var G=s.createContext(null);G.displayName="DataRouter";var Z=s.createContext(null);Z.displayName="DataRouterState";var X=s.createContext(!1);function Y(){return s.useContext(X)}var ee=s.createContext({isTransitioning:!1});ee.displayName="ViewTransition";var te=s.createContext(new Map);te.displayName="Fetchers";var re=s.createContext(null);re.displayName="Await";var ne=s.createContext(null);ne.displayName="Navigation";var se=s.createContext(null);se.displayName="Location";var ie=s.createContext({outlet:null,matches:[],isDataRoute:!1});ie.displayName="Route";var ae=s.createContext(null);ae.displayName="RouteError";var oe=!0,ce="REACT_ROUTER_ERROR";function le(){return null!=s.useContext(se)}function ue(){return o(le(),"useLocation() may be used only in the context of a <Router> component."),s.useContext(se).location}var he="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function de(e){s.useContext(ne).static||s.useLayoutEffect(e)}function pe(){let{isDataRoute:e}=s.useContext(ie);return e?function(){let{router:e}=Ce("useNavigate"),t=Ee("useNavigate"),r=s.useRef(!1);return de(()=>{r.current=!0}),s.useCallback(async(n,s={})=>{c(r.current,he),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...s}))},[e,t])}():function(){o(le(),"useNavigate() may be used only in the context of a <Router> component.");let e=s.useContext(G),{basename:t,navigator:r}=s.useContext(ne),{matches:n}=s.useContext(ie),{pathname:i}=ue(),a=JSON.stringify(D(n)),l=s.useRef(!1);return de(()=>{l.current=!0}),s.useCallback((n,s={})=>{if(c(l.current,he),!l.current)return;if("number"==typeof n)return void r.go(n);let o=I(n,JSON.parse(a),i,"path"===s.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:F([t,o.pathname])),(s.replace?r.replace:r.push)(o,s.state,s)},[t,r,a,i,e])}()}s.createContext(null);function me(){let{matches:e}=s.useContext(ie),t=e[e.length-1];return t?t.params:{}}function fe(e,{relative:t}={}){let{matches:r}=s.useContext(ie),{pathname:n}=ue(),i=JSON.stringify(D(r));return s.useMemo(()=>I(e,JSON.parse(i),n,"path"===t),[e,i,n,t])}function ge(e,t,r,n,i){o(le(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=s.useContext(ne),{matches:l}=s.useContext(ie),u=l[l.length-1],h=u?u.params:{},p=u?u.pathname:"/",m=u?u.pathnameBase:"/",g=u&&u.route;if(oe){let e=g&&g.path||"";Me(p,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,y=ue();if(t){let e="string"==typeof t?d(t):t;o("/"===m||e.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=y;let b=v.pathname||"/",w=b;if("/"!==m){let e=m.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=f(e,{pathname:w});oe&&(c(g||null!=x,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),c(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let j=ke(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:F([m,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:F([m,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),l,r,n,i);return t&&j?s.createElement(se.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},j):j}function ve(){let e=Re(),t=$(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},o=null;return oe&&(console.error("Error handled by React Router default ErrorBoundary:",e),o=s.createElement(s.Fragment,null,s.createElement("p",null,"💿 Hey developer 👋"),s.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",s.createElement("code",{style:a},"ErrorBoundary")," or"," ",s.createElement("code",{style:a},"errorElement")," prop on your route."))),s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),r?s.createElement("pre",{style:i},r):null,o)}var ye=s.createElement(ve,null),be=class extends s.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ce}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new W(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?s.createElement(ie.Provider,{value:this.props.routeContext},s.createElement(ae.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?s.createElement(xe,{error:e},t):t}};be.contextType=X;var we=new WeakMap;function xe({children:e,error:t}){let{basename:r}=s.useContext(ne);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ce}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=we.get(t);if(n)throw n;let i=J(e.location,r);if(V&&!we.get(t)){if(!i.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw we.set(t,r),r}window.location.href=i.absoluteURL||i.to}return s.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function je({routeContext:e,match:t,children:r}){let n=s.useContext(G);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),s.createElement(ie.Provider,{value:e},r)}function ke(e,t=[],r=null,n=null,i=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,c=r?.errors;if(null!=c){let e=a.findIndex(e=>e.route.id&&void 0!==c?.[e.route.id]);o(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,u=-1;if(r)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||s){l=!0,a=u>=0?a.slice(0,u+1):[a[0]];break}}}let h=r&&n?(e,t)=>{n(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:U(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,i)=>{let o,d=!1,p=null,m=null;r&&(o=c&&n.route.id?c[n.route.id]:void 0,p=n.route.errorElement||ye,l&&(u<0&&0===i?(Me("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):u===i&&(d=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,i+1)),g=()=>{let t;return t=o?p:d?m:n.route.Component?s.createElement(n.route.Component,null):n.route.element?n.route.element:e,s.createElement(je,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===i)?s.createElement(be,{location:r.location,revalidation:r.revalidation,component:p,error:o,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:h}):g()},null)}function Se(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ce(e){let t=s.useContext(G);return o(t,Se(e)),t}function Ae(e){let t=s.useContext(Z);return o(t,Se(e)),t}function Ee(e){let t=function(e){let t=s.useContext(ie);return o(t,Se(e)),t}(e),r=t.matches[t.matches.length-1];return o(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Re(){let e=s.useContext(ae),t=Ae("useRouteError"),r=Ee("useRouteError");return void 0!==e?e:t.errors?.[r]}var Oe={};function Me(e,t,r){t||Oe[e]||(Oe[e]=!0,c(!1,r))}var Ne={};function ze(e,t){e||Ne[t]||(Ne[t]=!0,console.warn(t))}(n||(n=r.t(s,2))).useOptimistic;s.memo(function({routes:e,future:t,state:r,onError:n}){return ge(e,void 0,r,n,t)});function Te(e){o(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Le({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,unstable_useTransitions:l}){o(!le(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),h=s.useMemo(()=>({basename:u,navigator:i,static:a,unstable_useTransitions:l,future:{}}),[u,i,a,l]);"string"==typeof r&&(r=d(r));let{pathname:p="/",search:m="",hash:f="",state:g=null,key:v="default"}=r,y=s.useMemo(()=>{let e=N(p,u);return null==e?null:{location:{pathname:e,search:m,hash:f,state:g,key:v},navigationType:n}},[u,p,m,f,g,v,n]);return c(null!=y,`<Router basename="${u}"> is not able to match the URL "${p}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==y?null:s.createElement(ne.Provider,{value:h},s.createElement(se.Provider,{children:t,value:y}))}function _e({children:e,location:t}){return ge(Pe(e),t)}s.Component;function Pe(e,t=[]){let r=[];return s.Children.forEach(e,(e,n)=>{if(!s.isValidElement(e))return;let i=[...t,n];if(e.type===s.Fragment)return void r.push.apply(r,Pe(e.props.children,i));o(e.type===Te,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),o(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Pe(e.props.children,i)),r.push(a)}),r}var De="get",Ie="application/x-www-form-urlencoded";function Fe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var He=null;var Qe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qe(e){return null==e||Qe.has(e)?e:(c(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ie}"`),null)}function We(e,t){let r,n,s,i,a;if(Fe(o=e)&&"form"===o.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?N(a,t):null,r=e.getAttribute("method")||De,s=qe(e.getAttribute("enctype"))||Ie,i=new FormData(e)}else if(function(e){return Fe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||a.getAttribute("action");if(n=o?N(o,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||De,s=qe(e.getAttribute("formenctype"))||qe(a.getAttribute("enctype"))||Ie,i=new FormData(a,e),!function(){if(null===He)try{new FormData(document.createElement("form"),0),He=!1}catch(e){He=!0}return He}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,n)}}else{if(Fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=De,n=null,s=Ie,a=e}var o;return i&&"text/plain"===s&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:s,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function $e(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ue(e,t,r,n){let s="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${n}`:s.pathname=`${s.pathname}.${n}`:"/"===s.pathname?s.pathname=`_root.${n}`:t&&"/"===N(s.pathname,t)?s.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${n}`,s}async function Ve(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Je(e){return null!=e&&"string"==typeof e.page}function Ke(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Be(e,t,r,n,s,i){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,o=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||o(e,t)):"data"===i?t.filter((t,i)=>{let c=n.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,i)||o(t,i))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Ge(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let s=[n.module];return n.clientActionModule&&(s=s.concat(n.clientActionModule)),n.clientLoaderModule&&(s=s.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(s=s.concat(n.hydrateFallbackModule)),n.imports&&(s=s.concat(n.imports)),s}).flat(1),[...new Set(n)];var n}function Ze(e,t){let r=new Set,n=new Set(t);return e.reduce((e,s)=>{if(t&&!Je(s)&&"script"===s.as&&s.href&&n.has(s.href))return e;let i=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(s));return r.has(i)||(r.add(i),e.push({key:i,link:s})),e},[])}function Xe(e,t){return"lazy"===e.mode&&!0===t}function Ye(){let e=s.useContext(G);return $e(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function et(){let e=s.useContext(Z);return $e(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var tt=s.createContext(void 0);function rt(){let e=s.useContext(tt);return $e(e,"You must render this element inside a <HydratedRouter> element"),e}function nt(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function st(e,t,r){if(r&&!ct)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}tt.displayName="FrameworkContext";function it({page:e,...t}){let{router:r}=Ye(),n=s.useMemo(()=>f(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?s.createElement(ot,{page:e,matches:n,...t}):null}function at(e){let{manifest:t,routeModules:r}=rt(),[n,i]=s.useState([]);return s.useEffect(()=>{let n=!1;return async function(e,t,r){return Ze((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await Ve(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(Ke).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||i(e)}),()=>{n=!0}},[e,t,r]),n}function ot({page:e,matches:t,...r}){let n=ue(),{future:i,manifest:a,routeModules:o}=rt(),{basename:c}=Ye(),{loaderData:l,matches:u}=et(),h=s.useMemo(()=>Be(e,t,u,a,n,"data"),[e,t,u,a,n]),d=s.useMemo(()=>Be(e,t,u,a,n,"assets"),[e,t,u,a,n]),p=s.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let r=new Set,s=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!h.some(t=>t.route.id===e.route.id)&&e.route.id in l&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:r.add(e.route.id))}),0===r.size)return[];let u=Ue(e,c,i.unstable_trailingSlashAwareDataRequests,"data");return s&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[c,i.unstable_trailingSlashAwareDataRequests,l,n,a,h,t,e,o]),m=s.useMemo(()=>Ge(d,a),[d,a]),f=at(d);return s.createElement(s.Fragment,null,p.map(e=>s.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),m.map(e=>s.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),f.map(({key:e,link:t})=>s.createElement("link",{key:e,nonce:r.nonce,...t})))}var ct=!1;function lt(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:i,routeDiscovery:a,ssr:o}=rt(),{router:c,static:l,staticContext:u}=Ye(),{matches:h}=et(),d=Y(),p=Xe(a,o);i&&(i.didRenderScripts=!0);let m=st(h,null,n);s.useEffect(()=>{ct=!0},[]);let g=s.useMemo(()=>{if(d)return null;let n=u?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${m.map((e,r)=>{let n=`route${r}`,s=t.routes[e.route.id];$e(s,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:o,hydrateFallbackModule:c,module:l}=s,u=[...i?[{module:i,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...o?[{module:o,varName:`${n}_clientMiddleware`}]:[],...c?[{module:c,varName:`${n}_HydrateFallback`}]:[],{module:l,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(l)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),s=r.state.location.pathname.split("/").filter(Boolean),i=["/"];for(s.pop();s.length>0;)i.push(`/${s.join("/")}`),s.pop();i.forEach(e=>{let t=f(r.routes,e,r.basename);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n  window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return s.createElement(s.Fragment,null,s.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n},type:void 0}),s.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))},[]),v=ct||d?[]:(y=t.entry.imports.concat(Ge(m,t,{includeHydrateFallback:!0})),[...new Set(y)]);var y;let b="object"==typeof t.sri?t.sri:{};return ze(!d,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ct||d?null:s.createElement(s.Fragment,null,"object"==typeof t.sri?s.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,p?null:s.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],suppressHydrationWarning:!0}),s.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],suppressHydrationWarning:!0}),v.map(t=>s.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],suppressHydrationWarning:!0})),g)}function ut(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}s.Component;function ht({error:e,isOutsideRemixApp:t}){console.error(e);let r,n=s.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if($(e))return s.createElement(dt,{title:"Unhandled Thrown Response!"},s.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),oe?n:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return s.createElement(dt,{title:"Application Error!",isOutsideRemixApp:t},s.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),s.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function dt({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:i}=rt();return i.root?.Layout&&!r?n:s.createElement("html",{lang:"en"},s.createElement("head",null,s.createElement("meta",{charSet:"utf-8"}),s.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),s.createElement("title",null,e)),s.createElement("body",null,s.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?s.createElement(lt,null):null)))}var pt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{pt&&(window.__reactRouterVersion="7.12.0")}catch(e){}function mt({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=s.useRef();null==i.current&&(i.current=a({window:n,v5Compat:!0}));let o=i.current,[c,l]=s.useState({action:o.action,location:o.location}),u=s.useCallback(e=>{!1===r?l(e):s.startTransition(()=>l(e))},[r]);return s.useLayoutEffect(()=>o.listen(u),[o,u]),s.createElement(Le,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:r})}var ft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gt=s.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:i,replace:a,state:c,target:l,to:u,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:m,...f},g){let{basename:v,unstable_useTransitions:y}=s.useContext(ne),b="string"==typeof u&&ft.test(u),w=J(u,v),x=function(e,{relative:t}={}){o(le(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=s.useContext(ne),{hash:i,pathname:a,search:c}=fe(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:F([r,a])),n.createHref({pathname:l,search:c,hash:i})}(u=w.to,{relative:n}),[j,k,S]=function(e,t){let r=s.useContext(tt),[n,i]=s.useState(!1),[a,o]=s.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:u,onMouseLeave:h,onTouchStart:d}=t,p=s.useRef(null);s.useEffect(()=>{if("render"===e&&o(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),s.useEffect(()=>{if(n){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[n]);let m=()=>{i(!0)},f=()=>{i(!1),o(!1)};return r?"intent"!==e?[a,p,{}]:[a,p,{onFocus:nt(c,m),onBlur:nt(l,f),onMouseEnter:nt(u,m),onMouseLeave:nt(h,f),onTouchStart:nt(d,m)}]:[!1,p,{}]}(r,f),C=function(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let u=pe(),d=ue(),p=fe(e,{relative:a});return s.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==r?r:h(d)===h(p),f=()=>u(e,{replace:t,state:n,preventScrollReset:i,relative:a,viewTransition:o,unstable_defaultShouldRevalidate:c});l?s.startTransition(()=>f()):f()}},[d,u,p,r,n,t,e,i,a,o,c,l])}(u,{replace:a,state:c,target:l,preventScrollReset:d,relative:n,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:y});let A=s.createElement("a",{...f,...S,href:w.absoluteURL||x,onClick:w.isExternal||i?e:function(t){e&&e(t),t.defaultPrevented||C(t)},ref:ut(g,k),target:l,"data-discover":b||"render"!==t?void 0:"true"});return j&&!b?s.createElement(s.Fragment,null,A,s.createElement(it,{page:x})):A});gt.displayName="Link",s.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:i,to:a,viewTransition:c,children:l,...u},h){let d=fe(a,{relative:u.relative}),p=ue(),m=s.useContext(Z),{navigator:f,basename:g}=s.useContext(ne),v=null!=m&&function(e,{relative:t}={}){let r=s.useContext(ee);o(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=bt("useViewTransitionState"),i=fe(e,{relative:t});if(!r.isTransitioning)return!1;let a=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,c=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=R(i.pathname,c)||null!=R(i.pathname,a)}(d)&&!0===c,y=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,b=p.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=N(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let j,k=b===y||!n&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!n&&w.startsWith(y)&&"/"===w.charAt(y.length)),C={isActive:k,isPending:S,isTransitioning:v},A=k?e:void 0;j="function"==typeof r?r(C):[r,k?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(C):i;return s.createElement(gt,{...u,"aria-current":A,className:j,ref:h,style:E,to:a,viewTransition:c},"function"==typeof l?l(C):l)}).displayName="NavLink";var vt=s.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:c=De,action:l,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:f,...g},v)=>{let{unstable_useTransitions:y}=s.useContext(ne),b=jt(),w=function(e,{relative:t}={}){let{basename:r}=s.useContext(ne),n=s.useContext(ie);o(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...fe(e||".",{relative:t})},c=ue();if(null==e){a.search=c.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(a.pathname="/"===a.pathname?r:F([r,a.pathname]));return h(a)}(l,{relative:d}),x="get"===c.toLowerCase()?"get":"post",j="string"==typeof l&&ft.test(l);return s.createElement("form",{ref:v,method:x,action:w,onSubmit:n?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,o=n?.getAttribute("formmethod")||c,l=()=>b(n||e.currentTarget,{fetcherKey:t,method:o,navigate:r,replace:i,state:a,relative:d,preventScrollReset:p,viewTransition:m,unstable_defaultShouldRevalidate:f});y&&!1!==r?s.startTransition(()=>l()):l()},...g,"data-discover":j||"render"!==e?void 0:"true"})});function yt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bt(e){let t=s.useContext(G);return o(t,yt(e)),t}vt.displayName="Form";var wt=0,xt=()=>`__${String(++wt)}__`;function jt(){let{router:e}=bt("useSubmit"),{basename:t}=s.useContext(ne),r=Ee("useRouteId"),n=e.fetch,i=e.navigate;return s.useCallback(async(e,s={})=>{let{action:a,method:o,encType:c,formData:l,body:u}=We(e,t);if(!1===s.navigate){let e=s.fetcherKey||xt();await n(e,r,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:l,body:u,formMethod:s.method||o,formEncType:s.encType||c,flushSync:s.flushSync})}else await i(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:l,body:u,formMethod:s.method||o,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}},3370:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},3371:(e,t,r)=>{"use strict";r.r(t),r.d(t,{activateSelectedWorkflows:()=>h,activateWorkflow:()=>s,deactivateSelectedWorkflows:()=>d,deactivateWorkflow:()=>i,deselectAllWorkflows:()=>u,deselectWorkflow:()=>c,hydrateWorkflows:()=>n,selectAllWorkflows:()=>l,selectWorkflow:()=>o,setAttribute:()=>a});const n=e=>({type:"HYDRATE_WORKFLOWS",workflows:e}),s=e=>({type:"ACTIVATE_WORKFLOW",id:e}),i=e=>({type:"DEACTIVATE_WORKFLOW",id:e}),a=(e,t,r,n)=>({type:"SET_ATTRIBUTE",workflowId:e,stepId:t,attribute:{key:r,value:n}}),o=e=>({type:"SELECT_WORKFLOW",id:e}),c=e=>({type:"DESELECT_WORKFLOW",id:e}),l=()=>({type:"SELECT_ALL_WORKFLOWS"}),u=()=>({type:"DESELECT_ALL_WORKFLOWS"}),h=()=>({type:"ACTIVATE_SELECTED_WORKFLOWS"}),d=()=>({type:"DEACTIVATE_SELECTED_WORKFLOWS"})},3397:(e,t,r)=>{"use strict";r.d(t,{$:()=>u});var n=r(2464),s=r(1795),i=r(4135),a=r(5530),o=r(4796),c=r(698),l=r(6817),u=class extends a.Q{constructor(e,t){super(),this.options=t,this.#p=e,this.#m=null,this.#f=(0,o.T)(),this.bindMethods(),this.setOptions(t)}#p;#g=void 0;#v=void 0;#y=void 0;#b;#w;#f;#m;#x;#j;#k;#S;#C;#A;#E=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),h(this.#g,this.options)?this.#R():this.updateResult(),this.#O())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#M(),this.#N(),this.#g.removeObserver(this)}setOptions(e){const t=this.options,r=this.#g;if(this.options=this.#p.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.Eh)(this.options.enabled,this.#g))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#z(),this.#g.setOptions(this.options),t._defaulted&&!(0,c.f8)(this.options,t)&&this.#p.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});const n=this.hasListeners();n&&p(this.#g,r,this.options,t)&&this.#R(),this.updateResult(),!n||this.#g===r&&(0,c.Eh)(this.options.enabled,this.#g)===(0,c.Eh)(t.enabled,this.#g)&&(0,c.d2)(this.options.staleTime,this.#g)===(0,c.d2)(t.staleTime,this.#g)||this.#T();const s=this.#L();!n||this.#g===r&&(0,c.Eh)(this.options.enabled,this.#g)===(0,c.Eh)(t.enabled,this.#g)&&s===this.#A||this.#_(s)}getOptimisticResult(e){const t=this.#p.getQueryCache().build(this.#p,e),r=this.createResult(t,e);return function(e,t){if(!(0,c.f8)(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#y=r,this.#w=this.options,this.#b=this.#g.state),r}getCurrentResult(){return this.#y}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#f.status||this.#f.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#E.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#p.defaultQueryOptions(e),r=this.#p.getQueryCache().build(this.#p,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#R({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#R(e){this.#z();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c.lQ)),t}#T(){this.#M();const e=(0,c.d2)(this.options.staleTime,this.#g);if(c.S$||this.#y.isStale||!(0,c.gn)(e))return;const t=(0,c.j3)(this.#y.dataUpdatedAt,e)+1;this.#S=l.zs.setTimeout(()=>{this.#y.isStale||this.updateResult()},t)}#L(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#_(e){this.#N(),this.#A=e,!c.S$&&!1!==(0,c.Eh)(this.options.enabled,this.#g)&&(0,c.gn)(this.#A)&&0!==this.#A&&(this.#C=l.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#R()},this.#A))}#O(){this.#T(),this.#_(this.#L())}#M(){this.#S&&(l.zs.clearTimeout(this.#S),this.#S=void 0)}#N(){this.#C&&(l.zs.clearInterval(this.#C),this.#C=void 0)}createResult(e,t){const r=this.#g,n=this.options,s=this.#y,a=this.#b,l=this.#w,u=e!==r?e.state:this.#v,{state:d}=e;let f,g={...d},v=!1;if(t._optimisticResults){const s=this.hasListeners(),a=!s&&h(e,t),o=s&&p(e,r,t,n);(a||o)&&(g={...g,...(0,i.k)(d.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;f=g.data;let x=!1;if(void 0!==t.placeholderData&&void 0===f&&"pending"===w){let e;s?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=s.data,x=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#k?.state.data,this.#k):t.placeholderData,void 0!==e&&(w="success",f=(0,c.pl)(s?.data,e,t),v=!0)}if(t.select&&void 0!==f&&!x)if(s&&f===a?.data&&t.select===this.#x)f=this.#j;else try{this.#x=t.select,f=t.select(f),f=(0,c.pl)(s?.data,f,t),this.#j=f,this.#m=null}catch(e){this.#m=e}this.#m&&(y=this.#m,f=this.#j,b=Date.now(),w="error");const j="fetching"===g.fetchStatus,k="pending"===w,S="error"===w,C=k&&j,A=void 0!==f,E={status:w,fetchStatus:g.fetchStatus,isPending:k,isSuccess:"success"===w,isError:S,isInitialLoading:C,isLoading:C,data:f,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>u.dataUpdateCount||g.errorUpdateCount>u.errorUpdateCount,isFetching:j,isRefetching:j&&!k,isLoadingError:S&&!A,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:S&&A,isStale:m(e,t),refetch:this.refetch,promise:this.#f,isEnabled:!1!==(0,c.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===E.status?e.reject(E.error):void 0!==E.data&&e.resolve(E.data)},n=()=>{const e=this.#f=E.promise=(0,o.T)();t(e)},s=this.#f;switch(s.status){case"pending":e.queryHash===r.queryHash&&t(s);break;case"fulfilled":"error"!==E.status&&E.data===s.value||n();break;case"rejected":"error"===E.status&&E.error===s.reason||n()}}return E}updateResult(){const e=this.#y,t=this.createResult(this.#g,this.options);if(this.#b=this.#g.state,this.#w=this.options,void 0!==this.#b.data&&(this.#k=this.#g),(0,c.f8)(t,e))return;this.#y=t;this.#P({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#E.size)return!0;const n=new Set(r??this.#E);return this.options.throwOnError&&n.add("error"),Object.keys(this.#y).some(t=>{const r=t;return this.#y[r]!==e[r]&&n.has(r)})})()})}#z(){const e=this.#p.getQueryCache().build(this.#p,this.options);if(e===this.#g)return;const t=this.#g;this.#g=e,this.#v=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#O()}#P(e){s.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#y)}),this.#p.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function h(e,t){return function(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,c.Eh)(t.enabled,e)&&"static"!==(0,c.d2)(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&m(e,t)}return!1}function p(e,t,r,n){return(e!==t||!1===(0,c.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&e.isStaleByTime((0,c.d2)(t.staleTime,e))}},3488:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,e:()=>a});var n=r(6258);const s=`${jpcrmAutomationsInitialState.apiRoot}jetpack-crm/v4`,i=async(e,t)=>{const r={headers:{"X-WP-Nonce":jpcrmAutomationsInitialState.apiNonce,"Content-Type":"application/json"},method:"GET"};t&&(r.method="POST",r.body=JSON.stringify(t));const n=await fetch(s+e,r);return await n.json()},a=e=>async()=>{const t=await i("/automation/workflows");return t&&e(t),t},o=async e=>{const t=(0,n.Q)(e);return await i(`/automation/workflows/${e.id}`,t)}},3595:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});const n={name:e=>e.name,status:e=>e.active,added:e=>e.added,trigger:e=>e.triggers[0].description??""},s=(e,t,r)=>[...e].sort((e,s)=>{const i=n[t](e),a=n[t](s);let o=0;return i<a&&(o=-1),i>a&&(o=1),"descending"===r&&(o*=-1),o})},3832:e=>{"use strict";e.exports=window.wp.url},3924:(e,t,r)=>{"use strict";function n(e,t={}){const r={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,r.url=encodeURIComponent(e)}else r.source=encodeURIComponent(e);for(const e in t)r[e]=encodeURIComponent(t[e]);!Object.keys(r).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(r.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(r.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(r).map(e=>e+"="+r[e]).join("&")}r.d(t,{A:()=>n})},4105:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(1609),s=n.createContext(!1),i=()=>n.useContext(s);s.Provider},4135:(e,t,r)=>{"use strict";r.d(t,{X:()=>o,k:()=>c});var n=r(698),s=r(1795),i=r(4610),a=r(1450),o=class extends a.k{#D;#I;#F;#p;#H;#r;#Q;constructor(e){super(),this.#Q=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#p=e.client,this.#F=this.#p.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#D=u(this.options),this.state=e.state??this.#D,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#H?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=u(this.options);void 0!==e.data&&(this.setState(l(e.data,e.dataUpdatedAt)),this.#D=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#F.remove(this)}setData(e,t){const r=(0,n.pl)(this.state.data,e,this.options);return this.#q({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#q({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#H?.promise;return this.#H?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#D)}isActive(){return this.observers.some(e=>!1!==(0,n.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#H?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#H?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#F.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#H&&(this.#Q?this.#H.cancel({revert:!0}):this.#H.cancelRetry()),this.scheduleGc()),this.#F.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#q({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#H?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#H)return this.#H.continueRetry(),this.#H.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#Q=!0,r.signal)})},a=()=>{const e=(0,n.ZM)(this.options,t),r=(()=>{const e={client:this.#p,queryKey:this.queryKey,meta:this.meta};return s(e),e})();return this.#Q=!1,this.options.persister?this.options.persister(e,r,this):e(r)},o=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#p,state:this.state,fetchFn:a};return s(e),e})();this.options.behavior?.onFetch(o,this),this.#I=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||this.#q({type:"fetch",meta:o.fetchOptions?.meta}),this.#H=(0,i.II)({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof i.cc&&e.revert&&this.setState({...this.#I,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#q({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#q({type:"pause"})},onContinue:()=>{this.#q({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const e=await this.#H.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#F.config.onSuccess?.(e,this),this.#F.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.cc){if(e.silent)return this.#H.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#q({type:"error",error:e}),this.#F.config.onError?.(e,this),this.#F.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#q(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...l(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#I=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#F.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function l(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},4158:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(4352),s=r(1795),i=r(5530),a=r(698),o=class extends i.Q{#p;#y=void 0;#W;#$;constructor(e,t){super(),this.#p=e,this.setOptions(t),this.bindMethods(),this.#U()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#p.defaultMutationOptions(e),(0,a.f8)(this.options,t)||this.#p.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#W,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.EN)(t.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():"pending"===this.#W?.state.status&&this.#W.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#W?.removeObserver(this)}onMutationUpdate(e){this.#U(),this.#P(e)}getCurrentResult(){return this.#y}reset(){this.#W?.removeObserver(this),this.#W=void 0,this.#U(),this.#P()}mutate(e,t){return this.#$=t,this.#W?.removeObserver(this),this.#W=this.#p.getMutationCache().build(this.#p,this.options),this.#W.addObserver(this),this.#W.execute(e)}#U(){const e=this.#W?.state??(0,n.$)();this.#y={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#P(e){s.jG.batch(()=>{if(this.#$&&this.hasListeners()){const t=this.#y.variables,r=this.#y.context,n={client:this.#p,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#$.onSuccess?.(e.data,t,r,n),this.#$.onSettled?.(e.data,null,t,r,n)):"error"===e?.type&&(this.#$.onError?.(e.error,t,r,n),this.#$.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(e=>{e(this.#y)})})}}},4173:(e,t,r)=>{"use strict";r.d(t,{K:()=>f});var n=r(597),s=r(8316),i=r(1112),a=r(7143),o=r(7723),c=r(1609),l=r(3287),u=r(2455),h=r(1768),d=r(2626),p=r(5307),m=r(790);const __=o.__,f=e=>{const{workflow:t,refetchWorkflows:r}=e,o=(0,a.useSelect)(e=>e(h.M).getSelectedWorkflows(),[]).includes(t.id),{mutate:f}=(0,u.J)(),g=(0,c.useCallback)(()=>{o?(0,a.dispatch)(h.M).deselectWorkflow(t.id):(0,a.dispatch)(h.M).selectWorkflow(t.id)},[o,t.id]),v=(0,c.useCallback)(()=>{f({...t,active:!t.active},{onSuccess:()=>r()})},[t,f,r]),y=(0,l.Zp)(),b=(0,c.useCallback)(()=>{y(`/automations/${t.id}`,{replace:!0})},[y,t.id]),w=new Date(1e3*t.created_at).toLocaleDateString();return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("tr",{className:p.A.row,children:[(0,m.jsx)("td",{children:(0,m.jsx)(d.S,{id:"workflow_"+t.id,checked:o,onChange:g})}),(0,m.jsx)("td",{className:p.A.name,children:t.name}),(0,m.jsx)("td",{className:p.A["status-toggle"],children:(0,m.jsx)(s.A,{checked:t.active,onChange:v,label:__("Active","zero-bs-crm")})}),(0,m.jsx)("td",{className:p.A["added-date"],children:w}),(0,m.jsx)("td",{className:p.A["trigger-description"],children:(0,m.jsx)("div",{className:p.A.triggers,children:t.triggers.map(e=>(0,m.jsxs)("div",{className:p.A.triggers__item,children:[e.title,(0,m.jsx)(n.A,{title:e.title,className:p.A["icon-container"],iconClassName:p.A["popover-icon"],placement:"bottom-end",iconSize:16,offset:4,children:e.description})]},e.slug))})}),(0,m.jsx)("td",{className:p.A["edit-button"],children:(0,m.jsx)(i.A,{variant:"secondary",onClick:b,children:__("Edit","zero-bs-crm")})})]})})}},4215:(e,t,r)=>{"use strict";r.d(t,{P:()=>d});var n=r(6427),s=r(7143),i=r(7723),a=r(5673),o=r(1609),c=r(2455),l=r(1768),u=r(4243),h=r(790);const __=i.__,d=({refetchWorkflows:e})=>{const t=(0,h.jsxs)("div",{className:u.A.icon,children:[(0,h.jsx)("div",{className:u.A.text,children:__("Bulk action","zero-bs-crm")}),a.A]}),r=(0,s.useSelect)(e=>e(l.M).getSelectedWorkflows(),[]),i=(0,s.useSelect)(e=>e(l.M).getWorkflows(),[]),{mutate:d}=(0,c.J)(),p=(0,o.useCallback)(t=>()=>{for(const t of r){const r=i[t];d({...r,active:!0},{onSuccess:()=>e()})}t()},[r,i,d,e]),m=(0,o.useCallback)(t=>()=>{for(const t of r){const r=i[t];d({...r,active:!1},{onSuccess:()=>e()})}t()},[r,i,d,e]);return(0,h.jsx)(n.DropdownMenu,{className:u.A["dropdown-menu"],icon:t,label:"Select a bulk action.",children:({onClose:e})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(n.MenuItem,{onClick:p(e),children:__("Activate","zero-bs-crm")}),(0,h.jsx)(n.MenuItem,{onClick:m(e),children:__("Deactivate","zero-bs-crm")})]})})}},4243:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"jp-wrap":"tSWX81q94nDrK9QU93pV","jp-row":"AHzmPgwfM5AcdZZnP_Bz","sm-col-span-1":"cdAKEkkG9n3pehocpuQ9","sm-col-span-2":"t32u7UocRrwM2Vf0XsjA","sm-col-span-3":"_LGd2IpOL9U_NGEX6345","sm-col-span-4":"m_9lLLA0SJT3wnq5RRlM","md-col-span-1":"JRyCu5ZIqYDtTA_HmaLx","md-col-span-2":"SdlCURTXHFUWGGDx6txh","md-col-span-3":"pruTfTb3qhKYqBcafU78","md-col-span-4":"h04tHcvRzFAuLusyjcmm","md-col-span-5":"k3emoj_dl4DHVGNE01bZ","md-col-span-6":"eBVurhT5eZgmgKmSJEhZ","md-col-span-7":"dyZs6eR2gN3PxOwZMHC_","md-col-span-8":"yNZJANx1k_KH6mx9zEvI","lg-col-span-1":"IGLHOUUS0CFq062kvS20","lg-col-span-2":"T0mYs0COok0WNUwNOEnk","lg-col-span-3":"LeLGV9TjxQtsspPS_kZA","lg-col-span-4":"TGrZpBc4SsBoTknM_osZ","lg-col-span-5":"gnMfOlhWAf4DmCjkfNez","lg-col-span-6":"_J5QJogVo0Y0zWE7Pj2F","lg-col-span-7":"VoT_RK_3aJtvsSdFy8LT","lg-col-span-8":"Plc1kNzvjdxLABZgXcgJ","lg-col-span-9":"GuMy74g3iVf0nXjcyMAf","lg-col-span-10":"Sld7kcZnhrM8lNW5n3VG","lg-col-span-11":"SJ7HkblUbvPMkAO6VRpZ","lg-col-span-12":"NPUPY892SZq0J6le3ELi","md-col-span-0":"x7AHEyXUh8HehedNNplg","sm-col-span-0":"yvg42AkS5nletiMAAo3Q","jp-cut":"wpPllmdqEFx5s2pj4zpN","dropdown-menu":"Q7qEIuM_owv8VRU3vwFW",icon:"ZjBLtGK_r1ZJAk_R_awX",text:"pF8ascRUekRym1uNUYmo"}},4352:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,s:()=>a});var n=r(1795),s=r(1450),i=r(4610),a=class extends s.k{#p;#V;#t;#H;constructor(e){super(),this.#p=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#V=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#V.includes(e)||(this.#V.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#V=this.#V.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#V.length||("pending"===this.state.status?this.scheduleGc():this.#t.remove(this))}continue(){return this.#H?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#q({type:"continue"})},r={client:this.#p,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#H=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#q({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#q({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n="pending"===this.state.status,s=!this.#H.canStart();try{if(n)t();else{this.#q({type:"pending",variables:e,isPaused:s}),await(this.#t.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#q({type:"pending",context:t,variables:e,isPaused:s})}const i=await this.#H.start();return await(this.#t.config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(this.#t.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),this.#q({type:"success",data:i}),i}catch(t){try{throw await(this.#t.config.onError?.(t,e,this.state.context,this,r)),await(this.options.onError?.(t,e,this.state.context,r)),await(this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(void 0,t,e,this.state.context,r)),t}finally{this.#q({type:"error",error:t})}}finally{this.#t.runNext(this)}}#q(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#V.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},4478:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(7723),s=r(3022),i=r(1550),a=r(790);const _x=n._x,o=({type:e,className:t})=>{let r;switch(e){case"trigger":r=_x("Trigger","automations","zero-bs-crm");break;case"condition":r=_x("Condition","automations","zero-bs-crm");break;case"action":r=_x("Action","automations","zero-bs-crm");break;default:return`${e} is not implemented`}const n=(0,s.A)(i.A.label,i.A[`label--${e}`],t);return(0,a.jsx)("div",{className:n,children:r})}},4610:(e,t,r)=>{"use strict";r.d(t,{II:()=>u,cc:()=>l,v_:()=>c});var n=r(2464),s=r(5873),i=r(4796),a=r(698);function o(e){return Math.min(1e3*2**e,3e4)}function c(e){return"online"!==(e??"online")||s.t.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let t,r=!1,u=0;const h=(0,i.T)(),d=()=>"pending"!==h.status,p=()=>n.m.isFocused()&&("always"===e.networkMode||s.t.isOnline())&&e.canRun(),m=()=>c(e.networkMode)&&e.canRun(),f=e=>{d()||(t?.(),h.resolve(e))},g=e=>{d()||(t?.(),h.reject(e))},v=()=>new Promise(r=>{t=e=>{(d()||p())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,d()||e.onContinue?.()}),y=()=>{if(d())return;let t;const n=0===u?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(d())return;const n=e.retry??(a.S$?0:3),s=e.retryDelay??o,i="function"==typeof s?s(u,t):s,c=!0===n||"number"==typeof n&&u<n||"function"==typeof n&&n(u,t);!r&&c?(u++,e.onFail?.(u,t),(0,a.yy)(i).then(()=>p()?void 0:v()).then(()=>{r?g(t):y()})):g(t)})};return{promise:h,status:()=>h.status,cancel:t=>{if(!d()){const r=new l(t);g(r),e.onCancel?.(r)}},continue:()=>(t?.(),h),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:m,start:()=>(m()?y():v().then(y),h)}}},4611:(e,t,r)=>{"use strict";r.d(t,{t:()=>h});var n=r(1609),s=r(1795),i=r(698),a=r(7115),o=r(9690),c=r(4804),l=r(4105),u=r(937);function h(e,t,r){const h=(0,l.w)(),d=(0,o.h)(),p=(0,a.jE)(r),m=p.defaultQueryOptions(e);p.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=h?"isRestoring":"optimistic",(0,u.jv)(m),(0,c.LJ)(m,d),(0,c.wZ)(d);const f=!p.getQueryCache().get(m.queryHash),[g]=n.useState(()=>new t(p,m)),v=g.getOptimisticResult(m),y=!h&&!1!==e.subscribed;if(n.useSyncExternalStore(n.useCallback(e=>{const t=y?g.subscribe(s.jG.batchCalls(e)):i.lQ;return g.updateResult(),t},[g,y]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),n.useEffect(()=>{g.setOptions(m)},[m,g]),(0,u.EU)(m,v))throw(0,u.iL)(m,g,d);if((0,c.$1)({result:v,errorResetBoundary:d,throwOnError:m.throwOnError,query:p.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw v.error;if(p.getDefaultOptions().queries?._experimental_afterQuery?.(m,v),m.experimental_prefetchInRender&&!i.S$&&(0,u.nE)(v,h)){const e=f?(0,u.iL)(m,g,d):p.getQueryCache().get(m.queryHash)?.promise;e?.catch(i.lQ).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?v:g.trackResult(v)}},4613:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var n=r(1609),s=r(4158),i=r(1795),a=r(698),o=r(7115);function c(e,t){const r=(0,o.jE)(t),[c]=n.useState(()=>new s._(r,e));n.useEffect(()=>{c.setOptions(e)},[c,e]);const l=n.useSyncExternalStore(n.useCallback(e=>c.subscribe(i.jG.batchCalls(e)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),u=n.useCallback((e,t)=>{c.mutate(e,t).catch(a.lQ)},[c]);if(l.error&&(0,a.GU)(c.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}},4659:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},4664:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(766),s=r(2947),i=r(8509),a=r(5918),o=r(7425),c=r(2770),l=r(790);const u=e=>{const t={showHeader:!1,showFooter:!1,showBackground:!1,...e},{children:r,headline:u,subHeadline:h}=e;return(0,l.jsx)("div",{className:c.A["admin-page"],children:(0,l.jsxs)(s.A,{...t,children:[(0,l.jsx)(n.A,{children:(u||h)&&(0,l.jsx)(a.A,{horizontalSpacing:5,children:(0,l.jsxs)(i.A,{children:[u&&(0,l.jsx)(o.Ay,{variant:"headline-small",children:u}),h&&(0,l.jsx)(o.Ay,{className:c.A["sub-headline"],variant:"body-small",children:h})]})})}),r]})})}},4796:(e,t,r)=>{"use strict";function n(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>n})},4804:(e,t,r)=>{"use strict";r.d(t,{$1:()=>o,LJ:()=>i,wZ:()=>a});var n=r(1609),s=r(698),i=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},a=e=>{n.useEffect(()=>{e.clearReset()},[e])},o=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(0,s.GU)(r,[e.error,n]))},4984:()=>{"use strict"},5061:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"section-hero":"vMa4i_Dza2t5Zi_Bw9Nf"}},5104:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(3397),s=r(4611);function i(e,t){return(0,s.t)(e,n.$,t)}},5307:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={row:"lc6qkH7sVoWPcMUYHBc1",name:"HJvbaJ9eVSezcbrZF2yn","status-toggle":"zjjEYyZcG7ZO3GsxHgZ0","added-date":"lrTXtA9TOEMsqxcOp7VP",triggers:"GH7IsjP54mjXlqGWt7XX",triggers__item:"MG44Mc7Zu_vO4ScZvxRm","trigger-description":"Pfk0mr6hVlOwjiyLr5Cm","icon-container":"Tx5IzPvc1JZk3OzsD9Oo","edit-button":"z4PrEFJiGOYwd62_jkva"}},5462:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5573),s=r(790),i=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},5530:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},5546:(e,t,r)=>{"use strict";r.d(t,{$:()=>a});var n=r(554),s=r(6676),i=r(790);const a=({workflowId:e,step:t})=>{const r=Object.values(t.attribute_definitions).map(e=>({definition:e,value:t.attributes[e.slug]}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:s.A.title,children:t.title}),r.map(({definition:r,value:a})=>(0,i.jsx)("div",{className:s.A["attribute-container"],children:(0,i.jsx)(n.R,{workflowId:e,stepId:t.id,definition:r,value:a})},t.id))]})}},5573:e=>{"use strict";e.exports=window.wp.primitives},5618:()=>{"use strict"},5621:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(7143),s=r(2352);const i=(0,n.combineReducers)({automations:s.r})},5673:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5573),s=r(790),i=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},5873:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(5530),s=r(698),i=new class extends n.Q{#J=!0;#u;#h;constructor(){super(),this.#h=e=>{if(!s.S$&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#u||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#u?.(),this.#u=void 0)}setEventListener(e){this.#h=e,this.#u?.(),this.#u=e(this.setOnline.bind(this))}setOnline(e){this.#J!==e&&(this.#J=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#J}}},5875:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"jp-wrap":"OvHrRORJyuyw2LNdXgrY","jp-row":"b6nKXFuX7ewDA4dIV03u","sm-col-span-1":"pQ1d4jKUUCnw_im36z0z","sm-col-span-2":"JHnftCjIMK6DwnUMC_KR","sm-col-span-3":"zfxbe2tc3O5Obsf4DM1m","sm-col-span-4":"U_nVXtBa7IlRRnEuGK6A","md-col-span-1":"zbFoBi3zUauYjZNMvRyO","md-col-span-2":"bAmfImN5xfOqNmiuc7w1","md-col-span-3":"tv3QozuQeNLU3D8VZzaO","md-col-span-4":"W7RnEfwPSp0nLv8HrDfa","md-col-span-5":"qQk1irgp1uryU3wkdZLS","md-col-span-6":"R8HZeHLNLiryypqXPH_6","md-col-span-7":"Sm2mzQDngI2Y2RSR2q_A","md-col-span-8":"Myh_JFFGCmFZVQ7AZhuI","lg-col-span-1":"z2ckEjr47qMftf9Joi7C","lg-col-span-2":"jsrQIgfpYdFtzxAyvOFQ","lg-col-span-3":"hBGHukmnDDCjVtPySBnu","lg-col-span-4":"kyyZT72RRVf0JEcQxUHE","lg-col-span-5":"Q4i4PuykyEQcWLS9KRN2","lg-col-span-6":"npwpXlV1hyD_c2BnJqaT","lg-col-span-7":"r810osgYfMQRvSvtuXEE","lg-col-span-8":"HWaInf00tZerSTh9GdOm","lg-col-span-9":"bfIsQZTxAtv0xYubvbYY","lg-col-span-10":"vrGfqbY5O5xTFD2fqM1A","lg-col-span-11":"bXWwXH0svF7YEzW_K0Rg","lg-col-span-12":"eyIMklUYAnjTMIU8MOX3","md-col-span-0":"_zJNg6zB5wnODnLFdRAd","sm-col-span-0":"uJKynJGmT2uTrCOHsDFl","jp-cut":"mYB63h6cNGFzMwD8h6IX",container:"iZTNFSgJPR2OvFnqvmlZ",table:"e9ZYiCOZl5ZPVLd1Rgei","header-row":"vYzGd3jXle5fvaSbxmlK"}},5918:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3022),s=r(1609),i=r(9713);const a=({children:e,fluid:t=!1,tagName:r="div",className:a,horizontalGap:o=1,horizontalSpacing:c=1},l)=>{const u=(0,s.useMemo)(()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${o} )`}},[o,c]),h=(0,n.A)(a,i.A.container,{[i.A.fluid]:t});return(0,s.createElement)(r,{className:h,style:u,ref:l},e)},o=(0,s.forwardRef)(a)},5932:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h});var n=r(6439),s=r(3832);function i(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const a=i("JsonParseError"),o=i("JsonParseAfterRedirectError"),c=i("Api404Error"),l=i("Api404AfterRedirectError"),u=i("FetchNetworkError");const h=new function(e,t){let r=e,i=e,a={"X-WP-Nonce":t},o={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),r=t.length>1?t[1]:"",n=r.length?r.split("&"):[];return n.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+n.join("&")};const u={setApiRoot(e){r=e},setWpcomOriginApiUrl(e){i=e},setApiNonce(e){a={"X-WP-Nonce":e},o={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,s)=>{const i={};return(0,n.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,n.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),s&&(i.from=s),m(`${r}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(d).then(p)},fetchAuthorizationUrl:e=>h((0,s.addQueryArgs)(`${r}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),o).then(d).then(p),fetchSiteConnectionData:()=>h(`${r}jetpack/v4/connection/data`,o).then(p),fetchSiteConnectionStatus:()=>h(`${r}jetpack/v4/connection`,o).then(p),fetchSiteConnectionTest:()=>h(`${r}jetpack/v4/connection/test`,o).then(d).then(p),fetchUserConnectionData:()=>h(`${r}jetpack/v4/connection/data`,o).then(p),fetchUserTrackingSettings:()=>h(`${r}jetpack/v4/tracking/settings`,o).then(d).then(p),updateUserTrackingSettings:e=>m(`${r}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(d).then(p),disconnectSite:()=>m(`${r}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(d).then(p),fetchConnectUrl:()=>h(`${r}jetpack/v4/connection/url`,o).then(d).then(p),unlinkUser:(e=!1,t={})=>{const n={linked:!1,force:!!e};return t.disconnectAllUsers&&(n["disconnect-all-users"]=!0),m(`${r}jetpack/v4/connection/user`,c,{body:JSON.stringify(n)}).then(d).then(p)},reconnect:()=>m(`${r}jetpack/v4/connection/reconnect`,c).then(d).then(p),fetchConnectedPlugins:()=>h(`${r}jetpack/v4/connection/plugins`,o).then(d).then(p),setHasSeenWCConnectionModal:()=>m(`${r}jetpack/v4/seen-wc-connection-modal`,c).then(d).then(p),fetchModules:()=>h(`${r}jetpack/v4/module/all`,o).then(d).then(p),fetchModule:e=>h(`${r}jetpack/v4/module/${e}`,o).then(d).then(p),activateModule:e=>m(`${r}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(d).then(p),deactivateModule:e=>m(`${r}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>m(`${r}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(d).then(p),updateSettings:e=>m(`${r}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(d).then(p),getProtectCount:()=>h(`${r}jetpack/v4/module/protect/data`,o).then(d).then(p),resetOptions:e=>m(`${r}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(d).then(p),activateVaultPress:()=>m(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(d).then(p),getVaultPressData:()=>h(`${r}jetpack/v4/module/vaultpress/data`,o).then(d).then(p),installPlugin:(e,t)=>{const n={slug:e,status:"active"};return t&&(n.source=t),m(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify(n)}).then(d).then(p)},activateAkismet:()=>m(`${r}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(d).then(p),getAkismetData:()=>h(`${r}jetpack/v4/module/akismet/data`,o).then(d).then(p),checkAkismetKey:()=>h(`${r}jetpack/v4/module/akismet/key/check`,o).then(d).then(p),checkAkismetKeyTyped:e=>m(`${r}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(d).then(p),getFeatureTypeStatus:e=>h(`${r}jetpack/v4/feature/${e}`,o).then(d).then(p),fetchStatsData:e=>h(function(e){let t=`${r}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),o).then(d).then(p).then(g),getPluginUpdates:()=>h(`${r}jetpack/v4/updates/plugins`,o).then(d).then(p),getPlans:()=>h(`${r}jetpack/v4/plans`,o).then(d).then(p),fetchSettings:()=>h(`${r}jetpack/v4/settings`,o).then(d).then(p),updateSetting:e=>m(`${r}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(d).then(p),fetchSiteData:()=>h(`${r}jetpack/v4/site`,o).then(d).then(p).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>h(`${r}jetpack/v4/site/features`,o).then(d).then(p).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>h(`${r}jetpack/v4/site/products`,o).then(d).then(p),fetchSitePurchases:()=>h(`${r}jetpack/v4/site/purchases`,o).then(d).then(p).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>h(`${r}jetpack/v4/site/benefits`,o).then(d).then(p).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>h(`${r}jetpack/v4/site/discount`,o).then(d).then(p).then(e=>e.data),fetchSetupQuestionnaire:()=>h(`${r}jetpack/v4/setup/questionnaire`,o).then(d).then(p),fetchRecommendationsData:()=>h(`${r}jetpack/v4/recommendations/data`,o).then(d).then(p),fetchRecommendationsProductSuggestions:()=>h(`${r}jetpack/v4/recommendations/product-suggestions`,o).then(d).then(p),fetchRecommendationsUpsell:()=>h(`${r}jetpack/v4/recommendations/upsell`,o).then(d).then(p),fetchRecommendationsConditional:()=>h(`${r}jetpack/v4/recommendations/conditional`,o).then(d).then(p),saveRecommendationsData:e=>m(`${r}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(d),fetchProducts:()=>h(`${r}jetpack/v4/products`,o).then(d).then(p),fetchRewindStatus:()=>h(`${r}jetpack/v4/rewind`,o).then(d).then(p).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>h(`${r}jetpack/v4/scan`,o).then(d).then(p).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>m(`${r}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(d).then(p),fetchPluginsData:()=>h(`${r}jetpack/v4/plugins`,o).then(d).then(p),fetchIntroOffers:()=>h(`${r}jetpack/v4/intro-offers`,o).then(d).then(p),fetchVerifySiteGoogleStatus:e=>h(null!==e?`${r}jetpack/v4/verify-site/google/${e}`:`${r}jetpack/v4/verify-site/google`,o).then(d).then(p),verifySiteGoogle:e=>m(`${r}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(d).then(p),submitSurvey:e=>m(`${r}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(d).then(p),saveSetupQuestionnaire:e=>m(`${r}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(d).then(p),updateLicensingError:e=>m(`${r}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(d).then(p),updateLicenseKey:e=>m(`${r}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(d).then(p),getUserLicensesCounts:()=>h(`${r}jetpack/v4/licensing/user/counts`,o).then(d).then(p),getUserLicenses:()=>h(`${r}jetpack/v4/licensing/user/licenses`,o).then(d).then(p),updateLicensingActivationNoticeDismiss:e=>m(`${r}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(d).then(p),updateRecommendationsStep:e=>m(`${r}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(d),confirmIDCSafeMode:()=>m(`${r}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(d),startIDCFresh:e=>m(`${r}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(d).then(p),migrateIDC:()=>m(`${r}jetpack/v4/identity-crisis/migrate`,c).then(d),attachLicenses:e=>m(`${r}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(d).then(p),fetchSearchPlanInfo:()=>h(`${i}jetpack/v4/search/plan`,o).then(d).then(p),fetchSearchSettings:()=>h(`${i}jetpack/v4/search/settings`,o).then(d).then(p),updateSearchSettings:e=>m(`${i}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(d).then(p),fetchSearchStats:()=>h(`${i}jetpack/v4/search/stats`,o).then(d).then(p),fetchWafSettings:()=>h(`${r}jetpack/v4/waf`,o).then(d).then(p),updateWafSettings:e=>m(`${r}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(d).then(p),fetchWordAdsSettings:()=>h(`${r}jetpack/v4/wordads/settings`,o).then(d).then(p),updateWordAdsSettings:e=>m(`${r}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>h(`${i}jetpack/v4/search/pricing`,o).then(d).then(p),fetchMigrationStatus:()=>h(`${r}jetpack/v4/migration/status`,o).then(d).then(p),fetchBackupUndoEvent:()=>h(`${r}jetpack/v4/site/backup/undo-event`,o).then(d).then(p),fetchBackupPreflightStatus:()=>h(`${r}jetpack/v4/site/backup/preflight`,o).then(d).then(p)};function h(e,t){return fetch(l(e),t)}function m(e,t,r){return fetch(e,Object.assign({},t,r)).catch(f)}function g(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,u)};function d(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new c}):e.json().catch(e=>m(e)).then(t=>{const r=new Error(`${t.message} (Status ${e.status})`);throw r.response=t,r.name="ApiError",r})}function p(e){return e.json().catch(t=>m(t,e.redirected,e.url))}function m(e,t,r){throw t?new o(r):new a}function f(){throw new u}},6087:e=>{"use strict";e.exports=window.wp.element},6207:(e,t,r)=>{"use strict";r.d(t,{c:()=>p});var n=r(7143),s=r(1609),i=r(3287),a=r(359),o=r(1768),c=r(4215),l=r(445),u=r(1745),h=r(7553),d=r(790);const p=()=>{const{id:e}=(0,i.g)(),{refetch:t}=(0,a.b)(e=>{(0,n.dispatch)(o.M).hydrateWorkflows(e)}),r=(0,n.useSelect)(e=>e(o.M).getWorkflows(),[]);let p;if(e){p=r[Number(e)]}const m=(0,i.Zp)(),f=(0,s.useCallback)(()=>{m("/automations",{replace:!0})},[m]);return(0,d.jsxs)("div",{className:h.A.container,children:[(0,d.jsx)(c.P,{refetchWorkflows:t}),(0,d.jsx)(u.C,{workflows:Object.values(r),refetchWorkflows:t}),p&&(0,d.jsx)(l.W,{isOpen:!!p,onClose:f,workflow:p,refetchWorkflows:t})]})}},6258:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});const n=e=>({...e,triggers:e.triggers.map(e=>e.slug),id:Number(e.id)})},6427:e=>{"use strict";e.exports=window.wp.components},6439:(e,t,r)=>{let n={};try{n=r(502)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),n={missingConfig:!0}}const s=e=>Object.hasOwn(n,e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return n[e]}}},6676:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={title:"DxtutvvIkTrVS2Jm5HSv","attribute-container":"vunl1e54r_uLxQxeIkHy"}},6817:(e,t,r)=>{"use strict";r.d(t,{Zq:()=>i,zs:()=>s});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#K=n;#B=!1;setTimeoutProvider(e){this.#K=e}setTimeout(e,t){return this.#K.setTimeout(e,t)}clearTimeout(e){this.#K.clearTimeout(e)}setInterval(e,t){return this.#K.setInterval(e,t)}clearInterval(e){this.#K.clearInterval(e)}};function i(e){setTimeout(e,0)}},6842:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={container:"II8WN1auOeDrYAk4rpYX",title:"LEyGcIChENFfF2d39Ted",datepicker:"LRPA780lfHW6rcw02zrd"}},7115:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>o,jE:()=>a});var n=r(1609),s=r(790),i=n.createContext(void 0),a=e=>{const t=n.useContext(i);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},o=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(i.Provider,{value:e,children:t}))},7142:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(7723),s=r(3022),i=r(790);const __=n.__,a=({logoColor:e="#069e08",showText:t=!0,className:r,height:n=32,title:a,...o})=>{const c=t?"0 0 118 32":"0 0 32 32",l=a??__("Jetpack Logo","zero-bs-crm");return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,s.A)("jetpack-logo",r),"aria-labelledby":"jetpack-logo-title",height:n,...o,role:"img",children:[(0,i.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,i.jsx)("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),(0,i.jsx)("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),(0,i.jsx)("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),(0,i.jsx)("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),(0,i.jsx)("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),(0,i.jsx)("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),(0,i.jsx)("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})]})]})}},7143:e=>{"use strict";e.exports=window.wp.data},7247:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"jp-wrap":"Y4F3cL0FYHWzBNtYj4QX","jp-row":"_xtR4tkUQ5JQb8g6vXrK","sm-col-span-1":"seLBSO3Ah_yNqJFuz6TC","sm-col-span-2":"PG7agwIMlK4aIolWYW8I","sm-col-span-3":"_57fFT6y6BfVlFxYvlAZ","sm-col-span-4":"Q7HpLkEyOH1t5caExMKo","md-col-span-1":"w8YezoYW12EFsHnkGC6B","md-col-span-2":"BtJuC_g2CswSSQiSrDmy","md-col-span-3":"MJiqjE_azGyTd4k9iuS6","md-col-span-4":"nBjrWE3cfYjEiOmAh1rt","md-col-span-5":"NNu_SKrqsGZDIPQPvT2A","md-col-span-6":"jhwobCffMO3l0DCXdCsM","md-col-span-7":"IMeODAxVcjto4HNdIHiQ","md-col-span-8":"OAVErdGf1NRDV5a_u9m9","lg-col-span-1":"_D3tMMdteExSvC2F8UsO","lg-col-span-2":"JI8cALvIN7kO3AIQ2vpg","lg-col-span-3":"l71NvhefSElEghkUwqs0","lg-col-span-4":"eyHZ9kWp7TFgXGIWZ4Wy","lg-col-span-5":"myxwHeqOmdriru98bukO","lg-col-span-6":"Ck5Nxl6k_f4p6dr1Vhse","lg-col-span-7":"O8PyBPzE6YNzllkcdx0d","lg-col-span-8":"hmcs6WfdYvg8VpH6e9OQ","lg-col-span-9":"I1lCwCWFLNJJi3BL1ZWz","lg-col-span-10":"WmnLaaB_VQx4FvxWe7iQ","lg-col-span-11":"JvvbBWeo45BMwRF4Bfn_","lg-col-span-12":"I5K4NzXkFoOCJ2xFBdDu","md-col-span-0":"WqJHdS6sTp9XEtXYYXwr","sm-col-span-0":"YRVA1NVTYohr__rTb9wl","jp-cut":"bBwUcsUdnPDPHOPJeZCW",modal:"g4H7iMRAgUJSey0SklLm",container:"YAZs3ad2nU0oLUahhVbH",subheader:"sKssPEIjqZTTPOsay6br","step-container":"SVZoVQbqoEyFKhpF9AKP","button-container":"pDXJ0n7pgkwrMtaqlqGl","step-label":"US73gBejLHZP5Nvna3mh"}},7425:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l});var n=r(3022),s=r(1609),i=r(110),a=r(3370),o=r(790);const c=(0,s.forwardRef)(({variant:e="body",children:t,component:r,className:c,...l},u)=>{const h=r||i.Q[e]||"span",d=(0,s.useMemo)(()=>i.Z.reduce((e,t)=>(void 0!==l[t]&&(e+=a.A[`${t}-${l[t]}`]+" ",delete l[t]),e),""),[l]);return(0,o.jsx)(h,{className:(0,n.A)(a.A.reset,a.A[e],c,d),...l,ref:u,children:t})});c.displayName="Text";const l=c},7553:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={container:"OfO54vYVfBvCC0AWY8G3"}},7673:(e,t,r)=>{"use strict";r.d(t,{d:()=>p});var n=r(7143),s=r(7723),i=r(5673),a=r(5462),o=r(3022),c=r(1609),l=r(1768),u=r(2626),h=r(769),d=r(790);const __=s.__,p=e=>{const{column:t,onClick:r,selectedForSort:s,sortDirection:p}=e,m=(0,c.useCallback)(e=>{e.target.checked?(0,n.dispatch)(l.M).selectAllWorkflows():(0,n.dispatch)(l.M).deselectAllWorkflows()},[]),f={checkbox:(0,d.jsx)(u.S,{onChange:m,id:"header-checkbox"}),name:__("Name","zero-bs-crm"),status:__("Status","zero-bs-crm"),added:__("Added","zero-bs-crm"),trigger:__("Trigger","zero-bs-crm"),edit:__("Edit","zero-bs-crm")};return(0,d.jsx)("th",{className:(0,o.A)(h.A.header,{[h.A.clickable]:!!r}),onClick:r,children:(0,d.jsxs)("div",{className:h.A.container,children:[(0,d.jsx)("div",{className:h.A.text,children:f[t]}),s&&(0,d.jsx)("div",{className:h.A.chevron,children:"ascending"===p?i.A:a.A})]})})}},7708:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var n=r(1795),s=r(4352),i=r(698),a=r(5530),o=class extends a.Q{constructor(e={}){super(),this.config=e,this.#G=new Set,this.#Z=new Map,this.#X=0}#G;#Z;#X;build(e,t,r){const n=new s.s({client:e,mutationCache:this,mutationId:++this.#X,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#G.add(e);const t=c(e);if("string"==typeof t){const r=this.#Z.get(t);r?r.push(e):this.#Z.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#G.delete(e)){const t=c(e);if("string"==typeof t){const r=this.#Z.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#Z.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=c(e);if("string"==typeof t){const r=this.#Z.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=c(e);if("string"==typeof t){const r=this.#Z.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){n.jG.batch(()=>{this.#G.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#G.clear(),this.#Z.clear()})}getAll(){return Array.from(this.#G)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>(0,i.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.nJ)(e,t))}notify(e){n.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return n.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.lQ))))}};function c(e){return e.options.scope?.id}},7723:e=>{"use strict";e.exports=window.wp.i18n},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},8250:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(7723),s=r(3109),i=r(1866),a=r(3022),o=r(3924),c=r(1069),l=r(8907),u=(r(2997),r(7142)),h=r(442),d=r(790);const __=n.__,_x=n._x,p=()=>(0,d.jsx)(u.A,{logoColor:"#000",showText:!1,height:16,"aria-hidden":"true"}),m=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.A,{icon:i.A,size:16}),(0,d.jsx)("span",{className:"jp-dashboard-footer__accessible-external-link",children:/* translators: accessibility text */
__("(opens in a new tab)","zero-bs-crm")})]}),f=({moduleName:e=__("Jetpack","zero-bs-crm"),className:t,moduleNameHref:r="https://jetpack.com",menu:n,useInternalLinks:s,onAboutClick:i,onPrivacyClick:u,onTermsClick:f,...g})=>{const[v]=(0,h.A)("sm","<="),[y]=(0,h.A)("md","<="),[b]=(0,h.A)("lg",">"),w=(0,c.A)();let x=[{label:_x("About","Link to learn more about Jetpack.","zero-bs-crm"),title:__("About Jetpack","zero-bs-crm"),href:s?new URL("admin.php?page=jetpack_about",w).href:(0,o.A)("jetpack-about"),target:s?"_self":"_blank",onClick:i},{label:_x("Privacy","Shorthand for Privacy Policy.","zero-bs-crm"),title:__("Automattic's Privacy Policy","zero-bs-crm"),href:s?new URL("admin.php?page=jetpack#/privacy",w).href:(0,o.A)("a8c-privacy"),target:s?"_self":"_blank",onClick:u},{label:_x("Terms","Shorthand for Terms of Service.","zero-bs-crm"),title:__("WordPress.com Terms of Service","zero-bs-crm"),href:(0,o.A)("wpcom-tos"),target:"_blank",onClick:f}];n&&(x=[...x,...n]);const j=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p,{}),e]});return(0,d.jsx)("footer",{className:(0,a.A)("jp-dashboard-footer",{"is-sm":v,"is-md":y,"is-lg":b},t),"aria-label":__("Jetpack","zero-bs-crm"),role:"contentinfo",...g,children:(0,d.jsxs)("ul",{children:[(0,d.jsx)("li",{className:"jp-dashboard-footer__jp-item",children:r?(0,d.jsx)("a",{href:r,children:j}):j}),x.map(e=>{const t="button"===e.role,r=!t&&"_blank"===e.target;return(0,d.jsx)("li",{children:(0,d.jsxs)("a",{href:e.href,title:e.title,target:e.target,onClick:e.onClick,onKeyDown:e.onKeyDown,className:(0,a.A)("jp-dashboard-footer__menu-item",{"is-external":r}),role:e.role,rel:r?"noopener noreferrer":void 0,tabIndex:t?0:void 0,children:[e.label,r&&(0,d.jsx)(m,{})]})},e.label)}),(0,d.jsx)("li",{className:"jp-dashboard-footer__a8c-item",children:(0,d.jsx)("a",{href:s?new URL("admin.php?page=jetpack_about",w).href:(0,o.A)("a8c-about"),"aria-label":__("An Automattic Airline","zero-bs-crm"),children:(0,d.jsx)(l.A,{"aria-hidden":"true"})})})]})})}},8316:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6427),s=r(3022),i=r(1609),a=r(9550),o=r(790);const c=({checked:e,className:t,disabled:r,help:c,toggling:l,label:u,size:h="normal",onChange:d})=>{const p=void 0!==l?e&&!l||!e&&l:e,m=(0,i.useCallback)(e=>{l||d(e)},[l,d]);return(0,o.jsx)(n.ToggleControl,{__nextHasNoMarginBottom:!0,checked:p,className:(0,s.A)(a.A.toggle,t,{[a.A["is-toggling"]]:l,[a.A["is-small"]]:"small"===h,[a.A["no-label"]]:!u}),disabled:r,help:c,label:u,onChange:m})}},8509:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(3022),s=r(1609),i=r(9750);const a=Number(i.A.smcols),o=Number(i.A.mdcols),c=Number(i.A.lgcols),l=e=>{const{children:t,tagName:r="div",className:l}=e,u=Math.min(a,"number"==typeof e.sm?e.sm:a),h=Math.min(a,"object"==typeof e.sm?e.sm.start:0),d=Math.min(a,"object"==typeof e.sm?e.sm.end:0),p=Math.min(o,"number"==typeof e.md?e.md:o),m=Math.min(o,"object"==typeof e.md?e.md.start:0),f=Math.min(o,"object"==typeof e.md?e.md.end:0),g=Math.min(c,"number"==typeof e.lg?e.lg:c),v=Math.min(c,"object"==typeof e.lg?e.lg.start:0),y=Math.min(c,"object"==typeof e.lg?e.lg.end:0),b=(0,n.A)(l,{[i.A[`col-sm-${u}`]]:!(h&&d),[i.A[`col-sm-${h}-start`]]:h>0,[i.A[`col-sm-${d}-end`]]:d>0,[i.A[`col-md-${p}`]]:!(m&&f),[i.A[`col-md-${m}-start`]]:m>0,[i.A[`col-md-${f}-end`]]:f>0,[i.A[`col-lg-${g}`]]:!(v&&y),[i.A[`col-lg-${v}-start`]]:v>0,[i.A[`col-lg-${y}-end`]]:y>0});return(0,s.createElement)(r,{className:b},t)}},8808:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(7723),s=r(4478),i=r(9804),a=r(790);const __=n.__,o=({trigger:e})=>(0,a.jsxs)("div",{className:i.A.container,children:[(0,a.jsx)("div",{className:i.A.title,children:
// 	translators: triggerTitle is a string which is used to identify the trigger
// 	translators: triggerTitle is a string which is used to identify the trigger
(0,n.sprintf)(__("Trigger: %(triggerTitle)s","zero-bs-crm"),{triggerTitle:e.title})}),e.description,(0,a.jsx)(s.D,{className:i.A["step-label"],type:"trigger"})]})},8907:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(7723),s=r(3022),i=r(790);const __=n.__,a=({title:e=__("An Automattic Airline","zero-bs-crm"),height:t=7,className:r,...n})=>(0,i.jsxs)("svg",{role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,s.A)("jp-automattic-byline-logo",r),...n,children:[(0,i.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,i.jsx)("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),(0,i.jsx)("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),(0,i.jsx)("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})]})},9101:(e,t,r)=>{"use strict";r.d(t,{PL:()=>s});var n=r(698);function s(e){return{onFetch:(t,r)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},h=0;const d=async()=>{let r=!1;const d=(0,n.ZM)(t.options,t.fetchOptions),p=async(e,s,i)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:i?"backward":"forward",meta:t.options.meta};var n;return n=e,Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),o=await d(a),{maxPages:c}=t.options,l=i?n.ZZ:n.y9;return{pages:l(e.pages,o,c),pageParams:l(e.pageParams,s,c)}};if(o&&c.length){const e="backward"===o,t={pages:c,pageParams:l},r=(e?a:i)(s,t);u=await p(t,r,e)}else{const t=e??c.length;do{const e=0===h?l[0]??s.initialPageParam:i(s,u);if(h>0&&null==e)break;u=await p(u,e),h++}while(h<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=d}}}function i(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function a(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}},9130:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},9491:e=>{"use strict";e.exports=window.wp.compose},9550:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={toggle:"gecp_0Z0owRZtj8JAYir","is-small":"qgKXEdMmHsIK84VDnLO2","no-label":"Vy6dbB4PsGKm8BDqzJ9J","is-toggling":"ykWv7fKpkVW_vpAoddu4"}},9690:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(1609);r(790);function s(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i=n.createContext(s()),a=()=>n.useContext(i)},9713:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},9750:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smcols:"4",mdcols:"8",lgcols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},9804:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={title:"iRHO2udDdXszJy3U6l0s",container:"_1UZlVIbQTxZLtMjVS1y","step-label":"_QGiHZk8uHKAxsxrycrA"}}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);s.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&n&&r;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,s.d(i,a),i},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=s(723),t=s(116),r=s(7115),n=s(6087),i=s(3287),a=s(1215),o=s(790);(()=>{const s=new t.E,c=document.getElementById("jetpack-crm-automations-root");if(null===c)return;const l=(0,o.jsx)(i.I9,{children:(0,o.jsx)(e.Ay,{children:(0,o.jsx)(r.Ht,{client:s,children:(0,o.jsx)(a.m,{})})})});n.createRoot(c).render(l)})()})()})();