@karan171996/metricflow 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9._.js +1 -1
- package/.next/build/chunks/{node_modules__pnpm_0x15692._.js → node_modules__pnpm_1x2anb_._.js} +3 -3
- package/.next/build-manifest.json +6 -6
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +5 -33
- package/.next/server/app/_global-error/page/build-manifest.json +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +7 -7
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/build-manifest.json +3 -3
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +39 -44
- package/.next/server/app/_not-found.segments/_full.segment.rsc +39 -44
- package/.next/server/app/_not-found.segments/_index.segment.rsc +30 -35
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +7 -7
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/analyze/route.js +2 -2
- package/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/server/app/api/connect/route.js +2 -2
- package/.next/server/app/api/connect/route.js.nft.json +1 -1
- package/.next/server/app/api/health/route.js.nft.json +1 -1
- package/.next/server/app/api/metrics/route.js +2 -2
- package/.next/server/app/api/metrics/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/route.js +2 -1
- package/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/ai/route.js +2 -2
- package/.next/server/app/api/setup/ai/route.js.nft.json +1 -1
- package/.next/server/app/api/setup/route.js +2 -2
- package/.next/server/app/api/setup/route.js.nft.json +1 -1
- package/.next/server/app/api/timings/route.js +2 -2
- package/.next/server/app/api/timings/route.js.nft.json +1 -1
- package/.next/server/app/connect/page/build-manifest.json +3 -3
- package/.next/server/app/connect/page.js +1 -1
- package/.next/server/app/connect/page.js.nft.json +1 -1
- package/.next/server/app/connect/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connect.html +4 -4
- package/.next/server/app/connect.rsc +40 -45
- package/.next/server/app/connect.segments/_full.segment.rsc +40 -45
- package/.next/server/app/connect.segments/_index.segment.rsc +30 -35
- package/.next/server/app/connect.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/connect.segments/connect/__PAGE__.segment.rsc +12 -12
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +40 -45
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -7
- package/.next/server/app/index.segments/_full.segment.rsc +40 -45
- package/.next/server/app/index.segments/_index.segment.rsc +30 -35
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page/build-manifest.json +3 -3
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/[slug]/page/build-manifest.json +3 -3
- package/.next/server/app/performance/[slug]/page.js +3 -3
- package/.next/server/app/performance/[slug]/page.js.nft.json +1 -1
- package/.next/server/app/performance/[slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance/page/build-manifest.json +3 -3
- package/.next/server/app/performance/page.js +1 -1
- package/.next/server/app/performance/page.js.nft.json +1 -1
- package/.next/server/app/performance/page_client-reference-manifest.js +1 -1
- package/.next/server/app/performance.html +2 -2
- package/.next/server/app/performance.rsc +47 -58
- package/.next/server/app/performance.segments/_full.segment.rsc +47 -58
- package/.next/server/app/performance.segments/_index.segment.rsc +30 -35
- package/.next/server/app/performance.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/performance.segments/performance/__PAGE__.segment.rsc +17 -23
- package/.next/server/app/settings/page/build-manifest.json +3 -3
- package/.next/server/app/settings/page.js +2 -2
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup/page/build-manifest.json +3 -3
- package/.next/server/app/setup/page.js +1 -1
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup.html +2 -2
- package/.next/server/app/setup.rsc +41 -46
- package/.next/server/app/setup.segments/_full.segment.rsc +41 -46
- package/.next/server/app/setup.segments/_index.segment.rsc +30 -35
- package/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +13 -13
- package/.next/server/app/tools/[tool]/page/build-manifest.json +3 -3
- package/.next/server/app/tools/[tool]/page.js +2 -2
- package/.next/server/app/tools/[tool]/page.js.nft.json +1 -1
- package/.next/server/app/tools/[tool]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0086g9z._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05mqvyo._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0dv0ig6._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0fkj1-q._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ui-otz._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0urnrab._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__1f_fo0j._.js → [root-of-the-server]__0wkeqwu._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0o2ceqr._.js → [root-of-the-server]__0xy2rkf._.js} +2 -2
- package/.next/server/chunks/_0j7t8f9._.js +3 -0
- package/.next/server/chunks/node_modules__pnpm_1qoj6e0._.js +8 -0
- package/.next/server/chunks/ssr/0hs5_cn_dist_index_1l1fs8y.js +3 -0
- package/.next/server/chunks/ssr/0x0c_next_dist_03da18h._.js +2 -2
- package/.next/server/chunks/ssr/0x0c_next_dist_0lkq344._.js +1 -1
- package/.next/server/chunks/ssr/0x0c_next_dist_1icgwks._.js +1 -1
- package/.next/server/chunks/ssr/0x0c_next_dist_client_components_1z4ahr3._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__02c3m72._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0kik87u._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0tikq3c._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1jyq1xk._.js +3 -0
- package/.next/server/chunks/ssr/_03vzzge._.js +3 -0
- package/.next/server/chunks/ssr/_05t4klq._.js +151 -0
- package/.next/server/chunks/ssr/_0_8ffmk._.js +3 -0
- package/.next/server/chunks/ssr/_0aid3rp._.js +23 -0
- package/.next/server/chunks/ssr/_0n2v1-f._.js +3 -0
- package/.next/server/chunks/ssr/_0ovnhv_._.js +3 -0
- package/.next/server/chunks/ssr/_0r3_nx1._.js +3 -0
- package/.next/server/chunks/ssr/{_0cq6qjs._.js → _1-c62g-._.js} +2 -2
- package/.next/server/chunks/ssr/_13m9nev._.js +1 -1
- package/.next/server/chunks/ssr/_15jjw6y._.js +6 -0
- package/.next/server/chunks/ssr/_1m21xmc._.js +3 -0
- package/.next/server/chunks/ssr/_1op3e_1._.js +3 -0
- package/.next/server/chunks/ssr/_1u-atbb._.js +3 -0
- package/.next/server/chunks/ssr/{_0bxxvzb._.js → _1vj5488._.js} +2 -2
- package/.next/server/chunks/ssr/components_1_8btz1._.js +1 -1
- package/.next/server/chunks/ssr/node_modules__pnpm_1nkgz3w._.js +3 -0
- package/.next/server/middleware-build-manifest.js +6 -6
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/prefetch-hints.json +0 -14
- package/.next/static/chunks/08mon8yjj189v.js +1 -0
- package/.next/static/chunks/0_gj-5u7ifqf4.js +1 -0
- package/.next/static/chunks/0qyqgoivxmfa9.js +1 -0
- package/.next/static/chunks/{2k11j1snr6r1u.js → 0vpb-2i9p8zhe.js} +1 -1
- package/.next/static/chunks/0y_7csdv76zje.js +1 -0
- package/.next/static/chunks/1-e3y5w9yuttx.js +1 -0
- package/.next/static/chunks/1yf_zdc606yo0.js +4 -0
- package/.next/static/chunks/2-_lp05t5zcjb.js +1 -0
- package/.next/static/chunks/{3fmhqgzb47j23.js → 21q5shbghrpvd.js} +1 -1
- package/.next/static/chunks/24b86benpq6o_.css +1 -0
- package/.next/static/chunks/{2dpz7gbtyu5go.js → 287u55qyslbe_.js} +1 -1
- package/.next/static/chunks/{2pf7wdwyhi6ks.js → 2ez5lwfhls4_u.js} +1 -1
- package/.next/static/chunks/{1habrj18124lo.js → 2gp4docstg2a8.js} +1 -1
- package/.next/static/chunks/3u-yh5wnxswb0.js +1 -0
- package/.next/static/chunks/{44rowux-iee-x.js → 3vpvl6gwhuz4w.js} +1 -1
- package/.next/static/chunks/{turbopack-00gi3z1duuih6.js → turbopack-2-umre2j9nu7o.js} +1 -1
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/README.md +9 -0
- package/package.json +15 -15
- package/.next/server/app/settings.html +0 -2
- package/.next/server/app/settings.meta +0 -35
- package/.next/server/app/settings.rsc +0 -60
- package/.next/server/app/settings.segments/_full.segment.rsc +0 -60
- package/.next/server/app/settings.segments/_index.segment.rsc +0 -35
- package/.next/server/app/settings.segments/_tree.segment.rsc +0 -2
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +0 -43
- package/.next/server/chunks/[root-of-the-server]__0pil1g6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__18s35pf._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1naf7j4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1rx5s6r._.js +0 -3
- package/.next/server/chunks/node_modules__pnpm_0qgcly_._.js +0 -8
- package/.next/server/chunks/ssr/0f2__cn_dist_index_1jh2egc.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1jr0qvs._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1xhr2zy._.js +0 -3
- package/.next/server/chunks/ssr/_02_o-ya._.js +0 -6
- package/.next/server/chunks/ssr/_045bvlq._.js +0 -3
- package/.next/server/chunks/ssr/_0_02db6._.js +0 -3
- package/.next/server/chunks/ssr/_0htqt7_._.js +0 -23
- package/.next/server/chunks/ssr/_0ompurr._.js +0 -7
- package/.next/server/chunks/ssr/_0un641_._.js +0 -3
- package/.next/server/chunks/ssr/_10-bhov._.js +0 -151
- package/.next/server/chunks/ssr/_19s4g71._.js +0 -3
- package/.next/server/chunks/ssr/_1n6rdd2._.js +0 -3
- package/.next/server/chunks/ssr/node_modules__pnpm_0o-aqpb._.js +0 -3
- package/.next/static/chunks/036zzfotyi252.js +0 -1
- package/.next/static/chunks/18thq9ido-jej.js +0 -5
- package/.next/static/chunks/190rvtbj8tqbw.js +0 -1
- package/.next/static/chunks/1kqzgl2gb6ily.js +0 -1
- package/.next/static/chunks/2k0i-ii_d9i1v.js +0 -1
- package/.next/static/chunks/2ts5849lckpvw.js +0 -4
- package/.next/static/chunks/31od3fbrskb5_.js +0 -1
- package/.next/static/chunks/342os69xzg5nr.js +0 -1
- package/.next/static/chunks/41hd4j26grz8n.css +0 -1
- /package/.next/static/{tLjq-FpU0cC-ZxNdszo7D → GVE2T1XZpK2w4phBvG0Q0}/_buildManifest.js +0 -0
- /package/.next/static/{tLjq-FpU0cC-ZxNdszo7D → GVE2T1XZpK2w4phBvG0Q0}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{tLjq-FpU0cC-ZxNdszo7D → GVE2T1XZpK2w4phBvG0Q0}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
module.exports=[3613,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(40695),e=a.i(60663);let f={name:"cloud-download",size:24,node:[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],aliases:["download-cloud"]};f.node;let g=(0,e.default)(f),h={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};h.node;let i=(0,e.default)(h);a.s(["ExportSettings",0,function(){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md mt-6",children:[(0,b.jsxs)(c.CardHeader,{children:[(0,b.jsx)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"Export Settings"}),(0,b.jsx)(c.CardDescription,{className:"text-sm text-gray-400",children:"Download your complete configuration or raw performance metrics."})]}),(0,b.jsx)(c.CardContent,{children:(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsxs)(d.Button,{variant:"outline",className:"border-[#2d3748] bg-transparent text-gray-300 hover:bg-white/10 hover:text-white flex items-center gap-2",children:[(0,b.jsx)(g,{className:"h-4 w-4"}),"Export as CSV"]}),(0,b.jsxs)(d.Button,{variant:"outline",className:"border-[#2d3748] bg-transparent text-gray-300 hover:bg-white/10 hover:text-white flex items-center gap-2",children:[(0,b.jsx)(i,{className:"h-4 w-4"}),"Export as JSON"]})]})})]})}],3613)},84997,a=>{"use strict";var b=a.i(47350),c=a.i(3130);a.s([],90389),a.i(90389);var d=a.i(75086),e=a.i(49064),f=a.i(15506),g=a.i(43014),h=a.i(77127),i=a.i(85836),j=a.i(39128),k=a.i(24437),l=a.i(49305),m=a.i(71409);let n=d.createContext(void 0),o={...a.i(6717).fieldValidityMapping,checked:a=>a?{"data-checked":""}:{"data-unchecked":""}};var p=a.i(93810),q=a.i(80467),r=a.i(68956),s=a.i(59558),t=a.i(17173),u=a.i(5771),v=a.i(37177),w=a.i(5159),x=a.i(35549),y=a.i(85934);let z=d.forwardRef(function(a,c){let{checked:m,className:z,defaultChecked:A,"aria-labelledby":B,form:C,id:D,inputRef:E,name:F,nativeButton:G=!1,onCheckedChange:H,readOnly:I=!1,required:J=!1,disabled:K=!1,render:L,uncheckedValue:M,value:N,style:O,...P}=a,{clearErrors:Q}=(0,t.useFormContext)(),{state:R,setTouched:S,setDirty:T,validityData:U,setFilled:V,validationMode:W,disabled:X,name:Y,validation:Z}=(0,q.useFieldRootContext)(),{labelId:$}=(0,u.useLabelableContext)(),_=X||K,aa=Y??F,ab=d.useRef(null),ac=(0,f.useMergedRefs)(ab,E,Z.inputRef),ad=d.useRef(null),ae=(0,r.useSetFieldFocused)(_,ad),af=(0,k.useBaseUiId)(),ag=(0,v.useLabelableId)({id:D}),ah=G?void 0:ag,[ai,aj]=(0,e.useControlled)({controlled:m,default:!!A,name:"Switch",state:"checked"});(0,s.useRegisterFieldControl)(ad,af,ai,void 0,!_,F),(0,g.useIsoLayoutEffect)(()=>{V(ai)},[ai,V]),(0,y.useValueChanged)(ai,()=>{Q(aa),T(ai!==U.initialValue),Z.change(ai)});let{getButtonProps:ak,buttonRef:al}=(0,l.useButton)({disabled:_,native:G}),am=function(a,b,c,e=!0,f,h){let[i,j]=d.useState(),l=(0,k.useBaseUiId)(f?`${f}-label`:void 0),m=!!h?.trim(),n=m?void 0:b,o=a??n??i;return(0,g.useIsoLayoutEffect)(()=>{let d=a||b||m||!e?void 0:function(a,b){let c=function(a){if(!a)return;let b=a.parentElement;if(b&&"LABEL"===b.tagName)return b;let c=a.id;if(c){let b=a.nextElementSibling;if(b&&b.htmlFor===c)return b}let d=a.labels;return d&&d[0]}(a);if(c)return!c.id&&b&&(c.id=b),c.id||void 0}(c.current,l);i!==d&&j(d)}),o}(B,$,ab,!G,ah,P["aria-label"]),an={...Z.getValidationProps(_),checked:ai,disabled:_,form:C,id:ah,name:aa,required:J,style:aa?h.visuallyHiddenInput:h.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ac,onChange(a){if(a.nativeEvent.defaultPrevented)return;if(I)return void a.preventDefault();let b=a.currentTarget.checked,c=(0,w.createChangeEventDetails)(x.REASONS.none,a.nativeEvent);H?.(b,c),c.isCanceled||aj(b)},onClick(a){a.stopPropagation()},onFocus(){ad.current?.focus()},...void 0!==N?{value:N}:i.EMPTY_OBJECT},ao=d.useMemo(()=>({...R,checked:ai,disabled:_,readOnly:I,required:J}),[R,ai,_,I,J]),ap=(0,j.useRenderElement)("span",a,{state:ao,ref:[c,ad,al],props:[{id:G?ag:af,role:"switch","aria-checked":ai,"aria-readonly":I||void 0,"aria-required":J||void 0,"aria-labelledby":am,onFocus(){ae(!0)},onBlur(){let a=ab.current;a&&!_&&(S(!0),ae(!1),"onBlur"===W&&Z.commit(a.checked))},onClick(a){if(I||_)return;a.preventDefault();let b=ab.current;b&&(0,p.dispatchClickWithModifiers)(b,a)}},P,ak,a=>Z.getValidationProps(_,a)],stateAttributesMapping:o});return(0,b.jsxs)(n.Provider,{value:ao,children:[ap,!ai&&aa&&void 0!==M&&(0,b.jsx)("input",{type:"hidden",form:C,name:aa,value:M,disabled:_}),(0,b.jsx)("input",{...an,suppressHydrationWarning:!0})]})}),A=d.forwardRef(function(a,b){let{render:c,className:e,style:f,...g}=a,h=function(){let a=d.useContext(n);if(void 0===a)throw Error((0,m.default)(63));return a}();return(0,j.useRenderElement)("span",a,{state:h,ref:b,stateAttributesMapping:o,props:g})});a.s(["Root",0,z,"Thumb",0,A],5060);var B=a.i(5060),B=B,C=a.i(75540);function D({className:a,size:c="default",...d}){return(0,b.jsx)(B.Root,{"data-slot":"switch","data-size":c,className:(0,C.cn)("peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",a),...d,children:(0,b.jsx)(B.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}var E=a.i(17171),F=a.i(54161),G=a.i(60663);let H={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};H.node;let I=(0,G.default)(H);var J=a.i(70834);a.s(["NotificationPrefs",0,function(){let a=(0,J.useNotificationPrefs)();return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md mb-6",children:[(0,b.jsxs)(c.CardHeader,{children:[(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(I,{className:"h-5 w-5 text-gray-400"}),"Notification Preferences"]}),(0,b.jsx)(c.CardDescription,{className:"text-sm text-gray-400",children:"Choose where and how you want to be alerted when thresholds are breached."})]}),(0,b.jsxs)(c.CardContent,{className:"space-y-6 max-w-lg",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsx)(E.Label,{className:"text-gray-300 text-sm",children:"In-app Alert"}),(0,b.jsx)("p",{className:"text-xs text-gray-500",children:"Show a banner on the dashboard when a page is over a limit."})]}),(0,b.jsx)(D,{checked:a.alert,onCheckedChange:a=>(0,J.setNotificationPrefs)({alert:a})})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsxs)(E.Label,{className:"text-gray-300 text-sm",children:["Email Alerts",(0,b.jsx)(F.Badge,{variant:"outline",className:"ml-2 text-[10px] text-gray-400",children:"Coming soon"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-500",children:"Receive reports and alerts to your primary email."})]}),(0,b.jsx)(D,{checked:!1,disabled:!0})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsxs)(E.Label,{className:"text-gray-300 text-sm",children:["Slack Integration",(0,b.jsx)(F.Badge,{variant:"outline",className:"ml-2 text-[10px] text-gray-400",children:"Coming soon"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-500",children:"Push critical alerts directly to a configured Slack channel."})]}),(0,b.jsx)(D,{checked:!1,disabled:!0})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"space-y-0.5",children:[(0,b.jsxs)(E.Label,{className:"text-gray-300 text-sm",children:["SMS Alerts",(0,b.jsx)(F.Badge,{variant:"outline",className:"ml-2 text-[10px] text-gray-400",children:"Coming soon"})]}),(0,b.jsx)("p",{className:"text-xs text-gray-500",children:"Get text messages for immediate downtime incidents."})]}),(0,b.jsx)(D,{checked:!1,disabled:!0})]})]})]})}],84997)},3682,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(40695),e=a.i(88237),f=a.i(54161),g=a.i(60663);let h={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};h.node;let i=(0,g.default)(h),j={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};j.node;let k=(0,g.default)(j),l=[{name:"Alice Freeman",email:"alice@company.com",role:"Admin",status:"Active"},{name:"Bob Smith",email:"bob@company.com",role:"Developer",status:"Active"},{name:"Charlie Davis",email:"charlie@company.com",role:"Viewer",status:"Invited"}];a.s(["TeamMembers",0,function(){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:[(0,b.jsxs)(c.CardHeader,{className:"flex flex-row items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(i,{className:"h-5 w-5 text-gray-400"}),"Team Members"]}),(0,b.jsx)(c.CardDescription,{className:"text-sm text-gray-400 mt-1",children:"Manage who has access to your performance dashboard."})]}),(0,b.jsxs)(d.Button,{className:"bg-[#3ee0a1] text-black hover:bg-[#3ee0a1]/80 flex items-center gap-2",children:[(0,b.jsx)(k,{className:"h-4 w-4"}),"Invite"]})]}),(0,b.jsx)(c.CardContent,{children:(0,b.jsx)("div",{className:"rounded-md border border-[#2d3748] overflow-hidden",children:(0,b.jsxs)(e.Table,{children:[(0,b.jsx)(e.TableHeader,{className:"bg-[#0f1419]",children:(0,b.jsxs)(e.TableRow,{className:"border-[#2d3748] hover:bg-transparent",children:[(0,b.jsx)(e.TableHead,{className:"text-gray-400",children:"Name"}),(0,b.jsx)(e.TableHead,{className:"text-gray-400",children:"Email"}),(0,b.jsx)(e.TableHead,{className:"text-gray-400",children:"Role"}),(0,b.jsx)(e.TableHead,{className:"text-right text-gray-400",children:"Status"})]})}),(0,b.jsx)(e.TableBody,{children:l.map(a=>(0,b.jsxs)(e.TableRow,{className:"border-[#2d3748] hover:bg-white/5 transition-colors",children:[(0,b.jsx)(e.TableCell,{className:"font-medium text-white",children:a.name}),(0,b.jsx)(e.TableCell,{className:"text-gray-400",children:a.email}),(0,b.jsx)(e.TableCell,{className:"text-gray-400",children:a.role}),(0,b.jsx)(e.TableCell,{className:"text-right",children:(0,b.jsx)(f.Badge,{variant:"outline",className:`
|
|
2
|
+
${"Active"===a.status?"border-[#3ee0a1] text-[#3ee0a1] bg-[#3ee0a1]/10":""}
|
|
3
|
+
${"Invited"===a.status?"border-[#f59e0b] text-[#f59e0b] bg-[#f59e0b]/10":""}
|
|
4
|
+
`,children:a.status})})]},a.email))})]})})})]})}],3682)},91654,a=>{"use strict";var b,c=a.i(47350),d=a.i(66219),e=a.i(3130);a.s([],70011),a.i(70011);var f=a.i(75086),g=a.i(7589),h=a.i(49064),i=a.i(65489),j=a.i(43014),k=a.i(47079);function l(a,b,c=Object.is){let{length:d}=a;if(d!==b.length)return!1;for(let e=0;e<d;e+=1)if(!c(a[e],b[e]))return!1;return!0}var m=a.i(5159),n=a.i(85934),o=a.i(24437),p=a.i(39128),q=a.i(30253),r=a.i(23055),s=a.i(80467),t=a.i(59558),u=a.i(17173),v=a.i(5771);function w(a,b){return a-b}function x(a,b,c,d,e,f){let g=(0,k.clamp)(a,c,d);if(!e)return g;let h=f.slice();return h[b]=(0,k.clamp)(g,f[b-1]??-1/0,f[b+1]??1/0),h.sort(w)}function y(a,b,c){if(!Array.isArray(a))return!0;let d=b*c;for(let b=0;b<a.length-1;b+=1)if(!(Math.abs(a[b]-a[b+1])>=d))return!1;return!0}var z=a.i(6717);let A=()=>null,B={activeThumbIndex:A,max:A,min:A,minStepsBetweenValues:A,step:A,values:A,...z.fieldValidityMapping};var C=a.i(71409);let D=f.createContext(void 0);function E(){let a=f.useContext(D);if(void 0===a)throw Error((0,C.default)(62));return a}var F=a.i(35549);let G=f.forwardRef(function(a,b){let{"aria-labelledby":d,className:e,defaultValue:z,disabled:A=!1,id:C,format:E,largeStep:G=10,locale:H,render:I,max:J=100,min:K=0,minStepsBetweenValues:L=0,form:M,name:N,onValueChange:O,onValueCommitted:P,orientation:Q="horizontal",step:R=1,thumbCollisionBehavior:S="push",thumbAlignment:T="center",value:U,style:V,...W}=a,X=(0,o.useBaseUiId)(C),Y=null==X?void 0:`${X}-label`,Z=(0,i.useStableCallback)(O),$=(0,i.useStableCallback)(P),{clearErrors:_}=(0,u.useFormContext)(),{state:aa,disabled:ab,name:ac,setTouched:ad,setDirty:ae,validityData:af,validation:ag}=(0,s.useFieldRootContext)(),{labelId:ah}=(0,v.useLabelableContext)(),[ai,aj]=f.useState(),ak=d??ah??ai,al=ab||A,am=ac??N,[an,ao]=(0,h.useControlled)({controlled:U,default:z??K,name:"Slider"}),ap=f.useRef(null),aq=f.useRef(null),ar=f.useRef([]),as=f.useRef(null),at=f.useRef(-1),au=f.useRef(null),av=f.useRef(F.REASONS.none),[aw,ax]=f.useState(-1),[ay,az]=f.useState(-1),[aA,aB]=f.useState(!1),[aC,aD]=f.useState(()=>new Map),[aE,aF]=f.useState([void 0,void 0]),aG=(0,i.useStableCallback)(a=>{ax(a),-1!==a&&az(a)}),aH=(0,i.useStableCallback)(a=>{a&&(aq.current=a)}),aI=Array.isArray(an),aJ=f.useMemo(()=>aI?an.map(a=>(0,k.clamp)(a,K,J)).sort(w):[(0,k.clamp)(an,K,J)],[J,K,aI,an]),aK=aI?aJ:aJ[0];(0,t.useRegisterFieldControl)(ag.inputRef,X,aK,void 0,!al,N),(0,n.useValueChanged)(aK,()=>{_(am),ag.change(aK);let a=af.initialValue;ae(Array.isArray(aK)&&Array.isArray(a)?!l(aK,a):aK!==a)});let aL=(0,i.useStableCallback)((a,b)=>{var c,d;if(Number.isNaN(a)||(c=a)===(d=an)||Array.isArray(c)&&Array.isArray(d)&&l(c,d))return!1;let e=b.event,f=new e.constructor(e.type,e);return Object.defineProperty(f,"target",{writable:!0,value:{value:a,name:am}}),b.event=f,Z(a,b),!b.isCanceled&&(av.current=b.reason,ao(a),!0)}),aM=(0,i.useStableCallback)((a,b,c)=>{let d=x(a,b,K,J,aI,aJ);if(y(d,R,L)){let a="key"in c?F.REASONS.keyboard:F.REASONS.inputChange,e=aL(d,(0,m.createChangeEventDetails)(a,c.nativeEvent,void 0,{activeThumbIndex:b}));ad(!0),e&&$(d,(0,m.createGenericEventDetails)(a,c.nativeEvent))}});(0,j.useIsoLayoutEffect)(()=>{if(!al)return;let a=(0,q.activeElement)((0,g.ownerDocument)(ap.current));(0,q.contains)(ap.current,a)&&a.blur(),-1!==aw&&aG(-1)},[aw,al,aG]);let aN=f.useMemo(()=>({...aa,activeThumbIndex:aw,disabled:al,dragging:aA,orientation:Q,max:J,min:K,minStepsBetweenValues:L,step:R,values:aJ}),[aa,aw,al,aA,J,K,L,Q,R,aJ]),aO=f.useMemo(()=>({active:aw,controlRef:aq,disabled:al,dragging:aA,validation:ag,format:E,handleInputChange:aM,indicatorPosition:aE,inset:"center"!==T,isArrayValue:aI,labelId:ak,rootLabelId:Y,largeStep:G,lastUsedThumbIndex:ay,lastChangeReasonRef:av,form:M,locale:H,max:J,min:K,minStepsBetweenValues:L,name:am,onValueCommitted:$,orientation:Q,pressedThumbCenterOffsetRef:as,pressedThumbIndexRef:at,pressedValuesRef:au,registerFieldControlRef:aH,renderBeforeHydration:"edge"===T,setActive:aG,setDragging:aB,setIndicatorPosition:aF,setLabelId:aj,setValue:aL,state:aN,step:R,thumbCollisionBehavior:S,thumbMap:aC,thumbRefs:ar,values:aJ}),[aw,ak,Y,al,aA,ag,E,aM,aE,G,ay,M,H,J,K,L,am,$,Q,aI,aH,aG,aL,aN,R,S,T,aC,aJ]),aP=(0,p.useRenderElement)("div",a,{state:aN,ref:[b,ap],props:[{"aria-labelledby":ak,id:X,role:"group"},W,a=>ag.getValidationProps(al,a)],stateAttributesMapping:B});return(0,c.jsx)(D.Provider,{value:aO,children:(0,c.jsx)(r.CompositeList,{elementsRef:ar,onMapChange:aD,children:aP})})});var H=a.i(59907),I=a.i(27243);let J=f.forwardRef(function(a,b){let{render:c,className:d,style:e,...f}=a;delete f.id;let{state:g,setLabelId:h,controlRef:i,rootLabelId:j}=E(),k=(0,I.useLabel)({id:j,setLabelId:h,focusControl:function(a,b){if(b){let c=(0,I.getControlById)(a.currentTarget,b);if((0,H.isHTMLElement)(c))return void(0,I.focusElementWithVisible)(c)}let c=i.current?.querySelectorAll('input[type="range"]'),d=c?.length===1?c[0]:null;(0,H.isHTMLElement)(d)&&(0,I.focusElementWithVisible)(d)}});return(0,p.useRenderElement)("div",a,{ref:b,state:g,props:[k,f],stateAttributesMapping:B})}),K=new Map;function L(a,b,c){return null==a?"":(function(a,b){let c=JSON.stringify({locale:function a(b){return Array.isArray(b)?b.map(b=>a(b)).join(","):null==b?"":String(b)}(a),options:b}),d=K.get(c);if(d)return d;let e=new Intl.NumberFormat(a,b);return K.set(c,e),e})(b,c).format(a)}let M=f.forwardRef(function(a,b){let{"aria-live":c="off",render:d,className:e,children:g,style:h,...i}=a,{thumbMap:j,state:k,values:l,format:m,locale:n}=E(),o=Array.from(j.values(),({inputId:a})=>a).join(" ").trim()||void 0,q=f.useMemo(()=>l.map(a=>L(a,n,m)),[m,n,l]),r=q.join(" – ");return(0,p.useRenderElement)("output",a,{state:k,ref:b,props:[{"aria-live":c,children:"function"==typeof g?g(q,l):r,htmlFor:o},i],stateAttributesMapping:B})});var N=a.i(7341),O=a.i(33056),P=a.i(94891),Q=a.i(83613),R=a.i(77385);function S(a,b){let c=a.getBoundingClientRect();return b?(c.top+c.bottom)/2:(c.left+c.right)/2}function T(a){if(0===a)return 0;if(1>Math.abs(a)){let b=a.toExponential().split("e-"),c=b[0].split(".")[1];return(c?c.length:0)+parseInt(b[1],10)}let b=a.toString().split(".")[1];return b?b.length:0}function U(a,b,c){return Number((Math.round((a-c)/b)*b+c).toFixed(Math.max(T(b),T(c))))}function V(a,b,c,d,e,f,g,h){let i=a.slice(),j=f*g,l=i.length-1,m=h??a;i[b]=(0,k.clamp)(c,d+b*j,e-(l-b)*j);for(let a=b+1;a<=l;a+=1){let b=i[a-1]+j,c=e-(l-a)*j,d=m[a],f=Math.max(i[a],b);d<f&&(f=Math.max(d,b)),i[a]=(0,k.clamp)(f,b,c)}for(let a=b-1;a>=0;a-=1){let b=i[a+1]-j,c=d+a*j,e=m[a],f=Math.min(i[a],b);e>f&&(f=Math.min(e,b)),i[a]=(0,k.clamp)(f,c,b)}for(let a=0;a<=l;a+=1)i[a]=Number(i[a].toFixed(12));return i}function W(a,b){if(null!=b.current&&a.changedTouches){for(let c=0;c<a.changedTouches.length;c+=1){let d=a.changedTouches[c];if(d.identifier===b.current)return{x:d.clientX,y:d.clientY}}return null}return{x:a.clientX,y:a.clientY}}let X=f.forwardRef(function(a,b){let{render:c,className:d,style:e,...h}=a,{disabled:j,dragging:l,inset:n,isArrayValue:o,lastChangeReasonRef:r,max:s,min:t,minStepsBetweenValues:u,onValueCommitted:v,orientation:w,pressedThumbCenterOffsetRef:x,pressedThumbIndexRef:z,pressedValuesRef:A,registerFieldControlRef:C,renderBeforeHydration:D,setActive:G,setDragging:I,setValue:J,state:K,step:L,thumbCollisionBehavior:M,thumbRefs:T,values:X}=E(),Y=(0,R.useDirection)(),Z=X.length>1,$="vertical"===w,_=f.useRef(null),aa=f.useRef(null),ab=(0,i.useStableCallback)(a=>{a&&null==aa.current&&(aa.current=(0,O.ownerWindow)(a).getComputedStyle(a))}),ac=f.useRef(null),ad=f.useRef(0),ae=f.useRef(0),af=f.useRef(null),ag=f.useRef(!1),ah=(0,Q.useValueAsRef)(X);function ai(a){return a?.querySelector('input[type="range"]')}function aj(a){z.current=a,T.current[a]||(x.current=null)}function ak(){z.current=-1,x.current=null}function al(a){return!!(0,H.isElement)(a)&&T.current.some(b=>!!(0,H.isElement)(b)&&!!(0,q.contains)(b,a)&&ai(b)?.disabled===!0)}function am(a){let b=_.current,c=z.current;if(!b||c<0||c>=X.length)return c>=X.length&&(af.current=null),null;let{width:d,height:e,bottom:f,left:g,right:h}=b.getBoundingClientRect(),i=function(a,b){if(!a)return{start:0,end:0};function c(a){let b=null!=a?parseFloat(a):0;return Number.isNaN(b)?0:b}let d=b?"Top":"InlineStart",e=b?"Bottom":"InlineEnd";return{start:c(a[`border${d}Width`])+c(a[`padding${d}`]),end:c(a[`border${e}Width`])+c(a[`padding${e}`])}}(aa.current,$),j=ae.current,l=($?e:d)-i.start-i.end-2*j,m=x.current??0,n=a.x-m,p=a.y-m,q=$?f-p-i.end:("rtl"===Y?h-n:n-g)-i.start,r=(s-t)*(0,k.clamp)((q-j)/l,0,1)+t;return(r=U(r,L,t),r=(0,k.clamp)(r,t,s),Z)?function(a,b,c,d,e,f,g,h,i,j){let l=c??b,m=d??b;if(!(l.length>1))return{value:f,thumbIndex:0,didSwap:!1};let n=i*j;if("push"===a)return{value:V(l,e,f,g,h,i,j),thumbIndex:e,didSwap:!1};let o=l.slice(),p=o[e-1],q=o[e+1],r=null!=p?p+n:g,s=null!=q?q-n:h,t=Number((0,k.clamp)(f,r,s).toFixed(12));if(o[e]=t,"swap"!==a)return{value:o,thumbIndex:e,didSwap:!1};{let a=l[e],b=f>a,c=f<a,d=b&&null!=q&&f>=q-1e-7,r=c&&null!=p&&f<=p+1e-7;if(!d&&!r)return{value:o,thumbIndex:e,didSwap:!1};let s=d?e+1:e-1,u=o.map((a,b)=>{if(b===e)return t;let c=m[b];return null!=c?c:l[b]}),v=f;v=d?Math.max(f,o[s]):Math.min(f,o[s]);let w=V(o,s,v,g,h,i,j,u),x=d?s-1:s+1,y=w[x-1],z=w[x+1],A=null!=y?y+n:g;A=Math.max(A,g+x*n);let B=null!=z?z-n:h;B=Math.min(B,h-(w.length-1-x)*n);let C=(0,k.clamp)(t,A,B);return w[x]=Number(C.toFixed(12)),{value:w,thumbIndex:s,didSwap:!0}}}(M,X,ah.current,A.current,c,r,t,s,L,u):{value:o?[r]:r,thumbIndex:c,didSwap:!1}}function an(a){A.current=Z?X.slice():null,af.current=null,ah.current=X;let b=z.current,c=b;if(b>-1&&b<X.length){if(X[b]===s){let a=b;for(;a>0&&X[a-1]===s;)a-=1;c=a}}else{let b,d=$?"y":"x";c=-1;for(let e=0;e<T.current.length;e+=1){let f=T.current[e];if((0,H.isElement)(f)&&!ai(f)?.disabled){let g=S(f,$),h=Math.abs(a[d]-g);(void 0===b||h<=b)&&(c=e,b=h)}}}if(c>-1&&c!==b&&aj(c),n){let a=T.current[c];(0,H.isElement)(a)&&(ae.current=a.getBoundingClientRect()[$?"height":"width"]/2)}}function ao(a){let b=ai(T.current?.[a]);b&&b.focus({preventScroll:!0,focusVisible:!1})}function ap(a,b,c){let d=J(a.value,(0,m.createChangeEventDetails)(b,c,void 0,{activeThumbIndex:a.thumbIndex}));return d&&(af.current=a.value,ah.current=Array.isArray(a.value)?a.value:[a.value],a.didSwap&&(aj(a.thumbIndex),ao(a.thumbIndex))),d}let aq=(0,i.useStableCallback)(a=>{let b=W(a,ac);if(null==b)return;if(ad.current+=1,"pointermove"===a.type&&0===a.buttons)return void ar(a);let c=am(b);null!=c&&y(c.value,L,u)&&(!l&&ad.current>2&&I(!0),ap(c,F.REASONS.drag,a))}),ar=(0,i.useStableCallback)(a=>{if(null==W(a,ac))return;G(-1),I(!1),x.current=null;let b=af.current;if(Array.isArray(b)&&b.length!==X.length&&(af.current=null),null!=af.current){let b=r.current;v(af.current,(0,m.createGenericEventDetails)(b,a))}"pointerType"in a&&_.current?.hasPointerCapture(a.pointerId)&&_.current?.releasePointerCapture(a.pointerId),z.current=-1,au()}),as=(0,i.useStableCallback)(a=>{null==ac.current&&ar(a)}),at=(0,i.useStableCallback)(a=>{let b=ag.current;if(ag.current=!1,j)return;if(al((0,q.getTarget)(a)))return void ak();let c=a.changedTouches[0];if(null==c)return;if(ac.current=c.identifier,!b){let b={x:c.clientX,y:c.clientY};an(b);let d=am(b);if(null==d)return;ao(d.thumbIndex),ap(d,F.REASONS.trackPress,a),ad.current=0}let d=(0,g.ownerDocument)(_.current);d.addEventListener("touchmove",aq,{passive:!0}),d.addEventListener("touchend",ar,{passive:!0}),d.addEventListener("touchcancel",ar,{passive:!0})}),au=(0,i.useStableCallback)(()=>{let a=(0,g.ownerDocument)(_.current);a.removeEventListener("pointermove",aq),a.removeEventListener("pointerup",ar),a.removeEventListener("pointercancel",as),a.removeEventListener("touchmove",aq),a.removeEventListener("touchend",ar),a.removeEventListener("touchcancel",ar),ac.current=null,A.current=null,af.current=null,ag.current=!1}),av=(0,P.useAnimationFrame)();return f.useEffect(()=>{let a=_.current;if(!a)return()=>au();let b=(0,N.addEventListener)(a,"touchstart",at,{passive:!0});return()=>{b(),av.cancel(),au()}},[au,at,_,av]),f.useEffect(()=>{j&&au()},[j,au]),(0,p.useRenderElement)("div",a,{state:K,ref:[b,C,_,ab],props:[{"data-base-ui-slider-control":D?"":void 0,onPointerDown(a){var b;ag.current=!1;let c=_.current,d=(0,q.getTarget)(a.nativeEvent);if(!c||j||a.defaultPrevented||!(0,H.isElement)(d)||0!==a.button)return;if(al(d))return void ak();let e={x:a.clientX,y:a.clientY};an(e);let f=am(e);if(null==f)return;(0,q.contains)(T.current[f.thumbIndex],(0,q.activeElement)((0,g.ownerDocument)(c)))?a.preventDefault():av.request(()=>{ao(f.thumbIndex)}),I(!0),null==x.current&&ap(f,F.REASONS.trackPress,a.nativeEvent),a.nativeEvent.pointerId&&c.setPointerCapture(a.nativeEvent.pointerId),ad.current=0,ag.current="touch"===(b=a.pointerType)||"pen"===b;let h=(0,g.ownerDocument)(c);h.addEventListener("pointermove",aq,{passive:!0}),h.addEventListener("pointerup",ar,{once:!0}),h.addEventListener("pointercancel",as,{once:!0})}},h],stateAttributesMapping:B})}),Y=f.forwardRef(function(a,b){let{render:c,className:d,style:e,...f}=a,{state:g}=E();return(0,p.useRenderElement)("div",a,{state:g,ref:b,props:[{style:{position:"relative"}},f],stateAttributesMapping:B})});var Z=a.i(15506),$=a.i(77127),_=a.i(3927),aa=a.i(90064),ab=a.i(43933),ac=a.i(94324),ad=a.i(97058),ae=a.i(68956),af=a.i(91447),ag=a.i(37177);let ah=new Set([...ab.COMPOSITE_KEYS,ab.PAGE_UP,ab.PAGE_DOWN]),ai=f.forwardRef(function(a,d){let e,g,h,{render:l,children:m,className:n,"aria-describedby":r,"aria-label":t,"aria-labelledby":u,"aria-valuetext":v,disabled:w=!1,getAriaLabel:y,getAriaValueText:z,id:A,index:C,inputRef:D,onBlur:F,onFocus:G,onKeyDown:H,tabIndex:I,style:J,...K}=a,M=(0,o.useBaseUiId)(A),{active:N,lastUsedThumbIndex:P,controlRef:Q,disabled:V,validation:W,format:X,handleInputChange:Y,inset:ai,isArrayValue:aj,labelId:ak,largeStep:al,locale:am,max:an,min:ao,minStepsBetweenValues:ap,form:aq,name:ar,orientation:as,pressedThumbCenterOffsetRef:at,pressedThumbIndexRef:au,renderBeforeHydration:av,setActive:aw,setIndicatorPosition:ax,state:ay,step:az,thumbRefs:aA,values:aB}=E(),aC=(0,R.useDirection)(),aD=w||V,aE=aB.length>1,aF="vertical"===as,aG="rtl"===aC,{setTouched:aH,validationMode:aI}=(0,s.useFieldRootContext)(),aJ=f.useRef(null),aK=f.useRef(null),aL=(0,ae.useSetFieldFocused)(aD,aK),aM=f.useRef(!1),aN=(0,i.useStableCallback)(a=>{aM.current||G?.(a)}),aO=(0,i.useStableCallback)(a=>{aM.current||F?.(a)}),aP=(0,o.useBaseUiId)(),aQ=(0,ag.useLabelableId)(),aR=aE?aP:aQ,aS=f.useMemo(()=>({inputId:aR}),[aR]),{ref:aT,index:aU}=(0,ac.useCompositeListItem)({metadata:aS}),aV=aE?C??aU:0,aW=aV===aB.length-1,aX=aB[aV],aY=(aX-ao)*100/(an-ao),[aZ,a$]=f.useState(),a_=(0,aa.useIsHydrating)(),a0=P>=0&&P<aB.length?P:-1,a1=(0,i.useStableCallback)(()=>{let a=Q.current,b=aJ.current;if(!a||!b)return;let c=b.getBoundingClientRect(),d=a.getBoundingClientRect(),e=aF?"height":"width",f=d[e]-c[e],g=(c[e]/2+f*aY/100)/d[e]*100,h=Number.isFinite(g)?g:void 0;a$(h),0===aV?ax(a=>[h,a[1]]):aW&&ax(a=>[a[0],h])});(0,j.useIsoLayoutEffect)(()=>{ai&&queueMicrotask(a1)},[a1,ai]),(0,j.useIsoLayoutEffect)(()=>{ai&&a1()},[a1,ai,aY]),(0,j.useIsoLayoutEffect)(()=>{if(!ai)return;let a=Q.current,b=aJ.current;if(!a||!b)return;let c=(0,O.ownerWindow)(a).ResizeObserver;if("function"!=typeof c)return;let d=new c(a1);return d.observe(a),d.observe(b),()=>{d.disconnect()}},[Q,a1,ai]);let a2=aF?"bottom":"insetInlineStart",a3=aF?"left":"top";aE?N===aV?e=2:a0===aV&&(e=1):N===aV&&(e=1),g=ai||Number.isFinite(aY)?{position:"absolute",[a2]:ai?"var(--position)":`${aY}%`,[a3]:"50%",translate:`${(aF||!aG?-1:1)*50}% ${(aF?1:-1)*50}%`,zIndex:e,...ai&&{"--position":`${aZ??0}%`,visibility:av&&a_||void 0===aZ?"hidden":void 0}}:$.visuallyHidden,aF&&(h=aG?"vertical-rl":"vertical-lr");let a4="function"==typeof y?y(aV):t,a5=(0,_.mergeProps)({"aria-label":a4,"aria-labelledby":u??(null==a4?ak:void 0),"aria-describedby":r,"aria-orientation":as,"aria-valuenow":aX,"aria-valuetext":"function"==typeof z?z(L(aX,am,X),aX,aV):v??function(a,b,c,d){if(!(b<0))return 2===a.length?`${L(a[b],d,c)} ${0===b?"start":"end"} range`:c?L(a[b],d,c):void 0}(aB,aV,X,am),disabled:aD,form:aq,id:aR,max:an,min:ao,name:ar,onChange(a){Y(a.currentTarget.valueAsNumber,aV,a)},onFocus(a){let b=aM.current;aM.current=!1,aw(aV),aL(!0),b&&a.stopPropagation()},onBlur(a){aM.current?a.stopPropagation():(aw(-1),aA.current.some(b=>(0,q.contains)(b,a.relatedTarget))||(aH(!0),aL(!1),"onBlur"===aI&&W.commit(x(aX,aV,ao,an,aj,aB))))},onKeyDown(a){var b;let c;if(a.defaultPrevented||!ah.has(a.key))return;ab.COMPOSITE_KEYS.has(a.key)&&a.stopPropagation();let d=null,e=0,f=a.shiftKey?al:az,g=U(aX,az,ao);switch(a.key){case ab.ARROW_UP:e=1;break;case ab.ARROW_RIGHT:e=aG?-1:1;break;case ab.ARROW_DOWN:e=-1;break;case ab.ARROW_LEFT:e=aG?1:-1;break;case ab.PAGE_UP:f=al,e=1;break;case ab.PAGE_DOWN:f=al,e=-1;break;case ab.END:d=aE&&Number.isFinite(aB[aV+1])?aB[aV+1]-az*ap:an;break;case ab.HOME:d=aE&&Number.isFinite(aB[aV-1])?aB[aV-1]+az*ap:ao}if(0!==e&&(c=Number((g+(b=f)*e).toFixed(Math.max(T(g),T(b),T(ao)))),d=(0,k.clamp)(c,ao,an)),null!==d){let b=a.currentTarget;(0,af.matchesFocusVisible)(b)||(aM.current=!0,b.blur(),b.focus({preventScroll:!0,focusVisible:!0})),Y(d,aV,a),a.preventDefault()}},step:az,style:{...$.visuallyHidden,width:"100%",height:"100%",writingMode:h},tabIndex:I,type:"range",value:aX??""},a=>W.getValidationProps(aD,a),{onFocus:aN,onBlur:aO,onKeyDown:H}),a6=(0,Z.useMergedRefs)(aK,W.inputRef,D);return(0,p.useRenderElement)("div",a,{state:ay,ref:[d,aT,aJ],props:[{"data-index":aV,children:(0,c.jsxs)(f.Fragment,{children:[m,(0,c.jsx)("input",{ref:a6,...a5,suppressHydrationWarning:!0}),ai&&aW&&av&&(b||(b=(0,c.jsx)(ad.PrehydrationScript,{script:'!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();'})))]}),id:M,onPointerDown(a){if(aD)return;au.current=aV;let b=S(a.currentTarget,aF);at.current=(aF?a.clientY:a.clientX)-b},style:g,suppressHydrationWarning:av||void 0},K],stateAttributesMapping:B})}),aj=f.forwardRef(function(a,b){var c,d,e;let f,g,h,{render:i,className:j,style:k,...l}=a,{indicatorPosition:m,inset:n,max:o,min:q,orientation:r,renderBeforeHydration:s,state:t,values:u}=E(),v=(0,aa.useIsHydrating)(),w=u.length>1,x=(c="vertical"===r,d=n?m[0]:(u[0]-q)*100/(o-q),e=n?m[1]:(u[u.length-1]-q)*100/(o-q),f={visibility:n&&s&&v||n&&(void 0===d||w&&void 0===e)?"hidden":void 0,position:c?"absolute":"relative",[c?"width":"height"]:"inherit"},g=`${d??0}%`,h=`${(e??0)-(d??0)}%`,n&&(f["--start-position"]=g,g="var(--start-position)",w&&(f["--relative-size"]=h,h="var(--relative-size)")),f[c?"bottom":"insetInlineStart"]=w?g:0,f[c?"height":"width"]=w?h:g,f);return(0,p.useRenderElement)("div",a,{state:t,ref:b,props:[{"data-base-ui-slider-indicator":s?"":void 0,style:x,suppressHydrationWarning:s||void 0},l],stateAttributesMapping:B})});a.s(["Control",0,X,"Indicator",0,aj,"Label",0,J,"Root",0,G,"Thumb",0,ai,"Track",0,Y,"Value",0,M],88356);var ak=a.i(88356),ak=ak,al=a.i(75540);function am({className:a,defaultValue:b,value:d,min:e=0,max:f=100,...g}){let h=Array.isArray(d)?d:Array.isArray(b)?b:[e,f];return(0,c.jsx)(ak.Root,{className:(0,al.cn)("data-horizontal:w-full data-vertical:h-full",a),"data-slot":"slider",defaultValue:b,value:d,min:e,max:f,thumbAlignment:"edge",...g,children:(0,c.jsxs)(ak.Control,{className:"relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col",children:[(0,c.jsx)(ak.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted select-none data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",children:(0,c.jsx)(ak.Indicator,{"data-slot":"slider-range",className:"bg-primary select-none data-horizontal:h-full data-vertical:w-full"})}),Array.from({length:h.length},(a,b)=>(0,c.jsx)(ak.Thumb,{"data-slot":"slider-thumb",className:"relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"},b))]})})}var an=a.i(17171),ao=a.i(84903);let ap=a=>"number"==typeof a?a:a[0];a.s(["ThresholdSettings",0,function(){let a=(0,d.useThresholds)(),b=[a.loadSeconds],f=[a.errorPercent],g=[a.uptimeSLA];return(0,c.jsxs)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:[(0,c.jsxs)(e.CardHeader,{children:[(0,c.jsxs)(e.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,c.jsx)(ao.Activity,{className:"h-5 w-5 text-gray-400"}),"Performance Thresholds"]}),(0,c.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:'Set the boundaries that will trigger "Warning" or "Critical" statuses in your dashboard.'})]}),(0,c.jsxs)(e.CardContent,{className:"space-y-8 max-w-2xl",children:[(0,c.jsxs)("div",{className:"space-y-4",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsx)(an.Label,{className:"text-gray-300 text-sm",children:"Load Time Threshold (Seconds)"}),(0,c.jsxs)("span",{className:"text-[#3ee0a1] font-mono text-sm",children:[b[0],"s"]})]}),(0,c.jsx)(am,{value:b,onValueChange:a=>(0,d.setThresholds)({loadSeconds:ap(a)}),min:.1,max:5,step:.1,className:"cursor-pointer"}),(0,c.jsx)("p",{className:"text-xs text-gray-500",children:"Alert triggers if average load time exceeds this value."})]}),(0,c.jsxs)("div",{className:"space-y-4",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsx)(an.Label,{className:"text-gray-300 text-sm",children:"Error Rate Threshold (%)"}),(0,c.jsxs)("span",{className:"text-[#ef4444] font-mono text-sm",children:[f[0],"%"]})]}),(0,c.jsx)(am,{value:f,onValueChange:a=>(0,d.setThresholds)({errorPercent:ap(a)}),min:.5,max:10,step:.5,className:"cursor-pointer"}),(0,c.jsx)("p",{className:"text-xs text-gray-500",children:"Alert triggers if percentage of 5xx errors exceeds this value."})]}),(0,c.jsxs)("div",{className:"space-y-4",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsx)(an.Label,{className:"text-gray-300 text-sm",children:"Apdex Minimum (0-1)"}),(0,c.jsx)("span",{className:"text-white font-mono text-sm",children:+a.apdexMin.toFixed(2)})]}),(0,c.jsx)(am,{value:[a.apdexMin],onValueChange:a=>(0,d.setThresholds)({apdexMin:ap(a)}),min:0,max:1,step:.05,largeStep:.1,className:"cursor-pointer"}),(0,c.jsx)("p",{className:"text-xs text-gray-500",children:"Alert triggers if a page's Apdex falls below this value."})]}),(0,c.jsxs)("div",{className:"space-y-4",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsx)(an.Label,{className:"text-gray-300 text-sm",children:"Uptime SLA Target (%)"}),(0,c.jsxs)("span",{className:"text-[#06b6d4] font-mono text-sm",children:[g[0],"%"]})]}),(0,c.jsx)(am,{value:g,onValueChange:a=>(0,d.setThresholds)({uptimeSLA:ap(a)}),min:90,max:100,step:.01,className:"cursor-pointer"}),(0,c.jsx)("p",{className:"text-xs text-gray-500",children:"Your desired target uptime SLA for the month."})]})]})]})}],91654)},17171,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{"data-slot":"label",className:(0,c.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}])},21958,a=>{"use strict";var b,c=a.i(47350);a.s([],20654),a.i(20654);var d=a.i(75086),e=a.i(49064),f=a.i(43014),g=a.i(65489),h=a.i(39128),i=a.i(23055),j=a.i(71409);let k=d.createContext(void 0);function l(){let a=d.useContext(k);if(void 0===a)throw Error((0,j.default)(64));return a}let m={tabActivationDirection:a=>({"data-activation-direction":a})};var n=a.i(5159),o=a.i(35549);let p=d.forwardRef(function(a,b){let{className:j,defaultValue:l=0,onValueChange:p,orientation:s="horizontal",render:t,value:u,style:v,...w}=a,x=void 0!==a.defaultValue,y=d.useRef([]),[z,A]=d.useState(()=>new Map),[B,C]=(0,e.useControlled)({controlled:u,default:l,name:"Tabs",state:"value"}),D=void 0!==u,[E,F]=d.useState(()=>new Map),G=d.useRef(void 0),H=d.useCallback(a=>q(E,a),[E]),[I,J]=d.useState(()=>({previousValue:B,tabActivationDirection:"none"})),{previousValue:K,tabActivationDirection:L}=I,M=L,N=!1;K!==B&&(M=r(K,B,s,E),N=null!=K&&null!=B&&null==H(B));let O=N?K:B,P=K!==O||L!==M;(0,f.useIsoLayoutEffect)(()=>{P&&J({previousValue:O,tabActivationDirection:M})},[O,P,M]);let Q=(0,g.useStableCallback)((a,b)=>{b.activationDirection=r(B,a,s,E),p?.(a,b),b.isCanceled||C(()=>a)}),R=(0,g.useStableCallback)((a,b)=>{p?.(a,(0,n.createChangeEventDetails)(b,void 0,void 0,{activationDirection:"none"}))}),S=(0,g.useStableCallback)((a,b)=>(A(c=>{let d=new Map(c);return d.set(a,b),d}),()=>{A(c=>{if(c.get(a)!==b)return c;let d=new Map(c);return d.delete(a),d})})),T=d.useCallback(a=>z.get(a),[z]),U=d.useCallback(a=>{for(let b of E.values())if(a===b.value)return b.id},[E]),V=d.useMemo(()=>({getTabElementBySelectedValue:H,getTabIdByPanelValue:U,getTabPanelIdByValue:T,onValueChange:Q,orientation:s,registerMountedTabPanel:S,setTabMap:F,tabActivationDirection:M,value:B}),[H,U,T,Q,s,S,F,M,B]),W=d.useMemo(()=>{for(let a of E.values())if(a.value===B)return a},[E,B]),X=d.useMemo(()=>{for(let a of E.values())if(!a.disabled)return a.value},[E]),Y=d.useRef(!x),Z=d.useRef(l),$=d.useRef(x),_=d.useRef(!1);(0,f.useIsoLayoutEffect)(()=>{if(D)return;function a(a,b){C(()=>a),J({previousValue:a,tabActivationDirection:"none"}),R(a,b),Y.current=!1}if(0===E.size){_.current&&null!==B&&!G.current?.isConnected&&a(null,o.REASONS.missing);return}_.current=!0,G.current=E.keys().next().value;let b=W?.disabled,c=null==W&&null!==B;if(b||B!==Z.current||($.current=!1),$.current&&b&&B===Z.current)return;let d=Y.current;if(b||c){let c=X??null;if(B===c){Y.current=!1;return}let e=o.REASONS.missing;d?e=o.REASONS.initial:b&&(e=o.REASONS.disabled),a(c,e);return}d&&null!=W&&(R(B,o.REASONS.initial),Y.current=!1)},[X,D,R,W,C,E,B]);let aa={orientation:s,tabActivationDirection:M},ab=(0,h.useRenderElement)("div",a,{state:aa,ref:b,props:w,stateAttributesMapping:m});return(0,c.jsx)(k.Provider,{value:V,children:(0,c.jsx)(i.CompositeList,{elementsRef:y,children:ab})})});function q(a,b){for(let[c,d]of a.entries())if(b===d.value)return c;return null}function r(a,b,c,d){if(null==a||null==b)return"none";let[e,f,g]="horizontal"===c?["left","left","right"]:["top","up","down"],h=q(d,a),i=q(d,b);if(null==h||null==i)return h!==i&&("number"==typeof a||"string"==typeof a)&&typeof a==typeof b?b>a?g:f:"none";let j=h.getBoundingClientRect()[e],k=i.getBoundingClientRect()[e];return k<j?f:k>j?g:"none"}var s=a.i(7589),t=a.i(24437),u=a.i(49305);let v="data-composite-item-active";var w=a.i(15506),x=a.i(71289),y=a.i(94324);let z=d.createContext(void 0);function A(){let a=d.useContext(z);if(void 0===a)throw Error((0,j.default)(65));return a}var B=a.i(30253);let C=d.forwardRef(function(a,b){let{className:c,disabled:e=!1,render:i,value:j,id:k,nativeButton:p=!0,style:q,...r}=a,{value:z,getTabPanelIdByValue:C,onValueChange:D,orientation:E,tabActivationDirection:F}=l(),{activateOnFocus:G,registerTabResizeObserverElement:H,tabsListElement:I}=A(),{highlightedIndex:J,onHighlightedIndexChange:K}=(0,x.useCompositeRootContext)(),L=(0,t.useBaseUiId)(k),{compositeProps:M,compositeRef:N,index:O}=function(a={}){let{highlightItemOnHover:b,highlightedIndex:c,onHighlightedIndexChange:e}=(0,x.useCompositeRootContext)(),{ref:f,index:g}=(0,y.useCompositeListItem)(a),h=c===g,i=d.useRef(null),j=(0,w.useMergedRefs)(f,i);return{compositeProps:{tabIndex:h?0:-1,onFocus(){e(g)},onMouseMove(){let a=i.current;if(!b||!a)return;let c=a.hasAttribute("disabled")||"true"===a.ariaDisabled;h||c||a.focus()}},compositeRef:j,index:g}}({metadata:d.useMemo(()=>({disabled:e,id:L,value:j}),[e,L,j])}),P=j===z,Q=d.useRef(!1),R=d.useRef(null),S=(0,g.useStableCallback)(a=>{R.current?.(),R.current=a?H(a):null});(0,f.useIsoLayoutEffect)(()=>{if(Q.current){Q.current=!1;return}if(P&&O>-1&&J!==O){if(null!=I){let a=(0,B.activeElement)((0,s.ownerDocument)(I));if(a&&(0,B.contains)(I,a))return}e||K(O)}},[P,O,J,K,e,I]);let{getButtonProps:T,buttonRef:U}=(0,u.useButton)({disabled:e,native:p,focusableWhenDisabled:!0}),V=C(j),W=d.useRef(!1),X=d.useRef(!1);function Y(a){D(j,(0,n.createChangeEventDetails)(o.REASONS.none,a.nativeEvent,void 0,{activationDirection:"none"}))}return(0,h.useRenderElement)("button",a,{state:{disabled:e,active:P,orientation:E,tabActivationDirection:F},ref:[b,U,N,S],props:[M,{role:"tab","aria-controls":V,"aria-selected":P,id:L,onClick:function(a){P||e||Y(a)},onFocus:function(a){P||e||G&&(!W.current||X.current)&&Y(a)},onPointerDown:function(a){if(P||e)return;W.current=!0,X.current=0===a.button;let b=(0,s.ownerDocument)(a.currentTarget);function c(){W.current=!1,X.current=!1,b.removeEventListener("pointerup",c),b.removeEventListener("pointercancel",c)}b.addEventListener("pointerup",c),b.addEventListener("pointercancel",c)},[v]:P?"":void 0,onKeyDownCapture(){Q.current=!0}},r,T],stateAttributesMapping:m})});var D=a.i(59907),E=a.i(75150),F=a.i(33056),G=a.i(97058),H=a.i(69427),I=a.i(66489);let J={...m,activeTabPosition:()=>null,activeTabSize:()=>null},K=d.forwardRef(function(a,e){let{className:f,render:g,renderBeforeHydration:i=!1,style:j,...k}=a,{getTabElementBySelectedValue:m,orientation:n,tabActivationDirection:o,value:p}=l(),{tabsListElement:q,registerIndicatorUpdateListener:r}=A(),s=(0,E.useForcedRerendering)();d.useEffect(()=>r(s),[r,s]);let t=0,u=0,v=0,w=0,x=0,y=0,z=!1;if(null!=p&&null!=q){let a=m(p);if(null!=a){z=!0;let{width:b,height:c}=(0,H.getCssDimensions)(a),{width:d,height:e}=(0,H.getCssDimensions)(q),f=a.getBoundingClientRect(),g=q.getBoundingClientRect(),h=d>0?g.width/d:1,i=e>0?g.height/e:1,j=function(a,b){let c=L(a),d=L(b),e=c.left-d.left-b.clientLeft,f=c.top-d.top-b.clientTop,g=(0,D.getParentNode)(a);for(;(0,D.isHTMLElement)(g)&&g!==b&&!(0,D.isLastTraversableNode)(g);)e-=g.scrollLeft,f-=g.scrollTop,g=(0,D.getParentNode)(g);return{left:e,top:f}}(a,q);t=j.left,v=j.top;let k=(f.left-g.left)/h+q.scrollLeft-q.clientLeft,l=(f.top-g.top)/i+q.scrollTop-q.clientTop,m=function(a){let b=(0,F.ownerWindow)(a).getComputedStyle(a),{x:c,y:d}=(0,I.getElementTransform)(a,b),e=c,f=d,{translate:g}=b;if(g&&"none"!==g){let b=g.split(" ");e+=M(b[0],a.offsetWidth),f+=M(b[1],a.offsetHeight)}return{x:e,y:f}}(a);2>=Math.abs(k-m.x-t)&&2>=Math.abs(l-m.y-v)&&(t=k,v=l),x=b,y=c,u=q.scrollWidth-t-x,w=q.scrollHeight-v-y}}let B=z?{left:t,right:u,top:v,bottom:w}:null,C=z?{width:x,height:y}:null,K=z?{"--active-tab-left":`${t}px`,"--active-tab-right":`${u}px`,"--active-tab-top":`${v}px`,"--active-tab-bottom":`${w}px`,"--active-tab-width":`${x}px`,"--active-tab-height":`${y}px`}:void 0,N=z&&x>0&&y>0,O=(0,h.useRenderElement)("span",a,{state:{orientation:n,activeTabPosition:B,activeTabSize:C,tabActivationDirection:o},ref:e,props:[{role:"presentation",style:K,hidden:!N},k,{suppressHydrationWarning:!0}],stateAttributesMapping:J});return null==p?null:(0,c.jsxs)(d.Fragment,{children:[O,i&&(b||(b=(0,c.jsx)(G.PrehydrationScript,{script:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const n=e.querySelector("[data-active]");if(!n)return;const o=getComputedStyle(n);if("none"!==o.transform||"none"!==o.translate||"none"!==o.rotate||"none"!==o.scale)return;function r(t){let e=0,n=0,o=t;for(;null!=o;){e+=o.offsetLeft,n+=o.offsetTop;const t=o.offsetParent;null!=t&&(e+=t.clientLeft,n+=t.clientTop),o=t}return{left:e,top:n}}function i(){const{width:o,height:i}=function(t){const e=getComputedStyle(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(n)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(n=t.offsetWidth,o=t.offsetHeight),{width:n,height:o}}(n),l=function(t,e){const n=r(t),o=r(e);let i=n.left-o.left-e.clientLeft,l=n.top-o.top-e.clientTop,s=t.parentElement;for(;null!=s&&s!==e;)i-=s.scrollLeft,l-=s.scrollTop,s=s.parentElement;return{left:i,top:l}}(n,e),s=Math.min(l.left,e.scrollWidth-o),f=Math.min(l.top,e.scrollHeight-i),c=e.scrollWidth-s-o,u=e.scrollHeight-f-i;function h(e,n){t.style.setProperty(`--active-tab-${e}`,`${n}px`)}return h("left",s),h("right",c),h("top",f),h("bottom",u),h("width",o),h("height",i),o>0&&i>0&&(t.removeAttribute("hidden"),!0)}if(i()||"undefined"==typeof ResizeObserver)return;let l,s;function f(){s.disconnect(),clearTimeout(l)}s=new ResizeObserver(()=>{t.isConnected&&t.hasAttribute("hidden")&&n.hasAttribute("data-active")?i()&&f():f()}),s.observe(n),l=setTimeout(f,1e4)}();'})))]})});function L(a){let b=0,c=0,d=a;for(;null!=d;){b+=d.offsetLeft,c+=d.offsetTop;let a=d.offsetParent;null!=a&&(b+=a.clientLeft,c+=a.clientTop),d=a}return{left:b,top:c}}function M(a,b){if(!a)return 0;let c=parseFloat(a);return Number.isFinite(c)?a.endsWith("%")?c/100*b:c:0}var N=a.i(25421),O=a.i(5633),P=a.i(80620),Q=a.i(9936),R=a.i(6741);R.TransitionStatusDataAttributes.startingStyle,R.TransitionStatusDataAttributes.endingStyle;let S={...m,...O.transitionStatusMapping},T=d.forwardRef(function(a,b){let{className:c,value:e,render:g,keepMounted:i=!1,style:j,...k}=a,{value:m,getTabIdByPanelValue:n,orientation:o,tabActivationDirection:p,registerMountedTabPanel:q}=l(),r=(0,t.useBaseUiId)(),{ref:s,index:u}=(0,y.useCompositeListItem)(),v=e===m,{mounted:w,transitionStatus:x,setMounted:z}=(0,Q.useTransitionStatus)(v),A=!w,B=n(e),C=d.useRef(null),D=(0,h.useRenderElement)("div",a,{state:{hidden:A,orientation:o,tabActivationDirection:p,transitionStatus:x},ref:[b,s,C],props:[{"aria-labelledby":B,hidden:A,id:r,role:"tabpanel",tabIndex:v?0:-1,inert:(0,N.inertValue)(!v),"data-index":u},k],stateAttributesMapping:S});return((0,P.useOpenChangeComplete)({open:v,ref:C,onComplete(){v||z(!1)}}),(0,f.useIsoLayoutEffect)(()=>{if(null!=r&&(!A||i))return q(e,r)},[A,i,e,r,q]),i||w)?D:null});var U=a.i(85836),V=a.i(43933),W=a.i(44729),X=a.i(77385);function Y(a){let{render:b,className:e,style:j,refs:k=U.EMPTY_ARRAY,props:l=U.EMPTY_ARRAY,state:m=U.EMPTY_OBJECT,stateAttributesMapping:n,highlightedIndex:o,onHighlightedIndexChange:p,orientation:q,grid:r,loopFocus:s,onLoop:t,enableHomeAndEndKeys:u,onMapChange:y,stopEventPropagation:z=!0,rootRef:A,disabledIndices:C,modifierKeys:D,highlightItemOnHover:E=!1,tag:F="div",...G}=a,{props:H,highlightedIndex:I,onHighlightedIndexChange:J,elementsRef:K,onMapChange:L,relayKeyboardEvent:M}=function(a){let{loopFocus:b=!0,orientation:c="both",grid:e,onLoop:h,direction:i,highlightedIndex:j,onHighlightedIndexChange:k,rootRef:l,enableHomeAndEndKeys:m=!1,stopEventPropagation:n,disabledIndices:o,modifierKeys:p=U.EMPTY_ARRAY}=a,[q,r]=d.useState(0),s=null!=e,t=d.useRef(null),u=(0,w.useMergedRefs)(t,l),x=d.useRef([]),y=d.useRef(!1),z=d.useRef(null),A=j??q,C=(0,g.useStableCallback)((a,b=!1)=>{if(z.current=x.current[a]??null,(k??r)(a),b){let b=x.current[a];(0,V.scrollIntoViewIfNeeded)(t.current,b,i,c)}}),D=(0,g.useStableCallback)(a=>{if(0===a.size)return;if(y.current){let a=x.current,b=a.indexOf(z.current);if(-1===b){let b=a[A];!b||(0,W.isListIndexDisabled)(a,A,o)?C(function(a,b){let c=-1;for(let d=0;d<a.length;d+=1){let e=a[d];if(!(!e||(0,W.isListIndexDisabled)(a,d,b))){if(e.hasAttribute(v))return d;-1===c&&(c=d)}}return Math.max(c,0)}(a,o)):z.current=b}else b!==A&&C(b);return}y.current=!0;let b=Array.from(a.keys()),d=b.find(a=>a?.hasAttribute(v))??null,e=d?a.get(d)?.index??-1:-1;if(-1!==e)C(e);else if((0,W.isListIndexDisabled)(b,A,o)){let a=(0,W.findNonDisabledListIndex)(b,{disabledIndices:o});(0,W.isIndexOutOfListBounds)(b,a)||C(a)}(0,V.scrollIntoViewIfNeeded)(t.current,d,i,c)});(0,f.useIsoLayoutEffect)(()=>{if(null==o||null!=j||!y.current)return;let a=x.current;if((0,W.isListIndexDisabled)(a,A,o)){let b=(0,W.findNonDisabledListIndex)(a,{disabledIndices:o});(0,W.isIndexOutOfListBounds)(a,b)||C(b)}},[o,j,A,x,C]);let E=(0,g.useStableCallback)((a,b,c)=>h?h(a,b,c,x):c),F=(0,g.useStableCallback)(a=>{let d=a.key===V.HOME||a.key===V.END;if(!V.COMPOSITE_KEYS.has(a.key)||!m&&d||function(a,b){for(let c of V.MODIFIER_KEYS)if(!b.includes(c)&&a.getModifierState(c))return!0;return!1}(a,p)||!t.current)return;let f="rtl"===i,g=f?V.ARROW_LEFT:V.ARROW_RIGHT,j=f?V.ARROW_RIGHT:V.ARROW_LEFT,k="vertical"===c?V.ARROW_DOWN:g,l="vertical"===c?V.ARROW_UP:j,q=(0,B.getTarget)(a.nativeEvent);if(null!=q&&(0,V.isNativeInput)(q)&&!(null==q||q.hasAttribute("disabled")||"true"===q.getAttribute("aria-disabled"))){let b=q.selectionStart,c=q.selectionEnd,d=q.value;if(null==b||a.shiftKey||b!==c||a.key!==l&&b<d.length||a.key!==k&&b>0)return}let r=A,u=(0,W.getMinListIndex)(x,o),v=(0,W.getMaxListIndex)(x,o);null!=e&&(r=e({disabledIndices:o,elementsRef:x,event:a,highlightedIndex:A,loopFocus:b,maxIndex:v,minIndex:u,onLoop:E,orientation:c,rtl:f}));let w="vertical"!==c&&a.key===g||"horizontal"!==c&&a.key===V.ARROW_DOWN,y="vertical"!==c&&a.key===j||"horizontal"!==c&&a.key===V.ARROW_UP;m&&(a.key===V.HOME?r=u:a.key===V.END&&(r=v)),r===A&&(w||y)&&(b&&r===v&&w?(r=u,h&&(r=h(a,A,r,x))):b&&r===u&&y?(r=v,h&&(r=h(a,A,r,x))):r=(0,W.findNonDisabledListIndex)(x.current,{startingIndex:r,decrement:y,disabledIndices:o})),r===A||(0,W.isIndexOutOfListBounds)(x.current,r)||(n&&a.stopPropagation(),(s||d||w||y)&&a.preventDefault(),C(r,!0),queueMicrotask(()=>{x.current[r]?.focus()}))});return{props:{ref:u,onFocus(a){let b=t.current,c=(0,B.getTarget)(a.nativeEvent);b&&null!=c&&(0,V.isNativeInput)(c)&&c.setSelectionRange(0,c.value.length)},onKeyDown:F},highlightedIndex:A,onHighlightedIndexChange:C,elementsRef:x,onMapChange:D,relayKeyboardEvent:F}}({grid:r,loopFocus:s,onLoop:t,orientation:q,highlightedIndex:o,onHighlightedIndexChange:p,rootRef:A,stopEventPropagation:z,enableHomeAndEndKeys:u,direction:(0,X.useDirection)(),disabledIndices:C,modifierKeys:D}),N=(0,h.useRenderElement)(F,a,{state:m,ref:k,props:[H,...l,G],stateAttributesMapping:n}),O=d.useMemo(()=>({highlightedIndex:I,onHighlightedIndexChange:J,highlightItemOnHover:E,relayKeyboardEvent:M}),[I,J,E,M]);return(0,c.jsx)(x.CompositeRootContext.Provider,{value:O,children:(0,c.jsx)(i.CompositeList,{elementsRef:K,onMapChange:a=>{y?.(a),L(a)},children:N})})}let Z=d.forwardRef(function(a,b){let{activateOnFocus:e=!1,className:h,loopFocus:i=!0,render:j,style:k,...n}=a,{orientation:o,setTabMap:p,tabActivationDirection:q}=l(),[r,s]=d.useState(0),[t,u]=d.useState(null),v=d.useRef(new Set),w=d.useRef(new Set),x=d.useRef(null);(0,f.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let a=new ResizeObserver(()=>{v.current.forEach(a=>{a()})});return x.current=a,t&&a.observe(t),w.current.forEach(b=>{a.observe(b)}),()=>{a.disconnect(),x.current=null}},[t]);let y=(0,g.useStableCallback)(a=>(v.current.add(a),()=>{v.current.delete(a)})),A=(0,g.useStableCallback)(a=>(w.current.add(a),x.current?.observe(a),()=>{w.current.delete(a),x.current?.unobserve(a)})),B=d.useMemo(()=>({activateOnFocus:e,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:A,tabsListElement:t}),[e,y,A,t]);return(0,c.jsx)(z.Provider,{value:B,children:(0,c.jsx)(Y,{render:j,className:h,style:k,state:{orientation:o,tabActivationDirection:q},refs:[b,u],props:[{"aria-orientation":"vertical"===o?"vertical":void 0,role:"tablist"},n],stateAttributesMapping:m,highlightedIndex:r,enableHomeAndEndKeys:!0,loopFocus:i,orientation:o,onHighlightedIndexChange:s,onMapChange:p,disabledIndices:U.EMPTY_ARRAY})})});a.s(["Indicator",0,K,"List",0,Z,"Panel",0,T,"Root",0,p,"Tab",0,C],82310);var $=a.i(82310),$=$,_=a.i(42261),aa=a.i(75540);let ab=(0,_.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});a.s(["Tabs",0,function({className:a,orientation:b="horizontal",...d}){return(0,c.jsx)($.Root,{"data-slot":"tabs","data-orientation":b,className:(0,aa.cn)("group/tabs flex gap-2 data-horizontal:flex-col",a),...d})},"TabsContent",0,function({className:a,...b}){return(0,c.jsx)($.Panel,{"data-slot":"tabs-content",className:(0,aa.cn)("flex-1 text-sm outline-none",a),...b})},"TabsList",0,function({className:a,variant:b="default",...d}){return(0,c.jsx)($.List,{"data-slot":"tabs-list","data-variant":b,className:(0,aa.cn)(ab({variant:b}),a),...d})},"TabsTrigger",0,function({className:a,...b}){return(0,c.jsx)($.Tab,{"data-slot":"tabs-trigger",className:(0,aa.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",a),...b})},"tabsListVariants",0,ab],21958)},23055,94324,90064,97058,a=>{"use strict";var b=a.i(75086),c=a.i(98730),d=a.i(65489),e=a.i(43014);let f=b.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});var g=a.i(47350);function h(){return new Map}function i(){return new Set}function j(a,b){return a.nextElementSibling===b?-1:b.nextElementSibling===a?1:a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}a.s(["CompositeList",0,function(a){let{children:k,elementsRef:l,labelsRef:m,onMapChange:n}=a,o=(0,d.useStableCallback)(n),[,p]=b.useState(0),q=(0,c.useRefWithInit)(i).current,r=(0,c.useRefWithInit)(h).current,s=b.useRef(0),t=b.useRef(!0),u=b.useRef(null),v=b.useRef(null),w=(0,d.useStableCallback)(()=>{t.current||(t.current=!0,p(a=>a+1))}),x=(0,d.useStableCallback)((a,b)=>{r.set(a,b),w()}),y=(0,d.useStableCallback)(a=>{r.delete(a),w()}),z=(0,d.useStableCallback)(a=>{let b=new Map;return l.current.length=0,m&&(m.current.length=0),a.forEach(a=>{b.set(a.element,{...a.registration.metadata??{},index:a.index}),l.current[a.index]=a.element,m&&(m.current[a.index]=void 0!==a.registration.label?a.registration.label:a.registration.textRef?.current?.textContent??a.element.textContent)}),s.current=l.current.length,b}),A=(0,d.useStableCallback)(()=>{var a;let b,c,d,e,[f,g]=(a=r,b=new Set,c=[],d=[],a.forEach((a,e)=>{if(!e.isConnected)return;let f=a.index,g={index:f??-1,element:e,registration:a};null===f?d.push(g):f>=0&&(b.add(f),c.push(g))}),e=0,d.sort((a,b)=>j(a.element,b.element)),d.forEach(a=>{for(;b.has(e);)e+=1;a.index=e,c.push(a),e+=1}),b.size>0&&c.sort((a,b)=>a.index-b.index),[c,d.map(a=>a.element)]),h=z(f),i=u.current,k=!i||i.length!==f.length||f.some((a,b)=>{let c=i[b];return a.index!==c.index||a.element!==c.element||a.registration.index!==c.registration.index||a.registration.metadata!==c.registration.metadata});!function(a){if(v.current?.disconnect(),v.current=null,"function"!=typeof MutationObserver||a.length<2)return;let b=new MutationObserver(c=>{if(!function(a){for(let b of a)for(let a=0;a<b.removedNodes.length;a+=1)if(b.removedNodes[a].isConnected)return!0;return!1}(c))return;let d=null;for(let c of a)if(c.isConnected){if(d&&j(d,c)>0){b.disconnect(),w();return}d=c}});v.current=b;let c=new Set;for(let b=1;b<a.length;b+=1){let d=function(a,b){let c=a.parentElement;for(;c&&!c.contains(b);)c=c.parentElement;return c}(a[b-1],a[b]);d&&c.add(d)}c.forEach(a=>b.observe(a,{childList:!0}))}(g),u.current=f,t.current=!1,k&&(q.forEach(a=>a(h)),o(h))});(0,e.useIsoLayoutEffect)(()=>(!t.current&&u.current&&z(u.current),()=>{l.current=[],m&&(m.current=[])}),[l,m,z]),(0,e.useIsoLayoutEffect)(()=>{t.current&&A()}),(0,e.useIsoLayoutEffect)(()=>()=>{v.current?.disconnect(),t.current=!0},[]);let B=(0,d.useStableCallback)(a=>(q.add(a),()=>{q.delete(a)})),C=b.useMemo(()=>({register:x,unregister:y,subscribeMapChange:B,nextIndexRef:s}),[x,y,B,s]);return(0,g.jsx)(f.Provider,{value:C,children:k})}],23055),a.s(["useCompositeListItem",0,function(a={}){let{guess:c,label:d,metadata:g,textRef:h,index:i}=a,{register:j,unregister:k,subscribeMapChange:l,nextIndexRef:m}=b.useContext(f),n=b.useRef(-1),[o,p]=b.useState(null==i&&c?()=>{if(-1===n.current){let a=m.current;m.current+=1,n.current=a}return n.current}:-1),q=i??o,r=b.useRef(null),s=b.useCallback(a=>{let b=r.current;b&&k(b),r.current=a,a&&j(a,{metadata:g??null,index:i??null,label:d,textRef:h})},[i,j,k,g,d,h]);return(0,e.useIsoLayoutEffect)(()=>{if(null==i)return l(a=>{let b=r.current?a.get(r.current)?.index:null;null!=b&&p(b)})},[i,l]),{ref:s,index:q}}],94324);var k=a.i(30582),l=a.i(76246);let m=()=>()=>{},n=()=>!0,o=()=>!1,p=(0,l.isReactVersionAtLeast)(18)?function(){return(0,k.useSyncExternalStore)(m,n,o)}:function(){let[a,c]=b.useState(!1);return b.useEffect(()=>{c(!0)},[]),a};function q(){return!p()}a.s(["useIsHydrating",0,q],90064);let r=b.createContext(void 0),s={disableStyleElements:!1};a.s(["PrehydrationScript",0,function(a){let{script:c}=a,{nonce:d}=b.useContext(r)??s;return q()?(0,g.jsx)("script",{nonce:d,dangerouslySetInnerHTML:{__html:c},suppressHydrationWarning:!0}):null}],97058)}];
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=_15jjw6y._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[56672,a=>{"use strict";var b=a.i(47350),c=a.i(3927),d=a.i(77896),e=a.i(75540),f=a.i(60663);let g={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};g.node;let h=(0,f.default)(g),i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};function j({className:a,...c}){return(0,b.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,e.cn)(a),...c})}function k({className:a,...c}){return(0,b.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,e.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",a),...c})}function l({className:a,...c}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,e.cn)("inline-flex items-center gap-1",a),...c})}function m({className:a,render:b,...f}){return(0,d.useRender)({defaultTagName:"a",props:(0,c.mergeProps)({className:(0,e.cn)("transition-colors hover:text-foreground",a)},f),render:b,state:{slot:"breadcrumb-link"}})}function n({className:a,...c}){return(0,b.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,e.cn)("font-normal text-foreground",a),...c})}function o({children:a,className:c,...d}){return(0,b.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,e.cn)("[&>svg]:size-3.5",c),...d,children:a??(0,b.jsx)(h,{})})}i.node,(0,f.default)(i),a.s(["PerformanceBreadcrumb",0,function({pageName:a="Homepage"}){return(0,b.jsx)(j,{className:"mb-6",children:(0,b.jsxs)(k,{children:[(0,b.jsx)(l,{children:(0,b.jsx)(m,{href:"/performance",className:"text-gray-400 hover:text-white",children:"Performance"})}),(0,b.jsx)(o,{}),(0,b.jsx)(l,{children:(0,b.jsx)(n,{className:"text-white font-medium",children:a})})]})})}],56672)},45890,a=>{"use strict";var b=a.i(47350),c=a.i(53840),d=a.i(92994),e=a.i(50463),f=a.i(12351),g=a.i(43368),h=a.i(56672),i=a.i(5800),j=a.i(75339);a.s(["PerformanceDetail",0,function({slug:a}){let{state:k,retry:l}=(0,f.useMetrics)();if("loading"===k.status)return(0,b.jsx)(e.Skeleton,{className:"h-64 w-full bg-[#2d3748]"});if("error"===k.status)return(0,b.jsx)(d.EmptyState,{title:"Could not load metrics",reason:k.message,onRetry:l});if(!k.configured)return(0,b.jsx)(d.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(0===k.pages.length)return(0,b.jsx)(d.EmptyState,{});let m=k.pages.find(b=>b.slug===a);return m||(0,c.notFound)(),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.PerformanceBreadcrumb,{pageName:m.name}),(0,g.hasData)(m)?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.PerformanceKPIs,{page:m,has:a=>(0,f.provides)(k,a)}),m.metrics.errors&&(0,b.jsx)(j.RelatedErrorsList,{errors:m.metrics.errors.latest})]}):(0,b.jsx)(d.EmptyState,{reason:`${m.name} (${m.url}): keys work, but no page events have arrived.`})]})}])},5800,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(84903),e=a.i(66958),f=a.i(67436),g=a.i(77790),h=a.i(85608);a.s(["PerformanceKPIs",0,function({page:a,has:i}){let j=a.metrics,k=[{needs:"loadTime",label:"Average Load Time",value:void 0===j.loadTime?"—":(0,g.formatDuration)(j.loadTime),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"errorRate",label:"Error Rate",value:void 0===j.errorRate?"—":`${j.errorRate.toFixed(2)}%`,icon:(0,b.jsx)(d.Activity,{className:"h-4 w-4 text-[#ef4444]"})},{needs:"traffic",label:(0,h.isSampled)([a])?"Page loads (sampled)":"Traffic Volume",value:j.traffic?a.visitors:"—",icon:(0,b.jsx)(f.Zap,{className:"h-4 w-4 text-[#06b6d4]"})}].filter(a=>i(a.needs));return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-3 mb-8",children:k.map(a=>(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:a.value})]})},a.label))})}])},75339,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(60663);let e={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};e.node;let f=(0,d.default)(e);var g=a.i(66958);a.s(["RelatedErrorsList",0,function({errors:a}){return(0,b.jsxs)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md w-full lg:w-[400px]",children:[(0,b.jsx)(c.CardHeader,{children:(0,b.jsxs)(c.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 text-[#ef4444]"}),"Related Errors"]})}),(0,b.jsx)(c.CardContent,{children:0===a.length?(0,b.jsx)("p",{className:"text-sm text-gray-400",children:"No errors reported for this page."}):(0,b.jsx)("div",{className:"flex flex-col gap-3",children:a.map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-[#2d3748] bg-[#0f1419] p-4",children:[(0,b.jsx)("div",{className:"flex items-center justify-between",children:(0,b.jsxs)("span",{className:"text-xs font-mono text-gray-500",children:[a.count," events"]})}),(0,b.jsx)("p",{className:"text-sm font-medium text-gray-200 line-clamp-2",children:a.title}),(0,b.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[(0,b.jsx)(g.Clock,{className:"h-3 w-3"}),(0,b.jsx)("span",{children:new Date(a.lastSeen).toLocaleString()})]})]},a.title))})})]})}],75339)},92994,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(3130),e=a.i(40695);a.s(["EmptyState",0,function({title:a="No data yet",reason:f="Keys work, but no page events have arrived.",href:g="/connect",cta:h="Send your first events",onRetry:i}){return(0,b.jsx)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(d.CardContent,{className:"flex flex-col items-center gap-3 p-10 text-center",children:[(0,b.jsx)("h3",{className:"text-lg font-semibold text-white",children:a}),(0,b.jsx)("p",{className:"max-w-md text-sm text-gray-400",children:f}),(0,b.jsxs)("div",{className:"flex gap-3",children:[g&&(0,b.jsx)(c.default,{href:g,className:(0,e.buttonVariants)(),children:h}),i&&(0,b.jsx)(e.Button,{variant:"outline",onClick:i,children:"Retry"})]})]})})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},66958,a=>{"use strict";var b=a.i(60663);let c={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c.node;let d=(0,b.default)(c);a.s(["Clock",0,d],66958)},67436,a=>{"use strict";var b=a.i(60663);let c={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};c.node;let d=(0,b.default)(c);a.s(["Zap",0,d],67436)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_1m21xmc._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},88237,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",a),...d})}])},70834,a=>{"use strict";var b=a.i(75086);let c={alert:!0},d="notification-prefs",e=new Set,f=null;function g(){if(f)return f;let a={...c};try{let b=JSON.parse(localStorage.getItem(d)??"{}");for(let c of Object.keys(a))"boolean"==typeof b[c]&&(a[c]=b[c])}catch{}return f=a}function h(a){a.key===d&&(f=null,e.forEach(a=>a()))}function i(a){return e.add(a),window.addEventListener("storage",h),()=>{e.delete(a),window.removeEventListener("storage",h)}}a.s(["setNotificationPrefs",0,function(a){f={...g(),...a};try{localStorage.setItem(d,JSON.stringify(f))}catch{}e.forEach(a=>a())},"useNotificationPrefs",0,function(){return(0,b.useSyncExternalStore)(i,g,()=>c)}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_1op3e_1._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[77083,a=>{"use strict";var b=a.i(47350),c=a.i(3130),d=a.i(85134),e=a.i(66958),f=a.i(31956);a.i(12351);var g=a.i(43368),h=a.i(77790);a.s(["HubMetrics",0,function({pages:a,has:i}){let j=a.filter(g.hasData),k=j.length?j.reduce((a,b)=>a+(b.metrics.loadTime??0),0)/j.length:null,l=a.reduce((a,b)=>a+(b.metrics.errors?.count??0),0),m=[{needs:"pages",label:"Pages Reporting",value:`${j.length} of ${a.length}`,icon:(0,b.jsx)(d.Globe,{className:"h-4 w-4 text-[#3ee0a1]"})},{needs:"loadTime",label:"Avg Load Time",value:null===k?"No data yet":(0,h.formatDuration)(k),icon:(0,b.jsx)(e.Clock,{className:"h-4 w-4 text-[#06b6d4]"})},{needs:"errors",label:"Open Errors",value:j.length||l?String(l):"No data yet",icon:(0,b.jsx)(f.AlertTriangle,{className:"h-4 w-4 text-[#ef4444]"})}].filter(a=>i(a.needs));return(0,b.jsx)("div",{className:`grid gap-6 mb-8 mt-4 ${3===m.length?"md:grid-cols-3":"md:grid-cols-2"}`,children:m.map((a,d)=>(0,b.jsx)(c.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md",children:(0,b.jsxs)(c.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)("span",{className:"text-sm font-medium text-gray-400",children:a.label}),(0,b.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#0f1419] border border-[#2d3748]",children:a.icon})]}),(0,b.jsx)("div",{className:"flex items-baseline gap-3",children:(0,b.jsx)("span",{className:"text-3xl font-bold text-white tracking-tight",children:a.value})})]})},d))})}])},28185,65261,7157,a=>{"use strict";var b=a.i(47350),c=a.i(56561),d=a.i(53840),e=a.i(60663);let f={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};f.node;let g=(0,e.default)(f),h={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};h.node;let i=(0,e.default)(h),j={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};j.node;let k=(0,e.default)(j);a.s(["OctagonAlert",0,k],65261);var l=a.i(35342);a.s(["TriangleAlert",()=>l.default],7157);var l=l,m=a.i(88237),n=a.i(3130),o=a.i(54161),p=a.i(85608),q=a.i(93673),r=a.i(77790),s=a.i(43368);let t="pages-table-title",u=a=>"Warning"===a||"Critical"===a,v={Critical:{Icon:k,icon:"text-dash-danger",badge:"border-dash-danger/40 bg-dash-danger/10"},Warning:{Icon:l.default,icon:"text-dash-warning",badge:"border-dash-warning/40 bg-dash-warning/10"},Healthy:{Icon:g,icon:"text-dash-success",badge:"border-dash-success/40 bg-dash-success/10"}},w={Icon:i,icon:"text-dash-muted",badge:"border-dash-border-light"},x="rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50",y=`font-medium text-dash-foreground underline underline-offset-4 hover:text-dash-muted-light ${x}`,z="hidden px-3 text-right tabular-nums lg:table-cell";function A({page:a}){let c=a.status??((0,s.hasData)(a)?"No performance data":"No data yet"),{Icon:d,icon:e,badge:f}=a.status?v[a.status]:w;return(0,b.jsxs)(o.Badge,{variant:"outline","data-status":c,className:`text-dash-foreground ${f}`,children:[(0,b.jsx)(d,{"aria-hidden":"true",className:e}),c]})}function B({label:a,caption:c}){return(0,b.jsxs)(m.TableHead,{scope:"col",className:`${z} h-12 text-dash-muted`,children:[a,c&&(0,b.jsx)("span",{className:"block text-body-sm",children:c})]})}function C({status:a,children:c}){let d="Critical"===a?k:l.default;return(0,b.jsxs)(m.TableCell,{"data-over-limit":u(a)||void 0,className:`${z} ${u(a)?"font-semibold text-dash-foreground":"text-dash-muted"}`,children:[u(a)&&(0,b.jsx)(d,{"aria-hidden":"true",className:`mr-1 inline size-3.5 align-[-2px] ${"Critical"===a?"text-dash-danger":"text-dash-warning"}`}),c,u(a)&&(0,b.jsx)("span",{className:"sr-only",children:" over limit"})]})}function D({rows:a,has:d,failed:e}){let f=a.length,h=a.filter(a=>u(a.status)).length,i=a.filter(a=>a.status).length,j=a.filter(a=>!(0,s.hasData)(a)).length,k=e.filter(q.isToolId).map(a=>q.TOOLS[a].label),l=null,m=0===j?"":1===j?"1 has no data yet.":`${j} have no data yet.`;if(h)l=1===f?"This page is over a limit.":1===h?`1 of ${f} pages is over a limit.`:`${h} of ${f} pages are over a limit. Worst first.`;else if(i){let a=1===f?"This page is within your limits.":i===f?`All ${f} pages are within your limits. Closest to a limit first.`:1===i?`1 of ${f} pages is within your limits.`:`${i} of ${f} pages are within your limits. Closest to a limit first.`;l=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g,{"aria-hidden":"true",className:"mr-1 inline size-3.5 align-[-2px] text-dash-success"}),a]})}else k.length?(l=`Could not load ${k.join(" and ")} data, so pages are not checked against your limits.`,m=""):d("loadTime")||(l=(0,b.jsxs)(b.Fragment,{children:["Ranked by Sentry errors in the last 24h. ",(0,b.jsx)(c.default,{href:"/setup",className:y,children:"Connect New Relic"})," to check load time and error rate against your limits."]}));return(i&&k.length&&(m=[m,`Could not load ${k.join(" and ")} data.`].filter(Boolean).join(" ")),l||m)?(0,b.jsxs)("p",{"data-slot":"table-summary",className:"text-body text-dash-muted",children:[l,l&&m&&" ",m]}):null}a.s(["HUB_TABLE_TITLE_ID",0,t,"HubTable",0,function({title:a,pages:e,has:f,thresholds:g,failed:h=[],limit:i}){let j=(0,d.useRouter)(),k=(0,s.rankPages)(e,g),l=k.some(a=>a.status);return(0,b.jsxs)(n.Card,{className:"bg-dash-card text-dash-foreground",children:[(0,b.jsxs)(n.CardHeader,{children:[(0,b.jsx)("h2",{id:t,tabIndex:-1,className:`title-enter w-fit text-h3 text-dash-foreground ${x}`,children:a}),(0,b.jsx)(D,{rows:k,has:f,failed:h})]}),(0,b.jsxs)(n.CardContent,{children:[(0,b.jsxs)(m.Table,{children:[(0,b.jsx)("caption",{className:"sr-only",children:"Pages ranked worst first"}),(0,b.jsx)(m.TableHeader,{children:(0,b.jsxs)(m.TableRow,{className:"border-dash-border hover:bg-transparent",children:[(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Page"}),l&&(0,b.jsx)(m.TableHead,{scope:"col",className:"h-12 px-3 text-dash-muted",children:"Status"}),f("loadTime")&&(0,b.jsx)(B,{label:"Load time",caption:(0,s.limitLabel)("loadTime",g)}),f("errorRate")&&(0,b.jsx)(B,{label:"Error rate",caption:(0,s.limitLabel)("errorRate",g)}),f("apdex")&&(0,b.jsx)(B,{label:"Apdex",caption:(0,s.limitLabel)("apdex",g)}),f("errors")&&(0,b.jsx)(B,{label:"Sentry errors",caption:"last 24h, no limit"}),f("traffic")&&(0,b.jsx)(B,{label:(0,p.isSampled)(e)?"Page loads (sampled)":"Views (24h)"})]})}),(0,b.jsx)(m.TableBody,{children:k.slice(0,i).map(a=>{let d=(0,s.hasData)(a),e=(0,s.hasPerformance)(a),h=a.metrics,i=`/performance/${a.slug}`,k=function(a,b,c){if(!(0,s.hasData)(a))return"";if(u(a.status)){let b=(0,s.breachReasons)(a,c).join(", ");return b.charAt(0).toUpperCase()+b.slice(1)}let d=a.metrics,e=(0,s.hasPerformance)(a);return[e&&b("loadTime")&&void 0!==d.loadTime&&`Load ${(0,r.formatDuration)(d.loadTime)}`,e&&b("errorRate")&&void 0!==d.errorRate&&`Errors ${d.errorRate.toFixed(2)}%`,e&&b("apdex")&&void 0!==d.apdex&&`Apdex ${d.apdex.toFixed(2)}`,b("errors")&&d.errors&&`${d.errors.count} Sentry ${1===d.errors.count?"error":"errors"}`].filter(Boolean).join(" · ")}(a,f,g);return(0,b.jsxs)(m.TableRow,{"data-slug":a.slug,className:"h-14 cursor-pointer border-dash-border hover:bg-white/5 focus-within:bg-white/5 lg:h-12",onClick:a=>{a.target.closest("a")||j.push(i)},children:[(0,b.jsxs)("th",{scope:"row","data-slot":"table-cell",className:"w-full max-w-0 px-3 py-2 text-left align-middle font-normal",children:[(0,b.jsxs)(c.default,{href:i,title:a.name,className:`block truncate text-body font-medium text-dash-foreground ${x}`,children:[a.name,(0,b.jsx)("span",{className:"sr-only",children:", view page details"})]}),(0,b.jsx)("span",{title:a.url,className:"block truncate font-mono text-body-sm text-dash-muted",children:a.url}),k&&(0,b.jsx)("span",{"data-slot":"row-summary",className:"mt-0.5 block text-body-sm text-dash-muted lg:hidden",children:k})]}),l&&(0,b.jsx)(m.TableCell,{className:"px-3",children:(0,b.jsx)(A,{page:a})}),f("loadTime")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("loadTime",h.loadTime,g):void 0,children:e&&void 0!==h.loadTime?(0,r.formatDuration)(h.loadTime):"—"}),f("errorRate")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("errorRate",h.errorRate,g):void 0,children:e&&void 0!==h.errorRate?`${h.errorRate.toFixed(2)}%`:"—"}),f("apdex")&&(0,b.jsx)(C,{status:e?(0,s.metricStatus)("apdex",h.apdex,g):void 0,children:e&&void 0!==h.apdex?h.apdex.toFixed(2):"—"}),f("errors")&&(0,b.jsx)(C,{children:d&&h.errors?h.errors.count:"—"}),f("traffic")&&(0,b.jsx)(C,{children:d&&h.traffic?a.visitors:"—"})]},a.slug)})})]}),void 0!==i&&k.length>i&&(0,b.jsxs)(c.default,{href:"/performance",className:`mt-2 inline-flex min-h-11 items-center px-3 text-body md:min-h-8 ${y}`,children:["View all ",k.length," pages"]})]})]})}],28185)},48097,a=>{"use strict";var b=a.i(47350),c=a.i(92994),d=a.i(50463),e=a.i(12351),f=a.i(43368),g=a.i(66219),h=a.i(77083),i=a.i(28185);a.s(["PerformanceHub",0,function(){let{state:a,retry:j}=(0,e.useMetrics)(),k=(0,g.useThresholds)();if("loading"===a.status)return(0,b.jsx)(d.Skeleton,{className:"mt-6 h-64 w-full bg-[#2d3748]"});if("error"===a.status)return(0,b.jsx)(c.EmptyState,{title:"Could not load metrics",reason:a.message,onRetry:j});if(!a.configured)return(0,b.jsx)(c.EmptyState,{title:"Connect your data",reason:"Add your New Relic or Sentry keys to see real numbers.",href:"/setup",cta:"Set up keys"});if(!a.pages.length||!a.pages.some(f.hasData))return(0,b.jsx)(c.EmptyState,{});let l=b=>(0,e.provides)(a,b);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.HubMetrics,{pages:a.pages,has:l}),(0,b.jsx)(i.HubTable,{title:"All pages",pages:a.pages,has:l,thresholds:k,failed:a.failed})]})}])},85134,a=>{"use strict";var b=a.i(60663);let c={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c.node;let d=(0,b.default)(c);a.s(["Globe",0,d],85134)},35342,a=>{"use strict";var b=a.i(60663);let c={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},31956,a=>{"use strict";var b=a.i(35342);a.s(["AlertTriangle",()=>b.default])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=_1u-atbb._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[47872,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(3130),e=a.i(40695),f=a.i(5522);let g=[{id:"gemini",label:"Google Gemini",help:"Create a key at aistudio.google.com/apikey."},{id:"claude",label:"Anthropic Claude",help:"Create a key at console.anthropic.com > API keys."},{id:"openai",label:"OpenAI",help:"Create a key at platform.openai.com/api-keys."}];a.s(["AiKeyForm",0,function(){let[a,h]=(0,c.useState)(g[0].id),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)({}),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!1);async function s(b){b.preventDefault(),r(!0),p(null);try{let b=await fetch("/api/setup/ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,key:i})}),c=await b.json();c.saved?(j(""),l(a),n({...m,[a]:!0}),p({ok:!0,text:"Saved. AI suggestions now use this provider. No restart needed."})):p({ok:!1,text:c.error??"Nothing was saved."})}catch{p({ok:!1,text:"Could not reach the dashboard server."})}finally{r(!1)}}(0,c.useEffect)(()=>{fetch("/api/setup/ai").then(a=>a.json()).then(a=>{a.keys&&(n(a.keys),l(a.provider),a.provider&&h(a.provider))}).catch(()=>{})},[]);let t=g.find(b=>b.id===a);return(0,b.jsxs)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl mt-6",children:[(0,b.jsxs)(d.CardHeader,{children:[(0,b.jsx)(d.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"AI suggestions (optional)"}),(0,b.jsx)(d.CardDescription,{className:"text-sm text-gray-400",children:"Add a Gemini, Claude or OpenAI key to get AI insights and recommendations for your pages. Only page names, load times and error counts are sent to the provider you pick. Without a key, the dashboard shows sample suggestions."})]}),(0,b.jsx)(d.CardContent,{children:(0,b.jsxs)("form",{onSubmit:s,className:"flex flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("label",{htmlFor:"ai-provider",className:"text-sm font-medium text-gray-300",children:"Provider"}),(0,b.jsx)("select",{id:"ai-provider",value:a,onChange:a=>h(a.target.value),className:"h-9 rounded-md border border-[#2d3748] bg-[#0f1419] px-3 text-sm text-gray-200",children:g.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.label,k===a.id?" (in use)":m[a.id]?" (key saved)":""]},a.id))})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:"ai-key",className:"text-sm font-medium text-gray-300",children:[t.label," API key ",m[a]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(f.Input,{id:"ai-key",type:"password",autoComplete:"off",spellCheck:!1,placeholder:m[a]?"•••••••• (type to replace)":"",value:i,onChange:a=>j(a.target.value),"aria-describedby":"ai-key-help",className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:"ai-key-help",className:"text-xs text-gray-400",children:t.help})]}),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(e.Button,{type:"submit",disabled:q||!i.trim(),children:q?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${o?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:o?.text})]})]})})]})}])},46334,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(56561),e=a.i(3130),f=a.i(40695),g=a.i(5522),h=a.i(54161),i=a.i(93673);let j=i.TOOL_IDS.flatMap(a=>i.TOOLS[a].keys.required.map(b=>({name:b,tool:a,...i.KEY_FIELDS[b]})));a.s(["SetupForm",0,function(){let[a,k]=(0,c.useState)({}),[l,m]=(0,c.useState)({}),[n,o]=(0,c.useState)({}),[p,q]=(0,c.useState)(null),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(null),x=(0,c.useRef)(null);async function y(b){b.preventDefault(),s(!0),q(null);try{let b=await fetch("/api/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json(),d=c.results??{};o(d);let e=j.find(a=>d[a.name]&&!d[a.name].ok);if(e&&setTimeout(()=>x.current?.querySelector(`#${e.name}`)?.focus(),0),c.saved){u(!0),k({});let b=new Set(j.filter(b=>a[b.name]?.trim()).map(a=>a.tool));m(a=>({...a,...Object.fromEntries(j.filter(a=>b.has(a.tool)).map(a=>[a.name,!0]))}));let c=i.TOOL_IDS.filter(a=>b.has(a)||v?.includes(a));w(c),q({ok:!0,text:`Saved. ${c.map(a=>i.TOOLS[a].label).join(" and ")} ${c.length>1?"are":"is"} connected. No restart needed.`})}else q({ok:!1,text:c.error??"Nothing was saved. Fix the fields marked below."})}catch{q({ok:!1,text:"Could not reach the dashboard server."})}finally{s(!1)}}return(0,c.useEffect)(()=>{fetch("/api/setup").then(a=>a.json()).then(a=>{a.keys&&m(a.keys),Array.isArray(a.tools)?w(a.tools):a.error&&q({ok:!1,text:a.error})}).catch(()=>{})},[]),(0,b.jsxs)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl",children:[(0,b.jsxs)(e.CardHeader,{children:[(0,b.jsx)(e.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"Connect your tools"}),(0,b.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:"Add keys for the tools you use. You only need one. Keys are checked once, saved to .env.local in this folder, and never shown again."})]}),(0,b.jsx)(e.CardContent,{children:(0,b.jsxs)("form",{ref:x,onSubmit:y,className:"flex flex-col gap-5",children:[i.TOOL_IDS.map(c=>(0,b.jsxs)("fieldset",{id:c,className:"flex flex-col gap-5 rounded-lg border border-[#2d3748] p-4",children:[(0,b.jsxs)("legend",{className:"flex items-center gap-2 px-2 text-sm font-semibold text-white",children:[i.TOOLS[c].label,v?.includes(c)?(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#3ee0a1] text-[#3ee0a1] bg-[#3ee0a1]/10",children:"✓ Connected"}):(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#4a5568] text-gray-400",children:"Optional"})]}),j.filter(a=>a.tool===c).map(c=>{let d=n[c.name];return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:c.name,className:"text-sm font-medium text-gray-300",children:[c.label," ",l[c.name]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(g.Input,{id:c.name,name:c.name,type:c.secret?"password":"text",autoComplete:"off",spellCheck:!1,placeholder:l[c.name]?"•••••••• (leave blank to keep, type to replace)":"",value:a[c.name]??"",onChange:b=>k({...a,[c.name]:b.target.value}),"aria-invalid":!!d&&!d.ok||void 0,"aria-describedby":`${c.name}-help ${c.name}-result`,className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:`${c.name}-help`,className:"text-xs text-gray-400",children:c.help}),(0,b.jsxs)("div",{id:`${c.name}-result`,"aria-live":"polite",children:[d&&!d.ok&&(0,b.jsxs)("p",{className:"text-xs text-[#f87171]",children:["✗ ",d.error]}),d?.ok&&(0,b.jsx)("p",{className:"text-xs text-[#3ee0a1]",children:"✓ Checked"}),d?.notice&&(0,b.jsx)("p",{className:"text-xs text-[#fbbf24]",children:d.notice})]})]},c.name)}),i.TOOLS[c].setupNote&&(0,b.jsx)("p",{className:"text-xs text-gray-400",children:i.TOOLS[c].setupNote})]},c)),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(f.Button,{type:"submit",disabled:r||!j.some(b=>a[b.name]?.trim()),children:r?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${p?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:p?.text}),!j.some(b=>a[b.name]?.trim())&&!p&&!t&&(0,b.jsx)("span",{className:"text-sm text-gray-400",children:v?.length?"Type a new key to change what is saved.":"Fill in both fields for at least one tool."}),t&&(0,b.jsx)(d.default,{href:"/connect",className:(0,f.buttonVariants)({variant:"outline"}),children:"Next: connect your app"})]})]})})]})}])},54161,a=>{"use strict";var b=a.i(18915),c=a.i(68228),d=a.i(42261),e=a.i(85198);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(85198);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},39848,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],39848)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
1
|
+
module.exports=[47872,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(3130),e=a.i(40695),f=a.i(5522);let g=[{id:"gemini",label:"Google Gemini",help:"Create a key at aistudio.google.com/apikey."},{id:"claude",label:"Anthropic Claude",help:"Create a key at console.anthropic.com > API keys."},{id:"openai",label:"OpenAI",help:"Create a key at platform.openai.com/api-keys."}];a.s(["AiKeyForm",0,function(){let[a,h]=(0,c.useState)(g[0].id),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(null),[m,n]=(0,c.useState)({}),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(!1);async function s(b){b.preventDefault(),r(!0),p(null);try{let b=await fetch("/api/setup/ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,key:i})}),c=await b.json();c.saved?(j(""),l(a),n({...m,[a]:!0}),p({ok:!0,text:"Saved. AI suggestions now use this provider. No restart needed."})):p({ok:!1,text:c.error??"Nothing was saved."})}catch{p({ok:!1,text:"Could not reach the dashboard server."})}finally{r(!1)}}(0,c.useEffect)(()=>{fetch("/api/setup/ai").then(a=>a.json()).then(a=>{a.keys&&(n(a.keys),l(a.provider),a.provider&&h(a.provider))}).catch(()=>{})},[]);let t=g.find(b=>b.id===a);return(0,b.jsxs)(d.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl mt-6",children:[(0,b.jsxs)(d.CardHeader,{children:[(0,b.jsx)(d.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"AI suggestions (optional)"}),(0,b.jsx)(d.CardDescription,{className:"text-sm text-gray-400",children:"Add a Gemini, Claude or OpenAI key to get AI insights and recommendations for your pages. Only page names, load times and error counts are sent to the provider you pick. Without a key, the dashboard shows sample suggestions."})]}),(0,b.jsx)(d.CardContent,{children:(0,b.jsxs)("form",{onSubmit:s,className:"flex flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("label",{htmlFor:"ai-provider",className:"text-sm font-medium text-gray-300",children:"Provider"}),(0,b.jsx)("select",{id:"ai-provider",value:a,onChange:a=>h(a.target.value),className:"h-9 rounded-md border border-[#2d3748] bg-[#0f1419] px-3 text-sm text-gray-200",children:g.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.label,k===a.id?" (in use)":m[a.id]?" (key saved)":""]},a.id))})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:"ai-key",className:"text-sm font-medium text-gray-300",children:[t.label," API key ",m[a]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(f.Input,{id:"ai-key",type:"password",autoComplete:"off",spellCheck:!1,placeholder:m[a]?"•••••••• (type to replace)":"",value:i,onChange:a=>j(a.target.value),"aria-describedby":"ai-key-help",className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:"ai-key-help",className:"text-xs text-gray-400",children:t.help})]}),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(e.Button,{type:"submit",disabled:q||!i.trim(),children:q?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${o?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:o?.text})]})]})})]})}])},46334,a=>{"use strict";var b=a.i(47350),c=a.i(75086),d=a.i(56561),e=a.i(3130),f=a.i(40695),g=a.i(5522),h=a.i(54161),i=a.i(93673);let j=i.TOOL_IDS.flatMap(a=>i.TOOLS[a].keys.required.map(b=>({name:b,tool:a,...i.KEY_FIELDS[b]})));a.s(["SetupForm",0,function(){let[a,k]=(0,c.useState)({}),[l,m]=(0,c.useState)({}),[n,o]=(0,c.useState)({}),[p,q]=(0,c.useState)(null),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(null),x=(0,c.useRef)(null);async function y(b){b.preventDefault(),s(!0),q(null);try{let b=await fetch("/api/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json(),d=c.results??{};o(d);let e=j.find(a=>d[a.name]&&!d[a.name].ok);if(e&&setTimeout(()=>x.current?.querySelector(`#${e.name}`)?.focus(),0),c.saved){u(!0),k({});let b=new Set(j.filter(b=>a[b.name]?.trim()).map(a=>a.tool));m(a=>({...a,...Object.fromEntries(j.filter(a=>b.has(a.tool)).map(a=>[a.name,!0]))}));let c=i.TOOL_IDS.filter(a=>b.has(a)||v?.includes(a));w(c),q({ok:!0,text:`Saved. ${c.map(a=>i.TOOLS[a].label).join(" and ")} ${c.length>1?"are":"is"} connected. No restart needed.`})}else q({ok:!1,text:c.error??"Nothing was saved. Fix the fields marked below."})}catch{q({ok:!1,text:"Could not reach the dashboard server."})}finally{s(!1)}}return(0,c.useEffect)(()=>{fetch("/api/setup").then(a=>a.json()).then(a=>{a.keys&&m(a.keys),Array.isArray(a.tools)?w(a.tools):a.error&&q({ok:!1,text:a.error})}).catch(()=>{})},[]),(0,b.jsxs)(e.Card,{className:"border-[#2d3748] bg-[#1a202c] shadow-md max-w-2xl",children:[(0,b.jsxs)(e.CardHeader,{children:[(0,b.jsx)(e.CardTitle,{className:"text-[18px] font-bold text-white tracking-tight",children:"Connect your tools"}),(0,b.jsx)(e.CardDescription,{className:"text-sm text-gray-400",children:"Add keys for the tools you use. You only need one. Keys are checked once, saved to .env.local in this folder, and never shown again."})]}),(0,b.jsx)(e.CardContent,{children:(0,b.jsxs)("form",{ref:x,onSubmit:y,className:"flex flex-col gap-5",children:[i.TOOL_IDS.map(c=>(0,b.jsxs)("fieldset",{id:c,className:"flex flex-col gap-5 rounded-lg border border-[#2d3748] p-4",children:[(0,b.jsxs)("legend",{className:"flex items-center gap-2 px-2 text-sm font-semibold text-white",children:[i.TOOLS[c].label,v?.includes(c)?(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#3ee0a1] text-[#3ee0a1] bg-[#3ee0a1]/10",children:"✓ Connected"}):(0,b.jsx)(h.Badge,{variant:"outline",className:"border-[#4a5568] text-gray-400",children:"Optional"})]}),j.filter(a=>a.tool===c).map(c=>{let d=n[c.name];return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("label",{htmlFor:c.name,className:"text-sm font-medium text-gray-300",children:[c.label," ",l[c.name]&&(0,b.jsx)("span",{className:"ml-2 text-xs text-[#3ee0a1]",children:"✓ Set"})]}),(0,b.jsx)(g.Input,{id:c.name,name:c.name,type:c.secret?"password":"text",autoComplete:"off",spellCheck:!1,placeholder:l[c.name]?"•••••••• (leave blank to keep, type to replace)":"",value:a[c.name]??"",onChange:b=>k({...a,[c.name]:b.target.value}),"aria-invalid":!!d&&!d.ok||void 0,"aria-describedby":`${c.name}-help ${c.name}-result`,className:"bg-[#0f1419] border-[#2d3748] text-gray-200 font-mono text-xs"}),(0,b.jsx)("p",{id:`${c.name}-help`,className:"text-xs text-gray-400",children:c.help}),(0,b.jsxs)("div",{id:`${c.name}-result`,"aria-live":"polite",children:[d&&!d.ok&&(0,b.jsxs)("p",{className:"text-xs text-[#f87171]",children:["✗ ",d.error]}),d?.ok&&(0,b.jsx)("p",{className:"text-xs text-[#3ee0a1]",children:"✓ Checked"}),d?.notice&&(0,b.jsx)("p",{className:"text-xs text-[#fbbf24]",children:d.notice})]})]},c.name)}),i.TOOLS[c].setupNote&&(0,b.jsx)("p",{className:"text-xs text-gray-400",children:i.TOOLS[c].setupNote})]},c)),(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(f.Button,{type:"submit",disabled:r||!j.some(b=>a[b.name]?.trim()),children:r?"Checking…":"Check and save"}),(0,b.jsx)("span",{"aria-live":"polite",className:`text-sm ${p?.ok?"text-[#3ee0a1]":"text-[#f87171]"}`,children:p?.text}),!j.some(b=>a[b.name]?.trim())&&!p&&!t&&(0,b.jsx)("span",{className:"text-sm text-gray-400",children:v?.length?"Type a new key to change what is saved.":"Fill in both fields for at least one tool."}),t&&(0,b.jsx)(d.default,{href:"/connect",className:(0,f.buttonVariants)({variant:"outline"}),children:"Next: connect your app"})]})]})})]})}])},54161,a=>{"use strict";var b=a.i(3927),c=a.i(77896),d=a.i(42261),e=a.i(75540);let f=(0,d.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});a.s(["Badge",0,function({className:a,variant:d="default",render:g,...h}){return(0,c.useRender)({defaultTagName:"span",props:(0,b.mergeProps)({className:(0,e.cn)(f({variant:d}),a)},h),render:g,state:{slot:"badge",variant:d}})}])},3130,a=>{"use strict";var b=a.i(47350),c=a.i(75540);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=_1vj5488._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[38281,a=>{"use strict";var b=a.i(91396),c=a.i(77357),d=a.i(29171);function e({children:a,className:c=""}){return(0,b.jsx)(d.Card,{className:`w-full rounded-xl border-[#2d3748] bg-[#1a202c] shadow-[0_4px_6px_rgba(0,0,0,0.3)] ${c}`,children:a})}function f({className:a=""}){return(0,b.jsx)(c.Skeleton,{className:`bg-[#2d3748] ${a}`})}function g(){return(0,b.jsx)(e,{children:(0,b.jsxs)(d.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)(f,{className:"h-3 w-28 rounded-full"}),(0,b.jsx)(f,{className:"h-8 w-8 rounded-lg"})]}),(0,b.jsx)(f,{className:"h-8 w-20 rounded-md mb-2"}),(0,b.jsx)(f,{className:"h-3 w-36 rounded-full"})]})})}function h(){return(0,b.jsxs)(e,{children:[(0,b.jsxs)(d.CardHeader,{className:"pb-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsx)(f,{className:"h-4 w-16 rounded-md"}),(0,b.jsx)(f,{className:"h-6 w-24 rounded-full"})]}),(0,b.jsx)(f,{className:"h-3 w-32 rounded-full mt-2"})]}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2 mt-2",children:[(0,b.jsx)(f,{className:"h-8 w-20 rounded-md"}),(0,b.jsx)(f,{className:"h-4 w-14 rounded-full"})]}),(0,b.jsx)("div",{className:"mt-4 h-[80px] w-full rounded-lg overflow-hidden",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})})]})]})}function i(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{className:"pb-2",children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)(f,{className:"h-5 w-36 rounded-md"}),(0,b.jsx)(f,{className:"h-7 w-28 rounded-full"})]})}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsx)("div",{className:"h-[200px] w-full rounded-lg overflow-hidden",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})}),(0,b.jsx)("div",{className:"flex justify-between mt-3",children:Array.from({length:6}).map((a,c)=>(0,b.jsx)(f,{className:"h-3 w-8 rounded-full"},c))})]})]})}function j(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{className:"pb-2",children:(0,b.jsx)(f,{className:"h-5 w-40 rounded-md"})}),(0,b.jsx)(d.CardContent,{children:(0,b.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5}).map((a,d)=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(f,{className:"h-3 w-16 rounded-full flex-shrink-0"}),(0,b.jsx)(c.Skeleton,{className:"h-5 rounded-md bg-[#2d3748]",style:{width:`${60+8*d}%`}})]},d))})})]})}function k(){return(0,b.jsxs)(e,{children:[(0,b.jsxs)(d.CardHeader,{className:"pb-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 rounded-full"}),(0,b.jsx)(f,{className:"h-5 w-32 rounded-md"})]}),(0,b.jsx)(f,{className:"h-3 w-44 rounded-full mt-2"})]}),(0,b.jsx)(d.CardContent,{children:(0,b.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5}).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-[#2d3748] bg-[#0f1419] p-3",children:[(0,b.jsx)(f,{className:"h-4 w-4 rounded-full flex-shrink-0 mt-0.5"}),(0,b.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-3 w-20 rounded-full"}),(0,b.jsx)(f,{className:"h-4 w-12 rounded-full"})]}),(0,b.jsx)(f,{className:"h-3 w-full rounded-full"}),(0,b.jsx)(f,{className:"h-3 w-4/5 rounded-full"})]})]},c))})})]})}function l(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{children:(0,b.jsx)(f,{className:"h-5 w-48 rounded-md"})}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-3 mb-4",children:[(0,b.jsx)(f,{className:"h-12 w-20 rounded-md"}),(0,b.jsx)(f,{className:"h-5 w-16 rounded-full"})]}),(0,b.jsx)("div",{className:"h-[80px] w-full rounded-lg overflow-hidden mb-4",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})}),(0,b.jsx)("div",{className:"grid grid-cols-2 gap-3",children:Array.from({length:2}).map((a,c)=>(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(f,{className:"h-3 w-24 rounded-full"}),(0,b.jsx)(f,{className:"h-6 w-16 rounded-md"})]},c))})]})]})}function m(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{children:(0,b.jsx)(f,{className:"h-5 w-40 rounded-md"})}),(0,b.jsx)(d.CardContent,{children:(0,b.jsx)("div",{className:"grid grid-cols-2 gap-4",children:Array.from({length:2}).map((a,c)=>(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,b.jsx)(f,{className:"h-4 w-20 rounded-full"}),Array.from({length:4}).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-4 w-8 rounded-md"}),(0,b.jsx)(f,{className:"h-3 flex-1 rounded-full"}),(0,b.jsx)(f,{className:"h-3 w-8 rounded-full"})]},c))]},c))})})]})}a.s(["BarChartCardSkeleton",0,j,"DashboardBodySkeleton",0,function(){return(0,b.jsxs)("div",{className:"flex flex-1 flex-col p-6 md:p-8",children:[(0,b.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:Array.from({length:4}).map((a,c)=>(0,b.jsx)(g,{},c))}),(0,b.jsxs)("div",{className:"mt-8 grid gap-6 md:grid-cols-2 xl:grid-cols-3",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-6 xl:col-span-2",children:[(0,b.jsxs)("div",{className:"grid gap-6 md:grid-cols-3",children:[(0,b.jsx)(h,{}),(0,b.jsx)(h,{}),(0,b.jsx)(h,{})]}),(0,b.jsx)(m,{}),(0,b.jsx)(i,{})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,b.jsx)(l,{}),(0,b.jsx)(k,{}),(0,b.jsx)(j,{})]})]})]})},"HubTableSkeleton",0,function(){return(0,b.jsxs)(e,{className:"flex-1",children:[(0,b.jsx)(d.CardHeader,{children:(0,b.jsx)(f,{className:"h-5 w-52 rounded-md"})}),(0,b.jsx)(d.CardContent,{children:(0,b.jsxs)("div",{className:"rounded-md border border-[#2d3748] overflow-hidden",children:[(0,b.jsx)("div",{className:"flex items-center gap-4 px-4 py-3 bg-[#0f1419] border-b border-[#2d3748]",children:[40,20,20,15,10,12].map((a,d)=>(0,b.jsx)(c.Skeleton,{className:"h-3 rounded-full bg-[#2d3748]",style:{width:`${a}%`}},d))}),Array.from({length:5}).map((a,d)=>(0,b.jsx)("div",{className:"flex items-center gap-4 px-4 py-3 border-b border-[#2d3748] last:border-b-0",children:[40,20,20,15,10,12].map((a,d)=>(0,b.jsx)(c.Skeleton,{className:"h-4 rounded-md bg-[#2d3748]",style:{width:`${a}%`}},d))},d))]})})]})},"LineChartCardSkeleton",0,i,"PerformanceKPISkeleton",0,function(){return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 my-6",children:Array.from({length:4}).map((a,c)=>(0,b.jsx)(g,{},c))})},"StatCardSkeleton",0,g])},31358,a=>{"use strict";a.s(["Header",()=>b]);let b=(0,a.i(18060).registerClientReference)(function(){throw Error("Attempted to call Header() from the server but Header is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/header/Header.tsx","Header")},22381,a=>{"use strict";var b=a.i(31358);a.n(b)},24794,a=>{"use strict";a.s(["AppSidebar",()=>b]);let b=(0,a.i(18060).registerClientReference)(function(){throw Error("Attempted to call AppSidebar() from the server but AppSidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sidebar/Sidebar.tsx","AppSidebar")},24084,a=>{"use strict";var b=a.i(24794);a.n(b)},90103,59682,a=>{"use strict";a.i(24084),a.s([],90103),a.i(22381),a.s([],59682)},29171,a=>{"use strict";var b=a.i(91396),c=a.i(67913);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},54367,a=>{"use strict";a.s(["Sidebar",()=>c,"SidebarContent",()=>d,"SidebarFooter",()=>e,"SidebarGroup",()=>f,"SidebarGroupAction",()=>g,"SidebarGroupContent",()=>h,"SidebarGroupLabel",()=>i,"SidebarHeader",()=>j,"SidebarInput",()=>k,"SidebarInset",()=>l,"SidebarMenu",()=>m,"SidebarMenuAction",()=>n,"SidebarMenuBadge",()=>o,"SidebarMenuButton",()=>p,"SidebarMenuItem",()=>q,"SidebarMenuSkeleton",()=>r,"SidebarMenuSub",()=>s,"SidebarMenuSubButton",()=>t,"SidebarMenuSubItem",()=>u,"SidebarProvider",()=>v,"SidebarRail",()=>w,"SidebarSeparator",()=>x,"SidebarTrigger",()=>y,"useSidebar",()=>z]);var b=a.i(18060);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","Sidebar"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarContent() from the server but SidebarContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarContent"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarFooter() from the server but SidebarFooter is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarFooter"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroup() from the server but SidebarGroup is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroup"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupAction() from the server but SidebarGroupAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupAction"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupContent() from the server but SidebarGroupContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupContent"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupLabel() from the server but SidebarGroupLabel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupLabel"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarHeader() from the server but SidebarHeader is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarHeader"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarInput() from the server but SidebarInput is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarInput"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarInset() from the server but SidebarInset is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarInset"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenu() from the server but SidebarMenu is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenu"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuAction() from the server but SidebarMenuAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuAction"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuBadge() from the server but SidebarMenuBadge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuBadge"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuButton() from the server but SidebarMenuButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuButton"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuItem() from the server but SidebarMenuItem is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuItem"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSkeleton() from the server but SidebarMenuSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSkeleton"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSub() from the server but SidebarMenuSub is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSub"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSubButton() from the server but SidebarMenuSubButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSubButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSubItem() from the server but SidebarMenuSubItem is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSubItem"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarProvider() from the server but SidebarProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarProvider"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarRail() from the server but SidebarRail is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarRail"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarSeparator() from the server but SidebarSeparator is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarSeparator"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarTrigger() from the server but SidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarTrigger"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebar() from the server but useSidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","useSidebar")},97728,a=>{"use strict";var b=a.i(54367);a.n(b)},77357,a=>{"use strict";var b=a.i(91396),c=a.i(67913);a.s(["Skeleton",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"skeleton",className:(0,c.cn)("animate-pulse rounded-md bg-muted",a),...d})}])}];
|
|
1
|
+
module.exports=[38281,a=>{"use strict";var b=a.i(91396),c=a.i(77357),d=a.i(29171);function e({children:a,className:c=""}){return(0,b.jsx)(d.Card,{className:`w-full rounded-xl border-[#2d3748] bg-[#1a202c] shadow-[0_4px_6px_rgba(0,0,0,0.3)] ${c}`,children:a})}function f({className:a=""}){return(0,b.jsx)(c.Skeleton,{className:`bg-[#2d3748] ${a}`})}function g(){return(0,b.jsx)(e,{children:(0,b.jsxs)(d.CardContent,{className:"p-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsx)(f,{className:"h-3 w-28 rounded-full"}),(0,b.jsx)(f,{className:"h-8 w-8 rounded-lg"})]}),(0,b.jsx)(f,{className:"h-8 w-20 rounded-md mb-2"}),(0,b.jsx)(f,{className:"h-3 w-36 rounded-full"})]})})}function h(){return(0,b.jsxs)(e,{children:[(0,b.jsxs)(d.CardHeader,{className:"pb-2",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsx)(f,{className:"h-4 w-16 rounded-md"}),(0,b.jsx)(f,{className:"h-6 w-24 rounded-full"})]}),(0,b.jsx)(f,{className:"h-3 w-32 rounded-full mt-2"})]}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2 mt-2",children:[(0,b.jsx)(f,{className:"h-8 w-20 rounded-md"}),(0,b.jsx)(f,{className:"h-4 w-14 rounded-full"})]}),(0,b.jsx)("div",{className:"mt-4 h-[80px] w-full rounded-lg overflow-hidden",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})})]})]})}function i(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{className:"pb-2",children:(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)(f,{className:"h-5 w-36 rounded-md"}),(0,b.jsx)(f,{className:"h-7 w-28 rounded-full"})]})}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsx)("div",{className:"h-[200px] w-full rounded-lg overflow-hidden",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})}),(0,b.jsx)("div",{className:"flex justify-between mt-3",children:Array.from({length:6}).map((a,c)=>(0,b.jsx)(f,{className:"h-3 w-8 rounded-full"},c))})]})]})}function j(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{className:"pb-2",children:(0,b.jsx)(f,{className:"h-5 w-40 rounded-md"})}),(0,b.jsx)(d.CardContent,{children:(0,b.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5}).map((a,d)=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(f,{className:"h-3 w-16 rounded-full flex-shrink-0"}),(0,b.jsx)(c.Skeleton,{className:"h-5 rounded-md bg-[#2d3748]",style:{width:`${60+8*d}%`}})]},d))})})]})}function k(){return(0,b.jsxs)(e,{children:[(0,b.jsxs)(d.CardHeader,{className:"pb-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-5 w-5 rounded-full"}),(0,b.jsx)(f,{className:"h-5 w-32 rounded-md"})]}),(0,b.jsx)(f,{className:"h-3 w-44 rounded-full mt-2"})]}),(0,b.jsx)(d.CardContent,{children:(0,b.jsx)("div",{className:"flex flex-col gap-3",children:Array.from({length:5}).map((a,c)=>(0,b.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-[#2d3748] bg-[#0f1419] p-3",children:[(0,b.jsx)(f,{className:"h-4 w-4 rounded-full flex-shrink-0 mt-0.5"}),(0,b.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(f,{className:"h-3 w-20 rounded-full"}),(0,b.jsx)(f,{className:"h-4 w-12 rounded-full"})]}),(0,b.jsx)(f,{className:"h-3 w-full rounded-full"}),(0,b.jsx)(f,{className:"h-3 w-4/5 rounded-full"})]})]},c))})})]})}function l(){return(0,b.jsxs)(e,{children:[(0,b.jsx)(d.CardHeader,{children:(0,b.jsx)(f,{className:"h-5 w-48 rounded-md"})}),(0,b.jsxs)(d.CardContent,{children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-3 mb-4",children:[(0,b.jsx)(f,{className:"h-12 w-20 rounded-md"}),(0,b.jsx)(f,{className:"h-5 w-16 rounded-full"})]}),(0,b.jsx)("div",{className:"h-[80px] w-full rounded-lg overflow-hidden mb-4",children:(0,b.jsx)(f,{className:"h-full w-full rounded-lg"})}),(0,b.jsx)("div",{className:"grid grid-cols-2 gap-3",children:Array.from({length:2}).map((a,c)=>(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(f,{className:"h-3 w-24 rounded-full"}),(0,b.jsx)(f,{className:"h-6 w-16 rounded-md"})]},c))})]})]})}function m(){return(0,b.jsxs)(d.Card,{className:"w-full bg-dash-card",children:[(0,b.jsxs)(d.CardHeader,{children:[(0,b.jsx)(c.Skeleton,{className:"h-6 w-28 rounded-md bg-dash-border"}),(0,b.jsx)(c.Skeleton,{className:"h-4 w-64 max-w-full rounded-full bg-dash-border"})]}),(0,b.jsx)(d.CardContent,{children:Array.from({length:6}).map((a,d)=>(0,b.jsxs)("div",{className:"flex h-14 items-center gap-4 border-b border-dash-border px-3 last:border-b-0 lg:h-12",children:[(0,b.jsx)(c.Skeleton,{className:"h-4 flex-1 rounded-md bg-dash-border"}),(0,b.jsx)(c.Skeleton,{className:"h-4 w-20 rounded-md bg-dash-border"})]},d))})]})}a.s(["BarChartCardSkeleton",0,j,"DashboardBodySkeleton",0,function(){return(0,b.jsxs)("div",{className:"mx-auto flex w-full max-w-[1600px] flex-1 flex-col p-6 md:p-8",children:[(0,b.jsx)(m,{}),(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsx)(k,{})}),(0,b.jsx)("div",{className:"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:Array.from({length:4}).map((a,c)=>(0,b.jsx)(g,{},c))}),(0,b.jsxs)("div",{className:"mt-6 grid gap-6 md:grid-cols-3",children:[(0,b.jsx)(h,{}),(0,b.jsx)(h,{}),(0,b.jsx)(h,{})]}),(0,b.jsxs)("div",{className:"mt-6 grid gap-6 md:grid-cols-2 xl:grid-cols-3",children:[(0,b.jsx)(i,{}),(0,b.jsx)(l,{}),(0,b.jsx)(j,{})]})]})},"HubTableSkeleton",0,m,"LineChartCardSkeleton",0,i,"PerformanceKPISkeleton",0,function(){return(0,b.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4 my-6",children:Array.from({length:4}).map((a,c)=>(0,b.jsx)(g,{},c))})},"StatCardSkeleton",0,g])},31358,a=>{"use strict";a.s(["Header",()=>b]);let b=(0,a.i(18060).registerClientReference)(function(){throw Error("Attempted to call Header() from the server but Header is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/header/Header.tsx","Header")},22381,a=>{"use strict";var b=a.i(31358);a.n(b)},24794,a=>{"use strict";a.s(["AppSidebar",()=>b]);let b=(0,a.i(18060).registerClientReference)(function(){throw Error("Attempted to call AppSidebar() from the server but AppSidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sidebar/Sidebar.tsx","AppSidebar")},24084,a=>{"use strict";var b=a.i(24794);a.n(b)},90103,59682,a=>{"use strict";a.i(24084),a.s([],90103),a.i(22381),a.s([],59682)},29171,a=>{"use strict";var b=a.i(91396),c=a.i(5e4);a.s(["Card",0,function({className:a,size:d="default",...e}){return(0,b.jsx)("div",{"data-slot":"card","data-size":d,className:(0,c.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...e})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,c.cn)("px-(--card-spacing)",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,c.cn)("text-sm text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"card-header",className:(0,c.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("h3",{"data-slot":"card-title",className:(0,c.cn)("title-enter font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",a),...d})}])},54367,a=>{"use strict";a.s(["Sidebar",()=>c,"SidebarContent",()=>d,"SidebarFooter",()=>e,"SidebarGroup",()=>f,"SidebarGroupAction",()=>g,"SidebarGroupContent",()=>h,"SidebarGroupLabel",()=>i,"SidebarHeader",()=>j,"SidebarInput",()=>k,"SidebarInset",()=>l,"SidebarMenu",()=>m,"SidebarMenuAction",()=>n,"SidebarMenuBadge",()=>o,"SidebarMenuButton",()=>p,"SidebarMenuItem",()=>q,"SidebarMenuSkeleton",()=>r,"SidebarMenuSub",()=>s,"SidebarMenuSubButton",()=>t,"SidebarMenuSubItem",()=>u,"SidebarProvider",()=>v,"SidebarRail",()=>w,"SidebarSeparator",()=>x,"SidebarTrigger",()=>y,"useSidebar",()=>z]);var b=a.i(18060);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","Sidebar"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarContent() from the server but SidebarContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarContent"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarFooter() from the server but SidebarFooter is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarFooter"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroup() from the server but SidebarGroup is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroup"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupAction() from the server but SidebarGroupAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupAction"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupContent() from the server but SidebarGroupContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupContent"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarGroupLabel() from the server but SidebarGroupLabel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarGroupLabel"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarHeader() from the server but SidebarHeader is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarHeader"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarInput() from the server but SidebarInput is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarInput"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarInset() from the server but SidebarInset is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarInset"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenu() from the server but SidebarMenu is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenu"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuAction() from the server but SidebarMenuAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuAction"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuBadge() from the server but SidebarMenuBadge is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuBadge"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuButton() from the server but SidebarMenuButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuButton"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuItem() from the server but SidebarMenuItem is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuItem"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSkeleton() from the server but SidebarMenuSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSkeleton"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSub() from the server but SidebarMenuSub is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSub"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSubButton() from the server but SidebarMenuSubButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSubButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarMenuSubItem() from the server but SidebarMenuSubItem is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarMenuSubItem"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarProvider() from the server but SidebarProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarProvider"),w=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarRail() from the server but SidebarRail is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarRail"),x=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarSeparator() from the server but SidebarSeparator is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarSeparator"),y=(0,b.registerClientReference)(function(){throw Error("Attempted to call SidebarTrigger() from the server but SidebarTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","SidebarTrigger"),z=(0,b.registerClientReference)(function(){throw Error("Attempted to call useSidebar() from the server but useSidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/sidebar.tsx","useSidebar")},97728,a=>{"use strict";var b=a.i(54367);a.n(b)},77357,a=>{"use strict";var b=a.i(91396),c=a.i(5e4);a.s(["Skeleton",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"skeleton",className:(0,c.cn)("animate-pulse rounded-md bg-muted",a),...d})}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=components_1_8btz1._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[9260,a=>{"use strict";var b=a.i(75086);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},e=(0,b.createContext)({}),f=(0,b.forwardRef)(({color:a,size:f,width:g,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,b.useContext)(e)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let e=b.attributeNames??{},f=a=>e[a]??a,g=a.size??a.width??d.width,h=a.size??a.height??d.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?c(...k):c("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(b.size??b.width??d.width):b.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((a,[b,c])=>(a[f(b)]=c,a),{}),..."color"in b&&b.color&&{[f("stroke")]:b.color},..."size"in b&&null!=b.size&&{[f("width")]:b.size,[f("height")]:b.size},..."width"in b&&null!=b.width&&{[f("width")]:b.width},..."height"in b&&null!=b.height&&{[f("height")]:b.height},[f("stroke-width")]:m,...l&&{[f("class")]:l},[f("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[f("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,d,e]=a,g=b.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...d}:d;return e?[c,g,e]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:g??f??r,height:h??f??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:c(w,l),hasA11yProp:x,attributes:p});return(0,b.createElement)(y,{ref:q,...z},[...A.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(m)?m:[m]])});a.s(["default",0,f],9260)},23904,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=node_modules__pnpm_1nkgz3w._.js.map
|
|
@@ -7,15 +7,15 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/0cz1d0mv5g_q7.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/GVE2T1XZpK2w4phBvG0Q0/_buildManifest.js",
|
|
11
|
+
"static/GVE2T1XZpK2w4phBvG0Q0/_ssgManifest.js",
|
|
12
|
+
"static/GVE2T1XZpK2w4phBvG0Q0/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/42z_0gfabqpr_.js",
|
|
16
|
-
"static/chunks/
|
|
17
|
-
"static/chunks/
|
|
18
|
-
"static/chunks/turbopack-
|
|
16
|
+
"static/chunks/3vpvl6gwhuz4w.js",
|
|
17
|
+
"static/chunks/21q5shbghrpvd.js",
|
|
18
|
+
"static/chunks/turbopack-2-umre2j9nu7o.js"
|
|
19
19
|
],
|
|
20
20
|
"rootMainFilesTree": {},
|
|
21
21
|
"pagesChunkGroupBootstrapParams": {},
|