PageSourceSearch

https://armm-wt.netlify.app/assets/WorkspaceSettingsHarness-B764uVJt.js

js armm-wt.netlify.app collected 2026-10-03 10:28:45 UTC 6,306 bytes, 1 lines download raw bytes

1import{c as p,a as h,j as n}from"./vendor-react-Bcdb_G33.js";import{WorkspaceIndexView as D}from"./Index-imgQ7t99.js";import{WorkspaceLayoutView as j}from"./Layout-B0dpNJ0p.js";import"./vendor-jszip-CUVUlh3I.js";import"./vendor-misc-CQry7RQ4.js";import"./vendor-platform-D7DokyZV.js";import"./dateTime-MwBiIpuP.js";import"./AppBadge-0M8VmTuP.js";import"./SfCard-DZRR-pqm.js";import"./vendor--syncfusion-ej2-react-buttons-CGy40anP.js";import"./vendor--syncfusion-ej2-react-base-BEYuUjuE.js";import"./vendor--syncfusion-ej2-base-BOjhgZ6b.js";import"./vendor--syncfusion-ej2-buttons-BwA-C4tu.js";import"./index-B3RCnnva.js";import"./vendor--syncfusion-ej2-react-navigations-B3-Cge_i.js";import"./vendor--syncfusion-ej2-navigations-LdmgVKZf.js";import"./vendor--syncfusion-ej2-lists-Buyu7KA2.js";import"./vendor--syncfusion-ej2-data-CFD_VGDc.js";import"./vendor--syncfusion-ej2-popups-RRRNWGJg.js";import"./vendor--syncfusion-ej2-react-lists-Bz8nCZEw.js";import"./logoRepo-n89-jAKB.js";import"./TitleLight-BAe5kANx.js";import"./StatusPanel-Dxf3rXrK.js";const U=h.createContext(null),E=[{id:"workspace-owned-1",name:"Operations Hub",description:"Coordinates fabrication planning and weld status.",subscribed:!0,owner:"[email protected]",ownerUserId:"owner-1",ownerEmail:"[email protected]",ownerDisplayName:"Owner User",billingOwnerUserId:"owner-1",subscriptionTier:"standard",subscriptionStatus:"active",createdAt:"2026-03-12T09:00:00.000Z",lastModified:"2026-03-12T09:00:00.000Z",createdby:"[email protected]",modifiedBy:"[email protected]"},{id:"workspace-shared-1",name:"Client Reporting",description:"Shared reporting workspace for client visibility.",subscribed:!1,owner:"[email protected]",ownerUserId:"owner-2",ownerEmail:"[email protected]",ownerDisplayName:"Shared Owner",billingOwnerUserId:"owner-2",subscriptionTier:"free",subscriptionStatus:"free",createdAt:"2026-03-12T09:05:00.000Z",lastModified:"2026-03-12T09:05:00.000Z",createdby:"[email protected]",modifiedBy:"[email protected]"}],_=(t,e)=>{const r=new Date().toISOString();return{id:`workspace-owned-${Math.random().toString(36).slice(2,10)}`,name:t.name,description:t.description,subscribed:!1,owner:"[email protected]",ownerUserId:e,ownerEmail:"[email protected]",ownerDisplayName:"Owner User",billingOwnerUserId:e,subscriptionTier:"free",subscriptionStatus:"free",createdAt:r,lastModified:r,createdby:"[email protected]",modifiedBy:"[email protected]"}},C=()=>{const t=h.useContext(U);if(!t)throw new Error("Workspace e2e harness context is unavailable.");return t},g=t=>{const e=p.c(7),{title:r,description:l}=t;let o;e[0]!==r?(o=n.jsx("h3",{className:"h4 mb-1",children:r}),e[0]=r,e[1]=o):o=e[1];let i;e[2]!==l?(i=n.jsx("div",{className:"text-muted small",children:l}),e[2]=l,e[3]=i):i=e[3];let a;return e[4]!==o||e[5]!==i?(a=n.jsx("div",{className:"card border-0 shadow-sm",children:n.jsxs("div",{className:"card-body",children:[o,i]})}),e[4]=o,e[5]=i,e[6]=a):a=e[6],a},se=t=>{var y;const e=p.c(13),{workspaceBasePath:r,billingPath:l}=t,[o,i]=h.useState(E),[a,v]=h.useState(((y=E[0])==null?void 0:y.id)??null);let m;e[0]!==a||e[1]!==o?(m=o.find(s=>s.id===a)??o[0]??null,e[0]=a,e[1]=o,e[2]=m):m=e[2];const x=m;let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=async s=>{v((s==null?void 0:s.id)??null)},e[3]=u):u=e[3];let w;e[4]!==x||e[5]!==o?(w={workspace:x,availableWorkSpaces:o,loading:!1,setCurrentWorkspace:u},e[4]=x,e[5]=o,e[6]=w):w=e[6];const W=w;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={currentUserId:"owner-1",getToken:R,createWorkspace:async s=>{const d=_(s,"owner-1");return i(c=>[...c,d]),d},updateWorkspace:async(s,d)=>{let c=null;if(i(T=>T.map(S=>S.id!==s?S:(c={...S,name:d.name,description:d.description,lastModified:new Date().toISOString(),modifiedBy:"[email protected]"},c))),!c)throw new Error("Workspace not found.");return c},deleteWorkspace:async s=>(i(d=>d.filter(c=>c.id!==s)),{deleted:!0,workspaceId:s}),confirmDelete:O},e[7]=f):f=e[7];const I=f;let k;e[8]===Symbol.for("react.memo_cache_sentinel")?(k={indexDeps:I},e[8]=k):k=e[8];let b;return e[9]!==l||e[10]!==r||e[11]!==W?(b=n.jsx(U.Provider,{value:k,children:n.jsx(j,{workspaceState:W,workspaceBasePath:r,billingPath:l,currentUserId:"owner-1"})}),e[9]=l,e[10]=r,e[11]=W,e[12]=b):b=e[12],b},ne=()=>{const t=p.c(7),{indexDeps:e}=C();
1if(!e.currentUserId||!e.getToken||!e.createWorkspace||!e.updateWorkspace||!e.deleteWorkspace||!e.confirmDelete)throw new Error("Workspace e2e harness dependencies are incomplete.");let r;return t[0]!==e.confirmDelete||t[1]!==e.createWorkspace||t[2]!==e.currentUserId||t[3]!==e.deleteWorkspace||t[4]!==e.getToken||t[5]!==e.updateWorkspace?(r=n.jsx(D,{currentUserId:e.currentUserId,getToken:e.getToken,createWorkspace:e.createWorkspace,updateWorkspace:e.updateWorkspace,deleteWorkspace:e.deleteWorkspace,confirmDelete:e.confirmDelete}),t[0]=e.confirmDelete,t[1]=e.createWorkspace,t[2]=e.currentUserId,t[3]=e.deleteWorkspace,t[4]=e.getToken,t[5]=e.updateWorkspace,t[6]=r):r=t[6],r},ie=()=>{const t=p.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(g,{title:"Access Route Test Panel",description:"Use this route to validate navigation into and out of access settings during browser flows."}),t[0]=e):e=t[0],e},ae=()=>{const t=p.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(g,{title:"Calibration Route Test Panel",description:"Use this route to validate navigation into the dedicated calibration log page during browser flows."}),t[0]=e):e=t[0],e},ce=()=>{const t=p.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(g,{title:"Roles Route Test Panel",description:"Use this route to validate the dedicated custom-role destination during browser flows."}),t[0]=e):e=t[0],e},le=()=>{const t=p.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(g,{title:"Billing Route Test Panel",description:"Use this route to validate navigation into billing before returning to workspace CRUD flows."}),t[0]=e):e=t[0],e};async function R(){return"e2e-token"}function O(){return!0}export{ie as WorkspaceSettingsE2EAccess,le as WorkspaceSettingsE2EBilling,ae as WorkspaceSettingsE2ECalibration,se as WorkspaceSettingsE2EHarness,ce as WorkspaceSettingsE2ERoles,ne as WorkspaceSettingsE2EWorkspaces};

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