PageSourceSearch

https://app.rooks.ai/assets/route-DtOF0ShF.js

js rooks.ai collected 2026-10-05 13:43:50 UTC 2,733 bytes, 1 lines download raw bytes

1import{ac as I,b8 as y,u as S,eQ as T,ba as O,P as i,j as e,N as g,d as r,B as p,L as d,O as E}from"./index-F4wd8lkf.js";import{a as v,T as x}from"./toggle-group-CePeoRtm.js";import{c as w}from"./formNavigation-C2ofhiAb.js";import{A}from"./arrow-left-CijjfOYN.js";import{P as D}from"./pencil-CGyULUrd.js";import{E as R}from"./eye-B5VeZX04.js";import"./toggle-Dsj9BYRg.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"e5ccf081b8df75adeeecd7bc7a075bafa5343e60"};var t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="673e5e49-fd5d-4ecf-8649-be751984a966",a._sentryDebugIdIdentifier="sentry-dbid-673e5e49-fd5d-4ecf-8649-be751984a966")}catch{}})();const l={DESTINATIONS:"destinations",NOTIFICATIONS:"notifications",POLICIES:"policies",RESPONSES:"responses"},u=[{displayName:"Responses",key:l.RESPONSES,path:i.RESPONSES},{displayName:"Notifications",key:l.NOTIFICATIONS,path:i.FORM_NOTIFICATIONS},{displayName:"Destinations",key:l.DESTINATIONS,path:i.FORM_DESTINATIONS},{displayName:"Policies",key:l.POLICIES,path:i.FORM_POLICIES}];function k(){const{workspaceLabel:a,formLabel:t}=I(),c=y(),n=S(s=>T(s,t)),h=O("update_credential");if(!(a&&t))return;const o=u.filter(({key:s})=>w(s,n?.access,h)),f=u.find(({path:s})=>c({to:s,fuzzy:!1}));if(f&&!o.some(({key:s})=>s===f.key))return e(g,{to:o[0]?.path??i.EDITOR,params:{formLabel:t,workspaceLabel:a},replace:!0});const N=o.find(({path:s})=>c({to:s,fuzzy:!1}))?.key;return e("div",{className:"h-screen max-h-screen bg-background overflow-y-scroll",children:r("div",{className:"mx-auto max-w-6xl px-6 py-8 flex flex-col gap-6",children:[r("div",{className:"flex flex-col gap-3",children:[e(p,{variant:"link",className:"w-fit px-0",asChild:!0,children:r(d,{to:i.DASHBOARD,params:{workspaceLabel:a},children:[e(A,{"data-icon":"inline-start"})," Back to forms"]})}),e("h2",{className:"text-3xl font-semibold tracking-tight first:mt-0",children:n?.displayName??t})]}),e(v,{type:"single",variant:"outline",value:N??"",className:"justify-start",asChild:!0,children:r("div",{className:"w-full flex justify-between items-center",children:[e("nav",{"aria-label":"Form details navigation",children:o.map(({displayName:s,key:m,path:b})=>e(x,{value:m,asChild:!0,children:e(d,{to:b,params:{formLabel:t,workspaceLabel:a},children:s})},m))}),n?.access?.view?e(p,{variant:"link",asChild:!0,children:r(d,{to:i.EDITOR,params:{formLabel:t,workspaceLabel:a},children:[n.access.edit?e(D,{"data-icon":"inline-start"}):e(R,{"data-icon":"inline-start"}),n.access.edit?"Edit form":"View form"]})}):null]})}),e("main",{children:e(E,{})})]})})}const M=k;export{M as component};

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.