@decafhub/decaf-react-webapp 0.1.4 → 0.2.0

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.
@@ -1,4 +1,4 @@
1
- import{Global as e,css as t}from"@emotion/react";export{Global as GlobalStyle,css}from"@emotion/react";export{default as styled}from"@emotion/styled";import{LockFilled as n,RightOutlined as o,DownOutlined as r,QuestionCircleOutlined as l,EllipsisOutlined as a,MenuOutlined as c,UpOutlined as i,CameraOutlined as s,BulbFilled as d,BulbOutlined as m,UserOutlined as u,LogoutOutlined as p,InfoCircleOutlined as g,CaretUpOutlined as f,MessageOutlined as h,HomeOutlined as b}from"@ant-design/icons";import{Result as E,Typography as y,Button as w,theme as k,ConfigProvider as v,Grid as x,Dropdown as C,Menu as B,Drawer as S,Avatar as z,Layout as I,Row as $,Col as A,Card as L,Statistic as P}from"antd";import N,{useState as T,useLayoutEffect as D,useEffect as W}from"react";import{Link as j,useMatches as F,useLocation as R,NavLink as V,useNavigate as H,useNavigation as O,Outlet as q,createBrowserRouter as M,RouterProvider as _}from"react-router-dom";import{useDecaf as U,DecafApp as Y,DecafWebappController as G}from"@decafhub/decaf-react";import"antd/dist/reset.css";import{useNProgress as K}from"@tanem/react-nprogress";import X from"decimal.js";import Z from"js-cookie";import J from"md5";import Q from"html2canvas";function ee({message:e}){return N.createElement(N.Fragment,null,N.createElement(y,null,e),N.createElement(j,{to:"/"},N.createElement(w,{style:{marginTop:20}},"Home Page")))}function te(){return N.createElement(E,{icon:N.createElement(n,{style:{color:"#ff603b"}}),title:"Authentication Error",subTitle:N.createElement(ee,{message:"Your credentials are invalid. Please try to log in again."})})}function ne(){return N.createElement(E,{status:"403",title:"Access Denied",subTitle:N.createElement(ee,{message:"You are not authorized to access this content."})})}function oe(){return N.createElement(E,{status:"404",title:"Page Not Found",subTitle:N.createElement(ee,{message:"Sorry, the page you visited does not exist."})})}function re(){return N.createElement(E,{status:"500",title:"Error",subTitle:N.createElement(ee,{message:"Something went wrong. Please try again later. If the problem persists, please contact the administrator."})})}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},le.apply(this,arguments)}const ae=32,ce=16;function ie(e){const[t,n]=T(0);return D(()=>{const t=document.getElementById(e),o=()=>{if(!t)return;const e=t.getBoundingClientRect().top,o=window.innerHeight-e-ae-ce;n(o)};return o(),null==t||t.addEventListener("resize",o),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),null==t||t.removeEventListener("resize",o)}},[e]),t}function se(e,t){const[n,o]=T(400),r=ie(e),l=document.getElementById(e);return D(()=>{if(l){const e=null==l?void 0:l.closest(".ant-table-wrapper"),n=new ResizeObserver(()=>{var n,l,a,c,i;const s=null!=(n=null==e||null==(l=e.querySelector(".ant-table-header"))?void 0:l.getBoundingClientRect().height)?n:0,d=null!=(a=null==e||null==(c=e.querySelector(".ant-table-footer"))?void 0:c.getBoundingClientRect().height)?a:0,m=null!=(i=null==e?void 0:e.querySelectorAll(".ant-pagination"))?i:[],u=32*m.length,p=Array.from(m).reduce((e,t)=>e+t.getBoundingClientRect().height,0);o(r>350?r-s-d-p-u-(t||0):"100%")});return n.observe(e,{box:"content-box"}),()=>{n.disconnect()}}},[t,r,l]),n}function de(e,t){let n=!1;"#"===e[0]&&(e=e.slice(1),n=!0);const o=parseInt(e,16);let r=(o>>16)+t;r>255?r=255:r<0&&(r=0);let l=(o>>8&255)+t;l>255?l=255:l<0&&(l=0);let a=(255&o)+t;return a>255?a=255:a<0&&(a=0),(n?"#":"")+String("000000"+(a|l<<8|r<<16).toString(16)).slice(-6)}function me(e,t){e.barista.get("/auth/"+(t?"logoutall":"logout"),{timeout:3e3}).catch(e=>{t&&(console.error(e),alert("Failed to logout from all devices. Please try to logout from each device individually."))}).finally(()=>{Z.remove("ember_simple_auth-session"),window.location.reload()})}function ue(e){return t=>t?e.True:e.False}function pe(e){return t=>null==t?e.Null:ue(e)(t)}var ge;function fe(e){switch(new X(0).comparedTo(e)){case 1:return ge.Short;case 0:return ge.Square;case-1:return ge.Long}return ge.Square}function he(e){return t=>{switch(fe(t)){case ge.Short:return e.Short;case ge.Square:return e.Square;case ge.Long:return e.Long}}}function be(e,t,n){const o=[...e];return t.forEach(e=>{const t=o.findIndex(t=>t[n]===e[n]);t>=0?o[t]=e:o.push(e)}),o}function Ee(e){return new URL(e.url).searchParams}function ye(e,t){return new URL(e.url).searchParams.get(t)}function we(e,t,n){var o;return null!=(o=new URL(e.url).searchParams.get(t))?o:n}function ke(e,t){return new URL(e.url).searchParams.getAll(t)}!function(e){e[e.Short=-1]="Short",e[e.Square=0]="Square",e[e.Long=1]="Long"}(ge||(ge={}));const ve="#10161d",xe="rgb(31, 41, 55)",Ce="#f3f4f6",Be="#2c3d50",Se={colorBorder:"transparent",colorBorderSecondary:"transparent",colorBorderBg:"transparent"},ze={hashed:!0,algorithm:[k.defaultAlgorithm],components:{Layout:{colorBgHeader:"#ededed"}},token:{borderRadius:0,colorBgContainer:"white",colorBgBase:Ce,colorBgLayout:Ce,colorBgElevated:"#fafbfc"}},Ie={hashed:!0,components:{Layout:{colorBgHeader:ve},Button:{boxShadow:"none",boxShadowSecondary:"none",colorBgContainer:Be},Input:le({},Se,{colorBgContainer:Be}),Select:le({},Se,{colorBgContainer:Be}),Checkbox:le({},Se,{colorBgContainer:Be}),Dropdown:le({},Se),DatePicker:le({},Se,{colorBgContainer:Be,colorBgElevated:Be}),InputNumber:le({},Se,{colorBgContainer:Be}),Menu:{colorItemText:"rgba(255, 255, 255, 0.5)"}},token:{fontFamily:"Inter, sans-serif",colorPrimary:"#344961",colorBgBase:xe,colorBgContainer:ve,colorBgElevated:"rgb(20, 29, 41)",colorBorderSecondary:xe,colorBorder:xe,colorBgLayout:xe,borderRadius:0,green:"#48734d",red:"#b03a38",blue:"#0d6efd",yellow:"#ffc107",orange:"#fd7e14",colorWhite:"#fff",colorLink:"#a4bfff",colorLinkHover:"#7199fb",colorLinkActive:"#7199fb"},algorithm:[k.darkAlgorithm]};function $e(e){var t,n,o,r;const l={color:"white !important",":after":{borderBottomColor:"white"}};return{body:{background:null==(t=e.token)?void 0:t.colorBgBase,fontFamily:"Inter, sans-serif",margin:0},"#root":{minHeight:"100%"},button:{boxShadow:"none !important"},".ant-table-body":{overflow:"auto !important"},"#decaf-header":{position:"fixed",zIndex:999,right:0,left:0,paddingInline:16,display:"flex",alignItems:"center"},"#decaf-content":{paddingTop:64,paddingBottom:32,"#decaf-layout-breadcrumb":le({backgroundColor:null==(n=e.token)?void 0:n.colorBgElevated,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",height:50,paddingInline:16,boxShadow:"0px 1px 2px rgba(0, 0, 0, 0.10)"},Ae()),"#decaf-layout-content-outlet":{minHeight:"100%",padding:16,"&.full-screen":{padding:"0 !important"}}},"#decaf-footer":{position:"fixed",bottom:0,right:0,left:0,paddingBlock:0,paddingInline:0,zIndex:999,boxShadow:"0px -2px 4px rgba(0, 0, 0, 0.15)",backgroundColor:null==(o=Ie.components)||null==(r=o.Layout)?void 0:r.colorBgHeader},".dot":{borderRadius:"50%",width:10,height:10,display:"inline-block",backgroundColor:"rgba(255,255,255,.25)","&.green":{backgroundColor:"#80ff00 !important"},"&.yellow":{backgroundColor:"#ff0 !important"},"&.orange":{backgroundColor:"#ff7000 !important"},"&.red":{backgroundColor:"#ff0000 !important"}},".ant-menu-item-selected":l,".ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected":l,".ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, .ant-menu-light .ant-menu-submenu-selected >.ant-menu-submenu-title":l}}function Ae(){const e=e=>{const t="dark"===e?"255, 255, 255":"0, 0, 0";return{color:`rgba(${t}, 0.5) !important`,"&:hover":{color:`rgba(${t}, 0.75) !important`}}},t=le({},e("dark"),{"&:last-child":{color:"rgba(255, 255, 255, 0.85) !important"}}),n=le({},e("light"),{"&:last-child":{color:"rgba(0, 0, 0, 0.85) !important"}});return{".decaf-breadcrumb":{display:"flex",alignItems:"center",listStyle:"none",margin:0,padding:0,">li":le({"&.separator":{paddingInline:3,marginInline:3},"a, span":le({},e("light")),display:"flex",alignItems:"center",transition:"color 0.2s"},n),"&.dark":{">li":le({"a, span":le({},e("dark"))},t)}}}}const Le=N.createContext({theme:"dark",toggleTheme:()=>{}}),Pe=()=>N.useContext(Le);let Ne,Te=e=>e;function De(n){const[o,r]=N.useState(()=>{const e=n.theme||localStorage.getItem("decafAppTheme");return"dark"===e||"light"===e?e:"dark"});let l="light"===o?ze:Ie;l=le({},l,n.themeConfig||{}),l=le({},l,{token:le({},l.token,{fontFamily:"Inter, sans-serif"})});const a="light"===o?function(e){return le({},$e(e))}(l):function(e){var t,n,o,r,l,a,c,i,s,d,m,u,p,g,f;return le({},$e(e),{"*":{"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{background:null==(t=e.token)?void 0:t.colorBgContainer},"&::-webkit-scrollbar-thumb":{background:null==(n=e.token)?void 0:n.colorPrimary}},".ant-page-header-back-button, .ant-page-header-heading-title":{color:`${null==(o=e.token)?void 0:o.colorWhite} !important`},".ant-badge-count":{color:`${null==(r=e.token)?void 0:r.colorWhite} !important`},".ant-table-thead > tr > th":{background:`${de((null==(l=e.token)?void 0:l.colorBgContainer)||"",-5)} !important`,"&:hover":{background:`${null==(a=e.token)?void 0:a.colorBgContainer} !important`}},".ant-table-filter-dropdown":{"input, .ant-table-filter-dropdown-search-input":{background:`${null==(c=e.token)?void 0:c.colorBgBase} !important`},".ant-dropdown-menu-item, .ant-dropdown-menu":{background:`${null==(i=e.token)?void 0:i.colorBgContainer} !important`}},".ant-tabs-tab-active":{".ant-tabs-tab-btn":{color:`${null==(s=e.token)?void 0:s.colorWhite} !important`}},".ant-radio-button-wrapper-checked":{backgroundColor:`${null==(d=e.components)||null==(m=d.Button)?void 0:m.colorBgContainer} !important`,color:`${null==(u=e.token)?void 0:u.colorWhite} !important`},".ant-picker-date-panel":{".ant-picker-cell-in-range, .ant-picker-cell-range-start, .ant-picker-cell-range-end":{"&::before":{background:`${null==(p=e.token)?void 0:p.colorBgBase} !important`},".ant-picker-cell-inner":{background:`${null==(g=e.token)?void 0:g.colorBgBase} !important`}},".ant-picker-cell-range-start, .ant-picker-cell-range-end":{".ant-picker-cell-inner":{background:`${null==(f=e.token)?void 0:f.colorPrimary} !important`}}}})}(l);return N.createElement(Le.Provider,{value:{theme:o,toggleTheme:function(){const e="dark"===o?"light":"dark";r(e),localStorage.setItem("decafAppTheme",e)}}},N.createElement(v,{theme:l},N.createElement(e,{styles:t(Ne||(Ne=Te`
1
+ import{Global as e,css as t}from"@emotion/react";export{Global as GlobalStyle,css}from"@emotion/react";export{default as styled}from"@emotion/styled";import n from"query-string";export{default as qs}from"query-string";import{LockFilled as r,RightOutlined as o,DownOutlined as l,HomeOutlined as a,QuestionCircleOutlined as c,EllipsisOutlined as i,MenuOutlined as s,UpOutlined as d,CameraOutlined as u,BulbFilled as m,BulbOutlined as p,UserOutlined as g,LogoutOutlined as f,InfoCircleOutlined as h,CaretUpOutlined as b,MessageOutlined as E}from"@ant-design/icons";import{Result as y,Typography as w,Button as v,theme as k,ConfigProvider as x,Grid as C,Dropdown as B,Layout as S,Menu as z,Drawer as I,Avatar as $,Row as A,Col as L,Card as P,Statistic as T}from"antd";import N,{useState as D,useLayoutEffect as j,useEffect as F}from"react";import{Link as W,useMatches as R,useLocation as q,NavLink as V,useNavigate as H,useNavigation as O,Outlet as M,createBrowserRouter as _,RouterProvider as U}from"react-router-dom";import Y from"decimal.js";import G from"js-cookie";import K from"md5";import{useDecaf as X,DecafApp as Z,DecafWebappController as J}from"@decafhub/decaf-react";import"antd/dist/reset.css";import{QueryParamProvider as Q}from"use-query-params";import{ReactRouter6Adapter as ee}from"use-query-params/adapters/react-router-6";import{useNProgress as te}from"@tanem/react-nprogress";import ne from"html2canvas";function re({message:e}){return N.createElement(N.Fragment,null,N.createElement(w,null,e),N.createElement(W,{to:"/"},N.createElement(v,{style:{marginTop:20}},"Home Page")))}function oe(){return N.createElement(y,{icon:N.createElement(r,{style:{color:"#ff603b"}}),title:"Authentication Error",subTitle:N.createElement(re,{message:"Your credentials are invalid. Please try to log in again."})})}function le(){return N.createElement(y,{status:"403",title:"Access Denied",subTitle:N.createElement(re,{message:"You are not authorized to access this content."})})}function ae(){return N.createElement(y,{status:"404",title:"Page Not Found",subTitle:N.createElement(re,{message:"Sorry, the page you visited does not exist."})})}function ce(){return N.createElement(y,{status:"500",title:"Error",subTitle:N.createElement(re,{message:"Something went wrong. Please try again later. If the problem persists, please contact the administrator."})})}function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(this,arguments)}const se=32,de=16;function ue(e){const[t,n]=D(0);return j(()=>{const t=document.getElementById(e),r=()=>{if(!t)return;const e=t.getBoundingClientRect().top,r=window.innerHeight-e-se-de;n(r)};return r(),null==t||t.addEventListener("resize",r),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r),null==t||t.removeEventListener("resize",r)}},[e]),t}function me(e,t){const[n,r]=D(400),o=ue(e),l=document.getElementById(e);return j(()=>{if(l){const e=null==l?void 0:l.closest(".ant-table-wrapper"),n=new ResizeObserver(()=>{var n,l,a,c,i;const s=null!=(n=null==e||null==(l=e.querySelector(".ant-table-header"))?void 0:l.getBoundingClientRect().height)?n:0,d=null!=(a=null==e||null==(c=e.querySelector(".ant-table-footer"))?void 0:c.getBoundingClientRect().height)?a:0,u=null!=(i=null==e?void 0:e.querySelectorAll(".ant-pagination"))?i:[],m=32*u.length,p=Array.from(u).reduce((e,t)=>e+t.getBoundingClientRect().height,0);r(o>350?o-s-d-p-m-(t||0):"100%")});return n.observe(e,{box:"content-box"}),()=>{n.disconnect()}}},[t,o,l]),n}function pe(e,t){let n=!1;"#"===e[0]&&(e=e.slice(1),n=!0);const r=parseInt(e,16);let o=(r>>16)+t;o>255?o=255:o<0&&(o=0);let l=(r>>8&255)+t;l>255?l=255:l<0&&(l=0);let a=(255&r)+t;return a>255?a=255:a<0&&(a=0),(n?"#":"")+String("000000"+(a|l<<8|o<<16).toString(16)).slice(-6)}function ge(e,t){e.barista.get("/auth/"+(t?"logoutall":"logout"),{timeout:3e3}).catch(e=>{t&&(console.error(e),alert("Failed to logout from all devices. Please try to logout from each device individually."))}).finally(()=>{G.remove("ember_simple_auth-session"),window.location.reload()})}function fe(e){return t=>t?e.True:e.False}function he(e){return t=>null==t?e.Null:fe(e)(t)}var be;function Ee(e){switch(new Y(0).comparedTo(e)){case 1:return be.Short;case 0:return be.Square;case-1:return be.Long}return be.Square}function ye(e){return t=>{switch(Ee(t)){case be.Short:return e.Short;case be.Square:return e.Square;case be.Long:return e.Long}}}function we(e,t,n){const r=[...e];return t.forEach(e=>{const t=r.findIndex(t=>t[n]===e[n]);t>=0?r[t]=e:r.push(e)}),r}function ve(e){return new URL(e.url).searchParams}function ke(e,t){return new URL(e.url).searchParams.get(t)}function xe(e,t,n){var r;return null!=(r=new URL(e.url).searchParams.get(t))?r:n}function Ce(e,t){return new URL(e.url).searchParams.getAll(t)}!function(e){e[e.Short=-1]="Short",e[e.Square=0]="Square",e[e.Long=1]="Long"}(be||(be={}));const Be="#10161d",Se="rgb(31, 41, 55)",ze="#f3f4f6",Ie="#2c3d50",$e={colorBorder:"transparent",colorBorderSecondary:"transparent",colorBorderBg:"transparent"},Ae={hashed:!0,algorithm:[k.defaultAlgorithm],components:{Layout:{colorBgHeader:"#ededed"}},token:{borderRadius:0,colorBgContainer:"white",colorBgBase:ze,colorBgLayout:ze,colorBgElevated:"#fafbfc"}},Le={hashed:!0,components:{Layout:{colorBgHeader:Be},Button:{boxShadow:"none",boxShadowSecondary:"none",colorBgContainer:Ie},Input:ie({},$e,{colorBgContainer:Ie}),Select:ie({},$e,{colorBgContainer:Ie}),Checkbox:ie({},$e,{colorBgContainer:Ie}),Dropdown:ie({},$e),DatePicker:ie({},$e,{colorBgContainer:Ie,colorBgElevated:Ie}),InputNumber:ie({},$e,{colorBgContainer:Ie}),Menu:{itemColor:"rgba(255, 255, 255, 0.5)"}},token:{fontFamily:"Inter, sans-serif",colorPrimary:"#344961",colorBgBase:Se,colorBgContainer:Be,colorBgElevated:"rgb(20, 29, 41)",colorBorderSecondary:Se,colorBorder:Se,colorBgLayout:Se,borderRadius:0,green:"#48734d",red:"#b03a38",blue:"#0d6efd",yellow:"#ffc107",orange:"#fd7e14",colorWhite:"#fff",colorLink:"#a4bfff",colorLinkHover:"#7199fb",colorLinkActive:"#7199fb"},algorithm:[k.darkAlgorithm]};function Pe(e){var t,n,r,o;const l={color:"white !important",":after":{borderBottomColor:"white"}};return{body:{background:null==(t=e.token)?void 0:t.colorBgBase,fontFamily:"Inter, sans-serif",margin:0},"#root":{minHeight:"100%"},button:{boxShadow:"none !important"},".ant-table-body":{overflow:"auto !important"},"#decaf-header":{position:"fixed",zIndex:999,right:0,left:0,paddingInline:16,display:"flex",alignItems:"center"},"#decaf-content":{paddingTop:64,paddingBottom:32,"#decaf-layout-breadcrumb":ie({backgroundColor:null==(n=e.token)?void 0:n.colorBgElevated,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",height:50,paddingInline:16,boxShadow:"0px 1px 2px rgba(0, 0, 0, 0.10)"},Te()),"#decaf-layout-content-outlet":{minHeight:"100%",padding:16,"&.full-screen":{padding:"0 !important"}}},"#decaf-footer":{position:"fixed",bottom:0,right:0,left:0,paddingBlock:0,paddingInline:0,zIndex:999,boxShadow:"0px -2px 4px rgba(0, 0, 0, 0.15)",backgroundColor:null==(r=Le.components)||null==(o=r.Layout)?void 0:o.colorBgHeader},".dot":{borderRadius:"50%",width:10,height:10,display:"inline-block",backgroundColor:"rgba(255,255,255,.25)","&.green":{backgroundColor:"#80ff00 !important"},"&.yellow":{backgroundColor:"#ff0 !important"},"&.orange":{backgroundColor:"#ff7000 !important"},"&.red":{backgroundColor:"#ff0000 !important"}},".ant-menu-item-selected":l,".ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected":l,".ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, .ant-menu-light .ant-menu-submenu-selected >.ant-menu-submenu-title":l}}function Te(){const e=e=>{const t="dark"===e?"255, 255, 255":"0, 0, 0";return{color:`rgba(${t}, 0.5) !important`,"&:hover":{color:`rgba(${t}, 0.75) !important`}}},t=ie({},e("dark"),{"&:last-child":{color:"rgba(255, 255, 255, 0.85) !important"}}),n=ie({},e("light"),{"&:last-child":{color:"rgba(0, 0, 0, 0.85) !important"}});return{".decaf-breadcrumb":{display:"flex",alignItems:"center",listStyle:"none",margin:0,padding:0,">li":ie({"&.separator":{paddingInline:3,marginInline:3},"a, span":ie({},e("light")),display:"flex",alignItems:"center",transition:"color 0.2s"},n),"&.dark":{">li":ie({"a, span":ie({},e("dark"))},t)}}}}const Ne=N.createContext({theme:"dark",toggleTheme:()=>{}}),De=()=>N.useContext(Ne);let je,Fe=e=>e;function We(n){const[r,o]=N.useState(()=>{const e=n.theme||localStorage.getItem("decafAppTheme");return"dark"===e||"light"===e?e:"dark"});let l="light"===r?Ae:Le;l=ie({},l,n.themeConfig||{}),l=ie({},l,{token:ie({},l.token,{fontFamily:"Inter, sans-serif"})});const a="light"===r?function(e){return ie({},Pe(e))}(l):function(e){var t,n,r,o,l,a,c,i,s,d,u,m,p,g,f;return ie({},Pe(e),{"*":{"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{background:null==(t=e.token)?void 0:t.colorBgContainer},"&::-webkit-scrollbar-thumb":{background:null==(n=e.token)?void 0:n.colorPrimary}},".ant-page-header-back-button, .ant-page-header-heading-title":{color:`${null==(r=e.token)?void 0:r.colorWhite} !important`},".ant-badge-count":{color:`${null==(o=e.token)?void 0:o.colorWhite} !important`},".ant-table-thead > tr > th":{background:`${pe((null==(l=e.token)?void 0:l.colorBgContainer)||"",-5)} !important`,"&:hover":{background:`${null==(a=e.token)?void 0:a.colorBgContainer} !important`}},".ant-table-filter-dropdown":{"input, .ant-table-filter-dropdown-search-input":{background:`${null==(c=e.token)?void 0:c.colorBgBase} !important`},".ant-dropdown-menu-item, .ant-dropdown-menu":{background:`${null==(i=e.token)?void 0:i.colorBgContainer} !important`}},".ant-tabs-tab-active":{".ant-tabs-tab-btn":{color:`${null==(s=e.token)?void 0:s.colorWhite} !important`}},".ant-radio-button-wrapper-checked":{backgroundColor:`${null==(d=e.components)||null==(u=d.Button)?void 0:u.colorBgContainer} !important`,color:`${null==(m=e.token)?void 0:m.colorWhite} !important`},".ant-picker-date-panel":{".ant-picker-cell-in-range, .ant-picker-cell-range-start, .ant-picker-cell-range-end":{"&::before":{background:`${null==(p=e.token)?void 0:p.colorBgBase} !important`},".ant-picker-cell-inner":{background:`${null==(g=e.token)?void 0:g.colorBgBase} !important`}},".ant-picker-cell-range-start, .ant-picker-cell-range-end":{".ant-picker-cell-inner":{background:`${null==(f=e.token)?void 0:f.colorPrimary} !important`}}}})}(l);return N.createElement(Ne.Provider,{value:{theme:r,toggleTheme:function(){const e="dark"===r?"light":"dark";o(e),localStorage.setItem("decafAppTheme",e)}}},N.createElement(x,{theme:l},N.createElement(e,{styles:t(je||(je=Fe`
2
2
  @import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap);
3
- `))}),N.createElement(e,{styles:a}),n.children))}function We(e){const{items:t,itemRender:n,separator:l}=e,{theme:a}=Pe(),c=x.useBreakpoint(),i=t.slice(0,1).concat(t.slice(-1));return N.createElement("ul",{className:`decaf-breadcrumb ${a}`},function(e,t,n){const o=[];return e.forEach((l,a)=>{if(l.href&&a!==e.length-1)o.push(N.createElement("li",{key:a},n?n(l):N.createElement(j,{className:"decaf-breadcrumb-link",to:l.href},l.title)));else if(l.children){const e=l.children.map((e,t)=>({key:t,label:N.createElement(j,{className:"decaf-breadcrumb-link",to:e.href},e.title)}));o.push(N.createElement("li",{key:a},N.createElement(C,{menu:{items:e}},N.createElement("div",{style:{display:"flex",cursor:"pointer",gap:3}},N.createElement("span",null,l.title),N.createElement(r,{style:{fontSize:12}})))))}else o.push(N.createElement("li",{key:a},l.title));a<e.length-1&&o.push(N.createElement("li",{key:`sep-${a}`,className:"separator"},t))}),o}(c.lg?t:i,l||N.createElement(o,null),n))}function je(){const{token:e}=k.useToken(),t=x.useBreakpoint();return N.createElement(w,{type:"link",href:"https://docs.decafhub.com",target:"_blank",rel:"noreferrer",icon:N.createElement(l,null),style:{backgroundColor:e.colorBgElevated}},!t.xs&&"Documentation")}function Fe(){return N.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 649.6 767.9",enableBackground:"new 0 0 649.6 767.9",xmlSpace:"preserve",width:32,height:32},N.createElement("g",null,N.createElement("path",{fill:"#52CEF4",d:"M324,767.9c-6.6-5.1-14.2-8.6-21.3-12.9c-22-13-44.3-25.6-66.4-38.5c-21.3-12.4-42.5-25-63.8-37.4\n c-33.5-19.5-67.1-39-100.7-58.5c-22.7-13.2-45.3-26.5-68-39.6c-2.8-1.6-3.8-3.3-3.8-6.5c0.2-58.6-0.2-117.3,0.4-175.9\n C1,333,0.7,267.3,1,201.6c0-1.8-0.6-3.7,0.6-5.4c6.4,3.8,12.7,7.6,19.1,11.3c23.8,13.9,47.7,27.9,71.5,41.8\n c4.9,2.9,9.6,6.2,14.9,8.4c-1.2,5.2-0.2,10.3-0.1,15.5c0.5,56.1-0.2,112.2,0.9,168.3c0.3,18.4,0.2,36.8,0.2,55.2\n c0,3,0.7,4.9,3.5,6.4c6.3,3.4,12.3,7.3,18.5,11c26.1,15.7,52.3,31.5,78.4,47.2c33,19.8,66,39.6,99,59.3c5.7,3.4,10.9,7.5,17.2,9.7\n c0,1.5,0.1,2.9,0.1,4.4c0,42.4,0,84.8,0,127.3c0,1.8-0.7,3.7,0.8,5.3c0,0.2,0,0.4,0,0.7C325.1,767.9,324.5,767.9,324,767.9z"}),N.createElement("path",{fill:"#227EC3",d:"M107.1,257.6c-5.3-2.2-10-5.5-14.9-8.4c-23.8-13.9-47.7-27.8-71.5-41.8c-6.4-3.7-12.7-7.6-19.1-11.3\n c8.2-6,17.1-10.7,25.7-16c28.7-17.5,57.5-34.9,86.3-52.4c39.2-23.8,78.5-47.6,117.7-71.4c27-16.3,53.9-32.7,80.9-49\n c4-2.4,8.1-4.6,11.7-7.4c1.3,0,2.7,0,4,0c0.3,1.6,1.9,1.8,2.9,2.4c31,18.9,62,37.8,93.1,56.4c4.2,2.5,5.9,5.2,5.9,10.3\n c-0.3,38.3-0.1,76.7-0.1,115c0,2.7-0.1,5.3-0.2,8c-10.5-6.3-21-12.5-31.4-18.9c-23.1-14-46.2-28-69.3-42c-1.6-1-2.8-1.6-5-0.4\n c-26.8,15.8-53.7,31.5-80.6,47.2c-26.1,15.2-52.2,30.4-78.3,45.7C145.7,235,126.4,246.3,107.1,257.6z"}),N.createElement("path",{fill:"#409DD5",d:"M324.7,630.2c5.2-4.2,11-7.4,16.7-10.9c32.6-20.3,65.3-40.6,98-60.8c30.8-19,61.6-38,92.4-57\n c7.5-4.6,7.5-4.6,7.5-13.6c0-58.6,0.1-117.3,0.1-175.9c0-1.6-0.1-3.2-0.1-4.8c0.8-1.5,0.4-3.1,0.4-4.7c0.1-14.7,0.2-29.5,0.3-44.2\n c1.3,0.1,2.4-0.4,3.4-1c8.7-5.1,17.4-10.2,26.1-15.3c15.8-9.2,31.7-18.3,47.6-27.5c10.5-6.1,21.1-12.3,31.6-18.4\n c1.5,0.9,0.8,2.4,0.8,3.6c0,124.2,0,248.4,0.1,372.6c0,2.7-0.9,4-3.1,5.3c-35.3,20.8-70.5,41.7-105.8,62.6\n c-27.2,16.1-54.5,32.2-81.7,48.4c-27,16-54,32.1-81,48c-17.4,10.3-34.8,20.4-52.3,30.7c-1.5-1.6-0.8-3.5-0.8-5.3\n c0-42.4,0-84.8,0-127.3C324.8,633.2,324.7,631.7,324.7,630.2z"}),N.createElement("path",{fill:"#227EC3",d:"M648.7,196.1c-10.5,6.1-21,12.3-31.6,18.4c-15.8,9.2-31.7,18.3-47.6,27.5c-8.7,5.1-17.4,10.2-26.1,15.3\n c-1,0.6-2.1,1.1-3.4,1c0-12.4-0.1-24.8-0.1-37.2c0-30.2,0-60.5,0-91c2.8,0.3,4.5,2,6.5,3.1c28.4,17.3,56.8,34.7,85.2,52\n C637.3,188.8,643.4,191.8,648.7,196.1z"}),N.createElement("path",{fill:"#227EC3",d:"M216.2,322.3c-0.3-1.6-0.4-2.9,1.4-4c29.2-18,58.4-36.1,87.5-54.1c4.7-2.9,9.5-5.8,14.2-8.9\n c1.5-1,2.7-1.1,4.3-0.2c26.9,15.9,53.8,31.8,80.7,47.7c7.1,4.2,14.1,8.5,21.4,12.4c3.5,1.9,4.8,4.3,3.9,8c-1.7,1.1-3.3,2.2-5,3.2\n c-20.5,11.9-41.1,23.8-61.6,35.7c-13,7.6-26.1,15.2-39.1,22.8c-7-4-14-8.1-21-12.1c-21.7-12.7-43.2-25.5-65-38\n C230.7,330.5,223.8,325.8,216.2,322.3z"}),N.createElement("path",{fill:"#52CEF4",d:"M216.2,322.3c7.6,3.5,14.5,8.2,21.8,12.4c21.7,12.5,43.3,25.3,65,38c7,4.1,14,8.1,21,12.1\n c0,39.3,0.1,78.6,0.1,117.9c-1.5,0.9-2.5-0.4-3.6-1c-21.3-12.8-42.5-25.5-63.7-38.3c-13.3-8-26.5-16.1-39.8-24\n c-1.8-1.1-2.5-2.3-2.5-4.4c0.4-26.9,0.4-53.8,1.1-80.7C215.8,343.6,215.4,332.9,216.2,322.3z"}),N.createElement("path",{fill:"#409DD5",d:"M324,502.6c0-39.3-0.1-78.6-0.1-117.9c13-7.6,26.1-15.2,39.1-22.8c20.5-11.9,41.1-23.8,61.6-35.7\n c1.7-1,3.3-2.1,5-3.2c0.1,7.6,0.1,15.2,0.1,22.8c0,30.5,0,61,0,91.5c0,2.6-0.4,4.4-2.9,5.8c-31.6,18.2-63,36.5-94.5,54.8\n C329.6,499.6,327.2,501.8,324,502.6z"})))}function Re(e){const t=[];return e.forEach(e=>{const n={key:"to"in e?e.to:e.label,label:e.label,icon:e.icon};"to"in e&&e.to?n.label=N.createElement(V,{to:e.to,end:"/"===e.to},e.label):"href"in e&&e.href?n.label=N.createElement("a",{href:e.href},e.label):e.children&&(n.label=e.label,n.children=Re(e.children||[])),t.push(n)}),t}function Ve(){return N.createElement(y.Text,{type:"secondary"},"Powered by"," ",N.createElement("a",{href:"https://teloscube.com",target:"_blank",rel:"noreferrer"},"Teloscube"))}function He(e){const[t,n]=N.useState(!1),o=F(),r=R(),{md:l}=x.useBreakpoint(),i=Re(e.menu),s=o.map(e=>e.pathname).filter(e=>"/"===r.pathname||"/"!==e);W(()=>{l||n(!1)},[r.pathname,l]);const d=N.createElement(B,{items:[...i],selectedKeys:s,mode:l?"horizontal":"inline",overflowedIndicator:N.createElement(a,{style:{fontSize:20,color:"white"}}),style:{flex:"auto",justifyContent:"flex-end",backgroundColor:"transparent",border:"none",minWidth:0}});return l?d:N.createElement("div",{style:{display:"flex",flex:"auto",justifyContent:"flex-end"}},N.createElement(c,{style:{fontSize:20,marginRight:20},onClick:()=>n(!t)}),N.createElement(S,{open:t,footer:N.createElement(Ve,null),onClose:()=>n(!1),bodyStyle:{padding:10},width:document.body.clientWidth-50>350?350:.85*document.body.clientWidth},d))}function Oe(){return N.createElement("div",{style:{display:"flex"}},N.createElement(w,{type:"text",icon:N.createElement(i,null),title:"Scroll to top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"})}),N.createElement(w,{type:"text",icon:N.createElement(r,null),title:"Scroll to bottom",onClick:()=>window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}))}function qe(e){async function t(){const e=document.getElementById("decaf-footer");null==e||e.style.setProperty("display","none");const t=(await Q(document.body)).toDataURL("image/png");null==e||e.style.setProperty("display","block");const n=document.createElement("a");n.download="screenshot.png",n.href=t,n.click(),n.remove()}return e.triggerNode?N.cloneElement(e.triggerNode,{onClick:t}):N.createElement(w,{type:"text",icon:N.createElement(s,null),title:"Take a screenshot of the current page",onClick:t})}function Me(e){return N.createElement(w,{type:"text",icon:N.createElement("dark"===e.theme?d:m,null),title:"dark"===e.theme?"Switch to light theme":"Switch to dark theme",onClick:()=>e.onChange()})}function _e(){const[e,t]=T(void 0),n=U(),o=H();W(()=>{n.me.email&&function(e){const t=`https://www.gravatar.com/avatar/${J(e)}`;return fetch(`${t}?d=404`,{method:"HEAD"}).then(e=>200!==e.status?void 0:t).catch(()=>{})}(n.me.email).then(t)},[n.me.email]);const r=[{key:"me",label:n.me.fullname||n.me.username,title:n.me.email,disabled:!0,icon:N.createElement(u,null),style:{cursor:"default"}},{key:"divider-1",dashed:!0,type:"divider"},{key:"logout",label:"Logout",icon:N.createElement(p,null),onClick:()=>me(n.client,!1)},{key:"logout-all",label:"Logout All Sessions",icon:N.createElement(p,null),onClick:()=>window.confirm("Logout from all sessions?")&&me(n.client,!0)},{key:"divider-2",dashed:!0,type:"divider"},{key:"about",label:"About",icon:N.createElement(g,null),onClick:()=>o("/about")}],l=e?{src:e}:{icon:N.createElement(u,{style:{color:"rgba(255,255,255, 0.5)"}}),style:{backgroundColor:"transparent",border:"1px solid rgba(255,255,255, 0.5)"}};return N.createElement(C,{trigger:["click"],menu:{items:r}},N.createElement(z,le({},l,{style:le({},l.style,{cursor:"pointer"})})))}function Ue(e){const t=e.split("/"),n=t.indexOf("webapps");return-1===n?"":t.slice(n+3).join("/")}function Ye(){const e=function(e){const t=window.location.href.split("/"),n=t.indexOf("webapps");return-1===n?"":t[n+1]}(),t=function(e){return e.startsWith("preview-")&&e.length>8}(n=function(e){const t=window.location.href.split("/"),n=t.indexOf("webapps");return-1===n?"":t[n+2]}())?"preview":function(e){return e.startsWith("v")&&e.length>1}(n)?"release":n;var n;const{md:o}=x.useBreakpoint(),r=[{code:"development",name:"Development Version",color:"red",url:`/webapps/${e}/development/${Ue(window.location.href)}`,show:"development"===process.env.NODE_ENV},{code:"testing",name:"Testing Version",color:"orange",url:`/webapps/${e}/testing/${Ue(window.location.href)}`,show:!0},{code:"staging",name:"Staging Version",color:"yellow",url:`/webapps/${e}/staging/${Ue(window.location.href)}`,show:!0},{code:"production",name:"Production Version",color:"green",url:`/webapps/${e}/production/${Ue(window.location.href)}`,show:!0},{code:"preview",name:"Preview Version",color:"grey",url:"/",show:!1},{code:"release",name:"Release Version",color:"grey",url:"/",show:!1}],l=r.find(e=>e.code===t),a="production"===(null==l?void 0:l.code);return l?N.createElement(C,{placement:"top",arrow:!0,menu:{items:r.filter(e=>e.show).map(e=>({key:e.name,label:N.createElement("span",null,N.createElement("i",{className:`dot ${e.color}`})," ",e.name),onClick:()=>{window.location.href=e.url}}))}},N.createElement(w,{type:"text",style:{width:a?32:"initial",padding:a?0:"revert",display:"flex",alignItems:"center",justifyContent:"center"},icon:N.createElement("i",{className:`dot ${null==l?void 0:l.color}`})},N.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},!a&&o&&N.createElement(N.Fragment,null,N.createElement("span",{style:{marginInline:5}},"You are on ",N.createElement("b",null,l.name)),N.createElement(f,null))))):null}const Ge="https://static.zdassets.com/ekr/snippet.js";function Ke(){const{me:e,publicConfig:t}=U(),[n,o]=T(!1),{token:r}=k.useToken(),l=x.useBreakpoint();return W(()=>{if(!t.zendesk||"undefined"==typeof document)return;const n=document.createElement("script");return n.src=Ge+"?key="+t.zendesk,n.async=!0,n.id="ze-snippet",n.onload=()=>{window.zE("webWidget","hide"),window.zE("webWidget:on","open",()=>{window.zE("webWidget","show"),o(!0)}),window.zE("webWidget:on","close",()=>{window.zE("webWidget","hide"),o(!1)})},document.body.appendChild(n),window.zESettings={webWidget:{offset:{horizontal:-7,vertical:20}},contactForm:{subject:!0,fields:[{id:"name",prefill:{"*":e.fullname}},{id:"email",prefill:{"*":e.email}}]}},()=>{document.body.removeChild(n)}},[t,e]),t.zendesk?N.createElement(w,{type:"link",icon:N.createElement(h,null),style:{backgroundColor:r.colorBgElevated},onClick:function(){n?null==window.zE||window.zE("webWidget","close"):null==window.zE||window.zE("webWidget","open"),o(!n)}},!l.xs&&"Support"):null}function Xe(e){const t=R(),n=O(),o=F(),r=x.useBreakpoint(),{theme:l,toggleTheme:a}=Pe(),c=null==o?void 0:o[(null==o?void 0:o.length)-1],i=!(null==c||!c.handle.fullScreen),s=null==c?void 0:c.handle.extras;return N.createElement(I,{style:{height:"100%"}},N.createElement(Je,{isAnimating:"loading"===n.state,key:t.key}),N.createElement(v,{theme:Ie},N.createElement(I.Header,{id:"decaf-header"},N.createElement(Ze,{title:e.appName}),N.createElement(He,{title:e.appName,menu:e.menu}),N.createElement(_e,null))),N.createElement(I.Content,{id:"decaf-content",style:{flex:1,minHeight:"100%"}},N.createElement(Qe,null,s),N.createElement("div",{id:"decaf-layout-content-outlet",className:i?"full-screen":""},N.createElement(q,null))),N.createElement(v,{theme:Ie},N.createElement(I.Footer,{id:"decaf-footer"},N.createElement($,{justify:"space-between",align:"middle"},N.createElement(A,{span:r.lg?10:12},N.createElement(Ke,null),N.createElement("span",{style:{display:"inline-block",width:1}}),N.createElement(je,null)),N.createElement(A,{span:r.lg?4:0,style:{textAlign:"center"}},N.createElement(Ve,null)),N.createElement(A,{span:r.lg?10:12,style:{justifyContent:"flex-end",display:"flex",gap:10}},N.createElement(Ye,null),N.createElement(Me,{theme:l,onChange:a}),N.createElement(qe,null),N.createElement(Oe,null))))))}function Ze({title:e}){const t=x.useBreakpoint();return N.createElement(j,{to:"/",style:{display:"flex",alignItems:"center",gap:10}},N.createElement(Fe,null),t.lg&&N.createElement(y.Title,{level:1,style:{margin:0,fontWeight:"normal",fontSize:20,color:"rgba(255, 255, 255, 0.75)",whiteSpace:"nowrap"}},e))}function Je({isAnimating:e}){const{animationDuration:t,isFinished:n,progress:o}=K({isAnimating:e});return N.createElement("div",{style:{opacity:n?0:1,pointerEvents:"none",transition:`opacity ${t}ms linear`}},N.createElement("div",{style:{background:"#29d",height:2,left:0,marginLeft:100*(-1+o)+"%",position:"fixed",top:0,transition:`margin-left ${t}ms linear`,width:"100%",zIndex:1031}},N.createElement("div",{style:{boxShadow:"0 0 10px #29d, 0 0 5px #29d",display:"block",height:"100%",opacity:1,position:"absolute",right:0,transform:"rotate(3deg) translate(0px, -4px)",width:100}})))}function Qe(e){const t=F().filter(e=>{var t;return Boolean(null==(t=e.handle)?void 0:t.crumb)}).map(e=>e.handle.crumb(e.data)),n=[{href:"/",title:N.createElement(b,null)},...t].map((e,t)=>le({},e,{_key:t}));return n.length<2?N.createElement(N.Fragment,null):N.createElement("div",{id:"decaf-layout-breadcrumb"},N.createElement(We,{items:n}),N.createElement("div",null,e.children))}function et(e){const{client:t}=U(),[n,o]=T(void 0),[r,l]=T(void 0),[a,c]=T(void 0);return W(()=>{t.bare.get("/_cultproxy").then(({data:e})=>o(e.version)),t.barista.get("/version/").then(({data:e})=>l(e.version)),t.bare.get("/apis/estate/version").then(({data:e})=>c(e))},[t]),N.createElement($,{gutter:[16,16]},N.createElement(A,{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:8},xxl:{span:6}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"Application Name",value:e.appName}))),N.createElement(A,{xs:{span:24},lg:{span:12},xl:{span:16},xxl:{span:18}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"Application Description",value:e.appDescription}))),N.createElement(A,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"Application Version",value:e.appVersion,prefix:"v"}))),N.createElement(A,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"DECAF Cultproxy Version",value:n,prefix:"v"}))),N.createElement(A,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"DECAF Barista Version",value:r,prefix:"v"}))),N.createElement(A,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(L,{bordered:!1},N.createElement(P,{title:"DECAF Estate Version",value:a,prefix:"v"}))),N.createElement(A,{span:24},e.content))}const tt=["crumb","fullScreen","extras","children"];function nt(e){W(()=>{const e=function(){const e=document.createElement("script");return e.defer=!0,e.setAttribute("data-domain",location.hostname),e.src="https://webax.svc.sys.decafhub.com/js/plausible.js",e}();return document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]);const t=e.controller||G;return t.disableZendeskWidget=!0,N.createElement(De,{themeConfig:e.themeConfig,theme:e.theme},N.createElement(Y,{config:e.config,controller:t},N.createElement(ot,le({},e))))}function ot(e){var t,n;const o=U(),r=[{path:"/about",element:N.createElement(et,{appName:e.appName,appVersion:null==(t=e.config)?void 0:t.currentVersion,appDescription:e.appDescription,content:null==e.buildAboutPageContent?void 0:e.buildAboutPageContent(o)}),crumb:()=>({title:"About"})},{path:"*",element:N.createElement(oe,null),crumb:()=>({title:"Error: Page Not Found"})}],l=be(e.buildRouteItems(o),r,"path"),a=M(function(e,t,n){return[{element:N.createElement(Xe,{menu:e.buildMenuItems(t),appName:e.appName}),path:"/",children:n.map(rt),errorElement:N.createElement(re,null)}]}(e,o,l),{basename:null==(n=e.config)?void 0:n.basePath});return N.createElement(_,{router:a})}function rt(e){const{crumb:t,fullScreen:n,extras:o,children:r}=e;return le({},function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)t.indexOf(n=l[o])>=0||(r[n]=e[n]);return r}(e,tt),r?{handle:{crumb:t,fullScreen:n,extras:o},children:r.map(rt)}:{handle:{crumb:t,fullScreen:n,extras:o}})}export{nt as DecafWebapp,ge as Direction,te as Page401,ne as Page403,oe as Page404,re as PageError,ue as booleanMap,Ie as decafThemeDark,ze as decafThemeLight,he as directionMap,ye as getSearchParam,ke as getSearchParamAll,we as getSearchParamDefault,Ee as getSearchParams,pe as nullableBooleanMap,be as setAtKey,fe as toDirection,Pe as useDecafTheme,ie as useRemaningHeight,se as useTableMaxHeight};
3
+ `))}),N.createElement(e,{styles:a}),n.children))}function Re(e){const{items:t,itemRender:n,separator:r}=e,{theme:a}=De(),c=C.useBreakpoint(),i=t.slice(0,1).concat(t.slice(-1));return N.createElement("ul",{className:`decaf-breadcrumb ${a}`},function(e,t,n){const r=[];return e.forEach((o,a)=>{if(o.href&&a!==e.length-1)r.push(N.createElement("li",{key:a},n?n(o):N.createElement(W,{className:"decaf-breadcrumb-link",to:o.href},o.title)));else if(o.children){const e=o.children.map((e,t)=>({key:t,label:N.createElement(W,{className:"decaf-breadcrumb-link",to:e.href},e.title)}));r.push(N.createElement("li",{key:a},N.createElement(B,{menu:{items:e}},N.createElement("div",{style:{display:"flex",cursor:"pointer",gap:3}},N.createElement("span",null,o.title),N.createElement(l,{style:{fontSize:12}})))))}else r.push(N.createElement("li",{key:a},o.title));a<e.length-1&&r.push(N.createElement("li",{key:`sep-${a}`,className:"separator"},t))}),r}(c.lg?t:i,r||N.createElement(o,null),n))}function qe(e){const t=R(),n=null==t?void 0:t[(null==t?void 0:t.length)-1],r=void 0!==e.isFullScreen?e.isFullScreen:!(null==n||!n.handle.fullScreen),o=void 0!==e.extras?e.extras:null==n?void 0:n.handle.extras;return N.createElement(S.Content,{id:"decaf-content",style:{flex:1,minHeight:"100%"}},N.createElement(Ve,null),N.createElement(He,{breadcrumb:e.breadcrumb},o),N.createElement("div",{id:"decaf-layout-content-outlet",className:r?"full-screen":""},e.children))}function Ve(){var e;const t=R().filter(e=>{var t;return Boolean(null==(t=e.handle)?void 0:t.crumb)}).map(e=>e.handle.crumb(e.data)),n=function(){const e=document.title;return e.split(" | ").length>1?e.split(" | ")[e.split(" | ").length-1]:e}(),r=null==t||null==(e=t[t.length-1])?void 0:e.title;return document.title=r?`${r} | ${n}`:n,null}function He(e){const t=R();if(!1===e.breadcrumb)return N.createElement("div",{id:"decaf-layout-breadcrumb",style:{justifyContent:"flex-end"}},N.createElement("div",null,e.children));if(e.breadcrumb)return N.createElement("div",{id:"decaf-layout-breadcrumb"},e.breadcrumb,N.createElement("div",null,e.children));{const n=t.filter(e=>{var t;return Boolean(null==(t=e.handle)?void 0:t.crumb)}).map(e=>e.handle.crumb(e.data)),r=[{href:"/",title:N.createElement(a,null)},...n].map((e,t)=>ie({},e,{_key:t}));return r.length<2?N.createElement(N.Fragment,null):N.createElement("div",{id:"decaf-layout-breadcrumb"},N.createElement(Re,{items:r}),N.createElement("div",null,e.children))}}function Oe(){const{token:e}=k.useToken(),t=C.useBreakpoint();return N.createElement(v,{type:"link",href:"https://docs.decafhub.com",target:"_blank",rel:"noreferrer",icon:N.createElement(c,null),style:{backgroundColor:e.colorBgElevated}},!t.xs&&"Documentation")}function Me(){return N.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 649.6 767.9",enableBackground:"new 0 0 649.6 767.9",xmlSpace:"preserve",width:32,height:32},N.createElement("g",null,N.createElement("path",{fill:"#52CEF4",d:"M324,767.9c-6.6-5.1-14.2-8.6-21.3-12.9c-22-13-44.3-25.6-66.4-38.5c-21.3-12.4-42.5-25-63.8-37.4\n c-33.5-19.5-67.1-39-100.7-58.5c-22.7-13.2-45.3-26.5-68-39.6c-2.8-1.6-3.8-3.3-3.8-6.5c0.2-58.6-0.2-117.3,0.4-175.9\n C1,333,0.7,267.3,1,201.6c0-1.8-0.6-3.7,0.6-5.4c6.4,3.8,12.7,7.6,19.1,11.3c23.8,13.9,47.7,27.9,71.5,41.8\n c4.9,2.9,9.6,6.2,14.9,8.4c-1.2,5.2-0.2,10.3-0.1,15.5c0.5,56.1-0.2,112.2,0.9,168.3c0.3,18.4,0.2,36.8,0.2,55.2\n c0,3,0.7,4.9,3.5,6.4c6.3,3.4,12.3,7.3,18.5,11c26.1,15.7,52.3,31.5,78.4,47.2c33,19.8,66,39.6,99,59.3c5.7,3.4,10.9,7.5,17.2,9.7\n c0,1.5,0.1,2.9,0.1,4.4c0,42.4,0,84.8,0,127.3c0,1.8-0.7,3.7,0.8,5.3c0,0.2,0,0.4,0,0.7C325.1,767.9,324.5,767.9,324,767.9z"}),N.createElement("path",{fill:"#227EC3",d:"M107.1,257.6c-5.3-2.2-10-5.5-14.9-8.4c-23.8-13.9-47.7-27.8-71.5-41.8c-6.4-3.7-12.7-7.6-19.1-11.3\n c8.2-6,17.1-10.7,25.7-16c28.7-17.5,57.5-34.9,86.3-52.4c39.2-23.8,78.5-47.6,117.7-71.4c27-16.3,53.9-32.7,80.9-49\n c4-2.4,8.1-4.6,11.7-7.4c1.3,0,2.7,0,4,0c0.3,1.6,1.9,1.8,2.9,2.4c31,18.9,62,37.8,93.1,56.4c4.2,2.5,5.9,5.2,5.9,10.3\n c-0.3,38.3-0.1,76.7-0.1,115c0,2.7-0.1,5.3-0.2,8c-10.5-6.3-21-12.5-31.4-18.9c-23.1-14-46.2-28-69.3-42c-1.6-1-2.8-1.6-5-0.4\n c-26.8,15.8-53.7,31.5-80.6,47.2c-26.1,15.2-52.2,30.4-78.3,45.7C145.7,235,126.4,246.3,107.1,257.6z"}),N.createElement("path",{fill:"#409DD5",d:"M324.7,630.2c5.2-4.2,11-7.4,16.7-10.9c32.6-20.3,65.3-40.6,98-60.8c30.8-19,61.6-38,92.4-57\n c7.5-4.6,7.5-4.6,7.5-13.6c0-58.6,0.1-117.3,0.1-175.9c0-1.6-0.1-3.2-0.1-4.8c0.8-1.5,0.4-3.1,0.4-4.7c0.1-14.7,0.2-29.5,0.3-44.2\n c1.3,0.1,2.4-0.4,3.4-1c8.7-5.1,17.4-10.2,26.1-15.3c15.8-9.2,31.7-18.3,47.6-27.5c10.5-6.1,21.1-12.3,31.6-18.4\n c1.5,0.9,0.8,2.4,0.8,3.6c0,124.2,0,248.4,0.1,372.6c0,2.7-0.9,4-3.1,5.3c-35.3,20.8-70.5,41.7-105.8,62.6\n c-27.2,16.1-54.5,32.2-81.7,48.4c-27,16-54,32.1-81,48c-17.4,10.3-34.8,20.4-52.3,30.7c-1.5-1.6-0.8-3.5-0.8-5.3\n c0-42.4,0-84.8,0-127.3C324.8,633.2,324.7,631.7,324.7,630.2z"}),N.createElement("path",{fill:"#227EC3",d:"M648.7,196.1c-10.5,6.1-21,12.3-31.6,18.4c-15.8,9.2-31.7,18.3-47.6,27.5c-8.7,5.1-17.4,10.2-26.1,15.3\n c-1,0.6-2.1,1.1-3.4,1c0-12.4-0.1-24.8-0.1-37.2c0-30.2,0-60.5,0-91c2.8,0.3,4.5,2,6.5,3.1c28.4,17.3,56.8,34.7,85.2,52\n C637.3,188.8,643.4,191.8,648.7,196.1z"}),N.createElement("path",{fill:"#227EC3",d:"M216.2,322.3c-0.3-1.6-0.4-2.9,1.4-4c29.2-18,58.4-36.1,87.5-54.1c4.7-2.9,9.5-5.8,14.2-8.9\n c1.5-1,2.7-1.1,4.3-0.2c26.9,15.9,53.8,31.8,80.7,47.7c7.1,4.2,14.1,8.5,21.4,12.4c3.5,1.9,4.8,4.3,3.9,8c-1.7,1.1-3.3,2.2-5,3.2\n c-20.5,11.9-41.1,23.8-61.6,35.7c-13,7.6-26.1,15.2-39.1,22.8c-7-4-14-8.1-21-12.1c-21.7-12.7-43.2-25.5-65-38\n C230.7,330.5,223.8,325.8,216.2,322.3z"}),N.createElement("path",{fill:"#52CEF4",d:"M216.2,322.3c7.6,3.5,14.5,8.2,21.8,12.4c21.7,12.5,43.3,25.3,65,38c7,4.1,14,8.1,21,12.1\n c0,39.3,0.1,78.6,0.1,117.9c-1.5,0.9-2.5-0.4-3.6-1c-21.3-12.8-42.5-25.5-63.7-38.3c-13.3-8-26.5-16.1-39.8-24\n c-1.8-1.1-2.5-2.3-2.5-4.4c0.4-26.9,0.4-53.8,1.1-80.7C215.8,343.6,215.4,332.9,216.2,322.3z"}),N.createElement("path",{fill:"#409DD5",d:"M324,502.6c0-39.3-0.1-78.6-0.1-117.9c13-7.6,26.1-15.2,39.1-22.8c20.5-11.9,41.1-23.8,61.6-35.7\n c1.7-1,3.3-2.1,5-3.2c0.1,7.6,0.1,15.2,0.1,22.8c0,30.5,0,61,0,91.5c0,2.6-0.4,4.4-2.9,5.8c-31.6,18.2-63,36.5-94.5,54.8\n C329.6,499.6,327.2,501.8,324,502.6z"})))}function _e(e){const t=[];return e.forEach(e=>{const n={key:"to"in e?e.to:e.label,label:e.label,icon:e.icon};"to"in e&&e.to?n.label=N.createElement(V,{to:e.to,end:"/"===e.to},e.label):"href"in e&&e.href?n.label=N.createElement("a",{href:e.href},e.label):e.children&&(n.label=e.label,n.children=_e(e.children||[])),t.push(n)}),t}function Ue(){return N.createElement(w.Text,{type:"secondary"},"Powered by"," ",N.createElement("a",{href:"https://teloscube.com",target:"_blank",rel:"noreferrer"},"Teloscube"))}function Ye(e){const[t,n]=N.useState(!1),r=R(),o=q(),{md:l}=C.useBreakpoint(),a=_e(e.menu),c=r.map(e=>e.pathname).filter(e=>"/"===o.pathname||"/"!==e);F(()=>{l||n(!1)},[o.pathname,l]);const d=N.createElement(z,{items:[...a],selectedKeys:c,mode:l?"horizontal":"inline",overflowedIndicator:N.createElement(i,{style:{fontSize:20,color:"white"}}),style:{flex:"auto",justifyContent:"flex-end",backgroundColor:"transparent",border:"none",minWidth:0}});return l?d:N.createElement("div",{style:{display:"flex",flex:"auto",justifyContent:"flex-end"}},N.createElement(s,{style:{fontSize:20,marginRight:20},onClick:()=>n(!t)}),N.createElement(I,{open:t,footer:N.createElement(Ue,null),onClose:()=>n(!1),bodyStyle:{padding:10},width:document.body.clientWidth-50>350?350:.85*document.body.clientWidth},d))}function Ge(){return N.createElement("div",{style:{display:"flex"}},N.createElement(v,{type:"text",icon:N.createElement(d,null),title:"Scroll to top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"})}),N.createElement(v,{type:"text",icon:N.createElement(l,null),title:"Scroll to bottom",onClick:()=>window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}))}function Ke(e){async function t(){const e=document.getElementById("decaf-footer");null==e||e.style.setProperty("display","none");const t=(await ne(document.body)).toDataURL("image/png");null==e||e.style.setProperty("display","block");const n=document.createElement("a");n.download="screenshot.png",n.href=t,n.click(),n.remove()}return e.triggerNode?N.cloneElement(e.triggerNode,{onClick:t}):N.createElement(v,{type:"text",icon:N.createElement(u,null),title:"Take a screenshot of the current page",onClick:t})}function Xe(e){return N.createElement(v,{type:"text",icon:N.createElement("dark"===e.theme?m:p,null),title:"dark"===e.theme?"Switch to light theme":"Switch to dark theme",onClick:()=>e.onChange()})}function Ze(){const[e,t]=D(void 0),n=X(),r=H();F(()=>{n.me.email&&function(e){const t=`https://www.gravatar.com/avatar/${K(e)}`;return fetch(`${t}?d=404`,{method:"HEAD"}).then(e=>200!==e.status?void 0:t).catch(()=>{})}(n.me.email).then(t)},[n.me.email]);const o=[{key:"me",label:n.me.fullname||n.me.username,title:n.me.email,disabled:!0,icon:N.createElement(g,null),style:{cursor:"default"}},{key:"divider-1",dashed:!0,type:"divider"},{key:"logout",label:"Logout",icon:N.createElement(f,null),onClick:()=>ge(n.client,!1)},{key:"logout-all",label:"Logout All Sessions",icon:N.createElement(f,null),onClick:()=>window.confirm("Logout from all sessions?")&&ge(n.client,!0)},{key:"divider-2",dashed:!0,type:"divider"},{key:"about",label:"About",icon:N.createElement(h,null),onClick:()=>r("/about")}],l=e?{src:e}:{icon:N.createElement(g,{style:{color:"rgba(255,255,255, 0.5)"}}),style:{backgroundColor:"transparent",border:"1px solid rgba(255,255,255, 0.5)"}};return N.createElement(B,{trigger:["click"],menu:{items:o}},N.createElement($,ie({},l,{style:ie({},l.style,{cursor:"pointer"})})))}function Je(e){const t=e.split("/"),n=t.indexOf("webapps");return-1===n?"":t.slice(n+3).join("/")}function Qe(){const e=function(e){const t=window.location.href.split("/"),n=t.indexOf("webapps");return-1===n?"":t[n+1]}(),t=function(e){return e.startsWith("preview-")&&e.length>8}(n=function(e){const t=window.location.href.split("/"),n=t.indexOf("webapps");return-1===n?"":t[n+2]}())?"preview":function(e){return e.startsWith("v")&&e.length>1}(n)?"release":n;var n;const{md:r}=C.useBreakpoint(),o=[{code:"development",name:"Development Version",color:"red",url:`/webapps/${e}/development/${Je(window.location.href)}`,show:"development"===process.env.NODE_ENV},{code:"testing",name:"Testing Version",color:"orange",url:`/webapps/${e}/testing/${Je(window.location.href)}`,show:!0},{code:"staging",name:"Staging Version",color:"yellow",url:`/webapps/${e}/staging/${Je(window.location.href)}`,show:!0},{code:"production",name:"Production Version",color:"green",url:`/webapps/${e}/production/${Je(window.location.href)}`,show:!0},{code:"preview",name:"Preview Version",color:"grey",url:"/",show:!1},{code:"release",name:"Release Version",color:"grey",url:"/",show:!1}],l=o.find(e=>e.code===t),a="production"===(null==l?void 0:l.code);return l?N.createElement(B,{placement:"top",arrow:!0,menu:{items:o.filter(e=>e.show).map(e=>({key:e.name,label:N.createElement("span",null,N.createElement("i",{className:`dot ${e.color}`})," ",e.name),onClick:()=>{window.location.href=e.url}}))}},N.createElement(v,{type:"text",style:{width:a?32:"initial",padding:a?0:"revert",display:"flex",alignItems:"center",justifyContent:"center"},icon:N.createElement("i",{className:`dot ${null==l?void 0:l.color}`})},N.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},!a&&r&&N.createElement(N.Fragment,null,N.createElement("span",{style:{marginInline:5}},"You are on ",N.createElement("b",null,l.name)),N.createElement(b,null))))):null}const et="https://static.zdassets.com/ekr/snippet.js";function tt(){const{me:e,publicConfig:t}=X(),[n,r]=D(!1),{token:o}=k.useToken(),l=C.useBreakpoint();return F(()=>{if(!t.zendesk||"undefined"==typeof document)return;const n=document.createElement("script");return n.src=et+"?key="+t.zendesk,n.async=!0,n.id="ze-snippet",n.onload=()=>{window.zE("webWidget","hide"),window.zE("webWidget:on","open",()=>{window.zE("webWidget","show"),r(!0)}),window.zE("webWidget:on","close",()=>{window.zE("webWidget","hide"),r(!1)})},document.body.appendChild(n),window.zESettings={webWidget:{offset:{horizontal:-7,vertical:20}},contactForm:{subject:!0,fields:[{id:"name",prefill:{"*":e.fullname}},{id:"email",prefill:{"*":e.email}}]}},()=>{document.body.removeChild(n)}},[t,e]),t.zendesk?N.createElement(v,{type:"link",icon:N.createElement(E,null),style:{backgroundColor:o.colorBgElevated},onClick:function(){n?null==window.zE||window.zE("webWidget","close"):null==window.zE||window.zE("webWidget","open"),r(!n)}},!l.xs&&"Support"):null}function nt(e){const t=q(),n=O(),r=C.useBreakpoint(),{theme:o,toggleTheme:l}=De();return N.createElement(S,{style:{height:"100%"}},N.createElement(ot,{isAnimating:"loading"===n.state,key:t.key}),N.createElement(x,{theme:Le},N.createElement(S.Header,{id:"decaf-header"},N.createElement(rt,{title:e.appName}),N.createElement(Ye,{title:e.appName,menu:e.menu}),N.createElement(Ze,null))),N.createElement(M,null),N.createElement(x,{theme:Le},N.createElement(S.Footer,{id:"decaf-footer"},N.createElement(A,{justify:"space-between",align:"middle"},N.createElement(L,{span:r.lg?10:12},N.createElement(tt,null),N.createElement("span",{style:{display:"inline-block",width:1}}),N.createElement(Oe,null)),N.createElement(L,{span:r.lg?4:0,style:{textAlign:"center"}},N.createElement(Ue,null)),N.createElement(L,{span:r.lg?10:12,style:{justifyContent:"flex-end",display:"flex",gap:10}},N.createElement(Qe,null),N.createElement(Xe,{theme:o,onChange:l}),N.createElement(Ke,null),N.createElement(Ge,null))))))}function rt({title:e}){const t=C.useBreakpoint();return N.createElement(W,{to:"/",style:{display:"flex",alignItems:"center",gap:10}},N.createElement(Me,null),t.lg&&N.createElement(w.Title,{level:1,style:{margin:0,fontWeight:"normal",fontSize:20,color:"rgba(255, 255, 255, 0.75)",whiteSpace:"nowrap"}},e))}function ot({isAnimating:e}){const{animationDuration:t,isFinished:n,progress:r}=te({isAnimating:e});return N.createElement("div",{style:{opacity:n?0:1,pointerEvents:"none",transition:`opacity ${t}ms linear`}},N.createElement("div",{style:{background:"#29d",height:2,left:0,marginLeft:100*(-1+r)+"%",position:"fixed",top:0,transition:`margin-left ${t}ms linear`,width:"100%",zIndex:1031}},N.createElement("div",{style:{boxShadow:"0 0 10px #29d, 0 0 5px #29d",display:"block",height:"100%",opacity:1,position:"absolute",right:0,transform:"rotate(3deg) translate(0px, -4px)",width:100}})))}function lt(e){const{client:t}=X(),[n,r]=D(void 0),[o,l]=D(void 0),[a,c]=D(void 0);return F(()=>{t.bare.get("/_cultproxy").then(({data:e})=>r(e.version)),t.barista.get("/version/").then(({data:e})=>l(e.version)),t.bare.get("/apis/estate/version").then(({data:e})=>c(e))},[t]),N.createElement(qe,null,N.createElement(A,{gutter:[16,16]},N.createElement(L,{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:8},xxl:{span:6}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"Application Name",value:e.appName}))),N.createElement(L,{xs:{span:24},lg:{span:12},xl:{span:16},xxl:{span:18}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"Application Description",value:e.appDescription}))),N.createElement(L,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"Application Version",value:e.appVersion,prefix:"v"}))),N.createElement(L,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"DECAF Cultproxy Version",value:n,prefix:"v"}))),N.createElement(L,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"DECAF Barista Version",value:o,prefix:"v"}))),N.createElement(L,{xs:{span:24},sm:{span:24},md:{span:12},lg:{span:12},xl:{span:6},xxl:{span:6}},N.createElement(P,{bordered:!1},N.createElement(T,{title:"DECAF Estate Version",value:a,prefix:"v"}))),N.createElement(L,{span:24},e.content)))}const at=["crumb","fullScreen","extras","children"];function ct(e){F(()=>{const e=function(){const e=document.createElement("script");return e.defer=!0,e.setAttribute("data-domain",location.hostname),e.src="https://webax.svc.sys.decafhub.com/js/plausible.js",e}();return document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]);const t=e.controller||J;return t.disableZendeskWidget=!0,N.createElement(We,{themeConfig:e.themeConfig,theme:e.theme},N.createElement(Z,{config:e.config,controller:t},N.createElement(it,ie({},e))))}function it(e){var t,r;const o=X(),l=[{path:"/about",element:N.createElement(lt,{appName:e.appName,appVersion:null==(t=e.config)?void 0:t.currentVersion,appDescription:e.appDescription,content:null==e.buildAboutPageContent?void 0:e.buildAboutPageContent(o)}),crumb:()=>({title:"About"})},{path:"*",element:N.createElement(ae,null),crumb:()=>({title:"Error: Page Not Found"})}],a=we(e.buildRouteItems(o),l,"path"),c=_(function(e,t,r){return[{element:N.createElement(Q,{adapter:ee,options:{removeDefaultsFromUrl:!0,searchStringToObject:n.parse,objectToSearchString:n.stringify,enableBatching:!0,includeAllParams:!0}},N.createElement(nt,{menu:e.buildMenuItems(t),appName:e.appName})),path:"/",children:r.map(st),errorElement:N.createElement(ce,null)}]}(e,o,a),{basename:null==(r=e.config)?void 0:r.basePath});return N.createElement(U,{router:c})}function st(e){const{crumb:t,fullScreen:n,extras:r,children:o}=e;return ie({},function(e,t){if(null==e)return{};var n,r,o={},l=Object.keys(e);for(r=0;r<l.length;r++)t.indexOf(n=l[r])>=0||(o[n]=e[n]);return o}(e,at),o?{handle:{crumb:t,fullScreen:n,extras:r},children:o.map(st)}:{handle:{crumb:t,fullScreen:n,extras:r}})}export{ct as DecafWebapp,be as Direction,qe as Page,oe as Page401,le as Page403,ae as Page404,ce as PageError,fe as booleanMap,Le as decafThemeDark,Ae as decafThemeLight,ye as directionMap,ke as getSearchParam,Ce as getSearchParamAll,xe as getSearchParamDefault,ve as getSearchParams,he as nullableBooleanMap,we as setAtKey,Ee as toDirection,De as useDecafTheme,ue as useRemaningHeight,me as useTableMaxHeight};
4
4
  //# sourceMappingURL=index.modern.mjs.map