PageSourceSearch

https://dashboard.knock.app/assets/index-BbaxFUvO.js

js knock.app collected 2026-09-24 17:16:42 UTC 17,669 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="bb9ece05-8c18-5cb6-bb02-fcf7b97e2530")}catch(e){}}();
3import{j as t,d as a,c as I,i as L,r as j,H as _,u as s,V as F,s as e,ax as G,O as R,e as U,ay as V}from"./index-DCcPIDdb.js";import{Q as n}from"./index-CmbL1Zqq.js";import{u as K}from"./index-D34pu1sI.js";import{u as Y,a as B,f as H,b as M,Y as Q,S as A,b3 as X}from"./Breadcrumb-CcpWnJnZ.js";import{V as w}from"./index-BcSROEc-.js";import{b as q}from"./index-BxXb1niH.js";import{u as $}from"./react-hotkeys-hook.esm-CF4WxPy0.js";import{A as J}from"./AccountLayout-098tzbrw.js";import{D as Z}from"./DottedBackground-CoDGOTqL.js";import"./PreferenceCategorySelector-CbeoEqi7.js";import{P as tt}from"./usePreferenceCategories-DAN23wRS.js";import{R as rt}from"./ResourceTagSelector-C3HBxxtp.js";import{u as ot,R as it}from"./useResourceTags-wysaxSAD.js";import{A as et}from"./AttachGoalSection-CpNl3G95.js";import{u as P,a as pt}from"./useWorkflow-j0iydyrt.js";import{W as mt}from"./WorkflowDetailLayout-DL92f0CK.js";import"./ResourceCommitPromote-DNCnqSt2.js";import"./paths-DAwA617j.js";import{D as z}from"./DateTimePopover-1JdbHdim.js";import"./utils-D4wzSKuN.js";import"./ActivityCell-Z1jg3RZD.js";import"./Timeline-B1A3D53v.js";import"./gql-LourQKtN.js";import"./gql-DAeylH51.js";import"./UpdateMessageTypeModal-CtTymTWx.js";import"./gql-DrLJxjve.js";import"./gql-D2F1Cy5B.js";import{a as st}from"./WorkflowGraphEditor-Drbq5grT.js";import{N as at,i as nt}from"./helpers-Cf-XYvvl.js";import{C as lt}from"./index-DqKtv5o3.js";import{a as ct}from"./index-BKDjqeEj.js";import{l as dt}from"./hooks-C12NJ420.js";import{D as i}from"./index-L9W-MQta.js";import{I as ut}from"./ItemNotFound-CnFYwx4L.js";import{u as ht}from"./useConfirm-BA2hvc9M.js";import{u as ft}from"./useLocalStorage-_1WkC3WD.js";import{s as xt}from"./stepTemplatePath-BrkVuGgR.js";import{u as gt}from"./useWorkflowPermissions-CAIssb7u.js";import"./index-D-1HJe1D.js";import"./index-Cbm9sSIM.js";import"./useAnchoredPopupScrollLock-CZM25erH.js";import"./useQuery-BiQpOPzP.js";import"./fragments.typegen-D3eL6mBJ.js";import"./index-B7bGA8QU.js";import"./index-DHByh2Lt.js";import"./localStorage-ChIflZH5.js";import"./AccountAvatar-QmSmTXiT.js";import"./environment-BfQg0KQ3.js";import"./useClipboard-Cxt0f4Gm.js";import"./index-gRbmlg6R.js";import"./schemas-BKwsgwux.js";import"./fragments-BfOTelU5.js";import"./useCurrentUser-CDSEdpaS.js";import"./useLazyQuery-Eo899Rfq.js";import"./useKnockToast-DFki-qS-.js";import"./check-Bd84O_Ro.js";import"./index-O_2nITbu.js";import"./index-DN-0bZ2w.js";import"./formik.esm-DR_aPsHB.js";import"./mail-tJw2kvOi.js";import"./get-4xscK1cx.js";import"./slugify-eXU0Layw.js";import"./MainHeader-D38ixHFW.js";import"./AgentToggleButton-Du1XaEJT.js";import"./CenteredSpinner-CcpE_V1F.js";import"./sun-CkG7J7qK.js";import"./moon-BZj8YSwr.js";import"./monitor-xik1Sg7E.js";import"./gql.typegen-C9kT3f-u.js";import"./smile-syuBCrWS.js";import"./frown-DfgZ0jGy.js";import"./bug-CgT3uRSm.js";import"./lightbulb-DPyJUX9Z.js";import"./keyboard-CXNK6wIv.js";import"./messages-square-DkVNiq4-.js";import"./house-CADj3j00.js";import"./package-CfhmtaDG.js";import"./user-plus-BRIwMYP2.js";import"./circle-question-mark-BJIFMpAJ.js";import"./check-check-BRLs_bgj.js";import"./Meta-CsrrpKvp.js";import"./trash-2-BP4KT0nR.js";import"./gql.typegen-C8Tsp97Z.js";import"./gql.typegen-BgZA_g6E.js";import"./useGoals-CPkS8U96.js";import"./audienceEventOptions-CcCn0Sjg.js";import"./goalConditionCellUtils-0C6zhtfP.js";import"./config-5a3fQzSj.js";import"./conditionConverters-DiN-NJG9.js";import"./user-check-DYPRXgtW.js";import"./zap-DPakGo54.js";import"./useGoal-CccdW8AM.js";import"./gql.typegen-mTchMjgM.js";import"./cloneDeep-DV8O1cgx.js";import"./_initCloneObject-CqdtxfCe.js";import"./merge-R9jfDtOg.js";import"./isPlainObject-Dcrn5H0L.js";import"./_setToString-71ZHI2ok.js";import"./isPlainObject-BNm1GcGO.js";import"./CommercialBadge-Ew9uIaxX.js";import"./ResourceActivityBadges-BCAr5jsQ.js";import"./numbers-DfiUvO2J.js";import"./badge-check-Ciyxl_83.js";import"./RehearseWorkflow-BNTVuNmO.js";import"./ExternalRecipientSelector-CzAmF0gO.js";import"./ExternalObjectSelector-NltPApr5.js";
3import"./ManageExternalObjectModal-DEDFJIRy.js";import"./ManageSchemaLink-DIHVVtOW.js";import"./set-Bl2a7MBw.js";import"./_baseSet-WvejPK9L.js";import"./useObjectSchema-DydE7Sq2.js";import"./gql.typegen-DLf_pE7q.js";import"./useTenantSchema-ftKAXfnX.js";import"./useUserSchema-DM5DJ1j7.js";import"./SchemaAddPropertyForm-CiQozpwD.js";import"./typeMeta-CgaacWhg.js";import"./brackets-CejEfsno.js";import"./toggle-left-BB8HKRGX.js";import"./binary-tR_gRBF1.js";import"./hash-DAHM9zMH.js";import"./type-DhpsgSQq.js";import"./ban-BvVF3If4.js";import"./timezones-BxxwGanW.js";import"./schemaPropertyVisibility-DmmOSEUF.js";import"./dates-voaFA_CZ.js";import"./recipients-BxKbIaxt.js";import"./PopoutCodeEditor-DTeg0yaF.js";import"./constants-JcqUNgGE.js";import"./TooltipLabelWithKbd-BJU4j3mp.js";import"./minimize-2-C1BcMlCn.js";import"./maximize-2-D9SFGp3Y.js";import"./shrink-7r0xuk48.js";import"./expand-BDMsWokr.js";import"./useObjectCollections-DdeE6Rmw.js";import"./common-D5VF62IX.js";import"./TruncatedText-D6rYo_rL.js";import"./square-pen-CO91VUuD.js";import"./ExternalUserSelector-DN2sKsv9.js";import"./ManageExternalUserModal-Cg5CibI7.js";import"./useHiddenUserSchemaPropertyKeys-QJ46Im-5.js";import"./gql-BxHVQ6yt.js";import"./ExternalTenantSelector-BgWYaXBu.js";import"./useWorkflowState-uCVyq3eF.js";import"./config-DMDp7a6-.js";import"./helpers-DBKQI4LL.js";import"./navigation-off-D-rOUL9z.js";import"./mail-x-94N08Bfr.js";import"./mail-warning-BD7bphDA.js";import"./mail-check-Cl2KNWtT.js";import"./eye-BXyPbt1I.js";import"./book-open-check-CTRXdVnQ.js";import"./mail-open-DVCtKWe0.js";import"./mail-plus-CaSp6PIE.js";import"./mouse-pointer-click-sjvuOsbi.js";import"./archive-DOSt35bh.js";import"./gql.typegen-CUuZhoGR.js";import"./hooks-B0nJGXiJ.js";import"./templateVariables-DzMVEJC6.js";import"./variables-ro2rMT_1.js";import"./labels-5XlhDaOa.js";import"./graphqlHelpers-wUmSRv1Y.js";import"./recipientPath-DVZVjDJ5.js";import"./clock-BgPKFWNF.js";import"./refresh-cw-Cqhu-YmC.js";import"./flag-D_5zQ9TZ.js";import"./eye-off-CG8v7vAu.js";import"./mail-minus-CaWIjtpY.js";import"./archive-restore-COWOEXS3.js";import"./helpers-COAvDmf2.js";import"./Primitives-D3Bn7OnH.js";import"./StepIcon-BU8gefGu.js";import"./ProviderBrandmark-CHQuo43j.js";import"./Brandmark-ILEgrLnN.js";import"./puzzle-BJ9dpFm7.js";import"./user-round-check-BR8-f1hp.js";import"./code-kfMM1p67.js";import"./smartphone-D1yr0XVB.js";import"./bell-dot-BJWMzt2M.js";import"./message-circle-PyWu7H0k.js";import"./hourglass-ChiZmmZP.js";import"./user-BuQ5odZ8.js";import"./shuffle-B9bd-2ae.js";import"./network-CISSef2f.js";import"./file-braces-CmNiRMnt.js";import"./timer-BeHQ6SWR.js";import"./helpers-Dt__Y_be.js";import"./common-TflzQqL_.js";import"./flask-conical-BFbeUa0S.js";import"./fast-forward-B8x649gB.js";import"./constants-LRVkfvSw.js";import"./gql.typegen-D112thwe.js";import"./SourceEventSelector-BFt_RRCA.js";import"./useIntegrationSource-BwCJ8sh4.js";import"./objectHelpers-Drz5f0HH.js";import"./refresh-ccw-DGid7Cly.js";import"./ManageWorkflowModal-B2Bw4b4C.js";import"./CloneToEnvironmentField-Dl-2DOLr.js";import"./unlink-CrUYS_p4.js";import"./ellipsis-D7GC2c_Q.js";import"./undo-Be9Dh_p4.js";import"./OriginEnvIcon-n65VqaBW.js";import"./earth-lock-BbaNYnGb.js";import"./PageHeaderTgraph-BPSoh29c.js";import"./useTabVisibilityChange-nT2-8AXL.js";import"./useWorkflowSchedules-x5ivODVB.js";import"./GenericSingleSelectFilter-9HhiH9SJ.js";import"./GenericTextInputFilter-BIbauYio.js";import"./GuideFilter-Bqxv77dO.js";import"./GenericMultiSelectFilter-Bu-e1ntK.js";import"./DateTimeInput-BfDfuSQ7.js";import"./DateTimeCalendar-BMKlaFkP.js";import"./external-link-DL70VKEt.js";import"./calendar-C-YtCwHX.js";import"./formatters-XaA03iUR.js";import"./workos-5RlSLZSd.js";import"./gql-BYa3YsaR.js";import"./DateSearchFilter-DFOEYEaL.js";import"./corner-down-right-YkLmhoP8.js";import"./UserSearchComboboxFilter-DZBU-xPS.js";import"./WorkflowFilter-Dt6aVASC.js";import"./useAllWorkflows-KUp_SA4n.js";import"./gql-BDyhn5Tb.js";import"./useUrlPagination-h84lp2iH.js";import"./navigation-DJ_ygiIJ.js";import"./pageIndex-mabBSdOB.js";import"./git-pull-request-draft-4r7-bwj3.js";import"./ColorPopoverContent.styles-B7c0t7fY.js";import"./AssetPickerHost-CdDS_bP0.js";import"./PaginationControl-R9SXb2Qt.js";import"./gql.typegen-DYWTVK5j.js";import"./ImageUploadMetadataContext-z13K2GVZ.js";import"./helpers-CLTKXRWb.js";import"./MessageTypePreviewRenderer-BxKXO8Lx.js";import"./useIframeThemeSync-D3_jNgY2.js";import"./previewRequestQueue-ckAoc67T.js";
3import"./TableColumnManager-BruSbqPT.js";import"./sortable.esm-uTXborSC.js";import"./pin-CMF0sSOZ.js";import"./types-DcmzxX34.js";import"./useResourceChangeCounts-BIAAr-hn.js";import"./useSubscription-C4SX1Ymz.js";import"./git-commit-horizontal-wT8uJr8y.js";import"./gql.typegen-CXOZ2V90.js";import"./delete-Dxwjc3L3.js";import"./git-pull-request-Bri-Ll84.js";import"./graphql-DFyM6FO0.js";import"./heading-1-B10gMI1V.js";import"./heading-2-C-5ZAy2n.js";import"./heading-3-CHuWmM0c.js";import"./text-quote-BHN31AxA.js";import"./PropertySelectorMenu-Bge36CxN.js";import"./use-motion-value-DC2_6UXw.js";import"./animate-BIQyoNud.js";import"./repeat-x4ca_WrV.js";import"./shield-off-DcovR_Ep.js";import"./list-tree-BVh614Vp.js";import"./clipboard-copy-B4jZ73v4.js";import"./message-square-off-C_FK2JoT.js";import"./file-code-corner-B9vpjcg0.js";import"./languages-BVukd6BH.js";import"./text-cursor-input-C1M3evf_.js";import"./IconPicker-Bx8wZ31f.js";import"./rectangle-horizontal-fckbbRtE.js";import"./toggle-right-BH6QdZoj.js";import"./file-down-Bbdliw8B.js";import"./square-check-big-C28Px3qi.js";import"./list-todo-BjzXxE_i.js";import"./link-2-C_QIvIRK.js";import"./palette-Ci1xOUR7.js";import"./gql-jHE502pA.js";import"./modifiers.esm--vn5RlOH.js";import"./workflowBuilderConfig-sjDXALsF.js";import"./omit-DQZ4MgTe.js";import"./_flatRest-BhHkMRwN.js";import"./uniqueId-C3JYkmCe.js";import"./_baseMap-v7awS7Ux.js";import"./blocks-CMLxSrzo.js";import"./useWorkflowTrigger-DQlrQu5v.js";import"./helpers-Cw0JDlYB.js";import"./useAudience-CPyREhWq.js";import"./helpers-DETwX_Qp.js";import"./map-CILegyCp.js";import"./debounce-D0F5znEd.js";import"./circle-plus-C5eQ7L-Z.js";import"./providerSettings-BxFUXIhl.js";import"./useQueryState-DnlUnFfb.js";import"./react-use-clipboard.module-DVLONTyA.js";import"./filters-u0c2g6VL.js";import"./viewFilters-DQ94OLiH.js";import"./OperatorField-C45moCm7.js";import"./route-DO0SegQF.js";import"./InAppFeedMessage-9SJ6rINh.js";import"./useAppAppearance-50Isjgd7.js";import"./chevron-up-1UlJtVie.js";import"./SchemaFieldCard-oLeep1Xf.js";import"./DataList-Pj29Umo_.js";import"./comboboxPaste-DeHzUByw.js";import"./gql-Jz0wy9Ew.js";import"./utils-DSJ-GT19.js";import"./ReadOnlyCondition-CvEK52mK.js";import"./useAudienceFromConditionArgument-DFeA6Nz0.js";import"./helpers-CII6VkEW.js";import"./lock-TpGdQg9D.js";import"./string-B_J5Q0ZO.js";import"./arrow-down-wide-narrow-B1XPRhiu.js";import"./circle-check-big-CBHpltKq.js";import"./goal-CWIkJGlh.js";import"./brandmarkIcons-BtUmCVfu.js";import"./index-BUk-177P.js";import"./index-DZ3P5jvU.js";import"./gql.typegen-CXNcAlMt.js";const jt=({workflow:r,canEdit:x})=>{const{updateWorkflow:u}=P(),h=async f=>(await u({input:{goalAttachment:f}})).errors;return t.jsx(a,{p:"4",children:t.jsx(et,{attachment:r.goalAttachment??null,canEdit:x,resourceLabel:"workflow",onSave:h})})},wt=250,bt=()=>{const{workflow:r,updateWorkflow:x}=P(),{account:u}=Y(),{environment:h,isBranchEnv:f}=B(),p=I(),b=H("manage"),{confirm:W}=ht(),{manage:g}=gt(),{status:y,isSafeToRender:S}=pt(),{workflowPath:l}=M(),k=L(),{tags:D}
3=ot(),[v,O]=ft("workflows:details:open",!0),N=!!k.goals&&!f,C=o=>nt(o.data)?xt({workflow:r,step:o.data.obj,pathFn:l}):null,c=j.useRef(null),d=j.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]);return j.useEffect(()=>d,[d]),$("m",()=>{g.isAllowed&&b.onToggle()},{},[p.pathname,p.query]),Q({name:"Edit",callback:()=>{p.push(l(r,["steps"]))}}),y==="fetching"?null:!S||Object.keys(r||{}).length===0||y==="failure"?t.jsx(ut,{account:u,currentEnvironment:h,itemType:"workflow"}):r?t.jsxs(t.Fragment,{children:[t.jsx(_,{children:t.jsxs("title",{children:[r.name," workflow | Knock"]})}),t.jsx(a,{"data-resource-details-layout-container":!0,w:"full",h:"full",children:t.jsxs(s,{direction:"row",h:"full","data-resource-details-layout-grid":!0,children:[t.jsxs(a,{as:"section",borderRight:"px","data-resource-details-layout-left-panel":!0,children:[t.jsx(a,{children:t.jsx(ct,{open:v,onOpenChange:O,variant:"transparent",bodyProps:{pt:"0"},title:"Details",actions:t.jsxs(t.Fragment,{children:[!v&&t.jsx(e,{as:"span",size:"1",color:"gray",children:dt(r.insertedAt,r.updatedAt)}),t.jsx(R,{size:"1",variant:"outline",onClick:b.onOpen,disabled:!g.isAllowed,children:"Edit details"})]}),content:t.jsxs(K.List,{children:[t.jsx(i.Row,{label:"Status",children:t.jsxs(n.Root,{value:r?.active?"Active":"Inactive",onValueChange:async o=>{if(o==="Inactive"&&!await W({title:"Deactivate workflow",confirmButtonLabel:"Deactivate workflow",enableConfirmShortcut:!0,description:t.jsxs(t.Fragment,{children:[t.jsxs(lt,{color:"red",icon:F,children:["While this workflow remains inactive, no new workflow runs can be triggered.",t.jsx("br",{}),"Any currently-paused workflow runs that proceed to the next workflow step will be cancelled."]}),t.jsx(e,{as:"p",mt:"2",display:"block",children:"Are you sure you want to continue?"})]})}))return;const m=o==="Active";x({input:{active:m}}),G({name:V.WorkflowStatusChanged,context:{account:u,environment:h},metadata:{workflowKey:r.key,workflowName:r.name,active:m}})},children:[t.jsx(n.Trigger,{size:"0",minW:"36"}),t.jsx(n.Content,{minW:"36",children:t.jsxs(n.Options,{gap:"0",children:[t.jsx(n.Option,{size:"1",py:"3",value:"Active"}),t.jsx(n.Option,{size:"1",py:"3",value:"Inactive"})]})})]})}),t.jsx(i.Row,{label:"Key",children:t.jsx(w,{size:"1",onCopy:()=>{},textToCopy:r.key,textProps:{family:"mono",fontSize:"code-1",maxW:"40"},children:r.key})}),t.jsx(i.Row,{label:"Name",children:t.jsx(e,{as:"span",size:"1",children:r.name})}),t.jsx(i.Row,{label:"Description",children:t.jsx(i.Value,{children:r.description})}),t.jsx(i.Row,{label:"Preference categories",description:tt,children:r?.categories?.length&&r?.categories?.length>0?t.jsx(s,{wrap:"wrap",gap:"2",children:r.categories.map(o=>t.jsx(w,{size:"1",children:o},o))}):t.jsx(i.EmptyValue,{})}),t.jsx(i.Row,{label:"Tags",description:it,children:r?.tags?.length&&r?.tags?.length>0?t.jsx(s,{wrap:"wrap",gap:"2",children:r.tags.map(o=>t.jsx(w.Root,{size:"1",pr:"2",children:t.jsx(rt,{name:o,color:D.find(m=>m.name===o)?.color})},o))}):t.jsx(i.EmptyValue,{})}),t.jsx(i.Row,{label:"Commercial",description:"Will include configured 1-click unsubscribe links",children:t.jsx(e,{as:"span",size:"1",children:r.settings?.isCommercial?"Yes":"No"})}),t.jsx(i.Row,{label:"Override preferences",description:"Will always send, regardless of recipient preferences",children:t.jsx(e,{as:"span",size:"1",children:r.settings?.overridePreferences?"Yes":"No"})}),t.jsx(i.Row,{label:"Created at",children:t.jsxs(e,{as:"span",size:"1",children:[t.jsx(z,{dateTime:r.insertedAt,triggerTextProps:{size:"1"}}),!!r.creator&&t.jsxs(t.Fragment,{children:[" ","by ",r.creator.name??r.creator.email]})]})}),t.jsx(i.Row,{label:"Updated at",children:t.jsxs(e,{as:"span",size:"1",children:[t.jsx(z,{dateTime:r.updatedAt,triggerTextProps:{size:"1"}})," ","by"," ",r.latestEditor?.name??r.latestEditor?.email]})})]})})}),N&&r&&t.jsx(a,{borderTop:"px",children:t.jsx(jt,{workflow:r,canEdit:g.isAllowed})})]}),t.jsxs(s,{h:"full",overflow:"hidden",position:"relative",style:{minHeight:"600px"},children:[t.jsx(a,{position:"absolute",zIndex:"overlay",top:"0",left:"0",right:"0",height:"16",style:{background:"linear-gradient(to top, transparent, var(--tgph-surface-2))"}}),t.jsx(a,{position:"absolute",zIndex:"overlay",bottom:"0",left:"0",right:"0",height:"16",style:{background:"linear-gradient(to bottom, transparent, var(--tgph-surface-2))"}}),t.jsxs(s,{position:"absolute",zIndex:"overlay",alignItems:"center",top:"0",left:"0",w:"full",justifyContent:"space-between",py:"4",px:"4",style:{transform:"translateY(var(--tgph-spacing-0_5))"},children:[t.jsx(e,{as:"span",size:"2",weight:"medium",children:"Steps"}),t.jsx(q,{align:"end",label:t.jsxs(s,{gap:"2",align:"center",children:[t.jsx(e,{as:"span",size:"1",children:"Edit steps in workflow"}),t.jsx(A,{eventKey:"e",label:"E"})]}),children:t.jsx(R,{size:"1",variant:"outline",as:U,href:l(r,["steps"]),children:t.jsxs(s,{direction:"row",gap:"1",align:"center",children:["Edit steps",t.jsx(A,{label:"E",border:"0",backgroundColor:"transparent"})]})})})]}),t.jsx(Z,{h:"full",w:"full",children:t.jsx(st,{workflow:r,config:{draggable:!1,selectableExit:!!k.goals&&!f},onSelectOne:o=>{if(o.data.type===at.Exit){p.push(l(r,["steps","end"]));return}const m=l(r,["steps",o.id]);if(!C(o)){p.push(m);return}d(),c.current=setTimeout(()=>{c.current=null,p.push(m)},wt)},onUnselect:d,onNodeDoubleClick:(o,m,E)=>{const T=C(o);T&&(d(),X({path:T,router:p,event:E}))}})})]})]})})]}):null};bt.getLayout=r=>t.jsx(J,{verifyPermission:"workflows:read",isPageFlush:!0,children:t.jsx(mt,{children:r})});
3export{bt as default};
4
5//# debugId=bb9ece05-8c18-5cb6-bb02-fcf7b97e2530

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