@orgsdk/cli 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/bin/configuration.mjs +0 -12
- package/bin/options.mjs +6 -5
- package/bin/orgsdk.mjs +5 -7
- package/bin/supervision.mjs +29 -40
- package/dist/THIRD_PARTY_NOTICES.txt +53 -0
- package/dist/runtime/README.md +3 -3
- package/dist/runtime/cli.js +4 -1
- package/dist/server/index.js +935 -650
- package/dist/server/out/404/index.html +1 -1
- package/dist/server/out/404.html +1 -1
- package/dist/server/out/__next.!KHdvcmtzcGFjZSk.__PAGE__.txt +34 -33
- package/dist/server/out/__next._full.txt +28 -27
- package/dist/server/out/__next._tree.txt +1 -1
- package/dist/server/out/_next/static/chunks/08j8vkv6c63tl.js +1 -0
- package/dist/server/out/_next/static/chunks/08mhtndhqtap6.js +1 -0
- package/dist/server/out/_next/static/chunks/0_4g944_32yce.js +1 -0
- package/dist/server/out/_next/static/chunks/0ldil27yuop5w.js +1 -0
- package/dist/server/out/_next/static/chunks/0ml0xmlylpypc.js +1 -0
- package/dist/server/out/_next/static/chunks/0pnz1790dyskl.js +1 -0
- package/dist/server/out/_next/static/chunks/0vvzjn6qqroc-.js +1 -0
- package/dist/server/out/_next/static/chunks/1-rdwquujn9vu.js +1 -0
- package/dist/server/out/_next/static/chunks/{0y5lgqdwpeabb.js → 119rk6qs93dvi.js} +1 -1
- package/dist/server/out/_next/static/chunks/1mvslk_7tkoql.js +1 -0
- package/dist/server/out/_next/static/chunks/1qo38zfnwh7m8.js +1 -0
- package/dist/server/out/_next/static/chunks/1wzgdpm-y6pr7.js +1 -0
- package/dist/server/out/_next/static/chunks/1ybinna1i7_ih.js +1 -0
- package/dist/server/out/_next/static/chunks/1z4_it-ka8j5y.js +1 -0
- package/dist/server/out/_next/static/chunks/{0khjy8qh1ll42.js → 23_jxnb5bd655.js} +1 -1
- package/dist/server/out/_next/static/chunks/26xwt7opuq5ra.js +1 -0
- package/dist/server/out/_next/static/chunks/2_mjw80no8x2k.js +1 -0
- package/dist/server/out/_next/static/chunks/2e3acf42jw52v.js +1 -0
- package/dist/server/out/_next/static/chunks/2isb6m1ll4dfq.js +3 -0
- package/dist/server/out/_next/static/chunks/2q18r9vstryqj.js +3 -0
- package/dist/server/out/_next/static/chunks/2zwn2yzygk1de.js +1 -0
- package/dist/server/out/_next/static/chunks/{2z60o39-yshg2.js → 36wd29nar_zo_.js} +1 -1
- package/dist/server/out/_next/static/chunks/37a4b-pq_bp3z.js +1 -0
- package/dist/server/out/_next/static/chunks/37ulwyxnek-f9.js +1 -0
- package/dist/server/out/_next/static/chunks/38qp_i6ue7fcy.js +1 -0
- package/dist/server/out/_next/static/chunks/3a4y69p5pl3_7.js +10 -0
- package/dist/server/out/_next/static/chunks/3l2yelj-blib4.js +1 -0
- package/dist/server/out/_next/static/chunks/3u6154viqt17v.js +1 -0
- package/dist/server/out/_next/static/chunks/{2navy2mx7--vk.js → 3w6l6p3ylx6oq.js} +2 -2
- package/dist/server/out/_next/static/chunks/{0cwfl2xanfapu.js → 3yetoibj5lso8.js} +1 -1
- package/dist/server/out/_next/static/chunks/42mg-r2kufm8n.js +1 -0
- package/dist/server/out/_not-found/__next._full.txt +22 -19
- package/dist/server/out/_not-found/__next._not-found.__PAGE__.txt +25 -22
- package/dist/server/out/_not-found/__next._tree.txt +1 -1
- package/dist/server/out/_not-found/index.html +1 -1
- package/dist/server/out/_not-found/index.txt +22 -19
- package/dist/server/out/accounts/2fa/__next._full.txt +25 -24
- package/dist/server/out/accounts/2fa/__next._tree.txt +1 -1
- package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +28 -27
- package/dist/server/out/accounts/2fa/index.html +1 -1
- package/dist/server/out/accounts/2fa/index.txt +25 -24
- package/dist/server/out/accounts/email/__next._full.txt +25 -24
- package/dist/server/out/accounts/email/__next._tree.txt +1 -1
- package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +28 -27
- package/dist/server/out/accounts/email/index.html +1 -1
- package/dist/server/out/accounts/email/index.txt +25 -24
- package/dist/server/out/accounts/login/__next._full.txt +25 -24
- package/dist/server/out/accounts/login/__next._tree.txt +1 -1
- package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +28 -27
- package/dist/server/out/accounts/login/index.html +1 -1
- package/dist/server/out/accounts/login/index.txt +25 -24
- package/dist/server/out/accounts/logout/__next._full.txt +25 -24
- package/dist/server/out/accounts/logout/__next._tree.txt +1 -1
- package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +28 -27
- package/dist/server/out/accounts/logout/index.html +1 -1
- package/dist/server/out/accounts/logout/index.txt +25 -24
- package/dist/server/out/accounts/password/change/__next._full.txt +26 -25
- package/dist/server/out/accounts/password/change/__next._tree.txt +1 -1
- package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +30 -29
- package/dist/server/out/accounts/password/change/index.html +1 -1
- package/dist/server/out/accounts/password/change/index.txt +26 -25
- package/dist/server/out/accounts/password/reset/__next._full.txt +25 -23
- package/dist/server/out/accounts/password/reset/__next._tree.txt +1 -1
- package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +29 -27
- package/dist/server/out/accounts/password/reset/index.html +1 -1
- package/dist/server/out/accounts/password/reset/index.txt +25 -23
- package/dist/server/out/accounts/signup/__next._full.txt +25 -24
- package/dist/server/out/accounts/signup/__next._tree.txt +1 -1
- package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +28 -27
- package/dist/server/out/accounts/signup/index.html +1 -1
- package/dist/server/out/accounts/signup/index.txt +25 -24
- package/dist/server/out/actions/__next.!KHdvcmtzcGFjZSk.actions.__PAGE__.txt +33 -33
- package/dist/server/out/actions/__next._full.txt +28 -28
- package/dist/server/out/actions/__next._tree.txt +1 -1
- package/dist/server/out/actions/index.html +1 -1
- package/dist/server/out/actions/index.txt +28 -28
- package/dist/server/out/agents/__next.!KHdvcmtzcGFjZSk.agents.__PAGE__.txt +38 -37
- package/dist/server/out/agents/__next._full.txt +31 -30
- package/dist/server/out/agents/__next._tree.txt +1 -1
- package/dist/server/out/agents/index.html +1 -1
- package/dist/server/out/agents/index.txt +31 -30
- package/dist/server/out/approvals/__next.!KHdvcmtzcGFjZSk.approvals.__PAGE__.txt +38 -37
- package/dist/server/out/approvals/__next._full.txt +31 -30
- package/dist/server/out/approvals/__next._tree.txt +1 -1
- package/dist/server/out/approvals/index.html +1 -1
- package/dist/server/out/approvals/index.txt +31 -30
- package/dist/server/out/artifacts/__next.!KHdvcmtzcGFjZSk.artifacts.__PAGE__.txt +30 -30
- package/dist/server/out/artifacts/__next._full.txt +25 -25
- package/dist/server/out/artifacts/__next._tree.txt +1 -1
- package/dist/server/out/artifacts/index.html +1 -1
- package/dist/server/out/artifacts/index.txt +25 -25
- package/dist/server/out/audit/__next.!KHdvcmtzcGFjZSk.audit.__PAGE__.txt +35 -34
- package/dist/server/out/audit/__next._full.txt +28 -27
- package/dist/server/out/audit/__next._tree.txt +1 -1
- package/dist/server/out/audit/index.html +1 -1
- package/dist/server/out/audit/index.txt +28 -27
- package/dist/server/out/chat/__next.!KHdvcmtzcGFjZSk.chat.__PAGE__.txt +34 -33
- package/dist/server/out/chat/__next._full.txt +27 -26
- package/dist/server/out/chat/__next._tree.txt +1 -1
- package/dist/server/out/chat/index.html +1 -1
- package/dist/server/out/chat/index.txt +27 -26
- package/dist/server/out/connections/__next.!KHdvcmtzcGFjZSk.connections.__PAGE__.txt +38 -37
- package/dist/server/out/connections/__next._full.txt +31 -30
- package/dist/server/out/connections/__next._tree.txt +1 -1
- package/dist/server/out/connections/index.html +1 -1
- package/dist/server/out/connections/index.txt +31 -30
- package/dist/server/out/credentials/__next.!KHdvcmtzcGFjZSk.credentials.__PAGE__.txt +29 -29
- package/dist/server/out/credentials/__next._full.txt +24 -24
- package/dist/server/out/credentials/__next._tree.txt +1 -1
- package/dist/server/out/credentials/index.html +1 -1
- package/dist/server/out/credentials/index.txt +24 -24
- package/dist/server/out/documents/__next.!KHdvcmtzcGFjZSk.documents.__PAGE__.txt +38 -37
- package/dist/server/out/documents/__next._full.txt +31 -30
- package/dist/server/out/documents/__next._tree.txt +1 -1
- package/dist/server/out/documents/index.html +1 -1
- package/dist/server/out/documents/index.txt +31 -30
- package/dist/server/out/index.html +1 -1
- package/dist/server/out/index.txt +28 -27
- package/dist/server/out/people/__next.!KHdvcmtzcGFjZSk.people.__PAGE__.txt +38 -37
- package/dist/server/out/people/__next._full.txt +31 -30
- package/dist/server/out/people/__next._tree.txt +1 -1
- package/dist/server/out/people/index.html +1 -1
- package/dist/server/out/people/index.txt +31 -30
- package/dist/server/out/plugins/__next.!KHdvcmtzcGFjZSk.plugins.__PAGE__.txt +31 -31
- package/dist/server/out/plugins/__next._full.txt +26 -26
- package/dist/server/out/plugins/__next._tree.txt +1 -1
- package/dist/server/out/plugins/index.html +1 -1
- package/dist/server/out/plugins/index.txt +26 -26
- package/dist/server/out/projects/__next.!KHdvcmtzcGFjZSk.projects.__PAGE__.txt +38 -37
- package/dist/server/out/projects/__next._full.txt +31 -30
- package/dist/server/out/projects/__next._tree.txt +1 -1
- package/dist/server/out/projects/index.html +1 -1
- package/dist/server/out/projects/index.txt +31 -30
- package/dist/server/out/runs/__next.!KHdvcmtzcGFjZSk.runs.__PAGE__.txt +30 -30
- package/dist/server/out/runs/__next._full.txt +25 -25
- package/dist/server/out/runs/__next._tree.txt +1 -1
- package/dist/server/out/runs/index.html +1 -1
- package/dist/server/out/runs/index.txt +25 -25
- package/dist/server/out/schedules/__next.!KHdvcmtzcGFjZSk.schedules.__PAGE__.txt +29 -29
- package/dist/server/out/schedules/__next._full.txt +24 -24
- package/dist/server/out/schedules/__next._tree.txt +1 -1
- package/dist/server/out/schedules/index.html +1 -1
- package/dist/server/out/schedules/index.txt +24 -24
- package/dist/server/out/settings/__next.!KHdvcmtzcGFjZSk.settings.__PAGE__.txt +38 -37
- package/dist/server/out/settings/__next._full.txt +31 -30
- package/dist/server/out/settings/__next._tree.txt +1 -1
- package/dist/server/out/settings/index.html +1 -1
- package/dist/server/out/settings/index.txt +31 -30
- package/dist/server/out/setup/__next._full.txt +27 -26
- package/dist/server/out/setup/__next._tree.txt +1 -1
- package/dist/server/out/setup/__next.setup.__PAGE__.txt +30 -29
- package/dist/server/out/setup/index.html +1 -1
- package/dist/server/out/setup/index.txt +27 -26
- package/dist/server/out/studio/approve/__next._full.txt +30 -0
- package/dist/server/out/studio/approve/__next._tree.txt +5 -0
- package/dist/server/out/studio/approve/__next.studio.approve.__PAGE__.txt +37 -0
- package/dist/server/out/studio/approve/index.html +1 -0
- package/dist/server/out/studio/approve/index.txt +30 -0
- package/dist/server/out/tables/__next.!KHdvcmtzcGFjZSk.tables.__PAGE__.txt +35 -34
- package/dist/server/out/tables/__next._full.txt +28 -27
- package/dist/server/out/tables/__next._tree.txt +1 -1
- package/dist/server/out/tables/index.html +1 -1
- package/dist/server/out/tables/index.txt +28 -27
- package/dist/server/out/webhooks/__next.!KHdvcmtzcGFjZSk.webhooks.__PAGE__.txt +38 -37
- package/dist/server/out/webhooks/__next._full.txt +31 -30
- package/dist/server/out/webhooks/__next._tree.txt +1 -1
- package/dist/server/out/webhooks/index.html +1 -1
- package/dist/server/out/webhooks/index.txt +31 -30
- package/dist/server/out/workspaces/invite/__next._full.txt +28 -27
- package/dist/server/out/workspaces/invite/__next._tree.txt +1 -1
- package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +31 -30
- package/dist/server/out/workspaces/invite/index.html +1 -1
- package/dist/server/out/workspaces/invite/index.txt +28 -27
- package/docs/browser-sessions.md +3 -3
- package/docs/npm-distribution.md +4 -4
- package/docs/studio.md +25 -0
- package/package.json +6 -1
- package/runtime/README.md +3 -3
- package/dist/server/out/_next/static/chunks/0ay0b1lpy734z.js +0 -1
- package/dist/server/out/_next/static/chunks/0e7s8ie0wlk66.js +0 -1
- package/dist/server/out/_next/static/chunks/0ey-6hb0za4r_.js +0 -1
- package/dist/server/out/_next/static/chunks/0r0572w1rwpcv.js +0 -1
- package/dist/server/out/_next/static/chunks/0rghk0nc6wr4-.js +0 -3
- package/dist/server/out/_next/static/chunks/0u_9k8f7709np.js +0 -1
- package/dist/server/out/_next/static/chunks/0w34iczo7r1v5.js +0 -1
- package/dist/server/out/_next/static/chunks/0zfiikazg0_ga.js +0 -1
- package/dist/server/out/_next/static/chunks/1c2xcwifk3vhh.js +0 -1
- package/dist/server/out/_next/static/chunks/1clfpekejl_sp.js +0 -1
- package/dist/server/out/_next/static/chunks/1dwr62uuyceq-.js +0 -1
- package/dist/server/out/_next/static/chunks/1fweh1ttncdlv.js +0 -1
- package/dist/server/out/_next/static/chunks/1iklteprcoims.js +0 -1
- package/dist/server/out/_next/static/chunks/1zieh-zxgxmcp.js +0 -1
- package/dist/server/out/_next/static/chunks/25q38gki_yyde.js +0 -3
- package/dist/server/out/_next/static/chunks/25qsan0t-_of0.js +0 -1
- package/dist/server/out/_next/static/chunks/26yareaaj1kyr.js +0 -1
- package/dist/server/out/_next/static/chunks/2bkkmnhngpacd.js +0 -1
- package/dist/server/out/_next/static/chunks/2e39uy7huhczu.js +0 -1
- package/dist/server/out/_next/static/chunks/2rp65hq6bmpxv.js +0 -1
- package/dist/server/out/_next/static/chunks/3_d6w25_b15kx.js +0 -1
- package/dist/server/out/_next/static/chunks/3d8gkwu9nszjk.js +0 -1
- package/dist/server/out/_next/static/chunks/3l-16g1y6k5rs.js +0 -1
- package/dist/server/out/_next/static/chunks/3obu_9-ka7u_h.js +0 -1
- package/dist/server/out/_next/static/chunks/3u7q5w03st-rs.js +0 -1
- /package/dist/server/out/_next/static/{USFNp_mjuU8VbaPftn8uI → Y8vBpuSNi3rgSMMl9XHGn}/_buildManifest.js +0 -0
- /package/dist/server/out/_next/static/{USFNp_mjuU8VbaPftn8uI → Y8vBpuSNi3rgSMMl9XHGn}/_clientMiddlewareManifest.js +0 -0
- /package/dist/server/out/_next/static/{USFNp_mjuU8VbaPftn8uI → Y8vBpuSNi3rgSMMl9XHGn}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68877,e=>{"use strict";var s=e.i(56420);let a={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};a.node;let i=(0,s.f)(a);e.s(["f",0,i],68877)},51757,e=>{"use strict";var s=e.i(56420);let a={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};a.node;let i=(0,s.f)(a);e.s(["f",0,i],51757)},45320,e=>{"use strict";var s=e.i(18050),a=e.i(94591),i=e.i(75016),l=e.i(18879),r=e.i(68877),n=e.i(51757),t=e.i(71645),c=e.i(73656),o=e.i(95813),d=e.i(93479),u=e.i(19455);let h=[{label:"Projects and persistent execution",view:"work"},{label:"External clients and saved actions",view:"work"},{label:"Versioned TypeScript actions",view:"actions"},{label:"Runs, approvals and artifacts",view:"runs"},{label:"Scheduled workflows",view:"schedules"},{label:"Webhook triggers and delivery health",view:"webhooks"},{label:"Custom plugins and credentials",view:"plugins"},{label:"MCP and API clients with local activity",view:"connections"},{label:"Documents and memory",view:"documents"},{label:"Workspace database tables",view:"tables"},{label:"Workspace audit log (owners and admins)",view:"audit"}];function m({workspace:e,role:p,navigate:f,refreshWorkspace:x}){let[b,v]=(0,t.useState)(!1),[j,w]=(0,t.useState)(""),[g,k]=(0,t.useState)("");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Workspace administration"}),(0,s.jsx)("p",{className:"small",children:"Manage access, connections and the tools your projects use."}),(0,s.jsx)("nav",{className:"settings-navigation","aria-label":"Workspace settings",children:a.i.map(e=>(0,s.jsxs)(i.f,{className:"settings-link",href:e.href,children:[(0,s.jsx)(e.icon,{size:19}),(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(r.f,{size:15})]},e.id))})]}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Workspace settings"}),(0,s.jsxs)("div",{className:"resource-row",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e}),(0,s.jsxs)("small",{children:["Your role: ",p]})]}),(0,s.jsx)(u.f,{variant:"outline",onClick:()=>{f("members")},children:"Manage people"})]}),"owner"===p||"admin"===p?(0,s.jsxs)("form",{className:"mt-4",onSubmit:e=>{e.preventDefault();let s=new FormData(e.currentTarget),a=(0,l.f)(s,"workspace-name");v(!0),w(""),k(""),(async()=>{try{await c.U.workspace.update.mutate({name:a}),await x(),k("Workspace name saved.")}catch(e){w((0,o.f)(e))}finally{v(!1)}})()},children:[(0,s.jsxs)("label",{children:["Workspace name",(0,s.jsx)(d.f,{name:"workspace-name",defaultValue:e,required:!0,disabled:b},e)]}),(0,s.jsx)(u.f,{type:"submit",disabled:b,children:"Save workspace name"})]}):void 0,j?(0,s.jsx)("p",{className:"error",role:"alert",children:j}):void 0,g?(0,s.jsx)("p",{className:"notice",role:"status",children:g}):void 0,(0,s.jsx)("p",{className:"small",children:"Manage your email address, password and two-factor authentication."}),(0,s.jsx)(u.f,{asChild:!0,variant:"link",children:(0,s.jsxs)("a",{href:"/accounts/email/",children:["Account settings ",(0,s.jsx)(r.f,{size:13})]})})]}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Available in this installation"}),h.map(e=>(0,s.jsxs)("div",{className:"resource-row",children:[(0,s.jsx)(n.f,{size:17}),(0,s.jsx)("strong",{children:e.label}),(0,s.jsxs)(u.f,{variant:"ghost",size:"sm",onClick:()=>{f(e.view)},children:["Open ",(0,s.jsx)(r.f,{size:13})]})]},e.label))]})]})}var p=e.i(94757);e.s(["default",0,function(){let{workspace:e,role:a,goTo:i,refresh:l}=(0,p.useWorkspace)();return(0,s.jsx)(m,{workspace:e,role:a,navigate:i,refreshWorkspace:l})}],45320)},93479,e=>{"use strict";var s=e.i(18050),a=e.i(71645),i=e.i(39689);let l=a.forwardRef(({className:e,type:a,...l},r)=>(0,s.jsx)("input",{type:a,className:(0,i.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...l}));l.displayName="Input",e.s(["f",0,l])},18879,e=>{"use strict";e.s(["f",0,function(e,s){let a=e.get(s);return"string"==typeof a?a:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(18050),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,o,a,[y,b]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:v,as:w,children:S,prefetch:P=null,passHref:N,replace:C,shallow:E,scroll:_,onClick:T,onMouseEnter:O,onTouchStart:R,legacyBehavior:U=!1,onNavigate:$,transitionTypes:L,ref:k,unstable_dynamicOnHover:A,...I}=t;n=S,U&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=s.default.useContext(l.AppRouterContext),F=!1!==P,B=!1===P?"none":!0===P?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=w||v)?r:(0,u.formatUrl)(r);if(U){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let z=U?o&&"object"==typeof o&&o.ref:k,W,q=s.default.useCallback(e=>(null!==M&&(j.current=(0,p.mountLinkInstance)(e,K,M,D,F,b,W)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,K,M,D,b,W]),Z={ref:(0,c.useMergedRef)(q,z),onClick(t){U||"function"!=typeof T||T(t),U&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,a,i,s,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,s,u)}}(t,K,j,C,_,$,L,B)},onMouseEnter(e){U||"function"!=typeof O||O(e),U&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){U||"function"!=typeof R||R(e),U&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(K)?Z.href=K:U&&!N&&("a"!==o.type||"href"in o.props)||(Z.href=(0,d.addBasePath)(K)),a=U?s.default.cloneElement(o,Z):(0,i.jsx)("a",{...I,...Z,children:n}),(0,i.jsx)(x.Provider,{value:y,children:a})}let x=(0,s.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return w}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},76046,e=>{"use strict";e.i(44362);var t=e.i(14778);e.s(["k",0,function(){location.assign(function(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}(location.search))},"z",0,"Confirm your identity below, then retry your change.","$",0,function(e){return(0,t.f)(e)&&e.data?.code==="UNAUTHORIZED"},"y",0,function(){let e=`${location.pathname}${location.search}${location.hash}`;location.replace(`/accounts/login/?next=${encodeURIComponent(e)}`)},"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)}])},86441,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(73656),o=e.i(71645),a=e.i(92229),i=e.i(18879),s=e.i(11105);function u(){return(0,t.jsxs)("details",{open:!0,className:"mt-6 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Confirm your identity"}),(0,t.jsxs)("p",{className:"text-sm",children:["Session expired? ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in again"}),"."]}),(0,t.jsx)("p",{className:"text-sm",children:"If a security change asks you to confirm your identity, enter your password or an authenticator code, then retry the change."}),(0,t.jsx)(s.F,{submitLabel:"Confirm password",onSubmit:async e=>(await n.U.auth.reauthenticate.mutate({password:(0,i.f)(e,"password")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(s.j,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0})}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(s.F,{submitLabel:"Confirm code",onSubmit:async e=>(await n.U.auth.mfaReauthenticate.mutate({code:(0,i.f)(e,"code")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(s.j,{label:"Authenticator or recovery code",name:"code",autoComplete:"one-time-code",required:!0})})})]})}e.s(["f",0,function({children:e}){let[i,s]=(0,o.useState)(),[l,c]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=new AbortController;return(0,n.m)(e.signal).then(t=>{e.signal.aborted||s(t)}).catch(()=>{e.signal.aborted||c(!0)}),()=>{e.abort()}},[]);let[f,d]=(0,o.useState)(!1);return l?(0,t.jsx)("p",{role:"alert",children:"Unable to load your account. Reload to try again."}):i?i.is_authenticated?(0,t.jsxs)(a.T,{value:()=>{d(!0)},children:[e,f&&(0,t.jsx)(u,{})]}):(0,t.jsxs)("p",{children:["Please ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"sign in"})," to manage your account."]}):(0,t.jsx)("p",{role:"status",children:"Loading your account…"})}],86441)},11105,92229,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(76046),o=e.i(95813);let a=(0,r.createContext)(void 0);function i(){let e=(0,r.useContext)(a);return(t,r)=>e&&(0,n.$)(t)?(e(),n.z):(0,o.f)(t,r)}e.s(["T",0,a,"G",0,i],92229);var s=e.i(19455),u=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(u.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:o}){let a=i(),[u,l]=(0,r.useState)(!1),[c,f]=(0,r.useState)(""),[d,h]=(0,r.useState)("");async function p(e){e.preventDefault();let t=new FormData(e.currentTarget);l(!0),f(""),h("");try{h(await o(t)??"")}catch(e){f(a(e,"Unable to save. Please try again."))}finally{l(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{p(e)},children:[(0,t.jsxs)("fieldset",{disabled:u,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(s.f,{type:"submit",disabled:u,children:u?"Please wait…":n})]}),c&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:c}),d&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:d})]})}],11105)},15448,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(2716);e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:i=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n.f,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)(r.default,{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[i&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}])},42498,e=>{"use strict";var t=e.i(18050),r=e.i(76046),n=e.i(73656),o=e.i(15448),a=e.i(86441),i=e.i(11105);e.s(["SignOut",0,function(){return(0,t.jsx)(o.f,{title:"Sign out",description:"Sign out of your account on this browser.",children:(0,t.jsx)(a.f,{children:(0,t.jsx)(i.F,{submitLabel:"Sign out",onSubmit:async()=>(await n.U.auth.logout.mutate(),(0,r.k)(),""),children:null})})})}])},93479,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(39689);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Input",e.s(["f",0,o])},2716,e=>{"use strict";var t=e.i(18050);e.s(["f",0,function({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(18050),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),f=e.r(18967),d=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,o,a,[y,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:v,as:w,children:S,prefetch:P=null,passHref:C,replace:N,shallow:E,scroll:_,onClick:T,onMouseEnter:U,onTouchStart:O,legacyBehavior:$=!1,onNavigate:R,transitionTypes:k,ref:A,unstable_dynamicOnHover:L,...I}=t;n=S,$&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=s.default.useContext(l.AppRouterContext),F=!1!==P,B=!1===P?"none":!0===P?"full":"auto",D="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=w||v)?r:(0,u.formatUrl)(r);if($){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=s.default.Children.only(n)}let z=$?o&&"object"==typeof o&&o.ref:A,q,W=s.default.useCallback(e=>(null!==M&&(j.current=(0,h.mountLinkInstance)(e,K,M,D,F,b,q)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,K,M,D,b,q]),V={ref:(0,c.useMergedRef)(W,z),onClick(t){$||"function"!=typeof T||T(t),$&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,a,i,s,u="none"){if("u">typeof window){let l,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s,u)}}(t,K,j,N,_,R,k,B)},onMouseEnter(e){$||"function"!=typeof U||U(e),$&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){$||"function"!=typeof O||O(e),$&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,f.isAbsoluteUrl)(K)?V.href=K:$&&!C&&("a"!==o.type||"href"in o.props)||(V.href=(0,d.addBasePath)(K)),a=$?s.default.cloneElement(o,V):(0,i.jsx)("a",{...I,...V,children:n}),(0,i.jsx)(x.Provider,{value:y,children:a})}let x=(0,s.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return j},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},76046,e=>{"use strict";e.i(44362);var t=e.i(14778);e.s(["k",0,function(){location.assign(function(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}(location.search))},"z",0,"Confirm your identity below, then retry your change.","$",0,function(e){return(0,t.f)(e)&&e.data?.code==="UNAUTHORIZED"},"y",0,function(){let e=`${location.pathname}${location.search}${location.hash}`;location.replace(`/accounts/login/?next=${encodeURIComponent(e)}`)},"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)}])},11105,92229,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(76046),o=e.i(95813);let a=(0,r.createContext)(void 0);function i(){let e=(0,r.useContext)(a);return(t,r)=>e&&(0,n.$)(t)?(e(),n.z):(0,o.f)(t,r)}e.s(["T",0,a,"G",0,i],92229);var s=e.i(19455),u=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(u.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:o}){let a=i(),[u,l]=(0,r.useState)(!1),[c,f]=(0,r.useState)(""),[d,p]=(0,r.useState)("");async function h(e){e.preventDefault();let t=new FormData(e.currentTarget);l(!0),f(""),p("");try{p(await o(t)??"")}catch(e){f(a(e,"Unable to save. Please try again."))}finally{l(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{h(e)},children:[(0,t.jsxs)("fieldset",{disabled:u,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(s.f,{type:"submit",disabled:u,children:u?"Please wait…":n})]}),c&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:c}),d&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:d})]})}],11105)},15448,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(2716);e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:i=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n.f,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)(r.default,{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[i&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}])},4767,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(71645),o=e.i(76046),a=e.i(73656),i=e.i(15448),s=e.i(11105),u=e.i(18879);e.s(["SignIn",0,function({signup:e=!1}){let[l,c]=(0,n.useState)(!1),[f,d]=(0,n.useState)(""),[p,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=new AbortController;return(0,a.m)(e.signal).then(()=>a.U.auth.browserSession.query(void 0,{signal:e.signal})).then(t=>{if(!e.signal.aborted){if(t.is_authenticated)return void(0,o.k)();h((0,o.u)(t)),c(!0)}}).catch(()=>{e.signal.aborted||d("Unable to load your session. Reload this page to try again.")}),()=>{e.abort()}},[]),(0,t.jsxs)(i.f,{title:p?"Two-factor authentication":e?"Create your account":"Welcome back",description:p?"Enter a code from your authenticator app or an unused recovery code.":"Your projects, actions and workspace in one place.",children:[f&&(0,t.jsx)("p",{role:"alert",className:"error",children:f}),!l&&!f&&(0,t.jsx)("p",{role:"status",children:"Loading your session…"}),l&&(0,t.jsx)(s.F,{submitLabel:p?"Verify code":e?"Create account":"Sign in",onSubmit:async t=>{let r=await (p?a.U.auth.mfaAuthenticate.mutate({code:(0,u.f)(t,"code")}):e?a.U.auth.signup.mutate({email:(0,u.f)(t,"email"),username:(0,u.f)(t,"username"),password:(0,u.f)(t,"password")}):a.U.auth.login.mutate({email:(0,u.f)(t,"email"),password:(0,u.f)(t,"password")}));if(r.is_authenticated)return(0,o.k)(),"";if((0,o.u)(r))return h(!0),"";throw Error("Unable to sign in. Please try again.")},children:p?(0,t.jsx)(s.j,{label:"Authentication or recovery code",name:"code",autoComplete:"one-time-code",required:!0}):(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)(s.j,{label:"Username",name:"username",autoComplete:"username",required:!0}),(0,t.jsx)(s.j,{label:"Email address",name:"email",type:"email",autoComplete:e?"email":"username",required:!0}),(0,t.jsx)(s.j,{label:"Password",name:"password",type:"password",autoComplete:e?"new-password":"current-password",required:!0})]})}),(0,t.jsxs)("div",{className:"mt-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:e?"/accounts/login/":"/accounts/signup/",children:e?"Already have an account? Sign in":"Create an account"}),(0,t.jsx)(r.default,{href:"/accounts/password/reset/",children:"Forgot password?"})]})]})}])},93479,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(39689);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Input",e.s(["f",0,o])},2716,e=>{"use strict";var t=e.i(18050);e.s(["f",0,function({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";var t=e.i(56420);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],11241)},51757,e=>{"use strict";var t=e.i(56420);let r={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],51757)},62368,e=>{"use strict";var t=e.i(56420);let r={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],62368)},26091,e=>{"use strict";var t=e.i(56420);let r={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],26091)},95925,29272,e=>{"use strict";var t=e.i(56420);let r={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],95925);let i={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};i.node;let s=(0,t.f)(i);e.s(["f",0,s],29272)},66595,e=>{"use strict";var t=e.i(56420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],66595)},5500,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return v}});let n=e.r(55682),i=e.r(90809),s=e.r(18050),a=i._(e.r(71645)),l=n._(e.r(74080)),o=n._(e.r(25633)),c=e.r(8927),d=e.r(65856),u=e.r(49381),f=n._(e.r(1948)),p=e.r(18581);function h(e,t,r,n,i,s,a){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function m(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g="u"<typeof window?a.useEffect:a.useLayoutEffect,x=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:l,className:o,style:c,fetchPriority:d,placeholder:u,loading:f,unoptimized:x,fill:y,onLoadRef:v,onLoadingCompleteRef:j,setBlurComplete:b,setShowAltText:w,sizesInput:k,onLoad:_,onError:S,...P},C)=>{let O=(0,a.useRef)(!1),A=(0,a.useRef)(null);g(()=>{let{current:e}=O,{current:t}=A;e||null===t||(S&&(t.src=t.src),t.complete&&h(t,u,v,j,b,x,k),O.current=!0)},[e,u,v,j,S,x,k]);let N=(0,p.useMergedRef)(C,A);return(0,s.jsx)("img",{...P,...m(d),loading:f,width:i,height:n,decoding:l,"data-nimg":y?"fill":"1",className:o,style:c,sizes:r,srcSet:t,src:e,ref:N,onLoad:e=>{h(e.currentTarget,u,v,j,b,x,k)},onError:e=>{w(!0),"empty"!==u&&b(!0),S&&S(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...m(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,r),null):(0,s.jsx)(o.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(d.RouterContext),n=(0,u.useImageConfig)(),{onLoad:i,onLoadingComplete:l}=e,o=(0,a.useRef)(i);(0,a.useEffect)(()=>{o.current=i},[i]);let p=(0,a.useRef)(l);(0,a.useEffect)(()=>{p.current=l},[l]);let[h,m]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),{props:j,meta:b}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:n,blurComplete:h,showAltText:g});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x,{...j,unoptimized:b.unoptimized,placeholder:b.placeholder,fill:b.fill,onLoadRef:o,onLoadingCompleteRef:p,setBlurComplete:m,setShowAltText:v,sizesInput:e.sizes,ref:t}),b.preload?(0,s.jsx)(y,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},49381,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useImageConfig",{enumerable:!0,get:function(){return l}});let n=e.r(71645),i=e.r(87690),s=e.r(18556),a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function l(){let e=(0,n.useContext)(s.ImageConfigContext);return(0,i.prepareImageConfig)(a,e)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return d},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return u},getOrCreateGlobalAsyncLocalStorage:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class a{disable(){throw s}getStore(){}run(){throw s}exit(){throw s}enterWith(){throw s}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return l?new l:new a}function c(e){let t=Symbol.for(`@next/${e}@16.4.5`),r=globalThis;return r[t]??=o()}function d(e){return l?l.bind(e):a.bind(e)}function u(){return l?l.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(42344)},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(55682)._(e.r(69093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},70965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},8927,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return o}});let n=e.r(43369),i=e.r(88143),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:0/0:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):0/0}function o({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:u,className:f,quality:p,width:h,height:m,fill:g=!1,style:x,overrideSrc:y,onLoad:v,onLoadingComplete:j,placeholder:b="empty",blurDataURL:w,fetchPriority:k,decoding:_="async",layout:S,objectFit:P,objectPosition:C,lazyBoundary:O,lazyRoot:A,...N},z){var M;let R,$,{imgConf:I,showAltText:E,blurComplete:L,defaultLoader:U}=z;if(void 0===U)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let T=N.loader||U;delete N.loader,delete N.srcSet;let D="__next_img_default"in T;if(D){if("custom"===I.loader)throw Error(`Image with src "${e}" is missing "loader" prop.
|
|
2
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`)}else{let e=T;T=t=>{let{config:r,...n}=t;return e(n)}}if(S){"fill"===S&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(x={...x,...e});let r={responsive:"100vw",fill:"100vw"}[S];r&&!t&&(t=r)}let q="",B=l(h),F=l(m);if((M=e)&&"object"==typeof M&&(a(M)||void 0!==M.src)){let t=a(e)?e.default:e;if(!t.src)throw Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`);if(!t.height||!t.width)throw Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`);if(R=t.blurWidth,$=t.blurHeight,w=w||t.blurDataURL,q=t.src,!g)if(B||F){if(B&&!F){let e=B/t.width;F=Math.round(t.height*e)}else if(!B&&F){let e=F/t.height;B=Math.round(t.width*e)}}else B=t.width,F=t.height}let W=!c&&!d&&("lazy"===u||void 0===u);(!(e="string"==typeof e?e:q)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,W=!1),I.unoptimized&&(r=!0),D&&!I.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(p),H=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:C}:{},E?{}:{color:"transparent"},x),V=L||"empty"===b?null:"blur"===b?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:B,heightInt:F,blurWidth:R,blurHeight:$,blurDataURL:w||"",objectFit:H.objectFit})}")`:`url("${b}")`,J=s.includes(H.objectFit)?"fill"===H.objectFit?"100% 100%":"cover":H.objectFit,K=V?{backgroundSize:J,backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:V}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:s,sizes:a,loader:l}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,a),d=o.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:o.map((r,n)=>`${l({config:e,src:t,quality:s,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:l({config:e,src:t,quality:s,width:o[d]})}}({config:I,src:e,unoptimized:r,width:B,quality:G,sizes:t,loader:T}),Y=W?"lazy":u;return{props:{...N,loading:Y,fetchPriority:k,width:B,height:F,decoding:_,className:f,style:{...H,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:y||Q.src},meta:{unoptimized:r,preload:d||c,placeholder:b,fill:g}}}},25633,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),a=e.r(90809),l=e.r(18050),o=a._(e.r(71645)),c=s._(e.r(98879)),d=e.r(42732);function u(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let p=["name","httpEquiv","charSet","itemProp"];function h(e){let t,r,n,i;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?s=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!a)&&n.has(t)?s=!1:(n.add(t),i[r]=n)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,o.useContext)(d.HeadManagerContext);return(0,l.jsx)(c.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:s,objectFit:a}){let l=r?40*r:e,o=i?40*i:t,c=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},18556,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(55682)._(e.r(71645)),i=e.r(87690),s=n.default.createContext(i.imageConfigDefault)},87690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return c},prepareImageConfig:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["default","imgix","cloudinary","akamai","custom"],a={},l=new WeakMap;function o(e,t){let r=e??a,n=t??a,i=l.get(r);if(i){let e=i.get(n);if(e)return e}let s=e||t||c,o=[...s.deviceSizes].sort((e,t)=>e-t),d=[...s.imageSizes],u={deviceSizes:o,imageSizes:d,allSizes:[...o,...d].sort((e,t)=>e-t),qualities:void 0===s.qualities?void 0:[...s.qualities].sort((e,t)=>e-t),path:s.path,loader:s.loader,dangerouslyAllowSVG:s.dangerouslyAllowSVG,unoptimized:s.unoptimized,domains:s.domains,remotePatterns:s.remotePatterns,localPatterns:"u"<typeof window&&void 0!==t?t.localPatterns:s.localPatterns,output:s.output};return i||(i=new WeakMap,l.set(r,i)),i.set(n,u),u}let c={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},1948,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(70965),i=e.r(43369);function s({config:e,src:t,width:r,quality:a}){let l=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())l=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){l=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
3
|
-
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`);let o=(0,n.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}s.__next_img_default=!0;let a=s},67585,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return a}});let n=e.r(71645),i=e.r(74080);e.r(32061);let s=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function a({children:e}){return(0,n.use)((0,i.browser)(s)),e}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(18050),i=e.r(71645),s=e.r(67585),a=e.r(52157);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,i.lazy)(()=>t.loader().then(l)),c=t.loading;function d(e){let l=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?i.Suspense:i.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSRForNextDynamic,{children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(d,{...o?{fallback:l}:{},children:u})}return d.displayName="LoadableComponent",d}},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(18050),i=e.r(74080),s=e.r(63599),a=e.r(9885),l=e.r(43369);function o({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,l.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},49354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createReactBrowserBailoutReason:function(){return a},getReactBrowserBailoutReason:function(){return l},isNextBrowserBailoutError:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=Symbol.for("next.browser-bailout-reason");function a(e){return{$$typeof:s,reason:e}}function l(e){let t=e?.cause;return t?.$$typeof===s?t.reason:void 0}function o(e){return void 0!==l(e)}},65856,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=(e.r(55682)._(e.r(71645))).default.createContext(null)},98879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(71645),i="u"<typeof window,s=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},13581,29487,e=>{"use strict";var t=e.i(71645),r=e.i(95813);e.s(["f",0,function(e,n=0){let[i,s]=(0,t.useState)(),[a,l]=(0,t.useState)(""),[o,c]=(0,t.useState)(!0),d=(0,t.useRef)(void 0),u=(0,t.useRef)(!1),f=(0,t.useCallback)(async()=>{d.current?.abort();let t=new AbortController;d.current=t;try{let r=await e(t.signal);if(t.signal.aborted||!u.current)return;s(r),l("")}catch(e){!t.signal.aborted&&u.current&&l((0,r.f)(e))}finally{!t.signal.aborted&&u.current&&c(!1)}},[e]);return(0,t.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&f()});let e=n>0?setInterval(()=>{f()},n):void 0;return()=>{u.current=!1,d.current?.abort(),clearInterval(e)}},[f,n]),{data:i,error:a,isLoading:o,refresh:f}}],13581);var n=e.i(18050),i=e.i(19455);e.s(["f",0,function({isLoading:e,error:t,refresh:r}){return(0,n.jsxs)(n.Fragment,{children:[e?(0,n.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,t?(0,n.jsxs)("div",{className:"error",role:"alert",children:[(0,n.jsx)("p",{children:t}),(0,n.jsx)(i.f,{variant:"outline",onClick:()=>{r()},children:"Try again"})]}):void 0]})}],29487)},93479,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(39689);let i=r.forwardRef(({className:e,type:r,...i},s)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...i}));i.displayName="Input",e.s(["f",0,i])},24687,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(39689);let i=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("textarea",{className:(0,n.f)("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));i.displayName="Textarea",e.s(["f",0,i])},1101,75775,e=>{"use strict";var t=e.i(18050),r=e.i(56420);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let i=(0,r.f)(n);e.s(["f",0,i],75775);var s=e.i(52330),a=e.i(75016);e.s(["f",0,function({action:e}){let r=e.description.trim(),n=new URLSearchParams({project:e.project,action:e.id}).toString();return(0,t.jsxs)("article",{className:"flex min-w-0 flex-col gap-4 rounded-xl border border-slate-200 bg-white p-5",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsx)(s.f,{size:20,className:"shrink-0 text-indigo-600","aria-hidden":"true"}),(0,t.jsx)("span",{className:e.enabled?"rounded-full bg-emerald-50 px-2.5 py-1 text-xs font-medium text-emerald-700":"rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-600",children:e.enabled?"Enabled":"Disabled"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)("h3",{className:"text-base font-semibold",children:(0,t.jsxs)(a.f,{href:`/actions/?${n}`,className:"flex items-start justify-between gap-3 hover:underline",children:[(0,t.jsx)("span",{className:"break-words",children:e.name}),(0,t.jsx)(i,{size:17,className:"mt-0.5 shrink-0","aria-hidden":"true"})]})}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:r.length>0?r:"Open this action to review its code, inputs and saved versions."})]}),(0,t.jsxs)("nav",{className:"flex flex-wrap gap-x-4 gap-y-2 border-t border-slate-100 pt-3 text-sm","aria-label":`${e.name} related records`,children:[(0,t.jsx)(a.f,{href:`/runs/?${n}`,className:"hover:underline",children:"Runs"}),(0,t.jsx)(a.f,{href:`/schedules/?${n}`,className:"hover:underline",children:"Schedules"}),(0,t.jsx)(a.f,{href:`/webhooks/?${n}`,className:"hover:underline",children:"Webhooks"})]})]})}],1101)},12102,e=>{"use strict";var t=e.i(40192),r=e.i(54105),n=e.i(19877),i=e.i(22219),i=i;let s=t.z.record(r.z.string(),n.z.json());e.s(["z",0,function(e){let t=JSON.parse(e);return i.array(s).min(1).max(50).parse(t)},"J",0,function(e){let t=JSON.parse(e);return s.parse(t)}],12102)},59140,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(18566),i=e.i(11241),s=e.i(73656),a=e.i(13581),l=e.i(94757),o=e.i(75016),c=e.i(29487);let d=[{id:"editor",label:"Code & configuration",path:"/actions/"},{id:"runs",label:"Runs",path:"/runs/"},{id:"schedules",label:"Schedule",path:"/schedules/"},{id:"webhooks",label:"Webhooks",path:"/webhooks/"}];function u({action:e,current:r}){let n=e.project,s=new URLSearchParams({project:n,action:e.id});return(0,t.jsxs)("div",{className:"mb-6 min-w-0 space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsxs)(o.f,{className:"inline-flex items-center gap-1 text-sm",href:`/actions/?${new URLSearchParams({project:n}).toString()}`,children:[(0,t.jsx)(i.f,{size:14,"aria-hidden":"true"})," All actions"]}),(0,t.jsx)("span",{className:"text-slate-300","aria-hidden":"true",children:"/"}),(0,t.jsx)("strong",{className:"min-w-0 break-words",children:e.name})]}),(0,t.jsx)("nav",{className:"flex flex-wrap gap-2","aria-label":"Action sections",children:d.map(e=>(0,t.jsx)(o.f,{href:`${e.path}?${s.toString()}`,"aria-current":r===e.id?"page":void 0,className:r===e.id?"rounded-md bg-indigo-50 px-3 py-2 text-sm font-medium text-indigo-700":"rounded-md px-3 py-2 text-sm text-slate-600 hover:bg-slate-100",children:e.label},e.id))})]})}function f({project:e,actionId:n,current:i,children:l}){let d=(0,r.useCallback)(async t=>{if(!n)return;let r=await s.U.actions.get.query({id:n},{signal:t});if(r.project!==e)throw Error("This action is not available in the selected project.");return r},[n,e]),p=(0,a.f)(d);return n&&(p.isLoading||p.error||p.data?.id!==n)?(0,t.jsx)(c.f,{...p}):(0,t.jsxs)(t.Fragment,{children:[p.data?(0,t.jsx)(u,{action:p.data,current:i}):(0,t.jsx)("p",{className:"mb-5",children:(0,t.jsx)(o.f,{href:`/actions/?${new URLSearchParams({project:e}).toString()}`,children:"Back to project actions"})}),l(n)]})}e.s(["F",0,u,"c",0,function({current:e,children:r}){let{selected:i}=(0,l.useWorkspace)(),s=(0,n.useSearchParams)().get("action")??"";return(0,t.jsx)(f,{project:i,actionId:s,current:e,children:r},`${i}:${s}`)}])},44555,e=>{"use strict";var t=e.i(18050),r=e.i(56420);let n={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};n.node;let i=(0,r.f)(n);var s=e.i(71645),a=e.i(73656),l=e.i(95813),o=e.i(13581),c=e.i(15080),d=e.i(19455),u=e.i(29487);e.s(["f",0,function({runId:e,openRun:r}){let n=(0,o.f)(c.i,5e3),[f,p]=(0,s.useState)(""),[h,m]=(0,s.useState)(""),g=n.data?.filter(t=>"pending"===t.status&&(!e||t.run===e))??[],x=async(e,t)=>{p(e),m("");try{await a.U.approvals.decide.mutate({id:e,decision:t}),await n.refresh()}catch(e){m((0,l.f)(e))}finally{p("")}};return(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsxs)("div",{className:"panel-title",children:[(0,t.jsxs)("h2",{children:[(0,t.jsx)(i,{size:18})," ",e?"Run approvals":"Approval queue"]}),(0,t.jsxs)("span",{className:"badge",children:[g.length," pending"]})]}),(0,t.jsx)(u.f,{...n}),h?(0,t.jsx)("p",{className:"error",role:"alert",children:h}):void 0,n.isLoading||0!==g.length?void 0:(0,t.jsxs)("div",{className:"resource-empty",children:[(0,t.jsx)(i,{size:28}),(0,t.jsx)("h3",{children:"All caught up"}),(0,t.jsx)("p",{children:"No decisions are waiting for you."})]}),g.map(e=>(0,t.jsxs)("article",{className:"approval-card",children:[(0,t.jsx)("span",{className:"eyebrow",children:"Human approval required"}),(0,t.jsx)("p",{className:"approval-prompt",children:e.prompt}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(d.f,{disabled:!!f,onClick:()=>{x(e.id,"approved")},children:f===e.id?"Saving decision…":"Approve"}),(0,t.jsx)(d.f,{variant:"outline",disabled:!!f,onClick:()=>{x(e.id,"denied")},children:"Deny"}),r?(0,t.jsx)(d.f,{variant:"ghost",onClick:()=>{r(e.run)},children:"Inspect run"}):void 0]})]},e.id))]})}],44555)},23920,e=>{"use strict";var t=e.i(18050),r=e.i(5500),r=r,n=e.i(79258),i=e.i(71645);let s=new Map([["asana","/plugins/icons/asana.ico"],["browser","/plugins/icons/browser-cdp.png"],["browser-cdp","/plugins/icons/browser-cdp.png"],["data","/plugins/icons/data.svg"],["facebook","/plugins/icons/facebook.svg"],["github","/plugins/icons/github.svg"],["gmail","/plugins/icons/gmail.svg"],["google-drive","/plugins/icons/google-drive.svg"],["google-sheets","/plugins/icons/google-sheets.svg"],["google-tasks","/plugins/icons/google-tasks.svg"],["harvest","/plugins/icons/harvest.svg"],["linkedin","/plugins/icons/linkedin.png"],["llm","/plugins/icons/llm.svg"],["serper","/plugins/icons/serper.png"],["servicem8","/plugins/icons/servicem8.png"],["shippo","/plugins/icons/shippo.png"],["shopify","/plugins/icons/shopify.png"],["twitter","/plugins/icons/twitter.svg"],["xero","/plugins/icons/xero.svg"],["zendesk","/plugins/icons/zendesk.svg"]]);e.s(["f",0,function({url:e,catalogSlug:a="",size:l=32}){let o=s.get(a)??"",c=function(e){if(!e)return"";try{let t=new URL(e);return"https:"!==t.protocol||t.username||t.password?"":t.href}catch{return""}}(e),[d,u]=(0,i.useState)([]),f=[o&&c===`https://orgsdk.ai${o}`?o:c,o].find(e=>e.length>0&&!d.includes(e));return f?(0,t.jsx)(r.Image,{src:f,alt:"",width:l,height:l,unoptimized:!0,referrerPolicy:"no-referrer",className:"shrink-0 object-contain",onError:()=>{u(e=>[...e,f])}}):(0,t.jsx)(n.f,{size:l,className:"shrink-0","aria-hidden":"true"})}],23920)},36174,e=>{"use strict";var t=e.i(18050),r=e.i(11241),n=e.i(62368),i=e.i(95925),s=e.i(29272),a=e.i(71645),l=e.i(73656),o=e.i(95813),c=e.i(13581),d=e.i(15080),u=e.i(19455),f=e.i(85951),p=e.i(10505),h=e.i(29487),m=e.i(90409),g=e.i(59241),x=e.i(12102),y=e.i(75016),v=e.i(93479),j=e.i(24687);function b({id:e}){let[r,n]=(0,a.useState)(""),[i,s]=(0,a.useState)('{"type":"object"}'),[c,d]=(0,a.useState)("{}"),[f,p]=(0,a.useState)(!1),[h,m]=(0,a.useState)(""),[g,w]=(0,a.useState)(""),[k,_]=(0,a.useState)("");async function S(){p(!0),_(""),m("");try{let t=await l.U.runs.promote.mutate({id:e,name:r.trim(),input_schema:(0,x.J)(i),output_schema:(0,x.J)(c)});w(t.action),m(`Saved exact run source as version ${String(t.version.number)} of ${r.trim()} (action ${t.action}).`)}catch(e){_((0,o.f)(e))}finally{p(!1)}}return(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:"Promote accepted source to a saved action"}),(0,t.jsx)("p",{children:"The server copies this run’s exact source and SDK provenance. Run inputs remain examples and are not saved as defaults."}),(0,t.jsxs)("label",{children:["New action name",(0,t.jsx)(v.f,{value:r,disabled:f,onChange:e=>{n(e.target.value)}})]}),(0,t.jsxs)("label",{children:["Input schema (JSON)",(0,t.jsx)(j.f,{className:"code",value:i,disabled:f,onChange:e=>{s(e.target.value)}})]}),(0,t.jsxs)("label",{children:["Output schema (JSON)",(0,t.jsx)(j.f,{className:"code",value:c,disabled:f,onChange:e=>{d(e.target.value)}})]}),(0,t.jsx)(u.f,{disabled:f||!r.trim(),onClick:()=>{S()},children:"Promote exact source"}),k?(0,t.jsx)("p",{role:"alert",className:"error",children:k}):null,h?(0,t.jsx)("p",{role:"status",children:h}):null,g?(0,t.jsx)(y.f,{href:`/actions/?action=${encodeURIComponent(g)}`,children:"Open saved action"}):null]})}var w=e.i(44555);function k(e){let t=new Blob([e.content],{type:e.media_type}),r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e.name,n.click(),URL.revokeObjectURL(r)}function _({run:e,hasCheckReport:r}){return r?(0,t.jsx)(g.f,{output:e.output}):"succeeded"!==e.status?(0,t.jsx)("p",{children:p.B.includes(e.status)?"This run is still in progress. Its result will appear here.":`This run ${e.status}. Review the trace before retrying.`}):"chat"===e.operation?(0,t.jsx)(f.f,{content:(0,p.A)(e.output)}):(0,t.jsx)("pre",{children:(0,p.A)(e.output)||"Completed without output."})}let S={session:"Session result",test:"Mocked test results",validate:"Semantic validation diagnostics"};e.s(["T",0,function({id:e,projects:f,back:g,openRun:x}){let y=(0,m.f)(e),v=(0,c.f)(d.K),[j,P]=(0,a.useState)(!1),[C,O]=(0,a.useState)(""),A=y.data?.run,N=void 0!==A&&("test"===A.operation||"validate"===A.operation)&&null!==A.output&&"object"==typeof A.output&&Object.hasOwn(A.output,"result"),z=async t=>{P(!0),O("");try{if("cancel"===t)await l.U.runs.cancel.mutate({id:e});else{let t=await l.U.runs.retry.mutate({id:e,idempotency_key:crypto.randomUUID()});x(t.id)}await y.refresh()}catch(e){O((0,o.f)(e))}finally{P(!1)}};return(0,t.jsxs)("div",{className:"run-detail",children:[(0,t.jsxs)(u.f,{variant:"ghost",onClick:g,children:[(0,t.jsx)(r.f,{size:14})," All runs"]}),(0,t.jsx)(h.f,{...y}),C?(0,t.jsx)("p",{className:"error",role:"alert",children:C}):void 0,A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsxs)("div",{className:"panel-title",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"eyebrow",children:["RUN ",A.id.slice(0,8)]}),(0,t.jsxs)("h2",{children:[f.find(e=>e.id===A.project)?.name??"Project"," ","· ",(0,p.T)(A.operation)]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(p.k,{status:A.status}),p.B.includes(A.status)?(0,t.jsxs)(u.f,{variant:"outline",disabled:j||A.cancel_requested,onClick:()=>{z("cancel")},children:[(0,t.jsx)(s.f,{size:13}),A.cancel_requested?"Cancellation requested":"Cancel run"]}):void 0,["action","code","validate","test"].includes(A.operation)&&["failed","interrupted","cancelled"].includes(A.status)?(0,t.jsxs)(u.f,{variant:"outline",disabled:j,onClick:()=>{z("retry")},children:[(0,t.jsx)(i.f,{size:13})," Retry run"]}):void 0]})]}),(0,t.jsxs)("p",{className:"small",children:["Created ",new Date(A.created_at).toLocaleString()," · Updated"," ",new Date(A.updated_at).toLocaleString()]}),A.retry_of?(0,t.jsx)(u.f,{variant:"link",onClick:()=>{x(A.retry_of??"")},children:"View original run"}):void 0,A.error?(0,t.jsx)("div",{className:"error",role:"alert",children:A.error}):void 0,(0,t.jsxs)("dl",{children:[(0,t.jsx)("dt",{children:"Origin"}),(0,t.jsxs)("dd",{children:[A.origin," ",A.origin_reference]}),(0,t.jsx)("dt",{children:"Originating client"}),(0,t.jsx)("dd",{children:A.client_token??"No client token (historical attribution may be unknown)"}),(0,t.jsx)("dt",{children:"SDK revision"}),(0,t.jsx)("dd",{children:(0,p.A)(A.sdk_revision)||"Unknown"}),(0,t.jsx)("dt",{children:"Configuration revision"}),(0,t.jsx)("dd",{children:(0,p.A)(A.configuration_revision)||"Unknown"}),(0,t.jsx)("dt",{children:"Immutable action version"}),(0,t.jsx)("dd",{children:A.action_version??"One-off source / none"}),(0,t.jsx)("dt",{children:"Source digest"}),(0,t.jsx)("dd",{children:(0,p.A)(A.source_digest)||"Unknown"})]}),null===A.source?null:(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:"Accepted source"}),(0,t.jsx)("pre",{children:(0,p.A)(A.source)})]}),"code"===A.operation&&null!==A.source?(0,t.jsx)(b,{id:A.id},A.id):null,(0,t.jsx)("h3",{children:S[A.operation]??"Outcome"}),(0,t.jsx)(_,{run:A,hasCheckReport:N}),(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:"Run inputs"}),(0,t.jsx)("pre",{children:(0,p.A)(A.inputs)})]})]}),"waiting_approval"===A.status?(0,t.jsx)(w.f,{runId:e}):void 0,(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h2",{children:"Artifacts"}),(0,t.jsx)(h.f,{...v}),v.data?.filter(t=>t.run===e).length===0?(0,t.jsx)("p",{className:"small",children:"No artifacts were saved by this run."}):void 0,v.data?.filter(t=>t.run===e).map(e=>(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:e.name}),(0,t.jsxs)(u.f,{variant:"outline",size:"sm",onClick:()=>{k(e)},children:[(0,t.jsx)(n.f,{size:13}),"Download"]}),(0,t.jsx)("pre",{children:e.content})]},e.id))]}),"session"===A.operation?null:(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h2",{children:"Execution trace"}),y.data?.events.length===0?(0,t.jsx)("p",{className:"small",children:"Waiting for the first execution event."}):void 0,(0,t.jsx)("ol",{className:"run-timeline",children:y.data?.events.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"timeline-dot"}),(0,t.jsxs)("details",{children:[(0,t.jsxs)("summary",{children:[(0,t.jsx)("strong",{children:e.kind.replaceAll("."," ")}),(0,t.jsx)("time",{children:new Date(e.created_at).toLocaleTimeString()})]}),(0,t.jsx)("pre",{children:(0,p.A)(e.data)})]})]},e.sequence))})]})]}):void 0]})},"t",0,k],36174)},10505,79432,e=>{"use strict";var t=e.i(18050),r=e.i(56420);let n={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};n.node;let i=(0,r.f)(n);e.s(["f",0,i],79432);var s=e.i(51757);let a={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};a.node;let l=(0,r.f)(a),o={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};o.node;let c=(0,r.f)(o),d={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};d.node;let u=(0,r.f)(d);function f(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let r={succeeded:s.f,waiting_approval:c,running:i,queued:l,failed:u,cancelled:u,interrupted:u}[e]??l;return(0,t.jsxs)("span",{className:`run-status status-${e}`,children:[(0,t.jsx)(r,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,t){let r=t.find(t=>t.id===e.project)?.name??"Project";return"chat"===e.operation?`${r} \xb7 ${(function(e,t){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,t)){let r=Reflect.get(e,t);if("string"==typeof r)return r}return""})(e.inputs,"message").slice(0,70)}`:`${r} \xb7 ${f(e.operation)}`},"T",0,f],10505)},90409,59241,e=>{"use strict";var t=e.i(71645),r=e.i(73656),n=e.i(13581);e.s(["f",0,function(e){let i=(0,t.useCallback)(async t=>{let[n,i]=await Promise.all([r.U.runs.get.query({id:e},{signal:t}),r.U.runs.events.query({id:e},{signal:t})]);return{run:n,events:i}},[e]),s=(0,n.f)(i,3e3),a=s.data?.run.id===e?s.data:void 0,l=void 0!==a,{refresh:o}=s;return(0,t.useEffect)(()=>{if(l)return function(e,t,n=r.U.runs.stream.subscribe){let i,s=!0,a=()=>{s&&!i&&(i=setTimeout(()=>{i=void 0,s&&t()},400))},l=n({id:e},{onData:a,onComplete(){s&&(clearTimeout(i),i=void 0,t())},onError:a});return()=>{s=!1,clearTimeout(i),l.unsubscribe()}}(e,o)},[e,l,o]),{...s,data:a}}],90409);var i=e.i(18050),s=e.i(10505);function a(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}e.s(["f",0,function({output:e}){let t=a(e),r=a(t?.result)??t;if(!r)return null;let n=a(r.validation)??r,l=Array.isArray(n.diagnostics)?n.diagnostics:[],o=Array.isArray(r.cases)?r.cases:[];return(0,i.jsxs)("div",{children:["boolean"==typeof n.valid?(0,i.jsx)("p",{children:n.valid?"Source passed semantic validation.":"Source failed semantic validation."}):null,l.length>0?(0,i.jsx)("ul",{children:l.map((e,t)=>{let r=a(e);return(0,i.jsxs)("li",{children:["Line ",(0,s.A)(r?.line),", column"," ",(0,s.A)(r?.column),":"," ",(0,s.A)(r?.message)]},t)})}):null,o.length>0?(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Case"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Details"})]})}),(0,i.jsx)("tbody",{children:o.map((e,t)=>{let r=a(e);return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,s.A)(r?.name)}),(0,i.jsx)("td",{children:r?.passed===!0?"Passed":"Failed"}),(0,i.jsxs)("td",{children:["string"==typeof r?.error&&""!==r.error?(0,i.jsx)("p",{children:r.error}):null,Array.isArray(r?.violations)?(0,i.jsx)("pre",{children:(0,s.A)(r.violations)}):null,(0,i.jsxs)("details",{children:[(0,i.jsx)("summary",{children:"Actual output and logs"}),(0,i.jsx)("pre",{children:(0,s.A)(r?.actual)}),(0,i.jsx)("pre",{children:(0,s.A)(r?.logs)})]})]})]},t)})})]}):null]})}],59241)},59037,e=>{"use strict";var t=e.i(71645);e.s(["f",0,function(e,r){(0,t.useEffect)(()=>{r(e);let t=e=>{e.preventDefault()};return e&&addEventListener("beforeunload",t),()=>{removeEventListener("beforeunload",t),r(!1)}},[e,r])}])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])},78688,e=>{"use strict";function t(e){return null===e||"object"!=typeof e||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e))}function r(e){return"string"==typeof e?e:""}e.s(["o",0,function(e){if(!Array.isArray(e))return{tools:[],isComplete:!1};let n=[],i=!0;for(let s of e){let e=t(s),a=r(e.name);if(!a){i=!1;continue}let l=[];if(Array.isArray(e.parameters))for(let n of e.parameters){let e=t(n);if(!r(e.name)){i=!1;continue}l.push({name:r(e.name),type:r(e.type),description:r(e.description),optional:!0===e.optional})}n.push({name:a,description:r(e.description),parameters:l,returnType:r(e.returnType)})}return{tools:n,isComplete:i}},"u",0,function(e){let r=t(e);return{..."string"==typeof r.type&&{type:r.type},..."string"==typeof r.provider&&{provider:r.provider},..."string"==typeof r.label&&{label:r.label},..."string"==typeof r.hint&&{hint:r.hint}}},"g",0,function(e){return r(t(e).icon_url)}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809),i=e.r(18050),a=u._(e.r(71645)),l=e.r(95057),c=e.r(8372),s=e.r(18581),f=e.r(18967),p=e.r(5550),d=e.r(88540),h=e.r(91949),g=e.r(73668),y=e.r(9396);function m(t){var r;let n,o,u,[m,v]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),P=(0,a.useRef)(null),{href:S,as:E,children:C,prefetch:_=null,passHref:j,replace:O,shallow:T,scroll:x,onClick:L,onMouseEnter:N,onTouchStart:R,legacyBehavior:w=!1,onNavigate:$,transitionTypes:M,ref:U,unstable_dynamicOnHover:A,...I}=t;n=C,w&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let k=a.default.useContext(c.AppRouterContext),B=!1!==_,F=!1===_?"none":!0===_?"full":"auto",K="none"!==F?"auto"===F?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,D="string"==typeof(r=E||S)?r:(0,l.formatUrl)(r);if(w){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=a.default.Children.only(n)}let z=w?o&&"object"==typeof o&&o.ref:U,W,q=a.default.useCallback(e=>(null!==k&&(P.current=(0,h.mountLinkInstance)(e,D,k,K,B,v,W)),()=>{P.current&&((0,h.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,D,k,K,v,W]),J={ref:(0,s.useMergedRef)(q,z),onClick(t){w||"function"!=typeof L||L(t),w&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!k||t.defaultPrevented||function(t,r,n,o,u,i,a,l="none"){if("u">typeof window){let c,{nodeName:s}=t.currentTarget;if("A"===s.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===u?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,a,l)}}(t,D,P,O,x,$,M,F)},onMouseEnter(e){w||"function"!=typeof N||N(e),w&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),k&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){w||"function"!=typeof R||R(e),w&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),k&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(D)?J.href=D:w&&!j&&("a"!==o.type||"href"in o.props)||(J.href=(0,p.addBasePath)(D)),u=w?a.default.cloneElement(o,J):(0,i.jsx)("a",{...I,...J,children:n}),(0,i.jsx)(b.Provider,{value:m,children:u})}let b=(0,a.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(u.urlQueryToSearchParams(l)));let s=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),s&&"?"!==s[0]&&(s="?"+s),o=o.replace(/[?#]/g,encodeURIComponent),s=s.replace("#","%23"),`${n}${c}${o}${s}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=e.r(18967),o=e.r(52817);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return P},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return y},WEB_VITALS:function(){return u},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return c},getURL:function(){return s},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return E}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function s(){let{href:e}=window.location,t=c();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let g="u">typeof performance,y=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class P extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";var t=e.i(56420);let i={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};i.node;let a=(0,t.f)(i);e.s(["f",0,a],11241)},51757,e=>{"use strict";var t=e.i(56420);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let a=(0,t.f)(i);e.s(["f",0,a],51757)},59659,e=>{"use strict";var t=e.i(56420);let i={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};i.node;let a=(0,t.f)(i);e.s(["f",0,a],59659)},13581,29487,e=>{"use strict";var t=e.i(71645),i=e.i(95813);e.s(["f",0,function(e,a=0){let[s,r]=(0,t.useState)(),[n,l]=(0,t.useState)(""),[c,d]=(0,t.useState)(!0),o=(0,t.useRef)(void 0),u=(0,t.useRef)(!1),h=(0,t.useCallback)(async()=>{o.current?.abort();let t=new AbortController;o.current=t;try{let i=await e(t.signal);if(t.signal.aborted||!u.current)return;r(i),l("")}catch(e){!t.signal.aborted&&u.current&&l((0,i.f)(e))}finally{!t.signal.aborted&&u.current&&d(!1)}},[e]);return(0,t.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=a>0?setInterval(()=>{h()},a):void 0;return()=>{u.current=!1,o.current?.abort(),clearInterval(e)}},[h,a]),{data:s,error:n,isLoading:c,refresh:h}}],13581);var a=e.i(18050),s=e.i(19455);e.s(["f",0,function({isLoading:e,error:t,refresh:i}){return(0,a.jsxs)(a.Fragment,{children:[e?(0,a.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,t?(0,a.jsxs)("div",{className:"error",role:"alert",children:[(0,a.jsx)("p",{children:t}),(0,a.jsx)(s.f,{variant:"outline",onClick:()=>{i()},children:"Try again"})]}):void 0]})}],29487)},16118,e=>{"use strict";var t=e.i(18050),i=e.i(6501),a=e.i(56420);let s={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};s.node;let r=(0,a.f)(s);var n=e.i(21357),l=e.i(59659),c=e.i(71645),d=e.i(40192),o=e.i(54105),u=e.i(19877),h=e.i(73656),f=e.i(95813),p=e.i(13581),x=e.i(15080),m=e.i(19455),v=e.i(90350),b=e.i(31084),j=e.i(24687),g=e.i(29487),y=e.i(87309),w=e.i(10505),k=e.i(94757),S=e.i(75016),N=e.i(59037);async function z(e){let[t,i]=await Promise.all([h.U.schedules.list.query(void 0,{signal:e}),(0,x.t)(e)]);return{schedules:t.results,actions:i}}function C({actionId:e=""}){let{selected:a,setDirty:s}=(0,k.useWorkspace)(),x=(0,p.f)(z),A=(x.data?.actions??[]).filter(t=>t.project===a&&(!e||t.id===e)),$=new Set(A.map(e=>e.id)),U=(x.data?.schedules??[]).filter(e=>$.has(e.action)),L=(0,y.h)(),[R,M]=(0,c.useState)(""),[P,E]=(0,c.useState)(e),[T,_]=(0,c.useState)(v.A),[q,O]=(0,c.useState)("{}"),[D,F]=(0,c.useState)({action:e,cron:v.A,inputs:"{}"}),I=P!==D.action||T!==D.cron||q!==D.inputs;(0,N.f)(I,s);let B=()=>{M(""),E(e),_(v.A),O("{}"),F({action:e,cron:v.A,inputs:"{}"})},[W,H]=(0,c.useState)(!1),[J,V]=(0,c.useState)(""),[K,Z]=(0,c.useState)(""),G=async e=>{H(!0),V(""),Z("");try{await e(),await x.refresh()}catch(e){V((0,f.f)(e))}finally{H(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsxs)("div",{className:"panel-title",children:[(0,t.jsxs)("h2",{children:[(0,t.jsx)(i.f,{size:18})," Scheduled work"]}),(0,t.jsxs)("span",{className:"badge",children:[U.length," schedules"]})]}),(0,t.jsx)(g.f,{...x}),x.isLoading||x.error||0!==U.length?void 0:(0,t.jsx)("p",{children:"No schedules yet. Choose an action below to automate it."}),U.map(e=>(0,t.jsxs)("div",{className:"resource-row",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(S.f,{href:`/actions/?${new URLSearchParams({project:a,action:e.action}).toString()}`,children:(0,t.jsx)("strong",{children:A.find(t=>t.id===e.action)?.name??"Action"})}),(0,t.jsxs)("small",{children:[(0,v.E)(e.cron)," ·"," ",e.enabled?`Next ${new Date(e.next_run_at).toLocaleString(void 0,{timeZone:"UTC"})+" UTC"}`:"Paused"]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsxs)(m.f,{variant:"outline",size:"sm",disabled:W,onClick:()=>{G(async()=>{await h.U.schedules.update.mutate({id:e.id,enabled:!e.enabled}),Z(e.enabled?"Schedule paused.":"Schedule resumed.")})},children:[e.enabled?(0,t.jsx)(r,{size:13}):(0,t.jsx)(n.f,{size:13}),e.enabled?"Pause":"Resume"]}),(0,t.jsx)(m.f,{variant:"ghost",size:"sm",onClick:()=>{(async()=>{if(I&&!await L())return;let t={action:e.action,cron:e.cron,inputs:(0,w.A)(e.inputs)};M(e.id),E(t.action),_(t.cron),O(t.inputs),F(t)})()},children:"Edit"}),(0,t.jsx)(m.f,{variant:"ghost",size:"icon","aria-label":"Delete schedule",disabled:W,onClick:()=>{G(async()=>{await L({title:"Delete this schedule?",description:"Future scheduled runs will stop. Existing runs and their results will be retained.",actionLabel:"Delete schedule"})&&(await h.U.schedules.delete.mutate({id:e.id}),Z("Schedule deleted."))})},children:(0,t.jsx)(l.f,{size:14})})]})]},e.id))]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h2",{children:R?"Edit schedule":"Create a schedule"}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),G(async()=>{let e={action:P,cron:T,inputs:d.z.record(o.z.string(),u.z.json()).parse(JSON.parse(q))};R?await h.U.schedules.update.mutate({id:R,...e}):await h.U.schedules.create.mutate(e),Z("Schedule saved."),B()})},children:[(0,t.jsx)("div",{className:"row",children:(0,t.jsxs)("label",{children:["Action",(0,t.jsxs)("select",{required:!0,value:P,disabled:W,onChange:e=>{E(e.target.value)},children:[(0,t.jsx)("option",{value:"",children:"Choose an action"}),A.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]})]})}),(0,t.jsx)(b.f,{value:T,onChange:_,disabled:W}),(0,t.jsxs)("label",{children:["Scheduled inputs (JSON)",(0,t.jsx)(j.f,{className:"code",rows:3,value:q,disabled:W,onChange:e=>{O(e.target.value)}})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(m.f,{type:"submit",disabled:W||!$.has(P),children:"Save schedule"}),R?(0,t.jsx)(m.f,{variant:"outline",type:"button",onClick:()=>{(async()=>{(!I||await L())&&B()})()},children:"Cancel editing"}):void 0]})]})]}),J?(0,t.jsx)("p",{className:"error",role:"alert",children:J}):void 0,K?(0,t.jsx)("p",{className:"notice",role:"status",children:K}):void 0]})}var A=e.i(59140);e.s(["default",0,function(){let{selected:e}=(0,k.useWorkspace)();return(0,t.jsx)(A.c,{current:"schedules",children:i=>(0,t.jsx)(C,{actionId:i},`${e}:${i}`)})}],16118)},93479,e=>{"use strict";var t=e.i(18050),i=e.i(71645),a=e.i(39689);let s=i.forwardRef(({className:e,type:i,...s},r)=>(0,t.jsx)("input",{type:i,className:(0,a.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...s}));s.displayName="Input",e.s(["f",0,s])},24687,e=>{"use strict";var t=e.i(18050),i=e.i(71645),a=e.i(39689);let s=i.forwardRef(({className:e,...i},s)=>(0,t.jsx)("textarea",{className:(0,a.f)("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...i}));s.displayName="Textarea",e.s(["f",0,s])},59140,e=>{"use strict";var t=e.i(18050),i=e.i(71645),a=e.i(18566),s=e.i(11241),r=e.i(73656),n=e.i(13581),l=e.i(94757),c=e.i(75016),d=e.i(29487);let o=[{id:"editor",label:"Code & configuration",path:"/actions/"},{id:"runs",label:"Runs",path:"/runs/"},{id:"schedules",label:"Schedule",path:"/schedules/"},{id:"webhooks",label:"Webhooks",path:"/webhooks/"}];function u({action:e,current:i}){let a=e.project,r=new URLSearchParams({project:a,action:e.id});return(0,t.jsxs)("div",{className:"mb-6 min-w-0 space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsxs)(c.f,{className:"inline-flex items-center gap-1 text-sm",href:`/actions/?${new URLSearchParams({project:a}).toString()}`,children:[(0,t.jsx)(s.f,{size:14,"aria-hidden":"true"})," All actions"]}),(0,t.jsx)("span",{className:"text-slate-300","aria-hidden":"true",children:"/"}),(0,t.jsx)("strong",{className:"min-w-0 break-words",children:e.name})]}),(0,t.jsx)("nav",{className:"flex flex-wrap gap-2","aria-label":"Action sections",children:o.map(e=>(0,t.jsx)(c.f,{href:`${e.path}?${r.toString()}`,"aria-current":i===e.id?"page":void 0,className:i===e.id?"rounded-md bg-indigo-50 px-3 py-2 text-sm font-medium text-indigo-700":"rounded-md px-3 py-2 text-sm text-slate-600 hover:bg-slate-100",children:e.label},e.id))})]})}function h({project:e,actionId:a,current:s,children:l}){let o=(0,i.useCallback)(async t=>{if(!a)return;let i=await r.U.actions.get.query({id:a},{signal:t});if(i.project!==e)throw Error("This action is not available in the selected project.");return i},[a,e]),f=(0,n.f)(o);return a&&(f.isLoading||f.error||f.data?.id!==a)?(0,t.jsx)(d.f,{...f}):(0,t.jsxs)(t.Fragment,{children:[f.data?(0,t.jsx)(u,{action:f.data,current:s}):(0,t.jsx)("p",{className:"mb-5",children:(0,t.jsx)(c.f,{href:`/actions/?${new URLSearchParams({project:e}).toString()}`,children:"Back to project actions"})}),l(a)]})}e.s(["F",0,u,"c",0,function({current:e,children:i}){let{selected:s}=(0,l.useWorkspace)(),r=(0,a.useSearchParams)().get("action")??"";return(0,t.jsx)(h,{project:s,actionId:r,current:e,children:i},`${s}:${r}`)}])},10505,79432,e=>{"use strict";var t=e.i(18050),i=e.i(56420);let a={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};a.node;let s=(0,i.f)(a);e.s(["f",0,s],79432);var r=e.i(51757);let n={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};n.node;let l=(0,i.f)(n),c={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};c.node;let d=(0,i.f)(c),o={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};o.node;let u=(0,i.f)(o);function h(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let i={succeeded:r.f,waiting_approval:d,running:s,queued:l,failed:u,cancelled:u,interrupted:u}[e]??l;return(0,t.jsxs)("span",{className:`run-status status-${e}`,children:[(0,t.jsx)(i,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,t){let i=t.find(t=>t.id===e.project)?.name??"Project";return"chat"===e.operation?`${i} \xb7 ${(function(e,t){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,t)){let i=Reflect.get(e,t);if("string"==typeof i)return i}return""})(e.inputs,"message").slice(0,70)}`:`${i} \xb7 ${h(e.operation)}`},"T",0,h],10505)},59037,e=>{"use strict";var t=e.i(71645);e.s(["f",0,function(e,i){(0,t.useEffect)(()=>{i(e);let t=e=>{e.preventDefault()};return e&&addEventListener("beforeunload",t),()=>{removeEventListener("beforeunload",t),i(!1)}},[e,i])}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13581,29487,e=>{"use strict";var t=e.i(71645),r=e.i(95813);e.s(["f",0,function(e,a=0){let[i,s]=(0,t.useState)(),[n,l]=(0,t.useState)(""),[o,d]=(0,t.useState)(!0),u=(0,t.useRef)(void 0),c=(0,t.useRef)(!1),f=(0,t.useCallback)(async()=>{u.current?.abort();let t=new AbortController;u.current=t;try{let r=await e(t.signal);if(t.signal.aborted||!c.current)return;s(r),l("")}catch(e){!t.signal.aborted&&c.current&&l((0,r.f)(e))}finally{!t.signal.aborted&&c.current&&d(!1)}},[e]);return(0,t.useEffect)(()=>{c.current=!0,queueMicrotask(()=>{c.current&&f()});let e=a>0?setInterval(()=>{f()},a):void 0;return()=>{c.current=!1,u.current?.abort(),clearInterval(e)}},[f,a]),{data:i,error:n,isLoading:o,refresh:f}}],13581);var a=e.i(18050),i=e.i(19455);e.s(["f",0,function({isLoading:e,error:t,refresh:r}){return(0,a.jsxs)(a.Fragment,{children:[e?(0,a.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,t?(0,a.jsxs)("div",{className:"error",role:"alert",children:[(0,a.jsx)("p",{children:t}),(0,a.jsx)(i.f,{variant:"outline",onClick:()=>{r()},children:"Try again"})]}):void 0]})}],29487)},29417,e=>{"use strict";var t=e.i(18050),r=e.i(19455),a=e.i(93479),i=e.i(24687),s=e.i(71645),n=e.i(15080),l=e.i(13581),o=e.i(73656),d=e.i(95813),u=e.i(94757),c=e.i(87309),f=e.i(29487);function m(){let e=(0,s.useId)(),m=(0,l.f)(n.l),h=m.data??[],{isDirty:b,setDirty:v}=(0,u.useWorkspace)(),x=(0,c.h)(),[g,p]=(0,s.useState)(""),[j,y]=(0,s.useState)(""),[w,S]=(0,s.useState)(""),[C,k]=(0,s.useState)(""),[N,T]=(0,s.useState)(""),[R,D]=(0,s.useState)(!1),I=async e=>{if(b&&!await x())return;let t=h.find(t=>t.id===e);p(e),y(t?.title??""),S(t?.content??""),v(!1),k(""),T("")},U=async()=>{if(!R){D(!0),k(""),T("");try{let e={title:j,content:w},t=g?await o.U.documents.update.mutate({id:g,...e}):await o.U.documents.create.mutate({...e,kind:"document"});p(t.id),y(t.title),S(t.content),v(!1),T("Document saved."),await m.refresh()}catch(e){k(`Could not save document. Your changes are still here. Try saving again. ${(0,d.f)(e)}`)}finally{D(!1)}}};return(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h2",{children:"Documents & memory"}),(0,t.jsx)("p",{children:"Create shared workspace documents and review saved memory."}),(0,t.jsx)(f.f,{...m}),C?(0,t.jsx)("p",{role:"alert",className:"error",children:C}):void 0,N?(0,t.jsx)("p",{role:"status",className:"notice",children:N}):void 0,(0,t.jsxs)("label",{htmlFor:e,children:["Document",(0,t.jsxs)("select",{id:e,value:g,disabled:R||m.isLoading,onChange:e=>{I(e.target.value)},children:[(0,t.jsx)("option",{value:"",children:"New document"}),h.map(e=>(0,t.jsxs)("option",{value:e.id,children:[e.title," · ",e.kind]},e.id))]})]}),(0,t.jsxs)("form",{"aria-busy":R,onChange:()=>{v(!0),T("")},onSubmit:e=>{e.preventDefault(),U()},children:[(0,t.jsxs)("label",{children:["Title",(0,t.jsx)(a.f,{required:!0,maxLength:200,disabled:R,value:j,onChange:e=>{y(e.target.value)}})]}),(0,t.jsxs)("label",{children:["Content",(0,t.jsx)(i.f,{rows:12,disabled:R,value:w,onChange:e=>{S(e.target.value)}})]}),(0,t.jsx)(r.f,{type:"submit",disabled:R||!j.trim(),children:R?"Saving…":"Save document"})]})]})}e.s(["default",0,function(){return(0,t.jsx)(m,{})}],29417)},93479,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(39689);let i=r.forwardRef(({className:e,type:r,...i},s)=>(0,t.jsx)("input",{type:r,className:(0,a.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...i}));i.displayName="Input",e.s(["f",0,i])},24687,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(39689);let i=r.forwardRef(({className:e,...r},i)=>(0,t.jsx)("textarea",{className:(0,a.f)("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));i.displayName="Textarea",e.s(["f",0,i])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13581,29487,e=>{"use strict";var s=e.i(71645),r=e.i(95813);e.s(["f",0,function(e,t=0){let[i,a]=(0,s.useState)(),[l,n]=(0,s.useState)(""),[c,d]=(0,s.useState)(!0),o=(0,s.useRef)(void 0),u=(0,s.useRef)(!1),m=(0,s.useCallback)(async()=>{o.current?.abort();let s=new AbortController;o.current=s;try{let r=await e(s.signal);if(s.signal.aborted||!u.current)return;a(r),n("")}catch(e){!s.signal.aborted&&u.current&&n((0,r.f)(e))}finally{!s.signal.aborted&&u.current&&d(!1)}},[e]);return(0,s.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&m()});let e=t>0?setInterval(()=>{m()},t):void 0;return()=>{u.current=!1,o.current?.abort(),clearInterval(e)}},[m,t]),{data:i,error:l,isLoading:c,refresh:m}}],13581);var t=e.i(18050),i=e.i(19455);e.s(["f",0,function({isLoading:e,error:s,refresh:r}){return(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,s?(0,t.jsxs)("div",{className:"error",role:"alert",children:[(0,t.jsx)("p",{children:s}),(0,t.jsx)(i.f,{variant:"outline",onClick:()=>{r()},children:"Try again"})]}):void 0]})}],29487)},93479,e=>{"use strict";var s=e.i(18050),r=e.i(71645),t=e.i(39689);let i=r.forwardRef(({className:e,type:r,...i},a)=>(0,s.jsx)("input",{type:r,className:(0,t.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...i}));i.displayName="Input",e.s(["f",0,i])},44727,e=>{"use strict";var s=e.i(18050),r=e.i(71645),t=e.i(73656),i=e.i(13581),a=e.i(18879),l=e.i(19455),n=e.i(93479),c=e.i(94757),d=e.i(29487),o=e.i(69212);let u={};function m({filters:e}){let a=(0,r.useCallback)(async s=>await t.U.audit.list.query(e,{signal:s}),[e]),{data:l,error:n,isLoading:c,refresh:o}=(0,i.f)(a);return(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Recorded events"}),(0,s.jsx)("p",{className:"small",children:"Newest first. Only event metadata is shown; values and credentials are never included."}),(0,s.jsx)(d.f,{isLoading:c,error:n,refresh:o}),l&&!c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{role:"status",children:[l.count," matching events"]}),0===l.results.length?(0,s.jsx)("p",{children:"No audit events match these filters."}):(0,s.jsx)("ol",{className:"grid gap-3","aria-label":"Audit events",children:l.results.map(e=>(0,s.jsxs)("li",{className:"rounded-md border p-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap justify-between gap-2",children:[(0,s.jsx)("strong",{children:e.kind}),(0,s.jsx)("time",{dateTime:e.created_at,children:new Date(e.created_at).toLocaleString()})]}),(0,s.jsxs)("p",{className:"small",children:[e.actor_label,e.actor_id?` \xb7 Actor ID ${String(e.actor_id)}`:""]}),(0,s.jsxs)("p",{className:"break-all text-sm",children:["Object: ",e.object_id||"—"]}),(0,s.jsxs)("p",{className:"small break-all",children:["Event: ",e.id]})]},e.id))})]}):void 0]})}e.s(["AuditLog",0,function(){let{canManage:e,workspace:t}=(0,c.useWorkspace)(),[i,d]=(0,r.useState)(u);return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.K,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{children:"Audit log"}),(0,s.jsx)("p",{className:"small",children:"Review recorded workspace changes."})]})}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Filter events"}),(0,s.jsx)("p",{className:"small",children:"Exact matches for action, actor ID and object ID. Times use your local timezone; the start is included and the end is excluded."}),(0,s.jsxs)("form",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",onSubmit:e=>{e.preventDefault();let s=new FormData(e.currentTarget),r=e=>(0,a.f)(s,e).trim(),t={};r("kind")&&(t.kind=r("kind")),r("actor")&&(t.actor=Number(r("actor"))),r("object_id")&&(t.object_id=r("object_id")),r("since")&&(t.since=new Date(r("since")).toISOString()),r("before")&&(t.before=new Date(r("before")).toISOString()),d(t)},children:[(0,s.jsxs)("label",{children:["Action / kind",(0,s.jsx)(n.f,{name:"kind",placeholder:"document.updated",maxLength:100})]}),(0,s.jsxs)("label",{children:["Actor ID",(0,s.jsx)(n.f,{name:"actor",type:"number",min:1,step:1,placeholder:"Numeric member ID"})]}),(0,s.jsxs)("label",{children:["Object ID",(0,s.jsx)(n.f,{name:"object_id",maxLength:100})]}),(0,s.jsxs)("label",{children:["From (inclusive)",(0,s.jsx)(n.f,{name:"since",type:"datetime-local"})]}),(0,s.jsxs)("label",{children:["Before (exclusive)",(0,s.jsx)(n.f,{name:"before",type:"datetime-local"})]}),(0,s.jsxs)("div",{className:"flex items-end gap-2",children:[(0,s.jsx)(l.f,{type:"submit",children:"Apply filters"}),(0,s.jsx)(l.f,{variant:"outline",type:"reset",onClick:()=>{d(u)},children:"Clear"})]})]})]}),(0,s.jsx)(m,{filters:i},`${t}:${JSON.stringify(i)}`)]}):(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Audit log"}),(0,s.jsx)("p",{children:"Only workspace owners and admins can view the audit log."})]})}])},18879,e=>{"use strict";e.s(["f",0,function(e,s){let r=e.get(s);return"string"==typeof r?r:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),s=e.r(18050),i=a._(e.r(71645)),c=e.r(95057),u=e.r(8372),l=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),y=e.r(9396);function x(t){var r;let n,o,a,[x,b]=(0,i.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:w,as:v,children:S,prefetch:N=null,passHref:P,replace:C,shallow:T,scroll:U,onClick:E,onMouseEnter:_,onTouchStart:R,legacyBehavior:L=!1,onNavigate:O,transitionTypes:$,ref:k,unstable_dynamicOnHover:A,...F}=t;n=S,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let I=i.default.useContext(u.AppRouterContext),M=!1!==N,B=!1===N?"none":!0===N?"full":"auto",D="none"!==B?"auto"===B?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,K="string"==typeof(r=v||w)?r:(0,c.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=i.default.Children.only(n)}let q=L?o&&"object"==typeof o&&o.ref:k,z,G=i.default.useCallback(e=>(null!==I&&(j.current=(0,p.mountLinkInstance)(e,K,I,D,M,b,z)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[M,K,I,D,b,z]),W={ref:(0,l.useMergedRef)(G,q),onClick(t){L||"function"!=typeof E||E(t),L&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,o,a,s,i,c="none"){if("u">typeof window){let u,{nodeName:l}=t.currentTarget;if("A"===l.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{navigate:d}=e.r(32916);d(r,o?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,i,c)}}(t,K,j,C,U,O,$,B)},onMouseEnter(e){L||"function"!=typeof _||_(e),L&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),I&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){L||"function"!=typeof R||R(e),L&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),I&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(K)?W.href=K:L&&!P&&("a"!==o.type||"href"in o.props)||(W.href=(0,f.addBasePath)(K)),a=L?i.default.cloneElement(o,W):(0,s.jsx)("a",{...F,...W,children:n}),(0,s.jsx)(g.Provider,{value:x,children:a})}let g=(0,i.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,i.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",i=e.hash||"",c=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),c&&"object"==typeof c&&(c=String(a.urlQueryToSearchParams(c)));let l=e.search||c&&`?${c}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),l&&"?"!==l[0]&&(l="?"+l),o=o.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${u}${o}${l}${i}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return j},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return a},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return l},isAbsoluteUrl:function(){return c},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&i.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let m="u">typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class g extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class j extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},76046,e=>{"use strict";e.i(44362);var t=e.i(14778);e.s(["k",0,function(){location.assign(function(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}(location.search))},"z",0,"Confirm your identity below, then retry your change.","$",0,function(e){return(0,t.f)(e)&&e.data?.code==="UNAUTHORIZED"},"y",0,function(){let e=`${location.pathname}${location.search}${location.hash}`;location.replace(`/accounts/login/?next=${encodeURIComponent(e)}`)},"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)}])},86441,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(73656),o=e.i(71645),a=e.i(92229),s=e.i(18879),i=e.i(11105);function c(){return(0,t.jsxs)("details",{open:!0,className:"mt-6 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Confirm your identity"}),(0,t.jsxs)("p",{className:"text-sm",children:["Session expired? ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"Sign in again"}),"."]}),(0,t.jsx)("p",{className:"text-sm",children:"If a security change asks you to confirm your identity, enter your password or an authenticator code, then retry the change."}),(0,t.jsx)(i.F,{submitLabel:"Confirm password",onSubmit:async e=>(await n.U.auth.reauthenticate.mutate({password:(0,s.f)(e,"password")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Password",type:"password",name:"password",autoComplete:"current-password",required:!0})}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(i.F,{submitLabel:"Confirm code",onSubmit:async e=>(await n.U.auth.mfaReauthenticate.mutate({code:(0,s.f)(e,"code")}),"Identity confirmed. Retry your change."),children:(0,t.jsx)(i.j,{label:"Authenticator or recovery code",name:"code",autoComplete:"one-time-code",required:!0})})})]})}e.s(["f",0,function({children:e}){let[s,i]=(0,o.useState)(),[u,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=new AbortController;return(0,n.m)(e.signal).then(t=>{e.signal.aborted||i(t)}).catch(()=>{e.signal.aborted||l(!0)}),()=>{e.abort()}},[]);let[d,f]=(0,o.useState)(!1);return u?(0,t.jsx)("p",{role:"alert",children:"Unable to load your account. Reload to try again."}):s?s.is_authenticated?(0,t.jsxs)(a.T,{value:()=>{f(!0)},children:[e,d&&(0,t.jsx)(c,{})]}):(0,t.jsxs)("p",{children:["Please ",(0,t.jsx)(r.default,{href:"/accounts/login/",children:"sign in"})," to manage your account."]}):(0,t.jsx)("p",{role:"status",children:"Loading your account…"})}],86441)},11105,92229,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(76046),o=e.i(95813);let a=(0,r.createContext)(void 0);function s(){let e=(0,r.useContext)(a);return(t,r)=>e&&(0,n.$)(t)?(e(),n.z):(0,o.f)(t,r)}e.s(["T",0,a,"G",0,s],92229);var i=e.i(19455),c=e.i(93479);e.s(["j",0,function({label:e,...r}){return(0,t.jsxs)("label",{children:[e,(0,t.jsx)(c.f,{...r})]})},"F",0,function({children:e,submitLabel:n,onSubmit:o}){let a=s(),[c,u]=(0,r.useState)(!1),[l,d]=(0,r.useState)(""),[f,h]=(0,r.useState)("");async function p(e){e.preventDefault();let t=new FormData(e.currentTarget);u(!0),d(""),h("");try{h(await o(t)??"")}catch(e){d(a(e,"Unable to save. Please try again."))}finally{u(!1)}}return(0,t.jsxs)("form",{onSubmit:e=>{p(e)},children:[(0,t.jsxs)("fieldset",{disabled:c,className:"min-w-0 border-0 p-0",children:[e,(0,t.jsx)(i.f,{type:"submit",disabled:c,children:c?"Please wait…":n})]}),l&&(0,t.jsx)("p",{role:"alert",className:"error mt-4",children:l}),f&&(0,t.jsx)("p",{role:"status",className:"notice mt-4",children:f})]})}],11105)},15448,e=>{"use strict";var t=e.i(18050),r=e.i(22016),n=e.i(2716);e.s(["f",0,function({title:e,description:o,children:a,showAccountNavigation:s=!1}){return(0,t.jsxs)("div",{className:"min-h-screen",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-6 py-4 sm:px-10",children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-2 text-lg font-semibold text-slate-900",children:[(0,t.jsx)(n.f,{className:"h-9 w-9"}),"OrgSDK"]}),(0,t.jsx)(r.default,{href:"/",className:"text-sm",children:"Back to app"})]}),(0,t.jsxs)("main",{className:"mx-auto w-full max-w-xl px-4 py-10 sm:py-16",children:[s&&(0,t.jsxs)("nav",{"aria-label":"Account",className:"mb-6 flex flex-wrap gap-4 text-sm",children:[(0,t.jsx)(r.default,{href:"/accounts/email/",children:"Account"}),(0,t.jsx)(r.default,{href:"/accounts/password/change/",children:"Password"}),(0,t.jsx)(r.default,{href:"/accounts/2fa/",children:"Two-factor authentication"}),(0,t.jsx)(r.default,{href:"/accounts/logout/",children:"Sign out"})]}),(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h1",{className:"!text-2xl",children:e}),o&&(0,t.jsx)("p",{className:"mb-6 text-sm",children:o}),a]})]})]})}])},81010,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(73656),o=e.i(95813),a=e.i(18879),s=e.i(19455),i=e.i(15448),c=e.i(86441),u=e.i(92229),l=e.i(11105);function d(){let e=(0,u.G)(),[i,c]=(0,r.useState)(),[d,f]=(0,r.useState)(!1),[h,p]=(0,r.useState)(""),[m,y]=(0,r.useState)([]),[x,g]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e=!0;return n.U.auth.authenticators.query().then(t=>{e&&c(t.some(e=>"totp"===e.type))}).catch(t=>{e&&g((0,o.f)(t,"Unable to load authenticators."))}),()=>{e=!1}},[]),(0,t.jsxs)(t.Fragment,{children:[x&&(0,t.jsx)("p",{role:"alert",className:"error",children:x}),void 0===i&&!x&&(0,t.jsx)("p",{role:"status",children:"Loading security settings…"}),!1===i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Add two-factor authentication using an authenticator app. You will enter a code when signing in."}),h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Add an account in your authenticator app with this setup key. Select time-based codes."}),(0,t.jsx)("code",{className:"block break-all rounded bg-slate-100 p-3 text-sm",children:h}),(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(l.F,{submitLabel:"Enable two-factor authentication",onSubmit:async e=>(await n.U.auth.enableTotp.mutate({code:(0,a.f)(e,"code")}),c(!0),p(""),"Two-factor authentication enabled. Generate recovery codes below."),children:(0,t.jsx)(l.j,{label:"Code from your authenticator",name:"code",autoComplete:"one-time-code",inputMode:"numeric",required:!0})})})]}):(0,t.jsx)(s.f,{disabled:d,onClick:()=>{g(""),f(!0),n.U.auth.totpSetup.mutate().then(e=>{if(c(e.enabled),!e.enabled){if(!e.secret)throw Error("Unable to start authenticator setup. Reload and try again.");p(e.secret)}}).catch(t=>{g(e(t,"Unable to start setup."))}).finally(()=>{f(!1)})},children:d?"Preparing setup…":"Set up authenticator"})]}),!0===i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm",children:"Two-factor authentication is enabled."}),(0,t.jsx)("h2",{className:"mt-6",children:"Recovery codes"}),(0,t.jsx)("p",{className:"text-sm",children:"Save these codes somewhere safe. Each code can be used once if you lose access to your authenticator. Generating new codes replaces your previous codes."}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(l.F,{submitLabel:"Show recovery codes",onSubmit:async()=>{let e=await n.U.auth.recoveryCodes.query();return 0===e.unused_codes.length?"These codes have already been shown. Use your saved copy or generate new codes.":(y(e.unused_codes),"Store these codes somewhere safe.")},children:null})}),(0,t.jsx)(l.F,{submitLabel:"Generate new recovery codes",onSubmit:async()=>(y((await n.U.auth.generateRecoveryCodes.mutate()).unused_codes),"Store your recovery codes before leaving this page."),children:null}),m.length>0&&(0,t.jsx)("pre",{className:"mt-4 overflow-x-auto rounded bg-slate-100 p-4","aria-label":"Recovery codes",children:m.join("\n")}),(0,t.jsxs)("details",{className:"mt-8 border-t border-slate-200 pt-4",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Disable two-factor authentication"}),(0,t.jsx)("p",{className:"text-sm",children:"Your next sign-in will require only your password. Confirm your identity below if requested."}),(0,t.jsx)(l.F,{submitLabel:"Disable two-factor authentication",onSubmit:async()=>(await n.U.auth.disableTotp.mutate(),c(!1),y([]),"Two-factor authentication disabled."),children:null})]})]})]})}e.s(["TwoFactor",0,function(){return(0,t.jsx)(i.f,{title:"Two-factor authentication",description:"Protect your account with an authenticator and recovery codes.",showAccountNavigation:!0,children:(0,t.jsx)(c.f,{children:(0,t.jsx)(d,{})})})}])},93479,e=>{"use strict";var t=e.i(18050),r=e.i(71645),n=e.i(39689);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));o.displayName="Input",e.s(["f",0,o])},2716,e=>{"use strict";var t=e.i(18050);e.s(["f",0,function({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}])},18879,e=>{"use strict";e.s(["f",0,function(e,t){let r=e.get(t);return"string"==typeof r?r:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";var i=e.i(56420);let t={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};t.node;let a=(0,i.f)(t);e.s(["f",0,a],11241)},13581,29487,e=>{"use strict";var i=e.i(71645),t=e.i(95813);e.s(["f",0,function(e,a=0){let[r,s]=(0,i.useState)(),[n,o]=(0,i.useState)(""),[l,c]=(0,i.useState)(!0),d=(0,i.useRef)(void 0),h=(0,i.useRef)(!1),u=(0,i.useCallback)(async()=>{d.current?.abort();let i=new AbortController;d.current=i;try{let t=await e(i.signal);if(i.signal.aborted||!h.current)return;s(t),o("")}catch(e){!i.signal.aborted&&h.current&&o((0,t.f)(e))}finally{!i.signal.aborted&&h.current&&c(!1)}},[e]);return(0,i.useEffect)(()=>{h.current=!0,queueMicrotask(()=>{h.current&&u()});let e=a>0?setInterval(()=>{u()},a):void 0;return()=>{h.current=!1,d.current?.abort(),clearInterval(e)}},[u,a]),{data:r,error:n,isLoading:l,refresh:u}}],13581);var a=e.i(18050),r=e.i(19455);e.s(["f",0,function({isLoading:e,error:i,refresh:t}){return(0,a.jsxs)(a.Fragment,{children:[e?(0,a.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,i?(0,a.jsxs)("div",{className:"error",role:"alert",children:[(0,a.jsx)("p",{children:i}),(0,a.jsx)(r.f,{variant:"outline",onClick:()=>{t()},children:"Try again"})]}):void 0]})}],29487)},65983,e=>{"use strict";var i=e.i(18050),t=e.i(71645),a=e.i(73656),r=e.i(95813),s=e.i(13581),n=e.i(15080),o=e.i(19455),l=e.i(93479),c=e.i(29487),d=e.i(94757),h=e.i(75016),u=e.i(87309),p=e.i(59037);async function x(e){let[i,t]=await Promise.all([a.U.webhooks.list.query(void 0,{signal:e}),(0,n.t)(e)]);return{hooks:i.results,actions:t}}function f(e){return e?new Date(e).toLocaleString():"Never"}function b({actionId:e=""}){let{canManage:n,selected:j,setDirty:m}=(0,d.useWorkspace)(),v=(0,s.f)(x,1e4),g=(v.data?.actions??[]).filter(i=>i.project===j&&(!e||i.id===e)),w=new Set(g.map(e=>e.id)),k=(v.data?.hooks??[]).filter(e=>w.has(e.action_id)),y=(0,u.h)(),[S,N]=(0,t.useState)(""),[R,_]=(0,t.useState)(e),[C,L]=(0,t.useState)(!1),[U,T]=(0,t.useState)(""),[$,E]=(0,t.useState)(""),[W,q]=(0,t.useState)();async function P(e){L(!0),T(""),E("");try{await e(),await v.refresh()}catch(e){T((0,r.f)(e))}finally{L(!1)}}return(0,p.f)(""!==S.trim()||R!==e||!!W,m),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:"panel",children:[(0,i.jsx)("h2",{children:"Webhook triggers"}),(0,i.jsx)("p",{children:"Send JSON inputs to queue an action. Each registration keeps its saved action version. Delivery acceptance and action execution are tracked separately."}),(0,i.jsxs)("p",{children:["Send ",(0,i.jsx)("code",{children:"X-Webhook-Secret"})," and a stable, unique"," ",(0,i.jsx)("code",{children:"X-Webhook-Delivery"})," header with"," ",(0,i.jsx)("code",{children:'{"inputs": {}}'}),". JSON bodies are limited to 200 KB. Retrying the same delivery never queues another run."]}),(0,i.jsx)(c.f,{...v}),v.isLoading||v.error||0!==k.length?void 0:(0,i.jsx)("p",{children:"No webhook triggers yet."}),k.map(e=>(0,i.jsxs)("article",{className:"panel",children:[(0,i.jsxs)("div",{className:"panel-title",children:[(0,i.jsx)("h3",{children:e.name}),(0,i.jsx)("span",{className:"badge",children:e.enabled?"Enabled":"Disabled"})]}),(0,i.jsxs)("p",{children:[(0,i.jsx)(h.f,{href:`/actions/?${new URLSearchParams({project:j,action:e.action_id}).toString()}`,children:e.action_name})," ","· Version ",e.version]}),(0,i.jsxs)("label",{children:["Endpoint",(0,i.jsx)(l.f,{readOnly:!0,value:location.origin+e.endpoint})]}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)(o.f,{variant:"outline",disabled:C,onClick:()=>{P(async()=>{await navigator.clipboard.writeText(location.origin+e.endpoint),E("Endpoint copied.")})},children:"Copy endpoint"}),n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.f,{variant:"outline",disabled:C,onClick:()=>{P(async()=>{await a.U.webhooks.update.mutate({id:e.id,enabled:!e.enabled}),E(e.enabled?"Webhook disabled.":"Webhook enabled.")})},children:e.enabled?"Disable":"Enable"}),(0,i.jsx)(o.f,{variant:"outline",disabled:C,onClick:()=>{P(async()=>{await y({title:"Rotate webhook secret?",description:"The previous secret will stop working immediately. Update the sending service with the new secret.",actionLabel:"Rotate secret"})&&q(await a.U.webhooks.rotate.mutate({id:e.id}))})},children:"Rotate secret"})]}):void 0]}),(0,i.jsxs)("p",{children:["Last receipt: ",f(e.last_received_at)," · Last accepted:"," ",f(e.last_accepted_at)]}),(0,i.jsxs)("p",{children:["Last rejection: ",e.last_rejection||"None",e.last_rejected_at?` (${f(e.last_rejected_at)})`:""," ","· Secret rotated: ",f(e.rotated_at)]}),(0,i.jsxs)("details",{children:[(0,i.jsxs)("summary",{children:["Recent deliveries (",e.deliveries.length,")"]}),0===e.deliveries.length?(0,i.jsx)("p",{children:"No authenticated deliveries recorded."}):void 0,e.deliveries.map(t=>(0,i.jsxs)("div",{className:"resource-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("strong",{children:t.delivery_id}),(0,i.jsxs)("small",{children:[f(t.received_at)," · ",t.outcome]})]}),t.run?(0,i.jsxs)(h.f,{href:`/runs/?${new URLSearchParams({project:j,action:e.action_id,run:t.run}).toString()}`,children:["Run: ",t.run_status??"Unavailable"]}):(0,i.jsx)("span",{children:"No run queued"})]},t.id))]})]},e.id))]}),n?(0,i.jsxs)("section",{className:"panel",children:[(0,i.jsx)("h2",{children:"Register a webhook"}),(0,i.jsxs)("form",{onSubmit:i=>{i.preventDefault(),P(async()=>{q(await a.U.webhooks.create.mutate({name:S,action:R})),N(""),_(e)})},children:[(0,i.jsxs)("label",{children:["Name",(0,i.jsx)(l.f,{required:!0,maxLength:100,value:S,disabled:C,onChange:e=>{N(e.target.value)}})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("label",{htmlFor:"webhook-action",children:"Action"}),(0,i.jsxs)("select",{id:"webhook-action",required:!0,value:R,disabled:C,onChange:e=>{_(e.target.value)},children:[(0,i.jsx)("option",{value:"",children:"Choose an action"}),g.filter(e=>e.enabled).map(e=>(0,i.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,i.jsx)("p",{children:"The latest saved version is pinned at registration. Register a new webhook to use a different version."}),(0,i.jsx)(o.f,{disabled:C||g.every(e=>e.id!==R||!e.enabled),type:"submit",children:"Register webhook"})]})]}):(0,i.jsx)("p",{children:"Workspace owners and admins manage webhook registrations."}),W?(0,i.jsxs)("section",{className:"panel","aria-label":"One-time webhook secret",children:[(0,i.jsxs)("h2",{children:["Save the secret for ",W.webhook.name]}),(0,i.jsx)("p",{children:"This secret is shown once. Store it in your sending service and keep it out of URLs."}),(0,i.jsxs)("label",{children:["Secret",(0,i.jsx)(l.f,{readOnly:!0,type:"password",value:W.secret})]}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)(o.f,{disabled:C,onClick:()=>{P(async()=>{await navigator.clipboard.writeText(W.secret),E("Secret copied.")})},children:"Copy secret"}),(0,i.jsx)(o.f,{variant:"outline",onClick:()=>{q(void 0)},children:"Dismiss secret"})]})]}):void 0,U?(0,i.jsx)("p",{className:"error",role:"alert",children:U}):void 0,$?(0,i.jsx)("p",{className:"notice",role:"status",children:$}):void 0]})}var j=e.i(59140);e.s(["default",0,function(){let{selected:e}=(0,d.useWorkspace)();return(0,i.jsx)(j.c,{current:"webhooks",children:t=>(0,i.jsx)(b,{actionId:t},`${e}:${t}`)})}],65983)},93479,e=>{"use strict";var i=e.i(18050),t=e.i(71645),a=e.i(39689);let r=t.forwardRef(({className:e,type:t,...r},s)=>(0,i.jsx)("input",{type:t,className:(0,a.f)("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...r}));r.displayName="Input",e.s(["f",0,r])},59140,e=>{"use strict";var i=e.i(18050),t=e.i(71645),a=e.i(18566),r=e.i(11241),s=e.i(73656),n=e.i(13581),o=e.i(94757),l=e.i(75016),c=e.i(29487);let d=[{id:"editor",label:"Code & configuration",path:"/actions/"},{id:"runs",label:"Runs",path:"/runs/"},{id:"schedules",label:"Schedule",path:"/schedules/"},{id:"webhooks",label:"Webhooks",path:"/webhooks/"}];function h({action:e,current:t}){let a=e.project,s=new URLSearchParams({project:a,action:e.id});return(0,i.jsxs)("div",{className:"mb-6 min-w-0 space-y-3",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,i.jsxs)(l.f,{className:"inline-flex items-center gap-1 text-sm",href:`/actions/?${new URLSearchParams({project:a}).toString()}`,children:[(0,i.jsx)(r.f,{size:14,"aria-hidden":"true"})," All actions"]}),(0,i.jsx)("span",{className:"text-slate-300","aria-hidden":"true",children:"/"}),(0,i.jsx)("strong",{className:"min-w-0 break-words",children:e.name})]}),(0,i.jsx)("nav",{className:"flex flex-wrap gap-2","aria-label":"Action sections",children:d.map(e=>(0,i.jsx)(l.f,{href:`${e.path}?${s.toString()}`,"aria-current":t===e.id?"page":void 0,className:t===e.id?"rounded-md bg-indigo-50 px-3 py-2 text-sm font-medium text-indigo-700":"rounded-md px-3 py-2 text-sm text-slate-600 hover:bg-slate-100",children:e.label},e.id))})]})}function u({project:e,actionId:a,current:r,children:o}){let d=(0,t.useCallback)(async i=>{if(!a)return;let t=await s.U.actions.get.query({id:a},{signal:i});if(t.project!==e)throw Error("This action is not available in the selected project.");return t},[a,e]),p=(0,n.f)(d);return a&&(p.isLoading||p.error||p.data?.id!==a)?(0,i.jsx)(c.f,{...p}):(0,i.jsxs)(i.Fragment,{children:[p.data?(0,i.jsx)(h,{action:p.data,current:r}):(0,i.jsx)("p",{className:"mb-5",children:(0,i.jsx)(l.f,{href:`/actions/?${new URLSearchParams({project:e}).toString()}`,children:"Back to project actions"})}),o(a)]})}e.s(["F",0,h,"c",0,function({current:e,children:t}){let{selected:r}=(0,o.useWorkspace)(),s=(0,a.useSearchParams)().get("action")??"";return(0,i.jsx)(u,{project:r,actionId:s,current:e,children:t},`${r}:${s}`)}])},59037,e=>{"use strict";var i=e.i(71645);e.s(["f",0,function(e,t){(0,i.useEffect)(()=>{t(e);let i=e=>{e.preventDefault()};return e&&addEventListener("beforeunload",i),()=>{removeEventListener("beforeunload",i),t(!1)}},[e,t])}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809),i=e.r(18050),a=u._(e.r(71645)),c=e.r(95057),l=e.r(8372),s=e.r(18581),f=e.r(18967),p=e.r(5550),d=e.r(88540),h=e.r(91949),g=e.r(73668),y=e.r(9396);function m(t){var r;let n,o,u,[m,b]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),P=(0,a.useRef)(null),{href:S,as:x,children:E,prefetch:C=null,passHref:_,replace:j,shallow:w,scroll:O,onClick:T,onMouseEnter:$,onTouchStart:R,legacyBehavior:L=!1,onNavigate:U,transitionTypes:N,ref:k,unstable_dynamicOnHover:A,...I}=t;n=E,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let M=a.default.useContext(l.AppRouterContext),B=!1!==C,F=!1===C?"none":!0===C?"full":"auto",D="none"!==F?"auto"===F?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,K="string"==typeof(r=x||S)?r:(0,c.formatUrl)(r);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag.");o=a.default.Children.only(n)}let z=L?o&&"object"==typeof o&&o.ref:k,W,Z=a.default.useCallback(e=>(null!==M&&(P.current=(0,h.mountLinkInstance)(e,K,M,D,B,b,W)),()=>{P.current&&((0,h.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,K,M,D,b,W]),q={ref:(0,s.useMergedRef)(Z,z),onClick(t){L||"function"!=typeof T||T(t),L&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!M||t.defaultPrevented||function(t,r,n,o,u,i,a,c="none"){if("u">typeof window){let l,{nodeName:s}=t.currentTarget;if("A"===s.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{navigate:f}=e.r(32916);f(r,o?"replace":"push",!1===u?d.ScrollBehavior.NoScroll:d.ScrollBehavior.Default,n.current,a,c)}}(t,K,P,j,O,U,N,F)},onMouseEnter(e){L||"function"!=typeof $||$(e),L&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),M&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){L||"function"!=typeof R||R(e),L&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),M&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(K)?q.href=K:L&&!_&&("a"!==o.type||"href"in o.props)||(q.href=(0,p.addBasePath)(K)),u=L?a.default.cloneElement(o,q):(0,i.jsx)("a",{...I,...q,children:n}),(0,i.jsx)(v.Provider,{value:m,children:u})}let v=(0,a.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",c=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),c&&"object"==typeof c&&(c=String(u.urlQueryToSearchParams(c)));let s=e.search||c&&`?${c}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),s&&"?"!==s[0]&&(s="?"+s),o=o.replace(/[?#]/g,encodeURIComponent),s=s.replace("#","%23"),`${n}${l}${o}${s}${a}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=e.r(18967),o=e.r(52817);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return P},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return y},WEB_VITALS:function(){return u},execOnce:function(){return i},getDisplayName:function(){return f},getLocationOrigin:function(){return l},getURL:function(){return s},isAbsoluteUrl:function(){return c},isResSent:function(){return p},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return x}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=["CLS","FCP","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function s(){let{href:e}=window.location,t=l();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function d(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&p(r))return n;if(!n)throw Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`);return n}let g="u">typeof performance,y=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class P extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},18566,(e,t,r)=>{t.exports=e.r(76562)},76046,e=>{"use strict";e.i(44362);var t=e.i(14778);e.s(["k",0,function(){location.assign(function(e){let t=new URLSearchParams(e).get("next");if(!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\"))return"/";for(let e of t)if((e.codePointAt(0)??0)<=32)return"/";let r=new URL(t,location.origin);return r.origin===location.origin?`${r.pathname}${r.search}${r.hash}`:"/"}(location.search))},"z",0,"Confirm your identity below, then retry your change.","$",0,function(e){return(0,t.f)(e)&&e.data?.code==="UNAUTHORIZED"},"y",0,function(){let e=`${location.pathname}${location.search}${location.hash}`;location.replace(`/accounts/login/?next=${encodeURIComponent(e)}`)},"u",0,function(e){return!e.is_authenticated&&e.flows.some(e=>"mfa_authenticate"===e.id)}])},2716,e=>{"use strict";var t=e.i(18050);e.s(["f",0,function({className:e,...r}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",fill:"none","aria-hidden":"true",className:e,...r,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"19",stroke:"#4f46e5",strokeWidth:"12"}),(0,t.jsx)("circle",{cx:"50",cy:"14",r:"6",fill:"#8b5cf6"})]})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14778,e=>{"use strict";var t=e.i(42765);e.s(["f",()=>t.n])},35921,78337,e=>{"use strict";var t=e.i(24408);e.s(["f",()=>t.t],35921);var r=e.i(6245);e.s(["f",()=>r.t],78337)},44362,6245,42765,24408,e=>{"use strict";let t;function r(e){let t={subscribe(t){let r=null,n=!1,o=!1,i=!1;function s(){if(null===r){i=!0;return}!o&&(o=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=e({next(e){var r;n||null==(r=t.next)||r.call(t,e)},error(e){var r;n||(n=!0,null==(r=t.error)||r.call(t,e),s())},complete(){var e;n||(n=!0,null==(e=t.complete)||e.call(t),s())}}),i&&s(),{unsubscribe:s}},pipe:(...e)=>e.reduce(n,t)};return t}function n(e,t){return t(e)}function o(e){return r(t=>(function t(r=0,n=e.op){let o=e.links[r];if(!o)throw Error("No more links to execute - did you forget to add an ending link?");return o({op:n,next:e=>t(r+1,e)})})().subscribe(t))}function i(e){return Array.isArray(e)?e:[e]}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,r){var n;return(n=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==s(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}function f(){return Object.create(null)}e.s(["n",0,o,"t",0,function(e){return t=>{let n=i(e.true).map(e=>e(t)),s=i(e.false).map(e=>e(t));return t=>r(r=>{let i=e.condition(t.op)?n:s;return o({op:t.op,links:i}).subscribe(r)})}}],6245);let p=[-32603,-32603,-32603,-32603];function y(e){return e instanceof b}var h,d,b=class e extends Error{constructor(t,r){var n,o;let i=null==r?void 0:r.cause;super(t,{cause:i}),l(this,"cause",void 0),l(this,"shape",void 0),l(this,"data",void 0),l(this,"meta",void 0),this.meta=null==r?void 0:r.meta,this.cause=i,this.shape=null==r||null==(n=r.result)?void 0:n.error,this.data=null==r||null==(o=r.result)?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,e.prototype)}static from(t,r={}){return y(t)?(r.meta&&(t.meta=u(u({},t.meta),r.meta)),t):c(t)&&c(t.error)&&"number"==typeof t.error.code&&"string"==typeof t.error.message?new e(t.error.message,u(u({},r),{},{result:t,cause:r.cause})):new e("string"==typeof t?t:c(t)&&"string"==typeof t.message?t.message:"Unknown error",u(u({},r),{},{cause:t}))}};function m(e){return e?"input"in e?e:{input:e,output:e}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}e.s(["n",0,y,"t",0,b],42765);let v=()=>{},w=e=>{Object.freeze&&Object.freeze(e)};function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,r){var n;return(n=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==g(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Symbol("trpc_formattedErrorShape");var j=class extends Error{constructor(){super("Unable to transform response from server")}};function k(e){return null!=e?e:"."}function E(e,t){this.v=e,this.k=t}function x(e){var t,r;function n(t,r){try{var i=e[t](r),s=i.value,l=s instanceof E;Promise.resolve(l?s.v:s).then(function(r){if(l){var a="return"===t?"return":"next";if(!s.k||r.done)return n(a,r);r=e[a](r).value}o(i.done?"return":"normal",r)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(i,s){var l={key:e,arg:o,resolve:i,reject:s,next:null};r?r=r.next=l:(t=r=l,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function T(...e){let t=new AbortController,r=()=>{for(let t of e)null==t||t.removeEventListener("abort",n)},n=()=>{r(),t.abort()};for(let t of e){if(null==t?void 0:t.aborted){n();break}null==t||t.addEventListener("abort",n,{once:!0})}return{signal:t.signal,cleanup:r}}x.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},x.prototype.next=function(e){return this._invoke("next",e)},x.prototype.throw=function(e){return this._invoke("throw",e)},x.prototype.return=function(e){return this._invoke("return",e)},Symbol();let A={query:"GET",mutation:"POST",subscription:"PATCH"};function L(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[r]=n}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}let C=e=>{var t,r;let n=e.url.split("?"),o=n[0].replace(/\/$/,"")+"/"+(t=e.path,"."===(r=e.pathSeparator)?t:t.split(".").join(r)),i=[];if(n[1]&&i.push(n[1]),"inputs"in e&&i.push("batch=1"),"query"===e.type||"subscription"===e.type){let t=L(e);void 0!==t&&"POST"!==e.methodOverride&&i.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return i.length&&(o+="?"+i.join("&")),o},q=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;let t=L(e);return void 0!==t?JSON.stringify(t):void 0};var I=class extends Error{constructor(){let e="AbortError";super(e),this.name=e,this.message=e}};async function D(e){var t,r,n,o=e.signal;if(null==o?void 0:o.aborted){if(null==(n=o.throwIfAborted)||n.call(o),"u">typeof DOMException)throw new DOMException("AbortError","AbortError");throw new I}let i=e.getUrl(e),s=e.getBody(e),l=null!=(t=e.methodOverride)?t:A[e.type],a=await (async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),c=Object.keys(a).some(e=>"content-type"===e.toLowerCase()),f=u(u(u({},e.contentTypeHeader&&"GET"!==l&&!c?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[null!=(r=e.trpcAcceptHeaderKey)?r:"trpc-accept"]:e.trpcAcceptHeader}:void 0),a);return(function(e){if(e)return e;if("u">typeof window&&"function"==typeof window.fetch)return window.fetch.bind(window);if("u">typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(i,{method:l,signal:e.signal,body:s,headers:f})}async function N(e){let t={},r=await D(e);t.response=r;let n=await r.json();return t.responseJSON=n,{json:n,meta:t}}let z=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function _(e){let t=null,r=null;function n(){let n=function(t){let r=[[]],n=0;for(;;){var o,i,s;let l,a=t[n];if(!a)break;let u=r[r.length-1];if(a.aborted){null==(o=a.reject)||o.call(a,Error("Aborted")),n++;continue}try{l=e.validate(u.concat(a).map(e=>e.key))}catch(e){null==(i=a.reject)||i.call(a,e),n++;continue}if(l){u.push(a),n++;continue}if(0===u.length){null==(s=a.reject)||s.call(a,Error("Input is too big for a single dispatch")),n++;continue}r.push([])}return r}(t);for(let o of(clearTimeout(r),r=null,t=null,n)){if(!o.length)continue;let t={items:o};for(let e of o)e.batch=t;e.fetch(t.items.map(e=>e.key)).then(async e=>{for(let n of(await Promise.all(e.map(async(e,r)=>{var n,o;let i=t.items[r];try{let t=await Promise.resolve(e);null==(n=i.resolve)||n.call(i,t)}catch(e){null==(o=i.reject)||o.call(i,e)}i.batch=null,i.reject=null,i.resolve=null})),t.items)){var r;null==(r=n.reject)||r.call(n,Error("Missing result")),n.batch=null}}).catch(e=>{for(let n of t.items){var r;null==(r=n.reject)||r.call(n,e),n.batch=null}})}}return{load:function(e){let o={aborted:!1,key:e,batch:null,resolve:z,reject:z},i=new Promise((e,r)=>{o.reject=r,o.resolve=e,null!=t||(t=[]),t.push(o)});return null!=r||(r=setTimeout(n)),i}}}function R(e){let t=e,n=new Set,o=r(e=>(void 0!==t&&e.next(t),n.add(e),()=>{n.delete(e)}));return o.next=e=>{if(t!==e)for(let r of(t=e,[...n]))n.has(r)&&r.next(e)},o.get=()=>t,o}e.s(["n",0,_,"t",0,function(e){var t,n;let o={url:e.url.toString(),fetch:e.fetch,transformer:m(e.transformer),methodOverride:e.methodOverride,pathSeparator:k(e.pathSeparator)},i=null!=(t=e.maxURLLength)?t:1/0,s=null!=(n=e.maxItems)?n:1/0;return()=>{let t=t=>({validate(e){if(1/0===i&&1/0===s)return!0;if(e.length>s)return!1;let r=e.map(e=>e.path).join(","),n=e.map(e=>e.input);return C(u(u({},o),{},{type:t,path:r,inputs:n,signal:null})).length<=i},async fetch(r){let n,i=r.map(e=>e.path).join(","),s=r.map(e=>e.input),l=function(...e){let t=new AbortController,r=e.length,n=0,o=()=>{++n===r&&t.abort()};for(let t of e)(null==t?void 0:t.aborted)?o():null==t||t.addEventListener("abort",o,{once:!0});return t.signal}(...r.map(e=>e.signal)),a=await (n=u(u({},o),{},{path:i,inputs:s,type:t,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:r}):e.headers:{},signal:l}),N(u(u({},n),{},{contentTypeHeader:"application/json",getUrl:C,getBody:q})));return(Array.isArray(a.json)?a.json:r.map(()=>a.json)).map(e=>({meta:a.meta,json:e}))}}),n={query:_(t("query")),mutation:_(t("mutation"))};return({op:e})=>r(t=>{let r;if("subscription"===e.type)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let i=new AbortController,{signal:s,cleanup:l}=T(e.signal,i.signal),a=n[e.type].load(u(u({},e),{},{signal:s})),f=!1;return a.then(e=>{f=!0,r=e;let n=function(e,t){let r;try{r=function(e,t){if("error"in e){let r=t.deserialize(e.error);return{ok:!1,error:O(O({},e),{},{error:r})}}return{ok:!0,result:O(O({},e.result),(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.deserialize(e.result.data)})}}(e,t)}catch(e){throw new j}if(!r.ok&&(!c(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!c(r.result))throw new j;return r}(e.json,o.transformer.output);n.ok?(t.next({context:e.meta,result:n.result}),t.complete()):t.error(b.from(n.error,{meta:e.meta}))}).catch(e=>{f=!0,t.error(b.from(e,{meta:null==r?void 0:r.meta}))}),()=>{f||i.abort(),l()}})}}],24408),Symbol();let W=(e,...t)=>"function"==typeof e?e(...t):e;async function U(e){let t=await W(e.url);return e.connectionParams?t+`${t.includes("?")?"&":"?"}connectionParams=1`:t}async function $(e,t){let r={method:"connectionParams",data:await W(e)};return t.encode(r)}var J=class e{constructor(t){var r;if(l(this,"id",++e.connectCount),l(this,"WebSocketPonyfill",void 0),l(this,"urlOptions",void 0),l(this,"keepAliveOpts",void 0),l(this,"encoder",void 0),l(this,"wsObservable",R(null)),l(this,"openPromise",null),this.WebSocketPonyfill=null!=(r=t.WebSocketPonyfill)?r:WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){if(this.openPromise)return this.openPromise;this.id=++e.connectCount;let t=U(this.urlOptions).then(e=>new this.WebSocketPonyfill(e));this.openPromise=t.then(async e=>{this.ws=e,e.binaryType="arraybuffer",e.addEventListener("message",function({data:e}){"PING"===e&&this.send("PONG")}),this.keepAliveOpts.enabled&&function(e,{intervalMs:t,pongTimeoutMs:r}){let n,o;function i(){n=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},r)},t)}e.addEventListener("open",i),e.addEventListener("message",({data:e})=>{clearTimeout(n),i(),"PONG"===e&&(clearTimeout(o),clearTimeout(n),i())}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(o)})}(e,this.keepAliveOpts),e.addEventListener("close",()=>{this.ws===e&&(this.ws=null)}),await function(e){let t,r,{promise:n,resolve:o,reject:i}={promise:new Promise((e,n)=>{t=e,r=n}),resolve:t,reject:r};return e.addEventListener("open",()=>{e.removeEventListener("error",i),o()}),e.addEventListener("error",i),n}(e),this.urlOptions.connectionParams&&e.send(await $(this.urlOptions.connectionParams,this.encoder))});try{await this.openPromise}finally{this.openPromise=null}}async close(){try{await this.openPromise}finally{var e;null==(e=this.ws)||e.close()}}};l(J,"connectCount",0);let G=new WeakMap,H=()=>{};t=Symbol.toStringTag;var M=class e{constructor(e){S(this,"promise",void 0),S(this,"subscribers",[]),S(this,"settlement",null),S(this,t,"Unpromise"),"function"==typeof e?this.promise=new Promise(e):this.promise=e;let r=this.promise.then(e=>{let{subscribers:t}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:e},null==t||t.forEach(({resolve:t})=>{t(e)})});"catch"in r&&r.catch(e=>{let{subscribers:t}=this;this.subscribers=null,this.settlement={status:"rejected",reason:e},null==t||t.forEach(({reject:t})=>{t(e)})})}subscribe(){let e,t,{settlement:r}=this;if(null===r){var n;let r,o;if(null===this.subscribers)throw Error("Unpromise settled but still has subscribers");let i={promise:new Promise((e,t)=>{r=e,o=t}),resolve:r,reject:o};this.subscribers=(n=this.subscribers,[...n,i]),e=i.promise,t=()=>{null!==this.subscribers&&(this.subscribers=function(e,t){let r=e.indexOf(t);if(-1!==r)return[...e.slice(0,r),...e.slice(r+1)];return e}(this.subscribers,i))}}else{let{status:n}=r;e="fulfilled"===n?Promise.resolve(r.value):Promise.reject(r.reason),t=H}return Object.assign(e,{unsubscribe:t})}then(e,t){let r=this.subscribe(),{unsubscribe:n}=r;return Object.assign(r.then(e,t),{unsubscribe:n})}catch(e){let t=this.subscribe(),{unsubscribe:r}=t;return Object.assign(t.catch(e),{unsubscribe:r})}finally(e){let t=this.subscribe(),{unsubscribe:r}=t;return Object.assign(t.finally(e),{unsubscribe:r})}static proxy(t){let r=e.getSubscribablePromise(t);return void 0!==r?r:e.createSubscribablePromise(t)}static createSubscribablePromise(t){let r=new e(t);return G.set(t,r),G.set(r,r),r}static getSubscribablePromise(e){return G.get(e)}static resolve(t){let r="object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then?t:Promise.resolve(t);return e.proxy(r).subscribe()}static async any(t){let r=(Array.isArray(t)?t:[...t]).map(e.resolve);try{return await Promise.any(r)}finally{r.forEach(({unsubscribe:e})=>{e()})}}static async race(t){let r=(Array.isArray(t)?t:[...t]).map(e.resolve);try{return await Promise.race(r)}finally{r.forEach(({unsubscribe:e})=>{e()})}}static async raceReferences(e){let t=e.map(B);try{return await Promise.race(t)}finally{for(let e of t)e.unsubscribe()}}};function B(e){return M.proxy(e).then(()=>[e])}null!=(h=Symbol).dispose||(h.dispose=Symbol()),null!=(d=Symbol).asyncDispose||(d.asyncDispose=Symbol());let K=Symbol();function F(){var e="function"==typeof SuppressedError?SuppressedError:function(e,t){var r=Error();return r.name="SuppressedError",r.error=e,r.suppressed=t,r},t={},r=[];function n(e,t){if(null!=t){if(Object(t)!==t)throw TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var n=t[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===n&&(n=t[Symbol.dispose||Symbol.for("Symbol.dispose")],e))var o=n;if("function"!=typeof n)throw TypeError("Object is not disposable.");o&&(n=function(){try{o.call(t)}catch(e){return Promise.reject(e)}}),r.push({v:t,d:n,a:e})}else e&&r.push({d:t,a:e});return t}return{e:t,u:n.bind(null,!1),a:n.bind(null,!0),d:function(){var n,o=this.e,i=0;function s(){for(;n=r.pop();)try{if(!n.a&&1===i)return i=0,r.push(n),Promise.resolve().then(s);if(n.d){var e=n.d.call(n.v);if(n.a)return i|=2,Promise.resolve(e).then(s,l)}else i|=1}catch(e){return l(e)}if(1===i)return o!==t?Promise.reject(o):Promise.resolve();if(o!==t)throw o}function l(r){return o=o!==t?new e(r,o):r,s()}return s()}}}async function X(e){try{let i,s;var t,r,n,o=F();let l=o.u((t=e.timeoutMs,i=null,r={start(){if(i)throw Error("Timer already started");return new Promise(e=>{i=setTimeout(()=>e(K),t)})}},n=()=>{i&&clearTimeout(i)},s=r[Symbol.dispose],r[Symbol.dispose]=()=>{n(),null==s||s.call(r)},r)),a=await M.race([e.promise,l.start()]);if(a===K)return await e.onTimeout();return a}catch(e){o.e=e}finally{o.d()}}Symbol("ping");var Q=class{constructor(e){l(this,"links",void 0),l(this,"runtime",void 0),l(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}$request(e){var t;return o({links:this.links,op:u(u({},e),{},{context:null!=(t=e.context)?t:{},id:++this.requestId})}).pipe(e=>{let t=0,n=null,o=!1,i=new Set;function s(e,t){for(let r of[...e])e.has(r)&&t(r)}function l(e){let t=n,r=i;n=null,i=new Set,o=!1;try{s(r,e)}finally{null==t||t.unsubscribe()}}return r(r=>{t++;let a=i;return a.add(r),!function(){let t;if(n||o)return;o=!0;let r=!1;try{t=e.subscribe({next(e){s(i,t=>{var r;return null==(r=t.next)?void 0:r.call(t,e)})},error(e){r=!0,l(t=>{var r;return null==(r=t.error)?void 0:r.call(t,e)})},complete(){r=!0,l(e=>{var t;return null==(t=e.complete)?void 0:t.call(e)})}})}finally{o=!1}r?t.unsubscribe():n=t}(),{unsubscribe(){let e;0==--t&&n&&(e=n,n=null,null==e||e.unsubscribe()),a.delete(r)}}})})}async requestAsPromise(e){try{let t,r=this.$request(e);return(await (t=new AbortController,new Promise((e,n)=>{let o=!1;function i(){o||(o=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{n(t.signal.reason)});let s=r.subscribe({next(t){o=!0,e(t),i()},error(e){n(e)},complete(){t.abort(),i()}})}))).result.data}catch(e){throw b.from(e)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:null==r?void 0:r.context,signal:null==r?void 0:r.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(e){var t,n,o,i;switch(e.result.type){case"state":null==(t=r.onConnectionStateChange)||t.call(r,e.result);break;case"started":null==(n=r.onStarted)||n.call(r,{context:e.context});break;case"stopped":null==(o=r.onStopped)||o.call(r);break;case"data":case void 0:null==(i=r.onData)||i.call(r,e.result.data)}},error(e){var t;null==(t=r.onError)||t.call(r,e)},complete(){var e;null==(e=r.onComplete)||e.call(r)}})}};let V=Symbol.for("trpc_untypedClient"),Y={query:"query",mutate:"mutation",subscribe:"subscription"};function Z(e){function t(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return(Z=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new Z(e)}async function ee(e){let t=await W(e.url);if(e.connectionParams){let r=await W(e.connectionParams),n=t.includes("?")?"&":"?";t+=n+"connectionParams="+encodeURIComponent(JSON.stringify(r))}return t}function et(e,t){this.v=e,this.k=t}function er(e){var t,r;function n(t,r){try{var i=e[t](r),s=i.value,l=s instanceof et;Promise.resolve(l?s.v:s).then(function(r){if(l){var a="return"===t?"return":"next";if(!s.k||r.done)return n(a,r);r=e[a](r).value}o(i.done?"return":"normal",r)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise(function(i,s){var l={key:e,arg:o,resolve:i,reject:s,next:null};r?r=r.next=l:(t=r=l,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}er.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},er.prototype.next=function(e){return this._invoke("next",e)},er.prototype.throw=function(e){return this._invoke("throw",e)},er.prototype.return=function(e){return this._invoke("return",e)},e.s(["$",0,function(e){let t;var r=new Q(e);let n=function e(t,r,n){let o=r.join(".");return null!=n[o]||(n[o]=new Proxy(v,{get(o,i){if("string"==typeof i&&"then"!==i)return e(t,[...r,i],n)},apply(e,n,o){let i=r[r.length-1];if("valueOf"===i||"toString"===i||"toJSON"===i)return`tRPC.proxy(${r.slice(0,-1).join(".")})`;let s={args:o,path:r};return"call"===i?s={args:o.length>=2?[o[1]]:[],path:r.slice(0,-1)}:"apply"===i&&(s={args:o.length>=2?o[1]:[],path:r.slice(0,-1)}),w(s.args),w(s.path),t(s)}})),n[o]}(({path:e,args:t})=>{let n=[...e],o=Y[n.pop()],i=n.join(".");return r[o](i,...t)},[],f());return t=e=>e===V?r:n[e],new Proxy(v,{get(e,r){if("then"!==r)return t(r)}})},"I",0,function(e){let t=m(e.transformer),n=k(e.pathSeparator);return()=>({op:o})=>r(r=>{var i;let s,{type:l,path:a,input:c}=o;if("subscription"!==l)throw Error("httpSubscriptionLink only supports subscriptions");let y=new AbortController,h=function(e){var t;let{deserialize:r=e=>e}=e,n=f(),o=e.signal,i=null,s=()=>new ReadableStream({async start(t){let[s,l]=await Promise.all([e.url(),e.init()]),a=i=new e.EventSource(s,l);t.enqueue({type:"connecting",eventSource:i,event:null});let u=(e,r)=>{a.addEventListener(e,e=>{try{r(e)}catch(e){a.close(),t.error(e)}})};u("connected",e=>{let r=JSON.parse(e.data);n=r,t.enqueue({type:"connected",options:r,eventSource:a})}),u("serialized-error",e=>{t.enqueue({type:"serialized-error",error:r(JSON.parse(e.data)),eventSource:a})}),a.addEventListener("ping",()=>{t.enqueue({type:"ping",eventSource:a})}),a.addEventListener("return",()=>{a.close(),t.close(),i=null}),a.addEventListener("error",e=>{a.readyState===a.CLOSED?t.error(e):t.enqueue({type:"connecting",eventSource:a,event:e})}),u("message",e=>{let n={data:r(JSON.parse(e.data))};e.lastEventId&&(n.id=e.lastEventId),t.enqueue({type:"data",data:n,eventSource:a})});let c=()=>{try{a.close(),t.close()}catch(e){}};o.aborted?c():o.addEventListener("abort",c)},cancel(){null==i||i.close()}});return t=function*(){try{var e,t=F();let r=t.a((()=>{var e;let t,r=s(),n=r.getReader();async function o(){await n.cancel().catch(()=>{}),i=null}return e={read:()=>n.read(),async recreate(){await o(),n=(r=s()).getReader()}},t=e[Symbol.asyncDispose],e[Symbol.asyncDispose]=async()=>{await o(),await (null==t?void 0:t.call(e))},e})());for(;;){let t=r.read(),o=n.reconnectAfterInactivityMs;o&&(t=X({promise:t,timeoutMs:o,onTimeout:async()=>{let e={value:{type:"timeout",ms:o,eventSource:i},done:!1};return await r.recreate(),e}}));let s=yield(e=t,new E(e,0));if(s.done)return s.value;yield s.value}}catch(e){t.e=e}finally{yield new E(t.d(),0)}},function(){return new x(t.apply(this,arguments))}()}({url:async()=>{var r;return C({transformer:t,url:await ee(e),input:(r=s)&&(null==c||"object"==typeof c)?u(u({},null!=c?c:{}),{},{lastEventId:r}):c,path:a,pathSeparator:n,type:l,signal:null})},init:()=>W(e.eventSourceOptions,{op:o}),signal:function(...e){return T(...e).signal}(o.signal,y.signal),deserialize:e=>t.output.deserialize(e),EventSource:null!=(i=e.EventSource)?i:globalThis.EventSource}),d=R({type:"state",state:"connecting",error:null}),m=d.subscribe({next(e){r.next({result:e})}});return(async()=>{var e=!1,t=!1;try{for(var n,o,i=function(e){var t,r,n,o=2;for("u">typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new Z(t.call(e));r="@@asyncIterator",n="@@iterator"}throw TypeError("Object is not async iterable")}(h);e=!(o=await i.next()).done;e=!1){let e=o.value;switch(e.type){case"ping":break;case"data":let t,n=e.data;n.id?(s=n.id,t={id:n.id,data:n}):t={data:n.data},r.next({result:t,context:{eventSource:e.eventSource}});break;case"connected":r.next({result:{type:"started"},context:{eventSource:e.eventSource}}),d.next({type:"state",state:"pending",error:null});break;case"serialized-error":{let t=b.from({error:e.error});if(p.includes(e.error.code)){d.next({type:"state",state:"connecting",error:t});break}throw t}case"connecting":{let t=d.get(),r=e.event&&b.from(e.event);if(!r&&"connecting"===t.state)break;d.next({type:"state",state:"connecting",error:r});break}case"timeout":d.next({type:"state",state:"connecting",error:new b(`Timeout of ${e.ms}ms reached while waiting for a response`)})}}}catch(e){t=!0,n=e}finally{try{e&&null!=i.return&&await i.return()}finally{if(t)throw n}}r.next({result:{type:"stopped"}}),d.next({type:"state",state:"idle",error:null}),r.complete()})().catch(e=>{r.error(b.from(e))}),()=>{r.complete(),y.abort(),m.unsubscribe()}})}],44362)},95813,e=>{"use strict";e.s(["f",0,function(e,t="The request failed. Please try again."){return e instanceof Error?e.message:t}])},73656,e=>{"use strict";var t=e.i(44362),r=e.i(35921),n=e.i(78337),o=e.i(14778);let i=function(e={}){let o=e.url??"/trpc";return(0,t.$)({links:[(0,n.f)({condition:e=>"subscription"===e.type,true:(0,t.I)({url:o,eventSourceOptions:{withCredentials:!0}}),false:(0,r.f)({url:o,fetch:(t,r)=>(e.fetch??globalThis.fetch)(t,{...r,signal:r?.signal??null,credentials:"same-origin"}),headers(){let t=(e.csrfToken??function(){return"u"<typeof document?void 0:document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith("csrftoken="))?.slice(10)})();return t?{"X-CSRFToken":t}:{}}})})]})}();async function s(e){try{return await i.auth.session.query(void 0,e?{signal:e}:void 0)}catch(e){throw(0,o.f)(e)&&e.data?.code==="PRECONDITION_FAILED"&&location.assign(new URL("/setup/",location.origin).href),e}}e.s(["m",0,s,"U",0,i])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96001,t=>{t.v(e=>Promise.all(["static/chunks/0y5lgqdwpeabb.js"].map(e=>t.l(e))).then(()=>e(160)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,i,t)=>{i.exports=e.r(76562)},18707,e=>{"use strict";var i=e.i(18050),t=e.i(19455),n=e.i(71645),s=e.i(18566),a=e.i(73656),c=e.i(95813);function r(){let e=(0,s.useSearchParams)().get("token")??"",r=(0,s.useRouter)(),[o,l]=(0,n.useState)("Sign in with the invited email address before accepting.");return(0,i.jsx)("main",{children:(0,i.jsxs)("section",{className:"panel",children:[(0,i.jsx)("h1",{children:"Join this workspace"}),(0,i.jsx)("p",{role:"status",children:o}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("a",{className:"button",href:`/accounts/login/?next=${encodeURIComponent(`/workspaces/invite/?token=${e}`)}`,children:"Sign in"}),(0,i.jsx)(t.f,{disabled:!e,onClick:()=>{(async()=>{try{await (0,a.m)(),await a.U.workspace.acceptInvitation.mutate({token:e}),r.push("/")}catch(e){l((0,c.f)(e))}})()},children:"Accept invitation"})]})]})})}e.s(["default",0,function(){return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)("p",{children:"Loading invitation…"}),children:(0,i.jsx)(r,{})})}])}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|