PageSourceSearch

https://fernish.com/_next/static/chunks/7668-48dc5581edac94e0.js

js fernish.com collected 2026-09-28 07:43:13 UTC 44,226 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7668],{578:(e,t,s)=>{s.d(t,{d:()=>i});var a=s(37876),r=s(14232),l=s(98295),n=s(2173);let i=r.forwardRef(function(e,t){let{className:s,size:r="default",...i}=e;return(0,a.jsx)(l.bL,{ref:t,"data-slot":"switch","data-size":r,className:(0,n.cn)("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-secondary-foreground data-[state=unchecked]:bg-muted dark:data-[state=unchecked]:bg-input/80",s),...i,children:(0,a.jsx)(l.zi,{"data-slot":"switch-thumb",className:(0,n.cn)("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 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")})})});i.displayName="Switch"},8656:(e,t,s)=>{s.d(t,{I:()=>n});var a=s(37876),r=s(2173);let l={chair:e=>(0,a.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsx)("path",{d:"M20.2409 13.4924H5.7636C5.19239 13.4924 4.72754 13.9573 4.72754 14.5285C4.72754 15.0997 5.19239 15.5606 5.7636 15.5606H20.2409C20.8121 15.5606 21.2769 15.0958 21.2769 14.5285C21.273 13.9573 20.8081 13.4924 20.2409 13.4924Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M17.5932 19.697H8.41442L8.7532 16.64H6.2832V24.9127H7.83532L8.30411 20.7133C8.33563 20.7212 8.36714 20.733 8.4026 20.733H17.609C17.6444 20.733 17.6759 20.7212 17.7114 20.7133L18.1802 24.9127H19.7323V16.64H17.2623L17.5932 19.697Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M19.2959 12.4603L20.1113 2.75758C20.1783 1.85151 19.4692 1.08727 18.5671 1.08727H7.43831C6.53225 1.08727 5.81922 1.85151 5.89407 2.75758L6.70953 12.4642H19.2959V12.4603Z",fill:"currentColor"})]}),coin:e=>(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsx)("g",{clipPath:"url(#clip0_5269_227)",children:(0,a.jsx)("path",{d:"M12 0C5.37284 0 0 5.37284 0 12C0 18.6272 5.37284 24 12 24C18.6272 24 24 18.6272 24 12C24 5.37284 18.6272 0 12 0ZM15.4469 16.7309C14.9235 17.3679 14.242 17.7975 13.4469 18.0148C13.1012 18.1086 12.9432 18.2914 12.963 18.6519C12.9778 19.0074 12.963 19.358 12.958 19.7136C12.958 20.0296 12.7951 20.1975 12.484 20.2074C12.2815 20.2123 12.079 20.2173 11.8765 20.2173C11.6988 20.2173 11.521 20.2173 11.3432 20.2123C11.0074 20.2074 10.8494 20.0148 10.8494 19.6889C10.8444 19.4321 10.8444 19.1704 10.8444 18.9136C10.8395 18.3407 10.8198 18.321 10.2716 18.2321C9.57037 18.1185 8.87901 17.9605 8.23704 17.6494C7.73333 17.4025 7.67901 17.279 7.82222 16.7457C7.93086 16.3506 8.03951 15.9556 8.16296 15.5654C8.25185 15.279 8.3358 15.1506 8.48889 15.1506C8.57778 15.1506 8.69136 15.1951 8.84445 15.2741C9.55556 15.6444 10.3111 15.8519 11.1062 15.9506C11.2395 15.9654 11.3728 15.9753 11.5062 15.9753C11.8765 15.9753 12.237 15.9062 12.5877 15.7531C13.4716 15.3679 13.6099 14.3457 12.8642 13.7333C12.6123 13.5259 12.321 13.3728 12.0198 13.2395C11.2444 12.8988 10.4395 12.642 9.70864 12.2025C8.52346 11.4914 7.77284 10.5185 7.86173 9.07654C7.96049 7.44691 8.88395 6.42963 10.3802 5.88642C10.9975 5.6642 11.0025 5.66914 11.0025 5.02716C11.0025 4.80988 10.9975 4.59259 11.0074 4.37037C11.0222 3.88642 11.1012 3.80247 11.5852 3.78765C11.6395 3.78765 11.6988 3.78765 11.7531 3.78765C11.8469 3.78765 11.9407 3.78765 12.0346 3.78765C12.0741 3.78765 12.1136 3.78765 12.1481 3.78765C13.0667 3.78765 13.0667 3.82716 13.0716 4.81975C13.0765 5.55062 13.0765 5.55062 13.8025 5.6642C14.3605 5.75309 14.8889 5.91605 15.4025 6.14321C15.684 6.26667 15.7926 6.4642 15.7037 6.76543C15.5753 7.20988 15.4519 7.65926 15.3136 8.09877C15.2247 8.36543 15.1407 8.48889 14.9827 8.48889C14.8938 8.48889 14.7852 8.45432 14.6469 8.38519C13.9358 8.03951 13.1901 7.8716 12.4099 7.8716C12.3111 7.8716 12.2074 7.87654 12.1086 7.88148C11.8765 7.8963 11.6494 7.92593 11.4321 8.01975C10.6617 8.35556 10.5383 9.20494 11.1951 9.7284C11.5259 9.99506 11.9062 10.1827 12.2963 10.3457C12.9778 10.6272 13.6593 10.8988 14.3062 11.2543C16.3407 12.3901 16.8938 14.9728 15.4469 16.7309Z",fill:"currentColor"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_5269_227",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),houseMove:e=>(0,a.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_5204_450)",children:[(0,a.jsx)("path",{d:"M23.3631 24.2584C22.8837 24.2584 22.4941 24.648 22.4941 25.1274C22.4941 25.6092 22.8837 26 23.3631 26C23.8425 26 24.2321 25.6088 24.2321 25.1274C24.2317 24.648 23.8421 24.2584 23.3631 24.2584ZM24.6034 18.8191C24.6034 18.4685 24.3239 18.1882 23.977 18.1882H22.6944V20.8829H24.6034V18.8191Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M24.8664 21.5097H22.2774C22.1624 21.5097 22.0686 21.4155 22.0686 21.3001V17.9794H21.3085V25.014H22.0738L22.11 24.8499C22.2376 24.2653 22.7649 23.84 23.3637 23.84C23.9609 23.84 24.4902 24.2653 24.6222 24.8507L24.6588 25.014H25.5985V22.0606L24.8664 21.5097ZM13.6177 24.2584C13.1363 24.2584 12.7451 24.648 12.7451 25.1274C12.7451 25.6092 13.1367 26 13.6177 26C14.0971 26 14.4867 25.6088 14.4867 25.1274C14.4863 24.648 14.0967 24.2584 13.6177 24.2584Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M12.1016 24.806H12.156C12.3063 24.1373 12.9039 23.6316 13.6181 23.6316C14.2908 23.6316 14.8547 24.0829 15.0428 24.6931C15.2309 24.0829 15.7948 23.6316 16.4671 23.6316C17.1817 23.6316 17.7789 24.1369 17.9252 24.806H20.6824V22.8971H12.1016V24.806Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M16.4667 24.2584C15.9853 24.2584 15.5941 24.648 15.5941 25.1274C15.5941 25.6092 15.9857 26 16.4667 26C16.9461 26 17.3361 25.6088 17.3361 25.1274C17.3361 24.648 16.9461 24.2584 16.4667 24.2584ZM12.1016 22.0614H20.682V15.8328H12.1016V22.0614ZM14.1738 18.5567H16.9185L16.5008 18.2638C16.3128 18.1305 16.2668 17.8669 16.4005 17.6792C16.5342 17.4915 16.7933 17.4452 16.9814 17.5792L18.5938 18.7155C18.7027 18.7911 18.7693 18.9203 18.7693 19.0535C18.7693 19.1917 18.7027 19.3168 18.5938 19.3964L16.9311 20.566C16.8559 20.616 16.7722 20.6416 16.6889 20.6416C16.5593 20.6416 16.4298 20.5827 16.3505 20.4661C16.2169 20.278 16.2628 20.0147 16.4505 19.8851L17.1484 19.3923H14.1742C13.9447 19.3923 13.7566 19.2042 13.7566 18.9743C13.7558 18.7399 13.9439 18.5567 14.1738 18.5567Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M19.1114 0.923004H16.8096V3.31704L19.1114 5.10494V0.923004Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M21.7631 8.86884L21.8508 8.76444C21.9097 8.69334 21.9431 8.593 21.9301 8.48819C21.9179 8.38825 21.8634 8.29238 21.7797 8.22941L11.1648 0L0.550342 8.22981C0.466654 8.29238 0.412217 8.38866 0.404092 8.49266C0.391904 8.593 0.420748 8.69334 0.487779 8.77216L0.566998 8.86438C0.716904 9.04394 0.984217 9.07319 1.17231 8.92694L10.9101 1.37841C11.0604 1.26588 11.2697 1.26588 11.42 1.37841L18.9726 7.23125C19.0018 7.25238 19.027 7.26903 19.0518 7.29381L21.1614 8.92734C21.3455 9.06913 21.6172 9.03988 21.7631 8.86884Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M13.6683 12.6701V14.9971H18.3259V7.787L11.1654 2.23925L3.85938 7.90359V18.9239H8.90987V12.6701C8.90987 12.4361 9.09797 12.2525 9.3275 12.2525H13.2503C13.4838 12.2525 13.6683 12.4361 13.6683 12.6701ZM11.1654 10.0218C9.65331 10.0218 8.42116 8.78962 8.42116 7.27716C8.42116 5.76103 9.65331 4.52847 11.1654 4.52847C12.6819 4.52847 13.9145 5.76062 13.9145 7.27716C13.9145 8.78962 12.6823 10.0218 11.1654 10.0218Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M12.833 13.0882H9.74555V18.9239H11.2661V15.6488C11.2661 15.29 11.5546 14.9971 11.9137 14.9971H12.833V13.0882ZM10.7482 9.14022V7.69478H9.30273C9.46605 8.41344 10.0299 8.97731 10.7482 9.14022ZM9.30273 6.85953H10.7482V5.41369C10.0299 5.57741 9.46605 6.14088 9.30273 6.85953ZM11.5838 5.41369V6.85953H13.0297C12.8664 6.14088 12.3021 5.57741 11.5838 5.41369ZM11.5838 9.14022C12.3025 8.97731 12.8664 8.41344 13.0297 7.69478H11.5838V9.14022Z",fill:"currentColor"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_5204_450",children:(0,a.jsx)("rect",{width:"26",height:"26",fill:"white"})})})]}),salesforceCloud:e=>(0,a.jsx)("svg",{viewBox:"0 0 40 26",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M14.9 3.3a7.1 7.1 0 0 1 11.5 1.5 8.7 8.7 0 0 1 3.6-.8 8.8 8.8 0 0 1 0 17.6 6.4 6.4 0 0 1-5.8-3.5 5.7 5.7 0 0 1-7.6-1.1 6 6 0 0 1-10.8-3 5.5 5.5 0 0 1 2.7-4.8A6.7 6.7 0 0 1 14.9 3.3Z"})}),tag:s(34213).A},n=e=>{let{name:t,className:s,...n}=e,i=l[t];return(0,a.jsx)(i,{className:(0,r.cn)("text-primary-text-foreground",s),...n})}},14439:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(37876),r=s(35580),l=s(2173),n=s(37132);
1function i(e){let{control:t,name:s,label:i,options:c,rules:o,requiredIndicator:d,placeholder:u,disabled:x,allowEmptyOption:m,emptyOptionLabel:h,triggerClassName:p,contentProps:j,formItemClassName:f,formLabelClassName:g}=e;return(0,a.jsx)(n.zB,{control:t,name:s,rules:o,render:e=>{let{field:t,fieldState:s}=e;return(0,a.jsxs)(n.eI,{className:(0,l.cn)("min-w-0",f),children:[(0,a.jsxs)(n.lR,{className:g,children:[i,(null!=d?d:!!(null==o?void 0:o.required))&&(0,a.jsx)("span",{className:"text-destructive ml-1",children:"*"})]}),(0,a.jsx)(r.A,{value:t.value,onValueChange:e=>t.onChange("__empty__"===e?"":e),options:c,placeholder:u,disabled:x,allowEmptyOption:m,emptyOptionLabel:h,triggerClassName:p,contentProps:j,"aria-invalid":s.invalid||void 0}),(0,a.jsx)(n.C5,{})]})}})}},30769:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(37876),r=s(2173),l=s(42319);let n=e=>{let{open:t,onOpenChange:s,title:n,titleNode:i,hideTitle:c=!1,children:o,footer:d,contentClassName:u,headerAction:x,bodyClassName:m,bodyScrollable:h=!0,description:p}=e,j=!c&&!!n;return(0,a.jsx)(l.cj,{open:t,onOpenChange:s,children:(0,a.jsxs)(l.h,{showCloseButton:!1,className:(0,r.cn)("flex w-full flex-col bg-white gap-0 overflow-hidden p-0 sm:max-w-150",u),children:[j?(0,a.jsxs)(l.Fm,{className:"px-6 sm:px-8 py-8 pb-4 text-left",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsx)(l.qp,{className:"text-xl text-primary m-0",children:null!=i?i:n}),x]}),(0,a.jsx)(l.Qs,{className:"sr-only",children:null!=p?p:"Side sheet content"})]}):null,(0,a.jsx)("div",{className:(0,r.cn)("relative flex-1 min-h-0",h?"overflow-y-auto px-6 sm:px-8":"flex flex-col overflow-hidden px-6 sm:px-8",!j&&h&&"pt-6",!j&&!h&&"pt-6",m),children:o}),d?(0,a.jsx)(l.XW,{className:"border-t border-border bg-white px-6 sm:px-8 py-4",children:d}):null]})})}},32644:(e,t,s)=>{s.d(t,{BT:()=>c,Wu:()=>d,X9:()=>o,ZB:()=>i,Zp:()=>l,aR:()=>n,wL:()=>u});var a=s(37876);s(14232);var r=s(2173);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...s})}function i(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",t),...s})}function c(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...s})}function u(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center px-6 [.border-t]:pt-6",t),...s})}},35580:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(37876),r=s(37132),l=s(93293);function n(e){let{formItemId:t,formDescriptionId:s,formMessageId:n,error:i}=(0,r.Wd)();return(0,a.jsx)(l.A,{...e,triggerId:t,triggerInvalid:!!i,triggerAriaDescribedBy:i?"".concat(s," ").concat(n):s})}},45404:(e,t,s)=>{s.d(t,{A:()=>ei});var a=s(37876),r=s(14232),l=s(89099),n=s(88992),i=s(59688),c=s(49860),o=s(15338),d=s(37132),u=s(46737),x=s(28908),m=s(11944),h=s(30769),p=s(21545),j=s(75278),f=s(93990),g=s(93309);function v(e){let{open:t,onOpenChange:s}=e,v=(0,l.useRouter)(),[b,y]=(0,r.useState)(null),N=(0,n.mN)({defaultValues:x.IW,mode:"onBlur"}),w=(0,n.FH)({control:N.control,name:"projectType"}),C=(0,x.Be)(w),k=(0,j.b)({control:N.control,setValue:N.setValue,isCreating:!0,typeAnchorsToSalesforce:(0,x.A3)(w)}),{mutateAsync:A,isLoading:z}=(0,u.AQ)(),{clearPersistedState:E}=(0,g.k)({form:N,storageKey:"vesta_create_project_form",enabled:t,transformValues:e=>{let{customerEmail:t,...s}=e;return s}});(0,r.useEffect)(()=>{C||N.clearErrors((0,x.EB)())},[N,C]);let P=()=>{E(),N.reset(x.IW),y(null),s(!1)};async function I(e){y(null),N.clearErrors();let t=(0,x.qI)(e);if(Object.keys(t).length>0)return void(0,x.xk)(N.setError,y,t);try{var a;let t=await A((0,x.Ay)(e,k));if(null==(a=t.errors)?void 0:a.length)return void(0,x.xk)(N.setError,y,(0,x.PP)(t.errors));i.oR.success("Project created successfully."),E(),N.reset(x.IW),s(!1);let r=(0,p.KQ)(t.id);await v.push(r.href,r.as)}catch(e){y("Unable to create project. Please try again.")}}return(0,a.jsx)(h.A,{open:t,onOpenChange:function(e){y(null),s(e)},onCloseButtonClick:P,title:"Create Project",footer:(0,a.jsxs)("div",{className:"flex w-full justify-end gap-3",children:[(0,a.jsx)(o.$,{type:"button",variant:"outline",onClick:P,children:"Cancel"}),(0,a.jsx)(o.$,{type:"button",onClick:N.handleSubmit(I),disabled:z||!N.formState.isDirty,children:z?"Creating...":"Create Project"})]}),children:(0,a.jsx)(d.lV,{...N,children:(0,a.jsxs)("form",{className:"space-y-5 pb-6",onSubmit:N.handleSubmit(I),children:[b?(0,a.jsxs)(c.Fc,{variant:"destructive",className:"border-red-500",children:[(0,a.jsx)(f.A,{className:"h-4 w-4"}),(0,a.jsx)(c.XL,{children:"Unable to create project"}),(0,a.jsx)(c.TN,{children:b})]}):null,(0,a.jsx)(m.A,{control:N.control,projectType:w,editable:!0,fieldLabelOverrides:{moveoutDate:"Estimated Move Out Date",installDate:"Estimated Install Date",...k.canEditBreakdown?{sqft:"Total Sq Ft"}:{}},disabledFieldNames:(0,p.DA)(k)})]})})})}var b=s(35971),y=s(32644);function N(){return(0,a.jsx)("div",{className:"space-y-3",children:Array.from({length:4},(e,t)=>(0,a.jsx)(y.Zp,{className:"gap-0 rounded-xl border-border py-0",children:(0,a.jsxs)(y.Wu,{className:"space-y-4 p-4",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(b.E,{className:"h-4 w-16"}),(0,a.jsx)(b.E,{className:"h-6 w-40"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(b.E,{className:"size-8 rounded-md"}),(0,a.jsx)(b.E,{className:"size-8 rounded-md"})]})]}),(0,a.jsx)(b.E,{className:"h-6 w-24 rounded-full"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(b.E,{className:"h-4 w-20"}),(0,a.jsx)(b.E,{className:"h-4 w-24"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(b.E,{className:"h-4 w-24"}),(0,a.jsx)(b.E,{className:"h-4 w-24"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(b.E,{className:"h-4 w-16"}),(0,a.jsx)(b.E,{className:"h-4 w-28"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(b.E,{className:"h-4 w-20"}),(0,a.jsx)(b.E,{className:"h-4 w-28"})]})]})]})},"mobile-project-loading-".concat(t)))})}var w=s(68210),C=s(58167),k=s(54791),A=s(49516),z=s(80930),E=s(97621
1),P=s(74503),I=s(11508);let S={upcoming:k.A,reserving:A.A,installing:z.A,installed:E.A,archived:P.A};function L(e){let{state:t,activeTab:s}=e;if("error"===t)return(0,a.jsxs)("div",{className:"flex min-h-150 flex-1 flex-col items-center justify-center gap-3 px-6 py-12 text-center text-muted-foreground",children:[(0,a.jsx)(I.A,{className:"size-8 text-destructive"}),(0,a.jsx)("p",{children:"Projects failed to load. Refresh the page or try another filter."})]});let r="all"===s?"current filters":p.NV[s],l=S[s];return(0,a.jsxs)("div",{className:"flex min-h-150 flex-1 flex-col items-center justify-center gap-3 px-6 py-12 text-center text-muted-foreground",children:[l?(0,a.jsx)(l,{className:"size-8 ".concat(p.NS[s])}):null,(0,a.jsxs)("p",{children:["No projects match ",r,"."]})]})}var V=s(2173),H=s(89897),D=s(79758),M=s(46012);function O(e){let{projects:t,isLoading:s,isError:r,activeTab:n,canEdit:i,onOpenSheet:c}=e,d=(0,l.useRouter)(),u=null;return s?(0,a.jsx)(N,{}):(r?u="error":0===t.length&&(u="empty"),u)?(0,a.jsx)(y.Zp,{className:"gap-0 rounded-xl border-border py-0",children:(0,a.jsx)(y.Wu,{className:"p-0",children:(0,a.jsx)(L,{state:u,activeTab:n})})}):(0,a.jsx)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:t.map(e=>{var t,s,r,l,n,u,x,m;let h=(0,p.d_)(e.id),j="ID: ".concat((0,p.jc)(e.id,e.oldEamesId));return(0,a.jsx)(y.Zp,{className:"gap-0 rounded-xl border-border py-0",onClick:()=>d.push(h.href,h.as),children:(0,a.jsxs)(y.Wu,{className:"space-y-2 p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)(H.eu,{size:"md",className:"rounded-md ",children:[(0,a.jsx)(H.BK,{src:null!=(r=null==e?void 0:e.thumbnailUrl)?r:void 0,alt:e.name,className:"rounded-md"}),(0,a.jsx)(H.q5,{className:"rounded-md bg-accent",children:(0,a.jsx)(E.A,{className:"size-4 text-primary-text-foreground "})})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm font-medium text-muted-foreground gap-2",children:[(0,a.jsx)(w.A,{label:j,className:"bg-background text-primary-text-foreground"}),(0,a.jsx)(C.A,{projectType:e.projectType})]})]}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-1",children:[(0,a.jsx)("p",{className:"m-0 min-w-0 flex-1 font-semibold line-clamp-2 whitespace-break-spaces",children:e.name}),i?(0,a.jsx)(o.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:t=>{t.stopPropagation(),c(e.id)},"aria-label":"Open project details and edit actions",children:(0,a.jsx)(D.A,{className:"size-4",strokeWidth:1.2})}):null]}),(0,a.jsxs)("div",{className:" space-y-2",children:[(0,a.jsx)(M.A,{label:"Install Date",value:null!=(l=(0,V.Yq)(e.installDate))?l:""}),(0,a.jsx)(M.A,{label:"Move Out Date",value:null!=(u=(0,V.Yq)(null!=(n=e.moveoutDate)?n:e.endDate))?u:"",project:e}),(0,a.jsx)(M.A,{label:"Designer",value:null!=(x=null==(t=e.designers[0])?void 0:t.fullName)?x:""}),(0,a.jsx)(M.A,{label:"Sales Person",value:null!=(m=null==(s=e.salespersons[0])?void 0:s.fullName)?m:"",project:e})]})]})},e.id)})})}var _=s(29011),q=s(48698);function Z(e){var t,s,r,n,i,c;let{project:d,canEdit:u,hideDesignerColumn:x,hideSalespersonColumn:m,onOpenSheet:h}=e,j=(0,l.useRouter)(),f=(0,p.KQ)(d.id);return(0,a.jsxs)(q.Hj,{tabIndex:0,className:"cursor-pointer focus-visible:bg-accent/40 hover:bg-accent/30",onClick:()=>j.push(f.href,f.as),children:[(0,a.jsx)(q.nA,{children:(0,p.jc)(d.id,d.oldEamesId)}),(0,a.jsx)(q.nA,{className:"max-w-0",children:(0,a.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-3 font-medium",children:[(0,a.jsxs)(H.eu,{size:"md",className:"rounded-md ",children:[(0,a.jsx)(H.BK,{src:null!=(r=null==d?void 0:d.thumbnailUrl)?r:void 0,alt:d.name,className:"rounded-md"}),(0,a.jsx)(H.q5,{className:"rounded-md bg-accent",children:(0,a.jsx)(E.A,{className:"size-4 text-primary-text-foreground "})})]}),(0,a.jsx)("span",{className:"min-w-0 flex-wrap line-clamp-2 whitespace-break-spaces",children:d.name})]})}),(0,a.jsx)(q.nA,{children:(0,a.jsx)(C.A,{projectType:d.projectType})}),(0,a.jsx)(q.nA,{children:d.installDate?(0,V.Yq)(d.installDate):"-"}),(0,a.jsx)(q.nA,{children:d.moveoutDate||d.endDate?(0,V.Yq)(null!=(n=d.moveoutDate)?n:d.endDate):"-"}),x?null:(0,a.jsx)(q.nA,{className:"max-w-0",children:(0,a.jsx)("span",{className:"block min-w-0 max-w-full truncate",children:null!=(i=null==(t=d.designers[0])?void 0:t.fullName)?i:"-"})}),m?null:(0,a.jsx)(q.nA,{className:"max-w-0",children:(0,a.jsx)("span",{className:"block min-w-0 max-w-full truncate",children:null!=(c=null==(s=d.salespersons[0])?void 0:s.fullName)?c:"-"})}),u?(0,a.jsx)(q.nA,{children:(0,a.jsx)("div",{className:"flex items-center justify-end gap-1",children:(0,a.jsx)(o.$,{type:"button",variant:"ghost",size:"icon-sm",onClick:e=>{e.stopPropagation(),h(d.id)},"aria-label":"Open project details and edit actions",children:(0,a.jsx)(D.A,{className:"size-4"})})})}):null]})}function Q(){return(0,a.jsxs)("div",{className:"flex flex-col w-full absolute inset-0 ",children:[(0,a.jsx)("div",{className:"border-b bg-background px-4 py-3 w-full",children:(0,a.jsxs)("div",{className:"flex gap-4 w-full justify-between",children:[(0,a.jsx)(b.E,{className:"h-4 w-14"}),(0,a.jsx)(b.E,{className:"h-5 w-48"}),(0,a.jsx)(b.E,{className:"h-5 w-24"}),(0,a.jsx)(b.E,{className:"h-5 w-20"}),(0,a.jsx)(b.E,{className:"h-5 w-20"}),(0,a.jsx)(b.E,{className:"h-5 w-24"}),(0,a.jsx)(b.E,{className:"h-5 w-24"}),(0,a.jsx)(b.E,{className:"h-5 w-10 justify-self-end"})]})}),(0,a.jsx)("div",{className:"flex flex-1 flex-col w-full",children:Array.from({length:8},(e,t)=>(0,a.jsxs)("div",{className:"flex  items-center justify-between gap-4 border-b px-4 py-4",children:[(0,a.jsx)(b.E,{className:"h-4 w-14"}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(b.E,{className:"size-12 rounded-md"}),(0,a.jsx)(b.E,{className:"h-6 w-36"})]}),(0,a.jsx)(b.E,{className:"h-6 w-24 rounded-full"}),(0,a.jsx)(b.E,{className:"h-4 w-20"}),(0,a.jsx)(b.E,{className:"h-4 w-20"}),(0,a.jsx)(b.E,{className:"h-4 w-24"}),(0,a.jsx)(b.E,{className:"h-4 w-24"}),(0,a.jsx)("div",{className:"flex justify-end gap-2",children:(0,a.jsx)(b.E,{className:"size-8 rounded-md"})})]},"project-table-loading-".concat(t)))})]})}var B=s(6973);function T(e){let{pathAccessed:t,fallbackElement:s=null,children:r}=e,{canAccessRoute:l,hasPermission:n}=(0,B.n)(),i=n(t);return(0,a.jsx)(a.Fragment,{children:i?null!=r?r:null:s})}var F=s(57117),R=s(37875),W=s(3173);function $(e){let{projects:t,isLoading:s,isError:r,activeTab:l,canEdit:n,sortBy:i,sortOrder:c,onSort:o,onOpenSheet:d}=e,{hasPermission:u}=(0,W.n8)(),x=!u(R.$9),m=!u(R.p8),h=null;return r?h="error":0===t.length&&(h="empty"),(0,a.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:(0,a.jsx)("div",{className:"relative flex min-h-0 flex-1 overflow-hidden rounded-xl border border-border bg-white shadow-sm",children:s?(0,a.jsx)(Q,{}):h?(0,a.jsx)(L,{state:h,activeTab:l}):(0,a.jsx)("div",{className:"absolute inset-0 overflow-auto [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-visible",children:(0,a.jsxs)(q.XI,{children:[(0,a.jsx)(q.A0,{className:"bg-background",children:(0,a.jsxs)(q.Hj,{className:"hover:bg-transparent",children:[(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 w-21 bg-background",children:"ID"}),(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 min-w-75 bg-background p-0",children:(0,a.jsx)(F.A,{label:"Project Name",field:"name",sortBy:i,sortOrder:c,onSort:o})}),(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 bg-background",children:"Type"}),(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 w-34 bg-background p-0",children:(0,a.jsx)(F.A,{label:"Install Date",field:"installDate",sortBy:i,sortOrder:c,onSort:o})}),(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 w-34 bg-background p-0",children:(0,a.jsx)(F.A,{label:"Move Out Date",field:"moveoutDate",sortBy:i,sortOrder:c,onSort:o})}),(0,a.jsx)(T,{pathAccessed:R.$9,fallbackElement:null,children:(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 min-w-30 bg-background",children:"Designer"})}),(0,a.jsx)(T,{pathAccessed:R.p8,fallbackElement:null,children:(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 min-w-30 bg-background",children:"Sales Person"})}),n?(0,a.jsx)(q.nd,{className:"sticky top-0 z-10 w-24 bg-background"}):null]})}),(0,a.jsx)(q.BF,{children:t.map(e=>(0,a.jsx)(Z,{project:e,canEdit:n,hideDesignerColumn:x,hideSalespersonColumn:m,onOpenSheet:d},e.id))})]})})})})}var G=s(91422),X=s(30358),Y=s(41354),J=s(90964);function K(e){var t,s,l,n;let{open:i,onOpenChange:c}=e,[d,u]=(0,r.useState)(p.jp),x=(0,r.useMemo)(()=>(0,p.Yr)(d),[d]),{mutateAsync:m,isLoading:h}=(0,G.x1)(),{mutateAsync:j,isLoading:f}=(0,G.X)();function g(e,t){u(s=>({...s,[e]:t?Number(t):null}))}async function v(){var e,t,s,a;let r=await m({roomsQuantity:null!=(e=d.roomsQuantity)?e:0});await j({projectId:r.projectId,componentsOnlyQuantity:null!=(t=d.componentsOnlyQuantity)?t:0,singlePartItemsQuantity:null!=(s=d.singlePartItemsQuantity)?s:0,multiPartItemsQuantity:null!=(a=d.multiPartItemsQuantity)?a:0}),c(!1)}return(0,a.jsx)(X.lG,{open:i,onOpenChange:c,children:(0,a.jsxs)("div",{className:"ml-auto space-y-3",children:[(0,a.jsx)(X.zM,{asChild:!0,children:(0,a.jsx)(o.$,{type:"button",variant:"destructive",children:"QA Tools"})}),(0,a.jsxs)(X.Cf,{className:"gap-4 w-[95dvw] sm:w-full max-w-3xl!",children:[(0,a.jsxs)(X.c7,{className:"space-y-0",children:[(0,a.jsx)(X.L3,{children:"Generate QA Project"}
1),(0,a.jsx)(X.rr,{children:"Non-production helper for generating a project and seed COLIs."})]}),(0,a.jsxs)(y.Wu,{className:"grid gap-3 px-0 sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(J.J,{htmlFor:"qa-rooms-quantity",children:"Rooms"}),(0,a.jsx)(Y.p,{id:"qa-rooms-quantity",type:"number",value:null!=(t=d.roomsQuantity)?t:"",onChange:e=>g("roomsQuantity",e.target.value),placeholder:"Rooms","aria-invalid":x.includes("roomsQuantity")})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(J.J,{htmlFor:"qa-components-only-quantity",children:"Components Only"}),(0,a.jsx)(Y.p,{id:"qa-components-only-quantity",type:"number",value:null!=(s=d.componentsOnlyQuantity)?s:"",onChange:e=>g("componentsOnlyQuantity",e.target.value),placeholder:"Components Only","aria-invalid":x.includes("componentsOnlyQuantity")})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(J.J,{htmlFor:"qa-single-part-items-quantity",children:"Single Part Items"}),(0,a.jsx)(Y.p,{id:"qa-single-part-items-quantity",type:"number",value:null!=(l=d.singlePartItemsQuantity)?l:"",onChange:e=>g("singlePartItemsQuantity",e.target.value),placeholder:"Single Part Items","aria-invalid":x.includes("singlePartItemsQuantity")})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(J.J,{htmlFor:"qa-multi-part-items-quantity",children:"Multi Part Items"}),(0,a.jsx)(Y.p,{id:"qa-multi-part-items-quantity",type:"number",value:null!=(n=d.multiPartItemsQuantity)?n:"",onChange:e=>g("multiPartItemsQuantity",e.target.value),placeholder:"Multi Part Items","aria-invalid":x.includes("multiPartItemsQuantity")})]}),(0,a.jsx)("div",{className:"sm:col-start-2 sm:col-span-1 lg:col-start-4 lg:col-span-1 flex justify-end",children:(0,a.jsx)(o.$,{type:"button",disabled:x.length>0||h||f,onClick:v,children:h||f?"Generating...":"Generate Project"})})]})]})]})})}var U=s(74434);function ee(e){let{activeTab:t,facets:s,onChange:l,isLoading:n}=e,[i,c]=(0,r.useState)(!1),d=(0,W.al)();return(0,a.jsx)("div",{className:(0,V.cn)("overflow-x-auto border-b border-border px-4 md:px-6",d&&"sticky top-58.25 z-10 bg-background"),children:(0,a.jsxs)("div",{className:"flex min-w-max items-center",children:[p.qe.map(e=>{var r;let i=e===t,c=null!=(r=s[e])?r:0;return(0,a.jsx)(o.$,{type:"button",variant:"ghost",className:(0,V.cn)("h-17 rounded-none border-b-2 border-transparent px-6 text-base font-semibold text-primary-text-foreground hover:bg-transparent",i&&"border-primary text-primary",d&&"h-14"),onClick:()=>l(e),children:(0,a.jsxs)("span",{className:"flex items-center gap-2",children:["all"!==e?(0,a.jsx)("span",{className:(0,V.cn)("size-2 rounded-full",p.TL[e])}):null,(0,a.jsxs)("span",{children:[p.NV[e],"all"===e||n?"":" (".concat(c,")")]})]})},e)}),(0,U.KV)()?null:(0,a.jsx)(K,{open:i,onOpenChange:c})]})})}var et=s(93583),es=s(50546),ea=s(62235),er=s(52010),el=s(77328),en=s.n(el);function ei(){var e,t,s;let{canAccessRoute:l,hasPermission:n,isPermissionsPending:i}=(0,W.n8)(),c=(0,W.al)(),[d,x]=(0,r.useState)(!1),m=l("/projects"),h=n(R.O8),p=n(R.uY),{activeTab:j,page:f,perPage:g,search:b,debouncedSearch:y,projectType:N,sortBy:w,sortOrder:C,selectedProjectId:k,setSearch:A,setPage:z,setSelectedProjectId:E,handleTabChange:P,handlePerPageChange:I,handleSortChange:S}=(0,W.DG)(25),L=(0,u.su)({params:{page:f,perPage:g,q:y||void 0,projectType:N||void 0,status:j,sortBy:w,sortOrder:C},options:{keepPreviousData:!0}}),V=(0,u.ro)({params:{q:y||void 0,projectType:N||void 0},options:{keepPreviousData:!0}}),H=null!=(s=null==(e=L.data)?void 0:e.projects)?s:[],D=null==(t=L.data)?void 0:t.meta,M=V.data,q=L.isLoading||L.isFetching&&L.isPreviousData;return i?null:m?(0,a.jsxs)("article",{className:"flex min-h-screen flex-col bg-background",children:[(0,a.jsx)(en(),{children:(0,a.jsx)("title",{children:"Vesta - Projects"})}),(0,a.jsxs)("div",{className:"mx-auto flex min-h-0 w-full flex-1 flex-col pb-16 md:pb-6",children:[(0,a.jsx)(ea.A,{title:"My Projects",searchSlot:(0,a.jsx)("div",{className:"w-full md:w-150",children:(0,a.jsx)(es.A,{value:b,onChange:e=>{z(1),A(e)},placeholder:"Search by ID, Name, Address, Designer, Salesperson or Salesforce ID..."})}),actionSlot:h?(0,a.jsx)(o.$,{variant:"outline",size:"md",className:"bg-white hover:bg-background/50",onClick:()=>x(!0),children:"Add Project"}):(0,a.jsx)("div",{className:"w-28"})}),(0,a.jsx)(ee,{activeTab:j,facets:null!=M?M:{all:0,upcoming:0,reserving:0,installing:0,installed:0,archived:0},isLoading:q,onChange:P}),(0,a.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:c?(0,a.jsx)(O,{projects:H,isLoading:q,isError:L.isError,activeTab:j,canEdit:p,onOpenSheet:E}):(0,a.jsx)($,{projects:H,isLoading:q,isError:L.isError,activeTab:j,canEdit:p,sortBy:w,sortOrder:C,onSort:S,onOpenSheet:E})}),(0,a.jsx)(er.A,{currentPage:(null==D?void 0:D.currentPage)||1,totalPages:(null==D?void 0:D.totalPages)||1,perPage:g,onPageChange:z,onPerPageChange:I})]}),h?(0,a.jsx)(v,{open:d,onOpenChange:x}):null,(0,a.jsx)(_.A,{projectId:k,open:!!k,canEdit:p,onOpenChange:e=>{e||E(null)}})]}):(0,a.jsxs)("article",{className:"flex min-h-screen flex-col bg-background",children:[(0,a.jsx)(en(),{children:(0,a.jsx)("title",{children:"Vesta - Projects"})}),(0,a.jsxs)("div",{className:"mx-auto flex min-h-0 w-full flex-1 flex-col pb-16 md:pb-6",children:[(0,a.jsx)(ea.A,{title:"My Projects"}),(0,a.jsx)(et.A,{})]})]})}},48698:(e,t,s)=>{s.d(t,{A0:()=>n,BF:()=>i,Hj:()=>c,XI:()=>l,nA:()=>d,nd:()=>o});var a=s(37876);s(14232);var r=s(2173);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,a.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",t),...s})})}function n(e){let{className:t,...s}=e;return(0,a.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",t),...s})}function i(e){let{className:t,...s}=e;return(0,a.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",t),...s})}function c(e){let{className:t,...s}=e;return(0,a.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-10 px-4 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...s})}},49860:(e,t,s)=>{s.d(t,{Fc:()=>i,TN:()=>o,XL:()=>c});var a=s(37876);s(14232);var r=s(47137),l=s(2173);let n=(0,r.F)("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:s,...r}=e;return(0,a.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,l.cn)(n({variant:s}),t),...r})}function c(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"alert-title",className:(0,l.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"alert-description",className:(0,l.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...s})}},50546:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(37876),r=s(59435),l=s(28249),n=s(41354),i=s(2173);let c=e=>{let{value:t,onChange:s,placeholder:c="Search...",className:o,autoFocus:d}=e;return(0,a.jsxs)("div",{className:"relative flex-1",children:[(0,a.jsx)(r.A,{className:"pointer-events-none absolute top-1/2 left-3 size-5 -translate-y-1/2 text-primary-text",strokeWidth:1.5}),(0,a.jsx)(n.p,{value:t,onChange:e=>s(e.target.value),placeholder:c,autoFocus:d,className:(0,i.cn)("h-12 rounded-lg border-muted bg-white px-10 placeholder:text-secondary-text",o)}),t&&(0,a.jsx)("button",{onClick:()=>s(""),"aria-label":"Clear search",className:"absolute right-4 inset-y-0 pt-1 text-primary-text transition-opacity hover:opacity-70",children:(0,a.jsx)(l.A,{className:"size-4"})})]})}},52010:(e,t,s)=>{s.d(t,{A:()=>y});var a=s(37876),r=s(93293),l=s(2173),n=s(3173);s(14232);var i=s(9552),c=s(29053),o=s(38724),d=s(15338),u=s(48230),x=s.n(u);function m(e){let{className:t,...s}=e;return(0,a.jsx)("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:(0,l.cn)("mx-auto flex w-full justify-center",t),...s})}function h(e){let{className:t,...s}=e;return(0,a.jsx)("ul",{"data-slot":"pagination-content",className:(0,l.cn)("flex flex-row items-center gap-1",t),...s})}function p(e){let{...t}=e;return(0,a.jsx)("li",{"data-slot":"pagination-item",...t})}function j(e){let{className:t,isActive:s,size:r="icon",...n}=e;return(0,a.jsx)(x(),{"aria-current":s?"page":void 0,"data-slot":"pagination-link","data-active":s,className:(0,l.cn)((0,d.r)({variant:s?"outline":"ghost",size:r}),"text-primary-text",t),...n})}function f(e){let{className:t,...s}=e;return(0,a.jsx)(j,{"aria-label":"Go to previous page",size:"icon",className:(0,l.cn)(t),...s,children:(0,a.jsx)(i.A,{className:"size-4"})})}function g(e){let{className:t,...s}=e;return(0,a.jsx)(j,{"aria-label":"Go to next page",size:"icon",className:(0,l.cn)(t),...s,children:(0,a.jsx)(c.A,{className:"size-4"})})}function v(e){let{className:t,...s}=e;return(0,a.jsxs)("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:(0,l.cn)("flex size-9 items-center justify-center",t),...s,children:[(0,a.jsx)(o.A,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"More pages"})]})}let b=[10,25,50,100].map(e=>({value:String(e),label:String(e)}));function y(e){let{currentPage:t,totalPages:s,perPage:i,onPageChange:c,onPerPageChange:o,variant:d="default"}=e,u=(0,n.al)(),x=!u&&s<=5||u&&s<=3?Array.from({length:s},(e,t)=>t+1):t<=2?[1,2,"ellipsis",s]:t>=s-1?[1,"ellipsis",s-1,s]:[1,"ellipsis",t,"ellipsis",s],y="embedded"===d;return(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-wrap items-center justify-end gap-3",y?"px-0 py-1":"mt-auto px-4 md:px-6",!y&&u&&"f
1ixed inset-x-0 bottom-0 z-20 justify-between bg-white py-2 shadow-2xl"),children:[(0,a.jsx)(r.A,{value:String(i),label:u?void 0:"Rows per page",onValueChange:e=>o(Number(e)),options:b,triggerClassName:"h-10 rounded-md border-border bg-background text-sm font-medium shadow-none"}),(0,a.jsx)(m,{className:"mx-0 w-auto",children:(0,a.jsxs)(h,{className:"h-10 flex-wrap justify-end gap-1",children:[(0,a.jsx)(p,{children:(0,a.jsx)(f,{href:"#","aria-disabled":t<=1,className:(0,l.cn)("size-9 cursor-pointer rounded-md border-0 shadow-none",t<=1&&"pointer-events-none opacity-50"),onClick:e=>{e.preventDefault(),t>1&&c(t-1)}})}),x.map((e,s)=>"ellipsis"===e?(0,a.jsx)(p,{children:(0,a.jsx)(v,{className:(0,l.cn)(u?"size-7":"size-9","text-muted-foreground")})},"ellipsis-".concat(s)):(0,a.jsx)(p,{children:(0,a.jsx)(j,{href:"#",isActive:e===t,size:"icon",className:(0,l.cn)(u?"size-7":"size-9 rounded-md",e===t&&"border-primary bg-primary! text-primary-foreground hover:bg-primary/90!"),onClick:t=>{t.preventDefault(),c(e)},children:e})},e)),(0,a.jsx)(p,{children:(0,a.jsx)(g,{href:"#","aria-disabled":t>=s,className:(0,l.cn)("size-9 cursor-pointer rounded-md border-0 shadow-none",t>=s&&"pointer-events-none opacity-50"),onClick:e=>{e.preventDefault(),t<s&&c(t+1)}})})]})})]})}},57117:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(37876),r=s(79622),l=s(48995),n=s(78353),i=s(15338),c=s(2173);function o(e){let{label:t,field:s,sortBy:o,sortOrder:d,onSort:u,align:x="left"}=e,m=o===s;return(0,a.jsxs)(i.$,{type:"button",variant:"ghost",className:(0,c.cn)("h-10 w-full max-w-none gap-1 rounded-none px-4! font-medium text-muted-foreground has-[>svg]:px-4!","right"===x?"justify-end":"justify-start"),onClick:()=>u(s),children:[t,m?"asc"===d?(0,a.jsx)(r.A,{className:"opacity-100"}):(0,a.jsx)(l.A,{className:"opacity-100"}):(0,a.jsx)(n.A,{className:"opacity-50"}),(0,a.jsx)("span",{className:"sr-only",children:m?"sorted ".concat(d):"sortable"})]})}},62235:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(37876),r=s(64217),l=s(3173),n=s(2173);function i(e){let{title:t,description:s,searchSlot:i,actionSlot:c}=e,o=(0,l.al)();return(0,a.jsxs)("div",{className:(0,n.cn)("flex flex-col gap-4 border-b border-border bg-white p-4 md:flex-row md:items-center md:justify-between md:px-6 md:py-5",o&&"sticky top-24 z-10"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)(r.A,{children:t}),s?(0,a.jsx)("p",{className:"m-0 mt-1 text-sm font-normal text-secondary-text",children:s}):null]}),o&&c]}),i||c?(0,a.jsxs)(a.Fragment,{children:[i,!o&&c]}):null]})}},64217:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(37876),r=s(49898),l=s(2173),n=s(9552);let i=e=>{let{children:t,title:s,withContainer:i=!1,containerClassName:c,className:o,backHref:d,backAs:u,backAriaLabel:x="Go back",onBackClick:m,BackIcon:h=n.A,rightContent:p}=e,j=null!=s?s:t,f=!!(d||m);return i?(0,a.jsx)("div",{className:(0,l.cn)("border-b border-border/60 p-4 md:p-6 bg-white",c),children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[f&&d?(0,a.jsx)(r.A,{href:d,as:u,className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-secondary/80 hover:text-secondary-foreground","aria-label":x,children:(0,a.jsx)(h,{className:"size-5"})}):null,f&&!d&&m?(0,a.jsx)("button",{type:"button",onClick:m,"aria-label":x,className:"inline-flex size-8 items-center justify-center rounded-md text-muted-foreground hover:bg-secondary/80 hover:text-secondary-foreground",children:(0,a.jsx)(h,{className:"size-5"})}):null,(0,a.jsx)("h1",{className:(0,l.cn)("text-xl! xl:text-2xl! font-medium m-0! text-primary-text md:text-boho-black text-nowrap",o),children:j})]}),p?(0,a.jsx)("div",{className:"shrink-0",children:p}):null]})}):(0,a.jsx)("h2",{className:(0,l.cn)("text-xl! xl:text-2xl! font-medium m-0! text-primary-text md:text-boho-black text-nowrap",o),children:j})}},68210:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(37876),r=s(2173),l=s(70135);function n(e){let{label:t,className:s,size:n="default",asChild:i=!1,tooltip:c=!1,tooltipContent:o,tooltipContentProps:d}=e;return(0,a.jsx)(l.E,{asChild:i,className:(0,r.cn)("inline-flex rounded-full font-medium",s),size:n,tooltip:c,tooltipContent:o,tooltipContentProps:d,children:t})}},70135:(e,t,s)=>{s.d(t,{E:()=>o});var a=s(37876);s(14232);var r=s(47137),l=s(82987),n=s(2173),i=s(86418);let c=(0,r.F)("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focu
1s-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 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/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"},size:{default:"px-3 py-1",sm:"px-1.5 py-0.5",lg:"px-5 py-1.5 text-sm"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:s="default",size:r="default",asChild:o=!1,tooltip:d=!1,tooltipContent:u,tooltipContentProps:x,ref:m,...h}=e,p=o?l.bL:"span",j=(0,a.jsx)(p,{ref:m,"data-slot":"badge","data-variant":s,"data-size":r,className:(0,n.cn)(c({variant:s,size:r}),t),...h});return d&&u?(0,a.jsx)(i.m_,{content:u,contentProps:x,asChild:!0,children:j}):j}},93309:(e,t,s)=>{s.d(t,{k:()=>r});var a=s(14232);function r(e){let{form:t,storageKey:s,enabled:r=!0,transformValues:l}=e,n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!r){n.current=r;return}if(n.current===r)return;let e=localStorage.getItem(s);if(e)try{t.reset(JSON.parse(e))}catch(e){localStorage.removeItem(s)}n.current=r},[r,t,s]),(0,a.useEffect)(()=>{if(!r)return;let e=t.watch(e=>{let t=l?l(e):e;localStorage.setItem(s,JSON.stringify(t))});return()=>e.unsubscribe()},[r,t,s]),{clearPersistedState:function(){localStorage.removeItem(s)}}}},93583:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(37876),r=s(82622);function l(e){let{message:t="Your user does not have permissions for this page"}=e;return(0,a.jsxs)("div",{className:"flex min-h-80 flex-col items-center justify-center gap-3 px-6 py-12 text-center text-muted-foreground",children:[(0,a.jsx)(r.A,{className:"size-10 text-muted-foreground/70","aria-hidden":!0}),(0,a.jsx)("p",{className:"text-base font-medium text-foreground",children:t})]})}},95541:(e,t,s)=>{s.d(t,{S:()=>c});var a=s(37876);s(14232);var r=s(32257),l=s(46137),n=s(29470),i=s(2173);function c(e){let{className:t,...s}=e;return(0,a.jsx)(n.bL,{"data-slot":"checkbox",className:(0,i.cn)("group peer size-4 shrink-0 rounded-[4px] border border-sidebar-active shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary dark:data-[state=indeterminate]:bg-primary",t),...s,children:(0,a.jsxs)(n.C1,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:[(0,a.jsx)(r.A,{className:"size-3.5 group-data-[state=indeterminate]:hidden"}),(0,a.jsx)(l.A,{className:"hidden size-3.5 group-data-[state=indeterminate]:block"})]})})}}}]);

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