create-fullstack-scaffold 0.4.3 → 0.4.4
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/dist/cli/index.js +513 -122
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/template/dist/cli/index.js +237 -94
- package/template/dist/cli/index.js.map +1 -1
- package/template/dist/client/admin.html +15 -10
- package/template/dist/client/assets/App-BpFUIC-5.js +114 -0
- package/template/dist/client/assets/{CartPage-DESSHkaG.js → CartPage-DgDZP-R5.js} +2 -2
- package/template/dist/client/assets/{CategoriesPage-DqLZ_Mom.js → CategoriesPage-fuYNiSmE.js} +2 -2
- package/template/dist/client/assets/ContentDetailPage-BvvFU1Mr.js +1 -0
- package/template/dist/client/assets/ContentListPage-ShPxo6WG.js +1 -0
- package/template/dist/client/assets/DashboardPage-C1rZzZo4.js +11 -0
- package/template/dist/client/assets/{DeveloperDashboardPage-Cum7zFwO.js → DeveloperDashboardPage-_WtmbVoA.js} +2 -2
- package/template/dist/client/assets/{EmptyState-BK7ttK8D.js → EmptyState-DEyOQjbY.js} +1 -1
- package/template/dist/client/assets/LoadingSpinner-BcHjaM1m.js +6 -0
- package/template/dist/client/assets/LoginPage-CjeQqDdO.js +1 -0
- package/template/dist/client/assets/LogoutOutlined-ColFAHdd.js +1 -0
- package/template/dist/client/assets/NotificationPage-DRkEv02s.js +1 -0
- package/template/dist/client/assets/OrdersPage-7I3vPWLP.js +11 -0
- package/template/dist/client/assets/{PluginDetailPage-Br24YS4P.js → PluginDetailPage-CWyxdVCg.js} +3 -13
- package/template/dist/client/assets/PluginsPage-DRgWLeJT.js +6 -0
- package/template/dist/client/assets/ProfilePage-2FFkaii8.js +16 -0
- package/template/dist/client/assets/PublishPage-DW7yvROx.js +1 -0
- package/template/dist/client/assets/{RegisterPage-rPFG4Sry.js → RegisterPage-Dvaf9b0e.js} +2 -2
- package/template/dist/client/assets/SaveOutlined-CLQ2tsSY.js +2 -0
- package/template/dist/client/assets/{SearchPage-DQl1U5Uy.js → SearchPage-DvnEyswS.js} +2 -2
- package/template/dist/client/assets/{SettingsPage-DaYE80wj.js → SettingsPage-IrU-L9Zr.js} +2 -2
- package/template/dist/client/assets/{StatusBadge-BJ3W2Zc7.js → StatusBadge-CG7wVqpu.js} +1 -1
- package/template/dist/client/assets/{TodoPage-zC5wWNBa.js → TodoPage-B7D-bl65.js} +3 -3
- package/template/dist/client/assets/TopicsPage-CYCNr-mn.js +6 -0
- package/template/dist/client/assets/{WebSocketPage-B4NLdz1w.js → WebSocketPage-CGEg6QJE.js} +2 -2
- package/template/dist/client/assets/{activity-B94BUAsD.js → activity-CgTz9Mrd.js} +1 -1
- package/template/dist/client/assets/admin-D2iHWNOg.js +1 -0
- package/template/dist/client/assets/api-request-DIJocPxr.js +356 -0
- package/template/dist/client/assets/{arrow-left-H5JH0iU1.js → arrow-left-DtLQ3tTk.js} +1 -1
- package/template/dist/client/assets/{chevron-down-DwRh_wjD.js → chevron-down-CpIAV_yr.js} +1 -1
- package/template/dist/client/assets/{chevron-right-CpIWaqAL.js → chevron-right-CnU7oPQs.js} +1 -1
- package/template/dist/client/assets/{circle-check-big-CSElLscG.js → circle-check-big-CrZdwS75.js} +1 -1
- package/template/dist/client/assets/{circle-x-CYxr4RAw.js → circle-x-CvN9r3fW.js} +1 -1
- package/template/dist/client/assets/{clock-BseUJ7ex.js → clock-CTeSZBiH.js} +1 -1
- package/template/dist/client/assets/{download-BsGC_Xhq.js → download-OSVfVuNV.js} +1 -1
- package/template/dist/client/assets/{external-link-UTDzdjq8.js → external-link-fBsuHMby.js} +1 -1
- package/template/dist/client/assets/{eye-nR10ui7i.js → eye-CwlZZEsj.js} +1 -1
- package/template/dist/client/assets/index-09IqiOaE.css +1 -0
- package/template/dist/client/assets/index-B3CRby6r.js +51 -0
- package/template/dist/client/assets/index-CC_zy73y.js +17 -0
- package/template/dist/client/assets/main-Cn4IDo2I.js +92 -0
- package/template/dist/client/assets/merchant-DDDN9bMu.js +40 -0
- package/template/dist/client/assets/{message-square-CwWGL-Bh.js → message-square-BRaZfgbJ.js} +1 -1
- package/template/dist/client/assets/pluginStore-DDsWJPe6.js +1 -0
- package/template/dist/client/assets/{plus-pZld_nUL.js → plus-DDZfPiDJ.js} +1 -1
- package/template/dist/client/assets/sse-client-DGQ072hl.js +64 -0
- package/template/dist/client/assets/star-C7tO6w4H.js +11 -0
- package/template/dist/client/assets/{tag-DsiUPF90.js → tag-DBfpQDuJ.js} +1 -1
- package/template/dist/client/assets/tenant-CizbLaLJ.js +1 -0
- package/template/dist/client/assets/{trash-2-DRblNbnA.js → trash-2-BP7fkd5b.js} +1 -1
- package/template/dist/client/assets/{triangle-alert-D1CLh-Vd.js → triangle-alert-CrOQEdJ2.js} +1 -1
- package/template/dist/client/assets/{wifi-BwXjnCqI.js → wifi-CwYSE0J4.js} +1 -1
- package/template/dist/client/assets/{x-BH2rJdFq.js → x-t615pnNR.js} +1 -1
- package/template/dist/client/content/index.html +5 -4
- package/template/dist/client/index.html +4 -3
- package/template/dist/client/merchant.html +18 -0
- package/template/dist/client/notifications/index.html +6 -5
- package/template/dist/client/tenant.html +18 -0
- package/template/dist/client/todos/index.html +6 -5
- package/template/dist/client/websocket/index.html +6 -5
- package/template/dist/cloudflare/chunk-HX7DVRDX.js +1 -0
- package/template/dist/cloudflare/{chunk-QBHAPWIA.js → chunk-IXJL2LE4.js} +1 -1
- package/template/dist/cloudflare/chunk-Q34AN3RF.js +14 -0
- package/template/dist/cloudflare/{chunk-BHPTQ4K2.js → chunk-ZAMVL4EG.js} +2 -2
- package/template/dist/cloudflare/cloudflare.js +35 -29
- package/template/dist/cloudflare/db-4AQOSFAX.js +1 -0
- package/template/dist/cloudflare/{migrator-2ZYYKNI5.js → migrator-TEPBVUFO.js} +1 -1
- package/template/dist/cloudflare/permission-service-impl-RE7NPW3Q.js +1 -0
- package/template/dist/cloudflare/schema-DVEMT3X2.js +1 -0
- package/template/dist/cloudflare/test-setup-Z2RYE5B4.js +265 -0
- package/template/dist/server/chunk-27SIJSPF.js +1 -0
- package/template/dist/server/chunk-37QNGBQU.js +1 -0
- package/template/dist/server/chunk-FIY4CGJJ.js +1 -0
- package/template/dist/server/chunk-HZUDBIT4.js +1 -0
- package/template/dist/server/chunk-I6OBDFDU.js +1 -0
- package/template/dist/server/chunk-JHNYLNG7.js +1 -0
- package/template/dist/server/chunk-MDOVVKKD.js +1 -0
- package/template/dist/server/chunk-NSOCT7E5.js +1 -0
- package/template/dist/server/chunk-OU5IGVVO.js +1 -0
- package/template/dist/server/chunk-OYCBNRMK.js +1 -0
- package/template/dist/server/chunk-P2RJNNGD.js +1 -0
- package/template/dist/server/chunk-UMAQLNPE.js +1 -0
- package/template/dist/server/chunk-XZZTSRSN.js +1 -0
- package/template/dist/server/content-service-5QVHDR5X.js +1 -0
- package/template/dist/server/db-FLI5L5DD.js +1 -0
- package/template/dist/server/dispute-service-E2FCYUEM.js +1 -0
- package/template/dist/server/init-72JXJV3I.js +46 -0
- package/template/dist/server/init-FWYXSKPX.js +46 -0
- package/template/dist/server/node.js +34 -28
- package/template/dist/server/order-service-TKGG5S5K.js +1 -0
- package/template/dist/server/permission-service-impl-M3AKEYNY.js +1 -0
- package/template/dist/server/schema-V4UG7HMU.js +1 -0
- package/template/dist/server/tenant-service-JG6UUWXQ.js +1 -0
- package/template/dist/server/tenant-service-XJWZSEDX.js +1 -0
- package/template/dist/{cloudflare/test-setup-NMZJZLRV.js → server/test-setup-VFOPBGYM.js} +83 -2
- package/template/dist/server/ticket-service-3RSW7V2Z.js +1 -0
- package/template/dist/server/todo-service-S6BGIO7D.js +1 -0
- package/template/src/merchant/pages/DisputesPage.tsx +11 -11
- package/template/src/merchant/pages/OrdersPage.tsx +4 -3
- package/template/src/merchant/pages/ProductsPage.tsx +2 -2
- package/template/src/merchant/stores/merchantStore.ts +11 -6
- package/template/src/server/db/init.ts +5 -642
- package/template/src/server/module-plugin/services/plugin-seed-service.ts +623 -0
- package/template/src/server/module-tenant/routes/tenant-routes.ts +2 -2
- package/template/src/server/module-tenant/services/tenant-service.ts +63 -17
- package/template/src/shared/modules/merchant/index.ts +9 -0
- package/template/src/shared/modules/merchant/schemas.ts +37 -0
- package/template/src/shared/modules/tenant/index.ts +2 -0
- package/template/src/shared/schemas/index.ts +27 -0
- package/template/src/tenant/layouts/Header.tsx +1 -1
- package/template/src/tenant/layouts/Sidebar.tsx +1 -1
- package/template/src/tenant/pages/SettingsPage.tsx +4 -8
- package/template/src/tenant/stores/tenantStore.ts +41 -302
- package/template/tsconfig.json +1 -0
- package/template/tsup.config.ts +11 -3
- package/template/dist/client/assets/ContentDetailPage-DdltMANL.js +0 -1
- package/template/dist/client/assets/ContentListPage-B63sUB6N.js +0 -1
- package/template/dist/client/assets/DashboardPage-tUMilc7Z.js +0 -11
- package/template/dist/client/assets/LoadingSpinner-DVYOLSRM.js +0 -6
- package/template/dist/client/assets/LoginPage-g9mSLIMC.js +0 -6
- package/template/dist/client/assets/NotificationPage-COTzp-HD.js +0 -1
- package/template/dist/client/assets/OrdersPage-BsPh4oEI.js +0 -11
- package/template/dist/client/assets/PluginsPage-BNtAe_yo.js +0 -6
- package/template/dist/client/assets/ProfilePage-dL_iSuZN.js +0 -16
- package/template/dist/client/assets/PublishPage-D96FnbLA.js +0 -1
- package/template/dist/client/assets/TopicsPage-DyLjZa4D.js +0 -6
- package/template/dist/client/assets/admin-Bh1vfz_L.js +0 -486
- package/template/dist/client/assets/index-1bA-ixFv.js +0 -114
- package/template/dist/client/assets/index-CWh3vXC_.css +0 -1
- package/template/dist/client/assets/main-DHnArIp_.js +0 -82
- package/template/dist/client/assets/pluginStore-XQfsm3iR.js +0 -1
- package/template/dist/client/content/content-1/index.html +0 -18
- package/template/dist/client/content/content-13/index.html +0 -18
- package/template/dist/client/content/content-14/index.html +0 -18
- package/template/dist/client/content/content-15/index.html +0 -18
- package/template/dist/client/content/content-19/index.html +0 -18
- package/template/dist/client/content/content-2/index.html +0 -18
- package/template/dist/client/content/content-20/index.html +0 -18
- package/template/dist/cloudflare/chunk-YY6FRMAQ.js +0 -14
- package/template/dist/cloudflare/db-7J42RQ3T.js +0 -1
- package/template/dist/cloudflare/permission-service-impl-TGXVSSSA.js +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{r,g as St}from"./index-B3CRby6r.js";import{g as Re,m as Ve,r as Ue,u as xt,bd as Pe,C as ie,f as Ct,i as Et,j as Ot,aw as Ge,c as U,a2 as qe,aO as wt,c4 as jt,c5 as $t,ad as Rt,c6 as Pt,c7 as Tt,e as Xe,X as we,aV as le,aS as It,b as Te,aI as je,bw as Ie,I as Ke,k as Je,c8 as Nt,c9 as Ye,ca as zt,W as _t,E as Mt,b8 as kt,a0 as Y,_ as Ze,az as Lt,a7 as Qe,cb as ke,y as Bt}from"./api-request-DIJocPxr.js";const $e=r.createContext({}),At=e=>{const{antCls:n,componentCls:o,iconCls:t,avatarBg:s,avatarColor:a,containerSize:i,containerSizeLG:p,containerSizeSM:d,textFontSize:u,textFontSizeLG:c,textFontSizeSM:m,iconFontSize:l,iconFontSizeLG:b,iconFontSizeSM:w,borderRadius:f,borderRadiusLG:O,borderRadiusSM:h,lineWidth:v,lineType:z}=e,j=($,R,C,M)=>({width:$,height:$,borderRadius:"50%",fontSize:R,[`&${o}-square`]:{borderRadius:M},[`&${o}-icon`]:{fontSize:C,[`> ${t}`]:{margin:0}}});return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({},Ue(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:s,border:`${xt(v)} ${z} transparent`,"&-image":{background:"transparent"},[`${n}-image-img`]:{display:"block"}}),j(i,u,l,f)),{"&-lg":Object.assign({},j(p,c,b,O)),"&-sm":Object.assign({},j(d,m,w,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Dt=e=>{const{componentCls:n,groupBorderColor:o,groupOverlapping:t,groupSpace:s}=e;return{[`${n}-group`]:{display:"inline-flex",[n]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:t}},[`${n}-group-popover`]:{[`${n} + ${n}`]:{marginInlineStart:s}}}},Wt=e=>{const{controlHeight:n,controlHeightLG:o,controlHeightSM:t,fontSize:s,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:p,marginXS:d,marginXXS:u,colorBorderBg:c}=e;return{containerSize:n,containerSizeLG:o,containerSizeSM:t,textFontSize:s,textFontSizeLG:s,textFontSizeSM:s,iconFontSize:Math.round((a+i)/2),iconFontSizeLG:p,iconFontSizeSM:s,groupSpace:u,groupOverlapping:-d,groupBorderColor:c}},et=Re("Avatar",e=>{const{colorTextLightSolid:n,colorTextPlaceholder:o}=e,t=Ve(e,{avatarBg:o,avatarColor:n});return[At(t),Dt(t)]},Wt);var Ht=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const tt=r.forwardRef((e,n)=>{const{prefixCls:o,shape:t,size:s,src:a,srcSet:i,icon:p,className:d,rootClassName:u,style:c,alt:m,draggable:l,children:b,crossOrigin:w,gap:f=4,onError:O}=e,h=Ht(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[v,z]=r.useState(1),[j,$]=r.useState(!1),[R,C]=r.useState(!0),M=r.useRef(null),A=r.useRef(null),D=Pe(n,M),{getPrefixCls:_,avatar:k}=r.useContext(ie),P=r.useContext($e),S=()=>{if(!A.current||!M.current)return;const T=A.current.offsetWidth,E=M.current.offsetWidth;T!==0&&E!==0&&f*2<E&&z(E-f*2<T?(E-f*2)/T:1)};r.useEffect(()=>{$(!0)},[]),r.useEffect(()=>{C(!0),z(1)},[a]),r.useEffect(S,[f]);const I=()=>{(O==null?void 0:O())!==!1&&C(!1)},y=Ct(T=>{var E,H;return(H=(E=s??(P==null?void 0:P.size))!==null&&E!==void 0?E:T)!==null&&H!==void 0?H:"default"}),W=Object.keys(typeof y=="object"?y||{}:{}).some(T=>["xs","sm","md","lg","xl","xxl"].includes(T)),N=Et(W),F=r.useMemo(()=>{if(typeof y!="object")return{};const T=Ot.find(H=>N[H]),E=y[T];return E?{width:E,height:E,fontSize:E&&(p||b)?E/2:18}:{}},[N,y,p,b]),B=_("avatar",o),L=Ge(B),[G,K,ue]=et(B,L),Q=U({[`${B}-lg`]:y==="large",[`${B}-sm`]:y==="small"}),ee=r.isValidElement(a),te=t||(P==null?void 0:P.shape)||"circle",pe=U(B,Q,k==null?void 0:k.className,`${B}-${te}`,{[`${B}-image`]:ee||a&&R,[`${B}-icon`]:!!p},ue,L,d,u,K),fe=typeof y=="number"?{width:y,height:y,fontSize:p?y/2:18}:{};let J;if(typeof a=="string"&&R)J=r.createElement("img",{src:a,draggable:l,srcSet:i,onError:I,alt:m,crossOrigin:w});else if(ee)J=a;else if(p)J=p;else if(j||v!==1){const T=`scale(${v})`,E={msTransform:T,WebkitTransform:T,transform:T};J=r.createElement(qe,{onResize:S},r.createElement("span",{className:`${B}-string`,ref:A,style:E},b))}else J=r.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:A},b);return G(r.createElement("span",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe),F),k==null?void 0:k.style),c),className:pe,ref:D}),J))}),ae=e=>e?typeof e=="function"?e():e:null,Ft=e=>{const{componentCls:n,popoverColor:o,titleMinWidth:t,fontWeightStrong:s,innerPadding:a,boxShadowSecondary:i,colorTextHeading:p,borderRadiusLG:d,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:m,popoverBg:l,titleBorderBottom:b,innerContentPadding:w,titlePadding:f}=e;return[{[n]:Object.assign(Object.assign({},Ue(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:l,backgroundClip:"padding-box",borderRadius:d,boxShadow:i,padding:a},[`${n}-title`]:{minWidth:t,marginBottom:c,color:p,fontWeight:s,borderBottom:b,padding:f},[`${n}-inner-content`]:{color:o,padding:w}})},jt(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},Vt=e=>{const{componentCls:n}=e;return{[n]:$t.map(o=>{const t=e[`${o}6`];return{[`&${n}-${o}`]:{"--antd-arrow-background-color":t,[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{background:"transparent"}}}})}},Ut=e=>{const{lineWidth:n,controlHeight:o,fontHeight:t,padding:s,wireframe:a,zIndexPopupBase:i,borderRadiusLG:p,marginXS:d,lineType:u,colorSplit:c,paddingSM:m}=e,l=o-t,b=l/2,w=l/2-n,f=s;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Rt(e)),Pt({contentRadius:p,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:d,titlePadding:a?`${b}px ${f}px ${w}px`:0,titleBorderBottom:a?`${n}px ${u} ${c}`:"none",innerContentPadding:a?`${m}px ${f}px`:0})},nt=Re("Popover",e=>{const{colorBgElevated:n,colorText:o}=e,t=Ve(e,{popoverBg:n,popoverColor:o});return[Ft(t),Vt(t),wt(t,"zoom-big")]},Ut,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Gt=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const ot=({title:e,content:n,prefixCls:o})=>!e&&!n?null:r.createElement(r.Fragment,null,e&&r.createElement("div",{className:`${o}-title`},e),n&&r.createElement("div",{className:`${o}-inner-content`},n)),qt=e=>{const{hashId:n,prefixCls:o,className:t,style:s,placement:a="top",title:i,content:p,children:d}=e,u=ae(i),c=ae(p),m=U(n,o,`${o}-pure`,`${o}-placement-${a}`,t);return r.createElement("div",{className:m,style:s},r.createElement("div",{className:`${o}-arrow`}),r.createElement(Tt,Object.assign({},e,{className:n,prefixCls:o}),d||r.createElement(ot,{prefixCls:o,title:u,content:c})))},Xt=e=>{const{prefixCls:n,className:o}=e,t=Gt(e,["prefixCls","className"]),{getPrefixCls:s}=r.useContext(ie),a=s("popover",n),[i,p,d]=nt(a);return i(r.createElement(qt,Object.assign({},t,{prefixCls:a,hashId:p,className:U(o,d)})))};var Kt=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const Jt=r.forwardRef((e,n)=>{var o,t;const{prefixCls:s,title:a,content:i,overlayClassName:p,placement:d="top",trigger:u="hover",children:c,mouseEnterDelay:m=.1,mouseLeaveDelay:l=.1,onOpenChange:b,overlayStyle:w={},styles:f,classNames:O}=e,h=Kt(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:v,className:z,style:j,classNames:$,styles:R}=Xe("popover"),C=v("popover",s),[M,A,D]=nt(C),_=v(),k=U(p,A,D,z,$.root,O==null?void 0:O.root),P=U($.body,O==null?void 0:O.body),[S,I]=we(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),y=(L,G)=>{I(L,!0),b==null||b(L,G)},W=L=>{L.keyCode===je.ESC&&y(!1,L)},N=L=>{y(L)},F=ae(a),B=ae(i);return M(r.createElement(le,Object.assign({placement:d,trigger:u,mouseEnterDelay:m,mouseLeaveDelay:l},h,{prefixCls:C,classNames:{root:k,body:P},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},R.root),j),w),f==null?void 0:f.root),body:Object.assign(Object.assign({},R.body),f==null?void 0:f.body)},ref:n,open:S,onOpenChange:N,overlay:F||B?r.createElement(ot,{prefixCls:C,title:F,content:B}):null,transitionName:It(_,"zoom-big",h.transitionName),"data-popover-inject":!0}),Te(c,{onKeyDown:L=>{var G,K;r.isValidElement(c)&&((K=c==null?void 0:(G=c.props).onKeyDown)===null||K===void 0||K.call(G,L)),W(L)}})))}),rt=Jt;rt._InternalPanelDoNotUseOrYouWillBeFired=Xt;const Le=e=>{const{size:n,shape:o}=r.useContext($e),t=r.useMemo(()=>({size:e.size||n,shape:e.shape||o}),[e.size,e.shape,n,o]);return r.createElement($e.Provider,{value:t},e.children)},Yt=e=>{var n,o,t,s;const{getPrefixCls:a,direction:i}=r.useContext(ie),{prefixCls:p,className:d,rootClassName:u,style:c,maxCount:m,maxStyle:l,size:b,shape:w,maxPopoverPlacement:f,maxPopoverTrigger:O,children:h,max:v}=e,z=a("avatar",p),j=`${z}-group`,$=Ge(z),[R,C,M]=et(z,$),A=U(j,{[`${j}-rtl`]:i==="rtl"},M,$,d,u,C),D=Ie(h).map((P,S)=>Te(P,{key:`avatar-key-${S}`})),_=(v==null?void 0:v.count)||m,k=D.length;if(_&&_<k){const P=D.slice(0,_),S=D.slice(_,k),I=(v==null?void 0:v.style)||l,y=((n=v==null?void 0:v.popover)===null||n===void 0?void 0:n.trigger)||O||"hover",W=((o=v==null?void 0:v.popover)===null||o===void 0?void 0:o.placement)||f||"top",N=Object.assign(Object.assign({content:S},v==null?void 0:v.popover),{classNames:{root:U(`${j}-popover`,(s=(t=v==null?void 0:v.popover)===null||t===void 0?void 0:t.classNames)===null||s===void 0?void 0:s.root)},placement:W,trigger:y});return P.push(r.createElement(rt,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},N),r.createElement(tt,{style:I},`+${k-_}`))),R(r.createElement(Le,{shape:w,size:b},r.createElement("div",{className:A,style:c},P)))}return R(r.createElement(Le,{shape:w,size:b},r.createElement("div",{className:A,style:c},D)))},Zt=tt;Zt.Group=Yt;const Qt=(e,n=!1)=>n&&e==null?[]:Array.isArray(e)?e:[e];var en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},tn=function(n,o){return r.createElement(Ke,Je({},n,{ref:o,icon:en}))},nn=r.forwardRef(tn);const on=(e,n,o,t)=>{const{titleMarginBottom:s,fontWeightStrong:a}=t;return{marginBottom:s,color:o,fontWeight:a,fontSize:e,lineHeight:n}},rn=e=>{const n=[1,2,3,4,5],o={};return n.forEach(t=>{o[`
|
|
2
|
+
h${t}&,
|
|
3
|
+
div&-h${t},
|
|
4
|
+
div&-h${t} > textarea,
|
|
5
|
+
h${t}
|
|
6
|
+
`]=on(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),o},sn=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},Ye(e)),{userSelect:"text",[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},an=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Nt[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ln=e=>{const{componentCls:n,paddingSM:o}=e,t=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(t).div(-2).add(1).equal(),marginBottom:e.calc(t).div(2).sub(2).equal()},[`${n}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},cn=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),dn=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),un=e=>{const{componentCls:n,titleMarginTop:o}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rn(e)),{[`
|
|
7
|
+
& + h1${n},
|
|
8
|
+
& + h2${n},
|
|
9
|
+
& + h3${n},
|
|
10
|
+
& + h4${n},
|
|
11
|
+
& + h5${n}
|
|
12
|
+
`]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}}}),an(e)),sn(e)),{[`
|
|
13
|
+
${n}-expand,
|
|
14
|
+
${n}-collapse,
|
|
15
|
+
${n}-edit,
|
|
16
|
+
${n}-copy
|
|
17
|
+
`]:Object.assign(Object.assign({},Ye(e)),{marginInlineStart:e.marginXXS})}),ln(e)),cn(e)),dn()),{"&-rtl":{direction:"rtl"}})}},pn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),st=Re("Typography",un,pn),fn=e=>{const{prefixCls:n,"aria-label":o,className:t,style:s,direction:a,maxLength:i,autoSize:p=!0,value:d,onSave:u,onCancel:c,onEnd:m,component:l,enterIcon:b=r.createElement(nn,null)}=e,w=r.useRef(null),f=r.useRef(!1),O=r.useRef(null),[h,v]=r.useState(d);r.useEffect(()=>{v(d)},[d]),r.useEffect(()=>{var S;if(!((S=w.current)===null||S===void 0)&&S.resizableTextArea){const{textArea:I}=w.current.resizableTextArea;I.focus();const{length:y}=I.value;I.setSelectionRange(y,y)}},[]);const z=({target:S})=>{v(S.value.replace(/[\n\r]/g,""))},j=()=>{f.current=!0},$=()=>{f.current=!1},R=({keyCode:S})=>{f.current||(O.current=S)},C=()=>{u(h.trim())},M=({keyCode:S,ctrlKey:I,altKey:y,metaKey:W,shiftKey:N})=>{O.current!==S||f.current||I||y||W||N||(S===je.ENTER?(C(),m==null||m()):S===je.ESC&&c())},A=()=>{C()},[D,_,k]=st(n),P=U(n,`${n}-edit-content`,{[`${n}-rtl`]:a==="rtl",[`${n}-${l}`]:!!l},t,_,k);return D(r.createElement("div",{className:P,style:s},r.createElement(zt,{ref:w,maxLength:i,value:h,onChange:z,onKeyDown:R,onKeyUp:M,onCompositionStart:j,onCompositionEnd:$,onBlur:A,"aria-label":o,rows:1,autoSize:p}),b!==null?Te(b,{className:`${n}-edit-content-confirm`}):null))};var be,Be;function gn(){return Be||(Be=1,be=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,o=[],t=0;t<e.rangeCount;t++)o.push(e.getRangeAt(t));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||o.forEach(function(s){e.addRange(s)}),n&&n.focus()}}),be}var ye,Ae;function mn(){if(Ae)return ye;Ae=1;var e=gn(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function t(a){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,i)}function s(a,i){var p,d,u,c,m,l,b=!1;i||(i={}),p=i.debug||!1;try{u=e(),c=document.createRange(),m=document.getSelection(),l=document.createElement("span"),l.textContent=a,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(f){if(f.stopPropagation(),i.format)if(f.preventDefault(),typeof f.clipboardData>"u"){p&&console.warn("unable to use e.clipboardData"),p&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var O=n[i.format]||n.default;window.clipboardData.setData(O,a)}else f.clipboardData.clearData(),f.clipboardData.setData(i.format,a);i.onCopy&&(f.preventDefault(),i.onCopy(f.clipboardData))}),document.body.appendChild(l),c.selectNodeContents(l),m.addRange(c);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");b=!0}catch(f){p&&console.error("unable to copy using execCommand: ",f),p&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",a),i.onCopy&&i.onCopy(window.clipboardData),b=!0}catch(O){p&&console.error("unable to copy using clipboardData: ",O),p&&console.error("falling back to prompt"),d=t("message"in i?i.message:o),window.prompt(d,a)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),l&&document.body.removeChild(l),u()}return b}return ye=s,ye}var vn=mn();const bn=St(vn);var yn=function(e,n,o,t){function s(a){return a instanceof o?a:new o(function(i){i(a)})}return new(o||(o=Promise))(function(a,i){function p(c){try{u(t.next(c))}catch(m){i(m)}}function d(c){try{u(t.throw(c))}catch(m){i(m)}}function u(c){c.done?a(c.value):s(c.value).then(p,d)}u((t=t.apply(e,n||[])).next())})};const hn=({copyConfig:e,children:n})=>{const[o,t]=r.useState(!1),[s,a]=r.useState(!1),i=r.useRef(null),p=()=>{i.current&&clearTimeout(i.current)},d={};e.format&&(d.format=e.format),r.useEffect(()=>p,[]);const u=_t(c=>yn(void 0,void 0,void 0,function*(){var m;c==null||c.preventDefault(),c==null||c.stopPropagation(),a(!0);try{const l=typeof e.text=="function"?yield e.text():e.text;bn(l||Qt(n,!0).join("")||"",d),a(!1),t(!0),p(),i.current=setTimeout(()=>{t(!1)},3e3),(m=e.onCopy)===null||m===void 0||m.call(e,c)}catch(l){throw a(!1),l}}));return{copied:o,copyLoading:s,onClick:u}};function he(e,n){return r.useMemo(()=>{const o=!!e;return[o,Object.assign(Object.assign({},n),o&&typeof e=="object"?e:null)]},[e])}const Sn=e=>{const n=r.useRef(void 0);return r.useEffect(()=>{n.current=e}),n.current},xn=(e,n,o)=>r.useMemo(()=>e===!0?{title:n??o}:r.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:n??o},e):{title:e},[e,n,o]);var Cn=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const at=r.forwardRef((e,n)=>{const{prefixCls:o,component:t="article",className:s,rootClassName:a,setContentRef:i,children:p,direction:d,style:u}=e,c=Cn(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:l,className:b,style:w}=Xe("typography"),f=d??l,O=i?Pe(n,i):n,h=m("typography",o),[v,z,j]=st(h),$=U(h,b,{[`${h}-rtl`]:f==="rtl"},s,a,z,j),R=Object.assign(Object.assign({},w),u);return v(r.createElement(t,Object.assign({className:$,style:R,ref:O},c),p))});var En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},On=function(n,o){return r.createElement(Ke,Je({},n,{ref:o,icon:En}))},wn=r.forwardRef(On);function De(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Se(e,n,o){return e===!0||e===void 0?n:e||o&&n}function jn(e){const n=document.createElement("em");e.appendChild(n);const o=e.getBoundingClientRect(),t=n.getBoundingClientRect();return e.removeChild(n),o.left>t.left||t.right>o.right||o.top>t.top||t.bottom>o.bottom}const Ne=e=>["string","number"].includes(typeof e),$n=({prefixCls:e,copied:n,locale:o,iconOnly:t,tooltips:s,icon:a,tabIndex:i,onCopy:p,loading:d})=>{const u=De(s),c=De(a),{copied:m,copy:l}=o??{},b=n?m:l,w=Se(u[n?1:0],b),f=typeof w=="string"?w:b;return r.createElement(le,{title:w},r.createElement("button",{type:"button",className:U(`${e}-copy`,{[`${e}-copy-success`]:n,[`${e}-copy-icon-only`]:t}),onClick:p,"aria-label":f,tabIndex:i},n?Se(c[1],r.createElement(Mt,null),!0):Se(c[0],d?r.createElement(kt,null):r.createElement(wn,null),!0)))},re=r.forwardRef(({style:e,children:n},o)=>{const t=r.useRef(null);return r.useImperativeHandle(o,()=>({isExceed:()=>{const s=t.current;return s.scrollHeight>s.clientHeight},getHeight:()=>t.current.clientHeight})),r.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},n)}),Rn=e=>e.reduce((n,o)=>n+(Ne(o)?String(o).length:1),0);function We(e,n){let o=0;const t=[];for(let s=0;s<e.length;s+=1){if(o===n)return t;const a=e[s],p=Ne(a)?String(a).length:1,d=o+p;if(d>n){const u=n-o;return t.push(String(a).slice(0,u)),t}t.push(a),o=d}return e}const xe=0,Ce=1,Ee=2,Oe=3,He=4,se={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Pn(e){const{enableMeasure:n,width:o,text:t,children:s,rows:a,expanded:i,miscDeps:p,onEllipsis:d}=e,u=r.useMemo(()=>Ie(t),[t]),c=r.useMemo(()=>Rn(u),[t]),m=r.useMemo(()=>s(u,!1),[t]),[l,b]=r.useState(null),w=r.useRef(null),f=r.useRef(null),O=r.useRef(null),h=r.useRef(null),v=r.useRef(null),[z,j]=r.useState(!1),[$,R]=r.useState(xe),[C,M]=r.useState(0),[A,D]=r.useState(null);Y(()=>{R(n&&o&&c?Ce:xe)},[o,t,a,n,u]),Y(()=>{var S,I,y,W;if($===Ce){R(Ee);const N=f.current&&getComputedStyle(f.current).whiteSpace;D(N)}else if($===Ee){const N=!!(!((S=O.current)===null||S===void 0)&&S.isExceed());R(N?Oe:He),b(N?[0,c]:null),j(N);const F=((I=O.current)===null||I===void 0?void 0:I.getHeight())||0,B=a===1?0:((y=h.current)===null||y===void 0?void 0:y.getHeight())||0,L=((W=v.current)===null||W===void 0?void 0:W.getHeight())||0,G=Math.max(F,B+L);M(G+1),d(N)}},[$]);const _=l?Math.ceil((l[0]+l[1])/2):0;Y(()=>{var S;const[I,y]=l||[0,0];if(I!==y){const N=(((S=w.current)===null||S===void 0?void 0:S.getHeight())||0)>C;let F=_;y-I===1&&(F=N?I:y),b(N?[I,F]:[F,y])}},[l,_]);const k=r.useMemo(()=>{if(!n)return s(u,!1);if($!==Oe||!l||l[0]!==l[1]){const S=s(u,!1);return[He,xe].includes($)?S:r.createElement("span",{style:Object.assign(Object.assign({},se),{WebkitLineClamp:a})},S)}return s(i?u:We(u,l[0]),z)},[i,$,l,u].concat(Ze(p))),P={width:o,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return r.createElement(r.Fragment,null,k,$===Ee&&r.createElement(r.Fragment,null,r.createElement(re,{style:Object.assign(Object.assign(Object.assign({},P),se),{WebkitLineClamp:a}),ref:O},m),r.createElement(re,{style:Object.assign(Object.assign(Object.assign({},P),se),{WebkitLineClamp:a-1}),ref:h},m),r.createElement(re,{style:Object.assign(Object.assign(Object.assign({},P),se),{WebkitLineClamp:1}),ref:v},s([],!0))),$===Oe&&l&&l[0]!==l[1]&&r.createElement(re,{style:Object.assign(Object.assign({},P),{top:400}),ref:w},s(We(u,_),!0)),$===Ce&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:f}))}const Tn=({enableEllipsis:e,isEllipsis:n,children:o,tooltipProps:t})=>!(t!=null&&t.title)||!e?o:r.createElement(le,Object.assign({open:n?void 0:!1},t),o);var In=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};function Nn({mark:e,code:n,underline:o,delete:t,strong:s,keyboard:a,italic:i},p){let d=p;function u(c,m){m&&(d=r.createElement(c,{},d))}return u("strong",s),u("u",o),u("del",t),u("code",n),u("mark",e),u("kbd",a),u("i",i),d}const zn="...",Fe=["delete","mark","code","underline","strong","keyboard","italic"],ce=r.forwardRef((e,n)=>{var o;const{prefixCls:t,className:s,style:a,type:i,disabled:p,children:d,ellipsis:u,editable:c,copyable:m,component:l,title:b}=e,w=In(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:f,direction:O}=r.useContext(ie),[h]=Lt("Text"),v=r.useRef(null),z=r.useRef(null),j=f("typography",t),$=Qe(w,Fe),[R,C]=he(c),[M,A]=we(!1,{value:C.editing}),{triggerType:D=["icon"]}=C,_=g=>{var x;g&&((x=C.onStart)===null||x===void 0||x.call(C)),A(g)},k=Sn(M);Y(()=>{var g;!M&&k&&((g=z.current)===null||g===void 0||g.focus())},[M]);const P=g=>{g==null||g.preventDefault(),_(!0)},S=g=>{var x;(x=C.onChange)===null||x===void 0||x.call(C,g),_(!1)},I=()=>{var g;(g=C.onCancel)===null||g===void 0||g.call(C),_(!1)},[y,W]=he(m),{copied:N,copyLoading:F,onClick:B}=hn({copyConfig:W,children:d}),[L,G]=r.useState(!1),[K,ue]=r.useState(!1),[Q,ee]=r.useState(!1),[te,pe]=r.useState(!1),[fe,J]=r.useState(!0),[T,E]=he(u,{expandable:!1,symbol:g=>g?h==null?void 0:h.collapse:h==null?void 0:h.expand}),[H,it]=we(E.defaultExpanded||!1,{value:E.expanded}),V=T&&(!H||E.expandable==="collapsible"),{rows:Z=1}=E,ne=r.useMemo(()=>V&&(E.suffix!==void 0||E.onEllipsis||E.expandable||R||y),[V,E,R,y]);Y(()=>{T&&!ne&&(G(ke("webkitLineClamp")),ue(ke("textOverflow")))},[ne,T]);const[q,lt]=r.useState(V),ze=r.useMemo(()=>ne?!1:Z===1?K:L,[ne,K,L]);Y(()=>{lt(ze&&V)},[ze,V]);const _e=V&&(q?te:Q),ct=V&&Z===1&&q,ge=V&&Z>1&&q,dt=(g,x)=>{var X;it(x.expanded),(X=E.onExpand)===null||X===void 0||X.call(E,g,x)},[Me,ut]=r.useState(0),pt=({offsetWidth:g})=>{ut(g)},ft=g=>{var x;ee(g),Q!==g&&((x=E.onEllipsis)===null||x===void 0||x.call(E,g))};r.useEffect(()=>{const g=v.current;if(T&&q&&g){const x=jn(g);te!==x&&pe(x)}},[T,q,d,ge,fe,Me]),r.useEffect(()=>{const g=v.current;if(typeof IntersectionObserver>"u"||!g||!q||!V)return;const x=new IntersectionObserver(()=>{J(!!g.offsetParent)});return x.observe(g),()=>{x.disconnect()}},[q,V]);const me=xn(E.tooltip,C.text,d),oe=r.useMemo(()=>{if(!(!T||q))return[C.text,d,b,me.title].find(Ne)},[T,q,b,me.title,_e]);if(M)return r.createElement(fn,{value:(o=C.text)!==null&&o!==void 0?o:typeof d=="string"?d:"",onSave:S,onCancel:I,onEnd:C.onEnd,prefixCls:j,className:s,style:a,direction:O,component:l,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const gt=()=>{const{expandable:g,symbol:x}=E;return g?r.createElement("button",{type:"button",key:"expand",className:`${j}-${H?"collapse":"expand"}`,onClick:X=>dt(X,{expanded:!H}),"aria-label":H?h.collapse:h==null?void 0:h.expand},typeof x=="function"?x(H):x):null},mt=()=>{if(!R)return;const{icon:g,tooltip:x,tabIndex:X}=C,ve=Ie(x)[0]||(h==null?void 0:h.edit),ht=typeof ve=="string"?ve:"";return D.includes("icon")?r.createElement(le,{key:"edit",title:x===!1?"":ve},r.createElement("button",{type:"button",ref:z,className:`${j}-edit`,onClick:P,"aria-label":ht,tabIndex:X},g||r.createElement(Bt,{role:"button"}))):null},vt=()=>y?r.createElement($n,Object.assign({key:"copy"},W,{prefixCls:j,copied:N,locale:h,onCopy:B,loading:F,iconOnly:d==null})):null,bt=g=>[g&>(),mt(),vt()],yt=g=>[g&&!H&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},zn),E.suffix,bt(g)];return r.createElement(qe,{onResize:pt,disabled:!V},g=>r.createElement(Tn,{tooltipProps:me,enableEllipsis:V,isEllipsis:_e},r.createElement(at,Object.assign({className:U({[`${j}-${i}`]:i,[`${j}-disabled`]:p,[`${j}-ellipsis`]:T,[`${j}-ellipsis-single-line`]:ct,[`${j}-ellipsis-multiple-line`]:ge},s),prefixCls:t,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ge?Z:void 0}),component:l,ref:Pe(g,v,n),direction:O,onClick:D.includes("text")?P:void 0,"aria-label":oe==null?void 0:oe.toString(),title:b},$),r.createElement(Pn,{enableMeasure:V&&!q,text:d,rows:Z,width:Me,onEllipsis:ft,expanded:H,miscDeps:[N,H,F,R,y,h].concat(Ze(Fe.map(x=>e[x])))},(x,X)=>Nn(e,r.createElement(r.Fragment,null,x.length>0&&X&&!H&&oe?r.createElement("span",{key:"show-content","aria-hidden":!0},x):x,yt(X)))))))});var _n=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const Mn=r.forwardRef((e,n)=>{const{ellipsis:o,rel:t,children:s,navigate:a}=e,i=_n(e,["ellipsis","rel","children","navigate"]),p=Object.assign(Object.assign({},i),{rel:t===void 0&&i.target==="_blank"?"noopener noreferrer":t});return r.createElement(ce,Object.assign({},p,{ref:n,ellipsis:!!o,component:"a"}),s)});var kn=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const Ln=r.forwardRef((e,n)=>{const{children:o}=e,t=kn(e,["children"]);return r.createElement(ce,Object.assign({ref:n},t,{component:"div"}),o)});var Bn=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const An=(e,n)=>{const{ellipsis:o,children:t}=e,s=Bn(e,["ellipsis","children"]),a=r.useMemo(()=>o&&typeof o=="object"?Qe(o,["expandable","rows"]):o,[o]);return r.createElement(ce,Object.assign({ref:n},s,{ellipsis:a,component:"span"}),t)},Dn=r.forwardRef(An);var Wn=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(e);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(o[t[s]]=e[t[s]]);return o};const Hn=[1,2,3,4,5],Fn=r.forwardRef((e,n)=>{const{level:o=1,children:t}=e,s=Wn(e,["level","children"]),a=Hn.includes(o)?`h${o}`:"h1";return r.createElement(ce,Object.assign({ref:n},s,{component:a}),t)}),de=at;de.Text=Dn;de.Link=Mn;de.Title=Fn;de.Paragraph=Ln;export{Zt as A,Xt as P,de as T,rt as a,ae as g};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-CjeQqDdO.js","assets/index-B3CRby6r.js","assets/index-09IqiOaE.css","assets/sse-client-DGQ072hl.js","assets/RegisterPage-Dvaf9b0e.js","assets/TodoPage-B7D-bl65.js","assets/LoadingSpinner-BcHjaM1m.js","assets/EmptyState-DEyOQjbY.js","assets/circle-check-big-CrZdwS75.js","assets/plus-DDZfPiDJ.js","assets/clock-CTeSZBiH.js","assets/trash-2-BP7fkd5b.js","assets/x-t615pnNR.js","assets/download-OSVfVuNV.js","assets/NotificationPage-DRkEv02s.js","assets/StatusBadge-CG7wVqpu.js","assets/wifi-CwYSE0J4.js","assets/triangle-alert-CrOQEdJ2.js","assets/circle-x-CvN9r3fW.js","assets/WebSocketPage-CGEg6QJE.js","assets/message-square-BRaZfgbJ.js","assets/activity-CgTz9Mrd.js","assets/PluginsPage-DRgWLeJT.js","assets/pluginStore-DDsWJPe6.js","assets/star-C7tO6w4H.js","assets/eye-CwlZZEsj.js","assets/external-link-fBsuHMby.js","assets/tag-DBfpQDuJ.js","assets/chevron-right-CnU7oPQs.js","assets/PluginDetailPage-CWyxdVCg.js","assets/arrow-left-DtLQ3tTk.js","assets/CategoriesPage-fuYNiSmE.js","assets/SearchPage-DvnEyswS.js","assets/PublishPage-DW7yvROx.js","assets/DeveloperDashboardPage-_WtmbVoA.js","assets/ContentListPage-ShPxo6WG.js","assets/ContentDetailPage-BvvFU1Mr.js","assets/CartPage-DgDZP-R5.js","assets/OrdersPage-7I3vPWLP.js","assets/TopicsPage-CYCNr-mn.js","assets/chevron-down-CpIAV_yr.js","assets/ProfilePage-2FFkaii8.js","assets/DashboardPage-C1rZzZo4.js","assets/SettingsPage-IrU-L9Zr.js","assets/App-BpFUIC-5.js","assets/api-request-DIJocPxr.js","assets/SaveOutlined-CLQ2tsSY.js","assets/index-CC_zy73y.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Re=Object.defineProperty;var je=(e,r,t)=>r in e?Re(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var T=(e,r,t)=>je(e,typeof r!="symbol"?r+"":r,t);import{g as Q,r as d,R as y,c as Ie,j as u,N as K,L as P,u as Le,B as Ne,a as De,b as D,d as Me,e as He}from"./index-B3CRby6r.js";import{c as g,h as ze,S as $e,W as oe,p as Ue,a as Ve,U as Be,B as Fe,T as qe}from"./sse-client-DGQ072hl.js";const Ke="modulepreload",We=function(e){return"/"+e},ae={},h=function(r,t,o){let n=Promise.resolve();if(t&&t.length>0){let s=function(c){return Promise.all(c.map(p=>Promise.resolve(p).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=s(t.map(c=>{if(c=We(c),c in ae)return;ae[c]=!0;const p=c.endsWith(".css"),f=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":Ke,p||(m.as="script"),m.crossOrigin="",m.href=c,l&&m.setAttribute("nonce",l),document.head.appendChild(m),p)return new Promise((b,x)=>{m.addEventListener("load",b),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return n.then(s=>{for(const i of s||[])i.status==="rejected"&&a(i.reason);return r().catch(a)})};var M,ne;function Ye(){if(ne)return M;ne=1;var e=typeof Element<"u",r=typeof Map=="function",t=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function n(a,s){if(a===s)return!0;if(a&&s&&typeof a=="object"&&typeof s=="object"){if(a.constructor!==s.constructor)return!1;var i,l,c;if(Array.isArray(a)){if(i=a.length,i!=s.length)return!1;for(l=i;l--!==0;)if(!n(a[l],s[l]))return!1;return!0}var p;if(r&&a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(p=a.entries();!(l=p.next()).done;)if(!s.has(l.value[0]))return!1;for(p=a.entries();!(l=p.next()).done;)if(!n(l.value[1],s.get(l.value[0])))return!1;return!0}if(t&&a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(p=a.entries();!(l=p.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(s)){if(i=a.length,i!=s.length)return!1;for(l=i;l--!==0;)if(a[l]!==s[l])return!1;return!0}if(a.constructor===RegExp)return a.source===s.source&&a.flags===s.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof s.valueOf=="function")return a.valueOf()===s.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof s.toString=="function")return a.toString()===s.toString();if(c=Object.keys(a),i=c.length,i!==Object.keys(s).length)return!1;for(l=i;l--!==0;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(e&&a instanceof Element)return!1;for(l=i;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&a.$$typeof)&&!n(a[c[l]],s[c[l]]))return!1;return!0}return a!==a&&s!==s}return M=function(s,i){try{return n(s,i)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},M}var Je=Ye();const Ze=Q(Je);var H,se;function Ge(){if(se)return H;se=1;var e=function(r,t,o,n,a,s,i,l){if(!r){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[o,n,a,s,i,l],f=0;c=new Error(t.replace(/%s/g,function(){return p[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return H=e,H}var Xe=Ge();const ie=Q(Xe);var z,le;function Qe(){return le||(le=1,z=function(r,t,o,n){var a=o?o.call(n,r,t):void 0;if(a!==void 0)return!!a;if(r===t)return!0;if(typeof r!="object"||!r||typeof t!="object"||!t)return!1;var s=Object.keys(r),i=Object.keys(t);if(s.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<s.length;c++){var p=s[c];if(!l(p))return!1;var f=r[p],m=t[p];if(a=o?o.call(n,f,m,p):void 0,a===!1||a===void 0&&f!==m)return!1}return!0}),z}var et=Qe();const tt=Q(et);var ve=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ve||{}),$={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},ce=Object.values(ve),N={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_e=Object.entries(N).reduce((e,[r,t])=>(e[t]=r,e),{}),_="data-rh",w={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},S=(e,r)=>{for(let t=e.length-1;t>=0;t-=1){const o=e[t];if(Object.prototype.hasOwnProperty.call(o,r))return o[r]}return null},rt=e=>{let r=S(e,"title");const t=S(e,w.TITLE_TEMPLATE);if(Array.isArray(r)&&(r=r.join("")),t&&r)return t.replace(/%s/g,()=>r);const o=S(e,w.DEFAULT_TITLE);return r||o||void 0},ot=e=>S(e,w.ON_CHANGE_CLIENT_STATE)||(()=>{}),U=(e,r)=>r.filter(t=>typeof t[e]<"u").map(t=>t[e]).reduce((t,o)=>({...t,...o}),{}),at=(e,r)=>r.filter(t=>typeof t.base<"u").map(t=>t.base).reverse().reduce((t,o)=>{if(!t.length){const n=Object.keys(o);for(let a=0;a<n.length;a+=1){const i=n[a].toLowerCase();if(e.indexOf(i)!==-1&&o[i])return t.concat(o)}}return t},[]),nt=e=>console&&typeof console.warn=="function"&&console.warn(e),C=(e,r,t)=>{const o={};return t.filter(n=>Array.isArray(n[e])?!0:(typeof n[e]<"u"&&nt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof n[e]}"`),!1)).map(n=>n[e]).reverse().reduce((n,a)=>{const s={};a.filter(l=>{let c;const p=Object.keys(l);for(let m=0;m<p.length;m+=1){const b=p[m],x=b.toLowerCase();r.indexOf(x)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(x==="rel"&&l[x].toLowerCase()==="stylesheet")&&(c=x),r.indexOf(b)!==-1&&(b==="innerHTML"||b==="cssText"||b==="itemprop")&&(c=b)}if(!c||!l[c])return!1;const f=l[c].toLowerCase();return o[c]||(o[c]={}),s[c]||(s[c]={}),o[c][f]?!1:(s[c][f]=!0,!0)}).reverse().forEach(l=>n.push(l));const i=Object.keys(s);for(let l=0;l<i.length;l+=1){const c=i[l],p={...o[c],...s[c]};o[c]=p}return n},[]).reverse()},st=(e,r)=>{if(Array.isArray(e)&&e.length){for(let t=0;t<e.length;t+=1)if(e[t][r])return!0}return!1},it=e=>({baseTag:at(["href"],e),bodyAttributes:U("bodyAttributes",e),defer:S(e,w.DEFER),encode:S(e,w.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:U("htmlAttributes",e),linkTags:C("link",["rel","href"],e),metaTags:C("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:C("noscript",["innerHTML"],e),onChangeClientState:ot(e),scriptTags:C("script",["src","innerHTML"],e),styleTags:C("style",["cssText"],e),title:rt(e),titleAttributes:U("titleAttributes",e),prioritizeSeoTags:st(e,w.PRIORITIZE_SEO_TAGS)}),xe=e=>Array.isArray(e)?e.join(""):e,lt=(e,r)=>{const t=Object.keys(e);for(let o=0;o<t.length;o+=1)if(r[t[o]]&&r[t[o]].includes(e[t[o]]))return!0;return!1},V=(e,r)=>Array.isArray(e)?e.reduce((t,o)=>(lt(o,r)?t.priority.push(o):t.default.push(o),t),{priority:[],default:[]}):{default:e,priority:[]},ue=(e,r)=>({...e,[r]:void 0}),ct=["noscript","script","style"],W=(e,r=!0)=>r===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Te=e=>Object.keys(e).reduce((r,t)=>{const o=typeof e[t]<"u"?`${t}="${e[t]}"`:`${t}`;return r?`${r} ${o}`:o},""),ut=(e,r,t,o)=>{const n=Te(t),a=xe(r);return n?`<${e} ${_}="true" ${n}>${W(a,o)}</${e}>`:`<${e} ${_}="true">${W(a,o)}</${e}>`},pt=(e,r,t=!0)=>r.reduce((o,n)=>{const a=n,s=Object.keys(a).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,p)=>{const f=typeof a[p]>"u"?p:`${p}="${W(a[p],t)}"`;return c?`${c} ${f}`:f},""),i=a.innerHTML||a.cssText||"",l=ct.indexOf(e)===-1;return`${o}<${e} ${_}="true" ${s}${l?"/>":`>${i}</${e}>`}`},""),Ee=(e,r={})=>Object.keys(e).reduce((t,o)=>{const n=N[o];return t[n||o]=e[o],t},r),dt=(e,r,t)=>{const o={key:r,[_]:!0},n=Ee(t,o);return[y.createElement("title",n,r)]},I=(e,r)=>r.map((t,o)=>{const n={key:o,[_]:!0};return Object.keys(t).forEach(a=>{const i=N[a]||a;if(i==="innerHTML"||i==="cssText"){const l=t.innerHTML||t.cssText;n.dangerouslySetInnerHTML={__html:l}}else n[i]=t[a]}),y.createElement(e,n)}),v=(e,r,t=!0)=>{switch(e){case"title":return{toComponent:()=>dt(e,r.title,r.titleAttributes),toString:()=>ut(e,r.title,r.titleAttributes,t)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Ee(r),toString:()=>Te(r)};default:return{toComponent:()=>I(e,r),toString:()=>pt(e,r,t)}}},ht=({metaTags:e,linkTags:r,scriptTags:t,encode:o})=>{const n=V(e,$.meta),a=V(r,$.link),s=V(t,$.script);return{priorityMethods:{toComponent:()=>[...I("meta",n.priority),...I("link",a.priority),...I("script",s.priority)],toString:()=>`${v("meta",n.priority,o)} ${v("link",a.priority,o)} ${v("script",s.priority,o)}`},metaTags:n.default,linkTags:a.default,scriptTags:s.default}},ft=e=>{const{baseTag:r,bodyAttributes:t,encode:o=!0,htmlAttributes:n,noscriptTags:a,styleTags:s,title:i="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:p,metaTags:f,scriptTags:m}=e,b={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:b,linkTags:p,metaTags:f,scriptTags:m}=ht(e)),{priority:b,base:v("base",r,o),bodyAttributes:v("bodyAttributes",t,o),htmlAttributes:v("htmlAttributes",n,o),link:v("link",p,o),meta:v("meta",f,o),noscript:v("noscript",a,o),script:v("script",m,o),style:v("style",s,o),title:v("title",{title:i,titleAttributes:l},o)}},Y=ft,j=[],ee=!!(typeof window<"u"&&window.document&&window.document.createElement),J=class{constructor(e,r){T(this,"instances",[]);T(this,"canUseDOM",ee);T(this,"context");T(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?j:this.instances,add:e=>{(this.canUseDOM?j:this.instances).push(e)},remove:e=>{const r=(this.canUseDOM?j:this.instances).indexOf(e);(this.canUseDOM?j:this.instances).splice(r,1)}}});this.context=e,this.canUseDOM=r||!1,r||(e.helmet=Y({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},mt=parseInt(y.version.split(".")[0],10),Z=mt>=19,yt={},ke=y.createContext(yt),k,Ae=(k=class extends d.Component{constructor(t){super(t);T(this,"helmetData");Z?this.helmetData=null:this.helmetData=new J(this.props.context||{},k.canUseDOM)}render(){return Z?y.createElement(y.Fragment,null,this.props.children):y.createElement(ke.Provider,{value:this.helmetData.value},this.props.children)}},T(k,"canUseDOM",ee),k),A=(e,r)=>{const t=document.head||document.querySelector("head"),o=t.querySelectorAll(`${e}[${_}]`),n=[].slice.call(o),a=[];let s;return r&&r.length&&r.forEach(i=>{const l=document.createElement(e);for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c))if(c==="innerHTML")l.innerHTML=i.innerHTML;else if(c==="cssText"){const p=i.cssText;l.appendChild(document.createTextNode(p))}else{const p=c,f=typeof i[p]>"u"?"":i[p];l.setAttribute(c,f)}l.setAttribute(_,"true"),n.some((c,p)=>(s=p,l.isEqualNode(c)))?n.splice(s,1):a.push(l)}),n.forEach(i=>{var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),a.forEach(i=>t.appendChild(i)),{oldTags:n,newTags:a}},G=(e,r)=>{const t=document.getElementsByTagName(e)[0];if(!t)return;const o=t.getAttribute(_),n=o?o.split(","):[],a=[...n],s=Object.keys(r);for(const i of s){const l=r[i]||"";t.getAttribute(i)!==l&&t.setAttribute(i,l),n.indexOf(i)===-1&&n.push(i);const c=a.indexOf(i);c!==-1&&a.splice(c,1)}for(let i=a.length-1;i>=0;i-=1)t.removeAttribute(a[i]);n.length===a.length?t.removeAttribute(_):t.getAttribute(_)!==s.join(",")&&t.setAttribute(_,s.join(","))},gt=(e,r)=>{typeof e<"u"&&document.title!==e&&(document.title=xe(e)),G("title",r)},pe=(e,r)=>{const{baseTag:t,bodyAttributes:o,htmlAttributes:n,linkTags:a,metaTags:s,noscriptTags:i,onChangeClientState:l,scriptTags:c,styleTags:p,title:f,titleAttributes:m}=e;G("body",o),G("html",n),gt(f,m);const b={baseTag:A("base",t),linkTags:A("link",a),metaTags:A("meta",s),noscriptTags:A("noscript",i),scriptTags:A("script",c),styleTags:A("style",p)},x={},te={};Object.keys(b).forEach(R=>{const{newTags:re,oldTags:Oe}=b[R];re.length&&(x[R]=re),Oe.length&&(te[R]=b[R].oldTags)}),r&&r(),l(e,x,te)},O=null,bt=e=>{O&&cancelAnimationFrame(O),e.defer?O=requestAnimationFrame(()=>{pe(e,()=>{O=null})}):(pe(e),O=null)},vt=bt,de=class extends d.Component{constructor(){super(...arguments);T(this,"rendered",!1)}shouldComponentUpdate(r){return!tt(r,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:r}=this.props.context;r.remove(this),this.emitChange()}emitChange(){const{helmetInstances:r,setHelmet:t}=this.props.context;let o=null;const n=it(r.get().map(a=>{const{context:s,...i}=a.props;return i}));Ae.canUseDOM?vt(n):Y&&(o=Y(n)),t(o)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:r}=this.props.context;r.add(this),this.emitChange()}render(){return this.init(),null}},L=[],he=e=>{const r={};for(const t of Object.keys(e))r[_e[t]||t]=e[t];return r},E=e=>{const r={};for(const t of Object.keys(e)){const o=N[t];r[o||t]=e[t]}return r},fe=(e,r)=>{if(!ee)return;const t=document.getElementsByTagName(e)[0];if(!t)return;const o="data-rh-managed",n=t.getAttribute(o),a=n?n.split(","):[],s=Object.keys(r);for(const i of a)s.includes(i)||t.removeAttribute(i);for(const i of s){const l=r[i];l==null||l===!1?t.removeAttribute(i):l===!0?t.setAttribute(i,""):t.setAttribute(i,String(l))}s.length>0?t.setAttribute(o,s.join(",")):t.removeAttribute(o)},B=()=>{const e={},r={};for(const t of L){const{htmlAttributes:o,bodyAttributes:n}=t.props;o&&Object.assign(e,he(o)),n&&Object.assign(r,he(n))}fe("html",e),fe("body",r)},_t=class extends d.Component{componentDidMount(){L.push(this),B()}componentDidUpdate(){B()}componentWillUnmount(){const e=L.indexOf(this);e!==-1&&L.splice(e,1),B()}resolveTitle(){const{title:e,titleTemplate:r,defaultTitle:t}=this.props;return e&&r?r.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||t||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const r=this.props.titleAttributes||{};return y.createElement("title",E(r),e)}renderBase(){const{base:e}=this.props;return e?y.createElement("base",E(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((r,t)=>y.createElement("meta",{key:t,...E(r)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((r,t)=>y.createElement("link",{key:t,...E(r)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((r,t)=>{const{innerHTML:o,...n}=r,a=E(n);return o&&(a.dangerouslySetInnerHTML={__html:o}),y.createElement("script",{key:t,...a})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((r,t)=>{const{cssText:o,...n}=r,a=E(n);return o&&(a.dangerouslySetInnerHTML={__html:o}),y.createElement("style",{key:t,...a})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((r,t)=>{const{innerHTML:o,...n}=r,a=E(n);return o&&(a.dangerouslySetInnerHTML={__html:o}),y.createElement("noscript",{key:t,...a})})}render(){return y.createElement(y.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},q,Tr=(q=class extends d.Component{shouldComponentUpdate(e){return!Ze(ue(this.props,"helmetData"),ue(e,"helmetData"))}mapNestedChildrenToProps(e,r){if(!r)return null;switch(e.type){case"script":case"noscript":return{innerHTML:r};case"style":return{cssText:r};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,r,t,o){return{...r,[e.type]:[...r[e.type]||[],{...t,...this.mapNestedChildrenToProps(e,o)}]}}mapObjectTypeChildren(e,r,t,o){switch(e.type){case"title":return{...r,[e.type]:o,titleAttributes:{...t}};case"body":return{...r,bodyAttributes:{...t}};case"html":return{...r,htmlAttributes:{...t}};default:return{...r,[e.type]:{...t}}}}mapArrayTypeChildrenToProps(e,r){let t={...r};return Object.keys(e).forEach(o=>{t={...t,[o]:e[o]}}),t}warnOnInvalidChildren(e,r){return ie(ce.some(t=>e.type===t),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ce.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),ie(!r||typeof r=="string"||Array.isArray(r)&&!r.some(t=>typeof t!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,r){let t={};return y.Children.forEach(e,o=>{if(!o||!o.props)return;const{children:n,...a}=o.props,s=Object.keys(a).reduce((l,c)=>(l[_e[c]||c]=a[c],l),{});let{type:i}=o;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(o,n),i){case"Symbol(react.fragment)":r=this.mapChildrenToProps(n,r);break;case"link":case"meta":case"noscript":case"script":case"style":t=this.flattenArrayTypeChildren(o,t,s,n);break;default:r=this.mapObjectTypeChildren(o,r,s,n);break}}),this.mapArrayTypeChildrenToProps(t,r)}render(){const{children:e,...r}=this.props;let t={...r},{helmetData:o}=r;if(e&&(t=this.mapChildrenToProps(e,t)),o&&!(o instanceof J)){const n=o;o=new J(n.context,!0),delete t.helmetData}return Z?y.createElement(_t,{...t}):o?y.createElement(de,{...t,context:o.value}):y.createElement(ke.Consumer,null,n=>y.createElement(de,{...t,context:n}))}},T(q,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),q);/**
|
|
3
|
+
* @license lucide-react v0.576.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const xt=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Tt=g("calendar",xt);/**
|
|
8
|
+
* @license lucide-react v0.576.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/const Et=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],kt=g("circle-plus",Et);/**
|
|
13
|
+
* @license lucide-react v0.576.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/const At=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Pt=g("circle-user",At);/**
|
|
18
|
+
* @license lucide-react v0.576.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/const wt=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],St=g("code",wt);/**
|
|
23
|
+
* @license lucide-react v0.576.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/const Ct=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],Ot=g("compass",Ct);/**
|
|
28
|
+
* @license lucide-react v0.576.0 - ISC
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the ISC license.
|
|
31
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/const Rt=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],jt=g("folder-kanban",Rt);/**
|
|
33
|
+
* @license lucide-react v0.576.0 - ISC
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the ISC license.
|
|
36
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/const It=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],Lt=g("hash",It);/**
|
|
38
|
+
* @license lucide-react v0.576.0 - ISC
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the ISC license.
|
|
41
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/const Nt=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Dt=g("house",Nt);/**
|
|
43
|
+
* @license lucide-react v0.576.0 - ISC
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the ISC license.
|
|
46
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/const Mt=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Pe=g("layout-dashboard",Mt);/**
|
|
48
|
+
* @license lucide-react v0.576.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/const Ht=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],zt=g("log-in",Ht);/**
|
|
53
|
+
* @license lucide-react v0.576.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/const $t=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Ut=g("package",$t);/**
|
|
58
|
+
* @license lucide-react v0.576.0 - ISC
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the ISC license.
|
|
61
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/const Vt=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Bt=g("puzzle",Vt);/**
|
|
63
|
+
* @license lucide-react v0.576.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const Ft=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],qt=g("rocket",Ft);/**
|
|
68
|
+
* @license lucide-react v0.576.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const Kt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],we=g("search",Kt);/**
|
|
73
|
+
* @license lucide-react v0.576.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const Wt=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],Se=g("shopping-cart",Wt);/**
|
|
78
|
+
* @license lucide-react v0.576.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const Yt=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Jt=g("sparkles",Yt);/**
|
|
83
|
+
* @license lucide-react v0.576.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const Zt=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Gt=g("sun",Zt);/**
|
|
88
|
+
* @license lucide-react v0.576.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const Xt=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],Qt=g("tags",Xt),er=window.location.origin,tr="auth-token";function X(){var e;try{const r=localStorage.getItem(tr);if(r){const t=JSON.parse(r);return typeof t=="string"?t:((e=t.state)==null?void 0:e.token)||null}return null}catch{return null}}const rr=(e,r)=>{const t=X(),o=new Headers(r==null?void 0:r.headers);return t&&!o.has("Authorization")&&o.set("Authorization",`Bearer ${t}`),window.fetch(e,{...r,headers:o}).then(n=>(n.status===401&&(localStorage.removeItem("auth-token"),window.location.pathname.includes("/login")||(window.location.href="/login")),n))},me=ze(er,{fetch:rr,webSocket:e=>{const r=X();if(r){const t=new URL(e);return t.searchParams.set("token",r),new oe(t)}return new oe(e)},sse:e=>{const r=X(),t={};return r&&(t.Authorization=`Bearer ${r}`),new $e(e,t)}}),F=Ie()(Ue(e=>({token:null,isAuthenticated:!1,user:null,loading:!1,error:null,login:async(r,t)=>{e({loading:!0,error:null});try{const n=await(await me.api.auth.login.$post({json:{account:r,password:t}})).json();if(n.success){const{token:a,profile:s}=n.data;e({token:a,isAuthenticated:!0,user:{id:s.id,username:s.username,role:s.role},loading:!1,error:null})}else e({loading:!1,error:n.error})}catch{e({loading:!1,error:"Login failed. Please try again."})}},register:async(r,t,o)=>{e({loading:!0,error:null});try{const a=await(await me.api.auth.register.$post({json:{username:r,email:t,password:o}})).json();a.success?e({loading:!1,error:null}):e({loading:!1,error:a.error})}catch{e({loading:!1,error:"Registration failed. Please try again."})}},setAuth:(r,t)=>e({token:r,isAuthenticated:!0,user:t}),setToken:r=>e({token:r,isAuthenticated:!0}),logout:()=>e({token:null,isAuthenticated:!1,user:null,error:null}),clearError:()=>e({error:null})}),{name:"auth-token"}));function or({style:e}){var n,a;const r=F(s=>s.isAuthenticated),t=F(s=>s.user),o=F(s=>s.logout);if(e==="none")return null;if(r)return e==="avatar"?u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"w-8 h-8 rounded-full bg-gray-300 flex items-center justify-center text-xs font-medium text-gray-700",children:((a=(n=t==null?void 0:t.username)==null?void 0:n[0])==null?void 0:a.toUpperCase())||"U"}),u.jsx("button",{onClick:o,className:"text-xs text-gray-400 hover:text-gray-600",children:"Sign Out"})]}):u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-sm text-gray-600",children:t==null?void 0:t.username}),u.jsx("button",{onClick:o,className:"text-xs text-gray-400 hover:text-red-500",children:"Sign Out"})]});switch(e){case"text-link":return u.jsxs(P,{to:"/login",className:"text-sm text-gray-500 hover:text-gray-900 flex items-center gap-1",children:[u.jsx(zt,{className:"w-4 h-4"}),"Login"]});case"icon":return u.jsx(P,{to:"/login",className:"text-gray-400 hover:text-gray-600",children:u.jsx(Pt,{className:"w-6 h-6"})});case"avatar":return u.jsx(P,{to:"/login",className:"text-sm text-gray-500 hover:text-gray-900",children:"Join"});case"buttons":default:return u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(P,{to:"/login",className:"px-3 py-1 text-sm bg-blue-500 text-white rounded hover:bg-blue-600",children:"Sign In"}),u.jsx(P,{to:"/register",className:"px-3 py-1 text-sm border border-gray-300 text-gray-700 rounded hover:bg-gray-50",children:"Sign Up"})]})}}const ar=({preset:e="todo",items:r,theme:t,navigation:o})=>{const n=(o==null?void 0:o.navItems)==="none"?[]:r??[],a=(t==null?void 0:t.primaryColor)??"#6366f1",s=(t==null?void 0:t.logoText)??"Biomimic",i=(o==null?void 0:o.showLogo)!==!1,l=(o==null?void 0:o.showSearch)===!0,c=(o==null?void 0:o.showCart)===!0,p=(o==null?void 0:o.authStyle)??"buttons";return u.jsx("nav",{className:"hidden md:block bg-white/80 backdrop-blur-md border-b border-gray-200 sticky top-0 z-50","data-testid":"app-nav",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 h-16 flex items-center justify-between gap-3",children:[i&&u.jsxs(K,{to:"/",className:"flex items-center gap-2 group shrink-0","data-testid":"app-title",children:[u.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center shadow-sm group-hover:shadow-md transition-shadow",style:{backgroundColor:a},children:u.jsx(qt,{className:"w-4 h-4 text-white"})}),u.jsx("span",{className:"text-lg font-semibold text-gray-900 tracking-tight whitespace-nowrap",children:s}),u.jsx(Jt,{className:"w-3.5 h-3.5 shrink-0",style:{color:a}})]}),l&&u.jsx("div",{className:"flex-1 max-w-md mx-4",children:u.jsxs("div",{className:"relative",children:[u.jsx(we,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),u.jsx("input",{type:"text",placeholder:"Search...",className:"w-full pl-10 pr-4 py-2 bg-gray-50 border border-gray-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-200 focus:border-blue-300"})]})}),u.jsx("div",{className:"flex items-center gap-0.5 overflow-x-auto flex-1 min-w-0 scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:n.map(f=>u.jsx(K,{to:f.path,"data-testid":`nav-${f.label.toLowerCase().replace(/\s+/g,"-")}-button`,className:({isActive:m})=>`px-3 py-1.5 rounded-lg text-sm font-medium transition-all duration-200 shrink-0 whitespace-nowrap ${m?"text-white":"text-gray-500 hover:text-gray-900 hover:bg-gray-50"}`,style:(({isActive:m})=>m?{backgroundColor:`${a}15`,color:a}:void 0),children:f.label},f.path))}),c&&u.jsxs(P,{to:"/cart",className:"relative text-gray-500 hover:text-gray-700 mr-2",children:[u.jsx(Se,{className:"w-5 h-5"}),u.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-red-500 text-white text-[10px] rounded-full flex items-center justify-center",children:"3"})]}),u.jsx(or,{style:p})]})})},nr=()=>u.jsxs("footer",{className:"py-8 text-center text-gray-500 text-sm border-t border-gray-200 bg-white","data-testid":"app-footer",children:[u.jsxs("p",{className:"flex items-center justify-center gap-2",children:["Built with ",u.jsx("span",{className:"font-medium text-gray-700",children:"Hono RPC"})," +"," ",u.jsx("span",{className:"font-medium text-gray-700",children:"React"})," +"," ",u.jsx("span",{className:"font-medium text-gray-700",children:"TypeScript"})]}),u.jsx("p",{className:"mt-2 text-xs text-gray-400",children:"Demonstrates: CRUD Operations | SSE (Server-Sent Events) | WebSocket"})]}),sr={Sun:Gt,Calendar:Tt,FolderKanban:jt,Compass:Ot,Puzzle:Bt,Tags:Qt,Code:St,Home:Dt,ShoppingCart:Se,Package:Ut,Hash:Lt,TrendingUp:qe,Bell:Fe,User:Be,LayoutDashboard:Pe,Settings:Ve,Search:we,PlusCircle:kt},ir=({tabs:e,theme:r})=>{const t=Le(),[o,n]=d.useState(()=>{var i;const s=e.find(l=>t.pathname.startsWith(l.path));return(s==null?void 0:s.path)||((i=e[0])==null?void 0:i.path)||""}),a=(r==null?void 0:r.primaryColor)??"#6366f1";return e.length===0?null:u.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-t border-gray-200 safe-area-inset-bottom",style:{paddingBottom:"env(safe-area-inset-bottom, 0px)"},"data-testid":"bottom-tab-bar",children:u.jsx("div",{className:"flex items-center justify-around h-16 px-2",children:e.map(s=>{const i=sr[s.icon]||Pe,l=o===s.path||t.pathname.startsWith(s.path);return u.jsxs(K,{to:s.path,onClick:()=>n(s.path),"data-testid":`bottom-tab-${s.label.toLowerCase()}`,className:`flex flex-col items-center justify-center gap-0.5 flex-1 py-1 rounded-xl transition-all duration-200 min-w-0 ${l?"":"text-gray-400 hover:text-gray-600"}`,style:{color:l?a:void 0},children:[u.jsx(i,{className:`w-5 h-5 transition-transform ${l?"scale-110":""}`}),u.jsx("span",{className:`text-[10px] font-medium leading-tight truncate w-full text-center px-1 ${l?"font-semibold":""}`,children:s.label}),l&&u.jsx("div",{className:"absolute top-0 w-8 h-0.5 rounded-full",style:{backgroundColor:a}})]},s.path)})})})},lr=({children:e,className:r="",preset:t="todo",layout:o="top-nav",theme:n,navigation:a,desktopNav:s,mobileTabs:i})=>{const l=n?{"--preset-primary":n.primaryColor,"--preset-primary-hover":n.primaryHover,"--preset-bg":n.bgColor,"--preset-text":n.textColor,"--preset-secondary-bg":n.secondaryBg,"--preset-border":n.borderColor,"--preset-radius":n.borderRadius}:void 0,c=(a==null?void 0:a.visible)!==!1,p=o==="top-nav";return u.jsxs("div",{className:`min-h-screen bg-white text-gray-900 ${r}`,style:{fontFamily:(n==null?void 0:n.fontFamily)??"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",...l,overflowX:"hidden"},"data-testid":"app-container",children:[c&&o==="top-nav"&&u.jsx(ar,{preset:t,items:s,theme:n,navigation:a}),o==="minimal"?u.jsx("main",{"data-testid":"app-main",children:e}):u.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 pb-24 md:pb-8","data-testid":"app-main",children:e}),p&&u.jsx(nr,{}),i&&i.length>0&&o!=="minimal"&&u.jsx(ir,{tabs:i,theme:n})]})},Ce=d.createContext("todo");function Er(){return d.useContext(Ce)}const cr=Ce.Provider,ur={primaryColor:"#6366f1",primaryHover:"#4f46e5",bgColor:"#ffffff",textColor:"#111827",secondaryBg:"#f9fafb",borderColor:"#e5e7eb",borderRadius:"12px",logoText:"Biomimic",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},pr={primaryColor:"#3b82f6",primaryHover:"#2563eb",bgColor:"#ffffff",textColor:"#111827",secondaryBg:"#f0f9ff",borderColor:"#bae6fd",borderRadius:"12px",logoText:"PluginHub",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},dr={primaryColor:"#f59e0b",primaryHover:"#d97706",bgColor:"#ffffff",textColor:"#111827",secondaryBg:"#fffbeb",borderColor:"#fde68a",borderRadius:"12px",logoText:"ShopMart",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},ye={primaryColor:"#10b981",primaryHover:"#059669",bgColor:"#ffffff",textColor:"#111827",secondaryBg:"#ecfdf5",borderColor:"#a7f3d0",borderRadius:"12px",logoText:"Community",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},hr={primaryColor:"#1f2937",primaryHover:"#374151",bgColor:"#f9fafb",textColor:"#111827",secondaryBg:"#f3f4f6",borderColor:"#e5e7eb",borderRadius:"8px",logoText:"AdminPanel",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"},ge={todo:{id:"todo",name:"Todo App",appType:"client",layout:"top-nav",theme:ur,navigation:{visible:!0,showLogo:!0,showSearch:!1,showCart:!1,authStyle:"none",navItems:"desktop"},desktopNav:[{label:"Todos",icon:"CheckSquare",path:"/todos"},{label:"SSE Demo",icon:"Bell",path:"/notifications"},{label:"WebSocket",icon:"Zap",path:"/websocket"}],mobileTabs:[{label:"Todos",icon:"CheckSquare",path:"/todos"},{label:"SSE",icon:"Bell",path:"/notifications"},{label:"WS",icon:"Zap",path:"/websocket"}],defaultRoute:"/todos",routes:[{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"},{path:"/register",component:d.lazy(()=>h(()=>import("./RegisterPage-Dvaf9b0e.js"),__vite__mapDeps([4,1,2,3])).then(e=>({default:e.RegisterPage}))),label:"Register"},{path:"/todos",component:d.lazy(()=>h(()=>import("./TodoPage-B7D-bl65.js"),__vite__mapDeps([5,1,2,6,3,7,8,9,10,11,12,13])).then(e=>({default:e.TodoPage}))),label:"Todos"},{path:"/notifications",component:d.lazy(()=>h(()=>import("./NotificationPage-DRkEv02s.js"),__vite__mapDeps([14,1,2,15,6,3,7,16,17,18,8,11])).then(e=>({default:e.NotificationPage}))),label:"Notifications"},{path:"/websocket",component:d.lazy(()=>h(()=>import("./WebSocketPage-CGEg6QJE.js"),__vite__mapDeps([19,1,2,6,3,7,16,11,20,21])).then(e=>({default:e.WebSocketPage}))),label:"WebSocket"}]},plugin:{id:"plugin",name:"Plugin Market",appType:"client",layout:"top-nav",theme:pr,navigation:{visible:!0,showLogo:!0,showSearch:!0,showCart:!1,authStyle:"text-link",navItems:"desktop"},desktopNav:[{label:"Discover",icon:"Compass",path:"/plugins"},{label:"Plugins",icon:"Puzzle",path:"/plugins/list"},{label:"Categories",icon:"Tags",path:"/categories"},{label:"Search",icon:"Search",path:"/search"},{label:"Publish",icon:"PlusCircle",path:"/publish"},{label:"Developer",icon:"Code",path:"/developer"}],mobileTabs:[{label:"Discover",icon:"Compass",path:"/plugins"},{label:"Plugins",icon:"Puzzle",path:"/plugins/list"},{label:"Categories",icon:"Tags",path:"/categories"},{label:"Search",icon:"Search",path:"/search"},{label:"My",icon:"User",path:"/developer"}],defaultRoute:"/plugins",routes:[{path:"/",component:d.lazy(()=>h(()=>import("./PluginsPage-DRgWLeJT.js"),__vite__mapDeps([22,1,2,23,15,6,3,7,24,13,25,26,27,28])).then(e=>({default:e.PluginsPage}))),label:"Home"},{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"},{path:"/register",component:d.lazy(()=>h(()=>import("./RegisterPage-Dvaf9b0e.js"),__vite__mapDeps([4,1,2,3])).then(e=>({default:e.RegisterPage}))),label:"Register"},{path:"/plugins",component:d.lazy(()=>h(()=>import("./PluginsPage-DRgWLeJT.js"),__vite__mapDeps([22,1,2,23,15,6,3,7,24,13,25,26,27,28])).then(e=>({default:e.PluginsPage}))),label:"Plugins"},{path:"/plugins/:slug",component:d.lazy(()=>h(()=>import("./PluginDetailPage-CWyxdVCg.js"),__vite__mapDeps([29,1,2,23,15,6,3,30,24,13,26,27])).then(e=>({default:e.PluginDetailPage}))),label:"Plugin Detail"},{path:"/categories",component:d.lazy(()=>h(()=>import("./CategoriesPage-fuYNiSmE.js"),__vite__mapDeps([31,1,2,23,6,3,7])).then(e=>({default:e.CategoriesPage}))),label:"Categories"},{path:"/search",component:d.lazy(()=>h(()=>import("./SearchPage-DvnEyswS.js"),__vite__mapDeps([32,1,2,23,15,6,3,7,13,27,28])).then(e=>({default:e.SearchPage}))),label:"Search"},{path:"/publish",component:d.lazy(()=>h(()=>import("./PublishPage-DW7yvROx.js"),__vite__mapDeps([33,1,2,23,6,3,9,12])).then(e=>({default:e.PublishPage}))),label:"Publish"},{path:"/developer",component:d.lazy(()=>h(()=>import("./DeveloperDashboardPage-_WtmbVoA.js"),__vite__mapDeps([34,1,2,23,15,6,3,7,9,10,13,26,11])).then(e=>({default:e.DeveloperDashboardPage}))),label:"Developer"},{path:"/notifications",component:d.lazy(()=>h(()=>import("./NotificationPage-DRkEv02s.js"),__vite__mapDeps([14,1,2,15,6,3,7,16,17,18,8,11])).then(e=>({default:e.NotificationPage}))),label:"Notifications"}]},ecommerce:{id:"ecommerce",name:"E-Commerce",appType:"client",layout:"top-nav",theme:dr,navigation:{visible:!0,showLogo:!0,showSearch:!0,showCart:!0,authStyle:"icon",navItems:"desktop"},desktopNav:[{label:"Home",icon:"Home",path:"/"},{label:"Products",icon:"ShoppingBag",path:"/products"},{label:"Cart",icon:"ShoppingCart",path:"/cart"},{label:"Orders",icon:"Package",path:"/orders"},{label:"Account",icon:"User",path:"/content"}],mobileTabs:[{label:"Home",icon:"Home",path:"/"},{label:"Products",icon:"ShoppingBag",path:"/products"},{label:"Cart",icon:"ShoppingCart",path:"/cart"},{label:"Orders",icon:"Package",path:"/orders"},{label:"Me",icon:"User",path:"/content"}],defaultRoute:"/",routes:[{path:"/",component:d.lazy(()=>h(()=>import("./ContentListPage-ShPxo6WG.js"),__vite__mapDeps([35,1,2,3])).then(e=>({default:e.ContentListPage}))),label:"Home"},{path:"/products",component:d.lazy(()=>h(()=>import("./ContentListPage-ShPxo6WG.js"),__vite__mapDeps([35,1,2,3])).then(e=>({default:e.ContentListPage}))),label:"Products"},{path:"/products/:id",component:d.lazy(()=>h(()=>import("./ContentDetailPage-BvvFU1Mr.js"),__vite__mapDeps([36,1,2,3])).then(e=>({default:e.ContentDetailPage}))),label:"Product Detail"},{path:"/cart",component:d.lazy(()=>h(()=>import("./CartPage-DgDZP-R5.js"),__vite__mapDeps([37,1,2,6,3,11,9,30])).then(e=>({default:e.CartPage}))),label:"Cart"},{path:"/orders",component:d.lazy(()=>h(()=>import("./OrdersPage-7I3vPWLP.js"),__vite__mapDeps([38,1,2,6,3,18,8,10])).then(e=>({default:e.OrdersPage}))),label:"Orders"},{path:"/content",component:d.lazy(()=>h(()=>import("./ContentListPage-ShPxo6WG.js"),__vite__mapDeps([35,1,2,3])).then(e=>({default:e.ContentListPage}))),label:"Content"},{path:"/content/:id",component:d.lazy(()=>h(()=>import("./ContentDetailPage-BvvFU1Mr.js"),__vite__mapDeps([36,1,2,3])).then(e=>({default:e.ContentDetailPage}))),label:"Content Detail"},{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"},{path:"/register",component:d.lazy(()=>h(()=>import("./RegisterPage-Dvaf9b0e.js"),__vite__mapDeps([4,1,2,3])).then(e=>({default:e.RegisterPage}))),label:"Register"}]},community:{id:"community",name:"Community",appType:"client",layout:"top-nav",theme:ye,navigation:{visible:!0,showLogo:!0,showSearch:!1,showCart:!1,authStyle:"avatar",navItems:"desktop"},desktopNav:[{label:"Topics",icon:"Hash",path:"/topics"},{label:"Popular",icon:"TrendingUp",path:"/popular"},{label:"Notifications",icon:"Bell",path:"/notifications"},{label:"Profile",icon:"User",path:"/profile"}],mobileTabs:[{label:"Topics",icon:"Hash",path:"/topics"},{label:"Popular",icon:"TrendingUp",path:"/popular"},{label:"Notifications",icon:"Bell",path:"/notifications"},{label:"Me",icon:"User",path:"/profile"}],defaultRoute:"/topics",routes:[{path:"/topics",component:d.lazy(()=>h(()=>import("./TopicsPage-CYCNr-mn.js"),__vite__mapDeps([39,1,2,6,3,9,20,40,25])).then(e=>({default:e.TopicsPage}))),label:"Topics"},{path:"/popular",component:d.lazy(()=>h(()=>import("./TopicsPage-CYCNr-mn.js"),__vite__mapDeps([39,1,2,6,3,9,20,40,25])).then(e=>({default:e.TopicsPage}))),label:"Popular"},{path:"/notifications",component:d.lazy(()=>h(()=>import("./NotificationPage-DRkEv02s.js"),__vite__mapDeps([14,1,2,15,6,3,7,16,17,18,8,11])).then(e=>({default:e.NotificationPage}))),label:"Notifications"},{path:"/profile",component:d.lazy(()=>h(()=>import("./ProfilePage-2FFkaii8.js"),__vite__mapDeps([41,1,2,6,3,20])).then(e=>({default:e.ProfilePage}))),label:"Profile"},{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"},{path:"/register",component:d.lazy(()=>h(()=>import("./RegisterPage-Dvaf9b0e.js"),__vite__mapDeps([4,1,2,3])).then(e=>({default:e.RegisterPage}))),label:"Register"}]},saas:{id:"saas",name:"SaaS Admin",appType:"admin",layout:"minimal",theme:hr,navigation:{visible:!1,showLogo:!1,showSearch:!1,showCart:!1,authStyle:"none",navItems:"none"},desktopNav:[{label:"Dashboard",icon:"LayoutDashboard",path:"/dashboard"},{label:"Settings",icon:"Settings",path:"/settings"}],mobileTabs:[{label:"Dashboard",icon:"LayoutDashboard",path:"/dashboard"},{label:"Settings",icon:"Settings",path:"/settings"}],defaultRoute:"/dashboard",routes:[{path:"/dashboard",component:d.lazy(()=>h(()=>import("./DashboardPage-C1rZzZo4.js"),__vite__mapDeps([42,1,2,6,3,40])).then(e=>({default:e.DashboardPage}))),label:"Dashboard"},{path:"/settings",component:d.lazy(()=>h(()=>import("./SettingsPage-IrU-L9Zr.js"),__vite__mapDeps([43,1,2,3])).then(e=>({default:e.SettingsPage}))),label:"Settings"},{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"}]},forum:{id:"community",name:"Community",appType:"client",layout:"top-nav",theme:ye,navigation:{visible:!0,showLogo:!0,showSearch:!1,showCart:!1,authStyle:"avatar",navItems:"desktop"},desktopNav:[{label:"Topics",icon:"Hash",path:"/topics"},{label:"Popular",icon:"TrendingUp",path:"/popular"},{label:"Notifications",icon:"Bell",path:"/notifications"},{label:"Profile",icon:"User",path:"/profile"}],mobileTabs:[{label:"Topics",icon:"Hash",path:"/topics"},{label:"Popular",icon:"TrendingUp",path:"/popular"},{label:"Notifications",icon:"Bell",path:"/notifications"},{label:"Me",icon:"User",path:"/profile"}],defaultRoute:"/topics",routes:[{path:"/topics",component:d.lazy(()=>h(()=>import("./TopicsPage-CYCNr-mn.js"),__vite__mapDeps([39,1,2,6,3,9,20,40,25])).then(e=>({default:e.TopicsPage}))),label:"Topics"},{path:"/popular",component:d.lazy(()=>h(()=>import("./TopicsPage-CYCNr-mn.js"),__vite__mapDeps([39,1,2,6,3,9,20,40,25])).then(e=>({default:e.TopicsPage}))),label:"Popular"},{path:"/notifications",component:d.lazy(()=>h(()=>import("./NotificationPage-DRkEv02s.js"),__vite__mapDeps([14,1,2,15,6,3,7,16,17,18,8,11])).then(e=>({default:e.NotificationPage}))),label:"Notifications"},{path:"/profile",component:d.lazy(()=>h(()=>import("./ProfilePage-2FFkaii8.js"),__vite__mapDeps([41,1,2,6,3,20])).then(e=>({default:e.ProfilePage}))),label:"Profile"},{path:"/login",component:d.lazy(()=>h(()=>import("./LoginPage-CjeQqDdO.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.LoginPage}))),label:"Login"},{path:"/register",component:d.lazy(()=>h(()=>import("./RegisterPage-Dvaf9b0e.js"),__vite__mapDeps([4,1,2,3])).then(e=>({default:e.RegisterPage}))),label:"Register"}]}},fr={forum:"community","xbrowser-marketplace":"plugin","fullstack-admin":"saas","todo-app":"todo"};function mr(e){const r=fr[e]??e;return ge[r]??ge.todo}const yr=({presetId:e="todo"})=>{const r=mr(e),{theme:t,desktopNav:o,mobileTabs:n,defaultRoute:a,routes:s,layout:i,navigation:l}=r;return u.jsx(Ne,{children:u.jsx(cr,{value:e,children:u.jsx(lr,{preset:e,layout:i,theme:t,navigation:l,desktopNav:o,mobileTabs:n,children:u.jsxs(De,{children:[a!=="/"&&u.jsx(D,{path:"/",element:u.jsx(Me,{to:a,replace:!0})}),s.filter(c=>c.component!==null).map(c=>u.jsx(D,{path:c.path,element:u.jsx(c.component,{})},c.path)),u.jsx(D,{path:"*",element:u.jsx("div",{className:"flex items-center justify-center min-h-[50vh] text-gray-400",children:"404 - Page not found"})})]})})})})},gr="todo";var be;try{const e=localStorage.getItem("auth-token"),r=e?JSON.parse(e):null;(be=r==null?void 0:r.state)!=null&&be.token||localStorage.setItem("auth-token",JSON.stringify({state:{token:"user-token",isAuthenticated:!0,user:{id:"user-1",username:"Demo User",role:"USER"},loading:!1,error:null},version:0}))}catch{localStorage.setItem("auth-token",JSON.stringify({state:{token:"user-token",isAuthenticated:!0,user:{id:"user-1",username:"Demo User",role:"USER"},loading:!1,error:null},version:0}))}y.lazy(()=>h(()=>import("./App-BpFUIC-5.js"),__vite__mapDeps([44,1,2,45,46,3,17,8,18,47,10,21,25,9])).then(e=>({default:e.App})));const br=()=>u.jsx(Ae,{children:u.jsx(yr,{presetId:gr})});He.createRoot(document.getElementById("root")).render(u.jsx(y.StrictMode,{children:u.jsx(br,{})}));typeof window<"u"&&requestAnimationFrame(()=>{setTimeout(()=>{document.dispatchEvent(new CustomEvent("prerender-ready"))},100)});export{Tt as C,Tr as H,zt as L,Ut as P,qt as R,Jt as S,Er as a,me as b,we as c,F as u};
|